From b93ea8274a1f834f04f3c7ce93ae329024fd54a8 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Sun, 13 Sep 2026 09:52:55 +0000 Subject: [PATCH] feat: Automated regeneration of compute beta client --- api_names_out.yaml | 39 ++++ .../google-apis-compute_beta/CHANGELOG.md | 4 + .../google-apis-compute_beta/Gemfile.lock | 4 +- .../lib/google/apis/compute_beta/classes.rb | 175 ++++++++++++++- .../google/apis/compute_beta/gem_version.rb | 4 +- .../apis/compute_beta/representations.rb | 65 ++++++ .../lib/google/apis/compute_beta/service.rb | 208 ++++++++++++++++++ 7 files changed, 493 insertions(+), 6 deletions(-) diff --git a/api_names_out.yaml b/api_names_out.yaml index bf66778deac..7ac0b87b7d6 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -120232,6 +120232,9 @@ "/compute:beta/AdvancedMachineFeatures/turboMode": turbo_mode "/compute:beta/AdvancedMachineFeatures/visibleCoreCount": visible_core_count "/compute:beta/AliasIpRange": alias_ip_range +"/compute:beta/AliasIpRange/candidateSubnetworkRangeNames": candidate_subnetwork_range_names +"/compute:beta/AliasIpRange/candidateSubnetworkRangeNames/candidate_subnetwork_range_name": candidate_subnetwork_range_name +"/compute:beta/AliasIpRange/effectiveSubnetworkRangeName": effective_subnetwork_range_name "/compute:beta/AliasIpRange/ipCidrRange": ip_cidr_range "/compute:beta/AliasIpRange/subnetworkRangeName": subnetwork_range_name "/compute:beta/Allocation": allocation @@ -121020,6 +121023,16 @@ "/compute:beta/CalendarModeAdviceResponse": calendar_mode_advice_response "/compute:beta/CalendarModeAdviceResponse/recommendations": recommendations "/compute:beta/CalendarModeAdviceResponse/recommendations/recommendation": recommendation +"/compute:beta/CalendarModeExtensionAdviceRequest": calendar_mode_extension_advice_request +"/compute:beta/CalendarModeExtensionAdviceRequest/endTimeNotLaterThan": end_time_not_later_than +"/compute:beta/CalendarModeExtensionAdviceRequest/futureReservation": future_reservation +"/compute:beta/CalendarModeExtensionAdviceResponse": calendar_mode_extension_advice_response +"/compute:beta/CalendarModeExtensionAdviceResponse/endTime": end_time +"/compute:beta/CalendarModeExtensionAdviceResponse/notRecommendedReason": not_recommended_reason +"/compute:beta/CalendarModeExtensionAdviceResponse/recommendationId": recommendation_id +"/compute:beta/CalendarModeExtensionAdviceResponseNotRecommendedReason": calendar_mode_extension_advice_response_not_recommended_reason +"/compute:beta/CalendarModeExtensionAdviceResponseNotRecommendedReason/details": details +"/compute:beta/CalendarModeExtensionAdviceResponseNotRecommendedReason/status": status "/compute:beta/CalendarModeRecommendation": calendar_mode_recommendation "/compute:beta/CalendarModeRecommendation/recommendationsPerSpec": recommendations_per_spec "/compute:beta/CalendarModeRecommendation/recommendationsPerSpec/recommendations_per_spec": recommendations_per_spec @@ -121601,6 +121614,8 @@ "/compute:beta/Duration": duration "/compute:beta/Duration/nanos": nanos "/compute:beta/Duration/seconds": seconds +"/compute:beta/DynamicCompressionPolicy": dynamic_compression_policy +"/compute:beta/DynamicCompressionPolicy/compressionMode": compression_mode "/compute:beta/ErrorInfo": error_info "/compute:beta/ErrorInfo/domain": domain "/compute:beta/ErrorInfo/metadatas": metadatas @@ -122697,6 +122712,7 @@ "/compute:beta/HttpRouteAction": http_route_action "/compute:beta/HttpRouteAction/cachePolicy": cache_policy "/compute:beta/HttpRouteAction/corsPolicy": cors_policy +"/compute:beta/HttpRouteAction/dynamicCompressionPolicy": dynamic_compression_policy "/compute:beta/HttpRouteAction/faultInjectionPolicy": fault_injection_policy "/compute:beta/HttpRouteAction/imageOptimizationPolicy": image_optimization_policy "/compute:beta/HttpRouteAction/maxStreamDuration": max_stream_duration @@ -123510,6 +123526,7 @@ "/compute:beta/InstanceProperties/tags": tags "/compute:beta/InstanceProperties/workloadIdentityConfig": workload_identity_config "/compute:beta/InstancePropertiesPatch": instance_properties_patch +"/compute:beta/InstancePropertiesPatch/exposeHostTopology": expose_host_topology "/compute:beta/InstancePropertiesPatch/labels": labels "/compute:beta/InstancePropertiesPatch/labels/label": label "/compute:beta/InstancePropertiesPatch/metadata": metadata @@ -124233,6 +124250,7 @@ "/compute:beta/InterconnectLocationRegionInfo/regionKey": region_key "/compute:beta/InterconnectMacsec": interconnect_macsec "/compute:beta/InterconnectMacsec/failOpen": fail_open +"/compute:beta/InterconnectMacsec/interconnectKeyGroup": interconnect_key_group "/compute:beta/InterconnectMacsec/preSharedKeys": pre_shared_keys "/compute:beta/InterconnectMacsec/preSharedKeys/pre_shared_key": pre_shared_key "/compute:beta/InterconnectMacsecConfig": interconnect_macsec_config @@ -126912,6 +126930,7 @@ "/compute:beta/ResourceStatusPhysicalHostTopology/block": block "/compute:beta/ResourceStatusPhysicalHostTopology/cluster": cluster "/compute:beta/ResourceStatusPhysicalHostTopology/host": host +"/compute:beta/ResourceStatusPhysicalHostTopology/machine": machine "/compute:beta/ResourceStatusPhysicalHostTopology/subblock": subblock "/compute:beta/ResourceStatusPhysicalHostTopologyAdditionalAttributes": resource_status_physical_host_topology_additional_attributes "/compute:beta/ResourceStatusPhysicalHostTopologyAdditionalAttributes/acceleratorTopologyIds": accelerator_topology_ids @@ -127488,6 +127507,7 @@ "/compute:beta/Scheduling": scheduling "/compute:beta/Scheduling/automaticRestart": automatic_restart "/compute:beta/Scheduling/availabilityDomain": availability_domain +"/compute:beta/Scheduling/exposeHostTopology": expose_host_topology "/compute:beta/Scheduling/gracefulShutdown": graceful_shutdown "/compute:beta/Scheduling/hostErrorTimeoutSeconds": host_error_timeout_seconds "/compute:beta/Scheduling/instanceTerminationAction": instance_termination_action @@ -129685,6 +129705,9 @@ "/compute:beta/compute.advice.calendarMode": calendar_mode_advice "/compute:beta/compute.advice.calendarMode/project": project "/compute:beta/compute.advice.calendarMode/region": region +"/compute:beta/compute.advice.calendarModeExtension": calendar_mode_extension_advice +"/compute:beta/compute.advice.calendarModeExtension/project": project +"/compute:beta/compute.advice.calendarModeExtension/region": region "/compute:beta/compute.advice.capacity": capacity_advice "/compute:beta/compute.advice.capacity/project": project "/compute:beta/compute.advice.capacity/region": region @@ -133705,6 +133728,11 @@ "/compute:beta/compute.regionSslPolicies.get/project": project "/compute:beta/compute.regionSslPolicies.get/region": region "/compute:beta/compute.regionSslPolicies.get/sslPolicy": ssl_policy +"/compute:beta/compute.regionSslPolicies.getIamPolicy": get_region_ssl_policy_iam_policy +"/compute:beta/compute.regionSslPolicies.getIamPolicy/optionsRequestedPolicyVersion": options_requested_policy_version +"/compute:beta/compute.regionSslPolicies.getIamPolicy/project": project +"/compute:beta/compute.regionSslPolicies.getIamPolicy/region": region +"/compute:beta/compute.regionSslPolicies.getIamPolicy/resource": resource "/compute:beta/compute.regionSslPolicies.insert": insert_region_ssl_policy "/compute:beta/compute.regionSslPolicies.insert/project": project "/compute:beta/compute.regionSslPolicies.insert/region": region @@ -133730,6 +133758,10 @@ "/compute:beta/compute.regionSslPolicies.patch/region": region "/compute:beta/compute.regionSslPolicies.patch/requestId": request_id "/compute:beta/compute.regionSslPolicies.patch/sslPolicy": ssl_policy +"/compute:beta/compute.regionSslPolicies.setIamPolicy": set_region_ssl_policy_iam_policy +"/compute:beta/compute.regionSslPolicies.setIamPolicy/project": project +"/compute:beta/compute.regionSslPolicies.setIamPolicy/region": region +"/compute:beta/compute.regionSslPolicies.setIamPolicy/resource": resource "/compute:beta/compute.regionSslPolicies.testIamPermissions": test_region_ssl_policy_iam_permissions "/compute:beta/compute.regionSslPolicies.testIamPermissions/project": project "/compute:beta/compute.regionSslPolicies.testIamPermissions/region": region @@ -134581,6 +134613,10 @@ "/compute:beta/compute.sslPolicies.get": get_ssl_policy "/compute:beta/compute.sslPolicies.get/project": project "/compute:beta/compute.sslPolicies.get/sslPolicy": ssl_policy +"/compute:beta/compute.sslPolicies.getIamPolicy": get_ssl_policy_iam_policy +"/compute:beta/compute.sslPolicies.getIamPolicy/optionsRequestedPolicyVersion": options_requested_policy_version +"/compute:beta/compute.sslPolicies.getIamPolicy/project": project +"/compute:beta/compute.sslPolicies.getIamPolicy/resource": resource "/compute:beta/compute.sslPolicies.insert": insert_ssl_policy "/compute:beta/compute.sslPolicies.insert/project": project "/compute:beta/compute.sslPolicies.insert/requestId": request_id @@ -134602,6 +134638,9 @@ "/compute:beta/compute.sslPolicies.patch/project": project "/compute:beta/compute.sslPolicies.patch/requestId": request_id "/compute:beta/compute.sslPolicies.patch/sslPolicy": ssl_policy +"/compute:beta/compute.sslPolicies.setIamPolicy": set_ssl_policy_iam_policy +"/compute:beta/compute.sslPolicies.setIamPolicy/project": project +"/compute:beta/compute.sslPolicies.setIamPolicy/resource": resource "/compute:beta/compute.sslPolicies.testIamPermissions": test_ssl_policy_iam_permissions "/compute:beta/compute.sslPolicies.testIamPermissions/project": project "/compute:beta/compute.sslPolicies.testIamPermissions/resource": resource diff --git a/generated/google-apis-compute_beta/CHANGELOG.md b/generated/google-apis-compute_beta/CHANGELOG.md index 6e41b419cfd..49ce4e8fa9b 100644 --- a/generated/google-apis-compute_beta/CHANGELOG.md +++ b/generated/google-apis-compute_beta/CHANGELOG.md @@ -1,5 +1,9 @@ # Release history for google-apis-compute_beta +### v0.148.0 (2026-09-13) + +* Regenerated from discovery document revision 20260908 + ### v0.147.0 (2026-08-30) * Regenerated from discovery document revision 20260821 diff --git a/generated/google-apis-compute_beta/Gemfile.lock b/generated/google-apis-compute_beta/Gemfile.lock index 255914539e1..e7a36dd0714 100644 --- a/generated/google-apis-compute_beta/Gemfile.lock +++ b/generated/google-apis-compute_beta/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - google-apis-compute_beta (0.147.0) + google-apis-compute_beta (0.148.0) google-apis-core (>= 0.15.0, < 2.a) GEM @@ -105,7 +105,7 @@ CHECKSUMS faraday (2.14.3) sha256=1882247e6766615c8220b4392bf1d27f6ebb63d8e28267587cef1fb0bf37f278 faraday-follow_redirects (0.5.0) sha256=5cde93c894b30943a5d2b93c2fe9284216a6b756f7af406a1e55f211d97d10ad faraday-net_http (3.4.4) sha256=0e78af151747ed1b00f33e25973b4bc220d7f16c00c39676817c8b12331eb588 - google-apis-compute_beta (0.147.0) + google-apis-compute_beta (0.148.0) google-apis-core (1.2.1) sha256=3739030455277e3be90f2d07321ad4d0bf0d6b1ed820b2d092916d6cdef05337 google-cloud-env (2.3.1) sha256=0faac01eb27be78c2591d64433663b1a114f8f7af55a4f819755426cac9178e7 google-logging-utils (0.2.0) sha256=675462b4ea5affa825a3442694ca2d75d0069455a1d0956127207498fca3df7b diff --git a/generated/google-apis-compute_beta/lib/google/apis/compute_beta/classes.rb b/generated/google-apis-compute_beta/lib/google/apis/compute_beta/classes.rb index f3c96749f08..8684654a6a4 100644 --- a/generated/google-apis-compute_beta/lib/google/apis/compute_beta/classes.rb +++ b/generated/google-apis-compute_beta/lib/google/apis/compute_beta/classes.rb @@ -1377,6 +1377,21 @@ def update!(**args) class AliasIpRange include Google::Apis::Core::Hashable + # Identifies the candidate subnetwork range names for the alias + # IPs to be allocated from. When it is set, the IP would be allocated from + # any subnetwork range defined here if the IPs are available. + # Only one of subnetwork_range_name or candidate_subnetwork_range_names + # should be set. + # Corresponds to the JSON property `candidateSubnetworkRangeNames` + # @return [Array] + attr_accessor :candidate_subnetwork_range_names + + # Output only. [Output Only] The subnetwork range name where the IP is allocated. + # It will be set to the subnetwork range where the IP is allocated only. + # Corresponds to the JSON property `effectiveSubnetworkRangeName` + # @return [String] + attr_accessor :effective_subnetwork_range_name + # The IP alias ranges to allocate for this interface. This IP CIDR range # must belong to the specified subnetwork and cannot contain IP addresses # reserved by system or used by other network interfaces. This range may be @@ -1398,6 +1413,8 @@ def initialize(**args) # Update properties of this object def update!(**args) + @candidate_subnetwork_range_names = args[:candidate_subnetwork_range_names] if args.key?(:candidate_subnetwork_range_names) + @effective_subnetwork_range_name = args[:effective_subnetwork_range_name] if args.key?(:effective_subnetwork_range_name) @ip_cidr_range = args[:ip_cidr_range] if args.key?(:ip_cidr_range) @subnetwork_range_name = args[:subnetwork_range_name] if args.key?(:subnetwork_range_name) end @@ -5938,7 +5955,8 @@ class BackendServiceHaPolicyLeaderNetworkEndpoint # The name of the VM instance of the leader network endpoint. The # instance must already be attached to the NEG specified in the # haPolicy.leader.backendGroup. - # The name must be 1-63 characters long, and comply with RFC1035. + # The value must be a valid RFC1035 name (1-63 characters) or a valid + # instance URL. # Authorization requires the following IAM permission on the # specified resource instance: compute.instances.use # Corresponds to the JSON property `instance` @@ -8000,6 +8018,100 @@ def update!(**args) end end + # A request to recommend the maximum duration for extending an existing future + # reservation in calendar mode. The recommended duration is shorter than or + # equal to the specified extension duration. + class CalendarModeExtensionAdviceRequest + include Google::Apis::Core::Hashable + + # Required. The desired end time for the extension. + # Corresponds to the JSON property `endTimeNotLaterThan` + # @return [String] + attr_accessor :end_time_not_later_than + + # Required. Reference to the future reservation, in the format: + # projects/`project`/zones/`zone`/futureReservations/`name` + # Full URIs that include hostnames (like compute.googleapis.com or + # www.googleapis.com) are also supported. + # Corresponds to the JSON property `futureReservation` + # @return [String] + attr_accessor :future_reservation + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @end_time_not_later_than = args[:end_time_not_later_than] if args.key?(:end_time_not_later_than) + @future_reservation = args[:future_reservation] if args.key?(:future_reservation) + end + end + + # A response that contains the recommended duration for extending + # a future reservation in calendar mode based on available capacity + # during the extension period. + class CalendarModeExtensionAdviceResponse + include Google::Apis::Core::Hashable + + # The recommended end time for the extension, which is either the end time + # requested by the caller or the longest alternative with sufficient + # capacity. If the extension is not possible, this field is empty, and + # notRecommendedReason is populated instead. + # Corresponds to the JSON property `endTime` + # @return [String] + attr_accessor :end_time + + # Information about why no recommendation was provided. + # Corresponds to the JSON property `notRecommendedReason` + # @return [Google::Apis::ComputeBeta::CalendarModeExtensionAdviceResponseNotRecommendedReason] + attr_accessor :not_recommended_reason + + # The unique ID of the recommendation, which is a UUID string generated by + # the API. + # Corresponds to the JSON property `recommendationId` + # @return [String] + attr_accessor :recommendation_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @end_time = args[:end_time] if args.key?(:end_time) + @not_recommended_reason = args[:not_recommended_reason] if args.key?(:not_recommended_reason) + @recommendation_id = args[:recommendation_id] if args.key?(:recommendation_id) + end + end + + # Information about why no recommendation was provided. + class CalendarModeExtensionAdviceResponseNotRecommendedReason + include Google::Apis::Core::Hashable + + # Human-readable details describing why the recommendation wasn't provided. + # For example, if the status is CONDITIONS_NOT_MET, this field explains why + # the requested extension duration isn't possible. + # Corresponds to the JSON property `details` + # @return [String] + attr_accessor :details + + # Status of recommendation. + # Corresponds to the JSON property `status` + # @return [String] + attr_accessor :status + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @details = args[:details] if args.key?(:details) + @status = args[:status] if args.key?(:status) + end + end + # A single recommendation to create requested resources. Contains detailed # recommendations for every future resources specification specified in # CalendarModeAdviceRequest. @@ -8804,7 +8916,8 @@ class Commitment # GENERAL_PURPOSE,GENERAL_PURPOSE_C4, GENERAL_PURPOSE_E2,GENERAL_PURPOSE_N2, # GENERAL_PURPOSE_N2D,GENERAL_PURPOSE_N4, GENERAL_PURPOSE_T2D,GRAPHICS_OPTIMIZED, # GRAPHICS_OPTIMIZED_G4,GRAPHICS_OPTIMIZED_G4_VGPU,MEMORY_OPTIMIZED, - # MEMORY_OPTIMIZED_M3,MEMORY_OPTIMIZED_X4, STORAGE_OPTIMIZED_Z3. For + # MEMORY_OPTIMIZED_M3,MEMORY_OPTIMIZED_X4, STORAGE_OPTIMIZED_Z3, + # STORAGE_OPTIMIZED_Z4DS, STORAGE_OPTIMIZED_Z4DH,STORAGE_OPTIMIZED_Z4D4T. For # example, type MEMORY_OPTIMIZED specifies a commitment that # applies only to eligible resources of memory optimized M1 and M2 machine # series. Type GENERAL_PURPOSE specifies a commitment that @@ -12951,6 +13064,26 @@ def update!(**args) end end + # Dynamic compression policy for this URL Map's route. + class DynamicCompressionPolicy + include Google::Apis::Core::Hashable + + # Compress text responses using Brotli or gzip compression, based on + # the client's Accept-Encoding header. + # Corresponds to the JSON property `compressionMode` + # @return [String] + attr_accessor :compression_mode + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @compression_mode = args[:compression_mode] if args.key?(:compression_mode) + end + end + # Describes the cause of the error with structured details. # Example of an error when contacting the "pubsub.googleapis.com" API when it # is not enabled: @@ -22566,6 +22699,11 @@ class HttpRouteAction # @return [Google::Apis::ComputeBeta::CorsPolicy] attr_accessor :cors_policy + # Dynamic compression policy for this URL Map's route. + # Corresponds to the JSON property `dynamicCompressionPolicy` + # @return [Google::Apis::ComputeBeta::DynamicCompressionPolicy] + attr_accessor :dynamic_compression_policy + # The specification for fault injection introduced into traffic to test # the resiliency of clients to backend service failure. As part of fault # injection, when clients send requests to a backend service, delays can be @@ -22643,6 +22781,7 @@ def initialize(**args) def update!(**args) @cache_policy = args[:cache_policy] if args.key?(:cache_policy) @cors_policy = args[:cors_policy] if args.key?(:cors_policy) + @dynamic_compression_policy = args[:dynamic_compression_policy] if args.key?(:dynamic_compression_policy) @fault_injection_policy = args[:fault_injection_policy] if args.key?(:fault_injection_policy) @image_optimization_policy = args[:image_optimization_policy] if args.key?(:image_optimization_policy) @max_stream_duration = args[:max_stream_duration] if args.key?(:max_stream_duration) @@ -29279,6 +29418,12 @@ def update!(**args) class InstancePropertiesPatch include Google::Apis::Core::Hashable + # This optional flag exposes the hashed physical host ID. + # Corresponds to the JSON property `exposeHostTopology` + # @return [Boolean] + attr_accessor :expose_host_topology + alias_method :expose_host_topology?, :expose_host_topology + # The label key-value pairs that you want to patch onto the instance. # Corresponds to the JSON property `labels` # @return [Hash] @@ -29297,6 +29442,7 @@ def initialize(**args) # Update properties of this object def update!(**args) + @expose_host_topology = args[:expose_host_topology] if args.key?(:expose_host_topology) @labels = args[:labels] if args.key?(:labels) @metadata = args[:metadata] if args.key?(:metadata) end @@ -35134,6 +35280,14 @@ class InterconnectMacsec attr_accessor :fail_open alias_method :fail_open?, :fail_open + # Optional. URL of the InterconnectKeyGroup resource to use for MACsec, in the + # format: + # projects/`project`/locations/`region`/interconnectKeyGroups/` + # interconnectKeyGroup`. + # Corresponds to the JSON property `interconnectKeyGroup` + # @return [String] + attr_accessor :interconnect_key_group + # Required. A keychain placeholder describing a set of named key objects # along with their start times. A MACsec CKN/CAK is generated for each # key in the key chain. Google router automatically picks the key with @@ -35150,6 +35304,7 @@ def initialize(**args) # Update properties of this object def update!(**args) @fail_open = args[:fail_open] if args.key?(:fail_open) + @interconnect_key_group = args[:interconnect_key_group] if args.key?(:interconnect_key_group) @pre_shared_keys = args[:pre_shared_keys] if args.key?(:pre_shared_keys) end end @@ -56824,6 +56979,13 @@ class ResourceStatusPhysicalHostTopology # @return [String] attr_accessor :host + # Output only. [Output Only] The ID of the machine on which the running instance + # is + # located. It is only populated for machines which have multiple hosts. + # Corresponds to the JSON property `machine` + # @return [String] + attr_accessor :machine + # [Output Only] The ID of the sub-block in which the running instance is # located. Instances in the same sub-block experience lower network latency # than instances in the same block. @@ -56841,6 +57003,7 @@ def update!(**args) @block = args[:block] if args.key?(:block) @cluster = args[:cluster] if args.key?(:cluster) @host = args[:host] if args.key?(:host) + @machine = args[:machine] if args.key?(:machine) @subblock = args[:subblock] if args.key?(:subblock) end end @@ -61291,6 +61454,13 @@ class Scheduling # @return [Fixnum] attr_accessor :availability_domain + # This optional flag exposes the hashed physical host ID in the + # ResourceStatus resource of the VM. + # Corresponds to the JSON property `exposeHostTopology` + # @return [Boolean] + attr_accessor :expose_host_topology + alias_method :expose_host_topology?, :expose_host_topology + # The configuration for gracefully shutting down the instance. # Corresponds to the JSON property `gracefulShutdown` # @return [Google::Apis::ComputeBeta::SchedulingGracefulShutdown] @@ -61417,6 +61587,7 @@ def initialize(**args) def update!(**args) @automatic_restart = args[:automatic_restart] if args.key?(:automatic_restart) @availability_domain = args[:availability_domain] if args.key?(:availability_domain) + @expose_host_topology = args[:expose_host_topology] if args.key?(:expose_host_topology) @graceful_shutdown = args[:graceful_shutdown] if args.key?(:graceful_shutdown) @host_error_timeout_seconds = args[:host_error_timeout_seconds] if args.key?(:host_error_timeout_seconds) @instance_termination_action = args[:instance_termination_action] if args.key?(:instance_termination_action) diff --git a/generated/google-apis-compute_beta/lib/google/apis/compute_beta/gem_version.rb b/generated/google-apis-compute_beta/lib/google/apis/compute_beta/gem_version.rb index 5aac408802c..a798fe3ee70 100644 --- a/generated/google-apis-compute_beta/lib/google/apis/compute_beta/gem_version.rb +++ b/generated/google-apis-compute_beta/lib/google/apis/compute_beta/gem_version.rb @@ -16,13 +16,13 @@ module Google module Apis module ComputeBeta # Version of the google-apis-compute_beta gem - GEM_VERSION = "0.147.0" + GEM_VERSION = "0.148.0" # Version of the code generator used to generate this client GENERATOR_VERSION = "0.19.0" # Revision of the discovery document this client was generated from - REVISION = "20260821" + REVISION = "20260908" end end end diff --git a/generated/google-apis-compute_beta/lib/google/apis/compute_beta/representations.rb b/generated/google-apis-compute_beta/lib/google/apis/compute_beta/representations.rb index e085f802296..2b979d5892f 100644 --- a/generated/google-apis-compute_beta/lib/google/apis/compute_beta/representations.rb +++ b/generated/google-apis-compute_beta/lib/google/apis/compute_beta/representations.rb @@ -892,6 +892,24 @@ class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class CalendarModeExtensionAdviceRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class CalendarModeExtensionAdviceResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class CalendarModeExtensionAdviceResponseNotRecommendedReason + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class CalendarModeRecommendation class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1528,6 +1546,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class DynamicCompressionPolicy + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class ErrorInfo class Representation < Google::Apis::Core::JsonRepresentation; end @@ -10165,6 +10189,8 @@ class Representation < Google::Apis::Core::JsonRepresentation class AliasIpRange # @private class Representation < Google::Apis::Core::JsonRepresentation + collection :candidate_subnetwork_range_names, as: 'candidateSubnetworkRangeNames' + property :effective_subnetwork_range_name, as: 'effectiveSubnetworkRangeName' property :ip_cidr_range, as: 'ipCidrRange' property :subnetwork_range_name, as: 'subnetworkRangeName' end @@ -11517,6 +11543,32 @@ class Representation < Google::Apis::Core::JsonRepresentation end end + class CalendarModeExtensionAdviceRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :end_time_not_later_than, as: 'endTimeNotLaterThan' + property :future_reservation, as: 'futureReservation' + end + end + + class CalendarModeExtensionAdviceResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :end_time, as: 'endTime' + property :not_recommended_reason, as: 'notRecommendedReason', class: Google::Apis::ComputeBeta::CalendarModeExtensionAdviceResponseNotRecommendedReason, decorator: Google::Apis::ComputeBeta::CalendarModeExtensionAdviceResponseNotRecommendedReason::Representation + + property :recommendation_id, as: 'recommendationId' + end + end + + class CalendarModeExtensionAdviceResponseNotRecommendedReason + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :details, as: 'details' + property :status, as: 'status' + end + end + class CalendarModeRecommendation # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -12655,6 +12707,13 @@ class Representation < Google::Apis::Core::JsonRepresentation end end + class DynamicCompressionPolicy + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :compression_mode, as: 'compressionMode' + end + end + class ErrorInfo # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -14755,6 +14814,8 @@ class Representation < Google::Apis::Core::JsonRepresentation property :cors_policy, as: 'corsPolicy', class: Google::Apis::ComputeBeta::CorsPolicy, decorator: Google::Apis::ComputeBeta::CorsPolicy::Representation + property :dynamic_compression_policy, as: 'dynamicCompressionPolicy', class: Google::Apis::ComputeBeta::DynamicCompressionPolicy, decorator: Google::Apis::ComputeBeta::DynamicCompressionPolicy::Representation + property :fault_injection_policy, as: 'faultInjectionPolicy', class: Google::Apis::ComputeBeta::HttpFaultInjection, decorator: Google::Apis::ComputeBeta::HttpFaultInjection::Representation property :image_optimization_policy, as: 'imageOptimizationPolicy', class: Google::Apis::ComputeBeta::ImageOptimizationPolicy, decorator: Google::Apis::ComputeBeta::ImageOptimizationPolicy::Representation @@ -16353,6 +16414,7 @@ class Representation < Google::Apis::Core::JsonRepresentation class InstancePropertiesPatch # @private class Representation < Google::Apis::Core::JsonRepresentation + property :expose_host_topology, as: 'exposeHostTopology' hash :labels, as: 'labels' hash :metadata, as: 'metadata' end @@ -17750,6 +17812,7 @@ class InterconnectMacsec # @private class Representation < Google::Apis::Core::JsonRepresentation property :fail_open, as: 'failOpen' + property :interconnect_key_group, as: 'interconnectKeyGroup' collection :pre_shared_keys, as: 'preSharedKeys', class: Google::Apis::ComputeBeta::InterconnectMacsecPreSharedKey, decorator: Google::Apis::ComputeBeta::InterconnectMacsecPreSharedKey::Representation end @@ -22993,6 +23056,7 @@ class Representation < Google::Apis::Core::JsonRepresentation property :block, as: 'block' property :cluster, as: 'cluster' property :host, as: 'host' + property :machine, as: 'machine' property :subblock, as: 'subblock' end end @@ -23994,6 +24058,7 @@ class Scheduling class Representation < Google::Apis::Core::JsonRepresentation property :automatic_restart, as: 'automaticRestart' property :availability_domain, as: 'availabilityDomain' + property :expose_host_topology, as: 'exposeHostTopology' property :graceful_shutdown, as: 'gracefulShutdown', class: Google::Apis::ComputeBeta::SchedulingGracefulShutdown, decorator: Google::Apis::ComputeBeta::SchedulingGracefulShutdown::Representation property :host_error_timeout_seconds, as: 'hostErrorTimeoutSeconds' diff --git a/generated/google-apis-compute_beta/lib/google/apis/compute_beta/service.rb b/generated/google-apis-compute_beta/lib/google/apis/compute_beta/service.rb index d18f6b126b3..aa6980588bc 100644 --- a/generated/google-apis-compute_beta/lib/google/apis/compute_beta/service.rb +++ b/generated/google-apis-compute_beta/lib/google/apis/compute_beta/service.rb @@ -927,6 +927,48 @@ def calendar_mode_advice(project, region, calendar_mode_advice_request_object = execute_or_queue_command(command, &block) end + # Advises on whether extending an existing future reservation is possible + # based on the desired extension end time. If capacity isn't available for + # the entire requested duration, the method recommends the longest possible + # extension. + # @param [String] project + # Project ID for this request. + # @param [String] region + # Name of the region for this request. + # @param [Google::Apis::ComputeBeta::CalendarModeExtensionAdviceRequest] calendar_mode_extension_advice_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [String] user_ip + # Legacy name for parameter that has been superseded by `quotaUser`. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeBeta::CalendarModeExtensionAdviceResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeBeta::CalendarModeExtensionAdviceResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def calendar_mode_extension_advice(project, region, calendar_mode_extension_advice_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/advice/calendarModeExtension', options) + command.request_representation = Google::Apis::ComputeBeta::CalendarModeExtensionAdviceRequest::Representation + command.request_object = calendar_mode_extension_advice_request_object + command.response_representation = Google::Apis::ComputeBeta::CalendarModeExtensionAdviceResponse::Representation + command.response_class = Google::Apis::ComputeBeta::CalendarModeExtensionAdviceResponse + command.params['project'] = project unless project.nil? + command.params['region'] = region unless region.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + # Advice on making real-time decisions (such as choosing zone or # machine types) during deployment to maximize your chances of obtaining # capacity. @@ -50498,6 +50540,49 @@ def get_region_ssl_policy(project, region, ssl_policy, fields: nil, quota_user: execute_or_queue_command(command, &block) end + # Gets the access control policy for a resource. May be empty if no such + # policy or resource exists. + # @param [String] project + # Project ID for this request. + # @param [String] region + # The name of the region for this request. + # @param [String] resource + # Name or id of the resource for this request. + # @param [Fixnum] options_requested_policy_version + # Requested IAM Policy version. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [String] user_ip + # Legacy name for parameter that has been superseded by `quotaUser`. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeBeta::Policy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeBeta::Policy] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_region_ssl_policy_iam_policy(project, region, resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'projects/{project}/regions/{region}/sslPolicies/{resource}/getIamPolicy', options) + command.response_representation = Google::Apis::ComputeBeta::Policy::Representation + command.response_class = Google::Apis::ComputeBeta::Policy + command.params['project'] = project unless project.nil? + command.params['region'] = region unless region.nil? + command.params['resource'] = resource unless resource.nil? + command.query['optionsRequestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + # Creates a new policy in the specified project and region using the data # included in the request. # @param [String] project @@ -50843,6 +50928,49 @@ def patch_region_ssl_policy(project, region, ssl_policy, ssl_policy_object = nil execute_or_queue_command(command, &block) end + # Sets the access control policy on the specified resource. + # Replaces any existing policy. + # @param [String] project + # Project ID for this request. + # @param [String] region + # The name of the region for this request. + # @param [String] resource + # Name or id of the resource for this request. + # @param [Google::Apis::ComputeBeta::RegionSetPolicyRequest] region_set_policy_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [String] user_ip + # Legacy name for parameter that has been superseded by `quotaUser`. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeBeta::Policy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeBeta::Policy] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def set_region_ssl_policy_iam_policy(project, region, resource, region_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/sslPolicies/{resource}/setIamPolicy', options) + command.request_representation = Google::Apis::ComputeBeta::RegionSetPolicyRequest::Representation + command.request_object = region_set_policy_request_object + command.response_representation = Google::Apis::ComputeBeta::Policy::Representation + command.response_class = Google::Apis::ComputeBeta::Policy + command.params['project'] = project unless project.nil? + command.params['region'] = region unless region.nil? + command.params['resource'] = resource unless resource.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + # Returns permissions that a caller has on the specified resource. # @param [String] project # Project ID for this request. @@ -61136,6 +61264,46 @@ def get_ssl_policy(project, ssl_policy, fields: nil, quota_user: nil, user_ip: n execute_or_queue_command(command, &block) end + # Gets the access control policy for a resource. May be empty if no such + # policy or resource exists. + # @param [String] project + # Project ID for this request. + # @param [String] resource + # Name or id of the resource for this request. + # @param [Fixnum] options_requested_policy_version + # Requested IAM Policy version. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [String] user_ip + # Legacy name for parameter that has been superseded by `quotaUser`. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeBeta::Policy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeBeta::Policy] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_ssl_policy_iam_policy(project, resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'projects/{project}/global/sslPolicies/{resource}/getIamPolicy', options) + command.response_representation = Google::Apis::ComputeBeta::Policy::Representation + command.response_class = Google::Apis::ComputeBeta::Policy + command.params['project'] = project unless project.nil? + command.params['resource'] = resource unless resource.nil? + command.query['optionsRequestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + # Returns the specified SSL policy resource. # @param [String] project # Project ID for this request. @@ -61468,6 +61636,46 @@ def patch_ssl_policy(project, ssl_policy, ssl_policy_object = nil, request_id: n execute_or_queue_command(command, &block) end + # Sets the access control policy on the specified resource. + # Replaces any existing policy. + # @param [String] project + # Project ID for this request. + # @param [String] resource + # Name or id of the resource for this request. + # @param [Google::Apis::ComputeBeta::GlobalSetPolicyRequest] global_set_policy_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [String] user_ip + # Legacy name for parameter that has been superseded by `quotaUser`. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeBeta::Policy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeBeta::Policy] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def set_ssl_policy_iam_policy(project, resource, global_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, 'projects/{project}/global/sslPolicies/{resource}/setIamPolicy', options) + command.request_representation = Google::Apis::ComputeBeta::GlobalSetPolicyRequest::Representation + command.request_object = global_set_policy_request_object + command.response_representation = Google::Apis::ComputeBeta::Policy::Representation + command.response_class = Google::Apis::ComputeBeta::Policy + command.params['project'] = project unless project.nil? + command.params['resource'] = resource unless resource.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + # Returns permissions that a caller has on the specified resource. # @param [String] project # Project ID for this request.