google-cloud-vm_migration-v1 0.2.0 → 0.3.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: a30f6da4a3f1af8809b6c56f27467d3fb06702e8ca343a9f59a209cf9b1b7853
4
- data.tar.gz: 4f2adeef296081bdd1129419d7ce196d620a0d0787d26dabd6ffa6440014fc37
3
+ metadata.gz: d37ba3a7ce9890c0507ec039eb6e3f8884b375cfb8ca6bba7d1dfee2a10b9436
4
+ data.tar.gz: 2103cc017d7d8e3db5fbc8eb09d8c957b73f2805ec9ce2f76dc1f91d89b481e5
5
5
  SHA512:
6
- metadata.gz: 6efcbb9aca04227611719282a382dbfa3519f188eb6a7a778fe2de3cf6eb5e80199e1fdb9c646cc38e0776b018ddda43b3b885c7db26e00c69afe4509b5de6e4
7
- data.tar.gz: ffffb32bd5dba6f3817e3d82d4687454473f2d280300571375fc4bd0bb6f0b7efcb9dcebc771729296f28192ecf5a362c07752507769b3778c3d38b9c8a830e3
6
+ metadata.gz: 3d552cd9c7b863fa2db0d1cb9fbc0ac85dd720677a635acb34ccca8b947895dd5e5370ffa396edb317a28db5b64720ab0e0685119398f1043a50fd59ac1764b2
7
+ data.tar.gz: 91476fbf742843087e24187a1270d5455a40389ded629a3ab020a87fbf6942ee4d72dd0eb14a836634da50e48b18a9fbadc0c88e50bb29ce75d39a0bd555305f
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module VMMigration
23
23
  module V1
24
- VERSION = "0.2.0"
24
+ VERSION = "0.3.0"
25
25
  end
26
26
  end
27
27
  end
@@ -809,8 +809,8 @@ module Google
809
809
  # returned. The maximum value is 1000; values above 1000 will be coerced to
810
810
  # 1000.
811
811
  # @param page_token [::String]
812
- # Required. A page token, received from a previous `ListUtilizationReports` call.
813
- # Provide this to retrieve the subsequent page.
812
+ # Required. A page token, received from a previous `ListUtilizationReports`
813
+ # call. Provide this to retrieve the subsequent page.
814
814
  #
815
815
  # When paginating, all other parameters provided to `ListUtilizationReports`
816
816
  # must match the call that provided the page token.
@@ -1001,8 +1001,8 @@ module Google
1001
1001
  # @param utilization_report [::Google::Cloud::VMMigration::V1::UtilizationReport, ::Hash]
1002
1002
  # Required. The report to create.
1003
1003
  # @param utilization_report_id [::String]
1004
- # Required. The ID to use for the report, which will become the final component of
1005
- # the reports's resource name.
1004
+ # Required. The ID to use for the report, which will become the final
1005
+ # component of the reports's resource name.
1006
1006
  #
1007
1007
  # This value maximum length is 63 characters, and valid characters
1008
1008
  # are /[a-z][0-9]-/. It must start with an english letter and must not
@@ -1222,13 +1222,13 @@ module Google
1222
1222
  # @param parent [::String]
1223
1223
  # Required. The parent, which owns this collection of connectors.
1224
1224
  # @param page_size [::Integer]
1225
- # Optional. The maximum number of connectors to return. The service may return
1226
- # fewer than this value. If unspecified, at most 500 sources will be
1225
+ # Optional. The maximum number of connectors to return. The service may
1226
+ # return fewer than this value. If unspecified, at most 500 sources will be
1227
1227
  # returned. The maximum value is 1000; values above 1000 will be coerced to
1228
1228
  # 1000.
1229
1229
  # @param page_token [::String]
1230
- # Required. A page token, received from a previous `ListDatacenterConnectors` call.
1231
- # Provide this to retrieve the subsequent page.
1230
+ # Required. A page token, received from a previous `ListDatacenterConnectors`
1231
+ # call. Provide this to retrieve the subsequent page.
1232
1232
  #
1233
1233
  # When paginating, all other parameters provided to
1234
1234
  # `ListDatacenterConnectors` must match the call that provided the page
@@ -1615,6 +1615,114 @@ module Google
1615
1615
  raise ::Google::Cloud::Error.from_error(e)
1616
1616
  end
1617
1617
 
1618
+ ##
1619
+ # Upgrades the appliance relate to this DatacenterConnector to the in-place
1620
+ # updateable version.
1621
+ #
1622
+ # @overload upgrade_appliance(request, options = nil)
1623
+ # Pass arguments to `upgrade_appliance` via a request object, either of type
1624
+ # {::Google::Cloud::VMMigration::V1::UpgradeApplianceRequest} or an equivalent Hash.
1625
+ #
1626
+ # @param request [::Google::Cloud::VMMigration::V1::UpgradeApplianceRequest, ::Hash]
1627
+ # A request object representing the call parameters. Required. To specify no
1628
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1629
+ # @param options [::Gapic::CallOptions, ::Hash]
1630
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1631
+ #
1632
+ # @overload upgrade_appliance(datacenter_connector: nil, request_id: nil)
1633
+ # Pass arguments to `upgrade_appliance` via keyword arguments. Note that at
1634
+ # least one keyword argument is required. To specify no parameters, or to keep all
1635
+ # the default parameter values, pass an empty Hash as a request object (see above).
1636
+ #
1637
+ # @param datacenter_connector [::String]
1638
+ # Required. The DatacenterConnector name.
1639
+ # @param request_id [::String]
1640
+ # A request ID to identify requests. Specify a unique request ID
1641
+ # so that if you must retry your request, the server will know to ignore
1642
+ # the request if it has already been completed. The server will guarantee
1643
+ # that for at least 60 minutes after the first request.
1644
+ #
1645
+ # For example, consider a situation where you make an initial request and t
1646
+ # he request times out. If you make the request again with the same request
1647
+ # ID, the server can check if original operation with the same request ID
1648
+ # was received, and if so, will ignore the second request. This prevents
1649
+ # clients from accidentally creating duplicate commitments.
1650
+ #
1651
+ # The request ID must be a valid UUID with the exception that zero UUID is
1652
+ # not supported (00000000-0000-0000-0000-000000000000).
1653
+ #
1654
+ # @yield [response, operation] Access the result along with the RPC operation
1655
+ # @yieldparam response [::Gapic::Operation]
1656
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1657
+ #
1658
+ # @return [::Gapic::Operation]
1659
+ #
1660
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1661
+ #
1662
+ # @example Basic example
1663
+ # require "google/cloud/vm_migration/v1"
1664
+ #
1665
+ # # Create a client object. The client can be reused for multiple calls.
1666
+ # client = Google::Cloud::VMMigration::V1::VMMigration::Client.new
1667
+ #
1668
+ # # Create a request. To set request fields, pass in keyword arguments.
1669
+ # request = Google::Cloud::VMMigration::V1::UpgradeApplianceRequest.new
1670
+ #
1671
+ # # Call the upgrade_appliance method.
1672
+ # result = client.upgrade_appliance request
1673
+ #
1674
+ # # The returned object is of type Gapic::Operation. You can use this
1675
+ # # object to check the status of an operation, cancel it, or wait
1676
+ # # for results. Here is how to block until completion:
1677
+ # result.wait_until_done! timeout: 60
1678
+ # if result.response?
1679
+ # p result.response
1680
+ # else
1681
+ # puts "Error!"
1682
+ # end
1683
+ #
1684
+ def upgrade_appliance request, options = nil
1685
+ raise ::ArgumentError, "request must be provided" if request.nil?
1686
+
1687
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::VMMigration::V1::UpgradeApplianceRequest
1688
+
1689
+ # Converts hash and nil to an options object
1690
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1691
+
1692
+ # Customize the options with defaults
1693
+ metadata = @config.rpcs.upgrade_appliance.metadata.to_h
1694
+
1695
+ # Set x-goog-api-client and x-goog-user-project headers
1696
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1697
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1698
+ gapic_version: ::Google::Cloud::VMMigration::V1::VERSION
1699
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1700
+
1701
+ header_params = {}
1702
+ if request.datacenter_connector
1703
+ header_params["datacenter_connector"] = request.datacenter_connector
1704
+ end
1705
+
1706
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1707
+ metadata[:"x-goog-request-params"] ||= request_params_header
1708
+
1709
+ options.apply_defaults timeout: @config.rpcs.upgrade_appliance.timeout,
1710
+ metadata: metadata,
1711
+ retry_policy: @config.rpcs.upgrade_appliance.retry_policy
1712
+
1713
+ options.apply_defaults timeout: @config.timeout,
1714
+ metadata: @config.metadata,
1715
+ retry_policy: @config.retry_policy
1716
+
1717
+ @vm_migration_stub.call_rpc :upgrade_appliance, request, options: options do |response, operation|
1718
+ response = ::Gapic::Operation.new response, @operations_client, options: options
1719
+ yield response, operation if block_given?
1720
+ return response
1721
+ end
1722
+ rescue ::GRPC::BadStatus => e
1723
+ raise ::Google::Cloud::Error.from_error(e)
1724
+ end
1725
+
1618
1726
  ##
