google-cloud-vm_migration-v1 1.3.0 → 2.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d0a0c9cfc8621565e96fe120e33782e49298ab3b9889f811481a604751311bc1
4
- data.tar.gz: 971e89c3aec76b652f89a6b6d9369485788037c545b5135a4a77d3fee746319b
3
+ metadata.gz: ff61abcc4c3e19b96a8f3de804dedd6a80b5d0123d5cd7364e4ce0d5d77996a3
4
+ data.tar.gz: '078f1e87e7a4badae2f9de541465229ad7c056274882fcfbb0b16979259348cc'
5
5
  SHA512:
6
- metadata.gz: 8feac0baf7822a44b71708118db82a7ec9fd5ef819cf36c801709ec2d64466b0efdc0da06ee00eab8a4174720f4eb244ba6431ddf8b40df664ca98168f9d47c5
7
- data.tar.gz: adf0658d032bf8a173708604eb6910273ac79f0da40b478655e1116d19aca6f582132a0c78397dab328a8d1d3bcaecd384c0acc2553fc78136a34589674e1233
6
+ metadata.gz: 0db85ef20d1e232a1dc9747baf1730dea36b0b4666a87bc7a6cfc50c095a99e155d62998283fa43992a00f7a1f69339db794fb83ee93e882654637bd67fb4dfb
7
+ data.tar.gz: eda2fa6c5079d0356857ee80225fb8187b4d7f03f7c2a703e0811b99c7436a49a5668ab6ffb8a67217eb328bd61dca96e1ea0f8c41b61776b0c04e85e5c08afd
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module VMMigration
23
23
  module V1
24
- VERSION = "1.3.0"
24
+ VERSION = "2.1.0"
25
25
  end
26
26
  end
27
27
  end
@@ -267,10 +267,10 @@ module Google
267
267
  # @param order_by [::String]
268
268
  # Optional. the order by fields for the result.
269
269
  # @yield [result, operation] Access the result along with the TransportOperation object
270
- # @yieldparam result [::Google::Cloud::VMMigration::V1::ListSourcesResponse]
270
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::VMMigration::V1::Source>]
271
271
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
272
272
  #
273
- # @return [::Google::Cloud::VMMigration::V1::ListSourcesResponse]
273
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::VMMigration::V1::Source>]
274
274
  #
275
275
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
276
276
  #
@@ -322,7 +322,9 @@ module Google
322
322
  retry_policy: @config.retry_policy
323
323
 
324
324
  @vm_migration_stub.list_sources request, options do |result, operation|
325
+ result = ::Gapic::Rest::PagedEnumerable.new @vm_migration_stub, :list_sources, "sources", request, result, options
325
326
  yield result, operation if block_given?
327
+ throw :response, result
326
328
  end
327
329
  rescue ::Gapic::Rest::Error => e
328
330
  raise ::Google::Cloud::Error.from_error(e)
@@ -843,10 +845,10 @@ module Google
843
845
  # @param order_by [::String]
844
846
  # Optional. the order by fields for the result.
845
847
  # @yield [result, operation] Access the result along with the TransportOperation object
846
- # @yieldparam result [::Google::Cloud::VMMigration::V1::ListUtilizationReportsResponse]
848
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::VMMigration::V1::UtilizationReport>]
847
849
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
848
850
  #
849
- # @return [::Google::Cloud::VMMigration::V1::ListUtilizationReportsResponse]
851
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::VMMigration::V1::UtilizationReport>]
850
852
  #
851
853
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
852
854
  #
@@ -898,7 +900,9 @@ module Google
898
900
  retry_policy: @config.retry_policy
899
901
 
900
902
  @vm_migration_stub.list_utilization_reports request, options do |result, operation|
903
+ result = ::Gapic::Rest::PagedEnumerable.new @vm_migration_stub, :list_utilization_reports, "utilization_reports", request, result, options
901
904
  yield result, operation if block_given?
905
+ throw :response, result
902
906
  end
903
907
  rescue ::Gapic::Rest::Error => e
904
908
  raise ::Google::Cloud::Error.from_error(e)
@@ -1233,10 +1237,10 @@ module Google
1233
1237
  # @param order_by [::String]
1234
1238
  # Optional. the order by fields for the result.
1235
1239
  # @yield [result, operation] Access the result along with the TransportOperation object
1236
- # @yieldparam result [::Google::Cloud::VMMigration::V1::ListDatacenterConnectorsResponse]
1240
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::VMMigration::V1::DatacenterConnector>]
1237
1241
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
1238
1242
  #
1239
- # @return [::Google::Cloud::VMMigration::V1::ListDatacenterConnectorsResponse]
1243
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::VMMigration::V1::DatacenterConnector>]
1240
1244
  #
1241
1245
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1242
1246
  #
