google-cloud-netapp-v1 0.2.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (29) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/netapp/v1/active_directory_pb.rb +1 -1
  3. data/lib/google/cloud/netapp/v1/backup_pb.rb +57 -0
  4. data/lib/google/cloud/netapp/v1/backup_policy_pb.rb +56 -0
  5. data/lib/google/cloud/netapp/v1/backup_vault_pb.rb +56 -0
  6. data/lib/google/cloud/netapp/v1/cloud_netapp_service_pb.rb +4 -1
  7. data/lib/google/cloud/netapp/v1/cloud_netapp_service_services_pb.rb +33 -0
  8. data/lib/google/cloud/netapp/v1/kms_pb.rb +1 -1
  9. data/lib/google/cloud/netapp/v1/netapp/client.rb +1733 -120
  10. data/lib/google/cloud/netapp/v1/netapp/paths.rb +59 -0
  11. data/lib/google/cloud/netapp/v1/netapp/rest/client.rb +1622 -117
  12. data/lib/google/cloud/netapp/v1/netapp/rest/service_stub.rb +891 -0
  13. data/lib/google/cloud/netapp/v1/replication_pb.rb +1 -1
  14. data/lib/google/cloud/netapp/v1/snapshot_pb.rb +1 -1
  15. data/lib/google/cloud/netapp/v1/storage_pool_pb.rb +1 -1
  16. data/lib/google/cloud/netapp/v1/version.rb +1 -1
  17. data/lib/google/cloud/netapp/v1/volume_pb.rb +2 -1
  18. data/proto_docs/google/api/client.rb +13 -0
  19. data/proto_docs/google/cloud/netapp/v1/active_directory.rb +2 -2
  20. data/proto_docs/google/cloud/netapp/v1/backup.rb +231 -0
  21. data/proto_docs/google/cloud/netapp/v1/backup_policy.rb +190 -0
  22. data/proto_docs/google/cloud/netapp/v1/backup_vault.rb +177 -0
  23. data/proto_docs/google/cloud/netapp/v1/common.rb +3 -0
  24. data/proto_docs/google/cloud/netapp/v1/kms.rb +2 -2
  25. data/proto_docs/google/cloud/netapp/v1/replication.rb +2 -2
  26. data/proto_docs/google/cloud/netapp/v1/snapshot.rb +2 -2
  27. data/proto_docs/google/cloud/netapp/v1/storage_pool.rb +4 -3
  28. data/proto_docs/google/cloud/netapp/v1/volume.rb +31 -2
  29. metadata +9 -3
