google-cloud-migration_center-v1 0.a → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.yardopts +12 -0
- data/AUTHENTICATION.md +149 -0
- data/README.md +144 -8
- data/lib/google/cloud/migration_center/v1/bindings_override.rb +102 -0
- data/lib/google/cloud/migration_center/v1/migration_center/client.rb +5575 -0
- data/lib/google/cloud/migration_center/v1/migration_center/credentials.rb +47 -0
- data/lib/google/cloud/migration_center/v1/migration_center/operations.rb +779 -0
- data/lib/google/cloud/migration_center/v1/migration_center/paths.rb +244 -0
- data/lib/google/cloud/migration_center/v1/migration_center/rest/client.rb +5209 -0
- data/lib/google/cloud/migration_center/v1/migration_center/rest/operations.rb +870 -0
- data/lib/google/cloud/migration_center/v1/migration_center/rest/service_stub.rb +2901 -0
- data/lib/google/cloud/migration_center/v1/migration_center/rest.rb +54 -0
- data/lib/google/cloud/migration_center/v1/migration_center.rb +56 -0
- data/lib/google/cloud/migration_center/v1/rest.rb +38 -0
- data/lib/google/cloud/migration_center/v1/version.rb +7 -2
- data/lib/google/cloud/migration_center/v1.rb +45 -0
- data/lib/google/cloud/migrationcenter/v1/migrationcenter_pb.rb +267 -0
- data/lib/google/cloud/migrationcenter/v1/migrationcenter_services_pb.rb +139 -0
- data/lib/google-cloud-migration_center-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/migrationcenter/v1/migrationcenter.rb +3953 -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
- data/proto_docs/google/type/date.rb +53 -0
- data/proto_docs/google/type/money.rb +43 -0
- metadata +211 -12
@@ -0,0 +1,244 @@
|
|
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 MigrationCenter
|
23
|
+
module V1
|
24
|
+
module MigrationCenter
|
25
|
+
# Path helper methods for the MigrationCenter API.
|
26
|
+
module Paths
|
27
|
+
##
|
28
|
+
# Create a fully-qualified Asset resource string.
|
29
|
+
#
|
30
|
+
# The resource will be in the following format:
|
31
|
+
#
|
32
|
+
# `projects/{project}/locations/{location}/assets/{asset}`
|
33
|
+
#
|
34
|
+
# @param project [String]
|
35
|
+
# @param location [String]
|
36
|
+
# @param asset [String]
|
37
|
+
#
|
38
|
+
# @return [::String]
|
39
|
+
def asset_path project:, location:, asset:
|
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}/assets/#{asset}"
|
44
|
+
end
|
45
|
+
|
46
|
+
##
|
47
|
+
# Create a fully-qualified ErrorFrame resource string.
|
48
|
+
#
|
49
|
+
# The resource will be in the following format:
|
50
|
+
#
|
51
|
+
# `projects/{project}/locations/{location}/sources/{source}/errorFrames/{error_frame}`
|
52
|
+
#
|
53
|
+
# @param project [String]
|
54
|
+
# @param location [String]
|
55
|
+
# @param source [String]
|
56
|
+
# @param error_frame [String]
|
57
|
+
#
|
58
|
+
# @return [::String]
|
59
|
+
def error_frame_path project:, location:, source:, error_frame:
|
60
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
61
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
62
|
+
raise ::ArgumentError, "source cannot contain /" if source.to_s.include? "/"
|
63
|
+
|
64
|
+
"projects/#{project}/locations/#{location}/sources/#{source}/errorFrames/#{error_frame}"
|
65
|
+
end
|
66
|
+
|
67
|
+
##
|
68
|
+
# Create a fully-qualified Group resource string.
|
69
|
+
#
|
70
|
+
# The resource will be in the following format:
|
71
|
+
#
|
72
|
+
# `projects/{project}/locations/{location}/groups/{group}`
|
73
|
+
#
|
74
|
+
# @param project [String]
|
75
|
+
# @param location [String]
|
76
|
+
# @param group [String]
|
77
|
+
#
|
78
|
+
# @return [::String]
|
79
|
+
def group_path project:, location:, group:
|
80
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
81
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
82
|
+
|
83
|
+
"projects/#{project}/locations/#{location}/groups/#{group}"
|
84
|
+
end
|
85
|
+
|
86
|
+
##
|
87
|
+
# Create a fully-qualified ImportDataFile resource string.
|
88
|
+
#
|
89
|
+
# The resource will be in the following format:
|
90
|
+
#
|
91
|
+
# `projects/{project}/locations/{location}/importJobs/{import_job}/importDataFiles/{import_data_file}`
|
92
|
+
#
|
93
|
+
# @param project [String]
|
94
|
+
# @param location [String]
|
95
|
+
# @param import_job [String]
|
96
|
+
# @param import_data_file [String]
|
97
|
+
#
|
98
|
+
# @return [::String]
|
99
|
+
def import_data_file_path project:, location:, import_job:, import_data_file:
|
100
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
101
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
102
|
+
raise ::ArgumentError, "import_job cannot contain /" if import_job.to_s.include? "/"
|
103
|
+
|
104
|
+
"projects/#{project}/locations/#{location}/importJobs/#{import_job}/importDataFiles/#{import_data_file}"
|
105
|
+
end
|
106
|
+
|
107
|
+
##
|
108
|
+
# Create a fully-qualified ImportJob resource string.
|
109
|
+
#
|
110
|
+
# The resource will be in the following format:
|
111
|
+
#
|
112
|
+
# `projects/{project}/locations/{location}/importJobs/{import_job}`
|
113
|
+
#
|
114
|
+
# @param project [String]
|
115
|
+
# @param location [String]
|
116
|
+
# @param import_job [String]
|
117
|
+
#
|
118
|
+
# @return [::String]
|
119
|
+
def import_job_path project:, location:, import_job:
|
120
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
121
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
122
|
+
|
123
|
+
"projects/#{project}/locations/#{location}/importJobs/#{import_job}"
|
124
|
+
end
|
125
|
+
|
126
|
+
##
|
127
|
+
# Create a fully-qualified Location resource string.
|
128
|
+
#
|
129
|
+
# The resource will be in the following format:
|
130
|
+
#
|
131
|
+
# `projects/{project}/locations/{location}`
|
132
|
+
#
|
133
|
+
# @param project [String]
|
134
|
+
# @param location [String]
|
135
|
+
#
|
136
|
+
# @return [::String]
|
137
|
+
def location_path project:, location:
|
138
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
139
|
+
|
140
|
+
"projects/#{project}/locations/#{location}"
|
141
|
+
end
|
142
|
+
|
143
|
+
##
|
144
|
+
# Create a fully-qualified PreferenceSet resource string.
|
145
|
+
#
|
146
|
+
# The resource will be in the following format:
|
147
|
+
#
|
148
|
+
# `projects/{project}/locations/{location}/preferenceSets/{preference_set}`
|
149
|
+
#
|
150
|
+
# @param project [String]
|
151
|
+
# @param location [String]
|
152
|
+
# @param preference_set [String]
|
153
|
+
#
|
154
|
+
# @return [::String]
|
155
|
+
def preference_set_path project:, location:, preference_set:
|
156
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
157
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
158
|
+
|
159
|
+
"projects/#{project}/locations/#{location}/preferenceSets/#{preference_set}"
|
160
|
+
end
|
161
|
+
|
162
|
+
##
|
163
|
+
# Create a fully-qualified Report resource string.
|
164
|
+
#
|
165
|
+
# The resource will be in the following format:
|
166
|
+
#
|
167
|
+
# `projects/{project}/locations/{location}/reportConfigs/{report_config}/reports/{report}`
|
168
|
+
#
|
169
|
+
# @param project [String]
|
170
|
+
# @param location [String]
|
171
|
+
# @param report_config [String]
|
172
|
+
# @param report [String]
|
173
|
+
#
|
174
|
+
# @return [::String]
|
175
|
+
def report_path project:, location:, report_config:, report:
|
176
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
177
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
178
|
+
raise ::ArgumentError, "report_config cannot contain /" if report_config.to_s.include? "/"
|
179
|
+
|
180
|
+
"projects/#{project}/locations/#{location}/reportConfigs/#{report_config}/reports/#{report}"
|
181
|
+
end
|
182
|
+
|
183
|
+
##
|
184
|
+
# Create a fully-qualified ReportConfig resource string.
|
185
|
+
#
|
186
|
+
# The resource will be in the following format:
|
187
|
+
#
|
188
|
+
# `projects/{project}/locations/{location}/reportConfigs/{report_config}`
|
189
|
+
#
|
190
|
+
# @param project [String]
|
191
|
+
# @param location [String]
|
192
|
+
# @param report_config [String]
|
193
|
+
#
|
194
|
+
# @return [::String]
|
195
|
+
def report_config_path project:, location:, report_config:
|
196
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
197
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
198
|
+
|
199
|
+
"projects/#{project}/locations/#{location}/reportConfigs/#{report_config}"
|
200
|
+
end
|
201
|
+
|
202
|
+
##
|
203
|
+
# Create a fully-qualified Settings resource string.
|
204
|
+
#
|
205
|
+
# The resource will be in the following format:
|
206
|
+
#
|
207
|
+
# `projects/{project}/locations/{location}/settings`
|
208
|
+
#
|
209
|
+
# @param project [String]
|
210
|
+
# @param location [String]
|
211
|
+
#
|
212
|
+
# @return [::String]
|
213
|
+
def settings_path project:, location:
|
214
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
215
|
+
|
216
|
+
"projects/#{project}/locations/#{location}/settings"
|
217
|
+
end
|
218
|
+
|
219
|
+
##
|
220
|
+
# Create a fully-qualified Source resource string.
|
221
|
+
#
|
222
|
+
# The resource will be in the following format:
|
223
|
+
#
|
224
|
+
# `projects/{project}/locations/{location}/sources/{source}`
|
225
|
+
#
|
226
|
+
# @param project [String]
|
227
|
+
# @param location [String]
|
228
|
+
# @param source [String]
|
229
|
+
#
|
230
|
+
# @return [::String]
|
231
|
+
def source_path project:, location:, source:
|
232
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
233
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
234
|
+
|
235
|
+
"projects/#{project}/locations/#{location}/sources/#{source}"
|
236
|
+
end
|
237
|
+
|
238
|
+
extend self
|
239
|
+
end
|
240
|
+
end
|
241
|
+
end
|
242
|
+
end
|
243
|
+
end
|
244
|
+
end
|