google-apis-vmmigration_v1 0.10.0 → 0.13.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: 4a02227fafd897b871dbaad9f60fe5631b6d09f85155ca0c6fb1e210d3170b8e
4
- data.tar.gz: 969744b128f40a3e2e080c15b83587da0fab815e9b018bc79d3eac05487d068d
3
+ metadata.gz: 8f8188e4bf6dc539e28d9f3a373c3462b092b9b6721f6ffa1eadd56175241371
4
+ data.tar.gz: 7dbbab7f780f0ea7c927078c9e46d26a535d2e6ab09d9e5da907be589a9a80bf
5
5
  SHA512:
6
- metadata.gz: b8519d82fcf1e2e704a0f02a68216cd96f14aca83a670656534f0c4becdbd4763933df1880af5bde00be897d118abe3c19bdbe2114ae9cb0176a61874149d387
7
- data.tar.gz: 8ffdc884b909f5a814ec7386530c6b60f226b8040b345f0a214172018a59cb660171e8a676e7d24cb448d374ab9a777aa6fbfe5ad8aa082fad75c25fc47f5e04
6
+ metadata.gz: a16b13a17f7a5555cfe5ad7fff41ae4405534c28dcb3d93a4f4ee8c98bae5a68132b1c58abd037215276ee5810ec044d71ca60d6436a2b92d1fa66d2bb7ddf55
7
+ data.tar.gz: a99fd79556aa8892f115ef7b8cde473f2230397e09eaeff911ca1a250f6ef7c870271edfbc14c964dfcfd730bb5fc3938aded6858bf6dc7bcd41a29aa034ed14
data/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # Release history for google-apis-vmmigration_v1
2
2
 
3
+ ### v0.13.0 (2022-06-10)
4
+
5
+ * Regenerated from discovery document revision 20220602
6
+ * Regenerated using generator version 0.5.0
7
+
8
+ ### v0.12.0 (2022-05-27)
9
+
10
+ * Regenerated from discovery document revision 20220520
11
+
12
+ ### v0.11.0 (2022-05-12)
13
+
14
+ * Regenerated from discovery document revision 20220428
15
+
3
16
  ### v0.10.0 (2022-04-15)
4
17
 
5
18
  * Regenerated from discovery document revision 20220408
@@ -288,6 +288,11 @@ module Google
288
288
  # @return [String]
289
289
  attr_accessor :disk_type
290
290
 
291
+ # The hostname to assign to the VM.
292
+ # Corresponds to the JSON property `hostname`
293
+ # @return [String]
294
+ attr_accessor :hostname
295
+
291
296
  # A map of labels to associate with the VM.
292
297
  # Corresponds to the JSON property `labels`
293
298
  # @return [Hash<String,String>]
@@ -362,6 +367,7 @@ module Google
362
367
  @boot_option = args[:boot_option] if args.key?(:boot_option)
363
368
  @compute_scheduling = args[:compute_scheduling] if args.key?(:compute_scheduling)
364
369
  @disk_type = args[:disk_type] if args.key?(:disk_type)
370
+ @hostname = args[:hostname] if args.key?(:hostname)
365
371
  @labels = args[:labels] if args.key?(:labels)
366
372
  @license_type = args[:license_type] if args.key?(:license_type)
367
373
  @machine_type = args[:machine_type] if args.key?(:machine_type)
@@ -408,6 +414,11 @@ module Google
408
414
  # @return [String]
409
415
  attr_accessor :disk_type
410
416
 
417
+ # The hostname to assign to the VM.
418
+ # Corresponds to the JSON property `hostname`
419
+ # @return [String]
420
+ attr_accessor :hostname
421
+
411
422
  # A map of labels to associate with the VM.
412
423
  # Corresponds to the JSON property `labels`
413
424
  # @return [Hash<String,String>]
@@ -481,6 +492,7 @@ module Google
481
492
  @boot_option = args[:boot_option] if args.key?(:boot_option)
482
493
  @compute_scheduling = args[:compute_scheduling] if args.key?(:compute_scheduling)
483
494
  @disk_type = args[:disk_type] if args.key?(:disk_type)
495
+ @hostname = args[:hostname] if args.key?(:hostname)
484
496
  @labels = args[:labels] if args.key?(:labels)
485
497
  @license_type = args[:license_type] if args.key?(:license_type)
486
498
  @machine_type = args[:machine_type] if args.key?(:machine_type)
@@ -750,6 +762,12 @@ module Google
750
762
  class FetchInventoryResponse
751
763
  include Google::Apis::Core::Hashable
752
764
 
