google-cloud-vm_migration-v1 2.2.0 → 2.4.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.
@@ -313,6 +313,46 @@ module Google
313
313
  end
314
314
  end
315
315
 
316
+ ##
317
+ # Baseline implementation for the fetch_storage_inventory REST call
318
+ #
319
+ # @param request_pb [::Google::Cloud::VMMigration::V1::FetchStorageInventoryRequest]
320
+ # A request object representing the call parameters. Required.
321
+ # @param options [::Gapic::CallOptions]
322
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
323
+ #
324
+ # @yield [result, operation] Access the result along with the TransportOperation object
325
+ # @yieldparam result [::Google::Cloud::VMMigration::V1::FetchStorageInventoryResponse]
326
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
327
+ #
328
+ # @return [::Google::Cloud::VMMigration::V1::FetchStorageInventoryResponse]
329
+ # A result object deserialized from the server's reply
330
+ def fetch_storage_inventory request_pb, options = nil
331
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
332
+
333
+ verb, uri, query_string_params, body = ServiceStub.transcode_fetch_storage_inventory_request request_pb
334
+ query_string_params = if query_string_params.any?
335
+ query_string_params.to_h { |p| p.split "=", 2 }
336
+ else
337
+ {}
338
+ end
339
+
340
+ response = @client_stub.make_http_request(
341
+ verb,
342
+ uri: uri,
343
+ body: body || "",
344
+ params: query_string_params,
345
+ method_name: "fetch_storage_inventory",
346
+ options: options
347
+ )
348
+ operation = ::Gapic::Rest::TransportOperation.new response
349
+ result = ::Google::Cloud::VMMigration::V1::FetchStorageInventoryResponse.decode_json response.body, ignore_unknown_fields: true
350
+ catch :response do
351
+ yield result, operation if block_given?
352
+ result
353
+ end
354
+ end
355
+
316
356
  ##
317
357
  # Baseline implementation for the list_utilization_reports REST call
318
358
  #
@@ -1033,6 +1073,46 @@ module Google
1033
1073
  end
1034
1074
  end
1035
1075
 
1076
+ ##
1077
+ # Baseline implementation for the extend_migration REST call
1078
+ #
1079
+ # @param request_pb [::Google::Cloud::VMMigration::V1::ExtendMigrationRequest]
1080
+ # A request object representing the call parameters. Required.
1081
+ # @param options [::Gapic::CallOptions]
1082
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1083
+ #
1084
+ # @yield [result, operation] Access the result along with the TransportOperation object
1085
+ # @yieldparam result [::Google::Longrunning::Operation]
1086
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1087
+ #
1088
+ # @return [::Google::Longrunning::Operation]
1089
+ # A result object deserialized from the server's reply
1090
+ def extend_migration request_pb, options = nil
1091
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1092
+
1093
+ verb, uri, query_string_params, body = ServiceStub.transcode_extend_migration_request request_pb
1094
+ query_string_params = if query_string_params.any?
1095
+ query_string_params.to_h { |p| p.split "=", 2 }
1096
+ else
1097
+ {}
1098
+ end
1099
+
1100
+ response = @client_stub.make_http_request(
1101
+ verb,
1102
+ uri: uri,
1103
+ body: body || "",
1104
+ params: query_string_params,
1105
+ method_name: "extend_migration",
1106
+ options: options
1107
+ )
1108
+ operation = ::Gapic::Rest::TransportOperation.new response
1109
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
1110
+ catch :response do
1111
+ yield result, operation if block_given?
1112
+ result
1113
+ end
1114
+ end
1115
+
1036
1116
  ##
1037
1117
  # Baseline implementation for the create_clone_job REST call
1038
1118
  #
@@ -1914,139 +1994,720 @@ module Google
1914
1994
  end
1915
1995
 
1916
1996
  ##
1917
- # @private
1997
+ # Baseline implementation for the list_image_imports REST call
1918
1998
  #
1919
- # GRPC transcoding helper method for the list_sources REST call
1920
- #
1921
- # @param request_pb [::Google::Cloud::VMMigration::V1::ListSourcesRequest]
1999
+ # @param request_pb [::Google::Cloud::VMMigration::V1::ListImageImportsRequest]
1922
2000
  # A request object representing the call parameters. Required.
1923
- # @return [Array(String, [String, nil], Hash{String => String})]
1924
- # Uri, Body, Query string parameters
1925
- def self.transcode_list_sources_request request_pb
1926
- transcoder = Gapic::Rest::GrpcTranscoder.new
1927
- .with_bindings(
1928
- uri_method: :get,
1929
- uri_template: "/v1/{parent}/sources",
1930
- matches: [
1931
- ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
1932
- ]
1933
- )
1934
- transcoder.transcode request_pb
1935
- end
1936
-
1937
- ##
1938
- # @private
2001
+ # @param options [::Gapic::CallOptions]
2002
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1939
2003
  #
1940
- # GRPC transcoding helper method for the get_source REST call
2004
+ # @yield [result, operation] Access the result along with the TransportOperation object
2005
+ # @yieldparam result [::Google::Cloud::VMMigration::V1::ListImageImportsResponse]
2006
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1941
2007
  #
1942
- # @param request_pb [::Google::Cloud::VMMigration::V1::GetSourceRequest]
1943
- # A request object representing the call parameters. Required.
1944
- # @return [Array(String, [String, nil], Hash{String => String})]
1945
- # Uri, Body, Query string parameters
1946
- def self.transcode_get_source_request request_pb
1947
- transcoder = Gapic::Rest::GrpcTranscoder.new
1948
- .with_bindings(
1949
- uri_method: :get,
1950
- uri_template: "/v1/{name}",
1951
- matches: [
1952
- ["name", %r{^projects/[^/]+/locations/[^/]+/sources/[^/]+/?$}, false]
1953
- ]
1954
- )
1955
- transcoder.transcode request_pb
2008
+ # @return [::Google::Cloud::VMMigration::V1::ListImageImportsResponse]
2009
+ # A result object deserialized from the server's reply
2010
+ def list_image_imports request_pb, options = nil
2011
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
2012
+
2013
+ verb, uri, query_string_params, body = ServiceStub.transcode_list_image_imports_request request_pb
2014
+ query_string_params = if query_string_params.any?
2015
+ query_string_params.to_h { |p| p.split "=", 2 }
2016
+ else
2017
+ {}
2018
+ end
2019
+
2020
+ response = @client_stub.make_http_request(
2021
+ verb,
2022
+ uri: uri,
2023
+ body: body || "",
2024
+ params: query_string_params,
2025
+ method_name: "list_image_imports",
2026
+ options: options
2027
+ )
2028
+ operation = ::Gapic::Rest::TransportOperation.new response
2029
+ result = ::Google::Cloud::VMMigration::V1::ListImageImportsResponse.decode_json response.body, ignore_unknown_fields: true
2030
+ catch :response do
2031
+ yield result, operation if block_given?
2032
+ result
2033
+ end
1956
2034
  end
