From 14f83187ee96f07585de0318dcf0d9e283b0ce03 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Sun, 12 Jul 2026 11:40:40 +0000 Subject: [PATCH] feat: Automated regeneration of compute beta client --- api_names_out.yaml | 63 ++ .../google-apis-compute_beta/CHANGELOG.md | 4 + .../lib/google/apis/compute_beta/classes.rb | 546 ++++++++++++++++-- .../google/apis/compute_beta/gem_version.rb | 4 +- .../apis/compute_beta/representations.rb | 166 +++++- .../lib/google/apis/compute_beta/service.rb | 161 +++++- 6 files changed, 886 insertions(+), 58 deletions(-) diff --git a/api_names_out.yaml b/api_names_out.yaml index 9570f8efdde..d3b9f0b89ad 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -117038,6 +117038,8 @@ "/compute:beta/Commitment/mergeSourceCommitments/merge_source_commitment": merge_source_commitment "/compute:beta/Commitment/name": name "/compute:beta/Commitment/params": params +"/compute:beta/Commitment/persistentDiskResources": persistent_disk_resources +"/compute:beta/Commitment/persistentDiskResources/persistent_disk_resource": persistent_disk_resource "/compute:beta/Commitment/plan": plan "/compute:beta/Commitment/region": region "/compute:beta/Commitment/reservations": reservations @@ -118711,6 +118713,7 @@ "/compute:beta/Instance/lastStartTimestamp": last_start_timestamp "/compute:beta/Instance/lastStopTimestamp": last_stop_timestamp "/compute:beta/Instance/lastSuspendedTimestamp": last_suspended_timestamp +"/compute:beta/Instance/localSsdEncryptionMode": local_ssd_encryption_mode "/compute:beta/Instance/machineType": machine_type "/compute:beta/Instance/metadata": metadata "/compute:beta/Instance/minCpuPlatform": min_cpu_platform @@ -119329,6 +119332,7 @@ "/compute:beta/InstanceProperties/keyRevocationActionType": key_revocation_action_type "/compute:beta/InstanceProperties/labels": labels "/compute:beta/InstanceProperties/labels/label": label +"/compute:beta/InstanceProperties/localSsdEncryptionMode": local_ssd_encryption_mode "/compute:beta/InstanceProperties/machineType": machine_type "/compute:beta/InstanceProperties/metadata": metadata "/compute:beta/InstanceProperties/minCpuPlatform": min_cpu_platform @@ -121668,6 +121672,10 @@ "/compute:beta/PeriodicPartialMaintenanceSchedule/type": type "/compute:beta/PeriodicPartialMaintenanceSchedule/windowEndTime": window_end_time "/compute:beta/PeriodicPartialMaintenanceSchedule/windowStartTime": window_start_time +"/compute:beta/PersistentDiskResourceCommitment": persistent_disk_resource_commitment +"/compute:beta/PersistentDiskResourceCommitment/amount": amount +"/compute:beta/PersistentDiskResourceCommitment/dimensionType": dimension_type +"/compute:beta/PersistentDiskResourceCommitment/productType": product_type "/compute:beta/Policy": policy "/compute:beta/Policy/auditConfigs": audit_configs "/compute:beta/Policy/auditConfigs/audit_config": audit_config @@ -121915,6 +121923,9 @@ "/compute:beta/Reference/referenceType": reference_type "/compute:beta/Reference/referrer": referrer "/compute:beta/Reference/target": target +"/compute:beta/RegexRewrite": regex_rewrite +"/compute:beta/RegexRewrite/pathPattern": path_pattern +"/compute:beta/RegexRewrite/pathSubstitution": path_substitution "/compute:beta/Region": region "/compute:beta/Region/creationTimestamp": creation_timestamp "/compute:beta/Region/deprecated": deprecated @@ -122182,6 +122193,32 @@ "/compute:beta/RegionTargetHttpsProxiesSetSslCertificatesRequest/sslCertificates/ssl_certificate": ssl_certificate "/compute:beta/RegionUrlMapsValidateRequest": region_url_maps_validate_request "/compute:beta/RegionUrlMapsValidateRequest/resource": resource +"/compute:beta/ReliabilityRisk": reliability_risk +"/compute:beta/ReliabilityRisk/creationTimestamp": creation_timestamp +"/compute:beta/ReliabilityRisk/description": description +"/compute:beta/ReliabilityRisk/details": details +"/compute:beta/ReliabilityRisk/id": id +"/compute:beta/ReliabilityRisk/kind": kind +"/compute:beta/ReliabilityRisk/name": name +"/compute:beta/ReliabilityRisk/recommendation": recommendation +"/compute:beta/ReliabilityRisk/selfLink": self_link +"/compute:beta/ReliabilityRisk/selfLinkWithId": self_link_with_id +"/compute:beta/ReliabilityRisksListResponse": reliability_risks_list_response +"/compute:beta/ReliabilityRisksListResponse/etag": etag +"/compute:beta/ReliabilityRisksListResponse/id": id +"/compute:beta/ReliabilityRisksListResponse/items": items +"/compute:beta/ReliabilityRisksListResponse/items/item": item +"/compute:beta/ReliabilityRisksListResponse/nextPageToken": next_page_token +"/compute:beta/ReliabilityRisksListResponse/selfLink": self_link +"/compute:beta/ReliabilityRisksListResponse/unreachables": unreachables +"/compute:beta/ReliabilityRisksListResponse/unreachables/unreachable": unreachable +"/compute:beta/ReliabilityRisksListResponse/warning": warning +"/compute:beta/ReliabilityRisksListResponse/warning/code": code +"/compute:beta/ReliabilityRisksListResponse/warning/data": data +"/compute:beta/ReliabilityRisksListResponse/warning/data/datum": datum +"/compute:beta/ReliabilityRisksListResponse/warning/data/datum/key": key +"/compute:beta/ReliabilityRisksListResponse/warning/data/datum/value": value +"/compute:beta/ReliabilityRisksListResponse/warning/message": message "/compute:beta/RequestMirrorPolicy": request_mirror_policy "/compute:beta/RequestMirrorPolicy/backendService": backend_service "/compute:beta/RequestMirrorPolicy/mirrorPercent": mirror_percent @@ -122617,6 +122654,20 @@ "/compute:beta/ResourceStatusShutdownDetails/requestTimestamp": request_timestamp "/compute:beta/ResourceStatusShutdownDetails/stopState": stop_state "/compute:beta/ResourceStatusShutdownDetails/targetState": target_state +"/compute:beta/RiskDetails": risk_details +"/compute:beta/RiskDetails/duration": duration +"/compute:beta/RiskDetails/globalDnsInsight": global_dns_insight +"/compute:beta/RiskDetails/lastUpdateTimestamp": last_update_timestamp +"/compute:beta/RiskDetails/severity": severity +"/compute:beta/RiskDetails/type": type +"/compute:beta/RiskDetailsGlobalDnsInsight": risk_details_global_dns_insight +"/compute:beta/RiskDetailsGlobalDnsInsight/projectDefaultIsGlobalDns": project_default_is_global_dns +"/compute:beta/RiskDetailsGlobalDnsInsight/queryObservationWindow": query_observation_window +"/compute:beta/RiskDetailsGlobalDnsInsight/riskyQueryCount": risky_query_count +"/compute:beta/RiskDetailsGlobalDnsInsight/totalQueryCount": total_query_count +"/compute:beta/RiskRecommendation": risk_recommendation +"/compute:beta/RiskRecommendation/content": content +"/compute:beta/RiskRecommendation/referenceUrl": reference_url "/compute:beta/Rollout": rollout "/compute:beta/Rollout/cancellationTime": cancellation_time "/compute:beta/Rollout/completionTime": completion_time @@ -124117,6 +124168,7 @@ "/compute:beta/Subnetwork/ipv6AccessType": ipv6_access_type "/compute:beta/Subnetwork/ipv6CidrRange": ipv6_cidr_range "/compute:beta/Subnetwork/ipv6GceEndpoint": ipv6_gce_endpoint +"/compute:beta/Subnetwork/ipv6NetworkTier": ipv6_network_tier "/compute:beta/Subnetwork/kind": kind "/compute:beta/Subnetwork/logConfig": log_config "/compute:beta/Subnetwork/name": name @@ -124803,6 +124855,7 @@ "/compute:beta/UrlRewrite/hostRewrite": host_rewrite "/compute:beta/UrlRewrite/pathPrefixRewrite": path_prefix_rewrite "/compute:beta/UrlRewrite/pathTemplateRewrite": path_template_rewrite +"/compute:beta/UrlRewrite/regexRewrite": regex_rewrite "/compute:beta/UsableSubnetwork": usable_subnetwork "/compute:beta/UsableSubnetwork/externalIpv6Prefix": external_ipv6_prefix "/compute:beta/UsableSubnetwork/internalIpv6Prefix": internal_ipv6_prefix @@ -129440,6 +129493,16 @@ "/compute:beta/compute.regions.list/pageToken": page_token "/compute:beta/compute.regions.list/project": project "/compute:beta/compute.regions.list/returnPartialSuccess": return_partial_success +"/compute:beta/compute.reliabilityRisks.get": get_reliability_risk +"/compute:beta/compute.reliabilityRisks.get/project": project +"/compute:beta/compute.reliabilityRisks.get/reliabilityRisk": reliability_risk +"/compute:beta/compute.reliabilityRisks.list": list_reliability_risks +"/compute:beta/compute.reliabilityRisks.list/filter": filter +"/compute:beta/compute.reliabilityRisks.list/maxResults": max_results +"/compute:beta/compute.reliabilityRisks.list/orderBy": order_by +"/compute:beta/compute.reliabilityRisks.list/pageToken": page_token +"/compute:beta/compute.reliabilityRisks.list/project": project +"/compute:beta/compute.reliabilityRisks.list/returnPartialSuccess": return_partial_success "/compute:beta/compute.reservationBlocks.get": get_reservation_block "/compute:beta/compute.reservationBlocks.get/project": project "/compute:beta/compute.reservationBlocks.get/reservation": reservation diff --git a/generated/google-apis-compute_beta/CHANGELOG.md b/generated/google-apis-compute_beta/CHANGELOG.md index 13c31474e89..1283d7d4df0 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.142.0 (2026-07-12) + +* Regenerated from discovery document revision 20260629 + ### v0.141.0 (2026-06-21) * Regenerated from discovery document revision 20260612 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 f45f019d834..77eb09bcbea 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 @@ -750,21 +750,30 @@ class Address # @return [Fixnum] attr_accessor :id - # Reference to the source of external IPv4 addresses, - # like a PublicDelegatedPrefix (PDP) for BYOIP. - # The PDP must support enhanced IPv4 allocations. - # Use one of the following formats to specify a PDP when reserving an - # external IPv4 address using BYOIP. + # Reference to the source of IP addresses. + # It supports the following cases: # # - - # Full resource URL, as inhttps://www.googleapis.com/compute/v1/projects/ - # projectId/regions/region/publicDelegatedPrefixes/pdp-name + # Case 1: PublicDelegatedPrefix (PDP) for BYOIP external IPv4 + # addresses. The PDP must support enhanced IPv4 allocations. # - - # Partial URL, as in - # + # Case 2: Internal Range for global internal addresses. + # Use one of the following formats to specify the resource: + # For a Public Delegated Prefix: # + # - + # Full resource URL:https://www.googleapis.com/compute/v1/projects/projectId/ + # regions/region/publicDelegatedPrefixes/pdp + # - Partial URL: # - projects/projectId/regions/region/publicDelegatedPrefixes/pdp-name # - regions/region/publicDelegatedPrefixes/pdp-name + # + # For an Internal Range: + # + # - Full URL:https://networkconnectivity.googleapis.com/v1/projects/project/ + # locations/global/internalRanges/internal-range + # - Partial URL:projects/project/locations/global/internalRanges/internal- + # range # Corresponds to the JSON property `ipCollection` # @return [String] attr_accessor :ip_collection @@ -8370,22 +8379,25 @@ def update!(**args) class CapacityHistoryResponse include Google::Apis::Core::Hashable - # + # Output only. The location (region or zone) for which the capacity history is + # returned. + # It is returned as a URL - For example,https://www.googleapis.com/compute/v1/ + # projects/project/zones/zone. # Corresponds to the JSON property `location` # @return [String] attr_accessor :location - # + # The machine type for which the capacity history is returned. # Corresponds to the JSON property `machineType` # @return [String] attr_accessor :machine_type - # + # The preemption history for the requested machine type and location. # Corresponds to the JSON property `preemptionHistory` # @return [Array] attr_accessor :preemption_history - # + # The price history for the requested machine type and location. # Corresponds to the JSON property `priceHistory` # @return [Array] attr_accessor :price_history @@ -8403,7 +8415,7 @@ def update!(**args) end end - # + # A record of Spot VM preemption history. class CapacityHistoryResponsePreemptionRecord include Google::Apis::Core::Hashable @@ -8416,7 +8428,10 @@ class CapacityHistoryResponsePreemptionRecord # @return [Google::Apis::ComputeBeta::Interval] attr_accessor :interval - # + # The preemption rate during the interval, representing the fraction of + # Spot VMs that were preempted. Range: 0.0 to 1.0. Preemption rate is + # calculated as (total preempted Spots) / (total Spots that stopped + # running). # Corresponds to the JSON property `preemptionRate` # @return [Float] attr_accessor :preemption_rate @@ -8432,7 +8447,7 @@ def update!(**args) end end - # + # A record of price history. class CapacityHistoryResponsePriceRecord include Google::Apis::Core::Hashable @@ -8634,6 +8649,13 @@ class Commitment # @return [Google::Apis::ComputeBeta::CommitmentParams] attr_accessor :params + # Optional. Used when category is PERSISTENT_DISK. + # Each entry in the list represents a commitment to a specific Persistent + # Disk product type and dimension. + # Corresponds to the JSON property `persistentDiskResources` + # @return [Array] + attr_accessor :persistent_disk_resources + # The minimum time duration that you commit to purchasing resources. # The plan that you choose determines the preset term length of the # commitment (which is 1 year or 3 years) and affects the discount rate that @@ -8746,6 +8768,7 @@ def update!(**args) @merge_source_commitments = args[:merge_source_commitments] if args.key?(:merge_source_commitments) @name = args[:name] if args.key?(:name) @params = args[:params] if args.key?(:params) + @persistent_disk_resources = args[:persistent_disk_resources] if args.key?(:persistent_disk_resources) @plan = args[:plan] if args.key?(:plan) @region = args[:region] if args.key?(:region) @reservations = args[:reservations] if args.key?(:reservations) @@ -14130,7 +14153,9 @@ class FirewallPolicyRule # The Action to perform when the client connection triggers the rule. # Valid actions for firewall rules are: "allow", "deny", - # "apply_security_profile_group" and "goto_next". + # "apply_security_profile_group" and "goto_next" ( + # "apply_security_profile_group" can be specified only for global + # network firewall policies or hierarchical firewall policies). # Valid actions for packet mirroring rules are: "mirror", "do_not_mirror" # and "goto_next". # Corresponds to the JSON property `action` @@ -14199,12 +14224,13 @@ class FirewallPolicyRule # @return [Fixnum] attr_accessor :rule_tuple_count - # A fully-qualified URL of a SecurityProfile resource instance. + # A fully-qualified URL of a SecurityProfileGroup resource instance. # Example: # https://networksecurity.googleapis.com/v1/projects/`project`/locations/` # location`/securityProfileGroups/my-security-profile-group # Must be specified if action is one of 'apply_security_profile_group' or - # 'mirror'. Cannot be specified for other actions. + # 'mirror'. Cannot be specified for other actions. Can be specified only + # for global network firewall policies or hierarchical firewall policies. # Corresponds to the JSON property `securityProfileGroup` # @return [String] attr_accessor :security_profile_group @@ -23187,6 +23213,12 @@ class Instance # @return [String] attr_accessor :last_suspended_timestamp + # Specifies which method should be used for encrypting the + # Local SSDs attached to the VM. + # Corresponds to the JSON property `localSsdEncryptionMode` + # @return [String] + attr_accessor :local_ssd_encryption_mode + # Full or partial URL of the machine type resource to use for this instance, # in the format:zones/zone/machineTypes/machine-type. This is provided by the # client @@ -23420,6 +23452,7 @@ def update!(**args) @last_start_timestamp = args[:last_start_timestamp] if args.key?(:last_start_timestamp) @last_stop_timestamp = args[:last_stop_timestamp] if args.key?(:last_stop_timestamp) @last_suspended_timestamp = args[:last_suspended_timestamp] if args.key?(:last_suspended_timestamp) + @local_ssd_encryption_mode = args[:local_ssd_encryption_mode] if args.key?(:local_ssd_encryption_mode) @machine_type = args[:machine_type] if args.key?(:machine_type) @metadata = args[:metadata] if args.key?(:metadata) @min_cpu_platform = args[:min_cpu_platform] if args.key?(:min_cpu_platform) @@ -28316,6 +28349,12 @@ class InstanceProperties # @return [Hash] attr_accessor :labels + # Specifies which method should be used for encrypting the + # Local SSDs attached to the VM. + # Corresponds to the JSON property `localSsdEncryptionMode` + # @return [String] + attr_accessor :local_ssd_encryption_mode + # The machine type to use for instances that are created from these # properties. # This field only accepts a machine type name, for example `n2-standard-4`. @@ -28441,6 +28480,7 @@ def update!(**args) @guest_accelerators = args[:guest_accelerators] if args.key?(:guest_accelerators) @key_revocation_action_type = args[:key_revocation_action_type] if args.key?(:key_revocation_action_type) @labels = args[:labels] if args.key?(:labels) + @local_ssd_encryption_mode = args[:local_ssd_encryption_mode] if args.key?(:local_ssd_encryption_mode) @machine_type = args[:machine_type] if args.key?(:machine_type) @metadata = args[:metadata] if args.key?(:metadata) @min_cpu_platform = args[:min_cpu_platform] if args.key?(:min_cpu_platform) @@ -37001,15 +37041,13 @@ class ManagedInstance # @return [Google::Apis::ComputeBeta::ManagedInstancePropertiesFromFlexibilityPolicy] attr_accessor :properties_from_flexibility_policy - # Output only. [Output Only] Information about the termination timestamp of the - # instance, - # if applicable. + # Output only. Information about the termination timestamp of the instance, if + # applicable. # Corresponds to the JSON property `scheduling` # @return [Google::Apis::ComputeBeta::ManagedInstanceScheduling] attr_accessor :scheduling - # Output only. [Output Only] Specifies the graceful shutdown details if the - # instance is in + # Output only. Specifies the graceful shutdown details if the instance is in # `PENDING_STOP` state or there is a programmed stop scheduled. # Corresponds to the JSON property `shutdownDetails` # @return [Google::Apis::ComputeBeta::ManagedInstanceShutdownDetails] @@ -37285,16 +37323,17 @@ def update!(**args) class ManagedInstanceScheduling include Google::Apis::Core::Hashable - # Output only. [Output Only] The timestamp at which the underlying instance will - # be + # Output only. The timestamp at which the underlying instance will be # triggered for graceful shutdown if it is configured. This is in RFC3339 text # format. # Corresponds to the JSON property `gracefulShutdownTimestamp` # @return [String] attr_accessor :graceful_shutdown_timestamp - # Output only. [Output Only] The timestamp at which the managed instance will be - # terminated. This is in RFC3339 text format. + # Output only. The timestamp at which the managed instance will be terminated. + # This is + # in RFC3339 text + # format. # Corresponds to the JSON property `terminationTimestamp` # @return [String] attr_accessor :termination_timestamp @@ -37322,9 +37361,10 @@ class ManagedInstanceShutdownDetails # @return [Google::Apis::ComputeBeta::Duration] attr_accessor :max_duration - # Output only. [Output Only] Past timestamp indicating the beginning of ` - # PENDING_STOP` - # state of instance in RFC3339 text format. + # Output only. Past timestamp indicating the beginning of `PENDING_STOP` state + # of + # instance in RFC3339 + # text format. # Corresponds to the JSON property `requestTimestamp` # @return [String] attr_accessor :request_timestamp @@ -38612,14 +38652,16 @@ class NetworkAttachment # @return [String] attr_accessor :network - # Projects that are allowed to connect to this network attachment. - # The project can be specified using its id or number. + # Projects or service class ids that are allowed to connect to this network + # attachment. The project can be specified using its id or number. Service + # class id can be specified as "serviceclasses/`service_class_id`". # Corresponds to the JSON property `producerAcceptLists` # @return [Array] attr_accessor :producer_accept_lists - # Projects that are not allowed to connect to this network attachment. - # The project can be specified using its id or number. + # Projects or service class ids that are not allowed to connect to this + # network attachment. The project can be specified using its id or number. + # Service class id can be specified as "serviceclasses/`service_class_id`". # Corresponds to the JSON property `producerRejectLists` # @return [Array] attr_accessor :producer_reject_lists @@ -47402,6 +47444,38 @@ def update!(**args) end end + # Commitment for a particular persistent disk resource. + class PersistentDiskResourceCommitment + include Google::Apis::Core::Hashable + + # Required. The amount of the resource to commit to, in GiB. + # Corresponds to the JSON property `amount` + # @return [Fixnum] + attr_accessor :amount + + # The specific dimension of the product for this amount. + # Corresponds to the JSON property `dimensionType` + # @return [String] + attr_accessor :dimension_type + + # The PD product being committed to. All entries in a + # Commitment.persistent_disk_resources list must have the same product_type. + # Corresponds to the JSON property `productType` + # @return [String] + attr_accessor :product_type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @amount = args[:amount] if args.key?(:amount) + @dimension_type = args[:dimension_type] if args.key?(:dimension_type) + @product_type = args[:product_type] if args.key?(:product_type) + end + end + # An Identity and Access Management (IAM) policy, which specifies access # controls for Google Cloud resources. # A `Policy` is a collection of `bindings`. A `binding` binds one or more @@ -49421,6 +49495,55 @@ def update!(**args) end end + # The spec for modifying the path using a regular expression. + class RegexRewrite + include Google::Apis::Core::Hashable + + # The regular expression used to match against the URL path. + # It uses RE2 syntax with the following constraints: + # + # + # - Any single character operators + # - Groups are allowed to have only submatch operator inside + # - Groups are allowed only without any char repetition, e.g. + # .* + # - Any char repetition, e.g. .*, is + # only allowed to be used in a single regex together with: + # + # + # - Empty string operators + # - Other repetitions + # - Ranges + # - Repetitions of ranges + # + # + # - Ranges are only allowed to have: + # + # + # - Character range + # - Digits range + # - Symbols listed in characters allowed for ranges + # Corresponds to the JSON property `pathPattern` + # @return [String] + attr_accessor :path_pattern + + # Required when path pattern is specified. Used to rewrite matching parts of + # the path. + # Corresponds to the JSON property `pathSubstitution` + # @return [String] + attr_accessor :path_substitution + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @path_pattern = args[:path_pattern] if args.key?(:path_pattern) + @path_substitution = args[:path_substitution] if args.key?(:path_substitution) + end + end + # Represents a Region resource. # A region is a geographical area where a resource is located. For more # information, readRegions @@ -51680,6 +51803,210 @@ def update!(**args) end end + # Represents a ReliabilityRisk resource. + class ReliabilityRisk + include Google::Apis::Core::Hashable + + # Output only. [Output Only] Creation timestamp in RFC3339 + # text format. + # Corresponds to the JSON property `creationTimestamp` + # @return [String] + attr_accessor :creation_timestamp + + # An optional textual description of the resource; provided when the + # resource is created. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # Detailed insights and metrics about a detected reliability risk. + # Corresponds to the JSON property `details` + # @return [Google::Apis::ComputeBeta::RiskDetails] + attr_accessor :details + + # [Output Only] The unique identifier for the resource. This identifier is + # defined by the server. + # Corresponds to the JSON property `id` + # @return [Fixnum] + attr_accessor :id + + # Output only. [Output Only] Type of resource. Always compute#reliabilityRisk + # for reliability risks. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Name of the resource. The name must be 1-63 characters long and + # comply with RFC1035. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Recommendation for mitigating a reliability risk, including a reference URL. + # Corresponds to the JSON property `recommendation` + # @return [Google::Apis::ComputeBeta::RiskRecommendation] + attr_accessor :recommendation + + # Output only. [Output Only] Server-defined URL for the resource. + # Corresponds to the JSON property `selfLink` + # @return [String] + attr_accessor :self_link + + # Output only. [Output Only] Server-defined URL for this resource with the + # resource id. + # Corresponds to the JSON property `selfLinkWithId` + # @return [String] + attr_accessor :self_link_with_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) + @description = args[:description] if args.key?(:description) + @details = args[:details] if args.key?(:details) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @recommendation = args[:recommendation] if args.key?(:recommendation) + @self_link = args[:self_link] if args.key?(:self_link) + @self_link_with_id = args[:self_link_with_id] if args.key?(:self_link_with_id) + end + end + + # Response message for the List method of ReliabilityRisksService. + class ReliabilityRisksListResponse + include Google::Apis::Core::Hashable + + # + # Corresponds to the JSON property `etag` + # @return [String] + attr_accessor :etag + + # [Output Only] Unique identifier for the resource; defined by the server. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # A list of ReliabilityRisk resources. + # Corresponds to the JSON property `items` + # @return [Array] + attr_accessor :items + + # [Output Only] This token allows you to get the next page of results for + # list requests. If the number of results is larger thanmaxResults, use the + # nextPageToken as a value for + # the query parameter pageToken in the next list request. + # Subsequent list requests will have their own nextPageToken to + # continue paging through the results. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # Output only. [Output Only] Server-defined URL for this resource. + # Corresponds to the JSON property `selfLink` + # @return [String] + attr_accessor :self_link + + # Output only. [Output Only] Unreachable resources. + # end_interface: MixerListResponseWithEtagBuilder + # Corresponds to the JSON property `unreachables` + # @return [Array] + attr_accessor :unreachables + + # [Output Only] Informational warning message. + # Corresponds to the JSON property `warning` + # @return [Google::Apis::ComputeBeta::ReliabilityRisksListResponse::Warning] + attr_accessor :warning + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @etag = args[:etag] if args.key?(:etag) + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) + @unreachables = args[:unreachables] if args.key?(:unreachables) + @warning = args[:warning] if args.key?(:warning) + end + + # [Output Only] Informational warning message. + class Warning + include Google::Apis::Core::Hashable + + # [Output Only] A warning code, if applicable. For example, Compute + # Engine returns NO_RESULTS_ON_PAGE if there + # are no results in the response. + # Corresponds to the JSON property `code` + # @return [String] + attr_accessor :code + + # [Output Only] Metadata about this warning in key: + # value format. For example: + # "data": [ + # ` + # "key": "scope", + # "value": "zones/us-east1-d" + # ` + # Corresponds to the JSON property `data` + # @return [Array] + attr_accessor :data + + # [Output Only] A human-readable description of the warning code. + # Corresponds to the JSON property `message` + # @return [String] + attr_accessor :message + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @code = args[:code] if args.key?(:code) + @data = args[:data] if args.key?(:data) + @message = args[:message] if args.key?(:message) + end + + # + class Datum + include Google::Apis::Core::Hashable + + # [Output Only] A key that provides more detail on the warning being + # returned. For example, for warnings where there are no results in a list + # request for a particular zone, this key might be scope and + # the key value might be the zone name. Other examples might be a key + # indicating a deprecated resource and a suggested replacement, or a + # warning about invalid network settings (for example, if an instance + # attempts to perform IP forwarding but is not enabled for IP forwarding). + # Corresponds to the JSON property `key` + # @return [String] + attr_accessor :key + + # [Output Only] A warning data value corresponding to the key. + # Corresponds to the JSON property `value` + # @return [String] + attr_accessor :value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @key = args[:key] if args.key?(:key) + @value = args[:value] if args.key?(:value) + end + end + end + end + # A policy that specifies how requests intended for the route's backends # are shadowed to a separate mirrored backend service. The load balancer # doesn't wait for responses from the shadow service. Before sending traffic @@ -52146,11 +52473,6 @@ def update!(**args) class ReservationBlock include Google::Apis::Core::Hashable - # Health information for the reservation block. - # Corresponds to the JSON property `blockHealthInfo` - # @return [Google::Apis::ComputeBeta::ReservationBlockHealthInfo] - attr_accessor :block_health_info - # Output only. [Output Only] The number of resources that are allocated in this # reservation block. # Corresponds to the JSON property `count` @@ -52162,6 +52484,11 @@ class ReservationBlock # @return [String] attr_accessor :creation_timestamp + # Health information for the reservation block. + # Corresponds to the JSON property `healthInfo` + # @return [Google::Apis::ComputeBeta::ReservationBlockHealthInfo] + attr_accessor :health_info + # Output only. [Output Only] The unique identifier for the resource. This # identifier is # defined by the server. @@ -52250,9 +52577,9 @@ def initialize(**args) # Update properties of this object def update!(**args) - @block_health_info = args[:block_health_info] if args.key?(:block_health_info) @count = args[:count] if args.key?(:count) @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) + @health_info = args[:health_info] if args.key?(:health_info) @id = args[:id] if args.key?(:id) @in_use_count = args[:in_use_count] if args.key?(:in_use_count) @in_use_host_count = args[:in_use_host_count] if args.key?(:in_use_host_count) @@ -53018,6 +53345,11 @@ class ReservationSubBlock # @return [String] attr_accessor :creation_timestamp + # Health information for the reservation subBlock. + # Corresponds to the JSON property `healthInfo` + # @return [Google::Apis::ComputeBeta::ReservationSubBlockHealthInfo] + attr_accessor :health_info + # Output only. [Output Only] The unique identifier for the resource. This # identifier is # defined by the server. @@ -53080,11 +53412,6 @@ class ReservationSubBlock # @return [String] attr_accessor :status - # Health information for the reservation subBlock. - # Corresponds to the JSON property `subBlockHealthInfo` - # @return [Google::Apis::ComputeBeta::ReservationSubBlockHealthInfo] - attr_accessor :sub_block_health_info - # Output only. [Output Only] Zone in which the reservation subBlock resides. # Corresponds to the JSON property `zone` # @return [String] @@ -53099,6 +53426,7 @@ def update!(**args) @accelerator_topologies_info = args[:accelerator_topologies_info] if args.key?(:accelerator_topologies_info) @count = args[:count] if args.key?(:count) @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) + @health_info = args[:health_info] if args.key?(:health_info) @id = args[:id] if args.key?(:id) @in_use_count = args[:in_use_count] if args.key?(:in_use_count) @in_use_host_count = args[:in_use_host_count] if args.key?(:in_use_host_count) @@ -53109,7 +53437,6 @@ def update!(**args) @self_link = args[:self_link] if args.key?(:self_link) @self_link_with_id = args[:self_link_with_id] if args.key?(:self_link_with_id) @status = args[:status] if args.key?(:status) - @sub_block_health_info = args[:sub_block_health_info] if args.key?(:sub_block_health_info) @zone = args[:zone] if args.key?(:zone) end end @@ -54935,6 +55262,113 @@ def update!(**args) end end + # Detailed insights and metrics about a detected reliability risk. + class RiskDetails + include Google::Apis::Core::Hashable + + # The duration of the risk since it was detected. + # Corresponds to the JSON property `duration` + # @return [String] + attr_accessor :duration + + # Detailed insights for a global DNS reliability risk. + # Corresponds to the JSON property `globalDnsInsight` + # @return [Google::Apis::ComputeBeta::RiskDetailsGlobalDnsInsight] + attr_accessor :global_dns_insight + + # The last time the risk was updated. + # Corresponds to the JSON property `lastUpdateTimestamp` + # @return [String] + attr_accessor :last_update_timestamp + + # The severity of the risk. + # Corresponds to the JSON property `severity` + # @return [String] + attr_accessor :severity + + # The type of risk. + # Corresponds to the JSON property `type` + # @return [String] + attr_accessor :type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @duration = args[:duration] if args.key?(:duration) + @global_dns_insight = args[:global_dns_insight] if args.key?(:global_dns_insight) + @last_update_timestamp = args[:last_update_timestamp] if args.key?(:last_update_timestamp) + @severity = args[:severity] if args.key?(:severity) + @type = args[:type] if args.key?(:type) + end + end + + # Detailed insights for a global DNS reliability risk. + class RiskDetailsGlobalDnsInsight + include Google::Apis::Core::Hashable + + # Indicates whether the project's default DNS setting is global DNS. + # Corresponds to the JSON property `projectDefaultIsGlobalDns` + # @return [Boolean] + attr_accessor :project_default_is_global_dns + alias_method :project_default_is_global_dns?, :project_default_is_global_dns + + # The observation window for the query counts. + # Corresponds to the JSON property `queryObservationWindow` + # @return [String] + attr_accessor :query_observation_window + + # The number of queries that are risky. This is always less than or + # equal to total_query_count. + # Corresponds to the JSON property `riskyQueryCount` + # @return [Fixnum] + attr_accessor :risky_query_count + + # The total number of queries in the observation window. + # Corresponds to the JSON property `totalQueryCount` + # @return [Fixnum] + attr_accessor :total_query_count + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @project_default_is_global_dns = args[:project_default_is_global_dns] if args.key?(:project_default_is_global_dns) + @query_observation_window = args[:query_observation_window] if args.key?(:query_observation_window) + @risky_query_count = args[:risky_query_count] if args.key?(:risky_query_count) + @total_query_count = args[:total_query_count] if args.key?(:total_query_count) + end + end + + # Recommendation for mitigating a reliability risk, including a reference URL. + class RiskRecommendation + include Google::Apis::Core::Hashable + + # Mitigation guide for the risk. + # Corresponds to the JSON property `content` + # @return [String] + attr_accessor :content + + # URL referencing a more detailed mitigation guide. + # Corresponds to the JSON property `referenceUrl` + # @return [String] + attr_accessor :reference_url + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @content = args[:content] if args.key?(:content) + @reference_url = args[:reference_url] if args.key?(:reference_url) + end + end + # Rollout resource. # A Rollout is a specific instance of a RolloutPlan. It represents a single # execution of a strategy to roll out a specific resource. It also provides @@ -65040,8 +65474,7 @@ def update!(**args) class SslPolicyReference include Google::Apis::Core::Hashable - # URL of the SSL policy resource. Set this to empty string to clear any - # existing SSL policy associated with the target proxy resource. + # # Corresponds to the JSON property `sslPolicy` # @return [String] attr_accessor :ssl_policy @@ -66770,6 +67203,14 @@ class Subnetwork # @return [String] attr_accessor :ipv6_gce_endpoint + # Specifies the network tier for EXTERNAL IPv6. Can only be set when + # ipv6_access_type is EXTERNAL. Defaults to project defaultNetworkTier if not + # specified during the creation of the subnetwork. This field is IMMUTABLE + # once set with EXTERNAL IPv6. + # Corresponds to the JSON property `ipv6NetworkTier` + # @return [String] + attr_accessor :ipv6_network_tier + # Output only. [Output Only] Type of the resource. Always compute#subnetwork # for Subnetwork resources. # Corresponds to the JSON property `kind` @@ -66924,6 +67365,7 @@ def update!(**args) @ipv6_access_type = args[:ipv6_access_type] if args.key?(:ipv6_access_type) @ipv6_cidr_range = args[:ipv6_cidr_range] if args.key?(:ipv6_cidr_range) @ipv6_gce_endpoint = args[:ipv6_gce_endpoint] if args.key?(:ipv6_gce_endpoint) + @ipv6_network_tier = args[:ipv6_network_tier] if args.key?(:ipv6_network_tier) @kind = args[:kind] if args.key?(:kind) @log_config = args[:log_config] if args.key?(:log_config) @name = args[:name] if args.key?(:name) @@ -72798,6 +73240,11 @@ class UrlRewrite # @return [String] attr_accessor :path_template_rewrite + # The spec for modifying the path using a regular expression. + # Corresponds to the JSON property `regexRewrite` + # @return [Google::Apis::ComputeBeta::RegexRewrite] + attr_accessor :regex_rewrite + def initialize(**args) update!(**args) end @@ -72807,6 +73254,7 @@ def update!(**args) @host_rewrite = args[:host_rewrite] if args.key?(:host_rewrite) @path_prefix_rewrite = args[:path_prefix_rewrite] if args.key?(:path_prefix_rewrite) @path_template_rewrite = args[:path_template_rewrite] if args.key?(:path_template_rewrite) + @regex_rewrite = args[:regex_rewrite] if args.key?(:regex_rewrite) end end 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 9efd7eecbce..1095090de39 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.141.0" + GEM_VERSION = "0.142.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 = "20260612" + REVISION = "20260629" 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 3493da26178..833f8941a0b 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 @@ -5800,6 +5800,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class PersistentDiskResourceCommitment + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Policy class Representation < Google::Apis::Core::JsonRepresentation; end @@ -6052,6 +6058,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class RegexRewrite + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Region class Representation < Google::Apis::Core::JsonRepresentation; end @@ -6436,6 +6448,30 @@ class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class ReliabilityRisk + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ReliabilityRisksListResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + class Warning + class Representation < Google::Apis::Core::JsonRepresentation; end + + class Datum + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + include Google::Apis::Core::JsonObjectSupport + end + + include Google::Apis::Core::JsonObjectSupport + end + class RequestMirrorPolicy class Representation < Google::Apis::Core::JsonRepresentation; end @@ -6904,6 +6940,24 @@ class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class RiskDetails + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class RiskDetailsGlobalDnsInsight + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class RiskRecommendation + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Rollout class Representation < Google::Apis::Core::JsonRepresentation; end @@ -11493,6 +11547,8 @@ class Representation < Google::Apis::Core::JsonRepresentation property :name, as: 'name' property :params, as: 'params', class: Google::Apis::ComputeBeta::CommitmentParams, decorator: Google::Apis::ComputeBeta::CommitmentParams::Representation + collection :persistent_disk_resources, as: 'persistentDiskResources', class: Google::Apis::ComputeBeta::PersistentDiskResourceCommitment, decorator: Google::Apis::ComputeBeta::PersistentDiskResourceCommitment::Representation + property :plan, as: 'plan' property :region, as: 'region' collection :reservations, as: 'reservations', class: Google::Apis::ComputeBeta::Reservation, decorator: Google::Apis::ComputeBeta::Reservation::Representation @@ -14663,6 +14719,7 @@ class Representation < Google::Apis::Core::JsonRepresentation property :last_start_timestamp, as: 'lastStartTimestamp' property :last_stop_timestamp, as: 'lastStopTimestamp' property :last_suspended_timestamp, as: 'lastSuspendedTimestamp' + property :local_ssd_encryption_mode, as: 'localSsdEncryptionMode' property :machine_type, as: 'machineType' property :metadata, as: 'metadata', class: Google::Apis::ComputeBeta::Metadata, decorator: Google::Apis::ComputeBeta::Metadata::Representation @@ -15945,6 +16002,7 @@ class Representation < Google::Apis::Core::JsonRepresentation property :key_revocation_action_type, as: 'keyRevocationActionType' hash :labels, as: 'labels' + property :local_ssd_encryption_mode, as: 'localSsdEncryptionMode' property :machine_type, as: 'machineType' property :metadata, as: 'metadata', class: Google::Apis::ComputeBeta::Metadata, decorator: Google::Apis::ComputeBeta::Metadata::Representation @@ -20496,6 +20554,15 @@ class Representation < Google::Apis::Core::JsonRepresentation end end + class PersistentDiskResourceCommitment + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :amount, :numeric_string => true, as: 'amount' + property :dimension_type, as: 'dimensionType' + property :product_type, as: 'productType' + end + end + class Policy # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -20961,6 +21028,14 @@ class Representation < Google::Apis::Core::JsonRepresentation end end + class RegexRewrite + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :path_pattern, as: 'pathPattern' + property :path_substitution, as: 'pathSubstitution' + end + end + class Region # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -21555,6 +21630,56 @@ class Representation < Google::Apis::Core::JsonRepresentation end end + class ReliabilityRisk + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :creation_timestamp, as: 'creationTimestamp' + property :description, as: 'description' + property :details, as: 'details', class: Google::Apis::ComputeBeta::RiskDetails, decorator: Google::Apis::ComputeBeta::RiskDetails::Representation + + property :id, :numeric_string => true, as: 'id' + property :kind, as: 'kind' + property :name, as: 'name' + property :recommendation, as: 'recommendation', class: Google::Apis::ComputeBeta::RiskRecommendation, decorator: Google::Apis::ComputeBeta::RiskRecommendation::Representation + + property :self_link, as: 'selfLink' + property :self_link_with_id, as: 'selfLinkWithId' + end + end + + class ReliabilityRisksListResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :etag, as: 'etag' + property :id, as: 'id' + collection :items, as: 'items', class: Google::Apis::ComputeBeta::ReliabilityRisk, decorator: Google::Apis::ComputeBeta::ReliabilityRisk::Representation + + property :next_page_token, as: 'nextPageToken' + property :self_link, as: 'selfLink' + collection :unreachables, as: 'unreachables' + property :warning, as: 'warning', class: Google::Apis::ComputeBeta::ReliabilityRisksListResponse::Warning, decorator: Google::Apis::ComputeBeta::ReliabilityRisksListResponse::Warning::Representation + + end + + class Warning + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :code, as: 'code' + collection :data, as: 'data', class: Google::Apis::ComputeBeta::ReliabilityRisksListResponse::Warning::Datum, decorator: Google::Apis::ComputeBeta::ReliabilityRisksListResponse::Warning::Datum::Representation + + property :message, as: 'message' + end + + class Datum + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :key, as: 'key' + property :value, as: 'value' + end + end + end + end + class RequestMirrorPolicy # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -21658,10 +21783,10 @@ class Representation < Google::Apis::Core::JsonRepresentation class ReservationBlock # @private class Representation < Google::Apis::Core::JsonRepresentation - property :block_health_info, as: 'blockHealthInfo', class: Google::Apis::ComputeBeta::ReservationBlockHealthInfo, decorator: Google::Apis::ComputeBeta::ReservationBlockHealthInfo::Representation - property :count, as: 'count' property :creation_timestamp, as: 'creationTimestamp' + property :health_info, as: 'healthInfo', class: Google::Apis::ComputeBeta::ReservationBlockHealthInfo, decorator: Google::Apis::ComputeBeta::ReservationBlockHealthInfo::Representation + property :id, :numeric_string => true, as: 'id' property :in_use_count, as: 'inUseCount' property :in_use_host_count, as: 'inUseHostCount' @@ -21890,6 +22015,8 @@ class Representation < Google::Apis::Core::JsonRepresentation property :count, as: 'count' property :creation_timestamp, as: 'creationTimestamp' + property :health_info, as: 'healthInfo', class: Google::Apis::ComputeBeta::ReservationSubBlockHealthInfo, decorator: Google::Apis::ComputeBeta::ReservationSubBlockHealthInfo::Representation + property :id, :numeric_string => true, as: 'id' property :in_use_count, as: 'inUseCount' property :in_use_host_count, as: 'inUseHostCount' @@ -21902,8 +22029,6 @@ class Representation < Google::Apis::Core::JsonRepresentation property :self_link, as: 'selfLink' property :self_link_with_id, as: 'selfLinkWithId' property :status, as: 'status' - property :sub_block_health_info, as: 'subBlockHealthInfo', class: Google::Apis::ComputeBeta::ReservationSubBlockHealthInfo, decorator: Google::Apis::ComputeBeta::ReservationSubBlockHealthInfo::Representation - property :zone, as: 'zone' end end @@ -22404,6 +22529,36 @@ class Representation < Google::Apis::Core::JsonRepresentation end end + class RiskDetails + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :duration, as: 'duration' + property :global_dns_insight, as: 'globalDnsInsight', class: Google::Apis::ComputeBeta::RiskDetailsGlobalDnsInsight, decorator: Google::Apis::ComputeBeta::RiskDetailsGlobalDnsInsight::Representation + + property :last_update_timestamp, as: 'lastUpdateTimestamp' + property :severity, as: 'severity' + property :type, as: 'type' + end + end + + class RiskDetailsGlobalDnsInsight + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :project_default_is_global_dns, as: 'projectDefaultIsGlobalDns' + property :query_observation_window, as: 'queryObservationWindow' + property :risky_query_count, :numeric_string => true, as: 'riskyQueryCount' + property :total_query_count, :numeric_string => true, as: 'totalQueryCount' + end + end + + class RiskRecommendation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :content, as: 'content' + property :reference_url, as: 'referenceUrl' + end + end + class Rollout # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -25137,6 +25292,7 @@ class Representation < Google::Apis::Core::JsonRepresentation property :ipv6_access_type, as: 'ipv6AccessType' property :ipv6_cidr_range, as: 'ipv6CidrRange' property :ipv6_gce_endpoint, as: 'ipv6GceEndpoint' + property :ipv6_network_tier, as: 'ipv6NetworkTier' property :kind, as: 'kind' property :log_config, as: 'logConfig', class: Google::Apis::ComputeBeta::SubnetworkLogConfig, decorator: Google::Apis::ComputeBeta::SubnetworkLogConfig::Representation @@ -26545,6 +26701,8 @@ class Representation < Google::Apis::Core::JsonRepresentation property :host_rewrite, as: 'hostRewrite' property :path_prefix_rewrite, as: 'pathPrefixRewrite' property :path_template_rewrite, as: 'pathTemplateRewrite' + property :regex_rewrite, as: 'regexRewrite', class: Google::Apis::ComputeBeta::RegexRewrite, decorator: Google::Apis::ComputeBeta::RegexRewrite::Representation + end end 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 8ab80a8bcd7..960c99c9910 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 @@ -3044,7 +3044,10 @@ def list_backend_services(project, filter: nil, max_results: nil, order_by: nil, execute_or_queue_command(command, &block) end - # Retrieves a list of all usable backend services in the specified project. + # Retrieves a list of all usable backend services for Application Load + # Balancers and Proxy Network Load Balancers in the specified project. + # Backend services for external and internal passthrough Network Load + # Balancers are not included in the response. # @param [String] project # Project ID for this request. # @param [String] filter @@ -35826,8 +35829,10 @@ def list_region_backend_services(project, region, filter: nil, max_results: nil, execute_or_queue_command(command, &block) end - # Retrieves a list of all usable backend services in the specified project in - # the given region. + # Retrieves a list of all usable backend services for Application Load + # Balancers and Proxy Network Load Balancers in the specified project in the + # given region. Backend services for external and internal passthrough + # Network Load Balancers are not included in the response. # @param [String] project # Project ID for this request. # @param [String] region @@ -51571,6 +51576,156 @@ def list_regions(project, filter: nil, max_results: nil, order_by: nil, page_tok execute_or_queue_command(command, &block) end + # Returns the specified ReliabilityRisk resource. + # @param [String] project + # Project ID for this request. + # @param [String] reliability_risk + # Name of the ReliabilityRisk resource to return. + # @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::ReliabilityRisk] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeBeta::ReliabilityRisk] + # + # @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_reliability_risk(project, reliability_risk, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'projects/{project}/global/reliabilityRisks/{reliabilityRisk}', options) + command.response_representation = Google::Apis::ComputeBeta::ReliabilityRisk::Representation + command.response_class = Google::Apis::ComputeBeta::ReliabilityRisk + command.params['project'] = project unless project.nil? + command.params['reliabilityRisk'] = reliability_risk unless reliability_risk.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 + + # Retrieves the list of reliabilityRisks available in the specified project. + # @param [String] project + # Project ID for this request. + # @param [String] filter + # A filter expression that filters resources listed in the response. Most + # Compute resources support two types of filter expressions: + # expressions that support regular expressions and expressions that follow + # API improvement proposal AIP-160. + # These two types of filter expressions cannot be mixed in one request. + # If you want to use AIP-160, your expression must specify the field name, an + # operator, and the value that you want to use for filtering. The value + # must be a string, a number, or a boolean. The operator + # must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + # For example, if you are filtering Compute Engine instances, you can + # exclude instances named `example-instance` by specifying + # `name != example-instance`. + # The `:*` comparison can be used to test whether a key has been defined. + # For example, to find all objects with `owner` label use: + # ``` + # labels.owner:* + # ``` + # You can also filter nested fields. For example, you could specify + # `scheduling.automaticRestart = false` to include instances only + # if they are not scheduled for automatic restarts. You can use filtering + # on nested fields to filter based onresource labels. + # To filter on multiple expressions, provide each separate expression within + # parentheses. For example: + # ``` + # (scheduling.automaticRestart = true) + # (cpuPlatform = "Intel Skylake") + # ``` + # By default, each expression is an `AND` expression. However, you + # can include `AND` and `OR` expressions explicitly. + # For example: + # ``` + # (cpuPlatform = "Intel Skylake") OR + # (cpuPlatform = "Intel Broadwell") AND + # (scheduling.automaticRestart = true) + # ``` + # If you want to use a regular expression, use the `eq` (equal) or `ne` + # (not equal) operator against a single un-parenthesized expression with or + # without quotes or against multiple parenthesized expressions. Examples: + # `fieldname eq unquoted literal` + # `fieldname eq 'single quoted literal'` + # `fieldname eq "double quoted literal"` + # `(fieldname1 eq literal) (fieldname2 ne "literal")` + # The literal value is interpreted as a regular expression using GoogleRE2 + # library syntax. + # The literal value must match the entire field. + # For example, to filter for instances that do not end with name "instance", + # you would use `name ne .*instance`. + # You cannot combine constraints on multiple fields using regular + # expressions. + # @param [Fixnum] max_results + # The maximum number of results per page that should be returned. + # If the number of available results is larger than `maxResults`, + # Compute Engine returns a `nextPageToken` that can be used to get + # the next page of results in subsequent list requests. Acceptable values are + # `0` to `500`, inclusive. (Default: `500`) + # @param [String] order_by + # Sorts list results by a certain order. By default, results + # are returned in alphanumerical order based on the resource name. + # You can also sort results in descending order based on the creation + # timestamp using `orderBy="creationTimestamp desc"`. This sorts + # results based on the `creationTimestamp` field in + # reverse chronological order (newest result first). Use this to sort + # resources like operations so that the newest operation is returned first. + # Currently, only sorting by `name` or + # `creationTimestamp desc` is supported. + # @param [String] page_token + # Specifies a page token to use. Set `pageToken` to the + # `nextPageToken` returned by a previous list request to get + # the next page of results. + # @param [Boolean] return_partial_success + # Opt-in for partial success behavior which provides partial results in case + # of failure. The default value is false. + # For example, when partial success behavior is enabled, aggregatedList for a + # single zone scope either returns all resources in the zone or no resources, + # with an error code. + # @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::ReliabilityRisksListResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeBeta::ReliabilityRisksListResponse] + # + # @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 list_reliability_risks(project, 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) + command = make_simple_command(:get, 'projects/{project}/global/reliabilityRisks', options) + command.response_representation = Google::Apis::ComputeBeta::ReliabilityRisksListResponse::Representation + command.response_class = Google::Apis::ComputeBeta::ReliabilityRisksListResponse + command.params['project'] = project unless project.nil? + command.query['filter'] = filter unless filter.nil? + command.query['maxResults'] = max_results unless max_results.nil? + command.query['orderBy'] = order_by unless order_by.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.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 + # Retrieves information about the specified reservation block. # @param [String] project # Project ID for this request.