Skip to content

Commit de53f0e

Browse files
feat: add initial version of NetApp v1 APIs (#11532)
Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 58158d3 commit de53f0e

File tree

105 files changed

+46341
-1020
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

105 files changed

+46341
-1020
lines changed

packages/google-cloud-netapp/docs/index.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,17 @@
22

33
.. include:: multiprocessing.rst
44

5+
This package includes clients for multiple versions of NetApp API.
6+
By default, you will get version ``netapp_v1``.
7+
8+
9+
API Reference
10+
-------------
11+
.. toctree::
12+
:maxdepth: 2
13+
14+
netapp_v1/services
15+
netapp_v1/types
516

617
API Reference
718
-------------
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
NetApp
2+
------------------------
3+
4+
.. automodule:: google.cloud.netapp_v1.services.net_app
5+
:members:
6+
:inherited-members:
7+
8+
.. automodule:: google.cloud.netapp_v1.services.net_app.pagers
9+
:members:
10+
:inherited-members:
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Services for Google Cloud Netapp v1 API
2+
=======================================
3+
.. toctree::
4+
:maxdepth: 2
5+
6+
net_app
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Types for Google Cloud Netapp v1 API
2+
====================================
3+
4+
.. automodule:: google.cloud.netapp_v1.types
5+
:members:
6+
:show-inheritance:

packages/google-cloud-netapp/google/cloud/netapp/__init__.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@
1818
__version__ = package_version.__version__
1919

2020

21-
from google.cloud.netapp_v1beta1.services.net_app.async_client import NetAppAsyncClient
22-
from google.cloud.netapp_v1beta1.services.net_app.client import NetAppClient
23-
from google.cloud.netapp_v1beta1.types.active_directory import (
21+
from google.cloud.netapp_v1.services.net_app.async_client import NetAppAsyncClient
22+
from google.cloud.netapp_v1.services.net_app.client import NetAppClient
23+
from google.cloud.netapp_v1.types.active_directory import (
2424
ActiveDirectory,
2525
CreateActiveDirectoryRequest,
2626
DeleteActiveDirectoryRequest,
@@ -29,9 +29,9 @@
2929
ListActiveDirectoriesResponse,
3030
UpdateActiveDirectoryRequest,
3131
)
32-
from google.cloud.netapp_v1beta1.types.cloud_netapp_service import OperationMetadata
33-
from google.cloud.netapp_v1beta1.types.common import EncryptionType, ServiceLevel
34-
from google.cloud.netapp_v1beta1.types.kms import (
32+
from google.cloud.netapp_v1.types.cloud_netapp_service import OperationMetadata
33+
from google.cloud.netapp_v1.types.common import EncryptionType, ServiceLevel
34+
from google.cloud.netapp_v1.types.kms import (
3535
CreateKmsConfigRequest,
3636
DeleteKmsConfigRequest,
3737
EncryptVolumesRequest,
@@ -43,7 +43,7 @@
4343
VerifyKmsConfigRequest,
4444
VerifyKmsConfigResponse,
4545
)
46-
from google.cloud.netapp_v1beta1.types.replication import (
46+
from google.cloud.netapp_v1.types.replication import (
4747
CreateReplicationRequest,
4848
DeleteReplicationRequest,
4949
DestinationVolumeParameters,
@@ -57,7 +57,7 @@
5757
TransferStats,
5858
UpdateReplicationRequest,
5959
)
60-
from google.cloud.netapp_v1beta1.types.snapshot import (
60+
from google.cloud.netapp_v1.types.snapshot import (
6161
CreateSnapshotRequest,
6262
DeleteSnapshotRequest,
6363
GetSnapshotRequest,
@@ -66,7 +66,7 @@
6666
Snapshot,
6767
UpdateSnapshotRequest,
6868
)
69-
from google.cloud.netapp_v1beta1.types.storage_pool import (
69+
from google.cloud.netapp_v1.types.storage_pool import (
7070
CreateStoragePoolRequest,
7171
DeleteStoragePoolRequest,
7272
GetStoragePoolRequest,
@@ -75,7 +75,7 @@
7575
StoragePool,
7676
UpdateStoragePoolRequest,
7777
)
78-
from google.cloud.netapp_v1beta1.types.volume import (
78+
from google.cloud.netapp_v1.types.volume import (
7979
AccessType,
8080
CreateVolumeRequest,
8181
DailySchedule,

packages/google-cloud-netapp/google/cloud/netapp/gapic_version.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,4 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
17-
__version__ = "0.1.0" # {x-release-please-version}
16+
__version__ = "0.0.0" # {x-release-please-version}
Lines changed: 171 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,171 @@
1+
# -*- coding: utf-8 -*-
2+
# Copyright 2023 Google LLC
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
#
16+
from google.cloud.netapp_v1 import gapic_version as package_version
17+
18+
__version__ = package_version.__version__
19+
20+
21+
from .services.net_app import NetAppAsyncClient, NetAppClient
22+
from .types.active_directory import (
23+
ActiveDirectory,
24+
CreateActiveDirectoryRequest,
25+
DeleteActiveDirectoryRequest,
26+
GetActiveDirectoryRequest,
27+
ListActiveDirectoriesRequest,
28+
ListActiveDirectoriesResponse,
29+
UpdateActiveDirectoryRequest,
30+
)
31+
from .types.cloud_netapp_service import OperationMetadata
32+
from .types.common import EncryptionType, ServiceLevel
33+
from .types.kms import (
34+
CreateKmsConfigRequest,
35+
DeleteKmsConfigRequest,
36+
EncryptVolumesRequest,
37+
GetKmsConfigRequest,
38+
KmsConfig,
39+
ListKmsConfigsRequest,
40+
ListKmsConfigsResponse,
41+
UpdateKmsConfigRequest,
42+
VerifyKmsConfigRequest,
43+
VerifyKmsConfigResponse,
44+
)
45+
from .types.replication import (
46+
CreateReplicationRequest,
47+
DeleteReplicationRequest,
48+
DestinationVolumeParameters,
49+
GetReplicationRequest,
50+
ListReplicationsRequest,
51+
ListReplicationsResponse,
52+
Replication,
53+
ResumeReplicationRequest,
54+
ReverseReplicationDirectionRequest,
55+
StopReplicationRequest,
56+
TransferStats,
57+
UpdateReplicationRequest,
58+
)
59+
from .types.snapshot import (
60+
CreateSnapshotRequest,
61+
DeleteSnapshotRequest,
62+
GetSnapshotRequest,
63+
ListSnapshotsRequest,
64+
ListSnapshotsResponse,
65+
Snapshot,
66+
UpdateSnapshotRequest,
67+
)
68+
from .types.storage_pool import (
69+
CreateStoragePoolRequest,
70+
DeleteStoragePoolRequest,
71+
GetStoragePoolRequest,
72+
ListStoragePoolsRequest,
73+
ListStoragePoolsResponse,
74+
StoragePool,
75+
UpdateStoragePoolRequest,
76+
)
77+
from .types.volume import (
78+
AccessType,
79+
CreateVolumeRequest,
80+
DailySchedule,
81+
DeleteVolumeRequest,
82+
ExportPolicy,
83+
GetVolumeRequest,
84+
HourlySchedule,
85+
ListVolumesRequest,
86+
ListVolumesResponse,
87+
MonthlySchedule,
88+
MountOption,
89+
Protocols,
90+
RestoreParameters,
91+
RevertVolumeRequest,
92+
SecurityStyle,
93+
SimpleExportPolicyRule,
94+
SMBSettings,
95+
SnapshotPolicy,
96+
UpdateVolumeRequest,
97+
Volume,
98+
WeeklySchedule,
99+
)
100+
101+
__all__ = (
102+
"NetAppAsyncClient",
103+
"AccessType",
104+
"ActiveDirectory",
105+
"CreateActiveDirectoryRequest",
106+
"CreateKmsConfigRequest",
107+
"CreateReplicationRequest",
108+
"CreateSnapshotRequest",
109+
"CreateStoragePoolRequest",
110+
"CreateVolumeRequest",
111+
"DailySchedule",
112+
"DeleteActiveDirectoryRequest",
113+
"DeleteKmsConfigRequest",
114+
"DeleteReplicationRequest",
115+
"DeleteSnapshotRequest",
116+
"DeleteStoragePoolRequest",
117+
"DeleteVolumeRequest",
118+
"DestinationVolumeParameters",
119+
"EncryptVolumesRequest",
120+
"EncryptionType",
121+
"ExportPolicy",
122+
"GetActiveDirectoryRequest",
123+
"GetKmsConfigRequest",
124+
"GetReplicationRequest",
125+
"GetSnapshotRequest",
126+
"GetStoragePoolRequest",
127+
"GetVolumeRequest",
128+
"HourlySchedule",
129+
"KmsConfig",
130+
"ListActiveDirectoriesRequest",
131+
"ListActiveDirectoriesResponse",
132+
"ListKmsConfigsRequest",
133+
"ListKmsConfigsResponse",
134+
"ListReplicationsRequest",
135+
"ListReplicationsResponse",
136+
"ListSnapshotsRequest",
137+
"ListSnapshotsResponse",
138+
"ListStoragePoolsRequest",
139+
"ListStoragePoolsResponse",
140+
"ListVolumesRequest",
141+
"ListVolumesResponse",
142+
"MonthlySchedule",
143+
"MountOption",
144+
"NetAppClient",
145+
"OperationMetadata",
146+
"Protocols",
147+
"Replication",
148+
"RestoreParameters",
149+
"ResumeReplicationRequest",
150+
"ReverseReplicationDirectionRequest",
151+
"RevertVolumeRequest",
152+
"SMBSettings",
153+
"SecurityStyle",
154+
"ServiceLevel",
155+
"SimpleExportPolicyRule",
156+
"Snapshot",
157+
"SnapshotPolicy",
158+
"StopReplicationRequest",
159+
"StoragePool",
160+
"TransferStats",
161+
"UpdateActiveDirectoryRequest",
162+
"UpdateKmsConfigRequest",
163+
"UpdateReplicationRequest",
164+
"UpdateSnapshotRequest",
165+
"UpdateStoragePoolRequest",
166+
"UpdateVolumeRequest",
167+
"VerifyKmsConfigRequest",
168+
"VerifyKmsConfigResponse",
169+
"Volume",
170+
"WeeklySchedule",
171+
)

0 commit comments

Comments
 (0)