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