google-apis-compute_beta 0.107.0 → 0.108.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 ComputeBeta
18
18
  # Version of the google-apis-compute_beta gem
19
- GEM_VERSION = "0.107.0"
19
+ GEM_VERSION = "0.108.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.15.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20241112"
25
+ REVISION = "20241201"
26
26
  end
27
27
  end
28
28
  end
@@ -574,6 +574,12 @@ module Google
574
574
  include Google::Apis::Core::JsonObjectSupport
575
575
  end
576
576
 
577
+ class BackendServicesGetEffectiveSecurityPoliciesResponse
578
+ class Representation < Google::Apis::Core::JsonRepresentation; end
579
+
580
+ include Google::Apis::Core::JsonObjectSupport
581
+ end
582
+
577
583
  class BackendServicesScopedList
578
584
  class Representation < Google::Apis::Core::JsonRepresentation; end
579
585
 
@@ -3502,6 +3508,12 @@ module Google
3502
3508
  include Google::Apis::Core::JsonObjectSupport
3503
3509
  end
3504
3510
 
3511
+ class NetworkProfileLocation
3512
+ class Representation < Google::Apis::Core::JsonRepresentation; end
3513
+
3514
+ include Google::Apis::Core::JsonObjectSupport
3515
+ end
3516
+
3505
3517
  class NetworkProfileNetworkFeatures
3506
3518
  class Representation < Google::Apis::Core::JsonRepresentation; end
3507
3519
 
@@ -4924,12 +4936,24 @@ module Google
4924
4936
  include Google::Apis::Core::JsonObjectSupport
4925
4937
  end
4926
4938
 
4939
+ class ResourceStatusPhysicalHostTopology
4940
+ class Representation < Google::Apis::Core::JsonRepresentation; end
4941
+
4942
+ include Google::Apis::Core::JsonObjectSupport
4943
+ end
4944
+
4927
4945
  class ResourceStatusScheduling
4928
4946
  class Representation < Google::Apis::Core::JsonRepresentation; end
4929
4947
 
4930
4948
  include Google::Apis::Core::JsonObjectSupport
4931
4949
  end
4932
4950
 
4951
+ class ResourceStatusShutdownDetails
4952
+ class Representation < Google::Apis::Core::JsonRepresentation; end
4953
+
4954
+ include Google::Apis::Core::JsonObjectSupport
4955
+ end
4956
+
4933
4957
  class RolloutPolicy
4934
4958
  class Representation < Google::Apis::Core::JsonRepresentation; end
4935
4959
 
@@ -5104,6 +5128,12 @@ module Google
5104
5128
  include Google::Apis::Core::JsonObjectSupport
5105
5129
  end
5106
5130
 
5131
+ class RouterNatSubnetworkToNat64
5132
+ class Representation < Google::Apis::Core::JsonRepresentation; end
5133
+
5134
+ include Google::Apis::Core::JsonObjectSupport
5135
+ end
5136
+
5107
5137
  class RouterStatus
5108
5138
  class Representation < Google::Apis::Core::JsonRepresentation; end
5109
5139
 
@@ -5230,6 +5260,12 @@ module Google
5230
5260
  include Google::Apis::Core::JsonObjectSupport
5231
5261
  end
5232
5262
 
5263
+ class SchedulingGracefulShutdown
5264
+ class Representation < Google::Apis::Core::JsonRepresentation; end
5265
+
5266
+ include Google::Apis::Core::JsonObjectSupport
5267
+ end
5268
+
5233
5269
  class SchedulingNodeAffinity
5234
5270
  class Representation < Google::Apis::Core::JsonRepresentation; end
5235
5271
 
@@ -8209,6 +8245,14 @@ module Google
8209
8245
  end
8210
8246
  end
8211
8247
 