1619
1727
  # Creates a new MigratingVm in a given Source.
1620
1728
  #
@@ -1739,7 +1847,7 @@ module Google
1739
1847
  # @param options [::Gapic::CallOptions, ::Hash]
1740
1848
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1741
1849
  #
1742
- # @overload list_migrating_vms(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil)
1850
+ # @overload list_migrating_vms(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil, view: nil)
1743
1851
  # Pass arguments to `list_migrating_vms` via keyword arguments. Note that at
1744
1852
  # least one keyword argument is required. To specify no parameters, or to keep all
1745
1853
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -1747,10 +1855,10 @@ module Google
1747
1855
  # @param parent [::String]
1748
1856
  # Required. The parent, which owns this collection of MigratingVms.
1749
1857
  # @param page_size [::Integer]
1750
- # Optional. The maximum number of migrating VMs to return. The service may return
1751
- # fewer than this value. If unspecified, at most 500 migrating VMs will be
1752
- # returned. The maximum value is 1000; values above 1000 will be coerced to
1753
- # 1000.
1858
+ # Optional. The maximum number of migrating VMs to return. The service may
1859
+ # return fewer than this value. If unspecified, at most 500 migrating VMs
1860
+ # will be returned. The maximum value is 1000; values above 1000 will be
1861
+ # coerced to 1000.
1754
1862
  # @param page_token [::String]
1755
1863
  # Required. A page token, received from a previous `ListMigratingVms` call.
1756
1864
  # Provide this to retrieve the subsequent page.
@@ -1761,6 +1869,8 @@ module Google
1761
1869
  # Optional. The filter request.
1762
1870
  # @param order_by [::String]
1763
1871
  # Optional. the order by fields for the result.
1872
+ # @param view [::Google::Cloud::VMMigration::V1::MigratingVmView]
1873
+ # Optional. The level of details of each migrating VM.
1764
1874
  #
1765
1875
  # @yield [response, operation] Access the result along with the RPC operation
1766
1876
  # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::VMMigration::V1::MigratingVm>]
@@ -1846,13 +1956,15 @@ module Google
1846
1956
  # @param options [::Gapic::CallOptions, ::Hash]
1847
1957
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1848
1958
  #
1849
- # @overload get_migrating_vm(name: nil)
1959
+ # @overload get_migrating_vm(name: nil, view: nil)
1850
1960
  # Pass arguments to `get_migrating_vm` via keyword arguments. Note that at
1851
1961
  # least one keyword argument is required. To specify no parameters, or to keep all
1852
1962
  # the default parameter values, pass an empty Hash as a request object (see above).
1853
1963
  #
1854
1964
  # @param name [::String]
1855
1965
  # Required. The name of the MigratingVm.
1966
+ # @param view [::Google::Cloud::VMMigration::V1::MigratingVmView]
1967
+ # Optional. The level of details of the migrating VM.
1856
1968
  #
1857
1969
  # @yield [response, operation] Access the result along with the RPC operation
1858
1970
  # @yieldparam response [::Google::Cloud::VMMigration::V1::MigratingVm]
@@ -2728,10 +2840,10 @@ module Google
2728
2840
  # @param parent [::String]
2729
2841
  # Required. The parent, which owns this collection of source VMs.
2730
2842
  # @param page_size [::Integer]
2731
- # Optional. The maximum number of clone jobs to return. The service may return
2732
- # fewer than this value. If unspecified, at most 500 clone jobs will be
2733
- # returned. The maximum value is 1000; values above 1000 will be coerced to
2734
- # 1000.
2843
+ # Optional. The maximum number of clone jobs to return. The service may
2844
+ # return fewer than this value. If unspecified, at most 500 clone jobs will
2845
+ # be returned. The maximum value is 1000; values above 1000 will be coerced
2846
+ # to 1000.
2735
2847
  # @param page_token [::String]
2736
2848
  # Required. A page token, received from a previous `ListCloneJobs` call.
2737
2849
  # Provide this to retrieve the subsequent page.
@@ -3126,10 +3238,10 @@ module Google
3126
3238
  # @param parent [::String]
3127
3239
  # Required. The parent, which owns this collection of migrating VMs.
3128
3240
  # @param page_size [::Integer]
3129
- # Optional. The maximum number of cutover jobs to return. The service may return
3130
- # fewer than this value. If unspecified, at most 500 cutover jobs will be
3131
- # returned. The maximum value is 1000; values above 1000 will be coerced to
3132
- # 1000.
3241
+ # Optional. The maximum number of cutover jobs to return. The service may
3242
+ # return fewer than this value. If unspecified, at most 500 cutover jobs will
3243
+ # be returned. The maximum value is 1000; values above 1000 will be coerced
3244
+ # to 1000.
3133
3245
  # @param page_token [::String]
3134
3246
  # Required. A page token, received from a previous `ListCutoverJobs` call.
3135
3247
  # Provide this to retrieve the subsequent page.
@@ -4754,6 +4866,11 @@ module Google
4754
4866
  #
4755
4867
  attr_reader :delete_datacenter_connector
4756
4868
  ##
4869
+ # RPC-specific configuration for `upgrade_appliance`
4870
+ # @return [::Gapic::Config::Method]
4871
+ #
4872
+ attr_reader :upgrade_appliance
4873
+ ##
4757
4874
  # RPC-specific configuration for `create_migrating_vm`
4758
4875
  # @return [::Gapic::Config::Method]
4759
4876
  #
@@ -4929,6 +5046,8 @@ module Google
4929
5046
  @create_datacenter_connector = ::Gapic::Config::Method.new create_datacenter_connector_config
4930
5047
  delete_datacenter_connector_config = parent_rpcs.delete_datacenter_connector if parent_rpcs.respond_to? :delete_datacenter_connector
4931
5048
  @delete_datacenter_connector = ::Gapic::Config::Method.new delete_datacenter_connector_config
5049
+ upgrade_appliance_config = parent_rpcs.upgrade_appliance if parent_rpcs.respond_to? :upgrade_appliance
5050
+ @upgrade_appliance = ::Gapic::Config::Method.new upgrade_appliance_config
4932
5051
  create_migrating_vm_config = parent_rpcs.create_migrating_vm if parent_rpcs.respond_to? :create_migrating_vm
4933
5052
  @create_migrating_vm = ::Gapic::Config::Method.new create_migrating_vm_config