@@ -0,0 +1,177 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2023 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+
20
+ module Google
21
+ module Cloud
22
+ module NetApp
23
+ module V1
24
+ # A NetApp BackupVault.
25
+ # @!attribute [rw] name
26
+ # @return [::String]
27
+ # Identifier. The resource name of the backup vault.
28
+ # Format:
29
+ # `projects/{project_id}/locations/{location}/backupVaults/{backup_vault_id}`.
30
+ # @!attribute [r] state
31
+ # @return [::Google::Cloud::NetApp::V1::BackupVault::State]
32
+ # Output only. The backup vault state.
33
+ # @!attribute [r] create_time
34
+ # @return [::Google::Protobuf::Timestamp]
35
+ # Output only. Create time of the backup vault.
36
+ # @!attribute [rw] description
37
+ # @return [::String]
38
+ # Description of the backup vault.
39
+ # @!attribute [rw] labels
40
+ # @return [::Google::Protobuf::Map{::String => ::String}]
41
+ # Resource labels to represent user provided metadata.
42
+ class BackupVault
43
+ include ::Google::Protobuf::MessageExts
44
+ extend ::Google::Protobuf::MessageExts::ClassMethods
45
+
46
+ # @!attribute [rw] key
47
+ # @return [::String]
48
+ # @!attribute [rw] value
49
+ # @return [::String]
50
+ class LabelsEntry
51
+ include ::Google::Protobuf::MessageExts
52
+ extend ::Google::Protobuf::MessageExts::ClassMethods
53
+ end
54
+
55
+ # The Backup Vault States
56
+ module State
57
+ # State not set.
58
+ STATE_UNSPECIFIED = 0
59
+
60
+ # BackupVault is being created.
61
+ CREATING = 1
62
+
63
+ # BackupVault is available for use.
64
+ READY = 2
65
+
66
+ # BackupVault is being deleted.
67
+ DELETING = 3
68
+
69
+ # BackupVault is not valid and cannot be used.
70
+ ERROR = 4
71
+
72
+ # BackupVault is being updated.
73
+ UPDATING = 5
74
+ end
75
+ end
76
+
77
+ # GetBackupVaultRequest gets the state of a backupVault.
78
+ # @!attribute [rw] name
79
+ # @return [::String]
80
+ # Required. The backupVault resource name, in the format
81
+ # `projects/{project_id}/locations/{location}/backupVaults/{backup_vault_id}`
82
+ class GetBackupVaultRequest
83
+ include ::Google::Protobuf::MessageExts
84
+ extend ::Google::Protobuf::MessageExts::ClassMethods
85
+ end
86
+
87
+ # ListBackupVaultsRequest lists backupVaults.
88
+ # @!attribute [rw] parent
89
+ # @return [::String]
90
+ # Required. The location for which to retrieve backupVault information,
91
+ # in the format
92
+ # `projects/{project_id}/locations/{location}`.
93
+ # @!attribute [rw] page_size
94
+ # @return [::Integer]
95
+ # The maximum number of items to return.
96
+ # @!attribute [rw] page_token
97
+ # @return [::String]
98
+ # The next_page_token value to use if there are additional
99
+ # results to retrieve for this list request.
100
+ # @!attribute [rw] order_by
101
+ # @return [::String]
102
+ # Sort results. Supported values are "name", "name desc" or "" (unsorted).
103
+ # @!attribute [rw] filter
104
+ # @return [::String]
105
+ # List filter.
106
+ class ListBackupVaultsRequest
107
+ include ::Google::Protobuf::MessageExts
108
+ extend ::Google::Protobuf::MessageExts::ClassMethods
109
+ end
110
+
111
+ # ListBackupVaultsResponse is the result of ListBackupVaultsRequest.
112
+ # @!attribute [rw] backup_vaults
113
+ # @return [::Array<::Google::Cloud::NetApp::V1::BackupVault>]
114
+ # A list of backupVaults in the project for the specified location.
115
+ # @!attribute [rw] next_page_token
116
+ # @return [::String]
117
+ # The token you can use to retrieve the next page of results. Not returned
118
+ # if there are no more results in the list.
119
+ # @!attribute [rw] unreachable
120
+ # @return [::Array<::String>]
121
+ # Locations that could not be reached.
122
+ class ListBackupVaultsResponse
123
+ include ::Google::Protobuf::MessageExts
124
+ extend ::Google::Protobuf::MessageExts::ClassMethods
125
+ end
126
+
127
+ # CreateBackupVaultRequest creates a backup vault.
128
+ # @!attribute [rw] parent
129
+ # @return [::String]
130
+ # Required. The location to create the backup vaults, in the format
131
+ # `projects/{project_id}/locations/{location}`
132
+ # @!attribute [rw] backup_vault_id
133
+ # @return [::String]
134
+ # Required. The ID to use for the backupVault.
135
+ # The ID must be unique within the specified location.
136
+ # The max supported length is 63 characters.
137
+ # This value must start with a lowercase letter followed by up to 62
138
+ # lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
139
+ # Values that do not match this pattern will trigger an INVALID_ARGUMENT
140
+ # error.
141
+ # @!attribute [rw] backup_vault
142
+ # @return [::Google::Cloud::NetApp::V1::BackupVault]
143
+ # Required. A backupVault resource
144
+ class CreateBackupVaultRequest
145
+ include ::Google::Protobuf::MessageExts
146
+ extend ::Google::Protobuf::MessageExts::ClassMethods
147
+ end
148
+
149
+ # DeleteBackupVaultRequest deletes a backupVault.
150
+ # @!attribute [rw] name
151
+ # @return [::String]
152
+ # Required. The backupVault resource name, in the format
153
+ # `projects/{project_id}/locations/{location}/backupVaults/{backup_vault_id}`
154
+ class DeleteBackupVaultRequest
155
+ include ::Google::Protobuf::MessageExts
156
+ extend ::Google::Protobuf::MessageExts::ClassMethods
157
+ end
158
+
159
+ # UpdateBackupVaultRequest updates description and/or labels for a backupVault.
160
+ # @!attribute [rw] update_mask
161
+ # @return [::Google::Protobuf::FieldMask]
162
+ # Required. Field mask is used to specify the fields to be overwritten in the
163
+ # Backup resource to be updated.
164
+ # The fields specified in the update_mask are relative to the resource, not
165
+ # the full request. A field will be overwritten if it is in the mask. If the
166
+ # user does not provide a mask then all fields will be overwritten.
167
+ # @!attribute [rw] backup_vault
168
+ # @return [::Google::Cloud::NetApp::V1::BackupVault]
169
+ # Required. The backupVault being updated
170
+ class UpdateBackupVaultRequest
171
+ include ::Google::Protobuf::MessageExts
172
+ extend ::Google::Protobuf::MessageExts::ClassMethods
173
+ end
174
+ end
175
+ end
176
+ end
177
+ end
@@ -23,10 +23,13 @@ module Google
23
23
  module V1
