From 31cf66b714960ef797e14508449b734d77b837b3 Mon Sep 17 00:00:00 2001 From: Google APIs Date: Sun, 11 Oct 2020 00:39:03 +0000 Subject: [PATCH] Autogenerated update (2020-10-11) Update: - compute_alpha - compute_beta - compute_v1 --- api_names_out.yaml | 24 +++ generated/google/apis/compute_alpha.rb | 2 +- .../google/apis/compute_alpha/classes.rb | 147 +++++++++++++++--- .../apis/compute_alpha/representations.rb | 7 + .../google/apis/compute_alpha/service.rb | 65 +++++++- generated/google/apis/compute_beta.rb | 2 +- generated/google/apis/compute_beta/classes.rb | 102 +++++++++--- .../apis/compute_beta/representations.rb | 4 + generated/google/apis/compute_beta/service.rb | 6 +- generated/google/apis/compute_v1.rb | 2 +- generated/google/apis/compute_v1/classes.rb | 36 ++++- .../google/apis/compute_v1/representations.rb | 3 + generated/google/apis/compute_v1/service.rb | 6 +- 13 files changed, 346 insertions(+), 60 deletions(-) diff --git a/api_names_out.yaml b/api_names_out.yaml index c85a4006f..538003fd1 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -28351,6 +28351,8 @@ "/compute:alpha/AttachedDisk/shieldedInstanceInitialState": shielded_instance_initial_state "/compute:alpha/AttachedDisk/source": source "/compute:alpha/AttachedDisk/type": type +"/compute:alpha/AttachedDisk/userLicenses": user_licenses +"/compute:alpha/AttachedDisk/userLicenses/user_license": user_license "/compute:alpha/AttachedDiskInitializeParams": attached_disk_initialize_params "/compute:alpha/AttachedDiskInitializeParams/description": description "/compute:alpha/AttachedDiskInitializeParams/diskName": disk_name @@ -28951,6 +28953,8 @@ "/compute:alpha/Disk/status": status "/compute:alpha/Disk/storageType": storage_type "/compute:alpha/Disk/type": type +"/compute:alpha/Disk/userLicenses": user_licenses +"/compute:alpha/Disk/userLicenses/user_license": user_license "/compute:alpha/Disk/users": users "/compute:alpha/Disk/users/user": user "/compute:alpha/Disk/zone": zone @@ -32328,6 +32332,7 @@ "/compute:alpha/RouterBgpPeer/name": name "/compute:alpha/RouterBgpPeer/peerAsn": peer_asn "/compute:alpha/RouterBgpPeer/peerIpAddress": peer_ip_address +"/compute:alpha/RouterBgpPeer/routerApplianceInstance": router_appliance_instance "/compute:alpha/RouterBgpPeerBfd": router_bgp_peer_bfd "/compute:alpha/RouterBgpPeerBfd/minReceiveInterval": min_receive_interval "/compute:alpha/RouterBgpPeerBfd/minTransmitInterval": min_transmit_interval @@ -32342,6 +32347,9 @@ "/compute:alpha/RouterInterface/linkedVpnTunnel": linked_vpn_tunnel "/compute:alpha/RouterInterface/managementType": management_type "/compute:alpha/RouterInterface/name": name +"/compute:alpha/RouterInterface/privateIpAddress": private_ip_address +"/compute:alpha/RouterInterface/redundantInterface": redundant_interface +"/compute:alpha/RouterInterface/subnetwork": subnetwork "/compute:alpha/RouterList": router_list "/compute:alpha/RouterList/id": id "/compute:alpha/RouterList/items": items @@ -33139,6 +33147,8 @@ "/compute:alpha/TargetHttpsProxy/clientSslPolicy": client_ssl_policy "/compute:alpha/TargetHttpsProxy/creationTimestamp": creation_timestamp "/compute:alpha/TargetHttpsProxy/description": description +"/compute:alpha/TargetHttpsProxy/httpFilters": http_filters +"/compute:alpha/TargetHttpsProxy/httpFilters/http_filter": http_filter "/compute:alpha/TargetHttpsProxy/id": id "/compute:alpha/TargetHttpsProxy/kind": kind "/compute:alpha/TargetHttpsProxy/name": name @@ -34161,6 +34171,12 @@ "/compute:alpha/compute.disks.testIamPermissions/project": project "/compute:alpha/compute.disks.testIamPermissions/resource": resource "/compute:alpha/compute.disks.testIamPermissions/zone": zone +"/compute:alpha/compute.disks.update": update_disk +"/compute:alpha/compute.disks.update/disk": disk +"/compute:alpha/compute.disks.update/paths": paths +"/compute:alpha/compute.disks.update/project": project +"/compute:alpha/compute.disks.update/requestId": request_id +"/compute:alpha/compute.disks.update/zone": zone "/compute:alpha/compute.externalVpnGateways.delete": delete_external_vpn_gateway "/compute:alpha/compute.externalVpnGateways.delete/externalVpnGateway": external_vpn_gateway "/compute:alpha/compute.externalVpnGateways.delete/project": project @@ -38944,6 +38960,9 @@ "/compute:beta/Instance/labelFingerprint": label_fingerprint "/compute:beta/Instance/labels": labels "/compute:beta/Instance/labels/label": label +"/compute:beta/Instance/lastStartTimestamp": last_start_timestamp +"/compute:beta/Instance/lastStopTimestamp": last_stop_timestamp +"/compute:beta/Instance/lastSuspendedTimestamp": last_suspended_timestamp "/compute:beta/Instance/machineType": machine_type "/compute:beta/Instance/metadata": metadata "/compute:beta/Instance/minCpuPlatform": min_cpu_platform @@ -41598,6 +41617,8 @@ "/compute:beta/TargetHttpsProxy/authorizationPolicy": authorization_policy "/compute:beta/TargetHttpsProxy/creationTimestamp": creation_timestamp "/compute:beta/TargetHttpsProxy/description": description +"/compute:beta/TargetHttpsProxy/httpFilters": http_filters +"/compute:beta/TargetHttpsProxy/httpFilters/http_filter": http_filter "/compute:beta/TargetHttpsProxy/id": id "/compute:beta/TargetHttpsProxy/kind": kind "/compute:beta/TargetHttpsProxy/name": name @@ -46588,6 +46609,9 @@ "/compute:v1/Instance/labelFingerprint": label_fingerprint "/compute:v1/Instance/labels": labels "/compute:v1/Instance/labels/label": label +"/compute:v1/Instance/lastStartTimestamp": last_start_timestamp +"/compute:v1/Instance/lastStopTimestamp": last_stop_timestamp +"/compute:v1/Instance/lastSuspendedTimestamp": last_suspended_timestamp "/compute:v1/Instance/machineType": machine_type "/compute:v1/Instance/metadata": metadata "/compute:v1/Instance/minCpuPlatform": min_cpu_platform diff --git a/generated/google/apis/compute_alpha.rb b/generated/google/apis/compute_alpha.rb index 3dbb48c0a..62ef4dd0b 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 = '20200901' + REVISION = '20200910' # 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 30331bbbf..81f3ef0fc 100644 --- a/generated/google/apis/compute_alpha/classes.rb +++ b/generated/google/apis/compute_alpha/classes.rb @@ -1379,6 +1379,13 @@ module Google # @return [String] attr_accessor :type + # [Output Only] A list of user provided licenses. It represents a list of URLs + # to the license resource. Unlike regular licenses, user provided licenses can + # be modified after the disk is created. + # Corresponds to the JSON property `userLicenses` + # @return [Array] + attr_accessor :user_licenses + def initialize(**args) update!(**args) end @@ -1401,6 +1408,7 @@ module Google @shielded_instance_initial_state = args[:shielded_instance_initial_state] if args.key?(:shielded_instance_initial_state) @source = args[:source] if args.key?(:source) @type = args[:type] if args.key?(:type) + @user_licenses = args[:user_licenses] if args.key?(:user_licenses) end end @@ -2369,14 +2377,13 @@ module Google class AutoscalingPolicyCpuUtilization include Google::Apis::Core::Hashable - # Indicates which method of prediction is used for CPU utilization metric, if - # any. Current set of possible values: * NONE: No predictions are made based on - # the scaling metric when calculating the number of VM instances. * - # OPTIMIZE_AVAILABILITY: Standard predictive autoscaling predicts the future - # values of the scaling metric and then scales a MIG to ensure that new VM - # instances are ready in time to cover the predicted peak. New values might be - # added in the future. Some of the values might not be available in all API - # versions. + # Indicates whether predictive autoscaling based on CPU metric is enabled. Valid + # values are: + # * NONE (default). No predictive method is used. The autoscaler scales the + # group to meet current demand based on real-time metrics. * + # OPTIMIZE_AVAILABILITY. Predictive autoscaling improves availability by + # monitoring daily and weekly load patterns and scaling out ahead of anticipated + # demand. # Corresponds to the JSON property `predictiveMethod` # @return [String] attr_accessor :predictive_method @@ -2464,9 +2471,9 @@ module Google # The target value of the metric that autoscaler should maintain. 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 compute. - # googleapis.com/instance/network/received_bytes_count. The autoscaler will work - # to keep this value constant for each of the instances. + # 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. # Corresponds to the JSON property `utilizationTarget` # @return [Float] attr_accessor :utilization_target @@ -2920,7 +2927,19 @@ module Google # @return [Array] attr_accessor :bypass_cache_on_request_headers - # + # Specifies the cache setting for all responses from this backend. The possible + # values are: + # USE_ORIGIN_HEADERS Requires the origin to set valid caching headers to cache + # content. Responses without these headers will not be cached at Google's edge, + # and will require a full trip to the origin on every request, potentially + # impacting performance and increasing load on the origin server. + # FORCE_CACHE_ALL Cache all content, ignoring any "private", "no-store" or "no- + # cache" directives in Cache-Control response headers. Warning: this may result + # in Cloud CDN caching private, per-user (user identifiable) content. + # CACHE_ALL_STATIC Automatically cache static content, including common image + # formats, media (video and audio), and web assets (JavaScript and CSS). + # Requests and responses that are marked as uncacheable, as well as dynamic + # content (including HTML), will not be cached. # Corresponds to the JSON property `cacheMode` # @return [String] attr_accessor :cache_mode @@ -3674,7 +3693,19 @@ module Google # @return [Google::Apis::ComputeAlpha::CacheKeyPolicy] attr_accessor :cache_key_policy - # + # Specifies the cache setting for all responses from this backend. The possible + # values are: + # USE_ORIGIN_HEADERS Requires the origin to set valid caching headers to cache + # content. Responses without these headers will not be cached at Google's edge, + # and will require a full trip to the origin on every request, potentially + # impacting performance and increasing load on the origin server. + # FORCE_CACHE_ALL Cache all content, ignoring any "private", "no-store" or "no- + # cache" directives in Cache-Control response headers. Warning: this may result + # in Cloud CDN caching private, per-user (user identifiable) content. + # CACHE_ALL_STATIC Automatically cache static content, including common image + # formats, media (video and audio), and web assets (JavaScript and CSS). + # Requests and responses that are marked as uncacheable, as well as dynamic + # content (including HTML), will not be cached. # Corresponds to the JSON property `cacheMode` # @return [String] attr_accessor :cache_mode @@ -6117,6 +6148,15 @@ module Google # @return [String] attr_accessor :type + # A list of publicly visible user-licenses. Unlike regular licenses, user + # provided licenses can be modified after the disk is created. This includes a + # list of URLs to the license resource. For example, to provide a debian license: + # https://www.googleapis.com/compute/v1/projects/debian-cloud/global/licenses/ + # debian-9-stretch + # Corresponds to the JSON property `userLicenses` + # @return [Array] + attr_accessor :user_licenses + # [Output Only] Links to the users of the disk (attached instances) in form: # projects/project/zones/zone/instances/instance # Corresponds to the JSON property `users` @@ -6178,6 +6218,7 @@ module Google @status = args[:status] if args.key?(:status) @storage_type = args[:storage_type] if args.key?(:storage_type) @type = args[:type] if args.key?(:type) + @user_licenses = args[:user_licenses] if args.key?(:user_licenses) @users = args[:users] if args.key?(:users) @zone = args[:zone] if args.key?(:zone) end @@ -8885,11 +8926,11 @@ module Google attr_accessor :subnetwork # The URL of the target resource to receive the matched traffic. For regional - # forwarding rules, this target must live in the same region as the forwarding + # forwarding rules, this target must be in the same region as the forwarding # rule. For global forwarding rules, this target must be a global load balancing # resource. The forwarded traffic must be of a type appropriate to the target - # object. For INTERNAL_SELF_MANAGED load balancing, only targetHttpProxy and - # targetGrpcProxy are valid, not targetHttpsProxy. + # object. For more information, see the "Target" column in [Port specifications]( + # /load-balancing/docs/forwarding-rule-concepts#ip_address_specifications). # Corresponds to the JSON property `target` # @return [String] attr_accessor :target @@ -13088,7 +13129,8 @@ module Google # [Output Only] The status of the instance. One of the following values: # PROVISIONING, STAGING, RUNNING, STOPPING, SUSPENDING, SUSPENDED, REPAIRING, - # and TERMINATED. + # and TERMINATED. For more information about the status of the instance, see + # Instance life cycle. # Corresponds to the JSON property `status` # @return [String] attr_accessor :status @@ -22483,7 +22525,8 @@ module Google class NodeGroupAutoscalingPolicy include Google::Apis::Core::Hashable - # The maximum number of nodes that the group should have. + # The maximum number of nodes that the group should have. Must be set if + # autoscaling is enabled. Maximum value allowed is 100. # Corresponds to the JSON property `maxNodes` # @return [Fixnum] attr_accessor :max_nodes @@ -30126,8 +30169,8 @@ module Google # @return [Fixnum] attr_accessor :max_retention_days - # Specifies the behavior to apply to existing, scheduled snapshots snapshots if - # the policy is changed. + # TODO(b/165626794): Remove this field Specifies the behavior to apply to + # existing, scheduled snapshots snapshots if the policy is changed. # Corresponds to the JSON property `onPolicySwitch` # @return [String] attr_accessor :on_policy_switch @@ -31102,6 +31145,14 @@ module Google # @return [String] attr_accessor :peer_ip_address + # URI of the VM instance that is used as third party router appliances such as + # Next Gen Firewalls, Virtual Routers, SD-WAN. The VM instance must live in + # zones contained in the same region as this Cloud Router. The VM instance is + # the peer side of the BGP session. + # Corresponds to the JSON property `routerApplianceInstance` + # @return [String] + attr_accessor :router_appliance_instance + def initialize(**args) update!(**args) end @@ -31120,6 +31171,7 @@ module Google @name = args[:name] if args.key?(:name) @peer_asn = args[:peer_asn] if args.key?(:peer_asn) @peer_ip_address = args[:peer_ip_address] if args.key?(:peer_ip_address) + @router_appliance_instance = args[:router_appliance_instance] if args.key?(:router_appliance_instance) end end @@ -31261,6 +31313,35 @@ module Google # @return [String] attr_accessor :name + # The regional private internal IP address that will be used to establish BGP + # session to a VM instance, which is used as third party router appliances such + # as Next Gen Firewalls, Virtual Routers, SD-WAN. + # Corresponds to the JSON property `privateIpAddress` + # @return [String] + attr_accessor :private_ip_address + + # Name of the interface that will be redundant with the current interface you + # are creating. The redundantInterface must belong to the same Cloud Router as + # the interface here. To establish the BGP session to SD-WAN VM, you must create + # two BGP peers, and the two BGP peers need to be attached to two separate + # interfaces that are redundant with each other. The redundant_interface must be + # 1-63 characters long, and comply with RFC1035. Specifically, the + # redundant_interface 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 `redundantInterface` + # @return [String] + attr_accessor :redundant_interface + + # The URL of the subnetwork resource this interface belongs to, it must be in + # the same region as the router. When you establish a BGP session to a VM + # instance using this interface, the VM instance must belong to the same + # subnetwork as the subnetwork specified here. + # Corresponds to the JSON property `subnetwork` + # @return [String] + attr_accessor :subnetwork + def initialize(**args) update!(**args) end @@ -31272,6 +31353,9 @@ module Google @linked_vpn_tunnel = args[:linked_vpn_tunnel] if args.key?(:linked_vpn_tunnel) @management_type = args[:management_type] if args.key?(:management_type) @name = args[:name] if args.key?(:name) + @private_ip_address = args[:private_ip_address] if args.key?(:private_ip_address) + @redundant_interface = args[:redundant_interface] if args.key?(:redundant_interface) + @subnetwork = args[:subnetwork] if args.key?(:subnetwork) end end @@ -33949,7 +34033,12 @@ module Google attr_accessor :auto_created alias_method :auto_created?, :auto_created - # Chain name should conform to RFC1035. + # Creates the new snapshot in the snapshot chain labeled with the specified name. + # The chain name must be 1-63 characters long and comply with RFC1035. This is + # an uncommon option only for advanced service owners who needs to create + # separate snapshot chains, for example, for chargeback tracking. When you + # describe your snapshot resource, this field is visible only if it has a non- + # empty value. # Corresponds to the JSON property `chainName` # @return [String] attr_accessor :chain_name @@ -37085,6 +37174,21 @@ module Google # @return [String] attr_accessor :description + # URLs to networkservices.HttpFilter resources enabled for xDS clients using + # this configuration. For example, https://networkservices.googleapis.com/beta/ + # projects/project/locations/locationhttpFilters/httpFilter Only filters that + # handle outbound connection and stream events may be specified. These filters + # work in conjunction with a default set of HTTP filters that may already be + # configured by Traffic Director. Traffic Director will determine the final + # location of these filters within xDS configuration based on the name of the + # HTTP filter. If Traffic Director positions multiple filters at the same + # location, those filters will be in the same order as specified in this list. + # httpFilters only applies for loadbalancers with loadBalancingScheme set to + # INTERNAL_SELF_MANAGED. See ForwardingRule for more details. + # Corresponds to the JSON property `httpFilters` + # @return [Array] + attr_accessor :http_filters + # [Output Only] The unique identifier for the resource. This identifier is # defined by the server. # Corresponds to the JSON property `id` @@ -37191,6 +37295,7 @@ module Google @certificate_map = args[:certificate_map] if args.key?(:certificate_map) @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) @description = args[:description] if args.key?(:description) + @http_filters = args[:http_filters] if args.key?(:http_filters) @id = args[:id] if args.key?(:id) @kind = args[:kind] if args.key?(:kind) @name = args[:name] if args.key?(:name) diff --git a/generated/google/apis/compute_alpha/representations.rb b/generated/google/apis/compute_alpha/representations.rb index 2e3e1f378..3a055a0e4 100644 --- a/generated/google/apis/compute_alpha/representations.rb +++ b/generated/google/apis/compute_alpha/representations.rb @@ -5907,6 +5907,7 @@ module Google property :source, as: 'source' property :type, as: 'type' + collection :user_licenses, as: 'userLicenses' end end @@ -6924,6 +6925,7 @@ module Google property :status, as: 'status' property :storage_type, as: 'storageType' property :type, as: 'type' + collection :user_licenses, as: 'userLicenses' collection :users, as: 'users' property :zone, as: 'zone' end @@ -13108,6 +13110,7 @@ module Google property :name, as: 'name' property :peer_asn, as: 'peerAsn' property :peer_ip_address, as: 'peerIpAddress' + property :router_appliance_instance, as: 'routerApplianceInstance' end end @@ -13132,6 +13135,9 @@ module Google property :linked_vpn_tunnel, as: 'linkedVpnTunnel' property :management_type, as: 'managementType' property :name, as: 'name' + property :private_ip_address, as: 'privateIpAddress' + property :redundant_interface, as: 'redundantInterface' + property :subnetwork, as: 'subnetwork' end end @@ -14558,6 +14564,7 @@ module Google property :certificate_map, as: 'certificateMap' property :creation_timestamp, as: 'creationTimestamp' property :description, as: 'description' + collection :http_filters, as: 'httpFilters' property :id, :numeric_string => true, as: 'id' property :kind, as: 'kind' property :name, as: 'name' diff --git a/generated/google/apis/compute_alpha/service.rb b/generated/google/apis/compute_alpha/service.rb index 80dfdefd4..10c70cb3a 100644 --- a/generated/google/apis/compute_alpha/service.rb +++ b/generated/google/apis/compute_alpha/service.rb @@ -3202,6 +3202,65 @@ module Google execute_or_queue_command(command, &block) end + # Update the specified disk with the data included in the request. Update is + # performed only on selected fields included as part of update-mask. Only the + # following fields can be modified: user_license. + # @param [String] project + # Project ID for this request. + # @param [String] zone + # The name of the zone for this request. + # @param [String] disk + # The disk name for this request. + # @param [Google::Apis::ComputeAlpha::Disk] disk_object + # @param [Array, String] paths + # The set of field mask paths. + # @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 + # request if it has already been completed. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeAlpha::Operation] + # + # @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 update_disk(project, zone, disk, disk_object = nil, paths: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:patch, 'projects/{project}/zones/{zone}/disks/{disk}', options) + command.request_representation = Google::Apis::ComputeAlpha::Disk::Representation + command.request_object = disk_object + command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation + command.response_class = Google::Apis::ComputeAlpha::Operation + command.params['project'] = project unless project.nil? + command.params['zone'] = zone unless zone.nil? + command.params['disk'] = disk unless disk.nil? + command.query['paths'] = paths unless paths.nil? + command.query['requestId'] = request_id unless request_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + # Deletes the specified externalVpnGateway. # @param [String] project # Project ID for this request. @@ -11203,9 +11262,9 @@ module Google end # Retrieves a list of resources that refer to the VM instance specified in the - # request. For example, if the VM instance is part of a managed instance group, - # the referrers list includes the managed instance group. For more information, - # read Viewing Referrers to VM Instances. + # request. For example, if the VM instance is part of a managed or unmanaged + # instance group, the referrers list includes the instance group. For more + # information, read Viewing referrers to VM instances. # @param [String] project # Project ID for this request. # @param [String] zone diff --git a/generated/google/apis/compute_beta.rb b/generated/google/apis/compute_beta.rb index 1b4aee6e6..0cf578d4e 100644 --- a/generated/google/apis/compute_beta.rb +++ b/generated/google/apis/compute_beta.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/compute/docs/reference/latest/ module ComputeBeta VERSION = 'Beta' - REVISION = '20200901' + REVISION = '20200910' # 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_beta/classes.rb b/generated/google/apis/compute_beta/classes.rb index a4fed289a..2f453887d 100644 --- a/generated/google/apis/compute_beta/classes.rb +++ b/generated/google/apis/compute_beta/classes.rb @@ -2181,14 +2181,13 @@ module Google class AutoscalingPolicyCpuUtilization include Google::Apis::Core::Hashable - # Indicates which method of prediction is used for CPU utilization metric, if - # any. Current set of possible values: * NONE: No predictions are made based on - # the scaling metric when calculating the number of VM instances. * - # OPTIMIZE_AVAILABILITY: Standard predictive autoscaling predicts the future - # values of the scaling metric and then scales a MIG to ensure that new VM - # instances are ready in time to cover the predicted peak. New values might be - # added in the future. Some of the values might not be available in all API - # versions. + # Indicates whether predictive autoscaling based on CPU metric is enabled. Valid + # values are: + # * NONE (default). No predictive method is used. The autoscaler scales the + # group to meet current demand based on real-time metrics. * + # OPTIMIZE_AVAILABILITY. Predictive autoscaling improves availability by + # monitoring daily and weekly load patterns and scaling out ahead of anticipated + # demand. # Corresponds to the JSON property `predictiveMethod` # @return [String] attr_accessor :predictive_method @@ -2276,9 +2275,9 @@ module Google # The target value of the metric that autoscaler should maintain. 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 compute. - # googleapis.com/instance/network/received_bytes_count. The autoscaler will work - # to keep this value constant for each of the instances. + # 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. # Corresponds to the JSON property `utilizationTarget` # @return [Float] attr_accessor :utilization_target @@ -2661,7 +2660,19 @@ module Google # @return [Array] attr_accessor :bypass_cache_on_request_headers - # + # Specifies the cache setting for all responses from this backend. The possible + # values are: + # USE_ORIGIN_HEADERS Requires the origin to set valid caching headers to cache + # content. Responses without these headers will not be cached at Google's edge, + # and will require a full trip to the origin on every request, potentially + # impacting performance and increasing load on the origin server. + # FORCE_CACHE_ALL Cache all content, ignoring any "private", "no-store" or "no- + # cache" directives in Cache-Control response headers. Warning: this may result + # in Cloud CDN caching private, per-user (user identifiable) content. + # CACHE_ALL_STATIC Automatically cache static content, including common image + # formats, media (video and audio), and web assets (JavaScript and CSS). + # Requests and responses that are marked as uncacheable, as well as dynamic + # content (including HTML), will not be cached. # Corresponds to the JSON property `cacheMode` # @return [String] attr_accessor :cache_mode @@ -3395,7 +3406,19 @@ module Google # @return [Google::Apis::ComputeBeta::CacheKeyPolicy] attr_accessor :cache_key_policy - # + # Specifies the cache setting for all responses from this backend. The possible + # values are: + # USE_ORIGIN_HEADERS Requires the origin to set valid caching headers to cache + # content. Responses without these headers will not be cached at Google's edge, + # and will require a full trip to the origin on every request, potentially + # impacting performance and increasing load on the origin server. + # FORCE_CACHE_ALL Cache all content, ignoring any "private", "no-store" or "no- + # cache" directives in Cache-Control response headers. Warning: this may result + # in Cloud CDN caching private, per-user (user identifiable) content. + # CACHE_ALL_STATIC Automatically cache static content, including common image + # formats, media (video and audio), and web assets (JavaScript and CSS). + # Requests and responses that are marked as uncacheable, as well as dynamic + # content (including HTML), will not be cached. # Corresponds to the JSON property `cacheMode` # @return [String] attr_accessor :cache_mode @@ -7839,11 +7862,11 @@ module Google attr_accessor :subnetwork # The URL of the target resource to receive the matched traffic. For regional - # forwarding rules, this target must live in the same region as the forwarding + # forwarding rules, this target must be in the same region as the forwarding # rule. For global forwarding rules, this target must be a global load balancing # resource. The forwarded traffic must be of a type appropriate to the target - # object. For INTERNAL_SELF_MANAGED load balancing, only targetHttpProxy and - # targetGrpcProxy are valid, not targetHttpsProxy. + # object. For more information, see the "Target" column in [Port specifications]( + # /load-balancing/docs/forwarding-rule-concepts#ip_address_specifications). # Corresponds to the JSON property `target` # @return [String] attr_accessor :target @@ -11500,6 +11523,21 @@ module Google # @return [Hash] attr_accessor :labels + # [Output Only] Last start timestamp in RFC3339 text format. + # Corresponds to the JSON property `lastStartTimestamp` + # @return [String] + attr_accessor :last_start_timestamp + + # [Output Only] Last stop timestamp in RFC3339 text format. + # Corresponds to the JSON property `lastStopTimestamp` + # @return [String] + attr_accessor :last_stop_timestamp + + # [Output Only] Last suspended timestamp in RFC3339 text format. + # Corresponds to the JSON property `lastSuspendedTimestamp` + # @return [String] + attr_accessor :last_suspended_timestamp + # Full or partial URL of the machine type resource to use for this instance, in # the format: zones/zone/machineTypes/machine-type. This is provided by the # client when the instance is created. For example, the following is a valid @@ -11623,7 +11661,8 @@ module Google # [Output Only] The status of the instance. One of the following values: # PROVISIONING, STAGING, RUNNING, STOPPING, SUSPENDING, SUSPENDED, REPAIRING, - # and TERMINATED. + # and TERMINATED. For more information about the status of the instance, see + # Instance life cycle. # Corresponds to the JSON property `status` # @return [String] attr_accessor :status @@ -11667,6 +11706,9 @@ module Google @kind = args[:kind] if args.key?(:kind) @label_fingerprint = args[:label_fingerprint] if args.key?(:label_fingerprint) @labels = args[:labels] if args.key?(:labels) + @last_start_timestamp = args[:last_start_timestamp] if args.key?(:last_start_timestamp) + @last_stop_timestamp = args[:last_stop_timestamp] if args.key?(:last_stop_timestamp) + @last_suspended_timestamp = args[:last_suspended_timestamp] if args.key?(:last_suspended_timestamp) @machine_type = args[:machine_type] if args.key?(:machine_type) @metadata = args[:metadata] if args.key?(:metadata) @min_cpu_platform = args[:min_cpu_platform] if args.key?(:min_cpu_platform) @@ -20061,7 +20103,8 @@ module Google class NodeGroupAutoscalingPolicy include Google::Apis::Core::Hashable - # The maximum number of nodes that the group should have. + # The maximum number of nodes that the group should have. Must be set if + # autoscaling is enabled. Maximum value allowed is 100. # Corresponds to the JSON property `maxNodes` # @return [Fixnum] attr_accessor :max_nodes @@ -29474,7 +29517,12 @@ module Google attr_accessor :auto_created alias_method :auto_created?, :auto_created - # Chain name should conform to RFC1035. + # Creates the new snapshot in the snapshot chain labeled with the specified name. + # The chain name must be 1-63 characters long and comply with RFC1035. This is + # an uncommon option only for advanced service owners who needs to create + # separate snapshot chains, for example, for chargeback tracking. When you + # describe your snapshot resource, this field is visible only if it has a non- + # empty value. # Corresponds to the JSON property `chainName` # @return [String] attr_accessor :chain_name @@ -32464,6 +32512,21 @@ module Google # @return [String] attr_accessor :description + # URLs to networkservices.HttpFilter resources enabled for xDS clients using + # this configuration. For example, https://networkservices.googleapis.com/beta/ + # projects/project/locations/locationhttpFilters/httpFilter Only filters that + # handle outbound connection and stream events may be specified. These filters + # work in conjunction with a default set of HTTP filters that may already be + # configured by Traffic Director. Traffic Director will determine the final + # location of these filters within xDS configuration based on the name of the + # HTTP filter. If Traffic Director positions multiple filters at the same + # location, those filters will be in the same order as specified in this list. + # httpFilters only applies for loadbalancers with loadBalancingScheme set to + # INTERNAL_SELF_MANAGED. See ForwardingRule for more details. + # Corresponds to the JSON property `httpFilters` + # @return [Array] + attr_accessor :http_filters + # [Output Only] The unique identifier for the resource. This identifier is # defined by the server. # Corresponds to the JSON property `id` @@ -32564,6 +32627,7 @@ module Google @authorization_policy = args[:authorization_policy] if args.key?(:authorization_policy) @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) @description = args[:description] if args.key?(:description) + @http_filters = args[:http_filters] if args.key?(:http_filters) @id = args[:id] if args.key?(:id) @kind = args[:kind] if args.key?(:kind) @name = args[:name] if args.key?(:name) diff --git a/generated/google/apis/compute_beta/representations.rb b/generated/google/apis/compute_beta/representations.rb index 511f87245..78f19f579 100644 --- a/generated/google/apis/compute_beta/representations.rb +++ b/generated/google/apis/compute_beta/representations.rb @@ -7610,6 +7610,9 @@ module Google property :kind, as: 'kind' property :label_fingerprint, :base64 => true, as: 'labelFingerprint' hash :labels, as: 'labels' + property :last_start_timestamp, as: 'lastStartTimestamp' + property :last_stop_timestamp, as: 'lastStopTimestamp' + property :last_suspended_timestamp, as: 'lastSuspendedTimestamp' property :machine_type, as: 'machineType' property :metadata, as: 'metadata', class: Google::Apis::ComputeBeta::Metadata, decorator: Google::Apis::ComputeBeta::Metadata::Representation @@ -12924,6 +12927,7 @@ module Google property :authorization_policy, as: 'authorizationPolicy' property :creation_timestamp, as: 'creationTimestamp' property :description, as: 'description' + collection :http_filters, as: 'httpFilters' property :id, :numeric_string => true, as: 'id' property :kind, as: 'kind' property :name, as: 'name' diff --git a/generated/google/apis/compute_beta/service.rb b/generated/google/apis/compute_beta/service.rb index 33ffeb21c..59deb2b6f 100644 --- a/generated/google/apis/compute_beta/service.rb +++ b/generated/google/apis/compute_beta/service.rb @@ -10735,9 +10735,9 @@ module Google end # Retrieves a list of resources that refer to the VM instance specified in the - # request. For example, if the VM instance is part of a managed instance group, - # the referrers list includes the managed instance group. For more information, - # read Viewing Referrers to VM Instances. + # request. For example, if the VM instance is part of a managed or unmanaged + # instance group, the referrers list includes the instance group. For more + # information, read Viewing referrers to VM instances. # @param [String] project # Project ID for this request. # @param [String] zone diff --git a/generated/google/apis/compute_v1.rb b/generated/google/apis/compute_v1.rb index 102faddab..daa9ddc03 100644 --- a/generated/google/apis/compute_v1.rb +++ b/generated/google/apis/compute_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/compute/docs/reference/latest/ module ComputeV1 VERSION = 'V1' - REVISION = '20200901' + REVISION = '20200910' # 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_v1/classes.rb b/generated/google/apis/compute_v1/classes.rb index 69fa8f37c..f73963f85 100644 --- a/generated/google/apis/compute_v1/classes.rb +++ b/generated/google/apis/compute_v1/classes.rb @@ -2171,9 +2171,9 @@ module Google # The target value of the metric that autoscaler should maintain. 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 compute. - # googleapis.com/instance/network/received_bytes_count. The autoscaler will work - # to keep this value constant for each of the instances. + # 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. # Corresponds to the JSON property `utilizationTarget` # @return [Float] attr_accessor :utilization_target @@ -7057,11 +7057,11 @@ module Google attr_accessor :subnetwork # The URL of the target resource to receive the matched traffic. For regional - # forwarding rules, this target must live in the same region as the forwarding + # forwarding rules, this target must be in the same region as the forwarding # rule. For global forwarding rules, this target must be a global load balancing # resource. The forwarded traffic must be of a type appropriate to the target - # object. For INTERNAL_SELF_MANAGED load balancing, only targetHttpProxy and - # targetGrpcProxy are valid, not targetHttpsProxy. + # object. For more information, see the "Target" column in [Port specifications]( + # /load-balancing/docs/forwarding-rule-concepts#ip_address_specifications). # Corresponds to the JSON property `target` # @return [String] attr_accessor :target @@ -10579,6 +10579,21 @@ module Google # @return [Hash] attr_accessor :labels + # [Output Only] Last start timestamp in RFC3339 text format. + # Corresponds to the JSON property `lastStartTimestamp` + # @return [String] + attr_accessor :last_start_timestamp + + # [Output Only] Last stop timestamp in RFC3339 text format. + # Corresponds to the JSON property `lastStopTimestamp` + # @return [String] + attr_accessor :last_stop_timestamp + + # [Output Only] Last suspended timestamp in RFC3339 text format. + # Corresponds to the JSON property `lastSuspendedTimestamp` + # @return [String] + attr_accessor :last_suspended_timestamp + # Full or partial URL of the machine type resource to use for this instance, in # the format: zones/zone/machineTypes/machine-type. This is provided by the # client when the instance is created. For example, the following is a valid @@ -10681,7 +10696,8 @@ module Google # [Output Only] The status of the instance. One of the following values: # PROVISIONING, STAGING, RUNNING, STOPPING, SUSPENDING, SUSPENDED, REPAIRING, - # and TERMINATED. + # and TERMINATED. For more information about the status of the instance, see + # Instance life cycle. # Corresponds to the JSON property `status` # @return [String] attr_accessor :status @@ -10724,6 +10740,9 @@ module Google @kind = args[:kind] if args.key?(:kind) @label_fingerprint = args[:label_fingerprint] if args.key?(:label_fingerprint) @labels = args[:labels] if args.key?(:labels) + @last_start_timestamp = args[:last_start_timestamp] if args.key?(:last_start_timestamp) + @last_stop_timestamp = args[:last_stop_timestamp] if args.key?(:last_stop_timestamp) + @last_suspended_timestamp = args[:last_suspended_timestamp] if args.key?(:last_suspended_timestamp) @machine_type = args[:machine_type] if args.key?(:machine_type) @metadata = args[:metadata] if args.key?(:metadata) @min_cpu_platform = args[:min_cpu_platform] if args.key?(:min_cpu_platform) @@ -18408,7 +18427,8 @@ module Google class NodeGroupAutoscalingPolicy include Google::Apis::Core::Hashable - # The maximum number of nodes that the group should have. + # The maximum number of nodes that the group should have. Must be set if + # autoscaling is enabled. Maximum value allowed is 100. # Corresponds to the JSON property `maxNodes` # @return [Fixnum] attr_accessor :max_nodes diff --git a/generated/google/apis/compute_v1/representations.rb b/generated/google/apis/compute_v1/representations.rb index 317f634f5..2dd38c9be 100644 --- a/generated/google/apis/compute_v1/representations.rb +++ b/generated/google/apis/compute_v1/representations.rb @@ -7181,6 +7181,9 @@ module Google property :kind, as: 'kind' property :label_fingerprint, :base64 => true, as: 'labelFingerprint' hash :labels, as: 'labels' + property :last_start_timestamp, as: 'lastStartTimestamp' + property :last_stop_timestamp, as: 'lastStopTimestamp' + property :last_suspended_timestamp, as: 'lastSuspendedTimestamp' property :machine_type, as: 'machineType' property :metadata, as: 'metadata', class: Google::Apis::ComputeV1::Metadata, decorator: Google::Apis::ComputeV1::Metadata::Representation diff --git a/generated/google/apis/compute_v1/service.rb b/generated/google/apis/compute_v1/service.rb index 6864a1e1f..dab76c683 100644 --- a/generated/google/apis/compute_v1/service.rb +++ b/generated/google/apis/compute_v1/service.rb @@ -9647,9 +9647,9 @@ module Google end # Retrieves a list of resources that refer to the VM instance specified in the - # request. For example, if the VM instance is part of a managed instance group, - # the referrers list includes the managed instance group. For more information, - # read Viewing Referrers to VM Instances. + # request. For example, if the VM instance is part of a managed or unmanaged + # instance group, the referrers list includes the instance group. For more + # information, read Viewing referrers to VM instances. # @param [String] project # Project ID for this request. # @param [String] zone