@@ -1288,7 +1292,9 @@ module Google
1288
1292
  retry_policy: @config.retry_policy
1289
1293
 
1290
1294
  @vm_migration_stub.list_datacenter_connectors request, options do |result, operation|
1295
+ result = ::Gapic::Rest::PagedEnumerable.new @vm_migration_stub, :list_datacenter_connectors, "datacenter_connectors", request, result, options
1291
1296
  yield result, operation if block_given?
1297
+ throw :response, result
1292
1298
  end
1293
1299
  rescue ::Gapic::Rest::Error => e
1294
1300
  raise ::Google::Cloud::Error.from_error(e)
@@ -1826,10 +1832,10 @@ module Google
1826
1832
  # @param view [::Google::Cloud::VMMigration::V1::MigratingVmView]
1827
1833
  # Optional. The level of details of each migrating VM.
1828
1834
  # @yield [result, operation] Access the result along with the TransportOperation object
1829
- # @yieldparam result [::Google::Cloud::VMMigration::V1::ListMigratingVmsResponse]
1835
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::VMMigration::V1::MigratingVm>]
1830
1836
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
1831
1837
  #
1832
- # @return [::Google::Cloud::VMMigration::V1::ListMigratingVmsResponse]
1838
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::VMMigration::V1::MigratingVm>]
1833
1839
  #
1834
1840
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1835
1841
  #
@@ -1881,7 +1887,9 @@ module Google
1881
1887
  retry_policy: @config.retry_policy
1882
1888
 
1883
1889
  @vm_migration_stub.list_migrating_vms request, options do |result, operation|
1890
+ result = ::Gapic::Rest::PagedEnumerable.new @vm_migration_stub, :list_migrating_vms, "migrating_vms", request, result, options
1884
1891
  yield result, operation if block_given?
1892
+ throw :response, result
1885
1893
  end
1886
1894
  rescue ::Gapic::Rest::Error => e
1887
1895
  raise ::Google::Cloud::Error.from_error(e)
@@ -2744,10 +2752,10 @@ module Google
2744
2752
  # @param order_by [::String]
2745
2753
  # Optional. the order by fields for the result.
2746
2754
  # @yield [result, operation] Access the result along with the TransportOperation object
2747
- # @yieldparam result [::Google::Cloud::VMMigration::V1::ListCloneJobsResponse]
2755
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::VMMigration::V1::CloneJob>]
2748
2756
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
2749
2757
  #
2750
- # @return [::Google::Cloud::VMMigration::V1::ListCloneJobsResponse]
2758
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::VMMigration::V1::CloneJob>]
2751
2759
  #
2752
2760
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2753
2761
  #
@@ -2799,7 +2807,9 @@ module Google
2799
2807
  retry_policy: @config.retry_policy
2800
2808
 
2801
2809
  @vm_migration_stub.list_clone_jobs request, options do |result, operation|
2810
+ result = ::Gapic::Rest::PagedEnumerable.new @vm_migration_stub, :list_clone_jobs, "clone_jobs", request, result, options
2802
2811
  yield result, operation if block_given?
2812
+ throw :response, result
2803
2813
  end
2804
2814
  rescue ::Gapic::Rest::Error => e
2805
2815
  raise ::Google::Cloud::Error.from_error(e)
@@ -3113,10 +3123,10 @@ module Google
3113
3123
  # @param order_by [::String]
3114
3124
  # Optional. the order by fields for the result.
3115
3125
  # @yield [result, operation] Access the result along with the TransportOperation object
3116
- # @yieldparam result [::Google::Cloud::VMMigration::V1::ListCutoverJobsResponse]
3126
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::VMMigration::V1::CutoverJob>]
3117
3127
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
3118
3128
  #
3119
- # @return [::Google::Cloud::VMMigration::V1::ListCutoverJobsResponse]
3129
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::VMMigration::V1::CutoverJob>]
3120
3130
  #
3121
3131
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
3122
3132
  #
@@ -3168,7 +3178,9 @@ module Google
3168
3178
  retry_policy: @config.retry_policy
3169
3179
 
3170
3180
  @vm_migration_stub.list_cutover_jobs request, options do |result, operation|
3181
+ result = ::Gapic::Rest::PagedEnumerable.new @vm_migration_stub, :list_cutover_jobs, "cutover_jobs", request, result, options
3171
3182
  yield result, operation if block_given?
3183
+ throw :response, result
3172
3184
  end
3173
3185
  rescue ::Gapic::Rest::Error => e
3174
3186
  raise ::Google::Cloud::Error.from_error(e)
@@ -3288,10 +3300,10 @@ module Google
3288
3300
  # @param order_by [::String]
3289
3301
  # Optional. the order by fields for the result.
3290
3302
  # @yield [result, operation] Access the result along with the TransportOperation object
