google-apis-compute_v1 0.83.0 → 0.85.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -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.83.0"
19
+ GEM_VERSION = "0.85.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.12.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20231017"
25
+ REVISION = "20231128"
26
26
  end
27
27
  end
28
28
  end
@@ -172,6 +172,24 @@ module Google
172
172
  include Google::Apis::Core::JsonObjectSupport
173
173
  end
174
174
 
175
+ class AllocationAggregateReservation
176
+ class Representation < Google::Apis::Core::JsonRepresentation; end
177
+
178
+ include Google::Apis::Core::JsonObjectSupport
179
+ end
180
+
181
+ class AllocationAggregateReservationReservedResourceInfo
182
+ class Representation < Google::Apis::Core::JsonRepresentation; end
183
+
184
+ include Google::Apis::Core::JsonObjectSupport
185
+ end
186
+
187
+ class AllocationAggregateReservationReservedResourceInfoAccelerator
188
+ class Representation < Google::Apis::Core::JsonRepresentation; end
189
+
190
+ include Google::Apis::Core::JsonObjectSupport
191
+ end
192
+
175
193
  class AllocationResourceStatus
176
194
  class Representation < Google::Apis::Core::JsonRepresentation; end
177
195
 
@@ -4654,6 +4672,18 @@ module Google
4654
4672
  include Google::Apis::Core::JsonObjectSupport
4655
4673
  end
4656
4674
 
4675
+ class SecurityPolicyRuleMatcherExprOptions
4676
+ class Representation < Google::Apis::Core::JsonRepresentation; end
4677
+
4678
+ include Google::Apis::Core::JsonObjectSupport
4679
+ end
4680
+
4681
+ class SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions
4682
+ class Representation < Google::Apis::Core::JsonRepresentation; end
4683
+
4684
+ include Google::Apis::Core::JsonObjectSupport
4685
+ end
4686
+
4657
4687
  class SecurityPolicyRuleNetworkMatcher
4658
4688
  class Representation < Google::Apis::Core::JsonRepresentation; end
4659
4689
 
@@ -5722,6 +5752,12 @@ module Google
5722
5752
  include Google::Apis::Core::JsonObjectSupport
5723
5753
  end
5724
5754
 
5755
+ class UpcomingMaintenance
5756
+ class Representation < Google::Apis::Core::JsonRepresentation; end
5757
+
5758
+ include Google::Apis::Core::JsonObjectSupport
5759
+ end
5760
+
5725
5761
  class UrlMap
5726
5762
  class Representation < Google::Apis::Core::JsonRepresentation; end
5727
5763
 
@@ -6410,6 +6446,34 @@ module Google
6410
6446
  end
6411
6447
  end
6412
6448
 
6449
+ class AllocationAggregateReservation
6450
+ # @private
6451
+ class Representation < Google::Apis::Core::JsonRepresentation
6452
+ collection :in_use_resources, as: 'inUseResources', class: Google::Apis::ComputeV1::AllocationAggregateReservationReservedResourceInfo, decorator: Google::Apis::ComputeV1::AllocationAggregateReservationReservedResourceInfo::Representation
6453
+
6454
+ collection :reserved_resources, as: 'reservedResources', class: Google::Apis::ComputeV1::AllocationAggregateReservationReservedResourceInfo, decorator: Google::Apis::ComputeV1::AllocationAggregateReservationReservedResourceInfo::Representation
6455
+
6456
+ property :vm_family, as: 'vmFamily'
6457
+ property :workload_type, as: 'workloadType'
6458
+ end
6459
+ end
6460
+
6461
+ class AllocationAggregateReservationReservedResourceInfo
6462
+ # @private
6463
+ class Representation < Google::Apis::Core::JsonRepresentation
6464
+ property :accelerator, as: 'accelerator', class: Google::Apis::ComputeV1::AllocationAggregateReservationReservedResourceInfoAccelerator, decorator: Google::Apis::ComputeV1::AllocationAggregateReservationReservedResourceInfoAccelerator::Representation
6465
+
6466
+ end
6467
+ end
6468
+
6469
+ class AllocationAggregateReservationReservedResourceInfoAccelerator
6470
+ # @private
6471
+ class Representation < Google::Apis::Core::JsonRepresentation
6472
+ property :accelerator_count, as: 'acceleratorCount'
6473
+ property :accelerator_type, as: 'acceleratorType'
6474
+ end
6475
+ end
6476
+
6413
6477
  class AllocationResourceStatus
