From c174098b27cad2aa250256f102dbbd754361deeb Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Thu, 10 Dec 2020 02:22:05 -0800 Subject: [PATCH] feat: Automated regeneration of compute alpha client (#1710) This PR was generated using Autosynth. :rainbow:
Log from Synthtool ``` 2020-12-10 02:04:48,128 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/google-api-ruby-client/synth.py. On branch autosynth-compute-alpha nothing to commit, working tree clean 2020-12-10 02:04:48,157 synthtool [DEBUG] > Running: docker run --rm -v/home/kbuilder/.cache/synthtool/google-api-ruby-client:/workspace -v/var/run/docker.sock:/var/run/docker.sock -w /workspace --entrypoint script/synth.rb gcr.io/cloud-devrel-kokoro-resources/yoshi-ruby/autosynth compute alpha DEBUG:synthtool:Running: docker run --rm -v/home/kbuilder/.cache/synthtool/google-api-ruby-client:/workspace -v/var/run/docker.sock:/var/run/docker.sock -w /workspace --entrypoint script/synth.rb gcr.io/cloud-devrel-kokoro-resources/yoshi-ruby/autosynth compute alpha bundle install Don't run Bundler as root. Bundler can ask for sudo if it is needed, and installing your bundle as root will break this application for all non-root users on this machine. The dependency jruby-openssl (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for java. To add those platforms to the bundle, run `bundle lock --add-platform java`. Fetching gem metadata from https://rubygems.org/......... Fetching gem metadata from https://rubygems.org/. Resolving dependencies... Fetching rake 11.3.0 Installing rake 11.3.0 Fetching concurrent-ruby 1.1.7 Installing concurrent-ruby 1.1.7 Fetching i18n 1.8.5 Installing i18n 1.8.5 Fetching minitest 5.14.2 Installing minitest 5.14.2 Fetching thread_safe 0.3.6 Installing thread_safe 0.3.6 Fetching tzinfo 1.2.8 Installing tzinfo 1.2.8 Fetching activesupport 5.0.7.2 Installing activesupport 5.0.7.2 Fetching public_suffix 4.0.6 Installing public_suffix 4.0.6 Fetching addressable 2.7.0 Installing addressable 2.7.0 Fetching ast 2.4.1 Installing ast 2.4.1 Using bundler 2.1.4 Fetching byebug 11.1.3 Installing byebug 11.1.3 with native extensions Fetching coderay 1.1.3 Installing coderay 1.1.3 Fetching json 2.3.1 Installing json 2.3.1 with native extensions Fetching docile 1.3.2 Installing docile 1.3.2 Fetching simplecov-html 0.10.2 Installing simplecov-html 0.10.2 Fetching simplecov 0.16.1 Installing simplecov 0.16.1 Using sync 0.5.0 Fetching tins 1.26.0 Installing tins 1.26.0 Fetching term-ansicolor 1.7.1 Installing term-ansicolor 1.7.1 Fetching thor 0.20.3 Installing thor 0.20.3 Fetching coveralls 0.8.23 Installing coveralls 0.8.23 Fetching crack 0.4.4 Installing crack 0.4.4 Fetching declarative 0.0.20 Installing declarative 0.0.20 Fetching declarative-option 0.1.0 Installing declarative-option 0.1.0 Fetching diff-lcs 1.4.4 Installing diff-lcs 1.4.4 Fetching dotenv 2.7.6 Installing dotenv 2.7.6 Fetching fakefs 0.20.1 Installing fakefs 0.20.1 Fetching multipart-post 2.1.1 Installing multipart-post 2.1.1 Fetching ruby2_keywords 0.0.2 Installing ruby2_keywords 0.0.2 Fetching faraday 1.1.0 Installing faraday 1.1.0 Fetching gems 1.2.0 Installing gems 1.2.0 Fetching github-markup 1.7.0 Installing github-markup 1.7.0 Fetching jwt 2.2.2 Installing jwt 2.2.2 Fetching memoist 0.16.2 Installing memoist 0.16.2 Fetching multi_json 1.15.0 Installing multi_json 1.15.0 Fetching os 0.9.6 Installing os 0.9.6 Fetching signet 0.14.0 Installing signet 0.14.0 Fetching googleauth 0.14.0 Installing googleauth 0.14.0 Fetching httpclient 2.8.3 Installing httpclient 2.8.3 Fetching mini_mime 1.0.2 Installing mini_mime 1.0.2 Fetching uber 0.1.0 Installing uber 0.1.0 Fetching representable 3.0.4 Installing representable 3.0.4 Fetching retriable 3.1.2 Installing retriable 3.1.2 Fetching rexml 3.2.4 Installing rexml 3.2.4 Using google-api-client 0.51.0 from source at `.` Fetching google-id-token 1.4.2 Installing google-id-token 1.4.2 Fetching hashdiff 1.0.1 Installing hashdiff 1.0.1 Fetching mime-types-data 3.2020.1104 Installing mime-types-data 3.2020.1104 Fetching mime-types 3.3.1 Installing mime-types 3.3.1 Fetching multi_xml 0.6.0 Installing multi_xml 0.6.0 Fetching httparty 0.18.1 Installing httparty 0.18.1 Fetching rspec-support 3.10.0 Installing rspec-support 3.10.0 Fetching rspec-core 3.10.0 Installing rspec-core 3.10.0 Fetching rspec-expectations 3.10.0 Installing rspec-expectations 3.10.0 Fetching rspec-mocks 3.10.0 Installing rspec-mocks 3.10.0 Fetching rspec 3.10.0 Installing rspec 3.10.0 Fetching json_spec 1.1.5 Installing json_spec 1.1.5 Fetching launchy 2.5.0 Installing launchy 2.5.0 Fetching little-plugger 1.1.4 Installing little-plugger 1.1.4 Fetching logging 2.3.0 Installing logging 2.3.0 Fetching method_source 1.0.0 Installing method_source 1.0.0 Fetching opencensus 0.5.0 Installing opencensus 0.5.0 Fetching parallel 1.20.1 Installing parallel 1.20.1 Fetching parser 2.7.2.0 Installing parser 2.7.2.0 Fetching powerpack 0.1.3 Installing powerpack 0.1.3 Fetching pry 0.13.1 Installing pry 0.13.1 Fetching pry-byebug 3.9.0 Installing pry-byebug 3.9.0 Fetching yard 0.9.25 Installing yard 0.9.25 Fetching pry-doc 0.13.5 Installing pry-doc 0.13.5 Fetching rainbow 2.2.2 Installing rainbow 2.2.2 with native extensions Fetching redcarpet 3.5.0 Installing redcarpet 3.5.0 with native extensions Fetching redis 3.3.5 Installing redis 3.3.5 Fetching rmail 1.1.4 Installing rmail 1.1.4 Fetching ruby-progressbar 1.10.1 Installing ruby-progressbar 1.10.1 Fetching unicode-display_width 1.7.0 Installing unicode-display_width 1.7.0 Fetching rubocop 0.49.1 Installing rubocop 0.49.1 Fetching webmock 2.3.2 Installing webmock 2.3.2 Bundle complete! 31 Gemfile dependencies, 78 gems now installed. Use `bundle info [gemname]` to see where a bundled gem is installed. Post-install message from i18n: HEADS UP! i18n 1.1 changed fallbacks to exclude default locale. But that may break your application. If you are upgrading your Rails application from an older version of Rails: Please check your Rails app for 'config.i18n.fallbacks = true'. If you're using I18n (>= 1.1.0) and Rails (< 5.2.2), this should be 'config.i18n.fallbacks = [I18n.default_locale]'. If not, fallbacks will be broken in your app by I18n 1.1.x. If you are starting a NEW Rails application, you can ignore this notice. For more info see: https://github.com/svenfuchs/i18n/releases/tag/v1.1.0 Post-install message from httparty: When you HTTParty, you must party hard! echo a | bundle exec bin/generate-api gen generated --api=compute.alpha --names-out=/workspace/api_names_out.yaml Loading compute, version alpha from https://raw.githubusercontent.com/googleapis/discovery-artifact-manager/master/discoveries/compute.alpha.json W, [2020-12-10T10:05:11.261139 #241] WARN -- : Found reserved property 'methods' W, [2020-12-10T10:05:11.261207 #241] WARN -- : Changed to 'methods_prop' conflict google/apis/compute_alpha.rb Wrote metadata to generated/google/apis/compute_alpha/synth.metadata. DEBUG:synthtool:Wrote metadata to generated/google/apis/compute_alpha/synth.metadata. ```
Full log will be available here: https://source.cloud.google.com/results/invocations/a8fbdcba-e058-4e44-89e4-91f358b93532/targets - [ ] To automatically regenerate this PR, check this box. --- api_names_out.yaml | 28 + generated/google/apis/compute_alpha.rb | 2 +- .../google/apis/compute_alpha/classes.rb | 702 +++++++++++------- .../apis/compute_alpha/representations.rb | 95 ++- .../google/apis/compute_alpha/service.rb | 40 +- .../google/apis/compute_alpha/synth.metadata | 2 +- 6 files changed, 563 insertions(+), 306 deletions(-) diff --git a/api_names_out.yaml b/api_names_out.yaml index 022d22a8f..3c1c41168 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -30716,6 +30716,8 @@ "/compute:alpha/HealthStatus/instance": instance "/compute:alpha/HealthStatus/ipAddress": ip_address "/compute:alpha/HealthStatus/port": port +"/compute:alpha/HealthStatus/weight": weight +"/compute:alpha/HealthStatus/weightError": weight_error "/compute:alpha/HealthStatusForNetworkEndpoint": health_status_for_network_endpoint "/compute:alpha/HealthStatusForNetworkEndpoint/backendService": backend_service "/compute:alpha/HealthStatusForNetworkEndpoint/forwardingRule": forwarding_rule @@ -31108,6 +31110,7 @@ "/compute:alpha/Instance/name": name "/compute:alpha/Instance/networkInterfaces": network_interfaces "/compute:alpha/Instance/networkInterfaces/network_interface": network_interface +"/compute:alpha/Instance/networkPerformanceConfig": network_performance_config "/compute:alpha/Instance/postKeyRevocationActionType": post_key_revocation_action_type "/compute:alpha/Instance/preservedStateSizeGb": preserved_state_size_gb "/compute:alpha/Instance/privateIpv6GoogleAccess": private_ipv6_google_access @@ -31494,6 +31497,7 @@ "/compute:alpha/InstanceProperties/minCpuPlatform": min_cpu_platform "/compute:alpha/InstanceProperties/networkInterfaces": network_interfaces "/compute:alpha/InstanceProperties/networkInterfaces/network_interface": network_interface +"/compute:alpha/InstanceProperties/networkPerformanceConfig": network_performance_config "/compute:alpha/InstanceProperties/postKeyRevocationActionType": post_key_revocation_action_type "/compute:alpha/InstanceProperties/privateIpv6GoogleAccess": private_ipv6_google_access "/compute:alpha/InstanceProperties/reservationAffinity": reservation_affinity @@ -32319,6 +32323,7 @@ "/compute:alpha/NetworkInterface/internalIpv6PrefixLength": internal_ipv6_prefix_length "/compute:alpha/NetworkInterface/ipv6AccessConfigs": ipv6_access_configs "/compute:alpha/NetworkInterface/ipv6AccessConfigs/ipv6_access_config": ipv6_access_config +"/compute:alpha/NetworkInterface/ipv6AccessType": ipv6_access_type "/compute:alpha/NetworkInterface/ipv6Address": ipv6_address "/compute:alpha/NetworkInterface/kind": kind "/compute:alpha/NetworkInterface/name": name @@ -32355,6 +32360,9 @@ "/compute:alpha/NetworkPeering/peerMtu": peer_mtu "/compute:alpha/NetworkPeering/state": state "/compute:alpha/NetworkPeering/stateDetails": state_details +"/compute:alpha/NetworkPerformanceConfig": network_performance_config +"/compute:alpha/NetworkPerformanceConfig/externalIpEgressBandwidthTier": external_ip_egress_bandwidth_tier +"/compute:alpha/NetworkPerformanceConfig/totalEgressBandwidthTier": total_egress_bandwidth_tier "/compute:alpha/NetworkRoutingConfig": network_routing_config "/compute:alpha/NetworkRoutingConfig/routingMode": routing_mode "/compute:alpha/NetworksAddPeeringRequest": networks_add_peering_request @@ -32443,6 +32451,7 @@ "/compute:alpha/NodeGroupList/warning/message": message "/compute:alpha/NodeGroupMaintenanceWindow": node_group_maintenance_window "/compute:alpha/NodeGroupMaintenanceWindow/duration": duration +"/compute:alpha/NodeGroupMaintenanceWindow/maintenanceDuration": maintenance_duration "/compute:alpha/NodeGroupMaintenanceWindow/startTime": start_time "/compute:alpha/NodeGroupNode": node_group_node "/compute:alpha/NodeGroupNode/accelerators": accelerators @@ -32988,6 +32997,7 @@ "/compute:alpha/PublicDelegatedPrefix/fingerprint": fingerprint "/compute:alpha/PublicDelegatedPrefix/id": id "/compute:alpha/PublicDelegatedPrefix/ipCidrRange": ip_cidr_range +"/compute:alpha/PublicDelegatedPrefix/isLiveMigration": is_live_migration "/compute:alpha/PublicDelegatedPrefix/kind": kind "/compute:alpha/PublicDelegatedPrefix/name": name "/compute:alpha/PublicDelegatedPrefix/parentPrefix": parent_prefix @@ -33174,6 +33184,7 @@ "/compute:alpha/RegionInstanceGroupManagersDeleteInstancesRequest": region_instance_group_managers_delete_instances_request "/compute:alpha/RegionInstanceGroupManagersDeleteInstancesRequest/instances": instances "/compute:alpha/RegionInstanceGroupManagersDeleteInstancesRequest/instances/instance": instance +"/compute:alpha/RegionInstanceGroupManagersDeleteInstancesRequest/skipInapplicableInstances": skip_inapplicable_instances "/compute:alpha/RegionInstanceGroupManagersListErrorsResponse": region_instance_group_managers_list_errors_response "/compute:alpha/RegionInstanceGroupManagersListErrorsResponse/items": items "/compute:alpha/RegionInstanceGroupManagersListErrorsResponse/items/item": item @@ -33226,6 +33237,8 @@ "/compute:alpha/RegionInstanceGroupsSetNamedPortsRequest/fingerprint": fingerprint "/compute:alpha/RegionInstanceGroupsSetNamedPortsRequest/namedPorts": named_ports "/compute:alpha/RegionInstanceGroupsSetNamedPortsRequest/namedPorts/named_port": named_port +"/compute:alpha/RegionInstantSnapshotsExportRequest": region_instant_snapshots_export_request +"/compute:alpha/RegionInstantSnapshotsExportRequest/exportParams": export_params "/compute:alpha/RegionList": region_list "/compute:alpha/RegionList/id": id "/compute:alpha/RegionList/items": items @@ -34701,8 +34714,14 @@ "/compute:alpha/TargetVpnGatewaysScopedList/warning/data/datum/value": value "/compute:alpha/TargetVpnGatewaysScopedList/warning/message": message "/compute:alpha/TestFailure": test_failure +"/compute:alpha/TestFailure/actualOutputUrl": actual_output_url +"/compute:alpha/TestFailure/actualRedirectResponseCode": actual_redirect_response_code "/compute:alpha/TestFailure/actualService": actual_service +"/compute:alpha/TestFailure/expectedOutputUrl": expected_output_url +"/compute:alpha/TestFailure/expectedRedirectResponseCode": expected_redirect_response_code "/compute:alpha/TestFailure/expectedService": expected_service +"/compute:alpha/TestFailure/headers": headers +"/compute:alpha/TestFailure/headers/header": header "/compute:alpha/TestFailure/host": host "/compute:alpha/TestFailure/path": path "/compute:alpha/TestPermissionsRequest": test_permissions_request @@ -34772,10 +34791,17 @@ "/compute:alpha/UrlMapTest": url_map_test "/compute:alpha/UrlMapTest/backendServiceWeight": backend_service_weight "/compute:alpha/UrlMapTest/description": description +"/compute:alpha/UrlMapTest/expectedOutputUrl": expected_output_url +"/compute:alpha/UrlMapTest/expectedRedirectResponseCode": expected_redirect_response_code "/compute:alpha/UrlMapTest/expectedUrlRedirect": expected_url_redirect +"/compute:alpha/UrlMapTest/headers": headers +"/compute:alpha/UrlMapTest/headers/header": header "/compute:alpha/UrlMapTest/host": host "/compute:alpha/UrlMapTest/path": path "/compute:alpha/UrlMapTest/service": service +"/compute:alpha/UrlMapTestHeader": url_map_test_header +"/compute:alpha/UrlMapTestHeader/name": name +"/compute:alpha/UrlMapTestHeader/value": value "/compute:alpha/UrlMapValidationResult": url_map_validation_result "/compute:alpha/UrlMapValidationResult/loadErrors": load_errors "/compute:alpha/UrlMapValidationResult/loadErrors/load_error": load_error @@ -35072,6 +35098,8 @@ "/compute:alpha/Zone/status": status "/compute:alpha/Zone/supportsPhysicalZoneSeparation": supports_physical_zone_separation "/compute:alpha/Zone/supportsPzs": supports_pzs +"/compute:alpha/ZoneInstantSnapshotsExportRequest": zone_instant_snapshots_export_request +"/compute:alpha/ZoneInstantSnapshotsExportRequest/exportParams": export_params "/compute:alpha/ZoneList": zone_list "/compute:alpha/ZoneList/id": id "/compute:alpha/ZoneList/items": items diff --git a/generated/google/apis/compute_alpha.rb b/generated/google/apis/compute_alpha.rb index 56357496e..111910d10 100644 --- a/generated/google/apis/compute_alpha.rb +++ b/generated/google/apis/compute_alpha.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/compute/docs/reference/latest/ module ComputeAlpha VERSION = 'Alpha' - REVISION = '20201102' + REVISION = '20201122' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/compute_alpha/classes.rb b/generated/google/apis/compute_alpha/classes.rb index 8b75bd52b..e79ce4c8d 100644 --- a/generated/google/apis/compute_alpha/classes.rb +++ b/generated/google/apis/compute_alpha/classes.rb @@ -1857,10 +1857,10 @@ module Google attr_accessor :name # [Output Only] Target recommended MIG size (number of instances) computed by - # autoscaler. Autoscaler calculates recommended MIG size even when autoscaling - # policy mode is different from ON. This field is empty when autoscaler is not - # connected to the existing managed instance group or autoscaler did not - # generate its prediction. + # autoscaler. Autoscaler calculates the recommended MIG size even when the + # autoscaling policy mode is different from ON. This field is empty when + # autoscaler is not connected to an existing managed instance group or + # autoscaler did not generate its prediction. # Corresponds to the JSON property `recommendedSize` # @return [Fixnum] attr_accessor :recommended_size @@ -1905,7 +1905,8 @@ module Google # @return [Array] attr_accessor :status_details - # URL of the managed instance group that this autoscaler will scale. + # URL of the managed instance group that this autoscaler will scale. This field + # is required when creating an autoscaler. # Corresponds to the JSON property `target` # @return [String] attr_accessor :target @@ -2214,7 +2215,7 @@ module Google # - MODE_OFF (WARNING): Autoscaling is turned off. The number of instances in # the group won't change automatically. The autoscaling configuration is # preserved. - # - MODE_ONLY_UP (WARNING): Autoscaling is in the "Autoscale only up" mode. The + # - MODE_ONLY_UP (WARNING): Autoscaling is in the "Autoscale only out" mode. The # autoscaler can add instances but not remove any. # - MORE_THAN_ONE_BACKEND_SERVICE (ERROR): The instance group cannot be # autoscaled because it has more than one backend service attached to it. @@ -2340,11 +2341,10 @@ module Google class AutoscalingPolicy include Google::Apis::Core::Hashable - # The number of seconds that the autoscaler should wait before it starts - # collecting information from a new instance. This prevents the autoscaler from - # collecting information when the instance is initializing, during which the - # collected usage would not be reliable. The default time autoscaler waits is 60 - # seconds. + # The number of seconds that the autoscaler waits before it starts collecting + # information from a new instance. This prevents the autoscaler from collecting + # information when the instance is initializing, during which the collected + # usage would not be reliable. The default time autoscaler waits is 60 seconds. # Virtual machine initialization times might vary because of numerous factors. # We recommend that you test how long an instance may take to initialize. To do # this, create an instance and time the startup process. @@ -2367,15 +2367,15 @@ module Google # @return [Google::Apis::ComputeAlpha::AutoscalingPolicyLoadBalancingUtilization] attr_accessor :load_balancing_utilization - # The maximum number of instances that the autoscaler can scale up to. This is + # The maximum number of instances that the autoscaler can scale out to. This is # required when creating or updating an autoscaler. The maximum number of - # replicas should not be lower than minimal number of replicas. + # replicas must not be lower than minimal number of replicas. # Corresponds to the JSON property `maxNumReplicas` # @return [Fixnum] attr_accessor :max_num_replicas - # The minimum number of replicas that the autoscaler can scale down to. This - # cannot be less than 0. If not provided, autoscaler will choose a default value + # The minimum number of replicas that the autoscaler can scale in to. This + # cannot be less than 0. If not provided, autoscaler chooses a default value # depending on maximum number of instances allowed. # Corresponds to the JSON property `minNumReplicas` # @return [Fixnum] @@ -2386,8 +2386,8 @@ module Google # @return [String] attr_accessor :mode - # Configuration that allows for slower scale down so that even if Autoscaler - # recommends an abrupt scale down of a MIG, it will be throttled as specified by + # Configuration that allows for slower scale in so that even if Autoscaler + # recommends an abrupt scale in of a MIG, it will be throttled as specified by # the parameters below. # Corresponds to the JSON property `scaleDownControl` # @return [Google::Apis::ComputeAlpha::AutoscalingPolicyScaleDownControl] @@ -2401,9 +2401,9 @@ module Google attr_accessor :scale_in_control # Scaling schedules defined for an autoscaler. Multiple schedules can be set on - # an autoscaler and they can overlap. During overlapping periods the greatest - # min_required_replicas of all scaling schedules will be applied. Up to 128 - # scaling schedules are allowed. + # an autoscaler, and they can overlap. During overlapping periods the greatest + # min_required_replicas of all scaling schedules is applied. Up to 128 scaling + # schedules are allowed. # Corresponds to the JSON property `scalingSchedules` # @return [Hash] attr_accessor :scaling_schedules @@ -2442,13 +2442,13 @@ module Google # @return [String] attr_accessor :predictive_method - # The target CPU utilization that the autoscaler should maintain. Must be a - # float value in the range (0, 1]. If not specified, the default is 0.6. - # If the CPU level is below the target utilization, the autoscaler scales down - # the number of instances until it reaches the minimum number of instances you + # The target CPU utilization that the autoscaler maintains. Must be a float + # value in the range (0, 1]. If not specified, the default is 0.6. + # If the CPU level is below the target utilization, the autoscaler scales in the + # number of instances until it reaches the minimum number of instances you # specified or until the average CPU of your instances reaches the target # utilization. - # If the average CPU is above the target utilization, the autoscaler scales up + # If the average CPU is above the target utilization, the autoscaler scales out # until it reaches the maximum number of instances you specified or until the # average utilization reaches the target utilization. # Corresponds to the JSON property `utilizationTarget` @@ -2491,11 +2491,11 @@ module Google # to scale upon. This is called a per-group metric for the purpose of # autoscaling. # If not specified, the type defaults to gce_instance. - # You should provide a filter that is selective enough to pick just one - # TimeSeries for the autoscaled group or for each of the instances (if you are - # using gce_instance resource type). If multiple TimeSeries are returned upon - # the query execution, the autoscaler will sum their respective values to obtain - # its scaling value. + # Try to provide a filter that is selective enough to pick just one TimeSeries + # for the autoscaled group or for each of the instances (if you are using + # gce_instance resource type). If multiple TimeSeries are returned upon the + # query execution, the autoscaler will sum their respective values to obtain its + # scaling value. # Corresponds to the JSON property `filter` # @return [String] attr_accessor :filter @@ -2509,9 +2509,9 @@ module Google # If scaling is based on a per-group metric value that represents the total # amount of work to be done or resource usage, set this value to an amount - # assigned for a single instance of the scaled group. Autoscaler will keep the - # number of instances proportional to the value of this metric, the metric - # itself should not change value due to group resizing. + # assigned for a single instance of the scaled group. Autoscaler keeps the + # number of instances proportional to the value of this metric. The metric + # itself does not change value due to group resizing. # A good metric to use with the target is for example pubsub.googleapis.com/ # subscription/num_undelivered_messages or a custom metric exporting the total # number of requests coming to your instances. @@ -2522,12 +2522,12 @@ module Google # @return [Float] attr_accessor :single_instance_assignment - # The target value of the metric that autoscaler should maintain. This must be a + # The target value of the metric that autoscaler maintains. This must be a # positive value. A utilization metric scales number of virtual machines # handling requests to increase or decrease proportionally to the metric. # For example, a good metric to use as a utilization_target is https://www. # googleapis.com/compute/v1/instance/network/received_bytes_count. The - # autoscaler will work to keep this value constant for each of the instances. + # autoscaler works to keep this value constant for each of the instances. # Corresponds to the JSON property `utilizationTarget` # @return [Float] attr_accessor :utilization_target @@ -2557,7 +2557,7 @@ module Google include Google::Apis::Core::Hashable # Fraction of backend capacity utilization (set in HTTP(S) load balancing - # configuration) that autoscaler should maintain. Must be a positive float value. + # configuration) that the autoscaler maintains. Must be a positive float value. # If not defined, the default is 0.8. # Corresponds to the JSON property `utilizationTarget` # @return [Float] @@ -2573,8 +2573,8 @@ module Google end end - # Configuration that allows for slower scale down so that even if Autoscaler - # recommends an abrupt scale down of a MIG, it will be throttled as specified by + # Configuration that allows for slower scale in so that even if Autoscaler + # recommends an abrupt scale in of a MIG, it will be throttled as specified by # the parameters below. class AutoscalingPolicyScaleDownControl include Google::Apis::Core::Hashable @@ -2584,8 +2584,8 @@ module Google # @return [Google::Apis::ComputeAlpha::FixedOrPercent] attr_accessor :max_scaled_down_replicas - # How long back autoscaling should look when computing recommendations to - # include directives regarding slower scale down, as described above. + # How far back autoscaling looks when computing recommendations to include + # directives regarding slower scale in, as described above. # Corresponds to the JSON property `timeWindowSec` # @return [Fixnum] attr_accessor :time_window_sec @@ -2612,8 +2612,8 @@ module Google # @return [Google::Apis::ComputeAlpha::FixedOrPercent] attr_accessor :max_scaled_in_replicas - # How long back autoscaling should look when computing recommendations to - # include directives regarding slower scale in, as described above. + # How far back autoscaling looks when computing recommendations to include + # directives regarding slower scale in, as described above. # Corresponds to the JSON property `timeWindowSec` # @return [Fixnum] attr_accessor :time_window_sec @@ -2640,41 +2640,40 @@ module Google # @return [String] attr_accessor :description - # A boolean value that specifies if a scaling schedule can influence autoscaler - # recommendations. If set to true, then a scaling schedule has no effect. This - # field is optional and its value is false by default. + # A boolean value that specifies whether a scaling schedule can influence + # autoscaler recommendations. If set to true, then a scaling schedule has no + # effect. This field is optional, and its value is false by default. # Corresponds to the JSON property `disabled` # @return [Boolean] attr_accessor :disabled alias_method :disabled?, :disabled - # The duration of time intervals (in seconds) for which this scaling schedule - # will be running. The minimum allowed value is 300. This field is required. + # The duration of time intervals, in seconds, for which this scaling schedule is + # to run. The minimum allowed value is 300. This field is required. # Corresponds to the JSON property `durationSec` # @return [Fixnum] attr_accessor :duration_sec - # Minimum number of VM instances that autoscaler will recommend in time + # The minimum number of VM instances that the autoscaler will recommend in time # intervals starting according to schedule. This field is required. # Corresponds to the JSON property `minRequiredReplicas` # @return [Fixnum] attr_accessor :min_required_replicas - # The start timestamps of time intervals when this scaling schedule should + # The start timestamps of time intervals when this scaling schedule is to # provide a scaling signal. This field uses the extended cron format (with an - # optional year field). The expression may describe a single timestamp if the - # optional year is set, in which case a scaling schedule will run once. schedule - # is interpreted with respect to time_zone. This field is required. NOTE: these - # timestamps only describe when autoscaler will start providing the scaling - # signal. The VMs will need additional time to become serving. + # optional year field). The expression can describe a single timestamp if the + # optional year is set, in which case the scaling schedule runs once. The + # schedule is interpreted with respect to time_zone. This field is required. + # Note: These timestamps only describe when autoscaler starts providing the + # scaling signal. The VMs need additional time to become serving. # Corresponds to the JSON property `schedule` # @return [String] attr_accessor :schedule - # The time zone to be used when interpreting the schedule. The value of this - # field must be a time zone name from the tz database: http://en.wikipedia.org/ - # wiki/Tz_database. This field will be assigned a default value of ?UTC? if left - # empty. + # The time zone to use when interpreting the schedule. The value of this field + # must be a time zone name from the tz database: http://en.wikipedia.org/wiki/ + # Tz_database. This field is assigned a default value of ?UTC? if left empty. # Corresponds to the JSON property `timeZone` # @return [String] attr_accessor :time_zone @@ -2712,21 +2711,22 @@ module Google # parameters: maxConnections (except for regional managed instance groups), # maxConnectionsPerInstance, or maxConnectionsPerEndpoint. # If the loadBalancingScheme for the backend service is INTERNAL (internal TCP/ - # UDP load balancers), you cannot specify any additional parameters. + # UDP Load Balancers) or EXTERNAL (Network Load Balancing), you cannot specify + # any additional parameters. # # - If the load balancing mode is RATE, the load is spread based on the rate of # HTTP requests per second (RPS). # You can use the RATE balancing mode if the protocol for the backend service is - # HTTP or HTTPS. You must specify exactly one of the following parameters: - # maxRate (except for regional managed instance groups), maxRatePerInstance, or - # maxRatePerEndpoint. + # HTTP, HTTP2, or HTTPS. You must specify exactly one of the following + # parameters: maxRate (except for regional managed instance groups), + # maxRatePerInstance, or maxRatePerEndpoint. # # - If the load balancing mode is UTILIZATION, the load is spread based on the # backend utilization of instances in an instance group. # You can use the UTILIZATION balancing mode if the loadBalancingScheme of the - # backend service is EXTERNAL, INTERNAL_SELF_MANAGED, or INTERNAL_MANAGED and - # the backends are instance groups. There are no restrictions on the backend - # service protocol. + # backend service is EXTERNAL (except Network Load Balancing), + # INTERNAL_SELF_MANAGED, or INTERNAL_MANAGED and the backends are instance + # groups. There are no restrictions on the backend service protocol. # Corresponds to the JSON property `balancingMode` # @return [String] attr_accessor :balancing_mode @@ -2738,7 +2738,8 @@ module Google # available capacity. Valid range is 0.0 and [0.1,1.0]. You cannot configure a # setting larger than 0 and smaller than 0.1. You cannot configure a setting of # 0 when there is only one backend attached to the backend service. - # This cannot be used for internal load balancing. + # This cannot be used for Internal TCP/UDP Load Balancing and Network Load + # Balancing. # Corresponds to the JSON property `capacityScaler` # @return [Float] attr_accessor :capacity_scaler @@ -2760,14 +2761,16 @@ module Google # resource. The type of backend that a backend service supports depends on the # backend service's loadBalancingScheme. # - # - When the loadBalancingScheme for the backend service is EXTERNAL, - # INTERNAL_SELF_MANAGED, or INTERNAL_MANAGED, the backend can be either an - # instance group or a NEG. The backends on the backend service must be either - # all instance groups or all NEGs. You cannot mix instance group and NEG - # backends on the same backend service. - # - When the loadBalancingScheme for the backend service is INTERNAL, the - # backend must be an instance group in the same region as the backend service. - # NEGs are not supported. + # - When the loadBalancingScheme for the backend service is EXTERNAL (except + # Network Load Balancing), INTERNAL_SELF_MANAGED, or INTERNAL_MANAGED , the + # backend can be either an instance group or a NEG. The backends on the backend + # service must be either all instance groups or all NEGs. You cannot mix + # instance group and NEG backends on the same backend service. + # - When the loadBalancingScheme for the backend service is EXTERNAL for Network + # Load Balancing or INTERNAL for Internal TCP/UDP Load Balancing, the backend + # must be an instance group. NEGs are not supported. + # For regional services, the backend must be in the same region as the backend + # service. # You must use the fully-qualified URL (starting with https://www.googleapis.com/ # ) to specify the instance group or NEG. Partial URLs are not supported. # Corresponds to the JSON property `group` @@ -2779,11 +2782,12 @@ module Google # except for regional managed instance groups). If the backend's balancingMode # is UTILIZATION, this is an optional parameter. If the backend's balancingMode # is CONNECTION, and backend is attached to a backend service whose - # loadBalancingScheme is EXTERNAL, you must specify either this parameter, - # maxConnectionsPerInstance, or maxConnectionsPerEndpoint. - # Not available if the backend's balancingMode is RATE. If the - # loadBalancingScheme is INTERNAL, then maxConnections is not supported, even - # though the backend requires a balancing mode of CONNECTION. + # loadBalancingScheme is EXTERNAL (except Network Load Balancing), you must + # specify either this parameter, maxConnectionsPerInstance, or + # maxConnectionsPerEndpoint. + # Not available if the backend's balancingMode is RATE. Cannot be specified for + # Network Load Balancing or Internal TCP/UDP Load Balancing, even though those + # load balancers require a balancing mode of CONNECTION. # Corresponds to the JSON property `maxConnections` # @return [Fixnum] attr_accessor :max_connections @@ -2791,12 +2795,13 @@ module Google # Defines a target maximum number of simultaneous connections for an endpoint of # a NEG. This is multiplied by the number of endpoints in the NEG to implicitly # calculate a maximum number of target maximum simultaneous connections for the - # NEG. If the backend's balancingMode is CONNECTION, and the backend is attached - # to a backend service whose loadBalancingScheme is EXTERNAL, you must specify - # either this parameter, maxConnections, or maxConnectionsPerInstance. - # Not available if the backend's balancingMode is RATE. Internal TCP/UDP load - # balancing does not support setting maxConnectionsPerEndpoint even though its - # backends require a balancing mode of CONNECTION. + # NEG. If the backend's balancingMode is CONNECTION, and backend is attached to + # a backend service whose loadBalancingScheme is EXTERNAL (except Network Load + # Balancing), you must specify either this parameter, maxConnections, or + # maxConnectionsPerInstance. + # Not available if the backend's balancingMode is RATE. Cannot be specified for + # Network Load Balancing or Internal TCP/UDP Load Balancing, even though those + # load balancers require a balancing mode of CONNECTION. # Corresponds to the JSON property `maxConnectionsPerEndpoint` # @return [Fixnum] attr_accessor :max_connections_per_endpoint @@ -2807,11 +2812,11 @@ module Google # connections for the whole instance group. If the backend's balancingMode is # UTILIZATION, this is an optional parameter. If the backend's balancingMode is # CONNECTION, and backend is attached to a backend service whose - # loadBalancingScheme is EXTERNAL, you must specify either this parameter, - # maxConnections, or maxConnectionsPerEndpoint. - # Not available if the backend's balancingMode is RATE. Internal TCP/UDP load - # balancing does not support setting maxConnectionsPerInstance even though its - # backends require a balancing mode of CONNECTION. + # loadBalancingScheme is EXTERNAL (except Network Load Balancing), you must + # specify either this parameter, maxConnections, or maxConnectionsPerEndpoint. + # Not available if the backend's balancingMode is RATE. Cannot be specified for + # Network Load Balancing or Internal TCP/UDP Load Balancing, even though those + # load balancers require a balancing mode of CONNECTION. # Corresponds to the JSON property `maxConnectionsPerInstance` # @return [Fixnum] attr_accessor :max_connections_per_instance @@ -3380,13 +3385,14 @@ module Google attr_accessor :enable_cdn alias_method :enable_cdn?, :enable_cdn - # Applicable only to Failover for Internal TCP/UDP Load Balancing. On failover - # or failback, this field indicates whether connection draining will be honored. - # GCP has a fixed connection draining timeout of 10 minutes. A setting of true - # terminates existing TCP connections to the active pool during failover and - # failback, immediately draining traffic. A setting of false allows existing TCP - # connections to persist, even on VMs no longer in the active pool, for up to - # the duration of the connection draining timeout (10 minutes). + # Applicable only to Failover for Internal TCP/UDP Load Balancing and Network + # Load Balancing. On failover or failback, this field indicates whether + # connection draining will be honored. GCP has a fixed connection draining + # timeout of 10 minutes. A setting of true terminates existing TCP connections + # to the active pool during failover and failback, immediately draining traffic. + # A setting of false allows existing TCP connections to persist, even on VMs no + # longer in the active pool, for up to the duration of the connection draining + # timeout (10 minutes). # Corresponds to the JSON property `failoverPolicy` # @return [Google::Apis::ComputeAlpha::BackendServiceFailoverPolicy] attr_accessor :failover_policy @@ -3431,11 +3437,11 @@ module Google # @return [String] attr_accessor :kind - # Specifies the load balancer type. Choose EXTERNAL for load balancers that - # receive traffic from external clients. Choose INTERNAL for Internal TCP/UDP - # Load Balancing. Choose INTERNAL_MANAGED for Internal HTTP(S) Load Balancing. - # Choose INTERNAL_SELF_MANAGED for Traffic Director. A backend service created - # for one type of load balancing cannot be used with another. For more + # Specifies the load balancer type. Choose EXTERNAL for external HTTP(S), SSL + # Proxy, TCP Proxy and Network Load Balancing. Choose INTERNAL for Internal TCP/ + # UDP Load Balancing. Choose INTERNAL_MANAGED for Internal HTTP(S) Load + # Balancing. INTERNAL_SELF_MANAGED for Traffic Director. A backend service + # created for one type of load balancer cannot be used with another. For more # information, refer to Choosing a load balancer. # Corresponds to the JSON property `loadBalancingScheme` # @return [String] @@ -3490,7 +3496,7 @@ module Google attr_accessor :name # The URL of the network to which this backend service belongs. This field can - # only be spcified when the load balancing scheme is set to INTERNAL. + # only be specified when the load balancing scheme is set to INTERNAL. # Corresponds to the JSON property `network` # @return [String] attr_accessor :network @@ -3511,11 +3517,12 @@ module Google # A named port on a backend instance group representing the port for # communication to the backend VMs in that group. Required when the - # loadBalancingScheme is EXTERNAL, INTERNAL_MANAGED, or INTERNAL_SELF_MANAGED - # and the backends are instance groups. The named port must be defined on each - # backend instance group. This parameter has no meaning if the backends are NEGs. - # Must be omitted when the loadBalancingScheme is INTERNAL (Internal TCP/UDP - # Load Balancing). + # loadBalancingScheme is EXTERNAL (except Network Load Balancing), + # INTERNAL_MANAGED, or INTERNAL_SELF_MANAGED and the backends are instance + # groups. The named port must be defined on each backend instance group. This + # parameter has no meaning if the backends are NEGs. + # Backend services for Internal TCP/UDP Load Balancing and Network Load + # Balancing require you omit port_name. # Corresponds to the JSON property `portName` # @return [String] attr_accessor :port_name @@ -3560,11 +3567,12 @@ module Google # @return [String] attr_accessor :self_link_with_id - # Type of session affinity to use. The default is NONE. Session affinity is not - # applicable if the --protocol is UDP. - # When the loadBalancingScheme is EXTERNAL, possible values are NONE, CLIENT_IP, - # or GENERATED_COOKIE. You can use GENERATED_COOKIE if the protocol is HTTP or - # HTTPS. + # Type of session affinity to use. The default is NONE. + # When the loadBalancingScheme is EXTERNAL: * For Network Load Balancing, the + # possible values are NONE, CLIENT_IP, CLIENT_IP_PROTO, or CLIENT_IP_PORT_PROTO. + # * For all other load balancers that use loadBalancingScheme=EXTERNAL, the + # possible values are NONE, CLIENT_IP, or GENERATED_COOKIE. * You can use + # GENERATED_COOKIE if the protocol is HTTP, HTTP2, or HTTPS. # When the loadBalancingScheme is INTERNAL, possible values are NONE, CLIENT_IP, # CLIENT_IP_PROTO, or CLIENT_IP_PORT_PROTO. # When the loadBalancingScheme is INTERNAL_SELF_MANAGED, or INTERNAL_MANAGED, @@ -3989,13 +3997,14 @@ module Google end end - # Applicable only to Failover for Internal TCP/UDP Load Balancing. On failover - # or failback, this field indicates whether connection draining will be honored. - # GCP has a fixed connection draining timeout of 10 minutes. A setting of true - # terminates existing TCP connections to the active pool during failover and - # failback, immediately draining traffic. A setting of false allows existing TCP - # connections to persist, even on VMs no longer in the active pool, for up to - # the duration of the connection draining timeout (10 minutes). + # Applicable only to Failover for Internal TCP/UDP Load Balancing and Network + # Load Balancing. On failover or failback, this field indicates whether + # connection draining will be honored. GCP has a fixed connection draining + # timeout of 10 minutes. A setting of true terminates existing TCP connections + # to the active pool during failover and failback, immediately draining traffic. + # A setting of false allows existing TCP connections to persist, even on VMs no + # longer in the active pool, for up to the duration of the connection draining + # timeout (10 minutes). class BackendServiceFailoverPolicy include Google::Apis::Core::Hashable @@ -4006,22 +4015,21 @@ module Google attr_accessor :disable_connection_drain_on_failover alias_method :disable_connection_drain_on_failover?, :disable_connection_drain_on_failover - # Applicable only to Failover for Internal TCP/UDP Load Balancing. If set to - # true, connections to the load balancer are dropped when all primary and all - # backup backend VMs are unhealthy. If set to false, connections are distributed - # among all primary VMs when all primary and all backup backend VMs are - # unhealthy. - # The default is false. + # Applicable only to Failover for Internal TCP/UDP Load Balancing and Network + # Load Balancing, If set to true, connections to the load balancer are dropped + # when all primary and all backup backend VMs are unhealthy.If set to false, + # connections are distributed among all primary VMs when all primary and all + # backup backend VMs are unhealthy. The default is false. # Corresponds to the JSON property `dropTrafficIfUnhealthy` # @return [Boolean] attr_accessor :drop_traffic_if_unhealthy alias_method :drop_traffic_if_unhealthy?, :drop_traffic_if_unhealthy - # Applicable only to Failover for Internal TCP/UDP Load Balancing. The value of - # the field must be in the range [0, 1]. If the value is 0, the load balancer - # performs a failover when the number of healthy primary VMs equals zero. For - # all other values, the load balancer performs a failover when the total number - # of healthy primary VMs is less than this ratio. + # Applicable only to Failover for Internal TCP/UDP Load Balancing and Network + # Load Balancing. The value of the field must be in the range [0, 1]. If the + # value is 0, the load balancer performs a failover when the number of healthy + # primary VMs equals zero. For all other values, the load balancer performs a + # failover when the total number of healthy primary VMs is less than this ratio. # Corresponds to the JSON property `failoverRatio` # @return [Float] attr_accessor :failover_ratio @@ -4807,16 +4815,17 @@ module Google # @return [Fixnum] attr_accessor :min_count - # Instance name pattern. Name pattern includes a parameter to specify the auto- - # incrementing portion of the name, in a form of consecutive hash (#) chars, - # each of them corresponding to one digit of an instance name. For example: - # name_pattern = inst-####-prod will generate names starting with inst-0001-prod, - # inst-0002-prod, up to required count. If there exist instances matching the - # name pattern in the same project and zone, the initial instance number will be - # equal to the maximum existing instance number + 1 (e.g. if there exists an - # instance with name inst-0030-prod, then the generated names will start with - # inst-0031-prod). The name pattern placeholder #...# can contain up to 18 - # characters. + # The string pattern used for the names of the VMs. Either name_pattern or + # predefined_names must be set. The pattern should contain one consecutive + # sequence of placeholder hash characters (#) with each character corresponding + # to one digit of the generated instance name. Example: name_pattern of inst-#### + # will generate instance names like inst-0001, inst-0002, ... . If there + # already exist instance(s) whose names match the name pattern in the same + # project and zone, then the generated instance numbers will start after the + # biggest existing number. For example, if there exists an instance with name + # inst-0050, then instance names generated using the pattern inst-#### will be + # inst-0051, inst-0052, etc. The name pattern placeholder #...# can contain up + # to 18 characters. # Corresponds to the JSON property `namePattern` # @return [String] attr_accessor :name_pattern @@ -7294,13 +7303,9 @@ module Google class DistributionPolicy include Google::Apis::Core::Hashable - # The shape to which the group converges either proactively or on resize events ( - # depending on the value set in updatePolicy.instanceRedistributionType). The - # possible values are EVEN and ANY. For EVEN the group attempts to preserve a - # balanced number of instances across zones. For ANY the group creates new - # instances where resources are available to fulfill the request; as a result, - # instances may be distributed unevenly across zones in this mode. The default - # value is EVEN. + # The distribution shape to which the group converges either proactively or on + # resize events (depending on the value set in updatePolicy. + # instanceRedistributionType). # Corresponds to the JSON property `targetShape` # @return [String] attr_accessor :target_shape @@ -8802,9 +8807,11 @@ module Google # assigned. Methods for specifying an IP address: # * IPv4 dotted decimal, as in `100.1.2.3` * Full URL, as in https://www. # googleapis.com/compute/v1/projects/project_id/regions/region/addresses/address- - # name * Partial URL or by name, as in: * projects/project_id/regions/region/ - # addresses/address-name * regions/region/addresses/address-name * global/ - # addresses/address-name * address-name + # name * Partial URL or by name, as in: + # - projects/project_id/regions/region/addresses/address-name + # - regions/region/addresses/address-name + # - global/addresses/address-name + # - address-name # The loadBalancingScheme and the forwarding rule's target determine the type of # IP address that you can use. For detailed information, refer to [IP address # specifications](/load-balancing/docs/forwarding-rule-concepts# @@ -8817,16 +8824,19 @@ module Google # @return [String] attr_accessor :ip_address - # The IP protocol to which this rule applies. For protocol forwarding, valid - # options are TCP, UDP, ESP, AH, SCTP or ICMP. - # For Internal TCP/UDP Load Balancing, the load balancing scheme is INTERNAL, - # and one of TCP or UDP are valid. For Traffic Director, the load balancing - # scheme is INTERNAL_SELF_MANAGED, and only TCPis valid. For Internal HTTP(S) - # Load Balancing, the load balancing scheme is INTERNAL_MANAGED, and only TCP is - # valid. For HTTP(S), SSL Proxy, and TCP Proxy Load Balancing, the load - # balancing scheme is EXTERNAL and only TCP is valid. For Network TCP/UDP Load - # Balancing, the load balancing scheme is EXTERNAL, and one of TCP or UDP is - # valid. + # The IP protocol to which this rule applies. + # For protocol forwarding, valid options are TCP, UDP, ESP, AH, SCTP and ICMP. + # The valid IP protocols are different for different load balancing products: + # - Internal TCP/UDP Load Balancing: The load balancing scheme is INTERNAL, and + # one of TCP, UDP or ALL is valid. + # - Traffic Director: The load balancing scheme is INTERNAL_SELF_MANAGED, and + # only TCP is valid. + # - Internal HTTP(S) Load Balancing: The load balancing scheme is + # INTERNAL_MANAGED, and only TCP is valid. + # - HTTP(S), SSL Proxy, and TCP Proxy Load Balancing: The load balancing scheme + # is EXTERNAL and only TCP is valid. + # - Network Load Balancing: The load balancing scheme is EXTERNAL, and one of + # TCP or UDP is valid. # Corresponds to the JSON property `IPProtocol` # @return [String] attr_accessor :ip_protocol @@ -8851,9 +8861,9 @@ module Google attr_accessor :allow_global_access alias_method :allow_global_access?, :allow_global_access - # This field is only used for INTERNAL load balancing. - # For internal load balancing, this field identifies the BackendService resource - # to receive the matched traffic. + # Identifies the backend service to which the forwarding rule sends traffic. + # Required for Internal TCP/UDP Load Balancing and Network Load Balancing; must + # be omitted for all other load balancer types. # Corresponds to the JSON property `backendService` # @return [String] attr_accessor :backend_service @@ -8935,13 +8945,12 @@ module Google # - EXTERNAL is used for: # - Classic Cloud VPN gateways # - Protocol forwarding to VMs from an external IP address - # - The following load balancers: HTTP(S), SSL Proxy, TCP Proxy, and Network TCP/ - # UDP + # - HTTP(S), SSL Proxy, TCP Proxy, and Network Load Balancing # - INTERNAL is used for: # - Protocol forwarding to VMs from an internal IP address - # - Internal TCP/UDP load balancers + # - Internal TCP/UDP Load Balancing # - INTERNAL_MANAGED is used for: - # - Internal HTTP(S) load balancers + # - Internal HTTP(S) Load Balancing # - INTERNAL_SELF_MANAGED is used for: # - Traffic Director # For more information about forwarding rules, refer to Forwarding rule concepts. @@ -8980,9 +8989,9 @@ module Google attr_accessor :name # This field is not used for external load balancing. - # For internal load balancing, this field identifies the network that the load - # balanced IP should belong to for this Forwarding Rule. If this field is not - # specified, the default network will be used. + # For Internal TCP/UDP Load Balancing, this field identifies the network that + # the load balanced IP should belong to for this Forwarding Rule. If this field + # is not specified, the default network will be used. # For Private Service Connect forwarding rules that forward traffic to Google # APIs, a network must be provided. # Corresponds to the JSON property `network` @@ -8999,19 +9008,17 @@ module Google # @return [String] attr_accessor :network_tier - # When the load balancing scheme is EXTERNAL, INTERNAL_SELF_MANAGED and - # INTERNAL_MANAGED, you can specify a port_range. Use with a forwarding rule - # that points to a target proxy or a target pool. Do not use with a forwarding - # rule that points to a backend service. This field is used along with the - # target field for TargetHttpProxy, TargetHttpsProxy, TargetSslProxy, - # TargetTcpProxy, TargetGrpcProxy, TargetVpnGateway, TargetPool, TargetInstance. - # Applicable only when IPProtocol is TCP, UDP, or SCTP, only packets addressed - # to ports in the specified range will be forwarded to target. Forwarding rules - # with the same [IPAddress, IPProtocol] pair must have disjoint port ranges. + # This field can be used only if: * Load balancing scheme is one of EXTERNAL, + # INTERNAL_SELF_MANAGED or INTERNAL_MANAGED, and * IPProtocol is one of TCP, UDP, + # or SCTP. + # Packets addressed to ports in the specified range will be forwarded to target + # or backend_service. You can only use one of ports, port_range, or allPorts. + # The three are mutually exclusive. Forwarding rules with the same [IPAddress, + # IPProtocol] pair must have disjoint port ranges. # Some types of forwarding target have constraints on the acceptable ports: # - TargetHttpProxy: 80, 8080 # - TargetHttpsProxy: 443 - # - TargetGrpcProxy: Any ports + # - TargetGrpcProxy: no constraints # - TargetTcpProxy: 25, 43, 110, 143, 195, 443, 465, 587, 700, 993, 995, 1688, # 1883, 5222 # - TargetSslProxy: 25, 43, 110, 143, 195, 443, 465, 587, 700, 993, 995, 1688, @@ -9021,16 +9028,17 @@ module Google # @return [String] attr_accessor :port_range - # This field is used along with the backend_service field for internal load - # balancing. - # When the load balancing scheme is INTERNAL, a list of ports can be configured, - # for example, ['80'], ['8000','9000']. Only packets addressed to these ports - # are forwarded to the backends configured with the forwarding rule. - # If the forwarding rule's loadBalancingScheme is INTERNAL, you can specify - # ports in one of the following ways: - # * A list of up to five ports, which can be non-contiguous * Keyword ALL, which - # causes the forwarding rule to forward traffic on any port of the forwarding - # rule's protocol. + # The ports field is only supported when the forwarding rule references a + # backend_service directly. Supported load balancing products are Internal TCP/ + # UDP Load Balancing and Network Load Balancing. Only packets addressed to the + # specified list of ports are forwarded to backends. + # You can only use one of ports and port_range, or allPorts. The three are + # mutually exclusive. + # You can specify a list of up to five ports, which can be non-contiguous. + # For Internal TCP/UDP Load Balancing, if you specify allPorts, you should not + # specify ports. + # For more information, see [Port specifications](/load-balancing/docs/ + # forwarding-rule-concepts#port_specifications). # Corresponds to the JSON property `ports` # @return [Array] attr_accessor :ports @@ -9055,6 +9063,8 @@ module Google # Service Directory resources to register this forwarding rule with. Currently, # only supports a single Service Directory resource. + # It is only supported for Internal TCP/UDP Load Balancing and Internal HTTP(S) + # Load Balancing. # Corresponds to the JSON property `serviceDirectoryRegistrations` # @return [Array] attr_accessor :service_directory_registrations @@ -10956,6 +10966,16 @@ module Google # @return [Fixnum] attr_accessor :port + # + # Corresponds to the JSON property `weight` + # @return [String] + attr_accessor :weight + + # + # Corresponds to the JSON property `weightError` + # @return [String] + attr_accessor :weight_error + def initialize(**args) update!(**args) end @@ -10967,6 +10987,8 @@ module Google @instance = args[:instance] if args.key?(:instance) @ip_address = args[:ip_address] if args.key?(:ip_address) @port = args[:port] if args.key?(:port) + @weight = args[:weight] if args.key?(:weight) + @weight_error = args[:weight_error] if args.key?(:weight_error) end end @@ -13202,6 +13224,11 @@ module Google # @return [Array] attr_accessor :network_interfaces + # + # Corresponds to the JSON property `networkPerformanceConfig` + # @return [Google::Apis::ComputeAlpha::NetworkPerformanceConfig] + attr_accessor :network_performance_config + # PostKeyRevocationActionType of the instance. # Corresponds to the JSON property `postKeyRevocationActionType` # @return [String] @@ -13371,6 +13398,7 @@ module Google @min_cpu_platform = args[:min_cpu_platform] if args.key?(:min_cpu_platform) @name = args[:name] if args.key?(:name) @network_interfaces = args[:network_interfaces] if args.key?(:network_interfaces) + @network_performance_config = args[:network_performance_config] if args.key?(:network_performance_config) @post_key_revocation_action_type = args[:post_key_revocation_action_type] if args.key?(:post_key_revocation_action_type) @preserved_state_size_gb = args[:preserved_state_size_gb] if args.key?(:preserved_state_size_gb) @private_ipv6_google_access = args[:private_ipv6_google_access] if args.key?(:private_ipv6_google_access) @@ -13994,15 +14022,6 @@ module Google # @return [Array] attr_accessor :named_ports - # [Deprecated] This field is deprecated and will be removed. Prefer using the - # status field instead. Please contact cloud-updater-feedback@google.com to - # leave feedback if your workload relies on this field. [Output Only] The list - # of instance actions and the number of instances in this managed instance group - # that are pending for each of those actions. - # Corresponds to the JSON property `pendingActions` - # @return [Google::Apis::ComputeAlpha::InstanceGroupManagerPendingActionsSummary] - attr_accessor :pending_actions - # [Output Only] The URL of the region where the managed instance group resides ( # for regional resources). # Corresponds to the JSON property `region` @@ -14095,7 +14114,6 @@ module Google @kind = args[:kind] if args.key?(:kind) @name = args[:name] if args.key?(:name) @named_ports = args[:named_ports] if args.key?(:named_ports) - @pending_actions = args[:pending_actions] if args.key?(:pending_actions) @region = args[:region] if args.key?(:region) @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) @@ -14476,55 +14494,6 @@ module Google end end - # - class InstanceGroupManagerPendingActionsSummary - include Google::Apis::Core::Hashable - - # [Deprecated] This field is deprecated and will be removed. Prefer using the - # status field instead. Please contact cloud-updater-feedback@google.com to - # leave feedback if your workload relies on this field. [Output Only] The number - # of instances in the managed instance group that are pending to be created. - # Corresponds to the JSON property `creating` - # @return [Fixnum] - attr_accessor :creating - - # [Deprecated] This field is deprecated and will be removed. Prefer using the - # status field instead. Please contact cloud-updater-feedback@google.com to - # leave feedback if your workload relies on this field. [Output Only] The number - # of instances in the managed instance group that are pending to be deleted. - # Corresponds to the JSON property `deleting` - # @return [Fixnum] - attr_accessor :deleting - - # [Deprecated] This field is deprecated and will be removed. Prefer using the - # status field instead. Please contact cloud-updater-feedback@google.com to - # leave feedback if your workload relies on this field. [Output Only] The number - # of instances in the managed instance group that are pending to be recreated. - # Corresponds to the JSON property `recreating` - # @return [Fixnum] - attr_accessor :recreating - - # [Deprecated] This field is deprecated and will be removed. Prefer using the - # status field instead. Please contact cloud-updater-feedback@google.com to - # leave feedback if your workload relies on this field. [Output Only] The number - # of instances in the managed instance group that are pending to be restarted. - # Corresponds to the JSON property `restarting` - # @return [Fixnum] - attr_accessor :restarting - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @creating = args[:creating] if args.key?(:creating) - @deleting = args[:deleting] if args.key?(:deleting) - @recreating = args[:recreating] if args.key?(:recreating) - @restarting = args[:restarting] if args.key?(:restarting) - end - end - # class InstanceGroupManagerStatus include Google::Apis::Core::Hashable @@ -16098,6 +16067,11 @@ module Google # @return [Array] attr_accessor :network_interfaces + # + # Corresponds to the JSON property `networkPerformanceConfig` + # @return [Google::Apis::ComputeAlpha::NetworkPerformanceConfig] + attr_accessor :network_performance_config + # PostKeyRevocationActionType of the instance. # Corresponds to the JSON property `postKeyRevocationActionType` # @return [String] @@ -16166,6 +16140,7 @@ module Google @metadata = args[:metadata] if args.key?(:metadata) @min_cpu_platform = args[:min_cpu_platform] if args.key?(:min_cpu_platform) @network_interfaces = args[:network_interfaces] if args.key?(:network_interfaces) + @network_performance_config = args[:network_performance_config] if args.key?(:network_performance_config) @post_key_revocation_action_type = args[:post_key_revocation_action_type] if args.key?(:post_key_revocation_action_type) @private_ipv6_google_access = args[:private_ipv6_google_access] if args.key?(:private_ipv6_google_access) @reservation_affinity = args[:reservation_affinity] if args.key?(:reservation_affinity) @@ -21205,8 +21180,9 @@ module Google # Represents a collection of network endpoints. # A network endpoint group (NEG) defines how a set of endpoints should be # reached, whether they are reachable, and where they are located. For more - # information about using NEGs, see Setting up internet NEGs, Setting up zonal - # NEGs, or Setting up serverless NEGs. (== resource_for `$api_version`. + # information about using NEGs, see Setting up external HTTP(S) Load Balancing + # with internet NEGs, Setting up zonal NEGs, or Setting up external HTTP(S) + # Load Balancing with serverless NEGs. (== resource_for `$api_version`. # networkEndpointGroups ==) (== resource_for `$api_version`. # globalNetworkEndpointGroups ==) (== resource_for `$api_version`. # regionNetworkEndpointGroups ==) @@ -22135,6 +22111,13 @@ module Google # @return [Array] attr_accessor :ipv6_access_configs + # [Output Only] One of EXTERNAL, INTERNAL to indicate whether the IP can be + # accessed from the Internet. This field is always inherited from its subnetwork. + # Valid only if stackType is IPV4_IPV6. + # Corresponds to the JSON property `ipv6AccessType` + # @return [String] + attr_accessor :ipv6_access_type + # [Output Only] An IPv6 internal network address for this network interface. # Corresponds to the JSON property `ipv6Address` # @return [String] @@ -22217,6 +22200,7 @@ module Google @fingerprint = args[:fingerprint] if args.key?(:fingerprint) @internal_ipv6_prefix_length = args[:internal_ipv6_prefix_length] if args.key?(:internal_ipv6_prefix_length) @ipv6_access_configs = args[:ipv6_access_configs] if args.key?(:ipv6_access_configs) + @ipv6_access_type = args[:ipv6_access_type] if args.key?(:ipv6_access_type) @ipv6_address = args[:ipv6_address] if args.key?(:ipv6_address) @kind = args[:kind] if args.key?(:kind) @name = args[:name] if args.key?(:name) @@ -22464,6 +22448,31 @@ module Google end end + # + class NetworkPerformanceConfig + include Google::Apis::Core::Hashable + + # + # Corresponds to the JSON property `externalIpEgressBandwidthTier` + # @return [String] + attr_accessor :external_ip_egress_bandwidth_tier + + # + # Corresponds to the JSON property `totalEgressBandwidthTier` + # @return [String] + attr_accessor :total_egress_bandwidth_tier + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @external_ip_egress_bandwidth_tier = args[:external_ip_egress_bandwidth_tier] if args.key?(:external_ip_egress_bandwidth_tier) + @total_egress_bandwidth_tier = args[:total_egress_bandwidth_tier] if args.key?(:total_egress_bandwidth_tier) + end + end + # A routing configuration attached to a network resource. The message includes # the list of routers associated with the network, and a flag indicating the # type of routing behavior to enforce network-wide. @@ -23102,6 +23111,14 @@ module Google # @return [String] attr_accessor :duration + # A Duration represents a fixed-length span of time represented as a count of + # seconds and fractions of seconds at nanosecond resolution. It is independent + # of any calendar and concepts like "day" or "month". Range is approximately 10, + # 000 years. + # Corresponds to the JSON property `maintenanceDuration` + # @return [Google::Apis::ComputeAlpha::Duration] + attr_accessor :maintenance_duration + # Start time of the window. This must be in UTC format that resolves to one of # 00:00, 04:00, 08:00, 12:00, 16:00, or 20:00. For example, both 13:00-5 and 08: # 00 are valid. @@ -23116,6 +23133,7 @@ module Google # Update properties of this object def update!(**args) @duration = args[:duration] if args.key?(:duration) + @maintenance_duration = args[:maintenance_duration] if args.key?(:maintenance_duration) @start_time = args[:start_time] if args.key?(:start_time) end end @@ -27270,6 +27288,12 @@ module Google # @return [String] attr_accessor :ip_cidr_range + # If true, the prefix will be live migrated. + # Corresponds to the JSON property `isLiveMigration` + # @return [Boolean] + attr_accessor :is_live_migration + alias_method :is_live_migration?, :is_live_migration + # [Output Only] Type of the resource. Always compute#publicDelegatedPrefix for # public delegated prefixes. # Corresponds to the JSON property `kind` @@ -27332,6 +27356,7 @@ module Google @fingerprint = args[:fingerprint] if args.key?(:fingerprint) @id = args[:id] if args.key?(:id) @ip_cidr_range = args[:ip_cidr_range] if args.key?(:ip_cidr_range) + @is_live_migration = args[:is_live_migration] if args.key?(:is_live_migration) @kind = args[:kind] if args.key?(:kind) @name = args[:name] if args.key?(:name) @parent_prefix = args[:parent_prefix] if args.key?(:parent_prefix) @@ -28654,6 +28679,14 @@ module Google # @return [Array] attr_accessor :instances + # If false and the request contains references to instances that cannot be + # deleted (that is, instances that are not in the group or are already deleted), + # the request fails. Otherwise, such instances are ignored. + # Corresponds to the JSON property `skipInapplicableInstances` + # @return [Boolean] + attr_accessor :skip_inapplicable_instances + alias_method :skip_inapplicable_instances?, :skip_inapplicable_instances + def initialize(**args) update!(**args) end @@ -28661,6 +28694,7 @@ module Google # Update properties of this object def update!(**args) @instances = args[:instances] if args.key?(:instances) + @skip_inapplicable_instances = args[:skip_inapplicable_instances] if args.key?(:skip_inapplicable_instances) end end @@ -29086,6 +29120,25 @@ module Google end end + # + class RegionInstantSnapshotsExportRequest + include Google::Apis::Core::Hashable + + # Parameters to export the changed blocks. + # Corresponds to the JSON property `exportParams` + # @return [Google::Apis::ComputeAlpha::InstantSnapshotExportParams] + attr_accessor :export_params + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @export_params = args[:export_params] if args.key?(:export_params) + end + end + # Contains a list of region resources. class RegionList include Google::Apis::Core::Hashable @@ -30835,8 +30888,8 @@ module Google # @return [String] attr_accessor :description - # The destination range of outgoing packets that this route applies to. Only - # IPv4 is supported. + # The destination range of outgoing packets that this route applies to. Both + # IPv4 and IPv6 are supported. # Corresponds to the JSON property `destRange` # @return [String] attr_accessor :dest_range @@ -32816,15 +32869,14 @@ module Google # [Output Only] The last time the scaling schedule became active. Note: this is # a timestamp when a schedule actually became active, not when it was planned to - # do so. The timestamp is an RFC3339 string in RFC3339 text format. + # do so. The timestamp is in RFC3339 text format. # Corresponds to the JSON property `lastStartTime` # @return [String] attr_accessor :last_start_time - # [Output Only] The next time the scaling schedule will become active. Note: + # [Output Only] The next time the scaling schedule is to become active. Note: # this is a timestamp when a schedule is planned to run, but the actual time - # might be slightly different. The timestamp is an RFC3339 string in RFC3339 - # text format. + # might be slightly different. The timestamp is in RFC3339 text format. # Corresponds to the JSON property `nextStartTime` # @return [String] attr_accessor :next_start_time @@ -33089,11 +33141,11 @@ module Google # User-provided name of the Organization security plicy. The name should be # unique in the organization in which the security policy is created. This # should only be used when SecurityPolicyType is FIREWALL. The name must be 1-63 - # characters long, and comply with RFC1035. Specifically, the name must be 1-63 - # characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` - # which means the first character must be a lowercase letter, and all following - # characters must be a dash, lowercase letter, or digit, except the last - # character, which cannot be a dash. + # characters long, and comply with https://www.ietf.org/rfc/rfc1035.txt. + # Specifically, the name must be 1-63 characters long and match the regular + # expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must + # be a lowercase letter, and all following characters must be a dash, lowercase + # letter, or digit, except the last character, which cannot be a dash. # Corresponds to the JSON property `displayName` # @return [String] attr_accessor :display_name @@ -33501,7 +33553,7 @@ module Google # An integer indicating the priority of a rule in the list. The priority must be # a positive value between 0 and 2147483647. Rules are evaluated from highest to # lowest priority where 0 is the highest priority and 2147483647 is the lowest - # prority. + # priority. # Corresponds to the JSON property `priority` # @return [Fixnum] attr_accessor :priority @@ -36192,12 +36244,14 @@ module Google # @return [String] attr_accessor :stack_type - # [Output Only] The state of the subnetwork, which can be one of READY or - # DRAINING. A subnetwork that is READY is ready to be used. The state of - # DRAINING is only applicable to subnetworks that have the purpose set to + # [Output Only] The state of the subnetwork, which can be one of the following + # values: READY: Subnetwork is created and ready to use DRAINING: only + # applicable to subnetworks that have the purpose set to # INTERNAL_HTTPS_LOAD_BALANCER and indicates that connections to the load # balancer are being drained. A subnetwork that is draining cannot be used or - # modified until it reaches a status of READY. + # modified until it reaches a status of READY CREATING: Subnetwork is + # provisioning DELETING: Subnetwork is being deleted UPDATING: Subnetwork is + # being updated # Corresponds to the JSON property `state` # @return [String] attr_accessor :state @@ -40126,17 +40180,46 @@ module Google class TestFailure include Google::Apis::Core::Hashable + # The actual output URL evaluated by load balancer containing the scheme, host, + # path and query parameters. + # Corresponds to the JSON property `actualOutputUrl` + # @return [String] + attr_accessor :actual_output_url + + # Actual HTTP status code for rule with `urlRedirect` calculated by load + # balancer + # Corresponds to the JSON property `actualRedirectResponseCode` + # @return [Fixnum] + attr_accessor :actual_redirect_response_code + # BackendService or BackendBucket returned by load balancer. # Corresponds to the JSON property `actualService` # @return [String] attr_accessor :actual_service + # The expected output URL evaluated by load balancer containing the scheme, host, + # path and query parameters. + # Corresponds to the JSON property `expectedOutputUrl` + # @return [String] + attr_accessor :expected_output_url + + # Expected HTTP status code for rule with `urlRedirect` calculated by load + # balancer + # Corresponds to the JSON property `expectedRedirectResponseCode` + # @return [Fixnum] + attr_accessor :expected_redirect_response_code + # Expected BackendService or BackendBucket resource the given URL should be # mapped to. # Corresponds to the JSON property `expectedService` # @return [String] attr_accessor :expected_service + # HTTP headers of the request. + # Corresponds to the JSON property `headers` + # @return [Array] + attr_accessor :headers + # Host portion of the URL. # Corresponds to the JSON property `host` # @return [String] @@ -40153,8 +40236,13 @@ module Google # Update properties of this object def update!(**args) + @actual_output_url = args[:actual_output_url] if args.key?(:actual_output_url) + @actual_redirect_response_code = args[:actual_redirect_response_code] if args.key?(:actual_redirect_response_code) @actual_service = args[:actual_service] if args.key?(:actual_service) + @expected_output_url = args[:expected_output_url] if args.key?(:expected_output_url) + @expected_redirect_response_code = args[:expected_redirect_response_code] if args.key?(:expected_redirect_response_code) @expected_service = args[:expected_service] if args.key?(:expected_service) + @headers = args[:headers] if args.key?(:headers) @host = args[:host] if args.key?(:host) @path = args[:path] if args.key?(:path) end @@ -40708,12 +40796,43 @@ module Google # @return [String] attr_accessor :description + # The expected output URL evaluated by load balancer containing the scheme, host, + # path and query parameters. + # For rules that forward requests to backends, the test passes only when + # expectedOutputUrl matches the request forwarded by load balancer to backends. + # For rules with urlRewrite, the test verifies that the forwarded request + # matches hostRewrite and pathPrefixRewrite in the urlRewrite action. When + # service is specified, expectedOutputUrl`s scheme is ignored. + # For rules with urlRedirect, the test passes only if expectedOutputUrl matches + # the URL in the load balancer's redirect response. If urlRedirect specifies + # https_redirect, the test passes only if the scheme in expectedOutputUrl is + # also set to https. If urlRedirect specifies strip_query, the test passes only + # if expectedOutputUrl does not contain any query parameters. + # expectedOutputUrl is optional when service is specified. + # Corresponds to the JSON property `expectedOutputUrl` + # @return [String] + attr_accessor :expected_output_url + + # For rules with urlRedirect, the test passes only if + # expectedRedirectResponseCode matches the HTTP status code in load balancer's + # redirect response. + # expectedRedirectResponseCode cannot be set when service is set. + # Corresponds to the JSON property `expectedRedirectResponseCode` + # @return [Fixnum] + attr_accessor :expected_redirect_response_code + # The expected URL that should be redirected to for the host and path being # tested. [Deprecated] This field is deprecated. Use expected_output_url instead. # Corresponds to the JSON property `expectedUrlRedirect` # @return [String] attr_accessor :expected_url_redirect + # HTTP headers for this request. If headers contains a host header, then host + # must also match the header value. + # Corresponds to the JSON property `headers` + # @return [Array] + attr_accessor :headers + # Host portion of the URL. If headers contains a host header, then host must # also match the header value. # Corresponds to the JSON property `host` @@ -40740,13 +40859,41 @@ module Google def update!(**args) @backend_service_weight = args[:backend_service_weight] if args.key?(:backend_service_weight) @description = args[:description] if args.key?(:description) + @expected_output_url = args[:expected_output_url] if args.key?(:expected_output_url) + @expected_redirect_response_code = args[:expected_redirect_response_code] if args.key?(:expected_redirect_response_code) @expected_url_redirect = args[:expected_url_redirect] if args.key?(:expected_url_redirect) + @headers = args[:headers] if args.key?(:headers) @host = args[:host] if args.key?(:host) @path = args[:path] if args.key?(:path) @service = args[:service] if args.key?(:service) end end + # HTTP headers used in UrlMapTests. + class UrlMapTestHeader + include Google::Apis::Core::Hashable + + # Header name. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Header value. + # 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) + @name = args[:name] if args.key?(:name) + @value = args[:value] if args.key?(:value) + end + end + # Message representing the validation result for a UrlMap. class UrlMapValidationResult include Google::Apis::Core::Hashable @@ -43045,6 +43192,25 @@ module Google end end + # + class ZoneInstantSnapshotsExportRequest + include Google::Apis::Core::Hashable + + # Parameters to export the changed blocks. + # Corresponds to the JSON property `exportParams` + # @return [Google::Apis::ComputeAlpha::InstantSnapshotExportParams] + attr_accessor :export_params + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @export_params = args[:export_params] if args.key?(:export_params) + end + end + # Contains a list of zone resources. class ZoneList include Google::Apis::Core::Hashable diff --git a/generated/google/apis/compute_alpha/representations.rb b/generated/google/apis/compute_alpha/representations.rb index 9b413ef4a..52569ddcb 100644 --- a/generated/google/apis/compute_alpha/representations.rb +++ b/generated/google/apis/compute_alpha/representations.rb @@ -1606,12 +1606,6 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class InstanceGroupManagerPendingActionsSummary - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class InstanceGroupManagerStatus class Representation < Google::Apis::Core::JsonRepresentation; end @@ -2734,6 +2728,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class NetworkPerformanceConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class NetworkRoutingConfig class Representation < Google::Apis::Core::JsonRepresentation; end @@ -3700,6 +3700,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class RegionInstantSnapshotsExportRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class RegionList class Representation < Google::Apis::Core::JsonRepresentation; end @@ -5272,6 +5278,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class UrlMapTestHeader + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class UrlMapValidationResult class Representation < Google::Apis::Core::JsonRepresentation; end @@ -5608,6 +5620,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class ZoneInstantSnapshotsExportRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class ZoneList class Representation < Google::Apis::Core::JsonRepresentation; end @@ -8092,6 +8110,8 @@ module Google property :instance, as: 'instance' property :ip_address, as: 'ipAddress' property :port, as: 'port' + property :weight, as: 'weight' + property :weight_error, as: 'weightError' end end @@ -8575,6 +8595,8 @@ module Google property :name, as: 'name' collection :network_interfaces, as: 'networkInterfaces', class: Google::Apis::ComputeAlpha::NetworkInterface, decorator: Google::Apis::ComputeAlpha::NetworkInterface::Representation + property :network_performance_config, as: 'networkPerformanceConfig', class: Google::Apis::ComputeAlpha::NetworkPerformanceConfig, decorator: Google::Apis::ComputeAlpha::NetworkPerformanceConfig::Representation + property :post_key_revocation_action_type, as: 'postKeyRevocationActionType' property :preserved_state_size_gb, :numeric_string => true, as: 'preservedStateSizeGb' property :private_ipv6_google_access, as: 'privateIpv6GoogleAccess' @@ -8752,8 +8774,6 @@ module Google property :name, as: 'name' collection :named_ports, as: 'namedPorts', class: Google::Apis::ComputeAlpha::NamedPort, decorator: Google::Apis::ComputeAlpha::NamedPort::Representation - property :pending_actions, as: 'pendingActions', class: Google::Apis::ComputeAlpha::InstanceGroupManagerPendingActionsSummary, decorator: Google::Apis::ComputeAlpha::InstanceGroupManagerPendingActionsSummary::Representation - property :region, as: 'region' property :self_link, as: 'selfLink' property :self_link_with_id, as: 'selfLinkWithId' @@ -8862,16 +8882,6 @@ module Google end end - class InstanceGroupManagerPendingActionsSummary - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :creating, as: 'creating' - property :deleting, as: 'deleting' - property :recreating, as: 'recreating' - property :restarting, as: 'restarting' - end - end - class InstanceGroupManagerStatus # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -9319,6 +9329,8 @@ module Google property :min_cpu_platform, as: 'minCpuPlatform' collection :network_interfaces, as: 'networkInterfaces', class: Google::Apis::ComputeAlpha::NetworkInterface, decorator: Google::Apis::ComputeAlpha::NetworkInterface::Representation + property :network_performance_config, as: 'networkPerformanceConfig', class: Google::Apis::ComputeAlpha::NetworkPerformanceConfig, decorator: Google::Apis::ComputeAlpha::NetworkPerformanceConfig::Representation + property :post_key_revocation_action_type, as: 'postKeyRevocationActionType' property :private_ipv6_google_access, as: 'privateIpv6GoogleAccess' property :reservation_affinity, as: 'reservationAffinity', class: Google::Apis::ComputeAlpha::ReservationAffinity, decorator: Google::Apis::ComputeAlpha::ReservationAffinity::Representation @@ -10822,6 +10834,7 @@ module Google property :internal_ipv6_prefix_length, as: 'internalIpv6PrefixLength' collection :ipv6_access_configs, as: 'ipv6AccessConfigs', class: Google::Apis::ComputeAlpha::AccessConfig, decorator: Google::Apis::ComputeAlpha::AccessConfig::Representation + property :ipv6_access_type, as: 'ipv6AccessType' property :ipv6_address, as: 'ipv6Address' property :kind, as: 'kind' property :name, as: 'name' @@ -10884,6 +10897,14 @@ module Google end end + class NetworkPerformanceConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :external_ip_egress_bandwidth_tier, as: 'externalIpEgressBandwidthTier' + property :total_egress_bandwidth_tier, as: 'totalEgressBandwidthTier' + end + end + class NetworkRoutingConfig # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -11053,6 +11074,8 @@ module Google # @private class Representation < Google::Apis::Core::JsonRepresentation property :duration, as: 'duration' + property :maintenance_duration, as: 'maintenanceDuration', class: Google::Apis::ComputeAlpha::Duration, decorator: Google::Apis::ComputeAlpha::Duration::Representation + property :start_time, as: 'startTime' end end @@ -12106,6 +12129,7 @@ module Google property :fingerprint, :base64 => true, as: 'fingerprint' property :id, :numeric_string => true, as: 'id' property :ip_cidr_range, as: 'ipCidrRange' + property :is_live_migration, as: 'isLiveMigration' property :kind, as: 'kind' property :name, as: 'name' property :parent_prefix, as: 'parentPrefix' @@ -12485,6 +12509,7 @@ module Google # @private class Representation < Google::Apis::Core::JsonRepresentation collection :instances, as: 'instances' + property :skip_inapplicable_instances, as: 'skipInapplicableInstances' end end @@ -12614,6 +12639,14 @@ module Google end end + class RegionInstantSnapshotsExportRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :export_params, as: 'exportParams', class: Google::Apis::ComputeAlpha::InstantSnapshotExportParams, decorator: Google::Apis::ComputeAlpha::InstantSnapshotExportParams::Representation + + end + end + class RegionList # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -15337,8 +15370,14 @@ module Google class TestFailure # @private class Representation < Google::Apis::Core::JsonRepresentation + property :actual_output_url, as: 'actualOutputUrl' + property :actual_redirect_response_code, as: 'actualRedirectResponseCode' property :actual_service, as: 'actualService' + property :expected_output_url, as: 'expectedOutputUrl' + property :expected_redirect_response_code, as: 'expectedRedirectResponseCode' property :expected_service, as: 'expectedService' + collection :headers, as: 'headers', class: Google::Apis::ComputeAlpha::UrlMapTestHeader, decorator: Google::Apis::ComputeAlpha::UrlMapTestHeader::Representation + property :host, as: 'host' property :path, as: 'path' end @@ -15487,13 +15526,25 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation property :backend_service_weight, as: 'backendServiceWeight' property :description, as: 'description' + property :expected_output_url, as: 'expectedOutputUrl' + property :expected_redirect_response_code, as: 'expectedRedirectResponseCode' property :expected_url_redirect, as: 'expectedUrlRedirect' + collection :headers, as: 'headers', class: Google::Apis::ComputeAlpha::UrlMapTestHeader, decorator: Google::Apis::ComputeAlpha::UrlMapTestHeader::Representation + property :host, as: 'host' property :path, as: 'path' property :service, as: 'service' end end + class UrlMapTestHeader + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :name, as: 'name' + property :value, as: 'value' + end + end + class UrlMapValidationResult # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -16088,6 +16139,14 @@ module Google end end + class ZoneInstantSnapshotsExportRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :export_params, as: 'exportParams', class: Google::Apis::ComputeAlpha::InstantSnapshotExportParams, decorator: Google::Apis::ComputeAlpha::InstantSnapshotExportParams::Representation + + end + end + class ZoneList # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/compute_alpha/service.rb b/generated/google/apis/compute_alpha/service.rb index 2bb10166d..7ca8e341e 100644 --- a/generated/google/apis/compute_alpha/service.rb +++ b/generated/google/apis/compute_alpha/service.rb @@ -9133,8 +9133,9 @@ module Google execute_or_queue_command(command, &block) end - # Modifies the autohealing policies. [Deprecated] This method is deprecated. - # Please use Patch instead. + # Motifies the autohealing policy for the instances in this managed instance + # group. [Deprecated] This method is deprecated. Use instanceGroupManagers.patch + # instead. # @param [String] project # Project ID for this request. # @param [String] zone @@ -24907,9 +24908,9 @@ module Google execute_or_queue_command(command, &block) end - # Insert or patch (for the ones that already exist) per-instance configs for the - # managed instance group. perInstanceConfig.instance serves as a key used to - # distinguish whether to perform insert or patch. + # Inserts or patches per-instance configs for the managed instance group. + # perInstanceConfig.name serves as a key used to distinguish whether to perform + # insert or patch. # @param [String] project # Project ID for this request. # @param [String] region @@ -25089,7 +25090,8 @@ module Google end # Modifies the autohealing policy for the instances in this managed instance - # group. [Deprecated] This method is deprecated. Please use Patch instead. + # group. [Deprecated] This method is deprecated. Use regionInstanceGroupManagers. + # patch instead. # @param [String] project # Project ID for this request. # @param [String] region @@ -25353,9 +25355,9 @@ module Google execute_or_queue_command(command, &block) end - # Insert or update (for the ones that already exist) per-instance configs for - # the managed instance group. perInstanceConfig.instance serves as a key used to - # distinguish whether to perform insert or patch. + # Inserts or updates per-instance configs for the managed instance group. + # perInstanceConfig.name serves as a key used to distinguish whether to perform + # insert or patch. # @param [String] project # Project ID for this request. # @param [String] region @@ -25826,7 +25828,7 @@ module Google # The name of the zone for this request. # @param [String] instant_snapshot # Name of the instant snapshot to export. - # @param [Google::Apis::ComputeAlpha::InstantSnapshotExportParams] instant_snapshot_export_params_object + # @param [Google::Apis::ComputeAlpha::RegionInstantSnapshotsExportRequest] region_instant_snapshots_export_request_object # @param [String] request_id # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the @@ -25857,10 +25859,10 @@ module Google # @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 export_region_instant_snapshot(project, region, instant_snapshot, instant_snapshot_export_params_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def export_region_instant_snapshot(project, region, instant_snapshot, region_instant_snapshots_export_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, 'projects/{project}/regions/{region}/instantSnapshots/{instantSnapshot}/export', options) - command.request_representation = Google::Apis::ComputeAlpha::InstantSnapshotExportParams::Representation - command.request_object = instant_snapshot_export_params_object + command.request_representation = Google::Apis::ComputeAlpha::RegionInstantSnapshotsExportRequest::Representation + command.request_object = region_instant_snapshots_export_request_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation command.response_class = Google::Apis::ComputeAlpha::Operation command.params['project'] = project unless project.nil? @@ -30575,7 +30577,9 @@ module Google execute_or_queue_command(command, &block) end - # Patches the specified policy with the data included in the request. + # Patches the specified policy with the data included in the request. This + # cannot be used to be update the rules in the policy. Please use the per rule + # methods like addRule, patchRule, and removeRule instead. # @param [String] project # Project ID for this request. # @param [String] security_policy @@ -38402,7 +38406,7 @@ module Google # The name of the zone for this request. # @param [String] instant_snapshot # Name of the instant snapshot to export. - # @param [Google::Apis::ComputeAlpha::InstantSnapshotExportParams] instant_snapshot_export_params_object + # @param [Google::Apis::ComputeAlpha::ZoneInstantSnapshotsExportRequest] zone_instant_snapshots_export_request_object # @param [String] request_id # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the @@ -38433,10 +38437,10 @@ module Google # @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 export_zone_instant_snapshot(project, zone, instant_snapshot, instant_snapshot_export_params_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def export_zone_instant_snapshot(project, zone, instant_snapshot, zone_instant_snapshots_export_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instantSnapshots/{instantSnapshot}/export', options) - command.request_representation = Google::Apis::ComputeAlpha::InstantSnapshotExportParams::Representation - command.request_object = instant_snapshot_export_params_object + command.request_representation = Google::Apis::ComputeAlpha::ZoneInstantSnapshotsExportRequest::Representation + command.request_object = zone_instant_snapshots_export_request_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation command.response_class = Google::Apis::ComputeAlpha::Operation command.params['project'] = project unless project.nil? diff --git a/generated/google/apis/compute_alpha/synth.metadata b/generated/google/apis/compute_alpha/synth.metadata index 2dbcf5316..0a6484a6c 100644 --- a/generated/google/apis/compute_alpha/synth.metadata +++ b/generated/google/apis/compute_alpha/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/google-api-ruby-client.git", - "sha": "0492accc8a44d0f28a484a67f7940d74246ab88d" + "sha": "1bb8091fcf4270989ed1528741f8e96740431e03" } } ]