8248
+ class BackendServicesGetEffectiveSecurityPoliciesResponse
8249
+ # @private
8250
+ class Representation < Google::Apis::Core::JsonRepresentation
8251
+ collection :security_policies, as: 'securityPolicies', class: Google::Apis::ComputeBeta::SecurityPolicy, decorator: Google::Apis::ComputeBeta::SecurityPolicy::Representation
8252
+
8253
+ end
8254
+ end
8255
+
8212
8256
  class BackendServicesScopedList
8213
8257
  # @private
8214
8258
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -9571,9 +9615,7 @@ module Google
9571
9615
  property :creation_timestamp, as: 'creationTimestamp'
9572
9616
  property :deployment_type, as: 'deploymentType'
9573
9617
  property :description, as: 'description'
9574
- property :enable_opportunistic_maintenance, as: 'enableOpportunisticMaintenance'
9575
9618
  property :id, :numeric_string => true, as: 'id'
9576
- property :instance_termination_action, as: 'instanceTerminationAction'
9577
9619
  property :kind, as: 'kind'
9578
9620
  property :name, as: 'name'
9579
9621
  property :name_prefix, as: 'namePrefix'
@@ -9836,7 +9878,6 @@ module Google
9836
9878
  class GroupMaintenanceInfo
9837
9879
  # @private
9838
9880
  class Representation < Google::Apis::Core::JsonRepresentation
9839
- property :enable_opportunistic_maintenance, as: 'enableOpportunisticMaintenance'
9840
9881
  property :maintenance_ongoing_count, as: 'maintenanceOngoingCount'
9841
9882
  property :maintenance_pending_count, as: 'maintenancePendingCount'
9842
9883
  property :scheduling_type, as: 'schedulingType'
@@ -11828,6 +11869,8 @@ module Google
11828
11869
  class Representation < Google::Apis::Core::JsonRepresentation
11829
11870
  property :display_name, as: 'displayName'
11830
11871
  property :name, as: 'name'
11872
+ collection :packet_mirroring_rules, as: 'packetMirroringRules', class: Google::Apis::ComputeBeta::FirewallPolicyRule, decorator: Google::Apis::ComputeBeta::FirewallPolicyRule::Representation
11873
+
11831
11874
  property :priority, as: 'priority'
11832
11875
  collection :rules, as: 'rules', class: Google::Apis::ComputeBeta::FirewallPolicyRule, decorator: Google::Apis::ComputeBeta::FirewallPolicyRule::Representation
11833
11876
 
@@ -13795,6 +13838,8 @@ module Google
13795
13838
 
13796
13839
  property :id, :numeric_string => true, as: 'id'
13797
13840
  property :kind, as: 'kind'
13841
+ property :location, as: 'location', class: Google::Apis::ComputeBeta::NetworkProfileLocation, decorator: Google::Apis::ComputeBeta::NetworkProfileLocation::Representation
13842
+
13798
13843
  property :name, as: 'name'
13799
13844
  property :self_link, as: 'selfLink'
13800
13845
  property :self_link_with_id, as: 'selfLinkWithId'
@@ -13802,6 +13847,14 @@ module Google
13802
13847
  end
13803
13848
  end
13804
13849
 
13850
+ class NetworkProfileLocation
13851
+ # @private
13852
+ class Representation < Google::Apis::Core::JsonRepresentation
13853
+ property :name, as: 'name'
13854
+ property :scope, as: 'scope'
13855
+ end
13856
+ end
13857
+
13805
13858
  class NetworkProfileNetworkFeatures
13806
13859
  # @private
13807
13860
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -13870,6 +13923,8 @@ module Google
13870
13923
  property :bgp_always_compare_med, as: 'bgpAlwaysCompareMed'
13871
13924
  property :bgp_best_path_selection_mode, as: 'bgpBestPathSelectionMode'
13872
13925
  property :bgp_inter_region_cost, as: 'bgpInterRegionCost'