1957
2035
 
1958
2036
  ##
1959
- # @private
2037
+ # Baseline implementation for the get_image_import REST call
1960
2038
  #
1961
- # GRPC transcoding helper method for the create_source REST call
1962
- #
1963
- # @param request_pb [::Google::Cloud::VMMigration::V1::CreateSourceRequest]
2039
+ # @param request_pb [::Google::Cloud::VMMigration::V1::GetImageImportRequest]
1964
2040
  # A request object representing the call parameters. Required.
1965
- # @return [Array(String, [String, nil], Hash{String => String})]
1966
- # Uri, Body, Query string parameters
1967
- def self.transcode_create_source_request request_pb
1968
- transcoder = Gapic::Rest::GrpcTranscoder.new
1969
- .with_bindings(
1970
- uri_method: :post,
1971
- uri_template: "/v1/{parent}/sources",
1972
- body: "source",
1973
- matches: [
1974
- ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
1975
- ]
1976
- )
1977
- transcoder.transcode request_pb
1978
- end
1979
-
1980
- ##
1981
- # @private
2041
+ # @param options [::Gapic::CallOptions]
2042
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1982
2043
  #
1983
- # GRPC transcoding helper method for the update_source REST call
2044
+ # @yield [result, operation] Access the result along with the TransportOperation object
2045
+ # @yieldparam result [::Google::Cloud::VMMigration::V1::ImageImport]
2046
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1984
2047
  #
1985
- # @param request_pb [::Google::Cloud::VMMigration::V1::UpdateSourceRequest]
1986
- # A request object representing the call parameters. Required.
1987
- # @return [Array(String, [String, nil], Hash{String => String})]
1988
- # Uri, Body, Query string parameters
1989
- def self.transcode_update_source_request request_pb
1990
- transcoder = Gapic::Rest::GrpcTranscoder.new
1991
- .with_bindings(
1992
- uri_method: :patch,
1993
- uri_template: "/v1/{source.name}",
1994
- body: "source",
1995
- matches: [
1996
- ["source.name", %r{^projects/[^/]+/locations/[^/]+/sources/[^/]+/?$}, false]
1997
- ]
1998
- )
1999
- transcoder.transcode request_pb
2048
+ # @return [::Google::Cloud::VMMigration::V1::ImageImport]
2049
+ # A result object deserialized from the server's reply
2050
+ def get_image_import request_pb, options = nil
2051
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
2052
+
2053
+ verb, uri, query_string_params, body = ServiceStub.transcode_get_image_import_request request_pb
2054
+ query_string_params = if query_string_params.any?
2055
+ query_string_params.to_h { |p| p.split "=", 2 }
2056
+ else
2057
+ {}
2058
+ end
2059
+
2060
+ response = @client_stub.make_http_request(
2061
+ verb,
2062
+ uri: uri,
2063
+ body: body || "",
2064
+ params: query_string_params,
2065
+ method_name: "get_image_import",
2066
+ options: options
2067
+ )
2068
+ operation = ::Gapic::Rest::TransportOperation.new response
2069
+ result = ::Google::Cloud::VMMigration::V1::ImageImport.decode_json response.body, ignore_unknown_fields: true
2070
+ catch :response do
2071
+ yield result, operation if block_given?
2072
+ result
2073
+ end
2000
2074
  end
2001
2075
 
2002
2076
  ##
2003
- # @private
2004
- #
2005
- # GRPC transcoding helper method for the delete_source REST call
2077
+ # Baseline implementation for the create_image_import REST call
2006
2078
  #
2007
- # @param request_pb [::Google::Cloud::VMMigration::V1::DeleteSourceRequest]
2079
+ # @param request_pb [::Google::Cloud::VMMigration::V1::CreateImageImportRequest]
2008
2080
  # A request object representing the call parameters. Required.
2009
- # @return [Array(String, [String, nil], Hash{String => String})]
2010
- # Uri, Body, Query string parameters
2011
- def self.transcode_delete_source_request request_pb
2012
- transcoder = Gapic::Rest::GrpcTranscoder.new
2013
- .with_bindings(
2014
- uri_method: :delete,
2015
- uri_template: "/v1/{name}",
2016
- matches: [
2017
- ["name", %r{^projects/[^/]+/locations/[^/]+/sources/[^/]+/?$}, false]
2018
- ]
2019
- )
2020
- transcoder.transcode request_pb
2021
- end
2022
-
2023
- ##
2024
- # @private
2081
+ # @param options [::Gapic::CallOptions]
2082
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
2025
2083
  #
2026
- # GRPC transcoding helper method for the fetch_inventory REST call
2084
+ # @yield [result, operation] Access the result along with the TransportOperation object
2085
+ # @yieldparam result [::Google::Longrunning::Operation]
2086
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
2027
2087
  #
2028
- # @param request_pb [::Google::Cloud::VMMigration::V1::FetchInventoryRequest]
2029
- # A request object representing the call parameters. Required.
2030
- # @return [Array(String, [String, nil], Hash{String => String})]
2031
- # Uri, Body, Query string parameters
2032
- def self.transcode_fetch_inventory_request request_pb
2033
- transcoder = Gapic::Rest::GrpcTranscoder.new
2034
- .with_bindings(
2035
- uri_method: :get,
2036
- uri_template: "/v1/{source}:fetchInventory",
2037
- matches: [
2038
- ["source", %r{^projects/[^/]+/locations/[^/]+/sources/[^/]+/?$}, false]
2039
- ]
2040
- )
2041
- transcoder.transcode request_pb
2088
+ # @return [::Google::Longrunning::Operation]
2089
+ # A result object deserialized from the server's reply
2090
+ def create_image_import request_pb, options = nil
2091
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
2092
+
2093
+ verb, uri, query_string_params, body = ServiceStub.transcode_create_image_import_request request_pb
2094
+ query_string_params = if query_string_params.any?
2095
+ query_string_params.to_h { |p| p.split "=", 2 }
2096
+ else
2097
+ {}
2098
+ end
2099
+
2100
+ response = @client_stub.make_http_request(
2101
+ verb,
2102
+ uri: uri,
2103
+ body: body || "",
2104
+ params: query_string_params,
2105
+ method_name: "create_image_import",
2106
+ options: options
2107
+ )
2108
+ operation = ::Gapic::Rest::TransportOperation.new response
2109
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
2110
+ catch :response do
2111
+ yield result, operation if block_given?
2112
+ result
2113
+ end
2042
2114
  end