4934
5053
  list_migrating_vms_config = parent_rpcs.list_migrating_vms if parent_rpcs.respond_to? :list_migrating_vms
@@ -37,7 +37,9 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
37
37
  optional :current_sync_info, :message, 13, "google.cloud.vmmigration.v1.ReplicationCycle"
38
38
  optional :group, :string, 15
39
39
  map :labels, :string, :string, 16
40
+ repeated :recent_clone_jobs, :message, 17, "google.cloud.vmmigration.v1.CloneJob"
40
41
  optional :error, :message, 19, "google.rpc.Status"
42
+ repeated :recent_cutover_jobs, :message, 20, "google.cloud.vmmigration.v1.CutoverJob"
41
43
  oneof :target_vm_defaults do
42
44
  optional :compute_engine_target_defaults, :message, 26, "google.cloud.vmmigration.v1.ComputeEngineTargetDefaults"
43
45
  end
@@ -58,6 +60,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
58
60
  end
59
61
  add_message "google.cloud.vmmigration.v1.CloneJob" do
60
62
  optional :create_time, :message, 1, "google.protobuf.Timestamp"
63
+ optional :end_time, :message, 22, "google.protobuf.Timestamp"
61
64
  optional :name, :string, 3
62
65
  optional :state, :enum, 12, "google.cloud.vmmigration.v1.CloneJob.State"
63
66
  optional :state_time, :message, 14, "google.protobuf.Timestamp"
@@ -78,6 +81,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
78
81
  end
79
82
  add_message "google.cloud.vmmigration.v1.CutoverJob" do
80
83
  optional :create_time, :message, 1, "google.protobuf.Timestamp"
84
+ optional :end_time, :message, 16, "google.protobuf.Timestamp"
81
85
  optional :name, :string, 3
82
86
  optional :state, :enum, 5, "google.cloud.vmmigration.v1.CutoverJob.State"
83
87
  optional :state_time, :message, 6, "google.protobuf.Timestamp"
@@ -151,6 +155,10 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
151
155
  optional :state, :enum, 7, "google.cloud.vmmigration.v1.DatacenterConnector.State"
152
156
  optional :state_time, :message, 8, "google.protobuf.Timestamp"
153
157
  optional :error, :message, 11, "google.rpc.Status"
158
+ optional :appliance_infrastructure_version, :string, 13
159
+ optional :appliance_software_version, :string, 14
160
+ optional :available_versions, :message, 15, "google.cloud.vmmigration.v1.AvailableUpdates"
161
+ optional :upgrade_status, :message, 16, "google.cloud.vmmigration.v1.UpgradeStatus"
154
162
  end
155
163
  add_enum "google.cloud.vmmigration.v1.DatacenterConnector.State" do
156
164
  value :STATE_UNSPECIFIED, 0
@@ -159,6 +167,29 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
159
167
  value :FAILED, 3
160
168
  value :ACTIVE, 4
161
169
  end
170
+ add_message "google.cloud.vmmigration.v1.UpgradeStatus" do
171
+ optional :version, :string, 1
172
+ optional :state, :enum, 2, "google.cloud.vmmigration.v1.UpgradeStatus.State"
173
+ optional :error, :message, 3, "google.rpc.Status"
174
+ optional :start_time, :message, 4, "google.protobuf.Timestamp"
175
+ optional :previous_version, :string, 5
176
+ end
177
+ add_enum "google.cloud.vmmigration.v1.UpgradeStatus.State" do
178
+ value :STATE_UNSPECIFIED, 0
179
+ value :RUNNING, 1
180
+ value :FAILED, 2
181
+ value :SUCCEEDED, 3
182
+ end
183
+ add_message "google.cloud.vmmigration.v1.AvailableUpdates" do
184
+ optional :new_deployable_appliance, :message, 1, "google.cloud.vmmigration.v1.ApplianceVersion"
185
+ optional :in_place_update, :message, 2, "google.cloud.vmmigration.v1.ApplianceVersion"
186
+ end
187
+ add_message "google.cloud.vmmigration.v1.ApplianceVersion" do
188
+ optional :version, :string, 1
189
+ optional :uri, :string, 2
190
+ optional :critical, :bool, 3
191
+ optional :release_notes_uri, :string, 4
192
+ end
162
193
  add_message "google.cloud.vmmigration.v1.ListSourcesRequest" do
163
194
  optional :parent, :string, 1
164
195
  optional :page_size, :int32, 2
@@ -313,6 +344,12 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
313
344
  optional :name, :string, 1
314
345
  optional :request_id, :string, 2
315
346
  end
347
+ add_message "google.cloud.vmmigration.v1.UpgradeApplianceRequest" do
348
+ optional :datacenter_connector, :string, 1
349
+ optional :request_id, :string, 2
350
+ end
351
+ add_message "google.cloud.vmmigration.v1.UpgradeApplianceResponse" do
352
+ end
316
353
  add_message "google.cloud.vmmigration.v1.ListDatacenterConnectorsRequest" do
317
354
  optional :parent, :string, 1
318
355
  optional :page_size, :int32, 2
@@ -337,6 +374,8 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
337
374
  optional :secure_boot, :bool, 14
338
375
  optional :boot_option, :enum, 15, "google.cloud.vmmigration.v1.ComputeEngineBootOption"
339
376
  map :metadata, :string, :string, 16
377
+ repeated :additional_licenses, :string, 17
378
+ optional :hostname, :string, 18
340
379
  end
341
380
  add_message "google.cloud.vmmigration.v1.ComputeEngineTargetDetails" do
342
381
  optional :vm_name, :string, 1
@@ -355,6 +394,8 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
355
394
  optional :secure_boot, :bool, 14
356
395
  optional :boot_option, :enum, 15, "google.cloud.vmmigration.v1.ComputeEngineBootOption"
357
396
  map :metadata, :string, :string, 16
397
+ repeated :additional_licenses, :string, 17
398
+ optional :hostname, :string, 18
358
399
  end
359
400
  add_message "google.cloud.vmmigration.v1.NetworkInterface" do
360
401
  optional :network, :string, 1
@@ -414,6 +455,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
414
455
  optional :page_token, :string, 3
415
456
  optional :filter, :string, 4
416
457
  optional :order_by, :string, 5
458
+ optional :view, :enum, 6, "google.cloud.vmmigration.v1.MigratingVmView"
417
459
  end
418
460
  add_message "google.cloud.vmmigration.v1.ListMigratingVmsResponse" do
419
461
  repeated :migrating_vms, :message, 1, "google.cloud.vmmigration.v1.MigratingVm"
@@ -422,6 +464,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
422
464
  end
423
465
  add_message "google.cloud.vmmigration.v1.GetMigratingVmRequest" do
424
466
  optional :name, :string, 1
467
+ optional :view, :enum, 2, "google.cloud.vmmigration.v1.MigratingVmView"
425
468
  end
426
469
  add_message "google.cloud.vmmigration.v1.UpdateMigratingVmRequest" do
427
470
  optional :update_mask, :message, 1, "google.protobuf.FieldMask"
@@ -589,12 +632,18 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
589
632
  value :CLONE_ERROR, 6
590
633
  value :CUTOVER_ERROR, 7
591
634
  value :UTILIZATION_REPORT_ERROR, 8
635
+ value :APPLIANCE_UPGRADE_ERROR, 9
592
636
  end
593
637
  add_enum "google.cloud.vmmigration.v1.UtilizationReportView" do
594
638
  value :UTILIZATION_REPORT_VIEW_UNSPECIFIED, 0
595
639
  value :BASIC, 1
596
640
  value :FULL, 2
597
641
  end
642
+ add_enum "google.cloud.vmmigration.v1.MigratingVmView" do
643
+ value :MIGRATING_VM_VIEW_UNSPECIFIED, 0
644
+ value :MIGRATING_VM_VIEW_BASIC, 1
645
+ value :MIGRATING_VM_VIEW_FULL, 2
646
+ end
598
647
  add_enum "google.cloud.vmmigration.v1.ComputeEngineDiskType" do