13926
+ property :effective_bgp_always_compare_med, as: 'effectiveBgpAlwaysCompareMed'
13927
+ property :effective_bgp_inter_region_cost, as: 'effectiveBgpInterRegionCost'
13873
13928
  property :routing_mode, as: 'routingMode'
13874
13929
  end
13875
13930
  end
@@ -13902,6 +13957,8 @@ module Google
13902
13957
  class Representation < Google::Apis::Core::JsonRepresentation
13903
13958
  property :display_name, as: 'displayName'
13904
13959
  property :name, as: 'name'
13960
+ collection :packet_mirroring_rules, as: 'packetMirroringRules', class: Google::Apis::ComputeBeta::FirewallPolicyRule, decorator: Google::Apis::ComputeBeta::FirewallPolicyRule::Representation
13961
+
13905
13962
  property :priority, as: 'priority'
13906
13963
  collection :rules, as: 'rules', class: Google::Apis::ComputeBeta::FirewallPolicyRule, decorator: Google::Apis::ComputeBeta::FirewallPolicyRule::Representation
13907
13964
 
@@ -15801,6 +15858,8 @@ module Google
15801
15858
  class Representation < Google::Apis::Core::JsonRepresentation
15802
15859
  property :display_name, as: 'displayName'
15803
15860
  property :name, as: 'name'
15861
+ collection :packet_mirroring_rules, as: 'packetMirroringRules', class: Google::Apis::ComputeBeta::FirewallPolicyRule, decorator: Google::Apis::ComputeBeta::FirewallPolicyRule::Representation
15862
+
15804
15863
  property :priority, as: 'priority'
15805
15864
  collection :rules, as: 'rules', class: Google::Apis::ComputeBeta::FirewallPolicyRule, decorator: Google::Apis::ComputeBeta::FirewallPolicyRule::Representation
15806
15865
 
@@ -15863,7 +15922,6 @@ module Google
15863
15922
  property :deployment_type, as: 'deploymentType'
15864
15923
  property :description, as: 'description'
15865
15924
  property :id, :numeric_string => true, as: 'id'
15866
- property :instance_termination_action, as: 'instanceTerminationAction'
15867
15925
  property :kind, as: 'kind'
15868
15926
  property :name, as: 'name'
15869
15927
  property :reservation_sharing_policy, as: 'reservationSharingPolicy', class: Google::Apis::ComputeBeta::AllocationReservationSharingPolicy, decorator: Google::Apis::ComputeBeta::AllocationReservationSharingPolicy::Representation
@@ -16339,13 +16397,27 @@ module Google
16339
16397
  # @private
16340
16398
  class Representation < Google::Apis::Core::JsonRepresentation
16341
16399
  property :physical_host, as: 'physicalHost'
16400
+ property :physical_host_topology, as: 'physicalHostTopology', class: Google::Apis::ComputeBeta::ResourceStatusPhysicalHostTopology, decorator: Google::Apis::ComputeBeta::ResourceStatusPhysicalHostTopology::Representation
16401
+
16342
16402
  property :scheduling, as: 'scheduling', class: Google::Apis::ComputeBeta::ResourceStatusScheduling, decorator: Google::Apis::ComputeBeta::ResourceStatusScheduling::Representation
16343
16403
 
16404
+ property :shutdown_details, as: 'shutdownDetails', class: Google::Apis::ComputeBeta::ResourceStatusShutdownDetails, decorator: Google::Apis::ComputeBeta::ResourceStatusShutdownDetails::Representation
16405
+
16344
16406
  property :upcoming_maintenance, as: 'upcomingMaintenance', class: Google::Apis::ComputeBeta::UpcomingMaintenance, decorator: Google::Apis::ComputeBeta::UpcomingMaintenance::Representation
16345
16407
 
16346
16408
  end
16347
16409
  end
16348
16410
 
