diff --git a/packages/google-cloud-netapp/google/cloud/netapp/gapic_version.py b/packages/google-cloud-netapp/google/cloud/netapp/gapic_version.py index ab68833be4be..558c8aab67c5 100644 --- a/packages/google-cloud-netapp/google/cloud/netapp/gapic_version.py +++ b/packages/google-cloud-netapp/google/cloud/netapp/gapic_version.py @@ -13,4 +13,4 @@ # See the License for the specific language governing permissions and # limitations under the License. # -__version__ = "0.3.12" # {x-release-please-version} +__version__ = "0.0.0" # {x-release-please-version} diff --git a/packages/google-cloud-netapp/google/cloud/netapp_v1/gapic_version.py b/packages/google-cloud-netapp/google/cloud/netapp_v1/gapic_version.py index ab68833be4be..558c8aab67c5 100644 --- a/packages/google-cloud-netapp/google/cloud/netapp_v1/gapic_version.py +++ b/packages/google-cloud-netapp/google/cloud/netapp_v1/gapic_version.py @@ -13,4 +13,4 @@ # See the License for the specific language governing permissions and # limitations under the License. # -__version__ = "0.3.12" # {x-release-please-version} +__version__ = "0.0.0" # {x-release-please-version} diff --git a/packages/google-cloud-netapp/google/cloud/netapp_v1/services/net_app/async_client.py b/packages/google-cloud-netapp/google/cloud/netapp_v1/services/net_app/async_client.py index 503f49589523..4f00527ddadc 100644 --- a/packages/google-cloud-netapp/google/cloud/netapp_v1/services/net_app/async_client.py +++ b/packages/google-cloud-netapp/google/cloud/netapp_v1/services/net_app/async_client.py @@ -478,9 +478,14 @@ async def sample_create_storage_pool(): on the ``request`` instance; if ``request`` is provided, this should not be set. storage_pool_id (:class:`str`): - Required. Id of the requesting storage pool If - auto-generating Id server-side, remove this field and id - from the method_signature of Create RPC + Required. Id of the requesting + storage pool. Must be unique within the + parent resource. Must contain only + letters, numbers, underscore and hyphen, + with the first character a letter or + underscore, the last a letter or + underscore or a number, and a 63 + character maximum. This corresponds to the ``storage_pool_id`` field on the ``request`` instance; if ``request`` is provided, this @@ -1228,9 +1233,13 @@ async def sample_create_volume(): on the ``request`` instance; if ``request`` is provided, this should not be set. volume_id (:class:`str`): - Required. Id of the requesting volume If auto-generating - Id server-side, remove this field and Id from the - method_signature of Create RPC + Required. Id of the requesting + volume. Must be unique within the parent + resource. Must contain only letters, + numbers, underscore and hyphen, with the + first character a letter or underscore, + the last a letter or underscore or a + number, and a 63 character maximum. This corresponds to the ``volume_id`` field on the ``request`` instance; if ``request`` is provided, this @@ -1965,10 +1974,12 @@ async def sample_create_snapshot(): should not be set. snapshot_id (:class:`str`): Required. ID of the snapshot to - create. This value must start with a - lowercase letter followed by up to 62 - lowercase letters, numbers, or hyphens, - and cannot end with a hyphen. + create. Must be unique within the parent + resource. Must contain only letters, + numbers, underscore and hyphen, with the + first character a letter or underscore, + the last a letter or underscore or a + number, and a 63 character maximum. This corresponds to the ``snapshot_id`` field on the ``request`` instance; if ``request`` is provided, this @@ -2611,7 +2622,13 @@ async def sample_create_active_directory(): should not be set. active_directory_id (:class:`str`): Required. ID of the active directory - to create. + to create. Must be unique within the + parent resource. Must contain only + letters, numbers, underscore and hyphen, + with the first character a letter or + underscore, the last a letter or + underscore or a number, and a 63 + character maximum. This corresponds to the ``active_directory_id`` field on the ``request`` instance; if ``request`` is provided, this @@ -3151,9 +3168,14 @@ async def sample_create_kms_config(): on the ``request`` instance; if ``request`` is provided, this should not be set. kms_config_id (:class:`str`): - Required. Id of the requesting KmsConfig If - auto-generating Id server-side, remove this field and id - from the method_signature of Create RPC + Required. Id of the requesting + KmsConfig. Must be unique within the + parent resource. Must contain only + letters, numbers, underscore and hyphen, + with the first character a letter or + underscore, the last a letter or + underscore or a number, and a 63 + character maximum. This corresponds to the ``kms_config_id`` field on the ``request`` instance; if ``request`` is provided, this @@ -4087,10 +4109,12 @@ async def sample_create_replication(): should not be set. replication_id (:class:`str`): Required. ID of the replication to - create. This value must start with a - lowercase letter followed by up to 62 - lowercase letters, numbers, or hyphens, - and cannot end with a hyphen. + create. Must be unique within the parent + resource. Must contain only letters, + numbers, underscore and hyphen, with the + first character a letter or underscore, + the last a letter or underscore or a + number, and a 63 character maximum. This corresponds to the ``replication_id`` field on the ``request`` instance; if ``request`` is provided, this @@ -4799,13 +4823,14 @@ async def sample_create_backup_vault(): on the ``request`` instance; if ``request`` is provided, this should not be set. backup_vault_id (:class:`str`): - Required. The ID to use for the backupVault. The ID must - be unique within the specified location. The max - supported length is 63 characters. This value must start - with a lowercase letter followed by up to 62 lowercase - letters, numbers, or hyphens, and cannot end with a - hyphen. Values that do not match this pattern will - trigger an INVALID_ARGUMENT error. + Required. The ID to use for the + backupVault. The ID must be unique + within the specified location. Must + contain only letters, numbers, + underscore and hyphen, with the first + character a letter or underscore, the + last a letter or underscore or a number, + and a 63 character maximum. This corresponds to the ``backup_vault_id`` field on the ``request`` instance; if ``request`` is provided, this @@ -5442,12 +5467,14 @@ async def sample_create_backup(): on the ``request`` instance; if ``request`` is provided, this should not be set. backup_id (:class:`str`): - Required. The ID to use for the backup. The ID must be - unique within the specified backupVault. This value must - start with a lowercase letter followed by up to 62 - lowercase letters, numbers, or hyphens, and cannot end - with a hyphen. Values that do not match this pattern - will trigger an INVALID_ARGUMENT error. + Required. The ID to use for the + backup. The ID must be unique within the + specified backupVault. Must contain only + letters, numbers, underscore and hyphen, + with the first character a letter or + underscore, the last a letter or + underscore or a number, and a 63 + character maximum. This corresponds to the ``backup_id`` field on the ``request`` instance; if ``request`` is provided, this @@ -6086,11 +6113,12 @@ async def sample_create_backup_policy(): backup_policy_id (:class:`str`): Required. The ID to use for the backup policy. The ID must be unique - within the specified location. This - value must start with a lowercase letter - followed by up to 62 lowercase letters, - numbers, or hyphens, and cannot end with - a hyphen. + within the specified location. Must + contain only letters, numbers, + underscore and hyphen, with the first + character a letter or underscore, the + last a letter or underscore or a number, + and a 63 character maximum. This corresponds to the ``backup_policy_id`` field on the ``request`` instance; if ``request`` is provided, this diff --git a/packages/google-cloud-netapp/google/cloud/netapp_v1/services/net_app/client.py b/packages/google-cloud-netapp/google/cloud/netapp_v1/services/net_app/client.py index 9e7840ce3d3b..b1f7a0fadd6f 100644 --- a/packages/google-cloud-netapp/google/cloud/netapp_v1/services/net_app/client.py +++ b/packages/google-cloud-netapp/google/cloud/netapp_v1/services/net_app/client.py @@ -1083,9 +1083,14 @@ def sample_create_storage_pool(): on the ``request`` instance; if ``request`` is provided, this should not be set. storage_pool_id (str): - Required. Id of the requesting storage pool If - auto-generating Id server-side, remove this field and id - from the method_signature of Create RPC + Required. Id of the requesting + storage pool. Must be unique within the + parent resource. Must contain only + letters, numbers, underscore and hyphen, + with the first character a letter or + underscore, the last a letter or + underscore or a number, and a 63 + character maximum. This corresponds to the ``storage_pool_id`` field on the ``request`` instance; if ``request`` is provided, this @@ -1815,9 +1820,13 @@ def sample_create_volume(): on the ``request`` instance; if ``request`` is provided, this should not be set. volume_id (str): - Required. Id of the requesting volume If auto-generating - Id server-side, remove this field and Id from the - method_signature of Create RPC + Required. Id of the requesting + volume. Must be unique within the parent + resource. Must contain only letters, + numbers, underscore and hyphen, with the + first character a letter or underscore, + the last a letter or underscore or a + number, and a 63 character maximum. This corresponds to the ``volume_id`` field on the ``request`` instance; if ``request`` is provided, this @@ -2535,10 +2544,12 @@ def sample_create_snapshot(): should not be set. snapshot_id (str): Required. ID of the snapshot to - create. This value must start with a - lowercase letter followed by up to 62 - lowercase letters, numbers, or hyphens, - and cannot end with a hyphen. + create. Must be unique within the parent + resource. Must contain only letters, + numbers, underscore and hyphen, with the + first character a letter or underscore, + the last a letter or underscore or a + number, and a 63 character maximum. This corresponds to the ``snapshot_id`` field on the ``request`` instance; if ``request`` is provided, this @@ -3166,7 +3177,13 @@ def sample_create_active_directory(): should not be set. active_directory_id (str): Required. ID of the active directory - to create. + to create. Must be unique within the + parent resource. Must contain only + letters, numbers, underscore and hyphen, + with the first character a letter or + underscore, the last a letter or + underscore or a number, and a 63 + character maximum. This corresponds to the ``active_directory_id`` field on the ``request`` instance; if ``request`` is provided, this @@ -3694,9 +3711,14 @@ def sample_create_kms_config(): on the ``request`` instance; if ``request`` is provided, this should not be set. kms_config_id (str): - Required. Id of the requesting KmsConfig If - auto-generating Id server-side, remove this field and id - from the method_signature of Create RPC + Required. Id of the requesting + KmsConfig. Must be unique within the + parent resource. Must contain only + letters, numbers, underscore and hyphen, + with the first character a letter or + underscore, the last a letter or + underscore or a number, and a 63 + character maximum. This corresponds to the ``kms_config_id`` field on the ``request`` instance; if ``request`` is provided, this @@ -4608,10 +4630,12 @@ def sample_create_replication(): should not be set. replication_id (str): Required. ID of the replication to - create. This value must start with a - lowercase letter followed by up to 62 - lowercase letters, numbers, or hyphens, - and cannot end with a hyphen. + create. Must be unique within the parent + resource. Must contain only letters, + numbers, underscore and hyphen, with the + first character a letter or underscore, + the last a letter or underscore or a + number, and a 63 character maximum. This corresponds to the ``replication_id`` field on the ``request`` instance; if ``request`` is provided, this @@ -5307,13 +5331,14 @@ def sample_create_backup_vault(): on the ``request`` instance; if ``request`` is provided, this should not be set. backup_vault_id (str): - Required. The ID to use for the backupVault. The ID must - be unique within the specified location. The max - supported length is 63 characters. This value must start - with a lowercase letter followed by up to 62 lowercase - letters, numbers, or hyphens, and cannot end with a - hyphen. Values that do not match this pattern will - trigger an INVALID_ARGUMENT error. + Required. The ID to use for the + backupVault. The ID must be unique + within the specified location. Must + contain only letters, numbers, + underscore and hyphen, with the first + character a letter or underscore, the + last a letter or underscore or a number, + and a 63 character maximum. This corresponds to the ``backup_vault_id`` field on the ``request`` instance; if ``request`` is provided, this @@ -5935,12 +5960,14 @@ def sample_create_backup(): on the ``request`` instance; if ``request`` is provided, this should not be set. backup_id (str): - Required. The ID to use for the backup. The ID must be - unique within the specified backupVault. This value must - start with a lowercase letter followed by up to 62 - lowercase letters, numbers, or hyphens, and cannot end - with a hyphen. Values that do not match this pattern - will trigger an INVALID_ARGUMENT error. + Required. The ID to use for the + backup. The ID must be unique within the + specified backupVault. Must contain only + letters, numbers, underscore and hyphen, + with the first character a letter or + underscore, the last a letter or + underscore or a number, and a 63 + character maximum. This corresponds to the ``backup_id`` field on the ``request`` instance; if ``request`` is provided, this @@ -6564,11 +6591,12 @@ def sample_create_backup_policy(): backup_policy_id (str): Required. The ID to use for the backup policy. The ID must be unique - within the specified location. This - value must start with a lowercase letter - followed by up to 62 lowercase letters, - numbers, or hyphens, and cannot end with - a hyphen. + within the specified location. Must + contain only letters, numbers, + underscore and hyphen, with the first + character a letter or underscore, the + last a letter or underscore or a number, + and a 63 character maximum. This corresponds to the ``backup_policy_id`` field on the ``request`` instance; if ``request`` is provided, this diff --git a/packages/google-cloud-netapp/google/cloud/netapp_v1/types/active_directory.py b/packages/google-cloud-netapp/google/cloud/netapp_v1/types/active_directory.py index de7e7845d578..f069bdd2a988 100644 --- a/packages/google-cloud-netapp/google/cloud/netapp_v1/types/active_directory.py +++ b/packages/google-cloud-netapp/google/cloud/netapp_v1/types/active_directory.py @@ -137,7 +137,12 @@ class CreateActiveDirectoryRequest(proto.Message): directory. active_directory_id (str): Required. ID of the active directory to - create. + create. Must be unique within the parent + resource. Must contain only letters, numbers, + underscore and hyphen, with the first character + a letter or underscore, the last a letter or + underscore or a number, and a 63 character + maximum. """ parent: str = proto.Field( @@ -238,6 +243,9 @@ class ActiveDirectory(proto.Message): backup_operators (MutableSequence[str]): Optional. Users to be added to the Built-in Backup Operator active directory group. + administrators (MutableSequence[str]): + Optional. Users to be added to the Built-in + Admininstrators group. security_operators (MutableSequence[str]): Optional. Domain users to be given the SeSecurityPrivilege. @@ -344,6 +352,10 @@ class State(proto.Enum): proto.STRING, number=12, ) + administrators: MutableSequence[str] = proto.RepeatedField( + proto.STRING, + number=22, + ) security_operators: MutableSequence[str] = proto.RepeatedField( proto.STRING, number=13, diff --git a/packages/google-cloud-netapp/google/cloud/netapp_v1/types/backup.py b/packages/google-cloud-netapp/google/cloud/netapp_v1/types/backup.py index e06aef4b3214..72437ab44942 100644 --- a/packages/google-cloud-netapp/google/cloud/netapp_v1/types/backup.py +++ b/packages/google-cloud-netapp/google/cloud/netapp_v1/types/backup.py @@ -288,12 +288,13 @@ class CreateBackupRequest(proto.Message): in the format ``projects/*/locations/*/backupVaults/{backup_vault_id}`` backup_id (str): - Required. The ID to use for the backup. The ID must be - unique within the specified backupVault. This value must - start with a lowercase letter followed by up to 62 lowercase - letters, numbers, or hyphens, and cannot end with a hyphen. - Values that do not match this pattern will trigger an - INVALID_ARGUMENT error. + Required. The ID to use for the backup. + The ID must be unique within the specified + backupVault. Must contain only letters, numbers, + underscore and hyphen, with the first character + a letter or underscore, the last a letter or + underscore or a number, and a 63 character + maximum. backup (google.cloud.netapp_v1.types.Backup): Required. A backup resource """ diff --git a/packages/google-cloud-netapp/google/cloud/netapp_v1/types/backup_policy.py b/packages/google-cloud-netapp/google/cloud/netapp_v1/types/backup_policy.py index f58799d48dc6..3f5d73584dd5 100644 --- a/packages/google-cloud-netapp/google/cloud/netapp_v1/types/backup_policy.py +++ b/packages/google-cloud-netapp/google/cloud/netapp_v1/types/backup_policy.py @@ -175,10 +175,11 @@ class CreateBackupPolicyRequest(proto.Message): backup_policy_id (str): Required. The ID to use for the backup policy. The ID must be unique within the - specified location. This value must start with a - lowercase letter followed by up to 62 lowercase - letters, numbers, or hyphens, and cannot end - with a hyphen. + specified location. Must contain only letters, + numbers, underscore and hyphen, with the first + character a letter or underscore, the last a + letter or underscore or a number, and a 63 + character maximum. """ parent: str = proto.Field( diff --git a/packages/google-cloud-netapp/google/cloud/netapp_v1/types/backup_vault.py b/packages/google-cloud-netapp/google/cloud/netapp_v1/types/backup_vault.py index c09aec7dd2ef..33d17c2b6e9c 100644 --- a/packages/google-cloud-netapp/google/cloud/netapp_v1/types/backup_vault.py +++ b/packages/google-cloud-netapp/google/cloud/netapp_v1/types/backup_vault.py @@ -202,13 +202,13 @@ class CreateBackupVaultRequest(proto.Message): Required. The location to create the backup vaults, in the format ``projects/{project_id}/locations/{location}`` backup_vault_id (str): - Required. The ID to use for the backupVault. The ID must be - unique within the specified location. The max supported - length is 63 characters. This value must start with a - lowercase letter followed by up to 62 lowercase letters, - numbers, or hyphens, and cannot end with a hyphen. Values - that do not match this pattern will trigger an - INVALID_ARGUMENT error. + Required. The ID to use for the backupVault. + The ID must be unique within the specified + location. Must contain only letters, numbers, + underscore and hyphen, with the first character + a letter or underscore, the last a letter or + underscore or a number, and a 63 character + maximum. backup_vault (google.cloud.netapp_v1.types.BackupVault): Required. A backupVault resource """ diff --git a/packages/google-cloud-netapp/google/cloud/netapp_v1/types/kms.py b/packages/google-cloud-netapp/google/cloud/netapp_v1/types/kms.py index b54313560cd9..fba21b0706e3 100644 --- a/packages/google-cloud-netapp/google/cloud/netapp_v1/types/kms.py +++ b/packages/google-cloud-netapp/google/cloud/netapp_v1/types/kms.py @@ -132,9 +132,12 @@ class CreateKmsConfigRequest(proto.Message): parent (str): Required. Value for parent. kms_config_id (str): - Required. Id of the requesting KmsConfig If auto-generating - Id server-side, remove this field and id from the - method_signature of Create RPC + Required. Id of the requesting KmsConfig. + Must be unique within the parent resource. Must + contain only letters, numbers, underscore and + hyphen, with the first character a letter or + underscore, the last a letter or underscore or a + number, and a 63 character maximum. kms_config (google.cloud.netapp_v1.types.KmsConfig): Required. The required parameters to create a new KmsConfig. diff --git a/packages/google-cloud-netapp/google/cloud/netapp_v1/types/replication.py b/packages/google-cloud-netapp/google/cloud/netapp_v1/types/replication.py index 7086c9b08405..832c59ac9bbf 100644 --- a/packages/google-cloud-netapp/google/cloud/netapp_v1/types/replication.py +++ b/packages/google-cloud-netapp/google/cloud/netapp_v1/types/replication.py @@ -50,11 +50,13 @@ class TransferStats(proto.Message): Attributes: transfer_bytes (int): - bytes trasferred so far in current transfer. + Cumulative bytes trasferred so far for the + replication relatinonship. This field is a member of `oneof`_ ``_transfer_bytes``. total_transfer_duration (google.protobuf.duration_pb2.Duration): - Total time taken during transfer. + Cumulative time taken across all transfers + for the replication relationship. This field is a member of `oneof`_ ``_total_transfer_duration``. last_transfer_bytes (int): @@ -273,7 +275,7 @@ class MirrorState(proto.Enum): Destination volume is not receiving replication transfers. TRANSFERRING (4): - Replication is in progress. + Incremental replication is in progress. """ MIRROR_STATE_UNSPECIFIED = 0 PREPARING = 1 @@ -500,9 +502,11 @@ class CreateReplicationRequest(proto.Message): Required. A replication resource replication_id (str): Required. ID of the replication to create. - This value must start with a lowercase letter - followed by up to 62 lowercase letters, numbers, - or hyphens, and cannot end with a hyphen. + Must be unique within the parent resource. Must + contain only letters, numbers, underscore and + hyphen, with the first character a letter or + underscore, the last a letter or underscore or a + number, and a 63 character maximum. """ parent: str = proto.Field( diff --git a/packages/google-cloud-netapp/google/cloud/netapp_v1/types/snapshot.py b/packages/google-cloud-netapp/google/cloud/netapp_v1/types/snapshot.py index 4e530b4e787a..71b215128e7e 100644 --- a/packages/google-cloud-netapp/google/cloud/netapp_v1/types/snapshot.py +++ b/packages/google-cloud-netapp/google/cloud/netapp_v1/types/snapshot.py @@ -137,10 +137,12 @@ class CreateSnapshotRequest(proto.Message): snapshot (google.cloud.netapp_v1.types.Snapshot): Required. A snapshot resource snapshot_id (str): - Required. ID of the snapshot to create. - This value must start with a lowercase letter - followed by up to 62 lowercase letters, numbers, - or hyphens, and cannot end with a hyphen. + Required. ID of the snapshot to create. Must + be unique within the parent resource. Must + contain only letters, numbers, underscore and + hyphen, with the first character a letter or + underscore, the last a letter or underscore or a + number, and a 63 character maximum. """ parent: str = proto.Field( diff --git a/packages/google-cloud-netapp/google/cloud/netapp_v1/types/storage_pool.py b/packages/google-cloud-netapp/google/cloud/netapp_v1/types/storage_pool.py index 1352bed160dc..e9687e66b7b4 100644 --- a/packages/google-cloud-netapp/google/cloud/netapp_v1/types/storage_pool.py +++ b/packages/google-cloud-netapp/google/cloud/netapp_v1/types/storage_pool.py @@ -132,9 +132,12 @@ class CreateStoragePoolRequest(proto.Message): parent (str): Required. Value for parent. storage_pool_id (str): - Required. Id of the requesting storage pool If - auto-generating Id server-side, remove this field and id - from the method_signature of Create RPC + Required. Id of the requesting storage pool. + Must be unique within the parent resource. Must + contain only letters, numbers, underscore and + hyphen, with the first character a letter or + underscore, the last a letter or underscore or a + number, and a 63 character maximum. storage_pool (google.cloud.netapp_v1.types.StoragePool): Required. The required parameters to create a new storage pool. @@ -252,6 +255,12 @@ class StoragePool(proto.Message): AD or DNS server from other regions. This field is a member of `oneof`_ ``_global_access_allowed``. + replica_zone (str): + Optional. Specifies the replica zone for + regional storagePool. + zone (str): + Optional. Specifies the active zone for + regional storagePool. """ class State(proto.Enum): @@ -358,6 +367,14 @@ class State(proto.Enum): number=17, optional=True, ) + replica_zone: str = proto.Field( + proto.STRING, + number=20, + ) + zone: str = proto.Field( + proto.STRING, + number=21, + ) __all__ = tuple(sorted(__protobuf__.manifest)) diff --git a/packages/google-cloud-netapp/google/cloud/netapp_v1/types/volume.py b/packages/google-cloud-netapp/google/cloud/netapp_v1/types/volume.py index acf2cd735fd0..a10bd13bb922 100644 --- a/packages/google-cloud-netapp/google/cloud/netapp_v1/types/volume.py +++ b/packages/google-cloud-netapp/google/cloud/netapp_v1/types/volume.py @@ -257,9 +257,12 @@ class CreateVolumeRequest(proto.Message): parent (str): Required. Value for parent. volume_id (str): - Required. Id of the requesting volume If auto-generating Id - server-side, remove this field and Id from the - method_signature of Create RPC + Required. Id of the requesting volume. Must + be unique within the parent resource. Must + contain only letters, numbers, underscore and + hyphen, with the first character a letter or + underscore, the last a letter or underscore or a + number, and a 63 character maximum. volume (google.cloud.netapp_v1.types.Volume): Required. The volume being created. """ @@ -445,10 +448,24 @@ class Volume(proto.Message): restricted_actions (MutableSequence[google.cloud.netapp_v1.types.RestrictedAction]): Optional. List of actions that are restricted on this volume. + large_capacity (bool): + Optional. Flag indicating if the volume will + be a large capacity volume or a regular volume. + multiple_endpoints (bool): + Optional. Flag indicating if the volume will have an IP + address per node for volumes supporting multiple IP + endpoints. Only the volume with large_capacity will be + allowed to have multiple endpoints. tiering_policy (google.cloud.netapp_v1.types.TieringPolicy): Tiering policy for the volume. This field is a member of `oneof`_ ``_tiering_policy``. + replica_zone (str): + Output only. Specifies the replica zone for + regional volume. + zone (str): + Output only. Specifies the active zone for + regional volume. """ class State(proto.Enum): @@ -620,12 +637,28 @@ class State(proto.Enum): number=31, enum="RestrictedAction", ) + large_capacity: bool = proto.Field( + proto.BOOL, + number=32, + ) + multiple_endpoints: bool = proto.Field( + proto.BOOL, + number=33, + ) tiering_policy: "TieringPolicy" = proto.Field( proto.MESSAGE, number=34, optional=True, message="TieringPolicy", ) + replica_zone: str = proto.Field( + proto.STRING, + number=36, + ) + zone: str = proto.Field( + proto.STRING, + number=37, + ) class ExportPolicy(proto.Message): diff --git a/packages/google-cloud-netapp/samples/generated_samples/snippet_metadata_google.cloud.netapp.v1.json b/packages/google-cloud-netapp/samples/generated_samples/snippet_metadata_google.cloud.netapp.v1.json index f98649022b33..3edfdb18757c 100644 --- a/packages/google-cloud-netapp/samples/generated_samples/snippet_metadata_google.cloud.netapp.v1.json +++ b/packages/google-cloud-netapp/samples/generated_samples/snippet_metadata_google.cloud.netapp.v1.json @@ -8,7 +8,7 @@ ], "language": "PYTHON", "name": "google-cloud-netapp", - "version": "0.3.12" + "version": "0.1.0" }, "snippets": [ { diff --git a/packages/google-cloud-netapp/tests/unit/gapic/netapp_v1/test_net_app.py b/packages/google-cloud-netapp/tests/unit/gapic/netapp_v1/test_net_app.py index 08955ef54b1a..f5361c806474 100644 --- a/packages/google-cloud-netapp/tests/unit/gapic/netapp_v1/test_net_app.py +++ b/packages/google-cloud-netapp/tests/unit/gapic/netapp_v1/test_net_app.py @@ -2124,6 +2124,8 @@ def test_get_storage_pool(request_type, transport: str = "grpc"): psa_range="psa_range_value", encryption_type=common.EncryptionType.SERVICE_MANAGED, global_access_allowed=True, + replica_zone="replica_zone_value", + zone="zone_value", ) response = client.get_storage_pool(request) @@ -2150,6 +2152,8 @@ def test_get_storage_pool(request_type, transport: str = "grpc"): assert response.psa_range == "psa_range_value" assert response.encryption_type == common.EncryptionType.SERVICE_MANAGED assert response.global_access_allowed is True + assert response.replica_zone == "replica_zone_value" + assert response.zone == "zone_value" def test_get_storage_pool_empty_call(): @@ -2265,6 +2269,8 @@ async def test_get_storage_pool_empty_call_async(): psa_range="psa_range_value", encryption_type=common.EncryptionType.SERVICE_MANAGED, global_access_allowed=True, + replica_zone="replica_zone_value", + zone="zone_value", ) ) response = await client.get_storage_pool() @@ -2347,6 +2353,8 @@ async def test_get_storage_pool_async( psa_range="psa_range_value", encryption_type=common.EncryptionType.SERVICE_MANAGED, global_access_allowed=True, + replica_zone="replica_zone_value", + zone="zone_value", ) ) response = await client.get_storage_pool(request) @@ -2374,6 +2382,8 @@ async def test_get_storage_pool_async( assert response.psa_range == "psa_range_value" assert response.encryption_type == common.EncryptionType.SERVICE_MANAGED assert response.global_access_allowed is True + assert response.replica_zone == "replica_zone_value" + assert response.zone == "zone_value" @pytest.mark.asyncio @@ -3917,6 +3927,10 @@ def test_get_volume(request_type, transport: str = "grpc"): encryption_type=common.EncryptionType.SERVICE_MANAGED, has_replication=True, restricted_actions=[volume.RestrictedAction.DELETE], + large_capacity=True, + multiple_endpoints=True, + replica_zone="replica_zone_value", + zone="zone_value", ) response = client.get_volume(request) @@ -3952,6 +3966,10 @@ def test_get_volume(request_type, transport: str = "grpc"): assert response.encryption_type == common.EncryptionType.SERVICE_MANAGED assert response.has_replication is True assert response.restricted_actions == [volume.RestrictedAction.DELETE] + assert response.large_capacity is True + assert response.multiple_endpoints is True + assert response.replica_zone == "replica_zone_value" + assert response.zone == "zone_value" def test_get_volume_empty_call(): @@ -4074,6 +4092,10 @@ async def test_get_volume_empty_call_async(): encryption_type=common.EncryptionType.SERVICE_MANAGED, has_replication=True, restricted_actions=[volume.RestrictedAction.DELETE], + large_capacity=True, + multiple_endpoints=True, + replica_zone="replica_zone_value", + zone="zone_value", ) ) response = await client.get_volume() @@ -4163,6 +4185,10 @@ async def test_get_volume_async( encryption_type=common.EncryptionType.SERVICE_MANAGED, has_replication=True, restricted_actions=[volume.RestrictedAction.DELETE], + large_capacity=True, + multiple_endpoints=True, + replica_zone="replica_zone_value", + zone="zone_value", ) ) response = await client.get_volume(request) @@ -4199,6 +4225,10 @@ async def test_get_volume_async( assert response.encryption_type == common.EncryptionType.SERVICE_MANAGED assert response.has_replication is True assert response.restricted_actions == [volume.RestrictedAction.DELETE] + assert response.large_capacity is True + assert response.multiple_endpoints is True + assert response.replica_zone == "replica_zone_value" + assert response.zone == "zone_value" @pytest.mark.asyncio @@ -8453,6 +8483,7 @@ def test_get_active_directory(request_type, transport: str = "grpc"): username="username_value", password="password_value", backup_operators=["backup_operators_value"], + administrators=["administrators_value"], security_operators=["security_operators_value"], kdc_hostname="kdc_hostname_value", kdc_ip="kdc_ip_value", @@ -8483,6 +8514,7 @@ def test_get_active_directory(request_type, transport: str = "grpc"): assert response.username == "username_value" assert response.password == "password_value" assert response.backup_operators == ["backup_operators_value"] + assert response.administrators == ["administrators_value"] assert response.security_operators == ["security_operators_value"] assert response.kdc_hostname == "kdc_hostname_value" assert response.kdc_ip == "kdc_ip_value" @@ -8610,6 +8642,7 @@ async def test_get_active_directory_empty_call_async(): username="username_value", password="password_value", backup_operators=["backup_operators_value"], + administrators=["administrators_value"], security_operators=["security_operators_value"], kdc_hostname="kdc_hostname_value", kdc_ip="kdc_ip_value", @@ -8699,6 +8732,7 @@ async def test_get_active_directory_async( username="username_value", password="password_value", backup_operators=["backup_operators_value"], + administrators=["administrators_value"], security_operators=["security_operators_value"], kdc_hostname="kdc_hostname_value", kdc_ip="kdc_ip_value", @@ -8730,6 +8764,7 @@ async def test_get_active_directory_async( assert response.username == "username_value" assert response.password == "password_value" assert response.backup_operators == ["backup_operators_value"] + assert response.administrators == ["administrators_value"] assert response.security_operators == ["security_operators_value"] assert response.kdc_hostname == "kdc_hostname_value" assert response.kdc_ip == "kdc_ip_value" @@ -22774,6 +22809,8 @@ def test_create_storage_pool_rest(request_type): "psa_range": "psa_range_value", "encryption_type": 1, "global_access_allowed": True, + "replica_zone": "replica_zone_value", + "zone": "zone_value", } # The version of a generated dependency at test runtime may differ from the version used during generation. # Delete any fields which are not present in the current runtime dependency @@ -23193,6 +23230,8 @@ def test_get_storage_pool_rest(request_type): psa_range="psa_range_value", encryption_type=common.EncryptionType.SERVICE_MANAGED, global_access_allowed=True, + replica_zone="replica_zone_value", + zone="zone_value", ) # Wrap the value into a proper Response obj @@ -23223,6 +23262,8 @@ def test_get_storage_pool_rest(request_type): assert response.psa_range == "psa_range_value" assert response.encryption_type == common.EncryptionType.SERVICE_MANAGED assert response.global_access_allowed is True + assert response.replica_zone == "replica_zone_value" + assert response.zone == "zone_value" def test_get_storage_pool_rest_use_cached_wrapped_rpc(): @@ -23527,6 +23568,8 @@ def test_update_storage_pool_rest(request_type): "psa_range": "psa_range_value", "encryption_type": 1, "global_access_allowed": True, + "replica_zone": "replica_zone_value", + "zone": "zone_value", } # The version of a generated dependency at test runtime may differ from the version used during generation. # Delete any fields which are not present in the current runtime dependency @@ -24617,6 +24660,10 @@ def test_get_volume_rest(request_type): encryption_type=common.EncryptionType.SERVICE_MANAGED, has_replication=True, restricted_actions=[volume.RestrictedAction.DELETE], + large_capacity=True, + multiple_endpoints=True, + replica_zone="replica_zone_value", + zone="zone_value", ) # Wrap the value into a proper Response obj @@ -24656,6 +24703,10 @@ def test_get_volume_rest(request_type): assert response.encryption_type == common.EncryptionType.SERVICE_MANAGED assert response.has_replication is True assert response.restricted_actions == [volume.RestrictedAction.DELETE] + assert response.large_capacity is True + assert response.multiple_endpoints is True + assert response.replica_zone == "replica_zone_value" + assert response.zone == "zone_value" def test_get_volume_rest_use_cached_wrapped_rpc(): @@ -25013,7 +25064,11 @@ def test_create_volume_rest(request_type): "backup_chain_bytes": 1886, }, "restricted_actions": [1], + "large_capacity": True, + "multiple_endpoints": True, "tiering_policy": {"tier_action": 1, "cooling_threshold_days": 2343}, + "replica_zone": "replica_zone_value", + "zone": "zone_value", } # The version of a generated dependency at test runtime may differ from the version used during generation. # Delete any fields which are not present in the current runtime dependency @@ -25493,7 +25548,11 @@ def test_update_volume_rest(request_type): "backup_chain_bytes": 1886, }, "restricted_actions": [1], + "large_capacity": True, + "multiple_endpoints": True, "tiering_policy": {"tier_action": 1, "cooling_threshold_days": 2343}, + "replica_zone": "replica_zone_value", + "zone": "zone_value", } # The version of a generated dependency at test runtime may differ from the version used during generation. # Delete any fields which are not present in the current runtime dependency @@ -28607,6 +28666,7 @@ def test_get_active_directory_rest(request_type): username="username_value", password="password_value", backup_operators=["backup_operators_value"], + administrators=["administrators_value"], security_operators=["security_operators_value"], kdc_hostname="kdc_hostname_value", kdc_ip="kdc_ip_value", @@ -28641,6 +28701,7 @@ def test_get_active_directory_rest(request_type): assert response.username == "username_value" assert response.password == "password_value" assert response.backup_operators == ["backup_operators_value"] + assert response.administrators == ["administrators_value"] assert response.security_operators == ["security_operators_value"] assert response.kdc_hostname == "kdc_hostname_value" assert response.kdc_ip == "kdc_ip_value" @@ -28948,6 +29009,7 @@ def test_create_active_directory_rest(request_type): "username": "username_value", "password": "password_value", "backup_operators": ["backup_operators_value1", "backup_operators_value2"], + "administrators": ["administrators_value1", "administrators_value2"], "security_operators": [ "security_operators_value1", "security_operators_value2", @@ -29379,6 +29441,7 @@ def test_update_active_directory_rest(request_type): "username": "username_value", "password": "password_value", "backup_operators": ["backup_operators_value1", "backup_operators_value2"], + "administrators": ["administrators_value1", "administrators_value2"], "security_operators": [ "security_operators_value1", "security_operators_value2",