599
648
  value :COMPUTE_ENGINE_DISK_TYPE_UNSPECIFIED, 0
600
649
  value :COMPUTE_ENGINE_DISK_TYPE_STANDARD, 1
@@ -636,6 +685,10 @@ module Google
636
685
  VmwareSourceDetails = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vmmigration.v1.VmwareSourceDetails").msgclass
637
686
  DatacenterConnector = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vmmigration.v1.DatacenterConnector").msgclass
638
687
  DatacenterConnector::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vmmigration.v1.DatacenterConnector.State").enummodule
688
+ UpgradeStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vmmigration.v1.UpgradeStatus").msgclass
689
+ UpgradeStatus::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vmmigration.v1.UpgradeStatus.State").enummodule
690
+ AvailableUpdates = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vmmigration.v1.AvailableUpdates").msgclass
691
+ ApplianceVersion = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vmmigration.v1.ApplianceVersion").msgclass
639
692
  ListSourcesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vmmigration.v1.ListSourcesRequest").msgclass
640
693
  ListSourcesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vmmigration.v1.ListSourcesResponse").msgclass
641
694
  GetSourceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vmmigration.v1.GetSourceRequest").msgclass
@@ -662,6 +715,8 @@ module Google
662
715
  GetDatacenterConnectorRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vmmigration.v1.GetDatacenterConnectorRequest").msgclass
663
716
  CreateDatacenterConnectorRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vmmigration.v1.CreateDatacenterConnectorRequest").msgclass
664
717
  DeleteDatacenterConnectorRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vmmigration.v1.DeleteDatacenterConnectorRequest").msgclass
718
+ UpgradeApplianceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vmmigration.v1.UpgradeApplianceRequest").msgclass
719
+ UpgradeApplianceResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vmmigration.v1.UpgradeApplianceResponse").msgclass
665
720
  ListDatacenterConnectorsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vmmigration.v1.ListDatacenterConnectorsRequest").msgclass
666
721
  ComputeEngineTargetDefaults = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vmmigration.v1.ComputeEngineTargetDefaults").msgclass
667
722
  ComputeEngineTargetDetails = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vmmigration.v1.ComputeEngineTargetDetails").msgclass
@@ -716,6 +771,7 @@ module Google
716
771
  MigrationError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vmmigration.v1.MigrationError").msgclass
717
772
  MigrationError::ErrorCode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vmmigration.v1.MigrationError.ErrorCode").enummodule
718
773
  UtilizationReportView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vmmigration.v1.UtilizationReportView").enummodule
774
+ MigratingVmView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vmmigration.v1.MigratingVmView").enummodule
719
775
  ComputeEngineDiskType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vmmigration.v1.ComputeEngineDiskType").enummodule
720
776
  ComputeEngineLicenseType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vmmigration.v1.ComputeEngineLicenseType").enummodule
721
777
  ComputeEngineBootOption = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vmmigration.v1.ComputeEngineBootOption").enummodule
@@ -65,6 +65,9 @@ module Google
65
65
  rpc :CreateDatacenterConnector, ::Google::Cloud::VMMigration::V1::CreateDatacenterConnectorRequest, ::Google::Longrunning::Operation
66
66
  # Deletes a single DatacenterConnector.
67
67
  rpc :DeleteDatacenterConnector, ::Google::Cloud::VMMigration::V1::DeleteDatacenterConnectorRequest, ::Google::Longrunning::Operation
68
+ # Upgrades the appliance relate to this DatacenterConnector to the in-place
69
+ # updateable version.
70
+ rpc :UpgradeAppliance, ::Google::Cloud::VMMigration::V1::UpgradeApplianceRequest, ::Google::Longrunning::Operation
68
71
  # Creates a new MigratingVm in a given Source.
69
72
  rpc :CreateMigratingVm, ::Google::Cloud::VMMigration::V1::CreateMigratingVmRequest, ::Google::Longrunning::Operation
70
73
  # Lists MigratingVms in a given Source.
@@ -68,15 +68,15 @@ module Google
68
68
  # The replication schedule policy.
69
69
  # @!attribute [r] create_time
70
70
  # @return [::Google::Protobuf::Timestamp]
71
- # Output only. The time the migrating VM was created (this refers to this resource and not
72
- # to the time it was installed in the source).
71
+ # Output only. The time the migrating VM was created (this refers to this
72
+ # resource and not to the time it was installed in the source).
73
73
  # @!attribute [r] update_time
74
74
  # @return [::Google::Protobuf::Timestamp]
75
75
  # Output only. The last time the migrating VM resource was updated.
76
76
  # @!attribute [r] last_sync
77
77
  # @return [::Google::Cloud::VMMigration::V1::ReplicationSync]
78
- # Output only. The most updated snapshot created time in the source that finished
79
- # replication.
78
+ # Output only. The most updated snapshot created time in the source that
79
+ # finished replication.
80
80
  # @!attribute [r] state
81
81
  # @return [::Google::Cloud::VMMigration::V1::MigratingVm::State]
82
82
  # Output only. State of the MigratingVm.
@@ -85,19 +85,34 @@ module Google
85
85
  # Output only. The last time the migrating VM state was updated.
86
86
  # @!attribute [r] current_sync_info
87
87
  # @return [::Google::Cloud::VMMigration::V1::ReplicationCycle]
88
- # Output only. The percentage progress of the current running replication cycle.
88
+ # Output only. The percentage progress of the current running replication
89
+ # cycle.
89
90
  # @!attribute [r] group
90
91
  # @return [::String]
91
- # Output only. The group this migrating vm is included in, if any. The group is
92
- # represented by the full path of the appropriate
92
+ # Output only. The group this migrating vm is included in, if any. The group
93
+ # is represented by the full path of the appropriate
93
94
  # {::Google::Cloud::VMMigration::V1::Group Group} resource.
94
95
  # @!attribute [rw] labels
95
96
  # @return [::Google::Protobuf::Map{::String => ::String}]
96
97
  # The labels of the migrating VM.
98
+ # @!attribute [r] recent_clone_jobs
99
+ # @return [::Array<::Google::Cloud::VMMigration::V1::CloneJob>]
100
+ # Output only. The recent {::Google::Cloud::VMMigration::V1::CloneJob clone jobs}
101
+ # performed on the migrating VM. This field holds the vm's last completed
102
+ # clone job and the vm's running clone job, if one exists.
103
+ # Note: To have this field populated you need to explicitly request it via
104
+ # the "view" parameter of the Get/List request.
97
105
  # @!attribute [r] error
98
106
  # @return [::Google::Rpc::Status]
99
- # Output only. Provides details on the state of the Migrating VM in case of an
100
- # error in replication.
107
+ # Output only. Provides details on the state of the Migrating VM in case of
108
+ # an error in replication.
109
+ # @!attribute [r] recent_cutover_jobs
110
+ # @return [::Array<::Google::Cloud::VMMigration::V1::CutoverJob>]
111
+ # Output only. The recent cutover jobs performed on the migrating VM.
112
+ # This field holds the vm's last completed cutover job and the vm's
113
+ # running cutover job, if one exists.
114
+ # Note: To have this field populated you need to explicitly request it via
115
+ # the "view" parameter of the Get/List request.
101
116
  class MigratingVm
102
117
  include ::Google::Protobuf::MessageExts
103
118
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -172,11 +187,14 @@ module Google
172
187
  # Output only. Details of the target VM in Compute Engine.
173
188
  # @!attribute [r] create_time
174
189
  # @return [::Google::Protobuf::Timestamp]