16411
+ class ResourceStatusPhysicalHostTopology
16412
+ # @private
16413
+ class Representation < Google::Apis::Core::JsonRepresentation
16414
+ property :block, as: 'block'
16415
+ property :cluster, as: 'cluster'
16416
+ property :host, as: 'host'
16417
+ property :subblock, as: 'subblock'
16418
+ end
16419
+ end
16420
+
16349
16421
  class ResourceStatusScheduling
16350
16422
  # @private
16351
16423
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -16354,6 +16426,17 @@ module Google
16354
16426
  end
16355
16427
  end
16356
16428
 
16429
+ class ResourceStatusShutdownDetails
16430
+ # @private
16431
+ class Representation < Google::Apis::Core::JsonRepresentation
16432
+ property :max_duration, as: 'maxDuration', class: Google::Apis::ComputeBeta::Duration, decorator: Google::Apis::ComputeBeta::Duration::Representation
16433
+
16434
+ property :request_timestamp, as: 'requestTimestamp'
16435
+ property :stop_state, as: 'stopState'
16436
+ property :target_state, as: 'targetState'
16437
+ end
16438
+ end
16439
+
16357
16440
  class RolloutPolicy
16358
16441
  # @private
16359
16442
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -16675,11 +16758,14 @@ module Google
16675
16758
  property :max_ports_per_vm, as: 'maxPortsPerVm'
16676
16759
  property :min_ports_per_vm, as: 'minPortsPerVm'
16677
16760
  property :name, as: 'name'
16761
+ collection :nat64_subnetworks, as: 'nat64Subnetworks', class: Google::Apis::ComputeBeta::RouterNatSubnetworkToNat64, decorator: Google::Apis::ComputeBeta::RouterNatSubnetworkToNat64::Representation
16762
+
16678
16763
  property :nat_ip_allocate_option, as: 'natIpAllocateOption'
16679
16764
  collection :nat_ips, as: 'natIps'
16680
16765
  collection :rules, as: 'rules', class: Google::Apis::ComputeBeta::RouterNatRule, decorator: Google::Apis::ComputeBeta::RouterNatRule::Representation
16681
16766
 
16682
16767
  property :source_subnetwork_ip_ranges_to_nat, as: 'sourceSubnetworkIpRangesToNat'
16768
+ property :source_subnetwork_ip_ranges_to_nat64, as: 'sourceSubnetworkIpRangesToNat64'
16683
16769
  collection :subnetworks, as: 'subnetworks', class: Google::Apis::ComputeBeta::RouterNatSubnetworkToNat, decorator: Google::Apis::ComputeBeta::RouterNatSubnetworkToNat::Representation
16684
16770
 
16685
16771
  property :tcp_established_idle_timeout_sec, as: 'tcpEstablishedIdleTimeoutSec'
@@ -16728,6 +16814,13 @@ module Google
16728
16814
  end
16729
16815
  end
16730
16816
 
16817
+ class RouterNatSubnetworkToNat64
16818
+ # @private
16819
+ class Representation < Google::Apis::Core::JsonRepresentation
16820
+ property :name, as: 'name'
16821
+ end
16822
+ end
16823
+
16731
16824
  class RouterStatus
16732
16825
  # @private
16733
16826
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -16980,6 +17073,8 @@ module Google
16980
17073
  class Representation < Google::Apis::Core::JsonRepresentation
16981
17074
  property :automatic_restart, as: 'automaticRestart'
16982
17075
  property :availability_domain, as: 'availabilityDomain'
17076
+ property :graceful_shutdown, as: 'gracefulShutdown', class: Google::Apis::ComputeBeta::SchedulingGracefulShutdown, decorator: Google::Apis::ComputeBeta::SchedulingGracefulShutdown::Representation
17077
+
16983
17078
  property :host_error_timeout_seconds, as: 'hostErrorTimeoutSeconds'
16984
17079
  property :instance_termination_action, as: 'instanceTerminationAction'
