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,185 @@
|
|
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
|
+
module NetApp
|
25
|
+
# Path helper methods for the NetApp API.
|
26
|
+
module Paths
|
27
|
+
##
|
28
|
+
# Create a fully-qualified ActiveDirectory resource string.
|
29
|
+
#
|
30
|
+
# The resource will be in the following format:
|
31
|
+
#
|
32
|
+
# `projects/{project}/locations/{location}/activeDirectories/{active_directory}`
|
33
|
+
#
|
34
|
+
# @param project [String]
|
35
|
+
# @param location [String]
|
36
|
+
# @param active_directory [String]
|
37
|
+
#
|
38
|
+
# @return [::String]
|
39
|
+
def active_directory_path project:, location:, active_directory:
|
40
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
41
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
42
|
+
|
43
|
+
"projects/#{project}/locations/#{location}/activeDirectories/#{active_directory}"
|
44
|
+
end
|
45
|
+
|
46
|
+
##
|
47
|
+
# Create a fully-qualified KmsConfig resource string.
|
48
|
+
#
|
49
|
+
# The resource will be in the following format:
|
50
|
+
#
|
51
|
+
# `projects/{project}/locations/{location}/kmsConfigs/{kms_config}`
|
52
|
+
#
|
53
|
+
# @param project [String]
|
54
|
+
# @param location [String]
|
55
|
+
# @param kms_config [String]
|
56
|
+
#
|
57
|
+
# @return [::String]
|
58
|
+
def kms_config_path project:, location:, kms_config:
|
59
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
60
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
61
|
+
|
62
|
+
"projects/#{project}/locations/#{location}/kmsConfigs/#{kms_config}"
|
63
|
+
end
|
64
|
+
|
65
|
+
##
|
66
|
+
# Create a fully-qualified Location resource string.
|
67
|
+
#
|
68
|
+
# The resource will be in the following format:
|
69
|
+
#
|
70
|
+
# `projects/{project}/locations/{location}`
|
71
|
+
#
|
72
|
+
# @param project [String]
|
73
|
+
# @param location [String]
|
74
|
+
#
|
75
|
+
# @return [::String]
|
76
|
+
def location_path project:, location:
|
77
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
78
|
+
|
79
|
+
"projects/#{project}/locations/#{location}"
|
80
|
+
end
|
81
|
+
|
82
|
+
##
|
83
|
+
# Create a fully-qualified Network resource string.
|
84
|
+
#
|
85
|
+
# The resource will be in the following format:
|
86
|
+
#
|
87
|
+
# `projects/{project}/global/networks/{network}`
|
88
|
+
#
|
89
|
+
# @param project [String]
|
90
|
+
# @param network [String]
|
91
|
+
#
|
92
|
+
# @return [::String]
|
93
|
+
def network_path project:, network:
|
94
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
95
|
+
|
96
|
+
"projects/#{project}/global/networks/#{network}"
|
97
|
+
end
|
98
|
+
|
99
|
+
##
|
100
|
+
# Create a fully-qualified Replication resource string.
|
101
|
+
#
|
102
|
+
# The resource will be in the following format:
|
103
|
+
#
|
104
|
+
# `projects/{project}/locations/{location}/volumes/{volume}/replications/{replication}`
|
105
|
+
#
|
106
|
+
# @param project [String]
|
107
|
+
# @param location [String]
|
108
|
+
# @param volume [String]
|
109
|
+
# @param replication [String]
|
110
|
+
#
|
111
|
+
# @return [::String]
|
112
|
+
def replication_path project:, location:, volume:, replication:
|
113
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
114
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
115
|
+
raise ::ArgumentError, "volume cannot contain /" if volume.to_s.include? "/"
|
116
|
+
|
117
|
+
"projects/#{project}/locations/#{location}/volumes/#{volume}/replications/#{replication}"
|
118
|
+
end
|
119
|
+
|
120
|
+
##
|
121
|
+
# Create a fully-qualified Snapshot resource string.
|
122
|
+
#
|
123
|
+
# The resource will be in the following format:
|
124
|
+
#
|
125
|
+
# `projects/{project}/locations/{location}/volumes/{volume}/snapshots/{snapshot}`
|
126
|
+
#
|
127
|
+
# @param project [String]
|
128
|
+
# @param location [String]
|
129
|
+
# @param volume [String]
|
130
|
+
# @param snapshot [String]
|
131
|
+
#
|
132
|
+
# @return [::String]
|
133
|
+
def snapshot_path project:, location:, volume:, snapshot:
|
134
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
135
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
136
|
+
raise ::ArgumentError, "volume cannot contain /" if volume.to_s.include? "/"
|
137
|
+
|
138
|
+
"projects/#{project}/locations/#{location}/volumes/#{volume}/snapshots/#{snapshot}"
|
139
|
+
end
|
140
|
+
|
141
|
+
##
|
142
|
+
# Create a fully-qualified StoragePool resource string.
|
143
|
+
#
|
144
|
+
# The resource will be in the following format:
|
145
|
+
#
|
146
|
+
# `projects/{project}/locations/{location}/storagePools/{storage_pool}`
|
147
|
+
#
|
148
|
+
# @param project [String]
|
149
|
+
# @param location [String]
|
150
|
+
# @param storage_pool [String]
|
151
|
+
#
|
152
|
+
# @return [::String]
|
153
|
+
def storage_pool_path project:, location:, storage_pool:
|
154
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
155
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
156
|
+
|
157
|
+
"projects/#{project}/locations/#{location}/storagePools/#{storage_pool}"
|
158
|
+
end
|
159
|
+
|
160
|
+
##
|
161
|
+
# Create a fully-qualified Volume resource string.
|
162
|
+
#
|
163
|
+
# The resource will be in the following format:
|
164
|
+
#
|
165
|
+
# `projects/{project}/locations/{location}/volumes/{volume}`
|
166
|
+
#
|
167
|
+
# @param project [String]
|
168
|
+
# @param location [String]
|
169
|
+
# @param volume [String]
|
170
|
+
#
|
171
|
+
# @return [::String]
|
172
|
+
def volume_path project:, location:, volume:
|
173
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
174
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
175
|
+
|
176
|
+
"projects/#{project}/locations/#{location}/volumes/#{volume}"
|
177
|
+
end
|
178
|
+
|
179
|
+
extend self
|
180
|
+
end
|
181
|
+
end
|
182
|
+
end
|
183
|
+
end
|
184
|
+
end
|
185
|
+
end
|