175
- # Output only. The time the clone job was created (as an API call, not when it was
176
- # actually created in the target).
177
- # @!attribute [rw] name
190
+ # Output only. The time the clone job was created (as an API call, not when
191
+ # it was actually created in the target).
192
+ # @!attribute [r] end_time
193
+ # @return [::Google::Protobuf::Timestamp]
194
+ # Output only. The time the clone job was ended.
195
+ # @!attribute [r] name
178
196
  # @return [::String]
179
- # The name of the clone.
197
+ # Output only. The name of the clone.
180
198
  # @!attribute [r] state
181
199
  # @return [::Google::Cloud::VMMigration::V1::CloneJob::State]
182
200
  # Output only. State of the clone job.
@@ -185,7 +203,8 @@ module Google
185
203
  # Output only. The time the state was last updated.
186
204
  # @!attribute [r] error
187
205
  # @return [::Google::Rpc::Status]
188
- # Output only. Provides details for the errors that led to the Clone Job's state.
206
+ # Output only. Provides details for the errors that led to the Clone Job's
207
+ # state.
189
208
  class CloneJob
190
209
  include ::Google::Protobuf::MessageExts
191
210
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -227,8 +246,11 @@ module Google
227
246
  # Output only. Details of the target VM in Compute Engine.
228
247
  # @!attribute [r] create_time
229
248
  # @return [::Google::Protobuf::Timestamp]
230
- # Output only. The time the cutover job was created (as an API call, not when it was
231
- # actually created in the target).
249
+ # Output only. The time the cutover job was created (as an API call, not when
250
+ # it was actually created in the target).
251
+ # @!attribute [r] end_time
252
+ # @return [::Google::Protobuf::Timestamp]
253
+ # Output only. The time the cutover job had finished.
232
254
  # @!attribute [r] name
233
255
  # @return [::String]
234
256
  # Output only. The name of the cutover job.
@@ -243,10 +265,12 @@ module Google
243
265
  # Output only. The current progress in percentage of the cutover job.
244
266
  # @!attribute [r] error
245
267
  # @return [::Google::Rpc::Status]
246
- # Output only. Provides details for the errors that led to the Cutover Job's state.
268
+ # Output only. Provides details for the errors that led to the Cutover Job's
269
+ # state.
247
270
  # @!attribute [r] state_message
248
271
  # @return [::String]
249
- # Output only. A message providing possible extra details about the current state.
272
+ # Output only. A message providing possible extra details about the current
273
+ # state.
250
274
  class CutoverJob
251
275
  include ::Google::Protobuf::MessageExts
252
276
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -331,10 +355,10 @@ module Google
331
355
  # Required. The parent, which owns this collection of source VMs.
332
356
  # @!attribute [rw] page_size
333
357
  # @return [::Integer]
334
- # Optional. The maximum number of clone jobs to return. The service may return
335
- # fewer than this value. If unspecified, at most 500 clone jobs will be
336
- # returned. The maximum value is 1000; values above 1000 will be coerced to
337
- # 1000.
358
+ # Optional. The maximum number of clone jobs to return. The service may
359
+ # return fewer than this value. If unspecified, at most 500 clone jobs will
360
+ # be returned. The maximum value is 1000; values above 1000 will be coerced
361
+ # to 1000.
338
362
  # @!attribute [rw] page_token
339
363
  # @return [::String]
340
364
  # Required. A page token, received from a previous `ListCloneJobs` call.
@@ -359,8 +383,8 @@ module Google
359
383
  # Output only. The list of clone jobs response.
360
384
  # @!attribute [r] next_page_token
361
385
  # @return [::String]
362
- # Output only. A token, which can be sent as `page_token` to retrieve the next page.
363
- # If this field is omitted, there are no subsequent pages.
386
+ # Output only. A token, which can be sent as `page_token` to retrieve the
387
+ # next page. If this field is omitted, there are no subsequent pages.
364
388
  # @!attribute [r] unreachable
365
389
  # @return [::Array<::String>]
366
390
  # Output only. Locations that could not be reached.
@@ -419,8 +443,8 @@ module Google
419
443
  # The credentials username.
420
444
  # @!attribute [rw] password
421
445
  # @return [::String]
422
- # Input only. The credentials password. This is write only and can not be read in a GET
423
- # operation.
446
+ # Input only. The credentials password. This is write only and can not be
447
+ # read in a GET operation.
424
448
  # @!attribute [rw] vcenter_ip
425
449
  # @return [::String]
426
450
  # The ip address of the vcenter this Source represents.
@@ -437,8 +461,8 @@ module Google
437
461
  # to connect the Datacenter to GCP and support vm migration data transfer.
438
462
  # @!attribute [r] create_time
439
463
  # @return [::Google::Protobuf::Timestamp]
440
- # Output only. The time the connector was created (as an API call, not when it was
441
- # actually installed).
464
+ # Output only. The time the connector was created (as an API call, not when
465
+ # it was actually installed).
442
466
  # @!attribute [r] update_time
443
467
  # @return [::Google::Protobuf::Timestamp]
444
468
  # Output only. The last time the connector was updated with an API call.
@@ -447,9 +471,9 @@ module Google
447
471
  # Output only. The connector's name.
448
472
  # @!attribute [rw] registration_id
449
473
  # @return [::String]
450
- # Immutable. A unique key for this connector. This key is internal to the OVA connector
451
- # and is supplied with its creation during the registration process and can
452
- # not be modified.
474
+ # Immutable. A unique key for this connector. This key is internal to the OVA
475
+ # connector and is supplied with its creation during the registration process
476
+ # and can not be modified.
453
477
  # @!attribute [rw] service_account
454
478
  # @return [::String]
455
479
  # The service account to use in the connector when communicating with the
@@ -460,17 +484,35 @@ module Google
460
484
  # connector during the registration process and can not be modified.
461
485
  # @!attribute [r] bucket
462
486
  # @return [::String]
463
- # Output only. The communication channel between the datacenter connector and GCP.
487
+ # Output only. The communication channel between the datacenter connector and
488
+ # GCP.
464
489
  # @!attribute [r] state
465
490
  # @return [::Google::Cloud::VMMigration::V1::DatacenterConnector::State]
466
- # Output only. State of the DatacenterConnector, as determined by the health checks.
491
+ # Output only. State of the DatacenterConnector, as determined by the health
492
+ # checks.
467
493
  # @!attribute [r] state_time
468
494
  # @return [::Google::Protobuf::Timestamp]
469
495
  # Output only. The time the state was last set.
470
496
  # @!attribute [r] error
471
497
  # @return [::Google::Rpc::Status]
472
- # Output only. Provides details on the state of the Datacenter Connector in case of an
473
- # error.
498
+ # Output only. Provides details on the state of the Datacenter Connector in
499
+ # case of an error.
500
+ # @!attribute [r] appliance_infrastructure_version
501
+ # @return [::String]
502
+ # Output only. Appliance OVA version.
503
+ # This is the OVA which is manually installed by the user and contains the
504
+ # infrastructure for the automatically updatable components on the appliance.
505
+ # @!attribute [r] appliance_software_version
506
+ # @return [::String]
507
+ # Output only. Appliance last installed update bundle version.
508
+ # This is the version of the automatically updatable components on the
509
+ # appliance.
510
+ # @!attribute [r] available_versions
511
+ # @return [::Google::Cloud::VMMigration::V1::AvailableUpdates]
512
+ # Output only. The available versions for updating this appliance.
513
+ # @!attribute [r] upgrade_status
514
+ # @return [::Google::Cloud::VMMigration::V1::UpgradeStatus]
515
+ # Output only. The status of the current / last upgradeAppliance operation.
474
516
  class DatacenterConnector
475
517
  include ::Google::Protobuf::MessageExts
476
518
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -497,6 +539,76 @@ module Google
497
539
  end
498
540
  end
499
541
 