16985
17080
  property :local_ssd_recovery_timeout, as: 'localSsdRecoveryTimeout', class: Google::Apis::ComputeBeta::Duration, decorator: Google::Apis::ComputeBeta::Duration::Representation
@@ -17001,6 +17096,15 @@ module Google
17001
17096
  end
17002
17097
  end
17003
17098
 
17099
+ class SchedulingGracefulShutdown
17100
+ # @private
17101
+ class Representation < Google::Apis::Core::JsonRepresentation
17102
+ property :enabled, as: 'enabled'
17103
+ property :max_duration, as: 'maxDuration', class: Google::Apis::ComputeBeta::Duration, decorator: Google::Apis::ComputeBeta::Duration::Representation
17104
+
17105
+ end
17106
+ end
17107
+
17004
17108
  class SchedulingNodeAffinity
17005
17109
  # @private
17006
17110
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -17201,6 +17305,7 @@ module Google
17201
17305
 
17202
17306
  property :json_parsing, as: 'jsonParsing'
17203
17307
  property :log_level, as: 'logLevel'
17308
+ property :request_body_inspection_size, as: 'requestBodyInspectionSize'
17204
17309
  collection :user_ip_request_headers, as: 'userIpRequestHeaders'
17205
17310
  end
17206
17311
  end
@@ -18576,8 +18681,10 @@ module Google
18576
18681
  property :id, :numeric_string => true, as: 'id'
18577
18682
  property :internal_ipv6_prefix, as: 'internalIpv6Prefix'
18578
18683
  property :ip_cidr_range, as: 'ipCidrRange'
18684
+ property :ip_collection, as: 'ipCollection'
18579
18685
  property :ipv6_access_type, as: 'ipv6AccessType'
18580
18686
  property :ipv6_cidr_range, as: 'ipv6CidrRange'
18687
+ property :ipv6_gce_endpoint, as: 'ipv6GceEndpoint'
18581
18688
  property :kind, as: 'kind'
18582
18689
  property :log_config, as: 'logConfig', class: Google::Apis::ComputeBeta::SubnetworkLogConfig, decorator: Google::Apis::ComputeBeta::SubnetworkLogConfig::Representation
18583
18690
 
@@ -2158,6 +2158,42 @@ module Google
2158
2158
  execute_or_queue_command(command, &block)
2159
2159
  end
2160
2160
 