765
+ # Output only. A token, which can be sent as `page_token` to retrieve the next
766
+ # page. If this field is omitted, there are no subsequent pages.
767
+ # Corresponds to the JSON property `nextPageToken`
768
+ # @return [String]
769
+ attr_accessor :next_page_token
770
+
753
771
  # Output only. The timestamp when the source was last queried (if the result is
754
772
  # from the cache).
755
773
  # Corresponds to the JSON property `updateTime`
@@ -767,6 +785,7 @@ module Google
767
785
 
768
786
  # Update properties of this object
769
787
  def update!(**args)
788
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
770
789
  @update_time = args[:update_time] if args.key?(:update_time)
771
790
  @vmware_vms = args[:vmware_vms] if args.key?(:vmware_vms)
772
791
  end
@@ -1064,6 +1083,38 @@ module Google
1064
1083
  end
1065
1084
  end
1066
1085
 
1086
+ # Response message for 'ListReplicationCycles' request.
1087
+ class ListReplicationCyclesResponse
1088
+ include Google::Apis::Core::Hashable
1089
+
1090
+ # Output only. A token, which can be sent as `page_token` to retrieve the next
1091
+ # page. If this field is omitted, there are no subsequent pages.
1092
+ # Corresponds to the JSON property `nextPageToken`
1093
+ # @return [String]
1094
+ attr_accessor :next_page_token
1095
+
1096
+ # Output only. The list of replication cycles response.
1097
+ # Corresponds to the JSON property `replicationCycles`
1098
+ # @return [Array<Google::Apis::VmmigrationV1::ReplicationCycle>]
1099
+ attr_accessor :replication_cycles
1100
+
1101
+ # Output only. Locations that could not be reached.
1102
+ # Corresponds to the JSON property `unreachable`
1103
+ # @return [Array<String>]
1104
+ attr_accessor :unreachable
1105
+
1106
+ def initialize(**args)
1107
+ update!(**args)
1108
+ end
1109
+
1110
+ # Update properties of this object
1111
+ def update!(**args)
1112
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1113
+ @replication_cycles = args[:replication_cycles] if args.key?(:replication_cycles)
1114
+ @unreachable = args[:unreachable] if args.key?(:unreachable)
1115
+ end
1116
+ end
1117
+
1067
1118
  # Response message for 'ListSources' request.
1068
1119
  class ListSourcesResponse
1069
1120
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module VmmigrationV1
18
18
  # Version of the google-apis-vmmigration_v1 gem
19
- GEM_VERSION = "0.10.0"
19
+ GEM_VERSION = "0.13.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.4.1"
22
+ GENERATOR_VERSION = "0.5.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20220408"
25
+ REVISION = "20220602"
26
26
  end
27
27
  end
28
28
  end
@@ -178,6 +178,12 @@ module Google
178
178
  include Google::Apis::Core::JsonObjectSupport
179
179
  end
180
180
 
181
+ class ListReplicationCyclesResponse
182
+ class Representation < Google::Apis::Core::JsonRepresentation; end
183
+
184
+ include Google::Apis::Core::JsonObjectSupport
185
+ end
186
+
181
187
  class ListSourcesResponse
182
188
  class Representation < Google::Apis::Core::JsonRepresentation; end
183
189
 
@@ -437,6 +443,7 @@ module Google
437
443
  property :compute_scheduling, as: 'computeScheduling', class: Google::Apis::VmmigrationV1::ComputeScheduling, decorator: Google::Apis::VmmigrationV1::ComputeScheduling::Representation
438
444
 
439
445
  property :disk_type, as: 'diskType'
446
+ property :hostname, as: 'hostname'
440
447
  hash :labels, as: 'labels'
441
448
  property :license_type, as: 'licenseType'
442
449
  property :machine_type, as: 'machineType'
@@ -463,6 +470,7 @@ module Google
463
470
  property :compute_scheduling, as: 'computeScheduling', class: Google::Apis::VmmigrationV1::ComputeScheduling, decorator: Google::Apis::VmmigrationV1::ComputeScheduling::Representation
464
471
 
465
472
  property :disk_type, as: 'diskType'
473
+ property :hostname, as: 'hostname'
466
474
  hash :labels, as: 'labels'
467
475
  property :license_type, as: 'licenseType'
468
476
  property :machine_type, as: 'machineType'
@@ -539,6 +547,7 @@ module Google
539
547
  class FetchInventoryResponse
540
548
  # @private
541
549
  class Representation < Google::Apis::Core::JsonRepresentation
550
+ property :next_page_token, as: 'nextPageToken'
542
551
  property :update_time, as: 'updateTime'