542
+ # UpgradeStatus contains information about upgradeAppliance operation.
543
+ # @!attribute [rw] version
544
+ # @return [::String]
545
+ # The version to upgrade to.
546
+ # @!attribute [rw] state
547
+ # @return [::Google::Cloud::VMMigration::V1::UpgradeStatus::State]
548
+ # The state of the upgradeAppliance operation.
549
+ # @!attribute [rw] error
550
+ # @return [::Google::Rpc::Status]
551
+ # Provides details on the state of the upgrade operation in case of an error.
552
+ # @!attribute [rw] start_time
553
+ # @return [::Google::Protobuf::Timestamp]
554
+ # The time the operation was started.
555
+ # @!attribute [rw] previous_version
556
+ # @return [::String]
557
+ # The version from which we upgraded.
558
+ class UpgradeStatus
559
+ include ::Google::Protobuf::MessageExts
560
+ extend ::Google::Protobuf::MessageExts::ClassMethods
561
+
562
+ # The possible values of the state.
563
+ module State
564
+ # The state was not sampled by the health checks yet.
565
+ STATE_UNSPECIFIED = 0
566
+
567
+ # The upgrade has started.
568
+ RUNNING = 1
569
+
570
+ # The upgrade failed.
571
+ FAILED = 2
572
+
573
+ # The upgrade finished successfully.
574
+ SUCCEEDED = 3
575
+ end
576
+ end
577
+
578
+ # Holds informatiom about the available versions for upgrade.
579
+ # @!attribute [rw] new_deployable_appliance
580
+ # @return [::Google::Cloud::VMMigration::V1::ApplianceVersion]
581
+ # The newest deployable version of the appliance.
582
+ # The current appliance can't be updated into this version, and the owner
583
+ # must manually deploy this OVA to a new appliance.
584
+ # @!attribute [rw] in_place_update
585
+ # @return [::Google::Cloud::VMMigration::V1::ApplianceVersion]
586
+ # The latest version for in place update.
587
+ # The current appliance can be updated to this version using the API or m4c
588
+ # CLI.
589
+ class AvailableUpdates
590
+ include ::Google::Protobuf::MessageExts
591
+ extend ::Google::Protobuf::MessageExts::ClassMethods
592
+ end
593
+
594
+ # Describes an appliance version.
595
+ # @!attribute [rw] version
596
+ # @return [::String]
597
+ # The appliance version.
598
+ # @!attribute [rw] uri
599
+ # @return [::String]
600
+ # A link for downloading the version.
601
+ # @!attribute [rw] critical
602
+ # @return [::Boolean]
603
+ # Determine whether it's critical to upgrade the appliance to this version.
604
+ # @!attribute [rw] release_notes_uri
605
+ # @return [::String]
606
+ # Link to a page that contains the version release notes.
607
+ class ApplianceVersion
608
+ include ::Google::Protobuf::MessageExts
609
+ extend ::Google::Protobuf::MessageExts::ClassMethods
610
+ end
611
+
500
612
  # Request message for 'ListSources' request.
501
613
  # @!attribute [rw] parent
502
614
  # @return [::String]
@@ -531,8 +643,8 @@ module Google
531
643
  # Output only. The list of sources response.
532
644
  # @!attribute [r] next_page_token
533
645
  # @return [::String]
534
- # Output only. A token, which can be sent as `page_token` to retrieve the next page.
535
- # If this field is omitted, there are no subsequent pages.
646
+ # Output only. A token, which can be sent as `page_token` to retrieve the
647
+ # next page. If this field is omitted, there are no subsequent pages.
536
648
  # @!attribute [r] unreachable
537
649
  # @return [::Array<::String>]
538
650
  # Output only. Locations that could not be reached.
@@ -684,7 +796,7 @@ module Google
684
796
  # @!attribute [rw] guest_description
685
797
  # @return [::String]
686
798
  # The VM's OS. See for example
687
- # https://pubs.vmware.com/vi-sdk/visdk250/ReferenceGuide/vim.vm.GuestOsDescriptor.GuestOsIdentifier.html
799
+ # https://vdc-repo.vmware.com/vmwb-repository/dcr-public/da47f910-60ac-438b-8b9b-6122f4d14524/16b7274a-bf8b-4b4c-a05e-746f2aa93c8c/doc/vim.vm.GuestOsDescriptor.GuestOsIdentifier.html
688
800
  # for types of strings this might hold.
689
801
  # @!attribute [r] boot_option
690
802
  # @return [::Google::Cloud::VMMigration::V1::VmwareVmDetails::BootOption]
@@ -732,13 +844,13 @@ module Google
732
844
 
733
845
  # Response message for
734
846
  # {::Google::Cloud::VMMigration::V1::VMMigration::Client#fetch_inventory fetchInventory}.
735
- # @!attribute [r] vmware_vms
847
+ # @!attribute [rw] vmware_vms
736
848
  # @return [::Google::Cloud::VMMigration::V1::VmwareVmsDetails]
737
- # Output only. The description of the VMs in a Source of type Vmware.
849
+ # The description of the VMs in a Source of type Vmware.
738
850
  # @!attribute [r] update_time
739
851
  # @return [::Google::Protobuf::Timestamp]
740
- # Output only. The timestamp when the source was last queried (if the result is from the
741
- # cache).
852
+ # Output only. The timestamp when the source was last queried (if the result
853
+ # is from the cache).
742
854
  class FetchInventoryResponse
743
855
  include ::Google::Protobuf::MessageExts
744
856
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -760,19 +872,20 @@ module Google
760
872
  # Output only. The time the state was last set.
761
873
  # @!attribute [r] error
762
874
  # @return [::Google::Rpc::Status]
763
- # Output only. Provides details on the state of the report in case of an error.
875
+ # Output only. Provides details on the state of the report in case of an
876
+ # error.
764
877
  # @!attribute [r] create_time
765
878
  # @return [::Google::Protobuf::Timestamp]
766
- # Output only. The time the report was created (this refers to the time of the request,
767
- # not the time the report creation completed).
879
+ # Output only. The time the report was created (this refers to the time of
880
+ # the request, not the time the report creation completed).
768
881
  # @!attribute [rw] time_frame
769
882
  # @return [::Google::Cloud::VMMigration::V1::UtilizationReport::TimeFrame]
770
883
  # Time frame of the report.
771
884
  # @!attribute [r] frame_end_time
772
885
  # @return [::Google::Protobuf::Timestamp]
773
- # Output only. The point in time when the time frame ends. Notice that the time
774
- # frame is counted backwards. For instance if the "frame_end_time" value is
775
- # 2021/01/20 and the time frame is WEEK then the report covers the week
886
+ # Output only. The point in time when the time frame ends. Notice that the
887
+ # time frame is counted backwards. For instance if the "frame_end_time" value
888
+ # is 2021/01/20 and the time frame is WEEK then the report covers the week
776
889
  # between 2021/01/20 and 2021/01/14.
777
890
  # @!attribute [r] vm_count
778
891
  # @return [::Integer]
@@ -881,8 +994,8 @@ module Google
881
994
  # 1000.
882
995
  # @!attribute [rw] page_token
883
996
  # @return [::String]
884
- # Required. A page token, received from a previous `ListUtilizationReports` call.
885
- # Provide this to retrieve the subsequent page.
997
+ # Required. A page token, received from a previous `ListUtilizationReports`
998
+ # call. Provide this to retrieve the subsequent page.
886
999
  #
887
1000
  # When paginating, all other parameters provided to `ListUtilizationReports`
888
1001
  # must match the call that provided the page token.
@@ -903,8 +1016,8 @@ module Google
903
1016
  # Output only. The list of reports.
904
1017
  # @!attribute [r] next_page_token
905
1018
  # @return [::String]
