google-apis-vmmigration_v1alpha1 0.17.0 → 0.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -0
- data/OVERVIEW.md +3 -3
- data/lib/google/apis/vmmigration_v1alpha1/classes.rb +55 -0
- data/lib/google/apis/vmmigration_v1alpha1/gem_version.rb +3 -3
- data/lib/google/apis/vmmigration_v1alpha1/representations.rb +20 -0
- data/lib/google/apis/vmmigration_v1alpha1/service.rb +78 -1
- data/lib/google/apis/vmmigration_v1alpha1.rb +2 -2
- metadata +11 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5382ad45838395779bd6d894f686f5215c3bac88e39b3e88a74d9ea60aed926f
|
4
|
+
data.tar.gz: fd3ec90738c21f48649f5a9e18683011c50a29e0e756ef09c6a1ff6d3d0a22d5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ebaaf1d9d8a949d9035046a98c9a4e2a1427c485571855a2af65fc259908d3bfbddbeef5c88266c97982b7250184c9852d3b79e6f15440d1d538f3c6b8c87b64
|
7
|
+
data.tar.gz: b4fd3b6f179433eef9483e3fc6d68e37c576b385a9abac83388012e64fccfab74e29def85bc95b69041f9a5c84638bc50cd6512e06269cf77f37c5bae519214e
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,14 @@
|
|
1
1
|
# Release history for google-apis-vmmigration_v1alpha1
|
2
2
|
|
3
|
+
### v0.19.0 (2022-09-29)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20220922
|
6
|
+
|
7
|
+
### v0.18.0 (2022-09-20)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20220908
|
10
|
+
* Regenerated using generator version 0.10.0
|
11
|
+
|
3
12
|
### v0.17.0 (2022-08-19)
|
4
13
|
|
5
14
|
* Regenerated from discovery document revision 20220811
|
data/OVERVIEW.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
# Simple REST client for version V1alpha1 of the
|
1
|
+
# Simple REST client for version V1alpha1 of the Migrate to Virtual Machines API
|
2
2
|
|
3
|
-
This is a simple client library for version V1alpha1 of the
|
3
|
+
This is a simple client library for version V1alpha1 of the Migrate to Virtual Machines API. It provides:
|
4
4
|
|
5
5
|
* A client object that connects to the HTTP/JSON REST endpoint for the service.
|
6
6
|
* Ruby objects for data structures related to the service.
|
@@ -65,7 +65,7 @@ More detailed descriptions of the Google simple REST clients are available in tw
|
|
65
65
|
|
66
66
|
(Note: the above documents are written for the simple REST clients in general, and their examples may not reflect the Vmmigration service in particular.)
|
67
67
|
|
68
|
-
For reference information on specific calls in the
|
68
|
+
For reference information on specific calls in the Migrate to Virtual Machines API, see the {Google::Apis::VmmigrationV1alpha1::VMMigrationServiceService class reference docs}.
|
69
69
|
|
70
70
|
## Which client should I use?
|
71
71
|
|
@@ -1299,6 +1299,38 @@ module Google
|
|
1299
1299
|
end
|
1300
1300
|
end
|
1301
1301
|
|
1302
|
+
# Response message for 'ListReplicationCycles' request.
|
1303
|
+
class ListReplicationCyclesResponse
|
1304
|
+
include Google::Apis::Core::Hashable
|
1305
|
+
|
1306
|
+
# Output only. A token, which can be sent as `page_token` to retrieve the next
|
1307
|
+
# page. If this field is omitted, there are no subsequent pages.
|
1308
|
+
# Corresponds to the JSON property `nextPageToken`
|
1309
|
+
# @return [String]
|
1310
|
+
attr_accessor :next_page_token
|
1311
|
+
|
1312
|
+
# Output only. The list of replication cycles response.
|
1313
|
+
# Corresponds to the JSON property `replicationCycles`
|
1314
|
+
# @return [Array<Google::Apis::VmmigrationV1alpha1::ReplicationCycle>]
|
1315
|
+
attr_accessor :replication_cycles
|
1316
|
+
|
1317
|
+
# Output only. Locations that could not be reached.
|
1318
|
+
# Corresponds to the JSON property `unreachable`
|
1319
|
+
# @return [Array<String>]
|
1320
|
+
attr_accessor :unreachable
|
1321
|
+
|
1322
|
+
def initialize(**args)
|
1323
|
+
update!(**args)
|
1324
|
+
end
|
1325
|
+
|
1326
|
+
# Update properties of this object
|
1327
|
+
def update!(**args)
|
1328
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
1329
|
+
@replication_cycles = args[:replication_cycles] if args.key?(:replication_cycles)
|
1330
|
+
@unreachable = args[:unreachable] if args.key?(:unreachable)
|
1331
|
+
end
|
1332
|
+
end
|
1333
|
+
|
1302
1334
|
# Response message for 'ListSources' request.
|
1303
1335
|
class ListSourcesResponse
|
1304
1336
|
include Google::Apis::Core::Hashable
|
@@ -1923,11 +1955,26 @@ module Google
|
|
1923
1955
|
class ReplicationCycle
|
1924
1956
|
include Google::Apis::Core::Hashable
|
1925
1957
|
|
1958
|
+
# The cycle's ordinal number.
|
1959
|
+
# Corresponds to the JSON property `cycleNumber`
|
1960
|
+
# @return [Fixnum]
|
1961
|
+
attr_accessor :cycle_number
|
1962
|
+
|
1926
1963
|
# The time the replication cycle has ended.
|
1927
1964
|
# Corresponds to the JSON property `endTime`
|
1928
1965
|
# @return [String]
|
1929
1966
|
attr_accessor :end_time
|
1930
1967
|
|
1968
|
+
# The `Status` type defines a logical error model that is suitable for different
|
1969
|
+
# programming environments, including REST APIs and RPC APIs. It is used by [
|
1970
|
+
# gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
|
1971
|
+
# data: error code, error message, and error details. You can find out more
|
1972
|
+
# about this error model and how to work with it in the [API Design Guide](https:
|
1973
|
+
# //cloud.google.com/apis/design/errors).
|
1974
|
+
# Corresponds to the JSON property `error`
|
1975
|
+
# @return [Google::Apis::VmmigrationV1alpha1::Status]
|
1976
|
+
attr_accessor :error
|
1977
|
+
|
1931
1978
|
# The identifier of the ReplicationCycle.
|
1932
1979
|
# Corresponds to the JSON property `name`
|
1933
1980
|
# @return [String]
|
@@ -1948,6 +1995,11 @@ module Google
|
|
1948
1995
|
# @return [String]
|
1949
1996
|
attr_accessor :start_time
|
1950
1997
|
|
1998
|
+
# State of the MigratingVm.
|
1999
|
+
# Corresponds to the JSON property `state`
|
2000
|
+
# @return [String]
|
2001
|
+
attr_accessor :state
|
2002
|
+
|
1951
2003
|
# The cycle's steps list representing its progress.
|
1952
2004
|
# Corresponds to the JSON property `steps`
|
1953
2005
|
# @return [Array<Google::Apis::VmmigrationV1alpha1::CycleStep>]
|
@@ -1964,11 +2016,14 @@ module Google
|
|
1964
2016
|
|
1965
2017
|
# Update properties of this object
|
1966
2018
|
def update!(**args)
|
2019
|
+
@cycle_number = args[:cycle_number] if args.key?(:cycle_number)
|
1967
2020
|
@end_time = args[:end_time] if args.key?(:end_time)
|
2021
|
+
@error = args[:error] if args.key?(:error)
|
1968
2022
|
@name = args[:name] if args.key?(:name)
|
1969
2023
|
@progress = args[:progress] if args.key?(:progress)
|
1970
2024
|
@progress_percent = args[:progress_percent] if args.key?(:progress_percent)
|
1971
2025
|
@start_time = args[:start_time] if args.key?(:start_time)
|
2026
|
+
@state = args[:state] if args.key?(:state)
|
1972
2027
|
@steps = args[:steps] if args.key?(:steps)
|
1973
2028
|
@total_pause_duration = args[:total_pause_duration] if args.key?(:total_pause_duration)
|
1974
2029
|
end
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module VmmigrationV1alpha1
|
18
18
|
# Version of the google-apis-vmmigration_v1alpha1 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.19.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.10.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20220922"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -208,6 +208,12 @@ module Google
|
|
208
208
|
include Google::Apis::Core::JsonObjectSupport
|
209
209
|
end
|
210
210
|
|
211
|
+
class ListReplicationCyclesResponse
|
212
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
213
|
+
|
214
|
+
include Google::Apis::Core::JsonObjectSupport
|
215
|
+
end
|
216
|
+
|
211
217
|
class ListSourcesResponse
|
212
218
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
213
219
|
|
@@ -772,6 +778,16 @@ module Google
|
|
772
778
|
end
|
773
779
|
end
|
774
780
|
|
781
|
+
class ListReplicationCyclesResponse
|
782
|
+
# @private
|
783
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
784
|
+
property :next_page_token, as: 'nextPageToken'
|
785
|
+
collection :replication_cycles, as: 'replicationCycles', class: Google::Apis::VmmigrationV1alpha1::ReplicationCycle, decorator: Google::Apis::VmmigrationV1alpha1::ReplicationCycle::Representation
|
786
|
+
|
787
|
+
collection :unreachable, as: 'unreachable'
|
788
|
+
end
|
789
|
+
end
|
790
|
+
|
775
791
|
class ListSourcesResponse
|
776
792
|
# @private
|
777
793
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -942,11 +958,15 @@ module Google
|
|
942
958
|
class ReplicationCycle
|
943
959
|
# @private
|
944
960
|
class Representation < Google::Apis::Core::JsonRepresentation
|
961
|
+
property :cycle_number, as: 'cycleNumber'
|
945
962
|
property :end_time, as: 'endTime'
|
963
|
+
property :error, as: 'error', class: Google::Apis::VmmigrationV1alpha1::Status, decorator: Google::Apis::VmmigrationV1alpha1::Status::Representation
|
964
|
+
|
946
965
|
property :name, as: 'name'
|
947
966
|
property :progress, as: 'progress'
|
948
967
|
property :progress_percent, as: 'progressPercent'
|
949
968
|
property :start_time, as: 'startTime'
|
969
|
+
property :state, as: 'state'
|
950
970
|
collection :steps, as: 'steps', class: Google::Apis::VmmigrationV1alpha1::CycleStep, decorator: Google::Apis::VmmigrationV1alpha1::CycleStep::Representation
|
951
971
|
|
952
972
|
property :total_pause_duration, as: 'totalPauseDuration'
|
@@ -20,7 +20,7 @@ require 'google/apis/errors'
|
|
20
20
|
module Google
|
21
21
|
module Apis
|
22
22
|
module VmmigrationV1alpha1
|
23
|
-
#
|
23
|
+
# Migrate to Virtual Machines API
|
24
24
|
#
|
25
25
|
# Use the Migrate to Virtual Machines API to programmatically migrate workloads.
|
26
26
|
#
|
@@ -1696,6 +1696,83 @@ module Google
|
|
1696
1696
|
execute_or_queue_command(command, &block)
|
1697
1697
|
end
|
1698
1698
|
|
1699
|
+
# Gets details of a single ReplicationCycle.
|
1700
|
+
# @param [String] name
|
1701
|
+
# Required. The name of the ReplicationCycle.
|
1702
|
+
# @param [String] fields
|
1703
|
+
# Selector specifying which fields to include in a partial response.
|
1704
|
+
# @param [String] quota_user
|
1705
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1706
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1707
|
+
# @param [Google::Apis::RequestOptions] options
|
1708
|
+
# Request-specific options
|
1709
|
+
#
|
1710
|
+
# @yield [result, err] Result & error if block supplied
|
1711
|
+
# @yieldparam result [Google::Apis::VmmigrationV1alpha1::ReplicationCycle] parsed result object
|
1712
|
+
# @yieldparam err [StandardError] error object if request failed
|
1713
|
+
#
|
1714
|
+
# @return [Google::Apis::VmmigrationV1alpha1::ReplicationCycle]
|
1715
|
+
#
|
1716
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1717
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1718
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1719
|
+
def get_project_location_source_migrating_vm_replication_cycle(name, fields: nil, quota_user: nil, options: nil, &block)
|
1720
|
+
command = make_simple_command(:get, 'v1alpha1/{+name}', options)
|
1721
|
+
command.response_representation = Google::Apis::VmmigrationV1alpha1::ReplicationCycle::Representation
|
1722
|
+
command.response_class = Google::Apis::VmmigrationV1alpha1::ReplicationCycle
|
1723
|
+
command.params['name'] = name unless name.nil?
|
1724
|
+
command.query['fields'] = fields unless fields.nil?
|
1725
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1726
|
+
execute_or_queue_command(command, &block)
|
1727
|
+
end
|
1728
|
+
|
1729
|
+
# Lists ReplicationCycles in a given MigratingVM.
|
1730
|
+
# @param [String] parent
|
1731
|
+
# Required. The parent, which owns this collection of ReplicationCycles.
|
1732
|
+
# @param [String] filter
|
1733
|
+
# Optional. The filter request.
|
1734
|
+
# @param [String] order_by
|
1735
|
+
# Optional. the order by fields for the result.
|
1736
|
+
# @param [Fixnum] page_size
|
1737
|
+
# Optional. The maximum number of replication cycles to return. The service may
|
1738
|
+
# return fewer than this value. If unspecified, at most 100 migrating VMs will
|
1739
|
+
# be returned. The maximum value is 100; values above 100 will be coerced to 100.
|
1740
|
+
# @param [String] page_token
|
1741
|
+
# Required. A page token, received from a previous `ListReplicationCycles` call.
|
1742
|
+
# Provide this to retrieve the subsequent page. When paginating, all other
|
1743
|
+
# parameters provided to `ListReplicationCycles` must match the call that
|
1744
|
+
# provided the page token.
|
1745
|
+
# @param [String] fields
|
1746
|
+
# Selector specifying which fields to include in a partial response.
|
1747
|
+
# @param [String] quota_user
|
1748
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1749
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1750
|
+
# @param [Google::Apis::RequestOptions] options
|
1751
|
+
# Request-specific options
|
1752
|
+
#
|
1753
|
+
# @yield [result, err] Result & error if block supplied
|
1754
|
+
# @yieldparam result [Google::Apis::VmmigrationV1alpha1::ListReplicationCyclesResponse] parsed result object
|
1755
|
+
# @yieldparam err [StandardError] error object if request failed
|
1756
|
+
#
|
1757
|
+
# @return [Google::Apis::VmmigrationV1alpha1::ListReplicationCyclesResponse]
|
1758
|
+
#
|
1759
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1760
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1761
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1762
|
+
def list_project_location_source_migrating_vm_replication_cycles(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1763
|
+
command = make_simple_command(:get, 'v1alpha1/{+parent}/replicationCycles', options)
|
1764
|
+
command.response_representation = Google::Apis::VmmigrationV1alpha1::ListReplicationCyclesResponse::Representation
|
1765
|
+
command.response_class = Google::Apis::VmmigrationV1alpha1::ListReplicationCyclesResponse
|
1766
|
+
command.params['parent'] = parent unless parent.nil?
|
1767
|
+
command.query['filter'] = filter unless filter.nil?
|
1768
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
1769
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
1770
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
1771
|
+
command.query['fields'] = fields unless fields.nil?
|
1772
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1773
|
+
execute_or_queue_command(command, &block)
|
1774
|
+
end
|
1775
|
+
|
1699
1776
|
# Creates a new UtilizationReport.
|
1700
1777
|
# @param [String] parent
|
1701
1778
|
# Required. The Utilization Report's parent.
|
@@ -19,13 +19,13 @@ require 'google/apis/vmmigration_v1alpha1/gem_version.rb'
|
|
19
19
|
|
20
20
|
module Google
|
21
21
|
module Apis
|
22
|
-
#
|
22
|
+
# Migrate to Virtual Machines API
|
23
23
|
#
|
24
24
|
# Use the Migrate to Virtual Machines API to programmatically migrate workloads.
|
25
25
|
#
|
26
26
|
# @see https://cloud.google.com/migrate/virtual-machines
|
27
27
|
module VmmigrationV1alpha1
|
28
|
-
# Version of the
|
28
|
+
# Version of the Migrate to Virtual Machines API this client connects to.
|
29
29
|
# This is NOT the gem version.
|
30
30
|
VERSION = 'V1alpha1'
|
31
31
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-vmmigration_v1alpha1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.19.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-
|
11
|
+
date: 2022-10-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 0.9.0
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 2.a
|
@@ -26,17 +26,17 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version:
|
29
|
+
version: 0.9.0
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|
33
|
-
description: This is the simple REST client for
|
34
|
-
REST clients are Ruby client libraries that provide access to Google services
|
35
|
-
their HTTP REST API endpoints. These libraries are generated and updated automatically
|
33
|
+
description: This is the simple REST client for Migrate to Virtual Machines API V1alpha1.
|
34
|
+
Simple REST clients are Ruby client libraries that provide access to Google services
|
35
|
+
via their HTTP REST API endpoints. These libraries are generated and updated automatically
|
36
36
|
based on the discovery documents published by the service, and they handle most
|
37
37
|
concerns such as authentication, pagination, retry, timeouts, and logging. You can
|
38
|
-
use this client to access the
|
39
|
-
provide a separate modern client that is easier to use.
|
38
|
+
use this client to access the Migrate to Virtual Machines API, but note that some
|
39
|
+
services may provide a separate modern client that is easier to use.
|
40
40
|
email: googleapis-packages@google.com
|
41
41
|
executables: []
|
42
42
|
extensions: []
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-vmmigration_v1alpha1/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-vmmigration_v1alpha1/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-vmmigration_v1alpha1/v0.19.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-vmmigration_v1alpha1
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|
@@ -78,5 +78,5 @@ requirements: []
|
|
78
78
|
rubygems_version: 3.3.14
|
79
79
|
signing_key:
|
80
80
|
specification_version: 4
|
81
|
-
summary: Simple REST client for
|
81
|
+
summary: Simple REST client for Migrate to Virtual Machines API V1alpha1
|
82
82
|
test_files: []
|