2161
+ # Returns effective security policies applied to this backend service.
2162
+ # @param [String] project
2163
+ # Project ID for this request.
2164
+ # @param [String] backend_service
2165
+ # Name of the Backend Service for this request.
2166
+ # @param [String] fields
2167
+ # Selector specifying which fields to include in a partial response.
2168
+ # @param [String] quota_user
2169
+ # Available to use for quota purposes for server-side applications. Can be any
2170
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2171
+ # @param [String] user_ip
2172
+ # Legacy name for parameter that has been superseded by `quotaUser`.
2173
+ # @param [Google::Apis::RequestOptions] options
2174
+ # Request-specific options
2175
+ #
2176
+ # @yield [result, err] Result & error if block supplied
2177
+ # @yieldparam result [Google::Apis::ComputeBeta::BackendServicesGetEffectiveSecurityPoliciesResponse] parsed result object
2178
+ # @yieldparam err [StandardError] error object if request failed
2179
+ #
2180
+ # @return [Google::Apis::ComputeBeta::BackendServicesGetEffectiveSecurityPoliciesResponse]
2181
+ #
2182
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2183
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2184
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2185
+ def get_backend_service_effective_security_policies(project, backend_service, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2186
+ command = make_simple_command(:get, 'projects/{project}/global/backendServices/{backendService}/getEffectiveSecurityPolicies', options)
2187
+ command.response_representation = Google::Apis::ComputeBeta::BackendServicesGetEffectiveSecurityPoliciesResponse::Representation
2188
+ command.response_class = Google::Apis::ComputeBeta::BackendServicesGetEffectiveSecurityPoliciesResponse
2189
+ command.params['project'] = project unless project.nil?
2190
+ command.params['backendService'] = backend_service unless backend_service.nil?
2191
+ command.query['fields'] = fields unless fields.nil?
2192
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2193
+ command.query['userIp'] = user_ip unless user_ip.nil?
2194
+ execute_or_queue_command(command, &block)
2195
+ end
2196
+
2161
2197
  # Gets the most recent health check results for this BackendService. Example
2162
2198
  # request body: ` "group": "/zones/us-east1-b/instanceGroups/lb-backend-example"
2163
2199
  # `
@@ -14047,6 +14083,8 @@ module Google
14047
14083
  # The name of the zone for this request.
14048
14084
  # @param [String] instance
14049
14085
  # Name of the instance resource to delete.
14086
+ # @param [Boolean] no_graceful_shutdown
14087
+ # If set to true, Graceful Shutdown is skipped.
14050
14088
  # @param [String] request_id
14051
14089
  # An optional request ID to identify requests. Specify a unique request ID so
14052
14090
  # that if you must retry your request, the server will know to ignore the
@@ -14076,13 +14114,14 @@ module Google
14076
14114
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
14077
14115
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
14078
14116
  # @raise [Google::Apis::AuthorizationError] Authorization is required
14079
- def delete_instance(project, zone, instance, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
14117
+ def delete_instance(project, zone, instance, no_graceful_shutdown: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
14080
14118
  command = make_simple_command(:delete, 'projects/{project}/zones/{zone}/instances/{instance}', options)
14081
14119
  command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
14082
14120
  command.response_class = Google::Apis::ComputeBeta::Operation
14083
14121
  command.params['project'] = project unless project.nil?
14084
14122
  command.params['zone'] = zone unless zone.nil?
14085
14123
  command.params['instance'] = instance unless instance.nil?
14124
+ command.query['noGracefulShutdown'] = no_graceful_shutdown unless no_graceful_shutdown.nil?
14086
14125
  command.query['requestId'] = request_id unless request_id.nil?
14087
14126
  command.query['fields'] = fields unless fields.nil?
14088
14127
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -14473,7 +14512,9 @@ module Google
14473
14512
  # and the adjusted start position is returned as the `start` property value. You
14474
14513
  # can also provide a negative start position, which translates to the most
14475
14514
  # recent number of bytes written to the serial port. For example, -3 is
14476
- # interpreted as the most recent 3 bytes written to the serial console.
14515
+ # interpreted as the most recent 3 bytes written to the serial console. Note
14516
+ # that the negative start is bounded by the retained buffer size, and the
14517
+ # returned serial console output will not exceed the max buffer size.
14477
14518
  # @param [String] fields
14478
14519
  # Selector specifying which fields to include in a partial response.
14479
14520
  # @param [String] quota_user
@@ -16127,6 +16168,8 @@ module Google
16127
16168
  # This property is required if the instance has any attached Local SSD disks. If
16128
16169
  # false, Local SSD data will be preserved when the instance is suspended. If
16129
16170
  # true, the contents of any attached Local SSD disks will be discarded.
16171
+ # @param [Boolean] no_graceful_shutdown
16172
+ # If set to true, Graceful Shutdown is skipped.
16130
16173
  # @param [String] request_id
16131
16174
  # An optional request ID to identify requests. Specify a unique request ID so
16132
16175
  # that if you must retry your request, the server will know to ignore the
@@ -16156,7 +16199,7 @@ module Google
16156
16199
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
16157
16200
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
16158
16201
  # @raise [Google::Apis::AuthorizationError] Authorization is required
16159
- def stop_instance(project, zone, instance, discard_local_ssd: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
16202
+ def stop_instance(project, zone, instance, discard_local_ssd: nil, no_graceful_shutdown: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
16160
16203
  command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/stop', options)
16161
16204
  command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
16162
16205
  command.response_class = Google::Apis::ComputeBeta::Operation
@@ -16164,6 +16207,7 @@ module Google
16164
16207
  command.params['zone'] = zone unless zone.nil?
16165
16208
  command.params['instance'] = instance unless instance.nil?
16166
16209
  command.query['discardLocalSsd'] = discard_local_ssd unless discard_local_ssd.nil?
16210
+ command.query['noGracefulShutdown'] = no_graceful_shutdown unless no_graceful_shutdown.nil?
16167
16211
  command.query['requestId'] = request_id unless request_id.nil?
16168
16212
  command.query['fields'] = fields unless fields.nil?
16169
16213
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -35862,6 +35906,60 @@ module Google
35862
35906
  execute_or_queue_command(command, &block)
35863
35907
  end
35864
35908
 
35909
+ # Sets the labels on a security policy. To learn more about labels, read the
35910
+ # Labeling Resources documentation.
35911
+ # @param [String] project
35912
+ # Project ID for this request.
35913
+ # @param [String] region
35914
+ # The region for this request.
35915
+ # @param [String] resource
35916
+ # Name or id of the resource for this request.
35917
+ # @param [Google::Apis::ComputeBeta::RegionSetLabelsRequest] region_set_labels_request_object
35918
+ # @param [String] request_id
35919
+ # An optional request ID to identify requests. Specify a unique request ID so
35920
+ # that if you must retry your request, the server will know to ignore the
35921
+ # request if it has already been completed. For example, consider a situation
35922
+ # where you make an initial request and the request times out. If you make the
35923
+ # request again with the same request ID, the server can check if original
35924
+ # operation with the same request ID was received, and if so, will ignore the
35925
+ # second request. This prevents clients from accidentally creating duplicate
35926
+ # commitments. The request ID must be a valid UUID with the exception that zero
35927
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
35928
+ # @param [String] fields
35929
+ # Selector specifying which fields to include in a partial response.
35930
+ # @param [String] quota_user
35931
+ # Available to use for quota purposes for server-side applications. Can be any
35932
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
35933
+ # @param [String] user_ip
35934
+ # Legacy name for parameter that has been superseded by `quotaUser`.
35935
+ # @param [Google::Apis::RequestOptions] options
35936
+ # Request-specific options
35937
+ #
35938
+ # @yield [result, err] Result & error if block supplied
35939
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
35940
+ # @yieldparam err [StandardError] error object if request failed
35941
+ #
35942
+ # @return [Google::Apis::ComputeBeta::Operation]
35943
+ #
35944
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
35945
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
35946
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
35947
+ def set_region_security_policy_labels(project, region, resource, region_set_labels_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
35948
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/securityPolicies/{resource}/setLabels', options)
35949
+ command.request_representation = Google::Apis::ComputeBeta::RegionSetLabelsRequest::Representation
35950
+ command.request_object = region_set_labels_request_object
35951
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
35952
+ command.response_class = Google::Apis::ComputeBeta::Operation
35953
+ command.params['project'] = project unless project.nil?
35954
+ command.params['region'] = region unless region.nil?
35955
+ command.params['resource'] = resource unless resource.nil?
35956
+ command.query['requestId'] = request_id unless request_id.nil?
35957
+ command.query['fields'] = fields unless fields.nil?
35958
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
35959
+ command.query['userIp'] = user_ip unless user_ip.nil?
35960
+ execute_or_queue_command(command, &block)
35961
+ end
35962
+
35865
35963
  # Deletes the specified SslCertificate resource in the region.
35866
35964
  # @param [String] project
35867
35965
  # Project ID for this request.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-compute_beta
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.107.0
4
+ version: 0.108.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-12-04 00:00:00.000000000 Z
11
+ date: 2024-12-15 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_beta/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-compute_beta/v0.107.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-compute_beta/v0.108.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-compute_beta
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.5.22
78
+ rubygems_version: 3.5.23
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Compute Engine API Beta