2043
2115
 
2044
2116
  ##
2045
- # @private
2046
- #
2047
- # GRPC transcoding helper method for the list_utilization_reports REST call
2117
+ # Baseline implementation for the delete_image_import REST call
2048
2118
  #
2049
- # @param request_pb [::Google::Cloud::VMMigration::V1::ListUtilizationReportsRequest]
2119
+ # @param request_pb [::Google::Cloud::VMMigration::V1::DeleteImageImportRequest]
2120
+ # A request object representing the call parameters. Required.
2121
+ # @param options [::Gapic::CallOptions]
2122
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
2123
+ #
2124
+ # @yield [result, operation] Access the result along with the TransportOperation object
2125
+ # @yieldparam result [::Google::Longrunning::Operation]
2126
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
2127
+ #
2128
+ # @return [::Google::Longrunning::Operation]
2129
+ # A result object deserialized from the server's reply
2130
+ def delete_image_import request_pb, options = nil
2131
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
2132
+
2133
+ verb, uri, query_string_params, body = ServiceStub.transcode_delete_image_import_request request_pb
2134
+ query_string_params = if query_string_params.any?
2135
+ query_string_params.to_h { |p| p.split "=", 2 }
2136
+ else
2137
+ {}
2138
+ end
2139
+
2140
+ response = @client_stub.make_http_request(
2141
+ verb,
2142
+ uri: uri,
2143
+ body: body || "",
2144
+ params: query_string_params,
2145
+ method_name: "delete_image_import",
2146
+ options: options
2147
+ )
2148
+ operation = ::Gapic::Rest::TransportOperation.new response
2149
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
2150
+ catch :response do
2151
+ yield result, operation if block_given?
2152
+ result
2153
+ end
2154
+ end
2155
+
2156
+ ##
2157
+ # Baseline implementation for the list_image_import_jobs REST call
2158
+ #
2159
+ # @param request_pb [::Google::Cloud::VMMigration::V1::ListImageImportJobsRequest]
2160
+ # A request object representing the call parameters. Required.
2161
+ # @param options [::Gapic::CallOptions]
2162
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
2163
+ #
2164
+ # @yield [result, operation] Access the result along with the TransportOperation object
2165
+ # @yieldparam result [::Google::Cloud::VMMigration::V1::ListImageImportJobsResponse]
2166
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
2167
+ #
2168
+ # @return [::Google::Cloud::VMMigration::V1::ListImageImportJobsResponse]
2169
+ # A result object deserialized from the server's reply
2170
+ def list_image_import_jobs request_pb, options = nil
2171
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
2172
+
2173
+ verb, uri, query_string_params, body = ServiceStub.transcode_list_image_import_jobs_request request_pb
2174
+ query_string_params = if query_string_params.any?
2175
+ query_string_params.to_h { |p| p.split "=", 2 }
2176
+ else
2177
+ {}
2178
+ end
2179
+
2180
+ response = @client_stub.make_http_request(
2181
+ verb,
2182
+ uri: uri,
2183
+ body: body || "",
2184
+ params: query_string_params,
2185
+ method_name: "list_image_import_jobs",
2186
+ options: options
2187
+ )
2188
+ operation = ::Gapic::Rest::TransportOperation.new response
2189
+ result = ::Google::Cloud::VMMigration::V1::ListImageImportJobsResponse.decode_json response.body, ignore_unknown_fields: true
2190
+ catch :response do
2191
+ yield result, operation if block_given?
2192
+ result
2193
+ end
2194
+ end
2195
+
2196
+ ##
2197
+ # Baseline implementation for the get_image_import_job REST call
2198
+ #
2199
+ # @param request_pb [::Google::Cloud::VMMigration::V1::GetImageImportJobRequest]
2200
+ # A request object representing the call parameters. Required.
2201
+ # @param options [::Gapic::CallOptions]
2202
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
2203
+ #
2204
+ # @yield [result, operation] Access the result along with the TransportOperation object
2205
+ # @yieldparam result [::Google::Cloud::VMMigration::V1::ImageImportJob]
2206
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
2207
+ #
2208
+ # @return [::Google::Cloud::VMMigration::V1::ImageImportJob]
2209
+ # A result object deserialized from the server's reply
2210
+ def get_image_import_job request_pb, options = nil
2211
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
2212
+
2213
+ verb, uri, query_string_params, body = ServiceStub.transcode_get_image_import_job_request request_pb
2214
+ query_string_params = if query_string_params.any?
2215
+ query_string_params.to_h { |p| p.split "=", 2 }
2216
+ else
2217
+ {}
2218
+ end
2219
+
2220
+ response = @client_stub.make_http_request(
2221
+ verb,
2222
+ uri: uri,
2223
+ body: body || "",
2224
+ params: query_string_params,
2225
+ method_name: "get_image_import_job",
2226
+ options: options
2227
+ )
2228
+ operation = ::Gapic::Rest::TransportOperation.new response
2229
+ result = ::Google::Cloud::VMMigration::V1::ImageImportJob.decode_json response.body, ignore_unknown_fields: true
2230
+ catch :response do
2231
+ yield result, operation if block_given?
2232
+ result
2233
+ end
2234
+ end
2235
+
2236
+ ##
2237
+ # Baseline implementation for the cancel_image_import_job REST call
2238
+ #
2239
+ # @param request_pb [::Google::Cloud::VMMigration::V1::CancelImageImportJobRequest]
2240
+ # A request object representing the call parameters. Required.
2241
+ # @param options [::Gapic::CallOptions]
2242
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
2243
+ #
2244
+ # @yield [result, operation] Access the result along with the TransportOperation object
2245
+ # @yieldparam result [::Google::Longrunning::Operation]
2246
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
2247
+ #
2248
+ # @return [::Google::Longrunning::Operation]
2249
+ # A result object deserialized from the server's reply
2250
+ def cancel_image_import_job request_pb, options = nil
2251
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
2252
+
2253
+ verb, uri, query_string_params, body = ServiceStub.transcode_cancel_image_import_job_request request_pb
2254
+ query_string_params = if query_string_params.any?
2255
+ query_string_params.to_h { |p| p.split "=", 2 }
2256
+ else
2257
+ {}
2258
+ end
2259
+
2260
+ response = @client_stub.make_http_request(
2261
+ verb,
2262
+ uri: uri,
2263
+ body: body || "",
2264
+ params: query_string_params,
2265
+ method_name: "cancel_image_import_job",
2266
+ options: options
2267
+ )
2268
+ operation = ::Gapic::Rest::TransportOperation.new response
2269
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
2270
+ catch :response do
2271
+ yield result, operation if block_given?
2272
+ result
2273
+ end
2274
+ end
2275
+
2276
+ ##
2277
+ # Baseline implementation for the create_disk_migration_job REST call
2278
+ #
2279
+ # @param request_pb [::Google::Cloud::VMMigration::V1::CreateDiskMigrationJobRequest]
2280
+ # A request object representing the call parameters. Required.
2281
+ # @param options [::Gapic::CallOptions]
2282
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
2283
+ #
2284
+ # @yield [result, operation] Access the result along with the TransportOperation object
2285
+ # @yieldparam result [::Google::Longrunning::Operation]
2286
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
2287
+ #
2288
+ # @return [::Google::Longrunning::Operation]
2289
+ # A result object deserialized from the server's reply
2290
+ def create_disk_migration_job request_pb, options = nil
2291
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
2292
+
2293
+ verb, uri, query_string_params, body = ServiceStub.transcode_create_disk_migration_job_request request_pb
2294
+ query_string_params = if query_string_params.any?
2295
+ query_string_params.to_h { |p| p.split "=", 2 }
2296
+ else
2297
+ {}
2298
+ end
2299
+
2300
+ response = @client_stub.make_http_request(
2301
+ verb,
2302
+ uri: uri,
2303
+ body: body || "",
2304
+ params: query_string_params,
2305
+ method_name: "create_disk_migration_job",
2306
+ options: options
2307
+ )
2308
+ operation = ::Gapic::Rest::TransportOperation.new response
2309
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
2310
+ catch :response do
2311
+ yield result, operation if block_given?
2312
+ result
2313
+ end
2314
+ end
2315
+
2316
+ ##
2317
+ # Baseline implementation for the list_disk_migration_jobs REST call
2318
+ #
2319
+ # @param request_pb [::Google::Cloud::VMMigration::V1::ListDiskMigrationJobsRequest]
2320
+ # A request object representing the call parameters. Required.
2321
+ # @param options [::Gapic::CallOptions]
2322
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
2323
+ #
2324
+ # @yield [result, operation] Access the result along with the TransportOperation object
2325
+ # @yieldparam result [::Google::Cloud::VMMigration::V1::ListDiskMigrationJobsResponse]
2326
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
2327
+ #
2328
+ # @return [::Google::Cloud::VMMigration::V1::ListDiskMigrationJobsResponse]
2329
+ # A result object deserialized from the server's reply
2330
+ def list_disk_migration_jobs request_pb, options = nil
2331
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
2332
+
2333
+ verb, uri, query_string_params, body = ServiceStub.transcode_list_disk_migration_jobs_request request_pb
2334
+ query_string_params = if query_string_params.any?
2335
+ query_string_params.to_h { |p| p.split "=", 2 }
2336
+ else
2337
+ {}
2338
+ end
2339
+
2340
+ response = @client_stub.make_http_request(
2341
+ verb,
2342
+ uri: uri,
2343
+ body: body || "",
2344
+ params: query_string_params,
2345
+ method_name: "list_disk_migration_jobs",
2346
+ options: options
2347
+ )
2348
+ operation = ::Gapic::Rest::TransportOperation.new response
2349
+ result = ::Google::Cloud::VMMigration::V1::ListDiskMigrationJobsResponse.decode_json response.body, ignore_unknown_fields: true
2350
+ catch :response do
2351
+ yield result, operation if block_given?
2352
+ result
2353
+ end
2354
+ end
2355
+
2356
+ ##
2357
+ # Baseline implementation for the get_disk_migration_job REST call
2358
+ #
2359
+ # @param request_pb [::Google::Cloud::VMMigration::V1::GetDiskMigrationJobRequest]
2360
+ # A request object representing the call parameters. Required.
2361
+ # @param options [::Gapic::CallOptions]
2362
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
2363
+ #
2364
+ # @yield [result, operation] Access the result along with the TransportOperation object
2365
+ # @yieldparam result [::Google::Cloud::VMMigration::V1::DiskMigrationJob]
2366
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
2367
+ #
2368
+ # @return [::Google::Cloud::VMMigration::V1::DiskMigrationJob]
2369
+ # A result object deserialized from the server's reply
2370
+ def get_disk_migration_job request_pb, options = nil
2371
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
2372
+
2373
+ verb, uri, query_string_params, body = ServiceStub.transcode_get_disk_migration_job_request request_pb
2374
+ query_string_params = if query_string_params.any?
2375
+ query_string_params.to_h { |p| p.split "=", 2 }
2376
+ else
2377
+ {}
2378
+ end
2379
+
2380
+ response = @client_stub.make_http_request(
2381
+ verb,
2382
+ uri: uri,
2383
+ body: body || "",
2384
+ params: query_string_params,
2385
+ method_name: "get_disk_migration_job",
2386
+ options: options
2387
+ )
2388
+ operation = ::Gapic::Rest::TransportOperation.new response
2389
+ result = ::Google::Cloud::VMMigration::V1::DiskMigrationJob.decode_json response.body, ignore_unknown_fields: true
2390
+ catch :response do
2391
+ yield result, operation if block_given?
2392
+ result
2393
+ end
2394
+ end
2395
+
2396
+ ##
2397
+ # Baseline implementation for the update_disk_migration_job REST call
2398
+ #
2399
+ # @param request_pb [::Google::Cloud::VMMigration::V1::UpdateDiskMigrationJobRequest]
2400
+ # A request object representing the call parameters. Required.
2401
+ # @param options [::Gapic::CallOptions]
2402
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
2403
+ #
2404
+ # @yield [result, operation] Access the result along with the TransportOperation object
2405
+ # @yieldparam result [::Google::Longrunning::Operation]
2406
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
2407
+ #
2408
+ # @return [::Google::Longrunning::Operation]
2409
+ # A result object deserialized from the server's reply
2410
+ def update_disk_migration_job request_pb, options = nil
2411
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
2412
+
2413
+ verb, uri, query_string_params, body = ServiceStub.transcode_update_disk_migration_job_request request_pb
2414
+ query_string_params = if query_string_params.any?
2415
+ query_string_params.to_h { |p| p.split "=", 2 }
2416
+ else
2417
+ {}
2418
+ end
2419
+
2420
+ response = @client_stub.make_http_request(
2421
+ verb,
2422
+ uri: uri,
2423
+ body: body || "",
2424
+ params: query_string_params,
2425
+ method_name: "update_disk_migration_job",
2426
+ options: options
2427
+ )
2428
+ operation = ::Gapic::Rest::TransportOperation.new response
2429
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
2430
+ catch :response do
2431
+ yield result, operation if block_given?
2432
+ result
2433
+ end
2434
+ end
2435
+
2436
+ ##
2437
+ # Baseline implementation for the delete_disk_migration_job REST call
2438
+ #
2439
+ # @param request_pb [::Google::Cloud::VMMigration::V1::DeleteDiskMigrationJobRequest]
2440
+ # A request object representing the call parameters. Required.
2441
+ # @param options [::Gapic::CallOptions]
2442
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
2443
+ #
2444
+ # @yield [result, operation] Access the result along with the TransportOperation object
2445
+ # @yieldparam result [::Google::Longrunning::Operation]
2446
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
2447
+ #
2448
+ # @return [::Google::Longrunning::Operation]
2449
+ # A result object deserialized from the server's reply
2450
+ def delete_disk_migration_job request_pb, options = nil
2451
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
2452
+
2453
+ verb, uri, query_string_params, body = ServiceStub.transcode_delete_disk_migration_job_request request_pb
2454
+ query_string_params = if query_string_params.any?
2455
+ query_string_params.to_h { |p| p.split "=", 2 }
2456
+ else
2457
+ {}
2458
+ end
2459
+
2460
+ response = @client_stub.make_http_request(
2461
+ verb,
2462
+ uri: uri,
2463
+ body: body || "",
2464
+ params: query_string_params,
2465
+ method_name: "delete_disk_migration_job",
2466
+ options: options
2467
+ )
2468
+ operation = ::Gapic::Rest::TransportOperation.new response
2469
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
2470
+ catch :response do
2471
+ yield result, operation if block_given?
2472
+ result
2473
+ end
2474
+ end
2475
+
2476
+ ##
2477
+ # Baseline implementation for the run_disk_migration_job REST call
2478
+ #
2479
+ # @param request_pb [::Google::Cloud::VMMigration::V1::RunDiskMigrationJobRequest]
2480
+ # A request object representing the call parameters. Required.
2481
+ # @param options [::Gapic::CallOptions]
2482
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
2483
+ #
2484
+ # @yield [result, operation] Access the result along with the TransportOperation object
2485
+ # @yieldparam result [::Google::Longrunning::Operation]
2486
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
2487
+ #
2488
+ # @return [::Google::Longrunning::Operation]
2489
+ # A result object deserialized from the server's reply
2490
+ def run_disk_migration_job request_pb, options = nil
2491
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
2492
+
2493
+ verb, uri, query_string_params, body = ServiceStub.transcode_run_disk_migration_job_request request_pb
2494
+ query_string_params = if query_string_params.any?
2495
+ query_string_params.to_h { |p| p.split "=", 2 }
2496
+ else
2497
+ {}
2498
+ end
2499
+
2500
+ response = @client_stub.make_http_request(
2501
+ verb,
2502
+ uri: uri,
2503
+ body: body || "",
2504
+ params: query_string_params,
2505
+ method_name: "run_disk_migration_job",
2506
+ options: options
2507
+ )
2508
+ operation = ::Gapic::Rest::TransportOperation.new response
2509
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
2510
+ catch :response do
2511
+ yield result, operation if block_given?
2512
+ result
2513
+ end
2514
+ end
2515
+
2516
+ ##
2517
+ # Baseline implementation for the cancel_disk_migration_job REST call
2518
+ #
2519
+ # @param request_pb [::Google::Cloud::VMMigration::V1::CancelDiskMigrationJobRequest]
2520
+ # A request object representing the call parameters. Required.
2521
+ # @param options [::Gapic::CallOptions]
2522
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
2523
+ #
2524
+ # @yield [result, operation] Access the result along with the TransportOperation object
2525
+ # @yieldparam result [::Google::Longrunning::Operation]
2526
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
2527
+ #
2528
+ # @return [::Google::Longrunning::Operation]
2529
+ # A result object deserialized from the server's reply
2530
+ def cancel_disk_migration_job request_pb, options = nil
2531
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
2532
+
2533
+ verb, uri, query_string_params, body = ServiceStub.transcode_cancel_disk_migration_job_request request_pb
2534
+ query_string_params = if query_string_params.any?
2535
+ query_string_params.to_h { |p| p.split "=", 2 }
2536
+ else
2537
+ {}
2538
+ end
2539
+
2540
+ response = @client_stub.make_http_request(
2541
+ verb,
2542
+ uri: uri,
2543
+ body: body || "",
2544
+ params: query_string_params,
2545
+ method_name: "cancel_disk_migration_job",
2546
+ options: options
2547
+ )
2548
+ operation = ::Gapic::Rest::TransportOperation.new response
2549
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
2550
+ catch :response do
2551
+ yield result, operation if block_given?
2552
+ result
2553
+ end
2554
+ end
2555
+
2556
+ ##
2557
+ # @private
2558
+ #
2559
+ # GRPC transcoding helper method for the list_sources REST call
2560
+ #
2561
+ # @param request_pb [::Google::Cloud::VMMigration::V1::ListSourcesRequest]
2562
+ # A request object representing the call parameters. Required.
2563
+ # @return [Array(String, [String, nil], Hash{String => String})]
2564
+ # Uri, Body, Query string parameters
2565
+ def self.transcode_list_sources_request request_pb
2566
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2567
+ .with_bindings(
2568
+ uri_method: :get,
2569
+ uri_template: "/v1/{parent}/sources",
2570
+ matches: [
2571
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
2572
+ ]
2573
+ )
2574
+ transcoder.transcode request_pb
2575
+ end
2576
+
2577
+ ##
2578
+ # @private
2579
+ #
2580
+ # GRPC transcoding helper method for the get_source REST call
2581
+ #
2582
+ # @param request_pb [::Google::Cloud::VMMigration::V1::GetSourceRequest]
2583
+ # A request object representing the call parameters. Required.
2584
+ # @return [Array(String, [String, nil], Hash{String => String})]
2585
+ # Uri, Body, Query string parameters
2586
+ def self.transcode_get_source_request request_pb
2587
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2588
+ .with_bindings(
2589
+ uri_method: :get,
2590
+ uri_template: "/v1/{name}",
2591
+ matches: [
2592
+ ["name", %r{^projects/[^/]+/locations/[^/]+/sources/[^/]+/?$}, false]
2593
+ ]
2594
+ )
2595
+ transcoder.transcode request_pb
2596
+ end
2597
+
2598
+ ##
2599
+ # @private
2600
+ #
2601
+ # GRPC transcoding helper method for the create_source REST call
2602
+ #
2603
+ # @param request_pb [::Google::Cloud::VMMigration::V1::CreateSourceRequest]
2604
+ # A request object representing the call parameters. Required.
2605
+ # @return [Array(String, [String, nil], Hash{String => String})]
2606
+ # Uri, Body, Query string parameters
2607
+ def self.transcode_create_source_request request_pb
2608
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2609
+ .with_bindings(
2610
+ uri_method: :post,
2611
+ uri_template: "/v1/{parent}/sources",
2612
+ body: "source",
2613
+ matches: [
2614
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
2615
+ ]
2616
+ )
2617
+ transcoder.transcode request_pb
2618
+ end
2619
+
2620
+ ##
2621
+ # @private
2622
+ #
2623
+ # GRPC transcoding helper method for the update_source REST call
2624
+ #
2625
+ # @param request_pb [::Google::Cloud::VMMigration::V1::UpdateSourceRequest]
2626
+ # A request object representing the call parameters. Required.
2627
+ # @return [Array(String, [String, nil], Hash{String => String})]
2628
+ # Uri, Body, Query string parameters
2629
+ def self.transcode_update_source_request request_pb
2630
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2631
+ .with_bindings(
2632
+ uri_method: :patch,
2633
+ uri_template: "/v1/{source.name}",
2634
+ body: "source",
2635
+ matches: [
2636
+ ["source.name", %r{^projects/[^/]+/locations/[^/]+/sources/[^/]+/?$}, false]
2637
+ ]
2638
+ )
2639
+ transcoder.transcode request_pb
2640
+ end
2641
+
2642
+ ##
2643
+ # @private
2644
+ #
2645
+ # GRPC transcoding helper method for the delete_source REST call
2646
+ #
2647
+ # @param request_pb [::Google::Cloud::VMMigration::V1::DeleteSourceRequest]
2648
+ # A request object representing the call parameters. Required.
2649
+ # @return [Array(String, [String, nil], Hash{String => String})]
2650
+ # Uri, Body, Query string parameters
2651
+ def self.transcode_delete_source_request request_pb
2652
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2653
+ .with_bindings(
2654
+ uri_method: :delete,
2655
+ uri_template: "/v1/{name}",
2656
+ matches: [
2657
+ ["name", %r{^projects/[^/]+/locations/[^/]+/sources/[^/]+/?$}, false]
2658
+ ]
2659
+ )
2660
+ transcoder.transcode request_pb
2661
+ end
2662
+
2663
+ ##
2664
+ # @private
2665
+ #
2666
+ # GRPC transcoding helper method for the fetch_inventory REST call
2667
+ #
2668
+ # @param request_pb [::Google::Cloud::VMMigration::V1::FetchInventoryRequest]
2669
+ # A request object representing the call parameters. Required.
2670
+ # @return [Array(String, [String, nil], Hash{String => String})]
2671
+ # Uri, Body, Query string parameters
2672
+ def self.transcode_fetch_inventory_request request_pb
2673
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2674
+ .with_bindings(
2675
+ uri_method: :get,
2676
+ uri_template: "/v1/{source}:fetchInventory",
2677
+ matches: [
2678
+ ["source", %r{^projects/[^/]+/locations/[^/]+/sources/[^/]+/?$}, false]
2679
+ ]
2680
+ )
2681
+ transcoder.transcode request_pb
2682
+ end
2683
+
2684
+ ##
2685
+ # @private
2686
+ #
2687
+ # GRPC transcoding helper method for the fetch_storage_inventory REST call
2688
+ #
2689
+ # @param request_pb [::Google::Cloud::VMMigration::V1::FetchStorageInventoryRequest]
2690
+ # A request object representing the call parameters. Required.
2691
+ # @return [Array(String, [String, nil], Hash{String => String})]
2692
+ # Uri, Body, Query string parameters
2693
+ def self.transcode_fetch_storage_inventory_request request_pb
2694
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2695
+ .with_bindings(
2696
+ uri_method: :get,
2697
+ uri_template: "/v1/{source}:fetchStorageInventory",
2698
+ matches: [
2699
+ ["source", %r{^projects/[^/]+/locations/[^/]+/sources/[^/]+/?$}, false]
2700
+ ]
2701
+ )
2702
+ transcoder.transcode request_pb
2703
+ end
2704
+
2705
+ ##
2706
+ # @private
2707
+ #
2708
+ # GRPC transcoding helper method for the list_utilization_reports REST call
2709
+ #
2710
+ # @param request_pb [::Google::Cloud::VMMigration::V1::ListUtilizationReportsRequest]
2050
2711
  # A request object representing the call parameters. Required.