543
552
  property :vmware_vms, as: 'vmwareVms', class: Google::Apis::VmmigrationV1::VmwareVmsDetails, decorator: Google::Apis::VmmigrationV1::VmwareVmsDetails::Representation
544
553
 
@@ -638,6 +647,16 @@ module Google
638
647
  end
639
648
  end
640
649
 
650
+ class ListReplicationCyclesResponse
651
+ # @private
652
+ class Representation < Google::Apis::Core::JsonRepresentation
653
+ property :next_page_token, as: 'nextPageToken'
654
+ collection :replication_cycles, as: 'replicationCycles', class: Google::Apis::VmmigrationV1::ReplicationCycle, decorator: Google::Apis::VmmigrationV1::ReplicationCycle::Representation
655
+
656
+ collection :unreachable, as: 'unreachable'
657
+ end
658
+ end
659
+
641
660
  class ListSourcesResponse
642
661
  # @private
643
662
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -656,6 +656,16 @@ module Google
656
656
  # @param [Boolean] force_refresh
657
657
  # If this flag is set to true, the source will be queried instead of using
658
658
  # cached results. Using this flag will make the call slower.
659
+ # @param [Fixnum] page_size
660
+ # The maximum number of VMs to return. The service may return fewer than this
661
+ # value. For AWS source: If unspecified, at most 500 VMs will be returned. The
662
+ # maximum value is 1000; values above 1000 will be coerced to 1000. For VMWare
663
+ # source: If unspecified, all VMs will be returned. There is no limit for
664
+ # maximum value.
665
+ # @param [String] page_token
666
+ # A page token, received from a previous `FetchInventory` call. Provide this to
667
+ # retrieve the subsequent page. When paginating, all other parameters provided
668
+ # to `FetchInventory` must match the call that provided the page token.
659
669
  # @param [String] fields
660
670
  # Selector specifying which fields to include in a partial response.
661
671
  # @param [String] quota_user
@@ -673,12 +683,14 @@ module Google
673
683
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
674
684
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
675
685
  # @raise [Google::Apis::AuthorizationError] Authorization is required
676
- def fetch_project_location_source_inventory(source, force_refresh: nil, fields: nil, quota_user: nil, options: nil, &block)
686
+ def fetch_project_location_source_inventory(source, force_refresh: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
677
687
  command = make_simple_command(:get, 'v1/{+source}:fetchInventory', options)
678
688
  command.response_representation = Google::Apis::VmmigrationV1::FetchInventoryResponse::Representation
679
689
  command.response_class = Google::Apis::VmmigrationV1::FetchInventoryResponse
680
690
  command.params['source'] = source unless source.nil?
681
691
  command.query['forceRefresh'] = force_refresh unless force_refresh.nil?
692
+ command.query['pageSize'] = page_size unless page_size.nil?
693
+ command.query['pageToken'] = page_token unless page_token.nil?
682
694
  command.query['fields'] = fields unless fields.nil?
683
695
  command.query['quotaUser'] = quota_user unless quota_user.nil?
684
696
  execute_or_queue_command(command, &block)
@@ -1684,6 +1696,83 @@ module Google
1684
1696
  execute_or_queue_command(command, &block)
1685
1697
  end
1686
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::VmmigrationV1::ReplicationCycle] parsed result object
1712
+ # @yieldparam err [StandardError] error object if request failed
1713
+ #
1714
+ # @return [Google::Apis::VmmigrationV1::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, 'v1/{+name}', options)
1721
+ command.response_representation = Google::Apis::VmmigrationV1::ReplicationCycle::Representation
1722
+ command.response_class = Google::Apis::VmmigrationV1::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::VmmigrationV1::ListReplicationCyclesResponse] parsed result object
1755
+ # @yieldparam err [StandardError] error object if request failed
1756
+ #
1757
+ # @return [Google::Apis::VmmigrationV1::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, 'v1/{+parent}/replicationCycles', options)
1764
+ command.response_representation = Google::Apis::VmmigrationV1::ListReplicationCyclesResponse::Representation
1765
+ command.response_class = Google::Apis::VmmigrationV1::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
+
1687
1776
  # Creates a new UtilizationReport.
1688
1777
  # @param [String] parent
1689
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_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.0
4
+ version: 0.13.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-04-18 00:00:00.000000000 Z
11
+ date: 2022-06-13 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.4'
19
+ version: '0.5'
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.4'
29
+ version: '0.5'
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_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-vmmigration_v1/v0.10.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-vmmigration_v1/v0.13.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-vmmigration_v1
63
63
  post_install_message:
64
64
  rdoc_options: []
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.3.5
78
+ rubygems_version: 3.3.14
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for VM Migration API V1