google-cloud-vm_migration-v1 0.1.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.yardopts +1 -1
- data/AUTHENTICATION.md +7 -25
- data/README.md +11 -6
- data/lib/google/cloud/vm_migration/v1/version.rb +1 -1
- data/lib/google/cloud/vm_migration/v1/vm_migration/client.rb +142 -22
- data/lib/google/cloud/vm_migration/v1/vm_migration/operations.rb +3 -0
- data/lib/google/cloud/vm_migration/v1.rb +2 -0
- data/lib/google/cloud/vmmigration/v1/vmmigration_pb.rb +58 -1
- data/lib/google/cloud/vmmigration/v1/vmmigration_services_pb.rb +3 -0
- data/proto_docs/google/api/resource.rb +10 -71
- data/proto_docs/google/cloud/vmmigration/v1/vmmigration.rb +265 -85
- data/proto_docs/google/protobuf/any.rb +3 -3
- metadata +12 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d37ba3a7ce9890c0507ec039eb6e3f8884b375cfb8ca6bba7d1dfee2a10b9436
|
4
|
+
data.tar.gz: 2103cc017d7d8e3db5fbc8eb09d8c957b73f2805ec9ce2f76dc1f91d89b481e5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3d552cd9c7b863fa2db0d1cb9fbc0ac85dd720677a635acb34ccca8b947895dd5e5370ffa396edb317a28db5b64720ab0e0685119398f1043a50fd59ac1764b2
|
7
|
+
data.tar.gz: 91476fbf742843087e24187a1270d5455a40389ded629a3ab020a87fbf6942ee4d72dd0eb14a836634da50e48b18a9fbadc0c88e50bb29ce75d39a0bd555305f
|
data/.yardopts
CHANGED
data/AUTHENTICATION.md
CHANGED
@@ -118,15 +118,6 @@ To configure your system for this, simply:
|
|
118
118
|
**NOTE:** This is _not_ recommended for running in production. The Cloud SDK
|
119
119
|
*should* only be used during development.
|
120
120
|
|
121
|
-
[gce-how-to]: https://cloud.google.com/compute/docs/authentication#using
|
122
|
-
[dev-console]: https://console.cloud.google.com/project
|
123
|
-
|
124
|
-
[enable-apis]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/enable-apis.png
|
125
|
-
|
126
|
-
[create-new-service-account]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/create-new-service-account.png
|
127
|
-
[create-new-service-account-existing-keys]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/create-new-service-account-existing-keys.png
|
128
|
-
[reuse-service-account]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/reuse-service-account.png
|
129
|
-
|
130
121
|
## Creating a Service Account
|
131
122
|
|
132
123
|
Google Cloud requires **Service Account Credentials** to
|
@@ -137,31 +128,22 @@ If you are not running this client within
|
|
137
128
|
[Google Cloud Platform environments](#google-cloud-platform-environments), you
|
138
129
|
need a Google Developers service account.
|
139
130
|
|
140
|
-
1. Visit the [Google
|
131
|
+
1. Visit the [Google Cloud Console](https://console.cloud.google.com/project).
|
141
132
|
2. Create a new project or click on an existing project.
|
142
|
-
3. Activate the
|
133
|
+
3. Activate the menu in the upper left and select **APIs & Services**. From
|
143
134
|
here, you will enable the APIs that your application requires.
|
144
135
|
|
145
|
-
![Enable the APIs that your application requires][enable-apis]
|
146
|
-
|
147
136
|
*Note: You may need to enable billing in order to use these services.*
|
148
137
|
|
149
138
|
4. Select **Credentials** from the side navigation.
|
150
139
|
|
151
|
-
|
152
|
-
|
153
|
-
![Create a new service account][create-new-service-account]
|
154
|
-
|
155
|
-
![Create a new service account With Existing Keys][create-new-service-account-existing-keys]
|
156
|
-
|
157
|
-
Find the "Add credentials" drop down and select "Service account" to be
|
158
|
-
guided through downloading a new JSON key file.
|
140
|
+
Find the "Create credentials" drop down near the top of the page, and select
|
141
|
+
"Service account" to be guided through downloading a new JSON key file.
|
159
142
|
|
160
143
|
If you want to re-use an existing service account, you can easily generate a
|
161
|
-
new key file. Just select the account you wish to re-use,
|
162
|
-
|
163
|
-
|
164
|
-
![Re-use an existing service account][reuse-service-account]
|
144
|
+
new key file. Just select the account you wish to re-use, click the pencil
|
145
|
+
tool on the right side to edit the service account, select the **Keys** tab,
|
146
|
+
and then select **Add Key**.
|
165
147
|
|
166
148
|
The key file you download will be used by this library to authenticate API
|
167
149
|
requests and should be stored in a secure location.
|
data/README.md
CHANGED
@@ -37,7 +37,7 @@ request = ::Google::Cloud::VMMigration::V1::ListSourcesRequest.new # (request fi
|
|
37
37
|
response = client.list_sources request
|
38
38
|
```
|
39
39
|
|
40
|
-
View the [Client Library Documentation](https://
|
40
|
+
View the [Client Library Documentation](https://cloud.google.com/ruby/docs/reference/google-cloud-vm_migration-v1/latest)
|
41
41
|
for class and method documentation.
|
42
42
|
|
43
43
|
See also the [Product Documentation](https://cloud.google.com/migrate/compute-engine/)
|
@@ -69,16 +69,21 @@ module GRPC
|
|
69
69
|
end
|
70
70
|
```
|
71
71
|
|
72
|
+
|
73
|
+
## Google Cloud Samples
|
74
|
+
|
75
|
+
To browse ready to use code samples check [Google Cloud Samples](https://cloud.google.com/docs/samples).
|
76
|
+
|
72
77
|
## Supported Ruby Versions
|
73
78
|
|
74
|
-
This library is supported on Ruby 2.
|
79
|
+
This library is supported on Ruby 2.6+.
|
75
80
|
|
76
81
|
Google provides official support for Ruby versions that are actively supported
|
77
82
|
by Ruby Core—that is, Ruby versions that are either in normal maintenance or
|
78
|
-
in security maintenance, and not end of life.
|
79
|
-
|
80
|
-
|
81
|
-
|
83
|
+
in security maintenance, and not end of life. Older versions of Ruby _may_
|
84
|
+
still work, but are unsupported and not recommended. See
|
85
|
+
https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby
|
86
|
+
support schedule.
|
82
87
|
|
83
88
|
## Which client should I use?
|
84
89
|
|
@@ -143,6 +143,7 @@ module Google
|
|
143
143
|
|
144
144
|
@operations_client = Operations.new do |config|
|
145
145
|
config.credentials = credentials
|
146
|
+
config.quota_project = @quota_project_id
|
146
147
|
config.endpoint = @config.endpoint
|
147
148
|
end
|
148
149
|
|
@@ -808,8 +809,8 @@ module Google
|
|
808
809
|
# returned. The maximum value is 1000; values above 1000 will be coerced to
|
809
810
|
# 1000.
|
810
811
|
# @param page_token [::String]
|
811
|
-
# Required. A page token, received from a previous `ListUtilizationReports`
|
812
|
-
# 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.
|
813
814
|
#
|
814
815
|
# When paginating, all other parameters provided to `ListUtilizationReports`
|
815
816
|
# must match the call that provided the page token.
|
@@ -1000,8 +1001,8 @@ module Google
|
|
1000
1001
|
# @param utilization_report [::Google::Cloud::VMMigration::V1::UtilizationReport, ::Hash]
|
1001
1002
|
# Required. The report to create.
|
1002
1003
|
# @param utilization_report_id [::String]
|
1003
|
-
# Required. The ID to use for the report, which will become the final
|
1004
|
-
# 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.
|
1005
1006
|
#
|
1006
1007
|
# This value maximum length is 63 characters, and valid characters
|
1007
1008
|
# are /[a-z][0-9]-/. It must start with an english letter and must not
|
@@ -1221,13 +1222,13 @@ module Google
|
|
1221
1222
|
# @param parent [::String]
|
1222
1223
|
# Required. The parent, which owns this collection of connectors.
|
1223
1224
|
# @param page_size [::Integer]
|
1224
|
-
# Optional. The maximum number of connectors to return. The service may
|
1225
|
-
# 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
|
1226
1227
|
# returned. The maximum value is 1000; values above 1000 will be coerced to
|
1227
1228
|
# 1000.
|
1228
1229
|
# @param page_token [::String]
|
1229
|
-
# Required. A page token, received from a previous `ListDatacenterConnectors`
|
1230
|
-
# 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.
|
1231
1232
|
#
|
1232
1233
|
# When paginating, all other parameters provided to
|
1233
1234
|
# `ListDatacenterConnectors` must match the call that provided the page
|
@@ -1614,6 +1615,114 @@ module Google
|
|
1614
1615
|
raise ::Google::Cloud::Error.from_error(e)
|
1615
1616
|
end
|
1616
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
|
+
|
1617
1726
|
##
|
1618
1727
|
# Creates a new MigratingVm in a given Source.
|
1619
1728
|
#
|
@@ -1738,7 +1847,7 @@ module Google
|
|
1738
1847
|
# @param options [::Gapic::CallOptions, ::Hash]
|
1739
1848
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
1740
1849
|
#
|
1741
|
-
# @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)
|
1742
1851
|
# Pass arguments to `list_migrating_vms` via keyword arguments. Note that at
|
1743
1852
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
1744
1853
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
@@ -1746,10 +1855,10 @@ module Google
|
|
1746
1855
|
# @param parent [::String]
|
1747
1856
|
# Required. The parent, which owns this collection of MigratingVms.
|
1748
1857
|
# @param page_size [::Integer]
|
1749
|
-
# Optional. The maximum number of migrating VMs to return. The service may
|
1750
|
-
# fewer than this value. If unspecified, at most 500 migrating VMs
|
1751
|
-
# returned. The maximum value is 1000; values above 1000 will be
|
1752
|
-
# 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.
|
1753
1862
|
# @param page_token [::String]
|
1754
1863
|
# Required. A page token, received from a previous `ListMigratingVms` call.
|
1755
1864
|
# Provide this to retrieve the subsequent page.
|
@@ -1760,6 +1869,8 @@ module Google
|
|
1760
1869
|
# Optional. The filter request.
|
1761
1870
|
# @param order_by [::String]
|
1762
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.
|
1763
1874
|
#
|
1764
1875
|
# @yield [response, operation] Access the result along with the RPC operation
|
1765
1876
|
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::VMMigration::V1::MigratingVm>]
|
@@ -1845,13 +1956,15 @@ module Google
|
|
1845
1956
|
# @param options [::Gapic::CallOptions, ::Hash]
|
1846
1957
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
1847
1958
|
#
|
1848
|
-
# @overload get_migrating_vm(name: nil)
|
1959
|
+
# @overload get_migrating_vm(name: nil, view: nil)
|
1849
1960
|
# Pass arguments to `get_migrating_vm` via keyword arguments. Note that at
|
1850
1961
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
1851
1962
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
1852
1963
|
#
|
1853
1964
|
# @param name [::String]
|
1854
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.
|
1855
1968
|
#
|
1856
1969
|
# @yield [response, operation] Access the result along with the RPC operation
|
1857
1970
|
# @yieldparam response [::Google::Cloud::VMMigration::V1::MigratingVm]
|
@@ -2727,10 +2840,10 @@ module Google
|
|
2727
2840
|
# @param parent [::String]
|
2728
2841
|
# Required. The parent, which owns this collection of source VMs.
|
2729
2842
|
# @param page_size [::Integer]
|
2730
|
-
# Optional. The maximum number of clone jobs to return. The service may
|
2731
|
-
# fewer than this value. If unspecified, at most 500 clone jobs will
|
2732
|
-
# returned. The maximum value is 1000; values above 1000 will be coerced
|
2733
|
-
# 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.
|
2734
2847
|
# @param page_token [::String]
|
2735
2848
|
# Required. A page token, received from a previous `ListCloneJobs` call.
|
2736
2849
|
# Provide this to retrieve the subsequent page.
|
@@ -3125,10 +3238,10 @@ module Google
|
|
3125
3238
|
# @param parent [::String]
|
3126
3239
|
# Required. The parent, which owns this collection of migrating VMs.
|
3127
3240
|
# @param page_size [::Integer]
|
3128
|
-
# Optional. The maximum number of cutover jobs to return. The service may
|
3129
|
-
# fewer than this value. If unspecified, at most 500 cutover jobs will
|
3130
|
-
# returned. The maximum value is 1000; values above 1000 will be coerced
|
3131
|
-
# 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.
|
3132
3245
|
# @param page_token [::String]
|
3133
3246
|
# Required. A page token, received from a previous `ListCutoverJobs` call.
|
3134
3247
|
# Provide this to retrieve the subsequent page.
|
@@ -4753,6 +4866,11 @@ module Google
|
|
4753
4866
|
#
|
4754
4867
|
attr_reader :delete_datacenter_connector
|
4755
4868
|
##
|
4869
|
+
# RPC-specific configuration for `upgrade_appliance`
|
4870
|
+
# @return [::Gapic::Config::Method]
|
4871
|
+
#
|
4872
|
+
attr_reader :upgrade_appliance
|
4873
|
+
##
|
4756
4874
|
# RPC-specific configuration for `create_migrating_vm`
|
4757
4875
|
# @return [::Gapic::Config::Method]
|
4758
4876
|
#
|
@@ -4928,6 +5046,8 @@ module Google
|
|
4928
5046
|
@create_datacenter_connector = ::Gapic::Config::Method.new create_datacenter_connector_config
|
4929
5047
|
delete_datacenter_connector_config = parent_rpcs.delete_datacenter_connector if parent_rpcs.respond_to? :delete_datacenter_connector
|
4930
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
|
4931
5051
|
create_migrating_vm_config = parent_rpcs.create_migrating_vm if parent_rpcs.respond_to? :create_migrating_vm
|
4932
5052
|
@create_migrating_vm = ::Gapic::Config::Method.new create_migrating_vm_config
|
4933
5053
|
list_migrating_vms_config = parent_rpcs.list_migrating_vms if parent_rpcs.respond_to? :list_migrating_vms
|
@@ -1,6 +1,8 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/vmmigration/v1/vmmigration.proto
|
3
3
|
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
4
6
|
require 'google/api/annotations_pb'
|
5
7
|
require 'google/api/client_pb'
|
6
8
|
require 'google/api/field_behavior_pb'
|
@@ -11,7 +13,6 @@ require 'google/protobuf/field_mask_pb'
|
|
11
13
|
require 'google/protobuf/timestamp_pb'
|
12
14
|
require 'google/rpc/error_details_pb'
|
13
15
|
require 'google/rpc/status_pb'
|
14
|
-
require 'google/protobuf'
|
15
16
|
|
16
17
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
17
18
|
add_file("google/cloud/vmmigration/v1/vmmigration.proto", :syntax => :proto3) do
|
@@ -36,7 +37,9 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
36
37
|
optional :current_sync_info, :message, 13, "google.cloud.vmmigration.v1.ReplicationCycle"
|
37
38
|
optional :group, :string, 15
|
38
39
|
map :labels, :string, :string, 16
|
40
|
+
repeated :recent_clone_jobs, :message, 17, "google.cloud.vmmigration.v1.CloneJob"
|
39
41
|
optional :error, :message, 19, "google.rpc.Status"
|
42
|
+
repeated :recent_cutover_jobs, :message, 20, "google.cloud.vmmigration.v1.CutoverJob"
|
40
43
|
oneof :target_vm_defaults do
|
41
44
|
optional :compute_engine_target_defaults, :message, 26, "google.cloud.vmmigration.v1.ComputeEngineTargetDefaults"
|
42
45
|
end
|
@@ -57,6 +60,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
57
60
|
end
|
58
61
|
add_message "google.cloud.vmmigration.v1.CloneJob" do
|
59
62
|
optional :create_time, :message, 1, "google.protobuf.Timestamp"
|
63
|
+
optional :end_time, :message, 22, "google.protobuf.Timestamp"
|
60
64
|
optional :name, :string, 3
|
61
65
|
optional :state, :enum, 12, "google.cloud.vmmigration.v1.CloneJob.State"
|
62
66
|
optional :state_time, :message, 14, "google.protobuf.Timestamp"
|
@@ -77,6 +81,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
77
81
|
end
|
78
82
|
add_message "google.cloud.vmmigration.v1.CutoverJob" do
|
79
83
|
optional :create_time, :message, 1, "google.protobuf.Timestamp"
|
84
|
+
optional :end_time, :message, 16, "google.protobuf.Timestamp"
|
80
85
|
optional :name, :string, 3
|
81
86
|
optional :state, :enum, 5, "google.cloud.vmmigration.v1.CutoverJob.State"
|
82
87
|
optional :state_time, :message, 6, "google.protobuf.Timestamp"
|
@@ -150,6 +155,10 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
150
155
|
optional :state, :enum, 7, "google.cloud.vmmigration.v1.DatacenterConnector.State"
|
151
156
|
optional :state_time, :message, 8, "google.protobuf.Timestamp"
|
152
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"
|
153
162
|
end
|
154
163
|
add_enum "google.cloud.vmmigration.v1.DatacenterConnector.State" do
|
155
164
|
value :STATE_UNSPECIFIED, 0
|
@@ -158,6 +167,29 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
158
167
|
value :FAILED, 3
|
159
168
|
value :ACTIVE, 4
|
160
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
|
161
193
|
add_message "google.cloud.vmmigration.v1.ListSourcesRequest" do
|
162
194
|
optional :parent, :string, 1
|
163
195
|
optional :page_size, :int32, 2
|
@@ -312,6 +344,12 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
312
344
|
optional :name, :string, 1
|
313
345
|
optional :request_id, :string, 2
|
314
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
|
315
353
|
add_message "google.cloud.vmmigration.v1.ListDatacenterConnectorsRequest" do
|
316
354
|
optional :parent, :string, 1
|
317
355
|
optional :page_size, :int32, 2
|
@@ -336,6 +374,8 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
336
374
|
optional :secure_boot, :bool, 14
|
337
375
|
optional :boot_option, :enum, 15, "google.cloud.vmmigration.v1.ComputeEngineBootOption"
|
338
376
|
map :metadata, :string, :string, 16
|
377
|
+
repeated :additional_licenses, :string, 17
|
378
|
+
optional :hostname, :string, 18
|
339
379
|
end
|
340
380
|
add_message "google.cloud.vmmigration.v1.ComputeEngineTargetDetails" do
|
341
381
|
optional :vm_name, :string, 1
|
@@ -354,6 +394,8 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
354
394
|
optional :secure_boot, :bool, 14
|
355
395
|
optional :boot_option, :enum, 15, "google.cloud.vmmigration.v1.ComputeEngineBootOption"
|
356
396
|
map :metadata, :string, :string, 16
|
397
|
+
repeated :additional_licenses, :string, 17
|
398
|
+
optional :hostname, :string, 18
|
357
399
|
end
|
358
400
|
add_message "google.cloud.vmmigration.v1.NetworkInterface" do
|
359
401
|
optional :network, :string, 1
|
@@ -413,6 +455,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
413
455
|
optional :page_token, :string, 3
|
414
456
|
optional :filter, :string, 4
|
415
457
|
optional :order_by, :string, 5
|
458
|
+
optional :view, :enum, 6, "google.cloud.vmmigration.v1.MigratingVmView"
|
416
459
|
end
|
417
460
|
add_message "google.cloud.vmmigration.v1.ListMigratingVmsResponse" do
|
418
461
|
repeated :migrating_vms, :message, 1, "google.cloud.vmmigration.v1.MigratingVm"
|
@@ -421,6 +464,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
421
464
|
end
|
422
465
|
add_message "google.cloud.vmmigration.v1.GetMigratingVmRequest" do
|
423
466
|
optional :name, :string, 1
|
467
|
+
optional :view, :enum, 2, "google.cloud.vmmigration.v1.MigratingVmView"
|
424
468
|
end
|
425
469
|
add_message "google.cloud.vmmigration.v1.UpdateMigratingVmRequest" do
|
426
470
|
optional :update_mask, :message, 1, "google.protobuf.FieldMask"
|
@@ -588,12 +632,18 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
588
632
|
value :CLONE_ERROR, 6
|
589
633
|
value :CUTOVER_ERROR, 7
|
590
634
|
value :UTILIZATION_REPORT_ERROR, 8
|
635
|
+
value :APPLIANCE_UPGRADE_ERROR, 9
|
591
636
|
end
|
592
637
|
add_enum "google.cloud.vmmigration.v1.UtilizationReportView" do
|
593
638
|
value :UTILIZATION_REPORT_VIEW_UNSPECIFIED, 0
|
594
639
|
value :BASIC, 1
|
595
640
|
value :FULL, 2
|
596
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
|
597
647
|
add_enum "google.cloud.vmmigration.v1.ComputeEngineDiskType" do
|
598
648
|
value :COMPUTE_ENGINE_DISK_TYPE_UNSPECIFIED, 0
|
599
649
|
value :COMPUTE_ENGINE_DISK_TYPE_STANDARD, 1
|
@@ -635,6 +685,10 @@ module Google
|
|
635
685
|
VmwareSourceDetails = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vmmigration.v1.VmwareSourceDetails").msgclass
|
636
686
|
DatacenterConnector = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vmmigration.v1.DatacenterConnector").msgclass
|
637
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
|
638
692
|
ListSourcesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vmmigration.v1.ListSourcesRequest").msgclass
|
639
693
|
ListSourcesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vmmigration.v1.ListSourcesResponse").msgclass
|
640
694
|
GetSourceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vmmigration.v1.GetSourceRequest").msgclass
|
@@ -661,6 +715,8 @@ module Google
|
|
661
715
|
GetDatacenterConnectorRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vmmigration.v1.GetDatacenterConnectorRequest").msgclass
|
662
716
|
CreateDatacenterConnectorRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vmmigration.v1.CreateDatacenterConnectorRequest").msgclass
|
663
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
|
664
720
|
ListDatacenterConnectorsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vmmigration.v1.ListDatacenterConnectorsRequest").msgclass
|
665
721
|
ComputeEngineTargetDefaults = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vmmigration.v1.ComputeEngineTargetDefaults").msgclass
|
666
722
|
ComputeEngineTargetDetails = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vmmigration.v1.ComputeEngineTargetDetails").msgclass
|
@@ -715,6 +771,7 @@ module Google
|
|
715
771
|
MigrationError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vmmigration.v1.MigrationError").msgclass
|
716
772
|
MigrationError::ErrorCode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vmmigration.v1.MigrationError.ErrorCode").enummodule
|
717
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
|
718
775
|
ComputeEngineDiskType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vmmigration.v1.ComputeEngineDiskType").enummodule
|
719
776
|
ComputeEngineLicenseType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vmmigration.v1.ComputeEngineLicenseType").enummodule
|
720
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.
|