3291
- # @yieldparam result [::Google::Cloud::VMMigration::V1::ListGroupsResponse]
3303
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::VMMigration::V1::Group>]
3292
3304
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
3293
3305
  #
3294
- # @return [::Google::Cloud::VMMigration::V1::ListGroupsResponse]
3306
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::VMMigration::V1::Group>]
3295
3307
  #
3296
3308
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
3297
3309
  #
@@ -3343,7 +3355,9 @@ module Google
3343
3355
  retry_policy: @config.retry_policy
3344
3356
 
3345
3357
  @vm_migration_stub.list_groups request, options do |result, operation|
3358
+ result = ::Gapic::Rest::PagedEnumerable.new @vm_migration_stub, :list_groups, "groups", request, result, options
3346
3359
  yield result, operation if block_given?
3360
+ throw :response, result
3347
3361
  end
3348
3362
  rescue ::Gapic::Rest::Error => e
3349
3363
  raise ::Google::Cloud::Error.from_error(e)
@@ -3957,10 +3971,10 @@ module Google
3957
3971
  # @param order_by [::String]
3958
3972
  # Optional. the order by fields for the result.
3959
3973
  # @yield [result, operation] Access the result along with the TransportOperation object
3960
- # @yieldparam result [::Google::Cloud::VMMigration::V1::ListTargetProjectsResponse]
3974
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::VMMigration::V1::TargetProject>]
3961
3975
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
3962
3976
  #
3963
- # @return [::Google::Cloud::VMMigration::V1::ListTargetProjectsResponse]
3977
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::VMMigration::V1::TargetProject>]
3964
3978
  #
3965
3979
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
3966
3980
  #
@@ -4012,7 +4026,9 @@ module Google
4012
4026
  retry_policy: @config.retry_policy
4013
4027
 
4014
4028
  @vm_migration_stub.list_target_projects request, options do |result, operation|
4029
+ result = ::Gapic::Rest::PagedEnumerable.new @vm_migration_stub, :list_target_projects, "target_projects", request, result, options
4015
4030
  yield result, operation if block_given?
4031
+ throw :response, result
4016
4032
  end
4017
4033
  rescue ::Gapic::Rest::Error => e
4018
4034
  raise ::Google::Cloud::Error.from_error(e)
@@ -4457,10 +4473,10 @@ module Google
4457
4473
  # @param order_by [::String]
4458
4474
  # Optional. the order by fields for the result.
4459
4475
  # @yield [result, operation] Access the result along with the TransportOperation object
4460
- # @yieldparam result [::Google::Cloud::VMMigration::V1::ListReplicationCyclesResponse]
4476
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::VMMigration::V1::ReplicationCycle>]
4461
4477
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
4462
4478
  #
4463
- # @return [::Google::Cloud::VMMigration::V1::ListReplicationCyclesResponse]
4479
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::VMMigration::V1::ReplicationCycle>]
4464
4480
  #
4465
4481
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
4466
4482
  #
@@ -4512,7 +4528,9 @@ module Google
4512
4528
  retry_policy: @config.retry_policy
4513
4529
 
4514
4530
  @vm_migration_stub.list_replication_cycles request, options do |result, operation|
4531
+ result = ::Gapic::Rest::PagedEnumerable.new @vm_migration_stub, :list_replication_cycles, "replication_cycles", request, result, options
4515
4532
  yield result, operation if block_given?
4533
+ throw :response, result
4516
4534
  end
4517
4535
  rescue ::Gapic::Rest::Error => e
4518
4536
  raise ::Google::Cloud::Error.from_error(e)
@@ -221,6 +221,12 @@ module Google
221
221
  # Pythonic which are included in `protobuf>=5.29.x`. This feature will be
222
222
  # enabled by default 1 month after launching the feature in preview
223
223
  # packages.
224
+ # @!attribute [rw] unversioned_package_disabled
225
+ # @return [::Boolean]
226
+ # Disables generation of an unversioned Python package for this client
227
+ # library. This means that the module names will need to be versioned in
228
+ # import statements. For example `import google.cloud.library_v2` instead
229
+ # of `import google.cloud.library`.
224
230
  class ExperimentalFeatures
225
231
  include ::Google::Protobuf::MessageExts
226
232
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -409,6 +415,14 @@ module Google
409
415
  # @return [::Array<::String>]
410
416
  # An allowlist of the fully qualified names of RPCs that should be included
411
417
  # on public client surfaces.
418
+ # @!attribute [rw] generate_omitted_as_internal
419
+ # @return [::Boolean]
420
+ # Setting this to true indicates to the client generators that methods
421
+ # that would be excluded from the generation should instead be generated
422
+ # in a way that indicates these methods should not be consumed by
423
+ # end users. How this is expressed is up to individual language
424
+ # implementations to decide. Some examples may be: added annotations,
425
+ # obfuscated identifiers, or other language idiomatic patterns.
412
426
  class SelectiveGapicGeneration
