google-apis-compute_v1 0.22.0 → 0.26.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: 76dee39e1c29e115778ee793ac35179262efea5c00db0403805f0a193b6b6fec
4
- data.tar.gz: 81808d77e8e0f0c4e647b69712314292bf65e18dbd60a16e91b2cb4fd16d54a6
3
+ metadata.gz: fd9686461142ebbdd85f3a9dc96c629460fd10478cd9ef87365c7fcc02b57945
4
+ data.tar.gz: bfd617971db314843349faf2d6b11308fd7a618e44f6680560f9bdd4e2953bab
5
5
  SHA512:
6
- metadata.gz: 9ef0ee82d6512193bff0e9ce669043b2cf08e43b1511f7730e9aca904fdafac32df266b4761d5e2a7cc90b271578d5e9b643fd80e4d6dc60592c54cf7f79e978
7
- data.tar.gz: 9494fcfb9e3b54614eb1466697852c62c81759f0fabc76edf185a9980793f9c8039a64e47c9b70b292ad7dba007288853363192db4773bfeb58d372acd06e888
6
+ metadata.gz: d7da2251269faebc4c6fb97eec66522ba9d1c5c08b4bc50279ee5a5503bf2bd6e8d6db62aeb43c6b2287a17d6170af454f986037a6b48190bea707378e06a78e
7
+ data.tar.gz: ccca8474564060ea5199a2e6a5e1b7d2000caf9a6a8ba5cfd131e4cd4b11c4e066866d9650dff70bacd852b4310f7a5342f6d2ff9bee855185af2435d977c95e
data/CHANGELOG.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # Release history for google-apis-compute_v1
2
2
 
3
+ ### v0.26.0 (2022-02-18)
4
+
5
+ * Regenerated from discovery document revision 20220215
6
+
7
+ ### v0.25.0 (2022-02-12)
8
+
9
+ * Regenerated from discovery document revision 20220206
10
+
11
+ ### v0.24.0 (2022-01-29)
12
+
13
+ * Regenerated from discovery document revision 20220112
14
+ * Regenerated using generator version 0.4.1
15
+
16
+ ### v0.23.0 (2022-01-08)
17
+
18
+ * Regenerated from discovery document revision 20211228
19
+ * Unspecified changes
20
+
3
21
  ### v0.22.0 (2021-12-10)
4
22
 
5
23
  * Regenerated from discovery document revision 20211208
data/OVERVIEW.md CHANGED
@@ -51,7 +51,7 @@ require "google/apis/compute_v1"
51
51
  client = Google::Apis::ComputeV1::ComputeService.new
52
52
 
53
53
  # Authenticate calls
