Autogenerated update (2018-07-03)
Update: - serviceusage_v1 - serviceusage_v1beta1 - spanner_v1 - speech_v1 - texttospeech_v1beta1
This commit is contained in:
1 parent
80900907f7
commit
0f1c5322bc
14 files changed
+534
-9
No files matched your search
@@ -27,11 +27,14 @@ module Google
|
||||
# @see https://cloud.google.com/service-usage/
|
||||
module ServiceusageV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20180627'
|
||||
REVISION = '20180630'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
||||
# View your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM_READ_ONLY = 'https://www.googleapis.com/auth/cloud-platform.read-only'
|
||||
|
||||
# Manage your Google API service configuration
|
||||
AUTH_SERVICE_MANAGEMENT = 'https://www.googleapis.com/auth/service.management'
|
||||
end
|
||||
|
||||
@@ -443,6 +443,34 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
# Request message for the `BatchEnableServices` method.
|
||||
class BatchEnableServicesRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The identifiers of the services to enable on the project.
|
||||
# A valid identifier would be:
|
||||
# serviceusage.googleapis.com
|
||||
# Enabling services requires that each service is public or is shared with
|
||||
# the user enabling the service.
|
||||
# Two or more services must be specified. To enable a single service,
|
||||
# use the `EnableService` method instead.
|
||||
# A single request can enable a maximum of 20 services at a time. If more
|
||||
# than 20 services are specified, the request will fail, and no state changes
|
||||
# will occur.
|
||||
# Corresponds to the JSON property `serviceIds`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :service_ids
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@service_ids = args[:service_ids] if args.key?(:service_ids)
|
||||
end
|
||||
end
|
||||
|
||||
# Response message for the `BatchEnableServices` method.
|
||||
# This response message is assigned to the `response` field of the returned
|
||||
# Operation when that operation is done.
|
||||
@@ -754,6 +782,30 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
# Request message for the `DisableService` method.
|
||||
class DisableServiceRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Indicates if services that are enabled and which depend on this service
|
||||
# should also be disabled. If not set, an error will be generated if any
|
||||
# enabled services depend on the service to be disabled. When set, the
|
||||
# service, and any enabled services that depend on it, will be disabled
|
||||
# together.
|
||||
# Corresponds to the JSON property `disableDependentServices`
|
||||
# @return [Boolean]
|
||||
attr_accessor :disable_dependent_services
|
||||
alias_method :disable_dependent_services?, :disable_dependent_services
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@disable_dependent_services = args[:disable_dependent_services] if args.key?(:disable_dependent_services)
|
||||
end
|
||||
end
|
||||
|
||||
# Response message for the `DisableService` method.
|
||||
# This response message is assigned to the `response` field of the returned
|
||||
# Operation when that operation is done.
|
||||
@@ -937,7 +989,7 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
# Provides error messages for the failing services.
|
||||
class EnableFailure
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
@@ -962,6 +1014,19 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
# Request message for the `EnableService` method.
|
||||
class EnableServiceRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
end
|
||||
end
|
||||
|
||||
# Response message for the `EnableService` method.
|
||||
# This response message is assigned to the `response` field of the returned
|
||||
# Operation when that operation is done.
|
||||
@@ -1677,6 +1742,26 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
# The operation metadata returned for the batchend services operation.
|
||||
class GoogleApiServiceusageV1OperationMetadata
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The full name of the resources that this operation is directly
|
||||
# associated with.
|
||||
# Corresponds to the JSON property `resourceNames`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :resource_names
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@resource_names = args[:resource_names] if args.key?(:resource_names)
|
||||
end
|
||||
end
|
||||
|
||||
# A service that is available for use by the consumer.
|
||||
class GoogleApiServiceusageV1Service
|
||||
include Google::Apis::Core::Hashable
|
||||
@@ -1881,6 +1966,26 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
# The operation metadata returned for the batchend services operation.
|
||||
class GoogleApiServiceusageV1beta1OperationMetadata
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The full name of the resources that this operation is directly
|
||||
# associated with.
|
||||
# Corresponds to the JSON property `resourceNames`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :resource_names
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@resource_names = args[:resource_names] if args.key?(:resource_names)
|
||||
end
|
||||
end
|
||||
|
||||
# Defines the HTTP configuration for an API service. It contains a list of
|
||||
# HttpRule, each specifying the mapping of an RPC method
|
||||
# to one or more HTTP REST API methods.
|
||||
@@ -2289,6 +2394,32 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
# Response message for the `ListServices` method.
|
||||
class ListServicesResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Token that can be passed to `ListServices` to resume a paginated
|
||||
# query.
|
||||
# Corresponds to the JSON property `nextPageToken`
|
||||
# @return [String]
|
||||
attr_accessor :next_page_token
|
||||
|
||||
# The available services for the requested project.
|
||||
# Corresponds to the JSON property `services`
|
||||
# @return [Array<Google::Apis::ServiceusageV1::GoogleApiServiceusageV1Service>]
|
||||
attr_accessor :services
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
||||
@services = args[:services] if args.key?(:services)
|
||||
end
|
||||
end
|
||||
|
||||
# A description of a log type. Example in YAML format:
|
||||
# - name: library.googleapis.com/activity_history
|
||||
# description: The history of borrowing and returning library items.
|
||||
|
||||
@@ -76,6 +76,12 @@ module Google
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class BatchEnableServicesRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class BatchEnableServicesResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
@@ -136,6 +142,12 @@ module Google
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class DisableServiceRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class DisableServiceResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
@@ -166,6 +178,12 @@ module Google
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class EnableServiceRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class EnableServiceResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
@@ -208,6 +226,12 @@ module Google
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GoogleApiServiceusageV1OperationMetadata
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GoogleApiServiceusageV1Service
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
@@ -220,6 +244,12 @@ module Google
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GoogleApiServiceusageV1beta1OperationMetadata
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Http
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
@@ -244,6 +274,12 @@ module Google
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ListServicesResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class LogDescriptor
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
@@ -515,6 +551,13 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
class BatchEnableServicesRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :service_ids, as: 'serviceIds'
|
||||
end
|
||||
end
|
||||
|
||||
class BatchEnableServicesResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
@@ -598,6 +641,13 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
class DisableServiceRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :disable_dependent_services, as: 'disableDependentServices'
|
||||
end
|
||||
end
|
||||
|
||||
class DisableServiceResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
@@ -642,6 +692,12 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
class EnableServiceRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
end
|
||||
end
|
||||
|
||||
class EnableServiceResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
@@ -767,6 +823,13 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
class GoogleApiServiceusageV1OperationMetadata
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :resource_names, as: 'resourceNames'
|
||||
end
|
||||
end
|
||||
|
||||
class GoogleApiServiceusageV1Service
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
@@ -798,6 +861,13 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
class GoogleApiServiceusageV1beta1OperationMetadata
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :resource_names, as: 'resourceNames'
|
||||
end
|
||||
end
|
||||
|
||||
class Http
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
@@ -850,6 +920,15 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
class ListServicesResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :next_page_token, as: 'nextPageToken'
|
||||
collection :services, as: 'services', class: Google::Apis::ServiceusageV1::GoogleApiServiceusageV1Service, decorator: Google::Apis::ServiceusageV1::GoogleApiServiceusageV1Service::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class LogDescriptor
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
||||
@@ -202,6 +202,214 @@ module Google
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Enable multiple services on a project. The operation is atomic: if enabling
|
||||
# any service fails, then the entire batch fails, and no state changes occur.
|
||||
# Operation<response: BatchEnableServicesResponse>
|
||||
# @param [String] parent
|
||||
# Parent to enable services on.
|
||||
# An example name would be:
|
||||
# `projects/123`
|
||||
# where `123` is the project number (not project ID).
|
||||
# The `BatchEnableServices` method currently only supports projects.
|
||||
# @param [Google::Apis::ServiceusageV1::BatchEnableServicesRequest] batch_enable_services_request_object
|
||||
# @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::ServiceusageV1::Operation] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ServiceusageV1::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 batch_enable_services(parent, batch_enable_services_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1/{+parent}/services:batchEnable', options)
|
||||
command.request_representation = Google::Apis::ServiceusageV1::BatchEnableServicesRequest::Representation
|
||||
command.request_object = batch_enable_services_request_object
|
||||
command.response_representation = Google::Apis::ServiceusageV1::Operation::Representation
|
||||
command.response_class = Google::Apis::ServiceusageV1::Operation
|
||||
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
|
||||
|
||||
# Disable a service so that it can no longer be used with a project.
|
||||
# This prevents unintended usage that may cause unexpected billing
|
||||
# charges or security leaks.
|
||||
# It is not valid to call the disable method on a service that is not
|
||||
# currently enabled. Callers will receive a `FAILED_PRECONDITION` status if
|
||||
# the target service is not currently enabled.
|
||||
# Operation<response: DisableServiceResponse>
|
||||
# @param [String] name
|
||||
# Name of the consumer and service to disable the service on.
|
||||
# The enable and disable methods currently only support projects.
|
||||
# An example name would be:
|
||||
# `projects/123/services/serviceusage.googleapis.com`
|
||||
# where `123` is the project number (not project ID).
|
||||
# @param [Google::Apis::ServiceusageV1::DisableServiceRequest] disable_service_request_object
|
||||
# @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::ServiceusageV1::Operation] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ServiceusageV1::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 disable_service(name, disable_service_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1/{+name}:disable', options)
|
||||
command.request_representation = Google::Apis::ServiceusageV1::DisableServiceRequest::Representation
|
||||
command.request_object = disable_service_request_object
|
||||
command.response_representation = Google::Apis::ServiceusageV1::Operation::Representation
|
||||
command.response_class = Google::Apis::ServiceusageV1::Operation
|
||||
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
|
||||
|
||||
# Enable a service so that it can be used with a project.
|
||||
# Operation<response: EnableServiceResponse>
|
||||
# @param [String] name
|
||||
# Name of the consumer and service to enable the service on.
|
||||
# The `EnableService` and `DisableService` methods currently only support
|
||||
# projects.
|
||||
# Enabling a service requires that the service is public or is shared with
|
||||
# the user enabling the service.
|
||||
# An example name would be:
|
||||
# `projects/123/services/serviceusage.googleapis.com`
|
||||
# where `123` is the project number (not project ID).
|
||||
# @param [Google::Apis::ServiceusageV1::EnableServiceRequest] enable_service_request_object
|
||||
# @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::ServiceusageV1::Operation] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ServiceusageV1::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 enable_service(name, enable_service_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1/{+name}:enable', options)
|
||||
command.request_representation = Google::Apis::ServiceusageV1::EnableServiceRequest::Representation
|
||||
command.request_object = enable_service_request_object
|
||||
command.response_representation = Google::Apis::ServiceusageV1::Operation::Representation
|
||||
command.response_class = Google::Apis::ServiceusageV1::Operation
|
||||
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
|
||||
|
||||
# Returns the service configuration and enabled state for a given service.
|
||||
# @param [String] name
|
||||
# Name of the consumer and service to get the `ConsumerState` for.
|
||||
# An example name would be:
|
||||
# `projects/123/services/serviceusage.googleapis.com`
|
||||
# where `123` is the project number (not 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::ServiceusageV1::GoogleApiServiceusageV1Service] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ServiceusageV1::GoogleApiServiceusageV1Service]
|
||||
#
|
||||
# @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_service(name, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1/{+name}', options)
|
||||
command.response_representation = Google::Apis::ServiceusageV1::GoogleApiServiceusageV1Service::Representation
|
||||
command.response_class = Google::Apis::ServiceusageV1::GoogleApiServiceusageV1Service
|
||||
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
|
||||
|
||||
# List all services available to the specified project, and the current
|
||||
# state of those services with respect to the project. The list includes
|
||||
# all public services, all services for which the calling user has the
|
||||
# `servicemanagement.services.bind` permission, and all services that have
|
||||
# already been enabled on the project. The list can be filtered to
|
||||
# only include services in a specific state, for example to only include
|
||||
# services enabled on the project.
|
||||
# @param [String] parent
|
||||
# Parent to search for services on.
|
||||
# An example name would be:
|
||||
# `projects/123`
|
||||
# where `123` is the project number (not project ID).
|
||||
# @param [String] filter
|
||||
# Only list services that conform to the given filter.
|
||||
# The allowed filter strings are `state:ENABLED` and `state:DISABLED`.
|
||||
# @param [Fixnum] page_size
|
||||
# Requested size of the next page of data.
|
||||
# Requested page size cannot exceed 200.
|
||||
# If not set, the default page size is 50.
|
||||
# @param [String] page_token
|
||||
# Token identifying which result to start with, which is returned by a
|
||||
# previous list call.
|
||||
# @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::ServiceusageV1::ListServicesResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ServiceusageV1::ListServicesResponse]
|
||||
#
|
||||
# @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 list_services(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1/{+parent}/services', options)
|
||||
command.response_representation = Google::Apis::ServiceusageV1::ListServicesResponse::Representation
|
||||
command.response_class = Google::Apis::ServiceusageV1::ListServicesResponse
|
||||
command.params['parent'] = parent unless parent.nil?
|
||||
command.query['filter'] = filter unless filter.nil?
|
||||
command.query['pageSize'] = page_size unless page_size.nil?
|
||||
command.query['pageToken'] = page_token unless page_token.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
protected
|
||||
|
||||
|
||||
@@ -27,7 +27,7 @@ module Google
|
||||
# @see https://cloud.google.com/service-usage/
|
||||
module ServiceusageV1beta1
|
||||
VERSION = 'V1beta1'
|
||||
REVISION = '20180621'
|
||||
REVISION = '20180630'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
||||
@@ -965,7 +965,7 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
# Provides error messages for the failing services.
|
||||
class EnableFailure
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
@@ -1718,6 +1718,26 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
# The operation metadata returned for the batchend services operation.
|
||||
class GoogleApiServiceusageV1OperationMetadata
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The full name of the resources that this operation is directly
|
||||
# associated with.
|
||||
# Corresponds to the JSON property `resourceNames`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :resource_names
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@resource_names = args[:resource_names] if args.key?(:resource_names)
|
||||
end
|
||||
end
|
||||
|
||||
# A service that is available for use by the consumer.
|
||||
class GoogleApiServiceusageV1Service
|
||||
include Google::Apis::Core::Hashable
|
||||
@@ -1922,6 +1942,26 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
# The operation metadata returned for the batchend services operation.
|
||||
class GoogleApiServiceusageV1beta1OperationMetadata
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The full name of the resources that this operation is directly
|
||||
# associated with.
|
||||
# Corresponds to the JSON property `resourceNames`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :resource_names
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@resource_names = args[:resource_names] if args.key?(:resource_names)
|
||||
end
|
||||
end
|
||||
|
||||
# Defines the HTTP configuration for an API service. It contains a list of
|
||||
# HttpRule, each specifying the mapping of an RPC method
|
||||
# to one or more HTTP REST API methods.
|
||||
|
||||
@@ -220,6 +220,12 @@ module Google
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GoogleApiServiceusageV1OperationMetadata
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GoogleApiServiceusageV1Service
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
@@ -232,6 +238,12 @@ module Google
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GoogleApiServiceusageV1beta1OperationMetadata
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Http
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
@@ -810,6 +822,13 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
class GoogleApiServiceusageV1OperationMetadata
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :resource_names, as: 'resourceNames'
|
||||
end
|
||||
end
|
||||
|
||||
class GoogleApiServiceusageV1Service
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
@@ -841,6 +860,13 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
class GoogleApiServiceusageV1beta1OperationMetadata
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :resource_names, as: 'resourceNames'
|
||||
end
|
||||
end
|
||||
|
||||
class Http
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
||||
@@ -26,7 +26,7 @@ module Google
|
||||
# @see https://cloud.google.com/spanner/
|
||||
module SpannerV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20180511'
|
||||
REVISION = '20180625'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
||||
@@ -22,10 +22,10 @@ module Google
|
||||
#
|
||||
# Converts audio to text by applying powerful neural network models.
|
||||
#
|
||||
# @see https://cloud.google.com/speech/
|
||||
# @see https://cloud.google.com/speech-to-text/docs/quickstart-protocol
|
||||
module SpeechV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20180614'
|
||||
REVISION = '20180629'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
||||
@@ -30,7 +30,7 @@ module Google
|
||||
# Speech = Google::Apis::SpeechV1 # Alias the module
|
||||
# service = Speech::SpeechService.new
|
||||
#
|
||||
# @see https://cloud.google.com/speech/
|
||||
# @see https://cloud.google.com/speech-to-text/docs/quickstart-protocol
|
||||
class SpeechService < Google::Apis::Core::BaseService
|
||||
# @return [String]
|
||||
# API key. Your API key identifies your project and provides you with API access,
|
||||
|
||||
@@ -25,7 +25,7 @@ module Google
|
||||
# @see https://cloud.google.com/text-to-speech/
|
||||
module TexttospeechV1beta1
|
||||
VERSION = 'V1beta1'
|
||||
REVISION = '20180601'
|
||||
REVISION = '20180629'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
||||
@@ -31,6 +31,13 @@ module Google
|
||||
# @return [String]
|
||||
attr_accessor :audio_encoding
|
||||
|
||||
# An identifier which selects 'audio effects' profiles that are applied on
|
||||
# (post synthesized) text to speech.
|
||||
# Effects are applied on top of each other in the order they are given.
|
||||
# Corresponds to the JSON property `effectsProfileId`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :effects_profile_id
|
||||
|
||||
# Optional speaking pitch, in the range [-20.0, 20.0]. 20 means increase 20
|
||||
# semitones from the original pitch. -20 means decrease 20 semitones from the
|
||||
# original pitch.
|
||||
@@ -75,6 +82,7 @@ module Google
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@audio_encoding = args[:audio_encoding] if args.key?(:audio_encoding)
|
||||
@effects_profile_id = args[:effects_profile_id] if args.key?(:effects_profile_id)
|
||||
@pitch = args[:pitch] if args.key?(:pitch)
|
||||
@sample_rate_hertz = args[:sample_rate_hertz] if args.key?(:sample_rate_hertz)
|
||||
@speaking_rate = args[:speaking_rate] if args.key?(:speaking_rate)
|
||||
|
||||
@@ -68,6 +68,7 @@ module Google
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :audio_encoding, as: 'audioEncoding'
|
||||
collection :effects_profile_id, as: 'effectsProfileId'
|
||||
property :pitch, as: 'pitch'
|
||||
property :sample_rate_hertz, as: 'sampleRateHertz'
|
||||
property :speaking_rate, as: 'speakingRate'
|
||||
|
||||
Reference in new issue
Block a user