Autogenerated update (2020-03-07)

Update:
- accesscontextmanager_v1
- clouddebugger_v2
- dialogflow_v2
- dialogflow_v2beta1
- file_v1beta1
- iamcredentials_v1
- logging_v2
- run_v1
- run_v1alpha1
- serviceconsumermanagement_v1
- servicemanagement_v1
- servicenetworking_v1
- servicenetworking_v1beta
- serviceusage_v1
- serviceusage_v1beta1
- videointelligence_v1
- videointelligence_v1p3beta1
This commit is contained in:
Google APIs committed 2020-03-07 00:38:13 +00:00
1 parent ca464fe4f7
commit 90be148aa9
35 files changed
+1029 -318

No files matched your search

+84
View File
@@ -1776,6 +1776,90 @@ module Google
end
end
# Cloud Run fully managed: not supported
# Cloud Run on GKE: supported
# Namespace provides a scope for Names.
# Use of multiple namespaces is optional.
class Namespace
include Google::Apis::Core::Hashable
# k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta is metadata that all
# persisted resources must have, which includes all objects users must create.
# Corresponds to the JSON property `metadata`
# @return [Google::Apis::RunV1::ObjectMeta]
attr_accessor :metadata
# Cloud Run fully managed: not supported
# Cloud Run on GKE: supported
# NamespaceSpec describes the attributes on a Namespace.
# Corresponds to the JSON property `spec`
# @return [Google::Apis::RunV1::NamespaceSpec]
attr_accessor :spec
# Cloud Run fully managed: not supported
# Cloud Run on GKE: supported
# NamespaceStatus is information about the current status of a Namespace.
# Corresponds to the JSON property `status`
# @return [Google::Apis::RunV1::NamespaceStatus]
attr_accessor :status
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@metadata = args[:metadata] if args.key?(:metadata)
@spec = args[:spec] if args.key?(:spec)
@status = args[:status] if args.key?(:status)
end
end
# Cloud Run fully managed: not supported
# Cloud Run on GKE: supported
# NamespaceSpec describes the attributes on a Namespace.
class NamespaceSpec
include Google::Apis::Core::Hashable
# Finalizers is an opaque list of values that must be empty to permanently
# remove object from storage. More info:
# https://kubernetes.io/docs/tasks/administer-cluster/namespaces/
# Corresponds to the JSON property `finalizers`
# @return [Array<String>]
attr_accessor :finalizers
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@finalizers = args[:finalizers] if args.key?(:finalizers)
end
end
# Cloud Run fully managed: not supported
# Cloud Run on GKE: supported
# NamespaceStatus is information about the current status of a Namespace.
class NamespaceStatus
include Google::Apis::Core::Hashable
# Phase is the current lifecycle phase of the namespace.
# More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/
# Corresponds to the JSON property `phase`
# @return [String]
attr_accessor :phase
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@phase = args[:phase] if args.key?(:phase)
end
end
# k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta is metadata that all
# persisted resources must have, which includes all objects users must create.
class ObjectMeta
@@ -244,6 +244,24 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class Namespace
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class NamespaceSpec
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class NamespaceStatus
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ObjectMeta
class Representation < Google::Apis::Core::JsonRepresentation; end
@@ -830,6 +848,32 @@ module Google
end
end
class Namespace
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :metadata, as: 'metadata', class: Google::Apis::RunV1::ObjectMeta, decorator: Google::Apis::RunV1::ObjectMeta::Representation
property :spec, as: 'spec', class: Google::Apis::RunV1::NamespaceSpec, decorator: Google::Apis::RunV1::NamespaceSpec::Representation
property :status, as: 'status', class: Google::Apis::RunV1::NamespaceStatus, decorator: Google::Apis::RunV1::NamespaceStatus::Representation
end
end
class NamespaceSpec
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :finalizers, as: 'finalizers'
end
end
class NamespaceStatus
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :phase, as: 'phase'
end
end
class ObjectMeta
# @private
class Representation < Google::Apis::Core::JsonRepresentation
+138
View File
@@ -48,6 +48,75 @@ module Google
@batch_path = 'batch'
end
# Rpc to get information about a namespace.
# @param [String] name
# Required. The name of the namespace being retrieved. If needed, replace
# `namespace_id` with the project ID.
# @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::RunV1::Namespace] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::RunV1::Namespace]
#
# @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_api_v1_namespace(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'api/v1/{+name}', options)
command.response_representation = Google::Apis::RunV1::Namespace::Representation
command.response_class = Google::Apis::RunV1::Namespace
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Rpc to update a namespace.
# @param [String] name
# Required. The name of the namespace being retrieved. If needed, replace
# `namespace_id` with the project ID.
# @param [Google::Apis::RunV1::Namespace] namespace_object
# @param [String] update_mask
# Required. Indicates which fields in the provided namespace to update.
# This field is currently unused.
# @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::RunV1::Namespace] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::RunV1::Namespace]
#
# @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 patch_api_v1_namespace(name, namespace_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:patch, 'api/v1/{+name}', options)
command.request_representation = Google::Apis::RunV1::Namespace::Representation
command.request_object = namespace_object
command.response_representation = Google::Apis::RunV1::Namespace::Representation
command.response_class = Google::Apis::RunV1::Namespace
command.params['name'] = name unless name.nil?
command.query['updateMask'] = update_mask unless update_mask.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Creates a new secret.
# @param [String] parent
# Required. The project ID or project number in which this secret should
@@ -1216,6 +1285,75 @@ module Google
execute_or_queue_command(command, &block)
end
# Rpc to get information about a namespace.
# @param [String] name
# Required. The name of the namespace being retrieved. If needed, replace
# `namespace_id` with the project ID.
# @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::RunV1::Namespace] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::RunV1::Namespace]
#
# @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_namespace(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+name}', options)
command.response_representation = Google::Apis::RunV1::Namespace::Representation
command.response_class = Google::Apis::RunV1::Namespace
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Rpc to update a namespace.
# @param [String] name
# Required. The name of the namespace being retrieved. If needed, replace
# `namespace_id` with the project ID.
# @param [Google::Apis::RunV1::Namespace] namespace_object
# @param [String] update_mask
# Required. Indicates which fields in the provided namespace to update.
# This field is currently unused.
# @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::RunV1::Namespace] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::RunV1::Namespace]
#
# @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 patch_project_location_namespace(name, namespace_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:patch, 'v1/{+name}', options)
command.request_representation = Google::Apis::RunV1::Namespace::Representation
command.request_object = namespace_object
command.response_representation = Google::Apis::RunV1::Namespace::Representation
command.response_class = Google::Apis::RunV1::Namespace
command.params['name'] = name unless name.nil?
command.query['updateMask'] = update_mask unless update_mask.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Delete a revision.
# @param [String] name
# The name of the revision to delete.