diff --git a/api_names_out.yaml b/api_names_out.yaml index dad5209f088..e07d5525052 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -260991,6 +260991,585 @@ "/mybusinessverifications:v1/mybusinessverifications.locations.verify/name": name "/mybusinessverifications:v1/mybusinessverifications.verificationTokens.generate": generate_verification_token "/mybusinessverifications:v1/quotaUser": quota_user +"/netapp:v1/ActiveDirectory": active_directory +"/netapp:v1/ActiveDirectory/administrators": administrators +"/netapp:v1/ActiveDirectory/administrators/administrator": administrator +"/netapp:v1/ActiveDirectory/aesEncryption": aes_encryption +"/netapp:v1/ActiveDirectory/backupOperators": backup_operators +"/netapp:v1/ActiveDirectory/backupOperators/backup_operator": backup_operator +"/netapp:v1/ActiveDirectory/createTime": create_time +"/netapp:v1/ActiveDirectory/description": description +"/netapp:v1/ActiveDirectory/dns": dns +"/netapp:v1/ActiveDirectory/domain": domain +"/netapp:v1/ActiveDirectory/encryptDcConnections": encrypt_dc_connections +"/netapp:v1/ActiveDirectory/kdcHostname": kdc_hostname +"/netapp:v1/ActiveDirectory/kdcIp": kdc_ip +"/netapp:v1/ActiveDirectory/labels": labels +"/netapp:v1/ActiveDirectory/labels/label": label +"/netapp:v1/ActiveDirectory/ldapSigning": ldap_signing +"/netapp:v1/ActiveDirectory/name": name +"/netapp:v1/ActiveDirectory/netBiosPrefix": net_bios_prefix +"/netapp:v1/ActiveDirectory/nfsUsersWithLdap": nfs_users_with_ldap +"/netapp:v1/ActiveDirectory/organizationalUnit": organizational_unit +"/netapp:v1/ActiveDirectory/password": password +"/netapp:v1/ActiveDirectory/securityOperators": security_operators +"/netapp:v1/ActiveDirectory/securityOperators/security_operator": security_operator +"/netapp:v1/ActiveDirectory/site": site +"/netapp:v1/ActiveDirectory/state": state +"/netapp:v1/ActiveDirectory/stateDetails": state_details +"/netapp:v1/ActiveDirectory/username": username +"/netapp:v1/AssetLocation": asset_location +"/netapp:v1/AssetLocation/ccfeRmsPath": ccfe_rms_path +"/netapp:v1/AssetLocation/expected": expected +"/netapp:v1/AssetLocation/extraParameters": extra_parameters +"/netapp:v1/AssetLocation/extraParameters/extra_parameter": extra_parameter +"/netapp:v1/AssetLocation/locationData": location_data +"/netapp:v1/AssetLocation/locationData/location_datum": location_datum +"/netapp:v1/AssetLocation/parentAsset": parent_asset +"/netapp:v1/AssetLocation/parentAsset/parent_asset": parent_asset +"/netapp:v1/Backup": backup +"/netapp:v1/Backup/backupType": backup_type +"/netapp:v1/Backup/chainStorageBytes": chain_storage_bytes +"/netapp:v1/Backup/createTime": create_time +"/netapp:v1/Backup/description": description +"/netapp:v1/Backup/labels": labels +"/netapp:v1/Backup/labels/label": label +"/netapp:v1/Backup/name": name +"/netapp:v1/Backup/sourceSnapshot": source_snapshot +"/netapp:v1/Backup/sourceVolume": source_volume +"/netapp:v1/Backup/state": state +"/netapp:v1/Backup/volumeUsageBytes": volume_usage_bytes +"/netapp:v1/BackupConfig": backup_config +"/netapp:v1/BackupConfig/backupChainBytes": backup_chain_bytes +"/netapp:v1/BackupConfig/backupPolicies": backup_policies +"/netapp:v1/BackupConfig/backupPolicies/backup_policy": backup_policy +"/netapp:v1/BackupConfig/backupVault": backup_vault +"/netapp:v1/BackupConfig/scheduledBackupEnabled": scheduled_backup_enabled +"/netapp:v1/BackupPolicy": backup_policy +"/netapp:v1/BackupPolicy/assignedVolumeCount": assigned_volume_count +"/netapp:v1/BackupPolicy/createTime": create_time +"/netapp:v1/BackupPolicy/dailyBackupLimit": daily_backup_limit +"/netapp:v1/BackupPolicy/description": description +"/netapp:v1/BackupPolicy/enabled": enabled +"/netapp:v1/BackupPolicy/labels": labels +"/netapp:v1/BackupPolicy/labels/label": label +"/netapp:v1/BackupPolicy/monthlyBackupLimit": monthly_backup_limit +"/netapp:v1/BackupPolicy/name": name +"/netapp:v1/BackupPolicy/state": state +"/netapp:v1/BackupPolicy/weeklyBackupLimit": weekly_backup_limit +"/netapp:v1/BackupVault": backup_vault +"/netapp:v1/BackupVault/createTime": create_time +"/netapp:v1/BackupVault/description": description +"/netapp:v1/BackupVault/labels": labels +"/netapp:v1/BackupVault/labels/label": label +"/netapp:v1/BackupVault/name": name +"/netapp:v1/BackupVault/state": state +"/netapp:v1/BlobstoreLocation": blobstore_location +"/netapp:v1/BlobstoreLocation/policyId": policy_id +"/netapp:v1/BlobstoreLocation/policyId/policy_id": policy_id +"/netapp:v1/CancelOperationRequest": cancel_operation_request +"/netapp:v1/CloudAsset": cloud_asset +"/netapp:v1/CloudAsset/assetName": asset_name +"/netapp:v1/CloudAsset/assetType": asset_type +"/netapp:v1/CloudAssetComposition": cloud_asset_composition +"/netapp:v1/CloudAssetComposition/childAsset": child_asset +"/netapp:v1/CloudAssetComposition/childAsset/child_asset": child_asset +"/netapp:v1/DailySchedule": daily_schedule +"/netapp:v1/DailySchedule/hour": hour +"/netapp:v1/DailySchedule/minute": minute +"/netapp:v1/DailySchedule/snapshotsToKeep": snapshots_to_keep +"/netapp:v1/DestinationVolumeParameters": destination_volume_parameters +"/netapp:v1/DestinationVolumeParameters/description": description +"/netapp:v1/DestinationVolumeParameters/shareName": share_name +"/netapp:v1/DestinationVolumeParameters/storagePool": storage_pool +"/netapp:v1/DestinationVolumeParameters/volumeId": volume_id +"/netapp:v1/DirectLocationAssignment": direct_location_assignment +"/netapp:v1/DirectLocationAssignment/location": location +"/netapp:v1/DirectLocationAssignment/location/location": location +"/netapp:v1/EncryptVolumesRequest": encrypt_volumes_request +"/netapp:v1/ExportPolicy": export_policy +"/netapp:v1/ExportPolicy/rules": rules +"/netapp:v1/ExportPolicy/rules/rule": rule +"/netapp:v1/ExtraParameter": extra_parameter +"/netapp:v1/ExtraParameter/regionalMigDistributionPolicy": regional_mig_distribution_policy +"/netapp:v1/GoogleProtobufEmpty": google_protobuf_empty +"/netapp:v1/HourlySchedule": hourly_schedule +"/netapp:v1/HourlySchedule/minute": minute +"/netapp:v1/HourlySchedule/snapshotsToKeep": snapshots_to_keep +"/netapp:v1/IsolationExpectations": isolation_expectations +"/netapp:v1/IsolationExpectations/requirementOverride": requirement_override +"/netapp:v1/IsolationExpectations/ziOrgPolicy": zi_org_policy +"/netapp:v1/IsolationExpectations/ziRegionPolicy": zi_region_policy +"/netapp:v1/IsolationExpectations/ziRegionState": zi_region_state +"/netapp:v1/IsolationExpectations/zoneIsolation": zone_isolation +"/netapp:v1/IsolationExpectations/zoneSeparation": zone_separation +"/netapp:v1/IsolationExpectations/zsOrgPolicy": zs_org_policy +"/netapp:v1/IsolationExpectations/zsRegionState": zs_region_state +"/netapp:v1/KmsConfig": kms_config +"/netapp:v1/KmsConfig/createTime": create_time +"/netapp:v1/KmsConfig/cryptoKeyName": crypto_key_name +"/netapp:v1/KmsConfig/description": description +"/netapp:v1/KmsConfig/instructions": instructions +"/netapp:v1/KmsConfig/labels": labels +"/netapp:v1/KmsConfig/labels/label": label +"/netapp:v1/KmsConfig/name": name +"/netapp:v1/KmsConfig/serviceAccount": service_account +"/netapp:v1/KmsConfig/state": state +"/netapp:v1/KmsConfig/stateDetails": state_details +"/netapp:v1/ListActiveDirectoriesResponse": list_active_directories_response +"/netapp:v1/ListActiveDirectoriesResponse/activeDirectories": active_directories +"/netapp:v1/ListActiveDirectoriesResponse/activeDirectories/active_directory": active_directory +"/netapp:v1/ListActiveDirectoriesResponse/nextPageToken": next_page_token +"/netapp:v1/ListActiveDirectoriesResponse/unreachable": unreachable +"/netapp:v1/ListActiveDirectoriesResponse/unreachable/unreachable": unreachable +"/netapp:v1/ListBackupPoliciesResponse": list_backup_policies_response +"/netapp:v1/ListBackupPoliciesResponse/backupPolicies": backup_policies +"/netapp:v1/ListBackupPoliciesResponse/backupPolicies/backup_policy": backup_policy +"/netapp:v1/ListBackupPoliciesResponse/nextPageToken": next_page_token +"/netapp:v1/ListBackupPoliciesResponse/unreachable": unreachable +"/netapp:v1/ListBackupPoliciesResponse/unreachable/unreachable": unreachable +"/netapp:v1/ListBackupVaultsResponse": list_backup_vaults_response +"/netapp:v1/ListBackupVaultsResponse/backupVaults": backup_vaults +"/netapp:v1/ListBackupVaultsResponse/backupVaults/backup_vault": backup_vault +"/netapp:v1/ListBackupVaultsResponse/nextPageToken": next_page_token +"/netapp:v1/ListBackupVaultsResponse/unreachable": unreachable +"/netapp:v1/ListBackupVaultsResponse/unreachable/unreachable": unreachable +"/netapp:v1/ListBackupsResponse": list_backups_response +"/netapp:v1/ListBackupsResponse/backups": backups +"/netapp:v1/ListBackupsResponse/backups/backup": backup +"/netapp:v1/ListBackupsResponse/nextPageToken": next_page_token +"/netapp:v1/ListBackupsResponse/unreachable": unreachable +"/netapp:v1/ListBackupsResponse/unreachable/unreachable": unreachable +"/netapp:v1/ListKmsConfigsResponse": list_kms_configs_response +"/netapp:v1/ListKmsConfigsResponse/kmsConfigs": kms_configs +"/netapp:v1/ListKmsConfigsResponse/kmsConfigs/kms_config": kms_config +"/netapp:v1/ListKmsConfigsResponse/nextPageToken": next_page_token +"/netapp:v1/ListKmsConfigsResponse/unreachable": unreachable +"/netapp:v1/ListKmsConfigsResponse/unreachable/unreachable": unreachable +"/netapp:v1/ListLocationsResponse": list_locations_response +"/netapp:v1/ListLocationsResponse/locations": locations +"/netapp:v1/ListLocationsResponse/locations/location": location +"/netapp:v1/ListLocationsResponse/nextPageToken": next_page_token +"/netapp:v1/ListOperationsResponse": list_operations_response +"/netapp:v1/ListOperationsResponse/nextPageToken": next_page_token +"/netapp:v1/ListOperationsResponse/operations": operations +"/netapp:v1/ListOperationsResponse/operations/operation": operation +"/netapp:v1/ListReplicationsResponse": list_replications_response +"/netapp:v1/ListReplicationsResponse/nextPageToken": next_page_token +"/netapp:v1/ListReplicationsResponse/replications": replications +"/netapp:v1/ListReplicationsResponse/replications/replication": replication +"/netapp:v1/ListReplicationsResponse/unreachable": unreachable +"/netapp:v1/ListReplicationsResponse/unreachable/unreachable": unreachable +"/netapp:v1/ListSnapshotsResponse": list_snapshots_response +"/netapp:v1/ListSnapshotsResponse/nextPageToken": next_page_token +"/netapp:v1/ListSnapshotsResponse/snapshots": snapshots +"/netapp:v1/ListSnapshotsResponse/snapshots/snapshot": snapshot +"/netapp:v1/ListSnapshotsResponse/unreachable": unreachable +"/netapp:v1/ListSnapshotsResponse/unreachable/unreachable": unreachable +"/netapp:v1/ListStoragePoolsResponse": list_storage_pools_response +"/netapp:v1/ListStoragePoolsResponse/nextPageToken": next_page_token +"/netapp:v1/ListStoragePoolsResponse/storagePools": storage_pools +"/netapp:v1/ListStoragePoolsResponse/storagePools/storage_pool": storage_pool +"/netapp:v1/ListStoragePoolsResponse/unreachable": unreachable +"/netapp:v1/ListStoragePoolsResponse/unreachable/unreachable": unreachable +"/netapp:v1/ListVolumesResponse": list_volumes_response +"/netapp:v1/ListVolumesResponse/nextPageToken": next_page_token +"/netapp:v1/ListVolumesResponse/unreachable": unreachable +"/netapp:v1/ListVolumesResponse/unreachable/unreachable": unreachable +"/netapp:v1/ListVolumesResponse/volumes": volumes +"/netapp:v1/ListVolumesResponse/volumes/volume": volume +"/netapp:v1/Location": location +"/netapp:v1/Location/displayName": display_name +"/netapp:v1/Location/labels": labels +"/netapp:v1/Location/labels/label": label +"/netapp:v1/Location/locationId": location_id +"/netapp:v1/Location/metadata": metadata +"/netapp:v1/Location/metadata/metadatum": metadatum +"/netapp:v1/Location/name": name +"/netapp:v1/LocationAssignment": location_assignment +"/netapp:v1/LocationAssignment/location": location +"/netapp:v1/LocationAssignment/locationType": location_type +"/netapp:v1/LocationData": location_data +"/netapp:v1/LocationData/blobstoreLocation": blobstore_location +"/netapp:v1/LocationData/childAssetLocation": child_asset_location +"/netapp:v1/LocationData/directLocation": direct_location +"/netapp:v1/LocationData/gcpProjectProxy": gcp_project_proxy +"/netapp:v1/LocationData/placerLocation": placer_location +"/netapp:v1/LocationData/spannerLocation": spanner_location +"/netapp:v1/LocationMetadata": location_metadata +"/netapp:v1/LocationMetadata/supportedServiceLevels": supported_service_levels +"/netapp:v1/LocationMetadata/supportedServiceLevels/supported_service_level": supported_service_level +"/netapp:v1/MonthlySchedule": monthly_schedule +"/netapp:v1/MonthlySchedule/daysOfMonth": days_of_month +"/netapp:v1/MonthlySchedule/hour": hour +"/netapp:v1/MonthlySchedule/minute": minute +"/netapp:v1/MonthlySchedule/snapshotsToKeep": snapshots_to_keep +"/netapp:v1/MountOption": mount_option +"/netapp:v1/MountOption/export": export +"/netapp:v1/MountOption/exportFull": export_full +"/netapp:v1/MountOption/instructions": instructions +"/netapp:v1/MountOption/protocol": protocol +"/netapp:v1/Operation": operation +"/netapp:v1/Operation/done": done +"/netapp:v1/Operation/error": error +"/netapp:v1/Operation/metadata": metadata +"/netapp:v1/Operation/metadata/metadatum": metadatum +"/netapp:v1/Operation/name": name +"/netapp:v1/Operation/response": response +"/netapp:v1/Operation/response/response": response +"/netapp:v1/OperationMetadata": operation_metadata +"/netapp:v1/OperationMetadata/apiVersion": api_version +"/netapp:v1/OperationMetadata/createTime": create_time +"/netapp:v1/OperationMetadata/endTime": end_time +"/netapp:v1/OperationMetadata/requestedCancellation": requested_cancellation +"/netapp:v1/OperationMetadata/statusMessage": status_message +"/netapp:v1/OperationMetadata/target": target +"/netapp:v1/OperationMetadata/verb": verb +"/netapp:v1/PlacerLocation": placer_location +"/netapp:v1/PlacerLocation/placerConfig": placer_config +"/netapp:v1/RegionalMigDistributionPolicy": regional_mig_distribution_policy +"/netapp:v1/RegionalMigDistributionPolicy/targetShape": target_shape +"/netapp:v1/RegionalMigDistributionPolicy/zones": zones +"/netapp:v1/RegionalMigDistributionPolicy/zones/zone": zone +"/netapp:v1/Replication": replication +"/netapp:v1/Replication/createTime": create_time +"/netapp:v1/Replication/description": description +"/netapp:v1/Replication/destinationVolume": destination_volume +"/netapp:v1/Replication/destinationVolumeParameters": destination_volume_parameters +"/netapp:v1/Replication/healthy": healthy +"/netapp:v1/Replication/labels": labels +"/netapp:v1/Replication/labels/label": label +"/netapp:v1/Replication/mirrorState": mirror_state +"/netapp:v1/Replication/name": name +"/netapp:v1/Replication/replicationSchedule": replication_schedule +"/netapp:v1/Replication/role": role +"/netapp:v1/Replication/sourceVolume": source_volume +"/netapp:v1/Replication/state": state +"/netapp:v1/Replication/stateDetails": state_details +"/netapp:v1/Replication/transferStats": transfer_stats +"/netapp:v1/RequirementOverride": requirement_override +"/netapp:v1/RequirementOverride/ziOverride": zi_override +"/netapp:v1/RequirementOverride/zsOverride": zs_override +"/netapp:v1/RestoreParameters": restore_parameters +"/netapp:v1/RestoreParameters/sourceBackup": source_backup +"/netapp:v1/RestoreParameters/sourceSnapshot": source_snapshot +"/netapp:v1/ResumeReplicationRequest": resume_replication_request +"/netapp:v1/ReverseReplicationDirectionRequest": reverse_replication_direction_request +"/netapp:v1/RevertVolumeRequest": revert_volume_request +"/netapp:v1/RevertVolumeRequest/snapshotId": snapshot_id +"/netapp:v1/SimpleExportPolicyRule": simple_export_policy_rule +"/netapp:v1/SimpleExportPolicyRule/accessType": access_type +"/netapp:v1/SimpleExportPolicyRule/allowedClients": allowed_clients +"/netapp:v1/SimpleExportPolicyRule/hasRootAccess": has_root_access +"/netapp:v1/SimpleExportPolicyRule/kerberos5ReadOnly": kerberos5_read_only +"/netapp:v1/SimpleExportPolicyRule/kerberos5ReadWrite": kerberos5_read_write +"/netapp:v1/SimpleExportPolicyRule/kerberos5iReadOnly": kerberos5i_read_only +"/netapp:v1/SimpleExportPolicyRule/kerberos5iReadWrite": kerberos5i_read_write +"/netapp:v1/SimpleExportPolicyRule/kerberos5pReadOnly": kerberos5p_read_only +"/netapp:v1/SimpleExportPolicyRule/kerberos5pReadWrite": kerberos5p_read_write +"/netapp:v1/SimpleExportPolicyRule/nfsv3": nfsv3 +"/netapp:v1/SimpleExportPolicyRule/nfsv4": nfsv4 +"/netapp:v1/Snapshot": snapshot +"/netapp:v1/Snapshot/createTime": create_time +"/netapp:v1/Snapshot/description": description +"/netapp:v1/Snapshot/labels": labels +"/netapp:v1/Snapshot/labels/label": label +"/netapp:v1/Snapshot/name": name +"/netapp:v1/Snapshot/state": state +"/netapp:v1/Snapshot/stateDetails": state_details +"/netapp:v1/Snapshot/usedBytes": used_bytes +"/netapp:v1/SnapshotPolicy": snapshot_policy +"/netapp:v1/SnapshotPolicy/dailySchedule": daily_schedule +"/netapp:v1/SnapshotPolicy/enabled": enabled +"/netapp:v1/SnapshotPolicy/hourlySchedule": hourly_schedule +"/netapp:v1/SnapshotPolicy/monthlySchedule": monthly_schedule +"/netapp:v1/SnapshotPolicy/weeklySchedule": weekly_schedule +"/netapp:v1/SpannerLocation": spanner_location +"/netapp:v1/SpannerLocation/backupName": backup_name +"/netapp:v1/SpannerLocation/backupName/backup_name": backup_name +"/netapp:v1/SpannerLocation/dbName": db_name +"/netapp:v1/SpannerLocation/dbName/db_name": db_name +"/netapp:v1/Status": status +"/netapp:v1/Status/code": code +"/netapp:v1/Status/details": details +"/netapp:v1/Status/details/detail": detail +"/netapp:v1/Status/details/detail/detail": detail +"/netapp:v1/Status/message": message +"/netapp:v1/StopReplicationRequest": stop_replication_request +"/netapp:v1/StopReplicationRequest/force": force +"/netapp:v1/StoragePool": storage_pool +"/netapp:v1/StoragePool/activeDirectory": active_directory +"/netapp:v1/StoragePool/allowAutoTiering": allow_auto_tiering +"/netapp:v1/StoragePool/capacityGib": capacity_gib +"/netapp:v1/StoragePool/createTime": create_time +"/netapp:v1/StoragePool/description": description +"/netapp:v1/StoragePool/encryptionType": encryption_type +"/netapp:v1/StoragePool/globalAccessAllowed": global_access_allowed +"/netapp:v1/StoragePool/kmsConfig": kms_config +"/netapp:v1/StoragePool/labels": labels +"/netapp:v1/StoragePool/labels/label": label +"/netapp:v1/StoragePool/ldapEnabled": ldap_enabled +"/netapp:v1/StoragePool/name": name +"/netapp:v1/StoragePool/network": network +"/netapp:v1/StoragePool/psaRange": psa_range +"/netapp:v1/StoragePool/replicaZone": replica_zone +"/netapp:v1/StoragePool/serviceLevel": service_level +"/netapp:v1/StoragePool/state": state +"/netapp:v1/StoragePool/stateDetails": state_details +"/netapp:v1/StoragePool/volumeCapacityGib": volume_capacity_gib +"/netapp:v1/StoragePool/volumeCount": volume_count +"/netapp:v1/StoragePool/zone": zone +"/netapp:v1/SwitchActiveReplicaZoneRequest": switch_active_replica_zone_request +"/netapp:v1/TenantProjectProxy": tenant_project_proxy +"/netapp:v1/TenantProjectProxy/projectNumbers": project_numbers +"/netapp:v1/TenantProjectProxy/projectNumbers/project_number": project_number +"/netapp:v1/TieringPolicy": tiering_policy +"/netapp:v1/TieringPolicy/coolingThresholdDays": cooling_threshold_days +"/netapp:v1/TieringPolicy/tierAction": tier_action +"/netapp:v1/TransferStats": transfer_stats +"/netapp:v1/TransferStats/lagDuration": lag_duration +"/netapp:v1/TransferStats/lastTransferBytes": last_transfer_bytes +"/netapp:v1/TransferStats/lastTransferDuration": last_transfer_duration +"/netapp:v1/TransferStats/lastTransferEndTime": last_transfer_end_time +"/netapp:v1/TransferStats/lastTransferError": last_transfer_error +"/netapp:v1/TransferStats/totalTransferDuration": total_transfer_duration +"/netapp:v1/TransferStats/transferBytes": transfer_bytes +"/netapp:v1/TransferStats/updateTime": update_time +"/netapp:v1/VerifyKmsConfigRequest": verify_kms_config_request +"/netapp:v1/VerifyKmsConfigResponse": verify_kms_config_response +"/netapp:v1/VerifyKmsConfigResponse/healthError": health_error +"/netapp:v1/VerifyKmsConfigResponse/healthy": healthy +"/netapp:v1/VerifyKmsConfigResponse/instructions": instructions +"/netapp:v1/Volume": volume +"/netapp:v1/Volume/activeDirectory": active_directory +"/netapp:v1/Volume/backupConfig": backup_config +"/netapp:v1/Volume/capacityGib": capacity_gib +"/netapp:v1/Volume/coldTierSizeGib": cold_tier_size_gib +"/netapp:v1/Volume/createTime": create_time +"/netapp:v1/Volume/description": description +"/netapp:v1/Volume/encryptionType": encryption_type +"/netapp:v1/Volume/exportPolicy": export_policy +"/netapp:v1/Volume/hasReplication": has_replication +"/netapp:v1/Volume/kerberosEnabled": kerberos_enabled +"/netapp:v1/Volume/kmsConfig": kms_config +"/netapp:v1/Volume/labels": labels +"/netapp:v1/Volume/labels/label": label +"/netapp:v1/Volume/largeCapacity": large_capacity +"/netapp:v1/Volume/ldapEnabled": ldap_enabled +"/netapp:v1/Volume/mountOptions": mount_options +"/netapp:v1/Volume/mountOptions/mount_option": mount_option +"/netapp:v1/Volume/multipleEndpoints": multiple_endpoints +"/netapp:v1/Volume/name": name +"/netapp:v1/Volume/network": network +"/netapp:v1/Volume/protocols": protocols +"/netapp:v1/Volume/protocols/protocol": protocol +"/netapp:v1/Volume/psaRange": psa_range +"/netapp:v1/Volume/replicaZone": replica_zone +"/netapp:v1/Volume/restoreParameters": restore_parameters +"/netapp:v1/Volume/restrictedActions": restricted_actions +"/netapp:v1/Volume/restrictedActions/restricted_action": restricted_action +"/netapp:v1/Volume/securityStyle": security_style +"/netapp:v1/Volume/serviceLevel": service_level +"/netapp:v1/Volume/shareName": share_name +"/netapp:v1/Volume/smbSettings": smb_settings +"/netapp:v1/Volume/smbSettings/smb_setting": smb_setting +"/netapp:v1/Volume/snapReserve": snap_reserve +"/netapp:v1/Volume/snapshotDirectory": snapshot_directory +"/netapp:v1/Volume/snapshotPolicy": snapshot_policy +"/netapp:v1/Volume/state": state +"/netapp:v1/Volume/stateDetails": state_details +"/netapp:v1/Volume/storagePool": storage_pool +"/netapp:v1/Volume/tieringPolicy": tiering_policy +"/netapp:v1/Volume/unixPermissions": unix_permissions +"/netapp:v1/Volume/usedGib": used_gib +"/netapp:v1/Volume/zone": zone +"/netapp:v1/WeeklySchedule": weekly_schedule +"/netapp:v1/WeeklySchedule/day": day +"/netapp:v1/WeeklySchedule/hour": hour +"/netapp:v1/WeeklySchedule/minute": minute +"/netapp:v1/WeeklySchedule/snapshotsToKeep": snapshots_to_keep +"/netapp:v1/ZoneConfiguration": zone_configuration +"/netapp:v1/ZoneConfiguration/zone": zone +"/netapp:v1/fields": fields +"/netapp:v1/key": key +"/netapp:v1/netapp.projects.locations.activeDirectories.create": create_project_location_active_directory +"/netapp:v1/netapp.projects.locations.activeDirectories.create/activeDirectoryId": active_directory_id +"/netapp:v1/netapp.projects.locations.activeDirectories.create/parent": parent +"/netapp:v1/netapp.projects.locations.activeDirectories.delete": delete_project_location_active_directory +"/netapp:v1/netapp.projects.locations.activeDirectories.delete/name": name +"/netapp:v1/netapp.projects.locations.activeDirectories.get": get_project_location_active_directory +"/netapp:v1/netapp.projects.locations.activeDirectories.get/name": name +"/netapp:v1/netapp.projects.locations.activeDirectories.list": list_project_location_active_directories +"/netapp:v1/netapp.projects.locations.activeDirectories.list/filter": filter +"/netapp:v1/netapp.projects.locations.activeDirectories.list/orderBy": order_by +"/netapp:v1/netapp.projects.locations.activeDirectories.list/pageSize": page_size +"/netapp:v1/netapp.projects.locations.activeDirectories.list/pageToken": page_token +"/netapp:v1/netapp.projects.locations.activeDirectories.list/parent": parent +"/netapp:v1/netapp.projects.locations.activeDirectories.patch": patch_project_location_active_directory +"/netapp:v1/netapp.projects.locations.activeDirectories.patch/name": name +"/netapp:v1/netapp.projects.locations.activeDirectories.patch/updateMask": update_mask +"/netapp:v1/netapp.projects.locations.backupPolicies.create": create_project_location_backup_policy +"/netapp:v1/netapp.projects.locations.backupPolicies.create/backupPolicyId": backup_policy_id +"/netapp:v1/netapp.projects.locations.backupPolicies.create/parent": parent +"/netapp:v1/netapp.projects.locations.backupPolicies.delete": delete_project_location_backup_policy +"/netapp:v1/netapp.projects.locations.backupPolicies.delete/name": name +"/netapp:v1/netapp.projects.locations.backupPolicies.get": get_project_location_backup_policy +"/netapp:v1/netapp.projects.locations.backupPolicies.get/name": name +"/netapp:v1/netapp.projects.locations.backupPolicies.list": list_project_location_backup_policies +"/netapp:v1/netapp.projects.locations.backupPolicies.list/filter": filter +"/netapp:v1/netapp.projects.locations.backupPolicies.list/orderBy": order_by +"/netapp:v1/netapp.projects.locations.backupPolicies.list/pageSize": page_size +"/netapp:v1/netapp.projects.locations.backupPolicies.list/pageToken": page_token +"/netapp:v1/netapp.projects.locations.backupPolicies.list/parent": parent +"/netapp:v1/netapp.projects.locations.backupPolicies.patch": patch_project_location_backup_policy +"/netapp:v1/netapp.projects.locations.backupPolicies.patch/name": name +"/netapp:v1/netapp.projects.locations.backupPolicies.patch/updateMask": update_mask +"/netapp:v1/netapp.projects.locations.backupVaults.backups.create": create_project_location_backup_vault_backup +"/netapp:v1/netapp.projects.locations.backupVaults.backups.create/backupId": backup_id +"/netapp:v1/netapp.projects.locations.backupVaults.backups.create/parent": parent +"/netapp:v1/netapp.projects.locations.backupVaults.backups.delete": delete_project_location_backup_vault_backup +"/netapp:v1/netapp.projects.locations.backupVaults.backups.delete/name": name +"/netapp:v1/netapp.projects.locations.backupVaults.backups.get": get_project_location_backup_vault_backup +"/netapp:v1/netapp.projects.locations.backupVaults.backups.get/name": name +"/netapp:v1/netapp.projects.locations.backupVaults.backups.list": list_project_location_backup_vault_backups +"/netapp:v1/netapp.projects.locations.backupVaults.backups.list/filter": filter +"/netapp:v1/netapp.projects.locations.backupVaults.backups.list/orderBy": order_by +"/netapp:v1/netapp.projects.locations.backupVaults.backups.list/pageSize": page_size +"/netapp:v1/netapp.projects.locations.backupVaults.backups.list/pageToken": page_token +"/netapp:v1/netapp.projects.locations.backupVaults.backups.list/parent": parent +"/netapp:v1/netapp.projects.locations.backupVaults.backups.patch": patch_project_location_backup_vault_backup +"/netapp:v1/netapp.projects.locations.backupVaults.backups.patch/name": name +"/netapp:v1/netapp.projects.locations.backupVaults.backups.patch/updateMask": update_mask +"/netapp:v1/netapp.projects.locations.backupVaults.create": create_project_location_backup_vault +"/netapp:v1/netapp.projects.locations.backupVaults.create/backupVaultId": backup_vault_id +"/netapp:v1/netapp.projects.locations.backupVaults.create/parent": parent +"/netapp:v1/netapp.projects.locations.backupVaults.delete": delete_project_location_backup_vault +"/netapp:v1/netapp.projects.locations.backupVaults.delete/name": name +"/netapp:v1/netapp.projects.locations.backupVaults.get": get_project_location_backup_vault +"/netapp:v1/netapp.projects.locations.backupVaults.get/name": name +"/netapp:v1/netapp.projects.locations.backupVaults.list": list_project_location_backup_vaults +"/netapp:v1/netapp.projects.locations.backupVaults.list/filter": filter +"/netapp:v1/netapp.projects.locations.backupVaults.list/orderBy": order_by +"/netapp:v1/netapp.projects.locations.backupVaults.list/pageSize": page_size +"/netapp:v1/netapp.projects.locations.backupVaults.list/pageToken": page_token +"/netapp:v1/netapp.projects.locations.backupVaults.list/parent": parent +"/netapp:v1/netapp.projects.locations.backupVaults.patch": patch_project_location_backup_vault +"/netapp:v1/netapp.projects.locations.backupVaults.patch/name": name +"/netapp:v1/netapp.projects.locations.backupVaults.patch/updateMask": update_mask +"/netapp:v1/netapp.projects.locations.get": get_project_location +"/netapp:v1/netapp.projects.locations.get/name": name +"/netapp:v1/netapp.projects.locations.kmsConfigs.create": create_project_location_kms_config +"/netapp:v1/netapp.projects.locations.kmsConfigs.create/kmsConfigId": kms_config_id +"/netapp:v1/netapp.projects.locations.kmsConfigs.create/parent": parent +"/netapp:v1/netapp.projects.locations.kmsConfigs.delete": delete_project_location_kms_config +"/netapp:v1/netapp.projects.locations.kmsConfigs.delete/name": name +"/netapp:v1/netapp.projects.locations.kmsConfigs.encrypt": encrypt_kms_config_volumes +"/netapp:v1/netapp.projects.locations.kmsConfigs.encrypt/name": name +"/netapp:v1/netapp.projects.locations.kmsConfigs.get": get_project_location_kms_config +"/netapp:v1/netapp.projects.locations.kmsConfigs.get/name": name +"/netapp:v1/netapp.projects.locations.kmsConfigs.list": list_project_location_kms_configs +"/netapp:v1/netapp.projects.locations.kmsConfigs.list/filter": filter +"/netapp:v1/netapp.projects.locations.kmsConfigs.list/orderBy": order_by +"/netapp:v1/netapp.projects.locations.kmsConfigs.list/pageSize": page_size +"/netapp:v1/netapp.projects.locations.kmsConfigs.list/pageToken": page_token +"/netapp:v1/netapp.projects.locations.kmsConfigs.list/parent": parent +"/netapp:v1/netapp.projects.locations.kmsConfigs.patch": patch_project_location_kms_config +"/netapp:v1/netapp.projects.locations.kmsConfigs.patch/name": name +"/netapp:v1/netapp.projects.locations.kmsConfigs.patch/updateMask": update_mask +"/netapp:v1/netapp.projects.locations.kmsConfigs.verify": verify_kms_config +"/netapp:v1/netapp.projects.locations.kmsConfigs.verify/name": name +"/netapp:v1/netapp.projects.locations.list": list_project_locations +"/netapp:v1/netapp.projects.locations.list/filter": filter +"/netapp:v1/netapp.projects.locations.list/name": name +"/netapp:v1/netapp.projects.locations.list/pageSize": page_size +"/netapp:v1/netapp.projects.locations.list/pageToken": page_token +"/netapp:v1/netapp.projects.locations.operations.cancel": cancel_operation +"/netapp:v1/netapp.projects.locations.operations.cancel/name": name +"/netapp:v1/netapp.projects.locations.operations.delete": delete_project_location_operation +"/netapp:v1/netapp.projects.locations.operations.delete/name": name +"/netapp:v1/netapp.projects.locations.operations.get": get_project_location_operation +"/netapp:v1/netapp.projects.locations.operations.get/name": name +"/netapp:v1/netapp.projects.locations.operations.list": list_project_location_operations +"/netapp:v1/netapp.projects.locations.operations.list/filter": filter +"/netapp:v1/netapp.projects.locations.operations.list/name": name +"/netapp:v1/netapp.projects.locations.operations.list/pageSize": page_size +"/netapp:v1/netapp.projects.locations.operations.list/pageToken": page_token +"/netapp:v1/netapp.projects.locations.storagePools.create": create_project_location_storage_pool +"/netapp:v1/netapp.projects.locations.storagePools.create/parent": parent +"/netapp:v1/netapp.projects.locations.storagePools.create/storagePoolId": storage_pool_id +"/netapp:v1/netapp.projects.locations.storagePools.delete": delete_project_location_storage_pool +"/netapp:v1/netapp.projects.locations.storagePools.delete/name": name +"/netapp:v1/netapp.projects.locations.storagePools.get": get_project_location_storage_pool +"/netapp:v1/netapp.projects.locations.storagePools.get/name": name +"/netapp:v1/netapp.projects.locations.storagePools.list": list_project_location_storage_pools +"/netapp:v1/netapp.projects.locations.storagePools.list/filter": filter +"/netapp:v1/netapp.projects.locations.storagePools.list/orderBy": order_by +"/netapp:v1/netapp.projects.locations.storagePools.list/pageSize": page_size +"/netapp:v1/netapp.projects.locations.storagePools.list/pageToken": page_token +"/netapp:v1/netapp.projects.locations.storagePools.list/parent": parent +"/netapp:v1/netapp.projects.locations.storagePools.patch": patch_project_location_storage_pool +"/netapp:v1/netapp.projects.locations.storagePools.patch/name": name +"/netapp:v1/netapp.projects.locations.storagePools.patch/updateMask": update_mask +"/netapp:v1/netapp.projects.locations.storagePools.switch": switch_storage_pool_active_replica_zone +"/netapp:v1/netapp.projects.locations.storagePools.switch/name": name +"/netapp:v1/netapp.projects.locations.volumes.create": create_project_location_volume +"/netapp:v1/netapp.projects.locations.volumes.create/parent": parent +"/netapp:v1/netapp.projects.locations.volumes.create/volumeId": volume_id +"/netapp:v1/netapp.projects.locations.volumes.delete": delete_project_location_volume +"/netapp:v1/netapp.projects.locations.volumes.delete/force": force +"/netapp:v1/netapp.projects.locations.volumes.delete/name": name +"/netapp:v1/netapp.projects.locations.volumes.get": get_project_location_volume +"/netapp:v1/netapp.projects.locations.volumes.get/name": name +"/netapp:v1/netapp.projects.locations.volumes.list": list_project_location_volumes +"/netapp:v1/netapp.projects.locations.volumes.list/filter": filter +"/netapp:v1/netapp.projects.locations.volumes.list/orderBy": order_by +"/netapp:v1/netapp.projects.locations.volumes.list/pageSize": page_size +"/netapp:v1/netapp.projects.locations.volumes.list/pageToken": page_token +"/netapp:v1/netapp.projects.locations.volumes.list/parent": parent +"/netapp:v1/netapp.projects.locations.volumes.patch": patch_project_location_volume +"/netapp:v1/netapp.projects.locations.volumes.patch/name": name +"/netapp:v1/netapp.projects.locations.volumes.patch/updateMask": update_mask +"/netapp:v1/netapp.projects.locations.volumes.replications.create": create_project_location_volume_replication +"/netapp:v1/netapp.projects.locations.volumes.replications.create/parent": parent +"/netapp:v1/netapp.projects.locations.volumes.replications.create/replicationId": replication_id +"/netapp:v1/netapp.projects.locations.volumes.replications.delete": delete_project_location_volume_replication +"/netapp:v1/netapp.projects.locations.volumes.replications.delete/name": name +"/netapp:v1/netapp.projects.locations.volumes.replications.get": get_project_location_volume_replication +"/netapp:v1/netapp.projects.locations.volumes.replications.get/name": name +"/netapp:v1/netapp.projects.locations.volumes.replications.list": list_project_location_volume_replications +"/netapp:v1/netapp.projects.locations.volumes.replications.list/filter": filter +"/netapp:v1/netapp.projects.locations.volumes.replications.list/orderBy": order_by +"/netapp:v1/netapp.projects.locations.volumes.replications.list/pageSize": page_size +"/netapp:v1/netapp.projects.locations.volumes.replications.list/pageToken": page_token +"/netapp:v1/netapp.projects.locations.volumes.replications.list/parent": parent +"/netapp:v1/netapp.projects.locations.volumes.replications.patch": patch_project_location_volume_replication +"/netapp:v1/netapp.projects.locations.volumes.replications.patch/name": name +"/netapp:v1/netapp.projects.locations.volumes.replications.patch/updateMask": update_mask +"/netapp:v1/netapp.projects.locations.volumes.replications.resume": resume_replication +"/netapp:v1/netapp.projects.locations.volumes.replications.resume/name": name +"/netapp:v1/netapp.projects.locations.volumes.replications.reverseDirection": reverse_project_location_volume_replication_direction +"/netapp:v1/netapp.projects.locations.volumes.replications.reverseDirection/name": name +"/netapp:v1/netapp.projects.locations.volumes.replications.stop": stop_replication +"/netapp:v1/netapp.projects.locations.volumes.replications.stop/name": name +"/netapp:v1/netapp.projects.locations.volumes.revert": revert_volume +"/netapp:v1/netapp.projects.locations.volumes.revert/name": name +"/netapp:v1/netapp.projects.locations.volumes.snapshots.create": create_project_location_volume_snapshot +"/netapp:v1/netapp.projects.locations.volumes.snapshots.create/parent": parent +"/netapp:v1/netapp.projects.locations.volumes.snapshots.create/snapshotId": snapshot_id +"/netapp:v1/netapp.projects.locations.volumes.snapshots.delete": delete_project_location_volume_snapshot +"/netapp:v1/netapp.projects.locations.volumes.snapshots.delete/name": name +"/netapp:v1/netapp.projects.locations.volumes.snapshots.get": get_project_location_volume_snapshot +"/netapp:v1/netapp.projects.locations.volumes.snapshots.get/name": name +"/netapp:v1/netapp.projects.locations.volumes.snapshots.list": list_project_location_volume_snapshots +"/netapp:v1/netapp.projects.locations.volumes.snapshots.list/filter": filter +"/netapp:v1/netapp.projects.locations.volumes.snapshots.list/orderBy": order_by +"/netapp:v1/netapp.projects.locations.volumes.snapshots.list/pageSize": page_size +"/netapp:v1/netapp.projects.locations.volumes.snapshots.list/pageToken": page_token +"/netapp:v1/netapp.projects.locations.volumes.snapshots.list/parent": parent +"/netapp:v1/netapp.projects.locations.volumes.snapshots.patch": patch_project_location_volume_snapshot +"/netapp:v1/netapp.projects.locations.volumes.snapshots.patch/name": name +"/netapp:v1/netapp.projects.locations.volumes.snapshots.patch/updateMask": update_mask +"/netapp:v1/quotaUser": quota_user "/networkconnectivity:v1/AcceptHubSpokeRequest": accept_hub_spoke_request "/networkconnectivity:v1/AcceptHubSpokeRequest/requestId": request_id "/networkconnectivity:v1/AcceptHubSpokeRequest/spokeUri": spoke_uri diff --git a/generated/google-apis-netapp_v1/.repo-metadata.json b/generated/google-apis-netapp_v1/.repo-metadata.json new file mode 100644 index 00000000000..216a76e651f --- /dev/null +++ b/generated/google-apis-netapp_v1/.repo-metadata.json @@ -0,0 +1,7 @@ +{ + "api_id": "netapp:v1", + "name_pretty": "NetApp API", + "distribution_name": "google-apis-netapp_v1", + "language": "ruby", + "library_type": "REST" +} diff --git a/generated/google-apis-netapp_v1/.rspec b/generated/google-apis-netapp_v1/.rspec new file mode 100644 index 00000000000..16f9cdb0135 --- /dev/null +++ b/generated/google-apis-netapp_v1/.rspec @@ -0,0 +1,2 @@ +--color +--format documentation diff --git a/generated/google-apis-netapp_v1/.yardopts b/generated/google-apis-netapp_v1/.yardopts new file mode 100644 index 00000000000..3fb0bd6d4eb --- /dev/null +++ b/generated/google-apis-netapp_v1/.yardopts @@ -0,0 +1,13 @@ +--hide-void-return +--no-private +--verbose +--title=google-apis-netapp_v1 +--markup-provider=redcarpet +--markup=markdown +--main OVERVIEW.md +lib/google/apis/netapp_v1/*.rb +lib/google/apis/netapp_v1.rb +- +OVERVIEW.md +CHANGELOG.md +LICENSE.md diff --git a/generated/google-apis-netapp_v1/CHANGELOG.md b/generated/google-apis-netapp_v1/CHANGELOG.md new file mode 100644 index 00000000000..0be22157b01 --- /dev/null +++ b/generated/google-apis-netapp_v1/CHANGELOG.md @@ -0,0 +1,7 @@ +# Release history for google-apis-netapp_v1 + +### v0.1.0 (2024-10-20) + +* Regenerated from discovery document revision 20241002 +* Regenerated using generator version 0.15.1 + diff --git a/generated/google-apis-netapp_v1/Gemfile b/generated/google-apis-netapp_v1/Gemfile new file mode 100644 index 00000000000..6fa8bb627a6 --- /dev/null +++ b/generated/google-apis-netapp_v1/Gemfile @@ -0,0 +1,23 @@ +source 'https://rubygems.org' + +gemspec + +group :development do + gem "bundler", ">= 1.17" + gem "rake", ">= 12.0" + gem "rspec", "~> 3.9" + gem "opencensus", "~> 0.5" +end + +platforms :jruby do + group :development do + gem "jruby-openssl" + end +end + +platforms :ruby do + group :development do + gem "yard", "~> 0.9", ">= 0.9.25" + gem "redcarpet", "~> 3.5" + end +end diff --git a/generated/google-apis-netapp_v1/LICENSE.md b/generated/google-apis-netapp_v1/LICENSE.md new file mode 100644 index 00000000000..32916804156 --- /dev/null +++ b/generated/google-apis-netapp_v1/LICENSE.md @@ -0,0 +1,202 @@ + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + 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 + + http://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. diff --git a/generated/google-apis-netapp_v1/OVERVIEW.md b/generated/google-apis-netapp_v1/OVERVIEW.md new file mode 100644 index 00000000000..eec1391f764 --- /dev/null +++ b/generated/google-apis-netapp_v1/OVERVIEW.md @@ -0,0 +1,96 @@ +# Simple REST client for version V1 of the NetApp API + +This is a simple client library for version V1 of the NetApp API. It provides: + +* A client object that connects to the HTTP/JSON REST endpoint for the service. +* Ruby objects for data structures related to the service. +* Integration with the googleauth gem for authentication using OAuth, API keys, and service accounts. +* Control of retry, pagination, and timeouts. + +Note that although this client library is supported and will continue to be updated to track changes to the service, it is otherwise considered complete and not under active development. Many Google services, especially Google Cloud Platform services, may provide a more modern client that is under more active development and improvement. See the section below titled *Which client should I use?* for more information. + +## Getting started + +### Before you begin + +There are a few setup steps you need to complete before you can use this library: + + 1. If you don't already have a Google account, [sign up](https://www.google.com/accounts). + 2. If you have never created a Google APIs Console project, read about [Managing Projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects) and create a project in the [Google API Console](https://console.cloud.google.com/). + 3. Most APIs need to be enabled for your project. [Enable it](https://console.cloud.google.com/apis/library/netapp.googleapis.com) in the console. + +### Installation + +Add this line to your application's Gemfile: + +```ruby +gem 'google-apis-netapp_v1', '~> 0.1' +``` + +And then execute: + +``` +$ bundle +``` + +Or install it yourself as: + +``` +$ gem install google-apis-netapp_v1 +``` + +### Creating a client object + +Once the gem is installed, you can load the client code and instantiate a client. + +```ruby +# Load the client +require "google/apis/netapp_v1" + +# Create a client object +client = Google::Apis::NetappV1::NetAppFilesService.new + +# Authenticate calls +client.authorization = # ... use the googleauth gem to create credentials +``` + +See the class reference docs for information on the methods you can call from a client. + +## Documentation + +More detailed descriptions of the Google simple REST clients are available in two documents. + + * The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/main/docs/usage-guide.md) discusses how to make API calls, how to use the provided data structures, and how to work the various features of the client library, including media upload and download, error handling, retries, pagination, and logging. + * The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/main/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables. + +(Note: the above documents are written for the simple REST clients in general, and their examples may not reflect the Netapp service in particular.) + +For reference information on specific calls in the NetApp API, see the {Google::Apis::NetappV1::NetAppFilesService class reference docs}. + +## Which client should I use? + +Google provides two types of Ruby API client libraries: **simple REST clients** and **modern clients**. + +This library, `google-apis-netapp_v1`, is a simple REST client. You can identify these clients by their gem names, which are always in the form `google-apis-_`. The simple REST clients connect to HTTP/JSON REST endpoints and are automatically generated from service discovery documents. They support most API functionality, but their class interfaces are sometimes awkward. + +Modern clients are produced by a modern code generator, sometimes combined with hand-crafted functionality. Most modern clients connect to high-performance gRPC endpoints, although a few are backed by REST services. Modern clients are available for many Google services, especially Google Cloud Platform services, but do not yet support all the services covered by the simple clients. + +Gem names for modern clients are often of the form `google-cloud-`. (For example, [google-cloud-pubsub](https://rubygems.org/gems/google-cloud-pubsub).) Note that most modern clients also have corresponding "versioned" gems with names like `google-cloud--`. (For example, [google-cloud-pubsub-v1](https://rubygems.org/gems/google-cloud-pubsub-v1).) The "versioned" gems can be used directly, but often provide lower-level interfaces. In most cases, the main gem is recommended. + +**For most users, we recommend the modern client, if one is available.** Compared with simple clients, modern clients are generally much easier to use and more Ruby-like, support more advanced features such as streaming and long-running operations, and often provide much better performance. You may consider using a simple client instead, if a modern client is not yet available for the service you want to use, or if you are not able to use gRPC on your infrastructure. + +The [product documentation](https://cloud.google.com/netapp/) may provide guidance regarding the preferred client library to use. + +## Supported Ruby versions + +This library is supported on Ruby 2.7+. + +Google provides official support for Ruby versions that are actively supported by Ruby Core -- that is, Ruby versions that are either in normal maintenance or in security maintenance, and not end of life. Older versions of Ruby _may_ still work, but are unsupported and not recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby support schedule. + +## License + +This library is licensed under Apache 2.0. Full license text is available in the {file:LICENSE.md LICENSE}. + +## Support + +Please [report bugs at the project on Github](https://github.com/google/google-api-ruby-client/issues). Don't hesitate to [ask questions](http://stackoverflow.com/questions/tagged/google-api-ruby-client) about the client or APIs on [StackOverflow](http://stackoverflow.com). diff --git a/generated/google-apis-netapp_v1/Rakefile b/generated/google-apis-netapp_v1/Rakefile new file mode 100644 index 00000000000..defbde59776 --- /dev/null +++ b/generated/google-apis-netapp_v1/Rakefile @@ -0,0 +1,28 @@ +require "bundler/gem_tasks" +task :release_gem do + Rake::Task["build"].invoke + Rake::Task["release:rubygem_push"].invoke +end + +require 'rake/clean' +CLOBBER.include('coverage', 'doc') +CLEAN.include('.yardoc') + +require 'rspec/core/rake_task' +RSpec::Core::RakeTask.new(:spec) + +begin + require 'yard' + require 'yard/rake/yardoc_task' + YARD::Rake::YardocTask.new do |t| + t.files = ['lib/**/*.rb', 'generated/**/*.rb'] + t.options = ['--verbose', '--markup', 'markdown'] + end +rescue LoadError + task :yard + puts "YARD not available" +end + +task :ci => [:spec, :yard, :build] + +task :default => :ci diff --git a/generated/google-apis-netapp_v1/google-apis-netapp_v1.gemspec b/generated/google-apis-netapp_v1/google-apis-netapp_v1.gemspec new file mode 100644 index 00000000000..09d40b3b6a7 --- /dev/null +++ b/generated/google-apis-netapp_v1/google-apis-netapp_v1.gemspec @@ -0,0 +1,33 @@ +require File.expand_path("lib/google/apis/netapp_v1/gem_version", __dir__) +gem_version = Google::Apis::NetappV1::GEM_VERSION + +Gem::Specification.new do |gem| + gem.name = "google-apis-netapp_v1" + gem.version = gem_version + gem.authors = ["Google LLC"] + gem.email = "googleapis-packages@google.com" + gem.summary = "Simple REST client for NetApp API V1" + gem.description = + "This is the simple REST client for NetApp API V1." \ + " Simple REST clients are Ruby client libraries that provide access to" \ + " Google services via their HTTP REST API endpoints. These libraries are" \ + " generated and updated automatically based on the discovery documents" \ + " published by the service, and they handle most concerns such as" \ + " authentication, pagination, retry, timeouts, and logging. You can use" \ + " this client to access the NetApp API, but note that some" \ + " services may provide a separate modern client that is easier to use." + gem.homepage = "https://github.com/google/google-api-ruby-client" + gem.license = "Apache-2.0" + gem.metadata = { + "bug_tracker_uri" => "https://github.com/googleapis/google-api-ruby-client/issues", + "changelog_uri" => "https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-netapp_v1/CHANGELOG.md", + "documentation_uri" => "https://googleapis.dev/ruby/google-apis-netapp_v1/v#{gem_version}", + "source_code_uri" => "https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-netapp_v1" + } + + gem.files = Dir.glob("lib/**/*.rb") + Dir.glob("*.md") + [".yardopts"] + gem.require_paths = ["lib"] + + gem.required_ruby_version = '>= 2.7' + gem.add_runtime_dependency "google-apis-core", ">= 0.15.0", "< 2.a" +end diff --git a/generated/google-apis-netapp_v1/lib/google-apis-netapp_v1.rb b/generated/google-apis-netapp_v1/lib/google-apis-netapp_v1.rb new file mode 100644 index 00000000000..9a6a7edd1a0 --- /dev/null +++ b/generated/google-apis-netapp_v1/lib/google-apis-netapp_v1.rb @@ -0,0 +1,15 @@ +# Copyright 2020 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 +# +# http://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. + +require "google/apis/netapp_v1" diff --git a/generated/google-apis-netapp_v1/lib/google/apis/netapp_v1.rb b/generated/google-apis-netapp_v1/lib/google/apis/netapp_v1.rb new file mode 100644 index 00000000000..6dec6c5f54a --- /dev/null +++ b/generated/google-apis-netapp_v1/lib/google/apis/netapp_v1.rb @@ -0,0 +1,38 @@ +# Copyright 2020 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 +# +# http://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. + +require 'google/apis/netapp_v1/service.rb' +require 'google/apis/netapp_v1/classes.rb' +require 'google/apis/netapp_v1/representations.rb' +require 'google/apis/netapp_v1/gem_version.rb' + +module Google + module Apis + # NetApp API + # + # Google Cloud NetApp Volumes is a fully-managed, cloud-based data storage + # service that provides advanced data management capabilities and highly + # scalable performance with global availability. + # + # @see https://cloud.google.com/netapp/ + module NetappV1 + # Version of the NetApp API this client connects to. + # This is NOT the gem version. + VERSION = 'V1' + + # See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account. + AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' + end + end +end diff --git a/generated/google-apis-netapp_v1/lib/google/apis/netapp_v1/classes.rb b/generated/google-apis-netapp_v1/lib/google/apis/netapp_v1/classes.rb new file mode 100644 index 00000000000..2259375941c --- /dev/null +++ b/generated/google-apis-netapp_v1/lib/google/apis/netapp_v1/classes.rb @@ -0,0 +1,2719 @@ +# Copyright 2020 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 +# +# http://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. + +require 'date' +require 'google/apis/core/base_service' +require 'google/apis/core/json_representation' +require 'google/apis/core/hashable' +require 'google/apis/errors' + +module Google + module Apis + module NetappV1 + + # ActiveDirectory is the public representation of the active directory config. + class ActiveDirectory + include Google::Apis::Core::Hashable + + # Optional. Users to be added to the Built-in Admininstrators group. + # Corresponds to the JSON property `administrators` + # @return [Array] + attr_accessor :administrators + + # If enabled, AES encryption will be enabled for SMB communication. + # Corresponds to the JSON property `aesEncryption` + # @return [Boolean] + attr_accessor :aes_encryption + alias_method :aes_encryption?, :aes_encryption + + # Optional. Users to be added to the Built-in Backup Operator active directory + # group. + # Corresponds to the JSON property `backupOperators` + # @return [Array] + attr_accessor :backup_operators + + # Output only. Create time of the active directory. + # Corresponds to the JSON property `createTime` + # @return [String] + attr_accessor :create_time + + # Description of the active directory. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # Required. Comma separated list of DNS server IP addresses for the Active + # Directory domain. + # Corresponds to the JSON property `dns` + # @return [String] + attr_accessor :dns + + # Required. Name of the Active Directory domain + # Corresponds to the JSON property `domain` + # @return [String] + attr_accessor :domain + + # If enabled, traffic between the SMB server to Domain Controller (DC) will be + # encrypted. + # Corresponds to the JSON property `encryptDcConnections` + # @return [Boolean] + attr_accessor :encrypt_dc_connections + alias_method :encrypt_dc_connections?, :encrypt_dc_connections + + # Name of the active directory machine. This optional parameter is used only + # while creating kerberos volume + # Corresponds to the JSON property `kdcHostname` + # @return [String] + attr_accessor :kdc_hostname + + # KDC server IP address for the active directory machine. + # Corresponds to the JSON property `kdcIp` + # @return [String] + attr_accessor :kdc_ip + + # Labels for the active directory. + # Corresponds to the JSON property `labels` + # @return [Hash] + attr_accessor :labels + + # Specifies whether or not the LDAP traffic needs to be signed. + # Corresponds to the JSON property `ldapSigning` + # @return [Boolean] + attr_accessor :ldap_signing + alias_method :ldap_signing?, :ldap_signing + + # Identifier. The resource name of the active directory. Format: `projects/` + # project_number`/locations/`location_id`/activeDirectories/`active_directory_id` + # `. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Required. NetBIOSPrefix is used as a prefix for SMB server name. + # Corresponds to the JSON property `netBiosPrefix` + # @return [String] + attr_accessor :net_bios_prefix + + # If enabled, will allow access to local users and LDAP users. If access is + # needed for only LDAP users, it has to be disabled. + # Corresponds to the JSON property `nfsUsersWithLdap` + # @return [Boolean] + attr_accessor :nfs_users_with_ldap + alias_method :nfs_users_with_ldap?, :nfs_users_with_ldap + + # The Organizational Unit (OU) within the Windows Active Directory the user + # belongs to. + # Corresponds to the JSON property `organizationalUnit` + # @return [String] + attr_accessor :organizational_unit + + # Required. Password of the Active Directory domain administrator. + # Corresponds to the JSON property `password` + # @return [String] + attr_accessor :password + + # Optional. Domain users to be given the SeSecurityPrivilege. + # Corresponds to the JSON property `securityOperators` + # @return [Array] + attr_accessor :security_operators + + # The Active Directory site the service will limit Domain Controller discovery + # too. + # Corresponds to the JSON property `site` + # @return [String] + attr_accessor :site + + # Output only. The state of the AD. + # Corresponds to the JSON property `state` + # @return [String] + attr_accessor :state + + # Output only. The state details of the Active Directory. + # Corresponds to the JSON property `stateDetails` + # @return [String] + attr_accessor :state_details + + # Required. Username of the Active Directory domain administrator. + # Corresponds to the JSON property `username` + # @return [String] + attr_accessor :username + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @administrators = args[:administrators] if args.key?(:administrators) + @aes_encryption = args[:aes_encryption] if args.key?(:aes_encryption) + @backup_operators = args[:backup_operators] if args.key?(:backup_operators) + @create_time = args[:create_time] if args.key?(:create_time) + @description = args[:description] if args.key?(:description) + @dns = args[:dns] if args.key?(:dns) + @domain = args[:domain] if args.key?(:domain) + @encrypt_dc_connections = args[:encrypt_dc_connections] if args.key?(:encrypt_dc_connections) + @kdc_hostname = args[:kdc_hostname] if args.key?(:kdc_hostname) + @kdc_ip = args[:kdc_ip] if args.key?(:kdc_ip) + @labels = args[:labels] if args.key?(:labels) + @ldap_signing = args[:ldap_signing] if args.key?(:ldap_signing) + @name = args[:name] if args.key?(:name) + @net_bios_prefix = args[:net_bios_prefix] if args.key?(:net_bios_prefix) + @nfs_users_with_ldap = args[:nfs_users_with_ldap] if args.key?(:nfs_users_with_ldap) + @organizational_unit = args[:organizational_unit] if args.key?(:organizational_unit) + @password = args[:password] if args.key?(:password) + @security_operators = args[:security_operators] if args.key?(:security_operators) + @site = args[:site] if args.key?(:site) + @state = args[:state] if args.key?(:state) + @state_details = args[:state_details] if args.key?(:state_details) + @username = args[:username] if args.key?(:username) + end + end + + # Provides the mapping of a cloud asset to a direct physical location or to a + # proxy that defines the location on its behalf. + class AssetLocation + include Google::Apis::Core::Hashable + + # Spanner path of the CCFE RMS database. It is only applicable for CCFE tenants + # that use CCFE RMS for storing resource metadata. + # Corresponds to the JSON property `ccfeRmsPath` + # @return [String] + attr_accessor :ccfe_rms_path + + # Defines the customer expectation around ZI/ZS for this asset and ZI/ZS state + # of the region at the time of asset creation. + # Corresponds to the JSON property `expected` + # @return [Google::Apis::NetappV1::IsolationExpectations] + attr_accessor :expected + + # Defines extra parameters required for specific asset types. + # Corresponds to the JSON property `extraParameters` + # @return [Array] + attr_accessor :extra_parameters + + # Contains all kinds of physical location definitions for this asset. + # Corresponds to the JSON property `locationData` + # @return [Array] + attr_accessor :location_data + + # Defines parents assets if any in order to allow later generation of + # child_asset_location data via child assets. + # Corresponds to the JSON property `parentAsset` + # @return [Array] + attr_accessor :parent_asset + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @ccfe_rms_path = args[:ccfe_rms_path] if args.key?(:ccfe_rms_path) + @expected = args[:expected] if args.key?(:expected) + @extra_parameters = args[:extra_parameters] if args.key?(:extra_parameters) + @location_data = args[:location_data] if args.key?(:location_data) + @parent_asset = args[:parent_asset] if args.key?(:parent_asset) + end + end + + # A NetApp Backup. + class Backup + include Google::Apis::Core::Hashable + + # Output only. Type of backup, manually created or created by a backup policy. + # Corresponds to the JSON property `backupType` + # @return [String] + attr_accessor :backup_type + + # Output only. Total size of all backups in a chain in bytes = baseline backup + # size + sum(incremental backup size) + # Corresponds to the JSON property `chainStorageBytes` + # @return [Fixnum] + attr_accessor :chain_storage_bytes + + # Output only. The time when the backup was created. + # Corresponds to the JSON property `createTime` + # @return [String] + attr_accessor :create_time + + # A description of the backup with 2048 characters or less. Requests with longer + # descriptions will be rejected. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # Resource labels to represent user provided metadata. + # Corresponds to the JSON property `labels` + # @return [Hash] + attr_accessor :labels + + # Identifier. The resource name of the backup. Format: `projects/`project_id`/ + # locations/`location`/backupVaults/`backup_vault_id`/backups/`backup_id``. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # If specified, backup will be created from the given snapshot. If not specified, + # there will be a new snapshot taken to initiate the backup creation. Format: ` + # projects/`project_id`/locations/`location`/volumes/`volume_id`/snapshots/` + # snapshot_id`` + # Corresponds to the JSON property `sourceSnapshot` + # @return [String] + attr_accessor :source_snapshot + + # Volume full name of this backup belongs to. Format: `projects/`projects_id`/ + # locations/`location`/volumes/`volume_id`` + # Corresponds to the JSON property `sourceVolume` + # @return [String] + attr_accessor :source_volume + + # Output only. The backup state. + # Corresponds to the JSON property `state` + # @return [String] + attr_accessor :state + + # Output only. Size of the file system when the backup was created. When + # creating a new volume from the backup, the volume capacity will have to be at + # least as big. + # Corresponds to the JSON property `volumeUsageBytes` + # @return [Fixnum] + attr_accessor :volume_usage_bytes + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @backup_type = args[:backup_type] if args.key?(:backup_type) + @chain_storage_bytes = args[:chain_storage_bytes] if args.key?(:chain_storage_bytes) + @create_time = args[:create_time] if args.key?(:create_time) + @description = args[:description] if args.key?(:description) + @labels = args[:labels] if args.key?(:labels) + @name = args[:name] if args.key?(:name) + @source_snapshot = args[:source_snapshot] if args.key?(:source_snapshot) + @source_volume = args[:source_volume] if args.key?(:source_volume) + @state = args[:state] if args.key?(:state) + @volume_usage_bytes = args[:volume_usage_bytes] if args.key?(:volume_usage_bytes) + end + end + + # BackupConfig contains backup related config on a volume. + class BackupConfig + include Google::Apis::Core::Hashable + + # Output only. Total size of all backups in a chain in bytes = baseline backup + # size + sum(incremental backup size). + # Corresponds to the JSON property `backupChainBytes` + # @return [Fixnum] + attr_accessor :backup_chain_bytes + + # Optional. When specified, schedule backups will be created based on the policy + # configuration. + # Corresponds to the JSON property `backupPolicies` + # @return [Array] + attr_accessor :backup_policies + + # Optional. Name of backup vault. Format: projects/`project_id`/locations/` + # location`/backupVaults/`backup_vault_id` + # Corresponds to the JSON property `backupVault` + # @return [String] + attr_accessor :backup_vault + + # Optional. When set to true, scheduled backup is enabled on the volume. This + # field should be nil when there's no backup policy attached. + # Corresponds to the JSON property `scheduledBackupEnabled` + # @return [Boolean] + attr_accessor :scheduled_backup_enabled + alias_method :scheduled_backup_enabled?, :scheduled_backup_enabled + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @backup_chain_bytes = args[:backup_chain_bytes] if args.key?(:backup_chain_bytes) + @backup_policies = args[:backup_policies] if args.key?(:backup_policies) + @backup_vault = args[:backup_vault] if args.key?(:backup_vault) + @scheduled_backup_enabled = args[:scheduled_backup_enabled] if args.key?(:scheduled_backup_enabled) + end + end + + # Backup Policy. + class BackupPolicy + include Google::Apis::Core::Hashable + + # Output only. The total number of volumes assigned by this backup policy. + # Corresponds to the JSON property `assignedVolumeCount` + # @return [Fixnum] + attr_accessor :assigned_volume_count + + # Output only. The time when the backup policy was created. + # Corresponds to the JSON property `createTime` + # @return [String] + attr_accessor :create_time + + # Number of daily backups to keep. Note that the minimum daily backup limit is 2. + # Corresponds to the JSON property `dailyBackupLimit` + # @return [Fixnum] + attr_accessor :daily_backup_limit + + # Description of the backup policy. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # If enabled, make backups automatically according to the schedules. This will + # be applied to all volumes that have this policy attached and enforced on + # volume level. If not specified, default is true. + # Corresponds to the JSON property `enabled` + # @return [Boolean] + attr_accessor :enabled + alias_method :enabled?, :enabled + + # Resource labels to represent user provided metadata. + # Corresponds to the JSON property `labels` + # @return [Hash] + attr_accessor :labels + + # Number of monthly backups to keep. Note that the sum of daily, weekly and + # monthly backups should be greater than 1. + # Corresponds to the JSON property `monthlyBackupLimit` + # @return [Fixnum] + attr_accessor :monthly_backup_limit + + # Identifier. The resource name of the backup policy. Format: `projects/` + # project_id`/locations/`location`/backupPolicies/`backup_policy_id``. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Output only. The backup policy state. + # Corresponds to the JSON property `state` + # @return [String] + attr_accessor :state + + # Number of weekly backups to keep. Note that the sum of daily, weekly and + # monthly backups should be greater than 1. + # Corresponds to the JSON property `weeklyBackupLimit` + # @return [Fixnum] + attr_accessor :weekly_backup_limit + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @assigned_volume_count = args[:assigned_volume_count] if args.key?(:assigned_volume_count) + @create_time = args[:create_time] if args.key?(:create_time) + @daily_backup_limit = args[:daily_backup_limit] if args.key?(:daily_backup_limit) + @description = args[:description] if args.key?(:description) + @enabled = args[:enabled] if args.key?(:enabled) + @labels = args[:labels] if args.key?(:labels) + @monthly_backup_limit = args[:monthly_backup_limit] if args.key?(:monthly_backup_limit) + @name = args[:name] if args.key?(:name) + @state = args[:state] if args.key?(:state) + @weekly_backup_limit = args[:weekly_backup_limit] if args.key?(:weekly_backup_limit) + end + end + + # A NetApp BackupVault. + class BackupVault + include Google::Apis::Core::Hashable + + # Output only. Create time of the backup vault. + # Corresponds to the JSON property `createTime` + # @return [String] + attr_accessor :create_time + + # Description of the backup vault. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # Resource labels to represent user provided metadata. + # Corresponds to the JSON property `labels` + # @return [Hash] + attr_accessor :labels + + # Identifier. The resource name of the backup vault. Format: `projects/` + # project_id`/locations/`location`/backupVaults/`backup_vault_id``. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Output only. The backup vault state. + # Corresponds to the JSON property `state` + # @return [String] + attr_accessor :state + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @create_time = args[:create_time] if args.key?(:create_time) + @description = args[:description] if args.key?(:description) + @labels = args[:labels] if args.key?(:labels) + @name = args[:name] if args.key?(:name) + @state = args[:state] if args.key?(:state) + end + end + + # Policy ID that identified data placement in Blobstore as per go/blobstore-user- + # guide#data-metadata-placement-and-failure-domains + class BlobstoreLocation + include Google::Apis::Core::Hashable + + # + # Corresponds to the JSON property `policyId` + # @return [Array] + attr_accessor :policy_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @policy_id = args[:policy_id] if args.key?(:policy_id) + end + end + + # The request message for Operations.CancelOperation. + class CancelOperationRequest + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + + # + class CloudAsset + include Google::Apis::Core::Hashable + + # + # Corresponds to the JSON property `assetName` + # @return [String] + attr_accessor :asset_name + + # + # Corresponds to the JSON property `assetType` + # @return [String] + attr_accessor :asset_type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @asset_name = args[:asset_name] if args.key?(:asset_name) + @asset_type = args[:asset_type] if args.key?(:asset_type) + end + end + + # + class CloudAssetComposition + include Google::Apis::Core::Hashable + + # + # Corresponds to the JSON property `childAsset` + # @return [Array] + attr_accessor :child_asset + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @child_asset = args[:child_asset] if args.key?(:child_asset) + end + end + + # Make a snapshot every day e.g. at 04:00, 05:20, 23:50 + class DailySchedule + include Google::Apis::Core::Hashable + + # Set the hour to start the snapshot (0-23), defaults to midnight (0). + # Corresponds to the JSON property `hour` + # @return [Float] + attr_accessor :hour + + # Set the minute of the hour to start the snapshot (0-59), defaults to the top + # of the hour (0). + # Corresponds to the JSON property `minute` + # @return [Float] + attr_accessor :minute + + # The maximum number of Snapshots to keep for the hourly schedule + # Corresponds to the JSON property `snapshotsToKeep` + # @return [Float] + attr_accessor :snapshots_to_keep + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @hour = args[:hour] if args.key?(:hour) + @minute = args[:minute] if args.key?(:minute) + @snapshots_to_keep = args[:snapshots_to_keep] if args.key?(:snapshots_to_keep) + end + end + + # DestinationVolumeParameters specify input parameters used for creating + # destination volume. + class DestinationVolumeParameters + include Google::Apis::Core::Hashable + + # Description for the destination volume. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # Destination volume's share name. If not specified, source volume's share name + # will be used. + # Corresponds to the JSON property `shareName` + # @return [String] + attr_accessor :share_name + + # Required. Existing destination StoragePool name. + # Corresponds to the JSON property `storagePool` + # @return [String] + attr_accessor :storage_pool + + # Desired destination volume resource id. If not specified, source volume's + # resource id will be used. This value must start with a lowercase letter + # followed by up to 62 lowercase letters, numbers, or hyphens, and cannot end + # with a hyphen. + # Corresponds to the JSON property `volumeId` + # @return [String] + attr_accessor :volume_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @description = args[:description] if args.key?(:description) + @share_name = args[:share_name] if args.key?(:share_name) + @storage_pool = args[:storage_pool] if args.key?(:storage_pool) + @volume_id = args[:volume_id] if args.key?(:volume_id) + end + end + + # + class DirectLocationAssignment + include Google::Apis::Core::Hashable + + # + # Corresponds to the JSON property `location` + # @return [Array] + attr_accessor :location + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @location = args[:location] if args.key?(:location) + end + end + + # EncryptVolumesRequest specifies the KMS config to encrypt existing volumes. + class EncryptVolumesRequest + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + + # Defines the export policy for the volume. + class ExportPolicy + include Google::Apis::Core::Hashable + + # Required. List of export policy rules + # Corresponds to the JSON property `rules` + # @return [Array] + attr_accessor :rules + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @rules = args[:rules] if args.key?(:rules) + end + end + + # Defines parameters that should only be used for specific asset types. + class ExtraParameter + include Google::Apis::Core::Hashable + + # To be used for specifying the intended distribution of regional compute. + # googleapis.com/InstanceGroupManager instances + # Corresponds to the JSON property `regionalMigDistributionPolicy` + # @return [Google::Apis::NetappV1::RegionalMigDistributionPolicy] + attr_accessor :regional_mig_distribution_policy + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @regional_mig_distribution_policy = args[:regional_mig_distribution_policy] if args.key?(:regional_mig_distribution_policy) + end + end + + # A generic empty message that you can re-use to avoid defining duplicated empty + # messages in your APIs. A typical example is to use it as the request or the + # response type of an API method. For instance: service Foo ` rpc Bar(google. + # protobuf.Empty) returns (google.protobuf.Empty); ` + class GoogleProtobufEmpty + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + + # Make a snapshot every hour e.g. at 04:00, 05:00, 06:00. + class HourlySchedule + include Google::Apis::Core::Hashable + + # Set the minute of the hour to start the snapshot (0-59), defaults to the top + # of the hour (0). + # Corresponds to the JSON property `minute` + # @return [Float] + attr_accessor :minute + + # The maximum number of Snapshots to keep for the hourly schedule + # Corresponds to the JSON property `snapshotsToKeep` + # @return [Float] + attr_accessor :snapshots_to_keep + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @minute = args[:minute] if args.key?(:minute) + @snapshots_to_keep = args[:snapshots_to_keep] if args.key?(:snapshots_to_keep) + end + end + + # + class IsolationExpectations + include Google::Apis::Core::Hashable + + # Explicit overrides for ZI and ZS requirements to be used for resources that + # should be excluded from ZI/ZS verification logic. + # Corresponds to the JSON property `requirementOverride` + # @return [Google::Apis::NetappV1::RequirementOverride] + attr_accessor :requirement_override + + # + # Corresponds to the JSON property `ziOrgPolicy` + # @return [String] + attr_accessor :zi_org_policy + + # + # Corresponds to the JSON property `ziRegionPolicy` + # @return [String] + attr_accessor :zi_region_policy + + # + # Corresponds to the JSON property `ziRegionState` + # @return [String] + attr_accessor :zi_region_state + + # Deprecated: use zi_org_policy, zi_region_policy and zi_region_state instead + # for setting ZI expectations as per go/zicy-publish-physical-location. + # Corresponds to the JSON property `zoneIsolation` + # @return [String] + attr_accessor :zone_isolation + + # Deprecated: use zs_org_policy, and zs_region_stateinstead for setting Zs + # expectations as per go/zicy-publish-physical-location. + # Corresponds to the JSON property `zoneSeparation` + # @return [String] + attr_accessor :zone_separation + + # + # Corresponds to the JSON property `zsOrgPolicy` + # @return [String] + attr_accessor :zs_org_policy + + # + # Corresponds to the JSON property `zsRegionState` + # @return [String] + attr_accessor :zs_region_state + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @requirement_override = args[:requirement_override] if args.key?(:requirement_override) + @zi_org_policy = args[:zi_org_policy] if args.key?(:zi_org_policy) + @zi_region_policy = args[:zi_region_policy] if args.key?(:zi_region_policy) + @zi_region_state = args[:zi_region_state] if args.key?(:zi_region_state) + @zone_isolation = args[:zone_isolation] if args.key?(:zone_isolation) + @zone_separation = args[:zone_separation] if args.key?(:zone_separation) + @zs_org_policy = args[:zs_org_policy] if args.key?(:zs_org_policy) + @zs_region_state = args[:zs_region_state] if args.key?(:zs_region_state) + end + end + + # KmsConfig is the customer managed encryption key(CMEK) configuration. + class KmsConfig + include Google::Apis::Core::Hashable + + # Output only. Create time of the KmsConfig. + # Corresponds to the JSON property `createTime` + # @return [String] + attr_accessor :create_time + + # Required. Customer managed crypto key resource full name. Format: projects/` + # project`/locations/`location`/keyRings/`key_ring`/cryptoKeys/`key`. + # Corresponds to the JSON property `cryptoKeyName` + # @return [String] + attr_accessor :crypto_key_name + + # Description of the KmsConfig. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # Output only. Instructions to provide the access to the customer provided + # encryption key. + # Corresponds to the JSON property `instructions` + # @return [String] + attr_accessor :instructions + + # Labels as key value pairs + # Corresponds to the JSON property `labels` + # @return [Hash] + attr_accessor :labels + + # Identifier. Name of the KmsConfig. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Output only. The Service account which will have access to the customer + # provided encryption key. + # Corresponds to the JSON property `serviceAccount` + # @return [String] + attr_accessor :service_account + + # Output only. State of the KmsConfig. + # Corresponds to the JSON property `state` + # @return [String] + attr_accessor :state + + # Output only. State details of the KmsConfig. + # Corresponds to the JSON property `stateDetails` + # @return [String] + attr_accessor :state_details + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @create_time = args[:create_time] if args.key?(:create_time) + @crypto_key_name = args[:crypto_key_name] if args.key?(:crypto_key_name) + @description = args[:description] if args.key?(:description) + @instructions = args[:instructions] if args.key?(:instructions) + @labels = args[:labels] if args.key?(:labels) + @name = args[:name] if args.key?(:name) + @service_account = args[:service_account] if args.key?(:service_account) + @state = args[:state] if args.key?(:state) + @state_details = args[:state_details] if args.key?(:state_details) + end + end + + # ListActiveDirectoriesResponse contains all the active directories requested. + class ListActiveDirectoriesResponse + include Google::Apis::Core::Hashable + + # The list of active directories. + # Corresponds to the JSON property `activeDirectories` + # @return [Array] + attr_accessor :active_directories + + # A token identifying a page of results the server should return. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # Locations that could not be reached. + # Corresponds to the JSON property `unreachable` + # @return [Array] + attr_accessor :unreachable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @active_directories = args[:active_directories] if args.key?(:active_directories) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @unreachable = args[:unreachable] if args.key?(:unreachable) + end + end + + # ListBackupPoliciesResponse contains all the backup policies requested. + class ListBackupPoliciesResponse + include Google::Apis::Core::Hashable + + # The list of backup policies. + # Corresponds to the JSON property `backupPolicies` + # @return [Array] + attr_accessor :backup_policies + + # A token identifying a page of results the server should return. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # Locations that could not be reached. + # Corresponds to the JSON property `unreachable` + # @return [Array] + attr_accessor :unreachable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @backup_policies = args[:backup_policies] if args.key?(:backup_policies) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @unreachable = args[:unreachable] if args.key?(:unreachable) + end + end + + # ListBackupVaultsResponse is the result of ListBackupVaultsRequest. + class ListBackupVaultsResponse + include Google::Apis::Core::Hashable + + # A list of backupVaults in the project for the specified location. + # Corresponds to the JSON property `backupVaults` + # @return [Array] + attr_accessor :backup_vaults + + # The token you can use to retrieve the next page of results. Not returned if + # there are no more results in the list. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # Locations that could not be reached. + # Corresponds to the JSON property `unreachable` + # @return [Array] + attr_accessor :unreachable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @backup_vaults = args[:backup_vaults] if args.key?(:backup_vaults) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @unreachable = args[:unreachable] if args.key?(:unreachable) + end + end + + # ListBackupsResponse is the result of ListBackupsRequest. + class ListBackupsResponse + include Google::Apis::Core::Hashable + + # A list of backups in the project. + # Corresponds to the JSON property `backups` + # @return [Array] + attr_accessor :backups + + # The token you can use to retrieve the next page of results. Not returned if + # there are no more results in the list. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # Locations that could not be reached. + # Corresponds to the JSON property `unreachable` + # @return [Array] + attr_accessor :unreachable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @backups = args[:backups] if args.key?(:backups) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @unreachable = args[:unreachable] if args.key?(:unreachable) + end + end + + # ListKmsConfigsResponse is the response to a ListKmsConfigsRequest. + class ListKmsConfigsResponse + include Google::Apis::Core::Hashable + + # The list of KmsConfigs + # Corresponds to the JSON property `kmsConfigs` + # @return [Array] + attr_accessor :kms_configs + + # A token identifying a page of results the server should return. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # Locations that could not be reached. + # Corresponds to the JSON property `unreachable` + # @return [Array] + attr_accessor :unreachable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @kms_configs = args[:kms_configs] if args.key?(:kms_configs) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @unreachable = args[:unreachable] if args.key?(:unreachable) + end + end + + # The response message for Locations.ListLocations. + class ListLocationsResponse + include Google::Apis::Core::Hashable + + # A list of locations that matches the specified filter in the request. + # Corresponds to the JSON property `locations` + # @return [Array] + attr_accessor :locations + + # The standard List next-page token. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @locations = args[:locations] if args.key?(:locations) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + end + end + + # The response message for Operations.ListOperations. + class ListOperationsResponse + include Google::Apis::Core::Hashable + + # The standard List next-page token. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # A list of operations that matches the specified filter in the request. + # Corresponds to the JSON property `operations` + # @return [Array] + attr_accessor :operations + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @operations = args[:operations] if args.key?(:operations) + end + end + + # ListReplicationsResponse is the result of ListReplicationsRequest. + class ListReplicationsResponse + include Google::Apis::Core::Hashable + + # The token you can use to retrieve the next page of results. Not returned if + # there are no more results in the list. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # A list of replications in the project for the specified volume. + # Corresponds to the JSON property `replications` + # @return [Array] + attr_accessor :replications + + # Locations that could not be reached. + # Corresponds to the JSON property `unreachable` + # @return [Array] + attr_accessor :unreachable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @replications = args[:replications] if args.key?(:replications) + @unreachable = args[:unreachable] if args.key?(:unreachable) + end + end + + # ListSnapshotsResponse is the result of ListSnapshotsRequest. + class ListSnapshotsResponse + include Google::Apis::Core::Hashable + + # The token you can use to retrieve the next page of results. Not returned if + # there are no more results in the list. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # A list of snapshots in the project for the specified volume. + # Corresponds to the JSON property `snapshots` + # @return [Array] + attr_accessor :snapshots + + # Locations that could not be reached. + # Corresponds to the JSON property `unreachable` + # @return [Array] + attr_accessor :unreachable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @snapshots = args[:snapshots] if args.key?(:snapshots) + @unreachable = args[:unreachable] if args.key?(:unreachable) + end + end + + # ListStoragePoolsResponse is the response to a ListStoragePoolsRequest. + class ListStoragePoolsResponse + include Google::Apis::Core::Hashable + + # A token identifying a page of results the server should return. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # The list of StoragePools + # Corresponds to the JSON property `storagePools` + # @return [Array] + attr_accessor :storage_pools + + # Locations that could not be reached. + # Corresponds to the JSON property `unreachable` + # @return [Array] + attr_accessor :unreachable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @storage_pools = args[:storage_pools] if args.key?(:storage_pools) + @unreachable = args[:unreachable] if args.key?(:unreachable) + end + end + + # Message for response to listing Volumes + class ListVolumesResponse + include Google::Apis::Core::Hashable + + # A token identifying a page of results the server should return. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # Locations that could not be reached. + # Corresponds to the JSON property `unreachable` + # @return [Array] + attr_accessor :unreachable + + # The list of Volume + # Corresponds to the JSON property `volumes` + # @return [Array] + attr_accessor :volumes + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @unreachable = args[:unreachable] if args.key?(:unreachable) + @volumes = args[:volumes] if args.key?(:volumes) + end + end + + # A resource that represents a Google Cloud location. + class Location + include Google::Apis::Core::Hashable + + # The friendly name for this location, typically a nearby city name. For example, + # "Tokyo". + # Corresponds to the JSON property `displayName` + # @return [String] + attr_accessor :display_name + + # Cross-service attributes for the location. For example `"cloud.googleapis.com/ + # region": "us-east1"` + # Corresponds to the JSON property `labels` + # @return [Hash] + attr_accessor :labels + + # The canonical id for this location. For example: `"us-east1"`. + # Corresponds to the JSON property `locationId` + # @return [String] + attr_accessor :location_id + + # Service-specific metadata. For example the available capacity at the given + # location. + # Corresponds to the JSON property `metadata` + # @return [Hash] + attr_accessor :metadata + + # Resource name for the location, which may vary between implementations. For + # example: `"projects/example-project/locations/us-east1"` + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @display_name = args[:display_name] if args.key?(:display_name) + @labels = args[:labels] if args.key?(:labels) + @location_id = args[:location_id] if args.key?(:location_id) + @metadata = args[:metadata] if args.key?(:metadata) + @name = args[:name] if args.key?(:name) + end + end + + # + class LocationAssignment + include Google::Apis::Core::Hashable + + # + # Corresponds to the JSON property `location` + # @return [String] + attr_accessor :location + + # + # Corresponds to the JSON property `locationType` + # @return [String] + attr_accessor :location_type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @location = args[:location] if args.key?(:location) + @location_type = args[:location_type] if args.key?(:location_type) + end + end + + # + class LocationData + include Google::Apis::Core::Hashable + + # Policy ID that identified data placement in Blobstore as per go/blobstore-user- + # guide#data-metadata-placement-and-failure-domains + # Corresponds to the JSON property `blobstoreLocation` + # @return [Google::Apis::NetappV1::BlobstoreLocation] + attr_accessor :blobstore_location + + # + # Corresponds to the JSON property `childAssetLocation` + # @return [Google::Apis::NetappV1::CloudAssetComposition] + attr_accessor :child_asset_location + + # + # Corresponds to the JSON property `directLocation` + # @return [Google::Apis::NetappV1::DirectLocationAssignment] + attr_accessor :direct_location + + # + # Corresponds to the JSON property `gcpProjectProxy` + # @return [Google::Apis::NetappV1::TenantProjectProxy] + attr_accessor :gcp_project_proxy + + # Message describing that the location of the customer resource is tied to + # placer allocations + # Corresponds to the JSON property `placerLocation` + # @return [Google::Apis::NetappV1::PlacerLocation] + attr_accessor :placer_location + + # + # Corresponds to the JSON property `spannerLocation` + # @return [Google::Apis::NetappV1::SpannerLocation] + attr_accessor :spanner_location + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @blobstore_location = args[:blobstore_location] if args.key?(:blobstore_location) + @child_asset_location = args[:child_asset_location] if args.key?(:child_asset_location) + @direct_location = args[:direct_location] if args.key?(:direct_location) + @gcp_project_proxy = args[:gcp_project_proxy] if args.key?(:gcp_project_proxy) + @placer_location = args[:placer_location] if args.key?(:placer_location) + @spanner_location = args[:spanner_location] if args.key?(:spanner_location) + end + end + + # Metadata for a given google.cloud.location.Location. + class LocationMetadata + include Google::Apis::Core::Hashable + + # Output only. Supported service levels in a location. + # Corresponds to the JSON property `supportedServiceLevels` + # @return [Array] + attr_accessor :supported_service_levels + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @supported_service_levels = args[:supported_service_levels] if args.key?(:supported_service_levels) + end + end + + # Make a snapshot once a month e.g. at 2nd 04:00, 7th 05:20, 24th 23:50 + class MonthlySchedule + include Google::Apis::Core::Hashable + + # Set the day or days of the month to make a snapshot (1-31). Accepts a comma + # separated number of days. Defaults to '1'. + # Corresponds to the JSON property `daysOfMonth` + # @return [String] + attr_accessor :days_of_month + + # Set the hour to start the snapshot (0-23), defaults to midnight (0). + # Corresponds to the JSON property `hour` + # @return [Float] + attr_accessor :hour + + # Set the minute of the hour to start the snapshot (0-59), defaults to the top + # of the hour (0). + # Corresponds to the JSON property `minute` + # @return [Float] + attr_accessor :minute + + # The maximum number of Snapshots to keep for the hourly schedule + # Corresponds to the JSON property `snapshotsToKeep` + # @return [Float] + attr_accessor :snapshots_to_keep + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @days_of_month = args[:days_of_month] if args.key?(:days_of_month) + @hour = args[:hour] if args.key?(:hour) + @minute = args[:minute] if args.key?(:minute) + @snapshots_to_keep = args[:snapshots_to_keep] if args.key?(:snapshots_to_keep) + end + end + + # View only mount options for a volume. + class MountOption + include Google::Apis::Core::Hashable + + # Export string + # Corresponds to the JSON property `export` + # @return [String] + attr_accessor :export + + # Full export string + # Corresponds to the JSON property `exportFull` + # @return [String] + attr_accessor :export_full + + # Instructions for mounting + # Corresponds to the JSON property `instructions` + # @return [String] + attr_accessor :instructions + + # Protocol to mount with. + # Corresponds to the JSON property `protocol` + # @return [String] + attr_accessor :protocol + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @export = args[:export] if args.key?(:export) + @export_full = args[:export_full] if args.key?(:export_full) + @instructions = args[:instructions] if args.key?(:instructions) + @protocol = args[:protocol] if args.key?(:protocol) + end + end + + # This resource represents a long-running operation that is the result of a + # network API call. + class Operation + include Google::Apis::Core::Hashable + + # If the value is `false`, it means the operation is still in progress. If `true` + # , the operation is completed, and either `error` or `response` is available. + # Corresponds to the JSON property `done` + # @return [Boolean] + attr_accessor :done + alias_method :done?, :done + + # The `Status` type defines a logical error model that is suitable for different + # programming environments, including REST APIs and RPC APIs. It is used by [ + # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of + # data: error code, error message, and error details. You can find out more + # about this error model and how to work with it in the [API Design Guide](https: + # //cloud.google.com/apis/design/errors). + # Corresponds to the JSON property `error` + # @return [Google::Apis::NetappV1::Status] + attr_accessor :error + + # Service-specific metadata associated with the operation. It typically contains + # progress information and common metadata such as create time. Some services + # might not provide such metadata. Any method that returns a long-running + # operation should document the metadata type, if any. + # Corresponds to the JSON property `metadata` + # @return [Hash] + attr_accessor :metadata + + # The server-assigned name, which is only unique within the same service that + # originally returns it. If you use the default HTTP mapping, the `name` should + # be a resource name ending with `operations/`unique_id``. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # The normal, successful response of the operation. If the original method + # returns no data on success, such as `Delete`, the response is `google.protobuf. + # Empty`. If the original method is standard `Get`/`Create`/`Update`, the + # response should be the resource. For other methods, the response should have + # the type `XxxResponse`, where `Xxx` is the original method name. For example, + # if the original method name is `TakeSnapshot()`, the inferred response type is + # `TakeSnapshotResponse`. + # Corresponds to the JSON property `response` + # @return [Hash] + attr_accessor :response + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @done = args[:done] if args.key?(:done) + @error = args[:error] if args.key?(:error) + @metadata = args[:metadata] if args.key?(:metadata) + @name = args[:name] if args.key?(:name) + @response = args[:response] if args.key?(:response) + end + end + + # Represents the metadata of the long-running operation. + class OperationMetadata + include Google::Apis::Core::Hashable + + # Output only. API version used to start the operation. + # Corresponds to the JSON property `apiVersion` + # @return [String] + attr_accessor :api_version + + # Output only. The time the operation was created. + # Corresponds to the JSON property `createTime` + # @return [String] + attr_accessor :create_time + + # Output only. The time the operation finished running. + # Corresponds to the JSON property `endTime` + # @return [String] + attr_accessor :end_time + + # Output only. Identifies whether the user has requested cancellation of the + # operation. Operations that have been canceled successfully have Operation. + # error value with a google.rpc.Status.code of 1, corresponding to `Code. + # CANCELLED`. + # Corresponds to the JSON property `requestedCancellation` + # @return [Boolean] + attr_accessor :requested_cancellation + alias_method :requested_cancellation?, :requested_cancellation + + # Output only. Human-readable status of the operation, if any. + # Corresponds to the JSON property `statusMessage` + # @return [String] + attr_accessor :status_message + + # Output only. Server-defined resource path for the target of the operation. + # Corresponds to the JSON property `target` + # @return [String] + attr_accessor :target + + # Output only. Name of the verb executed by the operation. + # Corresponds to the JSON property `verb` + # @return [String] + attr_accessor :verb + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @api_version = args[:api_version] if args.key?(:api_version) + @create_time = args[:create_time] if args.key?(:create_time) + @end_time = args[:end_time] if args.key?(:end_time) + @requested_cancellation = args[:requested_cancellation] if args.key?(:requested_cancellation) + @status_message = args[:status_message] if args.key?(:status_message) + @target = args[:target] if args.key?(:target) + @verb = args[:verb] if args.key?(:verb) + end + end + + # Message describing that the location of the customer resource is tied to + # placer allocations + class PlacerLocation + include Google::Apis::Core::Hashable + + # Directory with a config related to it in placer (e.g. "/placer/prod/home/my- + # root/my-dir") + # Corresponds to the JSON property `placerConfig` + # @return [String] + attr_accessor :placer_config + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @placer_config = args[:placer_config] if args.key?(:placer_config) + end + end + + # To be used for specifying the intended distribution of regional compute. + # googleapis.com/InstanceGroupManager instances + class RegionalMigDistributionPolicy + include Google::Apis::Core::Hashable + + # The shape in which the group converges around distribution of resources. + # Instance of proto2 enum + # Corresponds to the JSON property `targetShape` + # @return [Fixnum] + attr_accessor :target_shape + + # Cloud zones used by regional MIG to create instances. + # Corresponds to the JSON property `zones` + # @return [Array] + attr_accessor :zones + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @target_shape = args[:target_shape] if args.key?(:target_shape) + @zones = args[:zones] if args.key?(:zones) + end + end + + # Replication is a nested resource under Volume, that describes a cross-region + # replication relationship between 2 volumes in different regions. + class Replication + include Google::Apis::Core::Hashable + + # Output only. Replication create time. + # Corresponds to the JSON property `createTime` + # @return [String] + attr_accessor :create_time + + # A description about this replication relationship. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # Output only. Full name of destination volume resource. Example : "projects/` + # project`/locations/`location`/volumes/`volume_id`" + # Corresponds to the JSON property `destinationVolume` + # @return [String] + attr_accessor :destination_volume + + # DestinationVolumeParameters specify input parameters used for creating + # destination volume. + # Corresponds to the JSON property `destinationVolumeParameters` + # @return [Google::Apis::NetappV1::DestinationVolumeParameters] + attr_accessor :destination_volume_parameters + + # Output only. Condition of the relationship. Can be one of the following: - + # true: The replication relationship is healthy. It has not missed the most + # recent scheduled transfer. - false: The replication relationship is not + # healthy. It has missed the most recent scheduled transfer. + # Corresponds to the JSON property `healthy` + # @return [Boolean] + attr_accessor :healthy + alias_method :healthy?, :healthy + + # Resource labels to represent user provided metadata. + # Corresponds to the JSON property `labels` + # @return [Hash] + attr_accessor :labels + + # Output only. Indicates the state of mirroring. + # Corresponds to the JSON property `mirrorState` + # @return [String] + attr_accessor :mirror_state + + # Identifier. The resource name of the Replication. Format: `projects/` + # project_id`/locations/`location`/volumes/`volume_id`/replications/` + # replication_id``. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Required. Indicates the schedule for replication. + # Corresponds to the JSON property `replicationSchedule` + # @return [String] + attr_accessor :replication_schedule + + # Output only. Indicates whether this points to source or destination. + # Corresponds to the JSON property `role` + # @return [String] + attr_accessor :role + + # Output only. Full name of source volume resource. Example : "projects/`project` + # /locations/`location`/volumes/`volume_id`" + # Corresponds to the JSON property `sourceVolume` + # @return [String] + attr_accessor :source_volume + + # Output only. State of the replication. + # Corresponds to the JSON property `state` + # @return [String] + attr_accessor :state + + # Output only. State details of the replication. + # Corresponds to the JSON property `stateDetails` + # @return [String] + attr_accessor :state_details + + # TransferStats reports all statistics related to replication transfer. + # Corresponds to the JSON property `transferStats` + # @return [Google::Apis::NetappV1::TransferStats] + attr_accessor :transfer_stats + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @create_time = args[:create_time] if args.key?(:create_time) + @description = args[:description] if args.key?(:description) + @destination_volume = args[:destination_volume] if args.key?(:destination_volume) + @destination_volume_parameters = args[:destination_volume_parameters] if args.key?(:destination_volume_parameters) + @healthy = args[:healthy] if args.key?(:healthy) + @labels = args[:labels] if args.key?(:labels) + @mirror_state = args[:mirror_state] if args.key?(:mirror_state) + @name = args[:name] if args.key?(:name) + @replication_schedule = args[:replication_schedule] if args.key?(:replication_schedule) + @role = args[:role] if args.key?(:role) + @source_volume = args[:source_volume] if args.key?(:source_volume) + @state = args[:state] if args.key?(:state) + @state_details = args[:state_details] if args.key?(:state_details) + @transfer_stats = args[:transfer_stats] if args.key?(:transfer_stats) + end + end + + # + class RequirementOverride + include Google::Apis::Core::Hashable + + # + # Corresponds to the JSON property `ziOverride` + # @return [String] + attr_accessor :zi_override + + # + # Corresponds to the JSON property `zsOverride` + # @return [String] + attr_accessor :zs_override + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @zi_override = args[:zi_override] if args.key?(:zi_override) + @zs_override = args[:zs_override] if args.key?(:zs_override) + end + end + + # The RestoreParameters if volume is created from a snapshot or backup. + class RestoreParameters + include Google::Apis::Core::Hashable + + # Full name of the backup resource. Format: projects/`project`/locations/` + # location`/backupVaults/`backup_vault_id`/backups/`backup_id` + # Corresponds to the JSON property `sourceBackup` + # @return [String] + attr_accessor :source_backup + + # Full name of the snapshot resource. Format: projects/`project`/locations/` + # location`/volumes/`volume`/snapshots/`snapshot` + # Corresponds to the JSON property `sourceSnapshot` + # @return [String] + attr_accessor :source_snapshot + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @source_backup = args[:source_backup] if args.key?(:source_backup) + @source_snapshot = args[:source_snapshot] if args.key?(:source_snapshot) + end + end + + # ResumeReplicationRequest resumes a stopped replication. + class ResumeReplicationRequest + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + + # ReverseReplicationDirectionRequest reverses direction of replication. Source + # becomes destination and destination becomes source. + class ReverseReplicationDirectionRequest + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + + # RevertVolumeRequest reverts the given volume to the specified snapshot. + class RevertVolumeRequest + include Google::Apis::Core::Hashable + + # Required. The snapshot resource ID, in the format 'my-snapshot', where the + # specified ID is the `snapshot_id` of the fully qualified name like projects/` + # project_id`/locations/`location_id`/volumes/`volume_id`/snapshots/`snapshot_id` + # Corresponds to the JSON property `snapshotId` + # @return [String] + attr_accessor :snapshot_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @snapshot_id = args[:snapshot_id] if args.key?(:snapshot_id) + end + end + + # An export policy rule describing various export options. + class SimpleExportPolicyRule + include Google::Apis::Core::Hashable + + # Access type (ReadWrite, ReadOnly, None) + # Corresponds to the JSON property `accessType` + # @return [String] + attr_accessor :access_type + + # Comma separated list of allowed clients IP addresses + # Corresponds to the JSON property `allowedClients` + # @return [String] + attr_accessor :allowed_clients + + # Whether Unix root access will be granted. + # Corresponds to the JSON property `hasRootAccess` + # @return [String] + attr_accessor :has_root_access + + # If enabled (true) the rule defines a read only access for clients matching the + # 'allowedClients' specification. It enables nfs clients to mount using ' + # authentication' kerberos security mode. + # Corresponds to the JSON property `kerberos5ReadOnly` + # @return [Boolean] + attr_accessor :kerberos5_read_only + alias_method :kerberos5_read_only?, :kerberos5_read_only + + # If enabled (true) the rule defines read and write access for clients matching + # the 'allowedClients' specification. It enables nfs clients to mount using ' + # authentication' kerberos security mode. The 'kerberos5ReadOnly' value be + # ignored if this is enabled. + # Corresponds to the JSON property `kerberos5ReadWrite` + # @return [Boolean] + attr_accessor :kerberos5_read_write + alias_method :kerberos5_read_write?, :kerberos5_read_write + + # If enabled (true) the rule defines a read only access for clients matching the + # 'allowedClients' specification. It enables nfs clients to mount using ' + # integrity' kerberos security mode. + # Corresponds to the JSON property `kerberos5iReadOnly` + # @return [Boolean] + attr_accessor :kerberos5i_read_only + alias_method :kerberos5i_read_only?, :kerberos5i_read_only + + # If enabled (true) the rule defines read and write access for clients matching + # the 'allowedClients' specification. It enables nfs clients to mount using ' + # integrity' kerberos security mode. The 'kerberos5iReadOnly' value be ignored + # if this is enabled. + # Corresponds to the JSON property `kerberos5iReadWrite` + # @return [Boolean] + attr_accessor :kerberos5i_read_write + alias_method :kerberos5i_read_write?, :kerberos5i_read_write + + # If enabled (true) the rule defines a read only access for clients matching the + # 'allowedClients' specification. It enables nfs clients to mount using 'privacy' + # kerberos security mode. + # Corresponds to the JSON property `kerberos5pReadOnly` + # @return [Boolean] + attr_accessor :kerberos5p_read_only + alias_method :kerberos5p_read_only?, :kerberos5p_read_only + + # If enabled (true) the rule defines read and write access for clients matching + # the 'allowedClients' specification. It enables nfs clients to mount using ' + # privacy' kerberos security mode. The 'kerberos5pReadOnly' value be ignored if + # this is enabled. + # Corresponds to the JSON property `kerberos5pReadWrite` + # @return [Boolean] + attr_accessor :kerberos5p_read_write + alias_method :kerberos5p_read_write?, :kerberos5p_read_write + + # NFS V3 protocol. + # Corresponds to the JSON property `nfsv3` + # @return [Boolean] + attr_accessor :nfsv3 + alias_method :nfsv3?, :nfsv3 + + # NFS V4 protocol. + # Corresponds to the JSON property `nfsv4` + # @return [Boolean] + attr_accessor :nfsv4 + alias_method :nfsv4?, :nfsv4 + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @access_type = args[:access_type] if args.key?(:access_type) + @allowed_clients = args[:allowed_clients] if args.key?(:allowed_clients) + @has_root_access = args[:has_root_access] if args.key?(:has_root_access) + @kerberos5_read_only = args[:kerberos5_read_only] if args.key?(:kerberos5_read_only) + @kerberos5_read_write = args[:kerberos5_read_write] if args.key?(:kerberos5_read_write) + @kerberos5i_read_only = args[:kerberos5i_read_only] if args.key?(:kerberos5i_read_only) + @kerberos5i_read_write = args[:kerberos5i_read_write] if args.key?(:kerberos5i_read_write) + @kerberos5p_read_only = args[:kerberos5p_read_only] if args.key?(:kerberos5p_read_only) + @kerberos5p_read_write = args[:kerberos5p_read_write] if args.key?(:kerberos5p_read_write) + @nfsv3 = args[:nfsv3] if args.key?(:nfsv3) + @nfsv4 = args[:nfsv4] if args.key?(:nfsv4) + end + end + + # Snapshot is a point-in-time version of a Volume's content. + class Snapshot + include Google::Apis::Core::Hashable + + # Output only. The time when the snapshot was created. + # Corresponds to the JSON property `createTime` + # @return [String] + attr_accessor :create_time + + # A description of the snapshot with 2048 characters or less. Requests with + # longer descriptions will be rejected. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # Resource labels to represent user provided metadata. + # Corresponds to the JSON property `labels` + # @return [Hash] + attr_accessor :labels + + # Identifier. The resource name of the snapshot. Format: `projects/`project_id`/ + # locations/`location`/volumes/`volume_id`/snapshots/`snapshot_id``. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Output only. The snapshot state. + # Corresponds to the JSON property `state` + # @return [String] + attr_accessor :state + + # Output only. State details of the storage pool + # Corresponds to the JSON property `stateDetails` + # @return [String] + attr_accessor :state_details + + # Output only. Current storage usage for the snapshot in bytes. + # Corresponds to the JSON property `usedBytes` + # @return [Float] + attr_accessor :used_bytes + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @create_time = args[:create_time] if args.key?(:create_time) + @description = args[:description] if args.key?(:description) + @labels = args[:labels] if args.key?(:labels) + @name = args[:name] if args.key?(:name) + @state = args[:state] if args.key?(:state) + @state_details = args[:state_details] if args.key?(:state_details) + @used_bytes = args[:used_bytes] if args.key?(:used_bytes) + end + end + + # Snapshot Policy for a volume. + class SnapshotPolicy + include Google::Apis::Core::Hashable + + # Make a snapshot every day e.g. at 04:00, 05:20, 23:50 + # Corresponds to the JSON property `dailySchedule` + # @return [Google::Apis::NetappV1::DailySchedule] + attr_accessor :daily_schedule + + # If enabled, make snapshots automatically according to the schedules. Default + # is false. + # Corresponds to the JSON property `enabled` + # @return [Boolean] + attr_accessor :enabled + alias_method :enabled?, :enabled + + # Make a snapshot every hour e.g. at 04:00, 05:00, 06:00. + # Corresponds to the JSON property `hourlySchedule` + # @return [Google::Apis::NetappV1::HourlySchedule] + attr_accessor :hourly_schedule + + # Make a snapshot once a month e.g. at 2nd 04:00, 7th 05:20, 24th 23:50 + # Corresponds to the JSON property `monthlySchedule` + # @return [Google::Apis::NetappV1::MonthlySchedule] + attr_accessor :monthly_schedule + + # Make a snapshot every week e.g. at Monday 04:00, Wednesday 05:20, Sunday 23:50 + # Corresponds to the JSON property `weeklySchedule` + # @return [Google::Apis::NetappV1::WeeklySchedule] + attr_accessor :weekly_schedule + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @daily_schedule = args[:daily_schedule] if args.key?(:daily_schedule) + @enabled = args[:enabled] if args.key?(:enabled) + @hourly_schedule = args[:hourly_schedule] if args.key?(:hourly_schedule) + @monthly_schedule = args[:monthly_schedule] if args.key?(:monthly_schedule) + @weekly_schedule = args[:weekly_schedule] if args.key?(:weekly_schedule) + end + end + + # + class SpannerLocation + include Google::Apis::Core::Hashable + + # Set of backups used by the resource with name in the same format as what is + # available at http://table/spanner_automon.backup_metadata + # Corresponds to the JSON property `backupName` + # @return [Array] + attr_accessor :backup_name + + # Set of databases used by the resource in format /span// + # Corresponds to the JSON property `dbName` + # @return [Array] + attr_accessor :db_name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @backup_name = args[:backup_name] if args.key?(:backup_name) + @db_name = args[:db_name] if args.key?(:db_name) + end + end + + # The `Status` type defines a logical error model that is suitable for different + # programming environments, including REST APIs and RPC APIs. It is used by [ + # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of + # data: error code, error message, and error details. You can find out more + # about this error model and how to work with it in the [API Design Guide](https: + # //cloud.google.com/apis/design/errors). + class Status + include Google::Apis::Core::Hashable + + # The status code, which should be an enum value of google.rpc.Code. + # Corresponds to the JSON property `code` + # @return [Fixnum] + attr_accessor :code + + # A list of messages that carry the error details. There is a common set of + # message types for APIs to use. + # Corresponds to the JSON property `details` + # @return [Array>] + attr_accessor :details + + # A developer-facing error message, which should be in English. Any user-facing + # error message should be localized and sent in the google.rpc.Status.details + # field, or localized by the client. + # Corresponds to the JSON property `message` + # @return [String] + attr_accessor :message + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @code = args[:code] if args.key?(:code) + @details = args[:details] if args.key?(:details) + @message = args[:message] if args.key?(:message) + end + end + + # StopReplicationRequest stops a replication until resumed. + class StopReplicationRequest + include Google::Apis::Core::Hashable + + # Indicates whether to stop replication forcefully while data transfer is in + # progress. Warning! if force is true, this will abort any current transfers and + # can lead to data loss due to partial transfer. If force is false, stop + # replication will fail while data transfer is in progress and you will need to + # retry later. + # Corresponds to the JSON property `force` + # @return [Boolean] + attr_accessor :force + alias_method :force?, :force + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @force = args[:force] if args.key?(:force) + end + end + + # StoragePool is a container for volumes with a service level and capacity. + # Volumes can be created in a pool of sufficient available capacity. StoragePool + # capacity is what you are billed for. + class StoragePool + include Google::Apis::Core::Hashable + + # Optional. Specifies the Active Directory to be used for creating a SMB volume. + # Corresponds to the JSON property `activeDirectory` + # @return [String] + attr_accessor :active_directory + + # Optional. True if the storage pool supports Auto Tiering enabled volumes. + # Default is false. Auto-tiering can be enabled after storage pool creation but + # it can't be disabled once enabled. + # Corresponds to the JSON property `allowAutoTiering` + # @return [Boolean] + attr_accessor :allow_auto_tiering + alias_method :allow_auto_tiering?, :allow_auto_tiering + + # Required. Capacity in GIB of the pool + # Corresponds to the JSON property `capacityGib` + # @return [Fixnum] + attr_accessor :capacity_gib + + # Output only. Create time of the storage pool + # Corresponds to the JSON property `createTime` + # @return [String] + attr_accessor :create_time + + # Optional. Description of the storage pool + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # Output only. Specifies the current pool encryption key source. + # Corresponds to the JSON property `encryptionType` + # @return [String] + attr_accessor :encryption_type + + # Deprecated. Used to allow SO pool to access AD or DNS server from other + # regions. + # Corresponds to the JSON property `globalAccessAllowed` + # @return [Boolean] + attr_accessor :global_access_allowed + alias_method :global_access_allowed?, :global_access_allowed + + # Optional. Specifies the KMS config to be used for volume encryption. + # Corresponds to the JSON property `kmsConfig` + # @return [String] + attr_accessor :kms_config + + # Optional. Labels as key value pairs + # Corresponds to the JSON property `labels` + # @return [Hash] + attr_accessor :labels + + # Optional. Flag indicating if the pool is NFS LDAP enabled or not. + # Corresponds to the JSON property `ldapEnabled` + # @return [Boolean] + attr_accessor :ldap_enabled + alias_method :ldap_enabled?, :ldap_enabled + + # Identifier. Name of the storage pool + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Required. VPC Network name. Format: projects/`project`/global/networks/` + # network` + # Corresponds to the JSON property `network` + # @return [String] + attr_accessor :network + + # Optional. This field is not implemented. The values provided in this field are + # ignored. + # Corresponds to the JSON property `psaRange` + # @return [String] + attr_accessor :psa_range + + # Optional. Specifies the replica zone for regional storagePool. + # Corresponds to the JSON property `replicaZone` + # @return [String] + attr_accessor :replica_zone + + # Required. Service level of the storage pool + # Corresponds to the JSON property `serviceLevel` + # @return [String] + attr_accessor :service_level + + # Output only. State of the storage pool + # Corresponds to the JSON property `state` + # @return [String] + attr_accessor :state + + # Output only. State details of the storage pool + # Corresponds to the JSON property `stateDetails` + # @return [String] + attr_accessor :state_details + + # Output only. Allocated size of all volumes in GIB in the storage pool + # Corresponds to the JSON property `volumeCapacityGib` + # @return [Fixnum] + attr_accessor :volume_capacity_gib + + # Output only. Volume count of the storage pool + # Corresponds to the JSON property `volumeCount` + # @return [Fixnum] + attr_accessor :volume_count + + # Optional. Specifies the active zone for regional storagePool. + # Corresponds to the JSON property `zone` + # @return [String] + attr_accessor :zone + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @active_directory = args[:active_directory] if args.key?(:active_directory) + @allow_auto_tiering = args[:allow_auto_tiering] if args.key?(:allow_auto_tiering) + @capacity_gib = args[:capacity_gib] if args.key?(:capacity_gib) + @create_time = args[:create_time] if args.key?(:create_time) + @description = args[:description] if args.key?(:description) + @encryption_type = args[:encryption_type] if args.key?(:encryption_type) + @global_access_allowed = args[:global_access_allowed] if args.key?(:global_access_allowed) + @kms_config = args[:kms_config] if args.key?(:kms_config) + @labels = args[:labels] if args.key?(:labels) + @ldap_enabled = args[:ldap_enabled] if args.key?(:ldap_enabled) + @name = args[:name] if args.key?(:name) + @network = args[:network] if args.key?(:network) + @psa_range = args[:psa_range] if args.key?(:psa_range) + @replica_zone = args[:replica_zone] if args.key?(:replica_zone) + @service_level = args[:service_level] if args.key?(:service_level) + @state = args[:state] if args.key?(:state) + @state_details = args[:state_details] if args.key?(:state_details) + @volume_capacity_gib = args[:volume_capacity_gib] if args.key?(:volume_capacity_gib) + @volume_count = args[:volume_count] if args.key?(:volume_count) + @zone = args[:zone] if args.key?(:zone) + end + end + + # SwitchActiveReplicaZoneRequest switch the active/replica zone for a regional + # storagePool. + class SwitchActiveReplicaZoneRequest + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + + # + class TenantProjectProxy + include Google::Apis::Core::Hashable + + # + # Corresponds to the JSON property `projectNumbers` + # @return [Array] + attr_accessor :project_numbers + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @project_numbers = args[:project_numbers] if args.key?(:project_numbers) + end + end + + # Defines tiering policy for the volume. + class TieringPolicy + include Google::Apis::Core::Hashable + + # Optional. Time in days to mark the volume's data block as cold and make it + # eligible for tiering, can be range from 7-183. Default is 31. + # Corresponds to the JSON property `coolingThresholdDays` + # @return [Fixnum] + attr_accessor :cooling_threshold_days + + # Optional. Flag indicating if the volume has tiering policy enable/pause. + # Default is PAUSED. + # Corresponds to the JSON property `tierAction` + # @return [String] + attr_accessor :tier_action + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @cooling_threshold_days = args[:cooling_threshold_days] if args.key?(:cooling_threshold_days) + @tier_action = args[:tier_action] if args.key?(:tier_action) + end + end + + # TransferStats reports all statistics related to replication transfer. + class TransferStats + include Google::Apis::Core::Hashable + + # Lag duration indicates the duration by which Destination region volume content + # lags behind the primary region volume content. + # Corresponds to the JSON property `lagDuration` + # @return [String] + attr_accessor :lag_duration + + # Last transfer size in bytes. + # Corresponds to the JSON property `lastTransferBytes` + # @return [Fixnum] + attr_accessor :last_transfer_bytes + + # Time taken during last transfer. + # Corresponds to the JSON property `lastTransferDuration` + # @return [String] + attr_accessor :last_transfer_duration + + # Time when last transfer completed. + # Corresponds to the JSON property `lastTransferEndTime` + # @return [String] + attr_accessor :last_transfer_end_time + + # A message describing the cause of the last transfer failure. + # Corresponds to the JSON property `lastTransferError` + # @return [String] + attr_accessor :last_transfer_error + + # Cumulative time taken across all transfers for the replication relationship. + # Corresponds to the JSON property `totalTransferDuration` + # @return [String] + attr_accessor :total_transfer_duration + + # Cumulative bytes trasferred so far for the replication relatinonship. + # Corresponds to the JSON property `transferBytes` + # @return [Fixnum] + attr_accessor :transfer_bytes + + # Time when progress was updated last. + # Corresponds to the JSON property `updateTime` + # @return [String] + attr_accessor :update_time + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @lag_duration = args[:lag_duration] if args.key?(:lag_duration) + @last_transfer_bytes = args[:last_transfer_bytes] if args.key?(:last_transfer_bytes) + @last_transfer_duration = args[:last_transfer_duration] if args.key?(:last_transfer_duration) + @last_transfer_end_time = args[:last_transfer_end_time] if args.key?(:last_transfer_end_time) + @last_transfer_error = args[:last_transfer_error] if args.key?(:last_transfer_error) + @total_transfer_duration = args[:total_transfer_duration] if args.key?(:total_transfer_duration) + @transfer_bytes = args[:transfer_bytes] if args.key?(:transfer_bytes) + @update_time = args[:update_time] if args.key?(:update_time) + end + end + + # VerifyKmsConfigRequest specifies the KMS config to be validated. + class VerifyKmsConfigRequest + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + + # VerifyKmsConfigResponse contains the information if the config is correctly + # and error message. + class VerifyKmsConfigResponse + include Google::Apis::Core::Hashable + + # Output only. Error message if config is not healthy. + # Corresponds to the JSON property `healthError` + # @return [String] + attr_accessor :health_error + + # Output only. If the customer key configured correctly to the encrypt volume. + # Corresponds to the JSON property `healthy` + # @return [Boolean] + attr_accessor :healthy + alias_method :healthy?, :healthy + + # Output only. Instructions for the customers to provide the access to the + # encryption key. + # Corresponds to the JSON property `instructions` + # @return [String] + attr_accessor :instructions + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @health_error = args[:health_error] if args.key?(:health_error) + @healthy = args[:healthy] if args.key?(:healthy) + @instructions = args[:instructions] if args.key?(:instructions) + end + end + + # Volume provides a filesystem that you can mount. + class Volume + include Google::Apis::Core::Hashable + + # Output only. Specifies the ActiveDirectory name of a SMB volume. + # Corresponds to the JSON property `activeDirectory` + # @return [String] + attr_accessor :active_directory + + # BackupConfig contains backup related config on a volume. + # Corresponds to the JSON property `backupConfig` + # @return [Google::Apis::NetappV1::BackupConfig] + attr_accessor :backup_config + + # Required. Capacity in GIB of the volume + # Corresponds to the JSON property `capacityGib` + # @return [Fixnum] + attr_accessor :capacity_gib + + # Output only. Size of the volume cold tier data in GiB. + # Corresponds to the JSON property `coldTierSizeGib` + # @return [Fixnum] + attr_accessor :cold_tier_size_gib + + # Output only. Create time of the volume + # Corresponds to the JSON property `createTime` + # @return [String] + attr_accessor :create_time + + # Optional. Description of the volume + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # Output only. Specified the current volume encryption key source. + # Corresponds to the JSON property `encryptionType` + # @return [String] + attr_accessor :encryption_type + + # Defines the export policy for the volume. + # Corresponds to the JSON property `exportPolicy` + # @return [Google::Apis::NetappV1::ExportPolicy] + attr_accessor :export_policy + + # Output only. Indicates whether the volume is part of a replication + # relationship. + # Corresponds to the JSON property `hasReplication` + # @return [Boolean] + attr_accessor :has_replication + alias_method :has_replication?, :has_replication + + # Optional. Flag indicating if the volume is a kerberos volume or not, export + # policy rules control kerberos security modes (krb5, krb5i, krb5p). + # Corresponds to the JSON property `kerberosEnabled` + # @return [Boolean] + attr_accessor :kerberos_enabled + alias_method :kerberos_enabled?, :kerberos_enabled + + # Output only. Specifies the KMS config to be used for volume encryption. + # Corresponds to the JSON property `kmsConfig` + # @return [String] + attr_accessor :kms_config + + # Optional. Labels as key value pairs + # Corresponds to the JSON property `labels` + # @return [Hash] + attr_accessor :labels + + # Optional. Flag indicating if the volume will be a large capacity volume or a + # regular volume. + # Corresponds to the JSON property `largeCapacity` + # @return [Boolean] + attr_accessor :large_capacity + alias_method :large_capacity?, :large_capacity + + # Output only. Flag indicating if the volume is NFS LDAP enabled or not. + # Corresponds to the JSON property `ldapEnabled` + # @return [Boolean] + attr_accessor :ldap_enabled + alias_method :ldap_enabled?, :ldap_enabled + + # Output only. Mount options of this volume + # Corresponds to the JSON property `mountOptions` + # @return [Array] + attr_accessor :mount_options + + # Optional. Flag indicating if the volume will have an IP address per node for + # volumes supporting multiple IP endpoints. Only the volume with large_capacity + # will be allowed to have multiple endpoints. + # Corresponds to the JSON property `multipleEndpoints` + # @return [Boolean] + attr_accessor :multiple_endpoints + alias_method :multiple_endpoints?, :multiple_endpoints + + # Identifier. Name of the volume + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Output only. VPC Network name. Format: projects/`project`/global/networks/` + # network` + # Corresponds to the JSON property `network` + # @return [String] + attr_accessor :network + + # Required. Protocols required for the volume + # Corresponds to the JSON property `protocols` + # @return [Array] + attr_accessor :protocols + + # Output only. This field is not implemented. The values provided in this field + # are ignored. + # Corresponds to the JSON property `psaRange` + # @return [String] + attr_accessor :psa_range + + # Output only. Specifies the replica zone for regional volume. + # Corresponds to the JSON property `replicaZone` + # @return [String] + attr_accessor :replica_zone + + # The RestoreParameters if volume is created from a snapshot or backup. + # Corresponds to the JSON property `restoreParameters` + # @return [Google::Apis::NetappV1::RestoreParameters] + attr_accessor :restore_parameters + + # Optional. List of actions that are restricted on this volume. + # Corresponds to the JSON property `restrictedActions` + # @return [Array] + attr_accessor :restricted_actions + + # Optional. Security Style of the Volume + # Corresponds to the JSON property `securityStyle` + # @return [String] + attr_accessor :security_style + + # Output only. Service level of the volume + # Corresponds to the JSON property `serviceLevel` + # @return [String] + attr_accessor :service_level + + # Required. Share name of the volume + # Corresponds to the JSON property `shareName` + # @return [String] + attr_accessor :share_name + + # Optional. SMB share settings for the volume. + # Corresponds to the JSON property `smbSettings` + # @return [Array] + attr_accessor :smb_settings + + # Optional. Snap_reserve specifies percentage of volume storage reserved for + # snapshot storage. Default is 0 percent. + # Corresponds to the JSON property `snapReserve` + # @return [Float] + attr_accessor :snap_reserve + + # Optional. Snapshot_directory if enabled (true) the volume will contain a read- + # only .snapshot directory which provides access to each of the volume's + # snapshots. + # Corresponds to the JSON property `snapshotDirectory` + # @return [Boolean] + attr_accessor :snapshot_directory + alias_method :snapshot_directory?, :snapshot_directory + + # Snapshot Policy for a volume. + # Corresponds to the JSON property `snapshotPolicy` + # @return [Google::Apis::NetappV1::SnapshotPolicy] + attr_accessor :snapshot_policy + + # Output only. State of the volume + # Corresponds to the JSON property `state` + # @return [String] + attr_accessor :state + + # Output only. State details of the volume + # Corresponds to the JSON property `stateDetails` + # @return [String] + attr_accessor :state_details + + # Required. StoragePool name of the volume + # Corresponds to the JSON property `storagePool` + # @return [String] + attr_accessor :storage_pool + + # Defines tiering policy for the volume. + # Corresponds to the JSON property `tieringPolicy` + # @return [Google::Apis::NetappV1::TieringPolicy] + attr_accessor :tiering_policy + + # Optional. Default unix style permission (e.g. 777) the mount point will be + # created with. Applicable for NFS protocol types only. + # Corresponds to the JSON property `unixPermissions` + # @return [String] + attr_accessor :unix_permissions + + # Output only. Used capacity in GIB of the volume. This is computed periodically + # and it does not represent the realtime usage. + # Corresponds to the JSON property `usedGib` + # @return [Fixnum] + attr_accessor :used_gib + + # Output only. Specifies the active zone for regional volume. + # Corresponds to the JSON property `zone` + # @return [String] + attr_accessor :zone + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @active_directory = args[:active_directory] if args.key?(:active_directory) + @backup_config = args[:backup_config] if args.key?(:backup_config) + @capacity_gib = args[:capacity_gib] if args.key?(:capacity_gib) + @cold_tier_size_gib = args[:cold_tier_size_gib] if args.key?(:cold_tier_size_gib) + @create_time = args[:create_time] if args.key?(:create_time) + @description = args[:description] if args.key?(:description) + @encryption_type = args[:encryption_type] if args.key?(:encryption_type) + @export_policy = args[:export_policy] if args.key?(:export_policy) + @has_replication = args[:has_replication] if args.key?(:has_replication) + @kerberos_enabled = args[:kerberos_enabled] if args.key?(:kerberos_enabled) + @kms_config = args[:kms_config] if args.key?(:kms_config) + @labels = args[:labels] if args.key?(:labels) + @large_capacity = args[:large_capacity] if args.key?(:large_capacity) + @ldap_enabled = args[:ldap_enabled] if args.key?(:ldap_enabled) + @mount_options = args[:mount_options] if args.key?(:mount_options) + @multiple_endpoints = args[:multiple_endpoints] if args.key?(:multiple_endpoints) + @name = args[:name] if args.key?(:name) + @network = args[:network] if args.key?(:network) + @protocols = args[:protocols] if args.key?(:protocols) + @psa_range = args[:psa_range] if args.key?(:psa_range) + @replica_zone = args[:replica_zone] if args.key?(:replica_zone) + @restore_parameters = args[:restore_parameters] if args.key?(:restore_parameters) + @restricted_actions = args[:restricted_actions] if args.key?(:restricted_actions) + @security_style = args[:security_style] if args.key?(:security_style) + @service_level = args[:service_level] if args.key?(:service_level) + @share_name = args[:share_name] if args.key?(:share_name) + @smb_settings = args[:smb_settings] if args.key?(:smb_settings) + @snap_reserve = args[:snap_reserve] if args.key?(:snap_reserve) + @snapshot_directory = args[:snapshot_directory] if args.key?(:snapshot_directory) + @snapshot_policy = args[:snapshot_policy] if args.key?(:snapshot_policy) + @state = args[:state] if args.key?(:state) + @state_details = args[:state_details] if args.key?(:state_details) + @storage_pool = args[:storage_pool] if args.key?(:storage_pool) + @tiering_policy = args[:tiering_policy] if args.key?(:tiering_policy) + @unix_permissions = args[:unix_permissions] if args.key?(:unix_permissions) + @used_gib = args[:used_gib] if args.key?(:used_gib) + @zone = args[:zone] if args.key?(:zone) + end + end + + # Make a snapshot every week e.g. at Monday 04:00, Wednesday 05:20, Sunday 23:50 + class WeeklySchedule + include Google::Apis::Core::Hashable + + # Set the day or days of the week to make a snapshot. Accepts a comma separated + # days of the week. Defaults to 'Sunday'. + # Corresponds to the JSON property `day` + # @return [String] + attr_accessor :day + + # Set the hour to start the snapshot (0-23), defaults to midnight (0). + # Corresponds to the JSON property `hour` + # @return [Float] + attr_accessor :hour + + # Set the minute of the hour to start the snapshot (0-59), defaults to the top + # of the hour (0). + # Corresponds to the JSON property `minute` + # @return [Float] + attr_accessor :minute + + # The maximum number of Snapshots to keep for the hourly schedule + # Corresponds to the JSON property `snapshotsToKeep` + # @return [Float] + attr_accessor :snapshots_to_keep + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @day = args[:day] if args.key?(:day) + @hour = args[:hour] if args.key?(:hour) + @minute = args[:minute] if args.key?(:minute) + @snapshots_to_keep = args[:snapshots_to_keep] if args.key?(:snapshots_to_keep) + end + end + + # + class ZoneConfiguration + include Google::Apis::Core::Hashable + + # + # Corresponds to the JSON property `zone` + # @return [String] + attr_accessor :zone + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @zone = args[:zone] if args.key?(:zone) + end + end + end + end +end diff --git a/generated/google-apis-netapp_v1/lib/google/apis/netapp_v1/gem_version.rb b/generated/google-apis-netapp_v1/lib/google/apis/netapp_v1/gem_version.rb new file mode 100644 index 00000000000..cbe8a935fd5 --- /dev/null +++ b/generated/google-apis-netapp_v1/lib/google/apis/netapp_v1/gem_version.rb @@ -0,0 +1,28 @@ +# Copyright 2020 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 +# +# http://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. + +module Google + module Apis + module NetappV1 + # Version of the google-apis-netapp_v1 gem + GEM_VERSION = "0.1.0" + + # Version of the code generator used to generate this client + GENERATOR_VERSION = "0.15.1" + + # Revision of the discovery document this client was generated from + REVISION = "20241002" + end + end +end diff --git a/generated/google-apis-netapp_v1/lib/google/apis/netapp_v1/representations.rb b/generated/google-apis-netapp_v1/lib/google/apis/netapp_v1/representations.rb new file mode 100644 index 00000000000..71de76a50bc --- /dev/null +++ b/generated/google-apis-netapp_v1/lib/google/apis/netapp_v1/representations.rb @@ -0,0 +1,1103 @@ +# Copyright 2020 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 +# +# http://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. + +require 'date' +require 'google/apis/core/base_service' +require 'google/apis/core/json_representation' +require 'google/apis/core/hashable' +require 'google/apis/errors' + +module Google + module Apis + module NetappV1 + + class ActiveDirectory + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AssetLocation + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Backup + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class BackupConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class BackupPolicy + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class BackupVault + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class BlobstoreLocation + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class CancelOperationRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class CloudAsset + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class CloudAssetComposition + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class DailySchedule + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class DestinationVolumeParameters + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class DirectLocationAssignment + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class EncryptVolumesRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ExportPolicy + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ExtraParameter + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleProtobufEmpty + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class HourlySchedule + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class IsolationExpectations + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class KmsConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ListActiveDirectoriesResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ListBackupPoliciesResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ListBackupVaultsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ListBackupsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ListKmsConfigsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ListLocationsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ListOperationsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ListReplicationsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ListSnapshotsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ListStoragePoolsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ListVolumesResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Location + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class LocationAssignment + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class LocationData + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class LocationMetadata + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class MonthlySchedule + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class MountOption + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Operation + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class OperationMetadata + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class PlacerLocation + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class RegionalMigDistributionPolicy + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Replication + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class RequirementOverride + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class RestoreParameters + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ResumeReplicationRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ReverseReplicationDirectionRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class RevertVolumeRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class SimpleExportPolicyRule + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Snapshot + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class SnapshotPolicy + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class SpannerLocation + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Status + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class StopReplicationRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class StoragePool + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class SwitchActiveReplicaZoneRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class TenantProjectProxy + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class TieringPolicy + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class TransferStats + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class VerifyKmsConfigRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class VerifyKmsConfigResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Volume + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class WeeklySchedule + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ZoneConfiguration + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ActiveDirectory + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :administrators, as: 'administrators' + property :aes_encryption, as: 'aesEncryption' + collection :backup_operators, as: 'backupOperators' + property :create_time, as: 'createTime' + property :description, as: 'description' + property :dns, as: 'dns' + property :domain, as: 'domain' + property :encrypt_dc_connections, as: 'encryptDcConnections' + property :kdc_hostname, as: 'kdcHostname' + property :kdc_ip, as: 'kdcIp' + hash :labels, as: 'labels' + property :ldap_signing, as: 'ldapSigning' + property :name, as: 'name' + property :net_bios_prefix, as: 'netBiosPrefix' + property :nfs_users_with_ldap, as: 'nfsUsersWithLdap' + property :organizational_unit, as: 'organizationalUnit' + property :password, as: 'password' + collection :security_operators, as: 'securityOperators' + property :site, as: 'site' + property :state, as: 'state' + property :state_details, as: 'stateDetails' + property :username, as: 'username' + end + end + + class AssetLocation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :ccfe_rms_path, as: 'ccfeRmsPath' + property :expected, as: 'expected', class: Google::Apis::NetappV1::IsolationExpectations, decorator: Google::Apis::NetappV1::IsolationExpectations::Representation + + collection :extra_parameters, as: 'extraParameters', class: Google::Apis::NetappV1::ExtraParameter, decorator: Google::Apis::NetappV1::ExtraParameter::Representation + + collection :location_data, as: 'locationData', class: Google::Apis::NetappV1::LocationData, decorator: Google::Apis::NetappV1::LocationData::Representation + + collection :parent_asset, as: 'parentAsset', class: Google::Apis::NetappV1::CloudAsset, decorator: Google::Apis::NetappV1::CloudAsset::Representation + + end + end + + class Backup + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :backup_type, as: 'backupType' + property :chain_storage_bytes, :numeric_string => true, as: 'chainStorageBytes' + property :create_time, as: 'createTime' + property :description, as: 'description' + hash :labels, as: 'labels' + property :name, as: 'name' + property :source_snapshot, as: 'sourceSnapshot' + property :source_volume, as: 'sourceVolume' + property :state, as: 'state' + property :volume_usage_bytes, :numeric_string => true, as: 'volumeUsageBytes' + end + end + + class BackupConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :backup_chain_bytes, :numeric_string => true, as: 'backupChainBytes' + collection :backup_policies, as: 'backupPolicies' + property :backup_vault, as: 'backupVault' + property :scheduled_backup_enabled, as: 'scheduledBackupEnabled' + end + end + + class BackupPolicy + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :assigned_volume_count, as: 'assignedVolumeCount' + property :create_time, as: 'createTime' + property :daily_backup_limit, as: 'dailyBackupLimit' + property :description, as: 'description' + property :enabled, as: 'enabled' + hash :labels, as: 'labels' + property :monthly_backup_limit, as: 'monthlyBackupLimit' + property :name, as: 'name' + property :state, as: 'state' + property :weekly_backup_limit, as: 'weeklyBackupLimit' + end + end + + class BackupVault + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :create_time, as: 'createTime' + property :description, as: 'description' + hash :labels, as: 'labels' + property :name, as: 'name' + property :state, as: 'state' + end + end + + class BlobstoreLocation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :policy_id, as: 'policyId' + end + end + + class CancelOperationRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + + class CloudAsset + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :asset_name, as: 'assetName' + property :asset_type, as: 'assetType' + end + end + + class CloudAssetComposition + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :child_asset, as: 'childAsset', class: Google::Apis::NetappV1::CloudAsset, decorator: Google::Apis::NetappV1::CloudAsset::Representation + + end + end + + class DailySchedule + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :hour, as: 'hour' + property :minute, as: 'minute' + property :snapshots_to_keep, as: 'snapshotsToKeep' + end + end + + class DestinationVolumeParameters + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :description, as: 'description' + property :share_name, as: 'shareName' + property :storage_pool, as: 'storagePool' + property :volume_id, as: 'volumeId' + end + end + + class DirectLocationAssignment + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :location, as: 'location', class: Google::Apis::NetappV1::LocationAssignment, decorator: Google::Apis::NetappV1::LocationAssignment::Representation + + end + end + + class EncryptVolumesRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + + class ExportPolicy + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :rules, as: 'rules', class: Google::Apis::NetappV1::SimpleExportPolicyRule, decorator: Google::Apis::NetappV1::SimpleExportPolicyRule::Representation + + end + end + + class ExtraParameter + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :regional_mig_distribution_policy, as: 'regionalMigDistributionPolicy', class: Google::Apis::NetappV1::RegionalMigDistributionPolicy, decorator: Google::Apis::NetappV1::RegionalMigDistributionPolicy::Representation + + end + end + + class GoogleProtobufEmpty + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + + class HourlySchedule + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :minute, as: 'minute' + property :snapshots_to_keep, as: 'snapshotsToKeep' + end + end + + class IsolationExpectations + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :requirement_override, as: 'requirementOverride', class: Google::Apis::NetappV1::RequirementOverride, decorator: Google::Apis::NetappV1::RequirementOverride::Representation + + property :zi_org_policy, as: 'ziOrgPolicy' + property :zi_region_policy, as: 'ziRegionPolicy' + property :zi_region_state, as: 'ziRegionState' + property :zone_isolation, as: 'zoneIsolation' + property :zone_separation, as: 'zoneSeparation' + property :zs_org_policy, as: 'zsOrgPolicy' + property :zs_region_state, as: 'zsRegionState' + end + end + + class KmsConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :create_time, as: 'createTime' + property :crypto_key_name, as: 'cryptoKeyName' + property :description, as: 'description' + property :instructions, as: 'instructions' + hash :labels, as: 'labels' + property :name, as: 'name' + property :service_account, as: 'serviceAccount' + property :state, as: 'state' + property :state_details, as: 'stateDetails' + end + end + + class ListActiveDirectoriesResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :active_directories, as: 'activeDirectories', class: Google::Apis::NetappV1::ActiveDirectory, decorator: Google::Apis::NetappV1::ActiveDirectory::Representation + + property :next_page_token, as: 'nextPageToken' + collection :unreachable, as: 'unreachable' + end + end + + class ListBackupPoliciesResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :backup_policies, as: 'backupPolicies', class: Google::Apis::NetappV1::BackupPolicy, decorator: Google::Apis::NetappV1::BackupPolicy::Representation + + property :next_page_token, as: 'nextPageToken' + collection :unreachable, as: 'unreachable' + end + end + + class ListBackupVaultsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :backup_vaults, as: 'backupVaults', class: Google::Apis::NetappV1::BackupVault, decorator: Google::Apis::NetappV1::BackupVault::Representation + + property :next_page_token, as: 'nextPageToken' + collection :unreachable, as: 'unreachable' + end + end + + class ListBackupsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :backups, as: 'backups', class: Google::Apis::NetappV1::Backup, decorator: Google::Apis::NetappV1::Backup::Representation + + property :next_page_token, as: 'nextPageToken' + collection :unreachable, as: 'unreachable' + end + end + + class ListKmsConfigsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :kms_configs, as: 'kmsConfigs', class: Google::Apis::NetappV1::KmsConfig, decorator: Google::Apis::NetappV1::KmsConfig::Representation + + property :next_page_token, as: 'nextPageToken' + collection :unreachable, as: 'unreachable' + end + end + + class ListLocationsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :locations, as: 'locations', class: Google::Apis::NetappV1::Location, decorator: Google::Apis::NetappV1::Location::Representation + + property :next_page_token, as: 'nextPageToken' + end + end + + class ListOperationsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :next_page_token, as: 'nextPageToken' + collection :operations, as: 'operations', class: Google::Apis::NetappV1::Operation, decorator: Google::Apis::NetappV1::Operation::Representation + + end + end + + class ListReplicationsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :next_page_token, as: 'nextPageToken' + collection :replications, as: 'replications', class: Google::Apis::NetappV1::Replication, decorator: Google::Apis::NetappV1::Replication::Representation + + collection :unreachable, as: 'unreachable' + end + end + + class ListSnapshotsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :next_page_token, as: 'nextPageToken' + collection :snapshots, as: 'snapshots', class: Google::Apis::NetappV1::Snapshot, decorator: Google::Apis::NetappV1::Snapshot::Representation + + collection :unreachable, as: 'unreachable' + end + end + + class ListStoragePoolsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :next_page_token, as: 'nextPageToken' + collection :storage_pools, as: 'storagePools', class: Google::Apis::NetappV1::StoragePool, decorator: Google::Apis::NetappV1::StoragePool::Representation + + collection :unreachable, as: 'unreachable' + end + end + + class ListVolumesResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :next_page_token, as: 'nextPageToken' + collection :unreachable, as: 'unreachable' + collection :volumes, as: 'volumes', class: Google::Apis::NetappV1::Volume, decorator: Google::Apis::NetappV1::Volume::Representation + + end + end + + class Location + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :display_name, as: 'displayName' + hash :labels, as: 'labels' + property :location_id, as: 'locationId' + hash :metadata, as: 'metadata' + property :name, as: 'name' + end + end + + class LocationAssignment + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :location, as: 'location' + property :location_type, as: 'locationType' + end + end + + class LocationData + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :blobstore_location, as: 'blobstoreLocation', class: Google::Apis::NetappV1::BlobstoreLocation, decorator: Google::Apis::NetappV1::BlobstoreLocation::Representation + + property :child_asset_location, as: 'childAssetLocation', class: Google::Apis::NetappV1::CloudAssetComposition, decorator: Google::Apis::NetappV1::CloudAssetComposition::Representation + + property :direct_location, as: 'directLocation', class: Google::Apis::NetappV1::DirectLocationAssignment, decorator: Google::Apis::NetappV1::DirectLocationAssignment::Representation + + property :gcp_project_proxy, as: 'gcpProjectProxy', class: Google::Apis::NetappV1::TenantProjectProxy, decorator: Google::Apis::NetappV1::TenantProjectProxy::Representation + + property :placer_location, as: 'placerLocation', class: Google::Apis::NetappV1::PlacerLocation, decorator: Google::Apis::NetappV1::PlacerLocation::Representation + + property :spanner_location, as: 'spannerLocation', class: Google::Apis::NetappV1::SpannerLocation, decorator: Google::Apis::NetappV1::SpannerLocation::Representation + + end + end + + class LocationMetadata + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :supported_service_levels, as: 'supportedServiceLevels' + end + end + + class MonthlySchedule + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :days_of_month, as: 'daysOfMonth' + property :hour, as: 'hour' + property :minute, as: 'minute' + property :snapshots_to_keep, as: 'snapshotsToKeep' + end + end + + class MountOption + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :export, as: 'export' + property :export_full, as: 'exportFull' + property :instructions, as: 'instructions' + property :protocol, as: 'protocol' + end + end + + class Operation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :done, as: 'done' + property :error, as: 'error', class: Google::Apis::NetappV1::Status, decorator: Google::Apis::NetappV1::Status::Representation + + hash :metadata, as: 'metadata' + property :name, as: 'name' + hash :response, as: 'response' + end + end + + class OperationMetadata + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :api_version, as: 'apiVersion' + property :create_time, as: 'createTime' + property :end_time, as: 'endTime' + property :requested_cancellation, as: 'requestedCancellation' + property :status_message, as: 'statusMessage' + property :target, as: 'target' + property :verb, as: 'verb' + end + end + + class PlacerLocation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :placer_config, as: 'placerConfig' + end + end + + class RegionalMigDistributionPolicy + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :target_shape, as: 'targetShape' + collection :zones, as: 'zones', class: Google::Apis::NetappV1::ZoneConfiguration, decorator: Google::Apis::NetappV1::ZoneConfiguration::Representation + + end + end + + class Replication + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :create_time, as: 'createTime' + property :description, as: 'description' + property :destination_volume, as: 'destinationVolume' + property :destination_volume_parameters, as: 'destinationVolumeParameters', class: Google::Apis::NetappV1::DestinationVolumeParameters, decorator: Google::Apis::NetappV1::DestinationVolumeParameters::Representation + + property :healthy, as: 'healthy' + hash :labels, as: 'labels' + property :mirror_state, as: 'mirrorState' + property :name, as: 'name' + property :replication_schedule, as: 'replicationSchedule' + property :role, as: 'role' + property :source_volume, as: 'sourceVolume' + property :state, as: 'state' + property :state_details, as: 'stateDetails' + property :transfer_stats, as: 'transferStats', class: Google::Apis::NetappV1::TransferStats, decorator: Google::Apis::NetappV1::TransferStats::Representation + + end + end + + class RequirementOverride + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :zi_override, as: 'ziOverride' + property :zs_override, as: 'zsOverride' + end + end + + class RestoreParameters + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :source_backup, as: 'sourceBackup' + property :source_snapshot, as: 'sourceSnapshot' + end + end + + class ResumeReplicationRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + + class ReverseReplicationDirectionRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + + class RevertVolumeRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :snapshot_id, as: 'snapshotId' + end + end + + class SimpleExportPolicyRule + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :access_type, as: 'accessType' + property :allowed_clients, as: 'allowedClients' + property :has_root_access, as: 'hasRootAccess' + property :kerberos5_read_only, as: 'kerberos5ReadOnly' + property :kerberos5_read_write, as: 'kerberos5ReadWrite' + property :kerberos5i_read_only, as: 'kerberos5iReadOnly' + property :kerberos5i_read_write, as: 'kerberos5iReadWrite' + property :kerberos5p_read_only, as: 'kerberos5pReadOnly' + property :kerberos5p_read_write, as: 'kerberos5pReadWrite' + property :nfsv3, as: 'nfsv3' + property :nfsv4, as: 'nfsv4' + end + end + + class Snapshot + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :create_time, as: 'createTime' + property :description, as: 'description' + hash :labels, as: 'labels' + property :name, as: 'name' + property :state, as: 'state' + property :state_details, as: 'stateDetails' + property :used_bytes, as: 'usedBytes' + end + end + + class SnapshotPolicy + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :daily_schedule, as: 'dailySchedule', class: Google::Apis::NetappV1::DailySchedule, decorator: Google::Apis::NetappV1::DailySchedule::Representation + + property :enabled, as: 'enabled' + property :hourly_schedule, as: 'hourlySchedule', class: Google::Apis::NetappV1::HourlySchedule, decorator: Google::Apis::NetappV1::HourlySchedule::Representation + + property :monthly_schedule, as: 'monthlySchedule', class: Google::Apis::NetappV1::MonthlySchedule, decorator: Google::Apis::NetappV1::MonthlySchedule::Representation + + property :weekly_schedule, as: 'weeklySchedule', class: Google::Apis::NetappV1::WeeklySchedule, decorator: Google::Apis::NetappV1::WeeklySchedule::Representation + + end + end + + class SpannerLocation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :backup_name, as: 'backupName' + collection :db_name, as: 'dbName' + end + end + + class Status + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :code, as: 'code' + collection :details, as: 'details' + property :message, as: 'message' + end + end + + class StopReplicationRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :force, as: 'force' + end + end + + class StoragePool + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :active_directory, as: 'activeDirectory' + property :allow_auto_tiering, as: 'allowAutoTiering' + property :capacity_gib, :numeric_string => true, as: 'capacityGib' + property :create_time, as: 'createTime' + property :description, as: 'description' + property :encryption_type, as: 'encryptionType' + property :global_access_allowed, as: 'globalAccessAllowed' + property :kms_config, as: 'kmsConfig' + hash :labels, as: 'labels' + property :ldap_enabled, as: 'ldapEnabled' + property :name, as: 'name' + property :network, as: 'network' + property :psa_range, as: 'psaRange' + property :replica_zone, as: 'replicaZone' + property :service_level, as: 'serviceLevel' + property :state, as: 'state' + property :state_details, as: 'stateDetails' + property :volume_capacity_gib, :numeric_string => true, as: 'volumeCapacityGib' + property :volume_count, as: 'volumeCount' + property :zone, as: 'zone' + end + end + + class SwitchActiveReplicaZoneRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + + class TenantProjectProxy + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :project_numbers, as: 'projectNumbers' + end + end + + class TieringPolicy + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :cooling_threshold_days, as: 'coolingThresholdDays' + property :tier_action, as: 'tierAction' + end + end + + class TransferStats + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :lag_duration, as: 'lagDuration' + property :last_transfer_bytes, :numeric_string => true, as: 'lastTransferBytes' + property :last_transfer_duration, as: 'lastTransferDuration' + property :last_transfer_end_time, as: 'lastTransferEndTime' + property :last_transfer_error, as: 'lastTransferError' + property :total_transfer_duration, as: 'totalTransferDuration' + property :transfer_bytes, :numeric_string => true, as: 'transferBytes' + property :update_time, as: 'updateTime' + end + end + + class VerifyKmsConfigRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + + class VerifyKmsConfigResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :health_error, as: 'healthError' + property :healthy, as: 'healthy' + property :instructions, as: 'instructions' + end + end + + class Volume + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :active_directory, as: 'activeDirectory' + property :backup_config, as: 'backupConfig', class: Google::Apis::NetappV1::BackupConfig, decorator: Google::Apis::NetappV1::BackupConfig::Representation + + property :capacity_gib, :numeric_string => true, as: 'capacityGib' + property :cold_tier_size_gib, :numeric_string => true, as: 'coldTierSizeGib' + property :create_time, as: 'createTime' + property :description, as: 'description' + property :encryption_type, as: 'encryptionType' + property :export_policy, as: 'exportPolicy', class: Google::Apis::NetappV1::ExportPolicy, decorator: Google::Apis::NetappV1::ExportPolicy::Representation + + property :has_replication, as: 'hasReplication' + property :kerberos_enabled, as: 'kerberosEnabled' + property :kms_config, as: 'kmsConfig' + hash :labels, as: 'labels' + property :large_capacity, as: 'largeCapacity' + property :ldap_enabled, as: 'ldapEnabled' + collection :mount_options, as: 'mountOptions', class: Google::Apis::NetappV1::MountOption, decorator: Google::Apis::NetappV1::MountOption::Representation + + property :multiple_endpoints, as: 'multipleEndpoints' + property :name, as: 'name' + property :network, as: 'network' + collection :protocols, as: 'protocols' + property :psa_range, as: 'psaRange' + property :replica_zone, as: 'replicaZone' + property :restore_parameters, as: 'restoreParameters', class: Google::Apis::NetappV1::RestoreParameters, decorator: Google::Apis::NetappV1::RestoreParameters::Representation + + collection :restricted_actions, as: 'restrictedActions' + property :security_style, as: 'securityStyle' + property :service_level, as: 'serviceLevel' + property :share_name, as: 'shareName' + collection :smb_settings, as: 'smbSettings' + property :snap_reserve, as: 'snapReserve' + property :snapshot_directory, as: 'snapshotDirectory' + property :snapshot_policy, as: 'snapshotPolicy', class: Google::Apis::NetappV1::SnapshotPolicy, decorator: Google::Apis::NetappV1::SnapshotPolicy::Representation + + property :state, as: 'state' + property :state_details, as: 'stateDetails' + property :storage_pool, as: 'storagePool' + property :tiering_policy, as: 'tieringPolicy', class: Google::Apis::NetappV1::TieringPolicy, decorator: Google::Apis::NetappV1::TieringPolicy::Representation + + property :unix_permissions, as: 'unixPermissions' + property :used_gib, :numeric_string => true, as: 'usedGib' + property :zone, as: 'zone' + end + end + + class WeeklySchedule + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :day, as: 'day' + property :hour, as: 'hour' + property :minute, as: 'minute' + property :snapshots_to_keep, as: 'snapshotsToKeep' + end + end + + class ZoneConfiguration + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :zone, as: 'zone' + end + end + end + end +end diff --git a/generated/google-apis-netapp_v1/lib/google/apis/netapp_v1/service.rb b/generated/google-apis-netapp_v1/lib/google/apis/netapp_v1/service.rb new file mode 100644 index 00000000000..8dea6e229b7 --- /dev/null +++ b/generated/google-apis-netapp_v1/lib/google/apis/netapp_v1/service.rb @@ -0,0 +1,2192 @@ +# Copyright 2020 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 +# +# http://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. + +require 'google/apis/core/base_service' +require 'google/apis/core/json_representation' +require 'google/apis/core/hashable' +require 'google/apis/errors' + +module Google + module Apis + module NetappV1 + # NetApp API + # + # Google Cloud NetApp Volumes is a fully-managed, cloud-based data storage + # service that provides advanced data management capabilities and highly + # scalable performance with global availability. + # + # @example + # require 'google/apis/netapp_v1' + # + # Netapp = Google::Apis::NetappV1 # Alias the module + # service = Netapp::NetAppFilesService.new + # + # @see https://cloud.google.com/netapp/ + class NetAppFilesService < Google::Apis::Core::BaseService + DEFAULT_ENDPOINT_TEMPLATE = "https://netapp.$UNIVERSE_DOMAIN$/" + + # @return [String] + # API key. Your API key identifies your project and provides you with API access, + # quota, and reports. Required unless you provide an OAuth 2.0 token. + attr_accessor :key + + # @return [String] + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + attr_accessor :quota_user + + def initialize + super(DEFAULT_ENDPOINT_TEMPLATE, '', + client_name: 'google-apis-netapp_v1', + client_version: Google::Apis::NetappV1::GEM_VERSION) + @batch_path = 'batch' + end + + # Gets information about a location. + # @param [String] name + # Resource name for the location. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::NetappV1::Location] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::NetappV1::Location] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_project_location(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+name}', options) + command.response_representation = Google::Apis::NetappV1::Location::Representation + command.response_class = Google::Apis::NetappV1::Location + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Lists information about the supported locations for this service. + # @param [String] name + # The resource that owns the locations collection, if applicable. + # @param [String] filter + # A filter to narrow down results to a preferred subset. The filtering language + # accepts strings like `"displayName=tokyo"`, and is documented in more detail + # in [AIP-160](https://google.aip.dev/160). + # @param [Fixnum] page_size + # The maximum number of results to return. If not set, the service selects a + # default. + # @param [String] page_token + # A page token received from the `next_page_token` field in the response. Send + # that page token to receive the subsequent page. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::NetappV1::ListLocationsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::NetappV1::ListLocationsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_project_locations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+name}/locations', options) + command.response_representation = Google::Apis::NetappV1::ListLocationsResponse::Representation + command.response_class = Google::Apis::NetappV1::ListLocationsResponse + command.params['name'] = name unless name.nil? + command.query['filter'] = filter unless filter.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # CreateActiveDirectory Creates the active directory specified in the request. + # @param [String] parent + # Required. Value for parent. + # @param [Google::Apis::NetappV1::ActiveDirectory] active_directory_object + # @param [String] active_directory_id + # Required. ID of the active directory to create. Must be unique within the + # 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 [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::NetappV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::NetappV1::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def create_project_location_active_directory(parent, active_directory_object = nil, active_directory_id: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+parent}/activeDirectories', options) + command.request_representation = Google::Apis::NetappV1::ActiveDirectory::Representation + command.request_object = active_directory_object + command.response_representation = Google::Apis::NetappV1::Operation::Representation + command.response_class = Google::Apis::NetappV1::Operation + command.params['parent'] = parent unless parent.nil? + command.query['activeDirectoryId'] = active_directory_id unless active_directory_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Delete the active directory specified in the request. + # @param [String] name + # Required. Name of the active directory. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::NetappV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::NetappV1::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_project_location_active_directory(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1/{+name}', options) + command.response_representation = Google::Apis::NetappV1::Operation::Representation + command.response_class = Google::Apis::NetappV1::Operation + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Describes a specified active directory. + # @param [String] name + # Required. Name of the active directory. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::NetappV1::ActiveDirectory] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::NetappV1::ActiveDirectory] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_project_location_active_directory(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+name}', options) + command.response_representation = Google::Apis::NetappV1::ActiveDirectory::Representation + command.response_class = Google::Apis::NetappV1::ActiveDirectory + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Lists active directories. + # @param [String] parent + # Required. Parent value for ListActiveDirectoriesRequest + # @param [String] filter + # Filtering results + # @param [String] order_by + # Hint for how to order the results + # @param [Fixnum] page_size + # Requested page size. Server may return fewer items than requested. If + # unspecified, the server will pick an appropriate default. + # @param [String] page_token + # A token identifying a page of results the server should return. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::NetappV1::ListActiveDirectoriesResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::NetappV1::ListActiveDirectoriesResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_project_location_active_directories(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+parent}/activeDirectories', options) + command.response_representation = Google::Apis::NetappV1::ListActiveDirectoriesResponse::Representation + command.response_class = Google::Apis::NetappV1::ListActiveDirectoriesResponse + command.params['parent'] = parent unless parent.nil? + command.query['filter'] = filter unless filter.nil? + command.query['orderBy'] = order_by unless order_by.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Update the parameters of an active directories. + # @param [String] name + # Identifier. The resource name of the active directory. Format: `projects/` + # project_number`/locations/`location_id`/activeDirectories/`active_directory_id` + # `. + # @param [Google::Apis::NetappV1::ActiveDirectory] active_directory_object + # @param [String] update_mask + # Required. Field mask is used to specify the fields to be overwritten in the + # Active Directory resource by the update. The fields specified in the + # update_mask are relative to the resource, not the full request. A field will + # be overwritten if it is in the mask. If the user does not provide a mask then + # all fields will be overwritten. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::NetappV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::NetappV1::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def patch_project_location_active_directory(name, active_directory_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v1/{+name}', options) + command.request_representation = Google::Apis::NetappV1::ActiveDirectory::Representation + command.request_object = active_directory_object + command.response_representation = Google::Apis::NetappV1::Operation::Representation + command.response_class = Google::Apis::NetappV1::Operation + command.params['name'] = name unless name.nil? + command.query['updateMask'] = update_mask unless update_mask.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Creates new backup policy + # @param [String] parent + # Required. The location to create the backup policies of, in the format ` + # projects/`project_id`/locations/`location`` + # @param [Google::Apis::NetappV1::BackupPolicy] backup_policy_object + # @param [String] backup_policy_id + # Required. The ID to use for the backup policy. The ID must be unique within + # the specified location. 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 [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::NetappV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::NetappV1::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def create_project_location_backup_policy(parent, backup_policy_object = nil, backup_policy_id: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+parent}/backupPolicies', options) + command.request_representation = Google::Apis::NetappV1::BackupPolicy::Representation + command.request_object = backup_policy_object + command.response_representation = Google::Apis::NetappV1::Operation::Representation + command.response_class = Google::Apis::NetappV1::Operation + command.params['parent'] = parent unless parent.nil? + command.query['backupPolicyId'] = backup_policy_id unless backup_policy_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Warning! This operation will permanently delete the backup policy. + # @param [String] name + # Required. The backup policy resource name, in the format `projects/`project_id` + # /locations/`location`/backupPolicies/`backup_policy_id`` + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::NetappV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::NetappV1::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_project_location_backup_policy(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1/{+name}', options) + command.response_representation = Google::Apis::NetappV1::Operation::Representation + command.response_class = Google::Apis::NetappV1::Operation + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Returns the description of the specified backup policy by backup_policy_id. + # @param [String] name + # Required. The backupPolicy resource name, in the format `projects/`project_id`/ + # locations/`location`/backupPolicies/`backup_policy_id`` + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::NetappV1::BackupPolicy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::NetappV1::BackupPolicy] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_project_location_backup_policy(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+name}', options) + command.response_representation = Google::Apis::NetappV1::BackupPolicy::Representation + command.response_class = Google::Apis::NetappV1::BackupPolicy + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Returns list of all available backup policies. + # @param [String] parent + # Required. Parent value for ListBackupPoliciesRequest + # @param [String] filter + # Filtering results + # @param [String] order_by + # Hint for how to order the results + # @param [Fixnum] page_size + # Requested page size. Server may return fewer items than requested. If + # unspecified, the server will pick an appropriate default. + # @param [String] page_token + # A token identifying a page of results the server should return. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::NetappV1::ListBackupPoliciesResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::NetappV1::ListBackupPoliciesResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_project_location_backup_policies(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+parent}/backupPolicies', options) + command.response_representation = Google::Apis::NetappV1::ListBackupPoliciesResponse::Representation + command.response_class = Google::Apis::NetappV1::ListBackupPoliciesResponse + command.params['parent'] = parent unless parent.nil? + command.query['filter'] = filter unless filter.nil? + command.query['orderBy'] = order_by unless order_by.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Updates settings of a specific backup policy. + # @param [String] name + # Identifier. The resource name of the backup policy. Format: `projects/` + # project_id`/locations/`location`/backupPolicies/`backup_policy_id``. + # @param [Google::Apis::NetappV1::BackupPolicy] backup_policy_object + # @param [String] update_mask + # Required. Field mask is used to specify the fields to be overwritten in the + # Backup Policy resource by the update. The fields specified in the update_mask + # are relative to the resource, not the full request. A field will be + # overwritten if it is in the mask. If the user does not provide a mask then all + # fields will be overwritten. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::NetappV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::NetappV1::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def patch_project_location_backup_policy(name, backup_policy_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v1/{+name}', options) + command.request_representation = Google::Apis::NetappV1::BackupPolicy::Representation + command.request_object = backup_policy_object + command.response_representation = Google::Apis::NetappV1::Operation::Representation + command.response_class = Google::Apis::NetappV1::Operation + command.params['name'] = name unless name.nil? + command.query['updateMask'] = update_mask unless update_mask.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Creates new backup vault + # @param [String] parent + # Required. The location to create the backup vaults, in the format `projects/` + # project_id`/locations/`location`` + # @param [Google::Apis::NetappV1::BackupVault] backup_vault_object + # @param [String] backup_vault_id + # Required. The ID to use for the backupVault. The ID must be unique within the + # specified location. 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 [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::NetappV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::NetappV1::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def create_project_location_backup_vault(parent, backup_vault_object = nil, backup_vault_id: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+parent}/backupVaults', options) + command.request_representation = Google::Apis::NetappV1::BackupVault::Representation + command.request_object = backup_vault_object + command.response_representation = Google::Apis::NetappV1::Operation::Representation + command.response_class = Google::Apis::NetappV1::Operation + command.params['parent'] = parent unless parent.nil? + command.query['backupVaultId'] = backup_vault_id unless backup_vault_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Warning! This operation will permanently delete the backup vault. + # @param [String] name + # Required. The backupVault resource name, in the format `projects/`project_id`/ + # locations/`location`/backupVaults/`backup_vault_id`` + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::NetappV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::NetappV1::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_project_location_backup_vault(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1/{+name}', options) + command.response_representation = Google::Apis::NetappV1::Operation::Representation + command.response_class = Google::Apis::NetappV1::Operation + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Returns the description of the specified backup vault + # @param [String] name + # Required. The backupVault resource name, in the format `projects/`project_id`/ + # locations/`location`/backupVaults/`backup_vault_id`` + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::NetappV1::BackupVault] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::NetappV1::BackupVault] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_project_location_backup_vault(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+name}', options) + command.response_representation = Google::Apis::NetappV1::BackupVault::Representation + command.response_class = Google::Apis::NetappV1::BackupVault + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Returns list of all available backup vaults. + # @param [String] parent + # Required. The location for which to retrieve backupVault information, in the + # format `projects/`project_id`/locations/`location``. + # @param [String] filter + # List filter. + # @param [String] order_by + # Sort results. Supported values are "name", "name desc" or "" (unsorted). + # @param [Fixnum] page_size + # The maximum number of items to return. + # @param [String] page_token + # The next_page_token value to use if there are additional results to retrieve + # for this list request. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::NetappV1::ListBackupVaultsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::NetappV1::ListBackupVaultsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_project_location_backup_vaults(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+parent}/backupVaults', options) + command.response_representation = Google::Apis::NetappV1::ListBackupVaultsResponse::Representation + command.response_class = Google::Apis::NetappV1::ListBackupVaultsResponse + command.params['parent'] = parent unless parent.nil? + command.query['filter'] = filter unless filter.nil? + command.query['orderBy'] = order_by unless order_by.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Updates the settings of a specific backup vault. + # @param [String] name + # Identifier. The resource name of the backup vault. Format: `projects/` + # project_id`/locations/`location`/backupVaults/`backup_vault_id``. + # @param [Google::Apis::NetappV1::BackupVault] backup_vault_object + # @param [String] update_mask + # Required. Field mask is used to specify the fields to be overwritten in the + # Backup resource to be updated. The fields specified in the update_mask are + # relative to the resource, not the full request. A field will be overwritten if + # it is in the mask. If the user does not provide a mask then all fields will be + # overwritten. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::NetappV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::NetappV1::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def patch_project_location_backup_vault(name, backup_vault_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v1/{+name}', options) + command.request_representation = Google::Apis::NetappV1::BackupVault::Representation + command.request_object = backup_vault_object + command.response_representation = Google::Apis::NetappV1::Operation::Representation + command.response_class = Google::Apis::NetappV1::Operation + command.params['name'] = name unless name.nil? + command.query['updateMask'] = update_mask unless update_mask.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Creates a backup from the volume specified in the request The backup can be + # created from the given snapshot if specified in the request. If no snapshot + # specified, there'll be a new snapshot taken to initiate the backup creation. + # @param [String] parent + # Required. The NetApp backupVault to create the backups of, in the format ` + # projects/*/locations/*/backupVaults/`backup_vault_id`` + # @param [Google::Apis::NetappV1::Backup] backup_object + # @param [String] backup_id + # Required. The ID to use for the backup. The ID must be unique within the + # specified backupVault. 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 [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::NetappV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::NetappV1::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def create_project_location_backup_vault_backup(parent, backup_object = nil, backup_id: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+parent}/backups', options) + command.request_representation = Google::Apis::NetappV1::Backup::Representation + command.request_object = backup_object + command.response_representation = Google::Apis::NetappV1::Operation::Representation + command.response_class = Google::Apis::NetappV1::Operation + command.params['parent'] = parent unless parent.nil? + command.query['backupId'] = backup_id unless backup_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Warning! This operation will permanently delete the backup. + # @param [String] name + # Required. The backup resource name, in the format `projects/`project_id`/ + # locations/`location`/backupVaults/`backup_vault_id`/backups/`backup_id`` + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::NetappV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::NetappV1::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_project_location_backup_vault_backup(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1/{+name}', options) + command.response_representation = Google::Apis::NetappV1::Operation::Representation + command.response_class = Google::Apis::NetappV1::Operation + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Returns the description of the specified backup + # @param [String] name + # Required. The backup resource name, in the format `projects/`project_id`/ + # locations/`location`/backupVaults/`backup_vault_id`/backups/`backup_id`` + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::NetappV1::Backup] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::NetappV1::Backup] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_project_location_backup_vault_backup(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+name}', options) + command.response_representation = Google::Apis::NetappV1::Backup::Representation + command.response_class = Google::Apis::NetappV1::Backup + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Returns descriptions of all backups for a backupVault. + # @param [String] parent + # Required. The backupVault for which to retrieve backup information, in the + # format `projects/`project_id`/locations/`location`/backupVaults/` + # backup_vault_id``. To retrieve backup information for all locations, use "-" + # for the ``location`` value. To retrieve backup information for all + # backupVaults, use "-" for the ``backup_vault_id`` value. To retrieve backup + # information for a volume, use "-" for the ``backup_vault_id`` value and + # specify volume full name with the filter. + # @param [String] filter + # The standard list filter. If specified, backups will be returned based on the + # attribute name that matches the filter expression. If empty, then no backups + # are filtered out. See https://google.aip.dev/160 + # @param [String] order_by + # Sort results. Supported values are "name", "name desc" or "" (unsorted). + # @param [Fixnum] page_size + # The maximum number of items to return. The service may return fewer than this + # value. The maximum value is 1000; values above 1000 will be coerced to 1000. + # @param [String] page_token + # The next_page_token value to use if there are additional results to retrieve + # for this list request. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::NetappV1::ListBackupsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::NetappV1::ListBackupsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_project_location_backup_vault_backups(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+parent}/backups', options) + command.response_representation = Google::Apis::NetappV1::ListBackupsResponse::Representation + command.response_class = Google::Apis::NetappV1::ListBackupsResponse + command.params['parent'] = parent unless parent.nil? + command.query['filter'] = filter unless filter.nil? + command.query['orderBy'] = order_by unless order_by.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Update backup with full spec. + # @param [String] name + # Identifier. The resource name of the backup. Format: `projects/`project_id`/ + # locations/`location`/backupVaults/`backup_vault_id`/backups/`backup_id``. + # @param [Google::Apis::NetappV1::Backup] backup_object + # @param [String] update_mask + # Required. Field mask is used to specify the fields to be overwritten in the + # Backup resource to be updated. The fields specified in the update_mask are + # relative to the resource, not the full request. A field will be overwritten if + # it is in the mask. If the user does not provide a mask then all fields will be + # overwritten. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::NetappV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::NetappV1::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def patch_project_location_backup_vault_backup(name, backup_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v1/{+name}', options) + command.request_representation = Google::Apis::NetappV1::Backup::Representation + command.request_object = backup_object + command.response_representation = Google::Apis::NetappV1::Operation::Representation + command.response_class = Google::Apis::NetappV1::Operation + command.params['name'] = name unless name.nil? + command.query['updateMask'] = update_mask unless update_mask.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Creates a new KMS config. + # @param [String] parent + # Required. Value for parent. + # @param [Google::Apis::NetappV1::KmsConfig] kms_config_object + # @param [String] kms_config_id + # Required. Id of the requesting KmsConfig. Must be unique within the 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 [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::NetappV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::NetappV1::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def create_project_location_kms_config(parent, kms_config_object = nil, kms_config_id: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+parent}/kmsConfigs', options) + command.request_representation = Google::Apis::NetappV1::KmsConfig::Representation + command.request_object = kms_config_object + command.response_representation = Google::Apis::NetappV1::Operation::Representation + command.response_class = Google::Apis::NetappV1::Operation + command.params['parent'] = parent unless parent.nil? + command.query['kmsConfigId'] = kms_config_id unless kms_config_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Warning! This operation will permanently delete the Kms config. + # @param [String] name + # Required. Name of the KmsConfig. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::NetappV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::NetappV1::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_project_location_kms_config(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1/{+name}', options) + command.response_representation = Google::Apis::NetappV1::Operation::Representation + command.response_class = Google::Apis::NetappV1::Operation + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Encrypt the existing volumes without CMEK encryption with the desired the KMS + # config for the whole region. + # @param [String] name + # Required. Name of the KmsConfig. + # @param [Google::Apis::NetappV1::EncryptVolumesRequest] encrypt_volumes_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::NetappV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::NetappV1::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def encrypt_kms_config_volumes(name, encrypt_volumes_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+name}:encrypt', options) + command.request_representation = Google::Apis::NetappV1::EncryptVolumesRequest::Representation + command.request_object = encrypt_volumes_request_object + command.response_representation = Google::Apis::NetappV1::Operation::Representation + command.response_class = Google::Apis::NetappV1::Operation + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Returns the description of the specified KMS config by kms_config_id. + # @param [String] name + # Required. Name of the KmsConfig + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::NetappV1::KmsConfig] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::NetappV1::KmsConfig] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_project_location_kms_config(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+name}', options) + command.response_representation = Google::Apis::NetappV1::KmsConfig::Representation + command.response_class = Google::Apis::NetappV1::KmsConfig + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Returns descriptions of all KMS configs owned by the caller. + # @param [String] parent + # Required. Parent value + # @param [String] filter + # List filter. + # @param [String] order_by + # Sort results. Supported values are "name", "name desc" or "" (unsorted). + # @param [Fixnum] page_size + # The maximum number of items to return. + # @param [String] page_token + # The next_page_token value to use if there are additional results to retrieve + # for this list request. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::NetappV1::ListKmsConfigsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::NetappV1::ListKmsConfigsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_project_location_kms_configs(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+parent}/kmsConfigs', options) + command.response_representation = Google::Apis::NetappV1::ListKmsConfigsResponse::Representation + command.response_class = Google::Apis::NetappV1::ListKmsConfigsResponse + command.params['parent'] = parent unless parent.nil? + command.query['filter'] = filter unless filter.nil? + command.query['orderBy'] = order_by unless order_by.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Updates the Kms config properties with the full spec + # @param [String] name + # Identifier. Name of the KmsConfig. + # @param [Google::Apis::NetappV1::KmsConfig] kms_config_object + # @param [String] update_mask + # Required. Field mask is used to specify the fields to be overwritten in the + # KmsConfig resource by the update. The fields specified in the update_mask are + # relative to the resource, not the full request. A field will be overwritten if + # it is in the mask. If the user does not provide a mask then all fields will be + # overwritten. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::NetappV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::NetappV1::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def patch_project_location_kms_config(name, kms_config_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v1/{+name}', options) + command.request_representation = Google::Apis::NetappV1::KmsConfig::Representation + command.request_object = kms_config_object + command.response_representation = Google::Apis::NetappV1::Operation::Representation + command.response_class = Google::Apis::NetappV1::Operation + command.params['name'] = name unless name.nil? + command.query['updateMask'] = update_mask unless update_mask.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Verifies KMS config reachability. + # @param [String] name + # Required. Name of the KMS Config to be verified. + # @param [Google::Apis::NetappV1::VerifyKmsConfigRequest] verify_kms_config_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::NetappV1::VerifyKmsConfigResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::NetappV1::VerifyKmsConfigResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def verify_kms_config(name, verify_kms_config_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+name}:verify', options) + command.request_representation = Google::Apis::NetappV1::VerifyKmsConfigRequest::Representation + command.request_object = verify_kms_config_request_object + command.response_representation = Google::Apis::NetappV1::VerifyKmsConfigResponse::Representation + command.response_class = Google::Apis::NetappV1::VerifyKmsConfigResponse + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Starts asynchronous cancellation on a long-running operation. The server makes + # a best effort to cancel the operation, but success is not guaranteed. If the + # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. + # Clients can use Operations.GetOperation or other methods to check whether the + # cancellation succeeded or whether the operation completed despite cancellation. + # On successful cancellation, the operation is not deleted; instead, it becomes + # an operation with an Operation.error value with a google.rpc.Status.code of 1, + # corresponding to `Code.CANCELLED`. + # @param [String] name + # The name of the operation resource to be cancelled. + # @param [Google::Apis::NetappV1::CancelOperationRequest] cancel_operation_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::NetappV1::GoogleProtobufEmpty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::NetappV1::GoogleProtobufEmpty] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def cancel_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+name}:cancel', options) + command.request_representation = Google::Apis::NetappV1::CancelOperationRequest::Representation + command.request_object = cancel_operation_request_object + command.response_representation = Google::Apis::NetappV1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::NetappV1::GoogleProtobufEmpty + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Deletes a long-running operation. This method indicates that the client is no + # longer interested in the operation result. It does not cancel the operation. + # If the server doesn't support this method, it returns `google.rpc.Code. + # UNIMPLEMENTED`. + # @param [String] name + # The name of the operation resource to be deleted. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::NetappV1::GoogleProtobufEmpty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::NetappV1::GoogleProtobufEmpty] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1/{+name}', options) + command.response_representation = Google::Apis::NetappV1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::NetappV1::GoogleProtobufEmpty + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Gets the latest state of a long-running operation. Clients can use this method + # to poll the operation result at intervals as recommended by the API service. + # @param [String] name + # The name of the operation resource. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::NetappV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::NetappV1::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+name}', options) + command.response_representation = Google::Apis::NetappV1::Operation::Representation + command.response_class = Google::Apis::NetappV1::Operation + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Lists operations that match the specified filter in the request. If the server + # doesn't support this method, it returns `UNIMPLEMENTED`. + # @param [String] name + # The name of the operation's parent resource. + # @param [String] filter + # The standard list filter. + # @param [Fixnum] page_size + # The standard list page size. + # @param [String] page_token + # The standard list page token. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::NetappV1::ListOperationsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::NetappV1::ListOperationsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+name}/operations', options) + command.response_representation = Google::Apis::NetappV1::ListOperationsResponse::Representation + command.response_class = Google::Apis::NetappV1::ListOperationsResponse + command.params['name'] = name unless name.nil? + command.query['filter'] = filter unless filter.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Creates a new storage pool. + # @param [String] parent + # Required. Value for parent. + # @param [Google::Apis::NetappV1::StoragePool] storage_pool_object + # @param [String] storage_pool_id + # Required. Id of the requesting storage pool. Must be unique within the 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 [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::NetappV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::NetappV1::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def create_project_location_storage_pool(parent, storage_pool_object = nil, storage_pool_id: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+parent}/storagePools', options) + command.request_representation = Google::Apis::NetappV1::StoragePool::Representation + command.request_object = storage_pool_object + command.response_representation = Google::Apis::NetappV1::Operation::Representation + command.response_class = Google::Apis::NetappV1::Operation + command.params['parent'] = parent unless parent.nil? + command.query['storagePoolId'] = storage_pool_id unless storage_pool_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Warning! This operation will permanently delete the storage pool. + # @param [String] name + # Required. Name of the storage pool + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::NetappV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::NetappV1::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_project_location_storage_pool(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1/{+name}', options) + command.response_representation = Google::Apis::NetappV1::Operation::Representation + command.response_class = Google::Apis::NetappV1::Operation + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Returns the description of the specified storage pool by poolId. + # @param [String] name + # Required. Name of the storage pool + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::NetappV1::StoragePool] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::NetappV1::StoragePool] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_project_location_storage_pool(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+name}', options) + command.response_representation = Google::Apis::NetappV1::StoragePool::Representation + command.response_class = Google::Apis::NetappV1::StoragePool + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Returns descriptions of all storage pools owned by the caller. + # @param [String] parent + # Required. Parent value + # @param [String] filter + # Optional. List filter. + # @param [String] order_by + # Optional. Sort results. Supported values are "name", "name desc" or "" ( + # unsorted). + # @param [Fixnum] page_size + # Optional. The maximum number of items to return. + # @param [String] page_token + # Optional. The next_page_token value to use if there are additional results to + # retrieve for this list request. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::NetappV1::ListStoragePoolsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::NetappV1::ListStoragePoolsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_project_location_storage_pools(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+parent}/storagePools', options) + command.response_representation = Google::Apis::NetappV1::ListStoragePoolsResponse::Representation + command.response_class = Google::Apis::NetappV1::ListStoragePoolsResponse + command.params['parent'] = parent unless parent.nil? + command.query['filter'] = filter unless filter.nil? + command.query['orderBy'] = order_by unless order_by.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Updates the storage pool properties with the full spec + # @param [String] name + # Identifier. Name of the storage pool + # @param [Google::Apis::NetappV1::StoragePool] storage_pool_object + # @param [String] update_mask + # Required. Field mask is used to specify the fields to be overwritten in the + # StoragePool resource by the update. The fields specified in the update_mask + # are relative to the resource, not the full request. A field will be + # overwritten if it is in the mask. If the user does not provide a mask then all + # fields will be overwritten. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::NetappV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::NetappV1::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def patch_project_location_storage_pool(name, storage_pool_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v1/{+name}', options) + command.request_representation = Google::Apis::NetappV1::StoragePool::Representation + command.request_object = storage_pool_object + command.response_representation = Google::Apis::NetappV1::Operation::Representation + command.response_class = Google::Apis::NetappV1::Operation + command.params['name'] = name unless name.nil? + command.query['updateMask'] = update_mask unless update_mask.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # This operation will switch the active/replica zone for a regional storagePool. + # @param [String] name + # Required. Name of the storage pool + # @param [Google::Apis::NetappV1::SwitchActiveReplicaZoneRequest] switch_active_replica_zone_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::NetappV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::NetappV1::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def switch_storage_pool_active_replica_zone(name, switch_active_replica_zone_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+name}:switch', options) + command.request_representation = Google::Apis::NetappV1::SwitchActiveReplicaZoneRequest::Representation + command.request_object = switch_active_replica_zone_request_object + command.response_representation = Google::Apis::NetappV1::Operation::Representation + command.response_class = Google::Apis::NetappV1::Operation + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Creates a new Volume in a given project and location. + # @param [String] parent + # Required. Value for parent. + # @param [Google::Apis::NetappV1::Volume] volume_object + # @param [String] volume_id + # Required. Id of the requesting volume. Must be unique within the 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 [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::NetappV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::NetappV1::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def create_project_location_volume(parent, volume_object = nil, volume_id: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+parent}/volumes', options) + command.request_representation = Google::Apis::NetappV1::Volume::Representation + command.request_object = volume_object + command.response_representation = Google::Apis::NetappV1::Operation::Representation + command.response_class = Google::Apis::NetappV1::Operation + command.params['parent'] = parent unless parent.nil? + command.query['volumeId'] = volume_id unless volume_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Deletes a single Volume. + # @param [String] name + # Required. Name of the volume + # @param [Boolean] force + # If this field is set as true, CCFE will not block the volume resource deletion + # even if it has any snapshots resource. (Otherwise, the request will only work + # if the volume has no snapshots.) + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::NetappV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::NetappV1::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_project_location_volume(name, force: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1/{+name}', options) + command.response_representation = Google::Apis::NetappV1::Operation::Representation + command.response_class = Google::Apis::NetappV1::Operation + command.params['name'] = name unless name.nil? + command.query['force'] = force unless force.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Gets details of a single Volume. + # @param [String] name + # Required. Name of the volume + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::NetappV1::Volume] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::NetappV1::Volume] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_project_location_volume(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+name}', options) + command.response_representation = Google::Apis::NetappV1::Volume::Representation + command.response_class = Google::Apis::NetappV1::Volume + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Lists Volumes in a given project. + # @param [String] parent + # Required. Parent value for ListVolumesRequest + # @param [String] filter + # Filtering results + # @param [String] order_by + # Hint for how to order the results + # @param [Fixnum] page_size + # Requested page size. Server may return fewer items than requested. If + # unspecified, the server will pick an appropriate default. + # @param [String] page_token + # A token identifying a page of results the server should return. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::NetappV1::ListVolumesResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::NetappV1::ListVolumesResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_project_location_volumes(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+parent}/volumes', options) + command.response_representation = Google::Apis::NetappV1::ListVolumesResponse::Representation + command.response_class = Google::Apis::NetappV1::ListVolumesResponse + command.params['parent'] = parent unless parent.nil? + command.query['filter'] = filter unless filter.nil? + command.query['orderBy'] = order_by unless order_by.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Updates the parameters of a single Volume. + # @param [String] name + # Identifier. Name of the volume + # @param [Google::Apis::NetappV1::Volume] volume_object + # @param [String] update_mask + # Required. Field mask is used to specify the fields to be overwritten in the + # Volume resource by the update. The fields specified in the update_mask are + # relative to the resource, not the full request. A field will be overwritten if + # it is in the mask. If the user does not provide a mask then all fields will be + # overwritten. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::NetappV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::NetappV1::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def patch_project_location_volume(name, volume_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v1/{+name}', options) + command.request_representation = Google::Apis::NetappV1::Volume::Representation + command.request_object = volume_object + command.response_representation = Google::Apis::NetappV1::Operation::Representation + command.response_class = Google::Apis::NetappV1::Operation + command.params['name'] = name unless name.nil? + command.query['updateMask'] = update_mask unless update_mask.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Revert an existing volume to a specified snapshot. Warning! This operation + # will permanently revert all changes made after the snapshot was created. + # @param [String] name + # Required. The resource name of the volume, in the format of projects/` + # project_id`/locations/`location`/volumes/`volume_id`. + # @param [Google::Apis::NetappV1::RevertVolumeRequest] revert_volume_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::NetappV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::NetappV1::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def revert_volume(name, revert_volume_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+name}:revert', options) + command.request_representation = Google::Apis::NetappV1::RevertVolumeRequest::Representation + command.request_object = revert_volume_request_object + command.response_representation = Google::Apis::NetappV1::Operation::Representation + command.response_class = Google::Apis::NetappV1::Operation + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Create a new replication for a volume. + # @param [String] parent + # Required. The NetApp volume to create the replications of, in the format ` + # projects/`project_id`/locations/`location`/volumes/`volume_id`` + # @param [Google::Apis::NetappV1::Replication] replication_object + # @param [String] replication_id + # Required. ID of the replication to create. Must be unique within the 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 [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::NetappV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::NetappV1::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def create_project_location_volume_replication(parent, replication_object = nil, replication_id: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+parent}/replications', options) + command.request_representation = Google::Apis::NetappV1::Replication::Representation + command.request_object = replication_object + command.response_representation = Google::Apis::NetappV1::Operation::Representation + command.response_class = Google::Apis::NetappV1::Operation + command.params['parent'] = parent unless parent.nil? + command.query['replicationId'] = replication_id unless replication_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Deletes a replication. + # @param [String] name + # Required. The replication resource name, in the format `projects/*/locations/*/ + # volumes/*/replications/`replication_id`` + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::NetappV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::NetappV1::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_project_location_volume_replication(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1/{+name}', options) + command.response_representation = Google::Apis::NetappV1::Operation::Representation + command.response_class = Google::Apis::NetappV1::Operation + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Describe a replication for a volume. + # @param [String] name + # Required. The replication resource name, in the format `projects/`project_id`/ + # locations/`location`/volumes/`volume_id`/replications/`replication_id`` + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::NetappV1::Replication] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::NetappV1::Replication] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_project_location_volume_replication(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+name}', options) + command.response_representation = Google::Apis::NetappV1::Replication::Representation + command.response_class = Google::Apis::NetappV1::Replication + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Returns descriptions of all replications for a volume. + # @param [String] parent + # Required. The volume for which to retrieve replication information, in the + # format `projects/`project_id`/locations/`location`/volumes/`volume_id``. + # @param [String] filter + # List filter. + # @param [String] order_by + # Sort results. Supported values are "name", "name desc" or "" (unsorted). + # @param [Fixnum] page_size + # The maximum number of items to return. + # @param [String] page_token + # The next_page_token value to use if there are additional results to retrieve + # for this list request. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::NetappV1::ListReplicationsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::NetappV1::ListReplicationsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_project_location_volume_replications(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+parent}/replications', options) + command.response_representation = Google::Apis::NetappV1::ListReplicationsResponse::Representation + command.response_class = Google::Apis::NetappV1::ListReplicationsResponse + command.params['parent'] = parent unless parent.nil? + command.query['filter'] = filter unless filter.nil? + command.query['orderBy'] = order_by unless order_by.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Updates the settings of a specific replication. + # @param [String] name + # Identifier. The resource name of the Replication. Format: `projects/` + # project_id`/locations/`location`/volumes/`volume_id`/replications/` + # replication_id``. + # @param [Google::Apis::NetappV1::Replication] replication_object + # @param [String] update_mask + # Required. Mask of fields to update. At least one path must be supplied in this + # field. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::NetappV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::NetappV1::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def patch_project_location_volume_replication(name, replication_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v1/{+name}', options) + command.request_representation = Google::Apis::NetappV1::Replication::Representation + command.request_object = replication_object + command.response_representation = Google::Apis::NetappV1::Operation::Representation + command.response_class = Google::Apis::NetappV1::Operation + command.params['name'] = name unless name.nil? + command.query['updateMask'] = update_mask unless update_mask.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Resume Cross Region Replication. + # @param [String] name + # Required. The resource name of the replication, in the format of projects/` + # project_id`/locations/`location`/volumes/`volume_id`/replications/` + # replication_id`. + # @param [Google::Apis::NetappV1::ResumeReplicationRequest] resume_replication_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::NetappV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::NetappV1::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def resume_replication(name, resume_replication_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+name}:resume', options) + command.request_representation = Google::Apis::NetappV1::ResumeReplicationRequest::Representation + command.request_object = resume_replication_request_object + command.response_representation = Google::Apis::NetappV1::Operation::Representation + command.response_class = Google::Apis::NetappV1::Operation + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Reverses direction of replication. Source becomes destination and destination + # becomes source. + # @param [String] name + # Required. The resource name of the replication, in the format of projects/` + # project_id`/locations/`location`/volumes/`volume_id`/replications/` + # replication_id`. + # @param [Google::Apis::NetappV1::ReverseReplicationDirectionRequest] reverse_replication_direction_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::NetappV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::NetappV1::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def reverse_project_location_volume_replication_direction(name, reverse_replication_direction_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+name}:reverseDirection', options) + command.request_representation = Google::Apis::NetappV1::ReverseReplicationDirectionRequest::Representation + command.request_object = reverse_replication_direction_request_object + command.response_representation = Google::Apis::NetappV1::Operation::Representation + command.response_class = Google::Apis::NetappV1::Operation + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Stop Cross Region Replication. + # @param [String] name + # Required. The resource name of the replication, in the format of projects/` + # project_id`/locations/`location`/volumes/`volume_id`/replications/` + # replication_id`. + # @param [Google::Apis::NetappV1::StopReplicationRequest] stop_replication_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::NetappV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::NetappV1::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def stop_replication(name, stop_replication_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+name}:stop', options) + command.request_representation = Google::Apis::NetappV1::StopReplicationRequest::Representation + command.request_object = stop_replication_request_object + command.response_representation = Google::Apis::NetappV1::Operation::Representation + command.response_class = Google::Apis::NetappV1::Operation + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Create a new snapshot for a volume. + # @param [String] parent + # Required. The NetApp volume to create the snapshots of, in the format ` + # projects/`project_id`/locations/`location`/volumes/`volume_id`` + # @param [Google::Apis::NetappV1::Snapshot] snapshot_object + # @param [String] snapshot_id + # Required. ID of the snapshot to create. Must be unique within the 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 [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::NetappV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::NetappV1::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def create_project_location_volume_snapshot(parent, snapshot_object = nil, snapshot_id: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+parent}/snapshots', options) + command.request_representation = Google::Apis::NetappV1::Snapshot::Representation + command.request_object = snapshot_object + command.response_representation = Google::Apis::NetappV1::Operation::Representation + command.response_class = Google::Apis::NetappV1::Operation + command.params['parent'] = parent unless parent.nil? + command.query['snapshotId'] = snapshot_id unless snapshot_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Deletes a snapshot. + # @param [String] name + # Required. The snapshot resource name, in the format `projects/*/locations/*/ + # volumes/*/snapshots/`snapshot_id`` + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::NetappV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::NetappV1::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_project_location_volume_snapshot(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1/{+name}', options) + command.response_representation = Google::Apis::NetappV1::Operation::Representation + command.response_class = Google::Apis::NetappV1::Operation + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Describe a snapshot for a volume. + # @param [String] name + # Required. The snapshot resource name, in the format `projects/`project_id`/ + # locations/`location`/volumes/`volume_id`/snapshots/`snapshot_id`` + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::NetappV1::Snapshot] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::NetappV1::Snapshot] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_project_location_volume_snapshot(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+name}', options) + command.response_representation = Google::Apis::NetappV1::Snapshot::Representation + command.response_class = Google::Apis::NetappV1::Snapshot + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Returns descriptions of all snapshots for a volume. + # @param [String] parent + # Required. The volume for which to retrieve snapshot information, in the format + # `projects/`project_id`/locations/`location`/volumes/`volume_id``. + # @param [String] filter + # List filter. + # @param [String] order_by + # Sort results. Supported values are "name", "name desc" or "" (unsorted). + # @param [Fixnum] page_size + # The maximum number of items to return. + # @param [String] page_token + # The next_page_token value to use if there are additional results to retrieve + # for this list request. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::NetappV1::ListSnapshotsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::NetappV1::ListSnapshotsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_project_location_volume_snapshots(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+parent}/snapshots', options) + command.response_representation = Google::Apis::NetappV1::ListSnapshotsResponse::Representation + command.response_class = Google::Apis::NetappV1::ListSnapshotsResponse + command.params['parent'] = parent unless parent.nil? + command.query['filter'] = filter unless filter.nil? + command.query['orderBy'] = order_by unless order_by.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Updates the settings of a specific snapshot. + # @param [String] name + # Identifier. The resource name of the snapshot. Format: `projects/`project_id`/ + # locations/`location`/volumes/`volume_id`/snapshots/`snapshot_id``. + # @param [Google::Apis::NetappV1::Snapshot] snapshot_object + # @param [String] update_mask + # Required. Mask of fields to update. At least one path must be supplied in this + # field. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::NetappV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::NetappV1::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def patch_project_location_volume_snapshot(name, snapshot_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v1/{+name}', options) + command.request_representation = Google::Apis::NetappV1::Snapshot::Representation + command.request_object = snapshot_object + command.response_representation = Google::Apis::NetappV1::Operation::Representation + command.response_class = Google::Apis::NetappV1::Operation + command.params['name'] = name unless name.nil? + command.query['updateMask'] = update_mask unless update_mask.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + protected + + def apply_command_defaults(command) + command.query['key'] = key unless key.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + end + end + end + end +end diff --git a/generated/google-apis-netapp_v1/spec/generated_spec.rb b/generated/google-apis-netapp_v1/spec/generated_spec.rb new file mode 100644 index 00000000000..8088d7ae377 --- /dev/null +++ b/generated/google-apis-netapp_v1/spec/generated_spec.rb @@ -0,0 +1,27 @@ +# Copyright 2020 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 +# +# http://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. + +require "rspec" + +RSpec.describe "Google::Apis::NetappV1" do + # Minimal test just to ensure no syntax errors in generated code + it "should load" do + expect do + require "google/apis/netapp_v1" + end.not_to raise_error + expect do + Google::Apis::NetappV1::NetAppFilesService.new + end.not_to raise_error + end +end