54
- client.authentication = # ... use the googleauth gem to create credentials
54
+ client.authorization = # ... use the googleauth gem to create credentials
55
55
  ```
56
56
 
57
57
  See the class reference docs for information on the methods you can call from a client.
@@ -1051,6 +1051,12 @@ module Google
1051
1051
  attr_accessor :enable_nested_virtualization
1052
1052
  alias_method :enable_nested_virtualization?, :enable_nested_virtualization
1053
1053
 
1054
+ # Whether to enable UEFI networking for instance creation.
1055
+ # Corresponds to the JSON property `enableUefiNetworking`
1056
+ # @return [Boolean]
1057
+ attr_accessor :enable_uefi_networking
1058
+ alias_method :enable_uefi_networking?, :enable_uefi_networking
1059
+
1054
1060
  # The number of threads per physical core. To disable simultaneous
1055
1061
  # multithreading (SMT) set this to 1. If unset, the maximum number of threads
1056
1062
  # supported per core by the underlying processor is assumed.
@@ -1065,6 +1071,7 @@ module Google
1065
1071
  # Update properties of this object
1066
1072
  def update!(**args)
1067
1073
  @enable_nested_virtualization = args[:enable_nested_virtualization] if args.key?(:enable_nested_virtualization)
1074
+ @enable_uefi_networking = args[:enable_uefi_networking] if args.key?(:enable_uefi_networking)
1068
1075
  @threads_per_core = args[:threads_per_core] if args.key?(:threads_per_core)
1069
1076
  end
1070
1077
  end
@@ -13139,6 +13146,30 @@ module Google
13139
13146
  # @return [Fixnum]
13140
13147
  attr_accessor :restarting
13141
13148
 
13149
+ # [Output Only] The number of instances in the managed instance group that are
13150
+ # scheduled to be resumed or are currently being resumed.
13151
+ # Corresponds to the JSON property `resuming`
13152
+ # @return [Fixnum]
13153
+ attr_accessor :resuming
13154
+
13155
+ # [Output Only] The number of instances in the managed instance group that are
13156
+ # scheduled to be started or are currently being started.
13157
+ # Corresponds to the JSON property `starting`
13158
+ # @return [Fixnum]
13159
+ attr_accessor :starting
13160
+
13161
+ # [Output Only] The number of instances in the managed instance group that are
13162
+ # scheduled to be stopped or are currently being stopped.
13163
+ # Corresponds to the JSON property `stopping`
13164
+ # @return [Fixnum]
13165
+ attr_accessor :stopping
13166
+
13167
+ # [Output Only] The number of instances in the managed instance group that are
13168
+ # scheduled to be suspended or are currently being suspended.
13169
+ # Corresponds to the JSON property `suspending`
13170
+ # @return [Fixnum]
13171
+ attr_accessor :suspending
13172
+
13142
13173
  # [Output Only] The number of instances in the managed instance group that are
13143
13174
  # being verified. See the managedInstances[].currentAction property in the
13144
13175
  # listManagedInstances method documentation.
@@ -13160,6 +13191,10 @@ module Google
13160
13191
  @recreating = args[:recreating] if args.key?(:recreating)
13161
13192
  @refreshing = args[:refreshing] if args.key?(:refreshing)
13162
13193
  @restarting = args[:restarting] if args.key?(:restarting)
13194
+ @resuming = args[:resuming] if args.key?(:resuming)
13195
+ @starting = args[:starting] if args.key?(:starting)
13196
+ @stopping = args[:stopping] if args.key?(:stopping)
13197
+ @suspending = args[:suspending] if args.key?(:suspending)
13163
13198
  @verifying = args[:verifying] if args.key?(:verifying)
13164
13199
  end
13165
13200
  end
@@ -14932,6 +14967,14 @@ module Google
14932
14967
  # @return [Google::Apis::ComputeV1::ReservationAffinity]
14933
14968
  attr_accessor :reservation_affinity
14934
14969
 
14970
+ # Resource manager tags to be bound to the instance. Tag keys and values have
14971
+ # the same definition as resource manager tags. Keys must be in the format `
14972
+ # tagKeys/`tag_key_id``, and values are in the format `tagValues/456`. The field
14973
+ # is ignored (both PUT & PATCH) when empty.
14974
+ # Corresponds to the JSON property `resourceManagerTags`
14975
+ # @return [Hash<String,String>]
14976
+ attr_accessor :resource_manager_tags
14977
+
14935
14978
  # Resource policies (names, not URLs) applied to instances created from these
14936
14979
  # properties. Note that for MachineImage, this is not supported yet.
14937
14980
  # Corresponds to the JSON property `resourcePolicies`
@@ -14981,6 +15024,7 @@ module Google
14981
15024
  @network_performance_config = args[:network_performance_config] if args.key?(:network_performance_config)
14982
15025
  @private_ipv6_google_access = args[:private_ipv6_google_access] if args.key?(:private_ipv6_google_access)
14983
15026
  @reservation_affinity = args[:reservation_affinity] if args.key?(:reservation_affinity)
15027
+ @resource_manager_tags = args[:resource_manager_tags] if args.key?(:resource_manager_tags)
14984
15028
  @resource_policies = args[:resource_policies] if args.key?(:resource_policies)
14985
15029
  @scheduling = args[:scheduling] if args.key?(:scheduling)
14986
15030
  @service_accounts = args[:service_accounts] if args.key?(:service_accounts)
@@ -17648,7 +17692,7 @@ module Google
17648
17692
  class LocationPolicyLocation
17649
17693
  include Google::Apis::Core::Hashable
17650
17694
 
17651
- # Preference for a given location: ALLOW or DENY.
17695
+ # Preference for a given location.
17652
17696
  # Corresponds to the JSON property `preference`
17653
17697
  # @return [String]
17654
17698
  attr_accessor :preference
@@ -30283,8 +30327,8 @@ module Google
30283
30327
 
30284
30328
  # Defines the maintenance behavior for this instance. For standard instances,
30285
30329
  # the default behavior is MIGRATE. For preemptible instances, the default and
30286
- # only possible behavior is TERMINATE. For more information, see Setting
30287
- # Instance Scheduling Options.
30330
+ # only possible behavior is TERMINATE. For more information, see Set VM
30331
+ # availability policies.
30288
30332
  # Corresponds to the JSON property `onHostMaintenance`
30289
30333
  # @return [String]