6414
6478
  # @private
6415
6479
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -6494,6 +6558,7 @@ module Google
6494
6558
  property :disk_name, as: 'diskName'
6495
6559
  property :disk_size_gb, :numeric_string => true, as: 'diskSizeGb'
6496
6560
  property :disk_type, as: 'diskType'
6561
+ property :enable_confidential_compute, as: 'enableConfidentialCompute'
6497
6562
  hash :labels, as: 'labels'
6498
6563
  collection :licenses, as: 'licenses'
6499
6564
  property :on_update_action, as: 'onUpdateAction'
@@ -7513,6 +7578,7 @@ module Google
7513
7578
  property :description, as: 'description'
7514
7579
  property :disk_encryption_key, as: 'diskEncryptionKey', class: Google::Apis::ComputeV1::CustomerEncryptionKey, decorator: Google::Apis::ComputeV1::CustomerEncryptionKey::Representation
7515
7580
 
7581
+ property :enable_confidential_compute, as: 'enableConfidentialCompute'
7516
7582
  collection :guest_os_features, as: 'guestOsFeatures', class: Google::Apis::ComputeV1::GuestOsFeature, decorator: Google::Apis::ComputeV1::GuestOsFeature::Representation
7517
7583
 
7518
7584
  property :id, :numeric_string => true, as: 'id'
@@ -9046,6 +9112,7 @@ module Google
9046
9112
 
9047
9113
  property :description, as: 'description'
9048
9114
  property :disk_size_gb, :numeric_string => true, as: 'diskSizeGb'
9115
+ property :enable_confidential_compute, as: 'enableConfidentialCompute'
9049
9116
  property :family, as: 'family'
9050
9117
  collection :guest_os_features, as: 'guestOsFeatures', class: Google::Apis::ComputeV1::GuestOsFeature, decorator: Google::Apis::ComputeV1::GuestOsFeature::Representation
9051
9118
 
@@ -9192,6 +9259,7 @@ module Google
9192
9259
  collection :resource_policies, as: 'resourcePolicies'
9193
9260
  property :resource_status, as: 'resourceStatus', class: Google::Apis::ComputeV1::ResourceStatus, decorator: Google::Apis::ComputeV1::ResourceStatus::Representation
9194
9261
 
9262
+ property :satisfies_pzi, as: 'satisfiesPzi'
9195
9263
  property :satisfies_pzs, as: 'satisfiesPzs'
9196
9264
  property :scheduling, as: 'scheduling', class: Google::Apis::ComputeV1::Scheduling, decorator: Google::Apis::ComputeV1::Scheduling::Representation
9197
9265
 
@@ -13623,6 +13691,8 @@ module Google
13623
13691
  class Reservation
13624
13692
  # @private
13625
13693
  class Representation < Google::Apis::Core::JsonRepresentation
13694
+ property :aggregate_reservation, as: 'aggregateReservation', class: Google::Apis::ComputeV1::AllocationAggregateReservation, decorator: Google::Apis::ComputeV1::AllocationAggregateReservation::Representation
13695
+
13626
13696
  property :commitment, as: 'commitment'
13627
13697
  property :creation_timestamp, as: 'creationTimestamp'
13628
13698
  property :description, as: 'description'
@@ -14020,6 +14090,8 @@ module Google
14020
14090
  # @private
14021
14091
  class Representation < Google::Apis::Core::JsonRepresentation
14022
14092
  property :physical_host, as: 'physicalHost'
14093
+ property :upcoming_maintenance, as: 'upcomingMaintenance', class: Google::Apis::ComputeV1::UpcomingMaintenance, decorator: Google::Apis::ComputeV1::UpcomingMaintenance::Representation
14094
+
14023
14095
  end
14024
14096
  end
14025
14097
 
@@ -14312,6 +14384,7 @@ module Google
14312
14384
  property :tcp_established_idle_timeout_sec, as: 'tcpEstablishedIdleTimeoutSec'
14313
14385
  property :tcp_time_wait_timeout_sec, as: 'tcpTimeWaitTimeoutSec'
14314
14386
  property :tcp_transitory_idle_timeout_sec, as: 'tcpTransitoryIdleTimeoutSec'
14387
+ property :type, as: 'type'
14315
14388
  property :udp_idle_timeout_sec, as: 'udpIdleTimeoutSec'
