google-apis-compute_v1 0.92.0 → 0.93.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: 1d016787962248eb5253212f465452f1765c9aa81eec8f426bbbc8fd5336220c
4
- data.tar.gz: ff64202a193ab660530f3cbf992121728ed6da047f517089a7898d849f66aef9
3
+ metadata.gz: 7ce75aa739726ee26594a1cacf89db5e650e3d2c1524d4d5cc651d3fe5cca6b6
4
+ data.tar.gz: f976656289e8500dcd721febc522d4cb20880580147a45a82da7b3f1fdc57f4a
5
5
  SHA512:
6
- metadata.gz: dd7830ca4d7d23031e011833a5008963edc140e57c60002134cf904719c0a802edebadfa4096b71cdfdc24111ff651bfa4f928effdd19872c8dea9532219d77a
7
- data.tar.gz: 666f8a92c15b36f6adbd93de57fa24b9d60ec66655ad9b476811b207586cb692ef44df4ff99f9f256a06a5e2070e79eca5e0ec589aedc768e93fbad1479c1c6d
6
+ metadata.gz: 5aeacb6134ac12bcf1060be005b620f12c94916c9fca20c644b71907862899f2bd59cad6a7495b32784a62cd9bdb00f86282abdabab087a2598b8601cb3674a6
7
+ data.tar.gz: 79a50a3dd3954b5517763e8650f2e157ccc3c86abfc2a76f8fd48d831e078bc75b73966de6aa34e9574cd6d3ba971570926ade2c427633ba23851bb7e328645d
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-compute_v1
2
2
 
3
+ ### v0.93.0 (2024-03-24)
4
+
5
+ * Regenerated from discovery document revision 20240312
6
+
3
7
  ### v0.92.0 (2024-03-17)
4
8
 
5
9
  * Regenerated from discovery document revision 20240305
@@ -17313,6 +17313,82 @@ module Google
17313
17313
  end
17314
17314
  end
17315
17315
 
17316
+ # Represents a Instance Settings resource. You can use instance settings to
17317
+ # configure default settings for Compute Engine VM instances. For example, you
17318
+ # can use it to configure default machine type of Compute Engine VM instances.
17319
+ class InstanceSettings
17320
+ include Google::Apis::Core::Hashable
17321
+
17322
+ # Specifies a fingerprint for instance settings, which is essentially a hash of
17323
+ # the instance settings resource's contents and used for optimistic locking. The
17324
+ # fingerprint is initially generated by Compute Engine and changes after every
17325
+ # request to modify or update the instance settings resource. You must always
17326
+ # provide an up-to-date fingerprint hash in order to update or change the
17327
+ # resource, otherwise the request will fail with error 412 conditionNotMet. To
17328
+ # see the latest fingerprint, make a get() request to retrieve the resource.
17329
+ # Corresponds to the JSON property `fingerprint`
17330
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
17331
+ # @return [String]
17332
+ attr_accessor :fingerprint
17333
+
17334
+ # [Output Only] Type of the resource. Always compute#instance_settings for
17335
+ # instance settings.
17336
+ # Corresponds to the JSON property `kind`
17337
+ # @return [String]
17338
+ attr_accessor :kind
17339
+
17340
+ # The metadata key/value pairs assigned to all the instances in the
17341
+ # corresponding scope.
17342
+ # Corresponds to the JSON property `metadata`
17343
+ # @return [Google::Apis::ComputeV1::InstanceSettingsMetadata]
17344
+ attr_accessor :metadata
17345
+
17346
+ # [Output Only] URL of the zone where the resource resides You must specify this
17347
+ # field as part of the HTTP request URL. It is not settable as a field in the
17348
+ # request body.
17349
+ # Corresponds to the JSON property `zone`
17350
+ # @return [String]
17351
+ attr_accessor :zone
17352
+
17353
+ def initialize(**args)
17354
+ update!(**args)
17355
+ end
17356
+
17357
+ # Update properties of this object
17358
+ def update!(**args)
17359
+ @fingerprint = args[:fingerprint] if args.key?(:fingerprint)
17360
+ @kind = args[:kind] if args.key?(:kind)
17361
+ @metadata = args[:metadata] if args.key?(:metadata)
17362
+ @zone = args[:zone] if args.key?(:zone)
17363
+ end
17364
+ end
17365
+
17366
+ #
17367
+ class InstanceSettingsMetadata
17368
+ include Google::Apis::Core::Hashable
17369
+
17370
+ # A metadata key/value items map. The total size of all keys and values must be
17371
+ # less than 512KB.
17372
+ # Corresponds to the JSON property `items`
17373
+ # @return [Hash<String,String>]
17374
+ attr_accessor :items
17375
+
17376
+ # [Output Only] Type of the resource. Always compute#metadata for metadata.
17377
+ # Corresponds to the JSON property `kind`
17378
+ # @return [String]
17379
+ attr_accessor :kind
17380
+
17381
+ def initialize(**args)
17382
+ update!(**args)
17383
+ end
17384
+
17385
+ # Update properties of this object
17386
+ def update!(**args)
17387
+ @items = args[:items] if args.key?(:items)
17388
+ @kind = args[:kind] if args.key?(:kind)
17389
+ end
17390
+ end
17391
+
17316
17392
  # Represents an Instance Template resource. Google Compute Engine has two