413
427
  include ::Google::Protobuf::MessageExts
414
428
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -150,9 +150,83 @@ module Google
150
150
  #
151
151
  # For example: "Service disabled" or "Daily Limit for read operations
152
152
  # exceeded".
153
+ # @!attribute [rw] api_service
154
+ # @return [::String]
155
+ # The API Service from which the `QuotaFailure.Violation` orginates. In
156
+ # some cases, Quota issues originate from an API Service other than the one
157
+ # that was called. In other words, a dependency of the called API Service
158
+ # could be the cause of the `QuotaFailure`, and this field would have the
159
+ # dependency API service name.
160
+ #
161
+ # For example, if the called API is Kubernetes Engine API
162
+ # (container.googleapis.com), and a quota violation occurs in the
163
+ # Kubernetes Engine API itself, this field would be
164
+ # "container.googleapis.com". On the other hand, if the quota violation
165
+ # occurs when the Kubernetes Engine API creates VMs in the Compute Engine
166
+ # API (compute.googleapis.com), this field would be
167
+ # "compute.googleapis.com".
168
+ # @!attribute [rw] quota_metric
169
+ # @return [::String]
170
+ # The metric of the violated quota. A quota metric is a named counter to
171
+ # measure usage, such as API requests or CPUs. When an activity occurs in a
172
+ # service, such as Virtual Machine allocation, one or more quota metrics
173
+ # may be affected.
174
+ #
175
+ # For example, "compute.googleapis.com/cpus_per_vm_family",
176
+ # "storage.googleapis.com/internet_egress_bandwidth".
177
+ # @!attribute [rw] quota_id
178
+ # @return [::String]
179
+ # The id of the violated quota. Also know as "limit name", this is the
180
+ # unique identifier of a quota in the context of an API service.
181
+ #
182
+ # For example, "CPUS-PER-VM-FAMILY-per-project-region".
183
+ # @!attribute [rw] quota_dimensions
184
+ # @return [::Google::Protobuf::Map{::String => ::String}]
185
+ # The dimensions of the violated quota. Every non-global quota is enforced
186
+ # on a set of dimensions. While quota metric defines what to count, the
187
+ # dimensions specify for what aspects the counter should be increased.
188
+ #
189
+ # For example, the quota "CPUs per region per VM family" enforces a limit
190
+ # on the metric "compute.googleapis.com/cpus_per_vm_family" on dimensions
191
+ # "region" and "vm_family". And if the violation occurred in region
192
+ # "us-central1" and for VM family "n1", the quota_dimensions would be,
193
+ #
194
+ # {
195
+ # "region": "us-central1",
196
+ # "vm_family": "n1",
197
+ # }
198
+ #
199
+ # When a quota is enforced globally, the quota_dimensions would always be
200
+ # empty.
201
+ # @!attribute [rw] quota_value
202
+ # @return [::Integer]
203
+ # The enforced quota value at the time of the `QuotaFailure`.
204
+ #
205
+ # For example, if the enforced quota value at the time of the
206
+ # `QuotaFailure` on the number of CPUs is "10", then the value of this
207
+ # field would reflect this quantity.
208
+ # @!attribute [rw] future_quota_value
209
+ # @return [::Integer]
210
+ # The new quota value being rolled out at the time of the violation. At the
211
+ # completion of the rollout, this value will be enforced in place of
212
+ # quota_value. If no rollout is in progress at the time of the violation,
213
+ # this field is not set.
214
+ #
215
+ # For example, if at the time of the violation a rollout is in progress
216
+ # changing the number of CPUs quota from 10 to 20, 20 would be the value of
217
+ # this field.
153
218
  class Violation
154
219
  include ::Google::Protobuf::MessageExts
155
220
  extend ::Google::Protobuf::MessageExts::ClassMethods
221
+
222
+ # @!attribute [rw] key
223
+ # @return [::String]
224
+ # @!attribute [rw] value
225
+ # @return [::String]
226
+ class QuotaDimensionsEntry
227
+ include ::Google::Protobuf::MessageExts
228
+ extend ::Google::Protobuf::MessageExts::ClassMethods
229
+ end
156
230
  end
157
231
  end
158
232
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-vm_migration-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 2.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-01-29 00:00:00.000000000 Z
10
+ date: 2025-04-21 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: gapic-common
@@ -146,7 +146,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
146
146
  - !ruby/object:Gem::Version
147
147
  version: '0'
148
148
  requirements: []
149
- rubygems_version: 3.6.2
149
+ rubygems_version: 3.6.5
150
150
  specification_version: 4
151
151
  summary: Use the Migrate to Virtual Machines API to programmatically migrate workloads.
152
152
  test_files: []