14316
14389
  end
14317
14390
  end
@@ -14339,7 +14412,9 @@ module Google
14339
14412
  # @private
14340
14413
  class Representation < Google::Apis::Core::JsonRepresentation
14341
14414
  collection :source_nat_active_ips, as: 'sourceNatActiveIps'
14415
+ collection :source_nat_active_ranges, as: 'sourceNatActiveRanges'
14342
14416
  collection :source_nat_drain_ips, as: 'sourceNatDrainIps'
14417
+ collection :source_nat_drain_ranges, as: 'sourceNatDrainRanges'
14343
14418
  end
14344
14419
  end
14345
14420
 
@@ -14712,6 +14787,7 @@ module Google
14712
14787
 
14713
14788
  property :json_parsing, as: 'jsonParsing'
14714
14789
  property :log_level, as: 'logLevel'
14790
+ collection :user_ip_request_headers, as: 'userIpRequestHeaders'
14715
14791
  end
14716
14792
  end
14717
14793
 
@@ -14820,6 +14896,8 @@ module Google
14820
14896
 
14821
14897
  property :expr, as: 'expr', class: Google::Apis::ComputeV1::Expr, decorator: Google::Apis::ComputeV1::Expr::Representation
14822
14898
 
14899
+ property :expr_options, as: 'exprOptions', class: Google::Apis::ComputeV1::SecurityPolicyRuleMatcherExprOptions, decorator: Google::Apis::ComputeV1::SecurityPolicyRuleMatcherExprOptions::Representation
14900
+
14823
14901
  property :versioned_expr, as: 'versionedExpr'
14824
14902
  end
14825
14903
  end
@@ -14831,6 +14909,22 @@ module Google
14831
14909
  end
14832
14910
  end
14833
14911
 
14912
+ class SecurityPolicyRuleMatcherExprOptions
14913
+ # @private
14914
+ class Representation < Google::Apis::Core::JsonRepresentation
14915
+ property :recaptcha_options, as: 'recaptchaOptions', class: Google::Apis::ComputeV1::SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions, decorator: Google::Apis::ComputeV1::SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions::Representation
14916
+
14917
+ end
14918
+ end
14919
+
14920
+ class SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions
14921
+ # @private
14922
+ class Representation < Google::Apis::Core::JsonRepresentation
14923
+ collection :action_token_site_keys, as: 'actionTokenSiteKeys'
14924
+ collection :session_token_site_keys, as: 'sessionTokenSiteKeys'
14925
+ end
14926
+ end
14927
+
14834
14928
  class SecurityPolicyRuleNetworkMatcher
14835
14929
  # @private
14836
14930
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -15204,6 +15298,9 @@ module Google
15204
15298
  property :description, as: 'description'
15205
15299
  property :disk_size_gb, :numeric_string => true, as: 'diskSizeGb'
15206
15300
  property :download_bytes, :numeric_string => true, as: 'downloadBytes'
15301
+ property :enable_confidential_compute, as: 'enableConfidentialCompute'
15302
+ collection :guest_os_features, as: 'guestOsFeatures', class: Google::Apis::ComputeV1::GuestOsFeature, decorator: Google::Apis::ComputeV1::GuestOsFeature::Representation
15303
+
15207
15304
  property :id, :numeric_string => true, as: 'id'
15208
15305
  property :kind, as: 'kind'
15209
15306
  property :label_fingerprint, :base64 => true, as: 'labelFingerprint'
@@ -16733,6 +16830,18 @@ module Google
16733
16830
  end
16734
16831
  end
16735
16832
 
16833
+ class UpcomingMaintenance
16834
+ # @private
16835
+ class Representation < Google::Apis::Core::JsonRepresentation
16836
+ property :can_reschedule, as: 'canReschedule'
16837
+ property :latest_window_start_time, as: 'latestWindowStartTime'
16838
+ property :maintenance_status, as: 'maintenanceStatus'
16839
+ property :type, as: 'type'
16840
+ property :window_end_time, as: 'windowEndTime'
16841
+ property :window_start_time, as: 'windowStartTime'
16842
+ end
16843
+ end
16844
+
16736
16845
  class UrlMap
16737
16846
  # @private
16738
16847
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -10000,8 +10000,7 @@ module Google
10000
10000
  # creating an instance, the currentAction is CREATING. If a previous action
