Autogenerated update (2019-01-12)

Update:
- bigtableadmin_v2
- container_v1beta1
- websecurityscanner_v1alpha
This commit is contained in:
Google APIs committed 2019-01-12 00:37:06 +00:00
1 parent dca115029f
commit 12e2c8676a
11 files changed
+431 -3

No files matched your search

+1 -1
View File
@@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/bigtable/
module BigtableadminV2
VERSION = 'V2'
REVISION = '20181203'
REVISION = '20190106'
# Administer your Cloud Bigtable tables and clusters
AUTH_BIGTABLE_ADMIN = 'https://www.googleapis.com/auth/bigtable.admin'
@@ -399,6 +399,17 @@ module Google
# @return [String]
attr_accessor :request_time
# Keys: the full `name` of each table that existed in the instance when
# CreateCluster was first called, i.e.
# `projects/<project>/instances/<instance>/tables/<table>`. Any table added
# to the instance by a later API call will be created in the new cluster by
# that API call, not this one.
# Values: information on how much of a table's data has been copied to the
# newly-created cluster so far.
# Corresponds to the JSON property `tables`
# @return [Hash<String,Google::Apis::BigtableadminV2::TableProgress>]
attr_accessor :tables
def initialize(**args)
update!(**args)
end
@@ -408,6 +419,7 @@ module Google
@finish_time = args[:finish_time] if args.key?(:finish_time)
@original_request = args[:original_request] if args.key?(:original_request)
@request_time = args[:request_time] if args.key?(:request_time)
@tables = args[:tables] if args.key?(:tables)
end
end
@@ -1519,6 +1531,39 @@ module Google
end
end
# Progress info for copying a table's data to the new cluster.
class TableProgress
include Google::Apis::Core::Hashable
# Estimate of the number of bytes copied so far for this table.
# This will eventually reach 'estimated_size_bytes' unless the table copy
# is CANCELLED.
# Corresponds to the JSON property `estimatedCopiedBytes`
# @return [Fixnum]
attr_accessor :estimated_copied_bytes
# Estimate of the size of the table to be copied.
# Corresponds to the JSON property `estimatedSizeBytes`
# @return [Fixnum]
attr_accessor :estimated_size_bytes
#
# Corresponds to the JSON property `state`
# @return [String]
attr_accessor :state
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@estimated_copied_bytes = args[:estimated_copied_bytes] if args.key?(:estimated_copied_bytes)
@estimated_size_bytes = args[:estimated_size_bytes] if args.key?(:estimated_size_bytes)
@state = args[:state] if args.key?(:state)
end
end
# Request message for `TestIamPermissions` method.
class TestIamPermissionsRequest
include Google::Apis::Core::Hashable
@@ -256,6 +256,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class TableProgress
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class TestIamPermissionsRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
@@ -379,6 +385,8 @@ module Google
property :original_request, as: 'originalRequest', class: Google::Apis::BigtableadminV2::CreateClusterRequest, decorator: Google::Apis::BigtableadminV2::CreateClusterRequest::Representation
property :request_time, as: 'requestTime'
hash :tables, as: 'tables', class: Google::Apis::BigtableadminV2::TableProgress, decorator: Google::Apis::BigtableadminV2::TableProgress::Representation
end
end
@@ -651,6 +659,15 @@ module Google
end
end
class TableProgress
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :estimated_copied_bytes, :numeric_string => true, as: 'estimatedCopiedBytes'
property :estimated_size_bytes, :numeric_string => true, as: 'estimatedSizeBytes'
property :state, as: 'state'
end
end
class TestIamPermissionsRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
+1 -1
View File
@@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/container-engine/
module ContainerV1beta1
VERSION = 'V1beta1'
REVISION = '20181113'
REVISION = '20181211'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -343,6 +343,11 @@ module Google
# @return [String]
attr_accessor :current_node_version
# Configuration of etcd encryption.
# Corresponds to the JSON property `databaseEncryption`
# @return [Google::Apis::ContainerV1beta1::DatabaseEncryption]
attr_accessor :database_encryption
# Constraints applied to pods.
# Corresponds to the JSON property `defaultMaxPodsConstraint`
# @return [Google::Apis::ContainerV1beta1::MaxPodsConstraint]
@@ -644,6 +649,7 @@ module Google
@current_master_version = args[:current_master_version] if args.key?(:current_master_version)
@current_node_count = args[:current_node_count] if args.key?(:current_node_count)
@current_node_version = args[:current_node_version] if args.key?(:current_node_version)
@database_encryption = args[:database_encryption] if args.key?(:database_encryption)
@default_max_pods_constraint = args[:default_max_pods_constraint] if args.key?(:default_max_pods_constraint)
@description = args[:description] if args.key?(:description)
@enable_kubernetes_alpha = args[:enable_kubernetes_alpha] if args.key?(:enable_kubernetes_alpha)
@@ -1037,6 +1043,32 @@ module Google
end
end
# Configuration of etcd encryption.
class DatabaseEncryption
include Google::Apis::Core::Hashable
# Name of CloudKMS key to use for the encryption of secrets in etcd.
# Ex. projects/my-project/locations/global/keyRings/my-ring/cryptoKeys/my-key
# Corresponds to the JSON property `keyName`
# @return [String]
attr_accessor :key_name
# Denotes the state of etcd encryption.
# Corresponds to the JSON property `state`
# @return [String]
attr_accessor :state
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@key_name = args[:key_name] if args.key?(:key_name)
@state = args[:state] if args.key?(:state)
end
end
# A generic empty message that you can re-use to avoid defining duplicated
# empty messages in your APIs. A typical example is to use it as the request
# or the response type of an API method. For instance:
@@ -1056,6 +1088,82 @@ module Google
end
end
# GetJSONWebKeysResponse is a valid JSON Web Key Set as specififed in rfc 7517
class GetJsonWebKeysResponse
include Google::Apis::Core::Hashable
# The public component of the keys used by the cluster to sign token
# requests.
# Corresponds to the JSON property `keys`
# @return [Array<Google::Apis::ContainerV1beta1::Jwk>]
attr_accessor :keys
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@keys = args[:keys] if args.key?(:keys)
end
end
# GetOpenIDConfigResponse is an OIDC discovery document for the cluster.
# See the OpenID Connect Discovery 1.0 specification for details.
class GetOpenIdConfigResponse
include Google::Apis::Core::Hashable
# NOLINT
# Corresponds to the JSON property `claims_supported`
# @return [Array<String>]
attr_accessor :claims_supported
# NOLINT
# Corresponds to the JSON property `grant_types`
# @return [Array<String>]
attr_accessor :grant_types
# NOLINT
# Corresponds to the JSON property `id_token_signing_alg_values_supported`
# @return [Array<String>]
attr_accessor :id_token_signing_alg_values_supported
# NOLINT
# Corresponds to the JSON property `issuer`
# @return [String]
attr_accessor :issuer
# NOLINT
# Corresponds to the JSON property `jwks_uri`
# @return [String]
attr_accessor :jwks_uri
# NOLINT
# Corresponds to the JSON property `response_types_supported`
# @return [Array<String>]
attr_accessor :response_types_supported
# NOLINT
# Corresponds to the JSON property `subject_types_supported`
# @return [Array<String>]
attr_accessor :subject_types_supported
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@claims_supported = args[:claims_supported] if args.key?(:claims_supported)
@grant_types = args[:grant_types] if args.key?(:grant_types)
@id_token_signing_alg_values_supported = args[:id_token_signing_alg_values_supported] if args.key?(:id_token_signing_alg_values_supported)
@issuer = args[:issuer] if args.key?(:issuer)
@jwks_uri = args[:jwks_uri] if args.key?(:jwks_uri)
@response_types_supported = args[:response_types_supported] if args.key?(:response_types_supported)
@subject_types_supported = args[:subject_types_supported] if args.key?(:subject_types_supported)
end
end
# Configuration options for the horizontal pod autoscaling feature, which
# increases or decreases the number of replica pods a replication controller
# has based on the resource usage of the existing pods.
@@ -1285,6 +1393,75 @@ module Google
end
end
# Jwk is a JSON Web Key as specified in RFC 7517
class Jwk
include Google::Apis::Core::Hashable
# NOLINT
# Corresponds to the JSON property `alg`
# @return [String]
attr_accessor :alg
# NOLINT
# Corresponds to the JSON property `crv`
# @return [String]
attr_accessor :crv
# NOLINT
# Corresponds to the JSON property `e`
# @return [String]
attr_accessor :e
# NOLINT
# Corresponds to the JSON property `kid`
# @return [String]
attr_accessor :kid
# NOLINT
# Corresponds to the JSON property `kty`
# @return [String]
attr_accessor :kty
# Fields for RSA keys.
# NOLINT
# Corresponds to the JSON property `n`
# @return [String]
attr_accessor :n
# NOLINT
# Corresponds to the JSON property `use`
# @return [String]
attr_accessor :use
# Fields for ECDSA keys.
# NOLINT
# Corresponds to the JSON property `x`
# @return [String]
attr_accessor :x
# NOLINT
# Corresponds to the JSON property `y`
# @return [String]
attr_accessor :y
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@alg = args[:alg] if args.key?(:alg)
@crv = args[:crv] if args.key?(:crv)
@e = args[:e] if args.key?(:e)
@kid = args[:kid] if args.key?(:kid)
@kty = args[:kty] if args.key?(:kty)
@n = args[:n] if args.key?(:n)
@use = args[:use] if args.key?(:use)
@x = args[:x] if args.key?(:x)
@y = args[:y] if args.key?(:y)
end
end
# Configuration for the Kubernetes Dashboard.
class KubernetesDashboard
include Google::Apis::Core::Hashable
@@ -118,12 +118,30 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class DatabaseEncryption
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Empty
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GetJsonWebKeysResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GetOpenIdConfigResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class HorizontalPodAutoscaling
class Representation < Google::Apis::Core::JsonRepresentation; end
@@ -148,6 +166,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class Jwk
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class KubernetesDashboard
class Representation < Google::Apis::Core::JsonRepresentation; end
@@ -550,6 +574,8 @@ module Google
property :current_master_version, as: 'currentMasterVersion'
property :current_node_count, as: 'currentNodeCount'
property :current_node_version, as: 'currentNodeVersion'
property :database_encryption, as: 'databaseEncryption', class: Google::Apis::ContainerV1beta1::DatabaseEncryption, decorator: Google::Apis::ContainerV1beta1::DatabaseEncryption::Representation
property :default_max_pods_constraint, as: 'defaultMaxPodsConstraint', class: Google::Apis::ContainerV1beta1::MaxPodsConstraint, decorator: Google::Apis::ContainerV1beta1::MaxPodsConstraint::Representation
property :description, as: 'description'
@@ -686,12 +712,41 @@ module Google
end
end
class DatabaseEncryption
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :key_name, as: 'keyName'
property :state, as: 'state'
end
end
class Empty
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class GetJsonWebKeysResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :keys, as: 'keys', class: Google::Apis::ContainerV1beta1::Jwk, decorator: Google::Apis::ContainerV1beta1::Jwk::Representation
end
end
class GetOpenIdConfigResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :claims_supported, as: 'claims_supported'
collection :grant_types, as: 'grant_types'
collection :id_token_signing_alg_values_supported, as: 'id_token_signing_alg_values_supported'
property :issuer, as: 'issuer'
property :jwks_uri, as: 'jwks_uri'
collection :response_types_supported, as: 'response_types_supported'
collection :subject_types_supported, as: 'subject_types_supported'
end
end
class HorizontalPodAutoscaling
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@@ -733,6 +788,21 @@ module Google
end
end
class Jwk
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :alg, as: 'alg'
property :crv, as: 'crv'
property :e, as: 'e'
property :kid, as: 'kid'
property :kty, as: 'kty'
property :n, as: 'n'
property :use, as: 'use'
property :x, as: 'x'
property :y, as: 'y'
end
end
class KubernetesDashboard
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@@ -342,6 +342,40 @@ module Google
execute_or_queue_command(command, &block)
end
# GetJSONWebKeys gets the public component of the cluster signing keys in
# JSON Web Key format.
# This API is not yet intended for general use, and is not available for all
# clusters.
# @param [String] parent
# The cluster (project, location, cluster id) to get keys for. Specified in
# the format 'projects/*/locations/*/clusters/*'.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ContainerV1beta1::GetJsonWebKeysResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ContainerV1beta1::GetJsonWebKeysResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_project_location_cluster_jwks(parent, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta1/{+parent}/jwks', options)
command.response_representation = Google::Apis::ContainerV1beta1::GetJsonWebKeysResponse::Representation
command.response_class = Google::Apis::ContainerV1beta1::GetJsonWebKeysResponse
command.params['parent'] = parent unless parent.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Lists all clusters owned by a project in either the specified zone or all
# zones.
# @param [String] parent
@@ -1157,6 +1191,41 @@ module Google
execute_or_queue_command(command, &block)
end
# GetOpenIDConfig gets the OIDC discovery document for the cluster.
# See the OpenID Connect Discovery 1.0 specification for details.
# https://openid.net/specs/openid-connect-discovery-1_0.html
# This API is not yet intended for general use, and is not available for all
# clusters.
# @param [String] parent
# The cluster (project, location, cluster id) to get the discovery document
# for. Specified in the format 'projects/*/locations/*/clusters/*'.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ContainerV1beta1::GetOpenIdConfigResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ContainerV1beta1::GetOpenIdConfigResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_project_location_cluster_well_known_openid_configuration(parent, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta1/{+parent}/.well-known/openid-configuration', options)
command.response_representation = Google::Apis::ContainerV1beta1::GetOpenIdConfigResponse::Representation
command.response_class = Google::Apis::ContainerV1beta1::GetOpenIdConfigResponse
command.params['parent'] = parent unless parent.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Cancels the specified operation.
# @param [String] name
# The name (project, location, operation id) of the operation to cancel.
@@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/security-scanner/
module WebsecurityscannerV1alpha
VERSION = 'V1alpha'
REVISION = '20181024'
REVISION = '20190110'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -499,6 +499,7 @@ module Google
end
# A ScanConfig resource contains the configurations to launch a scan.
# next id: 12
class ScanConfig
include Google::Apis::Core::Hashable
@@ -519,6 +520,11 @@ module Google
# @return [String]
attr_accessor :display_name
# A ScanRun is a output-only resource representing an actual run of the scan.
# Corresponds to the JSON property `latestRun`
# @return [Google::Apis::WebsecurityscannerV1alpha::ScanRun]
attr_accessor :latest_run
# The maximum QPS during scanning. A valid value ranges from 5 to 20
# inclusively. If the field is unspecified or its value is set 0, server will
# default to 15. Other values outside of [5, 20] range will be rejected with
@@ -565,6 +571,7 @@ module Google
@authentication = args[:authentication] if args.key?(:authentication)
@blacklist_patterns = args[:blacklist_patterns] if args.key?(:blacklist_patterns)
@display_name = args[:display_name] if args.key?(:display_name)
@latest_run = args[:latest_run] if args.key?(:latest_run)
@max_qps = args[:max_qps] if args.key?(:max_qps)
@name = args[:name] if args.key?(:name)
@schedule = args[:schedule] if args.key?(:schedule)
@@ -304,6 +304,8 @@ module Google
collection :blacklist_patterns, as: 'blacklistPatterns'
property :display_name, as: 'displayName'
property :latest_run, as: 'latestRun', class: Google::Apis::WebsecurityscannerV1alpha::ScanRun, decorator: Google::Apis::WebsecurityscannerV1alpha::ScanRun::Representation
property :max_qps, as: 'maxQps'
property :name, as: 'name'
property :schedule, as: 'schedule', class: Google::Apis::WebsecurityscannerV1alpha::Schedule, decorator: Google::Apis::WebsecurityscannerV1alpha::Schedule::Representation