17317
17393
  # Instance Template resources: * [Global](/compute/docs/reference/rest/v1/
17318
17394
  # instanceTemplates) * [Regional](/compute/docs/reference/rest/v1/
@@ -17856,7 +17932,7 @@ module Google
17856
17932
  attr_accessor :short_name
17857
17933
 
17858
17934
  # [Output Only] The type of the firewall policy. Can be one of HIERARCHY,
17859
- # NETWORK, NETWORK_REGIONAL.
17935
+ # NETWORK, NETWORK_REGIONAL, SYSTEM_GLOBAL, SYSTEM_REGIONAL.
17860
17936
  # Corresponds to the JSON property `type`
17861
17937
  # @return [String]
17862
17938
  attr_accessor :type
@@ -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.92.0"
19
+ GEM_VERSION = "0.93.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.14.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20240305"
25
+ REVISION = "20240312"
26
26
  end
27
27
  end
28
28
  end
@@ -2098,6 +2098,18 @@ module Google
2098
2098
  include Google::Apis::Core::JsonObjectSupport
2099
2099
  end
2100
2100
 
2101
+ class InstanceSettings
2102
+ class Representation < Google::Apis::Core::JsonRepresentation; end
2103
+
2104
+ include Google::Apis::Core::JsonObjectSupport
2105
+ end
2106
+
2107
+ class InstanceSettingsMetadata
2108
+ class Representation < Google::Apis::Core::JsonRepresentation; end
2109
+
2110
+ include Google::Apis::Core::JsonObjectSupport
2111
+ end
2112
+
2101
2113
  class InstanceTemplate
2102
2114
  class Representation < Google::Apis::Core::JsonRepresentation; end
2103
2115
 
@@ -10505,6 +10517,25 @@ module Google
10505
10517
  end
10506
10518
  end
10507
10519
 
10520
+ class InstanceSettings
10521
+ # @private
10522
+ class Representation < Google::Apis::Core::JsonRepresentation
10523
+ property :fingerprint, :base64 => true, as: 'fingerprint'
10524
+ property :kind, as: 'kind'
10525
+ property :metadata, as: 'metadata', class: Google::Apis::ComputeV1::InstanceSettingsMetadata, decorator: Google::Apis::ComputeV1::InstanceSettingsMetadata::Representation
10526
+
10527
+ property :zone, as: 'zone'
10528
+ end
10529
+ end
10530
+
10531
+ class InstanceSettingsMetadata
10532
+ # @private
10533
+ class Representation < Google::Apis::Core::JsonRepresentation
10534
+ hash :items, as: 'items'
10535
+ property :kind, as: 'kind'
10536
+ end
10537
+ end
10538
+
10508
10539
  class InstanceTemplate
10509
10540
  # @private
10510
10541
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -11645,6 +11645,95 @@ module Google
11645
11645
  execute_or_queue_command(command, &block)
11646
11646
  end
11647
11647
 