30290
30334
  attr_accessor :on_host_maintenance
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module ComputeV1
18
18
  # Version of the google-apis-compute_v1 gem
19
- GEM_VERSION = "0.22.0"
19
+ GEM_VERSION = "0.26.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.4.0"
22
+ GENERATOR_VERSION = "0.4.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20211208"
25
+ REVISION = "20220215"
26
26
  end
27
27
  end
28
28
  end
@@ -5602,6 +5602,7 @@ module Google
5602
5602
  # @private
5603
5603
  class Representation < Google::Apis::Core::JsonRepresentation
5604
5604
  property :enable_nested_virtualization, as: 'enableNestedVirtualization'
5605
+ property :enable_uefi_networking, as: 'enableUefiNetworking'
5605
5606
  property :threads_per_core, as: 'threadsPerCore'
5606
5607
  end
5607
5608
  end
@@ -8327,6 +8328,10 @@ module Google
8327
8328
  property :recreating, as: 'recreating'
8328
8329
  property :refreshing, as: 'refreshing'
8329
8330
  property :restarting, as: 'restarting'
8331
+ property :resuming, as: 'resuming'
8332
+ property :starting, as: 'starting'
8333
+ property :stopping, as: 'stopping'
8334
+ property :suspending, as: 'suspending'
8330
8335
  property :verifying, as: 'verifying'
8331
8336
  end
8332
8337
  end
@@ -8835,6 +8840,7 @@ module Google
8835
8840
  property :private_ipv6_google_access, as: 'privateIpv6GoogleAccess'
8836
8841
  property :reservation_affinity, as: 'reservationAffinity', class: Google::Apis::ComputeV1::ReservationAffinity, decorator: Google::Apis::ComputeV1::ReservationAffinity::Representation
8837
8842
 
8843
+ hash :resource_manager_tags, as: 'resourceManagerTags'
8838
8844
  collection :resource_policies, as: 'resourcePolicies'
8839
8845
  property :scheduling, as: 'scheduling', class: Google::Apis::ComputeV1::Scheduling, decorator: Google::Apis::ComputeV1::Scheduling::Representation
8840
8846
 
@@ -11377,6 +11377,56 @@ module Google
11377
11377
  execute_or_queue_command(command, &block)
11378
11378
  end
11379
11379
 