10001
10001
  # failed, the list displays the errors for that failed action. The orderBy query
10002
10002
  # parameter is not supported. The `pageToken` query parameter is supported only
10003
- # in the alpha and beta API and only if the group's `listManagedInstancesResults`
10004
- # field is set to `PAGINATED`.
10003
+ # if the group's `listManagedInstancesResults` field is set to `PAGINATED`.
10005
10004
  # @param [String] project
10006
10005
  # Project ID for this request.
10007
10006
  # @param [String] zone
@@ -13810,8 +13809,9 @@ module Google
13810
13809
  # @param [String] instance
13811
13810
  # Name of the instance resource to stop.
13812
13811
  # @param [Boolean] discard_local_ssd
13813
- # If true, discard the contents of any attached localSSD partitions. Default
13814
- # value is false.
13812
+ # This property is required if the instance has any attached Local SSD disks. If
13813
+ # false, Local SSD data will be preserved when the instance is suspended. If
13814
+ # true, the contents of any attached Local SSD disks will be discarded.
13815
13815
  # @param [String] request_id
13816
13816
  # An optional request ID to identify requests. Specify a unique request ID so
13817
13817
  # that if you must retry your request, the server will know to ignore the
@@ -13870,8 +13870,9 @@ module Google
13870
13870
  # @param [String] instance
13871
13871
  # Name of the instance resource to suspend.
13872
13872
  # @param [Boolean] discard_local_ssd
13873
- # If true, discard the contents of any attached localSSD partitions. Default
13874
- # value is false.
13873
+ # This property is required if the instance has any attached Local SSD disks. If
13874
+ # false, Local SSD data will be preserved when the instance is suspended. If
13875
+ # true, the contents of any attached Local SSD disks will be discarded.
13875
13876
  # @param [String] request_id
13876
13877
  # An optional request ID to identify requests. Specify a unique request ID so
13877
13878
  # that if you must retry your request, the server will know to ignore the
@@ -26252,9 +26253,8 @@ module Google
26252
26253
  # Lists the instances in the managed instance group and instances that are
26253
26254
  # scheduled to be created. The list includes any current actions that the group
26254
26255
  # has scheduled for its instances. The orderBy query parameter is not supported.
26255
- # The `pageToken` query parameter is supported only in the alpha and beta API
26256
- # and only if the group's `listManagedInstancesResults` field is set to `
26257
- # PAGINATED`.
26256
+ # The `pageToken` query parameter is supported only if the group's `
26257
+ # listManagedInstancesResults` field is set to `PAGINATED`.
26258
26258
  # @param [String] project
26259
26259
  # Project ID for this request.
26260
26260
  # @param [String] region
@@ -31542,6 +31542,99 @@ module Google
31542
31542
  execute_or_queue_command(command, &block)
31543
31543
  end
31544
31544
 