2051
2712
  # @return [Array(String, [String, nil], Hash{String => String})]
2052
2713
  # Uri, Body, Query string parameters
@@ -2428,6 +3089,28 @@ module Google
2428
3089
  transcoder.transcode request_pb
2429
3090
  end
2430
3091
 
3092
+ ##
3093
+ # @private
3094
+ #
3095
+ # GRPC transcoding helper method for the extend_migration REST call
3096
+ #
3097
+ # @param request_pb [::Google::Cloud::VMMigration::V1::ExtendMigrationRequest]
3098
+ # A request object representing the call parameters. Required.
3099
+ # @return [Array(String, [String, nil], Hash{String => String})]
3100
+ # Uri, Body, Query string parameters
3101
+ def self.transcode_extend_migration_request request_pb
3102
+ transcoder = Gapic::Rest::GrpcTranscoder.new
3103
+ .with_bindings(
3104
+ uri_method: :post,
3105
+ uri_template: "/v1/{migrating_vm}:extendMigration",
3106
+ body: "*",
3107
+ matches: [
3108
+ ["migrating_vm", %r{^projects/[^/]+/locations/[^/]+/sources/[^/]+/migratingVms/[^/]+/?$}, false]
3109
+ ]
3110
+ )
3111
+ transcoder.transcode request_pb
3112
+ end
3113
+
2431
3114
  ##