11380
+ # Resumes an instance that was suspended using the instances().suspend method.
11381
+ # @param [String] project
11382
+ # Project ID for this request.
11383
+ # @param [String] zone
11384
+ # The name of the zone for this request.
11385
+ # @param [String] instance
11386
+ # Name of the instance resource to resume.
11387
+ # @param [String] request_id
11388
+ # An optional request ID to identify requests. Specify a unique request ID so
11389
+ # that if you must retry your request, the server will know to ignore the
11390
+ # request if it has already been completed. For example, consider a situation
11391
+ # where you make an initial request and the request times out. If you make the
11392
+ # request again with the same request ID, the server can check if original
11393
+ # operation with the same request ID was received, and if so, will ignore the
11394
+ # second request. This prevents clients from accidentally creating duplicate
11395
+ # commitments. The request ID must be a valid UUID with the exception that zero
11396
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
11397
+ # @param [String] fields
11398
+ # Selector specifying which fields to include in a partial response.
11399
+ # @param [String] quota_user
11400
+ # Available to use for quota purposes for server-side applications. Can be any
11401
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
11402
+ # @param [String] user_ip
11403
+ # Legacy name for parameter that has been superseded by `quotaUser`.
11404
+ # @param [Google::Apis::RequestOptions] options
11405
+ # Request-specific options
11406
+ #
11407
+ # @yield [result, err] Result & error if block supplied
11408
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
11409
+ # @yieldparam err [StandardError] error object if request failed
11410
+ #
11411
+ # @return [Google::Apis::ComputeV1::Operation]
11412
+ #
11413
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
11414
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
11415
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
11416
+ def resume_instance(project, zone, instance, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
11417
+ command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/resume', options)
11418
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
11419
+ command.response_class = Google::Apis::ComputeV1::Operation
11420
+ command.params['project'] = project unless project.nil?
11421
+ command.params['zone'] = zone unless zone.nil?
11422
+ command.params['instance'] = instance unless instance.nil?
11423
+ command.query['requestId'] = request_id unless request_id.nil?
11424
+ command.query['fields'] = fields unless fields.nil?
11425
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
11426
+ command.query['userIp'] = user_ip unless user_ip.nil?
11427
+ execute_or_queue_command(command, &block)
11428
+ end
11429
+
11380
11430
  # Sends diagnostic interrupt to the instance.
11381
11431
  # @param [String] project
11382
11432
  # Project ID for this request.
@@ -11839,7 +11889,9 @@ module Google
11839
11889
 
11840
11890
  # Sets an instance's scheduling options. You can only call this method on a
11841
11891
  # stopped instance, that is, a VM instance that is in a `TERMINATED` state. See
11842
- # Instance Life Cycle for more information on the possible instance states.
11892
+ # Instance Life Cycle for more information on the possible instance states. For
11893
+ # more information about setting scheduling options for a VM, see Set VM
11894
+ # availability policies.
11843
11895
  # @param [String] project
11844
11896
  # Project ID for this request.
11845
11897
  # @param [String] zone
@@ -12055,7 +12107,8 @@ module Google
12055
12107
  execute_or_queue_command(command, &block)
12056
12108
  end
12057
12109
 
12058
- # Simulates a maintenance event on the instance.
12110
+ # Simulates a host maintenance event on a VM. For more information, see Simulate
12111
+ # a host maintenance event.
12059
12112
  # @param [String] project
12060
12113
  # Project ID for this request.
12061
12114
  # @param [String] zone
@@ -12253,6 +12306,62 @@ module Google
12253
12306
  execute_or_queue_command(command, &block)
12254
12307
  end
12255
12308
 
12309
+ # This method suspends a running instance, saving its state to persistent
12310
+ # storage, and allows you to resume the instance at a later time. Suspended
12311
+ # instances have no compute costs (cores or RAM), and incur only storage charges
12312
+ # for the saved VM memory and localSSD data. Any charged resources the virtual
12313
+ # machine was using, such as persistent disks and static IP addresses, will
12314
+ # continue to be charged while the instance is suspended. For more information,
12315
+ # see Suspending and resuming an instance.
12316
+ # @param [String] project
12317
+ # Project ID for this request.
12318
+ # @param [String] zone
12319
+ # The name of the zone for this request.
12320
+ # @param [String] instance
12321
+ # Name of the instance resource to suspend.
12322
+ # @param [String] request_id
12323
+ # An optional request ID to identify requests. Specify a unique request ID so
12324
+ # that if you must retry your request, the server will know to ignore the
12325
+ # request if it has already been completed. For example, consider a situation
12326
+ # where you make an initial request and the request times out. If you make the
12327
+ # request again with the same request ID, the server can check if original
12328
+ # operation with the same request ID was received, and if so, will ignore the
12329
+ # second request. This prevents clients from accidentally creating duplicate
12330
+ # commitments. The request ID must be a valid UUID with the exception that zero
12331
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
12332
+ # @param [String] fields
12333
+ # Selector specifying which fields to include in a partial response.
12334
+ # @param [String] quota_user
12335
+ # Available to use for quota purposes for server-side applications. Can be any
12336
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
12337
+ # @param [String] user_ip
12338
+ # Legacy name for parameter that has been superseded by `quotaUser`.
12339
+ # @param [Google::Apis::RequestOptions] options
12340
+ # Request-specific options
12341
+ #
12342
+ # @yield [result, err] Result & error if block supplied
12343
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
12344
+ # @yieldparam err [StandardError] error object if request failed
12345
+ #
12346
+ # @return [Google::Apis::ComputeV1::Operation]
12347
+ #
12348
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
12349
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
12350
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
12351
+ def suspend_instance(project, zone, instance, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
12352
+ command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/suspend', options)
12353
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
12354
+ command.response_class = Google::Apis::ComputeV1::Operation
12355
+ command.params['project'] = project unless project.nil?
12356
+ command.params['zone'] = zone unless zone.nil?
12357
+ command.params['instance'] = instance unless instance.nil?
12358
+ command.query['requestId'] = request_id unless request_id.nil?
12359
+ command.query['fields'] = fields unless fields.nil?
12360
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
12361
+ command.query['userIp'] = user_ip unless user_ip.nil?
12362
+ execute_or_queue_command(command, &block)
12363
+ end
12364
+
12256
12365
  # Returns permissions that a caller has on the specified resource.
12257
12366
  # @param [String] project
12258
12367
  # Project ID for this request.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-compute_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.22.0
4
+ version: 0.26.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: 2021-12-13 00:00:00.000000000 Z
11
+ date: 2022-02-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -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-compute_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-compute_v1/v0.22.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-compute_v1/v0.26.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-compute_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.2.17
78
+ rubygems_version: 3.3.5
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Compute Engine API V1