24
24
  # The service levels - Storage Pool, Volumes
25
25
  module ServiceLevel
26
+ # Unspecified service level.
26
27
  SERVICE_LEVEL_UNSPECIFIED = 0
27
28
 
29
+ # Premium service level.
28
30
  PREMIUM = 1
29
31
 
32
+ # Extreme service level.
30
33
  EXTREME = 2
31
34
 
32
35
  # Standard (Software offering)
@@ -146,9 +146,9 @@ module Google
146
146
  end
147
147
 
148
148
  # KmsConfig is the customer managed encryption key(CMEK) configuration.
149
- # @!attribute [r] name
149
+ # @!attribute [rw] name
150
150
  # @return [::String]
151
- # Output only. Name of the KmsConfig.
151
+ # Identifier. Name of the KmsConfig.
152
152
  # @!attribute [rw] crypto_key_name
153
153
  # @return [::String]
154
154
  # Required. Customer managed crypto key resource full name. Format:
@@ -55,9 +55,9 @@ module Google
55
55
  # Replication is a nested resource under Volume, that describes a
56
56
  # cross-region replication relationship between 2 volumes in different
57
57
  # regions.
58
- # @!attribute [r] name
58
+ # @!attribute [rw] name
59
59
  # @return [::String]
60
- # Output only. The resource name of the Replication.
60
+ # Identifier. The resource name of the Replication.
61
61
  # Format:
62
62
  # `projects/{project_id}/locations/{location}/volumes/{volume_id}/replications/{replication_id}`.
63
63
  # @!attribute [r] state
@@ -113,9 +113,9 @@ module Google
113
113
  end
114
114
 
115
115
  # Snapshot is a point-in-time version of a Volume's content.
116
- # @!attribute [r] name
116
+ # @!attribute [rw] name
117
117
  # @return [::String]
118
- # Output only. The resource name of the snapshot.
118
+ # Identifier. The resource name of the snapshot.
119
119
  # Format:
120
120
  # `projects/{project_id}/locations/{location}/volumes/{volume_id}/snapshots/{snapshot_id}`.
121
121
  # @!attribute [r] state
@@ -112,9 +112,9 @@ module Google
112
112
  # StoragePool is a container for volumes with a service level and capacity.
113
113
  # Volumes can be created in a pool of sufficient available capacity.
114
114
  # StoragePool capacity is what you are billed for.
115
- # @!attribute [r] name
115
+ # @!attribute [rw] name
116
116
  # @return [::String]
117
- # Output only. Name of the storage pool
117
+ # Identifier. Name of the storage pool
118
118
  # @!attribute [rw] service_level
119
119
  # @return [::Google::Cloud::NetApp::V1::ServiceLevel]
120
120
  # Required. Service level of the storage pool
@@ -164,7 +164,8 @@ module Google
164
164
  # Output only. Specifies the current pool encryption key source.
165
165
  # @!attribute [rw] global_access_allowed
166
166
  # @return [::Boolean]
167
- # Optional. Allows SO pool to access AD or DNS server from other regions.
167
+ # Deprecated. Used to allow SO pool to access AD or DNS server from other
168
+ # regions.
168
169
  class StoragePool
169
170
  include ::Google::Protobuf::MessageExts
170
171
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -130,9 +130,9 @@ module Google
130
130
  end
131
131
 
132
132
  # Volume provides a filesystem that you can mount.
133
- # @!attribute [r] name
133
+ # @!attribute [rw] name
134
134
  # @return [::String]
135
- # Output only. Name of the volume
135
+ # Identifier. Name of the volume
136
136
  # @!attribute [r] state
137
137
  # @return [::Google::Cloud::NetApp::V1::Volume::State]
138
138
  # Output only. State of the volume
@@ -226,6 +226,9 @@ module Google
226
226
  # @return [::Boolean]
227
227
  # Output only. Indicates whether the volume is part of a replication
228
228
  # relationship.