2432
3115
  # @private
2433
3116
  #
@@ -2899,6 +3582,306 @@ module Google
2899
3582
  )
2900
3583
  transcoder.transcode request_pb
2901
3584
  end
3585
+
3586
+ ##
3587
+ # @private
3588
+ #
3589
+ # GRPC transcoding helper method for the list_image_imports REST call
3590
+ #
3591
+ # @param request_pb [::Google::Cloud::VMMigration::V1::ListImageImportsRequest]
3592
+ # A request object representing the call parameters. Required.
3593
+ # @return [Array(String, [String, nil], Hash{String => String})]
3594
+ # Uri, Body, Query string parameters
3595
+ def self.transcode_list_image_imports_request request_pb
3596
+ transcoder = Gapic::Rest::GrpcTranscoder.new
3597
+ .with_bindings(
3598
+ uri_method: :get,
3599
+ uri_template: "/v1/{parent}/imageImports",
3600
+ matches: [
3601
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
3602
+ ]
3603
+ )
3604
+ transcoder.transcode request_pb
3605
+ end
3606
+
3607
+ ##
3608
+ # @private
3609
+ #
3610
+ # GRPC transcoding helper method for the get_image_import REST call
3611
+ #
3612
+ # @param request_pb [::Google::Cloud::VMMigration::V1::GetImageImportRequest]
3613
+ # A request object representing the call parameters. Required.
3614
+ # @return [Array(String, [String, nil], Hash{String => String})]
3615
+ # Uri, Body, Query string parameters
3616
+ def self.transcode_get_image_import_request request_pb
3617
+ transcoder = Gapic::Rest::GrpcTranscoder.new
3618
+ .with_bindings(
3619
+ uri_method: :get,
3620
+ uri_template: "/v1/{name}",
3621
+ matches: [
3622
+ ["name", %r{^projects/[^/]+/locations/[^/]+/imageImports/[^/]+/?$}, false]
3623
+ ]
3624
+ )
3625
+ transcoder.transcode request_pb
3626
+ end
3627
+
3628
+ ##
3629
+ # @private
3630
+ #
3631
+ # GRPC transcoding helper method for the create_image_import REST call
3632
+ #
3633
+ # @param request_pb [::Google::Cloud::VMMigration::V1::CreateImageImportRequest]
3634
+ # A request object representing the call parameters. Required.
3635
+ # @return [Array(String, [String, nil], Hash{String => String})]
3636
+ # Uri, Body, Query string parameters
3637
+ def self.transcode_create_image_import_request request_pb
3638
+ transcoder = Gapic::Rest::GrpcTranscoder.new
3639
+ .with_bindings(
3640
+ uri_method: :post,
3641
+ uri_template: "/v1/{parent}/imageImports",
3642
+ body: "image_import",
3643
+ matches: [
3644
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
3645
+ ]
3646
+ )
3647
+ transcoder.transcode request_pb
3648
+ end
3649
+
3650
+ ##
3651
+ # @private
3652
+ #
3653
+ # GRPC transcoding helper method for the delete_image_import REST call
3654
+ #
3655
+ # @param request_pb [::Google::Cloud::VMMigration::V1::DeleteImageImportRequest]
3656
+ # A request object representing the call parameters. Required.
3657
+ # @return [Array(String, [String, nil], Hash{String => String})]
3658
+ # Uri, Body, Query string parameters
3659
+ def self.transcode_delete_image_import_request request_pb
3660
+ transcoder = Gapic::Rest::GrpcTranscoder.new
3661
+ .with_bindings(
3662
+ uri_method: :delete,
3663
+ uri_template: "/v1/{name}",
3664
+ matches: [
3665
+ ["name", %r{^projects/[^/]+/locations/[^/]+/imageImports/[^/]+/?$}, false]
3666
+ ]
3667
+ )
3668
+ transcoder.transcode request_pb
3669
+ end
3670
+
3671
+ ##
3672
+ # @private
3673
+ #
3674
+ # GRPC transcoding helper method for the list_image_import_jobs REST call
3675
+ #
3676
+ # @param request_pb [::Google::Cloud::VMMigration::V1::ListImageImportJobsRequest]
3677
+ # A request object representing the call parameters. Required.
3678
+ # @return [Array(String, [String, nil], Hash{String => String})]
3679
+ # Uri, Body, Query string parameters
3680
+ def self.transcode_list_image_import_jobs_request request_pb
3681
+ transcoder = Gapic::Rest::GrpcTranscoder.new
3682
+ .with_bindings(
3683
+ uri_method: :get,
3684
+ uri_template: "/v1/{parent}/imageImportJobs",
3685
+ matches: [
3686
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/imageImports/[^/]+/?$}, false]
3687
+ ]
3688
+ )
3689
+ transcoder.transcode request_pb
3690
+ end
3691
+
3692
+ ##
3693
+ # @private
3694
+ #
3695
+ # GRPC transcoding helper method for the get_image_import_job REST call
3696
+ #
3697
+ # @param request_pb [::Google::Cloud::VMMigration::V1::GetImageImportJobRequest]
3698
+ # A request object representing the call parameters. Required.
3699
+ # @return [Array(String, [String, nil], Hash{String => String})]
3700
+ # Uri, Body, Query string parameters
3701
+ def self.transcode_get_image_import_job_request request_pb
3702
+ transcoder = Gapic::Rest::GrpcTranscoder.new
3703
+ .with_bindings(
3704
+ uri_method: :get,
3705
+ uri_template: "/v1/{name}",
3706
+ matches: [
3707
+ ["name", %r{^projects/[^/]+/locations/[^/]+/imageImports/[^/]+/imageImportJobs/[^/]+/?$}, false]
3708
+ ]
3709
+ )
3710
+ transcoder.transcode request_pb
3711
+ end
3712
+
3713
+ ##
3714
+ # @private
3715
+ #
3716
+ # GRPC transcoding helper method for the cancel_image_import_job REST call
3717
+ #
3718
+ # @param request_pb [::Google::Cloud::VMMigration::V1::CancelImageImportJobRequest]
3719
+ # A request object representing the call parameters. Required.
3720
+ # @return [Array(String, [String, nil], Hash{String => String})]
3721
+ # Uri, Body, Query string parameters
3722
+ def self.transcode_cancel_image_import_job_request request_pb
3723
+ transcoder = Gapic::Rest::GrpcTranscoder.new
3724
+ .with_bindings(
3725
+ uri_method: :post,
3726
+ uri_template: "/v1/{name}:cancel",
3727
+ body: "*",
3728
+ matches: [
3729
+ ["name", %r{^projects/[^/]+/locations/[^/]+/imageImports/[^/]+/imageImportJobs/[^/]+/?$}, false]
3730
+ ]
3731
+ )
3732
+ transcoder.transcode request_pb
3733
+ end
3734
+
3735
+ ##
3736
+ # @private
3737
+ #
3738
+ # GRPC transcoding helper method for the create_disk_migration_job REST call
3739
+ #
3740
+ # @param request_pb [::Google::Cloud::VMMigration::V1::CreateDiskMigrationJobRequest]
3741
+ # A request object representing the call parameters. Required.
3742
+ # @return [Array(String, [String, nil], Hash{String => String})]
3743
+ # Uri, Body, Query string parameters
3744
+ def self.transcode_create_disk_migration_job_request request_pb
3745
+ transcoder = Gapic::Rest::GrpcTranscoder.new
3746
+ .with_bindings(
3747
+ uri_method: :post,
3748
+ uri_template: "/v1/{parent}/diskMigrationJobs",
3749
+ body: "disk_migration_job",
3750
+ matches: [
3751
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/sources/[^/]+/?$}, false]
3752
+ ]
3753
+ )
3754
+ transcoder.transcode request_pb
3755
+ end
3756
+
3757
+ ##
3758
+ # @private
3759
+ #
3760
+ # GRPC transcoding helper method for the list_disk_migration_jobs REST call
3761
+ #
3762
+ # @param request_pb [::Google::Cloud::VMMigration::V1::ListDiskMigrationJobsRequest]
3763
+ # A request object representing the call parameters. Required.
3764
+ # @return [Array(String, [String, nil], Hash{String => String})]
3765
+ # Uri, Body, Query string parameters
3766
+ def self.transcode_list_disk_migration_jobs_request request_pb
3767
+ transcoder = Gapic::Rest::GrpcTranscoder.new
3768
+ .with_bindings(
3769
+ uri_method: :get,
3770
+ uri_template: "/v1/{parent}/diskMigrationJobs",
3771
+ matches: [
3772
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/sources/[^/]+/?$}, false]
3773
+ ]
3774
+ )
3775
+ transcoder.transcode request_pb
3776
+ end
3777
+
3778
+ ##
3779
+ # @private
3780
+ #
3781
+ # GRPC transcoding helper method for the get_disk_migration_job REST call
3782
+ #
3783
+ # @param request_pb [::Google::Cloud::VMMigration::V1::GetDiskMigrationJobRequest]
3784
+ # A request object representing the call parameters. Required.
3785
+ # @return [Array(String, [String, nil], Hash{String => String})]
3786
+ # Uri, Body, Query string parameters
3787
+ def self.transcode_get_disk_migration_job_request request_pb
3788
+ transcoder = Gapic::Rest::GrpcTranscoder.new
3789
+ .with_bindings(
3790
+ uri_method: :get,
3791
+ uri_template: "/v1/{name}",
3792
+ matches: [
3793
+ ["name", %r{^projects/[^/]+/locations/[^/]+/sources/[^/]+/diskMigrationJobs/[^/]+/?$}, false]
3794
+ ]
3795
+ )
3796
+ transcoder.transcode request_pb
3797
+ end
3798
+
3799
+ ##
3800
+ # @private
3801
+ #
3802
+ # GRPC transcoding helper method for the update_disk_migration_job REST call
3803
+ #
3804
+ # @param request_pb [::Google::Cloud::VMMigration::V1::UpdateDiskMigrationJobRequest]
3805
+ # A request object representing the call parameters. Required.
3806
+ # @return [Array(String, [String, nil], Hash{String => String})]
3807
+ # Uri, Body, Query string parameters
3808
+ def self.transcode_update_disk_migration_job_request request_pb
3809
+ transcoder = Gapic::Rest::GrpcTranscoder.new
3810
+ .with_bindings(
3811
+ uri_method: :patch,
3812
+ uri_template: "/v1/{disk_migration_job.name}",
3813
+ body: "disk_migration_job",
3814
+ matches: [
3815
+ ["disk_migration_job.name", %r{^projects/[^/]+/locations/[^/]+/sources/[^/]+/diskMigrationJobs/[^/]+/?$}, false]
3816
+ ]
3817
+ )
3818
+ transcoder.transcode request_pb
3819
+ end
3820
+
3821
+ ##
3822
+ # @private
3823
+ #
3824
+ # GRPC transcoding helper method for the delete_disk_migration_job REST call
3825
+ #
3826
+ # @param request_pb [::Google::Cloud::VMMigration::V1::DeleteDiskMigrationJobRequest]
3827
+ # A request object representing the call parameters. Required.
3828
+ # @return [Array(String, [String, nil], Hash{String => String})]
3829
+ # Uri, Body, Query string parameters
3830
+ def self.transcode_delete_disk_migration_job_request request_pb
3831
+ transcoder = Gapic::Rest::GrpcTranscoder.new
3832
+ .with_bindings(
3833
+ uri_method: :delete,
3834
+ uri_template: "/v1/{name}",
3835
+ matches: [
3836
+ ["name", %r{^projects/[^/]+/locations/[^/]+/sources/[^/]+/diskMigrationJobs/[^/]+/?$}, false]
3837
+ ]
3838
+ )
3839
+ transcoder.transcode request_pb
3840
+ end
3841
+
3842
+ ##
3843
+ # @private
3844
+ #
3845
+ # GRPC transcoding helper method for the run_disk_migration_job REST call
3846
+ #
3847
+ # @param request_pb [::Google::Cloud::VMMigration::V1::RunDiskMigrationJobRequest]
3848
+ # A request object representing the call parameters. Required.
3849
+ # @return [Array(String, [String, nil], Hash{String => String})]
3850
+ # Uri, Body, Query string parameters
3851
+ def self.transcode_run_disk_migration_job_request request_pb
3852
+ transcoder = Gapic::Rest::GrpcTranscoder.new
3853
+ .with_bindings(
3854
+ uri_method: :post,
3855
+ uri_template: "/v1/{name}:run",
3856
+ body: "*",
3857
+ matches: [
3858
+ ["name", %r{^projects/[^/]+/locations/[^/]+/sources/[^/]+/diskMigrationJobs/[^/]+/?$}, false]
3859
+ ]
3860
+ )
3861
+ transcoder.transcode request_pb
3862
+ end
3863
+
3864
+ ##
3865
+ # @private
3866
+ #
3867
+ # GRPC transcoding helper method for the cancel_disk_migration_job REST call
3868
+ #
3869
+ # @param request_pb [::Google::Cloud::VMMigration::V1::CancelDiskMigrationJobRequest]
3870
+ # A request object representing the call parameters. Required.
3871
+ # @return [Array(String, [String, nil], Hash{String => String})]
3872
+ # Uri, Body, Query string parameters
3873
+ def self.transcode_cancel_disk_migration_job_request request_pb
3874
+ transcoder = Gapic::Rest::GrpcTranscoder.new
3875
+ .with_bindings(
3876
+ uri_method: :post,
3877
+ uri_template: "/v1/{name}:cancel",
3878
+ body: "*",
3879
+ matches: [
3880
+ ["name", %r{^projects/[^/]+/locations/[^/]+/sources/[^/]+/diskMigrationJobs/[^/]+/?$}, false]
3881
+ ]
3882
+ )
3883
+ transcoder.transcode request_pb
3884
+ end
2902
3885
  end
2903
3886
  end
2904
3887
  end