906
- # Output only. A token, which can be sent as `page_token` to retrieve the next page.
907
- # If this field is omitted, there are no subsequent pages.
1019
+ # Output only. A token, which can be sent as `page_token` to retrieve the
1020
+ # next page. If this field is omitted, there are no subsequent pages.
908
1021
  # @!attribute [r] unreachable
909
1022
  # @return [::Array<::String>]
910
1023
  # Output only. Locations that could not be reached.
@@ -935,8 +1048,8 @@ module Google
935
1048
  # Required. The report to create.
936
1049
  # @!attribute [rw] utilization_report_id
937
1050
  # @return [::String]
938
- # Required. The ID to use for the report, which will become the final component of
939
- # the reports's resource name.
1051
+ # Required. The ID to use for the report, which will become the final
1052
+ # component of the reports's resource name.
940
1053
  #
941
1054
  # This value maximum length is 63 characters, and valid characters
942
1055
  # are /[a-z][0-9]-/. It must start with an english letter and must not
@@ -991,8 +1104,8 @@ module Google
991
1104
  # Output only. The list of sources response.
992
1105
  # @!attribute [r] next_page_token
993
1106
  # @return [::String]
994
- # Output only. A token, which can be sent as `page_token` to retrieve the next page.
995
- # If this field is omitted, there are no subsequent pages.
1107
+ # Output only. A token, which can be sent as `page_token` to retrieve the
1108
+ # next page. If this field is omitted, there are no subsequent pages.
996
1109
  # @!attribute [r] unreachable
997
1110
  # @return [::Array<::String>]
998
1111
  # Output only. Locations that could not be reached.
@@ -1067,20 +1180,50 @@ module Google
1067
1180
  extend ::Google::Protobuf::MessageExts::ClassMethods
1068
1181
  end
1069
1182
 
1183
+ # Request message for 'UpgradeAppliance' request.
1184
+ # @!attribute [rw] datacenter_connector
1185
+ # @return [::String]
1186
+ # Required. The DatacenterConnector name.
1187
+ # @!attribute [rw] request_id
1188
+ # @return [::String]
1189
+ # A request ID to identify requests. Specify a unique request ID
1190
+ # so that if you must retry your request, the server will know to ignore
1191
+ # the request if it has already been completed. The server will guarantee
1192
+ # that for at least 60 minutes after the first request.
1193
+ #
1194
+ # For example, consider a situation where you make an initial request and t
1195
+ # he request times out. If you make the request again with the same request
1196
+ # ID, the server can check if original operation with the same request ID
1197
+ # was received, and if so, will ignore the second request. This prevents
1198
+ # clients from accidentally creating duplicate commitments.
1199
+ #
1200
+ # The request ID must be a valid UUID with the exception that zero UUID is
1201
+ # not supported (00000000-0000-0000-0000-000000000000).
1202
+ class UpgradeApplianceRequest
1203
+ include ::Google::Protobuf::MessageExts
1204
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1205
+ end
1206
+
1207
+ # Response message for 'UpgradeAppliance' request.
1208
+ class UpgradeApplianceResponse
1209
+ include ::Google::Protobuf::MessageExts
1210
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1211
+ end
1212
+
1070
1213
  # Request message for 'ListDatacenterConnectors' request.
1071
1214
  # @!attribute [rw] parent
1072
1215
  # @return [::String]
1073
1216
  # Required. The parent, which owns this collection of connectors.
1074
1217
  # @!attribute [rw] page_size
1075
1218
  # @return [::Integer]
1076
- # Optional. The maximum number of connectors to return. The service may return
1077
- # fewer than this value. If unspecified, at most 500 sources will be
1219
+ # Optional. The maximum number of connectors to return. The service may
1220
+ # return fewer than this value. If unspecified, at most 500 sources will be
1078
1221
  # returned. The maximum value is 1000; values above 1000 will be coerced to
1079
1222
  # 1000.
1080
1223
  # @!attribute [rw] page_token
1081
1224
  # @return [::String]
1082
- # Required. A page token, received from a previous `ListDatacenterConnectors` call.
1083
- # Provide this to retrieve the subsequent page.
1225
+ # Required. A page token, received from a previous `ListDatacenterConnectors`
1226
+ # call. Provide this to retrieve the subsequent page.
1084
1227
  #
1085
1228
  # When paginating, all other parameters provided to
1086
1229
  # `ListDatacenterConnectors` must match the call that provided the page
@@ -1148,6 +1291,12 @@ module Google
1148
1291
  # @!attribute [rw] metadata
1149
1292
  # @return [::Google::Protobuf::Map{::String => ::String}]
1150
1293
  # The metadata key/value pairs to assign to the VM.
1294
+ # @!attribute [rw] additional_licenses
1295
+ # @return [::Array<::String>]
1296
+ # Additional licenses to assign to the VM.
1297
+ # @!attribute [rw] hostname
1298
+ # @return [::String]
1299
+ # The hostname to assign to the VM.
1151
1300
  class ComputeEngineTargetDefaults
1152
1301
  include ::Google::Protobuf::MessageExts
1153
1302
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -1222,6 +1371,12 @@ module Google
1222
1371
  # @!attribute [rw] metadata
1223
1372
  # @return [::Google::Protobuf::Map{::String => ::String}]
1224
1373
  # The metadata key/value pairs to assign to the VM.
1374
+ # @!attribute [rw] additional_licenses
1375
+ # @return [::Array<::String>]
1376
+ # Additional licenses to assign to the VM.
1377
+ # @!attribute [rw] hostname
1378
+ # @return [::String]
1379
+ # The hostname to assign to the VM.
1225
1380
  class ComputeEngineTargetDetails
1226
1381
  include ::Google::Protobuf::MessageExts
1227
1382
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -1427,10 +1582,10 @@ module Google
1427
1582
  # Required. The parent, which owns this collection of MigratingVms.
1428
1583
  # @!attribute [rw] page_size
1429
1584
  # @return [::Integer]
1430
- # Optional. The maximum number of migrating VMs to return. The service may return
1431
- # fewer than this value. If unspecified, at most 500 migrating VMs will be
1432
- # returned. The maximum value is 1000; values above 1000 will be coerced to
1433
- # 1000.
1585
+ # Optional. The maximum number of migrating VMs to return. The service may
1586
+ # return fewer than this value. If unspecified, at most 500 migrating VMs
1587
+ # will be returned. The maximum value is 1000; values above 1000 will be
1588
+ # coerced to 1000.
1434
1589
  # @!attribute [rw] page_token
1435
1590
  # @return [::String]
1436
1591
  # Required. A page token, received from a previous `ListMigratingVms` call.
@@ -1444,6 +1599,9 @@ module Google
1444
1599
  # @!attribute [rw] order_by
1445
1600
  # @return [::String]
1446
1601
  # Optional. the order by fields for the result.
1602
+ # @!attribute [rw] view
1603
+ # @return [::Google::Cloud::VMMigration::V1::MigratingVmView]
1604
+ # Optional. The level of details of each migrating VM.
1447
1605
  class ListMigratingVmsRequest
1448
1606
  include ::Google::Protobuf::MessageExts
1449
1607
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -1455,8 +1613,8 @@ module Google
1455
1613
  # Output only. The list of Migrating VMs response.
1456
1614
  # @!attribute [r] next_page_token
1457
1615
  # @return [::String]
1458
- # Output only. A token, which can be sent as `page_token` to retrieve the next page.
1459
- # If this field is omitted, there are no subsequent pages.
1616
+ # Output only. A token, which can be sent as `page_token` to retrieve the
1617
+ # next page. If this field is omitted, there are no subsequent pages.
1460
1618
  # @!attribute [r] unreachable
1461
1619
  # @return [::Array<::String>]
1462
1620
  # Output only. Locations that could not be reached.
@@ -1469,6 +1627,9 @@ module Google
1469
1627
  # @!attribute [rw] name