31545
+ # Retrieves the list of Zone resources under the specific region available to
31546
+ # the specified project.
31547
+ # @param [String] project
31548
+ # Project ID for this request.
31549
+ # @param [String] region
31550
+ # Region for this request.
31551
+ # @param [String] filter
31552
+ # A filter expression that filters resources listed in the response. Most
31553
+ # Compute resources support two types of filter expressions: expressions that
31554
+ # support regular expressions and expressions that follow API improvement
31555
+ # proposal AIP-160. These two types of filter expressions cannot be mixed in one
31556
+ # request. If you want to use AIP-160, your expression must specify the field
31557
+ # name, an operator, and the value that you want to use for filtering. The value
31558
+ # must be a string, a number, or a boolean. The operator must be either `=`, `!=`
31559
+ # , `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
31560
+ # Engine instances, you can exclude instances named `example-instance` by
31561
+ # specifying `name != example-instance`. The `:*` comparison can be used to test
31562
+ # whether a key has been defined. For example, to find all objects with `owner`
31563
+ # label use: ``` labels.owner:* ``` You can also filter nested fields. For
31564
+ # example, you could specify `scheduling.automaticRestart = false` to include
31565
+ # instances only if they are not scheduled for automatic restarts. You can use
31566
+ # filtering on nested fields to filter based on resource labels. To filter on
31567
+ # multiple expressions, provide each separate expression within parentheses. For
31568
+ # example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel
31569
+ # Skylake") ``` By default, each expression is an `AND` expression. However, you
31570
+ # can include `AND` and `OR` expressions explicitly. For example: ``` (
31571
+ # cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (
31572
+ # scheduling.automaticRestart = true) ``` If you want to use a regular
31573
+ # expression, use the `eq` (equal) or `ne` (not equal) operator against a single
31574
+ # un-parenthesized expression with or without quotes or against multiple
31575
+ # parenthesized expressions. Examples: `fieldname eq unquoted literal` `
31576
+ # fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(
31577
+ # fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is
31578
+ # interpreted as a regular expression using Google RE2 library syntax. The
31579
+ # literal value must match the entire field. For example, to filter for
31580
+ # instances that do not end with name "instance", you would use `name ne .*
31581
+ # instance`. You cannot combine constraints on multiple fields using regular
31582
+ # expressions.
31583
+ # @param [Fixnum] max_results
31584
+ # The maximum number of results per page that should be returned. If the number
31585
+ # of available results is larger than `maxResults`, Compute Engine returns a `
31586
+ # nextPageToken` that can be used to get the next page of results in subsequent
31587
+ # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
31588
+ # @param [String] order_by
31589
+ # Sorts list results by a certain order. By default, results are returned in
31590
+ # alphanumerical order based on the resource name. You can also sort results in
31591
+ # descending order based on the creation timestamp using `orderBy="
31592
+ # creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
31593
+ # field in reverse chronological order (newest result first). Use this to sort
31594
+ # resources like operations so that the newest operation is returned first.
31595
+ # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
31596
+ # @param [String] page_token
31597
+ # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
31598
+ # by a previous list request to get the next page of results.
31599
+ # @param [Boolean] return_partial_success
31600
+ # Opt-in for partial success behavior which provides partial results in case of
31601
+ # failure. The default value is false.
31602
+ # @param [String] fields
31603
+ # Selector specifying which fields to include in a partial response.
31604
+ # @param [String] quota_user
31605
+ # Available to use for quota purposes for server-side applications. Can be any
31606
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
31607
+ # @param [String] user_ip
31608
+ # Legacy name for parameter that has been superseded by `quotaUser`.
31609
+ # @param [Google::Apis::RequestOptions] options
31610
+ # Request-specific options
31611
+ #
31612
+ # @yield [result, err] Result & error if block supplied
31613
+ # @yieldparam result [Google::Apis::ComputeV1::ZoneList] parsed result object
31614
+ # @yieldparam err [StandardError] error object if request failed
31615
+ #
31616
+ # @return [Google::Apis::ComputeV1::ZoneList]
31617
+ #
31618
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
31619
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
31620
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
31621
+ def list_region_zones(project, region, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
31622
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/zones', options)
31623
+ command.response_representation = Google::Apis::ComputeV1::ZoneList::Representation
31624
+ command.response_class = Google::Apis::ComputeV1::ZoneList
31625
+ command.params['project'] = project unless project.nil?
31626
+ command.params['region'] = region unless region.nil?
31627
+ command.query['filter'] = filter unless filter.nil?
31628
+ command.query['maxResults'] = max_results unless max_results.nil?
31629
+ command.query['orderBy'] = order_by unless order_by.nil?
31630
+ command.query['pageToken'] = page_token unless page_token.nil?
31631
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
31632
+ command.query['fields'] = fields unless fields.nil?
31633
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
31634
+ command.query['userIp'] = user_ip unless user_ip.nil?
31635
+ execute_or_queue_command(command, &block)
31636
+ end
31637
+
31545
31638
  # Returns the specified Region resource. To decrease latency for this method,
31546
31639
  # you can optionally omit any unneeded information from the response by using a
31547
31640
  # field mask. This practice is especially recommended for unused quota
@@ -39655,8 +39748,8 @@ module Google
39655
39748
 
39656
39749
  # Sets the SSL policy for TargetSslProxy. The SSL policy specifies the server-
39657
39750
  # side support for SSL features. This affects connections between clients and
39658
- # the SSL proxy load balancer. They do not affect the connection between the
39659
- # load balancer and the backends.
39751
+ # the load balancer. They do not affect the connection between the load balancer
39752
+ # and the backends.
39660
39753
  # @param [String] project
39661
39754
  # Project ID for this request.
39662
39755
  # @param [String] target_ssl_proxy
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.83.0
4
+ version: 0.85.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: 2023-10-29 00:00:00.000000000 Z
11
+ date: 2023-12-10 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.83.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-compute_v1/v0.85.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: []