google-apis-vmmigration_v1alpha1 0.16.0 → 0.18.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2c722d041b17d773a9ae8da40416a754dfd3544656786799b9a565329099fb49
4
- data.tar.gz: 01dc6b8323ae12c2ba2bca561e11c2208b73a73f2c038bde4c03227efd5094ff
3
+ metadata.gz: a56b17cbccf6aa5854e92513901a64bf6d62c9f5d336555151864868db3b74fe
4
+ data.tar.gz: 5ef99ef82832e738a9d75eed10bb6f1e999e449331a65074d9a6a81dca3dd609
5
5
  SHA512:
6
- metadata.gz: 0a47574f5dc5bb54b032579db7396644b729145398ab912096c80aa1f5c5d2111ffe6c70d0451d9a4f35a52290778da7b03d9e4a373273eba322157e6ccf34b6
7
- data.tar.gz: 5b343d1a22e1554af7098c8ac04afe64b3c32a93e1a5287f8af4fb648c2793ea8b91034d1044a22ede45e538257d100dc8d36a73cf291e8d438371e6cd13b779
6
+ metadata.gz: 2dbf87c74bb5034304b925c81536a8d470935755ad2da32375d6a1ab3f57e5b95f49d592a5de1d16f423331b67ffcf165e805c9a714c7ebd9ea6fd4919824389
7
+ data.tar.gz: 66b4beca076f4271abce51d21fa95d511e4aaa153c0fc346aff48748db4eacdeffaf0df02f24ab0f17fd867ab2fe561f466d5cceba171bc81ff0bc0f193640fa
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Release history for google-apis-vmmigration_v1alpha1
2
2
 
3
+ ### v0.18.0 (2022-09-20)
4
+
5
+ * Regenerated from discovery document revision 20220908
6
+ * Regenerated using generator version 0.10.0
7
+
8
+ ### v0.17.0 (2022-08-19)
9
+
10
+ * Regenerated from discovery document revision 20220811
11
+
3
12
  ### v0.16.0 (2022-07-22)
4
13
 
5
14
  * Regenerated from discovery document revision 20220714
@@ -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
@@ -1400,7 +1432,7 @@ module Google
1400
1432
  class LocalizedMessage
1401
1433
  include Google::Apis::Core::Hashable
1402
1434
 
1403
- # The locale used following the specification defined at http://www.rfc-editor.
1435
+ # The locale used following the specification defined at https://www.rfc-editor.
1404
1436
  # org/rfc/bcp/bcp47.txt. Examples are: "en-US", "fr-CH", "es-MX"
1405
1437
  # Corresponds to the JSON property `locale`
1406
1438
  # @return [String]
@@ -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.16.0"
19
+ GEM_VERSION = "0.18.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.9.0"
22
+ GENERATOR_VERSION = "0.10.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20220714"
25
+ REVISION = "20220908"
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'
@@ -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.
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.16.0
4
+ version: 0.18.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-25 00:00:00.000000000 Z
11
+ date: 2022-09-26 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: '0.7'
19
+ version: 0.9.0
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: '0.7'
29
+ version: 0.9.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -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.16.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-vmmigration_v1alpha1/v0.18.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: []