229
+ # @!attribute [rw] backup_config
230
+ # @return [::Google::Cloud::NetApp::V1::BackupConfig]
231
+ # BackupConfig of the volume.
229
232
  # @!attribute [rw] restricted_actions
230
233
  # @return [::Array<::Google::Cloud::NetApp::V1::RestrictedAction>]
231
234
  # Optional. List of actions that are restricted on this volume.
@@ -449,11 +452,36 @@ module Google
449
452
  # Full name of the snapshot resource.
450
453
  # Format:
451
454
  # projects/\\{project}/locations/\\{location}/volumes/\\{volume}/snapshots/\\{snapshot}
455
+ # @!attribute [rw] source_backup
456
+ # @return [::String]
457
+ # Full name of the backup resource.
458
+ # Format:
459
+ # projects/\\{project}/locations/\\{location}/backupVaults/\\{backup_vault_id}/backups/\\{backup_id}
452
460
  class RestoreParameters
453
461
  include ::Google::Protobuf::MessageExts
454
462
  extend ::Google::Protobuf::MessageExts::ClassMethods
455
463
  end
456
464
 
465
+ # BackupConfig contains backup related config on a volume.
466
+ # @!attribute [rw] backup_policies
467
+ # @return [::Array<::String>]
468
+ # Optional. When specified, schedule backups will be created based on the
469
+ # policy configuration.
470
+ # @!attribute [rw] backup_vault
471
+ # @return [::String]
472
+ # Optional. Name of backup vault.
473
+ # Format:
474
+ # projects/\\{project_id}/locations/\\{location}/backupVaults/\\{backup_vault_id}
475
+ # @!attribute [rw] scheduled_backup_enabled
476
+ # @return [::Boolean]
477
+ # Optional. When set to true, scheduled backup is enabled on the volume.
478
+ # This field should be nil when there's no backup policy attached.
479
+ class BackupConfig
480
+ include ::Google::Protobuf::MessageExts
481
+ extend ::Google::Protobuf::MessageExts::ClassMethods
482
+ end
483
+
484
+ # Protocols is an enum of all the supported network protocols for a volume.
457
485
  module Protocols
458
486
  # Unspecified protocol
459
487
  PROTOCOLS_UNSPECIFIED = 0
@@ -468,6 +496,7 @@ module Google
468
496
  SMB = 3
469
497
  end
470
498
 
499
+ # AccessType is an enum of all the supported access types for a volume.
471
500
  module AccessType
472
501
  # Unspecified Access Type
473
502
  ACCESS_TYPE_UNSPECIFIED = 0
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-netapp-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-09-12 00:00:00.000000000 Z
11
+ date: 2024-01-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -193,6 +193,9 @@ files:
193
193
  - lib/google-cloud-netapp-v1.rb
194
194
  - lib/google/cloud/netapp/v1.rb
195
195
  - lib/google/cloud/netapp/v1/active_directory_pb.rb
196
+ - lib/google/cloud/netapp/v1/backup_pb.rb
197
+ - lib/google/cloud/netapp/v1/backup_policy_pb.rb
198
+ - lib/google/cloud/netapp/v1/backup_vault_pb.rb
196
199
  - lib/google/cloud/netapp/v1/bindings_override.rb
197
200
  - lib/google/cloud/netapp/v1/cloud_netapp_service_pb.rb
198
201
  - lib/google/cloud/netapp/v1/cloud_netapp_service_services_pb.rb
@@ -219,6 +222,9 @@ files:
219
222
  - proto_docs/google/api/launch_stage.rb
220
223
  - proto_docs/google/api/resource.rb
221
224
  - proto_docs/google/cloud/netapp/v1/active_directory.rb
225
+ - proto_docs/google/cloud/netapp/v1/backup.rb
226
+ - proto_docs/google/cloud/netapp/v1/backup_policy.rb
227
+ - proto_docs/google/cloud/netapp/v1/backup_vault.rb
222
228
  - proto_docs/google/cloud/netapp/v1/cloud_netapp_service.rb
223
229
  - proto_docs/google/cloud/netapp/v1/common.rb
224
230
  - proto_docs/google/cloud/netapp/v1/kms.rb
@@ -252,7 +258,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
252
258
  - !ruby/object:Gem::Version
253
259
  version: '0'
254
260
  requirements: []
255
- rubygems_version: 3.4.19
261
+ rubygems_version: 3.5.3
256
262
  signing_key:
257
263
  specification_version: 4
258
264
  summary: Google Cloud NetApp Volumes is a fully-managed, cloud-based data storage