diff --git a/packages/google-cloud-netapp/README.md b/packages/google-cloud-netapp/README.md index d27dba187c1..6cfd4168531 100644 --- a/packages/google-cloud-netapp/README.md +++ b/packages/google-cloud-netapp/README.md @@ -135,6 +135,7 @@ Samples are in the [`samples/`](https://github.com/googleapis/google-cloud-node/ | Net_app.delete_storage_pool | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-netapp/samples/generated/v1/net_app.delete_storage_pool.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-netapp/samples/generated/v1/net_app.delete_storage_pool.js,packages/google-cloud-netapp/samples/README.md) | | Net_app.delete_volume | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-netapp/samples/generated/v1/net_app.delete_volume.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-netapp/samples/generated/v1/net_app.delete_volume.js,packages/google-cloud-netapp/samples/README.md) | | Net_app.encrypt_volumes | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-netapp/samples/generated/v1/net_app.encrypt_volumes.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-netapp/samples/generated/v1/net_app.encrypt_volumes.js,packages/google-cloud-netapp/samples/README.md) | +| Net_app.establish_peering | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-netapp/samples/generated/v1/net_app.establish_peering.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-netapp/samples/generated/v1/net_app.establish_peering.js,packages/google-cloud-netapp/samples/README.md) | | Net_app.get_active_directory | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-netapp/samples/generated/v1/net_app.get_active_directory.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-netapp/samples/generated/v1/net_app.get_active_directory.js,packages/google-cloud-netapp/samples/README.md) | | Net_app.get_backup | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-netapp/samples/generated/v1/net_app.get_backup.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-netapp/samples/generated/v1/net_app.get_backup.js,packages/google-cloud-netapp/samples/README.md) | | Net_app.get_backup_policy | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-netapp/samples/generated/v1/net_app.get_backup_policy.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-netapp/samples/generated/v1/net_app.get_backup_policy.js,packages/google-cloud-netapp/samples/README.md) | @@ -158,6 +159,7 @@ Samples are in the [`samples/`](https://github.com/googleapis/google-cloud-node/ | Net_app.revert_volume | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-netapp/samples/generated/v1/net_app.revert_volume.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-netapp/samples/generated/v1/net_app.revert_volume.js,packages/google-cloud-netapp/samples/README.md) | | Net_app.stop_replication | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-netapp/samples/generated/v1/net_app.stop_replication.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-netapp/samples/generated/v1/net_app.stop_replication.js,packages/google-cloud-netapp/samples/README.md) | | Net_app.switch_active_replica_zone | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-netapp/samples/generated/v1/net_app.switch_active_replica_zone.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-netapp/samples/generated/v1/net_app.switch_active_replica_zone.js,packages/google-cloud-netapp/samples/README.md) | +| Net_app.sync_replication | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-netapp/samples/generated/v1/net_app.sync_replication.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-netapp/samples/generated/v1/net_app.sync_replication.js,packages/google-cloud-netapp/samples/README.md) | | Net_app.update_active_directory | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-netapp/samples/generated/v1/net_app.update_active_directory.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-netapp/samples/generated/v1/net_app.update_active_directory.js,packages/google-cloud-netapp/samples/README.md) | | Net_app.update_backup | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-netapp/samples/generated/v1/net_app.update_backup.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-netapp/samples/generated/v1/net_app.update_backup.js,packages/google-cloud-netapp/samples/README.md) | | Net_app.update_backup_policy | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-netapp/samples/generated/v1/net_app.update_backup_policy.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-netapp/samples/generated/v1/net_app.update_backup_policy.js,packages/google-cloud-netapp/samples/README.md) | diff --git a/packages/google-cloud-netapp/protos/google/cloud/netapp/v1/active_directory.proto b/packages/google-cloud-netapp/protos/google/cloud/netapp/v1/active_directory.proto index 9f3d3027334..812d6176da3 100644 --- a/packages/google-cloud-netapp/protos/google/cloud/netapp/v1/active_directory.proto +++ b/packages/google-cloud-netapp/protos/google/cloud/netapp/v1/active_directory.proto @@ -90,9 +90,9 @@ message CreateActiveDirectoryRequest { ActiveDirectory active_directory = 2 [(google.api.field_behavior) = REQUIRED]; // Required. ID of the active directory 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 resource. Must contain only letters, numbers and hyphen, with the + // first character a letter , the last a letter or a number, and a 63 + // character maximum. string active_directory_id = 3 [(google.api.field_behavior) = REQUIRED]; } @@ -152,6 +152,9 @@ message ActiveDirectory { // Active Directory State is Error ERROR = 6; + + // Active Directory State is Diagnosing. + DIAGNOSING = 7; } // Identifier. The resource name of the active directory. diff --git a/packages/google-cloud-netapp/protos/google/cloud/netapp/v1/backup.proto b/packages/google-cloud-netapp/protos/google/cloud/netapp/v1/backup.proto index 4ee25fbb3fc..abbcbd5a6f1 100644 --- a/packages/google-cloud-netapp/protos/google/cloud/netapp/v1/backup.proto +++ b/packages/google-cloud-netapp/protos/google/cloud/netapp/v1/backup.proto @@ -199,8 +199,8 @@ message CreateBackupRequest { // 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 + // Must contain only letters, numbers and hyphen, with the first + // character a letter, the last a letter or a // number, and a 63 character maximum. string backup_id = 2 [(google.api.field_behavior) = REQUIRED]; diff --git a/packages/google-cloud-netapp/protos/google/cloud/netapp/v1/backup_policy.proto b/packages/google-cloud-netapp/protos/google/cloud/netapp/v1/backup_policy.proto index 3bba8049a7b..21987eb4b29 100644 --- a/packages/google-cloud-netapp/protos/google/cloud/netapp/v1/backup_policy.proto +++ b/packages/google-cloud-netapp/protos/google/cloud/netapp/v1/backup_policy.proto @@ -114,8 +114,8 @@ message CreateBackupPolicyRequest { // Required. The ID to use for the backup policy. // 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 + // Must contain only letters, numbers and hyphen, with the first + // character a letter, the last a letter or a // number, and a 63 character maximum. string backup_policy_id = 3 [(google.api.field_behavior) = REQUIRED]; } diff --git a/packages/google-cloud-netapp/protos/google/cloud/netapp/v1/backup_vault.proto b/packages/google-cloud-netapp/protos/google/cloud/netapp/v1/backup_vault.proto index b59464908c0..ae3be566264 100644 --- a/packages/google-cloud-netapp/protos/google/cloud/netapp/v1/backup_vault.proto +++ b/packages/google-cloud-netapp/protos/google/cloud/netapp/v1/backup_vault.proto @@ -142,8 +142,8 @@ message CreateBackupVaultRequest { // 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 + // Must contain only letters, numbers and hyphen, with the first + // character a letter, the last a letter or a // number, and a 63 character maximum. string backup_vault_id = 2 [(google.api.field_behavior) = REQUIRED]; diff --git a/packages/google-cloud-netapp/protos/google/cloud/netapp/v1/cloud_netapp_service.proto b/packages/google-cloud-netapp/protos/google/cloud/netapp/v1/cloud_netapp_service.proto index c542669a805..d4096a9107d 100644 --- a/packages/google-cloud-netapp/protos/google/cloud/netapp/v1/cloud_netapp_service.proto +++ b/packages/google-cloud-netapp/protos/google/cloud/netapp/v1/cloud_netapp_service.proto @@ -487,6 +487,33 @@ service NetApp { }; } + // Establish replication peering. + rpc EstablishPeering(EstablishPeeringRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/volumes/*/replications/*}:establishPeering" + body: "*" + }; + option (google.longrunning.operation_info) = { + response_type: "Replication" + metadata_type: "OperationMetadata" + }; + } + + // Syncs the replication. This will invoke one time volume data transfer from + // source to destination. + rpc SyncReplication(SyncReplicationRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/volumes/*/replications/*}:sync" + body: "*" + }; + option (google.longrunning.operation_info) = { + response_type: "Replication" + metadata_type: "OperationMetadata" + }; + } + // Creates new backup vault rpc CreateBackupVault(CreateBackupVaultRequest) returns (google.longrunning.Operation) { diff --git a/packages/google-cloud-netapp/protos/google/cloud/netapp/v1/kms.proto b/packages/google-cloud-netapp/protos/google/cloud/netapp/v1/kms.proto index dc993d8910d..6896e00ec23 100644 --- a/packages/google-cloud-netapp/protos/google/cloud/netapp/v1/kms.proto +++ b/packages/google-cloud-netapp/protos/google/cloud/netapp/v1/kms.proto @@ -87,9 +87,9 @@ message CreateKmsConfigRequest { ]; // 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. + // resource. Must contain only letters, numbers and hyphen, with the first + // character a letter, the last a letter or a + // number, and a 63 character maximum. string kms_config_id = 2 [(google.api.field_behavior) = REQUIRED]; // Required. The required parameters to create a new KmsConfig. diff --git a/packages/google-cloud-netapp/protos/google/cloud/netapp/v1/replication.proto b/packages/google-cloud-netapp/protos/google/cloud/netapp/v1/replication.proto index ea5be5f731b..7743f88ef0d 100644 --- a/packages/google-cloud-netapp/protos/google/cloud/netapp/v1/replication.proto +++ b/packages/google-cloud-netapp/protos/google/cloud/netapp/v1/replication.proto @@ -18,6 +18,7 @@ package google.cloud.netapp.v1; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; +import "google/cloud/netapp/v1/volume.proto"; import "google/protobuf/duration.proto"; import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; @@ -90,6 +91,12 @@ message Replication { // Replication is in error state. ERROR = 6; + + // Replication is waiting for cluster peering to be established. + PENDING_CLUSTER_PEERING = 8; + + // Replication is waiting for SVM peering to be established. + PENDING_SVM_PEERING = 9; } // New enum values may be added in future to support different replication @@ -140,6 +147,24 @@ message Replication { // Incremental replication is in progress. TRANSFERRING = 4; + + // Baseline replication is in progress. + BASELINE_TRANSFERRING = 5; + + // Replication is aborted. + ABORTED = 6; + } + + // Hybrid replication type. + enum HybridReplicationType { + // Unspecified hybrid replication type. + HYBRID_REPLICATION_TYPE_UNSPECIFIED = 0; + + // Hybrid replication type for migration. + MIGRATION = 1; + + // Hybrid replication type for continuous replication. + CONTINUOUS_REPLICATION = 2; } // Identifier. The resource name of the Replication. @@ -202,6 +227,35 @@ message Replication { (google.api.field_behavior) = OUTPUT_ONLY, (google.api.resource_reference) = { type: "netapp.googleapis.com/Volume" } ]; + + // Output only. Hybrid peering details. + HybridPeeringDetails hybrid_peering_details = 16 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Location of the user cluster. + string cluster_location = 18 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. Type of the hybrid replication. + HybridReplicationType hybrid_replication_type = 19 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// HybridPeeringDetails contains details about the hybrid peering. +message HybridPeeringDetails { + // Optional. IP address of the subnet. + string subnet_ip = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Copy-paste-able commands to be used on user's ONTAP to accept + // peering requests. + string command = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Expiration time for the peering command to be executed on user's + // ONTAP. + google.protobuf.Timestamp command_expiry_time = 3 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Temporary passphrase generated to accept cluster peering command. + string passphrase = 4 [(google.api.field_behavior) = OPTIONAL]; } // ListReplications lists replications. @@ -278,6 +332,10 @@ message DestinationVolumeParameters { // Description for the destination volume. optional string description = 4; + + // Optional. Tiering policy for the volume. + optional TieringPolicy tiering_policy = 5 + [(google.api.field_behavior) = OPTIONAL]; } // CreateReplicationRequest creates a replication. @@ -295,9 +353,9 @@ message CreateReplicationRequest { Replication replication = 2 [(google.api.field_behavior) = REQUIRED]; // Required. ID of the replication 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. + // resource. Must contain only letters, numbers and hyphen, with the first + // character a letter, the last a letter or a + // number, and a 63 character maximum. string replication_id = 3 [(google.api.field_behavior) = REQUIRED]; } @@ -368,3 +426,44 @@ message ReverseReplicationDirectionRequest { } ]; } + +// EstablishPeeringRequest establishes cluster and svm peerings between the +// source and the destination replications. +message EstablishPeeringRequest { + // Required. The resource name of the replication, in the format of + // projects/{project_id}/locations/{location}/volumes/{volume_id}/replications/{replication_id}. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "netapp.googleapis.com/Replication" + } + ]; + + // Required. Name of the user's local source cluster to be peered with the + // destination cluster. + string peer_cluster_name = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. Name of the user's local source vserver svm to be peered with the + // destination vserver svm. + string peer_svm_name = 3 [(google.api.field_behavior) = REQUIRED]; + + // Optional. List of IPv4 ip addresses to be used for peering. + repeated string peer_ip_addresses = 4 + [(google.api.field_behavior) = OPTIONAL]; + + // Required. Name of the user's local source volume to be peered with the + // destination volume. + string peer_volume_name = 5 [(google.api.field_behavior) = REQUIRED]; +} + +// SyncReplicationRequest syncs the replication from source to destination. +message SyncReplicationRequest { + // Required. The resource name of the replication, in the format of + // projects/{project_id}/locations/{location}/volumes/{volume_id}/replications/{replication_id}. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "netapp.googleapis.com/Replication" + } + ]; +} diff --git a/packages/google-cloud-netapp/protos/google/cloud/netapp/v1/snapshot.proto b/packages/google-cloud-netapp/protos/google/cloud/netapp/v1/snapshot.proto index 9cdfa5a09ee..4e316294b05 100644 --- a/packages/google-cloud-netapp/protos/google/cloud/netapp/v1/snapshot.proto +++ b/packages/google-cloud-netapp/protos/google/cloud/netapp/v1/snapshot.proto @@ -93,9 +93,9 @@ message CreateSnapshotRequest { Snapshot snapshot = 2 [(google.api.field_behavior) = REQUIRED]; // 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. + // resource. Must contain only letters, numbers and hyphen, with the first + // character a letter, the last a letter or a + // number, and a 63 character maximum. string snapshot_id = 3 [(google.api.field_behavior) = REQUIRED]; } diff --git a/packages/google-cloud-netapp/protos/google/cloud/netapp/v1/storage_pool.proto b/packages/google-cloud-netapp/protos/google/cloud/netapp/v1/storage_pool.proto index 7dfcf957746..90d74561598 100644 --- a/packages/google-cloud-netapp/protos/google/cloud/netapp/v1/storage_pool.proto +++ b/packages/google-cloud-netapp/protos/google/cloud/netapp/v1/storage_pool.proto @@ -89,9 +89,9 @@ message CreateStoragePoolRequest { ]; // 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. + // parent resource. Must contain only letters, numbers and hyphen, with the + // first character a letter, the last a letter or a number, and a 63 character + // maximum. string storage_pool_id = 2 [(google.api.field_behavior) = REQUIRED]; // Required. The required parameters to create a new storage pool. diff --git a/packages/google-cloud-netapp/protos/google/cloud/netapp/v1/volume.proto b/packages/google-cloud-netapp/protos/google/cloud/netapp/v1/volume.proto index bbea7802703..a93c479ba8f 100644 --- a/packages/google-cloud-netapp/protos/google/cloud/netapp/v1/volume.proto +++ b/packages/google-cloud-netapp/protos/google/cloud/netapp/v1/volume.proto @@ -17,6 +17,7 @@ syntax = "proto3"; package google.cloud.netapp.v1; import "google/api/field_behavior.proto"; +import "google/api/field_info.proto"; import "google/api/resource.proto"; import "google/cloud/netapp/v1/common.proto"; import "google/protobuf/field_mask.proto"; @@ -171,9 +172,9 @@ message CreateVolumeRequest { ]; // 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. + // resource. Must contain only letters, numbers and hyphen, with the first + // character a letter, the last a letter or a number, + // and a 63 character maximum. string volume_id = 2 [(google.api.field_behavior) = REQUIRED]; // Required. The volume being created. @@ -257,6 +258,14 @@ message Volume { // Volume State is Error ERROR = 7; + + // Volume State is Preparing. Note that this is different from CREATING + // where CREATING means the volume is being created, while PREPARING means + // the volume is created and now being prepared for the replication. + PREPARING = 8; + + // Volume State is Read Only + READ_ONLY = 9; } // Identifier. Name of the volume @@ -405,6 +414,10 @@ message Volume { // Output only. Size of the volume cold tier data in GiB. int64 cold_tier_size_gib = 39 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. The Hybrid Replication parameters for the volume. + HybridReplicationParameters hybrid_replication_parameters = 40 + [(google.api.field_behavior) = OPTIONAL]; } // Defines the export policy for the volume. @@ -629,3 +642,42 @@ message TieringPolicy { optional int32 cooling_threshold_days = 2 [(google.api.field_behavior) = OPTIONAL]; } + +// The Hybrid Replication parameters for the volume. +message HybridReplicationParameters { + // Required. Desired Identifier (name) of the replication which will be created for this volume. + // Format: + // `projects/{project_id}/locations/{location}/volumes/{volume_id}/replications/{replication_id}` + string replication = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "netapp.googleapis.com/Replication" + } + ]; + + // Required. Name of the user's local source volume to be peered with the + // destination volume. + string peer_volume_name = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. Name of the user's local source cluster to be peered with the + // destination cluster. + string peer_cluster_name = 3 [(google.api.field_behavior) = REQUIRED]; + + // Required. Name of the user's local source vserver svm to be peered with the + // destination vserver svm. + string peer_svm_name = 4 [(google.api.field_behavior) = REQUIRED]; + + // Required. List of node ip addresses to be peered with. + repeated string peer_ip_addresses = 5 + [(google.api.field_behavior) = REQUIRED]; + + // Optional. Name of source cluster location associated with the Hybrid + // replication. This is a free-form field for the display purpose only. + string cluster_location = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Description of the replication. + string description = 7 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Labels to be added to the replication as the key value pairs. + map labels = 8 [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/packages/google-cloud-netapp/protos/protos.d.ts b/packages/google-cloud-netapp/protos/protos.d.ts index e26d1c2d21e..fb339052399 100644 --- a/packages/google-cloud-netapp/protos/protos.d.ts +++ b/packages/google-cloud-netapp/protos/protos.d.ts @@ -895,7 +895,8 @@ export namespace google { UPDATING = 3, IN_USE = 4, DELETING = 5, - ERROR = 6 + ERROR = 6, + DIAGNOSING = 7 } } @@ -3836,6 +3837,34 @@ export namespace google { */ public reverseReplicationDirection(request: google.cloud.netapp.v1.IReverseReplicationDirectionRequest): Promise; + /** + * Calls EstablishPeering. + * @param request EstablishPeeringRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public establishPeering(request: google.cloud.netapp.v1.IEstablishPeeringRequest, callback: google.cloud.netapp.v1.NetApp.EstablishPeeringCallback): void; + + /** + * Calls EstablishPeering. + * @param request EstablishPeeringRequest message or plain object + * @returns Promise + */ + public establishPeering(request: google.cloud.netapp.v1.IEstablishPeeringRequest): Promise; + + /** + * Calls SyncReplication. + * @param request SyncReplicationRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public syncReplication(request: google.cloud.netapp.v1.ISyncReplicationRequest, callback: google.cloud.netapp.v1.NetApp.SyncReplicationCallback): void; + + /** + * Calls SyncReplication. + * @param request SyncReplicationRequest message or plain object + * @returns Promise + */ + public syncReplication(request: google.cloud.netapp.v1.ISyncReplicationRequest): Promise; + /** * Calls CreateBackupVault. * @param request CreateBackupVaultRequest message or plain object @@ -4308,6 +4337,20 @@ export namespace google { */ type ReverseReplicationDirectionCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + /** + * Callback as used by {@link google.cloud.netapp.v1.NetApp|establishPeering}. + * @param error Error, if any + * @param [response] Operation + */ + type EstablishPeeringCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + + /** + * Callback as used by {@link google.cloud.netapp.v1.NetApp|syncReplication}. + * @param error Error, if any + * @param [response] Operation + */ + type SyncReplicationCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + /** * Callback as used by {@link google.cloud.netapp.v1.NetApp|createBackupVault}. * @param error Error, if any @@ -5857,6 +5900,15 @@ export namespace google { /** Replication sourceVolume */ sourceVolume?: (string|null); + + /** Replication hybridPeeringDetails */ + hybridPeeringDetails?: (google.cloud.netapp.v1.IHybridPeeringDetails|null); + + /** Replication clusterLocation */ + clusterLocation?: (string|null); + + /** Replication hybridReplicationType */ + hybridReplicationType?: (google.cloud.netapp.v1.Replication.HybridReplicationType|keyof typeof google.cloud.netapp.v1.Replication.HybridReplicationType|null); } /** Represents a Replication. */ @@ -5910,6 +5962,15 @@ export namespace google { /** Replication sourceVolume. */ public sourceVolume: string; + /** Replication hybridPeeringDetails. */ + public hybridPeeringDetails?: (google.cloud.netapp.v1.IHybridPeeringDetails|null); + + /** Replication clusterLocation. */ + public clusterLocation: string; + + /** Replication hybridReplicationType. */ + public hybridReplicationType: (google.cloud.netapp.v1.Replication.HybridReplicationType|keyof typeof google.cloud.netapp.v1.Replication.HybridReplicationType); + /** Replication _healthy. */ public _healthy?: "healthy"; @@ -6003,7 +6064,9 @@ export namespace google { READY = 2, UPDATING = 3, DELETING = 5, - ERROR = 6 + ERROR = 6, + PENDING_CLUSTER_PEERING = 8, + PENDING_SVM_PEERING = 9 } /** ReplicationRole enum. */ @@ -6027,8 +6090,132 @@ export namespace google { PREPARING = 1, MIRRORED = 2, STOPPED = 3, - TRANSFERRING = 4 + TRANSFERRING = 4, + BASELINE_TRANSFERRING = 5, + ABORTED = 6 } + + /** HybridReplicationType enum. */ + enum HybridReplicationType { + HYBRID_REPLICATION_TYPE_UNSPECIFIED = 0, + MIGRATION = 1, + CONTINUOUS_REPLICATION = 2 + } + } + + /** Properties of a HybridPeeringDetails. */ + interface IHybridPeeringDetails { + + /** HybridPeeringDetails subnetIp */ + subnetIp?: (string|null); + + /** HybridPeeringDetails command */ + command?: (string|null); + + /** HybridPeeringDetails commandExpiryTime */ + commandExpiryTime?: (google.protobuf.ITimestamp|null); + + /** HybridPeeringDetails passphrase */ + passphrase?: (string|null); + } + + /** Represents a HybridPeeringDetails. */ + class HybridPeeringDetails implements IHybridPeeringDetails { + + /** + * Constructs a new HybridPeeringDetails. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.netapp.v1.IHybridPeeringDetails); + + /** HybridPeeringDetails subnetIp. */ + public subnetIp: string; + + /** HybridPeeringDetails command. */ + public command: string; + + /** HybridPeeringDetails commandExpiryTime. */ + public commandExpiryTime?: (google.protobuf.ITimestamp|null); + + /** HybridPeeringDetails passphrase. */ + public passphrase: string; + + /** + * Creates a new HybridPeeringDetails instance using the specified properties. + * @param [properties] Properties to set + * @returns HybridPeeringDetails instance + */ + public static create(properties?: google.cloud.netapp.v1.IHybridPeeringDetails): google.cloud.netapp.v1.HybridPeeringDetails; + + /** + * Encodes the specified HybridPeeringDetails message. Does not implicitly {@link google.cloud.netapp.v1.HybridPeeringDetails.verify|verify} messages. + * @param message HybridPeeringDetails message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.netapp.v1.IHybridPeeringDetails, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified HybridPeeringDetails message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.HybridPeeringDetails.verify|verify} messages. + * @param message HybridPeeringDetails message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.netapp.v1.IHybridPeeringDetails, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a HybridPeeringDetails message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns HybridPeeringDetails + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.netapp.v1.HybridPeeringDetails; + + /** + * Decodes a HybridPeeringDetails message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns HybridPeeringDetails + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.netapp.v1.HybridPeeringDetails; + + /** + * Verifies a HybridPeeringDetails message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a HybridPeeringDetails message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns HybridPeeringDetails + */ + public static fromObject(object: { [k: string]: any }): google.cloud.netapp.v1.HybridPeeringDetails; + + /** + * Creates a plain object from a HybridPeeringDetails message. Also converts values to other types if specified. + * @param message HybridPeeringDetails + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.netapp.v1.HybridPeeringDetails, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this HybridPeeringDetails to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for HybridPeeringDetails + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a ListReplicationsRequest. */ @@ -6372,6 +6559,9 @@ export namespace google { /** DestinationVolumeParameters description */ description?: (string|null); + + /** DestinationVolumeParameters tieringPolicy */ + tieringPolicy?: (google.cloud.netapp.v1.ITieringPolicy|null); } /** Represents a DestinationVolumeParameters. */ @@ -6395,9 +6585,15 @@ export namespace google { /** DestinationVolumeParameters description. */ public description?: (string|null); + /** DestinationVolumeParameters tieringPolicy. */ + public tieringPolicy?: (google.cloud.netapp.v1.ITieringPolicy|null); + /** DestinationVolumeParameters _description. */ public _description?: "description"; + /** DestinationVolumeParameters _tieringPolicy. */ + public _tieringPolicy?: "tieringPolicy"; + /** * Creates a new DestinationVolumeParameters instance using the specified properties. * @param [properties] Properties to set @@ -7082,4348 +7278,4713 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListSnapshotsRequest. */ - interface IListSnapshotsRequest { + /** Properties of an EstablishPeeringRequest. */ + interface IEstablishPeeringRequest { - /** ListSnapshotsRequest parent */ - parent?: (string|null); + /** EstablishPeeringRequest name */ + name?: (string|null); - /** ListSnapshotsRequest pageSize */ - pageSize?: (number|null); + /** EstablishPeeringRequest peerClusterName */ + peerClusterName?: (string|null); - /** ListSnapshotsRequest pageToken */ - pageToken?: (string|null); + /** EstablishPeeringRequest peerSvmName */ + peerSvmName?: (string|null); - /** ListSnapshotsRequest orderBy */ - orderBy?: (string|null); + /** EstablishPeeringRequest peerIpAddresses */ + peerIpAddresses?: (string[]|null); - /** ListSnapshotsRequest filter */ - filter?: (string|null); + /** EstablishPeeringRequest peerVolumeName */ + peerVolumeName?: (string|null); } - /** Represents a ListSnapshotsRequest. */ - class ListSnapshotsRequest implements IListSnapshotsRequest { + /** Represents an EstablishPeeringRequest. */ + class EstablishPeeringRequest implements IEstablishPeeringRequest { /** - * Constructs a new ListSnapshotsRequest. + * Constructs a new EstablishPeeringRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.netapp.v1.IListSnapshotsRequest); + constructor(properties?: google.cloud.netapp.v1.IEstablishPeeringRequest); - /** ListSnapshotsRequest parent. */ - public parent: string; + /** EstablishPeeringRequest name. */ + public name: string; - /** ListSnapshotsRequest pageSize. */ - public pageSize: number; + /** EstablishPeeringRequest peerClusterName. */ + public peerClusterName: string; - /** ListSnapshotsRequest pageToken. */ - public pageToken: string; + /** EstablishPeeringRequest peerSvmName. */ + public peerSvmName: string; - /** ListSnapshotsRequest orderBy. */ - public orderBy: string; + /** EstablishPeeringRequest peerIpAddresses. */ + public peerIpAddresses: string[]; - /** ListSnapshotsRequest filter. */ - public filter: string; + /** EstablishPeeringRequest peerVolumeName. */ + public peerVolumeName: string; /** - * Creates a new ListSnapshotsRequest instance using the specified properties. + * Creates a new EstablishPeeringRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListSnapshotsRequest instance + * @returns EstablishPeeringRequest instance */ - public static create(properties?: google.cloud.netapp.v1.IListSnapshotsRequest): google.cloud.netapp.v1.ListSnapshotsRequest; + public static create(properties?: google.cloud.netapp.v1.IEstablishPeeringRequest): google.cloud.netapp.v1.EstablishPeeringRequest; /** - * Encodes the specified ListSnapshotsRequest message. Does not implicitly {@link google.cloud.netapp.v1.ListSnapshotsRequest.verify|verify} messages. - * @param message ListSnapshotsRequest message or plain object to encode + * Encodes the specified EstablishPeeringRequest message. Does not implicitly {@link google.cloud.netapp.v1.EstablishPeeringRequest.verify|verify} messages. + * @param message EstablishPeeringRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.netapp.v1.IListSnapshotsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.netapp.v1.IEstablishPeeringRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListSnapshotsRequest message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.ListSnapshotsRequest.verify|verify} messages. - * @param message ListSnapshotsRequest message or plain object to encode + * Encodes the specified EstablishPeeringRequest message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.EstablishPeeringRequest.verify|verify} messages. + * @param message EstablishPeeringRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.netapp.v1.IListSnapshotsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.netapp.v1.IEstablishPeeringRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListSnapshotsRequest message from the specified reader or buffer. + * Decodes an EstablishPeeringRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListSnapshotsRequest + * @returns EstablishPeeringRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.netapp.v1.ListSnapshotsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.netapp.v1.EstablishPeeringRequest; /** - * Decodes a ListSnapshotsRequest message from the specified reader or buffer, length delimited. + * Decodes an EstablishPeeringRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListSnapshotsRequest + * @returns EstablishPeeringRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.netapp.v1.ListSnapshotsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.netapp.v1.EstablishPeeringRequest; /** - * Verifies a ListSnapshotsRequest message. + * Verifies an EstablishPeeringRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListSnapshotsRequest message from a plain object. Also converts values to their respective internal types. + * Creates an EstablishPeeringRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListSnapshotsRequest + * @returns EstablishPeeringRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.netapp.v1.ListSnapshotsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.netapp.v1.EstablishPeeringRequest; /** - * Creates a plain object from a ListSnapshotsRequest message. Also converts values to other types if specified. - * @param message ListSnapshotsRequest + * Creates a plain object from an EstablishPeeringRequest message. Also converts values to other types if specified. + * @param message EstablishPeeringRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.netapp.v1.ListSnapshotsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.netapp.v1.EstablishPeeringRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListSnapshotsRequest to JSON. + * Converts this EstablishPeeringRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListSnapshotsRequest + * Gets the default type url for EstablishPeeringRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListSnapshotsResponse. */ - interface IListSnapshotsResponse { - - /** ListSnapshotsResponse snapshots */ - snapshots?: (google.cloud.netapp.v1.ISnapshot[]|null); - - /** ListSnapshotsResponse nextPageToken */ - nextPageToken?: (string|null); + /** Properties of a SyncReplicationRequest. */ + interface ISyncReplicationRequest { - /** ListSnapshotsResponse unreachable */ - unreachable?: (string[]|null); + /** SyncReplicationRequest name */ + name?: (string|null); } - /** Represents a ListSnapshotsResponse. */ - class ListSnapshotsResponse implements IListSnapshotsResponse { + /** Represents a SyncReplicationRequest. */ + class SyncReplicationRequest implements ISyncReplicationRequest { /** - * Constructs a new ListSnapshotsResponse. + * Constructs a new SyncReplicationRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.netapp.v1.IListSnapshotsResponse); - - /** ListSnapshotsResponse snapshots. */ - public snapshots: google.cloud.netapp.v1.ISnapshot[]; - - /** ListSnapshotsResponse nextPageToken. */ - public nextPageToken: string; + constructor(properties?: google.cloud.netapp.v1.ISyncReplicationRequest); - /** ListSnapshotsResponse unreachable. */ - public unreachable: string[]; + /** SyncReplicationRequest name. */ + public name: string; /** - * Creates a new ListSnapshotsResponse instance using the specified properties. + * Creates a new SyncReplicationRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListSnapshotsResponse instance + * @returns SyncReplicationRequest instance */ - public static create(properties?: google.cloud.netapp.v1.IListSnapshotsResponse): google.cloud.netapp.v1.ListSnapshotsResponse; + public static create(properties?: google.cloud.netapp.v1.ISyncReplicationRequest): google.cloud.netapp.v1.SyncReplicationRequest; /** - * Encodes the specified ListSnapshotsResponse message. Does not implicitly {@link google.cloud.netapp.v1.ListSnapshotsResponse.verify|verify} messages. - * @param message ListSnapshotsResponse message or plain object to encode + * Encodes the specified SyncReplicationRequest message. Does not implicitly {@link google.cloud.netapp.v1.SyncReplicationRequest.verify|verify} messages. + * @param message SyncReplicationRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.netapp.v1.IListSnapshotsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.netapp.v1.ISyncReplicationRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListSnapshotsResponse message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.ListSnapshotsResponse.verify|verify} messages. - * @param message ListSnapshotsResponse message or plain object to encode + * Encodes the specified SyncReplicationRequest message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.SyncReplicationRequest.verify|verify} messages. + * @param message SyncReplicationRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.netapp.v1.IListSnapshotsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.netapp.v1.ISyncReplicationRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListSnapshotsResponse message from the specified reader or buffer. + * Decodes a SyncReplicationRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListSnapshotsResponse + * @returns SyncReplicationRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.netapp.v1.ListSnapshotsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.netapp.v1.SyncReplicationRequest; /** - * Decodes a ListSnapshotsResponse message from the specified reader or buffer, length delimited. + * Decodes a SyncReplicationRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListSnapshotsResponse + * @returns SyncReplicationRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.netapp.v1.ListSnapshotsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.netapp.v1.SyncReplicationRequest; /** - * Verifies a ListSnapshotsResponse message. + * Verifies a SyncReplicationRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListSnapshotsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a SyncReplicationRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListSnapshotsResponse + * @returns SyncReplicationRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.netapp.v1.ListSnapshotsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.netapp.v1.SyncReplicationRequest; /** - * Creates a plain object from a ListSnapshotsResponse message. Also converts values to other types if specified. - * @param message ListSnapshotsResponse + * Creates a plain object from a SyncReplicationRequest message. Also converts values to other types if specified. + * @param message SyncReplicationRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.netapp.v1.ListSnapshotsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.netapp.v1.SyncReplicationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListSnapshotsResponse to JSON. + * Converts this SyncReplicationRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListSnapshotsResponse + * Gets the default type url for SyncReplicationRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GetSnapshotRequest. */ - interface IGetSnapshotRequest { + /** Protocols enum. */ + enum Protocols { + PROTOCOLS_UNSPECIFIED = 0, + NFSV3 = 1, + NFSV4 = 2, + SMB = 3 + } - /** GetSnapshotRequest name */ - name?: (string|null); + /** AccessType enum. */ + enum AccessType { + ACCESS_TYPE_UNSPECIFIED = 0, + READ_ONLY = 1, + READ_WRITE = 2, + READ_NONE = 3 } - /** Represents a GetSnapshotRequest. */ - class GetSnapshotRequest implements IGetSnapshotRequest { + /** SMBSettings enum. */ + enum SMBSettings { + SMB_SETTINGS_UNSPECIFIED = 0, + ENCRYPT_DATA = 1, + BROWSABLE = 2, + CHANGE_NOTIFY = 3, + NON_BROWSABLE = 4, + OPLOCKS = 5, + SHOW_SNAPSHOT = 6, + SHOW_PREVIOUS_VERSIONS = 7, + ACCESS_BASED_ENUMERATION = 8, + CONTINUOUSLY_AVAILABLE = 9 + } - /** - * Constructs a new GetSnapshotRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.netapp.v1.IGetSnapshotRequest); + /** SecurityStyle enum. */ + enum SecurityStyle { + SECURITY_STYLE_UNSPECIFIED = 0, + NTFS = 1, + UNIX = 2 + } - /** GetSnapshotRequest name. */ - public name: string; + /** RestrictedAction enum. */ + enum RestrictedAction { + RESTRICTED_ACTION_UNSPECIFIED = 0, + DELETE = 1 + } + + /** Properties of a ListVolumesRequest. */ + interface IListVolumesRequest { + + /** ListVolumesRequest parent */ + parent?: (string|null); + + /** ListVolumesRequest pageSize */ + pageSize?: (number|null); + + /** ListVolumesRequest pageToken */ + pageToken?: (string|null); + + /** ListVolumesRequest filter */ + filter?: (string|null); + + /** ListVolumesRequest orderBy */ + orderBy?: (string|null); + } + + /** Represents a ListVolumesRequest. */ + class ListVolumesRequest implements IListVolumesRequest { /** - * Creates a new GetSnapshotRequest instance using the specified properties. + * Constructs a new ListVolumesRequest. * @param [properties] Properties to set - * @returns GetSnapshotRequest instance */ - public static create(properties?: google.cloud.netapp.v1.IGetSnapshotRequest): google.cloud.netapp.v1.GetSnapshotRequest; + constructor(properties?: google.cloud.netapp.v1.IListVolumesRequest); + + /** ListVolumesRequest parent. */ + public parent: string; + + /** ListVolumesRequest pageSize. */ + public pageSize: number; + + /** ListVolumesRequest pageToken. */ + public pageToken: string; + + /** ListVolumesRequest filter. */ + public filter: string; + + /** ListVolumesRequest orderBy. */ + public orderBy: string; /** - * Encodes the specified GetSnapshotRequest message. Does not implicitly {@link google.cloud.netapp.v1.GetSnapshotRequest.verify|verify} messages. - * @param message GetSnapshotRequest message or plain object to encode + * Creates a new ListVolumesRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ListVolumesRequest instance + */ + public static create(properties?: google.cloud.netapp.v1.IListVolumesRequest): google.cloud.netapp.v1.ListVolumesRequest; + + /** + * Encodes the specified ListVolumesRequest message. Does not implicitly {@link google.cloud.netapp.v1.ListVolumesRequest.verify|verify} messages. + * @param message ListVolumesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.netapp.v1.IGetSnapshotRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.netapp.v1.IListVolumesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetSnapshotRequest message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.GetSnapshotRequest.verify|verify} messages. - * @param message GetSnapshotRequest message or plain object to encode + * Encodes the specified ListVolumesRequest message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.ListVolumesRequest.verify|verify} messages. + * @param message ListVolumesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.netapp.v1.IGetSnapshotRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.netapp.v1.IListVolumesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetSnapshotRequest message from the specified reader or buffer. + * Decodes a ListVolumesRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetSnapshotRequest + * @returns ListVolumesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.netapp.v1.GetSnapshotRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.netapp.v1.ListVolumesRequest; /** - * Decodes a GetSnapshotRequest message from the specified reader or buffer, length delimited. + * Decodes a ListVolumesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetSnapshotRequest + * @returns ListVolumesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.netapp.v1.GetSnapshotRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.netapp.v1.ListVolumesRequest; /** - * Verifies a GetSnapshotRequest message. + * Verifies a ListVolumesRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a GetSnapshotRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListVolumesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetSnapshotRequest + * @returns ListVolumesRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.netapp.v1.GetSnapshotRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.netapp.v1.ListVolumesRequest; /** - * Creates a plain object from a GetSnapshotRequest message. Also converts values to other types if specified. - * @param message GetSnapshotRequest + * Creates a plain object from a ListVolumesRequest message. Also converts values to other types if specified. + * @param message ListVolumesRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.netapp.v1.GetSnapshotRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.netapp.v1.ListVolumesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetSnapshotRequest to JSON. + * Converts this ListVolumesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetSnapshotRequest + * Gets the default type url for ListVolumesRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CreateSnapshotRequest. */ - interface ICreateSnapshotRequest { + /** Properties of a ListVolumesResponse. */ + interface IListVolumesResponse { - /** CreateSnapshotRequest parent */ - parent?: (string|null); + /** ListVolumesResponse volumes */ + volumes?: (google.cloud.netapp.v1.IVolume[]|null); - /** CreateSnapshotRequest snapshot */ - snapshot?: (google.cloud.netapp.v1.ISnapshot|null); + /** ListVolumesResponse nextPageToken */ + nextPageToken?: (string|null); - /** CreateSnapshotRequest snapshotId */ - snapshotId?: (string|null); + /** ListVolumesResponse unreachable */ + unreachable?: (string[]|null); } - /** Represents a CreateSnapshotRequest. */ - class CreateSnapshotRequest implements ICreateSnapshotRequest { + /** Represents a ListVolumesResponse. */ + class ListVolumesResponse implements IListVolumesResponse { /** - * Constructs a new CreateSnapshotRequest. + * Constructs a new ListVolumesResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.netapp.v1.ICreateSnapshotRequest); + constructor(properties?: google.cloud.netapp.v1.IListVolumesResponse); - /** CreateSnapshotRequest parent. */ - public parent: string; + /** ListVolumesResponse volumes. */ + public volumes: google.cloud.netapp.v1.IVolume[]; - /** CreateSnapshotRequest snapshot. */ - public snapshot?: (google.cloud.netapp.v1.ISnapshot|null); + /** ListVolumesResponse nextPageToken. */ + public nextPageToken: string; - /** CreateSnapshotRequest snapshotId. */ - public snapshotId: string; + /** ListVolumesResponse unreachable. */ + public unreachable: string[]; /** - * Creates a new CreateSnapshotRequest instance using the specified properties. + * Creates a new ListVolumesResponse instance using the specified properties. * @param [properties] Properties to set - * @returns CreateSnapshotRequest instance + * @returns ListVolumesResponse instance */ - public static create(properties?: google.cloud.netapp.v1.ICreateSnapshotRequest): google.cloud.netapp.v1.CreateSnapshotRequest; + public static create(properties?: google.cloud.netapp.v1.IListVolumesResponse): google.cloud.netapp.v1.ListVolumesResponse; /** - * Encodes the specified CreateSnapshotRequest message. Does not implicitly {@link google.cloud.netapp.v1.CreateSnapshotRequest.verify|verify} messages. - * @param message CreateSnapshotRequest message or plain object to encode + * Encodes the specified ListVolumesResponse message. Does not implicitly {@link google.cloud.netapp.v1.ListVolumesResponse.verify|verify} messages. + * @param message ListVolumesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.netapp.v1.ICreateSnapshotRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.netapp.v1.IListVolumesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateSnapshotRequest message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.CreateSnapshotRequest.verify|verify} messages. - * @param message CreateSnapshotRequest message or plain object to encode + * Encodes the specified ListVolumesResponse message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.ListVolumesResponse.verify|verify} messages. + * @param message ListVolumesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.netapp.v1.ICreateSnapshotRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.netapp.v1.IListVolumesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateSnapshotRequest message from the specified reader or buffer. + * Decodes a ListVolumesResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateSnapshotRequest + * @returns ListVolumesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.netapp.v1.CreateSnapshotRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.netapp.v1.ListVolumesResponse; /** - * Decodes a CreateSnapshotRequest message from the specified reader or buffer, length delimited. + * Decodes a ListVolumesResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateSnapshotRequest + * @returns ListVolumesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.netapp.v1.CreateSnapshotRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.netapp.v1.ListVolumesResponse; /** - * Verifies a CreateSnapshotRequest message. + * Verifies a ListVolumesResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a CreateSnapshotRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListVolumesResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateSnapshotRequest + * @returns ListVolumesResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.netapp.v1.CreateSnapshotRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.netapp.v1.ListVolumesResponse; /** - * Creates a plain object from a CreateSnapshotRequest message. Also converts values to other types if specified. - * @param message CreateSnapshotRequest + * Creates a plain object from a ListVolumesResponse message. Also converts values to other types if specified. + * @param message ListVolumesResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.netapp.v1.CreateSnapshotRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.netapp.v1.ListVolumesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateSnapshotRequest to JSON. + * Converts this ListVolumesResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CreateSnapshotRequest + * Gets the default type url for ListVolumesResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DeleteSnapshotRequest. */ - interface IDeleteSnapshotRequest { + /** Properties of a GetVolumeRequest. */ + interface IGetVolumeRequest { - /** DeleteSnapshotRequest name */ + /** GetVolumeRequest name */ name?: (string|null); } - /** Represents a DeleteSnapshotRequest. */ - class DeleteSnapshotRequest implements IDeleteSnapshotRequest { + /** Represents a GetVolumeRequest. */ + class GetVolumeRequest implements IGetVolumeRequest { /** - * Constructs a new DeleteSnapshotRequest. + * Constructs a new GetVolumeRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.netapp.v1.IDeleteSnapshotRequest); + constructor(properties?: google.cloud.netapp.v1.IGetVolumeRequest); - /** DeleteSnapshotRequest name. */ + /** GetVolumeRequest name. */ public name: string; /** - * Creates a new DeleteSnapshotRequest instance using the specified properties. + * Creates a new GetVolumeRequest instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteSnapshotRequest instance + * @returns GetVolumeRequest instance */ - public static create(properties?: google.cloud.netapp.v1.IDeleteSnapshotRequest): google.cloud.netapp.v1.DeleteSnapshotRequest; + public static create(properties?: google.cloud.netapp.v1.IGetVolumeRequest): google.cloud.netapp.v1.GetVolumeRequest; /** - * Encodes the specified DeleteSnapshotRequest message. Does not implicitly {@link google.cloud.netapp.v1.DeleteSnapshotRequest.verify|verify} messages. - * @param message DeleteSnapshotRequest message or plain object to encode + * Encodes the specified GetVolumeRequest message. Does not implicitly {@link google.cloud.netapp.v1.GetVolumeRequest.verify|verify} messages. + * @param message GetVolumeRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.netapp.v1.IDeleteSnapshotRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.netapp.v1.IGetVolumeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteSnapshotRequest message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.DeleteSnapshotRequest.verify|verify} messages. - * @param message DeleteSnapshotRequest message or plain object to encode + * Encodes the specified GetVolumeRequest message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.GetVolumeRequest.verify|verify} messages. + * @param message GetVolumeRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.netapp.v1.IDeleteSnapshotRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.netapp.v1.IGetVolumeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteSnapshotRequest message from the specified reader or buffer. + * Decodes a GetVolumeRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteSnapshotRequest + * @returns GetVolumeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.netapp.v1.DeleteSnapshotRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.netapp.v1.GetVolumeRequest; /** - * Decodes a DeleteSnapshotRequest message from the specified reader or buffer, length delimited. + * Decodes a GetVolumeRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteSnapshotRequest + * @returns GetVolumeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.netapp.v1.DeleteSnapshotRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.netapp.v1.GetVolumeRequest; /** - * Verifies a DeleteSnapshotRequest message. + * Verifies a GetVolumeRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a DeleteSnapshotRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetVolumeRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteSnapshotRequest + * @returns GetVolumeRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.netapp.v1.DeleteSnapshotRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.netapp.v1.GetVolumeRequest; /** - * Creates a plain object from a DeleteSnapshotRequest message. Also converts values to other types if specified. - * @param message DeleteSnapshotRequest + * Creates a plain object from a GetVolumeRequest message. Also converts values to other types if specified. + * @param message GetVolumeRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.netapp.v1.DeleteSnapshotRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.netapp.v1.GetVolumeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteSnapshotRequest to JSON. + * Converts this GetVolumeRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DeleteSnapshotRequest + * Gets the default type url for GetVolumeRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an UpdateSnapshotRequest. */ - interface IUpdateSnapshotRequest { + /** Properties of a CreateVolumeRequest. */ + interface ICreateVolumeRequest { - /** UpdateSnapshotRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); + /** CreateVolumeRequest parent */ + parent?: (string|null); - /** UpdateSnapshotRequest snapshot */ - snapshot?: (google.cloud.netapp.v1.ISnapshot|null); + /** CreateVolumeRequest volumeId */ + volumeId?: (string|null); + + /** CreateVolumeRequest volume */ + volume?: (google.cloud.netapp.v1.IVolume|null); } - /** Represents an UpdateSnapshotRequest. */ - class UpdateSnapshotRequest implements IUpdateSnapshotRequest { + /** Represents a CreateVolumeRequest. */ + class CreateVolumeRequest implements ICreateVolumeRequest { /** - * Constructs a new UpdateSnapshotRequest. + * Constructs a new CreateVolumeRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.netapp.v1.IUpdateSnapshotRequest); + constructor(properties?: google.cloud.netapp.v1.ICreateVolumeRequest); - /** UpdateSnapshotRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); + /** CreateVolumeRequest parent. */ + public parent: string; - /** UpdateSnapshotRequest snapshot. */ - public snapshot?: (google.cloud.netapp.v1.ISnapshot|null); + /** CreateVolumeRequest volumeId. */ + public volumeId: string; + + /** CreateVolumeRequest volume. */ + public volume?: (google.cloud.netapp.v1.IVolume|null); /** - * Creates a new UpdateSnapshotRequest instance using the specified properties. + * Creates a new CreateVolumeRequest instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateSnapshotRequest instance + * @returns CreateVolumeRequest instance */ - public static create(properties?: google.cloud.netapp.v1.IUpdateSnapshotRequest): google.cloud.netapp.v1.UpdateSnapshotRequest; + public static create(properties?: google.cloud.netapp.v1.ICreateVolumeRequest): google.cloud.netapp.v1.CreateVolumeRequest; /** - * Encodes the specified UpdateSnapshotRequest message. Does not implicitly {@link google.cloud.netapp.v1.UpdateSnapshotRequest.verify|verify} messages. - * @param message UpdateSnapshotRequest message or plain object to encode + * Encodes the specified CreateVolumeRequest message. Does not implicitly {@link google.cloud.netapp.v1.CreateVolumeRequest.verify|verify} messages. + * @param message CreateVolumeRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.netapp.v1.IUpdateSnapshotRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.netapp.v1.ICreateVolumeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdateSnapshotRequest message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.UpdateSnapshotRequest.verify|verify} messages. - * @param message UpdateSnapshotRequest message or plain object to encode + * Encodes the specified CreateVolumeRequest message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.CreateVolumeRequest.verify|verify} messages. + * @param message CreateVolumeRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.netapp.v1.IUpdateSnapshotRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.netapp.v1.ICreateVolumeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateSnapshotRequest message from the specified reader or buffer. + * Decodes a CreateVolumeRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpdateSnapshotRequest + * @returns CreateVolumeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.netapp.v1.UpdateSnapshotRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.netapp.v1.CreateVolumeRequest; /** - * Decodes an UpdateSnapshotRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateVolumeRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateSnapshotRequest + * @returns CreateVolumeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.netapp.v1.UpdateSnapshotRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.netapp.v1.CreateVolumeRequest; /** - * Verifies an UpdateSnapshotRequest message. + * Verifies a CreateVolumeRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an UpdateSnapshotRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateVolumeRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdateSnapshotRequest + * @returns CreateVolumeRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.netapp.v1.UpdateSnapshotRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.netapp.v1.CreateVolumeRequest; /** - * Creates a plain object from an UpdateSnapshotRequest message. Also converts values to other types if specified. - * @param message UpdateSnapshotRequest + * Creates a plain object from a CreateVolumeRequest message. Also converts values to other types if specified. + * @param message CreateVolumeRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.netapp.v1.UpdateSnapshotRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.netapp.v1.CreateVolumeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateSnapshotRequest to JSON. + * Converts this CreateVolumeRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UpdateSnapshotRequest + * Gets the default type url for CreateVolumeRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a Snapshot. */ - interface ISnapshot { - - /** Snapshot name */ - name?: (string|null); - - /** Snapshot state */ - state?: (google.cloud.netapp.v1.Snapshot.State|keyof typeof google.cloud.netapp.v1.Snapshot.State|null); - - /** Snapshot stateDetails */ - stateDetails?: (string|null); - - /** Snapshot description */ - description?: (string|null); - - /** Snapshot usedBytes */ - usedBytes?: (number|null); + /** Properties of an UpdateVolumeRequest. */ + interface IUpdateVolumeRequest { - /** Snapshot createTime */ - createTime?: (google.protobuf.ITimestamp|null); + /** UpdateVolumeRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); - /** Snapshot labels */ - labels?: ({ [k: string]: string }|null); + /** UpdateVolumeRequest volume */ + volume?: (google.cloud.netapp.v1.IVolume|null); } - /** Represents a Snapshot. */ - class Snapshot implements ISnapshot { + /** Represents an UpdateVolumeRequest. */ + class UpdateVolumeRequest implements IUpdateVolumeRequest { /** - * Constructs a new Snapshot. + * Constructs a new UpdateVolumeRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.netapp.v1.ISnapshot); - - /** Snapshot name. */ - public name: string; - - /** Snapshot state. */ - public state: (google.cloud.netapp.v1.Snapshot.State|keyof typeof google.cloud.netapp.v1.Snapshot.State); - - /** Snapshot stateDetails. */ - public stateDetails: string; - - /** Snapshot description. */ - public description: string; - - /** Snapshot usedBytes. */ - public usedBytes: number; + constructor(properties?: google.cloud.netapp.v1.IUpdateVolumeRequest); - /** Snapshot createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); + /** UpdateVolumeRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); - /** Snapshot labels. */ - public labels: { [k: string]: string }; + /** UpdateVolumeRequest volume. */ + public volume?: (google.cloud.netapp.v1.IVolume|null); /** - * Creates a new Snapshot instance using the specified properties. + * Creates a new UpdateVolumeRequest instance using the specified properties. * @param [properties] Properties to set - * @returns Snapshot instance + * @returns UpdateVolumeRequest instance */ - public static create(properties?: google.cloud.netapp.v1.ISnapshot): google.cloud.netapp.v1.Snapshot; + public static create(properties?: google.cloud.netapp.v1.IUpdateVolumeRequest): google.cloud.netapp.v1.UpdateVolumeRequest; /** - * Encodes the specified Snapshot message. Does not implicitly {@link google.cloud.netapp.v1.Snapshot.verify|verify} messages. - * @param message Snapshot message or plain object to encode + * Encodes the specified UpdateVolumeRequest message. Does not implicitly {@link google.cloud.netapp.v1.UpdateVolumeRequest.verify|verify} messages. + * @param message UpdateVolumeRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.netapp.v1.ISnapshot, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.netapp.v1.IUpdateVolumeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Snapshot message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.Snapshot.verify|verify} messages. - * @param message Snapshot message or plain object to encode + * Encodes the specified UpdateVolumeRequest message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.UpdateVolumeRequest.verify|verify} messages. + * @param message UpdateVolumeRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.netapp.v1.ISnapshot, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.netapp.v1.IUpdateVolumeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Snapshot message from the specified reader or buffer. + * Decodes an UpdateVolumeRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Snapshot + * @returns UpdateVolumeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.netapp.v1.Snapshot; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.netapp.v1.UpdateVolumeRequest; /** - * Decodes a Snapshot message from the specified reader or buffer, length delimited. + * Decodes an UpdateVolumeRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Snapshot + * @returns UpdateVolumeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.netapp.v1.Snapshot; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.netapp.v1.UpdateVolumeRequest; /** - * Verifies a Snapshot message. + * Verifies an UpdateVolumeRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a Snapshot message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateVolumeRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Snapshot + * @returns UpdateVolumeRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.netapp.v1.Snapshot; + public static fromObject(object: { [k: string]: any }): google.cloud.netapp.v1.UpdateVolumeRequest; /** - * Creates a plain object from a Snapshot message. Also converts values to other types if specified. - * @param message Snapshot + * Creates a plain object from an UpdateVolumeRequest message. Also converts values to other types if specified. + * @param message UpdateVolumeRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.netapp.v1.Snapshot, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.netapp.v1.UpdateVolumeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Snapshot to JSON. + * Converts this UpdateVolumeRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Snapshot + * Gets the default type url for UpdateVolumeRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace Snapshot { - - /** State enum. */ - enum State { - STATE_UNSPECIFIED = 0, - READY = 1, - CREATING = 2, - DELETING = 3, - UPDATING = 4, - DISABLED = 5, - ERROR = 6 - } - } - - /** Properties of a GetStoragePoolRequest. */ - interface IGetStoragePoolRequest { + /** Properties of a DeleteVolumeRequest. */ + interface IDeleteVolumeRequest { - /** GetStoragePoolRequest name */ + /** DeleteVolumeRequest name */ name?: (string|null); + + /** DeleteVolumeRequest force */ + force?: (boolean|null); } - /** Represents a GetStoragePoolRequest. */ - class GetStoragePoolRequest implements IGetStoragePoolRequest { + /** Represents a DeleteVolumeRequest. */ + class DeleteVolumeRequest implements IDeleteVolumeRequest { /** - * Constructs a new GetStoragePoolRequest. + * Constructs a new DeleteVolumeRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.netapp.v1.IGetStoragePoolRequest); + constructor(properties?: google.cloud.netapp.v1.IDeleteVolumeRequest); - /** GetStoragePoolRequest name. */ + /** DeleteVolumeRequest name. */ public name: string; + /** DeleteVolumeRequest force. */ + public force: boolean; + /** - * Creates a new GetStoragePoolRequest instance using the specified properties. + * Creates a new DeleteVolumeRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetStoragePoolRequest instance + * @returns DeleteVolumeRequest instance */ - public static create(properties?: google.cloud.netapp.v1.IGetStoragePoolRequest): google.cloud.netapp.v1.GetStoragePoolRequest; + public static create(properties?: google.cloud.netapp.v1.IDeleteVolumeRequest): google.cloud.netapp.v1.DeleteVolumeRequest; /** - * Encodes the specified GetStoragePoolRequest message. Does not implicitly {@link google.cloud.netapp.v1.GetStoragePoolRequest.verify|verify} messages. - * @param message GetStoragePoolRequest message or plain object to encode + * Encodes the specified DeleteVolumeRequest message. Does not implicitly {@link google.cloud.netapp.v1.DeleteVolumeRequest.verify|verify} messages. + * @param message DeleteVolumeRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.netapp.v1.IGetStoragePoolRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.netapp.v1.IDeleteVolumeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetStoragePoolRequest message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.GetStoragePoolRequest.verify|verify} messages. - * @param message GetStoragePoolRequest message or plain object to encode + * Encodes the specified DeleteVolumeRequest message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.DeleteVolumeRequest.verify|verify} messages. + * @param message DeleteVolumeRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.netapp.v1.IGetStoragePoolRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.netapp.v1.IDeleteVolumeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetStoragePoolRequest message from the specified reader or buffer. + * Decodes a DeleteVolumeRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetStoragePoolRequest + * @returns DeleteVolumeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.netapp.v1.GetStoragePoolRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.netapp.v1.DeleteVolumeRequest; /** - * Decodes a GetStoragePoolRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteVolumeRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetStoragePoolRequest + * @returns DeleteVolumeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.netapp.v1.GetStoragePoolRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.netapp.v1.DeleteVolumeRequest; /** - * Verifies a GetStoragePoolRequest message. + * Verifies a DeleteVolumeRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a GetStoragePoolRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteVolumeRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetStoragePoolRequest + * @returns DeleteVolumeRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.netapp.v1.GetStoragePoolRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.netapp.v1.DeleteVolumeRequest; /** - * Creates a plain object from a GetStoragePoolRequest message. Also converts values to other types if specified. - * @param message GetStoragePoolRequest + * Creates a plain object from a DeleteVolumeRequest message. Also converts values to other types if specified. + * @param message DeleteVolumeRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.netapp.v1.GetStoragePoolRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.netapp.v1.DeleteVolumeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetStoragePoolRequest to JSON. + * Converts this DeleteVolumeRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetStoragePoolRequest + * Gets the default type url for DeleteVolumeRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListStoragePoolsRequest. */ - interface IListStoragePoolsRequest { - - /** ListStoragePoolsRequest parent */ - parent?: (string|null); - - /** ListStoragePoolsRequest pageSize */ - pageSize?: (number|null); - - /** ListStoragePoolsRequest pageToken */ - pageToken?: (string|null); + /** Properties of a RevertVolumeRequest. */ + interface IRevertVolumeRequest { - /** ListStoragePoolsRequest orderBy */ - orderBy?: (string|null); + /** RevertVolumeRequest name */ + name?: (string|null); - /** ListStoragePoolsRequest filter */ - filter?: (string|null); + /** RevertVolumeRequest snapshotId */ + snapshotId?: (string|null); } - /** Represents a ListStoragePoolsRequest. */ - class ListStoragePoolsRequest implements IListStoragePoolsRequest { + /** Represents a RevertVolumeRequest. */ + class RevertVolumeRequest implements IRevertVolumeRequest { /** - * Constructs a new ListStoragePoolsRequest. + * Constructs a new RevertVolumeRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.netapp.v1.IListStoragePoolsRequest); - - /** ListStoragePoolsRequest parent. */ - public parent: string; - - /** ListStoragePoolsRequest pageSize. */ - public pageSize: number; - - /** ListStoragePoolsRequest pageToken. */ - public pageToken: string; + constructor(properties?: google.cloud.netapp.v1.IRevertVolumeRequest); - /** ListStoragePoolsRequest orderBy. */ - public orderBy: string; + /** RevertVolumeRequest name. */ + public name: string; - /** ListStoragePoolsRequest filter. */ - public filter: string; + /** RevertVolumeRequest snapshotId. */ + public snapshotId: string; /** - * Creates a new ListStoragePoolsRequest instance using the specified properties. + * Creates a new RevertVolumeRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListStoragePoolsRequest instance + * @returns RevertVolumeRequest instance */ - public static create(properties?: google.cloud.netapp.v1.IListStoragePoolsRequest): google.cloud.netapp.v1.ListStoragePoolsRequest; + public static create(properties?: google.cloud.netapp.v1.IRevertVolumeRequest): google.cloud.netapp.v1.RevertVolumeRequest; /** - * Encodes the specified ListStoragePoolsRequest message. Does not implicitly {@link google.cloud.netapp.v1.ListStoragePoolsRequest.verify|verify} messages. - * @param message ListStoragePoolsRequest message or plain object to encode + * Encodes the specified RevertVolumeRequest message. Does not implicitly {@link google.cloud.netapp.v1.RevertVolumeRequest.verify|verify} messages. + * @param message RevertVolumeRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.netapp.v1.IListStoragePoolsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.netapp.v1.IRevertVolumeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListStoragePoolsRequest message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.ListStoragePoolsRequest.verify|verify} messages. - * @param message ListStoragePoolsRequest message or plain object to encode + * Encodes the specified RevertVolumeRequest message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.RevertVolumeRequest.verify|verify} messages. + * @param message RevertVolumeRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.netapp.v1.IListStoragePoolsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.netapp.v1.IRevertVolumeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListStoragePoolsRequest message from the specified reader or buffer. + * Decodes a RevertVolumeRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListStoragePoolsRequest + * @returns RevertVolumeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.netapp.v1.ListStoragePoolsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.netapp.v1.RevertVolumeRequest; /** - * Decodes a ListStoragePoolsRequest message from the specified reader or buffer, length delimited. + * Decodes a RevertVolumeRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListStoragePoolsRequest + * @returns RevertVolumeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.netapp.v1.ListStoragePoolsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.netapp.v1.RevertVolumeRequest; /** - * Verifies a ListStoragePoolsRequest message. + * Verifies a RevertVolumeRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListStoragePoolsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a RevertVolumeRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListStoragePoolsRequest + * @returns RevertVolumeRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.netapp.v1.ListStoragePoolsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.netapp.v1.RevertVolumeRequest; /** - * Creates a plain object from a ListStoragePoolsRequest message. Also converts values to other types if specified. - * @param message ListStoragePoolsRequest + * Creates a plain object from a RevertVolumeRequest message. Also converts values to other types if specified. + * @param message RevertVolumeRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.netapp.v1.ListStoragePoolsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.netapp.v1.RevertVolumeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListStoragePoolsRequest to JSON. + * Converts this RevertVolumeRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListStoragePoolsRequest + * Gets the default type url for RevertVolumeRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListStoragePoolsResponse. */ - interface IListStoragePoolsResponse { + /** Properties of a Volume. */ + interface IVolume { - /** ListStoragePoolsResponse storagePools */ - storagePools?: (google.cloud.netapp.v1.IStoragePool[]|null); + /** Volume name */ + name?: (string|null); - /** ListStoragePoolsResponse nextPageToken */ - nextPageToken?: (string|null); + /** Volume state */ + state?: (google.cloud.netapp.v1.Volume.State|keyof typeof google.cloud.netapp.v1.Volume.State|null); - /** ListStoragePoolsResponse unreachable */ - unreachable?: (string[]|null); - } + /** Volume stateDetails */ + stateDetails?: (string|null); - /** Represents a ListStoragePoolsResponse. */ - class ListStoragePoolsResponse implements IListStoragePoolsResponse { + /** Volume createTime */ + createTime?: (google.protobuf.ITimestamp|null); - /** - * Constructs a new ListStoragePoolsResponse. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.netapp.v1.IListStoragePoolsResponse); + /** Volume shareName */ + shareName?: (string|null); - /** ListStoragePoolsResponse storagePools. */ - public storagePools: google.cloud.netapp.v1.IStoragePool[]; + /** Volume psaRange */ + psaRange?: (string|null); - /** ListStoragePoolsResponse nextPageToken. */ - public nextPageToken: string; + /** Volume storagePool */ + storagePool?: (string|null); - /** ListStoragePoolsResponse unreachable. */ - public unreachable: string[]; + /** Volume network */ + network?: (string|null); - /** - * Creates a new ListStoragePoolsResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ListStoragePoolsResponse instance - */ - public static create(properties?: google.cloud.netapp.v1.IListStoragePoolsResponse): google.cloud.netapp.v1.ListStoragePoolsResponse; + /** Volume serviceLevel */ + serviceLevel?: (google.cloud.netapp.v1.ServiceLevel|keyof typeof google.cloud.netapp.v1.ServiceLevel|null); - /** - * Encodes the specified ListStoragePoolsResponse message. Does not implicitly {@link google.cloud.netapp.v1.ListStoragePoolsResponse.verify|verify} messages. - * @param message ListStoragePoolsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.netapp.v1.IListStoragePoolsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + /** Volume capacityGib */ + capacityGib?: (number|Long|string|null); - /** - * Encodes the specified ListStoragePoolsResponse message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.ListStoragePoolsResponse.verify|verify} messages. - * @param message ListStoragePoolsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.netapp.v1.IListStoragePoolsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + /** Volume exportPolicy */ + exportPolicy?: (google.cloud.netapp.v1.IExportPolicy|null); - /** - * Decodes a ListStoragePoolsResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ListStoragePoolsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.netapp.v1.ListStoragePoolsResponse; + /** Volume protocols */ + protocols?: (google.cloud.netapp.v1.Protocols[]|null); - /** - * Decodes a ListStoragePoolsResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ListStoragePoolsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.netapp.v1.ListStoragePoolsResponse; + /** Volume smbSettings */ + smbSettings?: (google.cloud.netapp.v1.SMBSettings[]|null); - /** - * Verifies a ListStoragePoolsResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** Volume mountOptions */ + mountOptions?: (google.cloud.netapp.v1.IMountOption[]|null); - /** - * Creates a ListStoragePoolsResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ListStoragePoolsResponse - */ - public static fromObject(object: { [k: string]: any }): google.cloud.netapp.v1.ListStoragePoolsResponse; + /** Volume unixPermissions */ + unixPermissions?: (string|null); - /** - * Creates a plain object from a ListStoragePoolsResponse message. Also converts values to other types if specified. - * @param message ListStoragePoolsResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.netapp.v1.ListStoragePoolsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** Volume labels */ + labels?: ({ [k: string]: string }|null); - /** - * Converts this ListStoragePoolsResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** Volume description */ + description?: (string|null); - /** - * Gets the default type url for ListStoragePoolsResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** Volume snapshotPolicy */ + snapshotPolicy?: (google.cloud.netapp.v1.ISnapshotPolicy|null); - /** Properties of a CreateStoragePoolRequest. */ - interface ICreateStoragePoolRequest { + /** Volume snapReserve */ + snapReserve?: (number|null); - /** CreateStoragePoolRequest parent */ - parent?: (string|null); + /** Volume snapshotDirectory */ + snapshotDirectory?: (boolean|null); - /** CreateStoragePoolRequest storagePoolId */ - storagePoolId?: (string|null); + /** Volume usedGib */ + usedGib?: (number|Long|string|null); - /** CreateStoragePoolRequest storagePool */ - storagePool?: (google.cloud.netapp.v1.IStoragePool|null); - } + /** Volume securityStyle */ + securityStyle?: (google.cloud.netapp.v1.SecurityStyle|keyof typeof google.cloud.netapp.v1.SecurityStyle|null); - /** Represents a CreateStoragePoolRequest. */ - class CreateStoragePoolRequest implements ICreateStoragePoolRequest { + /** Volume kerberosEnabled */ + kerberosEnabled?: (boolean|null); - /** - * Constructs a new CreateStoragePoolRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.netapp.v1.ICreateStoragePoolRequest); + /** Volume ldapEnabled */ + ldapEnabled?: (boolean|null); - /** CreateStoragePoolRequest parent. */ - public parent: string; + /** Volume activeDirectory */ + activeDirectory?: (string|null); + + /** Volume restoreParameters */ + restoreParameters?: (google.cloud.netapp.v1.IRestoreParameters|null); + + /** Volume kmsConfig */ + kmsConfig?: (string|null); + + /** Volume encryptionType */ + encryptionType?: (google.cloud.netapp.v1.EncryptionType|keyof typeof google.cloud.netapp.v1.EncryptionType|null); + + /** Volume hasReplication */ + hasReplication?: (boolean|null); + + /** Volume backupConfig */ + backupConfig?: (google.cloud.netapp.v1.IBackupConfig|null); + + /** Volume restrictedActions */ + restrictedActions?: (google.cloud.netapp.v1.RestrictedAction[]|null); + + /** Volume largeCapacity */ + largeCapacity?: (boolean|null); + + /** Volume multipleEndpoints */ + multipleEndpoints?: (boolean|null); + + /** Volume tieringPolicy */ + tieringPolicy?: (google.cloud.netapp.v1.ITieringPolicy|null); + + /** Volume replicaZone */ + replicaZone?: (string|null); + + /** Volume zone */ + zone?: (string|null); + + /** Volume coldTierSizeGib */ + coldTierSizeGib?: (number|Long|string|null); + + /** Volume hybridReplicationParameters */ + hybridReplicationParameters?: (google.cloud.netapp.v1.IHybridReplicationParameters|null); + } + + /** Represents a Volume. */ + class Volume implements IVolume { + + /** + * Constructs a new Volume. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.netapp.v1.IVolume); + + /** Volume name. */ + public name: string; + + /** Volume state. */ + public state: (google.cloud.netapp.v1.Volume.State|keyof typeof google.cloud.netapp.v1.Volume.State); + + /** Volume stateDetails. */ + public stateDetails: string; + + /** Volume createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** Volume shareName. */ + public shareName: string; + + /** Volume psaRange. */ + public psaRange: string; + + /** Volume storagePool. */ + public storagePool: string; + + /** Volume network. */ + public network: string; + + /** Volume serviceLevel. */ + public serviceLevel: (google.cloud.netapp.v1.ServiceLevel|keyof typeof google.cloud.netapp.v1.ServiceLevel); + + /** Volume capacityGib. */ + public capacityGib: (number|Long|string); + + /** Volume exportPolicy. */ + public exportPolicy?: (google.cloud.netapp.v1.IExportPolicy|null); + + /** Volume protocols. */ + public protocols: google.cloud.netapp.v1.Protocols[]; + + /** Volume smbSettings. */ + public smbSettings: google.cloud.netapp.v1.SMBSettings[]; + + /** Volume mountOptions. */ + public mountOptions: google.cloud.netapp.v1.IMountOption[]; + + /** Volume unixPermissions. */ + public unixPermissions: string; + + /** Volume labels. */ + public labels: { [k: string]: string }; + + /** Volume description. */ + public description: string; + + /** Volume snapshotPolicy. */ + public snapshotPolicy?: (google.cloud.netapp.v1.ISnapshotPolicy|null); + + /** Volume snapReserve. */ + public snapReserve: number; + + /** Volume snapshotDirectory. */ + public snapshotDirectory: boolean; + + /** Volume usedGib. */ + public usedGib: (number|Long|string); + + /** Volume securityStyle. */ + public securityStyle: (google.cloud.netapp.v1.SecurityStyle|keyof typeof google.cloud.netapp.v1.SecurityStyle); + + /** Volume kerberosEnabled. */ + public kerberosEnabled: boolean; + + /** Volume ldapEnabled. */ + public ldapEnabled: boolean; + + /** Volume activeDirectory. */ + public activeDirectory: string; + + /** Volume restoreParameters. */ + public restoreParameters?: (google.cloud.netapp.v1.IRestoreParameters|null); + + /** Volume kmsConfig. */ + public kmsConfig: string; + + /** Volume encryptionType. */ + public encryptionType: (google.cloud.netapp.v1.EncryptionType|keyof typeof google.cloud.netapp.v1.EncryptionType); + + /** Volume hasReplication. */ + public hasReplication: boolean; + + /** Volume backupConfig. */ + public backupConfig?: (google.cloud.netapp.v1.IBackupConfig|null); + + /** Volume restrictedActions. */ + public restrictedActions: google.cloud.netapp.v1.RestrictedAction[]; + + /** Volume largeCapacity. */ + public largeCapacity: boolean; + + /** Volume multipleEndpoints. */ + public multipleEndpoints: boolean; + + /** Volume tieringPolicy. */ + public tieringPolicy?: (google.cloud.netapp.v1.ITieringPolicy|null); + + /** Volume replicaZone. */ + public replicaZone: string; + + /** Volume zone. */ + public zone: string; + + /** Volume coldTierSizeGib. */ + public coldTierSizeGib: (number|Long|string); + + /** Volume hybridReplicationParameters. */ + public hybridReplicationParameters?: (google.cloud.netapp.v1.IHybridReplicationParameters|null); + + /** Volume _backupConfig. */ + public _backupConfig?: "backupConfig"; + + /** Volume _tieringPolicy. */ + public _tieringPolicy?: "tieringPolicy"; + + /** + * Creates a new Volume instance using the specified properties. + * @param [properties] Properties to set + * @returns Volume instance + */ + public static create(properties?: google.cloud.netapp.v1.IVolume): google.cloud.netapp.v1.Volume; + + /** + * Encodes the specified Volume message. Does not implicitly {@link google.cloud.netapp.v1.Volume.verify|verify} messages. + * @param message Volume message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.netapp.v1.IVolume, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Volume message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.Volume.verify|verify} messages. + * @param message Volume message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.netapp.v1.IVolume, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Volume message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Volume + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.netapp.v1.Volume; + + /** + * Decodes a Volume message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Volume + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.netapp.v1.Volume; + + /** + * Verifies a Volume message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Volume message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Volume + */ + public static fromObject(object: { [k: string]: any }): google.cloud.netapp.v1.Volume; + + /** + * Creates a plain object from a Volume message. Also converts values to other types if specified. + * @param message Volume + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.netapp.v1.Volume, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Volume to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Volume + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace Volume { + + /** State enum. */ + enum State { + STATE_UNSPECIFIED = 0, + READY = 1, + CREATING = 2, + DELETING = 3, + UPDATING = 4, + RESTORING = 5, + DISABLED = 6, + ERROR = 7, + PREPARING = 8, + READ_ONLY = 9 + } + } + + /** Properties of an ExportPolicy. */ + interface IExportPolicy { + + /** ExportPolicy rules */ + rules?: (google.cloud.netapp.v1.ISimpleExportPolicyRule[]|null); + } + + /** Represents an ExportPolicy. */ + class ExportPolicy implements IExportPolicy { + + /** + * Constructs a new ExportPolicy. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.netapp.v1.IExportPolicy); + + /** ExportPolicy rules. */ + public rules: google.cloud.netapp.v1.ISimpleExportPolicyRule[]; + + /** + * Creates a new ExportPolicy instance using the specified properties. + * @param [properties] Properties to set + * @returns ExportPolicy instance + */ + public static create(properties?: google.cloud.netapp.v1.IExportPolicy): google.cloud.netapp.v1.ExportPolicy; + + /** + * Encodes the specified ExportPolicy message. Does not implicitly {@link google.cloud.netapp.v1.ExportPolicy.verify|verify} messages. + * @param message ExportPolicy message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.netapp.v1.IExportPolicy, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ExportPolicy message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.ExportPolicy.verify|verify} messages. + * @param message ExportPolicy message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.netapp.v1.IExportPolicy, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ExportPolicy message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExportPolicy + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.netapp.v1.ExportPolicy; + + /** + * Decodes an ExportPolicy message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ExportPolicy + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.netapp.v1.ExportPolicy; + + /** + * Verifies an ExportPolicy message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an ExportPolicy message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ExportPolicy + */ + public static fromObject(object: { [k: string]: any }): google.cloud.netapp.v1.ExportPolicy; + + /** + * Creates a plain object from an ExportPolicy message. Also converts values to other types if specified. + * @param message ExportPolicy + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.netapp.v1.ExportPolicy, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ExportPolicy to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ExportPolicy + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a SimpleExportPolicyRule. */ + interface ISimpleExportPolicyRule { + + /** SimpleExportPolicyRule allowedClients */ + allowedClients?: (string|null); + + /** SimpleExportPolicyRule hasRootAccess */ + hasRootAccess?: (string|null); + + /** SimpleExportPolicyRule accessType */ + accessType?: (google.cloud.netapp.v1.AccessType|keyof typeof google.cloud.netapp.v1.AccessType|null); + + /** SimpleExportPolicyRule nfsv3 */ + nfsv3?: (boolean|null); + + /** SimpleExportPolicyRule nfsv4 */ + nfsv4?: (boolean|null); + + /** SimpleExportPolicyRule kerberos_5ReadOnly */ + kerberos_5ReadOnly?: (boolean|null); + + /** SimpleExportPolicyRule kerberos_5ReadWrite */ + kerberos_5ReadWrite?: (boolean|null); + + /** SimpleExportPolicyRule kerberos_5iReadOnly */ + kerberos_5iReadOnly?: (boolean|null); + + /** SimpleExportPolicyRule kerberos_5iReadWrite */ + kerberos_5iReadWrite?: (boolean|null); + + /** SimpleExportPolicyRule kerberos_5pReadOnly */ + kerberos_5pReadOnly?: (boolean|null); + + /** SimpleExportPolicyRule kerberos_5pReadWrite */ + kerberos_5pReadWrite?: (boolean|null); + } + + /** Represents a SimpleExportPolicyRule. */ + class SimpleExportPolicyRule implements ISimpleExportPolicyRule { + + /** + * Constructs a new SimpleExportPolicyRule. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.netapp.v1.ISimpleExportPolicyRule); + + /** SimpleExportPolicyRule allowedClients. */ + public allowedClients?: (string|null); + + /** SimpleExportPolicyRule hasRootAccess. */ + public hasRootAccess?: (string|null); + + /** SimpleExportPolicyRule accessType. */ + public accessType?: (google.cloud.netapp.v1.AccessType|keyof typeof google.cloud.netapp.v1.AccessType|null); + + /** SimpleExportPolicyRule nfsv3. */ + public nfsv3?: (boolean|null); + + /** SimpleExportPolicyRule nfsv4. */ + public nfsv4?: (boolean|null); + + /** SimpleExportPolicyRule kerberos_5ReadOnly. */ + public kerberos_5ReadOnly?: (boolean|null); + + /** SimpleExportPolicyRule kerberos_5ReadWrite. */ + public kerberos_5ReadWrite?: (boolean|null); + + /** SimpleExportPolicyRule kerberos_5iReadOnly. */ + public kerberos_5iReadOnly?: (boolean|null); + + /** SimpleExportPolicyRule kerberos_5iReadWrite. */ + public kerberos_5iReadWrite?: (boolean|null); + + /** SimpleExportPolicyRule kerberos_5pReadOnly. */ + public kerberos_5pReadOnly?: (boolean|null); + + /** SimpleExportPolicyRule kerberos_5pReadWrite. */ + public kerberos_5pReadWrite?: (boolean|null); + + /** SimpleExportPolicyRule _allowedClients. */ + public _allowedClients?: "allowedClients"; + + /** SimpleExportPolicyRule _hasRootAccess. */ + public _hasRootAccess?: "hasRootAccess"; + + /** SimpleExportPolicyRule _accessType. */ + public _accessType?: "accessType"; + + /** SimpleExportPolicyRule _nfsv3. */ + public _nfsv3?: "nfsv3"; + + /** SimpleExportPolicyRule _nfsv4. */ + public _nfsv4?: "nfsv4"; + + /** SimpleExportPolicyRule _kerberos_5ReadOnly. */ + public _kerberos_5ReadOnly?: "kerberos_5ReadOnly"; + + /** SimpleExportPolicyRule _kerberos_5ReadWrite. */ + public _kerberos_5ReadWrite?: "kerberos_5ReadWrite"; + + /** SimpleExportPolicyRule _kerberos_5iReadOnly. */ + public _kerberos_5iReadOnly?: "kerberos_5iReadOnly"; + + /** SimpleExportPolicyRule _kerberos_5iReadWrite. */ + public _kerberos_5iReadWrite?: "kerberos_5iReadWrite"; + + /** SimpleExportPolicyRule _kerberos_5pReadOnly. */ + public _kerberos_5pReadOnly?: "kerberos_5pReadOnly"; + + /** SimpleExportPolicyRule _kerberos_5pReadWrite. */ + public _kerberos_5pReadWrite?: "kerberos_5pReadWrite"; + + /** + * Creates a new SimpleExportPolicyRule instance using the specified properties. + * @param [properties] Properties to set + * @returns SimpleExportPolicyRule instance + */ + public static create(properties?: google.cloud.netapp.v1.ISimpleExportPolicyRule): google.cloud.netapp.v1.SimpleExportPolicyRule; + + /** + * Encodes the specified SimpleExportPolicyRule message. Does not implicitly {@link google.cloud.netapp.v1.SimpleExportPolicyRule.verify|verify} messages. + * @param message SimpleExportPolicyRule message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.netapp.v1.ISimpleExportPolicyRule, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SimpleExportPolicyRule message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.SimpleExportPolicyRule.verify|verify} messages. + * @param message SimpleExportPolicyRule message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.netapp.v1.ISimpleExportPolicyRule, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SimpleExportPolicyRule message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SimpleExportPolicyRule + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.netapp.v1.SimpleExportPolicyRule; + + /** + * Decodes a SimpleExportPolicyRule message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SimpleExportPolicyRule + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.netapp.v1.SimpleExportPolicyRule; + + /** + * Verifies a SimpleExportPolicyRule message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a SimpleExportPolicyRule message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SimpleExportPolicyRule + */ + public static fromObject(object: { [k: string]: any }): google.cloud.netapp.v1.SimpleExportPolicyRule; + + /** + * Creates a plain object from a SimpleExportPolicyRule message. Also converts values to other types if specified. + * @param message SimpleExportPolicyRule + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.netapp.v1.SimpleExportPolicyRule, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SimpleExportPolicyRule to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SimpleExportPolicyRule + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** CreateStoragePoolRequest storagePoolId. */ - public storagePoolId: string; + /** Properties of a SnapshotPolicy. */ + interface ISnapshotPolicy { - /** CreateStoragePoolRequest storagePool. */ - public storagePool?: (google.cloud.netapp.v1.IStoragePool|null); + /** SnapshotPolicy enabled */ + enabled?: (boolean|null); + + /** SnapshotPolicy hourlySchedule */ + hourlySchedule?: (google.cloud.netapp.v1.IHourlySchedule|null); + + /** SnapshotPolicy dailySchedule */ + dailySchedule?: (google.cloud.netapp.v1.IDailySchedule|null); + + /** SnapshotPolicy weeklySchedule */ + weeklySchedule?: (google.cloud.netapp.v1.IWeeklySchedule|null); + + /** SnapshotPolicy monthlySchedule */ + monthlySchedule?: (google.cloud.netapp.v1.IMonthlySchedule|null); + } + + /** Represents a SnapshotPolicy. */ + class SnapshotPolicy implements ISnapshotPolicy { /** - * Creates a new CreateStoragePoolRequest instance using the specified properties. + * Constructs a new SnapshotPolicy. * @param [properties] Properties to set - * @returns CreateStoragePoolRequest instance */ - public static create(properties?: google.cloud.netapp.v1.ICreateStoragePoolRequest): google.cloud.netapp.v1.CreateStoragePoolRequest; + constructor(properties?: google.cloud.netapp.v1.ISnapshotPolicy); + + /** SnapshotPolicy enabled. */ + public enabled?: (boolean|null); + + /** SnapshotPolicy hourlySchedule. */ + public hourlySchedule?: (google.cloud.netapp.v1.IHourlySchedule|null); + + /** SnapshotPolicy dailySchedule. */ + public dailySchedule?: (google.cloud.netapp.v1.IDailySchedule|null); + + /** SnapshotPolicy weeklySchedule. */ + public weeklySchedule?: (google.cloud.netapp.v1.IWeeklySchedule|null); + + /** SnapshotPolicy monthlySchedule. */ + public monthlySchedule?: (google.cloud.netapp.v1.IMonthlySchedule|null); + + /** SnapshotPolicy _enabled. */ + public _enabled?: "enabled"; + + /** SnapshotPolicy _hourlySchedule. */ + public _hourlySchedule?: "hourlySchedule"; + + /** SnapshotPolicy _dailySchedule. */ + public _dailySchedule?: "dailySchedule"; + + /** SnapshotPolicy _weeklySchedule. */ + public _weeklySchedule?: "weeklySchedule"; + + /** SnapshotPolicy _monthlySchedule. */ + public _monthlySchedule?: "monthlySchedule"; /** - * Encodes the specified CreateStoragePoolRequest message. Does not implicitly {@link google.cloud.netapp.v1.CreateStoragePoolRequest.verify|verify} messages. - * @param message CreateStoragePoolRequest message or plain object to encode + * Creates a new SnapshotPolicy instance using the specified properties. + * @param [properties] Properties to set + * @returns SnapshotPolicy instance + */ + public static create(properties?: google.cloud.netapp.v1.ISnapshotPolicy): google.cloud.netapp.v1.SnapshotPolicy; + + /** + * Encodes the specified SnapshotPolicy message. Does not implicitly {@link google.cloud.netapp.v1.SnapshotPolicy.verify|verify} messages. + * @param message SnapshotPolicy message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.netapp.v1.ICreateStoragePoolRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.netapp.v1.ISnapshotPolicy, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateStoragePoolRequest message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.CreateStoragePoolRequest.verify|verify} messages. - * @param message CreateStoragePoolRequest message or plain object to encode + * Encodes the specified SnapshotPolicy message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.SnapshotPolicy.verify|verify} messages. + * @param message SnapshotPolicy message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.netapp.v1.ICreateStoragePoolRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.netapp.v1.ISnapshotPolicy, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateStoragePoolRequest message from the specified reader or buffer. + * Decodes a SnapshotPolicy message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateStoragePoolRequest + * @returns SnapshotPolicy * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.netapp.v1.CreateStoragePoolRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.netapp.v1.SnapshotPolicy; /** - * Decodes a CreateStoragePoolRequest message from the specified reader or buffer, length delimited. + * Decodes a SnapshotPolicy message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateStoragePoolRequest + * @returns SnapshotPolicy * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.netapp.v1.CreateStoragePoolRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.netapp.v1.SnapshotPolicy; /** - * Verifies a CreateStoragePoolRequest message. + * Verifies a SnapshotPolicy message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a CreateStoragePoolRequest message from a plain object. Also converts values to their respective internal types. + * Creates a SnapshotPolicy message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateStoragePoolRequest + * @returns SnapshotPolicy */ - public static fromObject(object: { [k: string]: any }): google.cloud.netapp.v1.CreateStoragePoolRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.netapp.v1.SnapshotPolicy; /** - * Creates a plain object from a CreateStoragePoolRequest message. Also converts values to other types if specified. - * @param message CreateStoragePoolRequest + * Creates a plain object from a SnapshotPolicy message. Also converts values to other types if specified. + * @param message SnapshotPolicy * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.netapp.v1.CreateStoragePoolRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.netapp.v1.SnapshotPolicy, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateStoragePoolRequest to JSON. + * Converts this SnapshotPolicy to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CreateStoragePoolRequest + * Gets the default type url for SnapshotPolicy * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an UpdateStoragePoolRequest. */ - interface IUpdateStoragePoolRequest { + /** Properties of an HourlySchedule. */ + interface IHourlySchedule { - /** UpdateStoragePoolRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); + /** HourlySchedule snapshotsToKeep */ + snapshotsToKeep?: (number|null); - /** UpdateStoragePoolRequest storagePool */ - storagePool?: (google.cloud.netapp.v1.IStoragePool|null); + /** HourlySchedule minute */ + minute?: (number|null); } - /** Represents an UpdateStoragePoolRequest. */ - class UpdateStoragePoolRequest implements IUpdateStoragePoolRequest { + /** Represents an HourlySchedule. */ + class HourlySchedule implements IHourlySchedule { /** - * Constructs a new UpdateStoragePoolRequest. + * Constructs a new HourlySchedule. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.netapp.v1.IUpdateStoragePoolRequest); + constructor(properties?: google.cloud.netapp.v1.IHourlySchedule); - /** UpdateStoragePoolRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); + /** HourlySchedule snapshotsToKeep. */ + public snapshotsToKeep?: (number|null); - /** UpdateStoragePoolRequest storagePool. */ - public storagePool?: (google.cloud.netapp.v1.IStoragePool|null); + /** HourlySchedule minute. */ + public minute?: (number|null); + + /** HourlySchedule _snapshotsToKeep. */ + public _snapshotsToKeep?: "snapshotsToKeep"; + + /** HourlySchedule _minute. */ + public _minute?: "minute"; /** - * Creates a new UpdateStoragePoolRequest instance using the specified properties. + * Creates a new HourlySchedule instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateStoragePoolRequest instance + * @returns HourlySchedule instance */ - public static create(properties?: google.cloud.netapp.v1.IUpdateStoragePoolRequest): google.cloud.netapp.v1.UpdateStoragePoolRequest; + public static create(properties?: google.cloud.netapp.v1.IHourlySchedule): google.cloud.netapp.v1.HourlySchedule; /** - * Encodes the specified UpdateStoragePoolRequest message. Does not implicitly {@link google.cloud.netapp.v1.UpdateStoragePoolRequest.verify|verify} messages. - * @param message UpdateStoragePoolRequest message or plain object to encode + * Encodes the specified HourlySchedule message. Does not implicitly {@link google.cloud.netapp.v1.HourlySchedule.verify|verify} messages. + * @param message HourlySchedule message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.netapp.v1.IUpdateStoragePoolRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.netapp.v1.IHourlySchedule, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdateStoragePoolRequest message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.UpdateStoragePoolRequest.verify|verify} messages. - * @param message UpdateStoragePoolRequest message or plain object to encode + * Encodes the specified HourlySchedule message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.HourlySchedule.verify|verify} messages. + * @param message HourlySchedule message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.netapp.v1.IUpdateStoragePoolRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.netapp.v1.IHourlySchedule, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateStoragePoolRequest message from the specified reader or buffer. + * Decodes an HourlySchedule message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpdateStoragePoolRequest + * @returns HourlySchedule * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.netapp.v1.UpdateStoragePoolRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.netapp.v1.HourlySchedule; /** - * Decodes an UpdateStoragePoolRequest message from the specified reader or buffer, length delimited. + * Decodes an HourlySchedule message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateStoragePoolRequest + * @returns HourlySchedule * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.netapp.v1.UpdateStoragePoolRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.netapp.v1.HourlySchedule; /** - * Verifies an UpdateStoragePoolRequest message. + * Verifies an HourlySchedule message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an UpdateStoragePoolRequest message from a plain object. Also converts values to their respective internal types. + * Creates an HourlySchedule message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdateStoragePoolRequest + * @returns HourlySchedule */ - public static fromObject(object: { [k: string]: any }): google.cloud.netapp.v1.UpdateStoragePoolRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.netapp.v1.HourlySchedule; /** - * Creates a plain object from an UpdateStoragePoolRequest message. Also converts values to other types if specified. - * @param message UpdateStoragePoolRequest + * Creates a plain object from an HourlySchedule message. Also converts values to other types if specified. + * @param message HourlySchedule * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.netapp.v1.UpdateStoragePoolRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.netapp.v1.HourlySchedule, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateStoragePoolRequest to JSON. + * Converts this HourlySchedule to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UpdateStoragePoolRequest + * Gets the default type url for HourlySchedule * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DeleteStoragePoolRequest. */ - interface IDeleteStoragePoolRequest { + /** Properties of a DailySchedule. */ + interface IDailySchedule { - /** DeleteStoragePoolRequest name */ - name?: (string|null); + /** DailySchedule snapshotsToKeep */ + snapshotsToKeep?: (number|null); + + /** DailySchedule minute */ + minute?: (number|null); + + /** DailySchedule hour */ + hour?: (number|null); } - /** Represents a DeleteStoragePoolRequest. */ - class DeleteStoragePoolRequest implements IDeleteStoragePoolRequest { + /** Represents a DailySchedule. */ + class DailySchedule implements IDailySchedule { /** - * Constructs a new DeleteStoragePoolRequest. + * Constructs a new DailySchedule. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.netapp.v1.IDeleteStoragePoolRequest); + constructor(properties?: google.cloud.netapp.v1.IDailySchedule); - /** DeleteStoragePoolRequest name. */ - public name: string; + /** DailySchedule snapshotsToKeep. */ + public snapshotsToKeep?: (number|null); + + /** DailySchedule minute. */ + public minute?: (number|null); + + /** DailySchedule hour. */ + public hour?: (number|null); + + /** DailySchedule _snapshotsToKeep. */ + public _snapshotsToKeep?: "snapshotsToKeep"; + + /** DailySchedule _minute. */ + public _minute?: "minute"; + + /** DailySchedule _hour. */ + public _hour?: "hour"; /** - * Creates a new DeleteStoragePoolRequest instance using the specified properties. + * Creates a new DailySchedule instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteStoragePoolRequest instance + * @returns DailySchedule instance */ - public static create(properties?: google.cloud.netapp.v1.IDeleteStoragePoolRequest): google.cloud.netapp.v1.DeleteStoragePoolRequest; + public static create(properties?: google.cloud.netapp.v1.IDailySchedule): google.cloud.netapp.v1.DailySchedule; /** - * Encodes the specified DeleteStoragePoolRequest message. Does not implicitly {@link google.cloud.netapp.v1.DeleteStoragePoolRequest.verify|verify} messages. - * @param message DeleteStoragePoolRequest message or plain object to encode + * Encodes the specified DailySchedule message. Does not implicitly {@link google.cloud.netapp.v1.DailySchedule.verify|verify} messages. + * @param message DailySchedule message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.netapp.v1.IDeleteStoragePoolRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.netapp.v1.IDailySchedule, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteStoragePoolRequest message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.DeleteStoragePoolRequest.verify|verify} messages. - * @param message DeleteStoragePoolRequest message or plain object to encode + * Encodes the specified DailySchedule message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.DailySchedule.verify|verify} messages. + * @param message DailySchedule message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.netapp.v1.IDeleteStoragePoolRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.netapp.v1.IDailySchedule, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteStoragePoolRequest message from the specified reader or buffer. + * Decodes a DailySchedule message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteStoragePoolRequest + * @returns DailySchedule * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.netapp.v1.DeleteStoragePoolRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.netapp.v1.DailySchedule; /** - * Decodes a DeleteStoragePoolRequest message from the specified reader or buffer, length delimited. + * Decodes a DailySchedule message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteStoragePoolRequest + * @returns DailySchedule * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.netapp.v1.DeleteStoragePoolRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.netapp.v1.DailySchedule; /** - * Verifies a DeleteStoragePoolRequest message. + * Verifies a DailySchedule message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a DeleteStoragePoolRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DailySchedule message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteStoragePoolRequest + * @returns DailySchedule */ - public static fromObject(object: { [k: string]: any }): google.cloud.netapp.v1.DeleteStoragePoolRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.netapp.v1.DailySchedule; /** - * Creates a plain object from a DeleteStoragePoolRequest message. Also converts values to other types if specified. - * @param message DeleteStoragePoolRequest + * Creates a plain object from a DailySchedule message. Also converts values to other types if specified. + * @param message DailySchedule * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.netapp.v1.DeleteStoragePoolRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.netapp.v1.DailySchedule, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteStoragePoolRequest to JSON. + * Converts this DailySchedule to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DeleteStoragePoolRequest + * Gets the default type url for DailySchedule * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a SwitchActiveReplicaZoneRequest. */ - interface ISwitchActiveReplicaZoneRequest { + /** Properties of a WeeklySchedule. */ + interface IWeeklySchedule { - /** SwitchActiveReplicaZoneRequest name */ - name?: (string|null); + /** WeeklySchedule snapshotsToKeep */ + snapshotsToKeep?: (number|null); + + /** WeeklySchedule minute */ + minute?: (number|null); + + /** WeeklySchedule hour */ + hour?: (number|null); + + /** WeeklySchedule day */ + day?: (string|null); } - /** Represents a SwitchActiveReplicaZoneRequest. */ - class SwitchActiveReplicaZoneRequest implements ISwitchActiveReplicaZoneRequest { + /** Represents a WeeklySchedule. */ + class WeeklySchedule implements IWeeklySchedule { /** - * Constructs a new SwitchActiveReplicaZoneRequest. + * Constructs a new WeeklySchedule. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.netapp.v1.ISwitchActiveReplicaZoneRequest); + constructor(properties?: google.cloud.netapp.v1.IWeeklySchedule); - /** SwitchActiveReplicaZoneRequest name. */ - public name: string; + /** WeeklySchedule snapshotsToKeep. */ + public snapshotsToKeep?: (number|null); + + /** WeeklySchedule minute. */ + public minute?: (number|null); + + /** WeeklySchedule hour. */ + public hour?: (number|null); + + /** WeeklySchedule day. */ + public day?: (string|null); + + /** WeeklySchedule _snapshotsToKeep. */ + public _snapshotsToKeep?: "snapshotsToKeep"; + + /** WeeklySchedule _minute. */ + public _minute?: "minute"; + + /** WeeklySchedule _hour. */ + public _hour?: "hour"; + + /** WeeklySchedule _day. */ + public _day?: "day"; /** - * Creates a new SwitchActiveReplicaZoneRequest instance using the specified properties. + * Creates a new WeeklySchedule instance using the specified properties. * @param [properties] Properties to set - * @returns SwitchActiveReplicaZoneRequest instance + * @returns WeeklySchedule instance */ - public static create(properties?: google.cloud.netapp.v1.ISwitchActiveReplicaZoneRequest): google.cloud.netapp.v1.SwitchActiveReplicaZoneRequest; + public static create(properties?: google.cloud.netapp.v1.IWeeklySchedule): google.cloud.netapp.v1.WeeklySchedule; /** - * Encodes the specified SwitchActiveReplicaZoneRequest message. Does not implicitly {@link google.cloud.netapp.v1.SwitchActiveReplicaZoneRequest.verify|verify} messages. - * @param message SwitchActiveReplicaZoneRequest message or plain object to encode + * Encodes the specified WeeklySchedule message. Does not implicitly {@link google.cloud.netapp.v1.WeeklySchedule.verify|verify} messages. + * @param message WeeklySchedule message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.netapp.v1.ISwitchActiveReplicaZoneRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.netapp.v1.IWeeklySchedule, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified SwitchActiveReplicaZoneRequest message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.SwitchActiveReplicaZoneRequest.verify|verify} messages. - * @param message SwitchActiveReplicaZoneRequest message or plain object to encode + * Encodes the specified WeeklySchedule message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.WeeklySchedule.verify|verify} messages. + * @param message WeeklySchedule message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.netapp.v1.ISwitchActiveReplicaZoneRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.netapp.v1.IWeeklySchedule, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SwitchActiveReplicaZoneRequest message from the specified reader or buffer. + * Decodes a WeeklySchedule message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SwitchActiveReplicaZoneRequest + * @returns WeeklySchedule * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.netapp.v1.SwitchActiveReplicaZoneRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.netapp.v1.WeeklySchedule; /** - * Decodes a SwitchActiveReplicaZoneRequest message from the specified reader or buffer, length delimited. + * Decodes a WeeklySchedule message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SwitchActiveReplicaZoneRequest + * @returns WeeklySchedule * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.netapp.v1.SwitchActiveReplicaZoneRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.netapp.v1.WeeklySchedule; /** - * Verifies a SwitchActiveReplicaZoneRequest message. + * Verifies a WeeklySchedule message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a SwitchActiveReplicaZoneRequest message from a plain object. Also converts values to their respective internal types. + * Creates a WeeklySchedule message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SwitchActiveReplicaZoneRequest + * @returns WeeklySchedule */ - public static fromObject(object: { [k: string]: any }): google.cloud.netapp.v1.SwitchActiveReplicaZoneRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.netapp.v1.WeeklySchedule; /** - * Creates a plain object from a SwitchActiveReplicaZoneRequest message. Also converts values to other types if specified. - * @param message SwitchActiveReplicaZoneRequest + * Creates a plain object from a WeeklySchedule message. Also converts values to other types if specified. + * @param message WeeklySchedule * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.netapp.v1.SwitchActiveReplicaZoneRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.netapp.v1.WeeklySchedule, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SwitchActiveReplicaZoneRequest to JSON. + * Converts this WeeklySchedule to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SwitchActiveReplicaZoneRequest + * Gets the default type url for WeeklySchedule * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a StoragePool. */ - interface IStoragePool { - - /** StoragePool name */ - name?: (string|null); - - /** StoragePool serviceLevel */ - serviceLevel?: (google.cloud.netapp.v1.ServiceLevel|keyof typeof google.cloud.netapp.v1.ServiceLevel|null); - - /** StoragePool capacityGib */ - capacityGib?: (number|Long|string|null); - - /** StoragePool volumeCapacityGib */ - volumeCapacityGib?: (number|Long|string|null); - - /** StoragePool volumeCount */ - volumeCount?: (number|null); - - /** StoragePool state */ - state?: (google.cloud.netapp.v1.StoragePool.State|keyof typeof google.cloud.netapp.v1.StoragePool.State|null); - - /** StoragePool stateDetails */ - stateDetails?: (string|null); - - /** StoragePool createTime */ - createTime?: (google.protobuf.ITimestamp|null); - - /** StoragePool description */ - description?: (string|null); - - /** StoragePool labels */ - labels?: ({ [k: string]: string }|null); - - /** StoragePool network */ - network?: (string|null); - - /** StoragePool activeDirectory */ - activeDirectory?: (string|null); - - /** StoragePool kmsConfig */ - kmsConfig?: (string|null); - - /** StoragePool ldapEnabled */ - ldapEnabled?: (boolean|null); - - /** StoragePool psaRange */ - psaRange?: (string|null); - - /** StoragePool encryptionType */ - encryptionType?: (google.cloud.netapp.v1.EncryptionType|keyof typeof google.cloud.netapp.v1.EncryptionType|null); + /** Properties of a MonthlySchedule. */ + interface IMonthlySchedule { - /** StoragePool globalAccessAllowed */ - globalAccessAllowed?: (boolean|null); + /** MonthlySchedule snapshotsToKeep */ + snapshotsToKeep?: (number|null); - /** StoragePool allowAutoTiering */ - allowAutoTiering?: (boolean|null); + /** MonthlySchedule minute */ + minute?: (number|null); - /** StoragePool replicaZone */ - replicaZone?: (string|null); + /** MonthlySchedule hour */ + hour?: (number|null); - /** StoragePool zone */ - zone?: (string|null); + /** MonthlySchedule daysOfMonth */ + daysOfMonth?: (string|null); } - /** Represents a StoragePool. */ - class StoragePool implements IStoragePool { + /** Represents a MonthlySchedule. */ + class MonthlySchedule implements IMonthlySchedule { /** - * Constructs a new StoragePool. + * Constructs a new MonthlySchedule. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.netapp.v1.IStoragePool); - - /** StoragePool name. */ - public name: string; - - /** StoragePool serviceLevel. */ - public serviceLevel: (google.cloud.netapp.v1.ServiceLevel|keyof typeof google.cloud.netapp.v1.ServiceLevel); - - /** StoragePool capacityGib. */ - public capacityGib: (number|Long|string); - - /** StoragePool volumeCapacityGib. */ - public volumeCapacityGib: (number|Long|string); - - /** StoragePool volumeCount. */ - public volumeCount: number; - - /** StoragePool state. */ - public state: (google.cloud.netapp.v1.StoragePool.State|keyof typeof google.cloud.netapp.v1.StoragePool.State); - - /** StoragePool stateDetails. */ - public stateDetails: string; - - /** StoragePool createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); - - /** StoragePool description. */ - public description: string; - - /** StoragePool labels. */ - public labels: { [k: string]: string }; - - /** StoragePool network. */ - public network: string; - - /** StoragePool activeDirectory. */ - public activeDirectory: string; - - /** StoragePool kmsConfig. */ - public kmsConfig: string; - - /** StoragePool ldapEnabled. */ - public ldapEnabled: boolean; + constructor(properties?: google.cloud.netapp.v1.IMonthlySchedule); - /** StoragePool psaRange. */ - public psaRange: string; + /** MonthlySchedule snapshotsToKeep. */ + public snapshotsToKeep?: (number|null); - /** StoragePool encryptionType. */ - public encryptionType: (google.cloud.netapp.v1.EncryptionType|keyof typeof google.cloud.netapp.v1.EncryptionType); + /** MonthlySchedule minute. */ + public minute?: (number|null); - /** StoragePool globalAccessAllowed. */ - public globalAccessAllowed?: (boolean|null); + /** MonthlySchedule hour. */ + public hour?: (number|null); - /** StoragePool allowAutoTiering. */ - public allowAutoTiering: boolean; + /** MonthlySchedule daysOfMonth. */ + public daysOfMonth?: (string|null); - /** StoragePool replicaZone. */ - public replicaZone: string; + /** MonthlySchedule _snapshotsToKeep. */ + public _snapshotsToKeep?: "snapshotsToKeep"; - /** StoragePool zone. */ - public zone: string; + /** MonthlySchedule _minute. */ + public _minute?: "minute"; - /** StoragePool _globalAccessAllowed. */ - public _globalAccessAllowed?: "globalAccessAllowed"; + /** MonthlySchedule _hour. */ + public _hour?: "hour"; + + /** MonthlySchedule _daysOfMonth. */ + public _daysOfMonth?: "daysOfMonth"; /** - * Creates a new StoragePool instance using the specified properties. + * Creates a new MonthlySchedule instance using the specified properties. * @param [properties] Properties to set - * @returns StoragePool instance + * @returns MonthlySchedule instance */ - public static create(properties?: google.cloud.netapp.v1.IStoragePool): google.cloud.netapp.v1.StoragePool; + public static create(properties?: google.cloud.netapp.v1.IMonthlySchedule): google.cloud.netapp.v1.MonthlySchedule; /** - * Encodes the specified StoragePool message. Does not implicitly {@link google.cloud.netapp.v1.StoragePool.verify|verify} messages. - * @param message StoragePool message or plain object to encode + * Encodes the specified MonthlySchedule message. Does not implicitly {@link google.cloud.netapp.v1.MonthlySchedule.verify|verify} messages. + * @param message MonthlySchedule message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.netapp.v1.IStoragePool, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.netapp.v1.IMonthlySchedule, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified StoragePool message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.StoragePool.verify|verify} messages. - * @param message StoragePool message or plain object to encode + * Encodes the specified MonthlySchedule message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.MonthlySchedule.verify|verify} messages. + * @param message MonthlySchedule message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.netapp.v1.IStoragePool, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.netapp.v1.IMonthlySchedule, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a StoragePool message from the specified reader or buffer. + * Decodes a MonthlySchedule message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns StoragePool + * @returns MonthlySchedule * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.netapp.v1.StoragePool; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.netapp.v1.MonthlySchedule; /** - * Decodes a StoragePool message from the specified reader or buffer, length delimited. + * Decodes a MonthlySchedule message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns StoragePool + * @returns MonthlySchedule * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.netapp.v1.StoragePool; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.netapp.v1.MonthlySchedule; /** - * Verifies a StoragePool message. + * Verifies a MonthlySchedule message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a StoragePool message from a plain object. Also converts values to their respective internal types. + * Creates a MonthlySchedule message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns StoragePool + * @returns MonthlySchedule */ - public static fromObject(object: { [k: string]: any }): google.cloud.netapp.v1.StoragePool; + public static fromObject(object: { [k: string]: any }): google.cloud.netapp.v1.MonthlySchedule; /** - * Creates a plain object from a StoragePool message. Also converts values to other types if specified. - * @param message StoragePool + * Creates a plain object from a MonthlySchedule message. Also converts values to other types if specified. + * @param message MonthlySchedule * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.netapp.v1.StoragePool, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.netapp.v1.MonthlySchedule, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this StoragePool to JSON. + * Converts this MonthlySchedule to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for StoragePool + * Gets the default type url for MonthlySchedule * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace StoragePool { - - /** State enum. */ - enum State { - STATE_UNSPECIFIED = 0, - READY = 1, - CREATING = 2, - DELETING = 3, - UPDATING = 4, - RESTORING = 5, - DISABLED = 6, - ERROR = 7 - } - } + /** Properties of a MountOption. */ + interface IMountOption { - /** ServiceLevel enum. */ - enum ServiceLevel { - SERVICE_LEVEL_UNSPECIFIED = 0, - PREMIUM = 1, - EXTREME = 2, - STANDARD = 3, - FLEX = 4 - } + /** MountOption export */ + "export"?: (string|null); - /** EncryptionType enum. */ - enum EncryptionType { - ENCRYPTION_TYPE_UNSPECIFIED = 0, - SERVICE_MANAGED = 1, - CLOUD_KMS = 2 - } + /** MountOption exportFull */ + exportFull?: (string|null); - /** Properties of a LocationMetadata. */ - interface ILocationMetadata { + /** MountOption protocol */ + protocol?: (google.cloud.netapp.v1.Protocols|keyof typeof google.cloud.netapp.v1.Protocols|null); - /** LocationMetadata supportedServiceLevels */ - supportedServiceLevels?: (google.cloud.netapp.v1.ServiceLevel[]|null); + /** MountOption instructions */ + instructions?: (string|null); } - /** Represents a LocationMetadata. */ - class LocationMetadata implements ILocationMetadata { + /** Represents a MountOption. */ + class MountOption implements IMountOption { /** - * Constructs a new LocationMetadata. + * Constructs a new MountOption. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.netapp.v1.ILocationMetadata); + constructor(properties?: google.cloud.netapp.v1.IMountOption); - /** LocationMetadata supportedServiceLevels. */ - public supportedServiceLevels: google.cloud.netapp.v1.ServiceLevel[]; + /** MountOption export. */ + public export: string; + + /** MountOption exportFull. */ + public exportFull: string; + + /** MountOption protocol. */ + public protocol: (google.cloud.netapp.v1.Protocols|keyof typeof google.cloud.netapp.v1.Protocols); + + /** MountOption instructions. */ + public instructions: string; /** - * Creates a new LocationMetadata instance using the specified properties. + * Creates a new MountOption instance using the specified properties. * @param [properties] Properties to set - * @returns LocationMetadata instance + * @returns MountOption instance */ - public static create(properties?: google.cloud.netapp.v1.ILocationMetadata): google.cloud.netapp.v1.LocationMetadata; + public static create(properties?: google.cloud.netapp.v1.IMountOption): google.cloud.netapp.v1.MountOption; /** - * Encodes the specified LocationMetadata message. Does not implicitly {@link google.cloud.netapp.v1.LocationMetadata.verify|verify} messages. - * @param message LocationMetadata message or plain object to encode + * Encodes the specified MountOption message. Does not implicitly {@link google.cloud.netapp.v1.MountOption.verify|verify} messages. + * @param message MountOption message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.netapp.v1.ILocationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.netapp.v1.IMountOption, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified LocationMetadata message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.LocationMetadata.verify|verify} messages. - * @param message LocationMetadata message or plain object to encode + * Encodes the specified MountOption message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.MountOption.verify|verify} messages. + * @param message MountOption message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.netapp.v1.ILocationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.netapp.v1.IMountOption, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a LocationMetadata message from the specified reader or buffer. + * Decodes a MountOption message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns LocationMetadata + * @returns MountOption * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.netapp.v1.LocationMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.netapp.v1.MountOption; /** - * Decodes a LocationMetadata message from the specified reader or buffer, length delimited. + * Decodes a MountOption message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns LocationMetadata + * @returns MountOption * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.netapp.v1.LocationMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.netapp.v1.MountOption; /** - * Verifies a LocationMetadata message. + * Verifies a MountOption message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a LocationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a MountOption message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns LocationMetadata + * @returns MountOption */ - public static fromObject(object: { [k: string]: any }): google.cloud.netapp.v1.LocationMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.netapp.v1.MountOption; /** - * Creates a plain object from a LocationMetadata message. Also converts values to other types if specified. - * @param message LocationMetadata + * Creates a plain object from a MountOption message. Also converts values to other types if specified. + * @param message MountOption * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.netapp.v1.LocationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.netapp.v1.MountOption, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this LocationMetadata to JSON. + * Converts this MountOption to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for LocationMetadata + * Gets the default type url for MountOption * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Protocols enum. */ - enum Protocols { - PROTOCOLS_UNSPECIFIED = 0, - NFSV3 = 1, - NFSV4 = 2, - SMB = 3 - } - - /** AccessType enum. */ - enum AccessType { - ACCESS_TYPE_UNSPECIFIED = 0, - READ_ONLY = 1, - READ_WRITE = 2, - READ_NONE = 3 - } - - /** SMBSettings enum. */ - enum SMBSettings { - SMB_SETTINGS_UNSPECIFIED = 0, - ENCRYPT_DATA = 1, - BROWSABLE = 2, - CHANGE_NOTIFY = 3, - NON_BROWSABLE = 4, - OPLOCKS = 5, - SHOW_SNAPSHOT = 6, - SHOW_PREVIOUS_VERSIONS = 7, - ACCESS_BASED_ENUMERATION = 8, - CONTINUOUSLY_AVAILABLE = 9 - } - - /** SecurityStyle enum. */ - enum SecurityStyle { - SECURITY_STYLE_UNSPECIFIED = 0, - NTFS = 1, - UNIX = 2 - } - - /** RestrictedAction enum. */ - enum RestrictedAction { - RESTRICTED_ACTION_UNSPECIFIED = 0, - DELETE = 1 - } - - /** Properties of a ListVolumesRequest. */ - interface IListVolumesRequest { - - /** ListVolumesRequest parent */ - parent?: (string|null); - - /** ListVolumesRequest pageSize */ - pageSize?: (number|null); - - /** ListVolumesRequest pageToken */ - pageToken?: (string|null); + /** Properties of a RestoreParameters. */ + interface IRestoreParameters { - /** ListVolumesRequest filter */ - filter?: (string|null); + /** RestoreParameters sourceSnapshot */ + sourceSnapshot?: (string|null); - /** ListVolumesRequest orderBy */ - orderBy?: (string|null); + /** RestoreParameters sourceBackup */ + sourceBackup?: (string|null); } - /** Represents a ListVolumesRequest. */ - class ListVolumesRequest implements IListVolumesRequest { + /** Represents a RestoreParameters. */ + class RestoreParameters implements IRestoreParameters { /** - * Constructs a new ListVolumesRequest. + * Constructs a new RestoreParameters. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.netapp.v1.IListVolumesRequest); - - /** ListVolumesRequest parent. */ - public parent: string; - - /** ListVolumesRequest pageSize. */ - public pageSize: number; + constructor(properties?: google.cloud.netapp.v1.IRestoreParameters); - /** ListVolumesRequest pageToken. */ - public pageToken: string; + /** RestoreParameters sourceSnapshot. */ + public sourceSnapshot?: (string|null); - /** ListVolumesRequest filter. */ - public filter: string; + /** RestoreParameters sourceBackup. */ + public sourceBackup?: (string|null); - /** ListVolumesRequest orderBy. */ - public orderBy: string; + /** RestoreParameters source. */ + public source?: ("sourceSnapshot"|"sourceBackup"); /** - * Creates a new ListVolumesRequest instance using the specified properties. + * Creates a new RestoreParameters instance using the specified properties. * @param [properties] Properties to set - * @returns ListVolumesRequest instance + * @returns RestoreParameters instance */ - public static create(properties?: google.cloud.netapp.v1.IListVolumesRequest): google.cloud.netapp.v1.ListVolumesRequest; + public static create(properties?: google.cloud.netapp.v1.IRestoreParameters): google.cloud.netapp.v1.RestoreParameters; /** - * Encodes the specified ListVolumesRequest message. Does not implicitly {@link google.cloud.netapp.v1.ListVolumesRequest.verify|verify} messages. - * @param message ListVolumesRequest message or plain object to encode + * Encodes the specified RestoreParameters message. Does not implicitly {@link google.cloud.netapp.v1.RestoreParameters.verify|verify} messages. + * @param message RestoreParameters message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.netapp.v1.IListVolumesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.netapp.v1.IRestoreParameters, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListVolumesRequest message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.ListVolumesRequest.verify|verify} messages. - * @param message ListVolumesRequest message or plain object to encode + * Encodes the specified RestoreParameters message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.RestoreParameters.verify|verify} messages. + * @param message RestoreParameters message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.netapp.v1.IListVolumesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.netapp.v1.IRestoreParameters, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListVolumesRequest message from the specified reader or buffer. + * Decodes a RestoreParameters message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListVolumesRequest + * @returns RestoreParameters * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.netapp.v1.ListVolumesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.netapp.v1.RestoreParameters; /** - * Decodes a ListVolumesRequest message from the specified reader or buffer, length delimited. + * Decodes a RestoreParameters message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListVolumesRequest + * @returns RestoreParameters * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.netapp.v1.ListVolumesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.netapp.v1.RestoreParameters; /** - * Verifies a ListVolumesRequest message. + * Verifies a RestoreParameters message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListVolumesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a RestoreParameters message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListVolumesRequest + * @returns RestoreParameters */ - public static fromObject(object: { [k: string]: any }): google.cloud.netapp.v1.ListVolumesRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.netapp.v1.RestoreParameters; /** - * Creates a plain object from a ListVolumesRequest message. Also converts values to other types if specified. - * @param message ListVolumesRequest + * Creates a plain object from a RestoreParameters message. Also converts values to other types if specified. + * @param message RestoreParameters * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.netapp.v1.ListVolumesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.netapp.v1.RestoreParameters, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListVolumesRequest to JSON. + * Converts this RestoreParameters to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListVolumesRequest + * Gets the default type url for RestoreParameters * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListVolumesResponse. */ - interface IListVolumesResponse { + /** Properties of a BackupConfig. */ + interface IBackupConfig { - /** ListVolumesResponse volumes */ - volumes?: (google.cloud.netapp.v1.IVolume[]|null); + /** BackupConfig backupPolicies */ + backupPolicies?: (string[]|null); - /** ListVolumesResponse nextPageToken */ - nextPageToken?: (string|null); + /** BackupConfig backupVault */ + backupVault?: (string|null); - /** ListVolumesResponse unreachable */ - unreachable?: (string[]|null); + /** BackupConfig scheduledBackupEnabled */ + scheduledBackupEnabled?: (boolean|null); + + /** BackupConfig backupChainBytes */ + backupChainBytes?: (number|Long|string|null); } - /** Represents a ListVolumesResponse. */ - class ListVolumesResponse implements IListVolumesResponse { + /** Represents a BackupConfig. */ + class BackupConfig implements IBackupConfig { /** - * Constructs a new ListVolumesResponse. + * Constructs a new BackupConfig. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.netapp.v1.IListVolumesResponse); + constructor(properties?: google.cloud.netapp.v1.IBackupConfig); - /** ListVolumesResponse volumes. */ - public volumes: google.cloud.netapp.v1.IVolume[]; + /** BackupConfig backupPolicies. */ + public backupPolicies: string[]; - /** ListVolumesResponse nextPageToken. */ - public nextPageToken: string; + /** BackupConfig backupVault. */ + public backupVault: string; - /** ListVolumesResponse unreachable. */ - public unreachable: string[]; + /** BackupConfig scheduledBackupEnabled. */ + public scheduledBackupEnabled?: (boolean|null); + + /** BackupConfig backupChainBytes. */ + public backupChainBytes?: (number|Long|string|null); + + /** BackupConfig _scheduledBackupEnabled. */ + public _scheduledBackupEnabled?: "scheduledBackupEnabled"; + + /** BackupConfig _backupChainBytes. */ + public _backupChainBytes?: "backupChainBytes"; /** - * Creates a new ListVolumesResponse instance using the specified properties. + * Creates a new BackupConfig instance using the specified properties. * @param [properties] Properties to set - * @returns ListVolumesResponse instance + * @returns BackupConfig instance */ - public static create(properties?: google.cloud.netapp.v1.IListVolumesResponse): google.cloud.netapp.v1.ListVolumesResponse; + public static create(properties?: google.cloud.netapp.v1.IBackupConfig): google.cloud.netapp.v1.BackupConfig; /** - * Encodes the specified ListVolumesResponse message. Does not implicitly {@link google.cloud.netapp.v1.ListVolumesResponse.verify|verify} messages. - * @param message ListVolumesResponse message or plain object to encode + * Encodes the specified BackupConfig message. Does not implicitly {@link google.cloud.netapp.v1.BackupConfig.verify|verify} messages. + * @param message BackupConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.netapp.v1.IListVolumesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.netapp.v1.IBackupConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListVolumesResponse message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.ListVolumesResponse.verify|verify} messages. - * @param message ListVolumesResponse message or plain object to encode + * Encodes the specified BackupConfig message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.BackupConfig.verify|verify} messages. + * @param message BackupConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.netapp.v1.IListVolumesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.netapp.v1.IBackupConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListVolumesResponse message from the specified reader or buffer. + * Decodes a BackupConfig message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListVolumesResponse + * @returns BackupConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.netapp.v1.ListVolumesResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.netapp.v1.BackupConfig; /** - * Decodes a ListVolumesResponse message from the specified reader or buffer, length delimited. + * Decodes a BackupConfig message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListVolumesResponse + * @returns BackupConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.netapp.v1.ListVolumesResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.netapp.v1.BackupConfig; /** - * Verifies a ListVolumesResponse message. + * Verifies a BackupConfig message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListVolumesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a BackupConfig message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListVolumesResponse + * @returns BackupConfig */ - public static fromObject(object: { [k: string]: any }): google.cloud.netapp.v1.ListVolumesResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.netapp.v1.BackupConfig; /** - * Creates a plain object from a ListVolumesResponse message. Also converts values to other types if specified. - * @param message ListVolumesResponse + * Creates a plain object from a BackupConfig message. Also converts values to other types if specified. + * @param message BackupConfig * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.netapp.v1.ListVolumesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.netapp.v1.BackupConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListVolumesResponse to JSON. + * Converts this BackupConfig to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListVolumesResponse + * Gets the default type url for BackupConfig * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GetVolumeRequest. */ - interface IGetVolumeRequest { + /** Properties of a TieringPolicy. */ + interface ITieringPolicy { - /** GetVolumeRequest name */ - name?: (string|null); + /** TieringPolicy tierAction */ + tierAction?: (google.cloud.netapp.v1.TieringPolicy.TierAction|keyof typeof google.cloud.netapp.v1.TieringPolicy.TierAction|null); + + /** TieringPolicy coolingThresholdDays */ + coolingThresholdDays?: (number|null); } - /** Represents a GetVolumeRequest. */ - class GetVolumeRequest implements IGetVolumeRequest { + /** Represents a TieringPolicy. */ + class TieringPolicy implements ITieringPolicy { /** - * Constructs a new GetVolumeRequest. + * Constructs a new TieringPolicy. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.netapp.v1.IGetVolumeRequest); + constructor(properties?: google.cloud.netapp.v1.ITieringPolicy); - /** GetVolumeRequest name. */ - public name: string; + /** TieringPolicy tierAction. */ + public tierAction?: (google.cloud.netapp.v1.TieringPolicy.TierAction|keyof typeof google.cloud.netapp.v1.TieringPolicy.TierAction|null); + + /** TieringPolicy coolingThresholdDays. */ + public coolingThresholdDays?: (number|null); + + /** TieringPolicy _tierAction. */ + public _tierAction?: "tierAction"; + + /** TieringPolicy _coolingThresholdDays. */ + public _coolingThresholdDays?: "coolingThresholdDays"; /** - * Creates a new GetVolumeRequest instance using the specified properties. + * Creates a new TieringPolicy instance using the specified properties. * @param [properties] Properties to set - * @returns GetVolumeRequest instance + * @returns TieringPolicy instance */ - public static create(properties?: google.cloud.netapp.v1.IGetVolumeRequest): google.cloud.netapp.v1.GetVolumeRequest; + public static create(properties?: google.cloud.netapp.v1.ITieringPolicy): google.cloud.netapp.v1.TieringPolicy; /** - * Encodes the specified GetVolumeRequest message. Does not implicitly {@link google.cloud.netapp.v1.GetVolumeRequest.verify|verify} messages. - * @param message GetVolumeRequest message or plain object to encode + * Encodes the specified TieringPolicy message. Does not implicitly {@link google.cloud.netapp.v1.TieringPolicy.verify|verify} messages. + * @param message TieringPolicy message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.netapp.v1.IGetVolumeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.netapp.v1.ITieringPolicy, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetVolumeRequest message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.GetVolumeRequest.verify|verify} messages. - * @param message GetVolumeRequest message or plain object to encode + * Encodes the specified TieringPolicy message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.TieringPolicy.verify|verify} messages. + * @param message TieringPolicy message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.netapp.v1.IGetVolumeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.netapp.v1.ITieringPolicy, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetVolumeRequest message from the specified reader or buffer. + * Decodes a TieringPolicy message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetVolumeRequest + * @returns TieringPolicy * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.netapp.v1.GetVolumeRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.netapp.v1.TieringPolicy; /** - * Decodes a GetVolumeRequest message from the specified reader or buffer, length delimited. + * Decodes a TieringPolicy message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetVolumeRequest + * @returns TieringPolicy * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.netapp.v1.GetVolumeRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.netapp.v1.TieringPolicy; /** - * Verifies a GetVolumeRequest message. + * Verifies a TieringPolicy message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a GetVolumeRequest message from a plain object. Also converts values to their respective internal types. + * Creates a TieringPolicy message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetVolumeRequest + * @returns TieringPolicy */ - public static fromObject(object: { [k: string]: any }): google.cloud.netapp.v1.GetVolumeRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.netapp.v1.TieringPolicy; /** - * Creates a plain object from a GetVolumeRequest message. Also converts values to other types if specified. - * @param message GetVolumeRequest + * Creates a plain object from a TieringPolicy message. Also converts values to other types if specified. + * @param message TieringPolicy * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.netapp.v1.GetVolumeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.netapp.v1.TieringPolicy, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetVolumeRequest to JSON. + * Converts this TieringPolicy to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetVolumeRequest + * Gets the default type url for TieringPolicy * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CreateVolumeRequest. */ - interface ICreateVolumeRequest { + namespace TieringPolicy { - /** CreateVolumeRequest parent */ - parent?: (string|null); + /** TierAction enum. */ + enum TierAction { + TIER_ACTION_UNSPECIFIED = 0, + ENABLED = 1, + PAUSED = 2 + } + } - /** CreateVolumeRequest volumeId */ - volumeId?: (string|null); + /** Properties of a HybridReplicationParameters. */ + interface IHybridReplicationParameters { + + /** HybridReplicationParameters replication */ + replication?: (string|null); + + /** HybridReplicationParameters peerVolumeName */ + peerVolumeName?: (string|null); + + /** HybridReplicationParameters peerClusterName */ + peerClusterName?: (string|null); + + /** HybridReplicationParameters peerSvmName */ + peerSvmName?: (string|null); + + /** HybridReplicationParameters peerIpAddresses */ + peerIpAddresses?: (string[]|null); + + /** HybridReplicationParameters clusterLocation */ + clusterLocation?: (string|null); - /** CreateVolumeRequest volume */ - volume?: (google.cloud.netapp.v1.IVolume|null); + /** HybridReplicationParameters description */ + description?: (string|null); + + /** HybridReplicationParameters labels */ + labels?: ({ [k: string]: string }|null); } - /** Represents a CreateVolumeRequest. */ - class CreateVolumeRequest implements ICreateVolumeRequest { + /** Represents a HybridReplicationParameters. */ + class HybridReplicationParameters implements IHybridReplicationParameters { /** - * Constructs a new CreateVolumeRequest. + * Constructs a new HybridReplicationParameters. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.netapp.v1.ICreateVolumeRequest); + constructor(properties?: google.cloud.netapp.v1.IHybridReplicationParameters); - /** CreateVolumeRequest parent. */ - public parent: string; + /** HybridReplicationParameters replication. */ + public replication: string; - /** CreateVolumeRequest volumeId. */ - public volumeId: string; + /** HybridReplicationParameters peerVolumeName. */ + public peerVolumeName: string; - /** CreateVolumeRequest volume. */ - public volume?: (google.cloud.netapp.v1.IVolume|null); + /** HybridReplicationParameters peerClusterName. */ + public peerClusterName: string; + + /** HybridReplicationParameters peerSvmName. */ + public peerSvmName: string; + + /** HybridReplicationParameters peerIpAddresses. */ + public peerIpAddresses: string[]; + + /** HybridReplicationParameters clusterLocation. */ + public clusterLocation: string; + + /** HybridReplicationParameters description. */ + public description: string; + + /** HybridReplicationParameters labels. */ + public labels: { [k: string]: string }; /** - * Creates a new CreateVolumeRequest instance using the specified properties. + * Creates a new HybridReplicationParameters instance using the specified properties. * @param [properties] Properties to set - * @returns CreateVolumeRequest instance + * @returns HybridReplicationParameters instance */ - public static create(properties?: google.cloud.netapp.v1.ICreateVolumeRequest): google.cloud.netapp.v1.CreateVolumeRequest; + public static create(properties?: google.cloud.netapp.v1.IHybridReplicationParameters): google.cloud.netapp.v1.HybridReplicationParameters; /** - * Encodes the specified CreateVolumeRequest message. Does not implicitly {@link google.cloud.netapp.v1.CreateVolumeRequest.verify|verify} messages. - * @param message CreateVolumeRequest message or plain object to encode + * Encodes the specified HybridReplicationParameters message. Does not implicitly {@link google.cloud.netapp.v1.HybridReplicationParameters.verify|verify} messages. + * @param message HybridReplicationParameters message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.netapp.v1.ICreateVolumeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.netapp.v1.IHybridReplicationParameters, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateVolumeRequest message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.CreateVolumeRequest.verify|verify} messages. - * @param message CreateVolumeRequest message or plain object to encode + * Encodes the specified HybridReplicationParameters message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.HybridReplicationParameters.verify|verify} messages. + * @param message HybridReplicationParameters message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.netapp.v1.ICreateVolumeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.netapp.v1.IHybridReplicationParameters, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateVolumeRequest message from the specified reader or buffer. + * Decodes a HybridReplicationParameters message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateVolumeRequest + * @returns HybridReplicationParameters * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.netapp.v1.CreateVolumeRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.netapp.v1.HybridReplicationParameters; /** - * Decodes a CreateVolumeRequest message from the specified reader or buffer, length delimited. + * Decodes a HybridReplicationParameters message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateVolumeRequest + * @returns HybridReplicationParameters * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.netapp.v1.CreateVolumeRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.netapp.v1.HybridReplicationParameters; /** - * Verifies a CreateVolumeRequest message. + * Verifies a HybridReplicationParameters message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a CreateVolumeRequest message from a plain object. Also converts values to their respective internal types. + * Creates a HybridReplicationParameters message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateVolumeRequest + * @returns HybridReplicationParameters */ - public static fromObject(object: { [k: string]: any }): google.cloud.netapp.v1.CreateVolumeRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.netapp.v1.HybridReplicationParameters; /** - * Creates a plain object from a CreateVolumeRequest message. Also converts values to other types if specified. - * @param message CreateVolumeRequest + * Creates a plain object from a HybridReplicationParameters message. Also converts values to other types if specified. + * @param message HybridReplicationParameters * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.netapp.v1.CreateVolumeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.netapp.v1.HybridReplicationParameters, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateVolumeRequest to JSON. + * Converts this HybridReplicationParameters to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CreateVolumeRequest + * Gets the default type url for HybridReplicationParameters * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an UpdateVolumeRequest. */ - interface IUpdateVolumeRequest { + /** ServiceLevel enum. */ + enum ServiceLevel { + SERVICE_LEVEL_UNSPECIFIED = 0, + PREMIUM = 1, + EXTREME = 2, + STANDARD = 3, + FLEX = 4 + } - /** UpdateVolumeRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); + /** EncryptionType enum. */ + enum EncryptionType { + ENCRYPTION_TYPE_UNSPECIFIED = 0, + SERVICE_MANAGED = 1, + CLOUD_KMS = 2 + } - /** UpdateVolumeRequest volume */ - volume?: (google.cloud.netapp.v1.IVolume|null); + /** Properties of a LocationMetadata. */ + interface ILocationMetadata { + + /** LocationMetadata supportedServiceLevels */ + supportedServiceLevels?: (google.cloud.netapp.v1.ServiceLevel[]|null); } - /** Represents an UpdateVolumeRequest. */ - class UpdateVolumeRequest implements IUpdateVolumeRequest { + /** Represents a LocationMetadata. */ + class LocationMetadata implements ILocationMetadata { /** - * Constructs a new UpdateVolumeRequest. + * Constructs a new LocationMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.netapp.v1.IUpdateVolumeRequest); - - /** UpdateVolumeRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); + constructor(properties?: google.cloud.netapp.v1.ILocationMetadata); - /** UpdateVolumeRequest volume. */ - public volume?: (google.cloud.netapp.v1.IVolume|null); + /** LocationMetadata supportedServiceLevels. */ + public supportedServiceLevels: google.cloud.netapp.v1.ServiceLevel[]; /** - * Creates a new UpdateVolumeRequest instance using the specified properties. + * Creates a new LocationMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateVolumeRequest instance + * @returns LocationMetadata instance */ - public static create(properties?: google.cloud.netapp.v1.IUpdateVolumeRequest): google.cloud.netapp.v1.UpdateVolumeRequest; + public static create(properties?: google.cloud.netapp.v1.ILocationMetadata): google.cloud.netapp.v1.LocationMetadata; /** - * Encodes the specified UpdateVolumeRequest message. Does not implicitly {@link google.cloud.netapp.v1.UpdateVolumeRequest.verify|verify} messages. - * @param message UpdateVolumeRequest message or plain object to encode + * Encodes the specified LocationMetadata message. Does not implicitly {@link google.cloud.netapp.v1.LocationMetadata.verify|verify} messages. + * @param message LocationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.netapp.v1.IUpdateVolumeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.netapp.v1.ILocationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdateVolumeRequest message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.UpdateVolumeRequest.verify|verify} messages. - * @param message UpdateVolumeRequest message or plain object to encode + * Encodes the specified LocationMetadata message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.LocationMetadata.verify|verify} messages. + * @param message LocationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.netapp.v1.IUpdateVolumeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.netapp.v1.ILocationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateVolumeRequest message from the specified reader or buffer. + * Decodes a LocationMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpdateVolumeRequest + * @returns LocationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.netapp.v1.UpdateVolumeRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.netapp.v1.LocationMetadata; /** - * Decodes an UpdateVolumeRequest message from the specified reader or buffer, length delimited. + * Decodes a LocationMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateVolumeRequest + * @returns LocationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.netapp.v1.UpdateVolumeRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.netapp.v1.LocationMetadata; /** - * Verifies an UpdateVolumeRequest message. + * Verifies a LocationMetadata message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an UpdateVolumeRequest message from a plain object. Also converts values to their respective internal types. + * Creates a LocationMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdateVolumeRequest + * @returns LocationMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.netapp.v1.UpdateVolumeRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.netapp.v1.LocationMetadata; /** - * Creates a plain object from an UpdateVolumeRequest message. Also converts values to other types if specified. - * @param message UpdateVolumeRequest + * Creates a plain object from a LocationMetadata message. Also converts values to other types if specified. + * @param message LocationMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.netapp.v1.UpdateVolumeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.netapp.v1.LocationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateVolumeRequest to JSON. + * Converts this LocationMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UpdateVolumeRequest + * Gets the default type url for LocationMetadata * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DeleteVolumeRequest. */ - interface IDeleteVolumeRequest { + /** Properties of a ListSnapshotsRequest. */ + interface IListSnapshotsRequest { - /** DeleteVolumeRequest name */ - name?: (string|null); + /** ListSnapshotsRequest parent */ + parent?: (string|null); - /** DeleteVolumeRequest force */ - force?: (boolean|null); + /** ListSnapshotsRequest pageSize */ + pageSize?: (number|null); + + /** ListSnapshotsRequest pageToken */ + pageToken?: (string|null); + + /** ListSnapshotsRequest orderBy */ + orderBy?: (string|null); + + /** ListSnapshotsRequest filter */ + filter?: (string|null); } - /** Represents a DeleteVolumeRequest. */ - class DeleteVolumeRequest implements IDeleteVolumeRequest { + /** Represents a ListSnapshotsRequest. */ + class ListSnapshotsRequest implements IListSnapshotsRequest { /** - * Constructs a new DeleteVolumeRequest. + * Constructs a new ListSnapshotsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.netapp.v1.IDeleteVolumeRequest); + constructor(properties?: google.cloud.netapp.v1.IListSnapshotsRequest); - /** DeleteVolumeRequest name. */ - public name: string; + /** ListSnapshotsRequest parent. */ + public parent: string; - /** DeleteVolumeRequest force. */ - public force: boolean; + /** ListSnapshotsRequest pageSize. */ + public pageSize: number; + + /** ListSnapshotsRequest pageToken. */ + public pageToken: string; + + /** ListSnapshotsRequest orderBy. */ + public orderBy: string; + + /** ListSnapshotsRequest filter. */ + public filter: string; /** - * Creates a new DeleteVolumeRequest instance using the specified properties. + * Creates a new ListSnapshotsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteVolumeRequest instance + * @returns ListSnapshotsRequest instance */ - public static create(properties?: google.cloud.netapp.v1.IDeleteVolumeRequest): google.cloud.netapp.v1.DeleteVolumeRequest; + public static create(properties?: google.cloud.netapp.v1.IListSnapshotsRequest): google.cloud.netapp.v1.ListSnapshotsRequest; /** - * Encodes the specified DeleteVolumeRequest message. Does not implicitly {@link google.cloud.netapp.v1.DeleteVolumeRequest.verify|verify} messages. - * @param message DeleteVolumeRequest message or plain object to encode + * Encodes the specified ListSnapshotsRequest message. Does not implicitly {@link google.cloud.netapp.v1.ListSnapshotsRequest.verify|verify} messages. + * @param message ListSnapshotsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.netapp.v1.IDeleteVolumeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.netapp.v1.IListSnapshotsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteVolumeRequest message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.DeleteVolumeRequest.verify|verify} messages. - * @param message DeleteVolumeRequest message or plain object to encode + * Encodes the specified ListSnapshotsRequest message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.ListSnapshotsRequest.verify|verify} messages. + * @param message ListSnapshotsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.netapp.v1.IDeleteVolumeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.netapp.v1.IListSnapshotsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteVolumeRequest message from the specified reader or buffer. + * Decodes a ListSnapshotsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteVolumeRequest + * @returns ListSnapshotsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.netapp.v1.DeleteVolumeRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.netapp.v1.ListSnapshotsRequest; /** - * Decodes a DeleteVolumeRequest message from the specified reader or buffer, length delimited. + * Decodes a ListSnapshotsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteVolumeRequest + * @returns ListSnapshotsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.netapp.v1.DeleteVolumeRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.netapp.v1.ListSnapshotsRequest; /** - * Verifies a DeleteVolumeRequest message. + * Verifies a ListSnapshotsRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a DeleteVolumeRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListSnapshotsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteVolumeRequest + * @returns ListSnapshotsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.netapp.v1.DeleteVolumeRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.netapp.v1.ListSnapshotsRequest; /** - * Creates a plain object from a DeleteVolumeRequest message. Also converts values to other types if specified. - * @param message DeleteVolumeRequest + * Creates a plain object from a ListSnapshotsRequest message. Also converts values to other types if specified. + * @param message ListSnapshotsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.netapp.v1.DeleteVolumeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.netapp.v1.ListSnapshotsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteVolumeRequest to JSON. + * Converts this ListSnapshotsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DeleteVolumeRequest + * Gets the default type url for ListSnapshotsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a RevertVolumeRequest. */ - interface IRevertVolumeRequest { + /** Properties of a ListSnapshotsResponse. */ + interface IListSnapshotsResponse { - /** RevertVolumeRequest name */ - name?: (string|null); + /** ListSnapshotsResponse snapshots */ + snapshots?: (google.cloud.netapp.v1.ISnapshot[]|null); - /** RevertVolumeRequest snapshotId */ - snapshotId?: (string|null); + /** ListSnapshotsResponse nextPageToken */ + nextPageToken?: (string|null); + + /** ListSnapshotsResponse unreachable */ + unreachable?: (string[]|null); } - /** Represents a RevertVolumeRequest. */ - class RevertVolumeRequest implements IRevertVolumeRequest { + /** Represents a ListSnapshotsResponse. */ + class ListSnapshotsResponse implements IListSnapshotsResponse { /** - * Constructs a new RevertVolumeRequest. + * Constructs a new ListSnapshotsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.netapp.v1.IRevertVolumeRequest); + constructor(properties?: google.cloud.netapp.v1.IListSnapshotsResponse); - /** RevertVolumeRequest name. */ - public name: string; + /** ListSnapshotsResponse snapshots. */ + public snapshots: google.cloud.netapp.v1.ISnapshot[]; + + /** ListSnapshotsResponse nextPageToken. */ + public nextPageToken: string; - /** RevertVolumeRequest snapshotId. */ - public snapshotId: string; + /** ListSnapshotsResponse unreachable. */ + public unreachable: string[]; /** - * Creates a new RevertVolumeRequest instance using the specified properties. + * Creates a new ListSnapshotsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns RevertVolumeRequest instance + * @returns ListSnapshotsResponse instance */ - public static create(properties?: google.cloud.netapp.v1.IRevertVolumeRequest): google.cloud.netapp.v1.RevertVolumeRequest; + public static create(properties?: google.cloud.netapp.v1.IListSnapshotsResponse): google.cloud.netapp.v1.ListSnapshotsResponse; /** - * Encodes the specified RevertVolumeRequest message. Does not implicitly {@link google.cloud.netapp.v1.RevertVolumeRequest.verify|verify} messages. - * @param message RevertVolumeRequest message or plain object to encode + * Encodes the specified ListSnapshotsResponse message. Does not implicitly {@link google.cloud.netapp.v1.ListSnapshotsResponse.verify|verify} messages. + * @param message ListSnapshotsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.netapp.v1.IRevertVolumeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.netapp.v1.IListSnapshotsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified RevertVolumeRequest message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.RevertVolumeRequest.verify|verify} messages. - * @param message RevertVolumeRequest message or plain object to encode + * Encodes the specified ListSnapshotsResponse message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.ListSnapshotsResponse.verify|verify} messages. + * @param message ListSnapshotsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.netapp.v1.IRevertVolumeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.netapp.v1.IListSnapshotsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RevertVolumeRequest message from the specified reader or buffer. + * Decodes a ListSnapshotsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RevertVolumeRequest + * @returns ListSnapshotsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.netapp.v1.RevertVolumeRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.netapp.v1.ListSnapshotsResponse; /** - * Decodes a RevertVolumeRequest message from the specified reader or buffer, length delimited. + * Decodes a ListSnapshotsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RevertVolumeRequest + * @returns ListSnapshotsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.netapp.v1.RevertVolumeRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.netapp.v1.ListSnapshotsResponse; /** - * Verifies a RevertVolumeRequest message. + * Verifies a ListSnapshotsResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a RevertVolumeRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListSnapshotsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RevertVolumeRequest + * @returns ListSnapshotsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.netapp.v1.RevertVolumeRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.netapp.v1.ListSnapshotsResponse; /** - * Creates a plain object from a RevertVolumeRequest message. Also converts values to other types if specified. - * @param message RevertVolumeRequest + * Creates a plain object from a ListSnapshotsResponse message. Also converts values to other types if specified. + * @param message ListSnapshotsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.netapp.v1.RevertVolumeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.netapp.v1.ListSnapshotsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RevertVolumeRequest to JSON. + * Converts this ListSnapshotsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for RevertVolumeRequest + * Gets the default type url for ListSnapshotsResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a Volume. */ - interface IVolume { + /** Properties of a GetSnapshotRequest. */ + interface IGetSnapshotRequest { - /** Volume name */ + /** GetSnapshotRequest name */ name?: (string|null); - - /** Volume state */ - state?: (google.cloud.netapp.v1.Volume.State|keyof typeof google.cloud.netapp.v1.Volume.State|null); - - /** Volume stateDetails */ - stateDetails?: (string|null); - - /** Volume createTime */ - createTime?: (google.protobuf.ITimestamp|null); - - /** Volume shareName */ - shareName?: (string|null); - - /** Volume psaRange */ - psaRange?: (string|null); - - /** Volume storagePool */ - storagePool?: (string|null); - - /** Volume network */ - network?: (string|null); - - /** Volume serviceLevel */ - serviceLevel?: (google.cloud.netapp.v1.ServiceLevel|keyof typeof google.cloud.netapp.v1.ServiceLevel|null); - - /** Volume capacityGib */ - capacityGib?: (number|Long|string|null); - - /** Volume exportPolicy */ - exportPolicy?: (google.cloud.netapp.v1.IExportPolicy|null); - - /** Volume protocols */ - protocols?: (google.cloud.netapp.v1.Protocols[]|null); - - /** Volume smbSettings */ - smbSettings?: (google.cloud.netapp.v1.SMBSettings[]|null); - - /** Volume mountOptions */ - mountOptions?: (google.cloud.netapp.v1.IMountOption[]|null); - - /** Volume unixPermissions */ - unixPermissions?: (string|null); - - /** Volume labels */ - labels?: ({ [k: string]: string }|null); - - /** Volume description */ - description?: (string|null); - - /** Volume snapshotPolicy */ - snapshotPolicy?: (google.cloud.netapp.v1.ISnapshotPolicy|null); - - /** Volume snapReserve */ - snapReserve?: (number|null); - - /** Volume snapshotDirectory */ - snapshotDirectory?: (boolean|null); - - /** Volume usedGib */ - usedGib?: (number|Long|string|null); - - /** Volume securityStyle */ - securityStyle?: (google.cloud.netapp.v1.SecurityStyle|keyof typeof google.cloud.netapp.v1.SecurityStyle|null); - - /** Volume kerberosEnabled */ - kerberosEnabled?: (boolean|null); - - /** Volume ldapEnabled */ - ldapEnabled?: (boolean|null); - - /** Volume activeDirectory */ - activeDirectory?: (string|null); - - /** Volume restoreParameters */ - restoreParameters?: (google.cloud.netapp.v1.IRestoreParameters|null); - - /** Volume kmsConfig */ - kmsConfig?: (string|null); - - /** Volume encryptionType */ - encryptionType?: (google.cloud.netapp.v1.EncryptionType|keyof typeof google.cloud.netapp.v1.EncryptionType|null); - - /** Volume hasReplication */ - hasReplication?: (boolean|null); - - /** Volume backupConfig */ - backupConfig?: (google.cloud.netapp.v1.IBackupConfig|null); - - /** Volume restrictedActions */ - restrictedActions?: (google.cloud.netapp.v1.RestrictedAction[]|null); - - /** Volume largeCapacity */ - largeCapacity?: (boolean|null); - - /** Volume multipleEndpoints */ - multipleEndpoints?: (boolean|null); - - /** Volume tieringPolicy */ - tieringPolicy?: (google.cloud.netapp.v1.ITieringPolicy|null); - - /** Volume replicaZone */ - replicaZone?: (string|null); - - /** Volume zone */ - zone?: (string|null); - - /** Volume coldTierSizeGib */ - coldTierSizeGib?: (number|Long|string|null); } - /** Represents a Volume. */ - class Volume implements IVolume { + /** Represents a GetSnapshotRequest. */ + class GetSnapshotRequest implements IGetSnapshotRequest { /** - * Constructs a new Volume. + * Constructs a new GetSnapshotRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.netapp.v1.IVolume); + constructor(properties?: google.cloud.netapp.v1.IGetSnapshotRequest); - /** Volume name. */ + /** GetSnapshotRequest name. */ public name: string; - /** Volume state. */ - public state: (google.cloud.netapp.v1.Volume.State|keyof typeof google.cloud.netapp.v1.Volume.State); - - /** Volume stateDetails. */ - public stateDetails: string; - - /** Volume createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); - - /** Volume shareName. */ - public shareName: string; - - /** Volume psaRange. */ - public psaRange: string; + /** + * Creates a new GetSnapshotRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetSnapshotRequest instance + */ + public static create(properties?: google.cloud.netapp.v1.IGetSnapshotRequest): google.cloud.netapp.v1.GetSnapshotRequest; - /** Volume storagePool. */ - public storagePool: string; + /** + * Encodes the specified GetSnapshotRequest message. Does not implicitly {@link google.cloud.netapp.v1.GetSnapshotRequest.verify|verify} messages. + * @param message GetSnapshotRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.netapp.v1.IGetSnapshotRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** Volume network. */ - public network: string; + /** + * Encodes the specified GetSnapshotRequest message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.GetSnapshotRequest.verify|verify} messages. + * @param message GetSnapshotRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.netapp.v1.IGetSnapshotRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** Volume serviceLevel. */ - public serviceLevel: (google.cloud.netapp.v1.ServiceLevel|keyof typeof google.cloud.netapp.v1.ServiceLevel); + /** + * Decodes a GetSnapshotRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetSnapshotRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.netapp.v1.GetSnapshotRequest; - /** Volume capacityGib. */ - public capacityGib: (number|Long|string); + /** + * Decodes a GetSnapshotRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetSnapshotRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.netapp.v1.GetSnapshotRequest; - /** Volume exportPolicy. */ - public exportPolicy?: (google.cloud.netapp.v1.IExportPolicy|null); + /** + * Verifies a GetSnapshotRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** Volume protocols. */ - public protocols: google.cloud.netapp.v1.Protocols[]; + /** + * Creates a GetSnapshotRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetSnapshotRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.netapp.v1.GetSnapshotRequest; - /** Volume smbSettings. */ - public smbSettings: google.cloud.netapp.v1.SMBSettings[]; + /** + * Creates a plain object from a GetSnapshotRequest message. Also converts values to other types if specified. + * @param message GetSnapshotRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.netapp.v1.GetSnapshotRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** Volume mountOptions. */ - public mountOptions: google.cloud.netapp.v1.IMountOption[]; + /** + * Converts this GetSnapshotRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** Volume unixPermissions. */ - public unixPermissions: string; + /** + * Gets the default type url for GetSnapshotRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** Volume labels. */ - public labels: { [k: string]: string }; + /** Properties of a CreateSnapshotRequest. */ + interface ICreateSnapshotRequest { - /** Volume description. */ - public description: string; + /** CreateSnapshotRequest parent */ + parent?: (string|null); - /** Volume snapshotPolicy. */ - public snapshotPolicy?: (google.cloud.netapp.v1.ISnapshotPolicy|null); + /** CreateSnapshotRequest snapshot */ + snapshot?: (google.cloud.netapp.v1.ISnapshot|null); - /** Volume snapReserve. */ - public snapReserve: number; + /** CreateSnapshotRequest snapshotId */ + snapshotId?: (string|null); + } - /** Volume snapshotDirectory. */ - public snapshotDirectory: boolean; + /** Represents a CreateSnapshotRequest. */ + class CreateSnapshotRequest implements ICreateSnapshotRequest { - /** Volume usedGib. */ - public usedGib: (number|Long|string); + /** + * Constructs a new CreateSnapshotRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.netapp.v1.ICreateSnapshotRequest); - /** Volume securityStyle. */ - public securityStyle: (google.cloud.netapp.v1.SecurityStyle|keyof typeof google.cloud.netapp.v1.SecurityStyle); + /** CreateSnapshotRequest parent. */ + public parent: string; - /** Volume kerberosEnabled. */ - public kerberosEnabled: boolean; + /** CreateSnapshotRequest snapshot. */ + public snapshot?: (google.cloud.netapp.v1.ISnapshot|null); - /** Volume ldapEnabled. */ - public ldapEnabled: boolean; + /** CreateSnapshotRequest snapshotId. */ + public snapshotId: string; - /** Volume activeDirectory. */ - public activeDirectory: string; + /** + * Creates a new CreateSnapshotRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CreateSnapshotRequest instance + */ + public static create(properties?: google.cloud.netapp.v1.ICreateSnapshotRequest): google.cloud.netapp.v1.CreateSnapshotRequest; - /** Volume restoreParameters. */ - public restoreParameters?: (google.cloud.netapp.v1.IRestoreParameters|null); + /** + * Encodes the specified CreateSnapshotRequest message. Does not implicitly {@link google.cloud.netapp.v1.CreateSnapshotRequest.verify|verify} messages. + * @param message CreateSnapshotRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.netapp.v1.ICreateSnapshotRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** Volume kmsConfig. */ - public kmsConfig: string; + /** + * Encodes the specified CreateSnapshotRequest message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.CreateSnapshotRequest.verify|verify} messages. + * @param message CreateSnapshotRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.netapp.v1.ICreateSnapshotRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** Volume encryptionType. */ - public encryptionType: (google.cloud.netapp.v1.EncryptionType|keyof typeof google.cloud.netapp.v1.EncryptionType); + /** + * Decodes a CreateSnapshotRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CreateSnapshotRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.netapp.v1.CreateSnapshotRequest; - /** Volume hasReplication. */ - public hasReplication: boolean; + /** + * Decodes a CreateSnapshotRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CreateSnapshotRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.netapp.v1.CreateSnapshotRequest; - /** Volume backupConfig. */ - public backupConfig?: (google.cloud.netapp.v1.IBackupConfig|null); + /** + * Verifies a CreateSnapshotRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** Volume restrictedActions. */ - public restrictedActions: google.cloud.netapp.v1.RestrictedAction[]; + /** + * Creates a CreateSnapshotRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CreateSnapshotRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.netapp.v1.CreateSnapshotRequest; - /** Volume largeCapacity. */ - public largeCapacity: boolean; + /** + * Creates a plain object from a CreateSnapshotRequest message. Also converts values to other types if specified. + * @param message CreateSnapshotRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.netapp.v1.CreateSnapshotRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** Volume multipleEndpoints. */ - public multipleEndpoints: boolean; + /** + * Converts this CreateSnapshotRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** Volume tieringPolicy. */ - public tieringPolicy?: (google.cloud.netapp.v1.ITieringPolicy|null); + /** + * Gets the default type url for CreateSnapshotRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** Volume replicaZone. */ - public replicaZone: string; + /** Properties of a DeleteSnapshotRequest. */ + interface IDeleteSnapshotRequest { - /** Volume zone. */ - public zone: string; + /** DeleteSnapshotRequest name */ + name?: (string|null); + } - /** Volume coldTierSizeGib. */ - public coldTierSizeGib: (number|Long|string); + /** Represents a DeleteSnapshotRequest. */ + class DeleteSnapshotRequest implements IDeleteSnapshotRequest { - /** Volume _backupConfig. */ - public _backupConfig?: "backupConfig"; + /** + * Constructs a new DeleteSnapshotRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.netapp.v1.IDeleteSnapshotRequest); - /** Volume _tieringPolicy. */ - public _tieringPolicy?: "tieringPolicy"; + /** DeleteSnapshotRequest name. */ + public name: string; /** - * Creates a new Volume instance using the specified properties. + * Creates a new DeleteSnapshotRequest instance using the specified properties. * @param [properties] Properties to set - * @returns Volume instance + * @returns DeleteSnapshotRequest instance */ - public static create(properties?: google.cloud.netapp.v1.IVolume): google.cloud.netapp.v1.Volume; + public static create(properties?: google.cloud.netapp.v1.IDeleteSnapshotRequest): google.cloud.netapp.v1.DeleteSnapshotRequest; /** - * Encodes the specified Volume message. Does not implicitly {@link google.cloud.netapp.v1.Volume.verify|verify} messages. - * @param message Volume message or plain object to encode + * Encodes the specified DeleteSnapshotRequest message. Does not implicitly {@link google.cloud.netapp.v1.DeleteSnapshotRequest.verify|verify} messages. + * @param message DeleteSnapshotRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.netapp.v1.IVolume, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.netapp.v1.IDeleteSnapshotRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Volume message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.Volume.verify|verify} messages. - * @param message Volume message or plain object to encode + * Encodes the specified DeleteSnapshotRequest message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.DeleteSnapshotRequest.verify|verify} messages. + * @param message DeleteSnapshotRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.netapp.v1.IVolume, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.netapp.v1.IDeleteSnapshotRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Volume message from the specified reader or buffer. + * Decodes a DeleteSnapshotRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Volume + * @returns DeleteSnapshotRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.netapp.v1.Volume; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.netapp.v1.DeleteSnapshotRequest; /** - * Decodes a Volume message from the specified reader or buffer, length delimited. + * Decodes a DeleteSnapshotRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Volume + * @returns DeleteSnapshotRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.netapp.v1.Volume; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.netapp.v1.DeleteSnapshotRequest; /** - * Verifies a Volume message. + * Verifies a DeleteSnapshotRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a Volume message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteSnapshotRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Volume + * @returns DeleteSnapshotRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.netapp.v1.Volume; + public static fromObject(object: { [k: string]: any }): google.cloud.netapp.v1.DeleteSnapshotRequest; /** - * Creates a plain object from a Volume message. Also converts values to other types if specified. - * @param message Volume + * Creates a plain object from a DeleteSnapshotRequest message. Also converts values to other types if specified. + * @param message DeleteSnapshotRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.netapp.v1.Volume, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.netapp.v1.DeleteSnapshotRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Volume to JSON. + * Converts this DeleteSnapshotRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Volume + * Gets the default type url for DeleteSnapshotRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace Volume { - - /** State enum. */ - enum State { - STATE_UNSPECIFIED = 0, - READY = 1, - CREATING = 2, - DELETING = 3, - UPDATING = 4, - RESTORING = 5, - DISABLED = 6, - ERROR = 7 - } - } + /** Properties of an UpdateSnapshotRequest. */ + interface IUpdateSnapshotRequest { - /** Properties of an ExportPolicy. */ - interface IExportPolicy { + /** UpdateSnapshotRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); - /** ExportPolicy rules */ - rules?: (google.cloud.netapp.v1.ISimpleExportPolicyRule[]|null); + /** UpdateSnapshotRequest snapshot */ + snapshot?: (google.cloud.netapp.v1.ISnapshot|null); } - /** Represents an ExportPolicy. */ - class ExportPolicy implements IExportPolicy { + /** Represents an UpdateSnapshotRequest. */ + class UpdateSnapshotRequest implements IUpdateSnapshotRequest { /** - * Constructs a new ExportPolicy. + * Constructs a new UpdateSnapshotRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.netapp.v1.IExportPolicy); + constructor(properties?: google.cloud.netapp.v1.IUpdateSnapshotRequest); + + /** UpdateSnapshotRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); - /** ExportPolicy rules. */ - public rules: google.cloud.netapp.v1.ISimpleExportPolicyRule[]; + /** UpdateSnapshotRequest snapshot. */ + public snapshot?: (google.cloud.netapp.v1.ISnapshot|null); /** - * Creates a new ExportPolicy instance using the specified properties. + * Creates a new UpdateSnapshotRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ExportPolicy instance + * @returns UpdateSnapshotRequest instance */ - public static create(properties?: google.cloud.netapp.v1.IExportPolicy): google.cloud.netapp.v1.ExportPolicy; + public static create(properties?: google.cloud.netapp.v1.IUpdateSnapshotRequest): google.cloud.netapp.v1.UpdateSnapshotRequest; /** - * Encodes the specified ExportPolicy message. Does not implicitly {@link google.cloud.netapp.v1.ExportPolicy.verify|verify} messages. - * @param message ExportPolicy message or plain object to encode + * Encodes the specified UpdateSnapshotRequest message. Does not implicitly {@link google.cloud.netapp.v1.UpdateSnapshotRequest.verify|verify} messages. + * @param message UpdateSnapshotRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.netapp.v1.IExportPolicy, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.netapp.v1.IUpdateSnapshotRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ExportPolicy message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.ExportPolicy.verify|verify} messages. - * @param message ExportPolicy message or plain object to encode + * Encodes the specified UpdateSnapshotRequest message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.UpdateSnapshotRequest.verify|verify} messages. + * @param message UpdateSnapshotRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.netapp.v1.IExportPolicy, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.netapp.v1.IUpdateSnapshotRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ExportPolicy message from the specified reader or buffer. + * Decodes an UpdateSnapshotRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ExportPolicy + * @returns UpdateSnapshotRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.netapp.v1.ExportPolicy; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.netapp.v1.UpdateSnapshotRequest; /** - * Decodes an ExportPolicy message from the specified reader or buffer, length delimited. + * Decodes an UpdateSnapshotRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ExportPolicy + * @returns UpdateSnapshotRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.netapp.v1.ExportPolicy; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.netapp.v1.UpdateSnapshotRequest; /** - * Verifies an ExportPolicy message. + * Verifies an UpdateSnapshotRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an ExportPolicy message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateSnapshotRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ExportPolicy + * @returns UpdateSnapshotRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.netapp.v1.ExportPolicy; + public static fromObject(object: { [k: string]: any }): google.cloud.netapp.v1.UpdateSnapshotRequest; /** - * Creates a plain object from an ExportPolicy message. Also converts values to other types if specified. - * @param message ExportPolicy + * Creates a plain object from an UpdateSnapshotRequest message. Also converts values to other types if specified. + * @param message UpdateSnapshotRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.netapp.v1.ExportPolicy, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.netapp.v1.UpdateSnapshotRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ExportPolicy to JSON. + * Converts this UpdateSnapshotRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ExportPolicy + * Gets the default type url for UpdateSnapshotRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a SimpleExportPolicyRule. */ - interface ISimpleExportPolicyRule { - - /** SimpleExportPolicyRule allowedClients */ - allowedClients?: (string|null); - - /** SimpleExportPolicyRule hasRootAccess */ - hasRootAccess?: (string|null); - - /** SimpleExportPolicyRule accessType */ - accessType?: (google.cloud.netapp.v1.AccessType|keyof typeof google.cloud.netapp.v1.AccessType|null); - - /** SimpleExportPolicyRule nfsv3 */ - nfsv3?: (boolean|null); + /** Properties of a Snapshot. */ + interface ISnapshot { - /** SimpleExportPolicyRule nfsv4 */ - nfsv4?: (boolean|null); + /** Snapshot name */ + name?: (string|null); - /** SimpleExportPolicyRule kerberos_5ReadOnly */ - kerberos_5ReadOnly?: (boolean|null); + /** Snapshot state */ + state?: (google.cloud.netapp.v1.Snapshot.State|keyof typeof google.cloud.netapp.v1.Snapshot.State|null); - /** SimpleExportPolicyRule kerberos_5ReadWrite */ - kerberos_5ReadWrite?: (boolean|null); + /** Snapshot stateDetails */ + stateDetails?: (string|null); - /** SimpleExportPolicyRule kerberos_5iReadOnly */ - kerberos_5iReadOnly?: (boolean|null); + /** Snapshot description */ + description?: (string|null); - /** SimpleExportPolicyRule kerberos_5iReadWrite */ - kerberos_5iReadWrite?: (boolean|null); + /** Snapshot usedBytes */ + usedBytes?: (number|null); - /** SimpleExportPolicyRule kerberos_5pReadOnly */ - kerberos_5pReadOnly?: (boolean|null); + /** Snapshot createTime */ + createTime?: (google.protobuf.ITimestamp|null); - /** SimpleExportPolicyRule kerberos_5pReadWrite */ - kerberos_5pReadWrite?: (boolean|null); + /** Snapshot labels */ + labels?: ({ [k: string]: string }|null); } - /** Represents a SimpleExportPolicyRule. */ - class SimpleExportPolicyRule implements ISimpleExportPolicyRule { + /** Represents a Snapshot. */ + class Snapshot implements ISnapshot { /** - * Constructs a new SimpleExportPolicyRule. + * Constructs a new Snapshot. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.netapp.v1.ISimpleExportPolicyRule); - - /** SimpleExportPolicyRule allowedClients. */ - public allowedClients?: (string|null); - - /** SimpleExportPolicyRule hasRootAccess. */ - public hasRootAccess?: (string|null); - - /** SimpleExportPolicyRule accessType. */ - public accessType?: (google.cloud.netapp.v1.AccessType|keyof typeof google.cloud.netapp.v1.AccessType|null); - - /** SimpleExportPolicyRule nfsv3. */ - public nfsv3?: (boolean|null); - - /** SimpleExportPolicyRule nfsv4. */ - public nfsv4?: (boolean|null); - - /** SimpleExportPolicyRule kerberos_5ReadOnly. */ - public kerberos_5ReadOnly?: (boolean|null); - - /** SimpleExportPolicyRule kerberos_5ReadWrite. */ - public kerberos_5ReadWrite?: (boolean|null); - - /** SimpleExportPolicyRule kerberos_5iReadOnly. */ - public kerberos_5iReadOnly?: (boolean|null); - - /** SimpleExportPolicyRule kerberos_5iReadWrite. */ - public kerberos_5iReadWrite?: (boolean|null); - - /** SimpleExportPolicyRule kerberos_5pReadOnly. */ - public kerberos_5pReadOnly?: (boolean|null); - - /** SimpleExportPolicyRule kerberos_5pReadWrite. */ - public kerberos_5pReadWrite?: (boolean|null); - - /** SimpleExportPolicyRule _allowedClients. */ - public _allowedClients?: "allowedClients"; - - /** SimpleExportPolicyRule _hasRootAccess. */ - public _hasRootAccess?: "hasRootAccess"; - - /** SimpleExportPolicyRule _accessType. */ - public _accessType?: "accessType"; - - /** SimpleExportPolicyRule _nfsv3. */ - public _nfsv3?: "nfsv3"; + constructor(properties?: google.cloud.netapp.v1.ISnapshot); - /** SimpleExportPolicyRule _nfsv4. */ - public _nfsv4?: "nfsv4"; + /** Snapshot name. */ + public name: string; - /** SimpleExportPolicyRule _kerberos_5ReadOnly. */ - public _kerberos_5ReadOnly?: "kerberos_5ReadOnly"; + /** Snapshot state. */ + public state: (google.cloud.netapp.v1.Snapshot.State|keyof typeof google.cloud.netapp.v1.Snapshot.State); - /** SimpleExportPolicyRule _kerberos_5ReadWrite. */ - public _kerberos_5ReadWrite?: "kerberos_5ReadWrite"; + /** Snapshot stateDetails. */ + public stateDetails: string; - /** SimpleExportPolicyRule _kerberos_5iReadOnly. */ - public _kerberos_5iReadOnly?: "kerberos_5iReadOnly"; + /** Snapshot description. */ + public description: string; - /** SimpleExportPolicyRule _kerberos_5iReadWrite. */ - public _kerberos_5iReadWrite?: "kerberos_5iReadWrite"; + /** Snapshot usedBytes. */ + public usedBytes: number; - /** SimpleExportPolicyRule _kerberos_5pReadOnly. */ - public _kerberos_5pReadOnly?: "kerberos_5pReadOnly"; + /** Snapshot createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); - /** SimpleExportPolicyRule _kerberos_5pReadWrite. */ - public _kerberos_5pReadWrite?: "kerberos_5pReadWrite"; + /** Snapshot labels. */ + public labels: { [k: string]: string }; /** - * Creates a new SimpleExportPolicyRule instance using the specified properties. + * Creates a new Snapshot instance using the specified properties. * @param [properties] Properties to set - * @returns SimpleExportPolicyRule instance + * @returns Snapshot instance */ - public static create(properties?: google.cloud.netapp.v1.ISimpleExportPolicyRule): google.cloud.netapp.v1.SimpleExportPolicyRule; + public static create(properties?: google.cloud.netapp.v1.ISnapshot): google.cloud.netapp.v1.Snapshot; /** - * Encodes the specified SimpleExportPolicyRule message. Does not implicitly {@link google.cloud.netapp.v1.SimpleExportPolicyRule.verify|verify} messages. - * @param message SimpleExportPolicyRule message or plain object to encode + * Encodes the specified Snapshot message. Does not implicitly {@link google.cloud.netapp.v1.Snapshot.verify|verify} messages. + * @param message Snapshot message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.netapp.v1.ISimpleExportPolicyRule, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.netapp.v1.ISnapshot, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified SimpleExportPolicyRule message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.SimpleExportPolicyRule.verify|verify} messages. - * @param message SimpleExportPolicyRule message or plain object to encode + * Encodes the specified Snapshot message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.Snapshot.verify|verify} messages. + * @param message Snapshot message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.netapp.v1.ISimpleExportPolicyRule, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.netapp.v1.ISnapshot, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SimpleExportPolicyRule message from the specified reader or buffer. + * Decodes a Snapshot message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SimpleExportPolicyRule + * @returns Snapshot * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.netapp.v1.SimpleExportPolicyRule; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.netapp.v1.Snapshot; /** - * Decodes a SimpleExportPolicyRule message from the specified reader or buffer, length delimited. + * Decodes a Snapshot message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SimpleExportPolicyRule + * @returns Snapshot * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.netapp.v1.SimpleExportPolicyRule; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.netapp.v1.Snapshot; /** - * Verifies a SimpleExportPolicyRule message. + * Verifies a Snapshot message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a SimpleExportPolicyRule message from a plain object. Also converts values to their respective internal types. + * Creates a Snapshot message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SimpleExportPolicyRule + * @returns Snapshot */ - public static fromObject(object: { [k: string]: any }): google.cloud.netapp.v1.SimpleExportPolicyRule; + public static fromObject(object: { [k: string]: any }): google.cloud.netapp.v1.Snapshot; /** - * Creates a plain object from a SimpleExportPolicyRule message. Also converts values to other types if specified. - * @param message SimpleExportPolicyRule + * Creates a plain object from a Snapshot message. Also converts values to other types if specified. + * @param message Snapshot * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.netapp.v1.SimpleExportPolicyRule, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.netapp.v1.Snapshot, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SimpleExportPolicyRule to JSON. + * Converts this Snapshot to JSON. * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for SimpleExportPolicyRule - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a SnapshotPolicy. */ - interface ISnapshotPolicy { - - /** SnapshotPolicy enabled */ - enabled?: (boolean|null); - - /** SnapshotPolicy hourlySchedule */ - hourlySchedule?: (google.cloud.netapp.v1.IHourlySchedule|null); - - /** SnapshotPolicy dailySchedule */ - dailySchedule?: (google.cloud.netapp.v1.IDailySchedule|null); - - /** SnapshotPolicy weeklySchedule */ - weeklySchedule?: (google.cloud.netapp.v1.IWeeklySchedule|null); - - /** SnapshotPolicy monthlySchedule */ - monthlySchedule?: (google.cloud.netapp.v1.IMonthlySchedule|null); - } - - /** Represents a SnapshotPolicy. */ - class SnapshotPolicy implements ISnapshotPolicy { + */ + public toJSON(): { [k: string]: any }; /** - * Constructs a new SnapshotPolicy. - * @param [properties] Properties to set + * Gets the default type url for Snapshot + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url */ - constructor(properties?: google.cloud.netapp.v1.ISnapshotPolicy); - - /** SnapshotPolicy enabled. */ - public enabled?: (boolean|null); - - /** SnapshotPolicy hourlySchedule. */ - public hourlySchedule?: (google.cloud.netapp.v1.IHourlySchedule|null); - - /** SnapshotPolicy dailySchedule. */ - public dailySchedule?: (google.cloud.netapp.v1.IDailySchedule|null); + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** SnapshotPolicy weeklySchedule. */ - public weeklySchedule?: (google.cloud.netapp.v1.IWeeklySchedule|null); + namespace Snapshot { - /** SnapshotPolicy monthlySchedule. */ - public monthlySchedule?: (google.cloud.netapp.v1.IMonthlySchedule|null); + /** State enum. */ + enum State { + STATE_UNSPECIFIED = 0, + READY = 1, + CREATING = 2, + DELETING = 3, + UPDATING = 4, + DISABLED = 5, + ERROR = 6 + } + } - /** SnapshotPolicy _enabled. */ - public _enabled?: "enabled"; + /** Properties of a GetStoragePoolRequest. */ + interface IGetStoragePoolRequest { - /** SnapshotPolicy _hourlySchedule. */ - public _hourlySchedule?: "hourlySchedule"; + /** GetStoragePoolRequest name */ + name?: (string|null); + } - /** SnapshotPolicy _dailySchedule. */ - public _dailySchedule?: "dailySchedule"; + /** Represents a GetStoragePoolRequest. */ + class GetStoragePoolRequest implements IGetStoragePoolRequest { - /** SnapshotPolicy _weeklySchedule. */ - public _weeklySchedule?: "weeklySchedule"; + /** + * Constructs a new GetStoragePoolRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.netapp.v1.IGetStoragePoolRequest); - /** SnapshotPolicy _monthlySchedule. */ - public _monthlySchedule?: "monthlySchedule"; + /** GetStoragePoolRequest name. */ + public name: string; /** - * Creates a new SnapshotPolicy instance using the specified properties. + * Creates a new GetStoragePoolRequest instance using the specified properties. * @param [properties] Properties to set - * @returns SnapshotPolicy instance + * @returns GetStoragePoolRequest instance */ - public static create(properties?: google.cloud.netapp.v1.ISnapshotPolicy): google.cloud.netapp.v1.SnapshotPolicy; + public static create(properties?: google.cloud.netapp.v1.IGetStoragePoolRequest): google.cloud.netapp.v1.GetStoragePoolRequest; /** - * Encodes the specified SnapshotPolicy message. Does not implicitly {@link google.cloud.netapp.v1.SnapshotPolicy.verify|verify} messages. - * @param message SnapshotPolicy message or plain object to encode + * Encodes the specified GetStoragePoolRequest message. Does not implicitly {@link google.cloud.netapp.v1.GetStoragePoolRequest.verify|verify} messages. + * @param message GetStoragePoolRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.netapp.v1.ISnapshotPolicy, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.netapp.v1.IGetStoragePoolRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified SnapshotPolicy message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.SnapshotPolicy.verify|verify} messages. - * @param message SnapshotPolicy message or plain object to encode + * Encodes the specified GetStoragePoolRequest message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.GetStoragePoolRequest.verify|verify} messages. + * @param message GetStoragePoolRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.netapp.v1.ISnapshotPolicy, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.netapp.v1.IGetStoragePoolRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SnapshotPolicy message from the specified reader or buffer. + * Decodes a GetStoragePoolRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SnapshotPolicy + * @returns GetStoragePoolRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.netapp.v1.SnapshotPolicy; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.netapp.v1.GetStoragePoolRequest; /** - * Decodes a SnapshotPolicy message from the specified reader or buffer, length delimited. + * Decodes a GetStoragePoolRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SnapshotPolicy + * @returns GetStoragePoolRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.netapp.v1.SnapshotPolicy; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.netapp.v1.GetStoragePoolRequest; /** - * Verifies a SnapshotPolicy message. + * Verifies a GetStoragePoolRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a SnapshotPolicy message from a plain object. Also converts values to their respective internal types. + * Creates a GetStoragePoolRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SnapshotPolicy + * @returns GetStoragePoolRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.netapp.v1.SnapshotPolicy; + public static fromObject(object: { [k: string]: any }): google.cloud.netapp.v1.GetStoragePoolRequest; /** - * Creates a plain object from a SnapshotPolicy message. Also converts values to other types if specified. - * @param message SnapshotPolicy + * Creates a plain object from a GetStoragePoolRequest message. Also converts values to other types if specified. + * @param message GetStoragePoolRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.netapp.v1.SnapshotPolicy, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.netapp.v1.GetStoragePoolRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SnapshotPolicy to JSON. + * Converts this GetStoragePoolRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SnapshotPolicy + * Gets the default type url for GetStoragePoolRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an HourlySchedule. */ - interface IHourlySchedule { + /** Properties of a ListStoragePoolsRequest. */ + interface IListStoragePoolsRequest { - /** HourlySchedule snapshotsToKeep */ - snapshotsToKeep?: (number|null); + /** ListStoragePoolsRequest parent */ + parent?: (string|null); - /** HourlySchedule minute */ - minute?: (number|null); + /** ListStoragePoolsRequest pageSize */ + pageSize?: (number|null); + + /** ListStoragePoolsRequest pageToken */ + pageToken?: (string|null); + + /** ListStoragePoolsRequest orderBy */ + orderBy?: (string|null); + + /** ListStoragePoolsRequest filter */ + filter?: (string|null); } - /** Represents an HourlySchedule. */ - class HourlySchedule implements IHourlySchedule { + /** Represents a ListStoragePoolsRequest. */ + class ListStoragePoolsRequest implements IListStoragePoolsRequest { /** - * Constructs a new HourlySchedule. + * Constructs a new ListStoragePoolsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.netapp.v1.IHourlySchedule); + constructor(properties?: google.cloud.netapp.v1.IListStoragePoolsRequest); - /** HourlySchedule snapshotsToKeep. */ - public snapshotsToKeep?: (number|null); + /** ListStoragePoolsRequest parent. */ + public parent: string; - /** HourlySchedule minute. */ - public minute?: (number|null); + /** ListStoragePoolsRequest pageSize. */ + public pageSize: number; - /** HourlySchedule _snapshotsToKeep. */ - public _snapshotsToKeep?: "snapshotsToKeep"; + /** ListStoragePoolsRequest pageToken. */ + public pageToken: string; - /** HourlySchedule _minute. */ - public _minute?: "minute"; + /** ListStoragePoolsRequest orderBy. */ + public orderBy: string; + + /** ListStoragePoolsRequest filter. */ + public filter: string; /** - * Creates a new HourlySchedule instance using the specified properties. + * Creates a new ListStoragePoolsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns HourlySchedule instance + * @returns ListStoragePoolsRequest instance */ - public static create(properties?: google.cloud.netapp.v1.IHourlySchedule): google.cloud.netapp.v1.HourlySchedule; + public static create(properties?: google.cloud.netapp.v1.IListStoragePoolsRequest): google.cloud.netapp.v1.ListStoragePoolsRequest; /** - * Encodes the specified HourlySchedule message. Does not implicitly {@link google.cloud.netapp.v1.HourlySchedule.verify|verify} messages. - * @param message HourlySchedule message or plain object to encode + * Encodes the specified ListStoragePoolsRequest message. Does not implicitly {@link google.cloud.netapp.v1.ListStoragePoolsRequest.verify|verify} messages. + * @param message ListStoragePoolsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.netapp.v1.IHourlySchedule, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.netapp.v1.IListStoragePoolsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified HourlySchedule message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.HourlySchedule.verify|verify} messages. - * @param message HourlySchedule message or plain object to encode + * Encodes the specified ListStoragePoolsRequest message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.ListStoragePoolsRequest.verify|verify} messages. + * @param message ListStoragePoolsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.netapp.v1.IHourlySchedule, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.netapp.v1.IListStoragePoolsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an HourlySchedule message from the specified reader or buffer. + * Decodes a ListStoragePoolsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns HourlySchedule + * @returns ListStoragePoolsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.netapp.v1.HourlySchedule; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.netapp.v1.ListStoragePoolsRequest; /** - * Decodes an HourlySchedule message from the specified reader or buffer, length delimited. + * Decodes a ListStoragePoolsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns HourlySchedule + * @returns ListStoragePoolsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.netapp.v1.HourlySchedule; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.netapp.v1.ListStoragePoolsRequest; /** - * Verifies an HourlySchedule message. + * Verifies a ListStoragePoolsRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an HourlySchedule message from a plain object. Also converts values to their respective internal types. + * Creates a ListStoragePoolsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns HourlySchedule + * @returns ListStoragePoolsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.netapp.v1.HourlySchedule; + public static fromObject(object: { [k: string]: any }): google.cloud.netapp.v1.ListStoragePoolsRequest; /** - * Creates a plain object from an HourlySchedule message. Also converts values to other types if specified. - * @param message HourlySchedule + * Creates a plain object from a ListStoragePoolsRequest message. Also converts values to other types if specified. + * @param message ListStoragePoolsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.netapp.v1.HourlySchedule, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.netapp.v1.ListStoragePoolsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this HourlySchedule to JSON. + * Converts this ListStoragePoolsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for HourlySchedule + * Gets the default type url for ListStoragePoolsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DailySchedule. */ - interface IDailySchedule { + /** Properties of a ListStoragePoolsResponse. */ + interface IListStoragePoolsResponse { - /** DailySchedule snapshotsToKeep */ - snapshotsToKeep?: (number|null); + /** ListStoragePoolsResponse storagePools */ + storagePools?: (google.cloud.netapp.v1.IStoragePool[]|null); - /** DailySchedule minute */ - minute?: (number|null); + /** ListStoragePoolsResponse nextPageToken */ + nextPageToken?: (string|null); - /** DailySchedule hour */ - hour?: (number|null); + /** ListStoragePoolsResponse unreachable */ + unreachable?: (string[]|null); } - /** Represents a DailySchedule. */ - class DailySchedule implements IDailySchedule { + /** Represents a ListStoragePoolsResponse. */ + class ListStoragePoolsResponse implements IListStoragePoolsResponse { /** - * Constructs a new DailySchedule. + * Constructs a new ListStoragePoolsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.netapp.v1.IDailySchedule); - - /** DailySchedule snapshotsToKeep. */ - public snapshotsToKeep?: (number|null); - - /** DailySchedule minute. */ - public minute?: (number|null); - - /** DailySchedule hour. */ - public hour?: (number|null); + constructor(properties?: google.cloud.netapp.v1.IListStoragePoolsResponse); - /** DailySchedule _snapshotsToKeep. */ - public _snapshotsToKeep?: "snapshotsToKeep"; + /** ListStoragePoolsResponse storagePools. */ + public storagePools: google.cloud.netapp.v1.IStoragePool[]; - /** DailySchedule _minute. */ - public _minute?: "minute"; + /** ListStoragePoolsResponse nextPageToken. */ + public nextPageToken: string; - /** DailySchedule _hour. */ - public _hour?: "hour"; + /** ListStoragePoolsResponse unreachable. */ + public unreachable: string[]; /** - * Creates a new DailySchedule instance using the specified properties. + * Creates a new ListStoragePoolsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns DailySchedule instance + * @returns ListStoragePoolsResponse instance */ - public static create(properties?: google.cloud.netapp.v1.IDailySchedule): google.cloud.netapp.v1.DailySchedule; + public static create(properties?: google.cloud.netapp.v1.IListStoragePoolsResponse): google.cloud.netapp.v1.ListStoragePoolsResponse; /** - * Encodes the specified DailySchedule message. Does not implicitly {@link google.cloud.netapp.v1.DailySchedule.verify|verify} messages. - * @param message DailySchedule message or plain object to encode + * Encodes the specified ListStoragePoolsResponse message. Does not implicitly {@link google.cloud.netapp.v1.ListStoragePoolsResponse.verify|verify} messages. + * @param message ListStoragePoolsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.netapp.v1.IDailySchedule, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.netapp.v1.IListStoragePoolsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DailySchedule message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.DailySchedule.verify|verify} messages. - * @param message DailySchedule message or plain object to encode + * Encodes the specified ListStoragePoolsResponse message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.ListStoragePoolsResponse.verify|verify} messages. + * @param message ListStoragePoolsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.netapp.v1.IDailySchedule, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.netapp.v1.IListStoragePoolsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DailySchedule message from the specified reader or buffer. + * Decodes a ListStoragePoolsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DailySchedule + * @returns ListStoragePoolsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.netapp.v1.DailySchedule; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.netapp.v1.ListStoragePoolsResponse; /** - * Decodes a DailySchedule message from the specified reader or buffer, length delimited. + * Decodes a ListStoragePoolsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DailySchedule + * @returns ListStoragePoolsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.netapp.v1.DailySchedule; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.netapp.v1.ListStoragePoolsResponse; /** - * Verifies a DailySchedule message. + * Verifies a ListStoragePoolsResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a DailySchedule message from a plain object. Also converts values to their respective internal types. + * Creates a ListStoragePoolsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DailySchedule + * @returns ListStoragePoolsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.netapp.v1.DailySchedule; + public static fromObject(object: { [k: string]: any }): google.cloud.netapp.v1.ListStoragePoolsResponse; /** - * Creates a plain object from a DailySchedule message. Also converts values to other types if specified. - * @param message DailySchedule + * Creates a plain object from a ListStoragePoolsResponse message. Also converts values to other types if specified. + * @param message ListStoragePoolsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.netapp.v1.DailySchedule, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.netapp.v1.ListStoragePoolsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DailySchedule to JSON. + * Converts this ListStoragePoolsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DailySchedule + * Gets the default type url for ListStoragePoolsResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a WeeklySchedule. */ - interface IWeeklySchedule { - - /** WeeklySchedule snapshotsToKeep */ - snapshotsToKeep?: (number|null); + /** Properties of a CreateStoragePoolRequest. */ + interface ICreateStoragePoolRequest { - /** WeeklySchedule minute */ - minute?: (number|null); + /** CreateStoragePoolRequest parent */ + parent?: (string|null); - /** WeeklySchedule hour */ - hour?: (number|null); + /** CreateStoragePoolRequest storagePoolId */ + storagePoolId?: (string|null); - /** WeeklySchedule day */ - day?: (string|null); + /** CreateStoragePoolRequest storagePool */ + storagePool?: (google.cloud.netapp.v1.IStoragePool|null); } - /** Represents a WeeklySchedule. */ - class WeeklySchedule implements IWeeklySchedule { + /** Represents a CreateStoragePoolRequest. */ + class CreateStoragePoolRequest implements ICreateStoragePoolRequest { /** - * Constructs a new WeeklySchedule. + * Constructs a new CreateStoragePoolRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.netapp.v1.IWeeklySchedule); - - /** WeeklySchedule snapshotsToKeep. */ - public snapshotsToKeep?: (number|null); - - /** WeeklySchedule minute. */ - public minute?: (number|null); - - /** WeeklySchedule hour. */ - public hour?: (number|null); - - /** WeeklySchedule day. */ - public day?: (string|null); - - /** WeeklySchedule _snapshotsToKeep. */ - public _snapshotsToKeep?: "snapshotsToKeep"; + constructor(properties?: google.cloud.netapp.v1.ICreateStoragePoolRequest); - /** WeeklySchedule _minute. */ - public _minute?: "minute"; + /** CreateStoragePoolRequest parent. */ + public parent: string; - /** WeeklySchedule _hour. */ - public _hour?: "hour"; + /** CreateStoragePoolRequest storagePoolId. */ + public storagePoolId: string; - /** WeeklySchedule _day. */ - public _day?: "day"; + /** CreateStoragePoolRequest storagePool. */ + public storagePool?: (google.cloud.netapp.v1.IStoragePool|null); /** - * Creates a new WeeklySchedule instance using the specified properties. + * Creates a new CreateStoragePoolRequest instance using the specified properties. * @param [properties] Properties to set - * @returns WeeklySchedule instance + * @returns CreateStoragePoolRequest instance */ - public static create(properties?: google.cloud.netapp.v1.IWeeklySchedule): google.cloud.netapp.v1.WeeklySchedule; + public static create(properties?: google.cloud.netapp.v1.ICreateStoragePoolRequest): google.cloud.netapp.v1.CreateStoragePoolRequest; /** - * Encodes the specified WeeklySchedule message. Does not implicitly {@link google.cloud.netapp.v1.WeeklySchedule.verify|verify} messages. - * @param message WeeklySchedule message or plain object to encode + * Encodes the specified CreateStoragePoolRequest message. Does not implicitly {@link google.cloud.netapp.v1.CreateStoragePoolRequest.verify|verify} messages. + * @param message CreateStoragePoolRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.netapp.v1.IWeeklySchedule, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.netapp.v1.ICreateStoragePoolRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified WeeklySchedule message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.WeeklySchedule.verify|verify} messages. - * @param message WeeklySchedule message or plain object to encode + * Encodes the specified CreateStoragePoolRequest message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.CreateStoragePoolRequest.verify|verify} messages. + * @param message CreateStoragePoolRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.netapp.v1.IWeeklySchedule, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.netapp.v1.ICreateStoragePoolRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a WeeklySchedule message from the specified reader or buffer. + * Decodes a CreateStoragePoolRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns WeeklySchedule + * @returns CreateStoragePoolRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.netapp.v1.WeeklySchedule; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.netapp.v1.CreateStoragePoolRequest; /** - * Decodes a WeeklySchedule message from the specified reader or buffer, length delimited. + * Decodes a CreateStoragePoolRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns WeeklySchedule + * @returns CreateStoragePoolRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.netapp.v1.WeeklySchedule; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.netapp.v1.CreateStoragePoolRequest; /** - * Verifies a WeeklySchedule message. + * Verifies a CreateStoragePoolRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a WeeklySchedule message from a plain object. Also converts values to their respective internal types. + * Creates a CreateStoragePoolRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns WeeklySchedule + * @returns CreateStoragePoolRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.netapp.v1.WeeklySchedule; + public static fromObject(object: { [k: string]: any }): google.cloud.netapp.v1.CreateStoragePoolRequest; /** - * Creates a plain object from a WeeklySchedule message. Also converts values to other types if specified. - * @param message WeeklySchedule + * Creates a plain object from a CreateStoragePoolRequest message. Also converts values to other types if specified. + * @param message CreateStoragePoolRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.netapp.v1.WeeklySchedule, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.netapp.v1.CreateStoragePoolRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this WeeklySchedule to JSON. + * Converts this CreateStoragePoolRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for WeeklySchedule + * Gets the default type url for CreateStoragePoolRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a MonthlySchedule. */ - interface IMonthlySchedule { - - /** MonthlySchedule snapshotsToKeep */ - snapshotsToKeep?: (number|null); - - /** MonthlySchedule minute */ - minute?: (number|null); + /** Properties of an UpdateStoragePoolRequest. */ + interface IUpdateStoragePoolRequest { - /** MonthlySchedule hour */ - hour?: (number|null); + /** UpdateStoragePoolRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); - /** MonthlySchedule daysOfMonth */ - daysOfMonth?: (string|null); + /** UpdateStoragePoolRequest storagePool */ + storagePool?: (google.cloud.netapp.v1.IStoragePool|null); } - /** Represents a MonthlySchedule. */ - class MonthlySchedule implements IMonthlySchedule { + /** Represents an UpdateStoragePoolRequest. */ + class UpdateStoragePoolRequest implements IUpdateStoragePoolRequest { /** - * Constructs a new MonthlySchedule. + * Constructs a new UpdateStoragePoolRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.netapp.v1.IMonthlySchedule); - - /** MonthlySchedule snapshotsToKeep. */ - public snapshotsToKeep?: (number|null); - - /** MonthlySchedule minute. */ - public minute?: (number|null); - - /** MonthlySchedule hour. */ - public hour?: (number|null); - - /** MonthlySchedule daysOfMonth. */ - public daysOfMonth?: (string|null); - - /** MonthlySchedule _snapshotsToKeep. */ - public _snapshotsToKeep?: "snapshotsToKeep"; - - /** MonthlySchedule _minute. */ - public _minute?: "minute"; + constructor(properties?: google.cloud.netapp.v1.IUpdateStoragePoolRequest); - /** MonthlySchedule _hour. */ - public _hour?: "hour"; + /** UpdateStoragePoolRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); - /** MonthlySchedule _daysOfMonth. */ - public _daysOfMonth?: "daysOfMonth"; + /** UpdateStoragePoolRequest storagePool. */ + public storagePool?: (google.cloud.netapp.v1.IStoragePool|null); /** - * Creates a new MonthlySchedule instance using the specified properties. + * Creates a new UpdateStoragePoolRequest instance using the specified properties. * @param [properties] Properties to set - * @returns MonthlySchedule instance + * @returns UpdateStoragePoolRequest instance */ - public static create(properties?: google.cloud.netapp.v1.IMonthlySchedule): google.cloud.netapp.v1.MonthlySchedule; + public static create(properties?: google.cloud.netapp.v1.IUpdateStoragePoolRequest): google.cloud.netapp.v1.UpdateStoragePoolRequest; /** - * Encodes the specified MonthlySchedule message. Does not implicitly {@link google.cloud.netapp.v1.MonthlySchedule.verify|verify} messages. - * @param message MonthlySchedule message or plain object to encode + * Encodes the specified UpdateStoragePoolRequest message. Does not implicitly {@link google.cloud.netapp.v1.UpdateStoragePoolRequest.verify|verify} messages. + * @param message UpdateStoragePoolRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.netapp.v1.IMonthlySchedule, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.netapp.v1.IUpdateStoragePoolRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified MonthlySchedule message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.MonthlySchedule.verify|verify} messages. - * @param message MonthlySchedule message or plain object to encode + * Encodes the specified UpdateStoragePoolRequest message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.UpdateStoragePoolRequest.verify|verify} messages. + * @param message UpdateStoragePoolRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.netapp.v1.IMonthlySchedule, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.netapp.v1.IUpdateStoragePoolRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MonthlySchedule message from the specified reader or buffer. + * Decodes an UpdateStoragePoolRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns MonthlySchedule + * @returns UpdateStoragePoolRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.netapp.v1.MonthlySchedule; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.netapp.v1.UpdateStoragePoolRequest; /** - * Decodes a MonthlySchedule message from the specified reader or buffer, length delimited. + * Decodes an UpdateStoragePoolRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MonthlySchedule + * @returns UpdateStoragePoolRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.netapp.v1.MonthlySchedule; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.netapp.v1.UpdateStoragePoolRequest; /** - * Verifies a MonthlySchedule message. + * Verifies an UpdateStoragePoolRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a MonthlySchedule message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateStoragePoolRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MonthlySchedule + * @returns UpdateStoragePoolRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.netapp.v1.MonthlySchedule; + public static fromObject(object: { [k: string]: any }): google.cloud.netapp.v1.UpdateStoragePoolRequest; /** - * Creates a plain object from a MonthlySchedule message. Also converts values to other types if specified. - * @param message MonthlySchedule + * Creates a plain object from an UpdateStoragePoolRequest message. Also converts values to other types if specified. + * @param message UpdateStoragePoolRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.netapp.v1.MonthlySchedule, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.netapp.v1.UpdateStoragePoolRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MonthlySchedule to JSON. + * Converts this UpdateStoragePoolRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for MonthlySchedule - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a MountOption. */ - interface IMountOption { - - /** MountOption export */ - "export"?: (string|null); - - /** MountOption exportFull */ - exportFull?: (string|null); + * Gets the default type url for UpdateStoragePoolRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** MountOption protocol */ - protocol?: (google.cloud.netapp.v1.Protocols|keyof typeof google.cloud.netapp.v1.Protocols|null); + /** Properties of a DeleteStoragePoolRequest. */ + interface IDeleteStoragePoolRequest { - /** MountOption instructions */ - instructions?: (string|null); + /** DeleteStoragePoolRequest name */ + name?: (string|null); } - /** Represents a MountOption. */ - class MountOption implements IMountOption { + /** Represents a DeleteStoragePoolRequest. */ + class DeleteStoragePoolRequest implements IDeleteStoragePoolRequest { /** - * Constructs a new MountOption. + * Constructs a new DeleteStoragePoolRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.netapp.v1.IMountOption); - - /** MountOption export. */ - public export: string; - - /** MountOption exportFull. */ - public exportFull: string; - - /** MountOption protocol. */ - public protocol: (google.cloud.netapp.v1.Protocols|keyof typeof google.cloud.netapp.v1.Protocols); + constructor(properties?: google.cloud.netapp.v1.IDeleteStoragePoolRequest); - /** MountOption instructions. */ - public instructions: string; + /** DeleteStoragePoolRequest name. */ + public name: string; /** - * Creates a new MountOption instance using the specified properties. + * Creates a new DeleteStoragePoolRequest instance using the specified properties. * @param [properties] Properties to set - * @returns MountOption instance + * @returns DeleteStoragePoolRequest instance */ - public static create(properties?: google.cloud.netapp.v1.IMountOption): google.cloud.netapp.v1.MountOption; + public static create(properties?: google.cloud.netapp.v1.IDeleteStoragePoolRequest): google.cloud.netapp.v1.DeleteStoragePoolRequest; /** - * Encodes the specified MountOption message. Does not implicitly {@link google.cloud.netapp.v1.MountOption.verify|verify} messages. - * @param message MountOption message or plain object to encode + * Encodes the specified DeleteStoragePoolRequest message. Does not implicitly {@link google.cloud.netapp.v1.DeleteStoragePoolRequest.verify|verify} messages. + * @param message DeleteStoragePoolRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.netapp.v1.IMountOption, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.netapp.v1.IDeleteStoragePoolRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified MountOption message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.MountOption.verify|verify} messages. - * @param message MountOption message or plain object to encode + * Encodes the specified DeleteStoragePoolRequest message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.DeleteStoragePoolRequest.verify|verify} messages. + * @param message DeleteStoragePoolRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.netapp.v1.IMountOption, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.netapp.v1.IDeleteStoragePoolRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MountOption message from the specified reader or buffer. + * Decodes a DeleteStoragePoolRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns MountOption + * @returns DeleteStoragePoolRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.netapp.v1.MountOption; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.netapp.v1.DeleteStoragePoolRequest; /** - * Decodes a MountOption message from the specified reader or buffer, length delimited. + * Decodes a DeleteStoragePoolRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MountOption + * @returns DeleteStoragePoolRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.netapp.v1.MountOption; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.netapp.v1.DeleteStoragePoolRequest; /** - * Verifies a MountOption message. + * Verifies a DeleteStoragePoolRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a MountOption message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteStoragePoolRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MountOption + * @returns DeleteStoragePoolRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.netapp.v1.MountOption; + public static fromObject(object: { [k: string]: any }): google.cloud.netapp.v1.DeleteStoragePoolRequest; /** - * Creates a plain object from a MountOption message. Also converts values to other types if specified. - * @param message MountOption + * Creates a plain object from a DeleteStoragePoolRequest message. Also converts values to other types if specified. + * @param message DeleteStoragePoolRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.netapp.v1.MountOption, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.netapp.v1.DeleteStoragePoolRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MountOption to JSON. + * Converts this DeleteStoragePoolRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for MountOption + * Gets the default type url for DeleteStoragePoolRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a RestoreParameters. */ - interface IRestoreParameters { - - /** RestoreParameters sourceSnapshot */ - sourceSnapshot?: (string|null); + /** Properties of a SwitchActiveReplicaZoneRequest. */ + interface ISwitchActiveReplicaZoneRequest { - /** RestoreParameters sourceBackup */ - sourceBackup?: (string|null); + /** SwitchActiveReplicaZoneRequest name */ + name?: (string|null); } - /** Represents a RestoreParameters. */ - class RestoreParameters implements IRestoreParameters { + /** Represents a SwitchActiveReplicaZoneRequest. */ + class SwitchActiveReplicaZoneRequest implements ISwitchActiveReplicaZoneRequest { /** - * Constructs a new RestoreParameters. + * Constructs a new SwitchActiveReplicaZoneRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.netapp.v1.IRestoreParameters); - - /** RestoreParameters sourceSnapshot. */ - public sourceSnapshot?: (string|null); - - /** RestoreParameters sourceBackup. */ - public sourceBackup?: (string|null); + constructor(properties?: google.cloud.netapp.v1.ISwitchActiveReplicaZoneRequest); - /** RestoreParameters source. */ - public source?: ("sourceSnapshot"|"sourceBackup"); + /** SwitchActiveReplicaZoneRequest name. */ + public name: string; /** - * Creates a new RestoreParameters instance using the specified properties. + * Creates a new SwitchActiveReplicaZoneRequest instance using the specified properties. * @param [properties] Properties to set - * @returns RestoreParameters instance + * @returns SwitchActiveReplicaZoneRequest instance */ - public static create(properties?: google.cloud.netapp.v1.IRestoreParameters): google.cloud.netapp.v1.RestoreParameters; + public static create(properties?: google.cloud.netapp.v1.ISwitchActiveReplicaZoneRequest): google.cloud.netapp.v1.SwitchActiveReplicaZoneRequest; /** - * Encodes the specified RestoreParameters message. Does not implicitly {@link google.cloud.netapp.v1.RestoreParameters.verify|verify} messages. - * @param message RestoreParameters message or plain object to encode + * Encodes the specified SwitchActiveReplicaZoneRequest message. Does not implicitly {@link google.cloud.netapp.v1.SwitchActiveReplicaZoneRequest.verify|verify} messages. + * @param message SwitchActiveReplicaZoneRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.netapp.v1.IRestoreParameters, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.netapp.v1.ISwitchActiveReplicaZoneRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified RestoreParameters message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.RestoreParameters.verify|verify} messages. - * @param message RestoreParameters message or plain object to encode + * Encodes the specified SwitchActiveReplicaZoneRequest message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.SwitchActiveReplicaZoneRequest.verify|verify} messages. + * @param message SwitchActiveReplicaZoneRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.netapp.v1.IRestoreParameters, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.netapp.v1.ISwitchActiveReplicaZoneRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RestoreParameters message from the specified reader or buffer. + * Decodes a SwitchActiveReplicaZoneRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RestoreParameters + * @returns SwitchActiveReplicaZoneRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.netapp.v1.RestoreParameters; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.netapp.v1.SwitchActiveReplicaZoneRequest; /** - * Decodes a RestoreParameters message from the specified reader or buffer, length delimited. + * Decodes a SwitchActiveReplicaZoneRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RestoreParameters + * @returns SwitchActiveReplicaZoneRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.netapp.v1.RestoreParameters; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.netapp.v1.SwitchActiveReplicaZoneRequest; /** - * Verifies a RestoreParameters message. + * Verifies a SwitchActiveReplicaZoneRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a RestoreParameters message from a plain object. Also converts values to their respective internal types. + * Creates a SwitchActiveReplicaZoneRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RestoreParameters + * @returns SwitchActiveReplicaZoneRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.netapp.v1.RestoreParameters; + public static fromObject(object: { [k: string]: any }): google.cloud.netapp.v1.SwitchActiveReplicaZoneRequest; /** - * Creates a plain object from a RestoreParameters message. Also converts values to other types if specified. - * @param message RestoreParameters + * Creates a plain object from a SwitchActiveReplicaZoneRequest message. Also converts values to other types if specified. + * @param message SwitchActiveReplicaZoneRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.netapp.v1.RestoreParameters, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.netapp.v1.SwitchActiveReplicaZoneRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RestoreParameters to JSON. + * Converts this SwitchActiveReplicaZoneRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for RestoreParameters + * Gets the default type url for SwitchActiveReplicaZoneRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a BackupConfig. */ - interface IBackupConfig { + /** Properties of a StoragePool. */ + interface IStoragePool { - /** BackupConfig backupPolicies */ - backupPolicies?: (string[]|null); + /** StoragePool name */ + name?: (string|null); - /** BackupConfig backupVault */ - backupVault?: (string|null); + /** StoragePool serviceLevel */ + serviceLevel?: (google.cloud.netapp.v1.ServiceLevel|keyof typeof google.cloud.netapp.v1.ServiceLevel|null); - /** BackupConfig scheduledBackupEnabled */ - scheduledBackupEnabled?: (boolean|null); + /** StoragePool capacityGib */ + capacityGib?: (number|Long|string|null); - /** BackupConfig backupChainBytes */ - backupChainBytes?: (number|Long|string|null); - } + /** StoragePool volumeCapacityGib */ + volumeCapacityGib?: (number|Long|string|null); - /** Represents a BackupConfig. */ - class BackupConfig implements IBackupConfig { + /** StoragePool volumeCount */ + volumeCount?: (number|null); - /** - * Constructs a new BackupConfig. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.netapp.v1.IBackupConfig); + /** StoragePool state */ + state?: (google.cloud.netapp.v1.StoragePool.State|keyof typeof google.cloud.netapp.v1.StoragePool.State|null); - /** BackupConfig backupPolicies. */ - public backupPolicies: string[]; + /** StoragePool stateDetails */ + stateDetails?: (string|null); - /** BackupConfig backupVault. */ - public backupVault: string; + /** StoragePool createTime */ + createTime?: (google.protobuf.ITimestamp|null); - /** BackupConfig scheduledBackupEnabled. */ - public scheduledBackupEnabled?: (boolean|null); + /** StoragePool description */ + description?: (string|null); - /** BackupConfig backupChainBytes. */ - public backupChainBytes?: (number|Long|string|null); + /** StoragePool labels */ + labels?: ({ [k: string]: string }|null); - /** BackupConfig _scheduledBackupEnabled. */ - public _scheduledBackupEnabled?: "scheduledBackupEnabled"; + /** StoragePool network */ + network?: (string|null); - /** BackupConfig _backupChainBytes. */ - public _backupChainBytes?: "backupChainBytes"; + /** StoragePool activeDirectory */ + activeDirectory?: (string|null); - /** - * Creates a new BackupConfig instance using the specified properties. - * @param [properties] Properties to set - * @returns BackupConfig instance - */ - public static create(properties?: google.cloud.netapp.v1.IBackupConfig): google.cloud.netapp.v1.BackupConfig; + /** StoragePool kmsConfig */ + kmsConfig?: (string|null); - /** - * Encodes the specified BackupConfig message. Does not implicitly {@link google.cloud.netapp.v1.BackupConfig.verify|verify} messages. - * @param message BackupConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.netapp.v1.IBackupConfig, writer?: $protobuf.Writer): $protobuf.Writer; + /** StoragePool ldapEnabled */ + ldapEnabled?: (boolean|null); - /** - * Encodes the specified BackupConfig message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.BackupConfig.verify|verify} messages. - * @param message BackupConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.netapp.v1.IBackupConfig, writer?: $protobuf.Writer): $protobuf.Writer; + /** StoragePool psaRange */ + psaRange?: (string|null); + + /** StoragePool encryptionType */ + encryptionType?: (google.cloud.netapp.v1.EncryptionType|keyof typeof google.cloud.netapp.v1.EncryptionType|null); + + /** StoragePool globalAccessAllowed */ + globalAccessAllowed?: (boolean|null); + + /** StoragePool allowAutoTiering */ + allowAutoTiering?: (boolean|null); + + /** StoragePool replicaZone */ + replicaZone?: (string|null); + + /** StoragePool zone */ + zone?: (string|null); + } - /** - * Decodes a BackupConfig message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns BackupConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.netapp.v1.BackupConfig; + /** Represents a StoragePool. */ + class StoragePool implements IStoragePool { /** - * Decodes a BackupConfig message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns BackupConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Constructs a new StoragePool. + * @param [properties] Properties to set */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.netapp.v1.BackupConfig; + constructor(properties?: google.cloud.netapp.v1.IStoragePool); - /** - * Verifies a BackupConfig message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** StoragePool name. */ + public name: string; - /** - * Creates a BackupConfig message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns BackupConfig - */ - public static fromObject(object: { [k: string]: any }): google.cloud.netapp.v1.BackupConfig; + /** StoragePool serviceLevel. */ + public serviceLevel: (google.cloud.netapp.v1.ServiceLevel|keyof typeof google.cloud.netapp.v1.ServiceLevel); - /** - * Creates a plain object from a BackupConfig message. Also converts values to other types if specified. - * @param message BackupConfig - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.netapp.v1.BackupConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** StoragePool capacityGib. */ + public capacityGib: (number|Long|string); - /** - * Converts this BackupConfig to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** StoragePool volumeCapacityGib. */ + public volumeCapacityGib: (number|Long|string); - /** - * Gets the default type url for BackupConfig - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** StoragePool volumeCount. */ + public volumeCount: number; - /** Properties of a TieringPolicy. */ - interface ITieringPolicy { + /** StoragePool state. */ + public state: (google.cloud.netapp.v1.StoragePool.State|keyof typeof google.cloud.netapp.v1.StoragePool.State); - /** TieringPolicy tierAction */ - tierAction?: (google.cloud.netapp.v1.TieringPolicy.TierAction|keyof typeof google.cloud.netapp.v1.TieringPolicy.TierAction|null); + /** StoragePool stateDetails. */ + public stateDetails: string; - /** TieringPolicy coolingThresholdDays */ - coolingThresholdDays?: (number|null); - } + /** StoragePool createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); - /** Represents a TieringPolicy. */ - class TieringPolicy implements ITieringPolicy { + /** StoragePool description. */ + public description: string; - /** - * Constructs a new TieringPolicy. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.netapp.v1.ITieringPolicy); + /** StoragePool labels. */ + public labels: { [k: string]: string }; - /** TieringPolicy tierAction. */ - public tierAction?: (google.cloud.netapp.v1.TieringPolicy.TierAction|keyof typeof google.cloud.netapp.v1.TieringPolicy.TierAction|null); + /** StoragePool network. */ + public network: string; - /** TieringPolicy coolingThresholdDays. */ - public coolingThresholdDays?: (number|null); + /** StoragePool activeDirectory. */ + public activeDirectory: string; - /** TieringPolicy _tierAction. */ - public _tierAction?: "tierAction"; + /** StoragePool kmsConfig. */ + public kmsConfig: string; - /** TieringPolicy _coolingThresholdDays. */ - public _coolingThresholdDays?: "coolingThresholdDays"; + /** StoragePool ldapEnabled. */ + public ldapEnabled: boolean; + + /** StoragePool psaRange. */ + public psaRange: string; + + /** StoragePool encryptionType. */ + public encryptionType: (google.cloud.netapp.v1.EncryptionType|keyof typeof google.cloud.netapp.v1.EncryptionType); + + /** StoragePool globalAccessAllowed. */ + public globalAccessAllowed?: (boolean|null); + + /** StoragePool allowAutoTiering. */ + public allowAutoTiering: boolean; + + /** StoragePool replicaZone. */ + public replicaZone: string; + + /** StoragePool zone. */ + public zone: string; + + /** StoragePool _globalAccessAllowed. */ + public _globalAccessAllowed?: "globalAccessAllowed"; /** - * Creates a new TieringPolicy instance using the specified properties. + * Creates a new StoragePool instance using the specified properties. * @param [properties] Properties to set - * @returns TieringPolicy instance + * @returns StoragePool instance */ - public static create(properties?: google.cloud.netapp.v1.ITieringPolicy): google.cloud.netapp.v1.TieringPolicy; + public static create(properties?: google.cloud.netapp.v1.IStoragePool): google.cloud.netapp.v1.StoragePool; /** - * Encodes the specified TieringPolicy message. Does not implicitly {@link google.cloud.netapp.v1.TieringPolicy.verify|verify} messages. - * @param message TieringPolicy message or plain object to encode + * Encodes the specified StoragePool message. Does not implicitly {@link google.cloud.netapp.v1.StoragePool.verify|verify} messages. + * @param message StoragePool message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.netapp.v1.ITieringPolicy, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.netapp.v1.IStoragePool, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified TieringPolicy message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.TieringPolicy.verify|verify} messages. - * @param message TieringPolicy message or plain object to encode + * Encodes the specified StoragePool message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.StoragePool.verify|verify} messages. + * @param message StoragePool message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.netapp.v1.ITieringPolicy, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.netapp.v1.IStoragePool, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a TieringPolicy message from the specified reader or buffer. + * Decodes a StoragePool message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns TieringPolicy + * @returns StoragePool * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.netapp.v1.TieringPolicy; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.netapp.v1.StoragePool; /** - * Decodes a TieringPolicy message from the specified reader or buffer, length delimited. + * Decodes a StoragePool message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns TieringPolicy + * @returns StoragePool * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.netapp.v1.TieringPolicy; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.netapp.v1.StoragePool; /** - * Verifies a TieringPolicy message. + * Verifies a StoragePool message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a TieringPolicy message from a plain object. Also converts values to their respective internal types. + * Creates a StoragePool message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns TieringPolicy + * @returns StoragePool */ - public static fromObject(object: { [k: string]: any }): google.cloud.netapp.v1.TieringPolicy; + public static fromObject(object: { [k: string]: any }): google.cloud.netapp.v1.StoragePool; /** - * Creates a plain object from a TieringPolicy message. Also converts values to other types if specified. - * @param message TieringPolicy + * Creates a plain object from a StoragePool message. Also converts values to other types if specified. + * @param message StoragePool * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.netapp.v1.TieringPolicy, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.netapp.v1.StoragePool, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this TieringPolicy to JSON. + * Converts this StoragePool to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for TieringPolicy + * Gets the default type url for StoragePool * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace TieringPolicy { + namespace StoragePool { - /** TierAction enum. */ - enum TierAction { - TIER_ACTION_UNSPECIFIED = 0, - ENABLED = 1, - PAUSED = 2 + /** State enum. */ + enum State { + STATE_UNSPECIFIED = 0, + READY = 1, + CREATING = 2, + DELETING = 3, + UPDATING = 4, + RESTORING = 5, + DISABLED = 6, + ERROR = 7 } } } @@ -13544,6 +14105,115 @@ export namespace google { GA = 4, DEPRECATED = 5 } + + /** Properties of a FieldInfo. */ + interface IFieldInfo { + + /** FieldInfo format */ + format?: (google.api.FieldInfo.Format|keyof typeof google.api.FieldInfo.Format|null); + } + + /** Represents a FieldInfo. */ + class FieldInfo implements IFieldInfo { + + /** + * Constructs a new FieldInfo. + * @param [properties] Properties to set + */ + constructor(properties?: google.api.IFieldInfo); + + /** FieldInfo format. */ + public format: (google.api.FieldInfo.Format|keyof typeof google.api.FieldInfo.Format); + + /** + * Creates a new FieldInfo instance using the specified properties. + * @param [properties] Properties to set + * @returns FieldInfo instance + */ + public static create(properties?: google.api.IFieldInfo): google.api.FieldInfo; + + /** + * Encodes the specified FieldInfo message. Does not implicitly {@link google.api.FieldInfo.verify|verify} messages. + * @param message FieldInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.api.IFieldInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified FieldInfo message, length delimited. Does not implicitly {@link google.api.FieldInfo.verify|verify} messages. + * @param message FieldInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.api.IFieldInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a FieldInfo message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FieldInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.FieldInfo; + + /** + * Decodes a FieldInfo message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FieldInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.FieldInfo; + + /** + * Verifies a FieldInfo message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a FieldInfo message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FieldInfo + */ + public static fromObject(object: { [k: string]: any }): google.api.FieldInfo; + + /** + * Creates a plain object from a FieldInfo message. Also converts values to other types if specified. + * @param message FieldInfo + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.api.FieldInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this FieldInfo to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for FieldInfo + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace FieldInfo { + + /** Format enum. */ + enum Format { + FORMAT_UNSPECIFIED = 0, + UUID4 = 1, + IPV4 = 2, + IPV6 = 3, + IPV4_OR_IPV6 = 4 + } + } } /** Namespace protobuf. */ @@ -15718,6 +16388,9 @@ export namespace google { /** FieldOptions .google.api.resourceReference */ ".google.api.resourceReference"?: (google.api.IResourceReference|null); + + /** FieldOptions .google.api.fieldInfo */ + ".google.api.fieldInfo"?: (google.api.IFieldInfo|null); } /** Represents a FieldOptions. */ diff --git a/packages/google-cloud-netapp/protos/protos.js b/packages/google-cloud-netapp/protos/protos.js index f993d9d4db2..1d34201a14e 100644 --- a/packages/google-cloud-netapp/protos/protos.js +++ b/packages/google-cloud-netapp/protos/protos.js @@ -2046,6 +2046,7 @@ case 4: case 5: case 6: + case 7: break; } if (message.domain != null && message.hasOwnProperty("domain")) @@ -2179,6 +2180,10 @@ case 6: message.state = 6; break; + case "DIAGNOSING": + case 7: + message.state = 7; + break; } if (object.domain != null) message.domain = String(object.domain); @@ -2378,6 +2383,7 @@ * @property {number} IN_USE=4 IN_USE value * @property {number} DELETING=5 DELETING value * @property {number} ERROR=6 ERROR value + * @property {number} DIAGNOSING=7 DIAGNOSING value */ ActiveDirectory.State = (function() { var valuesById = {}, values = Object.create(valuesById); @@ -2388,6 +2394,7 @@ values[valuesById[4] = "IN_USE"] = 4; values[valuesById[5] = "DELETING"] = 5; values[valuesById[6] = "ERROR"] = 6; + values[valuesById[7] = "DIAGNOSING"] = 7; return values; })(); @@ -9705,6 +9712,72 @@ * @variation 2 */ + /** + * Callback as used by {@link google.cloud.netapp.v1.NetApp|establishPeering}. + * @memberof google.cloud.netapp.v1.NetApp + * @typedef EstablishPeeringCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls EstablishPeering. + * @function establishPeering + * @memberof google.cloud.netapp.v1.NetApp + * @instance + * @param {google.cloud.netapp.v1.IEstablishPeeringRequest} request EstablishPeeringRequest message or plain object + * @param {google.cloud.netapp.v1.NetApp.EstablishPeeringCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(NetApp.prototype.establishPeering = function establishPeering(request, callback) { + return this.rpcCall(establishPeering, $root.google.cloud.netapp.v1.EstablishPeeringRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "EstablishPeering" }); + + /** + * Calls EstablishPeering. + * @function establishPeering + * @memberof google.cloud.netapp.v1.NetApp + * @instance + * @param {google.cloud.netapp.v1.IEstablishPeeringRequest} request EstablishPeeringRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.netapp.v1.NetApp|syncReplication}. + * @memberof google.cloud.netapp.v1.NetApp + * @typedef SyncReplicationCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls SyncReplication. + * @function syncReplication + * @memberof google.cloud.netapp.v1.NetApp + * @instance + * @param {google.cloud.netapp.v1.ISyncReplicationRequest} request SyncReplicationRequest message or plain object + * @param {google.cloud.netapp.v1.NetApp.SyncReplicationCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(NetApp.prototype.syncReplication = function syncReplication(request, callback) { + return this.rpcCall(syncReplication, $root.google.cloud.netapp.v1.SyncReplicationRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "SyncReplication" }); + + /** + * Calls SyncReplication. + * @function syncReplication + * @memberof google.cloud.netapp.v1.NetApp + * @instance + * @param {google.cloud.netapp.v1.ISyncReplicationRequest} request SyncReplicationRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + /** * Callback as used by {@link google.cloud.netapp.v1.NetApp|createBackupVault}. * @memberof google.cloud.netapp.v1.NetApp @@ -13782,6 +13855,9 @@ * @property {string|null} [description] Replication description * @property {google.cloud.netapp.v1.IDestinationVolumeParameters|null} [destinationVolumeParameters] Replication destinationVolumeParameters * @property {string|null} [sourceVolume] Replication sourceVolume + * @property {google.cloud.netapp.v1.IHybridPeeringDetails|null} [hybridPeeringDetails] Replication hybridPeeringDetails + * @property {string|null} [clusterLocation] Replication clusterLocation + * @property {google.cloud.netapp.v1.Replication.HybridReplicationType|null} [hybridReplicationType] Replication hybridReplicationType */ /** @@ -13912,6 +13988,30 @@ */ Replication.prototype.sourceVolume = ""; + /** + * Replication hybridPeeringDetails. + * @member {google.cloud.netapp.v1.IHybridPeeringDetails|null|undefined} hybridPeeringDetails + * @memberof google.cloud.netapp.v1.Replication + * @instance + */ + Replication.prototype.hybridPeeringDetails = null; + + /** + * Replication clusterLocation. + * @member {string} clusterLocation + * @memberof google.cloud.netapp.v1.Replication + * @instance + */ + Replication.prototype.clusterLocation = ""; + + /** + * Replication hybridReplicationType. + * @member {google.cloud.netapp.v1.Replication.HybridReplicationType} hybridReplicationType + * @memberof google.cloud.netapp.v1.Replication + * @instance + */ + Replication.prototype.hybridReplicationType = 0; + // OneOf field names bound to virtual getters and setters var $oneOfFields; @@ -13990,6 +14090,12 @@ $root.google.cloud.netapp.v1.DestinationVolumeParameters.encode(message.destinationVolumeParameters, writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim(); if (message.sourceVolume != null && Object.hasOwnProperty.call(message, "sourceVolume")) writer.uint32(/* id 15, wireType 2 =*/122).string(message.sourceVolume); + if (message.hybridPeeringDetails != null && Object.hasOwnProperty.call(message, "hybridPeeringDetails")) + $root.google.cloud.netapp.v1.HybridPeeringDetails.encode(message.hybridPeeringDetails, writer.uint32(/* id 16, wireType 2 =*/130).fork()).ldelim(); + if (message.clusterLocation != null && Object.hasOwnProperty.call(message, "clusterLocation")) + writer.uint32(/* id 18, wireType 2 =*/146).string(message.clusterLocation); + if (message.hybridReplicationType != null && Object.hasOwnProperty.call(message, "hybridReplicationType")) + writer.uint32(/* id 19, wireType 0 =*/152).int32(message.hybridReplicationType); return writer; }; @@ -14099,6 +14205,18 @@ message.sourceVolume = reader.string(); break; } + case 16: { + message.hybridPeeringDetails = $root.google.cloud.netapp.v1.HybridPeeringDetails.decode(reader, reader.uint32()); + break; + } + case 18: { + message.clusterLocation = reader.string(); + break; + } + case 19: { + message.hybridReplicationType = reader.int32(); + break; + } default: reader.skipType(tag & 7); break; @@ -14148,6 +14266,8 @@ case 3: case 5: case 6: + case 8: + case 9: break; } if (message.stateDetails != null && message.hasOwnProperty("stateDetails")) @@ -14181,6 +14301,8 @@ case 2: case 3: case 4: + case 5: + case 6: break; } if (message.healthy != null && message.hasOwnProperty("healthy")) { @@ -14222,6 +14344,23 @@ if (message.sourceVolume != null && message.hasOwnProperty("sourceVolume")) if (!$util.isString(message.sourceVolume)) return "sourceVolume: string expected"; + if (message.hybridPeeringDetails != null && message.hasOwnProperty("hybridPeeringDetails")) { + var error = $root.google.cloud.netapp.v1.HybridPeeringDetails.verify(message.hybridPeeringDetails); + if (error) + return "hybridPeeringDetails." + error; + } + if (message.clusterLocation != null && message.hasOwnProperty("clusterLocation")) + if (!$util.isString(message.clusterLocation)) + return "clusterLocation: string expected"; + if (message.hybridReplicationType != null && message.hasOwnProperty("hybridReplicationType")) + switch (message.hybridReplicationType) { + default: + return "hybridReplicationType: enum value expected"; + case 0: + case 1: + case 2: + break; + } return null; }; @@ -14270,6 +14409,14 @@ case 6: message.state = 6; break; + case "PENDING_CLUSTER_PEERING": + case 8: + message.state = 8; + break; + case "PENDING_SVM_PEERING": + case 9: + message.state = 9; + break; } if (object.stateDetails != null) message.stateDetails = String(object.stateDetails); @@ -14344,6 +14491,14 @@ case 4: message.mirrorState = 4; break; + case "BASELINE_TRANSFERRING": + case 5: + message.mirrorState = 5; + break; + case "ABORTED": + case 6: + message.mirrorState = 6; + break; } if (object.healthy != null) message.healthy = Boolean(object.healthy); @@ -14375,6 +14530,33 @@ } if (object.sourceVolume != null) message.sourceVolume = String(object.sourceVolume); + if (object.hybridPeeringDetails != null) { + if (typeof object.hybridPeeringDetails !== "object") + throw TypeError(".google.cloud.netapp.v1.Replication.hybridPeeringDetails: object expected"); + message.hybridPeeringDetails = $root.google.cloud.netapp.v1.HybridPeeringDetails.fromObject(object.hybridPeeringDetails); + } + if (object.clusterLocation != null) + message.clusterLocation = String(object.clusterLocation); + switch (object.hybridReplicationType) { + default: + if (typeof object.hybridReplicationType === "number") { + message.hybridReplicationType = object.hybridReplicationType; + break; + } + break; + case "HYBRID_REPLICATION_TYPE_UNSPECIFIED": + case 0: + message.hybridReplicationType = 0; + break; + case "MIGRATION": + case 1: + message.hybridReplicationType = 1; + break; + case "CONTINUOUS_REPLICATION": + case 2: + message.hybridReplicationType = 2; + break; + } return message; }; @@ -14405,6 +14587,9 @@ object.transferStats = null; object.destinationVolumeParameters = null; object.sourceVolume = ""; + object.hybridPeeringDetails = null; + object.clusterLocation = ""; + object.hybridReplicationType = options.enums === String ? "HYBRID_REPLICATION_TYPE_UNSPECIFIED" : 0; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; @@ -14444,6 +14629,12 @@ object.destinationVolumeParameters = $root.google.cloud.netapp.v1.DestinationVolumeParameters.toObject(message.destinationVolumeParameters, options); if (message.sourceVolume != null && message.hasOwnProperty("sourceVolume")) object.sourceVolume = message.sourceVolume; + if (message.hybridPeeringDetails != null && message.hasOwnProperty("hybridPeeringDetails")) + object.hybridPeeringDetails = $root.google.cloud.netapp.v1.HybridPeeringDetails.toObject(message.hybridPeeringDetails, options); + if (message.clusterLocation != null && message.hasOwnProperty("clusterLocation")) + object.clusterLocation = message.clusterLocation; + if (message.hybridReplicationType != null && message.hasOwnProperty("hybridReplicationType")) + object.hybridReplicationType = options.enums === String ? $root.google.cloud.netapp.v1.Replication.HybridReplicationType[message.hybridReplicationType] === undefined ? message.hybridReplicationType : $root.google.cloud.netapp.v1.Replication.HybridReplicationType[message.hybridReplicationType] : message.hybridReplicationType; return object; }; @@ -14483,6 +14674,8 @@ * @property {number} UPDATING=3 UPDATING value * @property {number} DELETING=5 DELETING value * @property {number} ERROR=6 ERROR value + * @property {number} PENDING_CLUSTER_PEERING=8 PENDING_CLUSTER_PEERING value + * @property {number} PENDING_SVM_PEERING=9 PENDING_SVM_PEERING value */ Replication.State = (function() { var valuesById = {}, values = Object.create(valuesById); @@ -14492,6 +14685,8 @@ values[valuesById[3] = "UPDATING"] = 3; values[valuesById[5] = "DELETING"] = 5; values[valuesById[6] = "ERROR"] = 6; + values[valuesById[8] = "PENDING_CLUSTER_PEERING"] = 8; + values[valuesById[9] = "PENDING_SVM_PEERING"] = 9; return values; })(); @@ -14538,6 +14733,8 @@ * @property {number} MIRRORED=2 MIRRORED value * @property {number} STOPPED=3 STOPPED value * @property {number} TRANSFERRING=4 TRANSFERRING value + * @property {number} BASELINE_TRANSFERRING=5 BASELINE_TRANSFERRING value + * @property {number} ABORTED=6 ABORTED value */ Replication.MirrorState = (function() { var valuesById = {}, values = Object.create(valuesById); @@ -14546,12 +14743,308 @@ values[valuesById[2] = "MIRRORED"] = 2; values[valuesById[3] = "STOPPED"] = 3; values[valuesById[4] = "TRANSFERRING"] = 4; + values[valuesById[5] = "BASELINE_TRANSFERRING"] = 5; + values[valuesById[6] = "ABORTED"] = 6; + return values; + })(); + + /** + * HybridReplicationType enum. + * @name google.cloud.netapp.v1.Replication.HybridReplicationType + * @enum {number} + * @property {number} HYBRID_REPLICATION_TYPE_UNSPECIFIED=0 HYBRID_REPLICATION_TYPE_UNSPECIFIED value + * @property {number} MIGRATION=1 MIGRATION value + * @property {number} CONTINUOUS_REPLICATION=2 CONTINUOUS_REPLICATION value + */ + Replication.HybridReplicationType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "HYBRID_REPLICATION_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "MIGRATION"] = 1; + values[valuesById[2] = "CONTINUOUS_REPLICATION"] = 2; return values; })(); return Replication; })(); + v1.HybridPeeringDetails = (function() { + + /** + * Properties of a HybridPeeringDetails. + * @memberof google.cloud.netapp.v1 + * @interface IHybridPeeringDetails + * @property {string|null} [subnetIp] HybridPeeringDetails subnetIp + * @property {string|null} [command] HybridPeeringDetails command + * @property {google.protobuf.ITimestamp|null} [commandExpiryTime] HybridPeeringDetails commandExpiryTime + * @property {string|null} [passphrase] HybridPeeringDetails passphrase + */ + + /** + * Constructs a new HybridPeeringDetails. + * @memberof google.cloud.netapp.v1 + * @classdesc Represents a HybridPeeringDetails. + * @implements IHybridPeeringDetails + * @constructor + * @param {google.cloud.netapp.v1.IHybridPeeringDetails=} [properties] Properties to set + */ + function HybridPeeringDetails(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * HybridPeeringDetails subnetIp. + * @member {string} subnetIp + * @memberof google.cloud.netapp.v1.HybridPeeringDetails + * @instance + */ + HybridPeeringDetails.prototype.subnetIp = ""; + + /** + * HybridPeeringDetails command. + * @member {string} command + * @memberof google.cloud.netapp.v1.HybridPeeringDetails + * @instance + */ + HybridPeeringDetails.prototype.command = ""; + + /** + * HybridPeeringDetails commandExpiryTime. + * @member {google.protobuf.ITimestamp|null|undefined} commandExpiryTime + * @memberof google.cloud.netapp.v1.HybridPeeringDetails + * @instance + */ + HybridPeeringDetails.prototype.commandExpiryTime = null; + + /** + * HybridPeeringDetails passphrase. + * @member {string} passphrase + * @memberof google.cloud.netapp.v1.HybridPeeringDetails + * @instance + */ + HybridPeeringDetails.prototype.passphrase = ""; + + /** + * Creates a new HybridPeeringDetails instance using the specified properties. + * @function create + * @memberof google.cloud.netapp.v1.HybridPeeringDetails + * @static + * @param {google.cloud.netapp.v1.IHybridPeeringDetails=} [properties] Properties to set + * @returns {google.cloud.netapp.v1.HybridPeeringDetails} HybridPeeringDetails instance + */ + HybridPeeringDetails.create = function create(properties) { + return new HybridPeeringDetails(properties); + }; + + /** + * Encodes the specified HybridPeeringDetails message. Does not implicitly {@link google.cloud.netapp.v1.HybridPeeringDetails.verify|verify} messages. + * @function encode + * @memberof google.cloud.netapp.v1.HybridPeeringDetails + * @static + * @param {google.cloud.netapp.v1.IHybridPeeringDetails} message HybridPeeringDetails message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + HybridPeeringDetails.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.subnetIp != null && Object.hasOwnProperty.call(message, "subnetIp")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.subnetIp); + if (message.command != null && Object.hasOwnProperty.call(message, "command")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.command); + if (message.commandExpiryTime != null && Object.hasOwnProperty.call(message, "commandExpiryTime")) + $root.google.protobuf.Timestamp.encode(message.commandExpiryTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.passphrase != null && Object.hasOwnProperty.call(message, "passphrase")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.passphrase); + return writer; + }; + + /** + * Encodes the specified HybridPeeringDetails message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.HybridPeeringDetails.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.netapp.v1.HybridPeeringDetails + * @static + * @param {google.cloud.netapp.v1.IHybridPeeringDetails} message HybridPeeringDetails message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + HybridPeeringDetails.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a HybridPeeringDetails message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.netapp.v1.HybridPeeringDetails + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.netapp.v1.HybridPeeringDetails} HybridPeeringDetails + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + HybridPeeringDetails.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.netapp.v1.HybridPeeringDetails(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.subnetIp = reader.string(); + break; + } + case 2: { + message.command = reader.string(); + break; + } + case 3: { + message.commandExpiryTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 4: { + message.passphrase = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a HybridPeeringDetails message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.netapp.v1.HybridPeeringDetails + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.netapp.v1.HybridPeeringDetails} HybridPeeringDetails + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + HybridPeeringDetails.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a HybridPeeringDetails message. + * @function verify + * @memberof google.cloud.netapp.v1.HybridPeeringDetails + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + HybridPeeringDetails.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.subnetIp != null && message.hasOwnProperty("subnetIp")) + if (!$util.isString(message.subnetIp)) + return "subnetIp: string expected"; + if (message.command != null && message.hasOwnProperty("command")) + if (!$util.isString(message.command)) + return "command: string expected"; + if (message.commandExpiryTime != null && message.hasOwnProperty("commandExpiryTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.commandExpiryTime); + if (error) + return "commandExpiryTime." + error; + } + if (message.passphrase != null && message.hasOwnProperty("passphrase")) + if (!$util.isString(message.passphrase)) + return "passphrase: string expected"; + return null; + }; + + /** + * Creates a HybridPeeringDetails message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.netapp.v1.HybridPeeringDetails + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.netapp.v1.HybridPeeringDetails} HybridPeeringDetails + */ + HybridPeeringDetails.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.netapp.v1.HybridPeeringDetails) + return object; + var message = new $root.google.cloud.netapp.v1.HybridPeeringDetails(); + if (object.subnetIp != null) + message.subnetIp = String(object.subnetIp); + if (object.command != null) + message.command = String(object.command); + if (object.commandExpiryTime != null) { + if (typeof object.commandExpiryTime !== "object") + throw TypeError(".google.cloud.netapp.v1.HybridPeeringDetails.commandExpiryTime: object expected"); + message.commandExpiryTime = $root.google.protobuf.Timestamp.fromObject(object.commandExpiryTime); + } + if (object.passphrase != null) + message.passphrase = String(object.passphrase); + return message; + }; + + /** + * Creates a plain object from a HybridPeeringDetails message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.netapp.v1.HybridPeeringDetails + * @static + * @param {google.cloud.netapp.v1.HybridPeeringDetails} message HybridPeeringDetails + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + HybridPeeringDetails.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.subnetIp = ""; + object.command = ""; + object.commandExpiryTime = null; + object.passphrase = ""; + } + if (message.subnetIp != null && message.hasOwnProperty("subnetIp")) + object.subnetIp = message.subnetIp; + if (message.command != null && message.hasOwnProperty("command")) + object.command = message.command; + if (message.commandExpiryTime != null && message.hasOwnProperty("commandExpiryTime")) + object.commandExpiryTime = $root.google.protobuf.Timestamp.toObject(message.commandExpiryTime, options); + if (message.passphrase != null && message.hasOwnProperty("passphrase")) + object.passphrase = message.passphrase; + return object; + }; + + /** + * Converts this HybridPeeringDetails to JSON. + * @function toJSON + * @memberof google.cloud.netapp.v1.HybridPeeringDetails + * @instance + * @returns {Object.} JSON object + */ + HybridPeeringDetails.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for HybridPeeringDetails + * @function getTypeUrl + * @memberof google.cloud.netapp.v1.HybridPeeringDetails + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + HybridPeeringDetails.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.netapp.v1.HybridPeeringDetails"; + }; + + return HybridPeeringDetails; + })(); + v1.ListReplicationsRequest = (function() { /** @@ -15349,6 +15842,7 @@ * @property {string|null} [volumeId] DestinationVolumeParameters volumeId * @property {string|null} [shareName] DestinationVolumeParameters shareName * @property {string|null} [description] DestinationVolumeParameters description + * @property {google.cloud.netapp.v1.ITieringPolicy|null} [tieringPolicy] DestinationVolumeParameters tieringPolicy */ /** @@ -15398,6 +15892,14 @@ */ DestinationVolumeParameters.prototype.description = null; + /** + * DestinationVolumeParameters tieringPolicy. + * @member {google.cloud.netapp.v1.ITieringPolicy|null|undefined} tieringPolicy + * @memberof google.cloud.netapp.v1.DestinationVolumeParameters + * @instance + */ + DestinationVolumeParameters.prototype.tieringPolicy = null; + // OneOf field names bound to virtual getters and setters var $oneOfFields; @@ -15412,6 +15914,17 @@ set: $util.oneOfSetter($oneOfFields) }); + /** + * DestinationVolumeParameters _tieringPolicy. + * @member {"tieringPolicy"|undefined} _tieringPolicy + * @memberof google.cloud.netapp.v1.DestinationVolumeParameters + * @instance + */ + Object.defineProperty(DestinationVolumeParameters.prototype, "_tieringPolicy", { + get: $util.oneOfGetter($oneOfFields = ["tieringPolicy"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * Creates a new DestinationVolumeParameters instance using the specified properties. * @function create @@ -15444,6 +15957,8 @@ writer.uint32(/* id 3, wireType 2 =*/26).string(message.shareName); if (message.description != null && Object.hasOwnProperty.call(message, "description")) writer.uint32(/* id 4, wireType 2 =*/34).string(message.description); + if (message.tieringPolicy != null && Object.hasOwnProperty.call(message, "tieringPolicy")) + $root.google.cloud.netapp.v1.TieringPolicy.encode(message.tieringPolicy, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); return writer; }; @@ -15494,6 +16009,10 @@ message.description = reader.string(); break; } + case 5: { + message.tieringPolicy = $root.google.cloud.netapp.v1.TieringPolicy.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -15544,6 +16063,14 @@ if (!$util.isString(message.description)) return "description: string expected"; } + if (message.tieringPolicy != null && message.hasOwnProperty("tieringPolicy")) { + properties._tieringPolicy = 1; + { + var error = $root.google.cloud.netapp.v1.TieringPolicy.verify(message.tieringPolicy); + if (error) + return "tieringPolicy." + error; + } + } return null; }; @@ -15567,6 +16094,11 @@ message.shareName = String(object.shareName); if (object.description != null) message.description = String(object.description); + if (object.tieringPolicy != null) { + if (typeof object.tieringPolicy !== "object") + throw TypeError(".google.cloud.netapp.v1.DestinationVolumeParameters.tieringPolicy: object expected"); + message.tieringPolicy = $root.google.cloud.netapp.v1.TieringPolicy.fromObject(object.tieringPolicy); + } return message; }; @@ -15599,6 +16131,11 @@ if (options.oneofs) object._description = "description"; } + if (message.tieringPolicy != null && message.hasOwnProperty("tieringPolicy")) { + object.tieringPolicy = $root.google.cloud.netapp.v1.TieringPolicy.toObject(message.tieringPolicy, options); + if (options.oneofs) + object._tieringPolicy = "tieringPolicy"; + } return object; }; @@ -16959,28 +17496,29 @@ return ReverseReplicationDirectionRequest; })(); - v1.ListSnapshotsRequest = (function() { + v1.EstablishPeeringRequest = (function() { /** - * Properties of a ListSnapshotsRequest. + * Properties of an EstablishPeeringRequest. * @memberof google.cloud.netapp.v1 - * @interface IListSnapshotsRequest - * @property {string|null} [parent] ListSnapshotsRequest parent - * @property {number|null} [pageSize] ListSnapshotsRequest pageSize - * @property {string|null} [pageToken] ListSnapshotsRequest pageToken - * @property {string|null} [orderBy] ListSnapshotsRequest orderBy - * @property {string|null} [filter] ListSnapshotsRequest filter + * @interface IEstablishPeeringRequest + * @property {string|null} [name] EstablishPeeringRequest name + * @property {string|null} [peerClusterName] EstablishPeeringRequest peerClusterName + * @property {string|null} [peerSvmName] EstablishPeeringRequest peerSvmName + * @property {Array.|null} [peerIpAddresses] EstablishPeeringRequest peerIpAddresses + * @property {string|null} [peerVolumeName] EstablishPeeringRequest peerVolumeName */ /** - * Constructs a new ListSnapshotsRequest. + * Constructs a new EstablishPeeringRequest. * @memberof google.cloud.netapp.v1 - * @classdesc Represents a ListSnapshotsRequest. - * @implements IListSnapshotsRequest + * @classdesc Represents an EstablishPeeringRequest. + * @implements IEstablishPeeringRequest * @constructor - * @param {google.cloud.netapp.v1.IListSnapshotsRequest=} [properties] Properties to set + * @param {google.cloud.netapp.v1.IEstablishPeeringRequest=} [properties] Properties to set */ - function ListSnapshotsRequest(properties) { + function EstablishPeeringRequest(properties) { + this.peerIpAddresses = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -16988,131 +17526,134 @@ } /** - * ListSnapshotsRequest parent. - * @member {string} parent - * @memberof google.cloud.netapp.v1.ListSnapshotsRequest + * EstablishPeeringRequest name. + * @member {string} name + * @memberof google.cloud.netapp.v1.EstablishPeeringRequest * @instance */ - ListSnapshotsRequest.prototype.parent = ""; + EstablishPeeringRequest.prototype.name = ""; /** - * ListSnapshotsRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.netapp.v1.ListSnapshotsRequest + * EstablishPeeringRequest peerClusterName. + * @member {string} peerClusterName + * @memberof google.cloud.netapp.v1.EstablishPeeringRequest * @instance */ - ListSnapshotsRequest.prototype.pageSize = 0; + EstablishPeeringRequest.prototype.peerClusterName = ""; /** - * ListSnapshotsRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.netapp.v1.ListSnapshotsRequest + * EstablishPeeringRequest peerSvmName. + * @member {string} peerSvmName + * @memberof google.cloud.netapp.v1.EstablishPeeringRequest * @instance */ - ListSnapshotsRequest.prototype.pageToken = ""; + EstablishPeeringRequest.prototype.peerSvmName = ""; /** - * ListSnapshotsRequest orderBy. - * @member {string} orderBy - * @memberof google.cloud.netapp.v1.ListSnapshotsRequest + * EstablishPeeringRequest peerIpAddresses. + * @member {Array.} peerIpAddresses + * @memberof google.cloud.netapp.v1.EstablishPeeringRequest * @instance */ - ListSnapshotsRequest.prototype.orderBy = ""; + EstablishPeeringRequest.prototype.peerIpAddresses = $util.emptyArray; /** - * ListSnapshotsRequest filter. - * @member {string} filter - * @memberof google.cloud.netapp.v1.ListSnapshotsRequest + * EstablishPeeringRequest peerVolumeName. + * @member {string} peerVolumeName + * @memberof google.cloud.netapp.v1.EstablishPeeringRequest * @instance */ - ListSnapshotsRequest.prototype.filter = ""; + EstablishPeeringRequest.prototype.peerVolumeName = ""; /** - * Creates a new ListSnapshotsRequest instance using the specified properties. + * Creates a new EstablishPeeringRequest instance using the specified properties. * @function create - * @memberof google.cloud.netapp.v1.ListSnapshotsRequest + * @memberof google.cloud.netapp.v1.EstablishPeeringRequest * @static - * @param {google.cloud.netapp.v1.IListSnapshotsRequest=} [properties] Properties to set - * @returns {google.cloud.netapp.v1.ListSnapshotsRequest} ListSnapshotsRequest instance + * @param {google.cloud.netapp.v1.IEstablishPeeringRequest=} [properties] Properties to set + * @returns {google.cloud.netapp.v1.EstablishPeeringRequest} EstablishPeeringRequest instance */ - ListSnapshotsRequest.create = function create(properties) { - return new ListSnapshotsRequest(properties); + EstablishPeeringRequest.create = function create(properties) { + return new EstablishPeeringRequest(properties); }; /** - * Encodes the specified ListSnapshotsRequest message. Does not implicitly {@link google.cloud.netapp.v1.ListSnapshotsRequest.verify|verify} messages. + * Encodes the specified EstablishPeeringRequest message. Does not implicitly {@link google.cloud.netapp.v1.EstablishPeeringRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.netapp.v1.ListSnapshotsRequest + * @memberof google.cloud.netapp.v1.EstablishPeeringRequest * @static - * @param {google.cloud.netapp.v1.IListSnapshotsRequest} message ListSnapshotsRequest message or plain object to encode + * @param {google.cloud.netapp.v1.IEstablishPeeringRequest} message EstablishPeeringRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListSnapshotsRequest.encode = function encode(message, writer) { + EstablishPeeringRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); - if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.orderBy); - if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.filter); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.peerClusterName != null && Object.hasOwnProperty.call(message, "peerClusterName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.peerClusterName); + if (message.peerSvmName != null && Object.hasOwnProperty.call(message, "peerSvmName")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.peerSvmName); + if (message.peerIpAddresses != null && message.peerIpAddresses.length) + for (var i = 0; i < message.peerIpAddresses.length; ++i) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.peerIpAddresses[i]); + if (message.peerVolumeName != null && Object.hasOwnProperty.call(message, "peerVolumeName")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.peerVolumeName); return writer; }; /** - * Encodes the specified ListSnapshotsRequest message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.ListSnapshotsRequest.verify|verify} messages. + * Encodes the specified EstablishPeeringRequest message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.EstablishPeeringRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.netapp.v1.ListSnapshotsRequest + * @memberof google.cloud.netapp.v1.EstablishPeeringRequest * @static - * @param {google.cloud.netapp.v1.IListSnapshotsRequest} message ListSnapshotsRequest message or plain object to encode + * @param {google.cloud.netapp.v1.IEstablishPeeringRequest} message EstablishPeeringRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListSnapshotsRequest.encodeDelimited = function encodeDelimited(message, writer) { + EstablishPeeringRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListSnapshotsRequest message from the specified reader or buffer. + * Decodes an EstablishPeeringRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.netapp.v1.ListSnapshotsRequest + * @memberof google.cloud.netapp.v1.EstablishPeeringRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.netapp.v1.ListSnapshotsRequest} ListSnapshotsRequest + * @returns {google.cloud.netapp.v1.EstablishPeeringRequest} EstablishPeeringRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListSnapshotsRequest.decode = function decode(reader, length) { + EstablishPeeringRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.netapp.v1.ListSnapshotsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.netapp.v1.EstablishPeeringRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.parent = reader.string(); + message.name = reader.string(); break; } case 2: { - message.pageSize = reader.int32(); + message.peerClusterName = reader.string(); break; } case 3: { - message.pageToken = reader.string(); + message.peerSvmName = reader.string(); break; } case 4: { - message.orderBy = reader.string(); + if (!(message.peerIpAddresses && message.peerIpAddresses.length)) + message.peerIpAddresses = []; + message.peerIpAddresses.push(reader.string()); break; } case 5: { - message.filter = reader.string(); + message.peerVolumeName = reader.string(); break; } default: @@ -17124,159 +17665,168 @@ }; /** - * Decodes a ListSnapshotsRequest message from the specified reader or buffer, length delimited. + * Decodes an EstablishPeeringRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.netapp.v1.ListSnapshotsRequest + * @memberof google.cloud.netapp.v1.EstablishPeeringRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.netapp.v1.ListSnapshotsRequest} ListSnapshotsRequest + * @returns {google.cloud.netapp.v1.EstablishPeeringRequest} EstablishPeeringRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListSnapshotsRequest.decodeDelimited = function decodeDelimited(reader) { + EstablishPeeringRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListSnapshotsRequest message. + * Verifies an EstablishPeeringRequest message. * @function verify - * @memberof google.cloud.netapp.v1.ListSnapshotsRequest + * @memberof google.cloud.netapp.v1.EstablishPeeringRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListSnapshotsRequest.verify = function verify(message) { + EstablishPeeringRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; - if (message.orderBy != null && message.hasOwnProperty("orderBy")) - if (!$util.isString(message.orderBy)) - return "orderBy: string expected"; - if (message.filter != null && message.hasOwnProperty("filter")) - if (!$util.isString(message.filter)) - return "filter: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.peerClusterName != null && message.hasOwnProperty("peerClusterName")) + if (!$util.isString(message.peerClusterName)) + return "peerClusterName: string expected"; + if (message.peerSvmName != null && message.hasOwnProperty("peerSvmName")) + if (!$util.isString(message.peerSvmName)) + return "peerSvmName: string expected"; + if (message.peerIpAddresses != null && message.hasOwnProperty("peerIpAddresses")) { + if (!Array.isArray(message.peerIpAddresses)) + return "peerIpAddresses: array expected"; + for (var i = 0; i < message.peerIpAddresses.length; ++i) + if (!$util.isString(message.peerIpAddresses[i])) + return "peerIpAddresses: string[] expected"; + } + if (message.peerVolumeName != null && message.hasOwnProperty("peerVolumeName")) + if (!$util.isString(message.peerVolumeName)) + return "peerVolumeName: string expected"; return null; }; /** - * Creates a ListSnapshotsRequest message from a plain object. Also converts values to their respective internal types. + * Creates an EstablishPeeringRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.netapp.v1.ListSnapshotsRequest + * @memberof google.cloud.netapp.v1.EstablishPeeringRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.netapp.v1.ListSnapshotsRequest} ListSnapshotsRequest + * @returns {google.cloud.netapp.v1.EstablishPeeringRequest} EstablishPeeringRequest */ - ListSnapshotsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.netapp.v1.ListSnapshotsRequest) + EstablishPeeringRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.netapp.v1.EstablishPeeringRequest) return object; - var message = new $root.google.cloud.netapp.v1.ListSnapshotsRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); - if (object.orderBy != null) - message.orderBy = String(object.orderBy); - if (object.filter != null) - message.filter = String(object.filter); + var message = new $root.google.cloud.netapp.v1.EstablishPeeringRequest(); + if (object.name != null) + message.name = String(object.name); + if (object.peerClusterName != null) + message.peerClusterName = String(object.peerClusterName); + if (object.peerSvmName != null) + message.peerSvmName = String(object.peerSvmName); + if (object.peerIpAddresses) { + if (!Array.isArray(object.peerIpAddresses)) + throw TypeError(".google.cloud.netapp.v1.EstablishPeeringRequest.peerIpAddresses: array expected"); + message.peerIpAddresses = []; + for (var i = 0; i < object.peerIpAddresses.length; ++i) + message.peerIpAddresses[i] = String(object.peerIpAddresses[i]); + } + if (object.peerVolumeName != null) + message.peerVolumeName = String(object.peerVolumeName); return message; }; /** - * Creates a plain object from a ListSnapshotsRequest message. Also converts values to other types if specified. + * Creates a plain object from an EstablishPeeringRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.netapp.v1.ListSnapshotsRequest + * @memberof google.cloud.netapp.v1.EstablishPeeringRequest * @static - * @param {google.cloud.netapp.v1.ListSnapshotsRequest} message ListSnapshotsRequest + * @param {google.cloud.netapp.v1.EstablishPeeringRequest} message EstablishPeeringRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListSnapshotsRequest.toObject = function toObject(message, options) { + EstablishPeeringRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.peerIpAddresses = []; if (options.defaults) { - object.parent = ""; - object.pageSize = 0; - object.pageToken = ""; - object.orderBy = ""; - object.filter = ""; + object.name = ""; + object.peerClusterName = ""; + object.peerSvmName = ""; + object.peerVolumeName = ""; } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; - if (message.orderBy != null && message.hasOwnProperty("orderBy")) - object.orderBy = message.orderBy; - if (message.filter != null && message.hasOwnProperty("filter")) - object.filter = message.filter; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.peerClusterName != null && message.hasOwnProperty("peerClusterName")) + object.peerClusterName = message.peerClusterName; + if (message.peerSvmName != null && message.hasOwnProperty("peerSvmName")) + object.peerSvmName = message.peerSvmName; + if (message.peerIpAddresses && message.peerIpAddresses.length) { + object.peerIpAddresses = []; + for (var j = 0; j < message.peerIpAddresses.length; ++j) + object.peerIpAddresses[j] = message.peerIpAddresses[j]; + } + if (message.peerVolumeName != null && message.hasOwnProperty("peerVolumeName")) + object.peerVolumeName = message.peerVolumeName; return object; }; /** - * Converts this ListSnapshotsRequest to JSON. + * Converts this EstablishPeeringRequest to JSON. * @function toJSON - * @memberof google.cloud.netapp.v1.ListSnapshotsRequest + * @memberof google.cloud.netapp.v1.EstablishPeeringRequest * @instance * @returns {Object.} JSON object */ - ListSnapshotsRequest.prototype.toJSON = function toJSON() { + EstablishPeeringRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListSnapshotsRequest + * Gets the default type url for EstablishPeeringRequest * @function getTypeUrl - * @memberof google.cloud.netapp.v1.ListSnapshotsRequest + * @memberof google.cloud.netapp.v1.EstablishPeeringRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListSnapshotsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + EstablishPeeringRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.netapp.v1.ListSnapshotsRequest"; + return typeUrlPrefix + "/google.cloud.netapp.v1.EstablishPeeringRequest"; }; - return ListSnapshotsRequest; + return EstablishPeeringRequest; })(); - v1.ListSnapshotsResponse = (function() { + v1.SyncReplicationRequest = (function() { /** - * Properties of a ListSnapshotsResponse. + * Properties of a SyncReplicationRequest. * @memberof google.cloud.netapp.v1 - * @interface IListSnapshotsResponse - * @property {Array.|null} [snapshots] ListSnapshotsResponse snapshots - * @property {string|null} [nextPageToken] ListSnapshotsResponse nextPageToken - * @property {Array.|null} [unreachable] ListSnapshotsResponse unreachable + * @interface ISyncReplicationRequest + * @property {string|null} [name] SyncReplicationRequest name */ /** - * Constructs a new ListSnapshotsResponse. + * Constructs a new SyncReplicationRequest. * @memberof google.cloud.netapp.v1 - * @classdesc Represents a ListSnapshotsResponse. - * @implements IListSnapshotsResponse + * @classdesc Represents a SyncReplicationRequest. + * @implements ISyncReplicationRequest * @constructor - * @param {google.cloud.netapp.v1.IListSnapshotsResponse=} [properties] Properties to set + * @param {google.cloud.netapp.v1.ISyncReplicationRequest=} [properties] Properties to set */ - function ListSnapshotsResponse(properties) { - this.snapshots = []; - this.unreachable = []; + function SyncReplicationRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -17284,109 +17834,75 @@ } /** - * ListSnapshotsResponse snapshots. - * @member {Array.} snapshots - * @memberof google.cloud.netapp.v1.ListSnapshotsResponse - * @instance - */ - ListSnapshotsResponse.prototype.snapshots = $util.emptyArray; - - /** - * ListSnapshotsResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.netapp.v1.ListSnapshotsResponse - * @instance - */ - ListSnapshotsResponse.prototype.nextPageToken = ""; - - /** - * ListSnapshotsResponse unreachable. - * @member {Array.} unreachable - * @memberof google.cloud.netapp.v1.ListSnapshotsResponse + * SyncReplicationRequest name. + * @member {string} name + * @memberof google.cloud.netapp.v1.SyncReplicationRequest * @instance */ - ListSnapshotsResponse.prototype.unreachable = $util.emptyArray; + SyncReplicationRequest.prototype.name = ""; /** - * Creates a new ListSnapshotsResponse instance using the specified properties. + * Creates a new SyncReplicationRequest instance using the specified properties. * @function create - * @memberof google.cloud.netapp.v1.ListSnapshotsResponse + * @memberof google.cloud.netapp.v1.SyncReplicationRequest * @static - * @param {google.cloud.netapp.v1.IListSnapshotsResponse=} [properties] Properties to set - * @returns {google.cloud.netapp.v1.ListSnapshotsResponse} ListSnapshotsResponse instance + * @param {google.cloud.netapp.v1.ISyncReplicationRequest=} [properties] Properties to set + * @returns {google.cloud.netapp.v1.SyncReplicationRequest} SyncReplicationRequest instance */ - ListSnapshotsResponse.create = function create(properties) { - return new ListSnapshotsResponse(properties); + SyncReplicationRequest.create = function create(properties) { + return new SyncReplicationRequest(properties); }; /** - * Encodes the specified ListSnapshotsResponse message. Does not implicitly {@link google.cloud.netapp.v1.ListSnapshotsResponse.verify|verify} messages. + * Encodes the specified SyncReplicationRequest message. Does not implicitly {@link google.cloud.netapp.v1.SyncReplicationRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.netapp.v1.ListSnapshotsResponse + * @memberof google.cloud.netapp.v1.SyncReplicationRequest * @static - * @param {google.cloud.netapp.v1.IListSnapshotsResponse} message ListSnapshotsResponse message or plain object to encode + * @param {google.cloud.netapp.v1.ISyncReplicationRequest} message SyncReplicationRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListSnapshotsResponse.encode = function encode(message, writer) { + SyncReplicationRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.snapshots != null && message.snapshots.length) - for (var i = 0; i < message.snapshots.length; ++i) - $root.google.cloud.netapp.v1.Snapshot.encode(message.snapshots[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); - if (message.unreachable != null && message.unreachable.length) - for (var i = 0; i < message.unreachable.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.unreachable[i]); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified ListSnapshotsResponse message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.ListSnapshotsResponse.verify|verify} messages. + * Encodes the specified SyncReplicationRequest message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.SyncReplicationRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.netapp.v1.ListSnapshotsResponse + * @memberof google.cloud.netapp.v1.SyncReplicationRequest * @static - * @param {google.cloud.netapp.v1.IListSnapshotsResponse} message ListSnapshotsResponse message or plain object to encode + * @param {google.cloud.netapp.v1.ISyncReplicationRequest} message SyncReplicationRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListSnapshotsResponse.encodeDelimited = function encodeDelimited(message, writer) { + SyncReplicationRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListSnapshotsResponse message from the specified reader or buffer. + * Decodes a SyncReplicationRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.netapp.v1.ListSnapshotsResponse + * @memberof google.cloud.netapp.v1.SyncReplicationRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.netapp.v1.ListSnapshotsResponse} ListSnapshotsResponse + * @returns {google.cloud.netapp.v1.SyncReplicationRequest} SyncReplicationRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListSnapshotsResponse.decode = function decode(reader, length) { + SyncReplicationRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.netapp.v1.ListSnapshotsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.netapp.v1.SyncReplicationRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.snapshots && message.snapshots.length)) - message.snapshots = []; - message.snapshots.push($root.google.cloud.netapp.v1.Snapshot.decode(reader, reader.uint32())); - break; - } - case 2: { - message.nextPageToken = reader.string(); - break; - } - case 3: { - if (!(message.unreachable && message.unreachable.length)) - message.unreachable = []; - message.unreachable.push(reader.string()); + message.name = reader.string(); break; } default: @@ -17398,169 +17914,222 @@ }; /** - * Decodes a ListSnapshotsResponse message from the specified reader or buffer, length delimited. + * Decodes a SyncReplicationRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.netapp.v1.ListSnapshotsResponse + * @memberof google.cloud.netapp.v1.SyncReplicationRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.netapp.v1.ListSnapshotsResponse} ListSnapshotsResponse + * @returns {google.cloud.netapp.v1.SyncReplicationRequest} SyncReplicationRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListSnapshotsResponse.decodeDelimited = function decodeDelimited(reader) { + SyncReplicationRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListSnapshotsResponse message. + * Verifies a SyncReplicationRequest message. * @function verify - * @memberof google.cloud.netapp.v1.ListSnapshotsResponse + * @memberof google.cloud.netapp.v1.SyncReplicationRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListSnapshotsResponse.verify = function verify(message) { + SyncReplicationRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.snapshots != null && message.hasOwnProperty("snapshots")) { - if (!Array.isArray(message.snapshots)) - return "snapshots: array expected"; - for (var i = 0; i < message.snapshots.length; ++i) { - var error = $root.google.cloud.netapp.v1.Snapshot.verify(message.snapshots[i]); - if (error) - return "snapshots." + error; - } - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; - if (message.unreachable != null && message.hasOwnProperty("unreachable")) { - if (!Array.isArray(message.unreachable)) - return "unreachable: array expected"; - for (var i = 0; i < message.unreachable.length; ++i) - if (!$util.isString(message.unreachable[i])) - return "unreachable: string[] expected"; - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a ListSnapshotsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a SyncReplicationRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.netapp.v1.ListSnapshotsResponse + * @memberof google.cloud.netapp.v1.SyncReplicationRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.netapp.v1.ListSnapshotsResponse} ListSnapshotsResponse + * @returns {google.cloud.netapp.v1.SyncReplicationRequest} SyncReplicationRequest */ - ListSnapshotsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.netapp.v1.ListSnapshotsResponse) + SyncReplicationRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.netapp.v1.SyncReplicationRequest) return object; - var message = new $root.google.cloud.netapp.v1.ListSnapshotsResponse(); - if (object.snapshots) { - if (!Array.isArray(object.snapshots)) - throw TypeError(".google.cloud.netapp.v1.ListSnapshotsResponse.snapshots: array expected"); - message.snapshots = []; - for (var i = 0; i < object.snapshots.length; ++i) { - if (typeof object.snapshots[i] !== "object") - throw TypeError(".google.cloud.netapp.v1.ListSnapshotsResponse.snapshots: object expected"); - message.snapshots[i] = $root.google.cloud.netapp.v1.Snapshot.fromObject(object.snapshots[i]); - } - } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); - if (object.unreachable) { - if (!Array.isArray(object.unreachable)) - throw TypeError(".google.cloud.netapp.v1.ListSnapshotsResponse.unreachable: array expected"); - message.unreachable = []; - for (var i = 0; i < object.unreachable.length; ++i) - message.unreachable[i] = String(object.unreachable[i]); - } + var message = new $root.google.cloud.netapp.v1.SyncReplicationRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a ListSnapshotsResponse message. Also converts values to other types if specified. + * Creates a plain object from a SyncReplicationRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.netapp.v1.ListSnapshotsResponse + * @memberof google.cloud.netapp.v1.SyncReplicationRequest * @static - * @param {google.cloud.netapp.v1.ListSnapshotsResponse} message ListSnapshotsResponse + * @param {google.cloud.netapp.v1.SyncReplicationRequest} message SyncReplicationRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListSnapshotsResponse.toObject = function toObject(message, options) { + SyncReplicationRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { - object.snapshots = []; - object.unreachable = []; - } if (options.defaults) - object.nextPageToken = ""; - if (message.snapshots && message.snapshots.length) { - object.snapshots = []; - for (var j = 0; j < message.snapshots.length; ++j) - object.snapshots[j] = $root.google.cloud.netapp.v1.Snapshot.toObject(message.snapshots[j], options); - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; - if (message.unreachable && message.unreachable.length) { - object.unreachable = []; - for (var j = 0; j < message.unreachable.length; ++j) - object.unreachable[j] = message.unreachable[j]; - } + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this ListSnapshotsResponse to JSON. + * Converts this SyncReplicationRequest to JSON. * @function toJSON - * @memberof google.cloud.netapp.v1.ListSnapshotsResponse + * @memberof google.cloud.netapp.v1.SyncReplicationRequest * @instance * @returns {Object.} JSON object */ - ListSnapshotsResponse.prototype.toJSON = function toJSON() { + SyncReplicationRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListSnapshotsResponse + * Gets the default type url for SyncReplicationRequest * @function getTypeUrl - * @memberof google.cloud.netapp.v1.ListSnapshotsResponse + * @memberof google.cloud.netapp.v1.SyncReplicationRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListSnapshotsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + SyncReplicationRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.netapp.v1.ListSnapshotsResponse"; + return typeUrlPrefix + "/google.cloud.netapp.v1.SyncReplicationRequest"; }; - return ListSnapshotsResponse; + return SyncReplicationRequest; })(); - v1.GetSnapshotRequest = (function() { + /** + * Protocols enum. + * @name google.cloud.netapp.v1.Protocols + * @enum {number} + * @property {number} PROTOCOLS_UNSPECIFIED=0 PROTOCOLS_UNSPECIFIED value + * @property {number} NFSV3=1 NFSV3 value + * @property {number} NFSV4=2 NFSV4 value + * @property {number} SMB=3 SMB value + */ + v1.Protocols = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "PROTOCOLS_UNSPECIFIED"] = 0; + values[valuesById[1] = "NFSV3"] = 1; + values[valuesById[2] = "NFSV4"] = 2; + values[valuesById[3] = "SMB"] = 3; + return values; + })(); + + /** + * AccessType enum. + * @name google.cloud.netapp.v1.AccessType + * @enum {number} + * @property {number} ACCESS_TYPE_UNSPECIFIED=0 ACCESS_TYPE_UNSPECIFIED value + * @property {number} READ_ONLY=1 READ_ONLY value + * @property {number} READ_WRITE=2 READ_WRITE value + * @property {number} READ_NONE=3 READ_NONE value + */ + v1.AccessType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "ACCESS_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "READ_ONLY"] = 1; + values[valuesById[2] = "READ_WRITE"] = 2; + values[valuesById[3] = "READ_NONE"] = 3; + return values; + })(); + + /** + * SMBSettings enum. + * @name google.cloud.netapp.v1.SMBSettings + * @enum {number} + * @property {number} SMB_SETTINGS_UNSPECIFIED=0 SMB_SETTINGS_UNSPECIFIED value + * @property {number} ENCRYPT_DATA=1 ENCRYPT_DATA value + * @property {number} BROWSABLE=2 BROWSABLE value + * @property {number} CHANGE_NOTIFY=3 CHANGE_NOTIFY value + * @property {number} NON_BROWSABLE=4 NON_BROWSABLE value + * @property {number} OPLOCKS=5 OPLOCKS value + * @property {number} SHOW_SNAPSHOT=6 SHOW_SNAPSHOT value + * @property {number} SHOW_PREVIOUS_VERSIONS=7 SHOW_PREVIOUS_VERSIONS value + * @property {number} ACCESS_BASED_ENUMERATION=8 ACCESS_BASED_ENUMERATION value + * @property {number} CONTINUOUSLY_AVAILABLE=9 CONTINUOUSLY_AVAILABLE value + */ + v1.SMBSettings = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "SMB_SETTINGS_UNSPECIFIED"] = 0; + values[valuesById[1] = "ENCRYPT_DATA"] = 1; + values[valuesById[2] = "BROWSABLE"] = 2; + values[valuesById[3] = "CHANGE_NOTIFY"] = 3; + values[valuesById[4] = "NON_BROWSABLE"] = 4; + values[valuesById[5] = "OPLOCKS"] = 5; + values[valuesById[6] = "SHOW_SNAPSHOT"] = 6; + values[valuesById[7] = "SHOW_PREVIOUS_VERSIONS"] = 7; + values[valuesById[8] = "ACCESS_BASED_ENUMERATION"] = 8; + values[valuesById[9] = "CONTINUOUSLY_AVAILABLE"] = 9; + return values; + })(); + + /** + * SecurityStyle enum. + * @name google.cloud.netapp.v1.SecurityStyle + * @enum {number} + * @property {number} SECURITY_STYLE_UNSPECIFIED=0 SECURITY_STYLE_UNSPECIFIED value + * @property {number} NTFS=1 NTFS value + * @property {number} UNIX=2 UNIX value + */ + v1.SecurityStyle = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "SECURITY_STYLE_UNSPECIFIED"] = 0; + values[valuesById[1] = "NTFS"] = 1; + values[valuesById[2] = "UNIX"] = 2; + return values; + })(); + + /** + * RestrictedAction enum. + * @name google.cloud.netapp.v1.RestrictedAction + * @enum {number} + * @property {number} RESTRICTED_ACTION_UNSPECIFIED=0 RESTRICTED_ACTION_UNSPECIFIED value + * @property {number} DELETE=1 DELETE value + */ + v1.RestrictedAction = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "RESTRICTED_ACTION_UNSPECIFIED"] = 0; + values[valuesById[1] = "DELETE"] = 1; + return values; + })(); + + v1.ListVolumesRequest = (function() { /** - * Properties of a GetSnapshotRequest. + * Properties of a ListVolumesRequest. * @memberof google.cloud.netapp.v1 - * @interface IGetSnapshotRequest - * @property {string|null} [name] GetSnapshotRequest name + * @interface IListVolumesRequest + * @property {string|null} [parent] ListVolumesRequest parent + * @property {number|null} [pageSize] ListVolumesRequest pageSize + * @property {string|null} [pageToken] ListVolumesRequest pageToken + * @property {string|null} [filter] ListVolumesRequest filter + * @property {string|null} [orderBy] ListVolumesRequest orderBy */ /** - * Constructs a new GetSnapshotRequest. + * Constructs a new ListVolumesRequest. * @memberof google.cloud.netapp.v1 - * @classdesc Represents a GetSnapshotRequest. - * @implements IGetSnapshotRequest + * @classdesc Represents a ListVolumesRequest. + * @implements IListVolumesRequest * @constructor - * @param {google.cloud.netapp.v1.IGetSnapshotRequest=} [properties] Properties to set + * @param {google.cloud.netapp.v1.IListVolumesRequest=} [properties] Properties to set */ - function GetSnapshotRequest(properties) { + function ListVolumesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -17568,75 +18137,131 @@ } /** - * GetSnapshotRequest name. - * @member {string} name - * @memberof google.cloud.netapp.v1.GetSnapshotRequest + * ListVolumesRequest parent. + * @member {string} parent + * @memberof google.cloud.netapp.v1.ListVolumesRequest * @instance */ - GetSnapshotRequest.prototype.name = ""; + ListVolumesRequest.prototype.parent = ""; /** - * Creates a new GetSnapshotRequest instance using the specified properties. - * @function create - * @memberof google.cloud.netapp.v1.GetSnapshotRequest - * @static - * @param {google.cloud.netapp.v1.IGetSnapshotRequest=} [properties] Properties to set - * @returns {google.cloud.netapp.v1.GetSnapshotRequest} GetSnapshotRequest instance + * ListVolumesRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.netapp.v1.ListVolumesRequest + * @instance */ - GetSnapshotRequest.create = function create(properties) { - return new GetSnapshotRequest(properties); - }; + ListVolumesRequest.prototype.pageSize = 0; /** - * Encodes the specified GetSnapshotRequest message. Does not implicitly {@link google.cloud.netapp.v1.GetSnapshotRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.netapp.v1.GetSnapshotRequest - * @static - * @param {google.cloud.netapp.v1.IGetSnapshotRequest} message GetSnapshotRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * ListVolumesRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.netapp.v1.ListVolumesRequest + * @instance */ - GetSnapshotRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - return writer; - }; + ListVolumesRequest.prototype.pageToken = ""; /** - * Encodes the specified GetSnapshotRequest message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.GetSnapshotRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.netapp.v1.GetSnapshotRequest - * @static - * @param {google.cloud.netapp.v1.IGetSnapshotRequest} message GetSnapshotRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to + * ListVolumesRequest filter. + * @member {string} filter + * @memberof google.cloud.netapp.v1.ListVolumesRequest + * @instance + */ + ListVolumesRequest.prototype.filter = ""; + + /** + * ListVolumesRequest orderBy. + * @member {string} orderBy + * @memberof google.cloud.netapp.v1.ListVolumesRequest + * @instance + */ + ListVolumesRequest.prototype.orderBy = ""; + + /** + * Creates a new ListVolumesRequest instance using the specified properties. + * @function create + * @memberof google.cloud.netapp.v1.ListVolumesRequest + * @static + * @param {google.cloud.netapp.v1.IListVolumesRequest=} [properties] Properties to set + * @returns {google.cloud.netapp.v1.ListVolumesRequest} ListVolumesRequest instance + */ + ListVolumesRequest.create = function create(properties) { + return new ListVolumesRequest(properties); + }; + + /** + * Encodes the specified ListVolumesRequest message. Does not implicitly {@link google.cloud.netapp.v1.ListVolumesRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.netapp.v1.ListVolumesRequest + * @static + * @param {google.cloud.netapp.v1.IListVolumesRequest} message ListVolumesRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetSnapshotRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListVolumesRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.filter); + if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.orderBy); + return writer; + }; + + /** + * Encodes the specified ListVolumesRequest message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.ListVolumesRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.netapp.v1.ListVolumesRequest + * @static + * @param {google.cloud.netapp.v1.IListVolumesRequest} message ListVolumesRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListVolumesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetSnapshotRequest message from the specified reader or buffer. + * Decodes a ListVolumesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.netapp.v1.GetSnapshotRequest + * @memberof google.cloud.netapp.v1.ListVolumesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.netapp.v1.GetSnapshotRequest} GetSnapshotRequest + * @returns {google.cloud.netapp.v1.ListVolumesRequest} ListVolumesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetSnapshotRequest.decode = function decode(reader, length) { + ListVolumesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.netapp.v1.GetSnapshotRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.netapp.v1.ListVolumesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.parent = reader.string(); + break; + } + case 2: { + message.pageSize = reader.int32(); + break; + } + case 3: { + message.pageToken = reader.string(); + break; + } + case 4: { + message.filter = reader.string(); + break; + } + case 5: { + message.orderBy = reader.string(); break; } default: @@ -17648,124 +18273,159 @@ }; /** - * Decodes a GetSnapshotRequest message from the specified reader or buffer, length delimited. + * Decodes a ListVolumesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.netapp.v1.GetSnapshotRequest + * @memberof google.cloud.netapp.v1.ListVolumesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.netapp.v1.GetSnapshotRequest} GetSnapshotRequest + * @returns {google.cloud.netapp.v1.ListVolumesRequest} ListVolumesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetSnapshotRequest.decodeDelimited = function decodeDelimited(reader) { + ListVolumesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetSnapshotRequest message. + * Verifies a ListVolumesRequest message. * @function verify - * @memberof google.cloud.netapp.v1.GetSnapshotRequest + * @memberof google.cloud.netapp.v1.ListVolumesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetSnapshotRequest.verify = function verify(message) { + ListVolumesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + if (message.filter != null && message.hasOwnProperty("filter")) + if (!$util.isString(message.filter)) + return "filter: string expected"; + if (message.orderBy != null && message.hasOwnProperty("orderBy")) + if (!$util.isString(message.orderBy)) + return "orderBy: string expected"; return null; }; /** - * Creates a GetSnapshotRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListVolumesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.netapp.v1.GetSnapshotRequest + * @memberof google.cloud.netapp.v1.ListVolumesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.netapp.v1.GetSnapshotRequest} GetSnapshotRequest + * @returns {google.cloud.netapp.v1.ListVolumesRequest} ListVolumesRequest */ - GetSnapshotRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.netapp.v1.GetSnapshotRequest) + ListVolumesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.netapp.v1.ListVolumesRequest) return object; - var message = new $root.google.cloud.netapp.v1.GetSnapshotRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.netapp.v1.ListVolumesRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + if (object.filter != null) + message.filter = String(object.filter); + if (object.orderBy != null) + message.orderBy = String(object.orderBy); return message; }; /** - * Creates a plain object from a GetSnapshotRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListVolumesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.netapp.v1.GetSnapshotRequest + * @memberof google.cloud.netapp.v1.ListVolumesRequest * @static - * @param {google.cloud.netapp.v1.GetSnapshotRequest} message GetSnapshotRequest + * @param {google.cloud.netapp.v1.ListVolumesRequest} message ListVolumesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetSnapshotRequest.toObject = function toObject(message, options) { + ListVolumesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + if (options.defaults) { + object.parent = ""; + object.pageSize = 0; + object.pageToken = ""; + object.filter = ""; + object.orderBy = ""; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = message.filter; + if (message.orderBy != null && message.hasOwnProperty("orderBy")) + object.orderBy = message.orderBy; return object; }; /** - * Converts this GetSnapshotRequest to JSON. + * Converts this ListVolumesRequest to JSON. * @function toJSON - * @memberof google.cloud.netapp.v1.GetSnapshotRequest + * @memberof google.cloud.netapp.v1.ListVolumesRequest * @instance * @returns {Object.} JSON object */ - GetSnapshotRequest.prototype.toJSON = function toJSON() { + ListVolumesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetSnapshotRequest + * Gets the default type url for ListVolumesRequest * @function getTypeUrl - * @memberof google.cloud.netapp.v1.GetSnapshotRequest + * @memberof google.cloud.netapp.v1.ListVolumesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetSnapshotRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListVolumesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.netapp.v1.GetSnapshotRequest"; + return typeUrlPrefix + "/google.cloud.netapp.v1.ListVolumesRequest"; }; - return GetSnapshotRequest; + return ListVolumesRequest; })(); - v1.CreateSnapshotRequest = (function() { + v1.ListVolumesResponse = (function() { /** - * Properties of a CreateSnapshotRequest. + * Properties of a ListVolumesResponse. * @memberof google.cloud.netapp.v1 - * @interface ICreateSnapshotRequest - * @property {string|null} [parent] CreateSnapshotRequest parent - * @property {google.cloud.netapp.v1.ISnapshot|null} [snapshot] CreateSnapshotRequest snapshot - * @property {string|null} [snapshotId] CreateSnapshotRequest snapshotId + * @interface IListVolumesResponse + * @property {Array.|null} [volumes] ListVolumesResponse volumes + * @property {string|null} [nextPageToken] ListVolumesResponse nextPageToken + * @property {Array.|null} [unreachable] ListVolumesResponse unreachable */ /** - * Constructs a new CreateSnapshotRequest. + * Constructs a new ListVolumesResponse. * @memberof google.cloud.netapp.v1 - * @classdesc Represents a CreateSnapshotRequest. - * @implements ICreateSnapshotRequest + * @classdesc Represents a ListVolumesResponse. + * @implements IListVolumesResponse * @constructor - * @param {google.cloud.netapp.v1.ICreateSnapshotRequest=} [properties] Properties to set + * @param {google.cloud.netapp.v1.IListVolumesResponse=} [properties] Properties to set */ - function CreateSnapshotRequest(properties) { + function ListVolumesResponse(properties) { + this.volumes = []; + this.unreachable = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -17773,103 +18433,109 @@ } /** - * CreateSnapshotRequest parent. - * @member {string} parent - * @memberof google.cloud.netapp.v1.CreateSnapshotRequest + * ListVolumesResponse volumes. + * @member {Array.} volumes + * @memberof google.cloud.netapp.v1.ListVolumesResponse * @instance */ - CreateSnapshotRequest.prototype.parent = ""; + ListVolumesResponse.prototype.volumes = $util.emptyArray; /** - * CreateSnapshotRequest snapshot. - * @member {google.cloud.netapp.v1.ISnapshot|null|undefined} snapshot - * @memberof google.cloud.netapp.v1.CreateSnapshotRequest + * ListVolumesResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.netapp.v1.ListVolumesResponse * @instance */ - CreateSnapshotRequest.prototype.snapshot = null; + ListVolumesResponse.prototype.nextPageToken = ""; /** - * CreateSnapshotRequest snapshotId. - * @member {string} snapshotId - * @memberof google.cloud.netapp.v1.CreateSnapshotRequest + * ListVolumesResponse unreachable. + * @member {Array.} unreachable + * @memberof google.cloud.netapp.v1.ListVolumesResponse * @instance */ - CreateSnapshotRequest.prototype.snapshotId = ""; + ListVolumesResponse.prototype.unreachable = $util.emptyArray; /** - * Creates a new CreateSnapshotRequest instance using the specified properties. + * Creates a new ListVolumesResponse instance using the specified properties. * @function create - * @memberof google.cloud.netapp.v1.CreateSnapshotRequest + * @memberof google.cloud.netapp.v1.ListVolumesResponse * @static - * @param {google.cloud.netapp.v1.ICreateSnapshotRequest=} [properties] Properties to set - * @returns {google.cloud.netapp.v1.CreateSnapshotRequest} CreateSnapshotRequest instance + * @param {google.cloud.netapp.v1.IListVolumesResponse=} [properties] Properties to set + * @returns {google.cloud.netapp.v1.ListVolumesResponse} ListVolumesResponse instance */ - CreateSnapshotRequest.create = function create(properties) { - return new CreateSnapshotRequest(properties); + ListVolumesResponse.create = function create(properties) { + return new ListVolumesResponse(properties); }; /** - * Encodes the specified CreateSnapshotRequest message. Does not implicitly {@link google.cloud.netapp.v1.CreateSnapshotRequest.verify|verify} messages. + * Encodes the specified ListVolumesResponse message. Does not implicitly {@link google.cloud.netapp.v1.ListVolumesResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.netapp.v1.CreateSnapshotRequest + * @memberof google.cloud.netapp.v1.ListVolumesResponse * @static - * @param {google.cloud.netapp.v1.ICreateSnapshotRequest} message CreateSnapshotRequest message or plain object to encode + * @param {google.cloud.netapp.v1.IListVolumesResponse} message ListVolumesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateSnapshotRequest.encode = function encode(message, writer) { + ListVolumesResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.snapshot != null && Object.hasOwnProperty.call(message, "snapshot")) - $root.google.cloud.netapp.v1.Snapshot.encode(message.snapshot, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.snapshotId != null && Object.hasOwnProperty.call(message, "snapshotId")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.snapshotId); + if (message.volumes != null && message.volumes.length) + for (var i = 0; i < message.volumes.length; ++i) + $root.google.cloud.netapp.v1.Volume.encode(message.volumes[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.unreachable != null && message.unreachable.length) + for (var i = 0; i < message.unreachable.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.unreachable[i]); return writer; }; /** - * Encodes the specified CreateSnapshotRequest message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.CreateSnapshotRequest.verify|verify} messages. + * Encodes the specified ListVolumesResponse message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.ListVolumesResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.netapp.v1.CreateSnapshotRequest + * @memberof google.cloud.netapp.v1.ListVolumesResponse * @static - * @param {google.cloud.netapp.v1.ICreateSnapshotRequest} message CreateSnapshotRequest message or plain object to encode + * @param {google.cloud.netapp.v1.IListVolumesResponse} message ListVolumesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateSnapshotRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListVolumesResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateSnapshotRequest message from the specified reader or buffer. + * Decodes a ListVolumesResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.netapp.v1.CreateSnapshotRequest + * @memberof google.cloud.netapp.v1.ListVolumesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.netapp.v1.CreateSnapshotRequest} CreateSnapshotRequest + * @returns {google.cloud.netapp.v1.ListVolumesResponse} ListVolumesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateSnapshotRequest.decode = function decode(reader, length) { + ListVolumesResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.netapp.v1.CreateSnapshotRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.netapp.v1.ListVolumesResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.parent = reader.string(); + if (!(message.volumes && message.volumes.length)) + message.volumes = []; + message.volumes.push($root.google.cloud.netapp.v1.Volume.decode(reader, reader.uint32())); break; } case 2: { - message.snapshot = $root.google.cloud.netapp.v1.Snapshot.decode(reader, reader.uint32()); + message.nextPageToken = reader.string(); break; } case 3: { - message.snapshotId = reader.string(); + if (!(message.unreachable && message.unreachable.length)) + message.unreachable = []; + message.unreachable.push(reader.string()); break; } default: @@ -17881,144 +18547,169 @@ }; /** - * Decodes a CreateSnapshotRequest message from the specified reader or buffer, length delimited. + * Decodes a ListVolumesResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.netapp.v1.CreateSnapshotRequest + * @memberof google.cloud.netapp.v1.ListVolumesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.netapp.v1.CreateSnapshotRequest} CreateSnapshotRequest + * @returns {google.cloud.netapp.v1.ListVolumesResponse} ListVolumesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateSnapshotRequest.decodeDelimited = function decodeDelimited(reader) { + ListVolumesResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateSnapshotRequest message. + * Verifies a ListVolumesResponse message. * @function verify - * @memberof google.cloud.netapp.v1.CreateSnapshotRequest + * @memberof google.cloud.netapp.v1.ListVolumesResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateSnapshotRequest.verify = function verify(message) { + ListVolumesResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.snapshot != null && message.hasOwnProperty("snapshot")) { - var error = $root.google.cloud.netapp.v1.Snapshot.verify(message.snapshot); - if (error) - return "snapshot." + error; + if (message.volumes != null && message.hasOwnProperty("volumes")) { + if (!Array.isArray(message.volumes)) + return "volumes: array expected"; + for (var i = 0; i < message.volumes.length; ++i) { + var error = $root.google.cloud.netapp.v1.Volume.verify(message.volumes[i]); + if (error) + return "volumes." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + if (message.unreachable != null && message.hasOwnProperty("unreachable")) { + if (!Array.isArray(message.unreachable)) + return "unreachable: array expected"; + for (var i = 0; i < message.unreachable.length; ++i) + if (!$util.isString(message.unreachable[i])) + return "unreachable: string[] expected"; } - if (message.snapshotId != null && message.hasOwnProperty("snapshotId")) - if (!$util.isString(message.snapshotId)) - return "snapshotId: string expected"; return null; }; /** - * Creates a CreateSnapshotRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListVolumesResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.netapp.v1.CreateSnapshotRequest + * @memberof google.cloud.netapp.v1.ListVolumesResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.netapp.v1.CreateSnapshotRequest} CreateSnapshotRequest + * @returns {google.cloud.netapp.v1.ListVolumesResponse} ListVolumesResponse */ - CreateSnapshotRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.netapp.v1.CreateSnapshotRequest) + ListVolumesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.netapp.v1.ListVolumesResponse) return object; - var message = new $root.google.cloud.netapp.v1.CreateSnapshotRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.snapshot != null) { - if (typeof object.snapshot !== "object") - throw TypeError(".google.cloud.netapp.v1.CreateSnapshotRequest.snapshot: object expected"); - message.snapshot = $root.google.cloud.netapp.v1.Snapshot.fromObject(object.snapshot); + var message = new $root.google.cloud.netapp.v1.ListVolumesResponse(); + if (object.volumes) { + if (!Array.isArray(object.volumes)) + throw TypeError(".google.cloud.netapp.v1.ListVolumesResponse.volumes: array expected"); + message.volumes = []; + for (var i = 0; i < object.volumes.length; ++i) { + if (typeof object.volumes[i] !== "object") + throw TypeError(".google.cloud.netapp.v1.ListVolumesResponse.volumes: object expected"); + message.volumes[i] = $root.google.cloud.netapp.v1.Volume.fromObject(object.volumes[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + if (object.unreachable) { + if (!Array.isArray(object.unreachable)) + throw TypeError(".google.cloud.netapp.v1.ListVolumesResponse.unreachable: array expected"); + message.unreachable = []; + for (var i = 0; i < object.unreachable.length; ++i) + message.unreachable[i] = String(object.unreachable[i]); } - if (object.snapshotId != null) - message.snapshotId = String(object.snapshotId); return message; }; /** - * Creates a plain object from a CreateSnapshotRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListVolumesResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.netapp.v1.CreateSnapshotRequest + * @memberof google.cloud.netapp.v1.ListVolumesResponse * @static - * @param {google.cloud.netapp.v1.CreateSnapshotRequest} message CreateSnapshotRequest + * @param {google.cloud.netapp.v1.ListVolumesResponse} message ListVolumesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateSnapshotRequest.toObject = function toObject(message, options) { + ListVolumesResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.parent = ""; - object.snapshot = null; - object.snapshotId = ""; + if (options.arrays || options.defaults) { + object.volumes = []; + object.unreachable = []; + } + if (options.defaults) + object.nextPageToken = ""; + if (message.volumes && message.volumes.length) { + object.volumes = []; + for (var j = 0; j < message.volumes.length; ++j) + object.volumes[j] = $root.google.cloud.netapp.v1.Volume.toObject(message.volumes[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; + if (message.unreachable && message.unreachable.length) { + object.unreachable = []; + for (var j = 0; j < message.unreachable.length; ++j) + object.unreachable[j] = message.unreachable[j]; } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.snapshot != null && message.hasOwnProperty("snapshot")) - object.snapshot = $root.google.cloud.netapp.v1.Snapshot.toObject(message.snapshot, options); - if (message.snapshotId != null && message.hasOwnProperty("snapshotId")) - object.snapshotId = message.snapshotId; return object; }; /** - * Converts this CreateSnapshotRequest to JSON. + * Converts this ListVolumesResponse to JSON. * @function toJSON - * @memberof google.cloud.netapp.v1.CreateSnapshotRequest + * @memberof google.cloud.netapp.v1.ListVolumesResponse * @instance * @returns {Object.} JSON object */ - CreateSnapshotRequest.prototype.toJSON = function toJSON() { + ListVolumesResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CreateSnapshotRequest + * Gets the default type url for ListVolumesResponse * @function getTypeUrl - * @memberof google.cloud.netapp.v1.CreateSnapshotRequest + * @memberof google.cloud.netapp.v1.ListVolumesResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CreateSnapshotRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListVolumesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.netapp.v1.CreateSnapshotRequest"; + return typeUrlPrefix + "/google.cloud.netapp.v1.ListVolumesResponse"; }; - return CreateSnapshotRequest; + return ListVolumesResponse; })(); - v1.DeleteSnapshotRequest = (function() { + v1.GetVolumeRequest = (function() { /** - * Properties of a DeleteSnapshotRequest. + * Properties of a GetVolumeRequest. * @memberof google.cloud.netapp.v1 - * @interface IDeleteSnapshotRequest - * @property {string|null} [name] DeleteSnapshotRequest name + * @interface IGetVolumeRequest + * @property {string|null} [name] GetVolumeRequest name */ /** - * Constructs a new DeleteSnapshotRequest. + * Constructs a new GetVolumeRequest. * @memberof google.cloud.netapp.v1 - * @classdesc Represents a DeleteSnapshotRequest. - * @implements IDeleteSnapshotRequest + * @classdesc Represents a GetVolumeRequest. + * @implements IGetVolumeRequest * @constructor - * @param {google.cloud.netapp.v1.IDeleteSnapshotRequest=} [properties] Properties to set + * @param {google.cloud.netapp.v1.IGetVolumeRequest=} [properties] Properties to set */ - function DeleteSnapshotRequest(properties) { + function GetVolumeRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -18026,35 +18717,35 @@ } /** - * DeleteSnapshotRequest name. + * GetVolumeRequest name. * @member {string} name - * @memberof google.cloud.netapp.v1.DeleteSnapshotRequest + * @memberof google.cloud.netapp.v1.GetVolumeRequest * @instance */ - DeleteSnapshotRequest.prototype.name = ""; + GetVolumeRequest.prototype.name = ""; /** - * Creates a new DeleteSnapshotRequest instance using the specified properties. + * Creates a new GetVolumeRequest instance using the specified properties. * @function create - * @memberof google.cloud.netapp.v1.DeleteSnapshotRequest + * @memberof google.cloud.netapp.v1.GetVolumeRequest * @static - * @param {google.cloud.netapp.v1.IDeleteSnapshotRequest=} [properties] Properties to set - * @returns {google.cloud.netapp.v1.DeleteSnapshotRequest} DeleteSnapshotRequest instance + * @param {google.cloud.netapp.v1.IGetVolumeRequest=} [properties] Properties to set + * @returns {google.cloud.netapp.v1.GetVolumeRequest} GetVolumeRequest instance */ - DeleteSnapshotRequest.create = function create(properties) { - return new DeleteSnapshotRequest(properties); + GetVolumeRequest.create = function create(properties) { + return new GetVolumeRequest(properties); }; /** - * Encodes the specified DeleteSnapshotRequest message. Does not implicitly {@link google.cloud.netapp.v1.DeleteSnapshotRequest.verify|verify} messages. + * Encodes the specified GetVolumeRequest message. Does not implicitly {@link google.cloud.netapp.v1.GetVolumeRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.netapp.v1.DeleteSnapshotRequest + * @memberof google.cloud.netapp.v1.GetVolumeRequest * @static - * @param {google.cloud.netapp.v1.IDeleteSnapshotRequest} message DeleteSnapshotRequest message or plain object to encode + * @param {google.cloud.netapp.v1.IGetVolumeRequest} message GetVolumeRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteSnapshotRequest.encode = function encode(message, writer) { + GetVolumeRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) @@ -18063,33 +18754,33 @@ }; /** - * Encodes the specified DeleteSnapshotRequest message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.DeleteSnapshotRequest.verify|verify} messages. + * Encodes the specified GetVolumeRequest message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.GetVolumeRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.netapp.v1.DeleteSnapshotRequest + * @memberof google.cloud.netapp.v1.GetVolumeRequest * @static - * @param {google.cloud.netapp.v1.IDeleteSnapshotRequest} message DeleteSnapshotRequest message or plain object to encode + * @param {google.cloud.netapp.v1.IGetVolumeRequest} message GetVolumeRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteSnapshotRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetVolumeRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteSnapshotRequest message from the specified reader or buffer. + * Decodes a GetVolumeRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.netapp.v1.DeleteSnapshotRequest + * @memberof google.cloud.netapp.v1.GetVolumeRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.netapp.v1.DeleteSnapshotRequest} DeleteSnapshotRequest + * @returns {google.cloud.netapp.v1.GetVolumeRequest} GetVolumeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteSnapshotRequest.decode = function decode(reader, length) { + GetVolumeRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.netapp.v1.DeleteSnapshotRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.netapp.v1.GetVolumeRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -18106,30 +18797,30 @@ }; /** - * Decodes a DeleteSnapshotRequest message from the specified reader or buffer, length delimited. + * Decodes a GetVolumeRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.netapp.v1.DeleteSnapshotRequest + * @memberof google.cloud.netapp.v1.GetVolumeRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.netapp.v1.DeleteSnapshotRequest} DeleteSnapshotRequest + * @returns {google.cloud.netapp.v1.GetVolumeRequest} GetVolumeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteSnapshotRequest.decodeDelimited = function decodeDelimited(reader) { + GetVolumeRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteSnapshotRequest message. + * Verifies a GetVolumeRequest message. * @function verify - * @memberof google.cloud.netapp.v1.DeleteSnapshotRequest + * @memberof google.cloud.netapp.v1.GetVolumeRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteSnapshotRequest.verify = function verify(message) { + GetVolumeRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) @@ -18139,32 +18830,32 @@ }; /** - * Creates a DeleteSnapshotRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetVolumeRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.netapp.v1.DeleteSnapshotRequest + * @memberof google.cloud.netapp.v1.GetVolumeRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.netapp.v1.DeleteSnapshotRequest} DeleteSnapshotRequest + * @returns {google.cloud.netapp.v1.GetVolumeRequest} GetVolumeRequest */ - DeleteSnapshotRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.netapp.v1.DeleteSnapshotRequest) + GetVolumeRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.netapp.v1.GetVolumeRequest) return object; - var message = new $root.google.cloud.netapp.v1.DeleteSnapshotRequest(); + var message = new $root.google.cloud.netapp.v1.GetVolumeRequest(); if (object.name != null) message.name = String(object.name); return message; }; /** - * Creates a plain object from a DeleteSnapshotRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetVolumeRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.netapp.v1.DeleteSnapshotRequest + * @memberof google.cloud.netapp.v1.GetVolumeRequest * @static - * @param {google.cloud.netapp.v1.DeleteSnapshotRequest} message DeleteSnapshotRequest + * @param {google.cloud.netapp.v1.GetVolumeRequest} message GetVolumeRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteSnapshotRequest.toObject = function toObject(message, options) { + GetVolumeRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -18176,53 +18867,54 @@ }; /** - * Converts this DeleteSnapshotRequest to JSON. + * Converts this GetVolumeRequest to JSON. * @function toJSON - * @memberof google.cloud.netapp.v1.DeleteSnapshotRequest + * @memberof google.cloud.netapp.v1.GetVolumeRequest * @instance * @returns {Object.} JSON object */ - DeleteSnapshotRequest.prototype.toJSON = function toJSON() { + GetVolumeRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DeleteSnapshotRequest + * Gets the default type url for GetVolumeRequest * @function getTypeUrl - * @memberof google.cloud.netapp.v1.DeleteSnapshotRequest + * @memberof google.cloud.netapp.v1.GetVolumeRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DeleteSnapshotRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetVolumeRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.netapp.v1.DeleteSnapshotRequest"; + return typeUrlPrefix + "/google.cloud.netapp.v1.GetVolumeRequest"; }; - return DeleteSnapshotRequest; + return GetVolumeRequest; })(); - v1.UpdateSnapshotRequest = (function() { + v1.CreateVolumeRequest = (function() { /** - * Properties of an UpdateSnapshotRequest. + * Properties of a CreateVolumeRequest. * @memberof google.cloud.netapp.v1 - * @interface IUpdateSnapshotRequest - * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateSnapshotRequest updateMask - * @property {google.cloud.netapp.v1.ISnapshot|null} [snapshot] UpdateSnapshotRequest snapshot + * @interface ICreateVolumeRequest + * @property {string|null} [parent] CreateVolumeRequest parent + * @property {string|null} [volumeId] CreateVolumeRequest volumeId + * @property {google.cloud.netapp.v1.IVolume|null} [volume] CreateVolumeRequest volume */ /** - * Constructs a new UpdateSnapshotRequest. + * Constructs a new CreateVolumeRequest. * @memberof google.cloud.netapp.v1 - * @classdesc Represents an UpdateSnapshotRequest. - * @implements IUpdateSnapshotRequest + * @classdesc Represents a CreateVolumeRequest. + * @implements ICreateVolumeRequest * @constructor - * @param {google.cloud.netapp.v1.IUpdateSnapshotRequest=} [properties] Properties to set + * @param {google.cloud.netapp.v1.ICreateVolumeRequest=} [properties] Properties to set */ - function UpdateSnapshotRequest(properties) { + function CreateVolumeRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -18230,89 +18922,103 @@ } /** - * UpdateSnapshotRequest updateMask. - * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.cloud.netapp.v1.UpdateSnapshotRequest + * CreateVolumeRequest parent. + * @member {string} parent + * @memberof google.cloud.netapp.v1.CreateVolumeRequest * @instance */ - UpdateSnapshotRequest.prototype.updateMask = null; + CreateVolumeRequest.prototype.parent = ""; /** - * UpdateSnapshotRequest snapshot. - * @member {google.cloud.netapp.v1.ISnapshot|null|undefined} snapshot - * @memberof google.cloud.netapp.v1.UpdateSnapshotRequest + * CreateVolumeRequest volumeId. + * @member {string} volumeId + * @memberof google.cloud.netapp.v1.CreateVolumeRequest * @instance */ - UpdateSnapshotRequest.prototype.snapshot = null; + CreateVolumeRequest.prototype.volumeId = ""; /** - * Creates a new UpdateSnapshotRequest instance using the specified properties. + * CreateVolumeRequest volume. + * @member {google.cloud.netapp.v1.IVolume|null|undefined} volume + * @memberof google.cloud.netapp.v1.CreateVolumeRequest + * @instance + */ + CreateVolumeRequest.prototype.volume = null; + + /** + * Creates a new CreateVolumeRequest instance using the specified properties. * @function create - * @memberof google.cloud.netapp.v1.UpdateSnapshotRequest + * @memberof google.cloud.netapp.v1.CreateVolumeRequest * @static - * @param {google.cloud.netapp.v1.IUpdateSnapshotRequest=} [properties] Properties to set - * @returns {google.cloud.netapp.v1.UpdateSnapshotRequest} UpdateSnapshotRequest instance + * @param {google.cloud.netapp.v1.ICreateVolumeRequest=} [properties] Properties to set + * @returns {google.cloud.netapp.v1.CreateVolumeRequest} CreateVolumeRequest instance */ - UpdateSnapshotRequest.create = function create(properties) { - return new UpdateSnapshotRequest(properties); + CreateVolumeRequest.create = function create(properties) { + return new CreateVolumeRequest(properties); }; /** - * Encodes the specified UpdateSnapshotRequest message. Does not implicitly {@link google.cloud.netapp.v1.UpdateSnapshotRequest.verify|verify} messages. + * Encodes the specified CreateVolumeRequest message. Does not implicitly {@link google.cloud.netapp.v1.CreateVolumeRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.netapp.v1.UpdateSnapshotRequest + * @memberof google.cloud.netapp.v1.CreateVolumeRequest * @static - * @param {google.cloud.netapp.v1.IUpdateSnapshotRequest} message UpdateSnapshotRequest message or plain object to encode + * @param {google.cloud.netapp.v1.ICreateVolumeRequest} message CreateVolumeRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateSnapshotRequest.encode = function encode(message, writer) { + CreateVolumeRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) - $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.snapshot != null && Object.hasOwnProperty.call(message, "snapshot")) - $root.google.cloud.netapp.v1.Snapshot.encode(message.snapshot, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.volumeId != null && Object.hasOwnProperty.call(message, "volumeId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.volumeId); + if (message.volume != null && Object.hasOwnProperty.call(message, "volume")) + $root.google.cloud.netapp.v1.Volume.encode(message.volume, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified UpdateSnapshotRequest message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.UpdateSnapshotRequest.verify|verify} messages. + * Encodes the specified CreateVolumeRequest message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.CreateVolumeRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.netapp.v1.UpdateSnapshotRequest + * @memberof google.cloud.netapp.v1.CreateVolumeRequest * @static - * @param {google.cloud.netapp.v1.IUpdateSnapshotRequest} message UpdateSnapshotRequest message or plain object to encode + * @param {google.cloud.netapp.v1.ICreateVolumeRequest} message CreateVolumeRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateSnapshotRequest.encodeDelimited = function encodeDelimited(message, writer) { + CreateVolumeRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateSnapshotRequest message from the specified reader or buffer. + * Decodes a CreateVolumeRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.netapp.v1.UpdateSnapshotRequest + * @memberof google.cloud.netapp.v1.CreateVolumeRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.netapp.v1.UpdateSnapshotRequest} UpdateSnapshotRequest + * @returns {google.cloud.netapp.v1.CreateVolumeRequest} CreateVolumeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateSnapshotRequest.decode = function decode(reader, length) { + CreateVolumeRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.netapp.v1.UpdateSnapshotRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.netapp.v1.CreateVolumeRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + message.parent = reader.string(); break; } case 2: { - message.snapshot = $root.google.cloud.netapp.v1.Snapshot.decode(reader, reader.uint32()); + message.volumeId = reader.string(); + break; + } + case 3: { + message.volume = $root.google.cloud.netapp.v1.Volume.decode(reader, reader.uint32()); break; } default: @@ -18324,148 +19030,145 @@ }; /** - * Decodes an UpdateSnapshotRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateVolumeRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.netapp.v1.UpdateSnapshotRequest + * @memberof google.cloud.netapp.v1.CreateVolumeRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.netapp.v1.UpdateSnapshotRequest} UpdateSnapshotRequest + * @returns {google.cloud.netapp.v1.CreateVolumeRequest} CreateVolumeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateSnapshotRequest.decodeDelimited = function decodeDelimited(reader) { + CreateVolumeRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateSnapshotRequest message. + * Verifies a CreateVolumeRequest message. * @function verify - * @memberof google.cloud.netapp.v1.UpdateSnapshotRequest + * @memberof google.cloud.netapp.v1.CreateVolumeRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdateSnapshotRequest.verify = function verify(message) { + CreateVolumeRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.updateMask != null && message.hasOwnProperty("updateMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.updateMask); - if (error) - return "updateMask." + error; - } - if (message.snapshot != null && message.hasOwnProperty("snapshot")) { - var error = $root.google.cloud.netapp.v1.Snapshot.verify(message.snapshot); + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.volumeId != null && message.hasOwnProperty("volumeId")) + if (!$util.isString(message.volumeId)) + return "volumeId: string expected"; + if (message.volume != null && message.hasOwnProperty("volume")) { + var error = $root.google.cloud.netapp.v1.Volume.verify(message.volume); if (error) - return "snapshot." + error; + return "volume." + error; } return null; }; /** - * Creates an UpdateSnapshotRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateVolumeRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.netapp.v1.UpdateSnapshotRequest + * @memberof google.cloud.netapp.v1.CreateVolumeRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.netapp.v1.UpdateSnapshotRequest} UpdateSnapshotRequest + * @returns {google.cloud.netapp.v1.CreateVolumeRequest} CreateVolumeRequest */ - UpdateSnapshotRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.netapp.v1.UpdateSnapshotRequest) + CreateVolumeRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.netapp.v1.CreateVolumeRequest) return object; - var message = new $root.google.cloud.netapp.v1.UpdateSnapshotRequest(); - if (object.updateMask != null) { - if (typeof object.updateMask !== "object") - throw TypeError(".google.cloud.netapp.v1.UpdateSnapshotRequest.updateMask: object expected"); - message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); - } - if (object.snapshot != null) { - if (typeof object.snapshot !== "object") - throw TypeError(".google.cloud.netapp.v1.UpdateSnapshotRequest.snapshot: object expected"); - message.snapshot = $root.google.cloud.netapp.v1.Snapshot.fromObject(object.snapshot); + var message = new $root.google.cloud.netapp.v1.CreateVolumeRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.volumeId != null) + message.volumeId = String(object.volumeId); + if (object.volume != null) { + if (typeof object.volume !== "object") + throw TypeError(".google.cloud.netapp.v1.CreateVolumeRequest.volume: object expected"); + message.volume = $root.google.cloud.netapp.v1.Volume.fromObject(object.volume); } return message; }; /** - * Creates a plain object from an UpdateSnapshotRequest message. Also converts values to other types if specified. + * Creates a plain object from a CreateVolumeRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.netapp.v1.UpdateSnapshotRequest + * @memberof google.cloud.netapp.v1.CreateVolumeRequest * @static - * @param {google.cloud.netapp.v1.UpdateSnapshotRequest} message UpdateSnapshotRequest + * @param {google.cloud.netapp.v1.CreateVolumeRequest} message CreateVolumeRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateSnapshotRequest.toObject = function toObject(message, options) { + CreateVolumeRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.updateMask = null; - object.snapshot = null; + object.parent = ""; + object.volumeId = ""; + object.volume = null; } - if (message.updateMask != null && message.hasOwnProperty("updateMask")) - object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); - if (message.snapshot != null && message.hasOwnProperty("snapshot")) - object.snapshot = $root.google.cloud.netapp.v1.Snapshot.toObject(message.snapshot, options); + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.volumeId != null && message.hasOwnProperty("volumeId")) + object.volumeId = message.volumeId; + if (message.volume != null && message.hasOwnProperty("volume")) + object.volume = $root.google.cloud.netapp.v1.Volume.toObject(message.volume, options); return object; }; /** - * Converts this UpdateSnapshotRequest to JSON. + * Converts this CreateVolumeRequest to JSON. * @function toJSON - * @memberof google.cloud.netapp.v1.UpdateSnapshotRequest + * @memberof google.cloud.netapp.v1.CreateVolumeRequest * @instance * @returns {Object.} JSON object */ - UpdateSnapshotRequest.prototype.toJSON = function toJSON() { + CreateVolumeRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for UpdateSnapshotRequest + * Gets the default type url for CreateVolumeRequest * @function getTypeUrl - * @memberof google.cloud.netapp.v1.UpdateSnapshotRequest + * @memberof google.cloud.netapp.v1.CreateVolumeRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - UpdateSnapshotRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CreateVolumeRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.netapp.v1.UpdateSnapshotRequest"; + return typeUrlPrefix + "/google.cloud.netapp.v1.CreateVolumeRequest"; }; - return UpdateSnapshotRequest; + return CreateVolumeRequest; })(); - v1.Snapshot = (function() { + v1.UpdateVolumeRequest = (function() { /** - * Properties of a Snapshot. + * Properties of an UpdateVolumeRequest. * @memberof google.cloud.netapp.v1 - * @interface ISnapshot - * @property {string|null} [name] Snapshot name - * @property {google.cloud.netapp.v1.Snapshot.State|null} [state] Snapshot state - * @property {string|null} [stateDetails] Snapshot stateDetails - * @property {string|null} [description] Snapshot description - * @property {number|null} [usedBytes] Snapshot usedBytes - * @property {google.protobuf.ITimestamp|null} [createTime] Snapshot createTime - * @property {Object.|null} [labels] Snapshot labels + * @interface IUpdateVolumeRequest + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateVolumeRequest updateMask + * @property {google.cloud.netapp.v1.IVolume|null} [volume] UpdateVolumeRequest volume */ /** - * Constructs a new Snapshot. + * Constructs a new UpdateVolumeRequest. * @memberof google.cloud.netapp.v1 - * @classdesc Represents a Snapshot. - * @implements ISnapshot + * @classdesc Represents an UpdateVolumeRequest. + * @implements IUpdateVolumeRequest * @constructor - * @param {google.cloud.netapp.v1.ISnapshot=} [properties] Properties to set + * @param {google.cloud.netapp.v1.IUpdateVolumeRequest=} [properties] Properties to set */ - function Snapshot(properties) { - this.labels = {}; + function UpdateVolumeRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -18473,179 +19176,89 @@ } /** - * Snapshot name. - * @member {string} name - * @memberof google.cloud.netapp.v1.Snapshot - * @instance - */ - Snapshot.prototype.name = ""; - - /** - * Snapshot state. - * @member {google.cloud.netapp.v1.Snapshot.State} state - * @memberof google.cloud.netapp.v1.Snapshot - * @instance - */ - Snapshot.prototype.state = 0; - - /** - * Snapshot stateDetails. - * @member {string} stateDetails - * @memberof google.cloud.netapp.v1.Snapshot - * @instance - */ - Snapshot.prototype.stateDetails = ""; - - /** - * Snapshot description. - * @member {string} description - * @memberof google.cloud.netapp.v1.Snapshot - * @instance - */ - Snapshot.prototype.description = ""; - - /** - * Snapshot usedBytes. - * @member {number} usedBytes - * @memberof google.cloud.netapp.v1.Snapshot - * @instance - */ - Snapshot.prototype.usedBytes = 0; - - /** - * Snapshot createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.cloud.netapp.v1.Snapshot + * UpdateVolumeRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.cloud.netapp.v1.UpdateVolumeRequest * @instance */ - Snapshot.prototype.createTime = null; + UpdateVolumeRequest.prototype.updateMask = null; /** - * Snapshot labels. - * @member {Object.} labels - * @memberof google.cloud.netapp.v1.Snapshot + * UpdateVolumeRequest volume. + * @member {google.cloud.netapp.v1.IVolume|null|undefined} volume + * @memberof google.cloud.netapp.v1.UpdateVolumeRequest * @instance */ - Snapshot.prototype.labels = $util.emptyObject; + UpdateVolumeRequest.prototype.volume = null; /** - * Creates a new Snapshot instance using the specified properties. + * Creates a new UpdateVolumeRequest instance using the specified properties. * @function create - * @memberof google.cloud.netapp.v1.Snapshot + * @memberof google.cloud.netapp.v1.UpdateVolumeRequest * @static - * @param {google.cloud.netapp.v1.ISnapshot=} [properties] Properties to set - * @returns {google.cloud.netapp.v1.Snapshot} Snapshot instance + * @param {google.cloud.netapp.v1.IUpdateVolumeRequest=} [properties] Properties to set + * @returns {google.cloud.netapp.v1.UpdateVolumeRequest} UpdateVolumeRequest instance */ - Snapshot.create = function create(properties) { - return new Snapshot(properties); + UpdateVolumeRequest.create = function create(properties) { + return new UpdateVolumeRequest(properties); }; /** - * Encodes the specified Snapshot message. Does not implicitly {@link google.cloud.netapp.v1.Snapshot.verify|verify} messages. + * Encodes the specified UpdateVolumeRequest message. Does not implicitly {@link google.cloud.netapp.v1.UpdateVolumeRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.netapp.v1.Snapshot + * @memberof google.cloud.netapp.v1.UpdateVolumeRequest * @static - * @param {google.cloud.netapp.v1.ISnapshot} message Snapshot message or plain object to encode + * @param {google.cloud.netapp.v1.IUpdateVolumeRequest} message UpdateVolumeRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Snapshot.encode = function encode(message, writer) { + UpdateVolumeRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.state != null && Object.hasOwnProperty.call(message, "state")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.state); - if (message.stateDetails != null && Object.hasOwnProperty.call(message, "stateDetails")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.stateDetails); - if (message.description != null && Object.hasOwnProperty.call(message, "description")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.description); - if (message.usedBytes != null && Object.hasOwnProperty.call(message, "usedBytes")) - writer.uint32(/* id 5, wireType 1 =*/41).double(message.usedBytes); - if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) - $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.labels != null && Object.hasOwnProperty.call(message, "labels")) - for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i) - writer.uint32(/* id 7, wireType 2 =*/58).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); + if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) + $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.volume != null && Object.hasOwnProperty.call(message, "volume")) + $root.google.cloud.netapp.v1.Volume.encode(message.volume, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified Snapshot message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.Snapshot.verify|verify} messages. + * Encodes the specified UpdateVolumeRequest message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.UpdateVolumeRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.netapp.v1.Snapshot + * @memberof google.cloud.netapp.v1.UpdateVolumeRequest * @static - * @param {google.cloud.netapp.v1.ISnapshot} message Snapshot message or plain object to encode + * @param {google.cloud.netapp.v1.IUpdateVolumeRequest} message UpdateVolumeRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Snapshot.encodeDelimited = function encodeDelimited(message, writer) { + UpdateVolumeRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Snapshot message from the specified reader or buffer. + * Decodes an UpdateVolumeRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.netapp.v1.Snapshot + * @memberof google.cloud.netapp.v1.UpdateVolumeRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.netapp.v1.Snapshot} Snapshot + * @returns {google.cloud.netapp.v1.UpdateVolumeRequest} UpdateVolumeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Snapshot.decode = function decode(reader, length) { + UpdateVolumeRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.netapp.v1.Snapshot(), key, value; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.netapp.v1.UpdateVolumeRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; } case 2: { - message.state = reader.int32(); - break; - } - case 3: { - message.stateDetails = reader.string(); - break; - } - case 4: { - message.description = reader.string(); - break; - } - case 5: { - message.usedBytes = reader.double(); - break; - } - case 6: { - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 7: { - if (message.labels === $util.emptyObject) - message.labels = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = ""; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = reader.string(); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.labels[key] = value; + message.volume = $root.google.cloud.netapp.v1.Volume.decode(reader, reader.uint32()); break; } default: @@ -18657,259 +19270,142 @@ }; /** - * Decodes a Snapshot message from the specified reader or buffer, length delimited. + * Decodes an UpdateVolumeRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.netapp.v1.Snapshot + * @memberof google.cloud.netapp.v1.UpdateVolumeRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.netapp.v1.Snapshot} Snapshot + * @returns {google.cloud.netapp.v1.UpdateVolumeRequest} UpdateVolumeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Snapshot.decodeDelimited = function decodeDelimited(reader) { + UpdateVolumeRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Snapshot message. + * Verifies an UpdateVolumeRequest message. * @function verify - * @memberof google.cloud.netapp.v1.Snapshot + * @memberof google.cloud.netapp.v1.UpdateVolumeRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Snapshot.verify = function verify(message) { + UpdateVolumeRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.state != null && message.hasOwnProperty("state")) - switch (message.state) { - default: - return "state: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - break; - } - if (message.stateDetails != null && message.hasOwnProperty("stateDetails")) - if (!$util.isString(message.stateDetails)) - return "stateDetails: string expected"; - if (message.description != null && message.hasOwnProperty("description")) - if (!$util.isString(message.description)) - return "description: string expected"; - if (message.usedBytes != null && message.hasOwnProperty("usedBytes")) - if (typeof message.usedBytes !== "number") - return "usedBytes: number expected"; - if (message.createTime != null && message.hasOwnProperty("createTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.updateMask); if (error) - return "createTime." + error; + return "updateMask." + error; } - if (message.labels != null && message.hasOwnProperty("labels")) { - if (!$util.isObject(message.labels)) - return "labels: object expected"; - var key = Object.keys(message.labels); - for (var i = 0; i < key.length; ++i) - if (!$util.isString(message.labels[key[i]])) - return "labels: string{k:string} expected"; + if (message.volume != null && message.hasOwnProperty("volume")) { + var error = $root.google.cloud.netapp.v1.Volume.verify(message.volume); + if (error) + return "volume." + error; } return null; }; /** - * Creates a Snapshot message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateVolumeRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.netapp.v1.Snapshot + * @memberof google.cloud.netapp.v1.UpdateVolumeRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.netapp.v1.Snapshot} Snapshot + * @returns {google.cloud.netapp.v1.UpdateVolumeRequest} UpdateVolumeRequest */ - Snapshot.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.netapp.v1.Snapshot) + UpdateVolumeRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.netapp.v1.UpdateVolumeRequest) return object; - var message = new $root.google.cloud.netapp.v1.Snapshot(); - if (object.name != null) - message.name = String(object.name); - switch (object.state) { - default: - if (typeof object.state === "number") { - message.state = object.state; - break; - } - break; - case "STATE_UNSPECIFIED": - case 0: - message.state = 0; - break; - case "READY": - case 1: - message.state = 1; - break; - case "CREATING": - case 2: - message.state = 2; - break; - case "DELETING": - case 3: - message.state = 3; - break; - case "UPDATING": - case 4: - message.state = 4; - break; - case "DISABLED": - case 5: - message.state = 5; - break; - case "ERROR": - case 6: - message.state = 6; - break; - } - if (object.stateDetails != null) - message.stateDetails = String(object.stateDetails); - if (object.description != null) - message.description = String(object.description); - if (object.usedBytes != null) - message.usedBytes = Number(object.usedBytes); - if (object.createTime != null) { - if (typeof object.createTime !== "object") - throw TypeError(".google.cloud.netapp.v1.Snapshot.createTime: object expected"); - message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + var message = new $root.google.cloud.netapp.v1.UpdateVolumeRequest(); + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.cloud.netapp.v1.UpdateVolumeRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); } - if (object.labels) { - if (typeof object.labels !== "object") - throw TypeError(".google.cloud.netapp.v1.Snapshot.labels: object expected"); - message.labels = {}; - for (var keys = Object.keys(object.labels), i = 0; i < keys.length; ++i) - message.labels[keys[i]] = String(object.labels[keys[i]]); + if (object.volume != null) { + if (typeof object.volume !== "object") + throw TypeError(".google.cloud.netapp.v1.UpdateVolumeRequest.volume: object expected"); + message.volume = $root.google.cloud.netapp.v1.Volume.fromObject(object.volume); } return message; }; /** - * Creates a plain object from a Snapshot message. Also converts values to other types if specified. + * Creates a plain object from an UpdateVolumeRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.netapp.v1.Snapshot + * @memberof google.cloud.netapp.v1.UpdateVolumeRequest * @static - * @param {google.cloud.netapp.v1.Snapshot} message Snapshot + * @param {google.cloud.netapp.v1.UpdateVolumeRequest} message UpdateVolumeRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Snapshot.toObject = function toObject(message, options) { + UpdateVolumeRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.objects || options.defaults) - object.labels = {}; if (options.defaults) { - object.name = ""; - object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; - object.stateDetails = ""; - object.description = ""; - object.usedBytes = 0; - object.createTime = null; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.state != null && message.hasOwnProperty("state")) - object.state = options.enums === String ? $root.google.cloud.netapp.v1.Snapshot.State[message.state] === undefined ? message.state : $root.google.cloud.netapp.v1.Snapshot.State[message.state] : message.state; - if (message.stateDetails != null && message.hasOwnProperty("stateDetails")) - object.stateDetails = message.stateDetails; - if (message.description != null && message.hasOwnProperty("description")) - object.description = message.description; - if (message.usedBytes != null && message.hasOwnProperty("usedBytes")) - object.usedBytes = options.json && !isFinite(message.usedBytes) ? String(message.usedBytes) : message.usedBytes; - if (message.createTime != null && message.hasOwnProperty("createTime")) - object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); - var keys2; - if (message.labels && (keys2 = Object.keys(message.labels)).length) { - object.labels = {}; - for (var j = 0; j < keys2.length; ++j) - object.labels[keys2[j]] = message.labels[keys2[j]]; + object.updateMask = null; + object.volume = null; } + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + if (message.volume != null && message.hasOwnProperty("volume")) + object.volume = $root.google.cloud.netapp.v1.Volume.toObject(message.volume, options); return object; }; /** - * Converts this Snapshot to JSON. + * Converts this UpdateVolumeRequest to JSON. * @function toJSON - * @memberof google.cloud.netapp.v1.Snapshot + * @memberof google.cloud.netapp.v1.UpdateVolumeRequest * @instance * @returns {Object.} JSON object */ - Snapshot.prototype.toJSON = function toJSON() { + UpdateVolumeRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for Snapshot + * Gets the default type url for UpdateVolumeRequest * @function getTypeUrl - * @memberof google.cloud.netapp.v1.Snapshot + * @memberof google.cloud.netapp.v1.UpdateVolumeRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - Snapshot.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + UpdateVolumeRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.netapp.v1.Snapshot"; + return typeUrlPrefix + "/google.cloud.netapp.v1.UpdateVolumeRequest"; }; - /** - * State enum. - * @name google.cloud.netapp.v1.Snapshot.State - * @enum {number} - * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value - * @property {number} READY=1 READY value - * @property {number} CREATING=2 CREATING value - * @property {number} DELETING=3 DELETING value - * @property {number} UPDATING=4 UPDATING value - * @property {number} DISABLED=5 DISABLED value - * @property {number} ERROR=6 ERROR value - */ - Snapshot.State = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "STATE_UNSPECIFIED"] = 0; - values[valuesById[1] = "READY"] = 1; - values[valuesById[2] = "CREATING"] = 2; - values[valuesById[3] = "DELETING"] = 3; - values[valuesById[4] = "UPDATING"] = 4; - values[valuesById[5] = "DISABLED"] = 5; - values[valuesById[6] = "ERROR"] = 6; - return values; - })(); - - return Snapshot; + return UpdateVolumeRequest; })(); - v1.GetStoragePoolRequest = (function() { + v1.DeleteVolumeRequest = (function() { /** - * Properties of a GetStoragePoolRequest. + * Properties of a DeleteVolumeRequest. * @memberof google.cloud.netapp.v1 - * @interface IGetStoragePoolRequest - * @property {string|null} [name] GetStoragePoolRequest name + * @interface IDeleteVolumeRequest + * @property {string|null} [name] DeleteVolumeRequest name + * @property {boolean|null} [force] DeleteVolumeRequest force */ /** - * Constructs a new GetStoragePoolRequest. + * Constructs a new DeleteVolumeRequest. * @memberof google.cloud.netapp.v1 - * @classdesc Represents a GetStoragePoolRequest. - * @implements IGetStoragePoolRequest + * @classdesc Represents a DeleteVolumeRequest. + * @implements IDeleteVolumeRequest * @constructor - * @param {google.cloud.netapp.v1.IGetStoragePoolRequest=} [properties] Properties to set + * @param {google.cloud.netapp.v1.IDeleteVolumeRequest=} [properties] Properties to set */ - function GetStoragePoolRequest(properties) { + function DeleteVolumeRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -18917,70 +19413,80 @@ } /** - * GetStoragePoolRequest name. + * DeleteVolumeRequest name. * @member {string} name - * @memberof google.cloud.netapp.v1.GetStoragePoolRequest + * @memberof google.cloud.netapp.v1.DeleteVolumeRequest * @instance */ - GetStoragePoolRequest.prototype.name = ""; + DeleteVolumeRequest.prototype.name = ""; /** - * Creates a new GetStoragePoolRequest instance using the specified properties. + * DeleteVolumeRequest force. + * @member {boolean} force + * @memberof google.cloud.netapp.v1.DeleteVolumeRequest + * @instance + */ + DeleteVolumeRequest.prototype.force = false; + + /** + * Creates a new DeleteVolumeRequest instance using the specified properties. * @function create - * @memberof google.cloud.netapp.v1.GetStoragePoolRequest + * @memberof google.cloud.netapp.v1.DeleteVolumeRequest * @static - * @param {google.cloud.netapp.v1.IGetStoragePoolRequest=} [properties] Properties to set - * @returns {google.cloud.netapp.v1.GetStoragePoolRequest} GetStoragePoolRequest instance + * @param {google.cloud.netapp.v1.IDeleteVolumeRequest=} [properties] Properties to set + * @returns {google.cloud.netapp.v1.DeleteVolumeRequest} DeleteVolumeRequest instance */ - GetStoragePoolRequest.create = function create(properties) { - return new GetStoragePoolRequest(properties); + DeleteVolumeRequest.create = function create(properties) { + return new DeleteVolumeRequest(properties); }; /** - * Encodes the specified GetStoragePoolRequest message. Does not implicitly {@link google.cloud.netapp.v1.GetStoragePoolRequest.verify|verify} messages. + * Encodes the specified DeleteVolumeRequest message. Does not implicitly {@link google.cloud.netapp.v1.DeleteVolumeRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.netapp.v1.GetStoragePoolRequest + * @memberof google.cloud.netapp.v1.DeleteVolumeRequest * @static - * @param {google.cloud.netapp.v1.IGetStoragePoolRequest} message GetStoragePoolRequest message or plain object to encode + * @param {google.cloud.netapp.v1.IDeleteVolumeRequest} message DeleteVolumeRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetStoragePoolRequest.encode = function encode(message, writer) { + DeleteVolumeRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.force != null && Object.hasOwnProperty.call(message, "force")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.force); return writer; }; /** - * Encodes the specified GetStoragePoolRequest message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.GetStoragePoolRequest.verify|verify} messages. + * Encodes the specified DeleteVolumeRequest message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.DeleteVolumeRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.netapp.v1.GetStoragePoolRequest + * @memberof google.cloud.netapp.v1.DeleteVolumeRequest * @static - * @param {google.cloud.netapp.v1.IGetStoragePoolRequest} message GetStoragePoolRequest message or plain object to encode + * @param {google.cloud.netapp.v1.IDeleteVolumeRequest} message DeleteVolumeRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetStoragePoolRequest.encodeDelimited = function encodeDelimited(message, writer) { + DeleteVolumeRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetStoragePoolRequest message from the specified reader or buffer. + * Decodes a DeleteVolumeRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.netapp.v1.GetStoragePoolRequest + * @memberof google.cloud.netapp.v1.DeleteVolumeRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.netapp.v1.GetStoragePoolRequest} GetStoragePoolRequest + * @returns {google.cloud.netapp.v1.DeleteVolumeRequest} DeleteVolumeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetStoragePoolRequest.decode = function decode(reader, length) { + DeleteVolumeRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.netapp.v1.GetStoragePoolRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.netapp.v1.DeleteVolumeRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -18988,6 +19494,10 @@ message.name = reader.string(); break; } + case 2: { + message.force = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -18997,126 +19507,132 @@ }; /** - * Decodes a GetStoragePoolRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteVolumeRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.netapp.v1.GetStoragePoolRequest + * @memberof google.cloud.netapp.v1.DeleteVolumeRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.netapp.v1.GetStoragePoolRequest} GetStoragePoolRequest + * @returns {google.cloud.netapp.v1.DeleteVolumeRequest} DeleteVolumeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetStoragePoolRequest.decodeDelimited = function decodeDelimited(reader) { + DeleteVolumeRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetStoragePoolRequest message. + * Verifies a DeleteVolumeRequest message. * @function verify - * @memberof google.cloud.netapp.v1.GetStoragePoolRequest + * @memberof google.cloud.netapp.v1.DeleteVolumeRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetStoragePoolRequest.verify = function verify(message) { + DeleteVolumeRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) if (!$util.isString(message.name)) return "name: string expected"; + if (message.force != null && message.hasOwnProperty("force")) + if (typeof message.force !== "boolean") + return "force: boolean expected"; return null; }; /** - * Creates a GetStoragePoolRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteVolumeRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.netapp.v1.GetStoragePoolRequest + * @memberof google.cloud.netapp.v1.DeleteVolumeRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.netapp.v1.GetStoragePoolRequest} GetStoragePoolRequest + * @returns {google.cloud.netapp.v1.DeleteVolumeRequest} DeleteVolumeRequest */ - GetStoragePoolRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.netapp.v1.GetStoragePoolRequest) + DeleteVolumeRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.netapp.v1.DeleteVolumeRequest) return object; - var message = new $root.google.cloud.netapp.v1.GetStoragePoolRequest(); + var message = new $root.google.cloud.netapp.v1.DeleteVolumeRequest(); if (object.name != null) message.name = String(object.name); + if (object.force != null) + message.force = Boolean(object.force); return message; }; /** - * Creates a plain object from a GetStoragePoolRequest message. Also converts values to other types if specified. + * Creates a plain object from a DeleteVolumeRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.netapp.v1.GetStoragePoolRequest + * @memberof google.cloud.netapp.v1.DeleteVolumeRequest * @static - * @param {google.cloud.netapp.v1.GetStoragePoolRequest} message GetStoragePoolRequest + * @param {google.cloud.netapp.v1.DeleteVolumeRequest} message DeleteVolumeRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetStoragePoolRequest.toObject = function toObject(message, options) { + DeleteVolumeRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) + if (options.defaults) { object.name = ""; + object.force = false; + } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; + if (message.force != null && message.hasOwnProperty("force")) + object.force = message.force; return object; }; /** - * Converts this GetStoragePoolRequest to JSON. + * Converts this DeleteVolumeRequest to JSON. * @function toJSON - * @memberof google.cloud.netapp.v1.GetStoragePoolRequest + * @memberof google.cloud.netapp.v1.DeleteVolumeRequest * @instance * @returns {Object.} JSON object */ - GetStoragePoolRequest.prototype.toJSON = function toJSON() { + DeleteVolumeRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetStoragePoolRequest + * Gets the default type url for DeleteVolumeRequest * @function getTypeUrl - * @memberof google.cloud.netapp.v1.GetStoragePoolRequest + * @memberof google.cloud.netapp.v1.DeleteVolumeRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetStoragePoolRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + DeleteVolumeRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.netapp.v1.GetStoragePoolRequest"; + return typeUrlPrefix + "/google.cloud.netapp.v1.DeleteVolumeRequest"; }; - return GetStoragePoolRequest; + return DeleteVolumeRequest; })(); - v1.ListStoragePoolsRequest = (function() { + v1.RevertVolumeRequest = (function() { /** - * Properties of a ListStoragePoolsRequest. + * Properties of a RevertVolumeRequest. * @memberof google.cloud.netapp.v1 - * @interface IListStoragePoolsRequest - * @property {string|null} [parent] ListStoragePoolsRequest parent - * @property {number|null} [pageSize] ListStoragePoolsRequest pageSize - * @property {string|null} [pageToken] ListStoragePoolsRequest pageToken - * @property {string|null} [orderBy] ListStoragePoolsRequest orderBy - * @property {string|null} [filter] ListStoragePoolsRequest filter + * @interface IRevertVolumeRequest + * @property {string|null} [name] RevertVolumeRequest name + * @property {string|null} [snapshotId] RevertVolumeRequest snapshotId */ /** - * Constructs a new ListStoragePoolsRequest. + * Constructs a new RevertVolumeRequest. * @memberof google.cloud.netapp.v1 - * @classdesc Represents a ListStoragePoolsRequest. - * @implements IListStoragePoolsRequest + * @classdesc Represents a RevertVolumeRequest. + * @implements IRevertVolumeRequest * @constructor - * @param {google.cloud.netapp.v1.IListStoragePoolsRequest=} [properties] Properties to set + * @param {google.cloud.netapp.v1.IRevertVolumeRequest=} [properties] Properties to set */ - function ListStoragePoolsRequest(properties) { + function RevertVolumeRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -19124,131 +19640,89 @@ } /** - * ListStoragePoolsRequest parent. - * @member {string} parent - * @memberof google.cloud.netapp.v1.ListStoragePoolsRequest - * @instance - */ - ListStoragePoolsRequest.prototype.parent = ""; - - /** - * ListStoragePoolsRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.netapp.v1.ListStoragePoolsRequest - * @instance - */ - ListStoragePoolsRequest.prototype.pageSize = 0; - - /** - * ListStoragePoolsRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.netapp.v1.ListStoragePoolsRequest - * @instance - */ - ListStoragePoolsRequest.prototype.pageToken = ""; - - /** - * ListStoragePoolsRequest orderBy. - * @member {string} orderBy - * @memberof google.cloud.netapp.v1.ListStoragePoolsRequest + * RevertVolumeRequest name. + * @member {string} name + * @memberof google.cloud.netapp.v1.RevertVolumeRequest * @instance */ - ListStoragePoolsRequest.prototype.orderBy = ""; + RevertVolumeRequest.prototype.name = ""; /** - * ListStoragePoolsRequest filter. - * @member {string} filter - * @memberof google.cloud.netapp.v1.ListStoragePoolsRequest + * RevertVolumeRequest snapshotId. + * @member {string} snapshotId + * @memberof google.cloud.netapp.v1.RevertVolumeRequest * @instance */ - ListStoragePoolsRequest.prototype.filter = ""; + RevertVolumeRequest.prototype.snapshotId = ""; /** - * Creates a new ListStoragePoolsRequest instance using the specified properties. + * Creates a new RevertVolumeRequest instance using the specified properties. * @function create - * @memberof google.cloud.netapp.v1.ListStoragePoolsRequest + * @memberof google.cloud.netapp.v1.RevertVolumeRequest * @static - * @param {google.cloud.netapp.v1.IListStoragePoolsRequest=} [properties] Properties to set - * @returns {google.cloud.netapp.v1.ListStoragePoolsRequest} ListStoragePoolsRequest instance + * @param {google.cloud.netapp.v1.IRevertVolumeRequest=} [properties] Properties to set + * @returns {google.cloud.netapp.v1.RevertVolumeRequest} RevertVolumeRequest instance */ - ListStoragePoolsRequest.create = function create(properties) { - return new ListStoragePoolsRequest(properties); + RevertVolumeRequest.create = function create(properties) { + return new RevertVolumeRequest(properties); }; /** - * Encodes the specified ListStoragePoolsRequest message. Does not implicitly {@link google.cloud.netapp.v1.ListStoragePoolsRequest.verify|verify} messages. + * Encodes the specified RevertVolumeRequest message. Does not implicitly {@link google.cloud.netapp.v1.RevertVolumeRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.netapp.v1.ListStoragePoolsRequest + * @memberof google.cloud.netapp.v1.RevertVolumeRequest * @static - * @param {google.cloud.netapp.v1.IListStoragePoolsRequest} message ListStoragePoolsRequest message or plain object to encode + * @param {google.cloud.netapp.v1.IRevertVolumeRequest} message RevertVolumeRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListStoragePoolsRequest.encode = function encode(message, writer) { + RevertVolumeRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); - if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.orderBy); - if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.filter); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.snapshotId != null && Object.hasOwnProperty.call(message, "snapshotId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.snapshotId); return writer; }; /** - * Encodes the specified ListStoragePoolsRequest message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.ListStoragePoolsRequest.verify|verify} messages. + * Encodes the specified RevertVolumeRequest message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.RevertVolumeRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.netapp.v1.ListStoragePoolsRequest + * @memberof google.cloud.netapp.v1.RevertVolumeRequest * @static - * @param {google.cloud.netapp.v1.IListStoragePoolsRequest} message ListStoragePoolsRequest message or plain object to encode + * @param {google.cloud.netapp.v1.IRevertVolumeRequest} message RevertVolumeRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListStoragePoolsRequest.encodeDelimited = function encodeDelimited(message, writer) { + RevertVolumeRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListStoragePoolsRequest message from the specified reader or buffer. + * Decodes a RevertVolumeRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.netapp.v1.ListStoragePoolsRequest + * @memberof google.cloud.netapp.v1.RevertVolumeRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.netapp.v1.ListStoragePoolsRequest} ListStoragePoolsRequest + * @returns {google.cloud.netapp.v1.RevertVolumeRequest} RevertVolumeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListStoragePoolsRequest.decode = function decode(reader, length) { + RevertVolumeRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.netapp.v1.ListStoragePoolsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.netapp.v1.RevertVolumeRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.parent = reader.string(); + message.name = reader.string(); break; } case 2: { - message.pageSize = reader.int32(); - break; - } - case 3: { - message.pageToken = reader.string(); - break; - } - case 4: { - message.orderBy = reader.string(); - break; - } - case 5: { - message.filter = reader.string(); + message.snapshotId = reader.string(); break; } default: @@ -19260,1006 +19734,653 @@ }; /** - * Decodes a ListStoragePoolsRequest message from the specified reader or buffer, length delimited. + * Decodes a RevertVolumeRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.netapp.v1.ListStoragePoolsRequest + * @memberof google.cloud.netapp.v1.RevertVolumeRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.netapp.v1.ListStoragePoolsRequest} ListStoragePoolsRequest + * @returns {google.cloud.netapp.v1.RevertVolumeRequest} RevertVolumeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListStoragePoolsRequest.decodeDelimited = function decodeDelimited(reader) { + RevertVolumeRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListStoragePoolsRequest message. + * Verifies a RevertVolumeRequest message. * @function verify - * @memberof google.cloud.netapp.v1.ListStoragePoolsRequest + * @memberof google.cloud.netapp.v1.RevertVolumeRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListStoragePoolsRequest.verify = function verify(message) { + RevertVolumeRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; - if (message.orderBy != null && message.hasOwnProperty("orderBy")) - if (!$util.isString(message.orderBy)) - return "orderBy: string expected"; - if (message.filter != null && message.hasOwnProperty("filter")) - if (!$util.isString(message.filter)) - return "filter: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.snapshotId != null && message.hasOwnProperty("snapshotId")) + if (!$util.isString(message.snapshotId)) + return "snapshotId: string expected"; return null; }; /** - * Creates a ListStoragePoolsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a RevertVolumeRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.netapp.v1.ListStoragePoolsRequest + * @memberof google.cloud.netapp.v1.RevertVolumeRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.netapp.v1.ListStoragePoolsRequest} ListStoragePoolsRequest + * @returns {google.cloud.netapp.v1.RevertVolumeRequest} RevertVolumeRequest */ - ListStoragePoolsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.netapp.v1.ListStoragePoolsRequest) + RevertVolumeRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.netapp.v1.RevertVolumeRequest) return object; - var message = new $root.google.cloud.netapp.v1.ListStoragePoolsRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); - if (object.orderBy != null) - message.orderBy = String(object.orderBy); - if (object.filter != null) - message.filter = String(object.filter); + var message = new $root.google.cloud.netapp.v1.RevertVolumeRequest(); + if (object.name != null) + message.name = String(object.name); + if (object.snapshotId != null) + message.snapshotId = String(object.snapshotId); return message; }; /** - * Creates a plain object from a ListStoragePoolsRequest message. Also converts values to other types if specified. + * Creates a plain object from a RevertVolumeRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.netapp.v1.ListStoragePoolsRequest + * @memberof google.cloud.netapp.v1.RevertVolumeRequest * @static - * @param {google.cloud.netapp.v1.ListStoragePoolsRequest} message ListStoragePoolsRequest + * @param {google.cloud.netapp.v1.RevertVolumeRequest} message RevertVolumeRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListStoragePoolsRequest.toObject = function toObject(message, options) { + RevertVolumeRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.parent = ""; - object.pageSize = 0; - object.pageToken = ""; - object.orderBy = ""; - object.filter = ""; + object.name = ""; + object.snapshotId = ""; } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; - if (message.orderBy != null && message.hasOwnProperty("orderBy")) - object.orderBy = message.orderBy; - if (message.filter != null && message.hasOwnProperty("filter")) - object.filter = message.filter; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.snapshotId != null && message.hasOwnProperty("snapshotId")) + object.snapshotId = message.snapshotId; return object; }; /** - * Converts this ListStoragePoolsRequest to JSON. + * Converts this RevertVolumeRequest to JSON. * @function toJSON - * @memberof google.cloud.netapp.v1.ListStoragePoolsRequest + * @memberof google.cloud.netapp.v1.RevertVolumeRequest * @instance * @returns {Object.} JSON object */ - ListStoragePoolsRequest.prototype.toJSON = function toJSON() { + RevertVolumeRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListStoragePoolsRequest + * Gets the default type url for RevertVolumeRequest * @function getTypeUrl - * @memberof google.cloud.netapp.v1.ListStoragePoolsRequest + * @memberof google.cloud.netapp.v1.RevertVolumeRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListStoragePoolsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + RevertVolumeRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.netapp.v1.ListStoragePoolsRequest"; + return typeUrlPrefix + "/google.cloud.netapp.v1.RevertVolumeRequest"; }; - return ListStoragePoolsRequest; + return RevertVolumeRequest; })(); - v1.ListStoragePoolsResponse = (function() { - - /** - * Properties of a ListStoragePoolsResponse. - * @memberof google.cloud.netapp.v1 - * @interface IListStoragePoolsResponse - * @property {Array.|null} [storagePools] ListStoragePoolsResponse storagePools - * @property {string|null} [nextPageToken] ListStoragePoolsResponse nextPageToken - * @property {Array.|null} [unreachable] ListStoragePoolsResponse unreachable - */ + v1.Volume = (function() { /** - * Constructs a new ListStoragePoolsResponse. + * Properties of a Volume. * @memberof google.cloud.netapp.v1 - * @classdesc Represents a ListStoragePoolsResponse. - * @implements IListStoragePoolsResponse - * @constructor - * @param {google.cloud.netapp.v1.IListStoragePoolsResponse=} [properties] Properties to set - */ - function ListStoragePoolsResponse(properties) { - this.storagePools = []; - this.unreachable = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + * @interface IVolume + * @property {string|null} [name] Volume name + * @property {google.cloud.netapp.v1.Volume.State|null} [state] Volume state + * @property {string|null} [stateDetails] Volume stateDetails + * @property {google.protobuf.ITimestamp|null} [createTime] Volume createTime + * @property {string|null} [shareName] Volume shareName + * @property {string|null} [psaRange] Volume psaRange + * @property {string|null} [storagePool] Volume storagePool + * @property {string|null} [network] Volume network + * @property {google.cloud.netapp.v1.ServiceLevel|null} [serviceLevel] Volume serviceLevel + * @property {number|Long|null} [capacityGib] Volume capacityGib + * @property {google.cloud.netapp.v1.IExportPolicy|null} [exportPolicy] Volume exportPolicy + * @property {Array.|null} [protocols] Volume protocols + * @property {Array.|null} [smbSettings] Volume smbSettings + * @property {Array.|null} [mountOptions] Volume mountOptions + * @property {string|null} [unixPermissions] Volume unixPermissions + * @property {Object.|null} [labels] Volume labels + * @property {string|null} [description] Volume description + * @property {google.cloud.netapp.v1.ISnapshotPolicy|null} [snapshotPolicy] Volume snapshotPolicy + * @property {number|null} [snapReserve] Volume snapReserve + * @property {boolean|null} [snapshotDirectory] Volume snapshotDirectory + * @property {number|Long|null} [usedGib] Volume usedGib + * @property {google.cloud.netapp.v1.SecurityStyle|null} [securityStyle] Volume securityStyle + * @property {boolean|null} [kerberosEnabled] Volume kerberosEnabled + * @property {boolean|null} [ldapEnabled] Volume ldapEnabled + * @property {string|null} [activeDirectory] Volume activeDirectory + * @property {google.cloud.netapp.v1.IRestoreParameters|null} [restoreParameters] Volume restoreParameters + * @property {string|null} [kmsConfig] Volume kmsConfig + * @property {google.cloud.netapp.v1.EncryptionType|null} [encryptionType] Volume encryptionType + * @property {boolean|null} [hasReplication] Volume hasReplication + * @property {google.cloud.netapp.v1.IBackupConfig|null} [backupConfig] Volume backupConfig + * @property {Array.|null} [restrictedActions] Volume restrictedActions + * @property {boolean|null} [largeCapacity] Volume largeCapacity + * @property {boolean|null} [multipleEndpoints] Volume multipleEndpoints + * @property {google.cloud.netapp.v1.ITieringPolicy|null} [tieringPolicy] Volume tieringPolicy + * @property {string|null} [replicaZone] Volume replicaZone + * @property {string|null} [zone] Volume zone + * @property {number|Long|null} [coldTierSizeGib] Volume coldTierSizeGib + * @property {google.cloud.netapp.v1.IHybridReplicationParameters|null} [hybridReplicationParameters] Volume hybridReplicationParameters + */ /** - * ListStoragePoolsResponse storagePools. - * @member {Array.} storagePools - * @memberof google.cloud.netapp.v1.ListStoragePoolsResponse - * @instance + * Constructs a new Volume. + * @memberof google.cloud.netapp.v1 + * @classdesc Represents a Volume. + * @implements IVolume + * @constructor + * @param {google.cloud.netapp.v1.IVolume=} [properties] Properties to set */ - ListStoragePoolsResponse.prototype.storagePools = $util.emptyArray; + function Volume(properties) { + this.protocols = []; + this.smbSettings = []; + this.mountOptions = []; + this.labels = {}; + this.restrictedActions = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } /** - * ListStoragePoolsResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.netapp.v1.ListStoragePoolsResponse + * Volume name. + * @member {string} name + * @memberof google.cloud.netapp.v1.Volume * @instance */ - ListStoragePoolsResponse.prototype.nextPageToken = ""; + Volume.prototype.name = ""; /** - * ListStoragePoolsResponse unreachable. - * @member {Array.} unreachable - * @memberof google.cloud.netapp.v1.ListStoragePoolsResponse + * Volume state. + * @member {google.cloud.netapp.v1.Volume.State} state + * @memberof google.cloud.netapp.v1.Volume * @instance */ - ListStoragePoolsResponse.prototype.unreachable = $util.emptyArray; + Volume.prototype.state = 0; /** - * Creates a new ListStoragePoolsResponse instance using the specified properties. - * @function create - * @memberof google.cloud.netapp.v1.ListStoragePoolsResponse - * @static - * @param {google.cloud.netapp.v1.IListStoragePoolsResponse=} [properties] Properties to set - * @returns {google.cloud.netapp.v1.ListStoragePoolsResponse} ListStoragePoolsResponse instance + * Volume stateDetails. + * @member {string} stateDetails + * @memberof google.cloud.netapp.v1.Volume + * @instance */ - ListStoragePoolsResponse.create = function create(properties) { - return new ListStoragePoolsResponse(properties); - }; + Volume.prototype.stateDetails = ""; /** - * Encodes the specified ListStoragePoolsResponse message. Does not implicitly {@link google.cloud.netapp.v1.ListStoragePoolsResponse.verify|verify} messages. - * @function encode - * @memberof google.cloud.netapp.v1.ListStoragePoolsResponse - * @static - * @param {google.cloud.netapp.v1.IListStoragePoolsResponse} message ListStoragePoolsResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Volume createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.cloud.netapp.v1.Volume + * @instance */ - ListStoragePoolsResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.storagePools != null && message.storagePools.length) - for (var i = 0; i < message.storagePools.length; ++i) - $root.google.cloud.netapp.v1.StoragePool.encode(message.storagePools[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); - if (message.unreachable != null && message.unreachable.length) - for (var i = 0; i < message.unreachable.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.unreachable[i]); - return writer; - }; + Volume.prototype.createTime = null; /** - * Encodes the specified ListStoragePoolsResponse message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.ListStoragePoolsResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.netapp.v1.ListStoragePoolsResponse - * @static - * @param {google.cloud.netapp.v1.IListStoragePoolsResponse} message ListStoragePoolsResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Volume shareName. + * @member {string} shareName + * @memberof google.cloud.netapp.v1.Volume + * @instance */ - ListStoragePoolsResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + Volume.prototype.shareName = ""; /** - * Decodes a ListStoragePoolsResponse message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.netapp.v1.ListStoragePoolsResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.netapp.v1.ListStoragePoolsResponse} ListStoragePoolsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Volume psaRange. + * @member {string} psaRange + * @memberof google.cloud.netapp.v1.Volume + * @instance */ - ListStoragePoolsResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.netapp.v1.ListStoragePoolsResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (!(message.storagePools && message.storagePools.length)) - message.storagePools = []; - message.storagePools.push($root.google.cloud.netapp.v1.StoragePool.decode(reader, reader.uint32())); - break; - } - case 2: { - message.nextPageToken = reader.string(); - break; - } - case 3: { - if (!(message.unreachable && message.unreachable.length)) - message.unreachable = []; - message.unreachable.push(reader.string()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + Volume.prototype.psaRange = ""; /** - * Decodes a ListStoragePoolsResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.netapp.v1.ListStoragePoolsResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.netapp.v1.ListStoragePoolsResponse} ListStoragePoolsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Volume storagePool. + * @member {string} storagePool + * @memberof google.cloud.netapp.v1.Volume + * @instance */ - ListStoragePoolsResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + Volume.prototype.storagePool = ""; /** - * Verifies a ListStoragePoolsResponse message. - * @function verify - * @memberof google.cloud.netapp.v1.ListStoragePoolsResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * Volume network. + * @member {string} network + * @memberof google.cloud.netapp.v1.Volume + * @instance */ - ListStoragePoolsResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.storagePools != null && message.hasOwnProperty("storagePools")) { - if (!Array.isArray(message.storagePools)) - return "storagePools: array expected"; - for (var i = 0; i < message.storagePools.length; ++i) { - var error = $root.google.cloud.netapp.v1.StoragePool.verify(message.storagePools[i]); - if (error) - return "storagePools." + error; - } - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; - if (message.unreachable != null && message.hasOwnProperty("unreachable")) { - if (!Array.isArray(message.unreachable)) - return "unreachable: array expected"; - for (var i = 0; i < message.unreachable.length; ++i) - if (!$util.isString(message.unreachable[i])) - return "unreachable: string[] expected"; - } - return null; - }; + Volume.prototype.network = ""; /** - * Creates a ListStoragePoolsResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.netapp.v1.ListStoragePoolsResponse - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.netapp.v1.ListStoragePoolsResponse} ListStoragePoolsResponse + * Volume serviceLevel. + * @member {google.cloud.netapp.v1.ServiceLevel} serviceLevel + * @memberof google.cloud.netapp.v1.Volume + * @instance */ - ListStoragePoolsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.netapp.v1.ListStoragePoolsResponse) - return object; - var message = new $root.google.cloud.netapp.v1.ListStoragePoolsResponse(); - if (object.storagePools) { - if (!Array.isArray(object.storagePools)) - throw TypeError(".google.cloud.netapp.v1.ListStoragePoolsResponse.storagePools: array expected"); - message.storagePools = []; - for (var i = 0; i < object.storagePools.length; ++i) { - if (typeof object.storagePools[i] !== "object") - throw TypeError(".google.cloud.netapp.v1.ListStoragePoolsResponse.storagePools: object expected"); - message.storagePools[i] = $root.google.cloud.netapp.v1.StoragePool.fromObject(object.storagePools[i]); - } - } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); - if (object.unreachable) { - if (!Array.isArray(object.unreachable)) - throw TypeError(".google.cloud.netapp.v1.ListStoragePoolsResponse.unreachable: array expected"); - message.unreachable = []; - for (var i = 0; i < object.unreachable.length; ++i) - message.unreachable[i] = String(object.unreachable[i]); - } - return message; - }; + Volume.prototype.serviceLevel = 0; /** - * Creates a plain object from a ListStoragePoolsResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.netapp.v1.ListStoragePoolsResponse - * @static - * @param {google.cloud.netapp.v1.ListStoragePoolsResponse} message ListStoragePoolsResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * Volume capacityGib. + * @member {number|Long} capacityGib + * @memberof google.cloud.netapp.v1.Volume + * @instance */ - ListStoragePoolsResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) { - object.storagePools = []; - object.unreachable = []; - } - if (options.defaults) - object.nextPageToken = ""; - if (message.storagePools && message.storagePools.length) { - object.storagePools = []; - for (var j = 0; j < message.storagePools.length; ++j) - object.storagePools[j] = $root.google.cloud.netapp.v1.StoragePool.toObject(message.storagePools[j], options); - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; - if (message.unreachable && message.unreachable.length) { - object.unreachable = []; - for (var j = 0; j < message.unreachable.length; ++j) - object.unreachable[j] = message.unreachable[j]; - } - return object; - }; + Volume.prototype.capacityGib = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * Converts this ListStoragePoolsResponse to JSON. - * @function toJSON - * @memberof google.cloud.netapp.v1.ListStoragePoolsResponse + * Volume exportPolicy. + * @member {google.cloud.netapp.v1.IExportPolicy|null|undefined} exportPolicy + * @memberof google.cloud.netapp.v1.Volume * @instance - * @returns {Object.} JSON object */ - ListStoragePoolsResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + Volume.prototype.exportPolicy = null; /** - * Gets the default type url for ListStoragePoolsResponse - * @function getTypeUrl - * @memberof google.cloud.netapp.v1.ListStoragePoolsResponse - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url + * Volume protocols. + * @member {Array.} protocols + * @memberof google.cloud.netapp.v1.Volume + * @instance */ - ListStoragePoolsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.netapp.v1.ListStoragePoolsResponse"; - }; - - return ListStoragePoolsResponse; - })(); + Volume.prototype.protocols = $util.emptyArray; - v1.CreateStoragePoolRequest = (function() { + /** + * Volume smbSettings. + * @member {Array.} smbSettings + * @memberof google.cloud.netapp.v1.Volume + * @instance + */ + Volume.prototype.smbSettings = $util.emptyArray; /** - * Properties of a CreateStoragePoolRequest. - * @memberof google.cloud.netapp.v1 - * @interface ICreateStoragePoolRequest - * @property {string|null} [parent] CreateStoragePoolRequest parent - * @property {string|null} [storagePoolId] CreateStoragePoolRequest storagePoolId - * @property {google.cloud.netapp.v1.IStoragePool|null} [storagePool] CreateStoragePoolRequest storagePool + * Volume mountOptions. + * @member {Array.} mountOptions + * @memberof google.cloud.netapp.v1.Volume + * @instance */ + Volume.prototype.mountOptions = $util.emptyArray; /** - * Constructs a new CreateStoragePoolRequest. - * @memberof google.cloud.netapp.v1 - * @classdesc Represents a CreateStoragePoolRequest. - * @implements ICreateStoragePoolRequest - * @constructor - * @param {google.cloud.netapp.v1.ICreateStoragePoolRequest=} [properties] Properties to set + * Volume unixPermissions. + * @member {string} unixPermissions + * @memberof google.cloud.netapp.v1.Volume + * @instance */ - function CreateStoragePoolRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + Volume.prototype.unixPermissions = ""; /** - * CreateStoragePoolRequest parent. - * @member {string} parent - * @memberof google.cloud.netapp.v1.CreateStoragePoolRequest + * Volume labels. + * @member {Object.} labels + * @memberof google.cloud.netapp.v1.Volume * @instance */ - CreateStoragePoolRequest.prototype.parent = ""; + Volume.prototype.labels = $util.emptyObject; /** - * CreateStoragePoolRequest storagePoolId. - * @member {string} storagePoolId - * @memberof google.cloud.netapp.v1.CreateStoragePoolRequest + * Volume description. + * @member {string} description + * @memberof google.cloud.netapp.v1.Volume * @instance */ - CreateStoragePoolRequest.prototype.storagePoolId = ""; + Volume.prototype.description = ""; /** - * CreateStoragePoolRequest storagePool. - * @member {google.cloud.netapp.v1.IStoragePool|null|undefined} storagePool - * @memberof google.cloud.netapp.v1.CreateStoragePoolRequest + * Volume snapshotPolicy. + * @member {google.cloud.netapp.v1.ISnapshotPolicy|null|undefined} snapshotPolicy + * @memberof google.cloud.netapp.v1.Volume * @instance */ - CreateStoragePoolRequest.prototype.storagePool = null; + Volume.prototype.snapshotPolicy = null; /** - * Creates a new CreateStoragePoolRequest instance using the specified properties. - * @function create - * @memberof google.cloud.netapp.v1.CreateStoragePoolRequest - * @static - * @param {google.cloud.netapp.v1.ICreateStoragePoolRequest=} [properties] Properties to set - * @returns {google.cloud.netapp.v1.CreateStoragePoolRequest} CreateStoragePoolRequest instance + * Volume snapReserve. + * @member {number} snapReserve + * @memberof google.cloud.netapp.v1.Volume + * @instance */ - CreateStoragePoolRequest.create = function create(properties) { - return new CreateStoragePoolRequest(properties); - }; + Volume.prototype.snapReserve = 0; /** - * Encodes the specified CreateStoragePoolRequest message. Does not implicitly {@link google.cloud.netapp.v1.CreateStoragePoolRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.netapp.v1.CreateStoragePoolRequest - * @static - * @param {google.cloud.netapp.v1.ICreateStoragePoolRequest} message CreateStoragePoolRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Volume snapshotDirectory. + * @member {boolean} snapshotDirectory + * @memberof google.cloud.netapp.v1.Volume + * @instance */ - CreateStoragePoolRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.storagePoolId != null && Object.hasOwnProperty.call(message, "storagePoolId")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.storagePoolId); - if (message.storagePool != null && Object.hasOwnProperty.call(message, "storagePool")) - $root.google.cloud.netapp.v1.StoragePool.encode(message.storagePool, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - return writer; - }; + Volume.prototype.snapshotDirectory = false; /** - * Encodes the specified CreateStoragePoolRequest message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.CreateStoragePoolRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.netapp.v1.CreateStoragePoolRequest - * @static - * @param {google.cloud.netapp.v1.ICreateStoragePoolRequest} message CreateStoragePoolRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Volume usedGib. + * @member {number|Long} usedGib + * @memberof google.cloud.netapp.v1.Volume + * @instance */ - CreateStoragePoolRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + Volume.prototype.usedGib = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * Decodes a CreateStoragePoolRequest message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.netapp.v1.CreateStoragePoolRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.netapp.v1.CreateStoragePoolRequest} CreateStoragePoolRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Volume securityStyle. + * @member {google.cloud.netapp.v1.SecurityStyle} securityStyle + * @memberof google.cloud.netapp.v1.Volume + * @instance */ - CreateStoragePoolRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.netapp.v1.CreateStoragePoolRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.parent = reader.string(); - break; - } - case 2: { - message.storagePoolId = reader.string(); - break; - } - case 3: { - message.storagePool = $root.google.cloud.netapp.v1.StoragePool.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + Volume.prototype.securityStyle = 0; /** - * Decodes a CreateStoragePoolRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.netapp.v1.CreateStoragePoolRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.netapp.v1.CreateStoragePoolRequest} CreateStoragePoolRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Volume kerberosEnabled. + * @member {boolean} kerberosEnabled + * @memberof google.cloud.netapp.v1.Volume + * @instance */ - CreateStoragePoolRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + Volume.prototype.kerberosEnabled = false; /** - * Verifies a CreateStoragePoolRequest message. - * @function verify - * @memberof google.cloud.netapp.v1.CreateStoragePoolRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * Volume ldapEnabled. + * @member {boolean} ldapEnabled + * @memberof google.cloud.netapp.v1.Volume + * @instance */ - CreateStoragePoolRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.storagePoolId != null && message.hasOwnProperty("storagePoolId")) - if (!$util.isString(message.storagePoolId)) - return "storagePoolId: string expected"; - if (message.storagePool != null && message.hasOwnProperty("storagePool")) { - var error = $root.google.cloud.netapp.v1.StoragePool.verify(message.storagePool); - if (error) - return "storagePool." + error; - } - return null; - }; - - /** - * Creates a CreateStoragePoolRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.netapp.v1.CreateStoragePoolRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.netapp.v1.CreateStoragePoolRequest} CreateStoragePoolRequest - */ - CreateStoragePoolRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.netapp.v1.CreateStoragePoolRequest) - return object; - var message = new $root.google.cloud.netapp.v1.CreateStoragePoolRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.storagePoolId != null) - message.storagePoolId = String(object.storagePoolId); - if (object.storagePool != null) { - if (typeof object.storagePool !== "object") - throw TypeError(".google.cloud.netapp.v1.CreateStoragePoolRequest.storagePool: object expected"); - message.storagePool = $root.google.cloud.netapp.v1.StoragePool.fromObject(object.storagePool); - } - return message; - }; - - /** - * Creates a plain object from a CreateStoragePoolRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.netapp.v1.CreateStoragePoolRequest - * @static - * @param {google.cloud.netapp.v1.CreateStoragePoolRequest} message CreateStoragePoolRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - CreateStoragePoolRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.parent = ""; - object.storagePoolId = ""; - object.storagePool = null; - } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.storagePoolId != null && message.hasOwnProperty("storagePoolId")) - object.storagePoolId = message.storagePoolId; - if (message.storagePool != null && message.hasOwnProperty("storagePool")) - object.storagePool = $root.google.cloud.netapp.v1.StoragePool.toObject(message.storagePool, options); - return object; - }; + Volume.prototype.ldapEnabled = false; /** - * Converts this CreateStoragePoolRequest to JSON. - * @function toJSON - * @memberof google.cloud.netapp.v1.CreateStoragePoolRequest + * Volume activeDirectory. + * @member {string} activeDirectory + * @memberof google.cloud.netapp.v1.Volume * @instance - * @returns {Object.} JSON object - */ - CreateStoragePoolRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for CreateStoragePoolRequest - * @function getTypeUrl - * @memberof google.cloud.netapp.v1.CreateStoragePoolRequest - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - CreateStoragePoolRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.netapp.v1.CreateStoragePoolRequest"; - }; - - return CreateStoragePoolRequest; - })(); - - v1.UpdateStoragePoolRequest = (function() { - - /** - * Properties of an UpdateStoragePoolRequest. - * @memberof google.cloud.netapp.v1 - * @interface IUpdateStoragePoolRequest - * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateStoragePoolRequest updateMask - * @property {google.cloud.netapp.v1.IStoragePool|null} [storagePool] UpdateStoragePoolRequest storagePool */ + Volume.prototype.activeDirectory = ""; /** - * Constructs a new UpdateStoragePoolRequest. - * @memberof google.cloud.netapp.v1 - * @classdesc Represents an UpdateStoragePoolRequest. - * @implements IUpdateStoragePoolRequest - * @constructor - * @param {google.cloud.netapp.v1.IUpdateStoragePoolRequest=} [properties] Properties to set + * Volume restoreParameters. + * @member {google.cloud.netapp.v1.IRestoreParameters|null|undefined} restoreParameters + * @memberof google.cloud.netapp.v1.Volume + * @instance */ - function UpdateStoragePoolRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + Volume.prototype.restoreParameters = null; /** - * UpdateStoragePoolRequest updateMask. - * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.cloud.netapp.v1.UpdateStoragePoolRequest + * Volume kmsConfig. + * @member {string} kmsConfig + * @memberof google.cloud.netapp.v1.Volume * @instance */ - UpdateStoragePoolRequest.prototype.updateMask = null; + Volume.prototype.kmsConfig = ""; /** - * UpdateStoragePoolRequest storagePool. - * @member {google.cloud.netapp.v1.IStoragePool|null|undefined} storagePool - * @memberof google.cloud.netapp.v1.UpdateStoragePoolRequest + * Volume encryptionType. + * @member {google.cloud.netapp.v1.EncryptionType} encryptionType + * @memberof google.cloud.netapp.v1.Volume * @instance */ - UpdateStoragePoolRequest.prototype.storagePool = null; + Volume.prototype.encryptionType = 0; /** - * Creates a new UpdateStoragePoolRequest instance using the specified properties. - * @function create - * @memberof google.cloud.netapp.v1.UpdateStoragePoolRequest - * @static - * @param {google.cloud.netapp.v1.IUpdateStoragePoolRequest=} [properties] Properties to set - * @returns {google.cloud.netapp.v1.UpdateStoragePoolRequest} UpdateStoragePoolRequest instance + * Volume hasReplication. + * @member {boolean} hasReplication + * @memberof google.cloud.netapp.v1.Volume + * @instance */ - UpdateStoragePoolRequest.create = function create(properties) { - return new UpdateStoragePoolRequest(properties); - }; + Volume.prototype.hasReplication = false; /** - * Encodes the specified UpdateStoragePoolRequest message. Does not implicitly {@link google.cloud.netapp.v1.UpdateStoragePoolRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.netapp.v1.UpdateStoragePoolRequest - * @static - * @param {google.cloud.netapp.v1.IUpdateStoragePoolRequest} message UpdateStoragePoolRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Volume backupConfig. + * @member {google.cloud.netapp.v1.IBackupConfig|null|undefined} backupConfig + * @memberof google.cloud.netapp.v1.Volume + * @instance */ - UpdateStoragePoolRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) - $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.storagePool != null && Object.hasOwnProperty.call(message, "storagePool")) - $root.google.cloud.netapp.v1.StoragePool.encode(message.storagePool, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; + Volume.prototype.backupConfig = null; /** - * Encodes the specified UpdateStoragePoolRequest message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.UpdateStoragePoolRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.netapp.v1.UpdateStoragePoolRequest - * @static - * @param {google.cloud.netapp.v1.IUpdateStoragePoolRequest} message UpdateStoragePoolRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Volume restrictedActions. + * @member {Array.} restrictedActions + * @memberof google.cloud.netapp.v1.Volume + * @instance */ - UpdateStoragePoolRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + Volume.prototype.restrictedActions = $util.emptyArray; /** - * Decodes an UpdateStoragePoolRequest message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.netapp.v1.UpdateStoragePoolRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.netapp.v1.UpdateStoragePoolRequest} UpdateStoragePoolRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Volume largeCapacity. + * @member {boolean} largeCapacity + * @memberof google.cloud.netapp.v1.Volume + * @instance */ - UpdateStoragePoolRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.netapp.v1.UpdateStoragePoolRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); - break; - } - case 2: { - message.storagePool = $root.google.cloud.netapp.v1.StoragePool.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + Volume.prototype.largeCapacity = false; /** - * Decodes an UpdateStoragePoolRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.netapp.v1.UpdateStoragePoolRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.netapp.v1.UpdateStoragePoolRequest} UpdateStoragePoolRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Volume multipleEndpoints. + * @member {boolean} multipleEndpoints + * @memberof google.cloud.netapp.v1.Volume + * @instance */ - UpdateStoragePoolRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + Volume.prototype.multipleEndpoints = false; /** - * Verifies an UpdateStoragePoolRequest message. - * @function verify - * @memberof google.cloud.netapp.v1.UpdateStoragePoolRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * Volume tieringPolicy. + * @member {google.cloud.netapp.v1.ITieringPolicy|null|undefined} tieringPolicy + * @memberof google.cloud.netapp.v1.Volume + * @instance */ - UpdateStoragePoolRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.updateMask != null && message.hasOwnProperty("updateMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.updateMask); - if (error) - return "updateMask." + error; - } - if (message.storagePool != null && message.hasOwnProperty("storagePool")) { - var error = $root.google.cloud.netapp.v1.StoragePool.verify(message.storagePool); - if (error) - return "storagePool." + error; - } - return null; - }; + Volume.prototype.tieringPolicy = null; /** - * Creates an UpdateStoragePoolRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.netapp.v1.UpdateStoragePoolRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.netapp.v1.UpdateStoragePoolRequest} UpdateStoragePoolRequest + * Volume replicaZone. + * @member {string} replicaZone + * @memberof google.cloud.netapp.v1.Volume + * @instance */ - UpdateStoragePoolRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.netapp.v1.UpdateStoragePoolRequest) - return object; - var message = new $root.google.cloud.netapp.v1.UpdateStoragePoolRequest(); - if (object.updateMask != null) { - if (typeof object.updateMask !== "object") - throw TypeError(".google.cloud.netapp.v1.UpdateStoragePoolRequest.updateMask: object expected"); - message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); - } - if (object.storagePool != null) { - if (typeof object.storagePool !== "object") - throw TypeError(".google.cloud.netapp.v1.UpdateStoragePoolRequest.storagePool: object expected"); - message.storagePool = $root.google.cloud.netapp.v1.StoragePool.fromObject(object.storagePool); - } - return message; - }; + Volume.prototype.replicaZone = ""; /** - * Creates a plain object from an UpdateStoragePoolRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.netapp.v1.UpdateStoragePoolRequest - * @static - * @param {google.cloud.netapp.v1.UpdateStoragePoolRequest} message UpdateStoragePoolRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * Volume zone. + * @member {string} zone + * @memberof google.cloud.netapp.v1.Volume + * @instance */ - UpdateStoragePoolRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.updateMask = null; - object.storagePool = null; - } - if (message.updateMask != null && message.hasOwnProperty("updateMask")) - object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); - if (message.storagePool != null && message.hasOwnProperty("storagePool")) - object.storagePool = $root.google.cloud.netapp.v1.StoragePool.toObject(message.storagePool, options); - return object; - }; + Volume.prototype.zone = ""; /** - * Converts this UpdateStoragePoolRequest to JSON. - * @function toJSON - * @memberof google.cloud.netapp.v1.UpdateStoragePoolRequest + * Volume coldTierSizeGib. + * @member {number|Long} coldTierSizeGib + * @memberof google.cloud.netapp.v1.Volume * @instance - * @returns {Object.} JSON object */ - UpdateStoragePoolRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + Volume.prototype.coldTierSizeGib = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * Gets the default type url for UpdateStoragePoolRequest - * @function getTypeUrl - * @memberof google.cloud.netapp.v1.UpdateStoragePoolRequest - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url + * Volume hybridReplicationParameters. + * @member {google.cloud.netapp.v1.IHybridReplicationParameters|null|undefined} hybridReplicationParameters + * @memberof google.cloud.netapp.v1.Volume + * @instance */ - UpdateStoragePoolRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.netapp.v1.UpdateStoragePoolRequest"; - }; - - return UpdateStoragePoolRequest; - })(); - - v1.DeleteStoragePoolRequest = (function() { + Volume.prototype.hybridReplicationParameters = null; - /** - * Properties of a DeleteStoragePoolRequest. - * @memberof google.cloud.netapp.v1 - * @interface IDeleteStoragePoolRequest - * @property {string|null} [name] DeleteStoragePoolRequest name - */ + // OneOf field names bound to virtual getters and setters + var $oneOfFields; /** - * Constructs a new DeleteStoragePoolRequest. - * @memberof google.cloud.netapp.v1 - * @classdesc Represents a DeleteStoragePoolRequest. - * @implements IDeleteStoragePoolRequest - * @constructor - * @param {google.cloud.netapp.v1.IDeleteStoragePoolRequest=} [properties] Properties to set + * Volume _backupConfig. + * @member {"backupConfig"|undefined} _backupConfig + * @memberof google.cloud.netapp.v1.Volume + * @instance */ - function DeleteStoragePoolRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + Object.defineProperty(Volume.prototype, "_backupConfig", { + get: $util.oneOfGetter($oneOfFields = ["backupConfig"]), + set: $util.oneOfSetter($oneOfFields) + }); /** - * DeleteStoragePoolRequest name. - * @member {string} name - * @memberof google.cloud.netapp.v1.DeleteStoragePoolRequest + * Volume _tieringPolicy. + * @member {"tieringPolicy"|undefined} _tieringPolicy + * @memberof google.cloud.netapp.v1.Volume * @instance */ - DeleteStoragePoolRequest.prototype.name = ""; + Object.defineProperty(Volume.prototype, "_tieringPolicy", { + get: $util.oneOfGetter($oneOfFields = ["tieringPolicy"]), + set: $util.oneOfSetter($oneOfFields) + }); /** - * Creates a new DeleteStoragePoolRequest instance using the specified properties. + * Creates a new Volume instance using the specified properties. * @function create - * @memberof google.cloud.netapp.v1.DeleteStoragePoolRequest + * @memberof google.cloud.netapp.v1.Volume * @static - * @param {google.cloud.netapp.v1.IDeleteStoragePoolRequest=} [properties] Properties to set - * @returns {google.cloud.netapp.v1.DeleteStoragePoolRequest} DeleteStoragePoolRequest instance + * @param {google.cloud.netapp.v1.IVolume=} [properties] Properties to set + * @returns {google.cloud.netapp.v1.Volume} Volume instance */ - DeleteStoragePoolRequest.create = function create(properties) { - return new DeleteStoragePoolRequest(properties); + Volume.create = function create(properties) { + return new Volume(properties); }; /** - * Encodes the specified DeleteStoragePoolRequest message. Does not implicitly {@link google.cloud.netapp.v1.DeleteStoragePoolRequest.verify|verify} messages. + * Encodes the specified Volume message. Does not implicitly {@link google.cloud.netapp.v1.Volume.verify|verify} messages. * @function encode - * @memberof google.cloud.netapp.v1.DeleteStoragePoolRequest + * @memberof google.cloud.netapp.v1.Volume * @static - * @param {google.cloud.netapp.v1.IDeleteStoragePoolRequest} message DeleteStoragePoolRequest message or plain object to encode + * @param {google.cloud.netapp.v1.IVolume} message Volume message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteStoragePoolRequest.encode = function encode(message, writer) { + Volume.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.state != null && Object.hasOwnProperty.call(message, "state")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.state); + if (message.stateDetails != null && Object.hasOwnProperty.call(message, "stateDetails")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.stateDetails); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.shareName != null && Object.hasOwnProperty.call(message, "shareName")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.shareName); + if (message.psaRange != null && Object.hasOwnProperty.call(message, "psaRange")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.psaRange); + if (message.storagePool != null && Object.hasOwnProperty.call(message, "storagePool")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.storagePool); + if (message.network != null && Object.hasOwnProperty.call(message, "network")) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.network); + if (message.serviceLevel != null && Object.hasOwnProperty.call(message, "serviceLevel")) + writer.uint32(/* id 9, wireType 0 =*/72).int32(message.serviceLevel); + if (message.capacityGib != null && Object.hasOwnProperty.call(message, "capacityGib")) + writer.uint32(/* id 10, wireType 0 =*/80).int64(message.capacityGib); + if (message.exportPolicy != null && Object.hasOwnProperty.call(message, "exportPolicy")) + $root.google.cloud.netapp.v1.ExportPolicy.encode(message.exportPolicy, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); + if (message.protocols != null && message.protocols.length) { + writer.uint32(/* id 12, wireType 2 =*/98).fork(); + for (var i = 0; i < message.protocols.length; ++i) + writer.int32(message.protocols[i]); + writer.ldelim(); + } + if (message.smbSettings != null && message.smbSettings.length) { + writer.uint32(/* id 13, wireType 2 =*/106).fork(); + for (var i = 0; i < message.smbSettings.length; ++i) + writer.int32(message.smbSettings[i]); + writer.ldelim(); + } + if (message.mountOptions != null && message.mountOptions.length) + for (var i = 0; i < message.mountOptions.length; ++i) + $root.google.cloud.netapp.v1.MountOption.encode(message.mountOptions[i], writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim(); + if (message.unixPermissions != null && Object.hasOwnProperty.call(message, "unixPermissions")) + writer.uint32(/* id 15, wireType 2 =*/122).string(message.unixPermissions); + if (message.labels != null && Object.hasOwnProperty.call(message, "labels")) + for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i) + writer.uint32(/* id 16, wireType 2 =*/130).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); + if (message.description != null && Object.hasOwnProperty.call(message, "description")) + writer.uint32(/* id 17, wireType 2 =*/138).string(message.description); + if (message.snapshotPolicy != null && Object.hasOwnProperty.call(message, "snapshotPolicy")) + $root.google.cloud.netapp.v1.SnapshotPolicy.encode(message.snapshotPolicy, writer.uint32(/* id 18, wireType 2 =*/146).fork()).ldelim(); + if (message.snapReserve != null && Object.hasOwnProperty.call(message, "snapReserve")) + writer.uint32(/* id 19, wireType 1 =*/153).double(message.snapReserve); + if (message.snapshotDirectory != null && Object.hasOwnProperty.call(message, "snapshotDirectory")) + writer.uint32(/* id 20, wireType 0 =*/160).bool(message.snapshotDirectory); + if (message.usedGib != null && Object.hasOwnProperty.call(message, "usedGib")) + writer.uint32(/* id 21, wireType 0 =*/168).int64(message.usedGib); + if (message.securityStyle != null && Object.hasOwnProperty.call(message, "securityStyle")) + writer.uint32(/* id 22, wireType 0 =*/176).int32(message.securityStyle); + if (message.kerberosEnabled != null && Object.hasOwnProperty.call(message, "kerberosEnabled")) + writer.uint32(/* id 23, wireType 0 =*/184).bool(message.kerberosEnabled); + if (message.ldapEnabled != null && Object.hasOwnProperty.call(message, "ldapEnabled")) + writer.uint32(/* id 24, wireType 0 =*/192).bool(message.ldapEnabled); + if (message.activeDirectory != null && Object.hasOwnProperty.call(message, "activeDirectory")) + writer.uint32(/* id 25, wireType 2 =*/202).string(message.activeDirectory); + if (message.restoreParameters != null && Object.hasOwnProperty.call(message, "restoreParameters")) + $root.google.cloud.netapp.v1.RestoreParameters.encode(message.restoreParameters, writer.uint32(/* id 26, wireType 2 =*/210).fork()).ldelim(); + if (message.kmsConfig != null && Object.hasOwnProperty.call(message, "kmsConfig")) + writer.uint32(/* id 27, wireType 2 =*/218).string(message.kmsConfig); + if (message.encryptionType != null && Object.hasOwnProperty.call(message, "encryptionType")) + writer.uint32(/* id 28, wireType 0 =*/224).int32(message.encryptionType); + if (message.hasReplication != null && Object.hasOwnProperty.call(message, "hasReplication")) + writer.uint32(/* id 29, wireType 0 =*/232).bool(message.hasReplication); + if (message.backupConfig != null && Object.hasOwnProperty.call(message, "backupConfig")) + $root.google.cloud.netapp.v1.BackupConfig.encode(message.backupConfig, writer.uint32(/* id 30, wireType 2 =*/242).fork()).ldelim(); + if (message.restrictedActions != null && message.restrictedActions.length) { + writer.uint32(/* id 31, wireType 2 =*/250).fork(); + for (var i = 0; i < message.restrictedActions.length; ++i) + writer.int32(message.restrictedActions[i]); + writer.ldelim(); + } + if (message.largeCapacity != null && Object.hasOwnProperty.call(message, "largeCapacity")) + writer.uint32(/* id 32, wireType 0 =*/256).bool(message.largeCapacity); + if (message.multipleEndpoints != null && Object.hasOwnProperty.call(message, "multipleEndpoints")) + writer.uint32(/* id 33, wireType 0 =*/264).bool(message.multipleEndpoints); + if (message.tieringPolicy != null && Object.hasOwnProperty.call(message, "tieringPolicy")) + $root.google.cloud.netapp.v1.TieringPolicy.encode(message.tieringPolicy, writer.uint32(/* id 34, wireType 2 =*/274).fork()).ldelim(); + if (message.replicaZone != null && Object.hasOwnProperty.call(message, "replicaZone")) + writer.uint32(/* id 36, wireType 2 =*/290).string(message.replicaZone); + if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) + writer.uint32(/* id 37, wireType 2 =*/298).string(message.zone); + if (message.coldTierSizeGib != null && Object.hasOwnProperty.call(message, "coldTierSizeGib")) + writer.uint32(/* id 39, wireType 0 =*/312).int64(message.coldTierSizeGib); + if (message.hybridReplicationParameters != null && Object.hasOwnProperty.call(message, "hybridReplicationParameters")) + $root.google.cloud.netapp.v1.HybridReplicationParameters.encode(message.hybridReplicationParameters, writer.uint32(/* id 40, wireType 2 =*/322).fork()).ldelim(); return writer; }; /** - * Encodes the specified DeleteStoragePoolRequest message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.DeleteStoragePoolRequest.verify|verify} messages. + * Encodes the specified Volume message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.Volume.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.netapp.v1.DeleteStoragePoolRequest + * @memberof google.cloud.netapp.v1.Volume * @static - * @param {google.cloud.netapp.v1.IDeleteStoragePoolRequest} message DeleteStoragePoolRequest message or plain object to encode + * @param {google.cloud.netapp.v1.IVolume} message Volume message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteStoragePoolRequest.encodeDelimited = function encodeDelimited(message, writer) { + Volume.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteStoragePoolRequest message from the specified reader or buffer. + * Decodes a Volume message from the specified reader or buffer. * @function decode - * @memberof google.cloud.netapp.v1.DeleteStoragePoolRequest + * @memberof google.cloud.netapp.v1.Volume * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.netapp.v1.DeleteStoragePoolRequest} DeleteStoragePoolRequest + * @returns {google.cloud.netapp.v1.Volume} Volume * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteStoragePoolRequest.decode = function decode(reader, length) { + Volume.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.netapp.v1.DeleteStoragePoolRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.netapp.v1.Volume(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -20267,6 +20388,196 @@ message.name = reader.string(); break; } + case 2: { + message.state = reader.int32(); + break; + } + case 3: { + message.stateDetails = reader.string(); + break; + } + case 4: { + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 5: { + message.shareName = reader.string(); + break; + } + case 6: { + message.psaRange = reader.string(); + break; + } + case 7: { + message.storagePool = reader.string(); + break; + } + case 8: { + message.network = reader.string(); + break; + } + case 9: { + message.serviceLevel = reader.int32(); + break; + } + case 10: { + message.capacityGib = reader.int64(); + break; + } + case 11: { + message.exportPolicy = $root.google.cloud.netapp.v1.ExportPolicy.decode(reader, reader.uint32()); + break; + } + case 12: { + if (!(message.protocols && message.protocols.length)) + message.protocols = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.protocols.push(reader.int32()); + } else + message.protocols.push(reader.int32()); + break; + } + case 13: { + if (!(message.smbSettings && message.smbSettings.length)) + message.smbSettings = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.smbSettings.push(reader.int32()); + } else + message.smbSettings.push(reader.int32()); + break; + } + case 14: { + if (!(message.mountOptions && message.mountOptions.length)) + message.mountOptions = []; + message.mountOptions.push($root.google.cloud.netapp.v1.MountOption.decode(reader, reader.uint32())); + break; + } + case 15: { + message.unixPermissions = reader.string(); + break; + } + case 16: { + if (message.labels === $util.emptyObject) + message.labels = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.labels[key] = value; + break; + } + case 17: { + message.description = reader.string(); + break; + } + case 18: { + message.snapshotPolicy = $root.google.cloud.netapp.v1.SnapshotPolicy.decode(reader, reader.uint32()); + break; + } + case 19: { + message.snapReserve = reader.double(); + break; + } + case 20: { + message.snapshotDirectory = reader.bool(); + break; + } + case 21: { + message.usedGib = reader.int64(); + break; + } + case 22: { + message.securityStyle = reader.int32(); + break; + } + case 23: { + message.kerberosEnabled = reader.bool(); + break; + } + case 24: { + message.ldapEnabled = reader.bool(); + break; + } + case 25: { + message.activeDirectory = reader.string(); + break; + } + case 26: { + message.restoreParameters = $root.google.cloud.netapp.v1.RestoreParameters.decode(reader, reader.uint32()); + break; + } + case 27: { + message.kmsConfig = reader.string(); + break; + } + case 28: { + message.encryptionType = reader.int32(); + break; + } + case 29: { + message.hasReplication = reader.bool(); + break; + } + case 30: { + message.backupConfig = $root.google.cloud.netapp.v1.BackupConfig.decode(reader, reader.uint32()); + break; + } + case 31: { + if (!(message.restrictedActions && message.restrictedActions.length)) + message.restrictedActions = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.restrictedActions.push(reader.int32()); + } else + message.restrictedActions.push(reader.int32()); + break; + } + case 32: { + message.largeCapacity = reader.bool(); + break; + } + case 33: { + message.multipleEndpoints = reader.bool(); + break; + } + case 34: { + message.tieringPolicy = $root.google.cloud.netapp.v1.TieringPolicy.decode(reader, reader.uint32()); + break; + } + case 36: { + message.replicaZone = reader.string(); + break; + } + case 37: { + message.zone = reader.string(); + break; + } + case 39: { + message.coldTierSizeGib = reader.int64(); + break; + } + case 40: { + message.hybridReplicationParameters = $root.google.cloud.netapp.v1.HybridReplicationParameters.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -20276,198 +20587,2507 @@ }; /** - * Decodes a DeleteStoragePoolRequest message from the specified reader or buffer, length delimited. + * Decodes a Volume message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.netapp.v1.DeleteStoragePoolRequest + * @memberof google.cloud.netapp.v1.Volume * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.netapp.v1.DeleteStoragePoolRequest} DeleteStoragePoolRequest + * @returns {google.cloud.netapp.v1.Volume} Volume * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteStoragePoolRequest.decodeDelimited = function decodeDelimited(reader) { + Volume.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteStoragePoolRequest message. + * Verifies a Volume message. * @function verify - * @memberof google.cloud.netapp.v1.DeleteStoragePoolRequest + * @memberof google.cloud.netapp.v1.Volume * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteStoragePoolRequest.verify = function verify(message) { + Volume.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + var properties = {}; if (message.name != null && message.hasOwnProperty("name")) if (!$util.isString(message.name)) return "name: string expected"; + if (message.state != null && message.hasOwnProperty("state")) + switch (message.state) { + default: + return "state: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + case 9: + break; + } + if (message.stateDetails != null && message.hasOwnProperty("stateDetails")) + if (!$util.isString(message.stateDetails)) + return "stateDetails: string expected"; + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; + } + if (message.shareName != null && message.hasOwnProperty("shareName")) + if (!$util.isString(message.shareName)) + return "shareName: string expected"; + if (message.psaRange != null && message.hasOwnProperty("psaRange")) + if (!$util.isString(message.psaRange)) + return "psaRange: string expected"; + if (message.storagePool != null && message.hasOwnProperty("storagePool")) + if (!$util.isString(message.storagePool)) + return "storagePool: string expected"; + if (message.network != null && message.hasOwnProperty("network")) + if (!$util.isString(message.network)) + return "network: string expected"; + if (message.serviceLevel != null && message.hasOwnProperty("serviceLevel")) + switch (message.serviceLevel) { + default: + return "serviceLevel: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + break; + } + if (message.capacityGib != null && message.hasOwnProperty("capacityGib")) + if (!$util.isInteger(message.capacityGib) && !(message.capacityGib && $util.isInteger(message.capacityGib.low) && $util.isInteger(message.capacityGib.high))) + return "capacityGib: integer|Long expected"; + if (message.exportPolicy != null && message.hasOwnProperty("exportPolicy")) { + var error = $root.google.cloud.netapp.v1.ExportPolicy.verify(message.exportPolicy); + if (error) + return "exportPolicy." + error; + } + if (message.protocols != null && message.hasOwnProperty("protocols")) { + if (!Array.isArray(message.protocols)) + return "protocols: array expected"; + for (var i = 0; i < message.protocols.length; ++i) + switch (message.protocols[i]) { + default: + return "protocols: enum value[] expected"; + case 0: + case 1: + case 2: + case 3: + break; + } + } + if (message.smbSettings != null && message.hasOwnProperty("smbSettings")) { + if (!Array.isArray(message.smbSettings)) + return "smbSettings: array expected"; + for (var i = 0; i < message.smbSettings.length; ++i) + switch (message.smbSettings[i]) { + default: + return "smbSettings: enum value[] expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + case 9: + break; + } + } + if (message.mountOptions != null && message.hasOwnProperty("mountOptions")) { + if (!Array.isArray(message.mountOptions)) + return "mountOptions: array expected"; + for (var i = 0; i < message.mountOptions.length; ++i) { + var error = $root.google.cloud.netapp.v1.MountOption.verify(message.mountOptions[i]); + if (error) + return "mountOptions." + error; + } + } + if (message.unixPermissions != null && message.hasOwnProperty("unixPermissions")) + if (!$util.isString(message.unixPermissions)) + return "unixPermissions: string expected"; + if (message.labels != null && message.hasOwnProperty("labels")) { + if (!$util.isObject(message.labels)) + return "labels: object expected"; + var key = Object.keys(message.labels); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.labels[key[i]])) + return "labels: string{k:string} expected"; + } + if (message.description != null && message.hasOwnProperty("description")) + if (!$util.isString(message.description)) + return "description: string expected"; + if (message.snapshotPolicy != null && message.hasOwnProperty("snapshotPolicy")) { + var error = $root.google.cloud.netapp.v1.SnapshotPolicy.verify(message.snapshotPolicy); + if (error) + return "snapshotPolicy." + error; + } + if (message.snapReserve != null && message.hasOwnProperty("snapReserve")) + if (typeof message.snapReserve !== "number") + return "snapReserve: number expected"; + if (message.snapshotDirectory != null && message.hasOwnProperty("snapshotDirectory")) + if (typeof message.snapshotDirectory !== "boolean") + return "snapshotDirectory: boolean expected"; + if (message.usedGib != null && message.hasOwnProperty("usedGib")) + if (!$util.isInteger(message.usedGib) && !(message.usedGib && $util.isInteger(message.usedGib.low) && $util.isInteger(message.usedGib.high))) + return "usedGib: integer|Long expected"; + if (message.securityStyle != null && message.hasOwnProperty("securityStyle")) + switch (message.securityStyle) { + default: + return "securityStyle: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.kerberosEnabled != null && message.hasOwnProperty("kerberosEnabled")) + if (typeof message.kerberosEnabled !== "boolean") + return "kerberosEnabled: boolean expected"; + if (message.ldapEnabled != null && message.hasOwnProperty("ldapEnabled")) + if (typeof message.ldapEnabled !== "boolean") + return "ldapEnabled: boolean expected"; + if (message.activeDirectory != null && message.hasOwnProperty("activeDirectory")) + if (!$util.isString(message.activeDirectory)) + return "activeDirectory: string expected"; + if (message.restoreParameters != null && message.hasOwnProperty("restoreParameters")) { + var error = $root.google.cloud.netapp.v1.RestoreParameters.verify(message.restoreParameters); + if (error) + return "restoreParameters." + error; + } + if (message.kmsConfig != null && message.hasOwnProperty("kmsConfig")) + if (!$util.isString(message.kmsConfig)) + return "kmsConfig: string expected"; + if (message.encryptionType != null && message.hasOwnProperty("encryptionType")) + switch (message.encryptionType) { + default: + return "encryptionType: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.hasReplication != null && message.hasOwnProperty("hasReplication")) + if (typeof message.hasReplication !== "boolean") + return "hasReplication: boolean expected"; + if (message.backupConfig != null && message.hasOwnProperty("backupConfig")) { + properties._backupConfig = 1; + { + var error = $root.google.cloud.netapp.v1.BackupConfig.verify(message.backupConfig); + if (error) + return "backupConfig." + error; + } + } + if (message.restrictedActions != null && message.hasOwnProperty("restrictedActions")) { + if (!Array.isArray(message.restrictedActions)) + return "restrictedActions: array expected"; + for (var i = 0; i < message.restrictedActions.length; ++i) + switch (message.restrictedActions[i]) { + default: + return "restrictedActions: enum value[] expected"; + case 0: + case 1: + break; + } + } + if (message.largeCapacity != null && message.hasOwnProperty("largeCapacity")) + if (typeof message.largeCapacity !== "boolean") + return "largeCapacity: boolean expected"; + if (message.multipleEndpoints != null && message.hasOwnProperty("multipleEndpoints")) + if (typeof message.multipleEndpoints !== "boolean") + return "multipleEndpoints: boolean expected"; + if (message.tieringPolicy != null && message.hasOwnProperty("tieringPolicy")) { + properties._tieringPolicy = 1; + { + var error = $root.google.cloud.netapp.v1.TieringPolicy.verify(message.tieringPolicy); + if (error) + return "tieringPolicy." + error; + } + } + if (message.replicaZone != null && message.hasOwnProperty("replicaZone")) + if (!$util.isString(message.replicaZone)) + return "replicaZone: string expected"; + if (message.zone != null && message.hasOwnProperty("zone")) + if (!$util.isString(message.zone)) + return "zone: string expected"; + if (message.coldTierSizeGib != null && message.hasOwnProperty("coldTierSizeGib")) + if (!$util.isInteger(message.coldTierSizeGib) && !(message.coldTierSizeGib && $util.isInteger(message.coldTierSizeGib.low) && $util.isInteger(message.coldTierSizeGib.high))) + return "coldTierSizeGib: integer|Long expected"; + if (message.hybridReplicationParameters != null && message.hasOwnProperty("hybridReplicationParameters")) { + var error = $root.google.cloud.netapp.v1.HybridReplicationParameters.verify(message.hybridReplicationParameters); + if (error) + return "hybridReplicationParameters." + error; + } return null; }; /** - * Creates a DeleteStoragePoolRequest message from a plain object. Also converts values to their respective internal types. + * Creates a Volume message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.netapp.v1.DeleteStoragePoolRequest + * @memberof google.cloud.netapp.v1.Volume * @static * @param {Object.} object Plain object - * @returns {google.cloud.netapp.v1.DeleteStoragePoolRequest} DeleteStoragePoolRequest + * @returns {google.cloud.netapp.v1.Volume} Volume */ - DeleteStoragePoolRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.netapp.v1.DeleteStoragePoolRequest) + Volume.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.netapp.v1.Volume) return object; - var message = new $root.google.cloud.netapp.v1.DeleteStoragePoolRequest(); + var message = new $root.google.cloud.netapp.v1.Volume(); if (object.name != null) message.name = String(object.name); - return message; - }; - - /** - * Creates a plain object from a DeleteStoragePoolRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.netapp.v1.DeleteStoragePoolRequest - * @static - * @param {google.cloud.netapp.v1.DeleteStoragePoolRequest} message DeleteStoragePoolRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - DeleteStoragePoolRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - return object; - }; - - /** - * Converts this DeleteStoragePoolRequest to JSON. - * @function toJSON - * @memberof google.cloud.netapp.v1.DeleteStoragePoolRequest - * @instance - * @returns {Object.} JSON object - */ - DeleteStoragePoolRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for DeleteStoragePoolRequest - * @function getTypeUrl - * @memberof google.cloud.netapp.v1.DeleteStoragePoolRequest - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - DeleteStoragePoolRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.netapp.v1.DeleteStoragePoolRequest"; - }; - - return DeleteStoragePoolRequest; - })(); - - v1.SwitchActiveReplicaZoneRequest = (function() { - - /** - * Properties of a SwitchActiveReplicaZoneRequest. - * @memberof google.cloud.netapp.v1 - * @interface ISwitchActiveReplicaZoneRequest - * @property {string|null} [name] SwitchActiveReplicaZoneRequest name - */ - - /** - * Constructs a new SwitchActiveReplicaZoneRequest. - * @memberof google.cloud.netapp.v1 - * @classdesc Represents a SwitchActiveReplicaZoneRequest. - * @implements ISwitchActiveReplicaZoneRequest - * @constructor - * @param {google.cloud.netapp.v1.ISwitchActiveReplicaZoneRequest=} [properties] Properties to set - */ - function SwitchActiveReplicaZoneRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * SwitchActiveReplicaZoneRequest name. - * @member {string} name - * @memberof google.cloud.netapp.v1.SwitchActiveReplicaZoneRequest - * @instance - */ - SwitchActiveReplicaZoneRequest.prototype.name = ""; - - /** - * Creates a new SwitchActiveReplicaZoneRequest instance using the specified properties. + switch (object.state) { + default: + if (typeof object.state === "number") { + message.state = object.state; + break; + } + break; + case "STATE_UNSPECIFIED": + case 0: + message.state = 0; + break; + case "READY": + case 1: + message.state = 1; + break; + case "CREATING": + case 2: + message.state = 2; + break; + case "DELETING": + case 3: + message.state = 3; + break; + case "UPDATING": + case 4: + message.state = 4; + break; + case "RESTORING": + case 5: + message.state = 5; + break; + case "DISABLED": + case 6: + message.state = 6; + break; + case "ERROR": + case 7: + message.state = 7; + break; + case "PREPARING": + case 8: + message.state = 8; + break; + case "READ_ONLY": + case 9: + message.state = 9; + break; + } + if (object.stateDetails != null) + message.stateDetails = String(object.stateDetails); + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.cloud.netapp.v1.Volume.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + } + if (object.shareName != null) + message.shareName = String(object.shareName); + if (object.psaRange != null) + message.psaRange = String(object.psaRange); + if (object.storagePool != null) + message.storagePool = String(object.storagePool); + if (object.network != null) + message.network = String(object.network); + switch (object.serviceLevel) { + default: + if (typeof object.serviceLevel === "number") { + message.serviceLevel = object.serviceLevel; + break; + } + break; + case "SERVICE_LEVEL_UNSPECIFIED": + case 0: + message.serviceLevel = 0; + break; + case "PREMIUM": + case 1: + message.serviceLevel = 1; + break; + case "EXTREME": + case 2: + message.serviceLevel = 2; + break; + case "STANDARD": + case 3: + message.serviceLevel = 3; + break; + case "FLEX": + case 4: + message.serviceLevel = 4; + break; + } + if (object.capacityGib != null) + if ($util.Long) + (message.capacityGib = $util.Long.fromValue(object.capacityGib)).unsigned = false; + else if (typeof object.capacityGib === "string") + message.capacityGib = parseInt(object.capacityGib, 10); + else if (typeof object.capacityGib === "number") + message.capacityGib = object.capacityGib; + else if (typeof object.capacityGib === "object") + message.capacityGib = new $util.LongBits(object.capacityGib.low >>> 0, object.capacityGib.high >>> 0).toNumber(); + if (object.exportPolicy != null) { + if (typeof object.exportPolicy !== "object") + throw TypeError(".google.cloud.netapp.v1.Volume.exportPolicy: object expected"); + message.exportPolicy = $root.google.cloud.netapp.v1.ExportPolicy.fromObject(object.exportPolicy); + } + if (object.protocols) { + if (!Array.isArray(object.protocols)) + throw TypeError(".google.cloud.netapp.v1.Volume.protocols: array expected"); + message.protocols = []; + for (var i = 0; i < object.protocols.length; ++i) + switch (object.protocols[i]) { + default: + if (typeof object.protocols[i] === "number") { + message.protocols[i] = object.protocols[i]; + break; + } + case "PROTOCOLS_UNSPECIFIED": + case 0: + message.protocols[i] = 0; + break; + case "NFSV3": + case 1: + message.protocols[i] = 1; + break; + case "NFSV4": + case 2: + message.protocols[i] = 2; + break; + case "SMB": + case 3: + message.protocols[i] = 3; + break; + } + } + if (object.smbSettings) { + if (!Array.isArray(object.smbSettings)) + throw TypeError(".google.cloud.netapp.v1.Volume.smbSettings: array expected"); + message.smbSettings = []; + for (var i = 0; i < object.smbSettings.length; ++i) + switch (object.smbSettings[i]) { + default: + if (typeof object.smbSettings[i] === "number") { + message.smbSettings[i] = object.smbSettings[i]; + break; + } + case "SMB_SETTINGS_UNSPECIFIED": + case 0: + message.smbSettings[i] = 0; + break; + case "ENCRYPT_DATA": + case 1: + message.smbSettings[i] = 1; + break; + case "BROWSABLE": + case 2: + message.smbSettings[i] = 2; + break; + case "CHANGE_NOTIFY": + case 3: + message.smbSettings[i] = 3; + break; + case "NON_BROWSABLE": + case 4: + message.smbSettings[i] = 4; + break; + case "OPLOCKS": + case 5: + message.smbSettings[i] = 5; + break; + case "SHOW_SNAPSHOT": + case 6: + message.smbSettings[i] = 6; + break; + case "SHOW_PREVIOUS_VERSIONS": + case 7: + message.smbSettings[i] = 7; + break; + case "ACCESS_BASED_ENUMERATION": + case 8: + message.smbSettings[i] = 8; + break; + case "CONTINUOUSLY_AVAILABLE": + case 9: + message.smbSettings[i] = 9; + break; + } + } + if (object.mountOptions) { + if (!Array.isArray(object.mountOptions)) + throw TypeError(".google.cloud.netapp.v1.Volume.mountOptions: array expected"); + message.mountOptions = []; + for (var i = 0; i < object.mountOptions.length; ++i) { + if (typeof object.mountOptions[i] !== "object") + throw TypeError(".google.cloud.netapp.v1.Volume.mountOptions: object expected"); + message.mountOptions[i] = $root.google.cloud.netapp.v1.MountOption.fromObject(object.mountOptions[i]); + } + } + if (object.unixPermissions != null) + message.unixPermissions = String(object.unixPermissions); + if (object.labels) { + if (typeof object.labels !== "object") + throw TypeError(".google.cloud.netapp.v1.Volume.labels: object expected"); + message.labels = {}; + for (var keys = Object.keys(object.labels), i = 0; i < keys.length; ++i) + message.labels[keys[i]] = String(object.labels[keys[i]]); + } + if (object.description != null) + message.description = String(object.description); + if (object.snapshotPolicy != null) { + if (typeof object.snapshotPolicy !== "object") + throw TypeError(".google.cloud.netapp.v1.Volume.snapshotPolicy: object expected"); + message.snapshotPolicy = $root.google.cloud.netapp.v1.SnapshotPolicy.fromObject(object.snapshotPolicy); + } + if (object.snapReserve != null) + message.snapReserve = Number(object.snapReserve); + if (object.snapshotDirectory != null) + message.snapshotDirectory = Boolean(object.snapshotDirectory); + if (object.usedGib != null) + if ($util.Long) + (message.usedGib = $util.Long.fromValue(object.usedGib)).unsigned = false; + else if (typeof object.usedGib === "string") + message.usedGib = parseInt(object.usedGib, 10); + else if (typeof object.usedGib === "number") + message.usedGib = object.usedGib; + else if (typeof object.usedGib === "object") + message.usedGib = new $util.LongBits(object.usedGib.low >>> 0, object.usedGib.high >>> 0).toNumber(); + switch (object.securityStyle) { + default: + if (typeof object.securityStyle === "number") { + message.securityStyle = object.securityStyle; + break; + } + break; + case "SECURITY_STYLE_UNSPECIFIED": + case 0: + message.securityStyle = 0; + break; + case "NTFS": + case 1: + message.securityStyle = 1; + break; + case "UNIX": + case 2: + message.securityStyle = 2; + break; + } + if (object.kerberosEnabled != null) + message.kerberosEnabled = Boolean(object.kerberosEnabled); + if (object.ldapEnabled != null) + message.ldapEnabled = Boolean(object.ldapEnabled); + if (object.activeDirectory != null) + message.activeDirectory = String(object.activeDirectory); + if (object.restoreParameters != null) { + if (typeof object.restoreParameters !== "object") + throw TypeError(".google.cloud.netapp.v1.Volume.restoreParameters: object expected"); + message.restoreParameters = $root.google.cloud.netapp.v1.RestoreParameters.fromObject(object.restoreParameters); + } + if (object.kmsConfig != null) + message.kmsConfig = String(object.kmsConfig); + switch (object.encryptionType) { + default: + if (typeof object.encryptionType === "number") { + message.encryptionType = object.encryptionType; + break; + } + break; + case "ENCRYPTION_TYPE_UNSPECIFIED": + case 0: + message.encryptionType = 0; + break; + case "SERVICE_MANAGED": + case 1: + message.encryptionType = 1; + break; + case "CLOUD_KMS": + case 2: + message.encryptionType = 2; + break; + } + if (object.hasReplication != null) + message.hasReplication = Boolean(object.hasReplication); + if (object.backupConfig != null) { + if (typeof object.backupConfig !== "object") + throw TypeError(".google.cloud.netapp.v1.Volume.backupConfig: object expected"); + message.backupConfig = $root.google.cloud.netapp.v1.BackupConfig.fromObject(object.backupConfig); + } + if (object.restrictedActions) { + if (!Array.isArray(object.restrictedActions)) + throw TypeError(".google.cloud.netapp.v1.Volume.restrictedActions: array expected"); + message.restrictedActions = []; + for (var i = 0; i < object.restrictedActions.length; ++i) + switch (object.restrictedActions[i]) { + default: + if (typeof object.restrictedActions[i] === "number") { + message.restrictedActions[i] = object.restrictedActions[i]; + break; + } + case "RESTRICTED_ACTION_UNSPECIFIED": + case 0: + message.restrictedActions[i] = 0; + break; + case "DELETE": + case 1: + message.restrictedActions[i] = 1; + break; + } + } + if (object.largeCapacity != null) + message.largeCapacity = Boolean(object.largeCapacity); + if (object.multipleEndpoints != null) + message.multipleEndpoints = Boolean(object.multipleEndpoints); + if (object.tieringPolicy != null) { + if (typeof object.tieringPolicy !== "object") + throw TypeError(".google.cloud.netapp.v1.Volume.tieringPolicy: object expected"); + message.tieringPolicy = $root.google.cloud.netapp.v1.TieringPolicy.fromObject(object.tieringPolicy); + } + if (object.replicaZone != null) + message.replicaZone = String(object.replicaZone); + if (object.zone != null) + message.zone = String(object.zone); + if (object.coldTierSizeGib != null) + if ($util.Long) + (message.coldTierSizeGib = $util.Long.fromValue(object.coldTierSizeGib)).unsigned = false; + else if (typeof object.coldTierSizeGib === "string") + message.coldTierSizeGib = parseInt(object.coldTierSizeGib, 10); + else if (typeof object.coldTierSizeGib === "number") + message.coldTierSizeGib = object.coldTierSizeGib; + else if (typeof object.coldTierSizeGib === "object") + message.coldTierSizeGib = new $util.LongBits(object.coldTierSizeGib.low >>> 0, object.coldTierSizeGib.high >>> 0).toNumber(); + if (object.hybridReplicationParameters != null) { + if (typeof object.hybridReplicationParameters !== "object") + throw TypeError(".google.cloud.netapp.v1.Volume.hybridReplicationParameters: object expected"); + message.hybridReplicationParameters = $root.google.cloud.netapp.v1.HybridReplicationParameters.fromObject(object.hybridReplicationParameters); + } + return message; + }; + + /** + * Creates a plain object from a Volume message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.netapp.v1.Volume + * @static + * @param {google.cloud.netapp.v1.Volume} message Volume + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Volume.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.protocols = []; + object.smbSettings = []; + object.mountOptions = []; + object.restrictedActions = []; + } + if (options.objects || options.defaults) + object.labels = {}; + if (options.defaults) { + object.name = ""; + object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; + object.stateDetails = ""; + object.createTime = null; + object.shareName = ""; + object.psaRange = ""; + object.storagePool = ""; + object.network = ""; + object.serviceLevel = options.enums === String ? "SERVICE_LEVEL_UNSPECIFIED" : 0; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.capacityGib = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.capacityGib = options.longs === String ? "0" : 0; + object.exportPolicy = null; + object.unixPermissions = ""; + object.description = ""; + object.snapshotPolicy = null; + object.snapReserve = 0; + object.snapshotDirectory = false; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.usedGib = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.usedGib = options.longs === String ? "0" : 0; + object.securityStyle = options.enums === String ? "SECURITY_STYLE_UNSPECIFIED" : 0; + object.kerberosEnabled = false; + object.ldapEnabled = false; + object.activeDirectory = ""; + object.restoreParameters = null; + object.kmsConfig = ""; + object.encryptionType = options.enums === String ? "ENCRYPTION_TYPE_UNSPECIFIED" : 0; + object.hasReplication = false; + object.largeCapacity = false; + object.multipleEndpoints = false; + object.replicaZone = ""; + object.zone = ""; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.coldTierSizeGib = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.coldTierSizeGib = options.longs === String ? "0" : 0; + object.hybridReplicationParameters = null; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.state != null && message.hasOwnProperty("state")) + object.state = options.enums === String ? $root.google.cloud.netapp.v1.Volume.State[message.state] === undefined ? message.state : $root.google.cloud.netapp.v1.Volume.State[message.state] : message.state; + if (message.stateDetails != null && message.hasOwnProperty("stateDetails")) + object.stateDetails = message.stateDetails; + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.shareName != null && message.hasOwnProperty("shareName")) + object.shareName = message.shareName; + if (message.psaRange != null && message.hasOwnProperty("psaRange")) + object.psaRange = message.psaRange; + if (message.storagePool != null && message.hasOwnProperty("storagePool")) + object.storagePool = message.storagePool; + if (message.network != null && message.hasOwnProperty("network")) + object.network = message.network; + if (message.serviceLevel != null && message.hasOwnProperty("serviceLevel")) + object.serviceLevel = options.enums === String ? $root.google.cloud.netapp.v1.ServiceLevel[message.serviceLevel] === undefined ? message.serviceLevel : $root.google.cloud.netapp.v1.ServiceLevel[message.serviceLevel] : message.serviceLevel; + if (message.capacityGib != null && message.hasOwnProperty("capacityGib")) + if (typeof message.capacityGib === "number") + object.capacityGib = options.longs === String ? String(message.capacityGib) : message.capacityGib; + else + object.capacityGib = options.longs === String ? $util.Long.prototype.toString.call(message.capacityGib) : options.longs === Number ? new $util.LongBits(message.capacityGib.low >>> 0, message.capacityGib.high >>> 0).toNumber() : message.capacityGib; + if (message.exportPolicy != null && message.hasOwnProperty("exportPolicy")) + object.exportPolicy = $root.google.cloud.netapp.v1.ExportPolicy.toObject(message.exportPolicy, options); + if (message.protocols && message.protocols.length) { + object.protocols = []; + for (var j = 0; j < message.protocols.length; ++j) + object.protocols[j] = options.enums === String ? $root.google.cloud.netapp.v1.Protocols[message.protocols[j]] === undefined ? message.protocols[j] : $root.google.cloud.netapp.v1.Protocols[message.protocols[j]] : message.protocols[j]; + } + if (message.smbSettings && message.smbSettings.length) { + object.smbSettings = []; + for (var j = 0; j < message.smbSettings.length; ++j) + object.smbSettings[j] = options.enums === String ? $root.google.cloud.netapp.v1.SMBSettings[message.smbSettings[j]] === undefined ? message.smbSettings[j] : $root.google.cloud.netapp.v1.SMBSettings[message.smbSettings[j]] : message.smbSettings[j]; + } + if (message.mountOptions && message.mountOptions.length) { + object.mountOptions = []; + for (var j = 0; j < message.mountOptions.length; ++j) + object.mountOptions[j] = $root.google.cloud.netapp.v1.MountOption.toObject(message.mountOptions[j], options); + } + if (message.unixPermissions != null && message.hasOwnProperty("unixPermissions")) + object.unixPermissions = message.unixPermissions; + var keys2; + if (message.labels && (keys2 = Object.keys(message.labels)).length) { + object.labels = {}; + for (var j = 0; j < keys2.length; ++j) + object.labels[keys2[j]] = message.labels[keys2[j]]; + } + if (message.description != null && message.hasOwnProperty("description")) + object.description = message.description; + if (message.snapshotPolicy != null && message.hasOwnProperty("snapshotPolicy")) + object.snapshotPolicy = $root.google.cloud.netapp.v1.SnapshotPolicy.toObject(message.snapshotPolicy, options); + if (message.snapReserve != null && message.hasOwnProperty("snapReserve")) + object.snapReserve = options.json && !isFinite(message.snapReserve) ? String(message.snapReserve) : message.snapReserve; + if (message.snapshotDirectory != null && message.hasOwnProperty("snapshotDirectory")) + object.snapshotDirectory = message.snapshotDirectory; + if (message.usedGib != null && message.hasOwnProperty("usedGib")) + if (typeof message.usedGib === "number") + object.usedGib = options.longs === String ? String(message.usedGib) : message.usedGib; + else + object.usedGib = options.longs === String ? $util.Long.prototype.toString.call(message.usedGib) : options.longs === Number ? new $util.LongBits(message.usedGib.low >>> 0, message.usedGib.high >>> 0).toNumber() : message.usedGib; + if (message.securityStyle != null && message.hasOwnProperty("securityStyle")) + object.securityStyle = options.enums === String ? $root.google.cloud.netapp.v1.SecurityStyle[message.securityStyle] === undefined ? message.securityStyle : $root.google.cloud.netapp.v1.SecurityStyle[message.securityStyle] : message.securityStyle; + if (message.kerberosEnabled != null && message.hasOwnProperty("kerberosEnabled")) + object.kerberosEnabled = message.kerberosEnabled; + if (message.ldapEnabled != null && message.hasOwnProperty("ldapEnabled")) + object.ldapEnabled = message.ldapEnabled; + if (message.activeDirectory != null && message.hasOwnProperty("activeDirectory")) + object.activeDirectory = message.activeDirectory; + if (message.restoreParameters != null && message.hasOwnProperty("restoreParameters")) + object.restoreParameters = $root.google.cloud.netapp.v1.RestoreParameters.toObject(message.restoreParameters, options); + if (message.kmsConfig != null && message.hasOwnProperty("kmsConfig")) + object.kmsConfig = message.kmsConfig; + if (message.encryptionType != null && message.hasOwnProperty("encryptionType")) + object.encryptionType = options.enums === String ? $root.google.cloud.netapp.v1.EncryptionType[message.encryptionType] === undefined ? message.encryptionType : $root.google.cloud.netapp.v1.EncryptionType[message.encryptionType] : message.encryptionType; + if (message.hasReplication != null && message.hasOwnProperty("hasReplication")) + object.hasReplication = message.hasReplication; + if (message.backupConfig != null && message.hasOwnProperty("backupConfig")) { + object.backupConfig = $root.google.cloud.netapp.v1.BackupConfig.toObject(message.backupConfig, options); + if (options.oneofs) + object._backupConfig = "backupConfig"; + } + if (message.restrictedActions && message.restrictedActions.length) { + object.restrictedActions = []; + for (var j = 0; j < message.restrictedActions.length; ++j) + object.restrictedActions[j] = options.enums === String ? $root.google.cloud.netapp.v1.RestrictedAction[message.restrictedActions[j]] === undefined ? message.restrictedActions[j] : $root.google.cloud.netapp.v1.RestrictedAction[message.restrictedActions[j]] : message.restrictedActions[j]; + } + if (message.largeCapacity != null && message.hasOwnProperty("largeCapacity")) + object.largeCapacity = message.largeCapacity; + if (message.multipleEndpoints != null && message.hasOwnProperty("multipleEndpoints")) + object.multipleEndpoints = message.multipleEndpoints; + if (message.tieringPolicy != null && message.hasOwnProperty("tieringPolicy")) { + object.tieringPolicy = $root.google.cloud.netapp.v1.TieringPolicy.toObject(message.tieringPolicy, options); + if (options.oneofs) + object._tieringPolicy = "tieringPolicy"; + } + if (message.replicaZone != null && message.hasOwnProperty("replicaZone")) + object.replicaZone = message.replicaZone; + if (message.zone != null && message.hasOwnProperty("zone")) + object.zone = message.zone; + if (message.coldTierSizeGib != null && message.hasOwnProperty("coldTierSizeGib")) + if (typeof message.coldTierSizeGib === "number") + object.coldTierSizeGib = options.longs === String ? String(message.coldTierSizeGib) : message.coldTierSizeGib; + else + object.coldTierSizeGib = options.longs === String ? $util.Long.prototype.toString.call(message.coldTierSizeGib) : options.longs === Number ? new $util.LongBits(message.coldTierSizeGib.low >>> 0, message.coldTierSizeGib.high >>> 0).toNumber() : message.coldTierSizeGib; + if (message.hybridReplicationParameters != null && message.hasOwnProperty("hybridReplicationParameters")) + object.hybridReplicationParameters = $root.google.cloud.netapp.v1.HybridReplicationParameters.toObject(message.hybridReplicationParameters, options); + return object; + }; + + /** + * Converts this Volume to JSON. + * @function toJSON + * @memberof google.cloud.netapp.v1.Volume + * @instance + * @returns {Object.} JSON object + */ + Volume.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Volume + * @function getTypeUrl + * @memberof google.cloud.netapp.v1.Volume + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Volume.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.netapp.v1.Volume"; + }; + + /** + * State enum. + * @name google.cloud.netapp.v1.Volume.State + * @enum {number} + * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value + * @property {number} READY=1 READY value + * @property {number} CREATING=2 CREATING value + * @property {number} DELETING=3 DELETING value + * @property {number} UPDATING=4 UPDATING value + * @property {number} RESTORING=5 RESTORING value + * @property {number} DISABLED=6 DISABLED value + * @property {number} ERROR=7 ERROR value + * @property {number} PREPARING=8 PREPARING value + * @property {number} READ_ONLY=9 READ_ONLY value + */ + Volume.State = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "STATE_UNSPECIFIED"] = 0; + values[valuesById[1] = "READY"] = 1; + values[valuesById[2] = "CREATING"] = 2; + values[valuesById[3] = "DELETING"] = 3; + values[valuesById[4] = "UPDATING"] = 4; + values[valuesById[5] = "RESTORING"] = 5; + values[valuesById[6] = "DISABLED"] = 6; + values[valuesById[7] = "ERROR"] = 7; + values[valuesById[8] = "PREPARING"] = 8; + values[valuesById[9] = "READ_ONLY"] = 9; + return values; + })(); + + return Volume; + })(); + + v1.ExportPolicy = (function() { + + /** + * Properties of an ExportPolicy. + * @memberof google.cloud.netapp.v1 + * @interface IExportPolicy + * @property {Array.|null} [rules] ExportPolicy rules + */ + + /** + * Constructs a new ExportPolicy. + * @memberof google.cloud.netapp.v1 + * @classdesc Represents an ExportPolicy. + * @implements IExportPolicy + * @constructor + * @param {google.cloud.netapp.v1.IExportPolicy=} [properties] Properties to set + */ + function ExportPolicy(properties) { + this.rules = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ExportPolicy rules. + * @member {Array.} rules + * @memberof google.cloud.netapp.v1.ExportPolicy + * @instance + */ + ExportPolicy.prototype.rules = $util.emptyArray; + + /** + * Creates a new ExportPolicy instance using the specified properties. + * @function create + * @memberof google.cloud.netapp.v1.ExportPolicy + * @static + * @param {google.cloud.netapp.v1.IExportPolicy=} [properties] Properties to set + * @returns {google.cloud.netapp.v1.ExportPolicy} ExportPolicy instance + */ + ExportPolicy.create = function create(properties) { + return new ExportPolicy(properties); + }; + + /** + * Encodes the specified ExportPolicy message. Does not implicitly {@link google.cloud.netapp.v1.ExportPolicy.verify|verify} messages. + * @function encode + * @memberof google.cloud.netapp.v1.ExportPolicy + * @static + * @param {google.cloud.netapp.v1.IExportPolicy} message ExportPolicy message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExportPolicy.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.rules != null && message.rules.length) + for (var i = 0; i < message.rules.length; ++i) + $root.google.cloud.netapp.v1.SimpleExportPolicyRule.encode(message.rules[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified ExportPolicy message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.ExportPolicy.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.netapp.v1.ExportPolicy + * @static + * @param {google.cloud.netapp.v1.IExportPolicy} message ExportPolicy message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExportPolicy.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an ExportPolicy message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.netapp.v1.ExportPolicy + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.netapp.v1.ExportPolicy} ExportPolicy + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExportPolicy.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.netapp.v1.ExportPolicy(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.rules && message.rules.length)) + message.rules = []; + message.rules.push($root.google.cloud.netapp.v1.SimpleExportPolicyRule.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an ExportPolicy message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.netapp.v1.ExportPolicy + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.netapp.v1.ExportPolicy} ExportPolicy + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExportPolicy.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an ExportPolicy message. + * @function verify + * @memberof google.cloud.netapp.v1.ExportPolicy + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ExportPolicy.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.rules != null && message.hasOwnProperty("rules")) { + if (!Array.isArray(message.rules)) + return "rules: array expected"; + for (var i = 0; i < message.rules.length; ++i) { + var error = $root.google.cloud.netapp.v1.SimpleExportPolicyRule.verify(message.rules[i]); + if (error) + return "rules." + error; + } + } + return null; + }; + + /** + * Creates an ExportPolicy message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.netapp.v1.ExportPolicy + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.netapp.v1.ExportPolicy} ExportPolicy + */ + ExportPolicy.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.netapp.v1.ExportPolicy) + return object; + var message = new $root.google.cloud.netapp.v1.ExportPolicy(); + if (object.rules) { + if (!Array.isArray(object.rules)) + throw TypeError(".google.cloud.netapp.v1.ExportPolicy.rules: array expected"); + message.rules = []; + for (var i = 0; i < object.rules.length; ++i) { + if (typeof object.rules[i] !== "object") + throw TypeError(".google.cloud.netapp.v1.ExportPolicy.rules: object expected"); + message.rules[i] = $root.google.cloud.netapp.v1.SimpleExportPolicyRule.fromObject(object.rules[i]); + } + } + return message; + }; + + /** + * Creates a plain object from an ExportPolicy message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.netapp.v1.ExportPolicy + * @static + * @param {google.cloud.netapp.v1.ExportPolicy} message ExportPolicy + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ExportPolicy.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.rules = []; + if (message.rules && message.rules.length) { + object.rules = []; + for (var j = 0; j < message.rules.length; ++j) + object.rules[j] = $root.google.cloud.netapp.v1.SimpleExportPolicyRule.toObject(message.rules[j], options); + } + return object; + }; + + /** + * Converts this ExportPolicy to JSON. + * @function toJSON + * @memberof google.cloud.netapp.v1.ExportPolicy + * @instance + * @returns {Object.} JSON object + */ + ExportPolicy.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ExportPolicy + * @function getTypeUrl + * @memberof google.cloud.netapp.v1.ExportPolicy + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ExportPolicy.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.netapp.v1.ExportPolicy"; + }; + + return ExportPolicy; + })(); + + v1.SimpleExportPolicyRule = (function() { + + /** + * Properties of a SimpleExportPolicyRule. + * @memberof google.cloud.netapp.v1 + * @interface ISimpleExportPolicyRule + * @property {string|null} [allowedClients] SimpleExportPolicyRule allowedClients + * @property {string|null} [hasRootAccess] SimpleExportPolicyRule hasRootAccess + * @property {google.cloud.netapp.v1.AccessType|null} [accessType] SimpleExportPolicyRule accessType + * @property {boolean|null} [nfsv3] SimpleExportPolicyRule nfsv3 + * @property {boolean|null} [nfsv4] SimpleExportPolicyRule nfsv4 + * @property {boolean|null} [kerberos_5ReadOnly] SimpleExportPolicyRule kerberos_5ReadOnly + * @property {boolean|null} [kerberos_5ReadWrite] SimpleExportPolicyRule kerberos_5ReadWrite + * @property {boolean|null} [kerberos_5iReadOnly] SimpleExportPolicyRule kerberos_5iReadOnly + * @property {boolean|null} [kerberos_5iReadWrite] SimpleExportPolicyRule kerberos_5iReadWrite + * @property {boolean|null} [kerberos_5pReadOnly] SimpleExportPolicyRule kerberos_5pReadOnly + * @property {boolean|null} [kerberos_5pReadWrite] SimpleExportPolicyRule kerberos_5pReadWrite + */ + + /** + * Constructs a new SimpleExportPolicyRule. + * @memberof google.cloud.netapp.v1 + * @classdesc Represents a SimpleExportPolicyRule. + * @implements ISimpleExportPolicyRule + * @constructor + * @param {google.cloud.netapp.v1.ISimpleExportPolicyRule=} [properties] Properties to set + */ + function SimpleExportPolicyRule(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * SimpleExportPolicyRule allowedClients. + * @member {string|null|undefined} allowedClients + * @memberof google.cloud.netapp.v1.SimpleExportPolicyRule + * @instance + */ + SimpleExportPolicyRule.prototype.allowedClients = null; + + /** + * SimpleExportPolicyRule hasRootAccess. + * @member {string|null|undefined} hasRootAccess + * @memberof google.cloud.netapp.v1.SimpleExportPolicyRule + * @instance + */ + SimpleExportPolicyRule.prototype.hasRootAccess = null; + + /** + * SimpleExportPolicyRule accessType. + * @member {google.cloud.netapp.v1.AccessType|null|undefined} accessType + * @memberof google.cloud.netapp.v1.SimpleExportPolicyRule + * @instance + */ + SimpleExportPolicyRule.prototype.accessType = null; + + /** + * SimpleExportPolicyRule nfsv3. + * @member {boolean|null|undefined} nfsv3 + * @memberof google.cloud.netapp.v1.SimpleExportPolicyRule + * @instance + */ + SimpleExportPolicyRule.prototype.nfsv3 = null; + + /** + * SimpleExportPolicyRule nfsv4. + * @member {boolean|null|undefined} nfsv4 + * @memberof google.cloud.netapp.v1.SimpleExportPolicyRule + * @instance + */ + SimpleExportPolicyRule.prototype.nfsv4 = null; + + /** + * SimpleExportPolicyRule kerberos_5ReadOnly. + * @member {boolean|null|undefined} kerberos_5ReadOnly + * @memberof google.cloud.netapp.v1.SimpleExportPolicyRule + * @instance + */ + SimpleExportPolicyRule.prototype.kerberos_5ReadOnly = null; + + /** + * SimpleExportPolicyRule kerberos_5ReadWrite. + * @member {boolean|null|undefined} kerberos_5ReadWrite + * @memberof google.cloud.netapp.v1.SimpleExportPolicyRule + * @instance + */ + SimpleExportPolicyRule.prototype.kerberos_5ReadWrite = null; + + /** + * SimpleExportPolicyRule kerberos_5iReadOnly. + * @member {boolean|null|undefined} kerberos_5iReadOnly + * @memberof google.cloud.netapp.v1.SimpleExportPolicyRule + * @instance + */ + SimpleExportPolicyRule.prototype.kerberos_5iReadOnly = null; + + /** + * SimpleExportPolicyRule kerberos_5iReadWrite. + * @member {boolean|null|undefined} kerberos_5iReadWrite + * @memberof google.cloud.netapp.v1.SimpleExportPolicyRule + * @instance + */ + SimpleExportPolicyRule.prototype.kerberos_5iReadWrite = null; + + /** + * SimpleExportPolicyRule kerberos_5pReadOnly. + * @member {boolean|null|undefined} kerberos_5pReadOnly + * @memberof google.cloud.netapp.v1.SimpleExportPolicyRule + * @instance + */ + SimpleExportPolicyRule.prototype.kerberos_5pReadOnly = null; + + /** + * SimpleExportPolicyRule kerberos_5pReadWrite. + * @member {boolean|null|undefined} kerberos_5pReadWrite + * @memberof google.cloud.netapp.v1.SimpleExportPolicyRule + * @instance + */ + SimpleExportPolicyRule.prototype.kerberos_5pReadWrite = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * SimpleExportPolicyRule _allowedClients. + * @member {"allowedClients"|undefined} _allowedClients + * @memberof google.cloud.netapp.v1.SimpleExportPolicyRule + * @instance + */ + Object.defineProperty(SimpleExportPolicyRule.prototype, "_allowedClients", { + get: $util.oneOfGetter($oneOfFields = ["allowedClients"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * SimpleExportPolicyRule _hasRootAccess. + * @member {"hasRootAccess"|undefined} _hasRootAccess + * @memberof google.cloud.netapp.v1.SimpleExportPolicyRule + * @instance + */ + Object.defineProperty(SimpleExportPolicyRule.prototype, "_hasRootAccess", { + get: $util.oneOfGetter($oneOfFields = ["hasRootAccess"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * SimpleExportPolicyRule _accessType. + * @member {"accessType"|undefined} _accessType + * @memberof google.cloud.netapp.v1.SimpleExportPolicyRule + * @instance + */ + Object.defineProperty(SimpleExportPolicyRule.prototype, "_accessType", { + get: $util.oneOfGetter($oneOfFields = ["accessType"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * SimpleExportPolicyRule _nfsv3. + * @member {"nfsv3"|undefined} _nfsv3 + * @memberof google.cloud.netapp.v1.SimpleExportPolicyRule + * @instance + */ + Object.defineProperty(SimpleExportPolicyRule.prototype, "_nfsv3", { + get: $util.oneOfGetter($oneOfFields = ["nfsv3"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * SimpleExportPolicyRule _nfsv4. + * @member {"nfsv4"|undefined} _nfsv4 + * @memberof google.cloud.netapp.v1.SimpleExportPolicyRule + * @instance + */ + Object.defineProperty(SimpleExportPolicyRule.prototype, "_nfsv4", { + get: $util.oneOfGetter($oneOfFields = ["nfsv4"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * SimpleExportPolicyRule _kerberos_5ReadOnly. + * @member {"kerberos_5ReadOnly"|undefined} _kerberos_5ReadOnly + * @memberof google.cloud.netapp.v1.SimpleExportPolicyRule + * @instance + */ + Object.defineProperty(SimpleExportPolicyRule.prototype, "_kerberos_5ReadOnly", { + get: $util.oneOfGetter($oneOfFields = ["kerberos_5ReadOnly"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * SimpleExportPolicyRule _kerberos_5ReadWrite. + * @member {"kerberos_5ReadWrite"|undefined} _kerberos_5ReadWrite + * @memberof google.cloud.netapp.v1.SimpleExportPolicyRule + * @instance + */ + Object.defineProperty(SimpleExportPolicyRule.prototype, "_kerberos_5ReadWrite", { + get: $util.oneOfGetter($oneOfFields = ["kerberos_5ReadWrite"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * SimpleExportPolicyRule _kerberos_5iReadOnly. + * @member {"kerberos_5iReadOnly"|undefined} _kerberos_5iReadOnly + * @memberof google.cloud.netapp.v1.SimpleExportPolicyRule + * @instance + */ + Object.defineProperty(SimpleExportPolicyRule.prototype, "_kerberos_5iReadOnly", { + get: $util.oneOfGetter($oneOfFields = ["kerberos_5iReadOnly"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * SimpleExportPolicyRule _kerberos_5iReadWrite. + * @member {"kerberos_5iReadWrite"|undefined} _kerberos_5iReadWrite + * @memberof google.cloud.netapp.v1.SimpleExportPolicyRule + * @instance + */ + Object.defineProperty(SimpleExportPolicyRule.prototype, "_kerberos_5iReadWrite", { + get: $util.oneOfGetter($oneOfFields = ["kerberos_5iReadWrite"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * SimpleExportPolicyRule _kerberos_5pReadOnly. + * @member {"kerberos_5pReadOnly"|undefined} _kerberos_5pReadOnly + * @memberof google.cloud.netapp.v1.SimpleExportPolicyRule + * @instance + */ + Object.defineProperty(SimpleExportPolicyRule.prototype, "_kerberos_5pReadOnly", { + get: $util.oneOfGetter($oneOfFields = ["kerberos_5pReadOnly"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * SimpleExportPolicyRule _kerberos_5pReadWrite. + * @member {"kerberos_5pReadWrite"|undefined} _kerberos_5pReadWrite + * @memberof google.cloud.netapp.v1.SimpleExportPolicyRule + * @instance + */ + Object.defineProperty(SimpleExportPolicyRule.prototype, "_kerberos_5pReadWrite", { + get: $util.oneOfGetter($oneOfFields = ["kerberos_5pReadWrite"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new SimpleExportPolicyRule instance using the specified properties. + * @function create + * @memberof google.cloud.netapp.v1.SimpleExportPolicyRule + * @static + * @param {google.cloud.netapp.v1.ISimpleExportPolicyRule=} [properties] Properties to set + * @returns {google.cloud.netapp.v1.SimpleExportPolicyRule} SimpleExportPolicyRule instance + */ + SimpleExportPolicyRule.create = function create(properties) { + return new SimpleExportPolicyRule(properties); + }; + + /** + * Encodes the specified SimpleExportPolicyRule message. Does not implicitly {@link google.cloud.netapp.v1.SimpleExportPolicyRule.verify|verify} messages. + * @function encode + * @memberof google.cloud.netapp.v1.SimpleExportPolicyRule + * @static + * @param {google.cloud.netapp.v1.ISimpleExportPolicyRule} message SimpleExportPolicyRule message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SimpleExportPolicyRule.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.allowedClients != null && Object.hasOwnProperty.call(message, "allowedClients")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.allowedClients); + if (message.hasRootAccess != null && Object.hasOwnProperty.call(message, "hasRootAccess")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.hasRootAccess); + if (message.accessType != null && Object.hasOwnProperty.call(message, "accessType")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.accessType); + if (message.nfsv3 != null && Object.hasOwnProperty.call(message, "nfsv3")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.nfsv3); + if (message.nfsv4 != null && Object.hasOwnProperty.call(message, "nfsv4")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.nfsv4); + if (message.kerberos_5ReadOnly != null && Object.hasOwnProperty.call(message, "kerberos_5ReadOnly")) + writer.uint32(/* id 6, wireType 0 =*/48).bool(message.kerberos_5ReadOnly); + if (message.kerberos_5ReadWrite != null && Object.hasOwnProperty.call(message, "kerberos_5ReadWrite")) + writer.uint32(/* id 7, wireType 0 =*/56).bool(message.kerberos_5ReadWrite); + if (message.kerberos_5iReadOnly != null && Object.hasOwnProperty.call(message, "kerberos_5iReadOnly")) + writer.uint32(/* id 8, wireType 0 =*/64).bool(message.kerberos_5iReadOnly); + if (message.kerberos_5iReadWrite != null && Object.hasOwnProperty.call(message, "kerberos_5iReadWrite")) + writer.uint32(/* id 9, wireType 0 =*/72).bool(message.kerberos_5iReadWrite); + if (message.kerberos_5pReadOnly != null && Object.hasOwnProperty.call(message, "kerberos_5pReadOnly")) + writer.uint32(/* id 10, wireType 0 =*/80).bool(message.kerberos_5pReadOnly); + if (message.kerberos_5pReadWrite != null && Object.hasOwnProperty.call(message, "kerberos_5pReadWrite")) + writer.uint32(/* id 11, wireType 0 =*/88).bool(message.kerberos_5pReadWrite); + return writer; + }; + + /** + * Encodes the specified SimpleExportPolicyRule message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.SimpleExportPolicyRule.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.netapp.v1.SimpleExportPolicyRule + * @static + * @param {google.cloud.netapp.v1.ISimpleExportPolicyRule} message SimpleExportPolicyRule message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SimpleExportPolicyRule.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SimpleExportPolicyRule message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.netapp.v1.SimpleExportPolicyRule + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.netapp.v1.SimpleExportPolicyRule} SimpleExportPolicyRule + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SimpleExportPolicyRule.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.netapp.v1.SimpleExportPolicyRule(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.allowedClients = reader.string(); + break; + } + case 2: { + message.hasRootAccess = reader.string(); + break; + } + case 3: { + message.accessType = reader.int32(); + break; + } + case 4: { + message.nfsv3 = reader.bool(); + break; + } + case 5: { + message.nfsv4 = reader.bool(); + break; + } + case 6: { + message.kerberos_5ReadOnly = reader.bool(); + break; + } + case 7: { + message.kerberos_5ReadWrite = reader.bool(); + break; + } + case 8: { + message.kerberos_5iReadOnly = reader.bool(); + break; + } + case 9: { + message.kerberos_5iReadWrite = reader.bool(); + break; + } + case 10: { + message.kerberos_5pReadOnly = reader.bool(); + break; + } + case 11: { + message.kerberos_5pReadWrite = reader.bool(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SimpleExportPolicyRule message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.netapp.v1.SimpleExportPolicyRule + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.netapp.v1.SimpleExportPolicyRule} SimpleExportPolicyRule + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SimpleExportPolicyRule.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SimpleExportPolicyRule message. + * @function verify + * @memberof google.cloud.netapp.v1.SimpleExportPolicyRule + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SimpleExportPolicyRule.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.allowedClients != null && message.hasOwnProperty("allowedClients")) { + properties._allowedClients = 1; + if (!$util.isString(message.allowedClients)) + return "allowedClients: string expected"; + } + if (message.hasRootAccess != null && message.hasOwnProperty("hasRootAccess")) { + properties._hasRootAccess = 1; + if (!$util.isString(message.hasRootAccess)) + return "hasRootAccess: string expected"; + } + if (message.accessType != null && message.hasOwnProperty("accessType")) { + properties._accessType = 1; + switch (message.accessType) { + default: + return "accessType: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; + } + } + if (message.nfsv3 != null && message.hasOwnProperty("nfsv3")) { + properties._nfsv3 = 1; + if (typeof message.nfsv3 !== "boolean") + return "nfsv3: boolean expected"; + } + if (message.nfsv4 != null && message.hasOwnProperty("nfsv4")) { + properties._nfsv4 = 1; + if (typeof message.nfsv4 !== "boolean") + return "nfsv4: boolean expected"; + } + if (message.kerberos_5ReadOnly != null && message.hasOwnProperty("kerberos_5ReadOnly")) { + properties._kerberos_5ReadOnly = 1; + if (typeof message.kerberos_5ReadOnly !== "boolean") + return "kerberos_5ReadOnly: boolean expected"; + } + if (message.kerberos_5ReadWrite != null && message.hasOwnProperty("kerberos_5ReadWrite")) { + properties._kerberos_5ReadWrite = 1; + if (typeof message.kerberos_5ReadWrite !== "boolean") + return "kerberos_5ReadWrite: boolean expected"; + } + if (message.kerberos_5iReadOnly != null && message.hasOwnProperty("kerberos_5iReadOnly")) { + properties._kerberos_5iReadOnly = 1; + if (typeof message.kerberos_5iReadOnly !== "boolean") + return "kerberos_5iReadOnly: boolean expected"; + } + if (message.kerberos_5iReadWrite != null && message.hasOwnProperty("kerberos_5iReadWrite")) { + properties._kerberos_5iReadWrite = 1; + if (typeof message.kerberos_5iReadWrite !== "boolean") + return "kerberos_5iReadWrite: boolean expected"; + } + if (message.kerberos_5pReadOnly != null && message.hasOwnProperty("kerberos_5pReadOnly")) { + properties._kerberos_5pReadOnly = 1; + if (typeof message.kerberos_5pReadOnly !== "boolean") + return "kerberos_5pReadOnly: boolean expected"; + } + if (message.kerberos_5pReadWrite != null && message.hasOwnProperty("kerberos_5pReadWrite")) { + properties._kerberos_5pReadWrite = 1; + if (typeof message.kerberos_5pReadWrite !== "boolean") + return "kerberos_5pReadWrite: boolean expected"; + } + return null; + }; + + /** + * Creates a SimpleExportPolicyRule message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.netapp.v1.SimpleExportPolicyRule + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.netapp.v1.SimpleExportPolicyRule} SimpleExportPolicyRule + */ + SimpleExportPolicyRule.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.netapp.v1.SimpleExportPolicyRule) + return object; + var message = new $root.google.cloud.netapp.v1.SimpleExportPolicyRule(); + if (object.allowedClients != null) + message.allowedClients = String(object.allowedClients); + if (object.hasRootAccess != null) + message.hasRootAccess = String(object.hasRootAccess); + switch (object.accessType) { + default: + if (typeof object.accessType === "number") { + message.accessType = object.accessType; + break; + } + break; + case "ACCESS_TYPE_UNSPECIFIED": + case 0: + message.accessType = 0; + break; + case "READ_ONLY": + case 1: + message.accessType = 1; + break; + case "READ_WRITE": + case 2: + message.accessType = 2; + break; + case "READ_NONE": + case 3: + message.accessType = 3; + break; + } + if (object.nfsv3 != null) + message.nfsv3 = Boolean(object.nfsv3); + if (object.nfsv4 != null) + message.nfsv4 = Boolean(object.nfsv4); + if (object.kerberos_5ReadOnly != null) + message.kerberos_5ReadOnly = Boolean(object.kerberos_5ReadOnly); + if (object.kerberos_5ReadWrite != null) + message.kerberos_5ReadWrite = Boolean(object.kerberos_5ReadWrite); + if (object.kerberos_5iReadOnly != null) + message.kerberos_5iReadOnly = Boolean(object.kerberos_5iReadOnly); + if (object.kerberos_5iReadWrite != null) + message.kerberos_5iReadWrite = Boolean(object.kerberos_5iReadWrite); + if (object.kerberos_5pReadOnly != null) + message.kerberos_5pReadOnly = Boolean(object.kerberos_5pReadOnly); + if (object.kerberos_5pReadWrite != null) + message.kerberos_5pReadWrite = Boolean(object.kerberos_5pReadWrite); + return message; + }; + + /** + * Creates a plain object from a SimpleExportPolicyRule message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.netapp.v1.SimpleExportPolicyRule + * @static + * @param {google.cloud.netapp.v1.SimpleExportPolicyRule} message SimpleExportPolicyRule + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SimpleExportPolicyRule.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.allowedClients != null && message.hasOwnProperty("allowedClients")) { + object.allowedClients = message.allowedClients; + if (options.oneofs) + object._allowedClients = "allowedClients"; + } + if (message.hasRootAccess != null && message.hasOwnProperty("hasRootAccess")) { + object.hasRootAccess = message.hasRootAccess; + if (options.oneofs) + object._hasRootAccess = "hasRootAccess"; + } + if (message.accessType != null && message.hasOwnProperty("accessType")) { + object.accessType = options.enums === String ? $root.google.cloud.netapp.v1.AccessType[message.accessType] === undefined ? message.accessType : $root.google.cloud.netapp.v1.AccessType[message.accessType] : message.accessType; + if (options.oneofs) + object._accessType = "accessType"; + } + if (message.nfsv3 != null && message.hasOwnProperty("nfsv3")) { + object.nfsv3 = message.nfsv3; + if (options.oneofs) + object._nfsv3 = "nfsv3"; + } + if (message.nfsv4 != null && message.hasOwnProperty("nfsv4")) { + object.nfsv4 = message.nfsv4; + if (options.oneofs) + object._nfsv4 = "nfsv4"; + } + if (message.kerberos_5ReadOnly != null && message.hasOwnProperty("kerberos_5ReadOnly")) { + object.kerberos_5ReadOnly = message.kerberos_5ReadOnly; + if (options.oneofs) + object._kerberos_5ReadOnly = "kerberos_5ReadOnly"; + } + if (message.kerberos_5ReadWrite != null && message.hasOwnProperty("kerberos_5ReadWrite")) { + object.kerberos_5ReadWrite = message.kerberos_5ReadWrite; + if (options.oneofs) + object._kerberos_5ReadWrite = "kerberos_5ReadWrite"; + } + if (message.kerberos_5iReadOnly != null && message.hasOwnProperty("kerberos_5iReadOnly")) { + object.kerberos_5iReadOnly = message.kerberos_5iReadOnly; + if (options.oneofs) + object._kerberos_5iReadOnly = "kerberos_5iReadOnly"; + } + if (message.kerberos_5iReadWrite != null && message.hasOwnProperty("kerberos_5iReadWrite")) { + object.kerberos_5iReadWrite = message.kerberos_5iReadWrite; + if (options.oneofs) + object._kerberos_5iReadWrite = "kerberos_5iReadWrite"; + } + if (message.kerberos_5pReadOnly != null && message.hasOwnProperty("kerberos_5pReadOnly")) { + object.kerberos_5pReadOnly = message.kerberos_5pReadOnly; + if (options.oneofs) + object._kerberos_5pReadOnly = "kerberos_5pReadOnly"; + } + if (message.kerberos_5pReadWrite != null && message.hasOwnProperty("kerberos_5pReadWrite")) { + object.kerberos_5pReadWrite = message.kerberos_5pReadWrite; + if (options.oneofs) + object._kerberos_5pReadWrite = "kerberos_5pReadWrite"; + } + return object; + }; + + /** + * Converts this SimpleExportPolicyRule to JSON. + * @function toJSON + * @memberof google.cloud.netapp.v1.SimpleExportPolicyRule + * @instance + * @returns {Object.} JSON object + */ + SimpleExportPolicyRule.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for SimpleExportPolicyRule + * @function getTypeUrl + * @memberof google.cloud.netapp.v1.SimpleExportPolicyRule + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SimpleExportPolicyRule.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.netapp.v1.SimpleExportPolicyRule"; + }; + + return SimpleExportPolicyRule; + })(); + + v1.SnapshotPolicy = (function() { + + /** + * Properties of a SnapshotPolicy. + * @memberof google.cloud.netapp.v1 + * @interface ISnapshotPolicy + * @property {boolean|null} [enabled] SnapshotPolicy enabled + * @property {google.cloud.netapp.v1.IHourlySchedule|null} [hourlySchedule] SnapshotPolicy hourlySchedule + * @property {google.cloud.netapp.v1.IDailySchedule|null} [dailySchedule] SnapshotPolicy dailySchedule + * @property {google.cloud.netapp.v1.IWeeklySchedule|null} [weeklySchedule] SnapshotPolicy weeklySchedule + * @property {google.cloud.netapp.v1.IMonthlySchedule|null} [monthlySchedule] SnapshotPolicy monthlySchedule + */ + + /** + * Constructs a new SnapshotPolicy. + * @memberof google.cloud.netapp.v1 + * @classdesc Represents a SnapshotPolicy. + * @implements ISnapshotPolicy + * @constructor + * @param {google.cloud.netapp.v1.ISnapshotPolicy=} [properties] Properties to set + */ + function SnapshotPolicy(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * SnapshotPolicy enabled. + * @member {boolean|null|undefined} enabled + * @memberof google.cloud.netapp.v1.SnapshotPolicy + * @instance + */ + SnapshotPolicy.prototype.enabled = null; + + /** + * SnapshotPolicy hourlySchedule. + * @member {google.cloud.netapp.v1.IHourlySchedule|null|undefined} hourlySchedule + * @memberof google.cloud.netapp.v1.SnapshotPolicy + * @instance + */ + SnapshotPolicy.prototype.hourlySchedule = null; + + /** + * SnapshotPolicy dailySchedule. + * @member {google.cloud.netapp.v1.IDailySchedule|null|undefined} dailySchedule + * @memberof google.cloud.netapp.v1.SnapshotPolicy + * @instance + */ + SnapshotPolicy.prototype.dailySchedule = null; + + /** + * SnapshotPolicy weeklySchedule. + * @member {google.cloud.netapp.v1.IWeeklySchedule|null|undefined} weeklySchedule + * @memberof google.cloud.netapp.v1.SnapshotPolicy + * @instance + */ + SnapshotPolicy.prototype.weeklySchedule = null; + + /** + * SnapshotPolicy monthlySchedule. + * @member {google.cloud.netapp.v1.IMonthlySchedule|null|undefined} monthlySchedule + * @memberof google.cloud.netapp.v1.SnapshotPolicy + * @instance + */ + SnapshotPolicy.prototype.monthlySchedule = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * SnapshotPolicy _enabled. + * @member {"enabled"|undefined} _enabled + * @memberof google.cloud.netapp.v1.SnapshotPolicy + * @instance + */ + Object.defineProperty(SnapshotPolicy.prototype, "_enabled", { + get: $util.oneOfGetter($oneOfFields = ["enabled"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * SnapshotPolicy _hourlySchedule. + * @member {"hourlySchedule"|undefined} _hourlySchedule + * @memberof google.cloud.netapp.v1.SnapshotPolicy + * @instance + */ + Object.defineProperty(SnapshotPolicy.prototype, "_hourlySchedule", { + get: $util.oneOfGetter($oneOfFields = ["hourlySchedule"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * SnapshotPolicy _dailySchedule. + * @member {"dailySchedule"|undefined} _dailySchedule + * @memberof google.cloud.netapp.v1.SnapshotPolicy + * @instance + */ + Object.defineProperty(SnapshotPolicy.prototype, "_dailySchedule", { + get: $util.oneOfGetter($oneOfFields = ["dailySchedule"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * SnapshotPolicy _weeklySchedule. + * @member {"weeklySchedule"|undefined} _weeklySchedule + * @memberof google.cloud.netapp.v1.SnapshotPolicy + * @instance + */ + Object.defineProperty(SnapshotPolicy.prototype, "_weeklySchedule", { + get: $util.oneOfGetter($oneOfFields = ["weeklySchedule"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * SnapshotPolicy _monthlySchedule. + * @member {"monthlySchedule"|undefined} _monthlySchedule + * @memberof google.cloud.netapp.v1.SnapshotPolicy + * @instance + */ + Object.defineProperty(SnapshotPolicy.prototype, "_monthlySchedule", { + get: $util.oneOfGetter($oneOfFields = ["monthlySchedule"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new SnapshotPolicy instance using the specified properties. + * @function create + * @memberof google.cloud.netapp.v1.SnapshotPolicy + * @static + * @param {google.cloud.netapp.v1.ISnapshotPolicy=} [properties] Properties to set + * @returns {google.cloud.netapp.v1.SnapshotPolicy} SnapshotPolicy instance + */ + SnapshotPolicy.create = function create(properties) { + return new SnapshotPolicy(properties); + }; + + /** + * Encodes the specified SnapshotPolicy message. Does not implicitly {@link google.cloud.netapp.v1.SnapshotPolicy.verify|verify} messages. + * @function encode + * @memberof google.cloud.netapp.v1.SnapshotPolicy + * @static + * @param {google.cloud.netapp.v1.ISnapshotPolicy} message SnapshotPolicy message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SnapshotPolicy.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.enabled != null && Object.hasOwnProperty.call(message, "enabled")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enabled); + if (message.hourlySchedule != null && Object.hasOwnProperty.call(message, "hourlySchedule")) + $root.google.cloud.netapp.v1.HourlySchedule.encode(message.hourlySchedule, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.dailySchedule != null && Object.hasOwnProperty.call(message, "dailySchedule")) + $root.google.cloud.netapp.v1.DailySchedule.encode(message.dailySchedule, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.weeklySchedule != null && Object.hasOwnProperty.call(message, "weeklySchedule")) + $root.google.cloud.netapp.v1.WeeklySchedule.encode(message.weeklySchedule, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.monthlySchedule != null && Object.hasOwnProperty.call(message, "monthlySchedule")) + $root.google.cloud.netapp.v1.MonthlySchedule.encode(message.monthlySchedule, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified SnapshotPolicy message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.SnapshotPolicy.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.netapp.v1.SnapshotPolicy + * @static + * @param {google.cloud.netapp.v1.ISnapshotPolicy} message SnapshotPolicy message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SnapshotPolicy.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SnapshotPolicy message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.netapp.v1.SnapshotPolicy + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.netapp.v1.SnapshotPolicy} SnapshotPolicy + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SnapshotPolicy.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.netapp.v1.SnapshotPolicy(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.enabled = reader.bool(); + break; + } + case 2: { + message.hourlySchedule = $root.google.cloud.netapp.v1.HourlySchedule.decode(reader, reader.uint32()); + break; + } + case 3: { + message.dailySchedule = $root.google.cloud.netapp.v1.DailySchedule.decode(reader, reader.uint32()); + break; + } + case 4: { + message.weeklySchedule = $root.google.cloud.netapp.v1.WeeklySchedule.decode(reader, reader.uint32()); + break; + } + case 5: { + message.monthlySchedule = $root.google.cloud.netapp.v1.MonthlySchedule.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SnapshotPolicy message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.netapp.v1.SnapshotPolicy + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.netapp.v1.SnapshotPolicy} SnapshotPolicy + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SnapshotPolicy.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SnapshotPolicy message. + * @function verify + * @memberof google.cloud.netapp.v1.SnapshotPolicy + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SnapshotPolicy.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.enabled != null && message.hasOwnProperty("enabled")) { + properties._enabled = 1; + if (typeof message.enabled !== "boolean") + return "enabled: boolean expected"; + } + if (message.hourlySchedule != null && message.hasOwnProperty("hourlySchedule")) { + properties._hourlySchedule = 1; + { + var error = $root.google.cloud.netapp.v1.HourlySchedule.verify(message.hourlySchedule); + if (error) + return "hourlySchedule." + error; + } + } + if (message.dailySchedule != null && message.hasOwnProperty("dailySchedule")) { + properties._dailySchedule = 1; + { + var error = $root.google.cloud.netapp.v1.DailySchedule.verify(message.dailySchedule); + if (error) + return "dailySchedule." + error; + } + } + if (message.weeklySchedule != null && message.hasOwnProperty("weeklySchedule")) { + properties._weeklySchedule = 1; + { + var error = $root.google.cloud.netapp.v1.WeeklySchedule.verify(message.weeklySchedule); + if (error) + return "weeklySchedule." + error; + } + } + if (message.monthlySchedule != null && message.hasOwnProperty("monthlySchedule")) { + properties._monthlySchedule = 1; + { + var error = $root.google.cloud.netapp.v1.MonthlySchedule.verify(message.monthlySchedule); + if (error) + return "monthlySchedule." + error; + } + } + return null; + }; + + /** + * Creates a SnapshotPolicy message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.netapp.v1.SnapshotPolicy + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.netapp.v1.SnapshotPolicy} SnapshotPolicy + */ + SnapshotPolicy.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.netapp.v1.SnapshotPolicy) + return object; + var message = new $root.google.cloud.netapp.v1.SnapshotPolicy(); + if (object.enabled != null) + message.enabled = Boolean(object.enabled); + if (object.hourlySchedule != null) { + if (typeof object.hourlySchedule !== "object") + throw TypeError(".google.cloud.netapp.v1.SnapshotPolicy.hourlySchedule: object expected"); + message.hourlySchedule = $root.google.cloud.netapp.v1.HourlySchedule.fromObject(object.hourlySchedule); + } + if (object.dailySchedule != null) { + if (typeof object.dailySchedule !== "object") + throw TypeError(".google.cloud.netapp.v1.SnapshotPolicy.dailySchedule: object expected"); + message.dailySchedule = $root.google.cloud.netapp.v1.DailySchedule.fromObject(object.dailySchedule); + } + if (object.weeklySchedule != null) { + if (typeof object.weeklySchedule !== "object") + throw TypeError(".google.cloud.netapp.v1.SnapshotPolicy.weeklySchedule: object expected"); + message.weeklySchedule = $root.google.cloud.netapp.v1.WeeklySchedule.fromObject(object.weeklySchedule); + } + if (object.monthlySchedule != null) { + if (typeof object.monthlySchedule !== "object") + throw TypeError(".google.cloud.netapp.v1.SnapshotPolicy.monthlySchedule: object expected"); + message.monthlySchedule = $root.google.cloud.netapp.v1.MonthlySchedule.fromObject(object.monthlySchedule); + } + return message; + }; + + /** + * Creates a plain object from a SnapshotPolicy message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.netapp.v1.SnapshotPolicy + * @static + * @param {google.cloud.netapp.v1.SnapshotPolicy} message SnapshotPolicy + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SnapshotPolicy.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.enabled != null && message.hasOwnProperty("enabled")) { + object.enabled = message.enabled; + if (options.oneofs) + object._enabled = "enabled"; + } + if (message.hourlySchedule != null && message.hasOwnProperty("hourlySchedule")) { + object.hourlySchedule = $root.google.cloud.netapp.v1.HourlySchedule.toObject(message.hourlySchedule, options); + if (options.oneofs) + object._hourlySchedule = "hourlySchedule"; + } + if (message.dailySchedule != null && message.hasOwnProperty("dailySchedule")) { + object.dailySchedule = $root.google.cloud.netapp.v1.DailySchedule.toObject(message.dailySchedule, options); + if (options.oneofs) + object._dailySchedule = "dailySchedule"; + } + if (message.weeklySchedule != null && message.hasOwnProperty("weeklySchedule")) { + object.weeklySchedule = $root.google.cloud.netapp.v1.WeeklySchedule.toObject(message.weeklySchedule, options); + if (options.oneofs) + object._weeklySchedule = "weeklySchedule"; + } + if (message.monthlySchedule != null && message.hasOwnProperty("monthlySchedule")) { + object.monthlySchedule = $root.google.cloud.netapp.v1.MonthlySchedule.toObject(message.monthlySchedule, options); + if (options.oneofs) + object._monthlySchedule = "monthlySchedule"; + } + return object; + }; + + /** + * Converts this SnapshotPolicy to JSON. + * @function toJSON + * @memberof google.cloud.netapp.v1.SnapshotPolicy + * @instance + * @returns {Object.} JSON object + */ + SnapshotPolicy.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for SnapshotPolicy + * @function getTypeUrl + * @memberof google.cloud.netapp.v1.SnapshotPolicy + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SnapshotPolicy.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.netapp.v1.SnapshotPolicy"; + }; + + return SnapshotPolicy; + })(); + + v1.HourlySchedule = (function() { + + /** + * Properties of an HourlySchedule. + * @memberof google.cloud.netapp.v1 + * @interface IHourlySchedule + * @property {number|null} [snapshotsToKeep] HourlySchedule snapshotsToKeep + * @property {number|null} [minute] HourlySchedule minute + */ + + /** + * Constructs a new HourlySchedule. + * @memberof google.cloud.netapp.v1 + * @classdesc Represents an HourlySchedule. + * @implements IHourlySchedule + * @constructor + * @param {google.cloud.netapp.v1.IHourlySchedule=} [properties] Properties to set + */ + function HourlySchedule(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * HourlySchedule snapshotsToKeep. + * @member {number|null|undefined} snapshotsToKeep + * @memberof google.cloud.netapp.v1.HourlySchedule + * @instance + */ + HourlySchedule.prototype.snapshotsToKeep = null; + + /** + * HourlySchedule minute. + * @member {number|null|undefined} minute + * @memberof google.cloud.netapp.v1.HourlySchedule + * @instance + */ + HourlySchedule.prototype.minute = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * HourlySchedule _snapshotsToKeep. + * @member {"snapshotsToKeep"|undefined} _snapshotsToKeep + * @memberof google.cloud.netapp.v1.HourlySchedule + * @instance + */ + Object.defineProperty(HourlySchedule.prototype, "_snapshotsToKeep", { + get: $util.oneOfGetter($oneOfFields = ["snapshotsToKeep"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * HourlySchedule _minute. + * @member {"minute"|undefined} _minute + * @memberof google.cloud.netapp.v1.HourlySchedule + * @instance + */ + Object.defineProperty(HourlySchedule.prototype, "_minute", { + get: $util.oneOfGetter($oneOfFields = ["minute"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new HourlySchedule instance using the specified properties. * @function create - * @memberof google.cloud.netapp.v1.SwitchActiveReplicaZoneRequest + * @memberof google.cloud.netapp.v1.HourlySchedule * @static - * @param {google.cloud.netapp.v1.ISwitchActiveReplicaZoneRequest=} [properties] Properties to set - * @returns {google.cloud.netapp.v1.SwitchActiveReplicaZoneRequest} SwitchActiveReplicaZoneRequest instance + * @param {google.cloud.netapp.v1.IHourlySchedule=} [properties] Properties to set + * @returns {google.cloud.netapp.v1.HourlySchedule} HourlySchedule instance */ - SwitchActiveReplicaZoneRequest.create = function create(properties) { - return new SwitchActiveReplicaZoneRequest(properties); + HourlySchedule.create = function create(properties) { + return new HourlySchedule(properties); }; /** - * Encodes the specified SwitchActiveReplicaZoneRequest message. Does not implicitly {@link google.cloud.netapp.v1.SwitchActiveReplicaZoneRequest.verify|verify} messages. + * Encodes the specified HourlySchedule message. Does not implicitly {@link google.cloud.netapp.v1.HourlySchedule.verify|verify} messages. * @function encode - * @memberof google.cloud.netapp.v1.SwitchActiveReplicaZoneRequest + * @memberof google.cloud.netapp.v1.HourlySchedule * @static - * @param {google.cloud.netapp.v1.ISwitchActiveReplicaZoneRequest} message SwitchActiveReplicaZoneRequest message or plain object to encode + * @param {google.cloud.netapp.v1.IHourlySchedule} message HourlySchedule message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SwitchActiveReplicaZoneRequest.encode = function encode(message, writer) { + HourlySchedule.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.snapshotsToKeep != null && Object.hasOwnProperty.call(message, "snapshotsToKeep")) + writer.uint32(/* id 1, wireType 1 =*/9).double(message.snapshotsToKeep); + if (message.minute != null && Object.hasOwnProperty.call(message, "minute")) + writer.uint32(/* id 2, wireType 1 =*/17).double(message.minute); return writer; }; /** - * Encodes the specified SwitchActiveReplicaZoneRequest message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.SwitchActiveReplicaZoneRequest.verify|verify} messages. + * Encodes the specified HourlySchedule message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.HourlySchedule.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.netapp.v1.SwitchActiveReplicaZoneRequest + * @memberof google.cloud.netapp.v1.HourlySchedule * @static - * @param {google.cloud.netapp.v1.ISwitchActiveReplicaZoneRequest} message SwitchActiveReplicaZoneRequest message or plain object to encode + * @param {google.cloud.netapp.v1.IHourlySchedule} message HourlySchedule message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SwitchActiveReplicaZoneRequest.encodeDelimited = function encodeDelimited(message, writer) { + HourlySchedule.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SwitchActiveReplicaZoneRequest message from the specified reader or buffer. + * Decodes an HourlySchedule message from the specified reader or buffer. * @function decode - * @memberof google.cloud.netapp.v1.SwitchActiveReplicaZoneRequest + * @memberof google.cloud.netapp.v1.HourlySchedule * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.netapp.v1.SwitchActiveReplicaZoneRequest} SwitchActiveReplicaZoneRequest + * @returns {google.cloud.netapp.v1.HourlySchedule} HourlySchedule * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SwitchActiveReplicaZoneRequest.decode = function decode(reader, length) { + HourlySchedule.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.netapp.v1.SwitchActiveReplicaZoneRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.netapp.v1.HourlySchedule(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.snapshotsToKeep = reader.double(); + break; + } + case 2: { + message.minute = reader.double(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an HourlySchedule message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.netapp.v1.HourlySchedule + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.netapp.v1.HourlySchedule} HourlySchedule + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + HourlySchedule.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an HourlySchedule message. + * @function verify + * @memberof google.cloud.netapp.v1.HourlySchedule + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + HourlySchedule.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.snapshotsToKeep != null && message.hasOwnProperty("snapshotsToKeep")) { + properties._snapshotsToKeep = 1; + if (typeof message.snapshotsToKeep !== "number") + return "snapshotsToKeep: number expected"; + } + if (message.minute != null && message.hasOwnProperty("minute")) { + properties._minute = 1; + if (typeof message.minute !== "number") + return "minute: number expected"; + } + return null; + }; + + /** + * Creates an HourlySchedule message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.netapp.v1.HourlySchedule + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.netapp.v1.HourlySchedule} HourlySchedule + */ + HourlySchedule.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.netapp.v1.HourlySchedule) + return object; + var message = new $root.google.cloud.netapp.v1.HourlySchedule(); + if (object.snapshotsToKeep != null) + message.snapshotsToKeep = Number(object.snapshotsToKeep); + if (object.minute != null) + message.minute = Number(object.minute); + return message; + }; + + /** + * Creates a plain object from an HourlySchedule message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.netapp.v1.HourlySchedule + * @static + * @param {google.cloud.netapp.v1.HourlySchedule} message HourlySchedule + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + HourlySchedule.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.snapshotsToKeep != null && message.hasOwnProperty("snapshotsToKeep")) { + object.snapshotsToKeep = options.json && !isFinite(message.snapshotsToKeep) ? String(message.snapshotsToKeep) : message.snapshotsToKeep; + if (options.oneofs) + object._snapshotsToKeep = "snapshotsToKeep"; + } + if (message.minute != null && message.hasOwnProperty("minute")) { + object.minute = options.json && !isFinite(message.minute) ? String(message.minute) : message.minute; + if (options.oneofs) + object._minute = "minute"; + } + return object; + }; + + /** + * Converts this HourlySchedule to JSON. + * @function toJSON + * @memberof google.cloud.netapp.v1.HourlySchedule + * @instance + * @returns {Object.} JSON object + */ + HourlySchedule.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for HourlySchedule + * @function getTypeUrl + * @memberof google.cloud.netapp.v1.HourlySchedule + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + HourlySchedule.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.netapp.v1.HourlySchedule"; + }; + + return HourlySchedule; + })(); + + v1.DailySchedule = (function() { + + /** + * Properties of a DailySchedule. + * @memberof google.cloud.netapp.v1 + * @interface IDailySchedule + * @property {number|null} [snapshotsToKeep] DailySchedule snapshotsToKeep + * @property {number|null} [minute] DailySchedule minute + * @property {number|null} [hour] DailySchedule hour + */ + + /** + * Constructs a new DailySchedule. + * @memberof google.cloud.netapp.v1 + * @classdesc Represents a DailySchedule. + * @implements IDailySchedule + * @constructor + * @param {google.cloud.netapp.v1.IDailySchedule=} [properties] Properties to set + */ + function DailySchedule(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * DailySchedule snapshotsToKeep. + * @member {number|null|undefined} snapshotsToKeep + * @memberof google.cloud.netapp.v1.DailySchedule + * @instance + */ + DailySchedule.prototype.snapshotsToKeep = null; + + /** + * DailySchedule minute. + * @member {number|null|undefined} minute + * @memberof google.cloud.netapp.v1.DailySchedule + * @instance + */ + DailySchedule.prototype.minute = null; + + /** + * DailySchedule hour. + * @member {number|null|undefined} hour + * @memberof google.cloud.netapp.v1.DailySchedule + * @instance + */ + DailySchedule.prototype.hour = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * DailySchedule _snapshotsToKeep. + * @member {"snapshotsToKeep"|undefined} _snapshotsToKeep + * @memberof google.cloud.netapp.v1.DailySchedule + * @instance + */ + Object.defineProperty(DailySchedule.prototype, "_snapshotsToKeep", { + get: $util.oneOfGetter($oneOfFields = ["snapshotsToKeep"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * DailySchedule _minute. + * @member {"minute"|undefined} _minute + * @memberof google.cloud.netapp.v1.DailySchedule + * @instance + */ + Object.defineProperty(DailySchedule.prototype, "_minute", { + get: $util.oneOfGetter($oneOfFields = ["minute"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * DailySchedule _hour. + * @member {"hour"|undefined} _hour + * @memberof google.cloud.netapp.v1.DailySchedule + * @instance + */ + Object.defineProperty(DailySchedule.prototype, "_hour", { + get: $util.oneOfGetter($oneOfFields = ["hour"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new DailySchedule instance using the specified properties. + * @function create + * @memberof google.cloud.netapp.v1.DailySchedule + * @static + * @param {google.cloud.netapp.v1.IDailySchedule=} [properties] Properties to set + * @returns {google.cloud.netapp.v1.DailySchedule} DailySchedule instance + */ + DailySchedule.create = function create(properties) { + return new DailySchedule(properties); + }; + + /** + * Encodes the specified DailySchedule message. Does not implicitly {@link google.cloud.netapp.v1.DailySchedule.verify|verify} messages. + * @function encode + * @memberof google.cloud.netapp.v1.DailySchedule + * @static + * @param {google.cloud.netapp.v1.IDailySchedule} message DailySchedule message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DailySchedule.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.snapshotsToKeep != null && Object.hasOwnProperty.call(message, "snapshotsToKeep")) + writer.uint32(/* id 1, wireType 1 =*/9).double(message.snapshotsToKeep); + if (message.minute != null && Object.hasOwnProperty.call(message, "minute")) + writer.uint32(/* id 2, wireType 1 =*/17).double(message.minute); + if (message.hour != null && Object.hasOwnProperty.call(message, "hour")) + writer.uint32(/* id 3, wireType 1 =*/25).double(message.hour); + return writer; + }; + + /** + * Encodes the specified DailySchedule message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.DailySchedule.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.netapp.v1.DailySchedule + * @static + * @param {google.cloud.netapp.v1.IDailySchedule} message DailySchedule message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DailySchedule.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DailySchedule message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.netapp.v1.DailySchedule + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.netapp.v1.DailySchedule} DailySchedule + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DailySchedule.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.netapp.v1.DailySchedule(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.snapshotsToKeep = reader.double(); + break; + } + case 2: { + message.minute = reader.double(); + break; + } + case 3: { + message.hour = reader.double(); break; } default: @@ -20479,142 +23099,153 @@ }; /** - * Decodes a SwitchActiveReplicaZoneRequest message from the specified reader or buffer, length delimited. + * Decodes a DailySchedule message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.netapp.v1.SwitchActiveReplicaZoneRequest + * @memberof google.cloud.netapp.v1.DailySchedule * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.netapp.v1.SwitchActiveReplicaZoneRequest} SwitchActiveReplicaZoneRequest + * @returns {google.cloud.netapp.v1.DailySchedule} DailySchedule * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SwitchActiveReplicaZoneRequest.decodeDelimited = function decodeDelimited(reader) { + DailySchedule.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SwitchActiveReplicaZoneRequest message. + * Verifies a DailySchedule message. * @function verify - * @memberof google.cloud.netapp.v1.SwitchActiveReplicaZoneRequest + * @memberof google.cloud.netapp.v1.DailySchedule * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SwitchActiveReplicaZoneRequest.verify = function verify(message) { + DailySchedule.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + var properties = {}; + if (message.snapshotsToKeep != null && message.hasOwnProperty("snapshotsToKeep")) { + properties._snapshotsToKeep = 1; + if (typeof message.snapshotsToKeep !== "number") + return "snapshotsToKeep: number expected"; + } + if (message.minute != null && message.hasOwnProperty("minute")) { + properties._minute = 1; + if (typeof message.minute !== "number") + return "minute: number expected"; + } + if (message.hour != null && message.hasOwnProperty("hour")) { + properties._hour = 1; + if (typeof message.hour !== "number") + return "hour: number expected"; + } return null; }; /** - * Creates a SwitchActiveReplicaZoneRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DailySchedule message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.netapp.v1.SwitchActiveReplicaZoneRequest + * @memberof google.cloud.netapp.v1.DailySchedule * @static * @param {Object.} object Plain object - * @returns {google.cloud.netapp.v1.SwitchActiveReplicaZoneRequest} SwitchActiveReplicaZoneRequest + * @returns {google.cloud.netapp.v1.DailySchedule} DailySchedule */ - SwitchActiveReplicaZoneRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.netapp.v1.SwitchActiveReplicaZoneRequest) + DailySchedule.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.netapp.v1.DailySchedule) return object; - var message = new $root.google.cloud.netapp.v1.SwitchActiveReplicaZoneRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.netapp.v1.DailySchedule(); + if (object.snapshotsToKeep != null) + message.snapshotsToKeep = Number(object.snapshotsToKeep); + if (object.minute != null) + message.minute = Number(object.minute); + if (object.hour != null) + message.hour = Number(object.hour); return message; }; /** - * Creates a plain object from a SwitchActiveReplicaZoneRequest message. Also converts values to other types if specified. + * Creates a plain object from a DailySchedule message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.netapp.v1.SwitchActiveReplicaZoneRequest + * @memberof google.cloud.netapp.v1.DailySchedule * @static - * @param {google.cloud.netapp.v1.SwitchActiveReplicaZoneRequest} message SwitchActiveReplicaZoneRequest + * @param {google.cloud.netapp.v1.DailySchedule} message DailySchedule * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SwitchActiveReplicaZoneRequest.toObject = function toObject(message, options) { + DailySchedule.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + if (message.snapshotsToKeep != null && message.hasOwnProperty("snapshotsToKeep")) { + object.snapshotsToKeep = options.json && !isFinite(message.snapshotsToKeep) ? String(message.snapshotsToKeep) : message.snapshotsToKeep; + if (options.oneofs) + object._snapshotsToKeep = "snapshotsToKeep"; + } + if (message.minute != null && message.hasOwnProperty("minute")) { + object.minute = options.json && !isFinite(message.minute) ? String(message.minute) : message.minute; + if (options.oneofs) + object._minute = "minute"; + } + if (message.hour != null && message.hasOwnProperty("hour")) { + object.hour = options.json && !isFinite(message.hour) ? String(message.hour) : message.hour; + if (options.oneofs) + object._hour = "hour"; + } return object; }; /** - * Converts this SwitchActiveReplicaZoneRequest to JSON. + * Converts this DailySchedule to JSON. * @function toJSON - * @memberof google.cloud.netapp.v1.SwitchActiveReplicaZoneRequest + * @memberof google.cloud.netapp.v1.DailySchedule * @instance * @returns {Object.} JSON object */ - SwitchActiveReplicaZoneRequest.prototype.toJSON = function toJSON() { + DailySchedule.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for SwitchActiveReplicaZoneRequest + * Gets the default type url for DailySchedule * @function getTypeUrl - * @memberof google.cloud.netapp.v1.SwitchActiveReplicaZoneRequest + * @memberof google.cloud.netapp.v1.DailySchedule * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - SwitchActiveReplicaZoneRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + DailySchedule.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.netapp.v1.SwitchActiveReplicaZoneRequest"; + return typeUrlPrefix + "/google.cloud.netapp.v1.DailySchedule"; }; - return SwitchActiveReplicaZoneRequest; + return DailySchedule; })(); - v1.StoragePool = (function() { + v1.WeeklySchedule = (function() { /** - * Properties of a StoragePool. + * Properties of a WeeklySchedule. * @memberof google.cloud.netapp.v1 - * @interface IStoragePool - * @property {string|null} [name] StoragePool name - * @property {google.cloud.netapp.v1.ServiceLevel|null} [serviceLevel] StoragePool serviceLevel - * @property {number|Long|null} [capacityGib] StoragePool capacityGib - * @property {number|Long|null} [volumeCapacityGib] StoragePool volumeCapacityGib - * @property {number|null} [volumeCount] StoragePool volumeCount - * @property {google.cloud.netapp.v1.StoragePool.State|null} [state] StoragePool state - * @property {string|null} [stateDetails] StoragePool stateDetails - * @property {google.protobuf.ITimestamp|null} [createTime] StoragePool createTime - * @property {string|null} [description] StoragePool description - * @property {Object.|null} [labels] StoragePool labels - * @property {string|null} [network] StoragePool network - * @property {string|null} [activeDirectory] StoragePool activeDirectory - * @property {string|null} [kmsConfig] StoragePool kmsConfig - * @property {boolean|null} [ldapEnabled] StoragePool ldapEnabled - * @property {string|null} [psaRange] StoragePool psaRange - * @property {google.cloud.netapp.v1.EncryptionType|null} [encryptionType] StoragePool encryptionType - * @property {boolean|null} [globalAccessAllowed] StoragePool globalAccessAllowed - * @property {boolean|null} [allowAutoTiering] StoragePool allowAutoTiering - * @property {string|null} [replicaZone] StoragePool replicaZone - * @property {string|null} [zone] StoragePool zone + * @interface IWeeklySchedule + * @property {number|null} [snapshotsToKeep] WeeklySchedule snapshotsToKeep + * @property {number|null} [minute] WeeklySchedule minute + * @property {number|null} [hour] WeeklySchedule hour + * @property {string|null} [day] WeeklySchedule day */ /** - * Constructs a new StoragePool. + * Constructs a new WeeklySchedule. * @memberof google.cloud.netapp.v1 - * @classdesc Represents a StoragePool. - * @implements IStoragePool + * @classdesc Represents a WeeklySchedule. + * @implements IWeeklySchedule * @constructor - * @param {google.cloud.netapp.v1.IStoragePool=} [properties] Properties to set + * @param {google.cloud.netapp.v1.IWeeklySchedule=} [properties] Properties to set */ - function StoragePool(properties) { - this.labels = {}; + function WeeklySchedule(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -20622,375 +23253,164 @@ } /** - * StoragePool name. - * @member {string} name - * @memberof google.cloud.netapp.v1.StoragePool - * @instance - */ - StoragePool.prototype.name = ""; - - /** - * StoragePool serviceLevel. - * @member {google.cloud.netapp.v1.ServiceLevel} serviceLevel - * @memberof google.cloud.netapp.v1.StoragePool - * @instance - */ - StoragePool.prototype.serviceLevel = 0; - - /** - * StoragePool capacityGib. - * @member {number|Long} capacityGib - * @memberof google.cloud.netapp.v1.StoragePool - * @instance - */ - StoragePool.prototype.capacityGib = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * StoragePool volumeCapacityGib. - * @member {number|Long} volumeCapacityGib - * @memberof google.cloud.netapp.v1.StoragePool - * @instance - */ - StoragePool.prototype.volumeCapacityGib = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * StoragePool volumeCount. - * @member {number} volumeCount - * @memberof google.cloud.netapp.v1.StoragePool - * @instance - */ - StoragePool.prototype.volumeCount = 0; - - /** - * StoragePool state. - * @member {google.cloud.netapp.v1.StoragePool.State} state - * @memberof google.cloud.netapp.v1.StoragePool - * @instance - */ - StoragePool.prototype.state = 0; - - /** - * StoragePool stateDetails. - * @member {string} stateDetails - * @memberof google.cloud.netapp.v1.StoragePool - * @instance - */ - StoragePool.prototype.stateDetails = ""; - - /** - * StoragePool createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.cloud.netapp.v1.StoragePool - * @instance - */ - StoragePool.prototype.createTime = null; - - /** - * StoragePool description. - * @member {string} description - * @memberof google.cloud.netapp.v1.StoragePool - * @instance - */ - StoragePool.prototype.description = ""; - - /** - * StoragePool labels. - * @member {Object.} labels - * @memberof google.cloud.netapp.v1.StoragePool - * @instance - */ - StoragePool.prototype.labels = $util.emptyObject; - - /** - * StoragePool network. - * @member {string} network - * @memberof google.cloud.netapp.v1.StoragePool - * @instance - */ - StoragePool.prototype.network = ""; - - /** - * StoragePool activeDirectory. - * @member {string} activeDirectory - * @memberof google.cloud.netapp.v1.StoragePool - * @instance - */ - StoragePool.prototype.activeDirectory = ""; - - /** - * StoragePool kmsConfig. - * @member {string} kmsConfig - * @memberof google.cloud.netapp.v1.StoragePool + * WeeklySchedule snapshotsToKeep. + * @member {number|null|undefined} snapshotsToKeep + * @memberof google.cloud.netapp.v1.WeeklySchedule * @instance */ - StoragePool.prototype.kmsConfig = ""; + WeeklySchedule.prototype.snapshotsToKeep = null; /** - * StoragePool ldapEnabled. - * @member {boolean} ldapEnabled - * @memberof google.cloud.netapp.v1.StoragePool + * WeeklySchedule minute. + * @member {number|null|undefined} minute + * @memberof google.cloud.netapp.v1.WeeklySchedule * @instance */ - StoragePool.prototype.ldapEnabled = false; + WeeklySchedule.prototype.minute = null; /** - * StoragePool psaRange. - * @member {string} psaRange - * @memberof google.cloud.netapp.v1.StoragePool + * WeeklySchedule hour. + * @member {number|null|undefined} hour + * @memberof google.cloud.netapp.v1.WeeklySchedule * @instance */ - StoragePool.prototype.psaRange = ""; + WeeklySchedule.prototype.hour = null; /** - * StoragePool encryptionType. - * @member {google.cloud.netapp.v1.EncryptionType} encryptionType - * @memberof google.cloud.netapp.v1.StoragePool + * WeeklySchedule day. + * @member {string|null|undefined} day + * @memberof google.cloud.netapp.v1.WeeklySchedule * @instance */ - StoragePool.prototype.encryptionType = 0; + WeeklySchedule.prototype.day = null; - /** - * StoragePool globalAccessAllowed. - * @member {boolean|null|undefined} globalAccessAllowed - * @memberof google.cloud.netapp.v1.StoragePool - * @instance - */ - StoragePool.prototype.globalAccessAllowed = null; + // OneOf field names bound to virtual getters and setters + var $oneOfFields; /** - * StoragePool allowAutoTiering. - * @member {boolean} allowAutoTiering - * @memberof google.cloud.netapp.v1.StoragePool + * WeeklySchedule _snapshotsToKeep. + * @member {"snapshotsToKeep"|undefined} _snapshotsToKeep + * @memberof google.cloud.netapp.v1.WeeklySchedule * @instance */ - StoragePool.prototype.allowAutoTiering = false; + Object.defineProperty(WeeklySchedule.prototype, "_snapshotsToKeep", { + get: $util.oneOfGetter($oneOfFields = ["snapshotsToKeep"]), + set: $util.oneOfSetter($oneOfFields) + }); /** - * StoragePool replicaZone. - * @member {string} replicaZone - * @memberof google.cloud.netapp.v1.StoragePool + * WeeklySchedule _minute. + * @member {"minute"|undefined} _minute + * @memberof google.cloud.netapp.v1.WeeklySchedule * @instance */ - StoragePool.prototype.replicaZone = ""; + Object.defineProperty(WeeklySchedule.prototype, "_minute", { + get: $util.oneOfGetter($oneOfFields = ["minute"]), + set: $util.oneOfSetter($oneOfFields) + }); /** - * StoragePool zone. - * @member {string} zone - * @memberof google.cloud.netapp.v1.StoragePool + * WeeklySchedule _hour. + * @member {"hour"|undefined} _hour + * @memberof google.cloud.netapp.v1.WeeklySchedule * @instance */ - StoragePool.prototype.zone = ""; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + Object.defineProperty(WeeklySchedule.prototype, "_hour", { + get: $util.oneOfGetter($oneOfFields = ["hour"]), + set: $util.oneOfSetter($oneOfFields) + }); /** - * StoragePool _globalAccessAllowed. - * @member {"globalAccessAllowed"|undefined} _globalAccessAllowed - * @memberof google.cloud.netapp.v1.StoragePool + * WeeklySchedule _day. + * @member {"day"|undefined} _day + * @memberof google.cloud.netapp.v1.WeeklySchedule * @instance */ - Object.defineProperty(StoragePool.prototype, "_globalAccessAllowed", { - get: $util.oneOfGetter($oneOfFields = ["globalAccessAllowed"]), + Object.defineProperty(WeeklySchedule.prototype, "_day", { + get: $util.oneOfGetter($oneOfFields = ["day"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new StoragePool instance using the specified properties. + * Creates a new WeeklySchedule instance using the specified properties. * @function create - * @memberof google.cloud.netapp.v1.StoragePool + * @memberof google.cloud.netapp.v1.WeeklySchedule * @static - * @param {google.cloud.netapp.v1.IStoragePool=} [properties] Properties to set - * @returns {google.cloud.netapp.v1.StoragePool} StoragePool instance + * @param {google.cloud.netapp.v1.IWeeklySchedule=} [properties] Properties to set + * @returns {google.cloud.netapp.v1.WeeklySchedule} WeeklySchedule instance */ - StoragePool.create = function create(properties) { - return new StoragePool(properties); + WeeklySchedule.create = function create(properties) { + return new WeeklySchedule(properties); }; /** - * Encodes the specified StoragePool message. Does not implicitly {@link google.cloud.netapp.v1.StoragePool.verify|verify} messages. + * Encodes the specified WeeklySchedule message. Does not implicitly {@link google.cloud.netapp.v1.WeeklySchedule.verify|verify} messages. * @function encode - * @memberof google.cloud.netapp.v1.StoragePool - * @static - * @param {google.cloud.netapp.v1.IStoragePool} message StoragePool message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - StoragePool.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.serviceLevel != null && Object.hasOwnProperty.call(message, "serviceLevel")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.serviceLevel); - if (message.capacityGib != null && Object.hasOwnProperty.call(message, "capacityGib")) - writer.uint32(/* id 3, wireType 0 =*/24).int64(message.capacityGib); - if (message.volumeCapacityGib != null && Object.hasOwnProperty.call(message, "volumeCapacityGib")) - writer.uint32(/* id 4, wireType 0 =*/32).int64(message.volumeCapacityGib); - if (message.volumeCount != null && Object.hasOwnProperty.call(message, "volumeCount")) - writer.uint32(/* id 5, wireType 0 =*/40).int32(message.volumeCount); - if (message.state != null && Object.hasOwnProperty.call(message, "state")) - writer.uint32(/* id 6, wireType 0 =*/48).int32(message.state); - if (message.stateDetails != null && Object.hasOwnProperty.call(message, "stateDetails")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.stateDetails); - if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) - $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.description != null && Object.hasOwnProperty.call(message, "description")) - writer.uint32(/* id 9, wireType 2 =*/74).string(message.description); - if (message.labels != null && Object.hasOwnProperty.call(message, "labels")) - for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i) - writer.uint32(/* id 10, wireType 2 =*/82).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); - if (message.network != null && Object.hasOwnProperty.call(message, "network")) - writer.uint32(/* id 11, wireType 2 =*/90).string(message.network); - if (message.activeDirectory != null && Object.hasOwnProperty.call(message, "activeDirectory")) - writer.uint32(/* id 12, wireType 2 =*/98).string(message.activeDirectory); - if (message.kmsConfig != null && Object.hasOwnProperty.call(message, "kmsConfig")) - writer.uint32(/* id 13, wireType 2 =*/106).string(message.kmsConfig); - if (message.ldapEnabled != null && Object.hasOwnProperty.call(message, "ldapEnabled")) - writer.uint32(/* id 14, wireType 0 =*/112).bool(message.ldapEnabled); - if (message.psaRange != null && Object.hasOwnProperty.call(message, "psaRange")) - writer.uint32(/* id 15, wireType 2 =*/122).string(message.psaRange); - if (message.encryptionType != null && Object.hasOwnProperty.call(message, "encryptionType")) - writer.uint32(/* id 16, wireType 0 =*/128).int32(message.encryptionType); - if (message.globalAccessAllowed != null && Object.hasOwnProperty.call(message, "globalAccessAllowed")) - writer.uint32(/* id 17, wireType 0 =*/136).bool(message.globalAccessAllowed); - if (message.allowAutoTiering != null && Object.hasOwnProperty.call(message, "allowAutoTiering")) - writer.uint32(/* id 18, wireType 0 =*/144).bool(message.allowAutoTiering); - if (message.replicaZone != null && Object.hasOwnProperty.call(message, "replicaZone")) - writer.uint32(/* id 20, wireType 2 =*/162).string(message.replicaZone); - if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) - writer.uint32(/* id 21, wireType 2 =*/170).string(message.zone); - return writer; - }; - - /** - * Encodes the specified StoragePool message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.StoragePool.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.netapp.v1.StoragePool + * @memberof google.cloud.netapp.v1.WeeklySchedule * @static - * @param {google.cloud.netapp.v1.IStoragePool} message StoragePool message or plain object to encode + * @param {google.cloud.netapp.v1.IWeeklySchedule} message WeeklySchedule message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StoragePool.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a StoragePool message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.netapp.v1.StoragePool - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.netapp.v1.StoragePool} StoragePool - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - StoragePool.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.netapp.v1.StoragePool(), key, value; - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.name = reader.string(); - break; - } - case 2: { - message.serviceLevel = reader.int32(); - break; - } - case 3: { - message.capacityGib = reader.int64(); - break; - } - case 4: { - message.volumeCapacityGib = reader.int64(); - break; - } - case 5: { - message.volumeCount = reader.int32(); - break; - } - case 6: { - message.state = reader.int32(); - break; - } - case 7: { - message.stateDetails = reader.string(); - break; - } - case 8: { - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 9: { - message.description = reader.string(); - break; - } - case 10: { - if (message.labels === $util.emptyObject) - message.labels = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = ""; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = reader.string(); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.labels[key] = value; - break; - } - case 11: { - message.network = reader.string(); - break; - } - case 12: { - message.activeDirectory = reader.string(); - break; - } - case 13: { - message.kmsConfig = reader.string(); - break; - } - case 14: { - message.ldapEnabled = reader.bool(); - break; - } - case 15: { - message.psaRange = reader.string(); - break; - } - case 16: { - message.encryptionType = reader.int32(); - break; - } - case 17: { - message.globalAccessAllowed = reader.bool(); + WeeklySchedule.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.snapshotsToKeep != null && Object.hasOwnProperty.call(message, "snapshotsToKeep")) + writer.uint32(/* id 1, wireType 1 =*/9).double(message.snapshotsToKeep); + if (message.minute != null && Object.hasOwnProperty.call(message, "minute")) + writer.uint32(/* id 2, wireType 1 =*/17).double(message.minute); + if (message.hour != null && Object.hasOwnProperty.call(message, "hour")) + writer.uint32(/* id 3, wireType 1 =*/25).double(message.hour); + if (message.day != null && Object.hasOwnProperty.call(message, "day")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.day); + return writer; + }; + + /** + * Encodes the specified WeeklySchedule message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.WeeklySchedule.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.netapp.v1.WeeklySchedule + * @static + * @param {google.cloud.netapp.v1.IWeeklySchedule} message WeeklySchedule message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WeeklySchedule.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a WeeklySchedule message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.netapp.v1.WeeklySchedule + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.netapp.v1.WeeklySchedule} WeeklySchedule + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WeeklySchedule.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.netapp.v1.WeeklySchedule(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.snapshotsToKeep = reader.double(); break; } - case 18: { - message.allowAutoTiering = reader.bool(); + case 2: { + message.minute = reader.double(); break; } - case 20: { - message.replicaZone = reader.string(); + case 3: { + message.hour = reader.double(); break; } - case 21: { - message.zone = reader.string(); + case 4: { + message.day = reader.string(); break; } default: @@ -21002,498 +23422,165 @@ }; /** - * Decodes a StoragePool message from the specified reader or buffer, length delimited. + * Decodes a WeeklySchedule message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.netapp.v1.StoragePool + * @memberof google.cloud.netapp.v1.WeeklySchedule * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.netapp.v1.StoragePool} StoragePool + * @returns {google.cloud.netapp.v1.WeeklySchedule} WeeklySchedule * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StoragePool.decodeDelimited = function decodeDelimited(reader) { + WeeklySchedule.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a StoragePool message. + * Verifies a WeeklySchedule message. * @function verify - * @memberof google.cloud.netapp.v1.StoragePool + * @memberof google.cloud.netapp.v1.WeeklySchedule * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - StoragePool.verify = function verify(message) { + WeeklySchedule.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.serviceLevel != null && message.hasOwnProperty("serviceLevel")) - switch (message.serviceLevel) { - default: - return "serviceLevel: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - break; - } - if (message.capacityGib != null && message.hasOwnProperty("capacityGib")) - if (!$util.isInteger(message.capacityGib) && !(message.capacityGib && $util.isInteger(message.capacityGib.low) && $util.isInteger(message.capacityGib.high))) - return "capacityGib: integer|Long expected"; - if (message.volumeCapacityGib != null && message.hasOwnProperty("volumeCapacityGib")) - if (!$util.isInteger(message.volumeCapacityGib) && !(message.volumeCapacityGib && $util.isInteger(message.volumeCapacityGib.low) && $util.isInteger(message.volumeCapacityGib.high))) - return "volumeCapacityGib: integer|Long expected"; - if (message.volumeCount != null && message.hasOwnProperty("volumeCount")) - if (!$util.isInteger(message.volumeCount)) - return "volumeCount: integer expected"; - if (message.state != null && message.hasOwnProperty("state")) - switch (message.state) { - default: - return "state: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - break; - } - if (message.stateDetails != null && message.hasOwnProperty("stateDetails")) - if (!$util.isString(message.stateDetails)) - return "stateDetails: string expected"; - if (message.createTime != null && message.hasOwnProperty("createTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.createTime); - if (error) - return "createTime." + error; + if (message.snapshotsToKeep != null && message.hasOwnProperty("snapshotsToKeep")) { + properties._snapshotsToKeep = 1; + if (typeof message.snapshotsToKeep !== "number") + return "snapshotsToKeep: number expected"; } - if (message.description != null && message.hasOwnProperty("description")) - if (!$util.isString(message.description)) - return "description: string expected"; - if (message.labels != null && message.hasOwnProperty("labels")) { - if (!$util.isObject(message.labels)) - return "labels: object expected"; - var key = Object.keys(message.labels); - for (var i = 0; i < key.length; ++i) - if (!$util.isString(message.labels[key[i]])) - return "labels: string{k:string} expected"; + if (message.minute != null && message.hasOwnProperty("minute")) { + properties._minute = 1; + if (typeof message.minute !== "number") + return "minute: number expected"; } - if (message.network != null && message.hasOwnProperty("network")) - if (!$util.isString(message.network)) - return "network: string expected"; - if (message.activeDirectory != null && message.hasOwnProperty("activeDirectory")) - if (!$util.isString(message.activeDirectory)) - return "activeDirectory: string expected"; - if (message.kmsConfig != null && message.hasOwnProperty("kmsConfig")) - if (!$util.isString(message.kmsConfig)) - return "kmsConfig: string expected"; - if (message.ldapEnabled != null && message.hasOwnProperty("ldapEnabled")) - if (typeof message.ldapEnabled !== "boolean") - return "ldapEnabled: boolean expected"; - if (message.psaRange != null && message.hasOwnProperty("psaRange")) - if (!$util.isString(message.psaRange)) - return "psaRange: string expected"; - if (message.encryptionType != null && message.hasOwnProperty("encryptionType")) - switch (message.encryptionType) { - default: - return "encryptionType: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.globalAccessAllowed != null && message.hasOwnProperty("globalAccessAllowed")) { - properties._globalAccessAllowed = 1; - if (typeof message.globalAccessAllowed !== "boolean") - return "globalAccessAllowed: boolean expected"; + if (message.hour != null && message.hasOwnProperty("hour")) { + properties._hour = 1; + if (typeof message.hour !== "number") + return "hour: number expected"; + } + if (message.day != null && message.hasOwnProperty("day")) { + properties._day = 1; + if (!$util.isString(message.day)) + return "day: string expected"; } - if (message.allowAutoTiering != null && message.hasOwnProperty("allowAutoTiering")) - if (typeof message.allowAutoTiering !== "boolean") - return "allowAutoTiering: boolean expected"; - if (message.replicaZone != null && message.hasOwnProperty("replicaZone")) - if (!$util.isString(message.replicaZone)) - return "replicaZone: string expected"; - if (message.zone != null && message.hasOwnProperty("zone")) - if (!$util.isString(message.zone)) - return "zone: string expected"; return null; }; /** - * Creates a StoragePool message from a plain object. Also converts values to their respective internal types. + * Creates a WeeklySchedule message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.netapp.v1.StoragePool + * @memberof google.cloud.netapp.v1.WeeklySchedule * @static * @param {Object.} object Plain object - * @returns {google.cloud.netapp.v1.StoragePool} StoragePool + * @returns {google.cloud.netapp.v1.WeeklySchedule} WeeklySchedule */ - StoragePool.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.netapp.v1.StoragePool) + WeeklySchedule.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.netapp.v1.WeeklySchedule) return object; - var message = new $root.google.cloud.netapp.v1.StoragePool(); - if (object.name != null) - message.name = String(object.name); - switch (object.serviceLevel) { - default: - if (typeof object.serviceLevel === "number") { - message.serviceLevel = object.serviceLevel; - break; - } - break; - case "SERVICE_LEVEL_UNSPECIFIED": - case 0: - message.serviceLevel = 0; - break; - case "PREMIUM": - case 1: - message.serviceLevel = 1; - break; - case "EXTREME": - case 2: - message.serviceLevel = 2; - break; - case "STANDARD": - case 3: - message.serviceLevel = 3; - break; - case "FLEX": - case 4: - message.serviceLevel = 4; - break; - } - if (object.capacityGib != null) - if ($util.Long) - (message.capacityGib = $util.Long.fromValue(object.capacityGib)).unsigned = false; - else if (typeof object.capacityGib === "string") - message.capacityGib = parseInt(object.capacityGib, 10); - else if (typeof object.capacityGib === "number") - message.capacityGib = object.capacityGib; - else if (typeof object.capacityGib === "object") - message.capacityGib = new $util.LongBits(object.capacityGib.low >>> 0, object.capacityGib.high >>> 0).toNumber(); - if (object.volumeCapacityGib != null) - if ($util.Long) - (message.volumeCapacityGib = $util.Long.fromValue(object.volumeCapacityGib)).unsigned = false; - else if (typeof object.volumeCapacityGib === "string") - message.volumeCapacityGib = parseInt(object.volumeCapacityGib, 10); - else if (typeof object.volumeCapacityGib === "number") - message.volumeCapacityGib = object.volumeCapacityGib; - else if (typeof object.volumeCapacityGib === "object") - message.volumeCapacityGib = new $util.LongBits(object.volumeCapacityGib.low >>> 0, object.volumeCapacityGib.high >>> 0).toNumber(); - if (object.volumeCount != null) - message.volumeCount = object.volumeCount | 0; - switch (object.state) { - default: - if (typeof object.state === "number") { - message.state = object.state; - break; - } - break; - case "STATE_UNSPECIFIED": - case 0: - message.state = 0; - break; - case "READY": - case 1: - message.state = 1; - break; - case "CREATING": - case 2: - message.state = 2; - break; - case "DELETING": - case 3: - message.state = 3; - break; - case "UPDATING": - case 4: - message.state = 4; - break; - case "RESTORING": - case 5: - message.state = 5; - break; - case "DISABLED": - case 6: - message.state = 6; - break; - case "ERROR": - case 7: - message.state = 7; - break; - } - if (object.stateDetails != null) - message.stateDetails = String(object.stateDetails); - if (object.createTime != null) { - if (typeof object.createTime !== "object") - throw TypeError(".google.cloud.netapp.v1.StoragePool.createTime: object expected"); - message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); - } - if (object.description != null) - message.description = String(object.description); - if (object.labels) { - if (typeof object.labels !== "object") - throw TypeError(".google.cloud.netapp.v1.StoragePool.labels: object expected"); - message.labels = {}; - for (var keys = Object.keys(object.labels), i = 0; i < keys.length; ++i) - message.labels[keys[i]] = String(object.labels[keys[i]]); - } - if (object.network != null) - message.network = String(object.network); - if (object.activeDirectory != null) - message.activeDirectory = String(object.activeDirectory); - if (object.kmsConfig != null) - message.kmsConfig = String(object.kmsConfig); - if (object.ldapEnabled != null) - message.ldapEnabled = Boolean(object.ldapEnabled); - if (object.psaRange != null) - message.psaRange = String(object.psaRange); - switch (object.encryptionType) { - default: - if (typeof object.encryptionType === "number") { - message.encryptionType = object.encryptionType; - break; - } - break; - case "ENCRYPTION_TYPE_UNSPECIFIED": - case 0: - message.encryptionType = 0; - break; - case "SERVICE_MANAGED": - case 1: - message.encryptionType = 1; - break; - case "CLOUD_KMS": - case 2: - message.encryptionType = 2; - break; - } - if (object.globalAccessAllowed != null) - message.globalAccessAllowed = Boolean(object.globalAccessAllowed); - if (object.allowAutoTiering != null) - message.allowAutoTiering = Boolean(object.allowAutoTiering); - if (object.replicaZone != null) - message.replicaZone = String(object.replicaZone); - if (object.zone != null) - message.zone = String(object.zone); + var message = new $root.google.cloud.netapp.v1.WeeklySchedule(); + if (object.snapshotsToKeep != null) + message.snapshotsToKeep = Number(object.snapshotsToKeep); + if (object.minute != null) + message.minute = Number(object.minute); + if (object.hour != null) + message.hour = Number(object.hour); + if (object.day != null) + message.day = String(object.day); return message; }; /** - * Creates a plain object from a StoragePool message. Also converts values to other types if specified. + * Creates a plain object from a WeeklySchedule message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.netapp.v1.StoragePool + * @memberof google.cloud.netapp.v1.WeeklySchedule * @static - * @param {google.cloud.netapp.v1.StoragePool} message StoragePool + * @param {google.cloud.netapp.v1.WeeklySchedule} message WeeklySchedule * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - StoragePool.toObject = function toObject(message, options) { + WeeklySchedule.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.objects || options.defaults) - object.labels = {}; - if (options.defaults) { - object.name = ""; - object.serviceLevel = options.enums === String ? "SERVICE_LEVEL_UNSPECIFIED" : 0; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.capacityGib = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.capacityGib = options.longs === String ? "0" : 0; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.volumeCapacityGib = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.volumeCapacityGib = options.longs === String ? "0" : 0; - object.volumeCount = 0; - object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; - object.stateDetails = ""; - object.createTime = null; - object.description = ""; - object.network = ""; - object.activeDirectory = ""; - object.kmsConfig = ""; - object.ldapEnabled = false; - object.psaRange = ""; - object.encryptionType = options.enums === String ? "ENCRYPTION_TYPE_UNSPECIFIED" : 0; - object.allowAutoTiering = false; - object.replicaZone = ""; - object.zone = ""; + if (message.snapshotsToKeep != null && message.hasOwnProperty("snapshotsToKeep")) { + object.snapshotsToKeep = options.json && !isFinite(message.snapshotsToKeep) ? String(message.snapshotsToKeep) : message.snapshotsToKeep; + if (options.oneofs) + object._snapshotsToKeep = "snapshotsToKeep"; } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.serviceLevel != null && message.hasOwnProperty("serviceLevel")) - object.serviceLevel = options.enums === String ? $root.google.cloud.netapp.v1.ServiceLevel[message.serviceLevel] === undefined ? message.serviceLevel : $root.google.cloud.netapp.v1.ServiceLevel[message.serviceLevel] : message.serviceLevel; - if (message.capacityGib != null && message.hasOwnProperty("capacityGib")) - if (typeof message.capacityGib === "number") - object.capacityGib = options.longs === String ? String(message.capacityGib) : message.capacityGib; - else - object.capacityGib = options.longs === String ? $util.Long.prototype.toString.call(message.capacityGib) : options.longs === Number ? new $util.LongBits(message.capacityGib.low >>> 0, message.capacityGib.high >>> 0).toNumber() : message.capacityGib; - if (message.volumeCapacityGib != null && message.hasOwnProperty("volumeCapacityGib")) - if (typeof message.volumeCapacityGib === "number") - object.volumeCapacityGib = options.longs === String ? String(message.volumeCapacityGib) : message.volumeCapacityGib; - else - object.volumeCapacityGib = options.longs === String ? $util.Long.prototype.toString.call(message.volumeCapacityGib) : options.longs === Number ? new $util.LongBits(message.volumeCapacityGib.low >>> 0, message.volumeCapacityGib.high >>> 0).toNumber() : message.volumeCapacityGib; - if (message.volumeCount != null && message.hasOwnProperty("volumeCount")) - object.volumeCount = message.volumeCount; - if (message.state != null && message.hasOwnProperty("state")) - object.state = options.enums === String ? $root.google.cloud.netapp.v1.StoragePool.State[message.state] === undefined ? message.state : $root.google.cloud.netapp.v1.StoragePool.State[message.state] : message.state; - if (message.stateDetails != null && message.hasOwnProperty("stateDetails")) - object.stateDetails = message.stateDetails; - if (message.createTime != null && message.hasOwnProperty("createTime")) - object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); - if (message.description != null && message.hasOwnProperty("description")) - object.description = message.description; - var keys2; - if (message.labels && (keys2 = Object.keys(message.labels)).length) { - object.labels = {}; - for (var j = 0; j < keys2.length; ++j) - object.labels[keys2[j]] = message.labels[keys2[j]]; + if (message.minute != null && message.hasOwnProperty("minute")) { + object.minute = options.json && !isFinite(message.minute) ? String(message.minute) : message.minute; + if (options.oneofs) + object._minute = "minute"; } - if (message.network != null && message.hasOwnProperty("network")) - object.network = message.network; - if (message.activeDirectory != null && message.hasOwnProperty("activeDirectory")) - object.activeDirectory = message.activeDirectory; - if (message.kmsConfig != null && message.hasOwnProperty("kmsConfig")) - object.kmsConfig = message.kmsConfig; - if (message.ldapEnabled != null && message.hasOwnProperty("ldapEnabled")) - object.ldapEnabled = message.ldapEnabled; - if (message.psaRange != null && message.hasOwnProperty("psaRange")) - object.psaRange = message.psaRange; - if (message.encryptionType != null && message.hasOwnProperty("encryptionType")) - object.encryptionType = options.enums === String ? $root.google.cloud.netapp.v1.EncryptionType[message.encryptionType] === undefined ? message.encryptionType : $root.google.cloud.netapp.v1.EncryptionType[message.encryptionType] : message.encryptionType; - if (message.globalAccessAllowed != null && message.hasOwnProperty("globalAccessAllowed")) { - object.globalAccessAllowed = message.globalAccessAllowed; + if (message.hour != null && message.hasOwnProperty("hour")) { + object.hour = options.json && !isFinite(message.hour) ? String(message.hour) : message.hour; if (options.oneofs) - object._globalAccessAllowed = "globalAccessAllowed"; + object._hour = "hour"; + } + if (message.day != null && message.hasOwnProperty("day")) { + object.day = message.day; + if (options.oneofs) + object._day = "day"; } - if (message.allowAutoTiering != null && message.hasOwnProperty("allowAutoTiering")) - object.allowAutoTiering = message.allowAutoTiering; - if (message.replicaZone != null && message.hasOwnProperty("replicaZone")) - object.replicaZone = message.replicaZone; - if (message.zone != null && message.hasOwnProperty("zone")) - object.zone = message.zone; return object; }; /** - * Converts this StoragePool to JSON. + * Converts this WeeklySchedule to JSON. * @function toJSON - * @memberof google.cloud.netapp.v1.StoragePool + * @memberof google.cloud.netapp.v1.WeeklySchedule * @instance * @returns {Object.} JSON object */ - StoragePool.prototype.toJSON = function toJSON() { + WeeklySchedule.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for StoragePool + * Gets the default type url for WeeklySchedule * @function getTypeUrl - * @memberof google.cloud.netapp.v1.StoragePool + * @memberof google.cloud.netapp.v1.WeeklySchedule * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - StoragePool.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.netapp.v1.StoragePool"; - }; - - /** - * State enum. - * @name google.cloud.netapp.v1.StoragePool.State - * @enum {number} - * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value - * @property {number} READY=1 READY value - * @property {number} CREATING=2 CREATING value - * @property {number} DELETING=3 DELETING value - * @property {number} UPDATING=4 UPDATING value - * @property {number} RESTORING=5 RESTORING value - * @property {number} DISABLED=6 DISABLED value - * @property {number} ERROR=7 ERROR value - */ - StoragePool.State = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "STATE_UNSPECIFIED"] = 0; - values[valuesById[1] = "READY"] = 1; - values[valuesById[2] = "CREATING"] = 2; - values[valuesById[3] = "DELETING"] = 3; - values[valuesById[4] = "UPDATING"] = 4; - values[valuesById[5] = "RESTORING"] = 5; - values[valuesById[6] = "DISABLED"] = 6; - values[valuesById[7] = "ERROR"] = 7; - return values; - })(); - - return StoragePool; - })(); - - /** - * ServiceLevel enum. - * @name google.cloud.netapp.v1.ServiceLevel - * @enum {number} - * @property {number} SERVICE_LEVEL_UNSPECIFIED=0 SERVICE_LEVEL_UNSPECIFIED value - * @property {number} PREMIUM=1 PREMIUM value - * @property {number} EXTREME=2 EXTREME value - * @property {number} STANDARD=3 STANDARD value - * @property {number} FLEX=4 FLEX value - */ - v1.ServiceLevel = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "SERVICE_LEVEL_UNSPECIFIED"] = 0; - values[valuesById[1] = "PREMIUM"] = 1; - values[valuesById[2] = "EXTREME"] = 2; - values[valuesById[3] = "STANDARD"] = 3; - values[valuesById[4] = "FLEX"] = 4; - return values; - })(); + WeeklySchedule.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.netapp.v1.WeeklySchedule"; + }; - /** - * EncryptionType enum. - * @name google.cloud.netapp.v1.EncryptionType - * @enum {number} - * @property {number} ENCRYPTION_TYPE_UNSPECIFIED=0 ENCRYPTION_TYPE_UNSPECIFIED value - * @property {number} SERVICE_MANAGED=1 SERVICE_MANAGED value - * @property {number} CLOUD_KMS=2 CLOUD_KMS value - */ - v1.EncryptionType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "ENCRYPTION_TYPE_UNSPECIFIED"] = 0; - values[valuesById[1] = "SERVICE_MANAGED"] = 1; - values[valuesById[2] = "CLOUD_KMS"] = 2; - return values; + return WeeklySchedule; })(); - v1.LocationMetadata = (function() { + v1.MonthlySchedule = (function() { /** - * Properties of a LocationMetadata. + * Properties of a MonthlySchedule. * @memberof google.cloud.netapp.v1 - * @interface ILocationMetadata - * @property {Array.|null} [supportedServiceLevels] LocationMetadata supportedServiceLevels + * @interface IMonthlySchedule + * @property {number|null} [snapshotsToKeep] MonthlySchedule snapshotsToKeep + * @property {number|null} [minute] MonthlySchedule minute + * @property {number|null} [hour] MonthlySchedule hour + * @property {string|null} [daysOfMonth] MonthlySchedule daysOfMonth */ /** - * Constructs a new LocationMetadata. + * Constructs a new MonthlySchedule. * @memberof google.cloud.netapp.v1 - * @classdesc Represents a LocationMetadata. - * @implements ILocationMetadata + * @classdesc Represents a MonthlySchedule. + * @implements IMonthlySchedule * @constructor - * @param {google.cloud.netapp.v1.ILocationMetadata=} [properties] Properties to set + * @param {google.cloud.netapp.v1.IMonthlySchedule=} [properties] Properties to set */ - function LocationMetadata(properties) { - this.supportedServiceLevels = []; + function MonthlySchedule(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -21501,86 +23588,164 @@ } /** - * LocationMetadata supportedServiceLevels. - * @member {Array.} supportedServiceLevels - * @memberof google.cloud.netapp.v1.LocationMetadata + * MonthlySchedule snapshotsToKeep. + * @member {number|null|undefined} snapshotsToKeep + * @memberof google.cloud.netapp.v1.MonthlySchedule * @instance */ - LocationMetadata.prototype.supportedServiceLevels = $util.emptyArray; + MonthlySchedule.prototype.snapshotsToKeep = null; /** - * Creates a new LocationMetadata instance using the specified properties. + * MonthlySchedule minute. + * @member {number|null|undefined} minute + * @memberof google.cloud.netapp.v1.MonthlySchedule + * @instance + */ + MonthlySchedule.prototype.minute = null; + + /** + * MonthlySchedule hour. + * @member {number|null|undefined} hour + * @memberof google.cloud.netapp.v1.MonthlySchedule + * @instance + */ + MonthlySchedule.prototype.hour = null; + + /** + * MonthlySchedule daysOfMonth. + * @member {string|null|undefined} daysOfMonth + * @memberof google.cloud.netapp.v1.MonthlySchedule + * @instance + */ + MonthlySchedule.prototype.daysOfMonth = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * MonthlySchedule _snapshotsToKeep. + * @member {"snapshotsToKeep"|undefined} _snapshotsToKeep + * @memberof google.cloud.netapp.v1.MonthlySchedule + * @instance + */ + Object.defineProperty(MonthlySchedule.prototype, "_snapshotsToKeep", { + get: $util.oneOfGetter($oneOfFields = ["snapshotsToKeep"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * MonthlySchedule _minute. + * @member {"minute"|undefined} _minute + * @memberof google.cloud.netapp.v1.MonthlySchedule + * @instance + */ + Object.defineProperty(MonthlySchedule.prototype, "_minute", { + get: $util.oneOfGetter($oneOfFields = ["minute"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * MonthlySchedule _hour. + * @member {"hour"|undefined} _hour + * @memberof google.cloud.netapp.v1.MonthlySchedule + * @instance + */ + Object.defineProperty(MonthlySchedule.prototype, "_hour", { + get: $util.oneOfGetter($oneOfFields = ["hour"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * MonthlySchedule _daysOfMonth. + * @member {"daysOfMonth"|undefined} _daysOfMonth + * @memberof google.cloud.netapp.v1.MonthlySchedule + * @instance + */ + Object.defineProperty(MonthlySchedule.prototype, "_daysOfMonth", { + get: $util.oneOfGetter($oneOfFields = ["daysOfMonth"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new MonthlySchedule instance using the specified properties. * @function create - * @memberof google.cloud.netapp.v1.LocationMetadata + * @memberof google.cloud.netapp.v1.MonthlySchedule * @static - * @param {google.cloud.netapp.v1.ILocationMetadata=} [properties] Properties to set - * @returns {google.cloud.netapp.v1.LocationMetadata} LocationMetadata instance + * @param {google.cloud.netapp.v1.IMonthlySchedule=} [properties] Properties to set + * @returns {google.cloud.netapp.v1.MonthlySchedule} MonthlySchedule instance */ - LocationMetadata.create = function create(properties) { - return new LocationMetadata(properties); + MonthlySchedule.create = function create(properties) { + return new MonthlySchedule(properties); }; /** - * Encodes the specified LocationMetadata message. Does not implicitly {@link google.cloud.netapp.v1.LocationMetadata.verify|verify} messages. + * Encodes the specified MonthlySchedule message. Does not implicitly {@link google.cloud.netapp.v1.MonthlySchedule.verify|verify} messages. * @function encode - * @memberof google.cloud.netapp.v1.LocationMetadata + * @memberof google.cloud.netapp.v1.MonthlySchedule * @static - * @param {google.cloud.netapp.v1.ILocationMetadata} message LocationMetadata message or plain object to encode + * @param {google.cloud.netapp.v1.IMonthlySchedule} message MonthlySchedule message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - LocationMetadata.encode = function encode(message, writer) { + MonthlySchedule.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.supportedServiceLevels != null && message.supportedServiceLevels.length) { - writer.uint32(/* id 1, wireType 2 =*/10).fork(); - for (var i = 0; i < message.supportedServiceLevels.length; ++i) - writer.int32(message.supportedServiceLevels[i]); - writer.ldelim(); - } + if (message.snapshotsToKeep != null && Object.hasOwnProperty.call(message, "snapshotsToKeep")) + writer.uint32(/* id 1, wireType 1 =*/9).double(message.snapshotsToKeep); + if (message.minute != null && Object.hasOwnProperty.call(message, "minute")) + writer.uint32(/* id 2, wireType 1 =*/17).double(message.minute); + if (message.hour != null && Object.hasOwnProperty.call(message, "hour")) + writer.uint32(/* id 3, wireType 1 =*/25).double(message.hour); + if (message.daysOfMonth != null && Object.hasOwnProperty.call(message, "daysOfMonth")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.daysOfMonth); return writer; }; /** - * Encodes the specified LocationMetadata message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.LocationMetadata.verify|verify} messages. + * Encodes the specified MonthlySchedule message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.MonthlySchedule.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.netapp.v1.LocationMetadata + * @memberof google.cloud.netapp.v1.MonthlySchedule * @static - * @param {google.cloud.netapp.v1.ILocationMetadata} message LocationMetadata message or plain object to encode + * @param {google.cloud.netapp.v1.IMonthlySchedule} message MonthlySchedule message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - LocationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + MonthlySchedule.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a LocationMetadata message from the specified reader or buffer. + * Decodes a MonthlySchedule message from the specified reader or buffer. * @function decode - * @memberof google.cloud.netapp.v1.LocationMetadata + * @memberof google.cloud.netapp.v1.MonthlySchedule * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.netapp.v1.LocationMetadata} LocationMetadata + * @returns {google.cloud.netapp.v1.MonthlySchedule} MonthlySchedule * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - LocationMetadata.decode = function decode(reader, length) { + MonthlySchedule.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.netapp.v1.LocationMetadata(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.netapp.v1.MonthlySchedule(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.supportedServiceLevels && message.supportedServiceLevels.length)) - message.supportedServiceLevels = []; - if ((tag & 7) === 2) { - var end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.supportedServiceLevels.push(reader.int32()); - } else - message.supportedServiceLevels.push(reader.int32()); + message.snapshotsToKeep = reader.double(); + break; + } + case 2: { + message.minute = reader.double(); + break; + } + case 3: { + message.hour = reader.double(); + break; + } + case 4: { + message.daysOfMonth = reader.string(); break; } default: @@ -21592,268 +23757,165 @@ }; /** - * Decodes a LocationMetadata message from the specified reader or buffer, length delimited. + * Decodes a MonthlySchedule message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.netapp.v1.LocationMetadata + * @memberof google.cloud.netapp.v1.MonthlySchedule * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.netapp.v1.LocationMetadata} LocationMetadata + * @returns {google.cloud.netapp.v1.MonthlySchedule} MonthlySchedule * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - LocationMetadata.decodeDelimited = function decodeDelimited(reader) { + MonthlySchedule.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a LocationMetadata message. + * Verifies a MonthlySchedule message. * @function verify - * @memberof google.cloud.netapp.v1.LocationMetadata + * @memberof google.cloud.netapp.v1.MonthlySchedule * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - LocationMetadata.verify = function verify(message) { + MonthlySchedule.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.supportedServiceLevels != null && message.hasOwnProperty("supportedServiceLevels")) { - if (!Array.isArray(message.supportedServiceLevels)) - return "supportedServiceLevels: array expected"; - for (var i = 0; i < message.supportedServiceLevels.length; ++i) - switch (message.supportedServiceLevels[i]) { - default: - return "supportedServiceLevels: enum value[] expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - break; - } + var properties = {}; + if (message.snapshotsToKeep != null && message.hasOwnProperty("snapshotsToKeep")) { + properties._snapshotsToKeep = 1; + if (typeof message.snapshotsToKeep !== "number") + return "snapshotsToKeep: number expected"; + } + if (message.minute != null && message.hasOwnProperty("minute")) { + properties._minute = 1; + if (typeof message.minute !== "number") + return "minute: number expected"; + } + if (message.hour != null && message.hasOwnProperty("hour")) { + properties._hour = 1; + if (typeof message.hour !== "number") + return "hour: number expected"; + } + if (message.daysOfMonth != null && message.hasOwnProperty("daysOfMonth")) { + properties._daysOfMonth = 1; + if (!$util.isString(message.daysOfMonth)) + return "daysOfMonth: string expected"; } return null; }; /** - * Creates a LocationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a MonthlySchedule message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.netapp.v1.LocationMetadata + * @memberof google.cloud.netapp.v1.MonthlySchedule * @static * @param {Object.} object Plain object - * @returns {google.cloud.netapp.v1.LocationMetadata} LocationMetadata + * @returns {google.cloud.netapp.v1.MonthlySchedule} MonthlySchedule */ - LocationMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.netapp.v1.LocationMetadata) + MonthlySchedule.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.netapp.v1.MonthlySchedule) return object; - var message = new $root.google.cloud.netapp.v1.LocationMetadata(); - if (object.supportedServiceLevels) { - if (!Array.isArray(object.supportedServiceLevels)) - throw TypeError(".google.cloud.netapp.v1.LocationMetadata.supportedServiceLevels: array expected"); - message.supportedServiceLevels = []; - for (var i = 0; i < object.supportedServiceLevels.length; ++i) - switch (object.supportedServiceLevels[i]) { - default: - if (typeof object.supportedServiceLevels[i] === "number") { - message.supportedServiceLevels[i] = object.supportedServiceLevels[i]; - break; - } - case "SERVICE_LEVEL_UNSPECIFIED": - case 0: - message.supportedServiceLevels[i] = 0; - break; - case "PREMIUM": - case 1: - message.supportedServiceLevels[i] = 1; - break; - case "EXTREME": - case 2: - message.supportedServiceLevels[i] = 2; - break; - case "STANDARD": - case 3: - message.supportedServiceLevels[i] = 3; - break; - case "FLEX": - case 4: - message.supportedServiceLevels[i] = 4; - break; - } - } + var message = new $root.google.cloud.netapp.v1.MonthlySchedule(); + if (object.snapshotsToKeep != null) + message.snapshotsToKeep = Number(object.snapshotsToKeep); + if (object.minute != null) + message.minute = Number(object.minute); + if (object.hour != null) + message.hour = Number(object.hour); + if (object.daysOfMonth != null) + message.daysOfMonth = String(object.daysOfMonth); return message; }; /** - * Creates a plain object from a LocationMetadata message. Also converts values to other types if specified. + * Creates a plain object from a MonthlySchedule message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.netapp.v1.LocationMetadata + * @memberof google.cloud.netapp.v1.MonthlySchedule * @static - * @param {google.cloud.netapp.v1.LocationMetadata} message LocationMetadata + * @param {google.cloud.netapp.v1.MonthlySchedule} message MonthlySchedule * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - LocationMetadata.toObject = function toObject(message, options) { + MonthlySchedule.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.supportedServiceLevels = []; - if (message.supportedServiceLevels && message.supportedServiceLevels.length) { - object.supportedServiceLevels = []; - for (var j = 0; j < message.supportedServiceLevels.length; ++j) - object.supportedServiceLevels[j] = options.enums === String ? $root.google.cloud.netapp.v1.ServiceLevel[message.supportedServiceLevels[j]] === undefined ? message.supportedServiceLevels[j] : $root.google.cloud.netapp.v1.ServiceLevel[message.supportedServiceLevels[j]] : message.supportedServiceLevels[j]; + if (message.snapshotsToKeep != null && message.hasOwnProperty("snapshotsToKeep")) { + object.snapshotsToKeep = options.json && !isFinite(message.snapshotsToKeep) ? String(message.snapshotsToKeep) : message.snapshotsToKeep; + if (options.oneofs) + object._snapshotsToKeep = "snapshotsToKeep"; + } + if (message.minute != null && message.hasOwnProperty("minute")) { + object.minute = options.json && !isFinite(message.minute) ? String(message.minute) : message.minute; + if (options.oneofs) + object._minute = "minute"; + } + if (message.hour != null && message.hasOwnProperty("hour")) { + object.hour = options.json && !isFinite(message.hour) ? String(message.hour) : message.hour; + if (options.oneofs) + object._hour = "hour"; + } + if (message.daysOfMonth != null && message.hasOwnProperty("daysOfMonth")) { + object.daysOfMonth = message.daysOfMonth; + if (options.oneofs) + object._daysOfMonth = "daysOfMonth"; } return object; }; /** - * Converts this LocationMetadata to JSON. + * Converts this MonthlySchedule to JSON. * @function toJSON - * @memberof google.cloud.netapp.v1.LocationMetadata + * @memberof google.cloud.netapp.v1.MonthlySchedule * @instance * @returns {Object.} JSON object */ - LocationMetadata.prototype.toJSON = function toJSON() { + MonthlySchedule.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for LocationMetadata + * Gets the default type url for MonthlySchedule * @function getTypeUrl - * @memberof google.cloud.netapp.v1.LocationMetadata + * @memberof google.cloud.netapp.v1.MonthlySchedule * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - LocationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + MonthlySchedule.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.netapp.v1.LocationMetadata"; + return typeUrlPrefix + "/google.cloud.netapp.v1.MonthlySchedule"; }; - return LocationMetadata; - })(); - - /** - * Protocols enum. - * @name google.cloud.netapp.v1.Protocols - * @enum {number} - * @property {number} PROTOCOLS_UNSPECIFIED=0 PROTOCOLS_UNSPECIFIED value - * @property {number} NFSV3=1 NFSV3 value - * @property {number} NFSV4=2 NFSV4 value - * @property {number} SMB=3 SMB value - */ - v1.Protocols = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "PROTOCOLS_UNSPECIFIED"] = 0; - values[valuesById[1] = "NFSV3"] = 1; - values[valuesById[2] = "NFSV4"] = 2; - values[valuesById[3] = "SMB"] = 3; - return values; - })(); - - /** - * AccessType enum. - * @name google.cloud.netapp.v1.AccessType - * @enum {number} - * @property {number} ACCESS_TYPE_UNSPECIFIED=0 ACCESS_TYPE_UNSPECIFIED value - * @property {number} READ_ONLY=1 READ_ONLY value - * @property {number} READ_WRITE=2 READ_WRITE value - * @property {number} READ_NONE=3 READ_NONE value - */ - v1.AccessType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "ACCESS_TYPE_UNSPECIFIED"] = 0; - values[valuesById[1] = "READ_ONLY"] = 1; - values[valuesById[2] = "READ_WRITE"] = 2; - values[valuesById[3] = "READ_NONE"] = 3; - return values; - })(); - - /** - * SMBSettings enum. - * @name google.cloud.netapp.v1.SMBSettings - * @enum {number} - * @property {number} SMB_SETTINGS_UNSPECIFIED=0 SMB_SETTINGS_UNSPECIFIED value - * @property {number} ENCRYPT_DATA=1 ENCRYPT_DATA value - * @property {number} BROWSABLE=2 BROWSABLE value - * @property {number} CHANGE_NOTIFY=3 CHANGE_NOTIFY value - * @property {number} NON_BROWSABLE=4 NON_BROWSABLE value - * @property {number} OPLOCKS=5 OPLOCKS value - * @property {number} SHOW_SNAPSHOT=6 SHOW_SNAPSHOT value - * @property {number} SHOW_PREVIOUS_VERSIONS=7 SHOW_PREVIOUS_VERSIONS value - * @property {number} ACCESS_BASED_ENUMERATION=8 ACCESS_BASED_ENUMERATION value - * @property {number} CONTINUOUSLY_AVAILABLE=9 CONTINUOUSLY_AVAILABLE value - */ - v1.SMBSettings = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "SMB_SETTINGS_UNSPECIFIED"] = 0; - values[valuesById[1] = "ENCRYPT_DATA"] = 1; - values[valuesById[2] = "BROWSABLE"] = 2; - values[valuesById[3] = "CHANGE_NOTIFY"] = 3; - values[valuesById[4] = "NON_BROWSABLE"] = 4; - values[valuesById[5] = "OPLOCKS"] = 5; - values[valuesById[6] = "SHOW_SNAPSHOT"] = 6; - values[valuesById[7] = "SHOW_PREVIOUS_VERSIONS"] = 7; - values[valuesById[8] = "ACCESS_BASED_ENUMERATION"] = 8; - values[valuesById[9] = "CONTINUOUSLY_AVAILABLE"] = 9; - return values; - })(); - - /** - * SecurityStyle enum. - * @name google.cloud.netapp.v1.SecurityStyle - * @enum {number} - * @property {number} SECURITY_STYLE_UNSPECIFIED=0 SECURITY_STYLE_UNSPECIFIED value - * @property {number} NTFS=1 NTFS value - * @property {number} UNIX=2 UNIX value - */ - v1.SecurityStyle = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "SECURITY_STYLE_UNSPECIFIED"] = 0; - values[valuesById[1] = "NTFS"] = 1; - values[valuesById[2] = "UNIX"] = 2; - return values; - })(); - - /** - * RestrictedAction enum. - * @name google.cloud.netapp.v1.RestrictedAction - * @enum {number} - * @property {number} RESTRICTED_ACTION_UNSPECIFIED=0 RESTRICTED_ACTION_UNSPECIFIED value - * @property {number} DELETE=1 DELETE value - */ - v1.RestrictedAction = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "RESTRICTED_ACTION_UNSPECIFIED"] = 0; - values[valuesById[1] = "DELETE"] = 1; - return values; + return MonthlySchedule; })(); - v1.ListVolumesRequest = (function() { + v1.MountOption = (function() { /** - * Properties of a ListVolumesRequest. + * Properties of a MountOption. * @memberof google.cloud.netapp.v1 - * @interface IListVolumesRequest - * @property {string|null} [parent] ListVolumesRequest parent - * @property {number|null} [pageSize] ListVolumesRequest pageSize - * @property {string|null} [pageToken] ListVolumesRequest pageToken - * @property {string|null} [filter] ListVolumesRequest filter - * @property {string|null} [orderBy] ListVolumesRequest orderBy + * @interface IMountOption + * @property {string|null} ["export"] MountOption export + * @property {string|null} [exportFull] MountOption exportFull + * @property {google.cloud.netapp.v1.Protocols|null} [protocol] MountOption protocol + * @property {string|null} [instructions] MountOption instructions */ /** - * Constructs a new ListVolumesRequest. + * Constructs a new MountOption. * @memberof google.cloud.netapp.v1 - * @classdesc Represents a ListVolumesRequest. - * @implements IListVolumesRequest + * @classdesc Represents a MountOption. + * @implements IMountOption * @constructor - * @param {google.cloud.netapp.v1.IListVolumesRequest=} [properties] Properties to set + * @param {google.cloud.netapp.v1.IMountOption=} [properties] Properties to set */ - function ListVolumesRequest(properties) { + function MountOption(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -21861,131 +23923,117 @@ } /** - * ListVolumesRequest parent. - * @member {string} parent - * @memberof google.cloud.netapp.v1.ListVolumesRequest - * @instance - */ - ListVolumesRequest.prototype.parent = ""; - - /** - * ListVolumesRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.netapp.v1.ListVolumesRequest + * MountOption export. + * @member {string} export + * @memberof google.cloud.netapp.v1.MountOption * @instance */ - ListVolumesRequest.prototype.pageSize = 0; + MountOption.prototype["export"] = ""; /** - * ListVolumesRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.netapp.v1.ListVolumesRequest + * MountOption exportFull. + * @member {string} exportFull + * @memberof google.cloud.netapp.v1.MountOption * @instance */ - ListVolumesRequest.prototype.pageToken = ""; + MountOption.prototype.exportFull = ""; /** - * ListVolumesRequest filter. - * @member {string} filter - * @memberof google.cloud.netapp.v1.ListVolumesRequest + * MountOption protocol. + * @member {google.cloud.netapp.v1.Protocols} protocol + * @memberof google.cloud.netapp.v1.MountOption * @instance */ - ListVolumesRequest.prototype.filter = ""; + MountOption.prototype.protocol = 0; /** - * ListVolumesRequest orderBy. - * @member {string} orderBy - * @memberof google.cloud.netapp.v1.ListVolumesRequest + * MountOption instructions. + * @member {string} instructions + * @memberof google.cloud.netapp.v1.MountOption * @instance */ - ListVolumesRequest.prototype.orderBy = ""; + MountOption.prototype.instructions = ""; /** - * Creates a new ListVolumesRequest instance using the specified properties. + * Creates a new MountOption instance using the specified properties. * @function create - * @memberof google.cloud.netapp.v1.ListVolumesRequest + * @memberof google.cloud.netapp.v1.MountOption * @static - * @param {google.cloud.netapp.v1.IListVolumesRequest=} [properties] Properties to set - * @returns {google.cloud.netapp.v1.ListVolumesRequest} ListVolumesRequest instance + * @param {google.cloud.netapp.v1.IMountOption=} [properties] Properties to set + * @returns {google.cloud.netapp.v1.MountOption} MountOption instance */ - ListVolumesRequest.create = function create(properties) { - return new ListVolumesRequest(properties); + MountOption.create = function create(properties) { + return new MountOption(properties); }; /** - * Encodes the specified ListVolumesRequest message. Does not implicitly {@link google.cloud.netapp.v1.ListVolumesRequest.verify|verify} messages. + * Encodes the specified MountOption message. Does not implicitly {@link google.cloud.netapp.v1.MountOption.verify|verify} messages. * @function encode - * @memberof google.cloud.netapp.v1.ListVolumesRequest + * @memberof google.cloud.netapp.v1.MountOption * @static - * @param {google.cloud.netapp.v1.IListVolumesRequest} message ListVolumesRequest message or plain object to encode + * @param {google.cloud.netapp.v1.IMountOption} message MountOption message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListVolumesRequest.encode = function encode(message, writer) { + MountOption.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); - if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.filter); - if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.orderBy); + if (message["export"] != null && Object.hasOwnProperty.call(message, "export")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message["export"]); + if (message.exportFull != null && Object.hasOwnProperty.call(message, "exportFull")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.exportFull); + if (message.protocol != null && Object.hasOwnProperty.call(message, "protocol")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.protocol); + if (message.instructions != null && Object.hasOwnProperty.call(message, "instructions")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.instructions); return writer; }; /** - * Encodes the specified ListVolumesRequest message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.ListVolumesRequest.verify|verify} messages. + * Encodes the specified MountOption message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.MountOption.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.netapp.v1.ListVolumesRequest + * @memberof google.cloud.netapp.v1.MountOption * @static - * @param {google.cloud.netapp.v1.IListVolumesRequest} message ListVolumesRequest message or plain object to encode + * @param {google.cloud.netapp.v1.IMountOption} message MountOption message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListVolumesRequest.encodeDelimited = function encodeDelimited(message, writer) { + MountOption.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListVolumesRequest message from the specified reader or buffer. + * Decodes a MountOption message from the specified reader or buffer. * @function decode - * @memberof google.cloud.netapp.v1.ListVolumesRequest + * @memberof google.cloud.netapp.v1.MountOption * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.netapp.v1.ListVolumesRequest} ListVolumesRequest + * @returns {google.cloud.netapp.v1.MountOption} MountOption * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListVolumesRequest.decode = function decode(reader, length) { + MountOption.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.netapp.v1.ListVolumesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.netapp.v1.MountOption(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.parent = reader.string(); + message["export"] = reader.string(); break; } case 2: { - message.pageSize = reader.int32(); + message.exportFull = reader.string(); break; } case 3: { - message.pageToken = reader.string(); + message.protocol = reader.int32(); break; } case 4: { - message.filter = reader.string(); - break; - } - case 5: { - message.orderBy = reader.string(); + message.instructions = reader.string(); break; } default: @@ -21997,159 +24045,177 @@ }; /** - * Decodes a ListVolumesRequest message from the specified reader or buffer, length delimited. + * Decodes a MountOption message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.netapp.v1.ListVolumesRequest + * @memberof google.cloud.netapp.v1.MountOption * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.netapp.v1.ListVolumesRequest} ListVolumesRequest + * @returns {google.cloud.netapp.v1.MountOption} MountOption * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListVolumesRequest.decodeDelimited = function decodeDelimited(reader) { + MountOption.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListVolumesRequest message. + * Verifies a MountOption message. * @function verify - * @memberof google.cloud.netapp.v1.ListVolumesRequest + * @memberof google.cloud.netapp.v1.MountOption * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListVolumesRequest.verify = function verify(message) { + MountOption.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; - if (message.filter != null && message.hasOwnProperty("filter")) - if (!$util.isString(message.filter)) - return "filter: string expected"; - if (message.orderBy != null && message.hasOwnProperty("orderBy")) - if (!$util.isString(message.orderBy)) - return "orderBy: string expected"; + if (message["export"] != null && message.hasOwnProperty("export")) + if (!$util.isString(message["export"])) + return "export: string expected"; + if (message.exportFull != null && message.hasOwnProperty("exportFull")) + if (!$util.isString(message.exportFull)) + return "exportFull: string expected"; + if (message.protocol != null && message.hasOwnProperty("protocol")) + switch (message.protocol) { + default: + return "protocol: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; + } + if (message.instructions != null && message.hasOwnProperty("instructions")) + if (!$util.isString(message.instructions)) + return "instructions: string expected"; return null; }; /** - * Creates a ListVolumesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a MountOption message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.netapp.v1.ListVolumesRequest + * @memberof google.cloud.netapp.v1.MountOption * @static * @param {Object.} object Plain object - * @returns {google.cloud.netapp.v1.ListVolumesRequest} ListVolumesRequest + * @returns {google.cloud.netapp.v1.MountOption} MountOption */ - ListVolumesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.netapp.v1.ListVolumesRequest) + MountOption.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.netapp.v1.MountOption) return object; - var message = new $root.google.cloud.netapp.v1.ListVolumesRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); - if (object.filter != null) - message.filter = String(object.filter); - if (object.orderBy != null) - message.orderBy = String(object.orderBy); + var message = new $root.google.cloud.netapp.v1.MountOption(); + if (object["export"] != null) + message["export"] = String(object["export"]); + if (object.exportFull != null) + message.exportFull = String(object.exportFull); + switch (object.protocol) { + default: + if (typeof object.protocol === "number") { + message.protocol = object.protocol; + break; + } + break; + case "PROTOCOLS_UNSPECIFIED": + case 0: + message.protocol = 0; + break; + case "NFSV3": + case 1: + message.protocol = 1; + break; + case "NFSV4": + case 2: + message.protocol = 2; + break; + case "SMB": + case 3: + message.protocol = 3; + break; + } + if (object.instructions != null) + message.instructions = String(object.instructions); return message; }; /** - * Creates a plain object from a ListVolumesRequest message. Also converts values to other types if specified. + * Creates a plain object from a MountOption message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.netapp.v1.ListVolumesRequest + * @memberof google.cloud.netapp.v1.MountOption * @static - * @param {google.cloud.netapp.v1.ListVolumesRequest} message ListVolumesRequest + * @param {google.cloud.netapp.v1.MountOption} message MountOption * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListVolumesRequest.toObject = function toObject(message, options) { + MountOption.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.parent = ""; - object.pageSize = 0; - object.pageToken = ""; - object.filter = ""; - object.orderBy = ""; + object["export"] = ""; + object.exportFull = ""; + object.protocol = options.enums === String ? "PROTOCOLS_UNSPECIFIED" : 0; + object.instructions = ""; } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; - if (message.filter != null && message.hasOwnProperty("filter")) - object.filter = message.filter; - if (message.orderBy != null && message.hasOwnProperty("orderBy")) - object.orderBy = message.orderBy; + if (message["export"] != null && message.hasOwnProperty("export")) + object["export"] = message["export"]; + if (message.exportFull != null && message.hasOwnProperty("exportFull")) + object.exportFull = message.exportFull; + if (message.protocol != null && message.hasOwnProperty("protocol")) + object.protocol = options.enums === String ? $root.google.cloud.netapp.v1.Protocols[message.protocol] === undefined ? message.protocol : $root.google.cloud.netapp.v1.Protocols[message.protocol] : message.protocol; + if (message.instructions != null && message.hasOwnProperty("instructions")) + object.instructions = message.instructions; return object; }; /** - * Converts this ListVolumesRequest to JSON. + * Converts this MountOption to JSON. * @function toJSON - * @memberof google.cloud.netapp.v1.ListVolumesRequest + * @memberof google.cloud.netapp.v1.MountOption * @instance * @returns {Object.} JSON object */ - ListVolumesRequest.prototype.toJSON = function toJSON() { + MountOption.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListVolumesRequest + * Gets the default type url for MountOption * @function getTypeUrl - * @memberof google.cloud.netapp.v1.ListVolumesRequest + * @memberof google.cloud.netapp.v1.MountOption * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListVolumesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + MountOption.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.netapp.v1.ListVolumesRequest"; + return typeUrlPrefix + "/google.cloud.netapp.v1.MountOption"; }; - return ListVolumesRequest; + return MountOption; })(); - v1.ListVolumesResponse = (function() { + v1.RestoreParameters = (function() { /** - * Properties of a ListVolumesResponse. + * Properties of a RestoreParameters. * @memberof google.cloud.netapp.v1 - * @interface IListVolumesResponse - * @property {Array.|null} [volumes] ListVolumesResponse volumes - * @property {string|null} [nextPageToken] ListVolumesResponse nextPageToken - * @property {Array.|null} [unreachable] ListVolumesResponse unreachable + * @interface IRestoreParameters + * @property {string|null} [sourceSnapshot] RestoreParameters sourceSnapshot + * @property {string|null} [sourceBackup] RestoreParameters sourceBackup */ /** - * Constructs a new ListVolumesResponse. + * Constructs a new RestoreParameters. * @memberof google.cloud.netapp.v1 - * @classdesc Represents a ListVolumesResponse. - * @implements IListVolumesResponse + * @classdesc Represents a RestoreParameters. + * @implements IRestoreParameters * @constructor - * @param {google.cloud.netapp.v1.IListVolumesResponse=} [properties] Properties to set + * @param {google.cloud.netapp.v1.IRestoreParameters=} [properties] Properties to set */ - function ListVolumesResponse(properties) { - this.volumes = []; - this.unreachable = []; + function RestoreParameters(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -22157,109 +24223,103 @@ } /** - * ListVolumesResponse volumes. - * @member {Array.} volumes - * @memberof google.cloud.netapp.v1.ListVolumesResponse + * RestoreParameters sourceSnapshot. + * @member {string|null|undefined} sourceSnapshot + * @memberof google.cloud.netapp.v1.RestoreParameters * @instance */ - ListVolumesResponse.prototype.volumes = $util.emptyArray; + RestoreParameters.prototype.sourceSnapshot = null; /** - * ListVolumesResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.netapp.v1.ListVolumesResponse + * RestoreParameters sourceBackup. + * @member {string|null|undefined} sourceBackup + * @memberof google.cloud.netapp.v1.RestoreParameters * @instance */ - ListVolumesResponse.prototype.nextPageToken = ""; + RestoreParameters.prototype.sourceBackup = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; /** - * ListVolumesResponse unreachable. - * @member {Array.} unreachable - * @memberof google.cloud.netapp.v1.ListVolumesResponse + * RestoreParameters source. + * @member {"sourceSnapshot"|"sourceBackup"|undefined} source + * @memberof google.cloud.netapp.v1.RestoreParameters * @instance */ - ListVolumesResponse.prototype.unreachable = $util.emptyArray; + Object.defineProperty(RestoreParameters.prototype, "source", { + get: $util.oneOfGetter($oneOfFields = ["sourceSnapshot", "sourceBackup"]), + set: $util.oneOfSetter($oneOfFields) + }); /** - * Creates a new ListVolumesResponse instance using the specified properties. + * Creates a new RestoreParameters instance using the specified properties. * @function create - * @memberof google.cloud.netapp.v1.ListVolumesResponse + * @memberof google.cloud.netapp.v1.RestoreParameters * @static - * @param {google.cloud.netapp.v1.IListVolumesResponse=} [properties] Properties to set - * @returns {google.cloud.netapp.v1.ListVolumesResponse} ListVolumesResponse instance + * @param {google.cloud.netapp.v1.IRestoreParameters=} [properties] Properties to set + * @returns {google.cloud.netapp.v1.RestoreParameters} RestoreParameters instance */ - ListVolumesResponse.create = function create(properties) { - return new ListVolumesResponse(properties); + RestoreParameters.create = function create(properties) { + return new RestoreParameters(properties); }; /** - * Encodes the specified ListVolumesResponse message. Does not implicitly {@link google.cloud.netapp.v1.ListVolumesResponse.verify|verify} messages. + * Encodes the specified RestoreParameters message. Does not implicitly {@link google.cloud.netapp.v1.RestoreParameters.verify|verify} messages. * @function encode - * @memberof google.cloud.netapp.v1.ListVolumesResponse + * @memberof google.cloud.netapp.v1.RestoreParameters * @static - * @param {google.cloud.netapp.v1.IListVolumesResponse} message ListVolumesResponse message or plain object to encode + * @param {google.cloud.netapp.v1.IRestoreParameters} message RestoreParameters message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListVolumesResponse.encode = function encode(message, writer) { + RestoreParameters.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.volumes != null && message.volumes.length) - for (var i = 0; i < message.volumes.length; ++i) - $root.google.cloud.netapp.v1.Volume.encode(message.volumes[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); - if (message.unreachable != null && message.unreachable.length) - for (var i = 0; i < message.unreachable.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.unreachable[i]); + if (message.sourceSnapshot != null && Object.hasOwnProperty.call(message, "sourceSnapshot")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.sourceSnapshot); + if (message.sourceBackup != null && Object.hasOwnProperty.call(message, "sourceBackup")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.sourceBackup); return writer; }; /** - * Encodes the specified ListVolumesResponse message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.ListVolumesResponse.verify|verify} messages. + * Encodes the specified RestoreParameters message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.RestoreParameters.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.netapp.v1.ListVolumesResponse + * @memberof google.cloud.netapp.v1.RestoreParameters * @static - * @param {google.cloud.netapp.v1.IListVolumesResponse} message ListVolumesResponse message or plain object to encode + * @param {google.cloud.netapp.v1.IRestoreParameters} message RestoreParameters message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListVolumesResponse.encodeDelimited = function encodeDelimited(message, writer) { + RestoreParameters.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListVolumesResponse message from the specified reader or buffer. + * Decodes a RestoreParameters message from the specified reader or buffer. * @function decode - * @memberof google.cloud.netapp.v1.ListVolumesResponse + * @memberof google.cloud.netapp.v1.RestoreParameters * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.netapp.v1.ListVolumesResponse} ListVolumesResponse + * @returns {google.cloud.netapp.v1.RestoreParameters} RestoreParameters * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListVolumesResponse.decode = function decode(reader, length) { + RestoreParameters.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.netapp.v1.ListVolumesResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.netapp.v1.RestoreParameters(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.volumes && message.volumes.length)) - message.volumes = []; - message.volumes.push($root.google.cloud.netapp.v1.Volume.decode(reader, reader.uint32())); + message.sourceSnapshot = reader.string(); break; } case 2: { - message.nextPageToken = reader.string(); - break; - } - case 3: { - if (!(message.unreachable && message.unreachable.length)) - message.unreachable = []; - message.unreachable.push(reader.string()); + message.sourceBackup = reader.string(); break; } default: @@ -22271,245 +24331,290 @@ }; /** - * Decodes a ListVolumesResponse message from the specified reader or buffer, length delimited. + * Decodes a RestoreParameters message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.netapp.v1.ListVolumesResponse + * @memberof google.cloud.netapp.v1.RestoreParameters * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.netapp.v1.ListVolumesResponse} ListVolumesResponse + * @returns {google.cloud.netapp.v1.RestoreParameters} RestoreParameters * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListVolumesResponse.decodeDelimited = function decodeDelimited(reader) { + RestoreParameters.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListVolumesResponse message. + * Verifies a RestoreParameters message. * @function verify - * @memberof google.cloud.netapp.v1.ListVolumesResponse + * @memberof google.cloud.netapp.v1.RestoreParameters * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListVolumesResponse.verify = function verify(message) { + RestoreParameters.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.volumes != null && message.hasOwnProperty("volumes")) { - if (!Array.isArray(message.volumes)) - return "volumes: array expected"; - for (var i = 0; i < message.volumes.length; ++i) { - var error = $root.google.cloud.netapp.v1.Volume.verify(message.volumes[i]); - if (error) - return "volumes." + error; - } + var properties = {}; + if (message.sourceSnapshot != null && message.hasOwnProperty("sourceSnapshot")) { + properties.source = 1; + if (!$util.isString(message.sourceSnapshot)) + return "sourceSnapshot: string expected"; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; - if (message.unreachable != null && message.hasOwnProperty("unreachable")) { - if (!Array.isArray(message.unreachable)) - return "unreachable: array expected"; - for (var i = 0; i < message.unreachable.length; ++i) - if (!$util.isString(message.unreachable[i])) - return "unreachable: string[] expected"; + if (message.sourceBackup != null && message.hasOwnProperty("sourceBackup")) { + if (properties.source === 1) + return "source: multiple values"; + properties.source = 1; + if (!$util.isString(message.sourceBackup)) + return "sourceBackup: string expected"; } return null; }; /** - * Creates a ListVolumesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a RestoreParameters message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.netapp.v1.ListVolumesResponse + * @memberof google.cloud.netapp.v1.RestoreParameters * @static * @param {Object.} object Plain object - * @returns {google.cloud.netapp.v1.ListVolumesResponse} ListVolumesResponse + * @returns {google.cloud.netapp.v1.RestoreParameters} RestoreParameters */ - ListVolumesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.netapp.v1.ListVolumesResponse) + RestoreParameters.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.netapp.v1.RestoreParameters) return object; - var message = new $root.google.cloud.netapp.v1.ListVolumesResponse(); - if (object.volumes) { - if (!Array.isArray(object.volumes)) - throw TypeError(".google.cloud.netapp.v1.ListVolumesResponse.volumes: array expected"); - message.volumes = []; - for (var i = 0; i < object.volumes.length; ++i) { - if (typeof object.volumes[i] !== "object") - throw TypeError(".google.cloud.netapp.v1.ListVolumesResponse.volumes: object expected"); - message.volumes[i] = $root.google.cloud.netapp.v1.Volume.fromObject(object.volumes[i]); - } - } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); - if (object.unreachable) { - if (!Array.isArray(object.unreachable)) - throw TypeError(".google.cloud.netapp.v1.ListVolumesResponse.unreachable: array expected"); - message.unreachable = []; - for (var i = 0; i < object.unreachable.length; ++i) - message.unreachable[i] = String(object.unreachable[i]); - } + var message = new $root.google.cloud.netapp.v1.RestoreParameters(); + if (object.sourceSnapshot != null) + message.sourceSnapshot = String(object.sourceSnapshot); + if (object.sourceBackup != null) + message.sourceBackup = String(object.sourceBackup); return message; }; /** - * Creates a plain object from a ListVolumesResponse message. Also converts values to other types if specified. + * Creates a plain object from a RestoreParameters message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.netapp.v1.ListVolumesResponse + * @memberof google.cloud.netapp.v1.RestoreParameters * @static - * @param {google.cloud.netapp.v1.ListVolumesResponse} message ListVolumesResponse + * @param {google.cloud.netapp.v1.RestoreParameters} message RestoreParameters * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListVolumesResponse.toObject = function toObject(message, options) { + RestoreParameters.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { - object.volumes = []; - object.unreachable = []; - } - if (options.defaults) - object.nextPageToken = ""; - if (message.volumes && message.volumes.length) { - object.volumes = []; - for (var j = 0; j < message.volumes.length; ++j) - object.volumes[j] = $root.google.cloud.netapp.v1.Volume.toObject(message.volumes[j], options); + if (message.sourceSnapshot != null && message.hasOwnProperty("sourceSnapshot")) { + object.sourceSnapshot = message.sourceSnapshot; + if (options.oneofs) + object.source = "sourceSnapshot"; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; - if (message.unreachable && message.unreachable.length) { - object.unreachable = []; - for (var j = 0; j < message.unreachable.length; ++j) - object.unreachable[j] = message.unreachable[j]; + if (message.sourceBackup != null && message.hasOwnProperty("sourceBackup")) { + object.sourceBackup = message.sourceBackup; + if (options.oneofs) + object.source = "sourceBackup"; } return object; }; /** - * Converts this ListVolumesResponse to JSON. + * Converts this RestoreParameters to JSON. * @function toJSON - * @memberof google.cloud.netapp.v1.ListVolumesResponse + * @memberof google.cloud.netapp.v1.RestoreParameters * @instance * @returns {Object.} JSON object */ - ListVolumesResponse.prototype.toJSON = function toJSON() { + RestoreParameters.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListVolumesResponse + * Gets the default type url for RestoreParameters * @function getTypeUrl - * @memberof google.cloud.netapp.v1.ListVolumesResponse + * @memberof google.cloud.netapp.v1.RestoreParameters * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListVolumesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + RestoreParameters.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.netapp.v1.ListVolumesResponse"; + return typeUrlPrefix + "/google.cloud.netapp.v1.RestoreParameters"; }; - return ListVolumesResponse; + return RestoreParameters; })(); - v1.GetVolumeRequest = (function() { + v1.BackupConfig = (function() { /** - * Properties of a GetVolumeRequest. + * Properties of a BackupConfig. * @memberof google.cloud.netapp.v1 - * @interface IGetVolumeRequest - * @property {string|null} [name] GetVolumeRequest name + * @interface IBackupConfig + * @property {Array.|null} [backupPolicies] BackupConfig backupPolicies + * @property {string|null} [backupVault] BackupConfig backupVault + * @property {boolean|null} [scheduledBackupEnabled] BackupConfig scheduledBackupEnabled + * @property {number|Long|null} [backupChainBytes] BackupConfig backupChainBytes + */ + + /** + * Constructs a new BackupConfig. + * @memberof google.cloud.netapp.v1 + * @classdesc Represents a BackupConfig. + * @implements IBackupConfig + * @constructor + * @param {google.cloud.netapp.v1.IBackupConfig=} [properties] Properties to set + */ + function BackupConfig(properties) { + this.backupPolicies = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * BackupConfig backupPolicies. + * @member {Array.} backupPolicies + * @memberof google.cloud.netapp.v1.BackupConfig + * @instance + */ + BackupConfig.prototype.backupPolicies = $util.emptyArray; + + /** + * BackupConfig backupVault. + * @member {string} backupVault + * @memberof google.cloud.netapp.v1.BackupConfig + * @instance + */ + BackupConfig.prototype.backupVault = ""; + + /** + * BackupConfig scheduledBackupEnabled. + * @member {boolean|null|undefined} scheduledBackupEnabled + * @memberof google.cloud.netapp.v1.BackupConfig + * @instance + */ + BackupConfig.prototype.scheduledBackupEnabled = null; + + /** + * BackupConfig backupChainBytes. + * @member {number|Long|null|undefined} backupChainBytes + * @memberof google.cloud.netapp.v1.BackupConfig + * @instance */ + BackupConfig.prototype.backupChainBytes = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; /** - * Constructs a new GetVolumeRequest. - * @memberof google.cloud.netapp.v1 - * @classdesc Represents a GetVolumeRequest. - * @implements IGetVolumeRequest - * @constructor - * @param {google.cloud.netapp.v1.IGetVolumeRequest=} [properties] Properties to set + * BackupConfig _scheduledBackupEnabled. + * @member {"scheduledBackupEnabled"|undefined} _scheduledBackupEnabled + * @memberof google.cloud.netapp.v1.BackupConfig + * @instance */ - function GetVolumeRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + Object.defineProperty(BackupConfig.prototype, "_scheduledBackupEnabled", { + get: $util.oneOfGetter($oneOfFields = ["scheduledBackupEnabled"]), + set: $util.oneOfSetter($oneOfFields) + }); /** - * GetVolumeRequest name. - * @member {string} name - * @memberof google.cloud.netapp.v1.GetVolumeRequest + * BackupConfig _backupChainBytes. + * @member {"backupChainBytes"|undefined} _backupChainBytes + * @memberof google.cloud.netapp.v1.BackupConfig * @instance */ - GetVolumeRequest.prototype.name = ""; + Object.defineProperty(BackupConfig.prototype, "_backupChainBytes", { + get: $util.oneOfGetter($oneOfFields = ["backupChainBytes"]), + set: $util.oneOfSetter($oneOfFields) + }); /** - * Creates a new GetVolumeRequest instance using the specified properties. + * Creates a new BackupConfig instance using the specified properties. * @function create - * @memberof google.cloud.netapp.v1.GetVolumeRequest + * @memberof google.cloud.netapp.v1.BackupConfig * @static - * @param {google.cloud.netapp.v1.IGetVolumeRequest=} [properties] Properties to set - * @returns {google.cloud.netapp.v1.GetVolumeRequest} GetVolumeRequest instance + * @param {google.cloud.netapp.v1.IBackupConfig=} [properties] Properties to set + * @returns {google.cloud.netapp.v1.BackupConfig} BackupConfig instance */ - GetVolumeRequest.create = function create(properties) { - return new GetVolumeRequest(properties); + BackupConfig.create = function create(properties) { + return new BackupConfig(properties); }; /** - * Encodes the specified GetVolumeRequest message. Does not implicitly {@link google.cloud.netapp.v1.GetVolumeRequest.verify|verify} messages. + * Encodes the specified BackupConfig message. Does not implicitly {@link google.cloud.netapp.v1.BackupConfig.verify|verify} messages. * @function encode - * @memberof google.cloud.netapp.v1.GetVolumeRequest + * @memberof google.cloud.netapp.v1.BackupConfig * @static - * @param {google.cloud.netapp.v1.IGetVolumeRequest} message GetVolumeRequest message or plain object to encode + * @param {google.cloud.netapp.v1.IBackupConfig} message BackupConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetVolumeRequest.encode = function encode(message, writer) { + BackupConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.backupPolicies != null && message.backupPolicies.length) + for (var i = 0; i < message.backupPolicies.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.backupPolicies[i]); + if (message.backupVault != null && Object.hasOwnProperty.call(message, "backupVault")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.backupVault); + if (message.scheduledBackupEnabled != null && Object.hasOwnProperty.call(message, "scheduledBackupEnabled")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.scheduledBackupEnabled); + if (message.backupChainBytes != null && Object.hasOwnProperty.call(message, "backupChainBytes")) + writer.uint32(/* id 4, wireType 0 =*/32).int64(message.backupChainBytes); return writer; }; /** - * Encodes the specified GetVolumeRequest message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.GetVolumeRequest.verify|verify} messages. + * Encodes the specified BackupConfig message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.BackupConfig.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.netapp.v1.GetVolumeRequest + * @memberof google.cloud.netapp.v1.BackupConfig * @static - * @param {google.cloud.netapp.v1.IGetVolumeRequest} message GetVolumeRequest message or plain object to encode + * @param {google.cloud.netapp.v1.IBackupConfig} message BackupConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetVolumeRequest.encodeDelimited = function encodeDelimited(message, writer) { + BackupConfig.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetVolumeRequest message from the specified reader or buffer. + * Decodes a BackupConfig message from the specified reader or buffer. * @function decode - * @memberof google.cloud.netapp.v1.GetVolumeRequest + * @memberof google.cloud.netapp.v1.BackupConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.netapp.v1.GetVolumeRequest} GetVolumeRequest + * @returns {google.cloud.netapp.v1.BackupConfig} BackupConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetVolumeRequest.decode = function decode(reader, length) { + BackupConfig.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.netapp.v1.GetVolumeRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.netapp.v1.BackupConfig(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + if (!(message.backupPolicies && message.backupPolicies.length)) + message.backupPolicies = []; + message.backupPolicies.push(reader.string()); + break; + } + case 2: { + message.backupVault = reader.string(); + break; + } + case 3: { + message.scheduledBackupEnabled = reader.bool(); + break; + } + case 4: { + message.backupChainBytes = reader.int64(); break; } default: @@ -22521,124 +24626,179 @@ }; /** - * Decodes a GetVolumeRequest message from the specified reader or buffer, length delimited. + * Decodes a BackupConfig message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.netapp.v1.GetVolumeRequest + * @memberof google.cloud.netapp.v1.BackupConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.netapp.v1.GetVolumeRequest} GetVolumeRequest + * @returns {google.cloud.netapp.v1.BackupConfig} BackupConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetVolumeRequest.decodeDelimited = function decodeDelimited(reader) { + BackupConfig.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetVolumeRequest message. + * Verifies a BackupConfig message. * @function verify - * @memberof google.cloud.netapp.v1.GetVolumeRequest + * @memberof google.cloud.netapp.v1.BackupConfig * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetVolumeRequest.verify = function verify(message) { + BackupConfig.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + var properties = {}; + if (message.backupPolicies != null && message.hasOwnProperty("backupPolicies")) { + if (!Array.isArray(message.backupPolicies)) + return "backupPolicies: array expected"; + for (var i = 0; i < message.backupPolicies.length; ++i) + if (!$util.isString(message.backupPolicies[i])) + return "backupPolicies: string[] expected"; + } + if (message.backupVault != null && message.hasOwnProperty("backupVault")) + if (!$util.isString(message.backupVault)) + return "backupVault: string expected"; + if (message.scheduledBackupEnabled != null && message.hasOwnProperty("scheduledBackupEnabled")) { + properties._scheduledBackupEnabled = 1; + if (typeof message.scheduledBackupEnabled !== "boolean") + return "scheduledBackupEnabled: boolean expected"; + } + if (message.backupChainBytes != null && message.hasOwnProperty("backupChainBytes")) { + properties._backupChainBytes = 1; + if (!$util.isInteger(message.backupChainBytes) && !(message.backupChainBytes && $util.isInteger(message.backupChainBytes.low) && $util.isInteger(message.backupChainBytes.high))) + return "backupChainBytes: integer|Long expected"; + } return null; }; /** - * Creates a GetVolumeRequest message from a plain object. Also converts values to their respective internal types. + * Creates a BackupConfig message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.netapp.v1.GetVolumeRequest + * @memberof google.cloud.netapp.v1.BackupConfig * @static * @param {Object.} object Plain object - * @returns {google.cloud.netapp.v1.GetVolumeRequest} GetVolumeRequest + * @returns {google.cloud.netapp.v1.BackupConfig} BackupConfig */ - GetVolumeRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.netapp.v1.GetVolumeRequest) + BackupConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.netapp.v1.BackupConfig) return object; - var message = new $root.google.cloud.netapp.v1.GetVolumeRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.netapp.v1.BackupConfig(); + if (object.backupPolicies) { + if (!Array.isArray(object.backupPolicies)) + throw TypeError(".google.cloud.netapp.v1.BackupConfig.backupPolicies: array expected"); + message.backupPolicies = []; + for (var i = 0; i < object.backupPolicies.length; ++i) + message.backupPolicies[i] = String(object.backupPolicies[i]); + } + if (object.backupVault != null) + message.backupVault = String(object.backupVault); + if (object.scheduledBackupEnabled != null) + message.scheduledBackupEnabled = Boolean(object.scheduledBackupEnabled); + if (object.backupChainBytes != null) + if ($util.Long) + (message.backupChainBytes = $util.Long.fromValue(object.backupChainBytes)).unsigned = false; + else if (typeof object.backupChainBytes === "string") + message.backupChainBytes = parseInt(object.backupChainBytes, 10); + else if (typeof object.backupChainBytes === "number") + message.backupChainBytes = object.backupChainBytes; + else if (typeof object.backupChainBytes === "object") + message.backupChainBytes = new $util.LongBits(object.backupChainBytes.low >>> 0, object.backupChainBytes.high >>> 0).toNumber(); return message; }; /** - * Creates a plain object from a GetVolumeRequest message. Also converts values to other types if specified. + * Creates a plain object from a BackupConfig message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.netapp.v1.GetVolumeRequest + * @memberof google.cloud.netapp.v1.BackupConfig * @static - * @param {google.cloud.netapp.v1.GetVolumeRequest} message GetVolumeRequest + * @param {google.cloud.netapp.v1.BackupConfig} message BackupConfig * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetVolumeRequest.toObject = function toObject(message, options) { + BackupConfig.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.backupPolicies = []; if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + object.backupVault = ""; + if (message.backupPolicies && message.backupPolicies.length) { + object.backupPolicies = []; + for (var j = 0; j < message.backupPolicies.length; ++j) + object.backupPolicies[j] = message.backupPolicies[j]; + } + if (message.backupVault != null && message.hasOwnProperty("backupVault")) + object.backupVault = message.backupVault; + if (message.scheduledBackupEnabled != null && message.hasOwnProperty("scheduledBackupEnabled")) { + object.scheduledBackupEnabled = message.scheduledBackupEnabled; + if (options.oneofs) + object._scheduledBackupEnabled = "scheduledBackupEnabled"; + } + if (message.backupChainBytes != null && message.hasOwnProperty("backupChainBytes")) { + if (typeof message.backupChainBytes === "number") + object.backupChainBytes = options.longs === String ? String(message.backupChainBytes) : message.backupChainBytes; + else + object.backupChainBytes = options.longs === String ? $util.Long.prototype.toString.call(message.backupChainBytes) : options.longs === Number ? new $util.LongBits(message.backupChainBytes.low >>> 0, message.backupChainBytes.high >>> 0).toNumber() : message.backupChainBytes; + if (options.oneofs) + object._backupChainBytes = "backupChainBytes"; + } return object; }; /** - * Converts this GetVolumeRequest to JSON. + * Converts this BackupConfig to JSON. * @function toJSON - * @memberof google.cloud.netapp.v1.GetVolumeRequest + * @memberof google.cloud.netapp.v1.BackupConfig * @instance * @returns {Object.} JSON object */ - GetVolumeRequest.prototype.toJSON = function toJSON() { + BackupConfig.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetVolumeRequest + * Gets the default type url for BackupConfig * @function getTypeUrl - * @memberof google.cloud.netapp.v1.GetVolumeRequest + * @memberof google.cloud.netapp.v1.BackupConfig * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetVolumeRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + BackupConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.netapp.v1.GetVolumeRequest"; + return typeUrlPrefix + "/google.cloud.netapp.v1.BackupConfig"; }; - return GetVolumeRequest; + return BackupConfig; })(); - v1.CreateVolumeRequest = (function() { + v1.TieringPolicy = (function() { /** - * Properties of a CreateVolumeRequest. + * Properties of a TieringPolicy. * @memberof google.cloud.netapp.v1 - * @interface ICreateVolumeRequest - * @property {string|null} [parent] CreateVolumeRequest parent - * @property {string|null} [volumeId] CreateVolumeRequest volumeId - * @property {google.cloud.netapp.v1.IVolume|null} [volume] CreateVolumeRequest volume + * @interface ITieringPolicy + * @property {google.cloud.netapp.v1.TieringPolicy.TierAction|null} [tierAction] TieringPolicy tierAction + * @property {number|null} [coolingThresholdDays] TieringPolicy coolingThresholdDays */ /** - * Constructs a new CreateVolumeRequest. + * Constructs a new TieringPolicy. * @memberof google.cloud.netapp.v1 - * @classdesc Represents a CreateVolumeRequest. - * @implements ICreateVolumeRequest + * @classdesc Represents a TieringPolicy. + * @implements ITieringPolicy * @constructor - * @param {google.cloud.netapp.v1.ICreateVolumeRequest=} [properties] Properties to set + * @param {google.cloud.netapp.v1.ITieringPolicy=} [properties] Properties to set */ - function CreateVolumeRequest(properties) { + function TieringPolicy(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -22646,103 +24806,114 @@ } /** - * CreateVolumeRequest parent. - * @member {string} parent - * @memberof google.cloud.netapp.v1.CreateVolumeRequest + * TieringPolicy tierAction. + * @member {google.cloud.netapp.v1.TieringPolicy.TierAction|null|undefined} tierAction + * @memberof google.cloud.netapp.v1.TieringPolicy * @instance */ - CreateVolumeRequest.prototype.parent = ""; + TieringPolicy.prototype.tierAction = null; /** - * CreateVolumeRequest volumeId. - * @member {string} volumeId - * @memberof google.cloud.netapp.v1.CreateVolumeRequest + * TieringPolicy coolingThresholdDays. + * @member {number|null|undefined} coolingThresholdDays + * @memberof google.cloud.netapp.v1.TieringPolicy * @instance */ - CreateVolumeRequest.prototype.volumeId = ""; + TieringPolicy.prototype.coolingThresholdDays = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; /** - * CreateVolumeRequest volume. - * @member {google.cloud.netapp.v1.IVolume|null|undefined} volume - * @memberof google.cloud.netapp.v1.CreateVolumeRequest + * TieringPolicy _tierAction. + * @member {"tierAction"|undefined} _tierAction + * @memberof google.cloud.netapp.v1.TieringPolicy * @instance */ - CreateVolumeRequest.prototype.volume = null; + Object.defineProperty(TieringPolicy.prototype, "_tierAction", { + get: $util.oneOfGetter($oneOfFields = ["tierAction"]), + set: $util.oneOfSetter($oneOfFields) + }); /** - * Creates a new CreateVolumeRequest instance using the specified properties. + * TieringPolicy _coolingThresholdDays. + * @member {"coolingThresholdDays"|undefined} _coolingThresholdDays + * @memberof google.cloud.netapp.v1.TieringPolicy + * @instance + */ + Object.defineProperty(TieringPolicy.prototype, "_coolingThresholdDays", { + get: $util.oneOfGetter($oneOfFields = ["coolingThresholdDays"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new TieringPolicy instance using the specified properties. * @function create - * @memberof google.cloud.netapp.v1.CreateVolumeRequest + * @memberof google.cloud.netapp.v1.TieringPolicy * @static - * @param {google.cloud.netapp.v1.ICreateVolumeRequest=} [properties] Properties to set - * @returns {google.cloud.netapp.v1.CreateVolumeRequest} CreateVolumeRequest instance + * @param {google.cloud.netapp.v1.ITieringPolicy=} [properties] Properties to set + * @returns {google.cloud.netapp.v1.TieringPolicy} TieringPolicy instance */ - CreateVolumeRequest.create = function create(properties) { - return new CreateVolumeRequest(properties); + TieringPolicy.create = function create(properties) { + return new TieringPolicy(properties); }; /** - * Encodes the specified CreateVolumeRequest message. Does not implicitly {@link google.cloud.netapp.v1.CreateVolumeRequest.verify|verify} messages. + * Encodes the specified TieringPolicy message. Does not implicitly {@link google.cloud.netapp.v1.TieringPolicy.verify|verify} messages. * @function encode - * @memberof google.cloud.netapp.v1.CreateVolumeRequest + * @memberof google.cloud.netapp.v1.TieringPolicy * @static - * @param {google.cloud.netapp.v1.ICreateVolumeRequest} message CreateVolumeRequest message or plain object to encode + * @param {google.cloud.netapp.v1.ITieringPolicy} message TieringPolicy message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateVolumeRequest.encode = function encode(message, writer) { + TieringPolicy.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.volumeId != null && Object.hasOwnProperty.call(message, "volumeId")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.volumeId); - if (message.volume != null && Object.hasOwnProperty.call(message, "volume")) - $root.google.cloud.netapp.v1.Volume.encode(message.volume, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.tierAction != null && Object.hasOwnProperty.call(message, "tierAction")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.tierAction); + if (message.coolingThresholdDays != null && Object.hasOwnProperty.call(message, "coolingThresholdDays")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.coolingThresholdDays); return writer; }; /** - * Encodes the specified CreateVolumeRequest message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.CreateVolumeRequest.verify|verify} messages. + * Encodes the specified TieringPolicy message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.TieringPolicy.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.netapp.v1.CreateVolumeRequest + * @memberof google.cloud.netapp.v1.TieringPolicy * @static - * @param {google.cloud.netapp.v1.ICreateVolumeRequest} message CreateVolumeRequest message or plain object to encode + * @param {google.cloud.netapp.v1.ITieringPolicy} message TieringPolicy message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateVolumeRequest.encodeDelimited = function encodeDelimited(message, writer) { + TieringPolicy.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateVolumeRequest message from the specified reader or buffer. + * Decodes a TieringPolicy message from the specified reader or buffer. * @function decode - * @memberof google.cloud.netapp.v1.CreateVolumeRequest + * @memberof google.cloud.netapp.v1.TieringPolicy * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.netapp.v1.CreateVolumeRequest} CreateVolumeRequest + * @returns {google.cloud.netapp.v1.TieringPolicy} TieringPolicy * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateVolumeRequest.decode = function decode(reader, length) { + TieringPolicy.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.netapp.v1.CreateVolumeRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.netapp.v1.TieringPolicy(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.parent = reader.string(); + message.tierAction = reader.int32(); break; } case 2: { - message.volumeId = reader.string(); - break; - } - case 3: { - message.volume = $root.google.cloud.netapp.v1.Volume.decode(reader, reader.uint32()); + message.coolingThresholdDays = reader.int32(); break; } default: @@ -22754,235 +24925,384 @@ }; /** - * Decodes a CreateVolumeRequest message from the specified reader or buffer, length delimited. + * Decodes a TieringPolicy message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.netapp.v1.CreateVolumeRequest + * @memberof google.cloud.netapp.v1.TieringPolicy * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.netapp.v1.CreateVolumeRequest} CreateVolumeRequest + * @returns {google.cloud.netapp.v1.TieringPolicy} TieringPolicy * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateVolumeRequest.decodeDelimited = function decodeDelimited(reader) { + TieringPolicy.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateVolumeRequest message. + * Verifies a TieringPolicy message. * @function verify - * @memberof google.cloud.netapp.v1.CreateVolumeRequest + * @memberof google.cloud.netapp.v1.TieringPolicy * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateVolumeRequest.verify = function verify(message) { + TieringPolicy.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.volumeId != null && message.hasOwnProperty("volumeId")) - if (!$util.isString(message.volumeId)) - return "volumeId: string expected"; - if (message.volume != null && message.hasOwnProperty("volume")) { - var error = $root.google.cloud.netapp.v1.Volume.verify(message.volume); - if (error) - return "volume." + error; + var properties = {}; + if (message.tierAction != null && message.hasOwnProperty("tierAction")) { + properties._tierAction = 1; + switch (message.tierAction) { + default: + return "tierAction: enum value expected"; + case 0: + case 1: + case 2: + break; + } + } + if (message.coolingThresholdDays != null && message.hasOwnProperty("coolingThresholdDays")) { + properties._coolingThresholdDays = 1; + if (!$util.isInteger(message.coolingThresholdDays)) + return "coolingThresholdDays: integer expected"; } return null; }; /** - * Creates a CreateVolumeRequest message from a plain object. Also converts values to their respective internal types. + * Creates a TieringPolicy message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.netapp.v1.CreateVolumeRequest + * @memberof google.cloud.netapp.v1.TieringPolicy * @static * @param {Object.} object Plain object - * @returns {google.cloud.netapp.v1.CreateVolumeRequest} CreateVolumeRequest + * @returns {google.cloud.netapp.v1.TieringPolicy} TieringPolicy */ - CreateVolumeRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.netapp.v1.CreateVolumeRequest) + TieringPolicy.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.netapp.v1.TieringPolicy) return object; - var message = new $root.google.cloud.netapp.v1.CreateVolumeRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.volumeId != null) - message.volumeId = String(object.volumeId); - if (object.volume != null) { - if (typeof object.volume !== "object") - throw TypeError(".google.cloud.netapp.v1.CreateVolumeRequest.volume: object expected"); - message.volume = $root.google.cloud.netapp.v1.Volume.fromObject(object.volume); + var message = new $root.google.cloud.netapp.v1.TieringPolicy(); + switch (object.tierAction) { + default: + if (typeof object.tierAction === "number") { + message.tierAction = object.tierAction; + break; + } + break; + case "TIER_ACTION_UNSPECIFIED": + case 0: + message.tierAction = 0; + break; + case "ENABLED": + case 1: + message.tierAction = 1; + break; + case "PAUSED": + case 2: + message.tierAction = 2; + break; } + if (object.coolingThresholdDays != null) + message.coolingThresholdDays = object.coolingThresholdDays | 0; return message; }; /** - * Creates a plain object from a CreateVolumeRequest message. Also converts values to other types if specified. + * Creates a plain object from a TieringPolicy message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.netapp.v1.CreateVolumeRequest + * @memberof google.cloud.netapp.v1.TieringPolicy * @static - * @param {google.cloud.netapp.v1.CreateVolumeRequest} message CreateVolumeRequest + * @param {google.cloud.netapp.v1.TieringPolicy} message TieringPolicy * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateVolumeRequest.toObject = function toObject(message, options) { + TieringPolicy.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.parent = ""; - object.volumeId = ""; - object.volume = null; + if (message.tierAction != null && message.hasOwnProperty("tierAction")) { + object.tierAction = options.enums === String ? $root.google.cloud.netapp.v1.TieringPolicy.TierAction[message.tierAction] === undefined ? message.tierAction : $root.google.cloud.netapp.v1.TieringPolicy.TierAction[message.tierAction] : message.tierAction; + if (options.oneofs) + object._tierAction = "tierAction"; + } + if (message.coolingThresholdDays != null && message.hasOwnProperty("coolingThresholdDays")) { + object.coolingThresholdDays = message.coolingThresholdDays; + if (options.oneofs) + object._coolingThresholdDays = "coolingThresholdDays"; } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.volumeId != null && message.hasOwnProperty("volumeId")) - object.volumeId = message.volumeId; - if (message.volume != null && message.hasOwnProperty("volume")) - object.volume = $root.google.cloud.netapp.v1.Volume.toObject(message.volume, options); return object; }; /** - * Converts this CreateVolumeRequest to JSON. + * Converts this TieringPolicy to JSON. * @function toJSON - * @memberof google.cloud.netapp.v1.CreateVolumeRequest + * @memberof google.cloud.netapp.v1.TieringPolicy * @instance * @returns {Object.} JSON object */ - CreateVolumeRequest.prototype.toJSON = function toJSON() { + TieringPolicy.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CreateVolumeRequest + * Gets the default type url for TieringPolicy * @function getTypeUrl - * @memberof google.cloud.netapp.v1.CreateVolumeRequest + * @memberof google.cloud.netapp.v1.TieringPolicy * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CreateVolumeRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + TieringPolicy.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.netapp.v1.CreateVolumeRequest"; + return typeUrlPrefix + "/google.cloud.netapp.v1.TieringPolicy"; }; - return CreateVolumeRequest; + /** + * TierAction enum. + * @name google.cloud.netapp.v1.TieringPolicy.TierAction + * @enum {number} + * @property {number} TIER_ACTION_UNSPECIFIED=0 TIER_ACTION_UNSPECIFIED value + * @property {number} ENABLED=1 ENABLED value + * @property {number} PAUSED=2 PAUSED value + */ + TieringPolicy.TierAction = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "TIER_ACTION_UNSPECIFIED"] = 0; + values[valuesById[1] = "ENABLED"] = 1; + values[valuesById[2] = "PAUSED"] = 2; + return values; + })(); + + return TieringPolicy; })(); - v1.UpdateVolumeRequest = (function() { + v1.HybridReplicationParameters = (function() { /** - * Properties of an UpdateVolumeRequest. + * Properties of a HybridReplicationParameters. * @memberof google.cloud.netapp.v1 - * @interface IUpdateVolumeRequest - * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateVolumeRequest updateMask - * @property {google.cloud.netapp.v1.IVolume|null} [volume] UpdateVolumeRequest volume + * @interface IHybridReplicationParameters + * @property {string|null} [replication] HybridReplicationParameters replication + * @property {string|null} [peerVolumeName] HybridReplicationParameters peerVolumeName + * @property {string|null} [peerClusterName] HybridReplicationParameters peerClusterName + * @property {string|null} [peerSvmName] HybridReplicationParameters peerSvmName + * @property {Array.|null} [peerIpAddresses] HybridReplicationParameters peerIpAddresses + * @property {string|null} [clusterLocation] HybridReplicationParameters clusterLocation + * @property {string|null} [description] HybridReplicationParameters description + * @property {Object.|null} [labels] HybridReplicationParameters labels */ /** - * Constructs a new UpdateVolumeRequest. + * Constructs a new HybridReplicationParameters. * @memberof google.cloud.netapp.v1 - * @classdesc Represents an UpdateVolumeRequest. - * @implements IUpdateVolumeRequest + * @classdesc Represents a HybridReplicationParameters. + * @implements IHybridReplicationParameters * @constructor - * @param {google.cloud.netapp.v1.IUpdateVolumeRequest=} [properties] Properties to set + * @param {google.cloud.netapp.v1.IHybridReplicationParameters=} [properties] Properties to set + */ + function HybridReplicationParameters(properties) { + this.peerIpAddresses = []; + this.labels = {}; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * HybridReplicationParameters replication. + * @member {string} replication + * @memberof google.cloud.netapp.v1.HybridReplicationParameters + * @instance + */ + HybridReplicationParameters.prototype.replication = ""; + + /** + * HybridReplicationParameters peerVolumeName. + * @member {string} peerVolumeName + * @memberof google.cloud.netapp.v1.HybridReplicationParameters + * @instance + */ + HybridReplicationParameters.prototype.peerVolumeName = ""; + + /** + * HybridReplicationParameters peerClusterName. + * @member {string} peerClusterName + * @memberof google.cloud.netapp.v1.HybridReplicationParameters + * @instance + */ + HybridReplicationParameters.prototype.peerClusterName = ""; + + /** + * HybridReplicationParameters peerSvmName. + * @member {string} peerSvmName + * @memberof google.cloud.netapp.v1.HybridReplicationParameters + * @instance + */ + HybridReplicationParameters.prototype.peerSvmName = ""; + + /** + * HybridReplicationParameters peerIpAddresses. + * @member {Array.} peerIpAddresses + * @memberof google.cloud.netapp.v1.HybridReplicationParameters + * @instance */ - function UpdateVolumeRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + HybridReplicationParameters.prototype.peerIpAddresses = $util.emptyArray; /** - * UpdateVolumeRequest updateMask. - * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.cloud.netapp.v1.UpdateVolumeRequest + * HybridReplicationParameters clusterLocation. + * @member {string} clusterLocation + * @memberof google.cloud.netapp.v1.HybridReplicationParameters * @instance */ - UpdateVolumeRequest.prototype.updateMask = null; + HybridReplicationParameters.prototype.clusterLocation = ""; /** - * UpdateVolumeRequest volume. - * @member {google.cloud.netapp.v1.IVolume|null|undefined} volume - * @memberof google.cloud.netapp.v1.UpdateVolumeRequest + * HybridReplicationParameters description. + * @member {string} description + * @memberof google.cloud.netapp.v1.HybridReplicationParameters * @instance */ - UpdateVolumeRequest.prototype.volume = null; + HybridReplicationParameters.prototype.description = ""; /** - * Creates a new UpdateVolumeRequest instance using the specified properties. + * HybridReplicationParameters labels. + * @member {Object.} labels + * @memberof google.cloud.netapp.v1.HybridReplicationParameters + * @instance + */ + HybridReplicationParameters.prototype.labels = $util.emptyObject; + + /** + * Creates a new HybridReplicationParameters instance using the specified properties. * @function create - * @memberof google.cloud.netapp.v1.UpdateVolumeRequest + * @memberof google.cloud.netapp.v1.HybridReplicationParameters * @static - * @param {google.cloud.netapp.v1.IUpdateVolumeRequest=} [properties] Properties to set - * @returns {google.cloud.netapp.v1.UpdateVolumeRequest} UpdateVolumeRequest instance + * @param {google.cloud.netapp.v1.IHybridReplicationParameters=} [properties] Properties to set + * @returns {google.cloud.netapp.v1.HybridReplicationParameters} HybridReplicationParameters instance */ - UpdateVolumeRequest.create = function create(properties) { - return new UpdateVolumeRequest(properties); + HybridReplicationParameters.create = function create(properties) { + return new HybridReplicationParameters(properties); }; /** - * Encodes the specified UpdateVolumeRequest message. Does not implicitly {@link google.cloud.netapp.v1.UpdateVolumeRequest.verify|verify} messages. + * Encodes the specified HybridReplicationParameters message. Does not implicitly {@link google.cloud.netapp.v1.HybridReplicationParameters.verify|verify} messages. * @function encode - * @memberof google.cloud.netapp.v1.UpdateVolumeRequest + * @memberof google.cloud.netapp.v1.HybridReplicationParameters * @static - * @param {google.cloud.netapp.v1.IUpdateVolumeRequest} message UpdateVolumeRequest message or plain object to encode + * @param {google.cloud.netapp.v1.IHybridReplicationParameters} message HybridReplicationParameters message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateVolumeRequest.encode = function encode(message, writer) { + HybridReplicationParameters.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) - $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.volume != null && Object.hasOwnProperty.call(message, "volume")) - $root.google.cloud.netapp.v1.Volume.encode(message.volume, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.replication != null && Object.hasOwnProperty.call(message, "replication")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.replication); + if (message.peerVolumeName != null && Object.hasOwnProperty.call(message, "peerVolumeName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.peerVolumeName); + if (message.peerClusterName != null && Object.hasOwnProperty.call(message, "peerClusterName")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.peerClusterName); + if (message.peerSvmName != null && Object.hasOwnProperty.call(message, "peerSvmName")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.peerSvmName); + if (message.peerIpAddresses != null && message.peerIpAddresses.length) + for (var i = 0; i < message.peerIpAddresses.length; ++i) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.peerIpAddresses[i]); + if (message.clusterLocation != null && Object.hasOwnProperty.call(message, "clusterLocation")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.clusterLocation); + if (message.description != null && Object.hasOwnProperty.call(message, "description")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.description); + if (message.labels != null && Object.hasOwnProperty.call(message, "labels")) + for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i) + writer.uint32(/* id 8, wireType 2 =*/66).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); return writer; }; /** - * Encodes the specified UpdateVolumeRequest message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.UpdateVolumeRequest.verify|verify} messages. + * Encodes the specified HybridReplicationParameters message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.HybridReplicationParameters.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.netapp.v1.UpdateVolumeRequest + * @memberof google.cloud.netapp.v1.HybridReplicationParameters * @static - * @param {google.cloud.netapp.v1.IUpdateVolumeRequest} message UpdateVolumeRequest message or plain object to encode + * @param {google.cloud.netapp.v1.IHybridReplicationParameters} message HybridReplicationParameters message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateVolumeRequest.encodeDelimited = function encodeDelimited(message, writer) { + HybridReplicationParameters.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateVolumeRequest message from the specified reader or buffer. + * Decodes a HybridReplicationParameters message from the specified reader or buffer. * @function decode - * @memberof google.cloud.netapp.v1.UpdateVolumeRequest + * @memberof google.cloud.netapp.v1.HybridReplicationParameters * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.netapp.v1.UpdateVolumeRequest} UpdateVolumeRequest + * @returns {google.cloud.netapp.v1.HybridReplicationParameters} HybridReplicationParameters * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateVolumeRequest.decode = function decode(reader, length) { + HybridReplicationParameters.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.netapp.v1.UpdateVolumeRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.netapp.v1.HybridReplicationParameters(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + message.replication = reader.string(); break; } case 2: { - message.volume = $root.google.cloud.netapp.v1.Volume.decode(reader, reader.uint32()); + message.peerVolumeName = reader.string(); + break; + } + case 3: { + message.peerClusterName = reader.string(); + break; + } + case 4: { + message.peerSvmName = reader.string(); + break; + } + case 5: { + if (!(message.peerIpAddresses && message.peerIpAddresses.length)) + message.peerIpAddresses = []; + message.peerIpAddresses.push(reader.string()); + break; + } + case 6: { + message.clusterLocation = reader.string(); + break; + } + case 7: { + message.description = reader.string(); + break; + } + case 8: { + if (message.labels === $util.emptyObject) + message.labels = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.labels[key] = value; break; } default: @@ -22994,142 +25314,244 @@ }; /** - * Decodes an UpdateVolumeRequest message from the specified reader or buffer, length delimited. + * Decodes a HybridReplicationParameters message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.netapp.v1.UpdateVolumeRequest + * @memberof google.cloud.netapp.v1.HybridReplicationParameters * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.netapp.v1.UpdateVolumeRequest} UpdateVolumeRequest + * @returns {google.cloud.netapp.v1.HybridReplicationParameters} HybridReplicationParameters * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateVolumeRequest.decodeDelimited = function decodeDelimited(reader) { + HybridReplicationParameters.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateVolumeRequest message. + * Verifies a HybridReplicationParameters message. * @function verify - * @memberof google.cloud.netapp.v1.UpdateVolumeRequest + * @memberof google.cloud.netapp.v1.HybridReplicationParameters * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdateVolumeRequest.verify = function verify(message) { + HybridReplicationParameters.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.updateMask != null && message.hasOwnProperty("updateMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.updateMask); - if (error) - return "updateMask." + error; - } - if (message.volume != null && message.hasOwnProperty("volume")) { - var error = $root.google.cloud.netapp.v1.Volume.verify(message.volume); - if (error) - return "volume." + error; + if (message.replication != null && message.hasOwnProperty("replication")) + if (!$util.isString(message.replication)) + return "replication: string expected"; + if (message.peerVolumeName != null && message.hasOwnProperty("peerVolumeName")) + if (!$util.isString(message.peerVolumeName)) + return "peerVolumeName: string expected"; + if (message.peerClusterName != null && message.hasOwnProperty("peerClusterName")) + if (!$util.isString(message.peerClusterName)) + return "peerClusterName: string expected"; + if (message.peerSvmName != null && message.hasOwnProperty("peerSvmName")) + if (!$util.isString(message.peerSvmName)) + return "peerSvmName: string expected"; + if (message.peerIpAddresses != null && message.hasOwnProperty("peerIpAddresses")) { + if (!Array.isArray(message.peerIpAddresses)) + return "peerIpAddresses: array expected"; + for (var i = 0; i < message.peerIpAddresses.length; ++i) + if (!$util.isString(message.peerIpAddresses[i])) + return "peerIpAddresses: string[] expected"; + } + if (message.clusterLocation != null && message.hasOwnProperty("clusterLocation")) + if (!$util.isString(message.clusterLocation)) + return "clusterLocation: string expected"; + if (message.description != null && message.hasOwnProperty("description")) + if (!$util.isString(message.description)) + return "description: string expected"; + if (message.labels != null && message.hasOwnProperty("labels")) { + if (!$util.isObject(message.labels)) + return "labels: object expected"; + var key = Object.keys(message.labels); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.labels[key[i]])) + return "labels: string{k:string} expected"; } return null; }; /** - * Creates an UpdateVolumeRequest message from a plain object. Also converts values to their respective internal types. + * Creates a HybridReplicationParameters message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.netapp.v1.UpdateVolumeRequest + * @memberof google.cloud.netapp.v1.HybridReplicationParameters * @static * @param {Object.} object Plain object - * @returns {google.cloud.netapp.v1.UpdateVolumeRequest} UpdateVolumeRequest + * @returns {google.cloud.netapp.v1.HybridReplicationParameters} HybridReplicationParameters */ - UpdateVolumeRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.netapp.v1.UpdateVolumeRequest) + HybridReplicationParameters.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.netapp.v1.HybridReplicationParameters) return object; - var message = new $root.google.cloud.netapp.v1.UpdateVolumeRequest(); - if (object.updateMask != null) { - if (typeof object.updateMask !== "object") - throw TypeError(".google.cloud.netapp.v1.UpdateVolumeRequest.updateMask: object expected"); - message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); - } - if (object.volume != null) { - if (typeof object.volume !== "object") - throw TypeError(".google.cloud.netapp.v1.UpdateVolumeRequest.volume: object expected"); - message.volume = $root.google.cloud.netapp.v1.Volume.fromObject(object.volume); + var message = new $root.google.cloud.netapp.v1.HybridReplicationParameters(); + if (object.replication != null) + message.replication = String(object.replication); + if (object.peerVolumeName != null) + message.peerVolumeName = String(object.peerVolumeName); + if (object.peerClusterName != null) + message.peerClusterName = String(object.peerClusterName); + if (object.peerSvmName != null) + message.peerSvmName = String(object.peerSvmName); + if (object.peerIpAddresses) { + if (!Array.isArray(object.peerIpAddresses)) + throw TypeError(".google.cloud.netapp.v1.HybridReplicationParameters.peerIpAddresses: array expected"); + message.peerIpAddresses = []; + for (var i = 0; i < object.peerIpAddresses.length; ++i) + message.peerIpAddresses[i] = String(object.peerIpAddresses[i]); + } + if (object.clusterLocation != null) + message.clusterLocation = String(object.clusterLocation); + if (object.description != null) + message.description = String(object.description); + if (object.labels) { + if (typeof object.labels !== "object") + throw TypeError(".google.cloud.netapp.v1.HybridReplicationParameters.labels: object expected"); + message.labels = {}; + for (var keys = Object.keys(object.labels), i = 0; i < keys.length; ++i) + message.labels[keys[i]] = String(object.labels[keys[i]]); } return message; }; /** - * Creates a plain object from an UpdateVolumeRequest message. Also converts values to other types if specified. + * Creates a plain object from a HybridReplicationParameters message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.netapp.v1.UpdateVolumeRequest + * @memberof google.cloud.netapp.v1.HybridReplicationParameters * @static - * @param {google.cloud.netapp.v1.UpdateVolumeRequest} message UpdateVolumeRequest + * @param {google.cloud.netapp.v1.HybridReplicationParameters} message HybridReplicationParameters * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateVolumeRequest.toObject = function toObject(message, options) { + HybridReplicationParameters.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.peerIpAddresses = []; + if (options.objects || options.defaults) + object.labels = {}; if (options.defaults) { - object.updateMask = null; - object.volume = null; + object.replication = ""; + object.peerVolumeName = ""; + object.peerClusterName = ""; + object.peerSvmName = ""; + object.clusterLocation = ""; + object.description = ""; + } + if (message.replication != null && message.hasOwnProperty("replication")) + object.replication = message.replication; + if (message.peerVolumeName != null && message.hasOwnProperty("peerVolumeName")) + object.peerVolumeName = message.peerVolumeName; + if (message.peerClusterName != null && message.hasOwnProperty("peerClusterName")) + object.peerClusterName = message.peerClusterName; + if (message.peerSvmName != null && message.hasOwnProperty("peerSvmName")) + object.peerSvmName = message.peerSvmName; + if (message.peerIpAddresses && message.peerIpAddresses.length) { + object.peerIpAddresses = []; + for (var j = 0; j < message.peerIpAddresses.length; ++j) + object.peerIpAddresses[j] = message.peerIpAddresses[j]; + } + if (message.clusterLocation != null && message.hasOwnProperty("clusterLocation")) + object.clusterLocation = message.clusterLocation; + if (message.description != null && message.hasOwnProperty("description")) + object.description = message.description; + var keys2; + if (message.labels && (keys2 = Object.keys(message.labels)).length) { + object.labels = {}; + for (var j = 0; j < keys2.length; ++j) + object.labels[keys2[j]] = message.labels[keys2[j]]; } - if (message.updateMask != null && message.hasOwnProperty("updateMask")) - object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); - if (message.volume != null && message.hasOwnProperty("volume")) - object.volume = $root.google.cloud.netapp.v1.Volume.toObject(message.volume, options); return object; }; /** - * Converts this UpdateVolumeRequest to JSON. + * Converts this HybridReplicationParameters to JSON. * @function toJSON - * @memberof google.cloud.netapp.v1.UpdateVolumeRequest + * @memberof google.cloud.netapp.v1.HybridReplicationParameters * @instance * @returns {Object.} JSON object */ - UpdateVolumeRequest.prototype.toJSON = function toJSON() { + HybridReplicationParameters.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for UpdateVolumeRequest + * Gets the default type url for HybridReplicationParameters * @function getTypeUrl - * @memberof google.cloud.netapp.v1.UpdateVolumeRequest + * @memberof google.cloud.netapp.v1.HybridReplicationParameters * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - UpdateVolumeRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + HybridReplicationParameters.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.netapp.v1.UpdateVolumeRequest"; + return typeUrlPrefix + "/google.cloud.netapp.v1.HybridReplicationParameters"; }; - return UpdateVolumeRequest; + return HybridReplicationParameters; })(); - v1.DeleteVolumeRequest = (function() { + /** + * ServiceLevel enum. + * @name google.cloud.netapp.v1.ServiceLevel + * @enum {number} + * @property {number} SERVICE_LEVEL_UNSPECIFIED=0 SERVICE_LEVEL_UNSPECIFIED value + * @property {number} PREMIUM=1 PREMIUM value + * @property {number} EXTREME=2 EXTREME value + * @property {number} STANDARD=3 STANDARD value + * @property {number} FLEX=4 FLEX value + */ + v1.ServiceLevel = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "SERVICE_LEVEL_UNSPECIFIED"] = 0; + values[valuesById[1] = "PREMIUM"] = 1; + values[valuesById[2] = "EXTREME"] = 2; + values[valuesById[3] = "STANDARD"] = 3; + values[valuesById[4] = "FLEX"] = 4; + return values; + })(); + + /** + * EncryptionType enum. + * @name google.cloud.netapp.v1.EncryptionType + * @enum {number} + * @property {number} ENCRYPTION_TYPE_UNSPECIFIED=0 ENCRYPTION_TYPE_UNSPECIFIED value + * @property {number} SERVICE_MANAGED=1 SERVICE_MANAGED value + * @property {number} CLOUD_KMS=2 CLOUD_KMS value + */ + v1.EncryptionType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "ENCRYPTION_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "SERVICE_MANAGED"] = 1; + values[valuesById[2] = "CLOUD_KMS"] = 2; + return values; + })(); + + v1.LocationMetadata = (function() { /** - * Properties of a DeleteVolumeRequest. + * Properties of a LocationMetadata. * @memberof google.cloud.netapp.v1 - * @interface IDeleteVolumeRequest - * @property {string|null} [name] DeleteVolumeRequest name - * @property {boolean|null} [force] DeleteVolumeRequest force + * @interface ILocationMetadata + * @property {Array.|null} [supportedServiceLevels] LocationMetadata supportedServiceLevels */ /** - * Constructs a new DeleteVolumeRequest. + * Constructs a new LocationMetadata. * @memberof google.cloud.netapp.v1 - * @classdesc Represents a DeleteVolumeRequest. - * @implements IDeleteVolumeRequest + * @classdesc Represents a LocationMetadata. + * @implements ILocationMetadata * @constructor - * @param {google.cloud.netapp.v1.IDeleteVolumeRequest=} [properties] Properties to set + * @param {google.cloud.netapp.v1.ILocationMetadata=} [properties] Properties to set */ - function DeleteVolumeRequest(properties) { + function LocationMetadata(properties) { + this.supportedServiceLevels = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -23137,89 +25559,86 @@ } /** - * DeleteVolumeRequest name. - * @member {string} name - * @memberof google.cloud.netapp.v1.DeleteVolumeRequest - * @instance - */ - DeleteVolumeRequest.prototype.name = ""; - - /** - * DeleteVolumeRequest force. - * @member {boolean} force - * @memberof google.cloud.netapp.v1.DeleteVolumeRequest + * LocationMetadata supportedServiceLevels. + * @member {Array.} supportedServiceLevels + * @memberof google.cloud.netapp.v1.LocationMetadata * @instance */ - DeleteVolumeRequest.prototype.force = false; + LocationMetadata.prototype.supportedServiceLevels = $util.emptyArray; /** - * Creates a new DeleteVolumeRequest instance using the specified properties. + * Creates a new LocationMetadata instance using the specified properties. * @function create - * @memberof google.cloud.netapp.v1.DeleteVolumeRequest + * @memberof google.cloud.netapp.v1.LocationMetadata * @static - * @param {google.cloud.netapp.v1.IDeleteVolumeRequest=} [properties] Properties to set - * @returns {google.cloud.netapp.v1.DeleteVolumeRequest} DeleteVolumeRequest instance + * @param {google.cloud.netapp.v1.ILocationMetadata=} [properties] Properties to set + * @returns {google.cloud.netapp.v1.LocationMetadata} LocationMetadata instance */ - DeleteVolumeRequest.create = function create(properties) { - return new DeleteVolumeRequest(properties); + LocationMetadata.create = function create(properties) { + return new LocationMetadata(properties); }; /** - * Encodes the specified DeleteVolumeRequest message. Does not implicitly {@link google.cloud.netapp.v1.DeleteVolumeRequest.verify|verify} messages. + * Encodes the specified LocationMetadata message. Does not implicitly {@link google.cloud.netapp.v1.LocationMetadata.verify|verify} messages. * @function encode - * @memberof google.cloud.netapp.v1.DeleteVolumeRequest + * @memberof google.cloud.netapp.v1.LocationMetadata * @static - * @param {google.cloud.netapp.v1.IDeleteVolumeRequest} message DeleteVolumeRequest message or plain object to encode + * @param {google.cloud.netapp.v1.ILocationMetadata} message LocationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteVolumeRequest.encode = function encode(message, writer) { + LocationMetadata.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.force != null && Object.hasOwnProperty.call(message, "force")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.force); + if (message.supportedServiceLevels != null && message.supportedServiceLevels.length) { + writer.uint32(/* id 1, wireType 2 =*/10).fork(); + for (var i = 0; i < message.supportedServiceLevels.length; ++i) + writer.int32(message.supportedServiceLevels[i]); + writer.ldelim(); + } return writer; }; /** - * Encodes the specified DeleteVolumeRequest message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.DeleteVolumeRequest.verify|verify} messages. + * Encodes the specified LocationMetadata message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.LocationMetadata.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.netapp.v1.DeleteVolumeRequest + * @memberof google.cloud.netapp.v1.LocationMetadata * @static - * @param {google.cloud.netapp.v1.IDeleteVolumeRequest} message DeleteVolumeRequest message or plain object to encode + * @param {google.cloud.netapp.v1.ILocationMetadata} message LocationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteVolumeRequest.encodeDelimited = function encodeDelimited(message, writer) { + LocationMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteVolumeRequest message from the specified reader or buffer. + * Decodes a LocationMetadata message from the specified reader or buffer. * @function decode - * @memberof google.cloud.netapp.v1.DeleteVolumeRequest + * @memberof google.cloud.netapp.v1.LocationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.netapp.v1.DeleteVolumeRequest} DeleteVolumeRequest + * @returns {google.cloud.netapp.v1.LocationMetadata} LocationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteVolumeRequest.decode = function decode(reader, length) { + LocationMetadata.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.netapp.v1.DeleteVolumeRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.netapp.v1.LocationMetadata(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); - break; - } - case 2: { - message.force = reader.bool(); + if (!(message.supportedServiceLevels && message.supportedServiceLevels.length)) + message.supportedServiceLevels = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.supportedServiceLevels.push(reader.int32()); + } else + message.supportedServiceLevels.push(reader.int32()); break; } default: @@ -23231,132 +25650,172 @@ }; /** - * Decodes a DeleteVolumeRequest message from the specified reader or buffer, length delimited. + * Decodes a LocationMetadata message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.netapp.v1.DeleteVolumeRequest + * @memberof google.cloud.netapp.v1.LocationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.netapp.v1.DeleteVolumeRequest} DeleteVolumeRequest + * @returns {google.cloud.netapp.v1.LocationMetadata} LocationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteVolumeRequest.decodeDelimited = function decodeDelimited(reader) { + LocationMetadata.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteVolumeRequest message. + * Verifies a LocationMetadata message. * @function verify - * @memberof google.cloud.netapp.v1.DeleteVolumeRequest + * @memberof google.cloud.netapp.v1.LocationMetadata * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteVolumeRequest.verify = function verify(message) { + LocationMetadata.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.force != null && message.hasOwnProperty("force")) - if (typeof message.force !== "boolean") - return "force: boolean expected"; + if (message.supportedServiceLevels != null && message.hasOwnProperty("supportedServiceLevels")) { + if (!Array.isArray(message.supportedServiceLevels)) + return "supportedServiceLevels: array expected"; + for (var i = 0; i < message.supportedServiceLevels.length; ++i) + switch (message.supportedServiceLevels[i]) { + default: + return "supportedServiceLevels: enum value[] expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + break; + } + } return null; }; /** - * Creates a DeleteVolumeRequest message from a plain object. Also converts values to their respective internal types. + * Creates a LocationMetadata message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.netapp.v1.DeleteVolumeRequest + * @memberof google.cloud.netapp.v1.LocationMetadata * @static * @param {Object.} object Plain object - * @returns {google.cloud.netapp.v1.DeleteVolumeRequest} DeleteVolumeRequest + * @returns {google.cloud.netapp.v1.LocationMetadata} LocationMetadata */ - DeleteVolumeRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.netapp.v1.DeleteVolumeRequest) + LocationMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.netapp.v1.LocationMetadata) return object; - var message = new $root.google.cloud.netapp.v1.DeleteVolumeRequest(); - if (object.name != null) - message.name = String(object.name); - if (object.force != null) - message.force = Boolean(object.force); + var message = new $root.google.cloud.netapp.v1.LocationMetadata(); + if (object.supportedServiceLevels) { + if (!Array.isArray(object.supportedServiceLevels)) + throw TypeError(".google.cloud.netapp.v1.LocationMetadata.supportedServiceLevels: array expected"); + message.supportedServiceLevels = []; + for (var i = 0; i < object.supportedServiceLevels.length; ++i) + switch (object.supportedServiceLevels[i]) { + default: + if (typeof object.supportedServiceLevels[i] === "number") { + message.supportedServiceLevels[i] = object.supportedServiceLevels[i]; + break; + } + case "SERVICE_LEVEL_UNSPECIFIED": + case 0: + message.supportedServiceLevels[i] = 0; + break; + case "PREMIUM": + case 1: + message.supportedServiceLevels[i] = 1; + break; + case "EXTREME": + case 2: + message.supportedServiceLevels[i] = 2; + break; + case "STANDARD": + case 3: + message.supportedServiceLevels[i] = 3; + break; + case "FLEX": + case 4: + message.supportedServiceLevels[i] = 4; + break; + } + } return message; }; /** - * Creates a plain object from a DeleteVolumeRequest message. Also converts values to other types if specified. + * Creates a plain object from a LocationMetadata message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.netapp.v1.DeleteVolumeRequest + * @memberof google.cloud.netapp.v1.LocationMetadata * @static - * @param {google.cloud.netapp.v1.DeleteVolumeRequest} message DeleteVolumeRequest + * @param {google.cloud.netapp.v1.LocationMetadata} message LocationMetadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteVolumeRequest.toObject = function toObject(message, options) { + LocationMetadata.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.name = ""; - object.force = false; + if (options.arrays || options.defaults) + object.supportedServiceLevels = []; + if (message.supportedServiceLevels && message.supportedServiceLevels.length) { + object.supportedServiceLevels = []; + for (var j = 0; j < message.supportedServiceLevels.length; ++j) + object.supportedServiceLevels[j] = options.enums === String ? $root.google.cloud.netapp.v1.ServiceLevel[message.supportedServiceLevels[j]] === undefined ? message.supportedServiceLevels[j] : $root.google.cloud.netapp.v1.ServiceLevel[message.supportedServiceLevels[j]] : message.supportedServiceLevels[j]; } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.force != null && message.hasOwnProperty("force")) - object.force = message.force; return object; }; /** - * Converts this DeleteVolumeRequest to JSON. + * Converts this LocationMetadata to JSON. * @function toJSON - * @memberof google.cloud.netapp.v1.DeleteVolumeRequest + * @memberof google.cloud.netapp.v1.LocationMetadata * @instance * @returns {Object.} JSON object */ - DeleteVolumeRequest.prototype.toJSON = function toJSON() { + LocationMetadata.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DeleteVolumeRequest + * Gets the default type url for LocationMetadata * @function getTypeUrl - * @memberof google.cloud.netapp.v1.DeleteVolumeRequest + * @memberof google.cloud.netapp.v1.LocationMetadata * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DeleteVolumeRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + LocationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.netapp.v1.DeleteVolumeRequest"; + return typeUrlPrefix + "/google.cloud.netapp.v1.LocationMetadata"; }; - return DeleteVolumeRequest; + return LocationMetadata; })(); - v1.RevertVolumeRequest = (function() { + v1.ListSnapshotsRequest = (function() { /** - * Properties of a RevertVolumeRequest. + * Properties of a ListSnapshotsRequest. * @memberof google.cloud.netapp.v1 - * @interface IRevertVolumeRequest - * @property {string|null} [name] RevertVolumeRequest name - * @property {string|null} [snapshotId] RevertVolumeRequest snapshotId + * @interface IListSnapshotsRequest + * @property {string|null} [parent] ListSnapshotsRequest parent + * @property {number|null} [pageSize] ListSnapshotsRequest pageSize + * @property {string|null} [pageToken] ListSnapshotsRequest pageToken + * @property {string|null} [orderBy] ListSnapshotsRequest orderBy + * @property {string|null} [filter] ListSnapshotsRequest filter */ /** - * Constructs a new RevertVolumeRequest. + * Constructs a new ListSnapshotsRequest. * @memberof google.cloud.netapp.v1 - * @classdesc Represents a RevertVolumeRequest. - * @implements IRevertVolumeRequest + * @classdesc Represents a ListSnapshotsRequest. + * @implements IListSnapshotsRequest * @constructor - * @param {google.cloud.netapp.v1.IRevertVolumeRequest=} [properties] Properties to set + * @param {google.cloud.netapp.v1.IListSnapshotsRequest=} [properties] Properties to set */ - function RevertVolumeRequest(properties) { + function ListSnapshotsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -23364,89 +25823,131 @@ } /** - * RevertVolumeRequest name. - * @member {string} name - * @memberof google.cloud.netapp.v1.RevertVolumeRequest + * ListSnapshotsRequest parent. + * @member {string} parent + * @memberof google.cloud.netapp.v1.ListSnapshotsRequest * @instance */ - RevertVolumeRequest.prototype.name = ""; + ListSnapshotsRequest.prototype.parent = ""; /** - * RevertVolumeRequest snapshotId. - * @member {string} snapshotId - * @memberof google.cloud.netapp.v1.RevertVolumeRequest + * ListSnapshotsRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.netapp.v1.ListSnapshotsRequest * @instance */ - RevertVolumeRequest.prototype.snapshotId = ""; + ListSnapshotsRequest.prototype.pageSize = 0; /** - * Creates a new RevertVolumeRequest instance using the specified properties. + * ListSnapshotsRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.netapp.v1.ListSnapshotsRequest + * @instance + */ + ListSnapshotsRequest.prototype.pageToken = ""; + + /** + * ListSnapshotsRequest orderBy. + * @member {string} orderBy + * @memberof google.cloud.netapp.v1.ListSnapshotsRequest + * @instance + */ + ListSnapshotsRequest.prototype.orderBy = ""; + + /** + * ListSnapshotsRequest filter. + * @member {string} filter + * @memberof google.cloud.netapp.v1.ListSnapshotsRequest + * @instance + */ + ListSnapshotsRequest.prototype.filter = ""; + + /** + * Creates a new ListSnapshotsRequest instance using the specified properties. * @function create - * @memberof google.cloud.netapp.v1.RevertVolumeRequest + * @memberof google.cloud.netapp.v1.ListSnapshotsRequest * @static - * @param {google.cloud.netapp.v1.IRevertVolumeRequest=} [properties] Properties to set - * @returns {google.cloud.netapp.v1.RevertVolumeRequest} RevertVolumeRequest instance + * @param {google.cloud.netapp.v1.IListSnapshotsRequest=} [properties] Properties to set + * @returns {google.cloud.netapp.v1.ListSnapshotsRequest} ListSnapshotsRequest instance */ - RevertVolumeRequest.create = function create(properties) { - return new RevertVolumeRequest(properties); + ListSnapshotsRequest.create = function create(properties) { + return new ListSnapshotsRequest(properties); }; /** - * Encodes the specified RevertVolumeRequest message. Does not implicitly {@link google.cloud.netapp.v1.RevertVolumeRequest.verify|verify} messages. + * Encodes the specified ListSnapshotsRequest message. Does not implicitly {@link google.cloud.netapp.v1.ListSnapshotsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.netapp.v1.RevertVolumeRequest + * @memberof google.cloud.netapp.v1.ListSnapshotsRequest * @static - * @param {google.cloud.netapp.v1.IRevertVolumeRequest} message RevertVolumeRequest message or plain object to encode + * @param {google.cloud.netapp.v1.IListSnapshotsRequest} message ListSnapshotsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RevertVolumeRequest.encode = function encode(message, writer) { + ListSnapshotsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.snapshotId != null && Object.hasOwnProperty.call(message, "snapshotId")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.snapshotId); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); + if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.orderBy); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.filter); return writer; }; /** - * Encodes the specified RevertVolumeRequest message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.RevertVolumeRequest.verify|verify} messages. + * Encodes the specified ListSnapshotsRequest message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.ListSnapshotsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.netapp.v1.RevertVolumeRequest + * @memberof google.cloud.netapp.v1.ListSnapshotsRequest * @static - * @param {google.cloud.netapp.v1.IRevertVolumeRequest} message RevertVolumeRequest message or plain object to encode + * @param {google.cloud.netapp.v1.IListSnapshotsRequest} message ListSnapshotsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RevertVolumeRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListSnapshotsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RevertVolumeRequest message from the specified reader or buffer. + * Decodes a ListSnapshotsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.netapp.v1.RevertVolumeRequest + * @memberof google.cloud.netapp.v1.ListSnapshotsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.netapp.v1.RevertVolumeRequest} RevertVolumeRequest + * @returns {google.cloud.netapp.v1.ListSnapshotsRequest} ListSnapshotsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RevertVolumeRequest.decode = function decode(reader, length) { + ListSnapshotsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.netapp.v1.RevertVolumeRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.netapp.v1.ListSnapshotsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.parent = reader.string(); break; } case 2: { - message.snapshotId = reader.string(); + message.pageSize = reader.int32(); + break; + } + case 3: { + message.pageToken = reader.string(); + break; + } + case 4: { + message.orderBy = reader.string(); + break; + } + case 5: { + message.filter = reader.string(); break; } default: @@ -23458,172 +25959,159 @@ }; /** - * Decodes a RevertVolumeRequest message from the specified reader or buffer, length delimited. + * Decodes a ListSnapshotsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.netapp.v1.RevertVolumeRequest + * @memberof google.cloud.netapp.v1.ListSnapshotsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.netapp.v1.RevertVolumeRequest} RevertVolumeRequest + * @returns {google.cloud.netapp.v1.ListSnapshotsRequest} ListSnapshotsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RevertVolumeRequest.decodeDelimited = function decodeDelimited(reader) { + ListSnapshotsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RevertVolumeRequest message. + * Verifies a ListSnapshotsRequest message. * @function verify - * @memberof google.cloud.netapp.v1.RevertVolumeRequest + * @memberof google.cloud.netapp.v1.ListSnapshotsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RevertVolumeRequest.verify = function verify(message) { + ListSnapshotsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.snapshotId != null && message.hasOwnProperty("snapshotId")) - if (!$util.isString(message.snapshotId)) - return "snapshotId: string expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + if (message.orderBy != null && message.hasOwnProperty("orderBy")) + if (!$util.isString(message.orderBy)) + return "orderBy: string expected"; + if (message.filter != null && message.hasOwnProperty("filter")) + if (!$util.isString(message.filter)) + return "filter: string expected"; return null; }; /** - * Creates a RevertVolumeRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListSnapshotsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.netapp.v1.RevertVolumeRequest + * @memberof google.cloud.netapp.v1.ListSnapshotsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.netapp.v1.RevertVolumeRequest} RevertVolumeRequest + * @returns {google.cloud.netapp.v1.ListSnapshotsRequest} ListSnapshotsRequest */ - RevertVolumeRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.netapp.v1.RevertVolumeRequest) + ListSnapshotsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.netapp.v1.ListSnapshotsRequest) return object; - var message = new $root.google.cloud.netapp.v1.RevertVolumeRequest(); - if (object.name != null) - message.name = String(object.name); - if (object.snapshotId != null) - message.snapshotId = String(object.snapshotId); + var message = new $root.google.cloud.netapp.v1.ListSnapshotsRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + if (object.orderBy != null) + message.orderBy = String(object.orderBy); + if (object.filter != null) + message.filter = String(object.filter); return message; }; /** - * Creates a plain object from a RevertVolumeRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListSnapshotsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.netapp.v1.RevertVolumeRequest + * @memberof google.cloud.netapp.v1.ListSnapshotsRequest * @static - * @param {google.cloud.netapp.v1.RevertVolumeRequest} message RevertVolumeRequest + * @param {google.cloud.netapp.v1.ListSnapshotsRequest} message ListSnapshotsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RevertVolumeRequest.toObject = function toObject(message, options) { + ListSnapshotsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.name = ""; - object.snapshotId = ""; + object.parent = ""; + object.pageSize = 0; + object.pageToken = ""; + object.orderBy = ""; + object.filter = ""; } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.snapshotId != null && message.hasOwnProperty("snapshotId")) - object.snapshotId = message.snapshotId; + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + if (message.orderBy != null && message.hasOwnProperty("orderBy")) + object.orderBy = message.orderBy; + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = message.filter; return object; }; /** - * Converts this RevertVolumeRequest to JSON. + * Converts this ListSnapshotsRequest to JSON. * @function toJSON - * @memberof google.cloud.netapp.v1.RevertVolumeRequest + * @memberof google.cloud.netapp.v1.ListSnapshotsRequest * @instance * @returns {Object.} JSON object */ - RevertVolumeRequest.prototype.toJSON = function toJSON() { + ListSnapshotsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for RevertVolumeRequest + * Gets the default type url for ListSnapshotsRequest * @function getTypeUrl - * @memberof google.cloud.netapp.v1.RevertVolumeRequest + * @memberof google.cloud.netapp.v1.ListSnapshotsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - RevertVolumeRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListSnapshotsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.netapp.v1.RevertVolumeRequest"; + return typeUrlPrefix + "/google.cloud.netapp.v1.ListSnapshotsRequest"; }; - return RevertVolumeRequest; + return ListSnapshotsRequest; })(); - v1.Volume = (function() { + v1.ListSnapshotsResponse = (function() { /** - * Properties of a Volume. + * Properties of a ListSnapshotsResponse. * @memberof google.cloud.netapp.v1 - * @interface IVolume - * @property {string|null} [name] Volume name - * @property {google.cloud.netapp.v1.Volume.State|null} [state] Volume state - * @property {string|null} [stateDetails] Volume stateDetails - * @property {google.protobuf.ITimestamp|null} [createTime] Volume createTime - * @property {string|null} [shareName] Volume shareName - * @property {string|null} [psaRange] Volume psaRange - * @property {string|null} [storagePool] Volume storagePool - * @property {string|null} [network] Volume network - * @property {google.cloud.netapp.v1.ServiceLevel|null} [serviceLevel] Volume serviceLevel - * @property {number|Long|null} [capacityGib] Volume capacityGib - * @property {google.cloud.netapp.v1.IExportPolicy|null} [exportPolicy] Volume exportPolicy - * @property {Array.|null} [protocols] Volume protocols - * @property {Array.|null} [smbSettings] Volume smbSettings - * @property {Array.|null} [mountOptions] Volume mountOptions - * @property {string|null} [unixPermissions] Volume unixPermissions - * @property {Object.|null} [labels] Volume labels - * @property {string|null} [description] Volume description - * @property {google.cloud.netapp.v1.ISnapshotPolicy|null} [snapshotPolicy] Volume snapshotPolicy - * @property {number|null} [snapReserve] Volume snapReserve - * @property {boolean|null} [snapshotDirectory] Volume snapshotDirectory - * @property {number|Long|null} [usedGib] Volume usedGib - * @property {google.cloud.netapp.v1.SecurityStyle|null} [securityStyle] Volume securityStyle - * @property {boolean|null} [kerberosEnabled] Volume kerberosEnabled - * @property {boolean|null} [ldapEnabled] Volume ldapEnabled - * @property {string|null} [activeDirectory] Volume activeDirectory - * @property {google.cloud.netapp.v1.IRestoreParameters|null} [restoreParameters] Volume restoreParameters - * @property {string|null} [kmsConfig] Volume kmsConfig - * @property {google.cloud.netapp.v1.EncryptionType|null} [encryptionType] Volume encryptionType - * @property {boolean|null} [hasReplication] Volume hasReplication - * @property {google.cloud.netapp.v1.IBackupConfig|null} [backupConfig] Volume backupConfig - * @property {Array.|null} [restrictedActions] Volume restrictedActions - * @property {boolean|null} [largeCapacity] Volume largeCapacity - * @property {boolean|null} [multipleEndpoints] Volume multipleEndpoints - * @property {google.cloud.netapp.v1.ITieringPolicy|null} [tieringPolicy] Volume tieringPolicy - * @property {string|null} [replicaZone] Volume replicaZone - * @property {string|null} [zone] Volume zone - * @property {number|Long|null} [coldTierSizeGib] Volume coldTierSizeGib + * @interface IListSnapshotsResponse + * @property {Array.|null} [snapshots] ListSnapshotsResponse snapshots + * @property {string|null} [nextPageToken] ListSnapshotsResponse nextPageToken + * @property {Array.|null} [unreachable] ListSnapshotsResponse unreachable */ /** - * Constructs a new Volume. + * Constructs a new ListSnapshotsResponse. * @memberof google.cloud.netapp.v1 - * @classdesc Represents a Volume. - * @implements IVolume + * @classdesc Represents a ListSnapshotsResponse. + * @implements IListSnapshotsResponse * @constructor - * @param {google.cloud.netapp.v1.IVolume=} [properties] Properties to set + * @param {google.cloud.netapp.v1.IListSnapshotsResponse=} [properties] Properties to set */ - function Volume(properties) { - this.protocols = []; - this.smbSettings = []; - this.mountOptions = []; - this.labels = {}; - this.restrictedActions = []; + function ListSnapshotsResponse(properties) { + this.snapshots = []; + this.unreachable = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -23631,1494 +26119,741 @@ } /** - * Volume name. - * @member {string} name - * @memberof google.cloud.netapp.v1.Volume - * @instance - */ - Volume.prototype.name = ""; - - /** - * Volume state. - * @member {google.cloud.netapp.v1.Volume.State} state - * @memberof google.cloud.netapp.v1.Volume - * @instance - */ - Volume.prototype.state = 0; - - /** - * Volume stateDetails. - * @member {string} stateDetails - * @memberof google.cloud.netapp.v1.Volume - * @instance - */ - Volume.prototype.stateDetails = ""; - - /** - * Volume createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.cloud.netapp.v1.Volume - * @instance - */ - Volume.prototype.createTime = null; - - /** - * Volume shareName. - * @member {string} shareName - * @memberof google.cloud.netapp.v1.Volume - * @instance - */ - Volume.prototype.shareName = ""; - - /** - * Volume psaRange. - * @member {string} psaRange - * @memberof google.cloud.netapp.v1.Volume - * @instance - */ - Volume.prototype.psaRange = ""; - - /** - * Volume storagePool. - * @member {string} storagePool - * @memberof google.cloud.netapp.v1.Volume - * @instance - */ - Volume.prototype.storagePool = ""; - - /** - * Volume network. - * @member {string} network - * @memberof google.cloud.netapp.v1.Volume - * @instance - */ - Volume.prototype.network = ""; - - /** - * Volume serviceLevel. - * @member {google.cloud.netapp.v1.ServiceLevel} serviceLevel - * @memberof google.cloud.netapp.v1.Volume - * @instance - */ - Volume.prototype.serviceLevel = 0; - - /** - * Volume capacityGib. - * @member {number|Long} capacityGib - * @memberof google.cloud.netapp.v1.Volume - * @instance - */ - Volume.prototype.capacityGib = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * Volume exportPolicy. - * @member {google.cloud.netapp.v1.IExportPolicy|null|undefined} exportPolicy - * @memberof google.cloud.netapp.v1.Volume - * @instance - */ - Volume.prototype.exportPolicy = null; - - /** - * Volume protocols. - * @member {Array.} protocols - * @memberof google.cloud.netapp.v1.Volume - * @instance - */ - Volume.prototype.protocols = $util.emptyArray; - - /** - * Volume smbSettings. - * @member {Array.} smbSettings - * @memberof google.cloud.netapp.v1.Volume - * @instance - */ - Volume.prototype.smbSettings = $util.emptyArray; - - /** - * Volume mountOptions. - * @member {Array.} mountOptions - * @memberof google.cloud.netapp.v1.Volume - * @instance - */ - Volume.prototype.mountOptions = $util.emptyArray; - - /** - * Volume unixPermissions. - * @member {string} unixPermissions - * @memberof google.cloud.netapp.v1.Volume - * @instance - */ - Volume.prototype.unixPermissions = ""; - - /** - * Volume labels. - * @member {Object.} labels - * @memberof google.cloud.netapp.v1.Volume - * @instance - */ - Volume.prototype.labels = $util.emptyObject; - - /** - * Volume description. - * @member {string} description - * @memberof google.cloud.netapp.v1.Volume - * @instance - */ - Volume.prototype.description = ""; - - /** - * Volume snapshotPolicy. - * @member {google.cloud.netapp.v1.ISnapshotPolicy|null|undefined} snapshotPolicy - * @memberof google.cloud.netapp.v1.Volume - * @instance - */ - Volume.prototype.snapshotPolicy = null; - - /** - * Volume snapReserve. - * @member {number} snapReserve - * @memberof google.cloud.netapp.v1.Volume - * @instance - */ - Volume.prototype.snapReserve = 0; - - /** - * Volume snapshotDirectory. - * @member {boolean} snapshotDirectory - * @memberof google.cloud.netapp.v1.Volume - * @instance - */ - Volume.prototype.snapshotDirectory = false; - - /** - * Volume usedGib. - * @member {number|Long} usedGib - * @memberof google.cloud.netapp.v1.Volume - * @instance - */ - Volume.prototype.usedGib = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * Volume securityStyle. - * @member {google.cloud.netapp.v1.SecurityStyle} securityStyle - * @memberof google.cloud.netapp.v1.Volume - * @instance - */ - Volume.prototype.securityStyle = 0; - - /** - * Volume kerberosEnabled. - * @member {boolean} kerberosEnabled - * @memberof google.cloud.netapp.v1.Volume - * @instance - */ - Volume.prototype.kerberosEnabled = false; - - /** - * Volume ldapEnabled. - * @member {boolean} ldapEnabled - * @memberof google.cloud.netapp.v1.Volume - * @instance - */ - Volume.prototype.ldapEnabled = false; - - /** - * Volume activeDirectory. - * @member {string} activeDirectory - * @memberof google.cloud.netapp.v1.Volume - * @instance - */ - Volume.prototype.activeDirectory = ""; - - /** - * Volume restoreParameters. - * @member {google.cloud.netapp.v1.IRestoreParameters|null|undefined} restoreParameters - * @memberof google.cloud.netapp.v1.Volume - * @instance - */ - Volume.prototype.restoreParameters = null; - - /** - * Volume kmsConfig. - * @member {string} kmsConfig - * @memberof google.cloud.netapp.v1.Volume - * @instance - */ - Volume.prototype.kmsConfig = ""; - - /** - * Volume encryptionType. - * @member {google.cloud.netapp.v1.EncryptionType} encryptionType - * @memberof google.cloud.netapp.v1.Volume - * @instance - */ - Volume.prototype.encryptionType = 0; - - /** - * Volume hasReplication. - * @member {boolean} hasReplication - * @memberof google.cloud.netapp.v1.Volume - * @instance - */ - Volume.prototype.hasReplication = false; - - /** - * Volume backupConfig. - * @member {google.cloud.netapp.v1.IBackupConfig|null|undefined} backupConfig - * @memberof google.cloud.netapp.v1.Volume - * @instance - */ - Volume.prototype.backupConfig = null; - - /** - * Volume restrictedActions. - * @member {Array.} restrictedActions - * @memberof google.cloud.netapp.v1.Volume - * @instance - */ - Volume.prototype.restrictedActions = $util.emptyArray; - - /** - * Volume largeCapacity. - * @member {boolean} largeCapacity - * @memberof google.cloud.netapp.v1.Volume - * @instance - */ - Volume.prototype.largeCapacity = false; - - /** - * Volume multipleEndpoints. - * @member {boolean} multipleEndpoints - * @memberof google.cloud.netapp.v1.Volume - * @instance - */ - Volume.prototype.multipleEndpoints = false; - - /** - * Volume tieringPolicy. - * @member {google.cloud.netapp.v1.ITieringPolicy|null|undefined} tieringPolicy - * @memberof google.cloud.netapp.v1.Volume - * @instance - */ - Volume.prototype.tieringPolicy = null; - - /** - * Volume replicaZone. - * @member {string} replicaZone - * @memberof google.cloud.netapp.v1.Volume - * @instance - */ - Volume.prototype.replicaZone = ""; - - /** - * Volume zone. - * @member {string} zone - * @memberof google.cloud.netapp.v1.Volume - * @instance - */ - Volume.prototype.zone = ""; - - /** - * Volume coldTierSizeGib. - * @member {number|Long} coldTierSizeGib - * @memberof google.cloud.netapp.v1.Volume - * @instance - */ - Volume.prototype.coldTierSizeGib = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + * ListSnapshotsResponse snapshots. + * @member {Array.} snapshots + * @memberof google.cloud.netapp.v1.ListSnapshotsResponse + * @instance + */ + ListSnapshotsResponse.prototype.snapshots = $util.emptyArray; /** - * Volume _backupConfig. - * @member {"backupConfig"|undefined} _backupConfig - * @memberof google.cloud.netapp.v1.Volume + * ListSnapshotsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.netapp.v1.ListSnapshotsResponse * @instance */ - Object.defineProperty(Volume.prototype, "_backupConfig", { - get: $util.oneOfGetter($oneOfFields = ["backupConfig"]), - set: $util.oneOfSetter($oneOfFields) - }); + ListSnapshotsResponse.prototype.nextPageToken = ""; /** - * Volume _tieringPolicy. - * @member {"tieringPolicy"|undefined} _tieringPolicy - * @memberof google.cloud.netapp.v1.Volume + * ListSnapshotsResponse unreachable. + * @member {Array.} unreachable + * @memberof google.cloud.netapp.v1.ListSnapshotsResponse * @instance */ - Object.defineProperty(Volume.prototype, "_tieringPolicy", { - get: $util.oneOfGetter($oneOfFields = ["tieringPolicy"]), - set: $util.oneOfSetter($oneOfFields) - }); + ListSnapshotsResponse.prototype.unreachable = $util.emptyArray; /** - * Creates a new Volume instance using the specified properties. + * Creates a new ListSnapshotsResponse instance using the specified properties. * @function create - * @memberof google.cloud.netapp.v1.Volume + * @memberof google.cloud.netapp.v1.ListSnapshotsResponse * @static - * @param {google.cloud.netapp.v1.IVolume=} [properties] Properties to set - * @returns {google.cloud.netapp.v1.Volume} Volume instance + * @param {google.cloud.netapp.v1.IListSnapshotsResponse=} [properties] Properties to set + * @returns {google.cloud.netapp.v1.ListSnapshotsResponse} ListSnapshotsResponse instance */ - Volume.create = function create(properties) { - return new Volume(properties); + ListSnapshotsResponse.create = function create(properties) { + return new ListSnapshotsResponse(properties); }; /** - * Encodes the specified Volume message. Does not implicitly {@link google.cloud.netapp.v1.Volume.verify|verify} messages. + * Encodes the specified ListSnapshotsResponse message. Does not implicitly {@link google.cloud.netapp.v1.ListSnapshotsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.netapp.v1.Volume + * @memberof google.cloud.netapp.v1.ListSnapshotsResponse * @static - * @param {google.cloud.netapp.v1.IVolume} message Volume message or plain object to encode + * @param {google.cloud.netapp.v1.IListSnapshotsResponse} message ListSnapshotsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Volume.encode = function encode(message, writer) { + ListSnapshotsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.state != null && Object.hasOwnProperty.call(message, "state")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.state); - if (message.stateDetails != null && Object.hasOwnProperty.call(message, "stateDetails")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.stateDetails); - if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) - $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.shareName != null && Object.hasOwnProperty.call(message, "shareName")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.shareName); - if (message.psaRange != null && Object.hasOwnProperty.call(message, "psaRange")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.psaRange); - if (message.storagePool != null && Object.hasOwnProperty.call(message, "storagePool")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.storagePool); - if (message.network != null && Object.hasOwnProperty.call(message, "network")) - writer.uint32(/* id 8, wireType 2 =*/66).string(message.network); - if (message.serviceLevel != null && Object.hasOwnProperty.call(message, "serviceLevel")) - writer.uint32(/* id 9, wireType 0 =*/72).int32(message.serviceLevel); - if (message.capacityGib != null && Object.hasOwnProperty.call(message, "capacityGib")) - writer.uint32(/* id 10, wireType 0 =*/80).int64(message.capacityGib); - if (message.exportPolicy != null && Object.hasOwnProperty.call(message, "exportPolicy")) - $root.google.cloud.netapp.v1.ExportPolicy.encode(message.exportPolicy, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); - if (message.protocols != null && message.protocols.length) { - writer.uint32(/* id 12, wireType 2 =*/98).fork(); - for (var i = 0; i < message.protocols.length; ++i) - writer.int32(message.protocols[i]); - writer.ldelim(); - } - if (message.smbSettings != null && message.smbSettings.length) { - writer.uint32(/* id 13, wireType 2 =*/106).fork(); - for (var i = 0; i < message.smbSettings.length; ++i) - writer.int32(message.smbSettings[i]); - writer.ldelim(); - } - if (message.mountOptions != null && message.mountOptions.length) - for (var i = 0; i < message.mountOptions.length; ++i) - $root.google.cloud.netapp.v1.MountOption.encode(message.mountOptions[i], writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim(); - if (message.unixPermissions != null && Object.hasOwnProperty.call(message, "unixPermissions")) - writer.uint32(/* id 15, wireType 2 =*/122).string(message.unixPermissions); - if (message.labels != null && Object.hasOwnProperty.call(message, "labels")) - for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i) - writer.uint32(/* id 16, wireType 2 =*/130).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); - if (message.description != null && Object.hasOwnProperty.call(message, "description")) - writer.uint32(/* id 17, wireType 2 =*/138).string(message.description); - if (message.snapshotPolicy != null && Object.hasOwnProperty.call(message, "snapshotPolicy")) - $root.google.cloud.netapp.v1.SnapshotPolicy.encode(message.snapshotPolicy, writer.uint32(/* id 18, wireType 2 =*/146).fork()).ldelim(); - if (message.snapReserve != null && Object.hasOwnProperty.call(message, "snapReserve")) - writer.uint32(/* id 19, wireType 1 =*/153).double(message.snapReserve); - if (message.snapshotDirectory != null && Object.hasOwnProperty.call(message, "snapshotDirectory")) - writer.uint32(/* id 20, wireType 0 =*/160).bool(message.snapshotDirectory); - if (message.usedGib != null && Object.hasOwnProperty.call(message, "usedGib")) - writer.uint32(/* id 21, wireType 0 =*/168).int64(message.usedGib); - if (message.securityStyle != null && Object.hasOwnProperty.call(message, "securityStyle")) - writer.uint32(/* id 22, wireType 0 =*/176).int32(message.securityStyle); - if (message.kerberosEnabled != null && Object.hasOwnProperty.call(message, "kerberosEnabled")) - writer.uint32(/* id 23, wireType 0 =*/184).bool(message.kerberosEnabled); - if (message.ldapEnabled != null && Object.hasOwnProperty.call(message, "ldapEnabled")) - writer.uint32(/* id 24, wireType 0 =*/192).bool(message.ldapEnabled); - if (message.activeDirectory != null && Object.hasOwnProperty.call(message, "activeDirectory")) - writer.uint32(/* id 25, wireType 2 =*/202).string(message.activeDirectory); - if (message.restoreParameters != null && Object.hasOwnProperty.call(message, "restoreParameters")) - $root.google.cloud.netapp.v1.RestoreParameters.encode(message.restoreParameters, writer.uint32(/* id 26, wireType 2 =*/210).fork()).ldelim(); - if (message.kmsConfig != null && Object.hasOwnProperty.call(message, "kmsConfig")) - writer.uint32(/* id 27, wireType 2 =*/218).string(message.kmsConfig); - if (message.encryptionType != null && Object.hasOwnProperty.call(message, "encryptionType")) - writer.uint32(/* id 28, wireType 0 =*/224).int32(message.encryptionType); - if (message.hasReplication != null && Object.hasOwnProperty.call(message, "hasReplication")) - writer.uint32(/* id 29, wireType 0 =*/232).bool(message.hasReplication); - if (message.backupConfig != null && Object.hasOwnProperty.call(message, "backupConfig")) - $root.google.cloud.netapp.v1.BackupConfig.encode(message.backupConfig, writer.uint32(/* id 30, wireType 2 =*/242).fork()).ldelim(); - if (message.restrictedActions != null && message.restrictedActions.length) { - writer.uint32(/* id 31, wireType 2 =*/250).fork(); - for (var i = 0; i < message.restrictedActions.length; ++i) - writer.int32(message.restrictedActions[i]); - writer.ldelim(); - } - if (message.largeCapacity != null && Object.hasOwnProperty.call(message, "largeCapacity")) - writer.uint32(/* id 32, wireType 0 =*/256).bool(message.largeCapacity); - if (message.multipleEndpoints != null && Object.hasOwnProperty.call(message, "multipleEndpoints")) - writer.uint32(/* id 33, wireType 0 =*/264).bool(message.multipleEndpoints); - if (message.tieringPolicy != null && Object.hasOwnProperty.call(message, "tieringPolicy")) - $root.google.cloud.netapp.v1.TieringPolicy.encode(message.tieringPolicy, writer.uint32(/* id 34, wireType 2 =*/274).fork()).ldelim(); - if (message.replicaZone != null && Object.hasOwnProperty.call(message, "replicaZone")) - writer.uint32(/* id 36, wireType 2 =*/290).string(message.replicaZone); - if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) - writer.uint32(/* id 37, wireType 2 =*/298).string(message.zone); - if (message.coldTierSizeGib != null && Object.hasOwnProperty.call(message, "coldTierSizeGib")) - writer.uint32(/* id 39, wireType 0 =*/312).int64(message.coldTierSizeGib); + if (message.snapshots != null && message.snapshots.length) + for (var i = 0; i < message.snapshots.length; ++i) + $root.google.cloud.netapp.v1.Snapshot.encode(message.snapshots[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.unreachable != null && message.unreachable.length) + for (var i = 0; i < message.unreachable.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.unreachable[i]); return writer; }; /** - * Encodes the specified Volume message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.Volume.verify|verify} messages. + * Encodes the specified ListSnapshotsResponse message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.ListSnapshotsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.netapp.v1.Volume + * @memberof google.cloud.netapp.v1.ListSnapshotsResponse * @static - * @param {google.cloud.netapp.v1.IVolume} message Volume message or plain object to encode + * @param {google.cloud.netapp.v1.IListSnapshotsResponse} message ListSnapshotsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Volume.encodeDelimited = function encodeDelimited(message, writer) { + ListSnapshotsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Volume message from the specified reader or buffer. + * Decodes a ListSnapshotsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.netapp.v1.Volume + * @memberof google.cloud.netapp.v1.ListSnapshotsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.netapp.v1.Volume} Volume + * @returns {google.cloud.netapp.v1.ListSnapshotsResponse} ListSnapshotsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Volume.decode = function decode(reader, length) { + ListSnapshotsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.netapp.v1.Volume(), key, value; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.netapp.v1.ListSnapshotsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + if (!(message.snapshots && message.snapshots.length)) + message.snapshots = []; + message.snapshots.push($root.google.cloud.netapp.v1.Snapshot.decode(reader, reader.uint32())); break; } case 2: { - message.state = reader.int32(); + message.nextPageToken = reader.string(); break; } case 3: { - message.stateDetails = reader.string(); - break; - } - case 4: { - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 5: { - message.shareName = reader.string(); - break; - } - case 6: { - message.psaRange = reader.string(); - break; - } - case 7: { - message.storagePool = reader.string(); - break; - } - case 8: { - message.network = reader.string(); - break; - } - case 9: { - message.serviceLevel = reader.int32(); - break; - } - case 10: { - message.capacityGib = reader.int64(); - break; - } - case 11: { - message.exportPolicy = $root.google.cloud.netapp.v1.ExportPolicy.decode(reader, reader.uint32()); - break; - } - case 12: { - if (!(message.protocols && message.protocols.length)) - message.protocols = []; - if ((tag & 7) === 2) { - var end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.protocols.push(reader.int32()); - } else - message.protocols.push(reader.int32()); - break; - } - case 13: { - if (!(message.smbSettings && message.smbSettings.length)) - message.smbSettings = []; - if ((tag & 7) === 2) { - var end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.smbSettings.push(reader.int32()); - } else - message.smbSettings.push(reader.int32()); - break; - } - case 14: { - if (!(message.mountOptions && message.mountOptions.length)) - message.mountOptions = []; - message.mountOptions.push($root.google.cloud.netapp.v1.MountOption.decode(reader, reader.uint32())); - break; - } - case 15: { - message.unixPermissions = reader.string(); - break; - } - case 16: { - if (message.labels === $util.emptyObject) - message.labels = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = ""; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = reader.string(); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.labels[key] = value; - break; - } - case 17: { - message.description = reader.string(); - break; - } - case 18: { - message.snapshotPolicy = $root.google.cloud.netapp.v1.SnapshotPolicy.decode(reader, reader.uint32()); - break; - } - case 19: { - message.snapReserve = reader.double(); - break; - } - case 20: { - message.snapshotDirectory = reader.bool(); - break; - } - case 21: { - message.usedGib = reader.int64(); - break; - } - case 22: { - message.securityStyle = reader.int32(); - break; - } - case 23: { - message.kerberosEnabled = reader.bool(); - break; - } - case 24: { - message.ldapEnabled = reader.bool(); - break; - } - case 25: { - message.activeDirectory = reader.string(); - break; - } - case 26: { - message.restoreParameters = $root.google.cloud.netapp.v1.RestoreParameters.decode(reader, reader.uint32()); - break; - } - case 27: { - message.kmsConfig = reader.string(); - break; - } - case 28: { - message.encryptionType = reader.int32(); - break; - } - case 29: { - message.hasReplication = reader.bool(); - break; - } - case 30: { - message.backupConfig = $root.google.cloud.netapp.v1.BackupConfig.decode(reader, reader.uint32()); - break; - } - case 31: { - if (!(message.restrictedActions && message.restrictedActions.length)) - message.restrictedActions = []; - if ((tag & 7) === 2) { - var end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.restrictedActions.push(reader.int32()); - } else - message.restrictedActions.push(reader.int32()); - break; - } - case 32: { - message.largeCapacity = reader.bool(); - break; - } - case 33: { - message.multipleEndpoints = reader.bool(); - break; - } - case 34: { - message.tieringPolicy = $root.google.cloud.netapp.v1.TieringPolicy.decode(reader, reader.uint32()); - break; - } - case 36: { - message.replicaZone = reader.string(); - break; - } - case 37: { - message.zone = reader.string(); - break; - } - case 39: { - message.coldTierSizeGib = reader.int64(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a Volume message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.netapp.v1.Volume - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.netapp.v1.Volume} Volume - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Volume.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a Volume message. - * @function verify - * @memberof google.cloud.netapp.v1.Volume - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Volume.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.state != null && message.hasOwnProperty("state")) - switch (message.state) { - default: - return "state: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - break; - } - if (message.stateDetails != null && message.hasOwnProperty("stateDetails")) - if (!$util.isString(message.stateDetails)) - return "stateDetails: string expected"; - if (message.createTime != null && message.hasOwnProperty("createTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.createTime); - if (error) - return "createTime." + error; - } - if (message.shareName != null && message.hasOwnProperty("shareName")) - if (!$util.isString(message.shareName)) - return "shareName: string expected"; - if (message.psaRange != null && message.hasOwnProperty("psaRange")) - if (!$util.isString(message.psaRange)) - return "psaRange: string expected"; - if (message.storagePool != null && message.hasOwnProperty("storagePool")) - if (!$util.isString(message.storagePool)) - return "storagePool: string expected"; - if (message.network != null && message.hasOwnProperty("network")) - if (!$util.isString(message.network)) - return "network: string expected"; - if (message.serviceLevel != null && message.hasOwnProperty("serviceLevel")) - switch (message.serviceLevel) { - default: - return "serviceLevel: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - break; - } - if (message.capacityGib != null && message.hasOwnProperty("capacityGib")) - if (!$util.isInteger(message.capacityGib) && !(message.capacityGib && $util.isInteger(message.capacityGib.low) && $util.isInteger(message.capacityGib.high))) - return "capacityGib: integer|Long expected"; - if (message.exportPolicy != null && message.hasOwnProperty("exportPolicy")) { - var error = $root.google.cloud.netapp.v1.ExportPolicy.verify(message.exportPolicy); - if (error) - return "exportPolicy." + error; - } - if (message.protocols != null && message.hasOwnProperty("protocols")) { - if (!Array.isArray(message.protocols)) - return "protocols: array expected"; - for (var i = 0; i < message.protocols.length; ++i) - switch (message.protocols[i]) { - default: - return "protocols: enum value[] expected"; - case 0: - case 1: - case 2: - case 3: - break; - } - } - if (message.smbSettings != null && message.hasOwnProperty("smbSettings")) { - if (!Array.isArray(message.smbSettings)) - return "smbSettings: array expected"; - for (var i = 0; i < message.smbSettings.length; ++i) - switch (message.smbSettings[i]) { - default: - return "smbSettings: enum value[] expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - break; - } - } - if (message.mountOptions != null && message.hasOwnProperty("mountOptions")) { - if (!Array.isArray(message.mountOptions)) - return "mountOptions: array expected"; - for (var i = 0; i < message.mountOptions.length; ++i) { - var error = $root.google.cloud.netapp.v1.MountOption.verify(message.mountOptions[i]); - if (error) - return "mountOptions." + error; - } - } - if (message.unixPermissions != null && message.hasOwnProperty("unixPermissions")) - if (!$util.isString(message.unixPermissions)) - return "unixPermissions: string expected"; - if (message.labels != null && message.hasOwnProperty("labels")) { - if (!$util.isObject(message.labels)) - return "labels: object expected"; - var key = Object.keys(message.labels); - for (var i = 0; i < key.length; ++i) - if (!$util.isString(message.labels[key[i]])) - return "labels: string{k:string} expected"; - } - if (message.description != null && message.hasOwnProperty("description")) - if (!$util.isString(message.description)) - return "description: string expected"; - if (message.snapshotPolicy != null && message.hasOwnProperty("snapshotPolicy")) { - var error = $root.google.cloud.netapp.v1.SnapshotPolicy.verify(message.snapshotPolicy); - if (error) - return "snapshotPolicy." + error; - } - if (message.snapReserve != null && message.hasOwnProperty("snapReserve")) - if (typeof message.snapReserve !== "number") - return "snapReserve: number expected"; - if (message.snapshotDirectory != null && message.hasOwnProperty("snapshotDirectory")) - if (typeof message.snapshotDirectory !== "boolean") - return "snapshotDirectory: boolean expected"; - if (message.usedGib != null && message.hasOwnProperty("usedGib")) - if (!$util.isInteger(message.usedGib) && !(message.usedGib && $util.isInteger(message.usedGib.low) && $util.isInteger(message.usedGib.high))) - return "usedGib: integer|Long expected"; - if (message.securityStyle != null && message.hasOwnProperty("securityStyle")) - switch (message.securityStyle) { + if (!(message.unreachable && message.unreachable.length)) + message.unreachable = []; + message.unreachable.push(reader.string()); + break; + } default: - return "securityStyle: enum value expected"; - case 0: - case 1: - case 2: + reader.skipType(tag & 7); break; } - if (message.kerberosEnabled != null && message.hasOwnProperty("kerberosEnabled")) - if (typeof message.kerberosEnabled !== "boolean") - return "kerberosEnabled: boolean expected"; - if (message.ldapEnabled != null && message.hasOwnProperty("ldapEnabled")) - if (typeof message.ldapEnabled !== "boolean") - return "ldapEnabled: boolean expected"; - if (message.activeDirectory != null && message.hasOwnProperty("activeDirectory")) - if (!$util.isString(message.activeDirectory)) - return "activeDirectory: string expected"; - if (message.restoreParameters != null && message.hasOwnProperty("restoreParameters")) { - var error = $root.google.cloud.netapp.v1.RestoreParameters.verify(message.restoreParameters); - if (error) - return "restoreParameters." + error; } - if (message.kmsConfig != null && message.hasOwnProperty("kmsConfig")) - if (!$util.isString(message.kmsConfig)) - return "kmsConfig: string expected"; - if (message.encryptionType != null && message.hasOwnProperty("encryptionType")) - switch (message.encryptionType) { - default: - return "encryptionType: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.hasReplication != null && message.hasOwnProperty("hasReplication")) - if (typeof message.hasReplication !== "boolean") - return "hasReplication: boolean expected"; - if (message.backupConfig != null && message.hasOwnProperty("backupConfig")) { - properties._backupConfig = 1; - { - var error = $root.google.cloud.netapp.v1.BackupConfig.verify(message.backupConfig); + return message; + }; + + /** + * Decodes a ListSnapshotsResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.netapp.v1.ListSnapshotsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.netapp.v1.ListSnapshotsResponse} ListSnapshotsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListSnapshotsResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListSnapshotsResponse message. + * @function verify + * @memberof google.cloud.netapp.v1.ListSnapshotsResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListSnapshotsResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.snapshots != null && message.hasOwnProperty("snapshots")) { + if (!Array.isArray(message.snapshots)) + return "snapshots: array expected"; + for (var i = 0; i < message.snapshots.length; ++i) { + var error = $root.google.cloud.netapp.v1.Snapshot.verify(message.snapshots[i]); if (error) - return "backupConfig." + error; + return "snapshots." + error; } } - if (message.restrictedActions != null && message.hasOwnProperty("restrictedActions")) { - if (!Array.isArray(message.restrictedActions)) - return "restrictedActions: array expected"; - for (var i = 0; i < message.restrictedActions.length; ++i) - switch (message.restrictedActions[i]) { - default: - return "restrictedActions: enum value[] expected"; - case 0: - case 1: - break; - } - } - if (message.largeCapacity != null && message.hasOwnProperty("largeCapacity")) - if (typeof message.largeCapacity !== "boolean") - return "largeCapacity: boolean expected"; - if (message.multipleEndpoints != null && message.hasOwnProperty("multipleEndpoints")) - if (typeof message.multipleEndpoints !== "boolean") - return "multipleEndpoints: boolean expected"; - if (message.tieringPolicy != null && message.hasOwnProperty("tieringPolicy")) { - properties._tieringPolicy = 1; - { - var error = $root.google.cloud.netapp.v1.TieringPolicy.verify(message.tieringPolicy); - if (error) - return "tieringPolicy." + error; - } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + if (message.unreachable != null && message.hasOwnProperty("unreachable")) { + if (!Array.isArray(message.unreachable)) + return "unreachable: array expected"; + for (var i = 0; i < message.unreachable.length; ++i) + if (!$util.isString(message.unreachable[i])) + return "unreachable: string[] expected"; } - if (message.replicaZone != null && message.hasOwnProperty("replicaZone")) - if (!$util.isString(message.replicaZone)) - return "replicaZone: string expected"; - if (message.zone != null && message.hasOwnProperty("zone")) - if (!$util.isString(message.zone)) - return "zone: string expected"; - if (message.coldTierSizeGib != null && message.hasOwnProperty("coldTierSizeGib")) - if (!$util.isInteger(message.coldTierSizeGib) && !(message.coldTierSizeGib && $util.isInteger(message.coldTierSizeGib.low) && $util.isInteger(message.coldTierSizeGib.high))) - return "coldTierSizeGib: integer|Long expected"; return null; }; /** - * Creates a Volume message from a plain object. Also converts values to their respective internal types. + * Creates a ListSnapshotsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.netapp.v1.Volume + * @memberof google.cloud.netapp.v1.ListSnapshotsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.netapp.v1.Volume} Volume + * @returns {google.cloud.netapp.v1.ListSnapshotsResponse} ListSnapshotsResponse */ - Volume.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.netapp.v1.Volume) + ListSnapshotsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.netapp.v1.ListSnapshotsResponse) return object; - var message = new $root.google.cloud.netapp.v1.Volume(); - if (object.name != null) - message.name = String(object.name); - switch (object.state) { - default: - if (typeof object.state === "number") { - message.state = object.state; - break; - } - break; - case "STATE_UNSPECIFIED": - case 0: - message.state = 0; - break; - case "READY": - case 1: - message.state = 1; - break; - case "CREATING": - case 2: - message.state = 2; - break; - case "DELETING": - case 3: - message.state = 3; - break; - case "UPDATING": - case 4: - message.state = 4; - break; - case "RESTORING": - case 5: - message.state = 5; - break; - case "DISABLED": - case 6: - message.state = 6; - break; - case "ERROR": - case 7: - message.state = 7; - break; - } - if (object.stateDetails != null) - message.stateDetails = String(object.stateDetails); - if (object.createTime != null) { - if (typeof object.createTime !== "object") - throw TypeError(".google.cloud.netapp.v1.Volume.createTime: object expected"); - message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); - } - if (object.shareName != null) - message.shareName = String(object.shareName); - if (object.psaRange != null) - message.psaRange = String(object.psaRange); - if (object.storagePool != null) - message.storagePool = String(object.storagePool); - if (object.network != null) - message.network = String(object.network); - switch (object.serviceLevel) { - default: - if (typeof object.serviceLevel === "number") { - message.serviceLevel = object.serviceLevel; - break; - } - break; - case "SERVICE_LEVEL_UNSPECIFIED": - case 0: - message.serviceLevel = 0; - break; - case "PREMIUM": - case 1: - message.serviceLevel = 1; - break; - case "EXTREME": - case 2: - message.serviceLevel = 2; - break; - case "STANDARD": - case 3: - message.serviceLevel = 3; - break; - case "FLEX": - case 4: - message.serviceLevel = 4; - break; - } - if (object.capacityGib != null) - if ($util.Long) - (message.capacityGib = $util.Long.fromValue(object.capacityGib)).unsigned = false; - else if (typeof object.capacityGib === "string") - message.capacityGib = parseInt(object.capacityGib, 10); - else if (typeof object.capacityGib === "number") - message.capacityGib = object.capacityGib; - else if (typeof object.capacityGib === "object") - message.capacityGib = new $util.LongBits(object.capacityGib.low >>> 0, object.capacityGib.high >>> 0).toNumber(); - if (object.exportPolicy != null) { - if (typeof object.exportPolicy !== "object") - throw TypeError(".google.cloud.netapp.v1.Volume.exportPolicy: object expected"); - message.exportPolicy = $root.google.cloud.netapp.v1.ExportPolicy.fromObject(object.exportPolicy); - } - if (object.protocols) { - if (!Array.isArray(object.protocols)) - throw TypeError(".google.cloud.netapp.v1.Volume.protocols: array expected"); - message.protocols = []; - for (var i = 0; i < object.protocols.length; ++i) - switch (object.protocols[i]) { - default: - if (typeof object.protocols[i] === "number") { - message.protocols[i] = object.protocols[i]; - break; - } - case "PROTOCOLS_UNSPECIFIED": - case 0: - message.protocols[i] = 0; - break; - case "NFSV3": - case 1: - message.protocols[i] = 1; - break; - case "NFSV4": - case 2: - message.protocols[i] = 2; - break; - case "SMB": - case 3: - message.protocols[i] = 3; - break; - } - } - if (object.smbSettings) { - if (!Array.isArray(object.smbSettings)) - throw TypeError(".google.cloud.netapp.v1.Volume.smbSettings: array expected"); - message.smbSettings = []; - for (var i = 0; i < object.smbSettings.length; ++i) - switch (object.smbSettings[i]) { - default: - if (typeof object.smbSettings[i] === "number") { - message.smbSettings[i] = object.smbSettings[i]; - break; - } - case "SMB_SETTINGS_UNSPECIFIED": - case 0: - message.smbSettings[i] = 0; - break; - case "ENCRYPT_DATA": - case 1: - message.smbSettings[i] = 1; - break; - case "BROWSABLE": - case 2: - message.smbSettings[i] = 2; - break; - case "CHANGE_NOTIFY": - case 3: - message.smbSettings[i] = 3; - break; - case "NON_BROWSABLE": - case 4: - message.smbSettings[i] = 4; - break; - case "OPLOCKS": - case 5: - message.smbSettings[i] = 5; - break; - case "SHOW_SNAPSHOT": - case 6: - message.smbSettings[i] = 6; - break; - case "SHOW_PREVIOUS_VERSIONS": - case 7: - message.smbSettings[i] = 7; - break; - case "ACCESS_BASED_ENUMERATION": - case 8: - message.smbSettings[i] = 8; - break; - case "CONTINUOUSLY_AVAILABLE": - case 9: - message.smbSettings[i] = 9; - break; - } - } - if (object.mountOptions) { - if (!Array.isArray(object.mountOptions)) - throw TypeError(".google.cloud.netapp.v1.Volume.mountOptions: array expected"); - message.mountOptions = []; - for (var i = 0; i < object.mountOptions.length; ++i) { - if (typeof object.mountOptions[i] !== "object") - throw TypeError(".google.cloud.netapp.v1.Volume.mountOptions: object expected"); - message.mountOptions[i] = $root.google.cloud.netapp.v1.MountOption.fromObject(object.mountOptions[i]); + var message = new $root.google.cloud.netapp.v1.ListSnapshotsResponse(); + if (object.snapshots) { + if (!Array.isArray(object.snapshots)) + throw TypeError(".google.cloud.netapp.v1.ListSnapshotsResponse.snapshots: array expected"); + message.snapshots = []; + for (var i = 0; i < object.snapshots.length; ++i) { + if (typeof object.snapshots[i] !== "object") + throw TypeError(".google.cloud.netapp.v1.ListSnapshotsResponse.snapshots: object expected"); + message.snapshots[i] = $root.google.cloud.netapp.v1.Snapshot.fromObject(object.snapshots[i]); } } - if (object.unixPermissions != null) - message.unixPermissions = String(object.unixPermissions); - if (object.labels) { - if (typeof object.labels !== "object") - throw TypeError(".google.cloud.netapp.v1.Volume.labels: object expected"); - message.labels = {}; - for (var keys = Object.keys(object.labels), i = 0; i < keys.length; ++i) - message.labels[keys[i]] = String(object.labels[keys[i]]); - } - if (object.description != null) - message.description = String(object.description); - if (object.snapshotPolicy != null) { - if (typeof object.snapshotPolicy !== "object") - throw TypeError(".google.cloud.netapp.v1.Volume.snapshotPolicy: object expected"); - message.snapshotPolicy = $root.google.cloud.netapp.v1.SnapshotPolicy.fromObject(object.snapshotPolicy); + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + if (object.unreachable) { + if (!Array.isArray(object.unreachable)) + throw TypeError(".google.cloud.netapp.v1.ListSnapshotsResponse.unreachable: array expected"); + message.unreachable = []; + for (var i = 0; i < object.unreachable.length; ++i) + message.unreachable[i] = String(object.unreachable[i]); } - if (object.snapReserve != null) - message.snapReserve = Number(object.snapReserve); - if (object.snapshotDirectory != null) - message.snapshotDirectory = Boolean(object.snapshotDirectory); - if (object.usedGib != null) - if ($util.Long) - (message.usedGib = $util.Long.fromValue(object.usedGib)).unsigned = false; - else if (typeof object.usedGib === "string") - message.usedGib = parseInt(object.usedGib, 10); - else if (typeof object.usedGib === "number") - message.usedGib = object.usedGib; - else if (typeof object.usedGib === "object") - message.usedGib = new $util.LongBits(object.usedGib.low >>> 0, object.usedGib.high >>> 0).toNumber(); - switch (object.securityStyle) { - default: - if (typeof object.securityStyle === "number") { - message.securityStyle = object.securityStyle; - break; - } - break; - case "SECURITY_STYLE_UNSPECIFIED": - case 0: - message.securityStyle = 0; - break; - case "NTFS": - case 1: - message.securityStyle = 1; - break; - case "UNIX": - case 2: - message.securityStyle = 2; - break; + return message; + }; + + /** + * Creates a plain object from a ListSnapshotsResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.netapp.v1.ListSnapshotsResponse + * @static + * @param {google.cloud.netapp.v1.ListSnapshotsResponse} message ListSnapshotsResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListSnapshotsResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.snapshots = []; + object.unreachable = []; } - if (object.kerberosEnabled != null) - message.kerberosEnabled = Boolean(object.kerberosEnabled); - if (object.ldapEnabled != null) - message.ldapEnabled = Boolean(object.ldapEnabled); - if (object.activeDirectory != null) - message.activeDirectory = String(object.activeDirectory); - if (object.restoreParameters != null) { - if (typeof object.restoreParameters !== "object") - throw TypeError(".google.cloud.netapp.v1.Volume.restoreParameters: object expected"); - message.restoreParameters = $root.google.cloud.netapp.v1.RestoreParameters.fromObject(object.restoreParameters); + if (options.defaults) + object.nextPageToken = ""; + if (message.snapshots && message.snapshots.length) { + object.snapshots = []; + for (var j = 0; j < message.snapshots.length; ++j) + object.snapshots[j] = $root.google.cloud.netapp.v1.Snapshot.toObject(message.snapshots[j], options); } - if (object.kmsConfig != null) - message.kmsConfig = String(object.kmsConfig); - switch (object.encryptionType) { - default: - if (typeof object.encryptionType === "number") { - message.encryptionType = object.encryptionType; - break; - } - break; - case "ENCRYPTION_TYPE_UNSPECIFIED": - case 0: - message.encryptionType = 0; - break; - case "SERVICE_MANAGED": - case 1: - message.encryptionType = 1; - break; - case "CLOUD_KMS": - case 2: - message.encryptionType = 2; - break; + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; + if (message.unreachable && message.unreachable.length) { + object.unreachable = []; + for (var j = 0; j < message.unreachable.length; ++j) + object.unreachable[j] = message.unreachable[j]; } - if (object.hasReplication != null) - message.hasReplication = Boolean(object.hasReplication); - if (object.backupConfig != null) { - if (typeof object.backupConfig !== "object") - throw TypeError(".google.cloud.netapp.v1.Volume.backupConfig: object expected"); - message.backupConfig = $root.google.cloud.netapp.v1.BackupConfig.fromObject(object.backupConfig); + return object; + }; + + /** + * Converts this ListSnapshotsResponse to JSON. + * @function toJSON + * @memberof google.cloud.netapp.v1.ListSnapshotsResponse + * @instance + * @returns {Object.} JSON object + */ + ListSnapshotsResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ListSnapshotsResponse + * @function getTypeUrl + * @memberof google.cloud.netapp.v1.ListSnapshotsResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListSnapshotsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; } - if (object.restrictedActions) { - if (!Array.isArray(object.restrictedActions)) - throw TypeError(".google.cloud.netapp.v1.Volume.restrictedActions: array expected"); - message.restrictedActions = []; - for (var i = 0; i < object.restrictedActions.length; ++i) - switch (object.restrictedActions[i]) { - default: - if (typeof object.restrictedActions[i] === "number") { - message.restrictedActions[i] = object.restrictedActions[i]; - break; - } - case "RESTRICTED_ACTION_UNSPECIFIED": - case 0: - message.restrictedActions[i] = 0; - break; - case "DELETE": - case 1: - message.restrictedActions[i] = 1; + return typeUrlPrefix + "/google.cloud.netapp.v1.ListSnapshotsResponse"; + }; + + return ListSnapshotsResponse; + })(); + + v1.GetSnapshotRequest = (function() { + + /** + * Properties of a GetSnapshotRequest. + * @memberof google.cloud.netapp.v1 + * @interface IGetSnapshotRequest + * @property {string|null} [name] GetSnapshotRequest name + */ + + /** + * Constructs a new GetSnapshotRequest. + * @memberof google.cloud.netapp.v1 + * @classdesc Represents a GetSnapshotRequest. + * @implements IGetSnapshotRequest + * @constructor + * @param {google.cloud.netapp.v1.IGetSnapshotRequest=} [properties] Properties to set + */ + function GetSnapshotRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * GetSnapshotRequest name. + * @member {string} name + * @memberof google.cloud.netapp.v1.GetSnapshotRequest + * @instance + */ + GetSnapshotRequest.prototype.name = ""; + + /** + * Creates a new GetSnapshotRequest instance using the specified properties. + * @function create + * @memberof google.cloud.netapp.v1.GetSnapshotRequest + * @static + * @param {google.cloud.netapp.v1.IGetSnapshotRequest=} [properties] Properties to set + * @returns {google.cloud.netapp.v1.GetSnapshotRequest} GetSnapshotRequest instance + */ + GetSnapshotRequest.create = function create(properties) { + return new GetSnapshotRequest(properties); + }; + + /** + * Encodes the specified GetSnapshotRequest message. Does not implicitly {@link google.cloud.netapp.v1.GetSnapshotRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.netapp.v1.GetSnapshotRequest + * @static + * @param {google.cloud.netapp.v1.IGetSnapshotRequest} message GetSnapshotRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetSnapshotRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + return writer; + }; + + /** + * Encodes the specified GetSnapshotRequest message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.GetSnapshotRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.netapp.v1.GetSnapshotRequest + * @static + * @param {google.cloud.netapp.v1.IGetSnapshotRequest} message GetSnapshotRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetSnapshotRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetSnapshotRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.netapp.v1.GetSnapshotRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.netapp.v1.GetSnapshotRequest} GetSnapshotRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetSnapshotRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.netapp.v1.GetSnapshotRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); break; } + default: + reader.skipType(tag & 7); + break; + } } - if (object.largeCapacity != null) - message.largeCapacity = Boolean(object.largeCapacity); - if (object.multipleEndpoints != null) - message.multipleEndpoints = Boolean(object.multipleEndpoints); - if (object.tieringPolicy != null) { - if (typeof object.tieringPolicy !== "object") - throw TypeError(".google.cloud.netapp.v1.Volume.tieringPolicy: object expected"); - message.tieringPolicy = $root.google.cloud.netapp.v1.TieringPolicy.fromObject(object.tieringPolicy); - } - if (object.replicaZone != null) - message.replicaZone = String(object.replicaZone); - if (object.zone != null) - message.zone = String(object.zone); - if (object.coldTierSizeGib != null) - if ($util.Long) - (message.coldTierSizeGib = $util.Long.fromValue(object.coldTierSizeGib)).unsigned = false; - else if (typeof object.coldTierSizeGib === "string") - message.coldTierSizeGib = parseInt(object.coldTierSizeGib, 10); - else if (typeof object.coldTierSizeGib === "number") - message.coldTierSizeGib = object.coldTierSizeGib; - else if (typeof object.coldTierSizeGib === "object") - message.coldTierSizeGib = new $util.LongBits(object.coldTierSizeGib.low >>> 0, object.coldTierSizeGib.high >>> 0).toNumber(); return message; }; /** - * Creates a plain object from a Volume message. Also converts values to other types if specified. + * Decodes a GetSnapshotRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.netapp.v1.GetSnapshotRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.netapp.v1.GetSnapshotRequest} GetSnapshotRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetSnapshotRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetSnapshotRequest message. + * @function verify + * @memberof google.cloud.netapp.v1.GetSnapshotRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetSnapshotRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + return null; + }; + + /** + * Creates a GetSnapshotRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.netapp.v1.GetSnapshotRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.netapp.v1.GetSnapshotRequest} GetSnapshotRequest + */ + GetSnapshotRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.netapp.v1.GetSnapshotRequest) + return object; + var message = new $root.google.cloud.netapp.v1.GetSnapshotRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; + + /** + * Creates a plain object from a GetSnapshotRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.netapp.v1.Volume + * @memberof google.cloud.netapp.v1.GetSnapshotRequest * @static - * @param {google.cloud.netapp.v1.Volume} message Volume + * @param {google.cloud.netapp.v1.GetSnapshotRequest} message GetSnapshotRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Volume.toObject = function toObject(message, options) { + GetSnapshotRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { - object.protocols = []; - object.smbSettings = []; - object.mountOptions = []; - object.restrictedActions = []; - } - if (options.objects || options.defaults) - object.labels = {}; - if (options.defaults) { + if (options.defaults) object.name = ""; - object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; - object.stateDetails = ""; - object.createTime = null; - object.shareName = ""; - object.psaRange = ""; - object.storagePool = ""; - object.network = ""; - object.serviceLevel = options.enums === String ? "SERVICE_LEVEL_UNSPECIFIED" : 0; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.capacityGib = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.capacityGib = options.longs === String ? "0" : 0; - object.exportPolicy = null; - object.unixPermissions = ""; - object.description = ""; - object.snapshotPolicy = null; - object.snapReserve = 0; - object.snapshotDirectory = false; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.usedGib = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.usedGib = options.longs === String ? "0" : 0; - object.securityStyle = options.enums === String ? "SECURITY_STYLE_UNSPECIFIED" : 0; - object.kerberosEnabled = false; - object.ldapEnabled = false; - object.activeDirectory = ""; - object.restoreParameters = null; - object.kmsConfig = ""; - object.encryptionType = options.enums === String ? "ENCRYPTION_TYPE_UNSPECIFIED" : 0; - object.hasReplication = false; - object.largeCapacity = false; - object.multipleEndpoints = false; - object.replicaZone = ""; - object.zone = ""; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.coldTierSizeGib = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.coldTierSizeGib = options.longs === String ? "0" : 0; - } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; - if (message.state != null && message.hasOwnProperty("state")) - object.state = options.enums === String ? $root.google.cloud.netapp.v1.Volume.State[message.state] === undefined ? message.state : $root.google.cloud.netapp.v1.Volume.State[message.state] : message.state; - if (message.stateDetails != null && message.hasOwnProperty("stateDetails")) - object.stateDetails = message.stateDetails; - if (message.createTime != null && message.hasOwnProperty("createTime")) - object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); - if (message.shareName != null && message.hasOwnProperty("shareName")) - object.shareName = message.shareName; - if (message.psaRange != null && message.hasOwnProperty("psaRange")) - object.psaRange = message.psaRange; - if (message.storagePool != null && message.hasOwnProperty("storagePool")) - object.storagePool = message.storagePool; - if (message.network != null && message.hasOwnProperty("network")) - object.network = message.network; - if (message.serviceLevel != null && message.hasOwnProperty("serviceLevel")) - object.serviceLevel = options.enums === String ? $root.google.cloud.netapp.v1.ServiceLevel[message.serviceLevel] === undefined ? message.serviceLevel : $root.google.cloud.netapp.v1.ServiceLevel[message.serviceLevel] : message.serviceLevel; - if (message.capacityGib != null && message.hasOwnProperty("capacityGib")) - if (typeof message.capacityGib === "number") - object.capacityGib = options.longs === String ? String(message.capacityGib) : message.capacityGib; - else - object.capacityGib = options.longs === String ? $util.Long.prototype.toString.call(message.capacityGib) : options.longs === Number ? new $util.LongBits(message.capacityGib.low >>> 0, message.capacityGib.high >>> 0).toNumber() : message.capacityGib; - if (message.exportPolicy != null && message.hasOwnProperty("exportPolicy")) - object.exportPolicy = $root.google.cloud.netapp.v1.ExportPolicy.toObject(message.exportPolicy, options); - if (message.protocols && message.protocols.length) { - object.protocols = []; - for (var j = 0; j < message.protocols.length; ++j) - object.protocols[j] = options.enums === String ? $root.google.cloud.netapp.v1.Protocols[message.protocols[j]] === undefined ? message.protocols[j] : $root.google.cloud.netapp.v1.Protocols[message.protocols[j]] : message.protocols[j]; - } - if (message.smbSettings && message.smbSettings.length) { - object.smbSettings = []; - for (var j = 0; j < message.smbSettings.length; ++j) - object.smbSettings[j] = options.enums === String ? $root.google.cloud.netapp.v1.SMBSettings[message.smbSettings[j]] === undefined ? message.smbSettings[j] : $root.google.cloud.netapp.v1.SMBSettings[message.smbSettings[j]] : message.smbSettings[j]; - } - if (message.mountOptions && message.mountOptions.length) { - object.mountOptions = []; - for (var j = 0; j < message.mountOptions.length; ++j) - object.mountOptions[j] = $root.google.cloud.netapp.v1.MountOption.toObject(message.mountOptions[j], options); + return object; + }; + + /** + * Converts this GetSnapshotRequest to JSON. + * @function toJSON + * @memberof google.cloud.netapp.v1.GetSnapshotRequest + * @instance + * @returns {Object.} JSON object + */ + GetSnapshotRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GetSnapshotRequest + * @function getTypeUrl + * @memberof google.cloud.netapp.v1.GetSnapshotRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GetSnapshotRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; } - if (message.unixPermissions != null && message.hasOwnProperty("unixPermissions")) - object.unixPermissions = message.unixPermissions; - var keys2; - if (message.labels && (keys2 = Object.keys(message.labels)).length) { - object.labels = {}; - for (var j = 0; j < keys2.length; ++j) - object.labels[keys2[j]] = message.labels[keys2[j]]; + return typeUrlPrefix + "/google.cloud.netapp.v1.GetSnapshotRequest"; + }; + + return GetSnapshotRequest; + })(); + + v1.CreateSnapshotRequest = (function() { + + /** + * Properties of a CreateSnapshotRequest. + * @memberof google.cloud.netapp.v1 + * @interface ICreateSnapshotRequest + * @property {string|null} [parent] CreateSnapshotRequest parent + * @property {google.cloud.netapp.v1.ISnapshot|null} [snapshot] CreateSnapshotRequest snapshot + * @property {string|null} [snapshotId] CreateSnapshotRequest snapshotId + */ + + /** + * Constructs a new CreateSnapshotRequest. + * @memberof google.cloud.netapp.v1 + * @classdesc Represents a CreateSnapshotRequest. + * @implements ICreateSnapshotRequest + * @constructor + * @param {google.cloud.netapp.v1.ICreateSnapshotRequest=} [properties] Properties to set + */ + function CreateSnapshotRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * CreateSnapshotRequest parent. + * @member {string} parent + * @memberof google.cloud.netapp.v1.CreateSnapshotRequest + * @instance + */ + CreateSnapshotRequest.prototype.parent = ""; + + /** + * CreateSnapshotRequest snapshot. + * @member {google.cloud.netapp.v1.ISnapshot|null|undefined} snapshot + * @memberof google.cloud.netapp.v1.CreateSnapshotRequest + * @instance + */ + CreateSnapshotRequest.prototype.snapshot = null; + + /** + * CreateSnapshotRequest snapshotId. + * @member {string} snapshotId + * @memberof google.cloud.netapp.v1.CreateSnapshotRequest + * @instance + */ + CreateSnapshotRequest.prototype.snapshotId = ""; + + /** + * Creates a new CreateSnapshotRequest instance using the specified properties. + * @function create + * @memberof google.cloud.netapp.v1.CreateSnapshotRequest + * @static + * @param {google.cloud.netapp.v1.ICreateSnapshotRequest=} [properties] Properties to set + * @returns {google.cloud.netapp.v1.CreateSnapshotRequest} CreateSnapshotRequest instance + */ + CreateSnapshotRequest.create = function create(properties) { + return new CreateSnapshotRequest(properties); + }; + + /** + * Encodes the specified CreateSnapshotRequest message. Does not implicitly {@link google.cloud.netapp.v1.CreateSnapshotRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.netapp.v1.CreateSnapshotRequest + * @static + * @param {google.cloud.netapp.v1.ICreateSnapshotRequest} message CreateSnapshotRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateSnapshotRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.snapshot != null && Object.hasOwnProperty.call(message, "snapshot")) + $root.google.cloud.netapp.v1.Snapshot.encode(message.snapshot, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.snapshotId != null && Object.hasOwnProperty.call(message, "snapshotId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.snapshotId); + return writer; + }; + + /** + * Encodes the specified CreateSnapshotRequest message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.CreateSnapshotRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.netapp.v1.CreateSnapshotRequest + * @static + * @param {google.cloud.netapp.v1.ICreateSnapshotRequest} message CreateSnapshotRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateSnapshotRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CreateSnapshotRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.netapp.v1.CreateSnapshotRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.netapp.v1.CreateSnapshotRequest} CreateSnapshotRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateSnapshotRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.netapp.v1.CreateSnapshotRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.parent = reader.string(); + break; + } + case 2: { + message.snapshot = $root.google.cloud.netapp.v1.Snapshot.decode(reader, reader.uint32()); + break; + } + case 3: { + message.snapshotId = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } } - if (message.description != null && message.hasOwnProperty("description")) - object.description = message.description; - if (message.snapshotPolicy != null && message.hasOwnProperty("snapshotPolicy")) - object.snapshotPolicy = $root.google.cloud.netapp.v1.SnapshotPolicy.toObject(message.snapshotPolicy, options); - if (message.snapReserve != null && message.hasOwnProperty("snapReserve")) - object.snapReserve = options.json && !isFinite(message.snapReserve) ? String(message.snapReserve) : message.snapReserve; - if (message.snapshotDirectory != null && message.hasOwnProperty("snapshotDirectory")) - object.snapshotDirectory = message.snapshotDirectory; - if (message.usedGib != null && message.hasOwnProperty("usedGib")) - if (typeof message.usedGib === "number") - object.usedGib = options.longs === String ? String(message.usedGib) : message.usedGib; - else - object.usedGib = options.longs === String ? $util.Long.prototype.toString.call(message.usedGib) : options.longs === Number ? new $util.LongBits(message.usedGib.low >>> 0, message.usedGib.high >>> 0).toNumber() : message.usedGib; - if (message.securityStyle != null && message.hasOwnProperty("securityStyle")) - object.securityStyle = options.enums === String ? $root.google.cloud.netapp.v1.SecurityStyle[message.securityStyle] === undefined ? message.securityStyle : $root.google.cloud.netapp.v1.SecurityStyle[message.securityStyle] : message.securityStyle; - if (message.kerberosEnabled != null && message.hasOwnProperty("kerberosEnabled")) - object.kerberosEnabled = message.kerberosEnabled; - if (message.ldapEnabled != null && message.hasOwnProperty("ldapEnabled")) - object.ldapEnabled = message.ldapEnabled; - if (message.activeDirectory != null && message.hasOwnProperty("activeDirectory")) - object.activeDirectory = message.activeDirectory; - if (message.restoreParameters != null && message.hasOwnProperty("restoreParameters")) - object.restoreParameters = $root.google.cloud.netapp.v1.RestoreParameters.toObject(message.restoreParameters, options); - if (message.kmsConfig != null && message.hasOwnProperty("kmsConfig")) - object.kmsConfig = message.kmsConfig; - if (message.encryptionType != null && message.hasOwnProperty("encryptionType")) - object.encryptionType = options.enums === String ? $root.google.cloud.netapp.v1.EncryptionType[message.encryptionType] === undefined ? message.encryptionType : $root.google.cloud.netapp.v1.EncryptionType[message.encryptionType] : message.encryptionType; - if (message.hasReplication != null && message.hasOwnProperty("hasReplication")) - object.hasReplication = message.hasReplication; - if (message.backupConfig != null && message.hasOwnProperty("backupConfig")) { - object.backupConfig = $root.google.cloud.netapp.v1.BackupConfig.toObject(message.backupConfig, options); - if (options.oneofs) - object._backupConfig = "backupConfig"; + return message; + }; + + /** + * Decodes a CreateSnapshotRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.netapp.v1.CreateSnapshotRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.netapp.v1.CreateSnapshotRequest} CreateSnapshotRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateSnapshotRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CreateSnapshotRequest message. + * @function verify + * @memberof google.cloud.netapp.v1.CreateSnapshotRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CreateSnapshotRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.snapshot != null && message.hasOwnProperty("snapshot")) { + var error = $root.google.cloud.netapp.v1.Snapshot.verify(message.snapshot); + if (error) + return "snapshot." + error; } - if (message.restrictedActions && message.restrictedActions.length) { - object.restrictedActions = []; - for (var j = 0; j < message.restrictedActions.length; ++j) - object.restrictedActions[j] = options.enums === String ? $root.google.cloud.netapp.v1.RestrictedAction[message.restrictedActions[j]] === undefined ? message.restrictedActions[j] : $root.google.cloud.netapp.v1.RestrictedAction[message.restrictedActions[j]] : message.restrictedActions[j]; + if (message.snapshotId != null && message.hasOwnProperty("snapshotId")) + if (!$util.isString(message.snapshotId)) + return "snapshotId: string expected"; + return null; + }; + + /** + * Creates a CreateSnapshotRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.netapp.v1.CreateSnapshotRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.netapp.v1.CreateSnapshotRequest} CreateSnapshotRequest + */ + CreateSnapshotRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.netapp.v1.CreateSnapshotRequest) + return object; + var message = new $root.google.cloud.netapp.v1.CreateSnapshotRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.snapshot != null) { + if (typeof object.snapshot !== "object") + throw TypeError(".google.cloud.netapp.v1.CreateSnapshotRequest.snapshot: object expected"); + message.snapshot = $root.google.cloud.netapp.v1.Snapshot.fromObject(object.snapshot); } - if (message.largeCapacity != null && message.hasOwnProperty("largeCapacity")) - object.largeCapacity = message.largeCapacity; - if (message.multipleEndpoints != null && message.hasOwnProperty("multipleEndpoints")) - object.multipleEndpoints = message.multipleEndpoints; - if (message.tieringPolicy != null && message.hasOwnProperty("tieringPolicy")) { - object.tieringPolicy = $root.google.cloud.netapp.v1.TieringPolicy.toObject(message.tieringPolicy, options); - if (options.oneofs) - object._tieringPolicy = "tieringPolicy"; + if (object.snapshotId != null) + message.snapshotId = String(object.snapshotId); + return message; + }; + + /** + * Creates a plain object from a CreateSnapshotRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.netapp.v1.CreateSnapshotRequest + * @static + * @param {google.cloud.netapp.v1.CreateSnapshotRequest} message CreateSnapshotRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CreateSnapshotRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.snapshot = null; + object.snapshotId = ""; } - if (message.replicaZone != null && message.hasOwnProperty("replicaZone")) - object.replicaZone = message.replicaZone; - if (message.zone != null && message.hasOwnProperty("zone")) - object.zone = message.zone; - if (message.coldTierSizeGib != null && message.hasOwnProperty("coldTierSizeGib")) - if (typeof message.coldTierSizeGib === "number") - object.coldTierSizeGib = options.longs === String ? String(message.coldTierSizeGib) : message.coldTierSizeGib; - else - object.coldTierSizeGib = options.longs === String ? $util.Long.prototype.toString.call(message.coldTierSizeGib) : options.longs === Number ? new $util.LongBits(message.coldTierSizeGib.low >>> 0, message.coldTierSizeGib.high >>> 0).toNumber() : message.coldTierSizeGib; + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.snapshot != null && message.hasOwnProperty("snapshot")) + object.snapshot = $root.google.cloud.netapp.v1.Snapshot.toObject(message.snapshot, options); + if (message.snapshotId != null && message.hasOwnProperty("snapshotId")) + object.snapshotId = message.snapshotId; return object; }; /** - * Converts this Volume to JSON. + * Converts this CreateSnapshotRequest to JSON. * @function toJSON - * @memberof google.cloud.netapp.v1.Volume + * @memberof google.cloud.netapp.v1.CreateSnapshotRequest * @instance * @returns {Object.} JSON object */ - Volume.prototype.toJSON = function toJSON() { + CreateSnapshotRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for Volume + * Gets the default type url for CreateSnapshotRequest * @function getTypeUrl - * @memberof google.cloud.netapp.v1.Volume + * @memberof google.cloud.netapp.v1.CreateSnapshotRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - Volume.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CreateSnapshotRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.netapp.v1.Volume"; + return typeUrlPrefix + "/google.cloud.netapp.v1.CreateSnapshotRequest"; }; - /** - * State enum. - * @name google.cloud.netapp.v1.Volume.State - * @enum {number} - * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value - * @property {number} READY=1 READY value - * @property {number} CREATING=2 CREATING value - * @property {number} DELETING=3 DELETING value - * @property {number} UPDATING=4 UPDATING value - * @property {number} RESTORING=5 RESTORING value - * @property {number} DISABLED=6 DISABLED value - * @property {number} ERROR=7 ERROR value - */ - Volume.State = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "STATE_UNSPECIFIED"] = 0; - values[valuesById[1] = "READY"] = 1; - values[valuesById[2] = "CREATING"] = 2; - values[valuesById[3] = "DELETING"] = 3; - values[valuesById[4] = "UPDATING"] = 4; - values[valuesById[5] = "RESTORING"] = 5; - values[valuesById[6] = "DISABLED"] = 6; - values[valuesById[7] = "ERROR"] = 7; - return values; - })(); - - return Volume; + return CreateSnapshotRequest; })(); - v1.ExportPolicy = (function() { + v1.DeleteSnapshotRequest = (function() { /** - * Properties of an ExportPolicy. + * Properties of a DeleteSnapshotRequest. * @memberof google.cloud.netapp.v1 - * @interface IExportPolicy - * @property {Array.|null} [rules] ExportPolicy rules + * @interface IDeleteSnapshotRequest + * @property {string|null} [name] DeleteSnapshotRequest name */ /** - * Constructs a new ExportPolicy. + * Constructs a new DeleteSnapshotRequest. * @memberof google.cloud.netapp.v1 - * @classdesc Represents an ExportPolicy. - * @implements IExportPolicy + * @classdesc Represents a DeleteSnapshotRequest. + * @implements IDeleteSnapshotRequest * @constructor - * @param {google.cloud.netapp.v1.IExportPolicy=} [properties] Properties to set + * @param {google.cloud.netapp.v1.IDeleteSnapshotRequest=} [properties] Properties to set */ - function ExportPolicy(properties) { - this.rules = []; + function DeleteSnapshotRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -25126,78 +26861,75 @@ } /** - * ExportPolicy rules. - * @member {Array.} rules - * @memberof google.cloud.netapp.v1.ExportPolicy + * DeleteSnapshotRequest name. + * @member {string} name + * @memberof google.cloud.netapp.v1.DeleteSnapshotRequest * @instance */ - ExportPolicy.prototype.rules = $util.emptyArray; + DeleteSnapshotRequest.prototype.name = ""; /** - * Creates a new ExportPolicy instance using the specified properties. + * Creates a new DeleteSnapshotRequest instance using the specified properties. * @function create - * @memberof google.cloud.netapp.v1.ExportPolicy + * @memberof google.cloud.netapp.v1.DeleteSnapshotRequest * @static - * @param {google.cloud.netapp.v1.IExportPolicy=} [properties] Properties to set - * @returns {google.cloud.netapp.v1.ExportPolicy} ExportPolicy instance + * @param {google.cloud.netapp.v1.IDeleteSnapshotRequest=} [properties] Properties to set + * @returns {google.cloud.netapp.v1.DeleteSnapshotRequest} DeleteSnapshotRequest instance */ - ExportPolicy.create = function create(properties) { - return new ExportPolicy(properties); + DeleteSnapshotRequest.create = function create(properties) { + return new DeleteSnapshotRequest(properties); }; /** - * Encodes the specified ExportPolicy message. Does not implicitly {@link google.cloud.netapp.v1.ExportPolicy.verify|verify} messages. + * Encodes the specified DeleteSnapshotRequest message. Does not implicitly {@link google.cloud.netapp.v1.DeleteSnapshotRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.netapp.v1.ExportPolicy + * @memberof google.cloud.netapp.v1.DeleteSnapshotRequest * @static - * @param {google.cloud.netapp.v1.IExportPolicy} message ExportPolicy message or plain object to encode + * @param {google.cloud.netapp.v1.IDeleteSnapshotRequest} message DeleteSnapshotRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExportPolicy.encode = function encode(message, writer) { + DeleteSnapshotRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.rules != null && message.rules.length) - for (var i = 0; i < message.rules.length; ++i) - $root.google.cloud.netapp.v1.SimpleExportPolicyRule.encode(message.rules[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified ExportPolicy message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.ExportPolicy.verify|verify} messages. + * Encodes the specified DeleteSnapshotRequest message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.DeleteSnapshotRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.netapp.v1.ExportPolicy + * @memberof google.cloud.netapp.v1.DeleteSnapshotRequest * @static - * @param {google.cloud.netapp.v1.IExportPolicy} message ExportPolicy message or plain object to encode + * @param {google.cloud.netapp.v1.IDeleteSnapshotRequest} message DeleteSnapshotRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExportPolicy.encodeDelimited = function encodeDelimited(message, writer) { + DeleteSnapshotRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ExportPolicy message from the specified reader or buffer. + * Decodes a DeleteSnapshotRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.netapp.v1.ExportPolicy + * @memberof google.cloud.netapp.v1.DeleteSnapshotRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.netapp.v1.ExportPolicy} ExportPolicy + * @returns {google.cloud.netapp.v1.DeleteSnapshotRequest} DeleteSnapshotRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExportPolicy.decode = function decode(reader, length) { + DeleteSnapshotRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.netapp.v1.ExportPolicy(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.netapp.v1.DeleteSnapshotRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.rules && message.rules.length)) - message.rules = []; - message.rules.push($root.google.cloud.netapp.v1.SimpleExportPolicyRule.decode(reader, reader.uint32())); + message.name = reader.string(); break; } default: @@ -25209,149 +26941,123 @@ }; /** - * Decodes an ExportPolicy message from the specified reader or buffer, length delimited. + * Decodes a DeleteSnapshotRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.netapp.v1.ExportPolicy + * @memberof google.cloud.netapp.v1.DeleteSnapshotRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.netapp.v1.ExportPolicy} ExportPolicy + * @returns {google.cloud.netapp.v1.DeleteSnapshotRequest} DeleteSnapshotRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExportPolicy.decodeDelimited = function decodeDelimited(reader) { + DeleteSnapshotRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ExportPolicy message. + * Verifies a DeleteSnapshotRequest message. * @function verify - * @memberof google.cloud.netapp.v1.ExportPolicy + * @memberof google.cloud.netapp.v1.DeleteSnapshotRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ExportPolicy.verify = function verify(message) { + DeleteSnapshotRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.rules != null && message.hasOwnProperty("rules")) { - if (!Array.isArray(message.rules)) - return "rules: array expected"; - for (var i = 0; i < message.rules.length; ++i) { - var error = $root.google.cloud.netapp.v1.SimpleExportPolicyRule.verify(message.rules[i]); - if (error) - return "rules." + error; - } - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates an ExportPolicy message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteSnapshotRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.netapp.v1.ExportPolicy + * @memberof google.cloud.netapp.v1.DeleteSnapshotRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.netapp.v1.ExportPolicy} ExportPolicy + * @returns {google.cloud.netapp.v1.DeleteSnapshotRequest} DeleteSnapshotRequest */ - ExportPolicy.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.netapp.v1.ExportPolicy) + DeleteSnapshotRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.netapp.v1.DeleteSnapshotRequest) return object; - var message = new $root.google.cloud.netapp.v1.ExportPolicy(); - if (object.rules) { - if (!Array.isArray(object.rules)) - throw TypeError(".google.cloud.netapp.v1.ExportPolicy.rules: array expected"); - message.rules = []; - for (var i = 0; i < object.rules.length; ++i) { - if (typeof object.rules[i] !== "object") - throw TypeError(".google.cloud.netapp.v1.ExportPolicy.rules: object expected"); - message.rules[i] = $root.google.cloud.netapp.v1.SimpleExportPolicyRule.fromObject(object.rules[i]); - } - } + var message = new $root.google.cloud.netapp.v1.DeleteSnapshotRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from an ExportPolicy message. Also converts values to other types if specified. + * Creates a plain object from a DeleteSnapshotRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.netapp.v1.ExportPolicy + * @memberof google.cloud.netapp.v1.DeleteSnapshotRequest * @static - * @param {google.cloud.netapp.v1.ExportPolicy} message ExportPolicy + * @param {google.cloud.netapp.v1.DeleteSnapshotRequest} message DeleteSnapshotRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ExportPolicy.toObject = function toObject(message, options) { + DeleteSnapshotRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.rules = []; - if (message.rules && message.rules.length) { - object.rules = []; - for (var j = 0; j < message.rules.length; ++j) - object.rules[j] = $root.google.cloud.netapp.v1.SimpleExportPolicyRule.toObject(message.rules[j], options); - } + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this ExportPolicy to JSON. + * Converts this DeleteSnapshotRequest to JSON. * @function toJSON - * @memberof google.cloud.netapp.v1.ExportPolicy + * @memberof google.cloud.netapp.v1.DeleteSnapshotRequest * @instance * @returns {Object.} JSON object */ - ExportPolicy.prototype.toJSON = function toJSON() { + DeleteSnapshotRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ExportPolicy + * Gets the default type url for DeleteSnapshotRequest * @function getTypeUrl - * @memberof google.cloud.netapp.v1.ExportPolicy + * @memberof google.cloud.netapp.v1.DeleteSnapshotRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ExportPolicy.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + DeleteSnapshotRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.netapp.v1.ExportPolicy"; + return typeUrlPrefix + "/google.cloud.netapp.v1.DeleteSnapshotRequest"; }; - return ExportPolicy; + return DeleteSnapshotRequest; })(); - v1.SimpleExportPolicyRule = (function() { + v1.UpdateSnapshotRequest = (function() { /** - * Properties of a SimpleExportPolicyRule. + * Properties of an UpdateSnapshotRequest. * @memberof google.cloud.netapp.v1 - * @interface ISimpleExportPolicyRule - * @property {string|null} [allowedClients] SimpleExportPolicyRule allowedClients - * @property {string|null} [hasRootAccess] SimpleExportPolicyRule hasRootAccess - * @property {google.cloud.netapp.v1.AccessType|null} [accessType] SimpleExportPolicyRule accessType - * @property {boolean|null} [nfsv3] SimpleExportPolicyRule nfsv3 - * @property {boolean|null} [nfsv4] SimpleExportPolicyRule nfsv4 - * @property {boolean|null} [kerberos_5ReadOnly] SimpleExportPolicyRule kerberos_5ReadOnly - * @property {boolean|null} [kerberos_5ReadWrite] SimpleExportPolicyRule kerberos_5ReadWrite - * @property {boolean|null} [kerberos_5iReadOnly] SimpleExportPolicyRule kerberos_5iReadOnly - * @property {boolean|null} [kerberos_5iReadWrite] SimpleExportPolicyRule kerberos_5iReadWrite - * @property {boolean|null} [kerberos_5pReadOnly] SimpleExportPolicyRule kerberos_5pReadOnly - * @property {boolean|null} [kerberos_5pReadWrite] SimpleExportPolicyRule kerberos_5pReadWrite + * @interface IUpdateSnapshotRequest + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateSnapshotRequest updateMask + * @property {google.cloud.netapp.v1.ISnapshot|null} [snapshot] UpdateSnapshotRequest snapshot */ /** - * Constructs a new SimpleExportPolicyRule. + * Constructs a new UpdateSnapshotRequest. * @memberof google.cloud.netapp.v1 - * @classdesc Represents a SimpleExportPolicyRule. - * @implements ISimpleExportPolicyRule + * @classdesc Represents an UpdateSnapshotRequest. + * @implements IUpdateSnapshotRequest * @constructor - * @param {google.cloud.netapp.v1.ISimpleExportPolicyRule=} [properties] Properties to set + * @param {google.cloud.netapp.v1.IUpdateSnapshotRequest=} [properties] Properties to set */ - function SimpleExportPolicyRule(properties) { + function UpdateSnapshotRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -25359,339 +27065,89 @@ } /** - * SimpleExportPolicyRule allowedClients. - * @member {string|null|undefined} allowedClients - * @memberof google.cloud.netapp.v1.SimpleExportPolicyRule - * @instance - */ - SimpleExportPolicyRule.prototype.allowedClients = null; - - /** - * SimpleExportPolicyRule hasRootAccess. - * @member {string|null|undefined} hasRootAccess - * @memberof google.cloud.netapp.v1.SimpleExportPolicyRule - * @instance - */ - SimpleExportPolicyRule.prototype.hasRootAccess = null; - - /** - * SimpleExportPolicyRule accessType. - * @member {google.cloud.netapp.v1.AccessType|null|undefined} accessType - * @memberof google.cloud.netapp.v1.SimpleExportPolicyRule - * @instance - */ - SimpleExportPolicyRule.prototype.accessType = null; - - /** - * SimpleExportPolicyRule nfsv3. - * @member {boolean|null|undefined} nfsv3 - * @memberof google.cloud.netapp.v1.SimpleExportPolicyRule - * @instance - */ - SimpleExportPolicyRule.prototype.nfsv3 = null; - - /** - * SimpleExportPolicyRule nfsv4. - * @member {boolean|null|undefined} nfsv4 - * @memberof google.cloud.netapp.v1.SimpleExportPolicyRule - * @instance - */ - SimpleExportPolicyRule.prototype.nfsv4 = null; - - /** - * SimpleExportPolicyRule kerberos_5ReadOnly. - * @member {boolean|null|undefined} kerberos_5ReadOnly - * @memberof google.cloud.netapp.v1.SimpleExportPolicyRule - * @instance - */ - SimpleExportPolicyRule.prototype.kerberos_5ReadOnly = null; - - /** - * SimpleExportPolicyRule kerberos_5ReadWrite. - * @member {boolean|null|undefined} kerberos_5ReadWrite - * @memberof google.cloud.netapp.v1.SimpleExportPolicyRule - * @instance - */ - SimpleExportPolicyRule.prototype.kerberos_5ReadWrite = null; - - /** - * SimpleExportPolicyRule kerberos_5iReadOnly. - * @member {boolean|null|undefined} kerberos_5iReadOnly - * @memberof google.cloud.netapp.v1.SimpleExportPolicyRule - * @instance - */ - SimpleExportPolicyRule.prototype.kerberos_5iReadOnly = null; - - /** - * SimpleExportPolicyRule kerberos_5iReadWrite. - * @member {boolean|null|undefined} kerberos_5iReadWrite - * @memberof google.cloud.netapp.v1.SimpleExportPolicyRule - * @instance - */ - SimpleExportPolicyRule.prototype.kerberos_5iReadWrite = null; - - /** - * SimpleExportPolicyRule kerberos_5pReadOnly. - * @member {boolean|null|undefined} kerberos_5pReadOnly - * @memberof google.cloud.netapp.v1.SimpleExportPolicyRule - * @instance - */ - SimpleExportPolicyRule.prototype.kerberos_5pReadOnly = null; - - /** - * SimpleExportPolicyRule kerberos_5pReadWrite. - * @member {boolean|null|undefined} kerberos_5pReadWrite - * @memberof google.cloud.netapp.v1.SimpleExportPolicyRule - * @instance - */ - SimpleExportPolicyRule.prototype.kerberos_5pReadWrite = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * SimpleExportPolicyRule _allowedClients. - * @member {"allowedClients"|undefined} _allowedClients - * @memberof google.cloud.netapp.v1.SimpleExportPolicyRule - * @instance - */ - Object.defineProperty(SimpleExportPolicyRule.prototype, "_allowedClients", { - get: $util.oneOfGetter($oneOfFields = ["allowedClients"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * SimpleExportPolicyRule _hasRootAccess. - * @member {"hasRootAccess"|undefined} _hasRootAccess - * @memberof google.cloud.netapp.v1.SimpleExportPolicyRule - * @instance - */ - Object.defineProperty(SimpleExportPolicyRule.prototype, "_hasRootAccess", { - get: $util.oneOfGetter($oneOfFields = ["hasRootAccess"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * SimpleExportPolicyRule _accessType. - * @member {"accessType"|undefined} _accessType - * @memberof google.cloud.netapp.v1.SimpleExportPolicyRule - * @instance - */ - Object.defineProperty(SimpleExportPolicyRule.prototype, "_accessType", { - get: $util.oneOfGetter($oneOfFields = ["accessType"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * SimpleExportPolicyRule _nfsv3. - * @member {"nfsv3"|undefined} _nfsv3 - * @memberof google.cloud.netapp.v1.SimpleExportPolicyRule - * @instance - */ - Object.defineProperty(SimpleExportPolicyRule.prototype, "_nfsv3", { - get: $util.oneOfGetter($oneOfFields = ["nfsv3"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * SimpleExportPolicyRule _nfsv4. - * @member {"nfsv4"|undefined} _nfsv4 - * @memberof google.cloud.netapp.v1.SimpleExportPolicyRule - * @instance - */ - Object.defineProperty(SimpleExportPolicyRule.prototype, "_nfsv4", { - get: $util.oneOfGetter($oneOfFields = ["nfsv4"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * SimpleExportPolicyRule _kerberos_5ReadOnly. - * @member {"kerberos_5ReadOnly"|undefined} _kerberos_5ReadOnly - * @memberof google.cloud.netapp.v1.SimpleExportPolicyRule - * @instance - */ - Object.defineProperty(SimpleExportPolicyRule.prototype, "_kerberos_5ReadOnly", { - get: $util.oneOfGetter($oneOfFields = ["kerberos_5ReadOnly"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * SimpleExportPolicyRule _kerberos_5ReadWrite. - * @member {"kerberos_5ReadWrite"|undefined} _kerberos_5ReadWrite - * @memberof google.cloud.netapp.v1.SimpleExportPolicyRule - * @instance - */ - Object.defineProperty(SimpleExportPolicyRule.prototype, "_kerberos_5ReadWrite", { - get: $util.oneOfGetter($oneOfFields = ["kerberos_5ReadWrite"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * SimpleExportPolicyRule _kerberos_5iReadOnly. - * @member {"kerberos_5iReadOnly"|undefined} _kerberos_5iReadOnly - * @memberof google.cloud.netapp.v1.SimpleExportPolicyRule - * @instance - */ - Object.defineProperty(SimpleExportPolicyRule.prototype, "_kerberos_5iReadOnly", { - get: $util.oneOfGetter($oneOfFields = ["kerberos_5iReadOnly"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * SimpleExportPolicyRule _kerberos_5iReadWrite. - * @member {"kerberos_5iReadWrite"|undefined} _kerberos_5iReadWrite - * @memberof google.cloud.netapp.v1.SimpleExportPolicyRule - * @instance - */ - Object.defineProperty(SimpleExportPolicyRule.prototype, "_kerberos_5iReadWrite", { - get: $util.oneOfGetter($oneOfFields = ["kerberos_5iReadWrite"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * SimpleExportPolicyRule _kerberos_5pReadOnly. - * @member {"kerberos_5pReadOnly"|undefined} _kerberos_5pReadOnly - * @memberof google.cloud.netapp.v1.SimpleExportPolicyRule + * UpdateSnapshotRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.cloud.netapp.v1.UpdateSnapshotRequest * @instance */ - Object.defineProperty(SimpleExportPolicyRule.prototype, "_kerberos_5pReadOnly", { - get: $util.oneOfGetter($oneOfFields = ["kerberos_5pReadOnly"]), - set: $util.oneOfSetter($oneOfFields) - }); + UpdateSnapshotRequest.prototype.updateMask = null; /** - * SimpleExportPolicyRule _kerberos_5pReadWrite. - * @member {"kerberos_5pReadWrite"|undefined} _kerberos_5pReadWrite - * @memberof google.cloud.netapp.v1.SimpleExportPolicyRule + * UpdateSnapshotRequest snapshot. + * @member {google.cloud.netapp.v1.ISnapshot|null|undefined} snapshot + * @memberof google.cloud.netapp.v1.UpdateSnapshotRequest * @instance */ - Object.defineProperty(SimpleExportPolicyRule.prototype, "_kerberos_5pReadWrite", { - get: $util.oneOfGetter($oneOfFields = ["kerberos_5pReadWrite"]), - set: $util.oneOfSetter($oneOfFields) - }); + UpdateSnapshotRequest.prototype.snapshot = null; /** - * Creates a new SimpleExportPolicyRule instance using the specified properties. + * Creates a new UpdateSnapshotRequest instance using the specified properties. * @function create - * @memberof google.cloud.netapp.v1.SimpleExportPolicyRule + * @memberof google.cloud.netapp.v1.UpdateSnapshotRequest * @static - * @param {google.cloud.netapp.v1.ISimpleExportPolicyRule=} [properties] Properties to set - * @returns {google.cloud.netapp.v1.SimpleExportPolicyRule} SimpleExportPolicyRule instance + * @param {google.cloud.netapp.v1.IUpdateSnapshotRequest=} [properties] Properties to set + * @returns {google.cloud.netapp.v1.UpdateSnapshotRequest} UpdateSnapshotRequest instance */ - SimpleExportPolicyRule.create = function create(properties) { - return new SimpleExportPolicyRule(properties); + UpdateSnapshotRequest.create = function create(properties) { + return new UpdateSnapshotRequest(properties); }; /** - * Encodes the specified SimpleExportPolicyRule message. Does not implicitly {@link google.cloud.netapp.v1.SimpleExportPolicyRule.verify|verify} messages. + * Encodes the specified UpdateSnapshotRequest message. Does not implicitly {@link google.cloud.netapp.v1.UpdateSnapshotRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.netapp.v1.SimpleExportPolicyRule + * @memberof google.cloud.netapp.v1.UpdateSnapshotRequest * @static - * @param {google.cloud.netapp.v1.ISimpleExportPolicyRule} message SimpleExportPolicyRule message or plain object to encode + * @param {google.cloud.netapp.v1.IUpdateSnapshotRequest} message UpdateSnapshotRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SimpleExportPolicyRule.encode = function encode(message, writer) { + UpdateSnapshotRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.allowedClients != null && Object.hasOwnProperty.call(message, "allowedClients")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.allowedClients); - if (message.hasRootAccess != null && Object.hasOwnProperty.call(message, "hasRootAccess")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.hasRootAccess); - if (message.accessType != null && Object.hasOwnProperty.call(message, "accessType")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.accessType); - if (message.nfsv3 != null && Object.hasOwnProperty.call(message, "nfsv3")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.nfsv3); - if (message.nfsv4 != null && Object.hasOwnProperty.call(message, "nfsv4")) - writer.uint32(/* id 5, wireType 0 =*/40).bool(message.nfsv4); - if (message.kerberos_5ReadOnly != null && Object.hasOwnProperty.call(message, "kerberos_5ReadOnly")) - writer.uint32(/* id 6, wireType 0 =*/48).bool(message.kerberos_5ReadOnly); - if (message.kerberos_5ReadWrite != null && Object.hasOwnProperty.call(message, "kerberos_5ReadWrite")) - writer.uint32(/* id 7, wireType 0 =*/56).bool(message.kerberos_5ReadWrite); - if (message.kerberos_5iReadOnly != null && Object.hasOwnProperty.call(message, "kerberos_5iReadOnly")) - writer.uint32(/* id 8, wireType 0 =*/64).bool(message.kerberos_5iReadOnly); - if (message.kerberos_5iReadWrite != null && Object.hasOwnProperty.call(message, "kerberos_5iReadWrite")) - writer.uint32(/* id 9, wireType 0 =*/72).bool(message.kerberos_5iReadWrite); - if (message.kerberos_5pReadOnly != null && Object.hasOwnProperty.call(message, "kerberos_5pReadOnly")) - writer.uint32(/* id 10, wireType 0 =*/80).bool(message.kerberos_5pReadOnly); - if (message.kerberos_5pReadWrite != null && Object.hasOwnProperty.call(message, "kerberos_5pReadWrite")) - writer.uint32(/* id 11, wireType 0 =*/88).bool(message.kerberos_5pReadWrite); + if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) + $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.snapshot != null && Object.hasOwnProperty.call(message, "snapshot")) + $root.google.cloud.netapp.v1.Snapshot.encode(message.snapshot, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified SimpleExportPolicyRule message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.SimpleExportPolicyRule.verify|verify} messages. + * Encodes the specified UpdateSnapshotRequest message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.UpdateSnapshotRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.netapp.v1.SimpleExportPolicyRule + * @memberof google.cloud.netapp.v1.UpdateSnapshotRequest * @static - * @param {google.cloud.netapp.v1.ISimpleExportPolicyRule} message SimpleExportPolicyRule message or plain object to encode + * @param {google.cloud.netapp.v1.IUpdateSnapshotRequest} message UpdateSnapshotRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SimpleExportPolicyRule.encodeDelimited = function encodeDelimited(message, writer) { + UpdateSnapshotRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SimpleExportPolicyRule message from the specified reader or buffer. + * Decodes an UpdateSnapshotRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.netapp.v1.SimpleExportPolicyRule + * @memberof google.cloud.netapp.v1.UpdateSnapshotRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.netapp.v1.SimpleExportPolicyRule} SimpleExportPolicyRule + * @returns {google.cloud.netapp.v1.UpdateSnapshotRequest} UpdateSnapshotRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SimpleExportPolicyRule.decode = function decode(reader, length) { + UpdateSnapshotRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.netapp.v1.SimpleExportPolicyRule(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.netapp.v1.UpdateSnapshotRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.allowedClients = reader.string(); + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; } case 2: { - message.hasRootAccess = reader.string(); - break; - } - case 3: { - message.accessType = reader.int32(); - break; - } - case 4: { - message.nfsv3 = reader.bool(); - break; - } - case 5: { - message.nfsv4 = reader.bool(); - break; - } - case 6: { - message.kerberos_5ReadOnly = reader.bool(); - break; - } - case 7: { - message.kerberos_5ReadWrite = reader.bool(); - break; - } - case 8: { - message.kerberos_5iReadOnly = reader.bool(); - break; - } - case 9: { - message.kerberos_5iReadWrite = reader.bool(); - break; - } - case 10: { - message.kerberos_5pReadOnly = reader.bool(); - break; - } - case 11: { - message.kerberos_5pReadWrite = reader.bool(); + message.snapshot = $root.google.cloud.netapp.v1.Snapshot.decode(reader, reader.uint32()); break; } default: @@ -25703,279 +27159,148 @@ }; /** - * Decodes a SimpleExportPolicyRule message from the specified reader or buffer, length delimited. + * Decodes an UpdateSnapshotRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.netapp.v1.SimpleExportPolicyRule + * @memberof google.cloud.netapp.v1.UpdateSnapshotRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.netapp.v1.SimpleExportPolicyRule} SimpleExportPolicyRule + * @returns {google.cloud.netapp.v1.UpdateSnapshotRequest} UpdateSnapshotRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SimpleExportPolicyRule.decodeDelimited = function decodeDelimited(reader) { + UpdateSnapshotRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SimpleExportPolicyRule message. + * Verifies an UpdateSnapshotRequest message. * @function verify - * @memberof google.cloud.netapp.v1.SimpleExportPolicyRule + * @memberof google.cloud.netapp.v1.UpdateSnapshotRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SimpleExportPolicyRule.verify = function verify(message) { + UpdateSnapshotRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.allowedClients != null && message.hasOwnProperty("allowedClients")) { - properties._allowedClients = 1; - if (!$util.isString(message.allowedClients)) - return "allowedClients: string expected"; - } - if (message.hasRootAccess != null && message.hasOwnProperty("hasRootAccess")) { - properties._hasRootAccess = 1; - if (!$util.isString(message.hasRootAccess)) - return "hasRootAccess: string expected"; - } - if (message.accessType != null && message.hasOwnProperty("accessType")) { - properties._accessType = 1; - switch (message.accessType) { - default: - return "accessType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; - } - } - if (message.nfsv3 != null && message.hasOwnProperty("nfsv3")) { - properties._nfsv3 = 1; - if (typeof message.nfsv3 !== "boolean") - return "nfsv3: boolean expected"; - } - if (message.nfsv4 != null && message.hasOwnProperty("nfsv4")) { - properties._nfsv4 = 1; - if (typeof message.nfsv4 !== "boolean") - return "nfsv4: boolean expected"; - } - if (message.kerberos_5ReadOnly != null && message.hasOwnProperty("kerberos_5ReadOnly")) { - properties._kerberos_5ReadOnly = 1; - if (typeof message.kerberos_5ReadOnly !== "boolean") - return "kerberos_5ReadOnly: boolean expected"; - } - if (message.kerberos_5ReadWrite != null && message.hasOwnProperty("kerberos_5ReadWrite")) { - properties._kerberos_5ReadWrite = 1; - if (typeof message.kerberos_5ReadWrite !== "boolean") - return "kerberos_5ReadWrite: boolean expected"; - } - if (message.kerberos_5iReadOnly != null && message.hasOwnProperty("kerberos_5iReadOnly")) { - properties._kerberos_5iReadOnly = 1; - if (typeof message.kerberos_5iReadOnly !== "boolean") - return "kerberos_5iReadOnly: boolean expected"; - } - if (message.kerberos_5iReadWrite != null && message.hasOwnProperty("kerberos_5iReadWrite")) { - properties._kerberos_5iReadWrite = 1; - if (typeof message.kerberos_5iReadWrite !== "boolean") - return "kerberos_5iReadWrite: boolean expected"; - } - if (message.kerberos_5pReadOnly != null && message.hasOwnProperty("kerberos_5pReadOnly")) { - properties._kerberos_5pReadOnly = 1; - if (typeof message.kerberos_5pReadOnly !== "boolean") - return "kerberos_5pReadOnly: boolean expected"; + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.updateMask); + if (error) + return "updateMask." + error; } - if (message.kerberos_5pReadWrite != null && message.hasOwnProperty("kerberos_5pReadWrite")) { - properties._kerberos_5pReadWrite = 1; - if (typeof message.kerberos_5pReadWrite !== "boolean") - return "kerberos_5pReadWrite: boolean expected"; + if (message.snapshot != null && message.hasOwnProperty("snapshot")) { + var error = $root.google.cloud.netapp.v1.Snapshot.verify(message.snapshot); + if (error) + return "snapshot." + error; } return null; }; /** - * Creates a SimpleExportPolicyRule message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateSnapshotRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.netapp.v1.SimpleExportPolicyRule + * @memberof google.cloud.netapp.v1.UpdateSnapshotRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.netapp.v1.SimpleExportPolicyRule} SimpleExportPolicyRule + * @returns {google.cloud.netapp.v1.UpdateSnapshotRequest} UpdateSnapshotRequest */ - SimpleExportPolicyRule.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.netapp.v1.SimpleExportPolicyRule) + UpdateSnapshotRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.netapp.v1.UpdateSnapshotRequest) return object; - var message = new $root.google.cloud.netapp.v1.SimpleExportPolicyRule(); - if (object.allowedClients != null) - message.allowedClients = String(object.allowedClients); - if (object.hasRootAccess != null) - message.hasRootAccess = String(object.hasRootAccess); - switch (object.accessType) { - default: - if (typeof object.accessType === "number") { - message.accessType = object.accessType; - break; - } - break; - case "ACCESS_TYPE_UNSPECIFIED": - case 0: - message.accessType = 0; - break; - case "READ_ONLY": - case 1: - message.accessType = 1; - break; - case "READ_WRITE": - case 2: - message.accessType = 2; - break; - case "READ_NONE": - case 3: - message.accessType = 3; - break; + var message = new $root.google.cloud.netapp.v1.UpdateSnapshotRequest(); + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.cloud.netapp.v1.UpdateSnapshotRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + } + if (object.snapshot != null) { + if (typeof object.snapshot !== "object") + throw TypeError(".google.cloud.netapp.v1.UpdateSnapshotRequest.snapshot: object expected"); + message.snapshot = $root.google.cloud.netapp.v1.Snapshot.fromObject(object.snapshot); } - if (object.nfsv3 != null) - message.nfsv3 = Boolean(object.nfsv3); - if (object.nfsv4 != null) - message.nfsv4 = Boolean(object.nfsv4); - if (object.kerberos_5ReadOnly != null) - message.kerberos_5ReadOnly = Boolean(object.kerberos_5ReadOnly); - if (object.kerberos_5ReadWrite != null) - message.kerberos_5ReadWrite = Boolean(object.kerberos_5ReadWrite); - if (object.kerberos_5iReadOnly != null) - message.kerberos_5iReadOnly = Boolean(object.kerberos_5iReadOnly); - if (object.kerberos_5iReadWrite != null) - message.kerberos_5iReadWrite = Boolean(object.kerberos_5iReadWrite); - if (object.kerberos_5pReadOnly != null) - message.kerberos_5pReadOnly = Boolean(object.kerberos_5pReadOnly); - if (object.kerberos_5pReadWrite != null) - message.kerberos_5pReadWrite = Boolean(object.kerberos_5pReadWrite); return message; }; /** - * Creates a plain object from a SimpleExportPolicyRule message. Also converts values to other types if specified. + * Creates a plain object from an UpdateSnapshotRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.netapp.v1.SimpleExportPolicyRule + * @memberof google.cloud.netapp.v1.UpdateSnapshotRequest * @static - * @param {google.cloud.netapp.v1.SimpleExportPolicyRule} message SimpleExportPolicyRule + * @param {google.cloud.netapp.v1.UpdateSnapshotRequest} message UpdateSnapshotRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SimpleExportPolicyRule.toObject = function toObject(message, options) { + UpdateSnapshotRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (message.allowedClients != null && message.hasOwnProperty("allowedClients")) { - object.allowedClients = message.allowedClients; - if (options.oneofs) - object._allowedClients = "allowedClients"; - } - if (message.hasRootAccess != null && message.hasOwnProperty("hasRootAccess")) { - object.hasRootAccess = message.hasRootAccess; - if (options.oneofs) - object._hasRootAccess = "hasRootAccess"; - } - if (message.accessType != null && message.hasOwnProperty("accessType")) { - object.accessType = options.enums === String ? $root.google.cloud.netapp.v1.AccessType[message.accessType] === undefined ? message.accessType : $root.google.cloud.netapp.v1.AccessType[message.accessType] : message.accessType; - if (options.oneofs) - object._accessType = "accessType"; - } - if (message.nfsv3 != null && message.hasOwnProperty("nfsv3")) { - object.nfsv3 = message.nfsv3; - if (options.oneofs) - object._nfsv3 = "nfsv3"; - } - if (message.nfsv4 != null && message.hasOwnProperty("nfsv4")) { - object.nfsv4 = message.nfsv4; - if (options.oneofs) - object._nfsv4 = "nfsv4"; - } - if (message.kerberos_5ReadOnly != null && message.hasOwnProperty("kerberos_5ReadOnly")) { - object.kerberos_5ReadOnly = message.kerberos_5ReadOnly; - if (options.oneofs) - object._kerberos_5ReadOnly = "kerberos_5ReadOnly"; - } - if (message.kerberos_5ReadWrite != null && message.hasOwnProperty("kerberos_5ReadWrite")) { - object.kerberos_5ReadWrite = message.kerberos_5ReadWrite; - if (options.oneofs) - object._kerberos_5ReadWrite = "kerberos_5ReadWrite"; - } - if (message.kerberos_5iReadOnly != null && message.hasOwnProperty("kerberos_5iReadOnly")) { - object.kerberos_5iReadOnly = message.kerberos_5iReadOnly; - if (options.oneofs) - object._kerberos_5iReadOnly = "kerberos_5iReadOnly"; - } - if (message.kerberos_5iReadWrite != null && message.hasOwnProperty("kerberos_5iReadWrite")) { - object.kerberos_5iReadWrite = message.kerberos_5iReadWrite; - if (options.oneofs) - object._kerberos_5iReadWrite = "kerberos_5iReadWrite"; - } - if (message.kerberos_5pReadOnly != null && message.hasOwnProperty("kerberos_5pReadOnly")) { - object.kerberos_5pReadOnly = message.kerberos_5pReadOnly; - if (options.oneofs) - object._kerberos_5pReadOnly = "kerberos_5pReadOnly"; - } - if (message.kerberos_5pReadWrite != null && message.hasOwnProperty("kerberos_5pReadWrite")) { - object.kerberos_5pReadWrite = message.kerberos_5pReadWrite; - if (options.oneofs) - object._kerberos_5pReadWrite = "kerberos_5pReadWrite"; + if (options.defaults) { + object.updateMask = null; + object.snapshot = null; } + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + if (message.snapshot != null && message.hasOwnProperty("snapshot")) + object.snapshot = $root.google.cloud.netapp.v1.Snapshot.toObject(message.snapshot, options); return object; }; /** - * Converts this SimpleExportPolicyRule to JSON. + * Converts this UpdateSnapshotRequest to JSON. * @function toJSON - * @memberof google.cloud.netapp.v1.SimpleExportPolicyRule + * @memberof google.cloud.netapp.v1.UpdateSnapshotRequest * @instance * @returns {Object.} JSON object */ - SimpleExportPolicyRule.prototype.toJSON = function toJSON() { + UpdateSnapshotRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for SimpleExportPolicyRule + * Gets the default type url for UpdateSnapshotRequest * @function getTypeUrl - * @memberof google.cloud.netapp.v1.SimpleExportPolicyRule + * @memberof google.cloud.netapp.v1.UpdateSnapshotRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - SimpleExportPolicyRule.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + UpdateSnapshotRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.netapp.v1.SimpleExportPolicyRule"; + return typeUrlPrefix + "/google.cloud.netapp.v1.UpdateSnapshotRequest"; }; - return SimpleExportPolicyRule; + return UpdateSnapshotRequest; })(); - v1.SnapshotPolicy = (function() { + v1.Snapshot = (function() { /** - * Properties of a SnapshotPolicy. + * Properties of a Snapshot. * @memberof google.cloud.netapp.v1 - * @interface ISnapshotPolicy - * @property {boolean|null} [enabled] SnapshotPolicy enabled - * @property {google.cloud.netapp.v1.IHourlySchedule|null} [hourlySchedule] SnapshotPolicy hourlySchedule - * @property {google.cloud.netapp.v1.IDailySchedule|null} [dailySchedule] SnapshotPolicy dailySchedule - * @property {google.cloud.netapp.v1.IWeeklySchedule|null} [weeklySchedule] SnapshotPolicy weeklySchedule - * @property {google.cloud.netapp.v1.IMonthlySchedule|null} [monthlySchedule] SnapshotPolicy monthlySchedule + * @interface ISnapshot + * @property {string|null} [name] Snapshot name + * @property {google.cloud.netapp.v1.Snapshot.State|null} [state] Snapshot state + * @property {string|null} [stateDetails] Snapshot stateDetails + * @property {string|null} [description] Snapshot description + * @property {number|null} [usedBytes] Snapshot usedBytes + * @property {google.protobuf.ITimestamp|null} [createTime] Snapshot createTime + * @property {Object.|null} [labels] Snapshot labels */ /** - * Constructs a new SnapshotPolicy. + * Constructs a new Snapshot. * @memberof google.cloud.netapp.v1 - * @classdesc Represents a SnapshotPolicy. - * @implements ISnapshotPolicy + * @classdesc Represents a Snapshot. + * @implements ISnapshot * @constructor - * @param {google.cloud.netapp.v1.ISnapshotPolicy=} [properties] Properties to set + * @param {google.cloud.netapp.v1.ISnapshot=} [properties] Properties to set */ - function SnapshotPolicy(properties) { + function Snapshot(properties) { + this.labels = {}; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -25983,189 +27308,179 @@ } /** - * SnapshotPolicy enabled. - * @member {boolean|null|undefined} enabled - * @memberof google.cloud.netapp.v1.SnapshotPolicy - * @instance - */ - SnapshotPolicy.prototype.enabled = null; - - /** - * SnapshotPolicy hourlySchedule. - * @member {google.cloud.netapp.v1.IHourlySchedule|null|undefined} hourlySchedule - * @memberof google.cloud.netapp.v1.SnapshotPolicy - * @instance - */ - SnapshotPolicy.prototype.hourlySchedule = null; - - /** - * SnapshotPolicy dailySchedule. - * @member {google.cloud.netapp.v1.IDailySchedule|null|undefined} dailySchedule - * @memberof google.cloud.netapp.v1.SnapshotPolicy - * @instance - */ - SnapshotPolicy.prototype.dailySchedule = null; - - /** - * SnapshotPolicy weeklySchedule. - * @member {google.cloud.netapp.v1.IWeeklySchedule|null|undefined} weeklySchedule - * @memberof google.cloud.netapp.v1.SnapshotPolicy + * Snapshot name. + * @member {string} name + * @memberof google.cloud.netapp.v1.Snapshot * @instance */ - SnapshotPolicy.prototype.weeklySchedule = null; + Snapshot.prototype.name = ""; /** - * SnapshotPolicy monthlySchedule. - * @member {google.cloud.netapp.v1.IMonthlySchedule|null|undefined} monthlySchedule - * @memberof google.cloud.netapp.v1.SnapshotPolicy + * Snapshot state. + * @member {google.cloud.netapp.v1.Snapshot.State} state + * @memberof google.cloud.netapp.v1.Snapshot * @instance */ - SnapshotPolicy.prototype.monthlySchedule = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + Snapshot.prototype.state = 0; /** - * SnapshotPolicy _enabled. - * @member {"enabled"|undefined} _enabled - * @memberof google.cloud.netapp.v1.SnapshotPolicy + * Snapshot stateDetails. + * @member {string} stateDetails + * @memberof google.cloud.netapp.v1.Snapshot * @instance */ - Object.defineProperty(SnapshotPolicy.prototype, "_enabled", { - get: $util.oneOfGetter($oneOfFields = ["enabled"]), - set: $util.oneOfSetter($oneOfFields) - }); + Snapshot.prototype.stateDetails = ""; /** - * SnapshotPolicy _hourlySchedule. - * @member {"hourlySchedule"|undefined} _hourlySchedule - * @memberof google.cloud.netapp.v1.SnapshotPolicy + * Snapshot description. + * @member {string} description + * @memberof google.cloud.netapp.v1.Snapshot * @instance */ - Object.defineProperty(SnapshotPolicy.prototype, "_hourlySchedule", { - get: $util.oneOfGetter($oneOfFields = ["hourlySchedule"]), - set: $util.oneOfSetter($oneOfFields) - }); + Snapshot.prototype.description = ""; /** - * SnapshotPolicy _dailySchedule. - * @member {"dailySchedule"|undefined} _dailySchedule - * @memberof google.cloud.netapp.v1.SnapshotPolicy + * Snapshot usedBytes. + * @member {number} usedBytes + * @memberof google.cloud.netapp.v1.Snapshot * @instance */ - Object.defineProperty(SnapshotPolicy.prototype, "_dailySchedule", { - get: $util.oneOfGetter($oneOfFields = ["dailySchedule"]), - set: $util.oneOfSetter($oneOfFields) - }); + Snapshot.prototype.usedBytes = 0; /** - * SnapshotPolicy _weeklySchedule. - * @member {"weeklySchedule"|undefined} _weeklySchedule - * @memberof google.cloud.netapp.v1.SnapshotPolicy + * Snapshot createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.cloud.netapp.v1.Snapshot * @instance */ - Object.defineProperty(SnapshotPolicy.prototype, "_weeklySchedule", { - get: $util.oneOfGetter($oneOfFields = ["weeklySchedule"]), - set: $util.oneOfSetter($oneOfFields) - }); + Snapshot.prototype.createTime = null; /** - * SnapshotPolicy _monthlySchedule. - * @member {"monthlySchedule"|undefined} _monthlySchedule - * @memberof google.cloud.netapp.v1.SnapshotPolicy + * Snapshot labels. + * @member {Object.} labels + * @memberof google.cloud.netapp.v1.Snapshot * @instance */ - Object.defineProperty(SnapshotPolicy.prototype, "_monthlySchedule", { - get: $util.oneOfGetter($oneOfFields = ["monthlySchedule"]), - set: $util.oneOfSetter($oneOfFields) - }); + Snapshot.prototype.labels = $util.emptyObject; /** - * Creates a new SnapshotPolicy instance using the specified properties. + * Creates a new Snapshot instance using the specified properties. * @function create - * @memberof google.cloud.netapp.v1.SnapshotPolicy + * @memberof google.cloud.netapp.v1.Snapshot * @static - * @param {google.cloud.netapp.v1.ISnapshotPolicy=} [properties] Properties to set - * @returns {google.cloud.netapp.v1.SnapshotPolicy} SnapshotPolicy instance + * @param {google.cloud.netapp.v1.ISnapshot=} [properties] Properties to set + * @returns {google.cloud.netapp.v1.Snapshot} Snapshot instance */ - SnapshotPolicy.create = function create(properties) { - return new SnapshotPolicy(properties); + Snapshot.create = function create(properties) { + return new Snapshot(properties); }; /** - * Encodes the specified SnapshotPolicy message. Does not implicitly {@link google.cloud.netapp.v1.SnapshotPolicy.verify|verify} messages. + * Encodes the specified Snapshot message. Does not implicitly {@link google.cloud.netapp.v1.Snapshot.verify|verify} messages. * @function encode - * @memberof google.cloud.netapp.v1.SnapshotPolicy + * @memberof google.cloud.netapp.v1.Snapshot * @static - * @param {google.cloud.netapp.v1.ISnapshotPolicy} message SnapshotPolicy message or plain object to encode + * @param {google.cloud.netapp.v1.ISnapshot} message Snapshot message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SnapshotPolicy.encode = function encode(message, writer) { + Snapshot.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.enabled != null && Object.hasOwnProperty.call(message, "enabled")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enabled); - if (message.hourlySchedule != null && Object.hasOwnProperty.call(message, "hourlySchedule")) - $root.google.cloud.netapp.v1.HourlySchedule.encode(message.hourlySchedule, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.dailySchedule != null && Object.hasOwnProperty.call(message, "dailySchedule")) - $root.google.cloud.netapp.v1.DailySchedule.encode(message.dailySchedule, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.weeklySchedule != null && Object.hasOwnProperty.call(message, "weeklySchedule")) - $root.google.cloud.netapp.v1.WeeklySchedule.encode(message.weeklySchedule, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.monthlySchedule != null && Object.hasOwnProperty.call(message, "monthlySchedule")) - $root.google.cloud.netapp.v1.MonthlySchedule.encode(message.monthlySchedule, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.state != null && Object.hasOwnProperty.call(message, "state")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.state); + if (message.stateDetails != null && Object.hasOwnProperty.call(message, "stateDetails")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.stateDetails); + if (message.description != null && Object.hasOwnProperty.call(message, "description")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.description); + if (message.usedBytes != null && Object.hasOwnProperty.call(message, "usedBytes")) + writer.uint32(/* id 5, wireType 1 =*/41).double(message.usedBytes); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.labels != null && Object.hasOwnProperty.call(message, "labels")) + for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i) + writer.uint32(/* id 7, wireType 2 =*/58).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); return writer; }; /** - * Encodes the specified SnapshotPolicy message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.SnapshotPolicy.verify|verify} messages. + * Encodes the specified Snapshot message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.Snapshot.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.netapp.v1.SnapshotPolicy + * @memberof google.cloud.netapp.v1.Snapshot * @static - * @param {google.cloud.netapp.v1.ISnapshotPolicy} message SnapshotPolicy message or plain object to encode + * @param {google.cloud.netapp.v1.ISnapshot} message Snapshot message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SnapshotPolicy.encodeDelimited = function encodeDelimited(message, writer) { + Snapshot.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SnapshotPolicy message from the specified reader or buffer. + * Decodes a Snapshot message from the specified reader or buffer. * @function decode - * @memberof google.cloud.netapp.v1.SnapshotPolicy + * @memberof google.cloud.netapp.v1.Snapshot * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.netapp.v1.SnapshotPolicy} SnapshotPolicy + * @returns {google.cloud.netapp.v1.Snapshot} Snapshot * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SnapshotPolicy.decode = function decode(reader, length) { + Snapshot.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.netapp.v1.SnapshotPolicy(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.netapp.v1.Snapshot(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.enabled = reader.bool(); + message.name = reader.string(); break; } case 2: { - message.hourlySchedule = $root.google.cloud.netapp.v1.HourlySchedule.decode(reader, reader.uint32()); + message.state = reader.int32(); break; } case 3: { - message.dailySchedule = $root.google.cloud.netapp.v1.DailySchedule.decode(reader, reader.uint32()); + message.stateDetails = reader.string(); break; } case 4: { - message.weeklySchedule = $root.google.cloud.netapp.v1.WeeklySchedule.decode(reader, reader.uint32()); + message.description = reader.string(); break; } case 5: { - message.monthlySchedule = $root.google.cloud.netapp.v1.MonthlySchedule.decode(reader, reader.uint32()); + message.usedBytes = reader.double(); + break; + } + case 6: { + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 7: { + if (message.labels === $util.emptyObject) + message.labels = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.labels[key] = value; break; } default: @@ -26177,199 +27492,259 @@ }; /** - * Decodes a SnapshotPolicy message from the specified reader or buffer, length delimited. + * Decodes a Snapshot message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.netapp.v1.SnapshotPolicy + * @memberof google.cloud.netapp.v1.Snapshot * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.netapp.v1.SnapshotPolicy} SnapshotPolicy + * @returns {google.cloud.netapp.v1.Snapshot} Snapshot * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SnapshotPolicy.decodeDelimited = function decodeDelimited(reader) { + Snapshot.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SnapshotPolicy message. + * Verifies a Snapshot message. * @function verify - * @memberof google.cloud.netapp.v1.SnapshotPolicy + * @memberof google.cloud.netapp.v1.Snapshot * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SnapshotPolicy.verify = function verify(message) { + Snapshot.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.enabled != null && message.hasOwnProperty("enabled")) { - properties._enabled = 1; - if (typeof message.enabled !== "boolean") - return "enabled: boolean expected"; - } - if (message.hourlySchedule != null && message.hasOwnProperty("hourlySchedule")) { - properties._hourlySchedule = 1; - { - var error = $root.google.cloud.netapp.v1.HourlySchedule.verify(message.hourlySchedule); - if (error) - return "hourlySchedule." + error; - } - } - if (message.dailySchedule != null && message.hasOwnProperty("dailySchedule")) { - properties._dailySchedule = 1; - { - var error = $root.google.cloud.netapp.v1.DailySchedule.verify(message.dailySchedule); - if (error) - return "dailySchedule." + error; - } - } - if (message.weeklySchedule != null && message.hasOwnProperty("weeklySchedule")) { - properties._weeklySchedule = 1; - { - var error = $root.google.cloud.netapp.v1.WeeklySchedule.verify(message.weeklySchedule); - if (error) - return "weeklySchedule." + error; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.state != null && message.hasOwnProperty("state")) + switch (message.state) { + default: + return "state: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + break; } + if (message.stateDetails != null && message.hasOwnProperty("stateDetails")) + if (!$util.isString(message.stateDetails)) + return "stateDetails: string expected"; + if (message.description != null && message.hasOwnProperty("description")) + if (!$util.isString(message.description)) + return "description: string expected"; + if (message.usedBytes != null && message.hasOwnProperty("usedBytes")) + if (typeof message.usedBytes !== "number") + return "usedBytes: number expected"; + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; } - if (message.monthlySchedule != null && message.hasOwnProperty("monthlySchedule")) { - properties._monthlySchedule = 1; - { - var error = $root.google.cloud.netapp.v1.MonthlySchedule.verify(message.monthlySchedule); - if (error) - return "monthlySchedule." + error; - } + if (message.labels != null && message.hasOwnProperty("labels")) { + if (!$util.isObject(message.labels)) + return "labels: object expected"; + var key = Object.keys(message.labels); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.labels[key[i]])) + return "labels: string{k:string} expected"; } return null; }; /** - * Creates a SnapshotPolicy message from a plain object. Also converts values to their respective internal types. + * Creates a Snapshot message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.netapp.v1.SnapshotPolicy + * @memberof google.cloud.netapp.v1.Snapshot * @static * @param {Object.} object Plain object - * @returns {google.cloud.netapp.v1.SnapshotPolicy} SnapshotPolicy + * @returns {google.cloud.netapp.v1.Snapshot} Snapshot */ - SnapshotPolicy.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.netapp.v1.SnapshotPolicy) + Snapshot.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.netapp.v1.Snapshot) return object; - var message = new $root.google.cloud.netapp.v1.SnapshotPolicy(); - if (object.enabled != null) - message.enabled = Boolean(object.enabled); - if (object.hourlySchedule != null) { - if (typeof object.hourlySchedule !== "object") - throw TypeError(".google.cloud.netapp.v1.SnapshotPolicy.hourlySchedule: object expected"); - message.hourlySchedule = $root.google.cloud.netapp.v1.HourlySchedule.fromObject(object.hourlySchedule); - } - if (object.dailySchedule != null) { - if (typeof object.dailySchedule !== "object") - throw TypeError(".google.cloud.netapp.v1.SnapshotPolicy.dailySchedule: object expected"); - message.dailySchedule = $root.google.cloud.netapp.v1.DailySchedule.fromObject(object.dailySchedule); + var message = new $root.google.cloud.netapp.v1.Snapshot(); + if (object.name != null) + message.name = String(object.name); + switch (object.state) { + default: + if (typeof object.state === "number") { + message.state = object.state; + break; + } + break; + case "STATE_UNSPECIFIED": + case 0: + message.state = 0; + break; + case "READY": + case 1: + message.state = 1; + break; + case "CREATING": + case 2: + message.state = 2; + break; + case "DELETING": + case 3: + message.state = 3; + break; + case "UPDATING": + case 4: + message.state = 4; + break; + case "DISABLED": + case 5: + message.state = 5; + break; + case "ERROR": + case 6: + message.state = 6; + break; } - if (object.weeklySchedule != null) { - if (typeof object.weeklySchedule !== "object") - throw TypeError(".google.cloud.netapp.v1.SnapshotPolicy.weeklySchedule: object expected"); - message.weeklySchedule = $root.google.cloud.netapp.v1.WeeklySchedule.fromObject(object.weeklySchedule); + if (object.stateDetails != null) + message.stateDetails = String(object.stateDetails); + if (object.description != null) + message.description = String(object.description); + if (object.usedBytes != null) + message.usedBytes = Number(object.usedBytes); + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.cloud.netapp.v1.Snapshot.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); } - if (object.monthlySchedule != null) { - if (typeof object.monthlySchedule !== "object") - throw TypeError(".google.cloud.netapp.v1.SnapshotPolicy.monthlySchedule: object expected"); - message.monthlySchedule = $root.google.cloud.netapp.v1.MonthlySchedule.fromObject(object.monthlySchedule); + if (object.labels) { + if (typeof object.labels !== "object") + throw TypeError(".google.cloud.netapp.v1.Snapshot.labels: object expected"); + message.labels = {}; + for (var keys = Object.keys(object.labels), i = 0; i < keys.length; ++i) + message.labels[keys[i]] = String(object.labels[keys[i]]); } return message; }; /** - * Creates a plain object from a SnapshotPolicy message. Also converts values to other types if specified. + * Creates a plain object from a Snapshot message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.netapp.v1.SnapshotPolicy + * @memberof google.cloud.netapp.v1.Snapshot * @static - * @param {google.cloud.netapp.v1.SnapshotPolicy} message SnapshotPolicy + * @param {google.cloud.netapp.v1.Snapshot} message Snapshot * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SnapshotPolicy.toObject = function toObject(message, options) { + Snapshot.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (message.enabled != null && message.hasOwnProperty("enabled")) { - object.enabled = message.enabled; - if (options.oneofs) - object._enabled = "enabled"; - } - if (message.hourlySchedule != null && message.hasOwnProperty("hourlySchedule")) { - object.hourlySchedule = $root.google.cloud.netapp.v1.HourlySchedule.toObject(message.hourlySchedule, options); - if (options.oneofs) - object._hourlySchedule = "hourlySchedule"; - } - if (message.dailySchedule != null && message.hasOwnProperty("dailySchedule")) { - object.dailySchedule = $root.google.cloud.netapp.v1.DailySchedule.toObject(message.dailySchedule, options); - if (options.oneofs) - object._dailySchedule = "dailySchedule"; - } - if (message.weeklySchedule != null && message.hasOwnProperty("weeklySchedule")) { - object.weeklySchedule = $root.google.cloud.netapp.v1.WeeklySchedule.toObject(message.weeklySchedule, options); - if (options.oneofs) - object._weeklySchedule = "weeklySchedule"; + if (options.objects || options.defaults) + object.labels = {}; + if (options.defaults) { + object.name = ""; + object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; + object.stateDetails = ""; + object.description = ""; + object.usedBytes = 0; + object.createTime = null; } - if (message.monthlySchedule != null && message.hasOwnProperty("monthlySchedule")) { - object.monthlySchedule = $root.google.cloud.netapp.v1.MonthlySchedule.toObject(message.monthlySchedule, options); - if (options.oneofs) - object._monthlySchedule = "monthlySchedule"; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.state != null && message.hasOwnProperty("state")) + object.state = options.enums === String ? $root.google.cloud.netapp.v1.Snapshot.State[message.state] === undefined ? message.state : $root.google.cloud.netapp.v1.Snapshot.State[message.state] : message.state; + if (message.stateDetails != null && message.hasOwnProperty("stateDetails")) + object.stateDetails = message.stateDetails; + if (message.description != null && message.hasOwnProperty("description")) + object.description = message.description; + if (message.usedBytes != null && message.hasOwnProperty("usedBytes")) + object.usedBytes = options.json && !isFinite(message.usedBytes) ? String(message.usedBytes) : message.usedBytes; + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + var keys2; + if (message.labels && (keys2 = Object.keys(message.labels)).length) { + object.labels = {}; + for (var j = 0; j < keys2.length; ++j) + object.labels[keys2[j]] = message.labels[keys2[j]]; } return object; }; /** - * Converts this SnapshotPolicy to JSON. + * Converts this Snapshot to JSON. * @function toJSON - * @memberof google.cloud.netapp.v1.SnapshotPolicy + * @memberof google.cloud.netapp.v1.Snapshot * @instance * @returns {Object.} JSON object */ - SnapshotPolicy.prototype.toJSON = function toJSON() { + Snapshot.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for SnapshotPolicy + * Gets the default type url for Snapshot * @function getTypeUrl - * @memberof google.cloud.netapp.v1.SnapshotPolicy + * @memberof google.cloud.netapp.v1.Snapshot * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - SnapshotPolicy.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + Snapshot.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.netapp.v1.SnapshotPolicy"; + return typeUrlPrefix + "/google.cloud.netapp.v1.Snapshot"; }; - return SnapshotPolicy; + /** + * State enum. + * @name google.cloud.netapp.v1.Snapshot.State + * @enum {number} + * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value + * @property {number} READY=1 READY value + * @property {number} CREATING=2 CREATING value + * @property {number} DELETING=3 DELETING value + * @property {number} UPDATING=4 UPDATING value + * @property {number} DISABLED=5 DISABLED value + * @property {number} ERROR=6 ERROR value + */ + Snapshot.State = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "STATE_UNSPECIFIED"] = 0; + values[valuesById[1] = "READY"] = 1; + values[valuesById[2] = "CREATING"] = 2; + values[valuesById[3] = "DELETING"] = 3; + values[valuesById[4] = "UPDATING"] = 4; + values[valuesById[5] = "DISABLED"] = 5; + values[valuesById[6] = "ERROR"] = 6; + return values; + })(); + + return Snapshot; })(); - v1.HourlySchedule = (function() { + v1.GetStoragePoolRequest = (function() { /** - * Properties of an HourlySchedule. + * Properties of a GetStoragePoolRequest. * @memberof google.cloud.netapp.v1 - * @interface IHourlySchedule - * @property {number|null} [snapshotsToKeep] HourlySchedule snapshotsToKeep - * @property {number|null} [minute] HourlySchedule minute + * @interface IGetStoragePoolRequest + * @property {string|null} [name] GetStoragePoolRequest name */ /** - * Constructs a new HourlySchedule. + * Constructs a new GetStoragePoolRequest. * @memberof google.cloud.netapp.v1 - * @classdesc Represents an HourlySchedule. - * @implements IHourlySchedule + * @classdesc Represents a GetStoragePoolRequest. + * @implements IGetStoragePoolRequest * @constructor - * @param {google.cloud.netapp.v1.IHourlySchedule=} [properties] Properties to set + * @param {google.cloud.netapp.v1.IGetStoragePoolRequest=} [properties] Properties to set */ - function HourlySchedule(properties) { + function GetStoragePoolRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -26377,114 +27752,75 @@ } /** - * HourlySchedule snapshotsToKeep. - * @member {number|null|undefined} snapshotsToKeep - * @memberof google.cloud.netapp.v1.HourlySchedule - * @instance - */ - HourlySchedule.prototype.snapshotsToKeep = null; - - /** - * HourlySchedule minute. - * @member {number|null|undefined} minute - * @memberof google.cloud.netapp.v1.HourlySchedule - * @instance - */ - HourlySchedule.prototype.minute = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * HourlySchedule _snapshotsToKeep. - * @member {"snapshotsToKeep"|undefined} _snapshotsToKeep - * @memberof google.cloud.netapp.v1.HourlySchedule - * @instance - */ - Object.defineProperty(HourlySchedule.prototype, "_snapshotsToKeep", { - get: $util.oneOfGetter($oneOfFields = ["snapshotsToKeep"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * HourlySchedule _minute. - * @member {"minute"|undefined} _minute - * @memberof google.cloud.netapp.v1.HourlySchedule + * GetStoragePoolRequest name. + * @member {string} name + * @memberof google.cloud.netapp.v1.GetStoragePoolRequest * @instance */ - Object.defineProperty(HourlySchedule.prototype, "_minute", { - get: $util.oneOfGetter($oneOfFields = ["minute"]), - set: $util.oneOfSetter($oneOfFields) - }); + GetStoragePoolRequest.prototype.name = ""; /** - * Creates a new HourlySchedule instance using the specified properties. + * Creates a new GetStoragePoolRequest instance using the specified properties. * @function create - * @memberof google.cloud.netapp.v1.HourlySchedule + * @memberof google.cloud.netapp.v1.GetStoragePoolRequest * @static - * @param {google.cloud.netapp.v1.IHourlySchedule=} [properties] Properties to set - * @returns {google.cloud.netapp.v1.HourlySchedule} HourlySchedule instance + * @param {google.cloud.netapp.v1.IGetStoragePoolRequest=} [properties] Properties to set + * @returns {google.cloud.netapp.v1.GetStoragePoolRequest} GetStoragePoolRequest instance */ - HourlySchedule.create = function create(properties) { - return new HourlySchedule(properties); + GetStoragePoolRequest.create = function create(properties) { + return new GetStoragePoolRequest(properties); }; /** - * Encodes the specified HourlySchedule message. Does not implicitly {@link google.cloud.netapp.v1.HourlySchedule.verify|verify} messages. + * Encodes the specified GetStoragePoolRequest message. Does not implicitly {@link google.cloud.netapp.v1.GetStoragePoolRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.netapp.v1.HourlySchedule + * @memberof google.cloud.netapp.v1.GetStoragePoolRequest * @static - * @param {google.cloud.netapp.v1.IHourlySchedule} message HourlySchedule message or plain object to encode + * @param {google.cloud.netapp.v1.IGetStoragePoolRequest} message GetStoragePoolRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - HourlySchedule.encode = function encode(message, writer) { + GetStoragePoolRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.snapshotsToKeep != null && Object.hasOwnProperty.call(message, "snapshotsToKeep")) - writer.uint32(/* id 1, wireType 1 =*/9).double(message.snapshotsToKeep); - if (message.minute != null && Object.hasOwnProperty.call(message, "minute")) - writer.uint32(/* id 2, wireType 1 =*/17).double(message.minute); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified HourlySchedule message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.HourlySchedule.verify|verify} messages. + * Encodes the specified GetStoragePoolRequest message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.GetStoragePoolRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.netapp.v1.HourlySchedule + * @memberof google.cloud.netapp.v1.GetStoragePoolRequest * @static - * @param {google.cloud.netapp.v1.IHourlySchedule} message HourlySchedule message or plain object to encode + * @param {google.cloud.netapp.v1.IGetStoragePoolRequest} message GetStoragePoolRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - HourlySchedule.encodeDelimited = function encodeDelimited(message, writer) { + GetStoragePoolRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an HourlySchedule message from the specified reader or buffer. + * Decodes a GetStoragePoolRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.netapp.v1.HourlySchedule + * @memberof google.cloud.netapp.v1.GetStoragePoolRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.netapp.v1.HourlySchedule} HourlySchedule + * @returns {google.cloud.netapp.v1.GetStoragePoolRequest} GetStoragePoolRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - HourlySchedule.decode = function decode(reader, length) { + GetStoragePoolRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.netapp.v1.HourlySchedule(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.netapp.v1.GetStoragePoolRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.snapshotsToKeep = reader.double(); - break; - } - case 2: { - message.minute = reader.double(); + message.name = reader.string(); break; } default: @@ -26496,140 +27832,126 @@ }; /** - * Decodes an HourlySchedule message from the specified reader or buffer, length delimited. + * Decodes a GetStoragePoolRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.netapp.v1.HourlySchedule + * @memberof google.cloud.netapp.v1.GetStoragePoolRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.netapp.v1.HourlySchedule} HourlySchedule + * @returns {google.cloud.netapp.v1.GetStoragePoolRequest} GetStoragePoolRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - HourlySchedule.decodeDelimited = function decodeDelimited(reader) { + GetStoragePoolRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an HourlySchedule message. + * Verifies a GetStoragePoolRequest message. * @function verify - * @memberof google.cloud.netapp.v1.HourlySchedule + * @memberof google.cloud.netapp.v1.GetStoragePoolRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - HourlySchedule.verify = function verify(message) { + GetStoragePoolRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.snapshotsToKeep != null && message.hasOwnProperty("snapshotsToKeep")) { - properties._snapshotsToKeep = 1; - if (typeof message.snapshotsToKeep !== "number") - return "snapshotsToKeep: number expected"; - } - if (message.minute != null && message.hasOwnProperty("minute")) { - properties._minute = 1; - if (typeof message.minute !== "number") - return "minute: number expected"; - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates an HourlySchedule message from a plain object. Also converts values to their respective internal types. + * Creates a GetStoragePoolRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.netapp.v1.HourlySchedule + * @memberof google.cloud.netapp.v1.GetStoragePoolRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.netapp.v1.HourlySchedule} HourlySchedule + * @returns {google.cloud.netapp.v1.GetStoragePoolRequest} GetStoragePoolRequest */ - HourlySchedule.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.netapp.v1.HourlySchedule) + GetStoragePoolRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.netapp.v1.GetStoragePoolRequest) return object; - var message = new $root.google.cloud.netapp.v1.HourlySchedule(); - if (object.snapshotsToKeep != null) - message.snapshotsToKeep = Number(object.snapshotsToKeep); - if (object.minute != null) - message.minute = Number(object.minute); + var message = new $root.google.cloud.netapp.v1.GetStoragePoolRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from an HourlySchedule message. Also converts values to other types if specified. + * Creates a plain object from a GetStoragePoolRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.netapp.v1.HourlySchedule + * @memberof google.cloud.netapp.v1.GetStoragePoolRequest * @static - * @param {google.cloud.netapp.v1.HourlySchedule} message HourlySchedule + * @param {google.cloud.netapp.v1.GetStoragePoolRequest} message GetStoragePoolRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - HourlySchedule.toObject = function toObject(message, options) { + GetStoragePoolRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (message.snapshotsToKeep != null && message.hasOwnProperty("snapshotsToKeep")) { - object.snapshotsToKeep = options.json && !isFinite(message.snapshotsToKeep) ? String(message.snapshotsToKeep) : message.snapshotsToKeep; - if (options.oneofs) - object._snapshotsToKeep = "snapshotsToKeep"; - } - if (message.minute != null && message.hasOwnProperty("minute")) { - object.minute = options.json && !isFinite(message.minute) ? String(message.minute) : message.minute; - if (options.oneofs) - object._minute = "minute"; - } + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this HourlySchedule to JSON. + * Converts this GetStoragePoolRequest to JSON. * @function toJSON - * @memberof google.cloud.netapp.v1.HourlySchedule + * @memberof google.cloud.netapp.v1.GetStoragePoolRequest * @instance * @returns {Object.} JSON object */ - HourlySchedule.prototype.toJSON = function toJSON() { + GetStoragePoolRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for HourlySchedule + * Gets the default type url for GetStoragePoolRequest * @function getTypeUrl - * @memberof google.cloud.netapp.v1.HourlySchedule + * @memberof google.cloud.netapp.v1.GetStoragePoolRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - HourlySchedule.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetStoragePoolRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.netapp.v1.HourlySchedule"; + return typeUrlPrefix + "/google.cloud.netapp.v1.GetStoragePoolRequest"; }; - return HourlySchedule; + return GetStoragePoolRequest; })(); - v1.DailySchedule = (function() { + v1.ListStoragePoolsRequest = (function() { /** - * Properties of a DailySchedule. + * Properties of a ListStoragePoolsRequest. * @memberof google.cloud.netapp.v1 - * @interface IDailySchedule - * @property {number|null} [snapshotsToKeep] DailySchedule snapshotsToKeep - * @property {number|null} [minute] DailySchedule minute - * @property {number|null} [hour] DailySchedule hour + * @interface IListStoragePoolsRequest + * @property {string|null} [parent] ListStoragePoolsRequest parent + * @property {number|null} [pageSize] ListStoragePoolsRequest pageSize + * @property {string|null} [pageToken] ListStoragePoolsRequest pageToken + * @property {string|null} [orderBy] ListStoragePoolsRequest orderBy + * @property {string|null} [filter] ListStoragePoolsRequest filter */ /** - * Constructs a new DailySchedule. + * Constructs a new ListStoragePoolsRequest. * @memberof google.cloud.netapp.v1 - * @classdesc Represents a DailySchedule. - * @implements IDailySchedule + * @classdesc Represents a ListStoragePoolsRequest. + * @implements IListStoragePoolsRequest * @constructor - * @param {google.cloud.netapp.v1.IDailySchedule=} [properties] Properties to set + * @param {google.cloud.netapp.v1.IListStoragePoolsRequest=} [properties] Properties to set */ - function DailySchedule(properties) { + function ListStoragePoolsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -26637,139 +27959,131 @@ } /** - * DailySchedule snapshotsToKeep. - * @member {number|null|undefined} snapshotsToKeep - * @memberof google.cloud.netapp.v1.DailySchedule - * @instance - */ - DailySchedule.prototype.snapshotsToKeep = null; - - /** - * DailySchedule minute. - * @member {number|null|undefined} minute - * @memberof google.cloud.netapp.v1.DailySchedule + * ListStoragePoolsRequest parent. + * @member {string} parent + * @memberof google.cloud.netapp.v1.ListStoragePoolsRequest * @instance */ - DailySchedule.prototype.minute = null; + ListStoragePoolsRequest.prototype.parent = ""; /** - * DailySchedule hour. - * @member {number|null|undefined} hour - * @memberof google.cloud.netapp.v1.DailySchedule + * ListStoragePoolsRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.netapp.v1.ListStoragePoolsRequest * @instance */ - DailySchedule.prototype.hour = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + ListStoragePoolsRequest.prototype.pageSize = 0; /** - * DailySchedule _snapshotsToKeep. - * @member {"snapshotsToKeep"|undefined} _snapshotsToKeep - * @memberof google.cloud.netapp.v1.DailySchedule + * ListStoragePoolsRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.netapp.v1.ListStoragePoolsRequest * @instance */ - Object.defineProperty(DailySchedule.prototype, "_snapshotsToKeep", { - get: $util.oneOfGetter($oneOfFields = ["snapshotsToKeep"]), - set: $util.oneOfSetter($oneOfFields) - }); + ListStoragePoolsRequest.prototype.pageToken = ""; /** - * DailySchedule _minute. - * @member {"minute"|undefined} _minute - * @memberof google.cloud.netapp.v1.DailySchedule + * ListStoragePoolsRequest orderBy. + * @member {string} orderBy + * @memberof google.cloud.netapp.v1.ListStoragePoolsRequest * @instance */ - Object.defineProperty(DailySchedule.prototype, "_minute", { - get: $util.oneOfGetter($oneOfFields = ["minute"]), - set: $util.oneOfSetter($oneOfFields) - }); + ListStoragePoolsRequest.prototype.orderBy = ""; /** - * DailySchedule _hour. - * @member {"hour"|undefined} _hour - * @memberof google.cloud.netapp.v1.DailySchedule + * ListStoragePoolsRequest filter. + * @member {string} filter + * @memberof google.cloud.netapp.v1.ListStoragePoolsRequest * @instance */ - Object.defineProperty(DailySchedule.prototype, "_hour", { - get: $util.oneOfGetter($oneOfFields = ["hour"]), - set: $util.oneOfSetter($oneOfFields) - }); + ListStoragePoolsRequest.prototype.filter = ""; /** - * Creates a new DailySchedule instance using the specified properties. + * Creates a new ListStoragePoolsRequest instance using the specified properties. * @function create - * @memberof google.cloud.netapp.v1.DailySchedule + * @memberof google.cloud.netapp.v1.ListStoragePoolsRequest * @static - * @param {google.cloud.netapp.v1.IDailySchedule=} [properties] Properties to set - * @returns {google.cloud.netapp.v1.DailySchedule} DailySchedule instance + * @param {google.cloud.netapp.v1.IListStoragePoolsRequest=} [properties] Properties to set + * @returns {google.cloud.netapp.v1.ListStoragePoolsRequest} ListStoragePoolsRequest instance */ - DailySchedule.create = function create(properties) { - return new DailySchedule(properties); + ListStoragePoolsRequest.create = function create(properties) { + return new ListStoragePoolsRequest(properties); }; /** - * Encodes the specified DailySchedule message. Does not implicitly {@link google.cloud.netapp.v1.DailySchedule.verify|verify} messages. + * Encodes the specified ListStoragePoolsRequest message. Does not implicitly {@link google.cloud.netapp.v1.ListStoragePoolsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.netapp.v1.DailySchedule + * @memberof google.cloud.netapp.v1.ListStoragePoolsRequest * @static - * @param {google.cloud.netapp.v1.IDailySchedule} message DailySchedule message or plain object to encode + * @param {google.cloud.netapp.v1.IListStoragePoolsRequest} message ListStoragePoolsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DailySchedule.encode = function encode(message, writer) { + ListStoragePoolsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.snapshotsToKeep != null && Object.hasOwnProperty.call(message, "snapshotsToKeep")) - writer.uint32(/* id 1, wireType 1 =*/9).double(message.snapshotsToKeep); - if (message.minute != null && Object.hasOwnProperty.call(message, "minute")) - writer.uint32(/* id 2, wireType 1 =*/17).double(message.minute); - if (message.hour != null && Object.hasOwnProperty.call(message, "hour")) - writer.uint32(/* id 3, wireType 1 =*/25).double(message.hour); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); + if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.orderBy); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.filter); return writer; }; /** - * Encodes the specified DailySchedule message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.DailySchedule.verify|verify} messages. + * Encodes the specified ListStoragePoolsRequest message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.ListStoragePoolsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.netapp.v1.DailySchedule + * @memberof google.cloud.netapp.v1.ListStoragePoolsRequest * @static - * @param {google.cloud.netapp.v1.IDailySchedule} message DailySchedule message or plain object to encode + * @param {google.cloud.netapp.v1.IListStoragePoolsRequest} message ListStoragePoolsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DailySchedule.encodeDelimited = function encodeDelimited(message, writer) { + ListStoragePoolsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DailySchedule message from the specified reader or buffer. + * Decodes a ListStoragePoolsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.netapp.v1.DailySchedule + * @memberof google.cloud.netapp.v1.ListStoragePoolsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.netapp.v1.DailySchedule} DailySchedule + * @returns {google.cloud.netapp.v1.ListStoragePoolsRequest} ListStoragePoolsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DailySchedule.decode = function decode(reader, length) { + ListStoragePoolsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.netapp.v1.DailySchedule(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.netapp.v1.ListStoragePoolsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.snapshotsToKeep = reader.double(); + message.parent = reader.string(); break; } case 2: { - message.minute = reader.double(); + message.pageSize = reader.int32(); break; } case 3: { - message.hour = reader.double(); + message.pageToken = reader.string(); + break; + } + case 4: { + message.orderBy = reader.string(); + break; + } + case 5: { + message.filter = reader.string(); break; } default: @@ -26781,153 +28095,159 @@ }; /** - * Decodes a DailySchedule message from the specified reader or buffer, length delimited. + * Decodes a ListStoragePoolsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.netapp.v1.DailySchedule + * @memberof google.cloud.netapp.v1.ListStoragePoolsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.netapp.v1.DailySchedule} DailySchedule + * @returns {google.cloud.netapp.v1.ListStoragePoolsRequest} ListStoragePoolsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DailySchedule.decodeDelimited = function decodeDelimited(reader) { + ListStoragePoolsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DailySchedule message. + * Verifies a ListStoragePoolsRequest message. * @function verify - * @memberof google.cloud.netapp.v1.DailySchedule + * @memberof google.cloud.netapp.v1.ListStoragePoolsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DailySchedule.verify = function verify(message) { + ListStoragePoolsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.snapshotsToKeep != null && message.hasOwnProperty("snapshotsToKeep")) { - properties._snapshotsToKeep = 1; - if (typeof message.snapshotsToKeep !== "number") - return "snapshotsToKeep: number expected"; - } - if (message.minute != null && message.hasOwnProperty("minute")) { - properties._minute = 1; - if (typeof message.minute !== "number") - return "minute: number expected"; - } - if (message.hour != null && message.hasOwnProperty("hour")) { - properties._hour = 1; - if (typeof message.hour !== "number") - return "hour: number expected"; - } + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + if (message.orderBy != null && message.hasOwnProperty("orderBy")) + if (!$util.isString(message.orderBy)) + return "orderBy: string expected"; + if (message.filter != null && message.hasOwnProperty("filter")) + if (!$util.isString(message.filter)) + return "filter: string expected"; return null; }; /** - * Creates a DailySchedule message from a plain object. Also converts values to their respective internal types. + * Creates a ListStoragePoolsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.netapp.v1.DailySchedule + * @memberof google.cloud.netapp.v1.ListStoragePoolsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.netapp.v1.DailySchedule} DailySchedule + * @returns {google.cloud.netapp.v1.ListStoragePoolsRequest} ListStoragePoolsRequest */ - DailySchedule.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.netapp.v1.DailySchedule) + ListStoragePoolsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.netapp.v1.ListStoragePoolsRequest) return object; - var message = new $root.google.cloud.netapp.v1.DailySchedule(); - if (object.snapshotsToKeep != null) - message.snapshotsToKeep = Number(object.snapshotsToKeep); - if (object.minute != null) - message.minute = Number(object.minute); - if (object.hour != null) - message.hour = Number(object.hour); + var message = new $root.google.cloud.netapp.v1.ListStoragePoolsRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + if (object.orderBy != null) + message.orderBy = String(object.orderBy); + if (object.filter != null) + message.filter = String(object.filter); return message; }; /** - * Creates a plain object from a DailySchedule message. Also converts values to other types if specified. + * Creates a plain object from a ListStoragePoolsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.netapp.v1.DailySchedule + * @memberof google.cloud.netapp.v1.ListStoragePoolsRequest * @static - * @param {google.cloud.netapp.v1.DailySchedule} message DailySchedule + * @param {google.cloud.netapp.v1.ListStoragePoolsRequest} message ListStoragePoolsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DailySchedule.toObject = function toObject(message, options) { + ListStoragePoolsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (message.snapshotsToKeep != null && message.hasOwnProperty("snapshotsToKeep")) { - object.snapshotsToKeep = options.json && !isFinite(message.snapshotsToKeep) ? String(message.snapshotsToKeep) : message.snapshotsToKeep; - if (options.oneofs) - object._snapshotsToKeep = "snapshotsToKeep"; - } - if (message.minute != null && message.hasOwnProperty("minute")) { - object.minute = options.json && !isFinite(message.minute) ? String(message.minute) : message.minute; - if (options.oneofs) - object._minute = "minute"; - } - if (message.hour != null && message.hasOwnProperty("hour")) { - object.hour = options.json && !isFinite(message.hour) ? String(message.hour) : message.hour; - if (options.oneofs) - object._hour = "hour"; + if (options.defaults) { + object.parent = ""; + object.pageSize = 0; + object.pageToken = ""; + object.orderBy = ""; + object.filter = ""; } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + if (message.orderBy != null && message.hasOwnProperty("orderBy")) + object.orderBy = message.orderBy; + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = message.filter; return object; }; /** - * Converts this DailySchedule to JSON. + * Converts this ListStoragePoolsRequest to JSON. * @function toJSON - * @memberof google.cloud.netapp.v1.DailySchedule + * @memberof google.cloud.netapp.v1.ListStoragePoolsRequest * @instance * @returns {Object.} JSON object */ - DailySchedule.prototype.toJSON = function toJSON() { + ListStoragePoolsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DailySchedule + * Gets the default type url for ListStoragePoolsRequest * @function getTypeUrl - * @memberof google.cloud.netapp.v1.DailySchedule + * @memberof google.cloud.netapp.v1.ListStoragePoolsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DailySchedule.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListStoragePoolsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.netapp.v1.DailySchedule"; + return typeUrlPrefix + "/google.cloud.netapp.v1.ListStoragePoolsRequest"; }; - return DailySchedule; + return ListStoragePoolsRequest; })(); - v1.WeeklySchedule = (function() { + v1.ListStoragePoolsResponse = (function() { /** - * Properties of a WeeklySchedule. + * Properties of a ListStoragePoolsResponse. * @memberof google.cloud.netapp.v1 - * @interface IWeeklySchedule - * @property {number|null} [snapshotsToKeep] WeeklySchedule snapshotsToKeep - * @property {number|null} [minute] WeeklySchedule minute - * @property {number|null} [hour] WeeklySchedule hour - * @property {string|null} [day] WeeklySchedule day + * @interface IListStoragePoolsResponse + * @property {Array.|null} [storagePools] ListStoragePoolsResponse storagePools + * @property {string|null} [nextPageToken] ListStoragePoolsResponse nextPageToken + * @property {Array.|null} [unreachable] ListStoragePoolsResponse unreachable */ /** - * Constructs a new WeeklySchedule. + * Constructs a new ListStoragePoolsResponse. * @memberof google.cloud.netapp.v1 - * @classdesc Represents a WeeklySchedule. - * @implements IWeeklySchedule + * @classdesc Represents a ListStoragePoolsResponse. + * @implements IListStoragePoolsResponse * @constructor - * @param {google.cloud.netapp.v1.IWeeklySchedule=} [properties] Properties to set + * @param {google.cloud.netapp.v1.IListStoragePoolsResponse=} [properties] Properties to set */ - function WeeklySchedule(properties) { + function ListStoragePoolsResponse(properties) { + this.storagePools = []; + this.unreachable = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -26935,164 +28255,109 @@ } /** - * WeeklySchedule snapshotsToKeep. - * @member {number|null|undefined} snapshotsToKeep - * @memberof google.cloud.netapp.v1.WeeklySchedule - * @instance - */ - WeeklySchedule.prototype.snapshotsToKeep = null; - - /** - * WeeklySchedule minute. - * @member {number|null|undefined} minute - * @memberof google.cloud.netapp.v1.WeeklySchedule - * @instance - */ - WeeklySchedule.prototype.minute = null; - - /** - * WeeklySchedule hour. - * @member {number|null|undefined} hour - * @memberof google.cloud.netapp.v1.WeeklySchedule - * @instance - */ - WeeklySchedule.prototype.hour = null; - - /** - * WeeklySchedule day. - * @member {string|null|undefined} day - * @memberof google.cloud.netapp.v1.WeeklySchedule - * @instance - */ - WeeklySchedule.prototype.day = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * WeeklySchedule _snapshotsToKeep. - * @member {"snapshotsToKeep"|undefined} _snapshotsToKeep - * @memberof google.cloud.netapp.v1.WeeklySchedule - * @instance - */ - Object.defineProperty(WeeklySchedule.prototype, "_snapshotsToKeep", { - get: $util.oneOfGetter($oneOfFields = ["snapshotsToKeep"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * WeeklySchedule _minute. - * @member {"minute"|undefined} _minute - * @memberof google.cloud.netapp.v1.WeeklySchedule + * ListStoragePoolsResponse storagePools. + * @member {Array.} storagePools + * @memberof google.cloud.netapp.v1.ListStoragePoolsResponse * @instance */ - Object.defineProperty(WeeklySchedule.prototype, "_minute", { - get: $util.oneOfGetter($oneOfFields = ["minute"]), - set: $util.oneOfSetter($oneOfFields) - }); + ListStoragePoolsResponse.prototype.storagePools = $util.emptyArray; /** - * WeeklySchedule _hour. - * @member {"hour"|undefined} _hour - * @memberof google.cloud.netapp.v1.WeeklySchedule + * ListStoragePoolsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.netapp.v1.ListStoragePoolsResponse * @instance */ - Object.defineProperty(WeeklySchedule.prototype, "_hour", { - get: $util.oneOfGetter($oneOfFields = ["hour"]), - set: $util.oneOfSetter($oneOfFields) - }); + ListStoragePoolsResponse.prototype.nextPageToken = ""; /** - * WeeklySchedule _day. - * @member {"day"|undefined} _day - * @memberof google.cloud.netapp.v1.WeeklySchedule + * ListStoragePoolsResponse unreachable. + * @member {Array.} unreachable + * @memberof google.cloud.netapp.v1.ListStoragePoolsResponse * @instance */ - Object.defineProperty(WeeklySchedule.prototype, "_day", { - get: $util.oneOfGetter($oneOfFields = ["day"]), - set: $util.oneOfSetter($oneOfFields) - }); + ListStoragePoolsResponse.prototype.unreachable = $util.emptyArray; /** - * Creates a new WeeklySchedule instance using the specified properties. + * Creates a new ListStoragePoolsResponse instance using the specified properties. * @function create - * @memberof google.cloud.netapp.v1.WeeklySchedule + * @memberof google.cloud.netapp.v1.ListStoragePoolsResponse * @static - * @param {google.cloud.netapp.v1.IWeeklySchedule=} [properties] Properties to set - * @returns {google.cloud.netapp.v1.WeeklySchedule} WeeklySchedule instance + * @param {google.cloud.netapp.v1.IListStoragePoolsResponse=} [properties] Properties to set + * @returns {google.cloud.netapp.v1.ListStoragePoolsResponse} ListStoragePoolsResponse instance */ - WeeklySchedule.create = function create(properties) { - return new WeeklySchedule(properties); + ListStoragePoolsResponse.create = function create(properties) { + return new ListStoragePoolsResponse(properties); }; /** - * Encodes the specified WeeklySchedule message. Does not implicitly {@link google.cloud.netapp.v1.WeeklySchedule.verify|verify} messages. + * Encodes the specified ListStoragePoolsResponse message. Does not implicitly {@link google.cloud.netapp.v1.ListStoragePoolsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.netapp.v1.WeeklySchedule + * @memberof google.cloud.netapp.v1.ListStoragePoolsResponse * @static - * @param {google.cloud.netapp.v1.IWeeklySchedule} message WeeklySchedule message or plain object to encode + * @param {google.cloud.netapp.v1.IListStoragePoolsResponse} message ListStoragePoolsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - WeeklySchedule.encode = function encode(message, writer) { + ListStoragePoolsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.snapshotsToKeep != null && Object.hasOwnProperty.call(message, "snapshotsToKeep")) - writer.uint32(/* id 1, wireType 1 =*/9).double(message.snapshotsToKeep); - if (message.minute != null && Object.hasOwnProperty.call(message, "minute")) - writer.uint32(/* id 2, wireType 1 =*/17).double(message.minute); - if (message.hour != null && Object.hasOwnProperty.call(message, "hour")) - writer.uint32(/* id 3, wireType 1 =*/25).double(message.hour); - if (message.day != null && Object.hasOwnProperty.call(message, "day")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.day); + if (message.storagePools != null && message.storagePools.length) + for (var i = 0; i < message.storagePools.length; ++i) + $root.google.cloud.netapp.v1.StoragePool.encode(message.storagePools[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.unreachable != null && message.unreachable.length) + for (var i = 0; i < message.unreachable.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.unreachable[i]); return writer; }; /** - * Encodes the specified WeeklySchedule message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.WeeklySchedule.verify|verify} messages. + * Encodes the specified ListStoragePoolsResponse message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.ListStoragePoolsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.netapp.v1.WeeklySchedule + * @memberof google.cloud.netapp.v1.ListStoragePoolsResponse * @static - * @param {google.cloud.netapp.v1.IWeeklySchedule} message WeeklySchedule message or plain object to encode + * @param {google.cloud.netapp.v1.IListStoragePoolsResponse} message ListStoragePoolsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - WeeklySchedule.encodeDelimited = function encodeDelimited(message, writer) { + ListStoragePoolsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a WeeklySchedule message from the specified reader or buffer. + * Decodes a ListStoragePoolsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.netapp.v1.WeeklySchedule + * @memberof google.cloud.netapp.v1.ListStoragePoolsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.netapp.v1.WeeklySchedule} WeeklySchedule + * @returns {google.cloud.netapp.v1.ListStoragePoolsResponse} ListStoragePoolsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - WeeklySchedule.decode = function decode(reader, length) { + ListStoragePoolsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.netapp.v1.WeeklySchedule(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.netapp.v1.ListStoragePoolsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.snapshotsToKeep = reader.double(); + if (!(message.storagePools && message.storagePools.length)) + message.storagePools = []; + message.storagePools.push($root.google.cloud.netapp.v1.StoragePool.decode(reader, reader.uint32())); break; } case 2: { - message.minute = reader.double(); + message.nextPageToken = reader.string(); break; } case 3: { - message.hour = reader.double(); - break; - } - case 4: { - message.day = reader.string(); + if (!(message.unreachable && message.unreachable.length)) + message.unreachable = []; + message.unreachable.push(reader.string()); break; } default: @@ -27104,165 +28369,171 @@ }; /** - * Decodes a WeeklySchedule message from the specified reader or buffer, length delimited. + * Decodes a ListStoragePoolsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.netapp.v1.WeeklySchedule + * @memberof google.cloud.netapp.v1.ListStoragePoolsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.netapp.v1.WeeklySchedule} WeeklySchedule + * @returns {google.cloud.netapp.v1.ListStoragePoolsResponse} ListStoragePoolsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - WeeklySchedule.decodeDelimited = function decodeDelimited(reader) { + ListStoragePoolsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a WeeklySchedule message. + * Verifies a ListStoragePoolsResponse message. * @function verify - * @memberof google.cloud.netapp.v1.WeeklySchedule + * @memberof google.cloud.netapp.v1.ListStoragePoolsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - WeeklySchedule.verify = function verify(message) { + ListStoragePoolsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.snapshotsToKeep != null && message.hasOwnProperty("snapshotsToKeep")) { - properties._snapshotsToKeep = 1; - if (typeof message.snapshotsToKeep !== "number") - return "snapshotsToKeep: number expected"; - } - if (message.minute != null && message.hasOwnProperty("minute")) { - properties._minute = 1; - if (typeof message.minute !== "number") - return "minute: number expected"; - } - if (message.hour != null && message.hasOwnProperty("hour")) { - properties._hour = 1; - if (typeof message.hour !== "number") - return "hour: number expected"; + if (message.storagePools != null && message.hasOwnProperty("storagePools")) { + if (!Array.isArray(message.storagePools)) + return "storagePools: array expected"; + for (var i = 0; i < message.storagePools.length; ++i) { + var error = $root.google.cloud.netapp.v1.StoragePool.verify(message.storagePools[i]); + if (error) + return "storagePools." + error; + } } - if (message.day != null && message.hasOwnProperty("day")) { - properties._day = 1; - if (!$util.isString(message.day)) - return "day: string expected"; + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + if (message.unreachable != null && message.hasOwnProperty("unreachable")) { + if (!Array.isArray(message.unreachable)) + return "unreachable: array expected"; + for (var i = 0; i < message.unreachable.length; ++i) + if (!$util.isString(message.unreachable[i])) + return "unreachable: string[] expected"; } return null; }; /** - * Creates a WeeklySchedule message from a plain object. Also converts values to their respective internal types. + * Creates a ListStoragePoolsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.netapp.v1.WeeklySchedule + * @memberof google.cloud.netapp.v1.ListStoragePoolsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.netapp.v1.WeeklySchedule} WeeklySchedule + * @returns {google.cloud.netapp.v1.ListStoragePoolsResponse} ListStoragePoolsResponse */ - WeeklySchedule.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.netapp.v1.WeeklySchedule) + ListStoragePoolsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.netapp.v1.ListStoragePoolsResponse) return object; - var message = new $root.google.cloud.netapp.v1.WeeklySchedule(); - if (object.snapshotsToKeep != null) - message.snapshotsToKeep = Number(object.snapshotsToKeep); - if (object.minute != null) - message.minute = Number(object.minute); - if (object.hour != null) - message.hour = Number(object.hour); - if (object.day != null) - message.day = String(object.day); + var message = new $root.google.cloud.netapp.v1.ListStoragePoolsResponse(); + if (object.storagePools) { + if (!Array.isArray(object.storagePools)) + throw TypeError(".google.cloud.netapp.v1.ListStoragePoolsResponse.storagePools: array expected"); + message.storagePools = []; + for (var i = 0; i < object.storagePools.length; ++i) { + if (typeof object.storagePools[i] !== "object") + throw TypeError(".google.cloud.netapp.v1.ListStoragePoolsResponse.storagePools: object expected"); + message.storagePools[i] = $root.google.cloud.netapp.v1.StoragePool.fromObject(object.storagePools[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + if (object.unreachable) { + if (!Array.isArray(object.unreachable)) + throw TypeError(".google.cloud.netapp.v1.ListStoragePoolsResponse.unreachable: array expected"); + message.unreachable = []; + for (var i = 0; i < object.unreachable.length; ++i) + message.unreachable[i] = String(object.unreachable[i]); + } return message; }; /** - * Creates a plain object from a WeeklySchedule message. Also converts values to other types if specified. + * Creates a plain object from a ListStoragePoolsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.netapp.v1.WeeklySchedule + * @memberof google.cloud.netapp.v1.ListStoragePoolsResponse * @static - * @param {google.cloud.netapp.v1.WeeklySchedule} message WeeklySchedule + * @param {google.cloud.netapp.v1.ListStoragePoolsResponse} message ListStoragePoolsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - WeeklySchedule.toObject = function toObject(message, options) { + ListStoragePoolsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (message.snapshotsToKeep != null && message.hasOwnProperty("snapshotsToKeep")) { - object.snapshotsToKeep = options.json && !isFinite(message.snapshotsToKeep) ? String(message.snapshotsToKeep) : message.snapshotsToKeep; - if (options.oneofs) - object._snapshotsToKeep = "snapshotsToKeep"; - } - if (message.minute != null && message.hasOwnProperty("minute")) { - object.minute = options.json && !isFinite(message.minute) ? String(message.minute) : message.minute; - if (options.oneofs) - object._minute = "minute"; + if (options.arrays || options.defaults) { + object.storagePools = []; + object.unreachable = []; } - if (message.hour != null && message.hasOwnProperty("hour")) { - object.hour = options.json && !isFinite(message.hour) ? String(message.hour) : message.hour; - if (options.oneofs) - object._hour = "hour"; + if (options.defaults) + object.nextPageToken = ""; + if (message.storagePools && message.storagePools.length) { + object.storagePools = []; + for (var j = 0; j < message.storagePools.length; ++j) + object.storagePools[j] = $root.google.cloud.netapp.v1.StoragePool.toObject(message.storagePools[j], options); } - if (message.day != null && message.hasOwnProperty("day")) { - object.day = message.day; - if (options.oneofs) - object._day = "day"; + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; + if (message.unreachable && message.unreachable.length) { + object.unreachable = []; + for (var j = 0; j < message.unreachable.length; ++j) + object.unreachable[j] = message.unreachable[j]; } return object; }; /** - * Converts this WeeklySchedule to JSON. + * Converts this ListStoragePoolsResponse to JSON. * @function toJSON - * @memberof google.cloud.netapp.v1.WeeklySchedule + * @memberof google.cloud.netapp.v1.ListStoragePoolsResponse * @instance * @returns {Object.} JSON object */ - WeeklySchedule.prototype.toJSON = function toJSON() { + ListStoragePoolsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for WeeklySchedule + * Gets the default type url for ListStoragePoolsResponse * @function getTypeUrl - * @memberof google.cloud.netapp.v1.WeeklySchedule + * @memberof google.cloud.netapp.v1.ListStoragePoolsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - WeeklySchedule.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListStoragePoolsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.netapp.v1.WeeklySchedule"; + return typeUrlPrefix + "/google.cloud.netapp.v1.ListStoragePoolsResponse"; }; - return WeeklySchedule; + return ListStoragePoolsResponse; })(); - v1.MonthlySchedule = (function() { + v1.CreateStoragePoolRequest = (function() { /** - * Properties of a MonthlySchedule. + * Properties of a CreateStoragePoolRequest. * @memberof google.cloud.netapp.v1 - * @interface IMonthlySchedule - * @property {number|null} [snapshotsToKeep] MonthlySchedule snapshotsToKeep - * @property {number|null} [minute] MonthlySchedule minute - * @property {number|null} [hour] MonthlySchedule hour - * @property {string|null} [daysOfMonth] MonthlySchedule daysOfMonth + * @interface ICreateStoragePoolRequest + * @property {string|null} [parent] CreateStoragePoolRequest parent + * @property {string|null} [storagePoolId] CreateStoragePoolRequest storagePoolId + * @property {google.cloud.netapp.v1.IStoragePool|null} [storagePool] CreateStoragePoolRequest storagePool */ /** - * Constructs a new MonthlySchedule. + * Constructs a new CreateStoragePoolRequest. * @memberof google.cloud.netapp.v1 - * @classdesc Represents a MonthlySchedule. - * @implements IMonthlySchedule + * @classdesc Represents a CreateStoragePoolRequest. + * @implements ICreateStoragePoolRequest * @constructor - * @param {google.cloud.netapp.v1.IMonthlySchedule=} [properties] Properties to set + * @param {google.cloud.netapp.v1.ICreateStoragePoolRequest=} [properties] Properties to set */ - function MonthlySchedule(properties) { + function CreateStoragePoolRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -27270,164 +28541,103 @@ } /** - * MonthlySchedule snapshotsToKeep. - * @member {number|null|undefined} snapshotsToKeep - * @memberof google.cloud.netapp.v1.MonthlySchedule - * @instance - */ - MonthlySchedule.prototype.snapshotsToKeep = null; - - /** - * MonthlySchedule minute. - * @member {number|null|undefined} minute - * @memberof google.cloud.netapp.v1.MonthlySchedule - * @instance - */ - MonthlySchedule.prototype.minute = null; - - /** - * MonthlySchedule hour. - * @member {number|null|undefined} hour - * @memberof google.cloud.netapp.v1.MonthlySchedule - * @instance - */ - MonthlySchedule.prototype.hour = null; - - /** - * MonthlySchedule daysOfMonth. - * @member {string|null|undefined} daysOfMonth - * @memberof google.cloud.netapp.v1.MonthlySchedule - * @instance - */ - MonthlySchedule.prototype.daysOfMonth = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * MonthlySchedule _snapshotsToKeep. - * @member {"snapshotsToKeep"|undefined} _snapshotsToKeep - * @memberof google.cloud.netapp.v1.MonthlySchedule - * @instance - */ - Object.defineProperty(MonthlySchedule.prototype, "_snapshotsToKeep", { - get: $util.oneOfGetter($oneOfFields = ["snapshotsToKeep"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * MonthlySchedule _minute. - * @member {"minute"|undefined} _minute - * @memberof google.cloud.netapp.v1.MonthlySchedule + * CreateStoragePoolRequest parent. + * @member {string} parent + * @memberof google.cloud.netapp.v1.CreateStoragePoolRequest * @instance */ - Object.defineProperty(MonthlySchedule.prototype, "_minute", { - get: $util.oneOfGetter($oneOfFields = ["minute"]), - set: $util.oneOfSetter($oneOfFields) - }); + CreateStoragePoolRequest.prototype.parent = ""; /** - * MonthlySchedule _hour. - * @member {"hour"|undefined} _hour - * @memberof google.cloud.netapp.v1.MonthlySchedule + * CreateStoragePoolRequest storagePoolId. + * @member {string} storagePoolId + * @memberof google.cloud.netapp.v1.CreateStoragePoolRequest * @instance */ - Object.defineProperty(MonthlySchedule.prototype, "_hour", { - get: $util.oneOfGetter($oneOfFields = ["hour"]), - set: $util.oneOfSetter($oneOfFields) - }); + CreateStoragePoolRequest.prototype.storagePoolId = ""; /** - * MonthlySchedule _daysOfMonth. - * @member {"daysOfMonth"|undefined} _daysOfMonth - * @memberof google.cloud.netapp.v1.MonthlySchedule + * CreateStoragePoolRequest storagePool. + * @member {google.cloud.netapp.v1.IStoragePool|null|undefined} storagePool + * @memberof google.cloud.netapp.v1.CreateStoragePoolRequest * @instance */ - Object.defineProperty(MonthlySchedule.prototype, "_daysOfMonth", { - get: $util.oneOfGetter($oneOfFields = ["daysOfMonth"]), - set: $util.oneOfSetter($oneOfFields) - }); + CreateStoragePoolRequest.prototype.storagePool = null; /** - * Creates a new MonthlySchedule instance using the specified properties. + * Creates a new CreateStoragePoolRequest instance using the specified properties. * @function create - * @memberof google.cloud.netapp.v1.MonthlySchedule + * @memberof google.cloud.netapp.v1.CreateStoragePoolRequest * @static - * @param {google.cloud.netapp.v1.IMonthlySchedule=} [properties] Properties to set - * @returns {google.cloud.netapp.v1.MonthlySchedule} MonthlySchedule instance + * @param {google.cloud.netapp.v1.ICreateStoragePoolRequest=} [properties] Properties to set + * @returns {google.cloud.netapp.v1.CreateStoragePoolRequest} CreateStoragePoolRequest instance */ - MonthlySchedule.create = function create(properties) { - return new MonthlySchedule(properties); + CreateStoragePoolRequest.create = function create(properties) { + return new CreateStoragePoolRequest(properties); }; /** - * Encodes the specified MonthlySchedule message. Does not implicitly {@link google.cloud.netapp.v1.MonthlySchedule.verify|verify} messages. + * Encodes the specified CreateStoragePoolRequest message. Does not implicitly {@link google.cloud.netapp.v1.CreateStoragePoolRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.netapp.v1.MonthlySchedule + * @memberof google.cloud.netapp.v1.CreateStoragePoolRequest * @static - * @param {google.cloud.netapp.v1.IMonthlySchedule} message MonthlySchedule message or plain object to encode + * @param {google.cloud.netapp.v1.ICreateStoragePoolRequest} message CreateStoragePoolRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MonthlySchedule.encode = function encode(message, writer) { + CreateStoragePoolRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.snapshotsToKeep != null && Object.hasOwnProperty.call(message, "snapshotsToKeep")) - writer.uint32(/* id 1, wireType 1 =*/9).double(message.snapshotsToKeep); - if (message.minute != null && Object.hasOwnProperty.call(message, "minute")) - writer.uint32(/* id 2, wireType 1 =*/17).double(message.minute); - if (message.hour != null && Object.hasOwnProperty.call(message, "hour")) - writer.uint32(/* id 3, wireType 1 =*/25).double(message.hour); - if (message.daysOfMonth != null && Object.hasOwnProperty.call(message, "daysOfMonth")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.daysOfMonth); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.storagePoolId != null && Object.hasOwnProperty.call(message, "storagePoolId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.storagePoolId); + if (message.storagePool != null && Object.hasOwnProperty.call(message, "storagePool")) + $root.google.cloud.netapp.v1.StoragePool.encode(message.storagePool, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified MonthlySchedule message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.MonthlySchedule.verify|verify} messages. + * Encodes the specified CreateStoragePoolRequest message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.CreateStoragePoolRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.netapp.v1.MonthlySchedule + * @memberof google.cloud.netapp.v1.CreateStoragePoolRequest * @static - * @param {google.cloud.netapp.v1.IMonthlySchedule} message MonthlySchedule message or plain object to encode + * @param {google.cloud.netapp.v1.ICreateStoragePoolRequest} message CreateStoragePoolRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MonthlySchedule.encodeDelimited = function encodeDelimited(message, writer) { + CreateStoragePoolRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MonthlySchedule message from the specified reader or buffer. + * Decodes a CreateStoragePoolRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.netapp.v1.MonthlySchedule + * @memberof google.cloud.netapp.v1.CreateStoragePoolRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.netapp.v1.MonthlySchedule} MonthlySchedule + * @returns {google.cloud.netapp.v1.CreateStoragePoolRequest} CreateStoragePoolRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MonthlySchedule.decode = function decode(reader, length) { + CreateStoragePoolRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.netapp.v1.MonthlySchedule(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.netapp.v1.CreateStoragePoolRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.snapshotsToKeep = reader.double(); + message.parent = reader.string(); break; } case 2: { - message.minute = reader.double(); + message.storagePoolId = reader.string(); break; } case 3: { - message.hour = reader.double(); - break; - } - case 4: { - message.daysOfMonth = reader.string(); + message.storagePool = $root.google.cloud.netapp.v1.StoragePool.decode(reader, reader.uint32()); break; } default: @@ -27439,165 +28649,145 @@ }; /** - * Decodes a MonthlySchedule message from the specified reader or buffer, length delimited. + * Decodes a CreateStoragePoolRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.netapp.v1.MonthlySchedule + * @memberof google.cloud.netapp.v1.CreateStoragePoolRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.netapp.v1.MonthlySchedule} MonthlySchedule + * @returns {google.cloud.netapp.v1.CreateStoragePoolRequest} CreateStoragePoolRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MonthlySchedule.decodeDelimited = function decodeDelimited(reader) { + CreateStoragePoolRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MonthlySchedule message. + * Verifies a CreateStoragePoolRequest message. * @function verify - * @memberof google.cloud.netapp.v1.MonthlySchedule + * @memberof google.cloud.netapp.v1.CreateStoragePoolRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MonthlySchedule.verify = function verify(message) { + CreateStoragePoolRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.snapshotsToKeep != null && message.hasOwnProperty("snapshotsToKeep")) { - properties._snapshotsToKeep = 1; - if (typeof message.snapshotsToKeep !== "number") - return "snapshotsToKeep: number expected"; - } - if (message.minute != null && message.hasOwnProperty("minute")) { - properties._minute = 1; - if (typeof message.minute !== "number") - return "minute: number expected"; - } - if (message.hour != null && message.hasOwnProperty("hour")) { - properties._hour = 1; - if (typeof message.hour !== "number") - return "hour: number expected"; - } - if (message.daysOfMonth != null && message.hasOwnProperty("daysOfMonth")) { - properties._daysOfMonth = 1; - if (!$util.isString(message.daysOfMonth)) - return "daysOfMonth: string expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.storagePoolId != null && message.hasOwnProperty("storagePoolId")) + if (!$util.isString(message.storagePoolId)) + return "storagePoolId: string expected"; + if (message.storagePool != null && message.hasOwnProperty("storagePool")) { + var error = $root.google.cloud.netapp.v1.StoragePool.verify(message.storagePool); + if (error) + return "storagePool." + error; } return null; }; /** - * Creates a MonthlySchedule message from a plain object. Also converts values to their respective internal types. + * Creates a CreateStoragePoolRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.netapp.v1.MonthlySchedule + * @memberof google.cloud.netapp.v1.CreateStoragePoolRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.netapp.v1.MonthlySchedule} MonthlySchedule + * @returns {google.cloud.netapp.v1.CreateStoragePoolRequest} CreateStoragePoolRequest */ - MonthlySchedule.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.netapp.v1.MonthlySchedule) + CreateStoragePoolRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.netapp.v1.CreateStoragePoolRequest) return object; - var message = new $root.google.cloud.netapp.v1.MonthlySchedule(); - if (object.snapshotsToKeep != null) - message.snapshotsToKeep = Number(object.snapshotsToKeep); - if (object.minute != null) - message.minute = Number(object.minute); - if (object.hour != null) - message.hour = Number(object.hour); - if (object.daysOfMonth != null) - message.daysOfMonth = String(object.daysOfMonth); + var message = new $root.google.cloud.netapp.v1.CreateStoragePoolRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.storagePoolId != null) + message.storagePoolId = String(object.storagePoolId); + if (object.storagePool != null) { + if (typeof object.storagePool !== "object") + throw TypeError(".google.cloud.netapp.v1.CreateStoragePoolRequest.storagePool: object expected"); + message.storagePool = $root.google.cloud.netapp.v1.StoragePool.fromObject(object.storagePool); + } return message; }; /** - * Creates a plain object from a MonthlySchedule message. Also converts values to other types if specified. + * Creates a plain object from a CreateStoragePoolRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.netapp.v1.MonthlySchedule + * @memberof google.cloud.netapp.v1.CreateStoragePoolRequest * @static - * @param {google.cloud.netapp.v1.MonthlySchedule} message MonthlySchedule + * @param {google.cloud.netapp.v1.CreateStoragePoolRequest} message CreateStoragePoolRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MonthlySchedule.toObject = function toObject(message, options) { + CreateStoragePoolRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (message.snapshotsToKeep != null && message.hasOwnProperty("snapshotsToKeep")) { - object.snapshotsToKeep = options.json && !isFinite(message.snapshotsToKeep) ? String(message.snapshotsToKeep) : message.snapshotsToKeep; - if (options.oneofs) - object._snapshotsToKeep = "snapshotsToKeep"; - } - if (message.minute != null && message.hasOwnProperty("minute")) { - object.minute = options.json && !isFinite(message.minute) ? String(message.minute) : message.minute; - if (options.oneofs) - object._minute = "minute"; - } - if (message.hour != null && message.hasOwnProperty("hour")) { - object.hour = options.json && !isFinite(message.hour) ? String(message.hour) : message.hour; - if (options.oneofs) - object._hour = "hour"; - } - if (message.daysOfMonth != null && message.hasOwnProperty("daysOfMonth")) { - object.daysOfMonth = message.daysOfMonth; - if (options.oneofs) - object._daysOfMonth = "daysOfMonth"; + if (options.defaults) { + object.parent = ""; + object.storagePoolId = ""; + object.storagePool = null; } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.storagePoolId != null && message.hasOwnProperty("storagePoolId")) + object.storagePoolId = message.storagePoolId; + if (message.storagePool != null && message.hasOwnProperty("storagePool")) + object.storagePool = $root.google.cloud.netapp.v1.StoragePool.toObject(message.storagePool, options); return object; }; /** - * Converts this MonthlySchedule to JSON. + * Converts this CreateStoragePoolRequest to JSON. * @function toJSON - * @memberof google.cloud.netapp.v1.MonthlySchedule + * @memberof google.cloud.netapp.v1.CreateStoragePoolRequest * @instance * @returns {Object.} JSON object */ - MonthlySchedule.prototype.toJSON = function toJSON() { + CreateStoragePoolRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for MonthlySchedule + * Gets the default type url for CreateStoragePoolRequest * @function getTypeUrl - * @memberof google.cloud.netapp.v1.MonthlySchedule + * @memberof google.cloud.netapp.v1.CreateStoragePoolRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - MonthlySchedule.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CreateStoragePoolRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.netapp.v1.MonthlySchedule"; + return typeUrlPrefix + "/google.cloud.netapp.v1.CreateStoragePoolRequest"; }; - return MonthlySchedule; + return CreateStoragePoolRequest; })(); - v1.MountOption = (function() { + v1.UpdateStoragePoolRequest = (function() { /** - * Properties of a MountOption. + * Properties of an UpdateStoragePoolRequest. * @memberof google.cloud.netapp.v1 - * @interface IMountOption - * @property {string|null} ["export"] MountOption export - * @property {string|null} [exportFull] MountOption exportFull - * @property {google.cloud.netapp.v1.Protocols|null} [protocol] MountOption protocol - * @property {string|null} [instructions] MountOption instructions + * @interface IUpdateStoragePoolRequest + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateStoragePoolRequest updateMask + * @property {google.cloud.netapp.v1.IStoragePool|null} [storagePool] UpdateStoragePoolRequest storagePool */ /** - * Constructs a new MountOption. + * Constructs a new UpdateStoragePoolRequest. * @memberof google.cloud.netapp.v1 - * @classdesc Represents a MountOption. - * @implements IMountOption + * @classdesc Represents an UpdateStoragePoolRequest. + * @implements IUpdateStoragePoolRequest * @constructor - * @param {google.cloud.netapp.v1.IMountOption=} [properties] Properties to set + * @param {google.cloud.netapp.v1.IUpdateStoragePoolRequest=} [properties] Properties to set */ - function MountOption(properties) { + function UpdateStoragePoolRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -27605,117 +28795,89 @@ } /** - * MountOption export. - * @member {string} export - * @memberof google.cloud.netapp.v1.MountOption - * @instance - */ - MountOption.prototype["export"] = ""; - - /** - * MountOption exportFull. - * @member {string} exportFull - * @memberof google.cloud.netapp.v1.MountOption - * @instance - */ - MountOption.prototype.exportFull = ""; - - /** - * MountOption protocol. - * @member {google.cloud.netapp.v1.Protocols} protocol - * @memberof google.cloud.netapp.v1.MountOption + * UpdateStoragePoolRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.cloud.netapp.v1.UpdateStoragePoolRequest * @instance */ - MountOption.prototype.protocol = 0; + UpdateStoragePoolRequest.prototype.updateMask = null; /** - * MountOption instructions. - * @member {string} instructions - * @memberof google.cloud.netapp.v1.MountOption + * UpdateStoragePoolRequest storagePool. + * @member {google.cloud.netapp.v1.IStoragePool|null|undefined} storagePool + * @memberof google.cloud.netapp.v1.UpdateStoragePoolRequest * @instance */ - MountOption.prototype.instructions = ""; + UpdateStoragePoolRequest.prototype.storagePool = null; /** - * Creates a new MountOption instance using the specified properties. + * Creates a new UpdateStoragePoolRequest instance using the specified properties. * @function create - * @memberof google.cloud.netapp.v1.MountOption + * @memberof google.cloud.netapp.v1.UpdateStoragePoolRequest * @static - * @param {google.cloud.netapp.v1.IMountOption=} [properties] Properties to set - * @returns {google.cloud.netapp.v1.MountOption} MountOption instance + * @param {google.cloud.netapp.v1.IUpdateStoragePoolRequest=} [properties] Properties to set + * @returns {google.cloud.netapp.v1.UpdateStoragePoolRequest} UpdateStoragePoolRequest instance */ - MountOption.create = function create(properties) { - return new MountOption(properties); + UpdateStoragePoolRequest.create = function create(properties) { + return new UpdateStoragePoolRequest(properties); }; /** - * Encodes the specified MountOption message. Does not implicitly {@link google.cloud.netapp.v1.MountOption.verify|verify} messages. + * Encodes the specified UpdateStoragePoolRequest message. Does not implicitly {@link google.cloud.netapp.v1.UpdateStoragePoolRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.netapp.v1.MountOption + * @memberof google.cloud.netapp.v1.UpdateStoragePoolRequest * @static - * @param {google.cloud.netapp.v1.IMountOption} message MountOption message or plain object to encode + * @param {google.cloud.netapp.v1.IUpdateStoragePoolRequest} message UpdateStoragePoolRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MountOption.encode = function encode(message, writer) { + UpdateStoragePoolRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message["export"] != null && Object.hasOwnProperty.call(message, "export")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message["export"]); - if (message.exportFull != null && Object.hasOwnProperty.call(message, "exportFull")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.exportFull); - if (message.protocol != null && Object.hasOwnProperty.call(message, "protocol")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.protocol); - if (message.instructions != null && Object.hasOwnProperty.call(message, "instructions")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.instructions); + if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) + $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.storagePool != null && Object.hasOwnProperty.call(message, "storagePool")) + $root.google.cloud.netapp.v1.StoragePool.encode(message.storagePool, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified MountOption message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.MountOption.verify|verify} messages. + * Encodes the specified UpdateStoragePoolRequest message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.UpdateStoragePoolRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.netapp.v1.MountOption + * @memberof google.cloud.netapp.v1.UpdateStoragePoolRequest * @static - * @param {google.cloud.netapp.v1.IMountOption} message MountOption message or plain object to encode + * @param {google.cloud.netapp.v1.IUpdateStoragePoolRequest} message UpdateStoragePoolRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MountOption.encodeDelimited = function encodeDelimited(message, writer) { + UpdateStoragePoolRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MountOption message from the specified reader or buffer. + * Decodes an UpdateStoragePoolRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.netapp.v1.MountOption + * @memberof google.cloud.netapp.v1.UpdateStoragePoolRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.netapp.v1.MountOption} MountOption + * @returns {google.cloud.netapp.v1.UpdateStoragePoolRequest} UpdateStoragePoolRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MountOption.decode = function decode(reader, length) { + UpdateStoragePoolRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.netapp.v1.MountOption(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.netapp.v1.UpdateStoragePoolRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message["export"] = reader.string(); + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; } case 2: { - message.exportFull = reader.string(); - break; - } - case 3: { - message.protocol = reader.int32(); - break; - } - case 4: { - message.instructions = reader.string(); + message.storagePool = $root.google.cloud.netapp.v1.StoragePool.decode(reader, reader.uint32()); break; } default: @@ -27727,177 +28889,141 @@ }; /** - * Decodes a MountOption message from the specified reader or buffer, length delimited. + * Decodes an UpdateStoragePoolRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.netapp.v1.MountOption + * @memberof google.cloud.netapp.v1.UpdateStoragePoolRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.netapp.v1.MountOption} MountOption + * @returns {google.cloud.netapp.v1.UpdateStoragePoolRequest} UpdateStoragePoolRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MountOption.decodeDelimited = function decodeDelimited(reader) { + UpdateStoragePoolRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MountOption message. - * @function verify - * @memberof google.cloud.netapp.v1.MountOption - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - MountOption.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message["export"] != null && message.hasOwnProperty("export")) - if (!$util.isString(message["export"])) - return "export: string expected"; - if (message.exportFull != null && message.hasOwnProperty("exportFull")) - if (!$util.isString(message.exportFull)) - return "exportFull: string expected"; - if (message.protocol != null && message.hasOwnProperty("protocol")) - switch (message.protocol) { - default: - return "protocol: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; - } - if (message.instructions != null && message.hasOwnProperty("instructions")) - if (!$util.isString(message.instructions)) - return "instructions: string expected"; + * Verifies an UpdateStoragePoolRequest message. + * @function verify + * @memberof google.cloud.netapp.v1.UpdateStoragePoolRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + UpdateStoragePoolRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.updateMask); + if (error) + return "updateMask." + error; + } + if (message.storagePool != null && message.hasOwnProperty("storagePool")) { + var error = $root.google.cloud.netapp.v1.StoragePool.verify(message.storagePool); + if (error) + return "storagePool." + error; + } return null; }; /** - * Creates a MountOption message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateStoragePoolRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.netapp.v1.MountOption + * @memberof google.cloud.netapp.v1.UpdateStoragePoolRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.netapp.v1.MountOption} MountOption + * @returns {google.cloud.netapp.v1.UpdateStoragePoolRequest} UpdateStoragePoolRequest */ - MountOption.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.netapp.v1.MountOption) + UpdateStoragePoolRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.netapp.v1.UpdateStoragePoolRequest) return object; - var message = new $root.google.cloud.netapp.v1.MountOption(); - if (object["export"] != null) - message["export"] = String(object["export"]); - if (object.exportFull != null) - message.exportFull = String(object.exportFull); - switch (object.protocol) { - default: - if (typeof object.protocol === "number") { - message.protocol = object.protocol; - break; - } - break; - case "PROTOCOLS_UNSPECIFIED": - case 0: - message.protocol = 0; - break; - case "NFSV3": - case 1: - message.protocol = 1; - break; - case "NFSV4": - case 2: - message.protocol = 2; - break; - case "SMB": - case 3: - message.protocol = 3; - break; + var message = new $root.google.cloud.netapp.v1.UpdateStoragePoolRequest(); + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.cloud.netapp.v1.UpdateStoragePoolRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + } + if (object.storagePool != null) { + if (typeof object.storagePool !== "object") + throw TypeError(".google.cloud.netapp.v1.UpdateStoragePoolRequest.storagePool: object expected"); + message.storagePool = $root.google.cloud.netapp.v1.StoragePool.fromObject(object.storagePool); } - if (object.instructions != null) - message.instructions = String(object.instructions); return message; }; /** - * Creates a plain object from a MountOption message. Also converts values to other types if specified. + * Creates a plain object from an UpdateStoragePoolRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.netapp.v1.MountOption + * @memberof google.cloud.netapp.v1.UpdateStoragePoolRequest * @static - * @param {google.cloud.netapp.v1.MountOption} message MountOption + * @param {google.cloud.netapp.v1.UpdateStoragePoolRequest} message UpdateStoragePoolRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MountOption.toObject = function toObject(message, options) { + UpdateStoragePoolRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object["export"] = ""; - object.exportFull = ""; - object.protocol = options.enums === String ? "PROTOCOLS_UNSPECIFIED" : 0; - object.instructions = ""; + object.updateMask = null; + object.storagePool = null; } - if (message["export"] != null && message.hasOwnProperty("export")) - object["export"] = message["export"]; - if (message.exportFull != null && message.hasOwnProperty("exportFull")) - object.exportFull = message.exportFull; - if (message.protocol != null && message.hasOwnProperty("protocol")) - object.protocol = options.enums === String ? $root.google.cloud.netapp.v1.Protocols[message.protocol] === undefined ? message.protocol : $root.google.cloud.netapp.v1.Protocols[message.protocol] : message.protocol; - if (message.instructions != null && message.hasOwnProperty("instructions")) - object.instructions = message.instructions; + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + if (message.storagePool != null && message.hasOwnProperty("storagePool")) + object.storagePool = $root.google.cloud.netapp.v1.StoragePool.toObject(message.storagePool, options); return object; }; /** - * Converts this MountOption to JSON. + * Converts this UpdateStoragePoolRequest to JSON. * @function toJSON - * @memberof google.cloud.netapp.v1.MountOption + * @memberof google.cloud.netapp.v1.UpdateStoragePoolRequest * @instance * @returns {Object.} JSON object */ - MountOption.prototype.toJSON = function toJSON() { + UpdateStoragePoolRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for MountOption + * Gets the default type url for UpdateStoragePoolRequest * @function getTypeUrl - * @memberof google.cloud.netapp.v1.MountOption + * @memberof google.cloud.netapp.v1.UpdateStoragePoolRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - MountOption.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + UpdateStoragePoolRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.netapp.v1.MountOption"; + return typeUrlPrefix + "/google.cloud.netapp.v1.UpdateStoragePoolRequest"; }; - return MountOption; + return UpdateStoragePoolRequest; })(); - v1.RestoreParameters = (function() { + v1.DeleteStoragePoolRequest = (function() { /** - * Properties of a RestoreParameters. + * Properties of a DeleteStoragePoolRequest. * @memberof google.cloud.netapp.v1 - * @interface IRestoreParameters - * @property {string|null} [sourceSnapshot] RestoreParameters sourceSnapshot - * @property {string|null} [sourceBackup] RestoreParameters sourceBackup + * @interface IDeleteStoragePoolRequest + * @property {string|null} [name] DeleteStoragePoolRequest name */ /** - * Constructs a new RestoreParameters. + * Constructs a new DeleteStoragePoolRequest. * @memberof google.cloud.netapp.v1 - * @classdesc Represents a RestoreParameters. - * @implements IRestoreParameters + * @classdesc Represents a DeleteStoragePoolRequest. + * @implements IDeleteStoragePoolRequest * @constructor - * @param {google.cloud.netapp.v1.IRestoreParameters=} [properties] Properties to set + * @param {google.cloud.netapp.v1.IDeleteStoragePoolRequest=} [properties] Properties to set */ - function RestoreParameters(properties) { + function DeleteStoragePoolRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -27905,103 +29031,75 @@ } /** - * RestoreParameters sourceSnapshot. - * @member {string|null|undefined} sourceSnapshot - * @memberof google.cloud.netapp.v1.RestoreParameters - * @instance - */ - RestoreParameters.prototype.sourceSnapshot = null; - - /** - * RestoreParameters sourceBackup. - * @member {string|null|undefined} sourceBackup - * @memberof google.cloud.netapp.v1.RestoreParameters - * @instance - */ - RestoreParameters.prototype.sourceBackup = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * RestoreParameters source. - * @member {"sourceSnapshot"|"sourceBackup"|undefined} source - * @memberof google.cloud.netapp.v1.RestoreParameters + * DeleteStoragePoolRequest name. + * @member {string} name + * @memberof google.cloud.netapp.v1.DeleteStoragePoolRequest * @instance */ - Object.defineProperty(RestoreParameters.prototype, "source", { - get: $util.oneOfGetter($oneOfFields = ["sourceSnapshot", "sourceBackup"]), - set: $util.oneOfSetter($oneOfFields) - }); + DeleteStoragePoolRequest.prototype.name = ""; /** - * Creates a new RestoreParameters instance using the specified properties. + * Creates a new DeleteStoragePoolRequest instance using the specified properties. * @function create - * @memberof google.cloud.netapp.v1.RestoreParameters + * @memberof google.cloud.netapp.v1.DeleteStoragePoolRequest * @static - * @param {google.cloud.netapp.v1.IRestoreParameters=} [properties] Properties to set - * @returns {google.cloud.netapp.v1.RestoreParameters} RestoreParameters instance + * @param {google.cloud.netapp.v1.IDeleteStoragePoolRequest=} [properties] Properties to set + * @returns {google.cloud.netapp.v1.DeleteStoragePoolRequest} DeleteStoragePoolRequest instance */ - RestoreParameters.create = function create(properties) { - return new RestoreParameters(properties); + DeleteStoragePoolRequest.create = function create(properties) { + return new DeleteStoragePoolRequest(properties); }; /** - * Encodes the specified RestoreParameters message. Does not implicitly {@link google.cloud.netapp.v1.RestoreParameters.verify|verify} messages. + * Encodes the specified DeleteStoragePoolRequest message. Does not implicitly {@link google.cloud.netapp.v1.DeleteStoragePoolRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.netapp.v1.RestoreParameters + * @memberof google.cloud.netapp.v1.DeleteStoragePoolRequest * @static - * @param {google.cloud.netapp.v1.IRestoreParameters} message RestoreParameters message or plain object to encode + * @param {google.cloud.netapp.v1.IDeleteStoragePoolRequest} message DeleteStoragePoolRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RestoreParameters.encode = function encode(message, writer) { + DeleteStoragePoolRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.sourceSnapshot != null && Object.hasOwnProperty.call(message, "sourceSnapshot")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.sourceSnapshot); - if (message.sourceBackup != null && Object.hasOwnProperty.call(message, "sourceBackup")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.sourceBackup); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified RestoreParameters message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.RestoreParameters.verify|verify} messages. + * Encodes the specified DeleteStoragePoolRequest message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.DeleteStoragePoolRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.netapp.v1.RestoreParameters + * @memberof google.cloud.netapp.v1.DeleteStoragePoolRequest * @static - * @param {google.cloud.netapp.v1.IRestoreParameters} message RestoreParameters message or plain object to encode + * @param {google.cloud.netapp.v1.IDeleteStoragePoolRequest} message DeleteStoragePoolRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RestoreParameters.encodeDelimited = function encodeDelimited(message, writer) { + DeleteStoragePoolRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RestoreParameters message from the specified reader or buffer. + * Decodes a DeleteStoragePoolRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.netapp.v1.RestoreParameters + * @memberof google.cloud.netapp.v1.DeleteStoragePoolRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.netapp.v1.RestoreParameters} RestoreParameters + * @returns {google.cloud.netapp.v1.DeleteStoragePoolRequest} DeleteStoragePoolRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RestoreParameters.decode = function decode(reader, length) { + DeleteStoragePoolRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.netapp.v1.RestoreParameters(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.netapp.v1.DeleteStoragePoolRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.sourceSnapshot = reader.string(); - break; - } - case 2: { - message.sourceBackup = reader.string(); + message.name = reader.string(); break; } default: @@ -28013,144 +29111,122 @@ }; /** - * Decodes a RestoreParameters message from the specified reader or buffer, length delimited. + * Decodes a DeleteStoragePoolRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.netapp.v1.RestoreParameters + * @memberof google.cloud.netapp.v1.DeleteStoragePoolRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.netapp.v1.RestoreParameters} RestoreParameters + * @returns {google.cloud.netapp.v1.DeleteStoragePoolRequest} DeleteStoragePoolRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RestoreParameters.decodeDelimited = function decodeDelimited(reader) { + DeleteStoragePoolRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RestoreParameters message. + * Verifies a DeleteStoragePoolRequest message. * @function verify - * @memberof google.cloud.netapp.v1.RestoreParameters + * @memberof google.cloud.netapp.v1.DeleteStoragePoolRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RestoreParameters.verify = function verify(message) { + DeleteStoragePoolRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.sourceSnapshot != null && message.hasOwnProperty("sourceSnapshot")) { - properties.source = 1; - if (!$util.isString(message.sourceSnapshot)) - return "sourceSnapshot: string expected"; - } - if (message.sourceBackup != null && message.hasOwnProperty("sourceBackup")) { - if (properties.source === 1) - return "source: multiple values"; - properties.source = 1; - if (!$util.isString(message.sourceBackup)) - return "sourceBackup: string expected"; - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a RestoreParameters message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteStoragePoolRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.netapp.v1.RestoreParameters + * @memberof google.cloud.netapp.v1.DeleteStoragePoolRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.netapp.v1.RestoreParameters} RestoreParameters + * @returns {google.cloud.netapp.v1.DeleteStoragePoolRequest} DeleteStoragePoolRequest */ - RestoreParameters.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.netapp.v1.RestoreParameters) + DeleteStoragePoolRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.netapp.v1.DeleteStoragePoolRequest) return object; - var message = new $root.google.cloud.netapp.v1.RestoreParameters(); - if (object.sourceSnapshot != null) - message.sourceSnapshot = String(object.sourceSnapshot); - if (object.sourceBackup != null) - message.sourceBackup = String(object.sourceBackup); + var message = new $root.google.cloud.netapp.v1.DeleteStoragePoolRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a RestoreParameters message. Also converts values to other types if specified. + * Creates a plain object from a DeleteStoragePoolRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.netapp.v1.RestoreParameters + * @memberof google.cloud.netapp.v1.DeleteStoragePoolRequest * @static - * @param {google.cloud.netapp.v1.RestoreParameters} message RestoreParameters + * @param {google.cloud.netapp.v1.DeleteStoragePoolRequest} message DeleteStoragePoolRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RestoreParameters.toObject = function toObject(message, options) { + DeleteStoragePoolRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (message.sourceSnapshot != null && message.hasOwnProperty("sourceSnapshot")) { - object.sourceSnapshot = message.sourceSnapshot; - if (options.oneofs) - object.source = "sourceSnapshot"; - } - if (message.sourceBackup != null && message.hasOwnProperty("sourceBackup")) { - object.sourceBackup = message.sourceBackup; - if (options.oneofs) - object.source = "sourceBackup"; - } + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this RestoreParameters to JSON. + * Converts this DeleteStoragePoolRequest to JSON. * @function toJSON - * @memberof google.cloud.netapp.v1.RestoreParameters + * @memberof google.cloud.netapp.v1.DeleteStoragePoolRequest * @instance * @returns {Object.} JSON object */ - RestoreParameters.prototype.toJSON = function toJSON() { + DeleteStoragePoolRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for RestoreParameters + * Gets the default type url for DeleteStoragePoolRequest * @function getTypeUrl - * @memberof google.cloud.netapp.v1.RestoreParameters + * @memberof google.cloud.netapp.v1.DeleteStoragePoolRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - RestoreParameters.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + DeleteStoragePoolRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.netapp.v1.RestoreParameters"; + return typeUrlPrefix + "/google.cloud.netapp.v1.DeleteStoragePoolRequest"; }; - return RestoreParameters; + return DeleteStoragePoolRequest; })(); - v1.BackupConfig = (function() { + v1.SwitchActiveReplicaZoneRequest = (function() { /** - * Properties of a BackupConfig. + * Properties of a SwitchActiveReplicaZoneRequest. * @memberof google.cloud.netapp.v1 - * @interface IBackupConfig - * @property {Array.|null} [backupPolicies] BackupConfig backupPolicies - * @property {string|null} [backupVault] BackupConfig backupVault - * @property {boolean|null} [scheduledBackupEnabled] BackupConfig scheduledBackupEnabled - * @property {number|Long|null} [backupChainBytes] BackupConfig backupChainBytes + * @interface ISwitchActiveReplicaZoneRequest + * @property {string|null} [name] SwitchActiveReplicaZoneRequest name */ /** - * Constructs a new BackupConfig. + * Constructs a new SwitchActiveReplicaZoneRequest. * @memberof google.cloud.netapp.v1 - * @classdesc Represents a BackupConfig. - * @implements IBackupConfig + * @classdesc Represents a SwitchActiveReplicaZoneRequest. + * @implements ISwitchActiveReplicaZoneRequest * @constructor - * @param {google.cloud.netapp.v1.IBackupConfig=} [properties] Properties to set + * @param {google.cloud.netapp.v1.ISwitchActiveReplicaZoneRequest=} [properties] Properties to set */ - function BackupConfig(properties) { - this.backupPolicies = []; + function SwitchActiveReplicaZoneRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -28158,145 +29234,75 @@ } /** - * BackupConfig backupPolicies. - * @member {Array.} backupPolicies - * @memberof google.cloud.netapp.v1.BackupConfig - * @instance - */ - BackupConfig.prototype.backupPolicies = $util.emptyArray; - - /** - * BackupConfig backupVault. - * @member {string} backupVault - * @memberof google.cloud.netapp.v1.BackupConfig - * @instance - */ - BackupConfig.prototype.backupVault = ""; - - /** - * BackupConfig scheduledBackupEnabled. - * @member {boolean|null|undefined} scheduledBackupEnabled - * @memberof google.cloud.netapp.v1.BackupConfig - * @instance - */ - BackupConfig.prototype.scheduledBackupEnabled = null; - - /** - * BackupConfig backupChainBytes. - * @member {number|Long|null|undefined} backupChainBytes - * @memberof google.cloud.netapp.v1.BackupConfig - * @instance - */ - BackupConfig.prototype.backupChainBytes = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * BackupConfig _scheduledBackupEnabled. - * @member {"scheduledBackupEnabled"|undefined} _scheduledBackupEnabled - * @memberof google.cloud.netapp.v1.BackupConfig - * @instance - */ - Object.defineProperty(BackupConfig.prototype, "_scheduledBackupEnabled", { - get: $util.oneOfGetter($oneOfFields = ["scheduledBackupEnabled"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * BackupConfig _backupChainBytes. - * @member {"backupChainBytes"|undefined} _backupChainBytes - * @memberof google.cloud.netapp.v1.BackupConfig + * SwitchActiveReplicaZoneRequest name. + * @member {string} name + * @memberof google.cloud.netapp.v1.SwitchActiveReplicaZoneRequest * @instance */ - Object.defineProperty(BackupConfig.prototype, "_backupChainBytes", { - get: $util.oneOfGetter($oneOfFields = ["backupChainBytes"]), - set: $util.oneOfSetter($oneOfFields) - }); + SwitchActiveReplicaZoneRequest.prototype.name = ""; /** - * Creates a new BackupConfig instance using the specified properties. + * Creates a new SwitchActiveReplicaZoneRequest instance using the specified properties. * @function create - * @memberof google.cloud.netapp.v1.BackupConfig + * @memberof google.cloud.netapp.v1.SwitchActiveReplicaZoneRequest * @static - * @param {google.cloud.netapp.v1.IBackupConfig=} [properties] Properties to set - * @returns {google.cloud.netapp.v1.BackupConfig} BackupConfig instance + * @param {google.cloud.netapp.v1.ISwitchActiveReplicaZoneRequest=} [properties] Properties to set + * @returns {google.cloud.netapp.v1.SwitchActiveReplicaZoneRequest} SwitchActiveReplicaZoneRequest instance */ - BackupConfig.create = function create(properties) { - return new BackupConfig(properties); + SwitchActiveReplicaZoneRequest.create = function create(properties) { + return new SwitchActiveReplicaZoneRequest(properties); }; /** - * Encodes the specified BackupConfig message. Does not implicitly {@link google.cloud.netapp.v1.BackupConfig.verify|verify} messages. + * Encodes the specified SwitchActiveReplicaZoneRequest message. Does not implicitly {@link google.cloud.netapp.v1.SwitchActiveReplicaZoneRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.netapp.v1.BackupConfig + * @memberof google.cloud.netapp.v1.SwitchActiveReplicaZoneRequest * @static - * @param {google.cloud.netapp.v1.IBackupConfig} message BackupConfig message or plain object to encode + * @param {google.cloud.netapp.v1.ISwitchActiveReplicaZoneRequest} message SwitchActiveReplicaZoneRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BackupConfig.encode = function encode(message, writer) { + SwitchActiveReplicaZoneRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.backupPolicies != null && message.backupPolicies.length) - for (var i = 0; i < message.backupPolicies.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.backupPolicies[i]); - if (message.backupVault != null && Object.hasOwnProperty.call(message, "backupVault")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.backupVault); - if (message.scheduledBackupEnabled != null && Object.hasOwnProperty.call(message, "scheduledBackupEnabled")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.scheduledBackupEnabled); - if (message.backupChainBytes != null && Object.hasOwnProperty.call(message, "backupChainBytes")) - writer.uint32(/* id 4, wireType 0 =*/32).int64(message.backupChainBytes); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified BackupConfig message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.BackupConfig.verify|verify} messages. + * Encodes the specified SwitchActiveReplicaZoneRequest message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.SwitchActiveReplicaZoneRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.netapp.v1.BackupConfig + * @memberof google.cloud.netapp.v1.SwitchActiveReplicaZoneRequest * @static - * @param {google.cloud.netapp.v1.IBackupConfig} message BackupConfig message or plain object to encode + * @param {google.cloud.netapp.v1.ISwitchActiveReplicaZoneRequest} message SwitchActiveReplicaZoneRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BackupConfig.encodeDelimited = function encodeDelimited(message, writer) { + SwitchActiveReplicaZoneRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a BackupConfig message from the specified reader or buffer. + * Decodes a SwitchActiveReplicaZoneRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.netapp.v1.BackupConfig + * @memberof google.cloud.netapp.v1.SwitchActiveReplicaZoneRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.netapp.v1.BackupConfig} BackupConfig + * @returns {google.cloud.netapp.v1.SwitchActiveReplicaZoneRequest} SwitchActiveReplicaZoneRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BackupConfig.decode = function decode(reader, length) { + SwitchActiveReplicaZoneRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.netapp.v1.BackupConfig(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.netapp.v1.SwitchActiveReplicaZoneRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.backupPolicies && message.backupPolicies.length)) - message.backupPolicies = []; - message.backupPolicies.push(reader.string()); - break; - } - case 2: { - message.backupVault = reader.string(); - break; - } - case 3: { - message.scheduledBackupEnabled = reader.bool(); - break; - } - case 4: { - message.backupChainBytes = reader.int64(); + message.name = reader.string(); break; } default: @@ -28308,179 +29314,142 @@ }; /** - * Decodes a BackupConfig message from the specified reader or buffer, length delimited. + * Decodes a SwitchActiveReplicaZoneRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.netapp.v1.BackupConfig + * @memberof google.cloud.netapp.v1.SwitchActiveReplicaZoneRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.netapp.v1.BackupConfig} BackupConfig + * @returns {google.cloud.netapp.v1.SwitchActiveReplicaZoneRequest} SwitchActiveReplicaZoneRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BackupConfig.decodeDelimited = function decodeDelimited(reader) { + SwitchActiveReplicaZoneRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a BackupConfig message. + * Verifies a SwitchActiveReplicaZoneRequest message. * @function verify - * @memberof google.cloud.netapp.v1.BackupConfig + * @memberof google.cloud.netapp.v1.SwitchActiveReplicaZoneRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - BackupConfig.verify = function verify(message) { + SwitchActiveReplicaZoneRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.backupPolicies != null && message.hasOwnProperty("backupPolicies")) { - if (!Array.isArray(message.backupPolicies)) - return "backupPolicies: array expected"; - for (var i = 0; i < message.backupPolicies.length; ++i) - if (!$util.isString(message.backupPolicies[i])) - return "backupPolicies: string[] expected"; - } - if (message.backupVault != null && message.hasOwnProperty("backupVault")) - if (!$util.isString(message.backupVault)) - return "backupVault: string expected"; - if (message.scheduledBackupEnabled != null && message.hasOwnProperty("scheduledBackupEnabled")) { - properties._scheduledBackupEnabled = 1; - if (typeof message.scheduledBackupEnabled !== "boolean") - return "scheduledBackupEnabled: boolean expected"; - } - if (message.backupChainBytes != null && message.hasOwnProperty("backupChainBytes")) { - properties._backupChainBytes = 1; - if (!$util.isInteger(message.backupChainBytes) && !(message.backupChainBytes && $util.isInteger(message.backupChainBytes.low) && $util.isInteger(message.backupChainBytes.high))) - return "backupChainBytes: integer|Long expected"; - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a BackupConfig message from a plain object. Also converts values to their respective internal types. + * Creates a SwitchActiveReplicaZoneRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.netapp.v1.BackupConfig + * @memberof google.cloud.netapp.v1.SwitchActiveReplicaZoneRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.netapp.v1.BackupConfig} BackupConfig + * @returns {google.cloud.netapp.v1.SwitchActiveReplicaZoneRequest} SwitchActiveReplicaZoneRequest */ - BackupConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.netapp.v1.BackupConfig) + SwitchActiveReplicaZoneRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.netapp.v1.SwitchActiveReplicaZoneRequest) return object; - var message = new $root.google.cloud.netapp.v1.BackupConfig(); - if (object.backupPolicies) { - if (!Array.isArray(object.backupPolicies)) - throw TypeError(".google.cloud.netapp.v1.BackupConfig.backupPolicies: array expected"); - message.backupPolicies = []; - for (var i = 0; i < object.backupPolicies.length; ++i) - message.backupPolicies[i] = String(object.backupPolicies[i]); - } - if (object.backupVault != null) - message.backupVault = String(object.backupVault); - if (object.scheduledBackupEnabled != null) - message.scheduledBackupEnabled = Boolean(object.scheduledBackupEnabled); - if (object.backupChainBytes != null) - if ($util.Long) - (message.backupChainBytes = $util.Long.fromValue(object.backupChainBytes)).unsigned = false; - else if (typeof object.backupChainBytes === "string") - message.backupChainBytes = parseInt(object.backupChainBytes, 10); - else if (typeof object.backupChainBytes === "number") - message.backupChainBytes = object.backupChainBytes; - else if (typeof object.backupChainBytes === "object") - message.backupChainBytes = new $util.LongBits(object.backupChainBytes.low >>> 0, object.backupChainBytes.high >>> 0).toNumber(); + var message = new $root.google.cloud.netapp.v1.SwitchActiveReplicaZoneRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a BackupConfig message. Also converts values to other types if specified. + * Creates a plain object from a SwitchActiveReplicaZoneRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.netapp.v1.BackupConfig + * @memberof google.cloud.netapp.v1.SwitchActiveReplicaZoneRequest * @static - * @param {google.cloud.netapp.v1.BackupConfig} message BackupConfig + * @param {google.cloud.netapp.v1.SwitchActiveReplicaZoneRequest} message SwitchActiveReplicaZoneRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - BackupConfig.toObject = function toObject(message, options) { + SwitchActiveReplicaZoneRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.backupPolicies = []; if (options.defaults) - object.backupVault = ""; - if (message.backupPolicies && message.backupPolicies.length) { - object.backupPolicies = []; - for (var j = 0; j < message.backupPolicies.length; ++j) - object.backupPolicies[j] = message.backupPolicies[j]; - } - if (message.backupVault != null && message.hasOwnProperty("backupVault")) - object.backupVault = message.backupVault; - if (message.scheduledBackupEnabled != null && message.hasOwnProperty("scheduledBackupEnabled")) { - object.scheduledBackupEnabled = message.scheduledBackupEnabled; - if (options.oneofs) - object._scheduledBackupEnabled = "scheduledBackupEnabled"; - } - if (message.backupChainBytes != null && message.hasOwnProperty("backupChainBytes")) { - if (typeof message.backupChainBytes === "number") - object.backupChainBytes = options.longs === String ? String(message.backupChainBytes) : message.backupChainBytes; - else - object.backupChainBytes = options.longs === String ? $util.Long.prototype.toString.call(message.backupChainBytes) : options.longs === Number ? new $util.LongBits(message.backupChainBytes.low >>> 0, message.backupChainBytes.high >>> 0).toNumber() : message.backupChainBytes; - if (options.oneofs) - object._backupChainBytes = "backupChainBytes"; - } + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this BackupConfig to JSON. + * Converts this SwitchActiveReplicaZoneRequest to JSON. * @function toJSON - * @memberof google.cloud.netapp.v1.BackupConfig + * @memberof google.cloud.netapp.v1.SwitchActiveReplicaZoneRequest * @instance * @returns {Object.} JSON object */ - BackupConfig.prototype.toJSON = function toJSON() { + SwitchActiveReplicaZoneRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for BackupConfig + * Gets the default type url for SwitchActiveReplicaZoneRequest * @function getTypeUrl - * @memberof google.cloud.netapp.v1.BackupConfig + * @memberof google.cloud.netapp.v1.SwitchActiveReplicaZoneRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - BackupConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + SwitchActiveReplicaZoneRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.netapp.v1.BackupConfig"; + return typeUrlPrefix + "/google.cloud.netapp.v1.SwitchActiveReplicaZoneRequest"; }; - return BackupConfig; + return SwitchActiveReplicaZoneRequest; })(); - v1.TieringPolicy = (function() { + v1.StoragePool = (function() { /** - * Properties of a TieringPolicy. + * Properties of a StoragePool. * @memberof google.cloud.netapp.v1 - * @interface ITieringPolicy - * @property {google.cloud.netapp.v1.TieringPolicy.TierAction|null} [tierAction] TieringPolicy tierAction - * @property {number|null} [coolingThresholdDays] TieringPolicy coolingThresholdDays + * @interface IStoragePool + * @property {string|null} [name] StoragePool name + * @property {google.cloud.netapp.v1.ServiceLevel|null} [serviceLevel] StoragePool serviceLevel + * @property {number|Long|null} [capacityGib] StoragePool capacityGib + * @property {number|Long|null} [volumeCapacityGib] StoragePool volumeCapacityGib + * @property {number|null} [volumeCount] StoragePool volumeCount + * @property {google.cloud.netapp.v1.StoragePool.State|null} [state] StoragePool state + * @property {string|null} [stateDetails] StoragePool stateDetails + * @property {google.protobuf.ITimestamp|null} [createTime] StoragePool createTime + * @property {string|null} [description] StoragePool description + * @property {Object.|null} [labels] StoragePool labels + * @property {string|null} [network] StoragePool network + * @property {string|null} [activeDirectory] StoragePool activeDirectory + * @property {string|null} [kmsConfig] StoragePool kmsConfig + * @property {boolean|null} [ldapEnabled] StoragePool ldapEnabled + * @property {string|null} [psaRange] StoragePool psaRange + * @property {google.cloud.netapp.v1.EncryptionType|null} [encryptionType] StoragePool encryptionType + * @property {boolean|null} [globalAccessAllowed] StoragePool globalAccessAllowed + * @property {boolean|null} [allowAutoTiering] StoragePool allowAutoTiering + * @property {string|null} [replicaZone] StoragePool replicaZone + * @property {string|null} [zone] StoragePool zone */ /** - * Constructs a new TieringPolicy. + * Constructs a new StoragePool. * @memberof google.cloud.netapp.v1 - * @classdesc Represents a TieringPolicy. - * @implements ITieringPolicy + * @classdesc Represents a StoragePool. + * @implements IStoragePool * @constructor - * @param {google.cloud.netapp.v1.ITieringPolicy=} [properties] Properties to set + * @param {google.cloud.netapp.v1.IStoragePool=} [properties] Properties to set */ - function TieringPolicy(properties) { + function StoragePool(properties) { + this.labels = {}; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -28488,114 +29457,375 @@ } /** - * TieringPolicy tierAction. - * @member {google.cloud.netapp.v1.TieringPolicy.TierAction|null|undefined} tierAction - * @memberof google.cloud.netapp.v1.TieringPolicy + * StoragePool name. + * @member {string} name + * @memberof google.cloud.netapp.v1.StoragePool * @instance */ - TieringPolicy.prototype.tierAction = null; + StoragePool.prototype.name = ""; /** - * TieringPolicy coolingThresholdDays. - * @member {number|null|undefined} coolingThresholdDays - * @memberof google.cloud.netapp.v1.TieringPolicy + * StoragePool serviceLevel. + * @member {google.cloud.netapp.v1.ServiceLevel} serviceLevel + * @memberof google.cloud.netapp.v1.StoragePool * @instance */ - TieringPolicy.prototype.coolingThresholdDays = null; + StoragePool.prototype.serviceLevel = 0; - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + /** + * StoragePool capacityGib. + * @member {number|Long} capacityGib + * @memberof google.cloud.netapp.v1.StoragePool + * @instance + */ + StoragePool.prototype.capacityGib = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * TieringPolicy _tierAction. - * @member {"tierAction"|undefined} _tierAction - * @memberof google.cloud.netapp.v1.TieringPolicy + * StoragePool volumeCapacityGib. + * @member {number|Long} volumeCapacityGib + * @memberof google.cloud.netapp.v1.StoragePool * @instance */ - Object.defineProperty(TieringPolicy.prototype, "_tierAction", { - get: $util.oneOfGetter($oneOfFields = ["tierAction"]), - set: $util.oneOfSetter($oneOfFields) - }); + StoragePool.prototype.volumeCapacityGib = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * TieringPolicy _coolingThresholdDays. - * @member {"coolingThresholdDays"|undefined} _coolingThresholdDays - * @memberof google.cloud.netapp.v1.TieringPolicy + * StoragePool volumeCount. + * @member {number} volumeCount + * @memberof google.cloud.netapp.v1.StoragePool * @instance */ - Object.defineProperty(TieringPolicy.prototype, "_coolingThresholdDays", { - get: $util.oneOfGetter($oneOfFields = ["coolingThresholdDays"]), + StoragePool.prototype.volumeCount = 0; + + /** + * StoragePool state. + * @member {google.cloud.netapp.v1.StoragePool.State} state + * @memberof google.cloud.netapp.v1.StoragePool + * @instance + */ + StoragePool.prototype.state = 0; + + /** + * StoragePool stateDetails. + * @member {string} stateDetails + * @memberof google.cloud.netapp.v1.StoragePool + * @instance + */ + StoragePool.prototype.stateDetails = ""; + + /** + * StoragePool createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.cloud.netapp.v1.StoragePool + * @instance + */ + StoragePool.prototype.createTime = null; + + /** + * StoragePool description. + * @member {string} description + * @memberof google.cloud.netapp.v1.StoragePool + * @instance + */ + StoragePool.prototype.description = ""; + + /** + * StoragePool labels. + * @member {Object.} labels + * @memberof google.cloud.netapp.v1.StoragePool + * @instance + */ + StoragePool.prototype.labels = $util.emptyObject; + + /** + * StoragePool network. + * @member {string} network + * @memberof google.cloud.netapp.v1.StoragePool + * @instance + */ + StoragePool.prototype.network = ""; + + /** + * StoragePool activeDirectory. + * @member {string} activeDirectory + * @memberof google.cloud.netapp.v1.StoragePool + * @instance + */ + StoragePool.prototype.activeDirectory = ""; + + /** + * StoragePool kmsConfig. + * @member {string} kmsConfig + * @memberof google.cloud.netapp.v1.StoragePool + * @instance + */ + StoragePool.prototype.kmsConfig = ""; + + /** + * StoragePool ldapEnabled. + * @member {boolean} ldapEnabled + * @memberof google.cloud.netapp.v1.StoragePool + * @instance + */ + StoragePool.prototype.ldapEnabled = false; + + /** + * StoragePool psaRange. + * @member {string} psaRange + * @memberof google.cloud.netapp.v1.StoragePool + * @instance + */ + StoragePool.prototype.psaRange = ""; + + /** + * StoragePool encryptionType. + * @member {google.cloud.netapp.v1.EncryptionType} encryptionType + * @memberof google.cloud.netapp.v1.StoragePool + * @instance + */ + StoragePool.prototype.encryptionType = 0; + + /** + * StoragePool globalAccessAllowed. + * @member {boolean|null|undefined} globalAccessAllowed + * @memberof google.cloud.netapp.v1.StoragePool + * @instance + */ + StoragePool.prototype.globalAccessAllowed = null; + + /** + * StoragePool allowAutoTiering. + * @member {boolean} allowAutoTiering + * @memberof google.cloud.netapp.v1.StoragePool + * @instance + */ + StoragePool.prototype.allowAutoTiering = false; + + /** + * StoragePool replicaZone. + * @member {string} replicaZone + * @memberof google.cloud.netapp.v1.StoragePool + * @instance + */ + StoragePool.prototype.replicaZone = ""; + + /** + * StoragePool zone. + * @member {string} zone + * @memberof google.cloud.netapp.v1.StoragePool + * @instance + */ + StoragePool.prototype.zone = ""; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * StoragePool _globalAccessAllowed. + * @member {"globalAccessAllowed"|undefined} _globalAccessAllowed + * @memberof google.cloud.netapp.v1.StoragePool + * @instance + */ + Object.defineProperty(StoragePool.prototype, "_globalAccessAllowed", { + get: $util.oneOfGetter($oneOfFields = ["globalAccessAllowed"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new TieringPolicy instance using the specified properties. + * Creates a new StoragePool instance using the specified properties. * @function create - * @memberof google.cloud.netapp.v1.TieringPolicy + * @memberof google.cloud.netapp.v1.StoragePool * @static - * @param {google.cloud.netapp.v1.ITieringPolicy=} [properties] Properties to set - * @returns {google.cloud.netapp.v1.TieringPolicy} TieringPolicy instance + * @param {google.cloud.netapp.v1.IStoragePool=} [properties] Properties to set + * @returns {google.cloud.netapp.v1.StoragePool} StoragePool instance */ - TieringPolicy.create = function create(properties) { - return new TieringPolicy(properties); + StoragePool.create = function create(properties) { + return new StoragePool(properties); }; /** - * Encodes the specified TieringPolicy message. Does not implicitly {@link google.cloud.netapp.v1.TieringPolicy.verify|verify} messages. + * Encodes the specified StoragePool message. Does not implicitly {@link google.cloud.netapp.v1.StoragePool.verify|verify} messages. * @function encode - * @memberof google.cloud.netapp.v1.TieringPolicy + * @memberof google.cloud.netapp.v1.StoragePool * @static - * @param {google.cloud.netapp.v1.ITieringPolicy} message TieringPolicy message or plain object to encode + * @param {google.cloud.netapp.v1.IStoragePool} message StoragePool message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TieringPolicy.encode = function encode(message, writer) { + StoragePool.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.tierAction != null && Object.hasOwnProperty.call(message, "tierAction")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.tierAction); - if (message.coolingThresholdDays != null && Object.hasOwnProperty.call(message, "coolingThresholdDays")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.coolingThresholdDays); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.serviceLevel != null && Object.hasOwnProperty.call(message, "serviceLevel")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.serviceLevel); + if (message.capacityGib != null && Object.hasOwnProperty.call(message, "capacityGib")) + writer.uint32(/* id 3, wireType 0 =*/24).int64(message.capacityGib); + if (message.volumeCapacityGib != null && Object.hasOwnProperty.call(message, "volumeCapacityGib")) + writer.uint32(/* id 4, wireType 0 =*/32).int64(message.volumeCapacityGib); + if (message.volumeCount != null && Object.hasOwnProperty.call(message, "volumeCount")) + writer.uint32(/* id 5, wireType 0 =*/40).int32(message.volumeCount); + if (message.state != null && Object.hasOwnProperty.call(message, "state")) + writer.uint32(/* id 6, wireType 0 =*/48).int32(message.state); + if (message.stateDetails != null && Object.hasOwnProperty.call(message, "stateDetails")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.stateDetails); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.description != null && Object.hasOwnProperty.call(message, "description")) + writer.uint32(/* id 9, wireType 2 =*/74).string(message.description); + if (message.labels != null && Object.hasOwnProperty.call(message, "labels")) + for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i) + writer.uint32(/* id 10, wireType 2 =*/82).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); + if (message.network != null && Object.hasOwnProperty.call(message, "network")) + writer.uint32(/* id 11, wireType 2 =*/90).string(message.network); + if (message.activeDirectory != null && Object.hasOwnProperty.call(message, "activeDirectory")) + writer.uint32(/* id 12, wireType 2 =*/98).string(message.activeDirectory); + if (message.kmsConfig != null && Object.hasOwnProperty.call(message, "kmsConfig")) + writer.uint32(/* id 13, wireType 2 =*/106).string(message.kmsConfig); + if (message.ldapEnabled != null && Object.hasOwnProperty.call(message, "ldapEnabled")) + writer.uint32(/* id 14, wireType 0 =*/112).bool(message.ldapEnabled); + if (message.psaRange != null && Object.hasOwnProperty.call(message, "psaRange")) + writer.uint32(/* id 15, wireType 2 =*/122).string(message.psaRange); + if (message.encryptionType != null && Object.hasOwnProperty.call(message, "encryptionType")) + writer.uint32(/* id 16, wireType 0 =*/128).int32(message.encryptionType); + if (message.globalAccessAllowed != null && Object.hasOwnProperty.call(message, "globalAccessAllowed")) + writer.uint32(/* id 17, wireType 0 =*/136).bool(message.globalAccessAllowed); + if (message.allowAutoTiering != null && Object.hasOwnProperty.call(message, "allowAutoTiering")) + writer.uint32(/* id 18, wireType 0 =*/144).bool(message.allowAutoTiering); + if (message.replicaZone != null && Object.hasOwnProperty.call(message, "replicaZone")) + writer.uint32(/* id 20, wireType 2 =*/162).string(message.replicaZone); + if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) + writer.uint32(/* id 21, wireType 2 =*/170).string(message.zone); return writer; }; /** - * Encodes the specified TieringPolicy message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.TieringPolicy.verify|verify} messages. + * Encodes the specified StoragePool message, length delimited. Does not implicitly {@link google.cloud.netapp.v1.StoragePool.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.netapp.v1.TieringPolicy + * @memberof google.cloud.netapp.v1.StoragePool * @static - * @param {google.cloud.netapp.v1.ITieringPolicy} message TieringPolicy message or plain object to encode + * @param {google.cloud.netapp.v1.IStoragePool} message StoragePool message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TieringPolicy.encodeDelimited = function encodeDelimited(message, writer) { + StoragePool.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TieringPolicy message from the specified reader or buffer. + * Decodes a StoragePool message from the specified reader or buffer. * @function decode - * @memberof google.cloud.netapp.v1.TieringPolicy + * @memberof google.cloud.netapp.v1.StoragePool * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.netapp.v1.TieringPolicy} TieringPolicy + * @returns {google.cloud.netapp.v1.StoragePool} StoragePool * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TieringPolicy.decode = function decode(reader, length) { + StoragePool.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.netapp.v1.TieringPolicy(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.netapp.v1.StoragePool(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.tierAction = reader.int32(); + message.name = reader.string(); break; } case 2: { - message.coolingThresholdDays = reader.int32(); + message.serviceLevel = reader.int32(); + break; + } + case 3: { + message.capacityGib = reader.int64(); + break; + } + case 4: { + message.volumeCapacityGib = reader.int64(); + break; + } + case 5: { + message.volumeCount = reader.int32(); + break; + } + case 6: { + message.state = reader.int32(); + break; + } + case 7: { + message.stateDetails = reader.string(); + break; + } + case 8: { + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 9: { + message.description = reader.string(); + break; + } + case 10: { + if (message.labels === $util.emptyObject) + message.labels = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.labels[key] = value; + break; + } + case 11: { + message.network = reader.string(); + break; + } + case 12: { + message.activeDirectory = reader.string(); + break; + } + case 13: { + message.kmsConfig = reader.string(); + break; + } + case 14: { + message.ldapEnabled = reader.bool(); + break; + } + case 15: { + message.psaRange = reader.string(); + break; + } + case 16: { + message.encryptionType = reader.int32(); + break; + } + case 17: { + message.globalAccessAllowed = reader.bool(); + break; + } + case 18: { + message.allowAutoTiering = reader.bool(); + break; + } + case 20: { + message.replicaZone = reader.string(); + break; + } + case 21: { + message.zone = reader.string(); break; } default: @@ -28607,158 +29837,441 @@ }; /** - * Decodes a TieringPolicy message from the specified reader or buffer, length delimited. + * Decodes a StoragePool message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.netapp.v1.TieringPolicy + * @memberof google.cloud.netapp.v1.StoragePool * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.netapp.v1.TieringPolicy} TieringPolicy + * @returns {google.cloud.netapp.v1.StoragePool} StoragePool * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TieringPolicy.decodeDelimited = function decodeDelimited(reader) { + StoragePool.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TieringPolicy message. + * Verifies a StoragePool message. * @function verify - * @memberof google.cloud.netapp.v1.TieringPolicy + * @memberof google.cloud.netapp.v1.StoragePool * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TieringPolicy.verify = function verify(message) { + StoragePool.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; - if (message.tierAction != null && message.hasOwnProperty("tierAction")) { - properties._tierAction = 1; - switch (message.tierAction) { + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.serviceLevel != null && message.hasOwnProperty("serviceLevel")) + switch (message.serviceLevel) { + default: + return "serviceLevel: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + break; + } + if (message.capacityGib != null && message.hasOwnProperty("capacityGib")) + if (!$util.isInteger(message.capacityGib) && !(message.capacityGib && $util.isInteger(message.capacityGib.low) && $util.isInteger(message.capacityGib.high))) + return "capacityGib: integer|Long expected"; + if (message.volumeCapacityGib != null && message.hasOwnProperty("volumeCapacityGib")) + if (!$util.isInteger(message.volumeCapacityGib) && !(message.volumeCapacityGib && $util.isInteger(message.volumeCapacityGib.low) && $util.isInteger(message.volumeCapacityGib.high))) + return "volumeCapacityGib: integer|Long expected"; + if (message.volumeCount != null && message.hasOwnProperty("volumeCount")) + if (!$util.isInteger(message.volumeCount)) + return "volumeCount: integer expected"; + if (message.state != null && message.hasOwnProperty("state")) + switch (message.state) { + default: + return "state: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + break; + } + if (message.stateDetails != null && message.hasOwnProperty("stateDetails")) + if (!$util.isString(message.stateDetails)) + return "stateDetails: string expected"; + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; + } + if (message.description != null && message.hasOwnProperty("description")) + if (!$util.isString(message.description)) + return "description: string expected"; + if (message.labels != null && message.hasOwnProperty("labels")) { + if (!$util.isObject(message.labels)) + return "labels: object expected"; + var key = Object.keys(message.labels); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.labels[key[i]])) + return "labels: string{k:string} expected"; + } + if (message.network != null && message.hasOwnProperty("network")) + if (!$util.isString(message.network)) + return "network: string expected"; + if (message.activeDirectory != null && message.hasOwnProperty("activeDirectory")) + if (!$util.isString(message.activeDirectory)) + return "activeDirectory: string expected"; + if (message.kmsConfig != null && message.hasOwnProperty("kmsConfig")) + if (!$util.isString(message.kmsConfig)) + return "kmsConfig: string expected"; + if (message.ldapEnabled != null && message.hasOwnProperty("ldapEnabled")) + if (typeof message.ldapEnabled !== "boolean") + return "ldapEnabled: boolean expected"; + if (message.psaRange != null && message.hasOwnProperty("psaRange")) + if (!$util.isString(message.psaRange)) + return "psaRange: string expected"; + if (message.encryptionType != null && message.hasOwnProperty("encryptionType")) + switch (message.encryptionType) { default: - return "tierAction: enum value expected"; + return "encryptionType: enum value expected"; case 0: case 1: case 2: break; } + if (message.globalAccessAllowed != null && message.hasOwnProperty("globalAccessAllowed")) { + properties._globalAccessAllowed = 1; + if (typeof message.globalAccessAllowed !== "boolean") + return "globalAccessAllowed: boolean expected"; } - if (message.coolingThresholdDays != null && message.hasOwnProperty("coolingThresholdDays")) { - properties._coolingThresholdDays = 1; - if (!$util.isInteger(message.coolingThresholdDays)) - return "coolingThresholdDays: integer expected"; - } + if (message.allowAutoTiering != null && message.hasOwnProperty("allowAutoTiering")) + if (typeof message.allowAutoTiering !== "boolean") + return "allowAutoTiering: boolean expected"; + if (message.replicaZone != null && message.hasOwnProperty("replicaZone")) + if (!$util.isString(message.replicaZone)) + return "replicaZone: string expected"; + if (message.zone != null && message.hasOwnProperty("zone")) + if (!$util.isString(message.zone)) + return "zone: string expected"; return null; }; /** - * Creates a TieringPolicy message from a plain object. Also converts values to their respective internal types. + * Creates a StoragePool message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.netapp.v1.TieringPolicy + * @memberof google.cloud.netapp.v1.StoragePool * @static * @param {Object.} object Plain object - * @returns {google.cloud.netapp.v1.TieringPolicy} TieringPolicy + * @returns {google.cloud.netapp.v1.StoragePool} StoragePool */ - TieringPolicy.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.netapp.v1.TieringPolicy) + StoragePool.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.netapp.v1.StoragePool) return object; - var message = new $root.google.cloud.netapp.v1.TieringPolicy(); - switch (object.tierAction) { + var message = new $root.google.cloud.netapp.v1.StoragePool(); + if (object.name != null) + message.name = String(object.name); + switch (object.serviceLevel) { default: - if (typeof object.tierAction === "number") { - message.tierAction = object.tierAction; + if (typeof object.serviceLevel === "number") { + message.serviceLevel = object.serviceLevel; break; } break; - case "TIER_ACTION_UNSPECIFIED": + case "SERVICE_LEVEL_UNSPECIFIED": case 0: - message.tierAction = 0; + message.serviceLevel = 0; break; - case "ENABLED": + case "PREMIUM": case 1: - message.tierAction = 1; + message.serviceLevel = 1; break; - case "PAUSED": + case "EXTREME": case 2: - message.tierAction = 2; + message.serviceLevel = 2; + break; + case "STANDARD": + case 3: + message.serviceLevel = 3; + break; + case "FLEX": + case 4: + message.serviceLevel = 4; break; } - if (object.coolingThresholdDays != null) - message.coolingThresholdDays = object.coolingThresholdDays | 0; + if (object.capacityGib != null) + if ($util.Long) + (message.capacityGib = $util.Long.fromValue(object.capacityGib)).unsigned = false; + else if (typeof object.capacityGib === "string") + message.capacityGib = parseInt(object.capacityGib, 10); + else if (typeof object.capacityGib === "number") + message.capacityGib = object.capacityGib; + else if (typeof object.capacityGib === "object") + message.capacityGib = new $util.LongBits(object.capacityGib.low >>> 0, object.capacityGib.high >>> 0).toNumber(); + if (object.volumeCapacityGib != null) + if ($util.Long) + (message.volumeCapacityGib = $util.Long.fromValue(object.volumeCapacityGib)).unsigned = false; + else if (typeof object.volumeCapacityGib === "string") + message.volumeCapacityGib = parseInt(object.volumeCapacityGib, 10); + else if (typeof object.volumeCapacityGib === "number") + message.volumeCapacityGib = object.volumeCapacityGib; + else if (typeof object.volumeCapacityGib === "object") + message.volumeCapacityGib = new $util.LongBits(object.volumeCapacityGib.low >>> 0, object.volumeCapacityGib.high >>> 0).toNumber(); + if (object.volumeCount != null) + message.volumeCount = object.volumeCount | 0; + switch (object.state) { + default: + if (typeof object.state === "number") { + message.state = object.state; + break; + } + break; + case "STATE_UNSPECIFIED": + case 0: + message.state = 0; + break; + case "READY": + case 1: + message.state = 1; + break; + case "CREATING": + case 2: + message.state = 2; + break; + case "DELETING": + case 3: + message.state = 3; + break; + case "UPDATING": + case 4: + message.state = 4; + break; + case "RESTORING": + case 5: + message.state = 5; + break; + case "DISABLED": + case 6: + message.state = 6; + break; + case "ERROR": + case 7: + message.state = 7; + break; + } + if (object.stateDetails != null) + message.stateDetails = String(object.stateDetails); + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.cloud.netapp.v1.StoragePool.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + } + if (object.description != null) + message.description = String(object.description); + if (object.labels) { + if (typeof object.labels !== "object") + throw TypeError(".google.cloud.netapp.v1.StoragePool.labels: object expected"); + message.labels = {}; + for (var keys = Object.keys(object.labels), i = 0; i < keys.length; ++i) + message.labels[keys[i]] = String(object.labels[keys[i]]); + } + if (object.network != null) + message.network = String(object.network); + if (object.activeDirectory != null) + message.activeDirectory = String(object.activeDirectory); + if (object.kmsConfig != null) + message.kmsConfig = String(object.kmsConfig); + if (object.ldapEnabled != null) + message.ldapEnabled = Boolean(object.ldapEnabled); + if (object.psaRange != null) + message.psaRange = String(object.psaRange); + switch (object.encryptionType) { + default: + if (typeof object.encryptionType === "number") { + message.encryptionType = object.encryptionType; + break; + } + break; + case "ENCRYPTION_TYPE_UNSPECIFIED": + case 0: + message.encryptionType = 0; + break; + case "SERVICE_MANAGED": + case 1: + message.encryptionType = 1; + break; + case "CLOUD_KMS": + case 2: + message.encryptionType = 2; + break; + } + if (object.globalAccessAllowed != null) + message.globalAccessAllowed = Boolean(object.globalAccessAllowed); + if (object.allowAutoTiering != null) + message.allowAutoTiering = Boolean(object.allowAutoTiering); + if (object.replicaZone != null) + message.replicaZone = String(object.replicaZone); + if (object.zone != null) + message.zone = String(object.zone); return message; }; /** - * Creates a plain object from a TieringPolicy message. Also converts values to other types if specified. + * Creates a plain object from a StoragePool message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.netapp.v1.TieringPolicy + * @memberof google.cloud.netapp.v1.StoragePool * @static - * @param {google.cloud.netapp.v1.TieringPolicy} message TieringPolicy + * @param {google.cloud.netapp.v1.StoragePool} message StoragePool * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TieringPolicy.toObject = function toObject(message, options) { + StoragePool.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (message.tierAction != null && message.hasOwnProperty("tierAction")) { - object.tierAction = options.enums === String ? $root.google.cloud.netapp.v1.TieringPolicy.TierAction[message.tierAction] === undefined ? message.tierAction : $root.google.cloud.netapp.v1.TieringPolicy.TierAction[message.tierAction] : message.tierAction; - if (options.oneofs) - object._tierAction = "tierAction"; + if (options.objects || options.defaults) + object.labels = {}; + if (options.defaults) { + object.name = ""; + object.serviceLevel = options.enums === String ? "SERVICE_LEVEL_UNSPECIFIED" : 0; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.capacityGib = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.capacityGib = options.longs === String ? "0" : 0; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.volumeCapacityGib = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.volumeCapacityGib = options.longs === String ? "0" : 0; + object.volumeCount = 0; + object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; + object.stateDetails = ""; + object.createTime = null; + object.description = ""; + object.network = ""; + object.activeDirectory = ""; + object.kmsConfig = ""; + object.ldapEnabled = false; + object.psaRange = ""; + object.encryptionType = options.enums === String ? "ENCRYPTION_TYPE_UNSPECIFIED" : 0; + object.allowAutoTiering = false; + object.replicaZone = ""; + object.zone = ""; } - if (message.coolingThresholdDays != null && message.hasOwnProperty("coolingThresholdDays")) { - object.coolingThresholdDays = message.coolingThresholdDays; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.serviceLevel != null && message.hasOwnProperty("serviceLevel")) + object.serviceLevel = options.enums === String ? $root.google.cloud.netapp.v1.ServiceLevel[message.serviceLevel] === undefined ? message.serviceLevel : $root.google.cloud.netapp.v1.ServiceLevel[message.serviceLevel] : message.serviceLevel; + if (message.capacityGib != null && message.hasOwnProperty("capacityGib")) + if (typeof message.capacityGib === "number") + object.capacityGib = options.longs === String ? String(message.capacityGib) : message.capacityGib; + else + object.capacityGib = options.longs === String ? $util.Long.prototype.toString.call(message.capacityGib) : options.longs === Number ? new $util.LongBits(message.capacityGib.low >>> 0, message.capacityGib.high >>> 0).toNumber() : message.capacityGib; + if (message.volumeCapacityGib != null && message.hasOwnProperty("volumeCapacityGib")) + if (typeof message.volumeCapacityGib === "number") + object.volumeCapacityGib = options.longs === String ? String(message.volumeCapacityGib) : message.volumeCapacityGib; + else + object.volumeCapacityGib = options.longs === String ? $util.Long.prototype.toString.call(message.volumeCapacityGib) : options.longs === Number ? new $util.LongBits(message.volumeCapacityGib.low >>> 0, message.volumeCapacityGib.high >>> 0).toNumber() : message.volumeCapacityGib; + if (message.volumeCount != null && message.hasOwnProperty("volumeCount")) + object.volumeCount = message.volumeCount; + if (message.state != null && message.hasOwnProperty("state")) + object.state = options.enums === String ? $root.google.cloud.netapp.v1.StoragePool.State[message.state] === undefined ? message.state : $root.google.cloud.netapp.v1.StoragePool.State[message.state] : message.state; + if (message.stateDetails != null && message.hasOwnProperty("stateDetails")) + object.stateDetails = message.stateDetails; + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.description != null && message.hasOwnProperty("description")) + object.description = message.description; + var keys2; + if (message.labels && (keys2 = Object.keys(message.labels)).length) { + object.labels = {}; + for (var j = 0; j < keys2.length; ++j) + object.labels[keys2[j]] = message.labels[keys2[j]]; + } + if (message.network != null && message.hasOwnProperty("network")) + object.network = message.network; + if (message.activeDirectory != null && message.hasOwnProperty("activeDirectory")) + object.activeDirectory = message.activeDirectory; + if (message.kmsConfig != null && message.hasOwnProperty("kmsConfig")) + object.kmsConfig = message.kmsConfig; + if (message.ldapEnabled != null && message.hasOwnProperty("ldapEnabled")) + object.ldapEnabled = message.ldapEnabled; + if (message.psaRange != null && message.hasOwnProperty("psaRange")) + object.psaRange = message.psaRange; + if (message.encryptionType != null && message.hasOwnProperty("encryptionType")) + object.encryptionType = options.enums === String ? $root.google.cloud.netapp.v1.EncryptionType[message.encryptionType] === undefined ? message.encryptionType : $root.google.cloud.netapp.v1.EncryptionType[message.encryptionType] : message.encryptionType; + if (message.globalAccessAllowed != null && message.hasOwnProperty("globalAccessAllowed")) { + object.globalAccessAllowed = message.globalAccessAllowed; if (options.oneofs) - object._coolingThresholdDays = "coolingThresholdDays"; + object._globalAccessAllowed = "globalAccessAllowed"; } + if (message.allowAutoTiering != null && message.hasOwnProperty("allowAutoTiering")) + object.allowAutoTiering = message.allowAutoTiering; + if (message.replicaZone != null && message.hasOwnProperty("replicaZone")) + object.replicaZone = message.replicaZone; + if (message.zone != null && message.hasOwnProperty("zone")) + object.zone = message.zone; return object; }; /** - * Converts this TieringPolicy to JSON. + * Converts this StoragePool to JSON. * @function toJSON - * @memberof google.cloud.netapp.v1.TieringPolicy + * @memberof google.cloud.netapp.v1.StoragePool * @instance * @returns {Object.} JSON object */ - TieringPolicy.prototype.toJSON = function toJSON() { + StoragePool.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for TieringPolicy + * Gets the default type url for StoragePool * @function getTypeUrl - * @memberof google.cloud.netapp.v1.TieringPolicy + * @memberof google.cloud.netapp.v1.StoragePool * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - TieringPolicy.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + StoragePool.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.netapp.v1.TieringPolicy"; + return typeUrlPrefix + "/google.cloud.netapp.v1.StoragePool"; }; /** - * TierAction enum. - * @name google.cloud.netapp.v1.TieringPolicy.TierAction + * State enum. + * @name google.cloud.netapp.v1.StoragePool.State * @enum {number} - * @property {number} TIER_ACTION_UNSPECIFIED=0 TIER_ACTION_UNSPECIFIED value - * @property {number} ENABLED=1 ENABLED value - * @property {number} PAUSED=2 PAUSED value + * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value + * @property {number} READY=1 READY value + * @property {number} CREATING=2 CREATING value + * @property {number} DELETING=3 DELETING value + * @property {number} UPDATING=4 UPDATING value + * @property {number} RESTORING=5 RESTORING value + * @property {number} DISABLED=6 DISABLED value + * @property {number} ERROR=7 ERROR value */ - TieringPolicy.TierAction = (function() { + StoragePool.State = (function() { var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "TIER_ACTION_UNSPECIFIED"] = 0; - values[valuesById[1] = "ENABLED"] = 1; - values[valuesById[2] = "PAUSED"] = 2; + values[valuesById[0] = "STATE_UNSPECIFIED"] = 0; + values[valuesById[1] = "READY"] = 1; + values[valuesById[2] = "CREATING"] = 2; + values[valuesById[3] = "DELETING"] = 3; + values[valuesById[4] = "UPDATING"] = 4; + values[valuesById[5] = "RESTORING"] = 5; + values[valuesById[6] = "DISABLED"] = 6; + values[valuesById[7] = "ERROR"] = 7; return values; })(); - return TieringPolicy; + return StoragePool; })(); return v1; @@ -34383,6 +35896,263 @@ return values; })(); + api.FieldInfo = (function() { + + /** + * Properties of a FieldInfo. + * @memberof google.api + * @interface IFieldInfo + * @property {google.api.FieldInfo.Format|null} [format] FieldInfo format + */ + + /** + * Constructs a new FieldInfo. + * @memberof google.api + * @classdesc Represents a FieldInfo. + * @implements IFieldInfo + * @constructor + * @param {google.api.IFieldInfo=} [properties] Properties to set + */ + function FieldInfo(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * FieldInfo format. + * @member {google.api.FieldInfo.Format} format + * @memberof google.api.FieldInfo + * @instance + */ + FieldInfo.prototype.format = 0; + + /** + * Creates a new FieldInfo instance using the specified properties. + * @function create + * @memberof google.api.FieldInfo + * @static + * @param {google.api.IFieldInfo=} [properties] Properties to set + * @returns {google.api.FieldInfo} FieldInfo instance + */ + FieldInfo.create = function create(properties) { + return new FieldInfo(properties); + }; + + /** + * Encodes the specified FieldInfo message. Does not implicitly {@link google.api.FieldInfo.verify|verify} messages. + * @function encode + * @memberof google.api.FieldInfo + * @static + * @param {google.api.IFieldInfo} message FieldInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FieldInfo.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.format != null && Object.hasOwnProperty.call(message, "format")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.format); + return writer; + }; + + /** + * Encodes the specified FieldInfo message, length delimited. Does not implicitly {@link google.api.FieldInfo.verify|verify} messages. + * @function encodeDelimited + * @memberof google.api.FieldInfo + * @static + * @param {google.api.IFieldInfo} message FieldInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FieldInfo.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a FieldInfo message from the specified reader or buffer. + * @function decode + * @memberof google.api.FieldInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.api.FieldInfo} FieldInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FieldInfo.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.FieldInfo(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.format = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a FieldInfo message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.api.FieldInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.api.FieldInfo} FieldInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FieldInfo.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a FieldInfo message. + * @function verify + * @memberof google.api.FieldInfo + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FieldInfo.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.format != null && message.hasOwnProperty("format")) + switch (message.format) { + default: + return "format: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + break; + } + return null; + }; + + /** + * Creates a FieldInfo message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.api.FieldInfo + * @static + * @param {Object.} object Plain object + * @returns {google.api.FieldInfo} FieldInfo + */ + FieldInfo.fromObject = function fromObject(object) { + if (object instanceof $root.google.api.FieldInfo) + return object; + var message = new $root.google.api.FieldInfo(); + switch (object.format) { + default: + if (typeof object.format === "number") { + message.format = object.format; + break; + } + break; + case "FORMAT_UNSPECIFIED": + case 0: + message.format = 0; + break; + case "UUID4": + case 1: + message.format = 1; + break; + case "IPV4": + case 2: + message.format = 2; + break; + case "IPV6": + case 3: + message.format = 3; + break; + case "IPV4_OR_IPV6": + case 4: + message.format = 4; + break; + } + return message; + }; + + /** + * Creates a plain object from a FieldInfo message. Also converts values to other types if specified. + * @function toObject + * @memberof google.api.FieldInfo + * @static + * @param {google.api.FieldInfo} message FieldInfo + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FieldInfo.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.format = options.enums === String ? "FORMAT_UNSPECIFIED" : 0; + if (message.format != null && message.hasOwnProperty("format")) + object.format = options.enums === String ? $root.google.api.FieldInfo.Format[message.format] === undefined ? message.format : $root.google.api.FieldInfo.Format[message.format] : message.format; + return object; + }; + + /** + * Converts this FieldInfo to JSON. + * @function toJSON + * @memberof google.api.FieldInfo + * @instance + * @returns {Object.} JSON object + */ + FieldInfo.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for FieldInfo + * @function getTypeUrl + * @memberof google.api.FieldInfo + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + FieldInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.api.FieldInfo"; + }; + + /** + * Format enum. + * @name google.api.FieldInfo.Format + * @enum {number} + * @property {number} FORMAT_UNSPECIFIED=0 FORMAT_UNSPECIFIED value + * @property {number} UUID4=1 UUID4 value + * @property {number} IPV4=2 IPV4 value + * @property {number} IPV6=3 IPV6 value + * @property {number} IPV4_OR_IPV6=4 IPV4_OR_IPV6 value + */ + FieldInfo.Format = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "FORMAT_UNSPECIFIED"] = 0; + values[valuesById[1] = "UUID4"] = 1; + values[valuesById[2] = "IPV4"] = 2; + values[valuesById[3] = "IPV6"] = 3; + values[valuesById[4] = "IPV4_OR_IPV6"] = 4; + return values; + })(); + + return FieldInfo; + })(); + return api; })(); @@ -40557,6 +42327,7 @@ * @property {Array.|null} [uninterpretedOption] FieldOptions uninterpretedOption * @property {Array.|null} [".google.api.fieldBehavior"] FieldOptions .google.api.fieldBehavior * @property {google.api.IResourceReference|null} [".google.api.resourceReference"] FieldOptions .google.api.resourceReference + * @property {google.api.IFieldInfo|null} [".google.api.fieldInfo"] FieldOptions .google.api.fieldInfo */ /** @@ -40698,6 +42469,14 @@ */ FieldOptions.prototype[".google.api.resourceReference"] = null; + /** + * FieldOptions .google.api.fieldInfo. + * @member {google.api.IFieldInfo|null|undefined} .google.api.fieldInfo + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype[".google.api.fieldInfo"] = null; + /** * Creates a new FieldOptions instance using the specified properties. * @function create @@ -40759,6 +42538,8 @@ } if (message[".google.api.resourceReference"] != null && Object.hasOwnProperty.call(message, ".google.api.resourceReference")) $root.google.api.ResourceReference.encode(message[".google.api.resourceReference"], writer.uint32(/* id 1055, wireType 2 =*/8442).fork()).ldelim(); + if (message[".google.api.fieldInfo"] != null && Object.hasOwnProperty.call(message, ".google.api.fieldInfo")) + $root.google.api.FieldInfo.encode(message[".google.api.fieldInfo"], writer.uint32(/* id 291403980, wireType 2 =*/2331231842).fork()).ldelim(); return writer; }; @@ -40871,6 +42652,10 @@ message[".google.api.resourceReference"] = $root.google.api.ResourceReference.decode(reader, reader.uint32()); break; } + case 291403980: { + message[".google.api.fieldInfo"] = $root.google.api.FieldInfo.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -41018,6 +42803,11 @@ if (error) return ".google.api.resourceReference." + error; } + if (message[".google.api.fieldInfo"] != null && message.hasOwnProperty(".google.api.fieldInfo")) { + var error = $root.google.api.FieldInfo.verify(message[".google.api.fieldInfo"]); + if (error) + return ".google.api.fieldInfo." + error; + } return null; }; @@ -41237,6 +43027,11 @@ throw TypeError(".google.protobuf.FieldOptions..google.api.resourceReference: object expected"); message[".google.api.resourceReference"] = $root.google.api.ResourceReference.fromObject(object[".google.api.resourceReference"]); } + if (object[".google.api.fieldInfo"] != null) { + if (typeof object[".google.api.fieldInfo"] !== "object") + throw TypeError(".google.protobuf.FieldOptions..google.api.fieldInfo: object expected"); + message[".google.api.fieldInfo"] = $root.google.api.FieldInfo.fromObject(object[".google.api.fieldInfo"]); + } return message; }; @@ -41271,6 +43066,7 @@ object.retention = options.enums === String ? "RETENTION_UNKNOWN" : 0; object.features = null; object[".google.api.resourceReference"] = null; + object[".google.api.fieldInfo"] = null; } if (message.ctype != null && message.hasOwnProperty("ctype")) object.ctype = options.enums === String ? $root.google.protobuf.FieldOptions.CType[message.ctype] === undefined ? message.ctype : $root.google.protobuf.FieldOptions.CType[message.ctype] : message.ctype; @@ -41314,6 +43110,8 @@ } if (message[".google.api.resourceReference"] != null && message.hasOwnProperty(".google.api.resourceReference")) object[".google.api.resourceReference"] = $root.google.api.ResourceReference.toObject(message[".google.api.resourceReference"], options); + if (message[".google.api.fieldInfo"] != null && message.hasOwnProperty(".google.api.fieldInfo")) + object[".google.api.fieldInfo"] = $root.google.api.FieldInfo.toObject(message[".google.api.fieldInfo"], options); return object; }; diff --git a/packages/google-cloud-netapp/protos/protos.json b/packages/google-cloud-netapp/protos/protos.json index 1cffcb76b6d..68356fad6a3 100644 --- a/packages/google-cloud-netapp/protos/protos.json +++ b/packages/google-cloud-netapp/protos/protos.json @@ -14,7 +14,7 @@ "csharp_namespace": "Google.Cloud.NetApp.V1", "go_package": "cloud.google.com/go/netapp/apiv1/netapppb;netapppb", "java_multiple_files": true, - "java_outer_classname": "VolumeProto", + "java_outer_classname": "StoragePoolProto", "java_package": "com.google.cloud.netapp.v1", "php_namespace": "Google\\Cloud\\NetApp\\V1", "ruby_package": "Google::Cloud::NetApp::V1", @@ -282,7 +282,8 @@ "UPDATING": 3, "IN_USE": 4, "DELETING": 5, - "ERROR": 6 + "ERROR": 6, + "DIAGNOSING": 7 } } } @@ -1781,6 +1782,54 @@ } ] }, + "EstablishPeering": { + "requestType": "EstablishPeeringRequest", + "responseType": "google.longrunning.Operation", + "options": { + "(google.api.http).post": "/v1/{name=projects/*/locations/*/volumes/*/replications/*}:establishPeering", + "(google.api.http).body": "*", + "(google.longrunning.operation_info).response_type": "Replication", + "(google.longrunning.operation_info).metadata_type": "OperationMetadata" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1/{name=projects/*/locations/*/volumes/*/replications/*}:establishPeering", + "body": "*" + } + }, + { + "(google.longrunning.operation_info)": { + "response_type": "Replication", + "metadata_type": "OperationMetadata" + } + } + ] + }, + "SyncReplication": { + "requestType": "SyncReplicationRequest", + "responseType": "google.longrunning.Operation", + "options": { + "(google.api.http).post": "/v1/{name=projects/*/locations/*/volumes/*/replications/*}:sync", + "(google.api.http).body": "*", + "(google.longrunning.operation_info).response_type": "Replication", + "(google.longrunning.operation_info).metadata_type": "OperationMetadata" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1/{name=projects/*/locations/*/volumes/*/replications/*}:sync", + "body": "*" + } + }, + { + "(google.longrunning.operation_info)": { + "response_type": "Replication", + "metadata_type": "OperationMetadata" + } + } + ] + }, "CreateBackupVault": { "requestType": "CreateBackupVaultRequest", "responseType": "google.longrunning.Operation", @@ -2659,6 +2708,27 @@ "(google.api.field_behavior)": "OUTPUT_ONLY", "(google.api.resource_reference).type": "netapp.googleapis.com/Volume" } + }, + "hybridPeeringDetails": { + "type": "HybridPeeringDetails", + "id": 16, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "clusterLocation": { + "type": "string", + "id": 18, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "hybridReplicationType": { + "type": "HybridReplicationType", + "id": 19, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } } }, "nested": { @@ -2669,7 +2739,9 @@ "READY": 2, "UPDATING": 3, "DELETING": 5, - "ERROR": 6 + "ERROR": 6, + "PENDING_CLUSTER_PEERING": 8, + "PENDING_SVM_PEERING": 9 } }, "ReplicationRole": { @@ -2693,7 +2765,48 @@ "PREPARING": 1, "MIRRORED": 2, "STOPPED": 3, - "TRANSFERRING": 4 + "TRANSFERRING": 4, + "BASELINE_TRANSFERRING": 5, + "ABORTED": 6 + } + }, + "HybridReplicationType": { + "values": { + "HYBRID_REPLICATION_TYPE_UNSPECIFIED": 0, + "MIGRATION": 1, + "CONTINUOUS_REPLICATION": 2 + } + } + } + }, + "HybridPeeringDetails": { + "fields": { + "subnetIp": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "command": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "commandExpiryTime": { + "type": "google.protobuf.Timestamp", + "id": 3, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "passphrase": { + "type": "string", + "id": 4, + "options": { + "(google.api.field_behavior)": "OPTIONAL" } } } @@ -2762,6 +2875,11 @@ "oneof": [ "description" ] + }, + "_tieringPolicy": { + "oneof": [ + "tieringPolicy" + ] } }, "fields": { @@ -2787,6 +2905,14 @@ "options": { "proto3_optional": true } + }, + "tieringPolicy": { + "type": "TieringPolicy", + "id": 5, + "options": { + "(google.api.field_behavior)": "OPTIONAL", + "proto3_optional": true + } } } }, @@ -2886,14 +3012,110 @@ } } }, - "ListSnapshotsRequest": { + "EstablishPeeringRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "netapp.googleapis.com/Replication" + } + }, + "peerClusterName": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "peerSvmName": { + "type": "string", + "id": 3, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "peerIpAddresses": { + "rule": "repeated", + "type": "string", + "id": 4, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "peerVolumeName": { + "type": "string", + "id": 5, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "SyncReplicationRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "netapp.googleapis.com/Replication" + } + } + } + }, + "Protocols": { + "values": { + "PROTOCOLS_UNSPECIFIED": 0, + "NFSV3": 1, + "NFSV4": 2, + "SMB": 3 + } + }, + "AccessType": { + "values": { + "ACCESS_TYPE_UNSPECIFIED": 0, + "READ_ONLY": 1, + "READ_WRITE": 2, + "READ_NONE": 3 + } + }, + "SMBSettings": { + "values": { + "SMB_SETTINGS_UNSPECIFIED": 0, + "ENCRYPT_DATA": 1, + "BROWSABLE": 2, + "CHANGE_NOTIFY": 3, + "NON_BROWSABLE": 4, + "OPLOCKS": 5, + "SHOW_SNAPSHOT": 6, + "SHOW_PREVIOUS_VERSIONS": 7, + "ACCESS_BASED_ENUMERATION": 8, + "CONTINUOUSLY_AVAILABLE": 9 + } + }, + "SecurityStyle": { + "values": { + "SECURITY_STYLE_UNSPECIFIED": 0, + "NTFS": 1, + "UNIX": 2 + } + }, + "RestrictedAction": { + "values": { + "RESTRICTED_ACTION_UNSPECIFIED": 0, + "DELETE": 1 + } + }, + "ListVolumesRequest": { "fields": { "parent": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).child_type": "netapp.googleapis.com/Snapshot" + "(google.api.resource_reference).child_type": "netapp.googleapis.com/Volume" } }, "pageSize": { @@ -2904,21 +3126,21 @@ "type": "string", "id": 3 }, - "orderBy": { + "filter": { "type": "string", "id": 4 }, - "filter": { + "orderBy": { "type": "string", "id": 5 } } }, - "ListSnapshotsResponse": { + "ListVolumesResponse": { "fields": { - "snapshots": { + "volumes": { "rule": "repeated", - "type": "Snapshot", + "type": "Volume", "id": 1 }, "nextPageToken": { @@ -2932,37 +3154,37 @@ } } }, - "GetSnapshotRequest": { + "GetVolumeRequest": { "fields": { "name": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "netapp.googleapis.com/Snapshot" + "(google.api.resource_reference).type": "netapp.googleapis.com/Volume" } } } }, - "CreateSnapshotRequest": { + "CreateVolumeRequest": { "fields": { "parent": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).child_type": "netapp.googleapis.com/Snapshot" + "(google.api.resource_reference).child_type": "netapp.googleapis.com/Volume" } }, - "snapshot": { - "type": "Snapshot", + "volumeId": { + "type": "string", "id": 2, "options": { "(google.api.field_behavior)": "REQUIRED" } }, - "snapshotId": { - "type": "string", + "volume": { + "type": "Volume", "id": 3, "options": { "(google.api.field_behavior)": "REQUIRED" @@ -2970,19 +3192,7 @@ } } }, - "DeleteSnapshotRequest": { - "fields": { - "name": { - "type": "string", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "netapp.googleapis.com/Snapshot" - } - } - } - }, - "UpdateSnapshotRequest": { + "UpdateVolumeRequest": { "fields": { "updateMask": { "type": "google.protobuf.FieldMask", @@ -2991,8 +3201,8 @@ "(google.api.field_behavior)": "REQUIRED" } }, - "snapshot": { - "type": "Snapshot", + "volume": { + "type": "Volume", "id": 2, "options": { "(google.api.field_behavior)": "REQUIRED" @@ -3000,222 +3210,57 @@ } } }, - "Snapshot": { - "options": { - "(google.api.resource).type": "netapp.googleapis.com/Snapshot", - "(google.api.resource).pattern": "projects/{project}/locations/{location}/volumes/{volume}/snapshots/{snapshot}", - "(google.api.resource).plural": "snapshots", - "(google.api.resource).singular": "snapshot" - }, + "DeleteVolumeRequest": { "fields": { "name": { "type": "string", "id": 1, "options": { - "(google.api.field_behavior)": "IDENTIFIER" + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "netapp.googleapis.com/Volume" } }, - "state": { - "type": "State", - "id": 2, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } - }, - "stateDetails": { - "type": "string", - "id": 3, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } - }, - "description": { - "type": "string", - "id": 4 - }, - "usedBytes": { - "type": "double", - "id": 5, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } - }, - "createTime": { - "type": "google.protobuf.Timestamp", - "id": 6, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } - }, - "labels": { - "keyType": "string", - "type": "string", - "id": 7 - } - }, - "nested": { - "State": { - "values": { - "STATE_UNSPECIFIED": 0, - "READY": 1, - "CREATING": 2, - "DELETING": 3, - "UPDATING": 4, - "DISABLED": 5, - "ERROR": 6 - } - } - } - }, - "GetStoragePoolRequest": { - "fields": { - "name": { - "type": "string", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "netapp.googleapis.com/StoragePool" - } - } - } - }, - "ListStoragePoolsRequest": { - "fields": { - "parent": { - "type": "string", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).child_type": "netapp.googleapis.com/StoragePool" - } - }, - "pageSize": { - "type": "int32", - "id": 2, - "options": { - "(google.api.field_behavior)": "OPTIONAL" - } - }, - "pageToken": { - "type": "string", - "id": 3, - "options": { - "(google.api.field_behavior)": "OPTIONAL" - } - }, - "orderBy": { - "type": "string", - "id": 4, - "options": { - "(google.api.field_behavior)": "OPTIONAL" - } - }, - "filter": { - "type": "string", - "id": 5, - "options": { - "(google.api.field_behavior)": "OPTIONAL" - } - } - } - }, - "ListStoragePoolsResponse": { - "fields": { - "storagePools": { - "rule": "repeated", - "type": "StoragePool", - "id": 1 - }, - "nextPageToken": { - "type": "string", + "force": { + "type": "bool", "id": 2 - }, - "unreachable": { - "rule": "repeated", - "type": "string", - "id": 3 } } }, - "CreateStoragePoolRequest": { + "RevertVolumeRequest": { "fields": { - "parent": { + "name": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).child_type": "netapp.googleapis.com/StoragePool" + "(google.api.resource_reference).type": "netapp.googleapis.com/Volume" } }, - "storagePoolId": { + "snapshotId": { "type": "string", "id": 2, "options": { "(google.api.field_behavior)": "REQUIRED" } - }, - "storagePool": { - "type": "StoragePool", - "id": 3, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - } - } - }, - "UpdateStoragePoolRequest": { - "fields": { - "updateMask": { - "type": "google.protobuf.FieldMask", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "storagePool": { - "type": "StoragePool", - "id": 2, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - } - } - }, - "DeleteStoragePoolRequest": { - "fields": { - "name": { - "type": "string", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "netapp.googleapis.com/StoragePool" - } - } - } - }, - "SwitchActiveReplicaZoneRequest": { - "fields": { - "name": { - "type": "string", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "netapp.googleapis.com/StoragePool" - } } } }, - "StoragePool": { + "Volume": { "options": { - "(google.api.resource).type": "netapp.googleapis.com/StoragePool", - "(google.api.resource).pattern": "projects/{project}/locations/{location}/storagePools/{storage_pool}", - "(google.api.resource).plural": "storagePools", - "(google.api.resource).singular": "storagePool" + "(google.api.resource).type": "netapp.googleapis.com/Volume", + "(google.api.resource).pattern": "projects/{project}/locations/{location}/volumes/{volume}", + "(google.api.resource).plural": "volumes", + "(google.api.resource).singular": "volume" }, "oneofs": { - "_globalAccessAllowed": { + "_backupConfig": { "oneof": [ - "globalAccessAllowed" + "backupConfig" + ] + }, + "_tieringPolicy": { + "oneof": [ + "tieringPolicy" ] } }, @@ -3227,140 +3272,270 @@ "(google.api.field_behavior)": "IDENTIFIER" } }, - "serviceLevel": { - "type": "ServiceLevel", + "state": { + "type": "State", "id": 2, "options": { - "(google.api.field_behavior)": "REQUIRED" + "(google.api.field_behavior)": "OUTPUT_ONLY" } }, - "capacityGib": { - "type": "int64", + "stateDetails": { + "type": "string", "id": 3, "options": { - "(google.api.field_behavior)": "REQUIRED" + "(google.api.field_behavior)": "OUTPUT_ONLY" } }, - "volumeCapacityGib": { - "type": "int64", + "createTime": { + "type": "google.protobuf.Timestamp", "id": 4, "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } }, - "volumeCount": { - "type": "int32", + "shareName": { + "type": "string", "id": 5, "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" + "(google.api.field_behavior)": "REQUIRED" } }, - "state": { - "type": "State", + "psaRange": { + "type": "string", "id": 6, "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } }, - "stateDetails": { + "storagePool": { "type": "string", "id": 7, "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "netapp.googleapis.com/StoragePool" } }, - "createTime": { - "type": "google.protobuf.Timestamp", + "network": { + "type": "string", "id": 8, "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" + "(google.api.field_behavior)": "OUTPUT_ONLY", + "(google.api.resource_reference).type": "compute.googleapis.com/Network" } }, - "description": { - "type": "string", + "serviceLevel": { + "type": "ServiceLevel", "id": 9, "options": { - "(google.api.field_behavior)": "OPTIONAL" + "(google.api.field_behavior)": "OUTPUT_ONLY" } }, - "labels": { - "keyType": "string", - "type": "string", + "capacityGib": { + "type": "int64", "id": 10, "options": { - "(google.api.field_behavior)": "OPTIONAL" + "(google.api.field_behavior)": "REQUIRED" } }, - "network": { - "type": "string", + "exportPolicy": { + "type": "ExportPolicy", "id": 11, "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "compute.googleapis.com/Network" + "(google.api.field_behavior)": "OPTIONAL" } }, - "activeDirectory": { - "type": "string", + "protocols": { + "rule": "repeated", + "type": "Protocols", "id": 12, "options": { - "(google.api.field_behavior)": "OPTIONAL", - "(google.api.resource_reference).type": "netapp.googleapis.com/ActiveDirectory" + "(google.api.field_behavior)": "REQUIRED" } }, - "kmsConfig": { - "type": "string", + "smbSettings": { + "rule": "repeated", + "type": "SMBSettings", "id": 13, "options": { - "(google.api.field_behavior)": "OPTIONAL", - "(google.api.resource_reference).type": "netapp.googleapis.com/KmsConfig" + "(google.api.field_behavior)": "OPTIONAL" } }, - "ldapEnabled": { - "type": "bool", + "mountOptions": { + "rule": "repeated", + "type": "MountOption", "id": 14, "options": { - "(google.api.field_behavior)": "OPTIONAL" + "(google.api.field_behavior)": "OUTPUT_ONLY" } }, - "psaRange": { + "unixPermissions": { "type": "string", "id": 15, "options": { "(google.api.field_behavior)": "OPTIONAL" } }, + "labels": { + "keyType": "string", + "type": "string", + "id": 16, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "description": { + "type": "string", + "id": 17, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "snapshotPolicy": { + "type": "SnapshotPolicy", + "id": 18, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "snapReserve": { + "type": "double", + "id": 19, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "snapshotDirectory": { + "type": "bool", + "id": 20, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "usedGib": { + "type": "int64", + "id": 21, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "securityStyle": { + "type": "SecurityStyle", + "id": 22, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "kerberosEnabled": { + "type": "bool", + "id": 23, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "ldapEnabled": { + "type": "bool", + "id": 24, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "activeDirectory": { + "type": "string", + "id": 25, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY", + "(google.api.resource_reference).type": "netapp.googleapis.com/ActiveDirectory" + } + }, + "restoreParameters": { + "type": "RestoreParameters", + "id": 26, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "kmsConfig": { + "type": "string", + "id": 27, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY", + "(google.api.resource_reference).type": "netapp.googleapis.com/KmsConfig" + } + }, "encryptionType": { "type": "EncryptionType", - "id": 16, + "id": 28, "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } }, - "globalAccessAllowed": { + "hasReplication": { "type": "bool", - "id": 17, + "id": 29, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "backupConfig": { + "type": "BackupConfig", + "id": 30, "options": { - "deprecated": true, "proto3_optional": true } }, - "allowAutoTiering": { + "restrictedActions": { + "rule": "repeated", + "type": "RestrictedAction", + "id": 31, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "largeCapacity": { "type": "bool", - "id": 18, + "id": 32, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "multipleEndpoints": { + "type": "bool", + "id": 33, "options": { "(google.api.field_behavior)": "OPTIONAL" } }, + "tieringPolicy": { + "type": "TieringPolicy", + "id": 34, + "options": { + "proto3_optional": true + } + }, "replicaZone": { "type": "string", - "id": 20, + "id": 36, "options": { - "(google.api.field_behavior)": "OPTIONAL" + "(google.api.field_behavior)": "OUTPUT_ONLY" } }, "zone": { "type": "string", - "id": 21, + "id": 37, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "coldTierSizeGib": { + "type": "int64", + "id": 39, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "hybridReplicationParameters": { + "type": "HybridReplicationParameters", + "id": 40, "options": { "(google.api.field_behavior)": "OPTIONAL" } @@ -3376,1045 +3551,1121 @@ "UPDATING": 4, "RESTORING": 5, "DISABLED": 6, - "ERROR": 7 + "ERROR": 7, + "PREPARING": 8, + "READ_ONLY": 9 } } } }, - "ServiceLevel": { - "values": { - "SERVICE_LEVEL_UNSPECIFIED": 0, - "PREMIUM": 1, - "EXTREME": 2, - "STANDARD": 3, - "FLEX": 4 - } - }, - "EncryptionType": { - "values": { - "ENCRYPTION_TYPE_UNSPECIFIED": 0, - "SERVICE_MANAGED": 1, - "CLOUD_KMS": 2 - } - }, - "LocationMetadata": { + "ExportPolicy": { "fields": { - "supportedServiceLevels": { + "rules": { "rule": "repeated", - "type": "ServiceLevel", + "type": "SimpleExportPolicyRule", "id": 1, "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" + "(google.api.field_behavior)": "REQUIRED" } } } }, - "Protocols": { - "values": { - "PROTOCOLS_UNSPECIFIED": 0, - "NFSV3": 1, - "NFSV4": 2, - "SMB": 3 - } - }, - "AccessType": { - "values": { - "ACCESS_TYPE_UNSPECIFIED": 0, - "READ_ONLY": 1, - "READ_WRITE": 2, - "READ_NONE": 3 - } - }, - "SMBSettings": { - "values": { - "SMB_SETTINGS_UNSPECIFIED": 0, - "ENCRYPT_DATA": 1, - "BROWSABLE": 2, - "CHANGE_NOTIFY": 3, - "NON_BROWSABLE": 4, - "OPLOCKS": 5, - "SHOW_SNAPSHOT": 6, - "SHOW_PREVIOUS_VERSIONS": 7, - "ACCESS_BASED_ENUMERATION": 8, - "CONTINUOUSLY_AVAILABLE": 9 - } - }, - "SecurityStyle": { - "values": { - "SECURITY_STYLE_UNSPECIFIED": 0, - "NTFS": 1, - "UNIX": 2 - } - }, - "RestrictedAction": { - "values": { - "RESTRICTED_ACTION_UNSPECIFIED": 0, - "DELETE": 1 - } - }, - "ListVolumesRequest": { - "fields": { - "parent": { - "type": "string", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).child_type": "netapp.googleapis.com/Volume" - } + "SimpleExportPolicyRule": { + "oneofs": { + "_allowedClients": { + "oneof": [ + "allowedClients" + ] }, - "pageSize": { - "type": "int32", - "id": 2 + "_hasRootAccess": { + "oneof": [ + "hasRootAccess" + ] }, - "pageToken": { - "type": "string", - "id": 3 + "_accessType": { + "oneof": [ + "accessType" + ] }, - "filter": { - "type": "string", - "id": 4 + "_nfsv3": { + "oneof": [ + "nfsv3" + ] }, - "orderBy": { - "type": "string", - "id": 5 - } - } - }, - "ListVolumesResponse": { - "fields": { - "volumes": { - "rule": "repeated", - "type": "Volume", - "id": 1 + "_nfsv4": { + "oneof": [ + "nfsv4" + ] }, - "nextPageToken": { - "type": "string", - "id": 2 + "_kerberos_5ReadOnly": { + "oneof": [ + "kerberos_5ReadOnly" + ] }, - "unreachable": { - "rule": "repeated", - "type": "string", - "id": 3 - } - } - }, - "GetVolumeRequest": { - "fields": { - "name": { - "type": "string", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "netapp.googleapis.com/Volume" - } + "_kerberos_5ReadWrite": { + "oneof": [ + "kerberos_5ReadWrite" + ] + }, + "_kerberos_5iReadOnly": { + "oneof": [ + "kerberos_5iReadOnly" + ] + }, + "_kerberos_5iReadWrite": { + "oneof": [ + "kerberos_5iReadWrite" + ] + }, + "_kerberos_5pReadOnly": { + "oneof": [ + "kerberos_5pReadOnly" + ] + }, + "_kerberos_5pReadWrite": { + "oneof": [ + "kerberos_5pReadWrite" + ] } - } - }, - "CreateVolumeRequest": { + }, "fields": { - "parent": { + "allowedClients": { "type": "string", "id": 1, "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).child_type": "netapp.googleapis.com/Volume" + "proto3_optional": true } }, - "volumeId": { + "hasRootAccess": { "type": "string", "id": 2, "options": { - "(google.api.field_behavior)": "REQUIRED" + "proto3_optional": true } }, - "volume": { - "type": "Volume", + "accessType": { + "type": "AccessType", "id": 3, "options": { - "(google.api.field_behavior)": "REQUIRED" + "proto3_optional": true } - } - } - }, - "UpdateVolumeRequest": { - "fields": { - "updateMask": { - "type": "google.protobuf.FieldMask", - "id": 1, + }, + "nfsv3": { + "type": "bool", + "id": 4, "options": { - "(google.api.field_behavior)": "REQUIRED" + "proto3_optional": true } }, - "volume": { - "type": "Volume", - "id": 2, + "nfsv4": { + "type": "bool", + "id": 5, "options": { - "(google.api.field_behavior)": "REQUIRED" + "proto3_optional": true } - } - } - }, - "DeleteVolumeRequest": { - "fields": { - "name": { - "type": "string", - "id": 1, + }, + "kerberos_5ReadOnly": { + "type": "bool", + "id": 6, "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "netapp.googleapis.com/Volume" + "proto3_optional": true } }, - "force": { + "kerberos_5ReadWrite": { "type": "bool", - "id": 2 - } - } - }, - "RevertVolumeRequest": { - "fields": { - "name": { - "type": "string", - "id": 1, + "id": 7, "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "netapp.googleapis.com/Volume" + "proto3_optional": true } }, - "snapshotId": { - "type": "string", - "id": 2, + "kerberos_5iReadOnly": { + "type": "bool", + "id": 8, "options": { - "(google.api.field_behavior)": "REQUIRED" + "proto3_optional": true + } + }, + "kerberos_5iReadWrite": { + "type": "bool", + "id": 9, + "options": { + "proto3_optional": true + } + }, + "kerberos_5pReadOnly": { + "type": "bool", + "id": 10, + "options": { + "proto3_optional": true + } + }, + "kerberos_5pReadWrite": { + "type": "bool", + "id": 11, + "options": { + "proto3_optional": true } } } }, - "Volume": { - "options": { - "(google.api.resource).type": "netapp.googleapis.com/Volume", - "(google.api.resource).pattern": "projects/{project}/locations/{location}/volumes/{volume}", - "(google.api.resource).plural": "volumes", - "(google.api.resource).singular": "volume" - }, + "SnapshotPolicy": { "oneofs": { - "_backupConfig": { + "_enabled": { "oneof": [ - "backupConfig" + "enabled" ] }, - "_tieringPolicy": { + "_hourlySchedule": { "oneof": [ - "tieringPolicy" + "hourlySchedule" + ] + }, + "_dailySchedule": { + "oneof": [ + "dailySchedule" + ] + }, + "_weeklySchedule": { + "oneof": [ + "weeklySchedule" + ] + }, + "_monthlySchedule": { + "oneof": [ + "monthlySchedule" ] } }, "fields": { - "name": { - "type": "string", + "enabled": { + "type": "bool", "id": 1, "options": { - "(google.api.field_behavior)": "IDENTIFIER" + "proto3_optional": true } }, - "state": { - "type": "State", + "hourlySchedule": { + "type": "HourlySchedule", "id": 2, "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" + "proto3_optional": true } }, - "stateDetails": { - "type": "string", + "dailySchedule": { + "type": "DailySchedule", "id": 3, "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" + "proto3_optional": true } }, - "createTime": { - "type": "google.protobuf.Timestamp", + "weeklySchedule": { + "type": "WeeklySchedule", "id": 4, "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" + "proto3_optional": true } }, - "shareName": { - "type": "string", + "monthlySchedule": { + "type": "MonthlySchedule", "id": 5, "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "psaRange": { - "type": "string", - "id": 6, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" + "proto3_optional": true } + } + } + }, + "HourlySchedule": { + "oneofs": { + "_snapshotsToKeep": { + "oneof": [ + "snapshotsToKeep" + ] }, - "storagePool": { - "type": "string", - "id": 7, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "netapp.googleapis.com/StoragePool" - } - }, - "network": { - "type": "string", - "id": 8, + "_minute": { + "oneof": [ + "minute" + ] + } + }, + "fields": { + "snapshotsToKeep": { + "type": "double", + "id": 1, "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY", - "(google.api.resource_reference).type": "compute.googleapis.com/Network" + "proto3_optional": true } }, - "serviceLevel": { - "type": "ServiceLevel", - "id": 9, + "minute": { + "type": "double", + "id": 2, "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" + "proto3_optional": true } + } + } + }, + "DailySchedule": { + "oneofs": { + "_snapshotsToKeep": { + "oneof": [ + "snapshotsToKeep" + ] }, - "capacityGib": { - "type": "int64", - "id": 10, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } + "_minute": { + "oneof": [ + "minute" + ] }, - "exportPolicy": { - "type": "ExportPolicy", - "id": 11, + "_hour": { + "oneof": [ + "hour" + ] + } + }, + "fields": { + "snapshotsToKeep": { + "type": "double", + "id": 1, "options": { - "(google.api.field_behavior)": "OPTIONAL" + "proto3_optional": true } }, - "protocols": { - "rule": "repeated", - "type": "Protocols", - "id": 12, + "minute": { + "type": "double", + "id": 2, "options": { - "(google.api.field_behavior)": "REQUIRED" + "proto3_optional": true } }, - "smbSettings": { - "rule": "repeated", - "type": "SMBSettings", - "id": 13, + "hour": { + "type": "double", + "id": 3, "options": { - "(google.api.field_behavior)": "OPTIONAL" + "proto3_optional": true } + } + } + }, + "WeeklySchedule": { + "oneofs": { + "_snapshotsToKeep": { + "oneof": [ + "snapshotsToKeep" + ] }, - "mountOptions": { - "rule": "repeated", - "type": "MountOption", - "id": 14, + "_minute": { + "oneof": [ + "minute" + ] + }, + "_hour": { + "oneof": [ + "hour" + ] + }, + "_day": { + "oneof": [ + "day" + ] + } + }, + "fields": { + "snapshotsToKeep": { + "type": "double", + "id": 1, "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" + "proto3_optional": true } }, - "unixPermissions": { - "type": "string", - "id": 15, + "minute": { + "type": "double", + "id": 2, "options": { - "(google.api.field_behavior)": "OPTIONAL" + "proto3_optional": true } }, - "labels": { - "keyType": "string", - "type": "string", - "id": 16, + "hour": { + "type": "double", + "id": 3, "options": { - "(google.api.field_behavior)": "OPTIONAL" + "proto3_optional": true } }, - "description": { + "day": { "type": "string", - "id": 17, + "id": 4, "options": { - "(google.api.field_behavior)": "OPTIONAL" + "proto3_optional": true } + } + } + }, + "MonthlySchedule": { + "oneofs": { + "_snapshotsToKeep": { + "oneof": [ + "snapshotsToKeep" + ] }, - "snapshotPolicy": { - "type": "SnapshotPolicy", - "id": 18, - "options": { - "(google.api.field_behavior)": "OPTIONAL" - } + "_minute": { + "oneof": [ + "minute" + ] }, - "snapReserve": { + "_hour": { + "oneof": [ + "hour" + ] + }, + "_daysOfMonth": { + "oneof": [ + "daysOfMonth" + ] + } + }, + "fields": { + "snapshotsToKeep": { "type": "double", - "id": 19, + "id": 1, "options": { - "(google.api.field_behavior)": "OPTIONAL" + "proto3_optional": true } }, - "snapshotDirectory": { - "type": "bool", - "id": 20, + "minute": { + "type": "double", + "id": 2, "options": { - "(google.api.field_behavior)": "OPTIONAL" + "proto3_optional": true } }, - "usedGib": { - "type": "int64", - "id": 21, + "hour": { + "type": "double", + "id": 3, "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" + "proto3_optional": true } }, - "securityStyle": { - "type": "SecurityStyle", - "id": 22, + "daysOfMonth": { + "type": "string", + "id": 4, "options": { - "(google.api.field_behavior)": "OPTIONAL" + "proto3_optional": true } + } + } + }, + "MountOption": { + "fields": { + "export": { + "type": "string", + "id": 1 }, - "kerberosEnabled": { - "type": "bool", - "id": 23, - "options": { - "(google.api.field_behavior)": "OPTIONAL" - } + "exportFull": { + "type": "string", + "id": 2 }, - "ldapEnabled": { - "type": "bool", - "id": 24, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } + "protocol": { + "type": "Protocols", + "id": 3 }, - "activeDirectory": { + "instructions": { "type": "string", - "id": 25, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY", - "(google.api.resource_reference).type": "netapp.googleapis.com/ActiveDirectory" - } + "id": 4 + } + } + }, + "RestoreParameters": { + "oneofs": { + "source": { + "oneof": [ + "sourceSnapshot", + "sourceBackup" + ] + } + }, + "fields": { + "sourceSnapshot": { + "type": "string", + "id": 1 }, - "restoreParameters": { - "type": "RestoreParameters", - "id": 26, + "sourceBackup": { + "type": "string", + "id": 2 + } + } + }, + "BackupConfig": { + "oneofs": { + "_scheduledBackupEnabled": { + "oneof": [ + "scheduledBackupEnabled" + ] + }, + "_backupChainBytes": { + "oneof": [ + "backupChainBytes" + ] + } + }, + "fields": { + "backupPolicies": { + "rule": "repeated", + "type": "string", + "id": 1, "options": { - "(google.api.field_behavior)": "OPTIONAL" + "(google.api.field_behavior)": "OPTIONAL", + "(google.api.resource_reference).type": "netapp.googleapis.com/BackupPolicy" } }, - "kmsConfig": { + "backupVault": { "type": "string", - "id": 27, + "id": 2, "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY", - "(google.api.resource_reference).type": "netapp.googleapis.com/KmsConfig" + "(google.api.field_behavior)": "OPTIONAL", + "(google.api.resource_reference).type": "netapp.googleapis.com/BackupVault" } }, - "encryptionType": { - "type": "EncryptionType", - "id": 28, + "scheduledBackupEnabled": { + "type": "bool", + "id": 3, "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" + "(google.api.field_behavior)": "OPTIONAL", + "proto3_optional": true } }, - "hasReplication": { - "type": "bool", - "id": 29, + "backupChainBytes": { + "type": "int64", + "id": 4, "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" + "(google.api.field_behavior)": "OUTPUT_ONLY", + "proto3_optional": true } + } + } + }, + "TieringPolicy": { + "oneofs": { + "_tierAction": { + "oneof": [ + "tierAction" + ] }, - "backupConfig": { - "type": "BackupConfig", - "id": 30, + "_coolingThresholdDays": { + "oneof": [ + "coolingThresholdDays" + ] + } + }, + "fields": { + "tierAction": { + "type": "TierAction", + "id": 1, "options": { + "(google.api.field_behavior)": "OPTIONAL", "proto3_optional": true } }, - "restrictedActions": { - "rule": "repeated", - "type": "RestrictedAction", - "id": 31, + "coolingThresholdDays": { + "type": "int32", + "id": 2, "options": { - "(google.api.field_behavior)": "OPTIONAL" + "(google.api.field_behavior)": "OPTIONAL", + "proto3_optional": true + } + } + }, + "nested": { + "TierAction": { + "values": { + "TIER_ACTION_UNSPECIFIED": 0, + "ENABLED": 1, + "PAUSED": 2 + } + } + } + }, + "HybridReplicationParameters": { + "fields": { + "replication": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "netapp.googleapis.com/Replication" } }, - "largeCapacity": { - "type": "bool", - "id": 32, + "peerVolumeName": { + "type": "string", + "id": 2, "options": { - "(google.api.field_behavior)": "OPTIONAL" + "(google.api.field_behavior)": "REQUIRED" } }, - "multipleEndpoints": { - "type": "bool", - "id": 33, + "peerClusterName": { + "type": "string", + "id": 3, "options": { - "(google.api.field_behavior)": "OPTIONAL" + "(google.api.field_behavior)": "REQUIRED" } }, - "tieringPolicy": { - "type": "TieringPolicy", - "id": 34, + "peerSvmName": { + "type": "string", + "id": 4, "options": { - "proto3_optional": true + "(google.api.field_behavior)": "REQUIRED" } }, - "replicaZone": { + "peerIpAddresses": { + "rule": "repeated", "type": "string", - "id": 36, + "id": 5, "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" + "(google.api.field_behavior)": "REQUIRED" } }, - "zone": { + "clusterLocation": { "type": "string", - "id": 37, + "id": 6, "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" + "(google.api.field_behavior)": "OPTIONAL" } }, - "coldTierSizeGib": { - "type": "int64", - "id": 39, + "description": { + "type": "string", + "id": 7, "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" + "(google.api.field_behavior)": "OPTIONAL" } - } - }, - "nested": { - "State": { - "values": { - "STATE_UNSPECIFIED": 0, - "READY": 1, - "CREATING": 2, - "DELETING": 3, - "UPDATING": 4, - "RESTORING": 5, - "DISABLED": 6, - "ERROR": 7 + }, + "labels": { + "keyType": "string", + "type": "string", + "id": 8, + "options": { + "(google.api.field_behavior)": "OPTIONAL" } } } }, - "ExportPolicy": { + "ServiceLevel": { + "values": { + "SERVICE_LEVEL_UNSPECIFIED": 0, + "PREMIUM": 1, + "EXTREME": 2, + "STANDARD": 3, + "FLEX": 4 + } + }, + "EncryptionType": { + "values": { + "ENCRYPTION_TYPE_UNSPECIFIED": 0, + "SERVICE_MANAGED": 1, + "CLOUD_KMS": 2 + } + }, + "LocationMetadata": { "fields": { - "rules": { + "supportedServiceLevels": { "rule": "repeated", - "type": "SimpleExportPolicyRule", + "type": "ServiceLevel", "id": 1, "options": { - "(google.api.field_behavior)": "REQUIRED" + "(google.api.field_behavior)": "OUTPUT_ONLY" } } } }, - "SimpleExportPolicyRule": { - "oneofs": { - "_allowedClients": { - "oneof": [ - "allowedClients" - ] - }, - "_hasRootAccess": { - "oneof": [ - "hasRootAccess" - ] - }, - "_accessType": { - "oneof": [ - "accessType" - ] - }, - "_nfsv3": { - "oneof": [ - "nfsv3" - ] - }, - "_nfsv4": { - "oneof": [ - "nfsv4" - ] + "ListSnapshotsRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).child_type": "netapp.googleapis.com/Snapshot" + } }, - "_kerberos_5ReadOnly": { - "oneof": [ - "kerberos_5ReadOnly" - ] + "pageSize": { + "type": "int32", + "id": 2 }, - "_kerberos_5ReadWrite": { - "oneof": [ - "kerberos_5ReadWrite" - ] + "pageToken": { + "type": "string", + "id": 3 }, - "_kerberos_5iReadOnly": { - "oneof": [ - "kerberos_5iReadOnly" - ] + "orderBy": { + "type": "string", + "id": 4 }, - "_kerberos_5iReadWrite": { - "oneof": [ - "kerberos_5iReadWrite" - ] + "filter": { + "type": "string", + "id": 5 + } + } + }, + "ListSnapshotsResponse": { + "fields": { + "snapshots": { + "rule": "repeated", + "type": "Snapshot", + "id": 1 }, - "_kerberos_5pReadOnly": { - "oneof": [ - "kerberos_5pReadOnly" - ] + "nextPageToken": { + "type": "string", + "id": 2 }, - "_kerberos_5pReadWrite": { - "oneof": [ - "kerberos_5pReadWrite" - ] + "unreachable": { + "rule": "repeated", + "type": "string", + "id": 3 } - }, + } + }, + "GetSnapshotRequest": { "fields": { - "allowedClients": { + "name": { "type": "string", "id": 1, "options": { - "proto3_optional": true + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "netapp.googleapis.com/Snapshot" } - }, - "hasRootAccess": { + } + } + }, + "CreateSnapshotRequest": { + "fields": { + "parent": { "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).child_type": "netapp.googleapis.com/Snapshot" + } + }, + "snapshot": { + "type": "Snapshot", "id": 2, "options": { - "proto3_optional": true + "(google.api.field_behavior)": "REQUIRED" } }, - "accessType": { - "type": "AccessType", + "snapshotId": { + "type": "string", "id": 3, "options": { - "proto3_optional": true + "(google.api.field_behavior)": "REQUIRED" } - }, - "nfsv3": { - "type": "bool", - "id": 4, + } + } + }, + "DeleteSnapshotRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, "options": { - "proto3_optional": true + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "netapp.googleapis.com/Snapshot" } - }, - "nfsv4": { - "type": "bool", - "id": 5, + } + } + }, + "UpdateSnapshotRequest": { + "fields": { + "updateMask": { + "type": "google.protobuf.FieldMask", + "id": 1, "options": { - "proto3_optional": true + "(google.api.field_behavior)": "REQUIRED" } }, - "kerberos_5ReadOnly": { - "type": "bool", - "id": 6, + "snapshot": { + "type": "Snapshot", + "id": 2, "options": { - "proto3_optional": true + "(google.api.field_behavior)": "REQUIRED" } - }, - "kerberos_5ReadWrite": { - "type": "bool", - "id": 7, + } + } + }, + "Snapshot": { + "options": { + "(google.api.resource).type": "netapp.googleapis.com/Snapshot", + "(google.api.resource).pattern": "projects/{project}/locations/{location}/volumes/{volume}/snapshots/{snapshot}", + "(google.api.resource).plural": "snapshots", + "(google.api.resource).singular": "snapshot" + }, + "fields": { + "name": { + "type": "string", + "id": 1, "options": { - "proto3_optional": true + "(google.api.field_behavior)": "IDENTIFIER" } }, - "kerberos_5iReadOnly": { - "type": "bool", - "id": 8, + "state": { + "type": "State", + "id": 2, "options": { - "proto3_optional": true + "(google.api.field_behavior)": "OUTPUT_ONLY" } }, - "kerberos_5iReadWrite": { - "type": "bool", - "id": 9, + "stateDetails": { + "type": "string", + "id": 3, "options": { - "proto3_optional": true + "(google.api.field_behavior)": "OUTPUT_ONLY" } }, - "kerberos_5pReadOnly": { - "type": "bool", - "id": 10, + "description": { + "type": "string", + "id": 4 + }, + "usedBytes": { + "type": "double", + "id": 5, "options": { - "proto3_optional": true + "(google.api.field_behavior)": "OUTPUT_ONLY" } }, - "kerberos_5pReadWrite": { - "type": "bool", - "id": 11, + "createTime": { + "type": "google.protobuf.Timestamp", + "id": 6, "options": { - "proto3_optional": true + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "labels": { + "keyType": "string", + "type": "string", + "id": 7 + } + }, + "nested": { + "State": { + "values": { + "STATE_UNSPECIFIED": 0, + "READY": 1, + "CREATING": 2, + "DELETING": 3, + "UPDATING": 4, + "DISABLED": 5, + "ERROR": 6 } } } }, - "SnapshotPolicy": { - "oneofs": { - "_enabled": { - "oneof": [ - "enabled" - ] - }, - "_hourlySchedule": { - "oneof": [ - "hourlySchedule" - ] - }, - "_dailySchedule": { - "oneof": [ - "dailySchedule" - ] - }, - "_weeklySchedule": { - "oneof": [ - "weeklySchedule" - ] - }, - "_monthlySchedule": { - "oneof": [ - "monthlySchedule" - ] + "GetStoragePoolRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "netapp.googleapis.com/StoragePool" + } } - }, + } + }, + "ListStoragePoolsRequest": { "fields": { - "enabled": { - "type": "bool", + "parent": { + "type": "string", "id": 1, "options": { - "proto3_optional": true + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).child_type": "netapp.googleapis.com/StoragePool" } }, - "hourlySchedule": { - "type": "HourlySchedule", + "pageSize": { + "type": "int32", "id": 2, "options": { - "proto3_optional": true + "(google.api.field_behavior)": "OPTIONAL" } }, - "dailySchedule": { - "type": "DailySchedule", + "pageToken": { + "type": "string", "id": 3, "options": { - "proto3_optional": true + "(google.api.field_behavior)": "OPTIONAL" } }, - "weeklySchedule": { - "type": "WeeklySchedule", + "orderBy": { + "type": "string", "id": 4, "options": { - "proto3_optional": true + "(google.api.field_behavior)": "OPTIONAL" } }, - "monthlySchedule": { - "type": "MonthlySchedule", + "filter": { + "type": "string", "id": 5, "options": { - "proto3_optional": true + "(google.api.field_behavior)": "OPTIONAL" } } } }, - "HourlySchedule": { - "oneofs": { - "_snapshotsToKeep": { - "oneof": [ - "snapshotsToKeep" - ] + "ListStoragePoolsResponse": { + "fields": { + "storagePools": { + "rule": "repeated", + "type": "StoragePool", + "id": 1 }, - "_minute": { - "oneof": [ - "minute" - ] + "nextPageToken": { + "type": "string", + "id": 2 + }, + "unreachable": { + "rule": "repeated", + "type": "string", + "id": 3 } - }, + } + }, + "CreateStoragePoolRequest": { "fields": { - "snapshotsToKeep": { - "type": "double", + "parent": { + "type": "string", "id": 1, "options": { - "proto3_optional": true + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).child_type": "netapp.googleapis.com/StoragePool" } }, - "minute": { - "type": "double", + "storagePoolId": { + "type": "string", "id": 2, "options": { - "proto3_optional": true + "(google.api.field_behavior)": "REQUIRED" + } + }, + "storagePool": { + "type": "StoragePool", + "id": 3, + "options": { + "(google.api.field_behavior)": "REQUIRED" } } } }, - "DailySchedule": { - "oneofs": { - "_snapshotsToKeep": { - "oneof": [ - "snapshotsToKeep" - ] - }, - "_minute": { - "oneof": [ - "minute" - ] - }, - "_hour": { - "oneof": [ - "hour" - ] - } - }, + "UpdateStoragePoolRequest": { "fields": { - "snapshotsToKeep": { - "type": "double", + "updateMask": { + "type": "google.protobuf.FieldMask", "id": 1, "options": { - "proto3_optional": true + "(google.api.field_behavior)": "REQUIRED" } }, - "minute": { - "type": "double", + "storagePool": { + "type": "StoragePool", "id": 2, "options": { - "proto3_optional": true + "(google.api.field_behavior)": "REQUIRED" } - }, - "hour": { - "type": "double", - "id": 3, + } + } + }, + "DeleteStoragePoolRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, "options": { - "proto3_optional": true + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "netapp.googleapis.com/StoragePool" } } } }, - "WeeklySchedule": { + "SwitchActiveReplicaZoneRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "netapp.googleapis.com/StoragePool" + } + } + } + }, + "StoragePool": { + "options": { + "(google.api.resource).type": "netapp.googleapis.com/StoragePool", + "(google.api.resource).pattern": "projects/{project}/locations/{location}/storagePools/{storage_pool}", + "(google.api.resource).plural": "storagePools", + "(google.api.resource).singular": "storagePool" + }, "oneofs": { - "_snapshotsToKeep": { - "oneof": [ - "snapshotsToKeep" - ] - }, - "_minute": { - "oneof": [ - "minute" - ] - }, - "_hour": { - "oneof": [ - "hour" - ] - }, - "_day": { + "_globalAccessAllowed": { "oneof": [ - "day" + "globalAccessAllowed" ] } }, "fields": { - "snapshotsToKeep": { - "type": "double", + "name": { + "type": "string", "id": 1, "options": { - "proto3_optional": true + "(google.api.field_behavior)": "IDENTIFIER" } }, - "minute": { - "type": "double", + "serviceLevel": { + "type": "ServiceLevel", "id": 2, "options": { - "proto3_optional": true + "(google.api.field_behavior)": "REQUIRED" } }, - "hour": { - "type": "double", + "capacityGib": { + "type": "int64", "id": 3, "options": { - "proto3_optional": true + "(google.api.field_behavior)": "REQUIRED" } }, - "day": { - "type": "string", + "volumeCapacityGib": { + "type": "int64", "id": 4, "options": { - "proto3_optional": true + "(google.api.field_behavior)": "OUTPUT_ONLY" } - } - } - }, - "MonthlySchedule": { - "oneofs": { - "_snapshotsToKeep": { - "oneof": [ - "snapshotsToKeep" - ] - }, - "_minute": { - "oneof": [ - "minute" - ] }, - "_hour": { - "oneof": [ - "hour" - ] + "volumeCount": { + "type": "int32", + "id": 5, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } }, - "_daysOfMonth": { - "oneof": [ - "daysOfMonth" - ] - } - }, - "fields": { - "snapshotsToKeep": { - "type": "double", - "id": 1, + "state": { + "type": "State", + "id": 6, "options": { - "proto3_optional": true + "(google.api.field_behavior)": "OUTPUT_ONLY" } }, - "minute": { - "type": "double", - "id": 2, + "stateDetails": { + "type": "string", + "id": 7, "options": { - "proto3_optional": true + "(google.api.field_behavior)": "OUTPUT_ONLY" } }, - "hour": { - "type": "double", - "id": 3, + "createTime": { + "type": "google.protobuf.Timestamp", + "id": 8, "options": { - "proto3_optional": true + "(google.api.field_behavior)": "OUTPUT_ONLY" } }, - "daysOfMonth": { + "description": { "type": "string", - "id": 4, + "id": 9, "options": { - "proto3_optional": true + "(google.api.field_behavior)": "OPTIONAL" } - } - } - }, - "MountOption": { - "fields": { - "export": { - "type": "string", - "id": 1 }, - "exportFull": { + "labels": { + "keyType": "string", "type": "string", - "id": 2 - }, - "protocol": { - "type": "Protocols", - "id": 3 + "id": 10, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } }, - "instructions": { - "type": "string", - "id": 4 - } - } - }, - "RestoreParameters": { - "oneofs": { - "source": { - "oneof": [ - "sourceSnapshot", - "sourceBackup" - ] - } - }, - "fields": { - "sourceSnapshot": { + "network": { "type": "string", - "id": 1 + "id": 11, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "compute.googleapis.com/Network" + } }, - "sourceBackup": { + "activeDirectory": { "type": "string", - "id": 2 - } - } - }, - "BackupConfig": { - "oneofs": { - "_scheduledBackupEnabled": { - "oneof": [ - "scheduledBackupEnabled" - ] + "id": 12, + "options": { + "(google.api.field_behavior)": "OPTIONAL", + "(google.api.resource_reference).type": "netapp.googleapis.com/ActiveDirectory" + } }, - "_backupChainBytes": { - "oneof": [ - "backupChainBytes" - ] - } - }, - "fields": { - "backupPolicies": { - "rule": "repeated", + "kmsConfig": { "type": "string", - "id": 1, + "id": 13, "options": { "(google.api.field_behavior)": "OPTIONAL", - "(google.api.resource_reference).type": "netapp.googleapis.com/BackupPolicy" + "(google.api.resource_reference).type": "netapp.googleapis.com/KmsConfig" } }, - "backupVault": { + "ldapEnabled": { + "type": "bool", + "id": 14, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "psaRange": { "type": "string", - "id": 2, + "id": 15, "options": { - "(google.api.field_behavior)": "OPTIONAL", - "(google.api.resource_reference).type": "netapp.googleapis.com/BackupVault" + "(google.api.field_behavior)": "OPTIONAL" } }, - "scheduledBackupEnabled": { + "encryptionType": { + "type": "EncryptionType", + "id": 16, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "globalAccessAllowed": { "type": "bool", - "id": 3, + "id": 17, "options": { - "(google.api.field_behavior)": "OPTIONAL", + "deprecated": true, "proto3_optional": true } }, - "backupChainBytes": { - "type": "int64", - "id": 4, + "allowAutoTiering": { + "type": "bool", + "id": 18, "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY", - "proto3_optional": true + "(google.api.field_behavior)": "OPTIONAL" } - } - } - }, - "TieringPolicy": { - "oneofs": { - "_tierAction": { - "oneof": [ - "tierAction" - ] }, - "_coolingThresholdDays": { - "oneof": [ - "coolingThresholdDays" - ] - } - }, - "fields": { - "tierAction": { - "type": "TierAction", - "id": 1, + "replicaZone": { + "type": "string", + "id": 20, "options": { - "(google.api.field_behavior)": "OPTIONAL", - "proto3_optional": true + "(google.api.field_behavior)": "OPTIONAL" } }, - "coolingThresholdDays": { - "type": "int32", - "id": 2, + "zone": { + "type": "string", + "id": 21, "options": { - "(google.api.field_behavior)": "OPTIONAL", - "proto3_optional": true + "(google.api.field_behavior)": "OPTIONAL" } } }, "nested": { - "TierAction": { + "State": { "values": { - "TIER_ACTION_UNSPECIFIED": 0, - "ENABLED": 1, - "PAUSED": 2 + "STATE_UNSPECIFIED": 0, + "READY": 1, + "CREATING": 2, + "DELETING": 3, + "UPDATING": 4, + "RESTORING": 5, + "DISABLED": 6, + "ERROR": 7 } } } @@ -4427,9 +4678,9 @@ }, "api": { "options": { - "go_package": "google.golang.org/genproto/googleapis/api;api", + "go_package": "google.golang.org/genproto/googleapis/api/annotations;annotations", "java_multiple_files": true, - "java_outer_classname": "LaunchStageProto", + "java_outer_classname": "FieldInfoProto", "java_package": "com.google.api", "objc_class_prefix": "GAPI", "cc_enable_arenas": true @@ -4912,6 +5163,30 @@ "GA": 4, "DEPRECATED": 5 } + }, + "fieldInfo": { + "type": "google.api.FieldInfo", + "id": 291403980, + "extend": "google.protobuf.FieldOptions" + }, + "FieldInfo": { + "fields": { + "format": { + "type": "Format", + "id": 1 + } + }, + "nested": { + "Format": { + "values": { + "FORMAT_UNSPECIFIED": 0, + "UUID4": 1, + "IPV4": 2, + "IPV6": 3, + "IPV4_OR_IPV6": 4 + } + } + } } } }, diff --git a/packages/google-cloud-netapp/samples/README.md b/packages/google-cloud-netapp/samples/README.md index 48bc3122be3..8c5ec974307 100644 --- a/packages/google-cloud-netapp/samples/README.md +++ b/packages/google-cloud-netapp/samples/README.md @@ -31,6 +31,7 @@ * [Net_app.delete_storage_pool](#net_app.delete_storage_pool) * [Net_app.delete_volume](#net_app.delete_volume) * [Net_app.encrypt_volumes](#net_app.encrypt_volumes) + * [Net_app.establish_peering](#net_app.establish_peering) * [Net_app.get_active_directory](#net_app.get_active_directory) * [Net_app.get_backup](#net_app.get_backup) * [Net_app.get_backup_policy](#net_app.get_backup_policy) @@ -54,6 +55,7 @@ * [Net_app.revert_volume](#net_app.revert_volume) * [Net_app.stop_replication](#net_app.stop_replication) * [Net_app.switch_active_replica_zone](#net_app.switch_active_replica_zone) + * [Net_app.sync_replication](#net_app.sync_replication) * [Net_app.update_active_directory](#net_app.update_active_directory) * [Net_app.update_backup](#net_app.update_backup) * [Net_app.update_backup_policy](#net_app.update_backup_policy) @@ -404,6 +406,23 @@ __Usage:__ +### Net_app.establish_peering + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-netapp/samples/generated/v1/net_app.establish_peering.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-netapp/samples/generated/v1/net_app.establish_peering.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-netapp/samples/generated/v1/net_app.establish_peering.js` + + +----- + + + + ### Net_app.get_active_directory View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-netapp/samples/generated/v1/net_app.get_active_directory.js). @@ -795,6 +814,23 @@ __Usage:__ +### Net_app.sync_replication + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-netapp/samples/generated/v1/net_app.sync_replication.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-netapp/samples/generated/v1/net_app.sync_replication.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-netapp/samples/generated/v1/net_app.sync_replication.js` + + +----- + + + + ### Net_app.update_active_directory View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-netapp/samples/generated/v1/net_app.update_active_directory.js). diff --git a/packages/google-cloud-netapp/samples/generated/v1/net_app.create_active_directory.js b/packages/google-cloud-netapp/samples/generated/v1/net_app.create_active_directory.js index 2e6edead746..50b9ed8bd2a 100644 --- a/packages/google-cloud-netapp/samples/generated/v1/net_app.create_active_directory.js +++ b/packages/google-cloud-netapp/samples/generated/v1/net_app.create_active_directory.js @@ -38,9 +38,9 @@ function main(parent, activeDirectory, activeDirectoryId) { // const activeDirectory = {} /** * Required. ID of the active directory 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 resource. Must contain only letters, numbers and hyphen, with the + * first character a letter , the last a letter or a number, and a 63 + * character maximum. */ // const activeDirectoryId = 'abc123' diff --git a/packages/google-cloud-netapp/samples/generated/v1/net_app.create_backup.js b/packages/google-cloud-netapp/samples/generated/v1/net_app.create_backup.js index 3bf1a850685..d924e200d6a 100644 --- a/packages/google-cloud-netapp/samples/generated/v1/net_app.create_backup.js +++ b/packages/google-cloud-netapp/samples/generated/v1/net_app.create_backup.js @@ -36,8 +36,8 @@ function main(parent, backupId, backup) { /** * 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 + * Must contain only letters, numbers and hyphen, with the first + * character a letter, the last a letter or a * number, and a 63 character maximum. */ // const backupId = 'abc123' diff --git a/packages/google-cloud-netapp/samples/generated/v1/net_app.create_backup_policy.js b/packages/google-cloud-netapp/samples/generated/v1/net_app.create_backup_policy.js index e74e1a642f2..67a6359f29d 100644 --- a/packages/google-cloud-netapp/samples/generated/v1/net_app.create_backup_policy.js +++ b/packages/google-cloud-netapp/samples/generated/v1/net_app.create_backup_policy.js @@ -40,8 +40,8 @@ function main(parent, backupPolicy, backupPolicyId) { /** * Required. The ID to use for the backup policy. * 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 + * Must contain only letters, numbers and hyphen, with the first + * character a letter, the last a letter or a * number, and a 63 character maximum. */ // const backupPolicyId = 'abc123' diff --git a/packages/google-cloud-netapp/samples/generated/v1/net_app.create_backup_vault.js b/packages/google-cloud-netapp/samples/generated/v1/net_app.create_backup_vault.js index f668df4defb..7b3ffa63c98 100644 --- a/packages/google-cloud-netapp/samples/generated/v1/net_app.create_backup_vault.js +++ b/packages/google-cloud-netapp/samples/generated/v1/net_app.create_backup_vault.js @@ -36,8 +36,8 @@ function main(parent, backupVaultId, backupVault) { /** * 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 + * Must contain only letters, numbers and hyphen, with the first + * character a letter, the last a letter or a * number, and a 63 character maximum. */ // const backupVaultId = 'abc123' diff --git a/packages/google-cloud-netapp/samples/generated/v1/net_app.create_kms_config.js b/packages/google-cloud-netapp/samples/generated/v1/net_app.create_kms_config.js index 2140a5f2598..515e655631c 100644 --- a/packages/google-cloud-netapp/samples/generated/v1/net_app.create_kms_config.js +++ b/packages/google-cloud-netapp/samples/generated/v1/net_app.create_kms_config.js @@ -34,9 +34,9 @@ function main(parent, kmsConfigId, kmsConfig) { // const parent = 'abc123' /** * 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. + * resource. Must contain only letters, numbers and hyphen, with the first + * character a letter, the last a letter or a + * number, and a 63 character maximum. */ // const kmsConfigId = 'abc123' /** diff --git a/packages/google-cloud-netapp/samples/generated/v1/net_app.create_replication.js b/packages/google-cloud-netapp/samples/generated/v1/net_app.create_replication.js index d4c3f5fd233..5e45b0cfead 100644 --- a/packages/google-cloud-netapp/samples/generated/v1/net_app.create_replication.js +++ b/packages/google-cloud-netapp/samples/generated/v1/net_app.create_replication.js @@ -39,9 +39,9 @@ function main(parent, replication, replicationId) { // const replication = {} /** * Required. ID of the replication 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. + * resource. Must contain only letters, numbers and hyphen, with the first + * character a letter, the last a letter or a + * number, and a 63 character maximum. */ // const replicationId = 'abc123' diff --git a/packages/google-cloud-netapp/samples/generated/v1/net_app.create_snapshot.js b/packages/google-cloud-netapp/samples/generated/v1/net_app.create_snapshot.js index 74c0aa0a5d3..21bdbe5e507 100644 --- a/packages/google-cloud-netapp/samples/generated/v1/net_app.create_snapshot.js +++ b/packages/google-cloud-netapp/samples/generated/v1/net_app.create_snapshot.js @@ -39,9 +39,9 @@ function main(parent, snapshot, snapshotId) { // const snapshot = {} /** * 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. + * resource. Must contain only letters, numbers and hyphen, with the first + * character a letter, the last a letter or a + * number, and a 63 character maximum. */ // const snapshotId = 'abc123' diff --git a/packages/google-cloud-netapp/samples/generated/v1/net_app.create_storage_pool.js b/packages/google-cloud-netapp/samples/generated/v1/net_app.create_storage_pool.js index e0b5eebb166..7fc5c1cd584 100644 --- a/packages/google-cloud-netapp/samples/generated/v1/net_app.create_storage_pool.js +++ b/packages/google-cloud-netapp/samples/generated/v1/net_app.create_storage_pool.js @@ -34,9 +34,9 @@ function main(parent, storagePoolId, storagePool) { // const parent = 'abc123' /** * 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. + * parent resource. Must contain only letters, numbers and hyphen, with the + * first character a letter, the last a letter or a number, and a 63 character + * maximum. */ // const storagePoolId = 'abc123' /** diff --git a/packages/google-cloud-netapp/samples/generated/v1/net_app.create_volume.js b/packages/google-cloud-netapp/samples/generated/v1/net_app.create_volume.js index 6885f78de9b..52865a349e9 100644 --- a/packages/google-cloud-netapp/samples/generated/v1/net_app.create_volume.js +++ b/packages/google-cloud-netapp/samples/generated/v1/net_app.create_volume.js @@ -34,9 +34,9 @@ function main(parent, volumeId, volume) { // const parent = 'abc123' /** * 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. + * resource. Must contain only letters, numbers and hyphen, with the first + * character a letter, the last a letter or a number, + * and a 63 character maximum. */ // const volumeId = 'abc123' /** diff --git a/packages/google-cloud-netapp/samples/generated/v1/net_app.establish_peering.js b/packages/google-cloud-netapp/samples/generated/v1/net_app.establish_peering.js new file mode 100644 index 00000000000..53a005e81cb --- /dev/null +++ b/packages/google-cloud-netapp/samples/generated/v1/net_app.establish_peering.js @@ -0,0 +1,85 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(name, peerClusterName, peerSvmName, peerVolumeName) { + // [START netapp_v1_generated_NetApp_EstablishPeering_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The resource name of the replication, in the format of + * projects/{project_id}/locations/{location}/volumes/{volume_id}/replications/{replication_id}. + */ + // const name = 'abc123' + /** + * Required. Name of the user's local source cluster to be peered with the + * destination cluster. + */ + // const peerClusterName = 'abc123' + /** + * Required. Name of the user's local source vserver svm to be peered with the + * destination vserver svm. + */ + // const peerSvmName = 'abc123' + /** + * Optional. List of IPv4 ip addresses to be used for peering. + */ + // const peerIpAddresses = ['abc','def'] + /** + * Required. Name of the user's local source volume to be peered with the + * destination volume. + */ + // const peerVolumeName = 'abc123' + + // Imports the Netapp library + const {NetAppClient} = require('@google-cloud/netapp').v1; + + // Instantiates a client + const netappClient = new NetAppClient(); + + async function callEstablishPeering() { + // Construct request + const request = { + name, + peerClusterName, + peerSvmName, + peerVolumeName, + }; + + // Run request + const [operation] = await netappClient.establishPeering(request); + const [response] = await operation.promise(); + console.log(response); + } + + callEstablishPeering(); + // [END netapp_v1_generated_NetApp_EstablishPeering_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-netapp/samples/generated/v1/net_app.sync_replication.js b/packages/google-cloud-netapp/samples/generated/v1/net_app.sync_replication.js new file mode 100644 index 00000000000..7ba990c36a3 --- /dev/null +++ b/packages/google-cloud-netapp/samples/generated/v1/net_app.sync_replication.js @@ -0,0 +1,63 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(name) { + // [START netapp_v1_generated_NetApp_SyncReplication_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The resource name of the replication, in the format of + * projects/{project_id}/locations/{location}/volumes/{volume_id}/replications/{replication_id}. + */ + // const name = 'abc123' + + // Imports the Netapp library + const {NetAppClient} = require('@google-cloud/netapp').v1; + + // Instantiates a client + const netappClient = new NetAppClient(); + + async function callSyncReplication() { + // Construct request + const request = { + name, + }; + + // Run request + const [operation] = await netappClient.syncReplication(request); + const [response] = await operation.promise(); + console.log(response); + } + + callSyncReplication(); + // [END netapp_v1_generated_NetApp_SyncReplication_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-netapp/samples/generated/v1/snippet_metadata_google.cloud.netapp.v1.json b/packages/google-cloud-netapp/samples/generated/v1/snippet_metadata_google.cloud.netapp.v1.json index a9b580c2db3..79cfac37339 100644 --- a/packages/google-cloud-netapp/samples/generated/v1/snippet_metadata_google.cloud.netapp.v1.json +++ b/packages/google-cloud-netapp/samples/generated/v1/snippet_metadata_google.cloud.netapp.v1.json @@ -1671,6 +1671,102 @@ } } }, + { + "regionTag": "netapp_v1_generated_NetApp_EstablishPeering_async", + "title": "NetApp establishPeering Sample", + "origin": "API_DEFINITION", + "description": " Establish replication peering.", + "canonical": true, + "file": "net_app.establish_peering.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 77, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "EstablishPeering", + "fullName": "google.cloud.netapp.v1.NetApp.EstablishPeering", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + }, + { + "name": "peer_cluster_name", + "type": "TYPE_STRING" + }, + { + "name": "peer_svm_name", + "type": "TYPE_STRING" + }, + { + "name": "peer_ip_addresses", + "type": "TYPE_STRING[]" + }, + { + "name": "peer_volume_name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "NetAppClient", + "fullName": "google.cloud.netapp.v1.NetAppClient" + }, + "method": { + "shortName": "EstablishPeering", + "fullName": "google.cloud.netapp.v1.NetApp.EstablishPeering", + "service": { + "shortName": "NetApp", + "fullName": "google.cloud.netapp.v1.NetApp" + } + } + } + }, + { + "regionTag": "netapp_v1_generated_NetApp_SyncReplication_async", + "title": "NetApp syncReplication Sample", + "origin": "API_DEFINITION", + "description": " Syncs the replication. This will invoke one time volume data transfer from source to destination.", + "canonical": true, + "file": "net_app.sync_replication.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 55, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "SyncReplication", + "fullName": "google.cloud.netapp.v1.NetApp.SyncReplication", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "NetAppClient", + "fullName": "google.cloud.netapp.v1.NetAppClient" + }, + "method": { + "shortName": "SyncReplication", + "fullName": "google.cloud.netapp.v1.NetApp.SyncReplication", + "service": { + "shortName": "NetApp", + "fullName": "google.cloud.netapp.v1.NetApp" + } + } + } + }, { "regionTag": "netapp_v1_generated_NetApp_CreateBackupVault_async", "title": "NetApp createBackupVault Sample", diff --git a/packages/google-cloud-netapp/src/v1/gapic_metadata.json b/packages/google-cloud-netapp/src/v1/gapic_metadata.json index caadd067b5c..a72f7cd45ac 100644 --- a/packages/google-cloud-netapp/src/v1/gapic_metadata.json +++ b/packages/google-cloud-netapp/src/v1/gapic_metadata.json @@ -180,6 +180,16 @@ "reverseReplicationDirection" ] }, + "EstablishPeering": { + "methods": [ + "establishPeering" + ] + }, + "SyncReplication": { + "methods": [ + "syncReplication" + ] + }, "CreateBackupVault": { "methods": [ "createBackupVault" @@ -463,6 +473,16 @@ "reverseReplicationDirection" ] }, + "EstablishPeering": { + "methods": [ + "establishPeering" + ] + }, + "SyncReplication": { + "methods": [ + "syncReplication" + ] + }, "CreateBackupVault": { "methods": [ "createBackupVault" diff --git a/packages/google-cloud-netapp/src/v1/net_app_client.ts b/packages/google-cloud-netapp/src/v1/net_app_client.ts index 2bb3a812616..de97346149a 100644 --- a/packages/google-cloud-netapp/src/v1/net_app_client.ts +++ b/packages/google-cloud-netapp/src/v1/net_app_client.ts @@ -474,6 +474,18 @@ export class NetAppClient { const reverseReplicationDirectionMetadata = protoFilesRoot.lookup( '.google.cloud.netapp.v1.OperationMetadata' ) as gax.protobuf.Type; + const establishPeeringResponse = protoFilesRoot.lookup( + '.google.cloud.netapp.v1.Replication' + ) as gax.protobuf.Type; + const establishPeeringMetadata = protoFilesRoot.lookup( + '.google.cloud.netapp.v1.OperationMetadata' + ) as gax.protobuf.Type; + const syncReplicationResponse = protoFilesRoot.lookup( + '.google.cloud.netapp.v1.Replication' + ) as gax.protobuf.Type; + const syncReplicationMetadata = protoFilesRoot.lookup( + '.google.cloud.netapp.v1.OperationMetadata' + ) as gax.protobuf.Type; const createBackupVaultResponse = protoFilesRoot.lookup( '.google.cloud.netapp.v1.BackupVault' ) as gax.protobuf.Type; @@ -664,6 +676,16 @@ export class NetAppClient { reverseReplicationDirectionMetadata ) ), + establishPeering: new this._gaxModule.LongrunningDescriptor( + this.operationsClient, + establishPeeringResponse.decode.bind(establishPeeringResponse), + establishPeeringMetadata.decode.bind(establishPeeringMetadata) + ), + syncReplication: new this._gaxModule.LongrunningDescriptor( + this.operationsClient, + syncReplicationResponse.decode.bind(syncReplicationResponse), + syncReplicationMetadata.decode.bind(syncReplicationMetadata) + ), createBackupVault: new this._gaxModule.LongrunningDescriptor( this.operationsClient, createBackupVaultResponse.decode.bind(createBackupVaultResponse), @@ -798,6 +820,8 @@ export class NetAppClient { 'stopReplication', 'resumeReplication', 'reverseReplicationDirection', + 'establishPeering', + 'syncReplication', 'createBackupVault', 'getBackupVault', 'listBackupVaults', @@ -1783,9 +1807,9 @@ export class NetAppClient { * Required. Value for parent. * @param {string} request.storagePoolId * 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. + * parent resource. Must contain only letters, numbers and hyphen, with the + * first character a letter, the last a letter or a number, and a 63 character + * maximum. * @param {google.cloud.netapp.v1.StoragePool} request.storagePool * Required. The required parameters to create a new storage pool. * @param {object} [options] @@ -2345,9 +2369,9 @@ export class NetAppClient { * Required. Value for parent. * @param {string} request.volumeId * 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. + * resource. Must contain only letters, numbers and hyphen, with the first + * character a letter, the last a letter or a number, + * and a 63 character maximum. * @param {google.cloud.netapp.v1.Volume} request.volume * Required. The volume being created. * @param {object} [options] @@ -2916,9 +2940,9 @@ export class NetAppClient { * Required. A snapshot resource * @param {string} request.snapshotId * 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. + * resource. Must contain only letters, numbers and hyphen, with the first + * character a letter, the last a letter or a + * number, and a 63 character maximum. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -3336,9 +3360,9 @@ export class NetAppClient { * Required. Fields of the to be created active directory. * @param {string} request.activeDirectoryId * Required. ID of the active directory 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 resource. Must contain only letters, numbers and hyphen, with the + * first character a letter , the last a letter or a number, and a 63 + * character maximum. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -3755,9 +3779,9 @@ export class NetAppClient { * Required. Value for parent. * @param {string} request.kmsConfigId * 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. + * resource. Must contain only letters, numbers and hyphen, with the first + * character a letter, the last a letter or a + * number, and a 63 character maximum. * @param {google.cloud.netapp.v1.KmsConfig} request.kmsConfig * Required. The required parameters to create a new KmsConfig. * @param {object} [options] @@ -4316,9 +4340,9 @@ export class NetAppClient { * Required. A replication resource * @param {string} request.replicationId * Required. ID of the replication 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. + * resource. Must contain only letters, numbers and hyphen, with the first + * character a letter, the last a letter or a + * number, and a 63 character maximum. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -5147,6 +5171,292 @@ export class NetAppClient { protos.google.cloud.netapp.v1.OperationMetadata >; } + /** + * Establish replication peering. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The resource name of the replication, in the format of + * projects/{project_id}/locations/{location}/volumes/{volume_id}/replications/{replication_id}. + * @param {string} request.peerClusterName + * Required. Name of the user's local source cluster to be peered with the + * destination cluster. + * @param {string} request.peerSvmName + * Required. Name of the user's local source vserver svm to be peered with the + * destination vserver svm. + * @param {string[]} [request.peerIpAddresses] + * Optional. List of IPv4 ip addresses to be used for peering. + * @param {string} request.peerVolumeName + * Required. Name of the user's local source volume to be peered with the + * destination volume. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing + * a long running operation. Its `promise()` method returns a promise + * you can `await` for. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * for more details and examples. + * @example include:samples/generated/v1/net_app.establish_peering.js + * region_tag:netapp_v1_generated_NetApp_EstablishPeering_async + */ + establishPeering( + request?: protos.google.cloud.netapp.v1.IEstablishPeeringRequest, + options?: CallOptions + ): Promise< + [ + LROperation< + protos.google.cloud.netapp.v1.IReplication, + protos.google.cloud.netapp.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined, + ] + >; + establishPeering( + request: protos.google.cloud.netapp.v1.IEstablishPeeringRequest, + options: CallOptions, + callback: Callback< + LROperation< + protos.google.cloud.netapp.v1.IReplication, + protos.google.cloud.netapp.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + establishPeering( + request: protos.google.cloud.netapp.v1.IEstablishPeeringRequest, + callback: Callback< + LROperation< + protos.google.cloud.netapp.v1.IReplication, + protos.google.cloud.netapp.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + establishPeering( + request?: protos.google.cloud.netapp.v1.IEstablishPeeringRequest, + optionsOrCallback?: + | CallOptions + | Callback< + LROperation< + protos.google.cloud.netapp.v1.IReplication, + protos.google.cloud.netapp.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + >, + callback?: Callback< + LROperation< + protos.google.cloud.netapp.v1.IReplication, + protos.google.cloud.netapp.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): Promise< + [ + LROperation< + protos.google.cloud.netapp.v1.IReplication, + protos.google.cloud.netapp.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined, + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + name: request.name ?? '', + }); + this.initialize(); + return this.innerApiCalls.establishPeering(request, options, callback); + } + /** + * Check the status of the long running operation returned by `establishPeering()`. + * @param {String} name + * The operation name that will be passed. + * @returns {Promise} - The promise which resolves to an object. + * The decoded operation object has result and metadata field to get information from. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * for more details and examples. + * @example include:samples/generated/v1/net_app.establish_peering.js + * region_tag:netapp_v1_generated_NetApp_EstablishPeering_async + */ + async checkEstablishPeeringProgress( + name: string + ): Promise< + LROperation< + protos.google.cloud.netapp.v1.Replication, + protos.google.cloud.netapp.v1.OperationMetadata + > + > { + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); + const [operation] = await this.operationsClient.getOperation(request); + const decodeOperation = new this._gaxModule.Operation( + operation, + this.descriptors.longrunning.establishPeering, + this._gaxModule.createDefaultBackoffSettings() + ); + return decodeOperation as LROperation< + protos.google.cloud.netapp.v1.Replication, + protos.google.cloud.netapp.v1.OperationMetadata + >; + } + /** + * Syncs the replication. This will invoke one time volume data transfer from + * source to destination. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The resource name of the replication, in the format of + * projects/{project_id}/locations/{location}/volumes/{volume_id}/replications/{replication_id}. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing + * a long running operation. Its `promise()` method returns a promise + * you can `await` for. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * for more details and examples. + * @example include:samples/generated/v1/net_app.sync_replication.js + * region_tag:netapp_v1_generated_NetApp_SyncReplication_async + */ + syncReplication( + request?: protos.google.cloud.netapp.v1.ISyncReplicationRequest, + options?: CallOptions + ): Promise< + [ + LROperation< + protos.google.cloud.netapp.v1.IReplication, + protos.google.cloud.netapp.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined, + ] + >; + syncReplication( + request: protos.google.cloud.netapp.v1.ISyncReplicationRequest, + options: CallOptions, + callback: Callback< + LROperation< + protos.google.cloud.netapp.v1.IReplication, + protos.google.cloud.netapp.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + syncReplication( + request: protos.google.cloud.netapp.v1.ISyncReplicationRequest, + callback: Callback< + LROperation< + protos.google.cloud.netapp.v1.IReplication, + protos.google.cloud.netapp.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + syncReplication( + request?: protos.google.cloud.netapp.v1.ISyncReplicationRequest, + optionsOrCallback?: + | CallOptions + | Callback< + LROperation< + protos.google.cloud.netapp.v1.IReplication, + protos.google.cloud.netapp.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + >, + callback?: Callback< + LROperation< + protos.google.cloud.netapp.v1.IReplication, + protos.google.cloud.netapp.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): Promise< + [ + LROperation< + protos.google.cloud.netapp.v1.IReplication, + protos.google.cloud.netapp.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined, + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + name: request.name ?? '', + }); + this.initialize(); + return this.innerApiCalls.syncReplication(request, options, callback); + } + /** + * Check the status of the long running operation returned by `syncReplication()`. + * @param {String} name + * The operation name that will be passed. + * @returns {Promise} - The promise which resolves to an object. + * The decoded operation object has result and metadata field to get information from. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * for more details and examples. + * @example include:samples/generated/v1/net_app.sync_replication.js + * region_tag:netapp_v1_generated_NetApp_SyncReplication_async + */ + async checkSyncReplicationProgress( + name: string + ): Promise< + LROperation< + protos.google.cloud.netapp.v1.Replication, + protos.google.cloud.netapp.v1.OperationMetadata + > + > { + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); + const [operation] = await this.operationsClient.getOperation(request); + const decodeOperation = new this._gaxModule.Operation( + operation, + this.descriptors.longrunning.syncReplication, + this._gaxModule.createDefaultBackoffSettings() + ); + return decodeOperation as LROperation< + protos.google.cloud.netapp.v1.Replication, + protos.google.cloud.netapp.v1.OperationMetadata + >; + } /** * Creates new backup vault * @@ -5158,8 +5468,8 @@ export class NetAppClient { * @param {string} request.backupVaultId * 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 + * Must contain only letters, numbers and hyphen, with the first + * character a letter, the last a letter or a * number, and a 63 character maximum. * @param {google.cloud.netapp.v1.BackupVault} request.backupVault * Required. A backupVault resource @@ -5585,8 +5895,8 @@ export class NetAppClient { * @param {string} request.backupId * 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 + * Must contain only letters, numbers and hyphen, with the first + * character a letter, the last a letter or a * number, and a 63 character maximum. * @param {google.cloud.netapp.v1.Backup} request.backup * Required. A backup resource @@ -6011,8 +6321,8 @@ export class NetAppClient { * @param {string} request.backupPolicyId * Required. The ID to use for the backup policy. * 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 + * Must contain only letters, numbers and hyphen, with the first + * character a letter, the last a letter or a * number, and a 63 character maximum. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. diff --git a/packages/google-cloud-netapp/src/v1/net_app_client_config.json b/packages/google-cloud-netapp/src/v1/net_app_client_config.json index 28c2132cebd..c7bc06eaf08 100644 --- a/packages/google-cloud-netapp/src/v1/net_app_client_config.json +++ b/packages/google-cloud-netapp/src/v1/net_app_client_config.json @@ -216,6 +216,14 @@ "retry_codes_name": "non_idempotent", "retry_params_name": "default" }, + "EstablishPeering": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "SyncReplication": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, "CreateBackupVault": { "timeout_millis": 60000, "retry_codes_name": "non_idempotent", diff --git a/packages/google-cloud-netapp/test/gapic_net_app_v1.ts b/packages/google-cloud-netapp/test/gapic_net_app_v1.ts index d50e4fa0878..77b6cc6b7bf 100644 --- a/packages/google-cloud-netapp/test/gapic_net_app_v1.ts +++ b/packages/google-cloud-netapp/test/gapic_net_app_v1.ts @@ -6316,6 +6316,394 @@ describe('v1.NetAppClient', () => { }); }); + describe('establishPeering', () => { + it('invokes establishPeering without error', async () => { + const client = new netappModule.v1.NetAppClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.netapp.v1.EstablishPeeringRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.netapp.v1.EstablishPeeringRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.establishPeering = + stubLongRunningCall(expectedResponse); + const [operation] = await client.establishPeering(request); + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.establishPeering as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.establishPeering as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes establishPeering without error using callback', async () => { + const client = new netappModule.v1.NetAppClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.netapp.v1.EstablishPeeringRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.netapp.v1.EstablishPeeringRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.establishPeering = + stubLongRunningCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.establishPeering( + request, + ( + err?: Error | null, + result?: LROperation< + protos.google.cloud.netapp.v1.IReplication, + protos.google.cloud.netapp.v1.IOperationMetadata + > | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const operation = (await promise) as LROperation< + protos.google.cloud.netapp.v1.IReplication, + protos.google.cloud.netapp.v1.IOperationMetadata + >; + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.establishPeering as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.establishPeering as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes establishPeering with call error', async () => { + const client = new netappModule.v1.NetAppClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.netapp.v1.EstablishPeeringRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.netapp.v1.EstablishPeeringRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.establishPeering = stubLongRunningCall( + undefined, + expectedError + ); + await assert.rejects(client.establishPeering(request), expectedError); + const actualRequest = ( + client.innerApiCalls.establishPeering as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.establishPeering as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes establishPeering with LRO error', async () => { + const client = new netappModule.v1.NetAppClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.netapp.v1.EstablishPeeringRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.netapp.v1.EstablishPeeringRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.establishPeering = stubLongRunningCall( + undefined, + undefined, + expectedError + ); + const [operation] = await client.establishPeering(request); + await assert.rejects(operation.promise(), expectedError); + const actualRequest = ( + client.innerApiCalls.establishPeering as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.establishPeering as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes checkEstablishPeeringProgress without error', async () => { + const client = new netappModule.v1.NetAppClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const expectedResponse = generateSampleMessage( + new operationsProtos.google.longrunning.Operation() + ); + expectedResponse.name = 'test'; + expectedResponse.response = {type_url: 'url', value: Buffer.from('')}; + expectedResponse.metadata = {type_url: 'url', value: Buffer.from('')}; + + client.operationsClient.getOperation = stubSimpleCall(expectedResponse); + const decodedOperation = await client.checkEstablishPeeringProgress( + expectedResponse.name + ); + assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); + assert(decodedOperation.metadata); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + + it('invokes checkEstablishPeeringProgress with error', async () => { + const client = new netappModule.v1.NetAppClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const expectedError = new Error('expected'); + + client.operationsClient.getOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.checkEstablishPeeringProgress(''), + expectedError + ); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + }); + + describe('syncReplication', () => { + it('invokes syncReplication without error', async () => { + const client = new netappModule.v1.NetAppClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.netapp.v1.SyncReplicationRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.netapp.v1.SyncReplicationRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.syncReplication = + stubLongRunningCall(expectedResponse); + const [operation] = await client.syncReplication(request); + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.syncReplication as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.syncReplication as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes syncReplication without error using callback', async () => { + const client = new netappModule.v1.NetAppClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.netapp.v1.SyncReplicationRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.netapp.v1.SyncReplicationRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.syncReplication = + stubLongRunningCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.syncReplication( + request, + ( + err?: Error | null, + result?: LROperation< + protos.google.cloud.netapp.v1.IReplication, + protos.google.cloud.netapp.v1.IOperationMetadata + > | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const operation = (await promise) as LROperation< + protos.google.cloud.netapp.v1.IReplication, + protos.google.cloud.netapp.v1.IOperationMetadata + >; + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.syncReplication as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.syncReplication as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes syncReplication with call error', async () => { + const client = new netappModule.v1.NetAppClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.netapp.v1.SyncReplicationRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.netapp.v1.SyncReplicationRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.syncReplication = stubLongRunningCall( + undefined, + expectedError + ); + await assert.rejects(client.syncReplication(request), expectedError); + const actualRequest = ( + client.innerApiCalls.syncReplication as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.syncReplication as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes syncReplication with LRO error', async () => { + const client = new netappModule.v1.NetAppClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.netapp.v1.SyncReplicationRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.netapp.v1.SyncReplicationRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.syncReplication = stubLongRunningCall( + undefined, + undefined, + expectedError + ); + const [operation] = await client.syncReplication(request); + await assert.rejects(operation.promise(), expectedError); + const actualRequest = ( + client.innerApiCalls.syncReplication as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.syncReplication as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes checkSyncReplicationProgress without error', async () => { + const client = new netappModule.v1.NetAppClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const expectedResponse = generateSampleMessage( + new operationsProtos.google.longrunning.Operation() + ); + expectedResponse.name = 'test'; + expectedResponse.response = {type_url: 'url', value: Buffer.from('')}; + expectedResponse.metadata = {type_url: 'url', value: Buffer.from('')}; + + client.operationsClient.getOperation = stubSimpleCall(expectedResponse); + const decodedOperation = await client.checkSyncReplicationProgress( + expectedResponse.name + ); + assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); + assert(decodedOperation.metadata); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + + it('invokes checkSyncReplicationProgress with error', async () => { + const client = new netappModule.v1.NetAppClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const expectedError = new Error('expected'); + + client.operationsClient.getOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.checkSyncReplicationProgress(''), + expectedError + ); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + }); + describe('createBackupVault', () => { it('invokes createBackupVault without error', async () => { const client = new netappModule.v1.NetAppClient({