1470
1628
  # @return [::String]
1471
1629
  # Required. The name of the MigratingVm.
1630
+ # @!attribute [rw] view
1631
+ # @return [::Google::Cloud::VMMigration::V1::MigratingVmView]
1632
+ # Optional. The level of details of the migrating VM.
1472
1633
  class GetMigratingVmRequest
1473
1634
  include ::Google::Protobuf::MessageExts
1474
1635
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -1576,9 +1737,9 @@ module Google
1576
1737
 
1577
1738
  # TargetProject message represents a target Compute Engine project for a
1578
1739
  # migration or a clone.
1579
- # @!attribute [rw] name
1740
+ # @!attribute [r] name
1580
1741
  # @return [::String]
1581
- # The name of the target project.
1742
+ # Output only. The name of the target project.
1582
1743
  # @!attribute [rw] project
1583
1744
  # @return [::String]
1584
1745
  # The target project ID (number) or project name.
@@ -1587,8 +1748,8 @@ module Google
1587
1748
  # The target project's description.
1588
1749
  # @!attribute [r] create_time
1589
1750
  # @return [::Google::Protobuf::Timestamp]
1590
- # Output only. The time this target project resource was created (not related to when the
1591
- # Compute Engine project it points to was created).
1751
+ # Output only. The time this target project resource was created (not related
1752
+ # to when the Compute Engine project it points to was created).
1592
1753
  # @!attribute [r] update_time
1593
1754
  # @return [::Google::Protobuf::Timestamp]
1594
1755
  # Output only. The last time the target project resource was updated.
@@ -1640,8 +1801,8 @@ module Google
1640
1801
  # Output only. The list of target response.
1641
1802
  # @!attribute [r] next_page_token
1642
1803
  # @return [::String]
1643
- # Output only. A token, which can be sent as `page_token` to retrieve the next page.
1644
- # If this field is omitted, there are no subsequent pages.
1804
+ # Output only. A token, which can be sent as `page_token` to retrieve the
1805
+ # next page. If this field is omitted, there are no subsequent pages.
1645
1806
  # @!attribute [r] unreachable
1646
1807
  # @return [::Array<::String>]
1647
1808
  # Output only. Locations that could not be reached.
@@ -1737,9 +1898,9 @@ module Google
1737
1898
 
1738
1899
  # Describes message for 'Group' resource. The Group is a collections of several
1739
1900
  # MigratingVms.
1740
- # @!attribute [rw] name
1901
+ # @!attribute [r] name
1741
1902
  # @return [::String]
1742
- # The Group name.
1903
+ # Output only. The Group name.
1743
1904
  # @!attribute [r] create_time
1744
1905
  # @return [::Google::Protobuf::Timestamp]
1745
1906
  # Output only. The create time timestamp.
@@ -1791,8 +1952,8 @@ module Google
1791
1952
  # Output only. The list of groups response.
1792
1953
  # @!attribute [r] next_page_token
1793
1954
  # @return [::String]
1794
- # Output only. A token, which can be sent as `page_token` to retrieve the next page.
1795
- # If this field is omitted, there are no subsequent pages.
1955
+ # Output only. A token, which can be sent as `page_token` to retrieve the
1956
+ # next page. If this field is omitted, there are no subsequent pages.
1796
1957
  # @!attribute [r] unreachable
1797
1958
  # @return [::Array<::String>]
1798
1959
  # Output only. Locations that could not be reached.
@@ -1982,10 +2143,10 @@ module Google
1982
2143
  # Required. The parent, which owns this collection of migrating VMs.
1983
2144
  # @!attribute [rw] page_size
1984
2145
  # @return [::Integer]
1985
- # Optional. The maximum number of cutover jobs to return. The service may return
1986
- # fewer than this value. If unspecified, at most 500 cutover jobs will be
1987
- # returned. The maximum value is 1000; values above 1000 will be coerced to
1988
- # 1000.
2146
+ # Optional. The maximum number of cutover jobs to return. The service may
2147
+ # return fewer than this value. If unspecified, at most 500 cutover jobs will
2148
+ # be returned. The maximum value is 1000; values above 1000 will be coerced
2149
+ # to 1000.
1989
2150
  # @!attribute [rw] page_token
1990
2151
  # @return [::String]
1991
2152
  # Required. A page token, received from a previous `ListCutoverJobs` call.
@@ -2010,8 +2171,8 @@ module Google
2010
2171
  # Output only. The list of cutover jobs response.
2011
2172
  # @!attribute [r] next_page_token
2012
2173
  # @return [::String]
2013
- # Output only. A token, which can be sent as `page_token` to retrieve the next page.
2014
- # If this field is omitted, there are no subsequent pages.
2174
+ # Output only. A token, which can be sent as `page_token` to retrieve the
2175
+ # next page. If this field is omitted, there are no subsequent pages.
2015
2176
  # @!attribute [r] unreachable
2016
2177
  # @return [::Array<::String>]
2017
2178
  # Output only. Locations that could not be reached.
@@ -2049,8 +2210,9 @@ module Google
2049
2210
  # @return [::Boolean]
2050
2211
  # Output only. Identifies whether the user has requested cancellation
2051
2212
  # of the operation. Operations that have successfully been cancelled
2052
- # have [Operation.error][] value with a {::Google::Rpc::Status#code google.rpc.Status.code} of 1,
2053
- # corresponding to `Code.CANCELLED`.
2213
+ # have [Operation.error][] value with a
2214
+ # {::Google::Rpc::Status#code google.rpc.Status.code} of 1, corresponding to
2215
+ # `Code.CANCELLED`.
2054
2216
  # @!attribute [r] api_version
2055
2217
  # @return [::String]
2056
2218
  # Output only. API version used to start the operation.
@@ -2073,7 +2235,8 @@ module Google
2073
2235
  # Output only. Suggested action for solving the error.
2074
2236
  # @!attribute [r] help_links
2075
2237
  # @return [::Array<::Google::Rpc::Help::Link>]
2076
- # Output only. URL(s) pointing to additional information on handling the current error.
2238
+ # Output only. URL(s) pointing to additional information on handling the
2239
+ # current error.
2077
2240
  # @!attribute [r] error_time
2078
2241
  # @return [::Google::Protobuf::Timestamp]
2079
2242
  # Output only. The time the error occurred.
@@ -2111,6 +2274,9 @@ module Google
2111
2274
  # Migrate for Compute encountered an error during utilization report
2112
2275
  # creation.
2113
2276
  UTILIZATION_REPORT_ERROR = 8
2277
+
2278
+ # Migrate for Compute encountered an error during appliance upgrade.
2279
+ APPLIANCE_UPGRADE_ERROR = 9
2114
2280
  end
2115
2281
  end
2116
2282
 
@@ -2129,6 +2295,20 @@ module Google
2129
2295
  FULL = 2
2130
2296
  end
2131
2297
 
2298
+ # Controls the level of details of a Migrating VM.
2299
+ module MigratingVmView
2300
+ # View is unspecified. The API will fallback to the default value.
2301
+ MIGRATING_VM_VIEW_UNSPECIFIED = 0
2302
+
2303
+ # Get the migrating VM basic details.
2304
+ # The basic details do not include the recent clone jobs and recent cutover
2305
+ # jobs lists.
2306
+ MIGRATING_VM_VIEW_BASIC = 1
2307
+
2308
+ # Include everything.
2309
+ MIGRATING_VM_VIEW_FULL = 2
2310
+ end
2311
+
2132
2312
  # Types of disks supported for Compute Engine VM.
2133
2313
  module ComputeEngineDiskType
2134
2314
  # An unspecified disk type. Will be used as STANDARD.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-vm_migration-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-07-08 00:00:00.000000000 Z
11
+ date: 2022-07-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common