google-cloud-netapp-v1 0.a → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.yardopts +12 -0
- data/AUTHENTICATION.md +149 -0
- data/README.md +144 -8
- data/lib/google/cloud/netapp/v1/active_directory_pb.rb +56 -0
- data/lib/google/cloud/netapp/v1/bindings_override.rb +102 -0
- data/lib/google/cloud/netapp/v1/cloud_netapp_service_pb.rb +57 -0
- data/lib/google/cloud/netapp/v1/cloud_netapp_service_services_pb.rb +120 -0
- data/lib/google/cloud/netapp/v1/common_pb.rb +43 -0
- data/lib/google/cloud/netapp/v1/kms_pb.rb +59 -0
- data/lib/google/cloud/netapp/v1/netapp/client.rb +4119 -0
- data/lib/google/cloud/netapp/v1/netapp/credentials.rb +47 -0
- data/lib/google/cloud/netapp/v1/netapp/operations.rb +779 -0
- data/lib/google/cloud/netapp/v1/netapp/paths.rb +185 -0
- data/lib/google/cloud/netapp/v1/netapp/rest/client.rb +3840 -0
- data/lib/google/cloud/netapp/v1/netapp/rest/operations.rb +870 -0
- data/lib/google/cloud/netapp/v1/netapp/rest/service_stub.rb +2190 -0
- data/lib/google/cloud/netapp/v1/netapp/rest.rb +54 -0
- data/lib/google/cloud/netapp/v1/netapp.rb +56 -0
- data/lib/google/cloud/netapp/v1/replication_pb.rb +66 -0
- data/lib/google/cloud/netapp/v1/rest.rb +38 -0
- data/lib/google/cloud/netapp/v1/snapshot_pb.rb +56 -0
- data/lib/google/cloud/netapp/v1/storage_pool_pb.rb +57 -0
- data/lib/google/cloud/netapp/v1/version.rb +8 -3
- data/lib/google/cloud/netapp/v1/volume_pb.rb +72 -0
- data/lib/google/cloud/netapp/v1.rb +45 -0
- data/lib/google-cloud-netapp-v1.rb +21 -0
- data/proto_docs/README.md +4 -0
- data/proto_docs/google/api/client.rb +381 -0
- data/proto_docs/google/api/field_behavior.rb +85 -0
- data/proto_docs/google/api/launch_stage.rb +71 -0
- data/proto_docs/google/api/resource.rb +222 -0
- data/proto_docs/google/cloud/netapp/v1/active_directory.rb +222 -0
- data/proto_docs/google/cloud/netapp/v1/cloud_netapp_service.rb +57 -0
- data/proto_docs/google/cloud/netapp/v1/common.rb +50 -0
- data/proto_docs/google/cloud/netapp/v1/kms.rb +236 -0
- data/proto_docs/google/cloud/netapp/v1/replication.rb +349 -0
- data/proto_docs/google/cloud/netapp/v1/snapshot.rb +180 -0
- data/proto_docs/google/cloud/netapp/v1/storage_pool.rb +211 -0
- data/proto_docs/google/cloud/netapp/v1/volume.rb +542 -0
- data/proto_docs/google/longrunning/operations.rb +164 -0
- data/proto_docs/google/protobuf/any.rb +144 -0
- data/proto_docs/google/protobuf/duration.rb +98 -0
- data/proto_docs/google/protobuf/empty.rb +34 -0
- data/proto_docs/google/protobuf/field_mask.rb +229 -0
- data/proto_docs/google/protobuf/timestamp.rb +127 -0
- data/proto_docs/google/rpc/status.rb +48 -0
- metadata +225 -13
@@ -0,0 +1,180 @@
|
|
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
|
+
# ListSnapshotsRequest lists snapshots.
|
25
|
+
# @!attribute [rw] parent
|
26
|
+
# @return [::String]
|
27
|
+
# Required. The volume for which to retrieve snapshot information,
|
28
|
+
# in the format
|
29
|
+
# `projects/{project_id}/locations/{location}/volumes/{volume_id}`.
|
30
|
+
# @!attribute [rw] page_size
|
31
|
+
# @return [::Integer]
|
32
|
+
# The maximum number of items to return.
|
33
|
+
# @!attribute [rw] page_token
|
34
|
+
# @return [::String]
|
35
|
+
# The next_page_token value to use if there are additional
|
36
|
+
# results to retrieve for this list request.
|
37
|
+
# @!attribute [rw] order_by
|
38
|
+
# @return [::String]
|
39
|
+
# Sort results. Supported values are "name", "name desc" or "" (unsorted).
|
40
|
+
# @!attribute [rw] filter
|
41
|
+
# @return [::String]
|
42
|
+
# List filter.
|
43
|
+
class ListSnapshotsRequest
|
44
|
+
include ::Google::Protobuf::MessageExts
|
45
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
46
|
+
end
|
47
|
+
|
48
|
+
# ListSnapshotsResponse is the result of ListSnapshotsRequest.
|
49
|
+
# @!attribute [rw] snapshots
|
50
|
+
# @return [::Array<::Google::Cloud::NetApp::V1::Snapshot>]
|
51
|
+
# A list of snapshots in the project for the specified volume.
|
52
|
+
# @!attribute [rw] next_page_token
|
53
|
+
# @return [::String]
|
54
|
+
# The token you can use to retrieve the next page of results. Not returned
|
55
|
+
# if there are no more results in the list.
|
56
|
+
# @!attribute [rw] unreachable
|
57
|
+
# @return [::Array<::String>]
|
58
|
+
# Locations that could not be reached.
|
59
|
+
class ListSnapshotsResponse
|
60
|
+
include ::Google::Protobuf::MessageExts
|
61
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
62
|
+
end
|
63
|
+
|
64
|
+
# GetSnapshotRequest gets the state of a snapshot.
|
65
|
+
# @!attribute [rw] name
|
66
|
+
# @return [::String]
|
67
|
+
# Required. The snapshot resource name, in the format
|
68
|
+
# `projects/{project_id}/locations/{location}/volumes/{volume_id}/snapshots/{snapshot_id}`
|
69
|
+
class GetSnapshotRequest
|
70
|
+
include ::Google::Protobuf::MessageExts
|
71
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
72
|
+
end
|
73
|
+
|
74
|
+
# CreateSnapshotRequest creates a snapshot.
|
75
|
+
# @!attribute [rw] parent
|
76
|
+
# @return [::String]
|
77
|
+
# Required. The NetApp volume to create the snapshots of, in the format
|
78
|
+
# `projects/{project_id}/locations/{location}/volumes/{volume_id}`
|
79
|
+
# @!attribute [rw] snapshot
|
80
|
+
# @return [::Google::Cloud::NetApp::V1::Snapshot]
|
81
|
+
# Required. A snapshot resource
|
82
|
+
# @!attribute [rw] snapshot_id
|
83
|
+
# @return [::String]
|
84
|
+
# Required. ID of the snapshot to create.
|
85
|
+
# This value must start with a lowercase letter followed by up to 62
|
86
|
+
# lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
|
87
|
+
class CreateSnapshotRequest
|
88
|
+
include ::Google::Protobuf::MessageExts
|
89
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
90
|
+
end
|
91
|
+
|
92
|
+
# DeleteSnapshotRequest deletes a snapshot.
|
93
|
+
# @!attribute [rw] name
|
94
|
+
# @return [::String]
|
95
|
+
# Required. The snapshot resource name, in the format
|
96
|
+
# `projects/*/locations/*/volumes/*/snapshots/{snapshot_id}`
|
97
|
+
class DeleteSnapshotRequest
|
98
|
+
include ::Google::Protobuf::MessageExts
|
99
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
100
|
+
end
|
101
|
+
|
102
|
+
# UpdateSnapshotRequest updates description and/or labels for a snapshot.
|
103
|
+
# @!attribute [rw] update_mask
|
104
|
+
# @return [::Google::Protobuf::FieldMask]
|
105
|
+
# Required. Mask of fields to update. At least one path must be supplied in
|
106
|
+
# this field.
|
107
|
+
# @!attribute [rw] snapshot
|
108
|
+
# @return [::Google::Cloud::NetApp::V1::Snapshot]
|
109
|
+
# Required. A snapshot resource
|
110
|
+
class UpdateSnapshotRequest
|
111
|
+
include ::Google::Protobuf::MessageExts
|
112
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
113
|
+
end
|
114
|
+
|
115
|
+
# Snapshot is a point-in-time version of a Volume's content.
|
116
|
+
# @!attribute [r] name
|
117
|
+
# @return [::String]
|
118
|
+
# Output only. The resource name of the snapshot.
|
119
|
+
# Format:
|
120
|
+
# `projects/{project_id}/locations/{location}/volumes/{volume_id}/snapshots/{snapshot_id}`.
|
121
|
+
# @!attribute [r] state
|
122
|
+
# @return [::Google::Cloud::NetApp::V1::Snapshot::State]
|
123
|
+
# Output only. The snapshot state.
|
124
|
+
# @!attribute [r] state_details
|
125
|
+
# @return [::String]
|
126
|
+
# Output only. State details of the storage pool
|
127
|
+
# @!attribute [rw] description
|
128
|
+
# @return [::String]
|
129
|
+
# A description of the snapshot with 2048 characters or less.
|
130
|
+
# Requests with longer descriptions will be rejected.
|
131
|
+
# @!attribute [r] used_bytes
|
132
|
+
# @return [::Float]
|
133
|
+
# Output only. Current storage usage for the snapshot in bytes.
|
134
|
+
# @!attribute [r] create_time
|
135
|
+
# @return [::Google::Protobuf::Timestamp]
|
136
|
+
# Output only. The time when the snapshot was created.
|
137
|
+
# @!attribute [rw] labels
|
138
|
+
# @return [::Google::Protobuf::Map{::String => ::String}]
|
139
|
+
# Resource labels to represent user provided metadata.
|
140
|
+
class Snapshot
|
141
|
+
include ::Google::Protobuf::MessageExts
|
142
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
143
|
+
|
144
|
+
# @!attribute [rw] key
|
145
|
+
# @return [::String]
|
146
|
+
# @!attribute [rw] value
|
147
|
+
# @return [::String]
|
148
|
+
class LabelsEntry
|
149
|
+
include ::Google::Protobuf::MessageExts
|
150
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
151
|
+
end
|
152
|
+
|
153
|
+
# The Snapshot States
|
154
|
+
module State
|
155
|
+
# Unspecified Snapshot State
|
156
|
+
STATE_UNSPECIFIED = 0
|
157
|
+
|
158
|
+
# Snapshot State is Ready
|
159
|
+
READY = 1
|
160
|
+
|
161
|
+
# Snapshot State is Creating
|
162
|
+
CREATING = 2
|
163
|
+
|
164
|
+
# Snapshot State is Deleting
|
165
|
+
DELETING = 3
|
166
|
+
|
167
|
+
# Snapshot State is Updating
|
168
|
+
UPDATING = 4
|
169
|
+
|
170
|
+
# Snapshot State is Disabled
|
171
|
+
DISABLED = 5
|
172
|
+
|
173
|
+
# Snapshot State is Error
|
174
|
+
ERROR = 6
|
175
|
+
end
|
176
|
+
end
|
177
|
+
end
|
178
|
+
end
|
179
|
+
end
|
180
|
+
end
|
@@ -0,0 +1,211 @@
|
|
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
|
+
# GetStoragePoolRequest gets a Storage Pool.
|
25
|
+
# @!attribute [rw] name
|
26
|
+
# @return [::String]
|
27
|
+
# Required. Name of the storage pool
|
28
|
+
class GetStoragePoolRequest
|
29
|
+
include ::Google::Protobuf::MessageExts
|
30
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
31
|
+
end
|
32
|
+
|
33
|
+
# ListStoragePoolsRequest lists Storage Pools.
|
34
|
+
# @!attribute [rw] parent
|
35
|
+
# @return [::String]
|
36
|
+
# Required. Parent value
|
37
|
+
# @!attribute [rw] page_size
|
38
|
+
# @return [::Integer]
|
39
|
+
# The maximum number of items to return.
|
40
|
+
# @!attribute [rw] page_token
|
41
|
+
# @return [::String]
|
42
|
+
# The next_page_token value to use if there are additional
|
43
|
+
# results to retrieve for this list request.
|
44
|
+
# @!attribute [rw] order_by
|
45
|
+
# @return [::String]
|
46
|
+
# Sort results. Supported values are "name", "name desc" or "" (unsorted).
|
47
|
+
# @!attribute [rw] filter
|
48
|
+
# @return [::String]
|
49
|
+
# List filter.
|
50
|
+
class ListStoragePoolsRequest
|
51
|
+
include ::Google::Protobuf::MessageExts
|
52
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
53
|
+
end
|
54
|
+
|
55
|
+
# ListStoragePoolsResponse is the response to a ListStoragePoolsRequest.
|
56
|
+
# @!attribute [rw] storage_pools
|
57
|
+
# @return [::Array<::Google::Cloud::NetApp::V1::StoragePool>]
|
58
|
+
# The list of StoragePools
|
59
|
+
# @!attribute [rw] next_page_token
|
60
|
+
# @return [::String]
|
61
|
+
# A token identifying a page of results the server should return.
|
62
|
+
# @!attribute [rw] unreachable
|
63
|
+
# @return [::Array<::String>]
|
64
|
+
# Locations that could not be reached.
|
65
|
+
class ListStoragePoolsResponse
|
66
|
+
include ::Google::Protobuf::MessageExts
|
67
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
68
|
+
end
|
69
|
+
|
70
|
+
# CreateStoragePoolRequest creates a Storage Pool.
|
71
|
+
# @!attribute [rw] parent
|
72
|
+
# @return [::String]
|
73
|
+
# Required. Value for parent.
|
74
|
+
# @!attribute [rw] storage_pool_id
|
75
|
+
# @return [::String]
|
76
|
+
# Required. Id of the requesting storage pool
|
77
|
+
# If auto-generating Id server-side, remove this field and
|
78
|
+
# id from the method_signature of Create RPC
|
79
|
+
# @!attribute [rw] storage_pool
|
80
|
+
# @return [::Google::Cloud::NetApp::V1::StoragePool]
|
81
|
+
# Required. The required parameters to create a new storage pool.
|
82
|
+
class CreateStoragePoolRequest
|
83
|
+
include ::Google::Protobuf::MessageExts
|
84
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
85
|
+
end
|
86
|
+
|
87
|
+
# UpdateStoragePoolRequest updates a Storage Pool.
|
88
|
+
# @!attribute [rw] update_mask
|
89
|
+
# @return [::Google::Protobuf::FieldMask]
|
90
|
+
# Required. Field mask is used to specify the fields to be overwritten in the
|
91
|
+
# StoragePool resource by the update.
|
92
|
+
# The fields specified in the update_mask are relative to the resource, not
|
93
|
+
# the full request. A field will be overwritten if it is in the mask. If the
|
94
|
+
# user does not provide a mask then all fields will be overwritten.
|
95
|
+
# @!attribute [rw] storage_pool
|
96
|
+
# @return [::Google::Cloud::NetApp::V1::StoragePool]
|
97
|
+
# Required. The pool being updated
|
98
|
+
class UpdateStoragePoolRequest
|
99
|
+
include ::Google::Protobuf::MessageExts
|
100
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
101
|
+
end
|
102
|
+
|
103
|
+
# DeleteStoragePoolRequest deletes a Storage Pool.
|
104
|
+
# @!attribute [rw] name
|
105
|
+
# @return [::String]
|
106
|
+
# Required. Name of the storage pool
|
107
|
+
class DeleteStoragePoolRequest
|
108
|
+
include ::Google::Protobuf::MessageExts
|
109
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
110
|
+
end
|
111
|
+
|
112
|
+
# StoragePool is a container for volumes with a service level and capacity.
|
113
|
+
# Volumes can be created in a pool of sufficient available capacity.
|
114
|
+
# StoragePool capacity is what you are billed for.
|
115
|
+
# @!attribute [r] name
|
116
|
+
# @return [::String]
|
117
|
+
# Output only. Name of the storage pool
|
118
|
+
# @!attribute [rw] service_level
|
119
|
+
# @return [::Google::Cloud::NetApp::V1::ServiceLevel]
|
120
|
+
# Required. Service level of the storage pool
|
121
|
+
# @!attribute [rw] capacity_gib
|
122
|
+
# @return [::Integer]
|
123
|
+
# Required. Capacity in GIB of the pool
|
124
|
+
# @!attribute [r] volume_capacity_gib
|
125
|
+
# @return [::Integer]
|
126
|
+
# Output only. Allocated size of all volumes in GIB in the storage pool
|
127
|
+
# @!attribute [r] volume_count
|
128
|
+
# @return [::Integer]
|
129
|
+
# Output only. Volume count of the storage pool
|
130
|
+
# @!attribute [r] state
|
131
|
+
# @return [::Google::Cloud::NetApp::V1::StoragePool::State]
|
132
|
+
# Output only. State of the storage pool
|
133
|
+
# @!attribute [r] state_details
|
134
|
+
# @return [::String]
|
135
|
+
# Output only. State details of the storage pool
|
136
|
+
# @!attribute [r] create_time
|
137
|
+
# @return [::Google::Protobuf::Timestamp]
|
138
|
+
# Output only. Create time of the storage pool
|
139
|
+
# @!attribute [rw] description
|
140
|
+
# @return [::String]
|
141
|
+
# Description of the storage pool
|
142
|
+
# @!attribute [rw] labels
|
143
|
+
# @return [::Google::Protobuf::Map{::String => ::String}]
|
144
|
+
# Labels as key value pairs
|
145
|
+
# @!attribute [rw] network
|
146
|
+
# @return [::String]
|
147
|
+
# Required. VPC Network name.
|
148
|
+
# Format: projects/\\{project}/global/networks/\\{network}
|
149
|
+
# @!attribute [rw] active_directory
|
150
|
+
# @return [::String]
|
151
|
+
# Specifies the Active Directory to be used for creating a SMB volume.
|
152
|
+
# @!attribute [rw] kms_config
|
153
|
+
# @return [::String]
|
154
|
+
# Specifies the KMS config to be used for volume encryption.
|
155
|
+
# @!attribute [rw] ldap_enabled
|
156
|
+
# @return [::Boolean]
|
157
|
+
# Flag indicating if the pool is NFS LDAP enabled or not.
|
158
|
+
# @!attribute [rw] psa_range
|
159
|
+
# @return [::String]
|
160
|
+
# Name of the Private Service Access allocated range. If
|
161
|
+
# not provided, any available range will be chosen.
|
162
|
+
# @!attribute [r] encryption_type
|
163
|
+
# @return [::Google::Cloud::NetApp::V1::EncryptionType]
|
164
|
+
# Output only. Specifies the current pool encryption key source.
|
165
|
+
# @!attribute [rw] global_access_allowed
|
166
|
+
# @return [::Boolean]
|
167
|
+
# Optional. Allows SO pool to access AD or DNS server from other regions.
|
168
|
+
class StoragePool
|
169
|
+
include ::Google::Protobuf::MessageExts
|
170
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
171
|
+
|
172
|
+
# @!attribute [rw] key
|
173
|
+
# @return [::String]
|
174
|
+
# @!attribute [rw] value
|
175
|
+
# @return [::String]
|
176
|
+
class LabelsEntry
|
177
|
+
include ::Google::Protobuf::MessageExts
|
178
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
179
|
+
end
|
180
|
+
|
181
|
+
# The Storage Pool States
|
182
|
+
module State
|
183
|
+
# Unspecified Storage Pool State
|
184
|
+
STATE_UNSPECIFIED = 0
|
185
|
+
|
186
|
+
# Storage Pool State is Ready
|
187
|
+
READY = 1
|
188
|
+
|
189
|
+
# Storage Pool State is Creating
|
190
|
+
CREATING = 2
|
191
|
+
|
192
|
+
# Storage Pool State is Deleting
|
193
|
+
DELETING = 3
|
194
|
+
|
195
|
+
# Storage Pool State is Updating
|
196
|
+
UPDATING = 4
|
197
|
+
|
198
|
+
# Storage Pool State is Restoring
|
199
|
+
RESTORING = 5
|
200
|
+
|
201
|
+
# Storage Pool State is Disabled
|
202
|
+
DISABLED = 6
|
203
|
+
|
204
|
+
# Storage Pool State is Error
|
205
|
+
ERROR = 7
|
206
|
+
end
|
207
|
+
end
|
208
|
+
end
|
209
|
+
end
|
210
|
+
end
|
211
|
+
end
|