From 7519b3d8320e049d1aa090ebd6f201149761bfe1 Mon Sep 17 00:00:00 2001 From: Google APIs Date: Sun, 3 Nov 2019 00:37:28 +0000 Subject: [PATCH] Autogenerated update (2019-11-03) Update: - container_v1beta1 - servicecontrol_v1 --- generated/google/apis/container_v1beta1.rb | 2 +- .../google/apis/container_v1beta1/classes.rb | 33 ++++++++++++++++++- .../apis/container_v1beta1/representations.rb | 4 +++ generated/google/apis/servicecontrol_v1.rb | 2 +- .../google/apis/servicecontrol_v1/classes.rb | 11 ------- .../apis/servicecontrol_v1/representations.rb | 1 - 6 files changed, 38 insertions(+), 15 deletions(-) diff --git a/generated/google/apis/container_v1beta1.rb b/generated/google/apis/container_v1beta1.rb index 8b95dbe39..491a9f623 100644 --- a/generated/google/apis/container_v1beta1.rb +++ b/generated/google/apis/container_v1beta1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/container-engine/ module ContainerV1beta1 VERSION = 'V1beta1' - REVISION = '20191021' + REVISION = '20191024' # 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/container_v1beta1/classes.rb b/generated/google/apis/container_v1beta1/classes.rb index e9fd341dc..e4cce3c29 100644 --- a/generated/google/apis/container_v1beta1/classes.rb +++ b/generated/google/apis/container_v1beta1/classes.rb @@ -165,6 +165,12 @@ module Google class AutoprovisioningNodePoolDefaults include Google::Apis::Core::Hashable + # NodeManagement defines the set of node management services turned on for the + # node pool. + # Corresponds to the JSON property `management` + # @return [Google::Apis::ContainerV1beta1::NodeManagement] + attr_accessor :management + # Scopes that are used by NAP when creating node pools. If oauth_scopes are # specified, service_account should be empty. # Corresponds to the JSON property `oauthScopes` @@ -177,14 +183,38 @@ module Google # @return [String] attr_accessor :service_account + # These upgrade settings control the level of parallelism and the level of + # disruption caused by an upgrade. + # maxUnavailable controls the number of nodes that can be simultaneously + # unavailable. + # maxSurge controls the number of additional nodes that can be added to the + # node pool temporarily for the time of the upgrade to increase the number of + # available nodes. + # (maxUnavailable + maxSurge) determines the level of parallelism (how many + # nodes are being upgraded at the same time). + # Note: upgrades inevitably introduce some disruption since workloads need to + # be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0, + # this holds true. (Disruption stays within the limits of + # PodDisruptionBudget, if it is configured.) + # Consider a hypothetical node pool with 5 nodes having maxSurge=2, + # maxUnavailable=1. This means the upgrade process upgrades 3 nodes + # simultaneously. It creates 2 additional (upgraded) nodes, then it brings + # down 3 old (not yet upgraded) nodes at the same time. This ensures that + # there are always at least 4 nodes available. + # Corresponds to the JSON property `upgradeSettings` + # @return [Google::Apis::ContainerV1beta1::UpgradeSettings] + attr_accessor :upgrade_settings + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) + @management = args[:management] if args.key?(:management) @oauth_scopes = args[:oauth_scopes] if args.key?(:oauth_scopes) @service_account = args[:service_account] if args.key?(:service_account) + @upgrade_settings = args[:upgrade_settings] if args.key?(:upgrade_settings) end end @@ -563,7 +593,8 @@ module Google attr_accessor :monitoring_service # The name of this cluster. The name must be unique within this project - # and zone, and can be up to 40 characters with the following restrictions: + # and location (e.g. zone or region), and can be up to 40 characters with + # the following restrictions: # * Lowercase letters, numbers, and hyphens only. # * Must start with a letter. # * Must end with a number or a letter. diff --git a/generated/google/apis/container_v1beta1/representations.rb b/generated/google/apis/container_v1beta1/representations.rb index 19f13ce9d..0ac3c2b1f 100644 --- a/generated/google/apis/container_v1beta1/representations.rb +++ b/generated/google/apis/container_v1beta1/representations.rb @@ -631,8 +631,12 @@ module Google class AutoprovisioningNodePoolDefaults # @private class Representation < Google::Apis::Core::JsonRepresentation + property :management, as: 'management', class: Google::Apis::ContainerV1beta1::NodeManagement, decorator: Google::Apis::ContainerV1beta1::NodeManagement::Representation + collection :oauth_scopes, as: 'oauthScopes' property :service_account, as: 'serviceAccount' + property :upgrade_settings, as: 'upgradeSettings', class: Google::Apis::ContainerV1beta1::UpgradeSettings, decorator: Google::Apis::ContainerV1beta1::UpgradeSettings::Representation + end end diff --git a/generated/google/apis/servicecontrol_v1.rb b/generated/google/apis/servicecontrol_v1.rb index 538f6af2e..632d2825b 100644 --- a/generated/google/apis/servicecontrol_v1.rb +++ b/generated/google/apis/servicecontrol_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/service-control/ module ServicecontrolV1 VERSION = 'V1' - REVISION = '20191003' + REVISION = '20191027' # 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/servicecontrol_v1/classes.rb b/generated/google/apis/servicecontrol_v1/classes.rb index 285e32ea6..1079c9b02 100644 --- a/generated/google/apis/servicecontrol_v1/classes.rb +++ b/generated/google/apis/servicecontrol_v1/classes.rb @@ -1453,16 +1453,6 @@ module Google # @return [Google::Apis::ServicecontrolV1::QuotaProperties] attr_accessor :quota_properties - # DO NOT USE. This field is deprecated, use "resources" field instead. - # The resource name of the parent of a resource in the resource hierarchy. - # This can be in one of the following formats: - # - “projects/” - # - “folders/” - # - “organizations/” - # Corresponds to the JSON property `resourceContainer` - # @return [String] - attr_accessor :resource_container - # The resources that are involved in the operation. # The maximum supported number of entries in this field is 100. # Corresponds to the JSON property `resources` @@ -1496,7 +1486,6 @@ module Google @operation_id = args[:operation_id] if args.key?(:operation_id) @operation_name = args[:operation_name] if args.key?(:operation_name) @quota_properties = args[:quota_properties] if args.key?(:quota_properties) - @resource_container = args[:resource_container] if args.key?(:resource_container) @resources = args[:resources] if args.key?(:resources) @start_time = args[:start_time] if args.key?(:start_time) @user_labels = args[:user_labels] if args.key?(:user_labels) diff --git a/generated/google/apis/servicecontrol_v1/representations.rb b/generated/google/apis/servicecontrol_v1/representations.rb index b8677f9a7..247b57ee8 100644 --- a/generated/google/apis/servicecontrol_v1/representations.rb +++ b/generated/google/apis/servicecontrol_v1/representations.rb @@ -597,7 +597,6 @@ module Google property :operation_name, as: 'operationName' property :quota_properties, as: 'quotaProperties', class: Google::Apis::ServicecontrolV1::QuotaProperties, decorator: Google::Apis::ServicecontrolV1::QuotaProperties::Representation - property :resource_container, as: 'resourceContainer' collection :resources, as: 'resources', class: Google::Apis::ServicecontrolV1::ResourceInfo, decorator: Google::Apis::ServicecontrolV1::ResourceInfo::Representation property :start_time, as: 'startTime'