11648
+ # Get Instance settings.
11649
+ # @param [String] project
11650
+ # Project ID for this request.
11651
+ # @param [String] zone
11652
+ # Name of the zone for this request.
11653
+ # @param [String] fields
11654
+ # Selector specifying which fields to include in a partial response.
11655
+ # @param [String] quota_user
11656
+ # Available to use for quota purposes for server-side applications. Can be any
11657
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
11658
+ # @param [String] user_ip
11659
+ # Legacy name for parameter that has been superseded by `quotaUser`.
11660
+ # @param [Google::Apis::RequestOptions] options
11661
+ # Request-specific options
11662
+ #
11663
+ # @yield [result, err] Result & error if block supplied
11664
+ # @yieldparam result [Google::Apis::ComputeV1::InstanceSettings] parsed result object
11665
+ # @yieldparam err [StandardError] error object if request failed
11666
+ #
11667
+ # @return [Google::Apis::ComputeV1::InstanceSettings]
11668
+ #
11669
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
11670
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
11671
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
11672
+ def get_instance_setting(project, zone, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
11673
+ command = make_simple_command(:get, 'projects/{project}/zones/{zone}/instanceSettings', options)
11674
+ command.response_representation = Google::Apis::ComputeV1::InstanceSettings::Representation
11675
+ command.response_class = Google::Apis::ComputeV1::InstanceSettings
11676
+ command.params['project'] = project unless project.nil?
11677
+ command.params['zone'] = zone unless zone.nil?
11678
+ command.query['fields'] = fields unless fields.nil?
11679
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
11680
+ command.query['userIp'] = user_ip unless user_ip.nil?
11681
+ execute_or_queue_command(command, &block)
11682
+ end
11683
+
11684
+ # Patch Instance settings
11685
+ # @param [String] project
11686
+ # Project ID for this request.
11687
+ # @param [String] zone
11688
+ # The zone scoping this request. It should conform to RFC1035.
11689
+ # @param [Google::Apis::ComputeV1::InstanceSettings] instance_settings_object
11690
+ # @param [String] request_id
11691
+ # An optional request ID to identify requests. Specify a unique request ID so
11692
+ # that if you must retry your request, the server will know to ignore the
11693
+ # request if it has already been completed. For example, consider a situation
11694
+ # where you make an initial request and the request times out. If you make the
11695
+ # request again with the same request ID, the server can check if original
11696
+ # operation with the same request ID was received, and if so, will ignore the
11697
+ # second request. This prevents clients from accidentally creating duplicate
11698
+ # commitments. The request ID must be a valid UUID with the exception that zero
11699
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
11700
+ # @param [String] update_mask
11701
+ # update_mask indicates fields to be updated as part of this request.
11702
+ # @param [String] fields
11703
+ # Selector specifying which fields to include in a partial response.
11704
+ # @param [String] quota_user
11705
+ # Available to use for quota purposes for server-side applications. Can be any
11706
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
11707
+ # @param [String] user_ip
11708
+ # Legacy name for parameter that has been superseded by `quotaUser`.
11709
+ # @param [Google::Apis::RequestOptions] options
11710
+ # Request-specific options
11711
+ #
11712
+ # @yield [result, err] Result & error if block supplied
11713
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
11714
+ # @yieldparam err [StandardError] error object if request failed
11715
+ #
11716
+ # @return [Google::Apis::ComputeV1::Operation]
11717
+ #
11718
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
11719
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
11720
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
11721
+ def patch_instance_setting(project, zone, instance_settings_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
11722
+ command = make_simple_command(:patch, 'projects/{project}/zones/{zone}/instanceSettings', options)
11723
+ command.request_representation = Google::Apis::ComputeV1::InstanceSettings::Representation
11724
+ command.request_object = instance_settings_object
11725
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
11726
+ command.response_class = Google::Apis::ComputeV1::Operation
11727
+ command.params['project'] = project unless project.nil?
11728
+ command.params['zone'] = zone unless zone.nil?
11729
+ command.query['requestId'] = request_id unless request_id.nil?
11730
+ command.query['updateMask'] = update_mask unless update_mask.nil?
11731
+ command.query['fields'] = fields unless fields.nil?
11732
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
11733
+ command.query['userIp'] = user_ip unless user_ip.nil?
11734
+ execute_or_queue_command(command, &block)
11735
+ end
11736
+
11648
11737
  # Retrieves the list of all InstanceTemplates resources, regional and global,
11649
11738
  # available to the specified project. To prevent failure, Google recommends that
11650
11739
  # you set the `returnPartialSuccess` parameter to `true`.
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.92.0
4
+ version: 0.93.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: 2024-03-17 00:00:00.000000000 Z
11
+ date: 2024-03-24 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.92.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-compute_v1/v0.93.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: []