Autogenerated update (2018-07-03)
Update: - serviceusage_v1 - serviceusage_v1beta1 - spanner_v1 - speech_v1 - texttospeech_v1beta1
This commit is contained in:
parent
80900907f7
commit
0f1c5322bc
|
@ -71050,6 +71050,9 @@
|
||||||
"/serviceusage:v1/BackendRule/deadline": deadline
|
"/serviceusage:v1/BackendRule/deadline": deadline
|
||||||
"/serviceusage:v1/BackendRule/minDeadline": min_deadline
|
"/serviceusage:v1/BackendRule/minDeadline": min_deadline
|
||||||
"/serviceusage:v1/BackendRule/selector": selector
|
"/serviceusage:v1/BackendRule/selector": selector
|
||||||
|
"/serviceusage:v1/BatchEnableServicesRequest": batch_enable_services_request
|
||||||
|
"/serviceusage:v1/BatchEnableServicesRequest/serviceIds": service_ids
|
||||||
|
"/serviceusage:v1/BatchEnableServicesRequest/serviceIds/service_id": service_id
|
||||||
"/serviceusage:v1/BatchEnableServicesResponse": batch_enable_services_response
|
"/serviceusage:v1/BatchEnableServicesResponse": batch_enable_services_response
|
||||||
"/serviceusage:v1/BatchEnableServicesResponse/failures": failures
|
"/serviceusage:v1/BatchEnableServicesResponse/failures": failures
|
||||||
"/serviceusage:v1/BatchEnableServicesResponse/failures/failure": failure
|
"/serviceusage:v1/BatchEnableServicesResponse/failures/failure": failure
|
||||||
|
@ -71092,6 +71095,7 @@
|
||||||
"/serviceusage:v1/CustomHttpPattern/kind": kind
|
"/serviceusage:v1/CustomHttpPattern/kind": kind
|
||||||
"/serviceusage:v1/CustomHttpPattern/path": path
|
"/serviceusage:v1/CustomHttpPattern/path": path
|
||||||
"/serviceusage:v1/DisableServiceRequest": disable_service_request
|
"/serviceusage:v1/DisableServiceRequest": disable_service_request
|
||||||
|
"/serviceusage:v1/DisableServiceRequest/disableDependentServices": disable_dependent_services
|
||||||
"/serviceusage:v1/DisableServiceResponse": disable_service_response
|
"/serviceusage:v1/DisableServiceResponse": disable_service_response
|
||||||
"/serviceusage:v1/DisableServiceResponse/service": service
|
"/serviceusage:v1/DisableServiceResponse/service": service
|
||||||
"/serviceusage:v1/Documentation": documentation
|
"/serviceusage:v1/Documentation": documentation
|
||||||
|
@ -71188,6 +71192,9 @@
|
||||||
"/serviceusage:v1/GoogleApiService/types/type": type
|
"/serviceusage:v1/GoogleApiService/types/type": type
|
||||||
"/serviceusage:v1/GoogleApiService/usage": usage
|
"/serviceusage:v1/GoogleApiService/usage": usage
|
||||||
"/serviceusage:v1/GoogleApiService/visibility": visibility
|
"/serviceusage:v1/GoogleApiService/visibility": visibility
|
||||||
|
"/serviceusage:v1/GoogleApiServiceusageV1OperationMetadata": google_api_serviceusage_v1_operation_metadata
|
||||||
|
"/serviceusage:v1/GoogleApiServiceusageV1OperationMetadata/resourceNames": resource_names
|
||||||
|
"/serviceusage:v1/GoogleApiServiceusageV1OperationMetadata/resourceNames/resource_name": resource_name
|
||||||
"/serviceusage:v1/GoogleApiServiceusageV1Service": google_api_serviceusage_v1_service
|
"/serviceusage:v1/GoogleApiServiceusageV1Service": google_api_serviceusage_v1_service
|
||||||
"/serviceusage:v1/GoogleApiServiceusageV1Service/config": config
|
"/serviceusage:v1/GoogleApiServiceusageV1Service/config": config
|
||||||
"/serviceusage:v1/GoogleApiServiceusageV1Service/name": name
|
"/serviceusage:v1/GoogleApiServiceusageV1Service/name": name
|
||||||
|
@ -71204,6 +71211,9 @@
|
||||||
"/serviceusage:v1/GoogleApiServiceusageV1ServiceConfig/quota": quota
|
"/serviceusage:v1/GoogleApiServiceusageV1ServiceConfig/quota": quota
|
||||||
"/serviceusage:v1/GoogleApiServiceusageV1ServiceConfig/title": title
|
"/serviceusage:v1/GoogleApiServiceusageV1ServiceConfig/title": title
|
||||||
"/serviceusage:v1/GoogleApiServiceusageV1ServiceConfig/usage": usage
|
"/serviceusage:v1/GoogleApiServiceusageV1ServiceConfig/usage": usage
|
||||||
|
"/serviceusage:v1/GoogleApiServiceusageV1beta1OperationMetadata": google_api_serviceusage_v1beta1_operation_metadata
|
||||||
|
"/serviceusage:v1/GoogleApiServiceusageV1beta1OperationMetadata/resourceNames": resource_names
|
||||||
|
"/serviceusage:v1/GoogleApiServiceusageV1beta1OperationMetadata/resourceNames/resource_name": resource_name
|
||||||
"/serviceusage:v1/Http": http
|
"/serviceusage:v1/Http": http
|
||||||
"/serviceusage:v1/Http/fullyDecodeReservedExpansion": fully_decode_reserved_expansion
|
"/serviceusage:v1/Http/fullyDecodeReservedExpansion": fully_decode_reserved_expansion
|
||||||
"/serviceusage:v1/Http/rules": rules
|
"/serviceusage:v1/Http/rules": rules
|
||||||
|
@ -71237,6 +71247,10 @@
|
||||||
"/serviceusage:v1/ListOperationsResponse/nextPageToken": next_page_token
|
"/serviceusage:v1/ListOperationsResponse/nextPageToken": next_page_token
|
||||||
"/serviceusage:v1/ListOperationsResponse/operations": operations
|
"/serviceusage:v1/ListOperationsResponse/operations": operations
|
||||||
"/serviceusage:v1/ListOperationsResponse/operations/operation": operation
|
"/serviceusage:v1/ListOperationsResponse/operations/operation": operation
|
||||||
|
"/serviceusage:v1/ListServicesResponse": list_services_response
|
||||||
|
"/serviceusage:v1/ListServicesResponse/nextPageToken": next_page_token
|
||||||
|
"/serviceusage:v1/ListServicesResponse/services": services
|
||||||
|
"/serviceusage:v1/ListServicesResponse/services/service": service
|
||||||
"/serviceusage:v1/LogDescriptor": log_descriptor
|
"/serviceusage:v1/LogDescriptor": log_descriptor
|
||||||
"/serviceusage:v1/LogDescriptor/description": description
|
"/serviceusage:v1/LogDescriptor/description": description
|
||||||
"/serviceusage:v1/LogDescriptor/displayName": display_name
|
"/serviceusage:v1/LogDescriptor/displayName": display_name
|
||||||
|
@ -71436,12 +71450,19 @@
|
||||||
"/serviceusage:v1/serviceusage.operations.list/name": name
|
"/serviceusage:v1/serviceusage.operations.list/name": name
|
||||||
"/serviceusage:v1/serviceusage.operations.list/pageSize": page_size
|
"/serviceusage:v1/serviceusage.operations.list/pageSize": page_size
|
||||||
"/serviceusage:v1/serviceusage.operations.list/pageToken": page_token
|
"/serviceusage:v1/serviceusage.operations.list/pageToken": page_token
|
||||||
|
"/serviceusage:v1/serviceusage.services.batchEnable": batch_enable_services
|
||||||
|
"/serviceusage:v1/serviceusage.services.batchEnable/parent": parent
|
||||||
"/serviceusage:v1/serviceusage.services.disable": disable_service
|
"/serviceusage:v1/serviceusage.services.disable": disable_service
|
||||||
"/serviceusage:v1/serviceusage.services.disable/name": name
|
"/serviceusage:v1/serviceusage.services.disable/name": name
|
||||||
"/serviceusage:v1/serviceusage.services.enable": enable_service
|
"/serviceusage:v1/serviceusage.services.enable": enable_service
|
||||||
"/serviceusage:v1/serviceusage.services.enable/name": name
|
"/serviceusage:v1/serviceusage.services.enable/name": name
|
||||||
"/serviceusage:v1/serviceusage.services.get": get_service
|
"/serviceusage:v1/serviceusage.services.get": get_service
|
||||||
"/serviceusage:v1/serviceusage.services.get/name": name
|
"/serviceusage:v1/serviceusage.services.get/name": name
|
||||||
|
"/serviceusage:v1/serviceusage.services.list": list_services
|
||||||
|
"/serviceusage:v1/serviceusage.services.list/filter": filter
|
||||||
|
"/serviceusage:v1/serviceusage.services.list/pageSize": page_size
|
||||||
|
"/serviceusage:v1/serviceusage.services.list/pageToken": page_token
|
||||||
|
"/serviceusage:v1/serviceusage.services.list/parent": parent
|
||||||
"/serviceusage:v1/serviceusage.services.listEnabled": list_service_enabled
|
"/serviceusage:v1/serviceusage.services.listEnabled": list_service_enabled
|
||||||
"/serviceusage:v1/serviceusage.services.listEnabled/pageSize": page_size
|
"/serviceusage:v1/serviceusage.services.listEnabled/pageSize": page_size
|
||||||
"/serviceusage:v1/serviceusage.services.listEnabled/pageToken": page_token
|
"/serviceusage:v1/serviceusage.services.listEnabled/pageToken": page_token
|
||||||
|
@ -71632,6 +71653,9 @@
|
||||||
"/serviceusage:v1beta1/GoogleApiService/types/type": type
|
"/serviceusage:v1beta1/GoogleApiService/types/type": type
|
||||||
"/serviceusage:v1beta1/GoogleApiService/usage": usage
|
"/serviceusage:v1beta1/GoogleApiService/usage": usage
|
||||||
"/serviceusage:v1beta1/GoogleApiService/visibility": visibility
|
"/serviceusage:v1beta1/GoogleApiService/visibility": visibility
|
||||||
|
"/serviceusage:v1beta1/GoogleApiServiceusageV1OperationMetadata": google_api_serviceusage_v1_operation_metadata
|
||||||
|
"/serviceusage:v1beta1/GoogleApiServiceusageV1OperationMetadata/resourceNames": resource_names
|
||||||
|
"/serviceusage:v1beta1/GoogleApiServiceusageV1OperationMetadata/resourceNames/resource_name": resource_name
|
||||||
"/serviceusage:v1beta1/GoogleApiServiceusageV1Service": google_api_serviceusage_v1_service
|
"/serviceusage:v1beta1/GoogleApiServiceusageV1Service": google_api_serviceusage_v1_service
|
||||||
"/serviceusage:v1beta1/GoogleApiServiceusageV1Service/config": config
|
"/serviceusage:v1beta1/GoogleApiServiceusageV1Service/config": config
|
||||||
"/serviceusage:v1beta1/GoogleApiServiceusageV1Service/name": name
|
"/serviceusage:v1beta1/GoogleApiServiceusageV1Service/name": name
|
||||||
|
@ -71648,6 +71672,9 @@
|
||||||
"/serviceusage:v1beta1/GoogleApiServiceusageV1ServiceConfig/quota": quota
|
"/serviceusage:v1beta1/GoogleApiServiceusageV1ServiceConfig/quota": quota
|
||||||
"/serviceusage:v1beta1/GoogleApiServiceusageV1ServiceConfig/title": title
|
"/serviceusage:v1beta1/GoogleApiServiceusageV1ServiceConfig/title": title
|
||||||
"/serviceusage:v1beta1/GoogleApiServiceusageV1ServiceConfig/usage": usage
|
"/serviceusage:v1beta1/GoogleApiServiceusageV1ServiceConfig/usage": usage
|
||||||
|
"/serviceusage:v1beta1/GoogleApiServiceusageV1beta1OperationMetadata": google_api_serviceusage_v1beta1_operation_metadata
|
||||||
|
"/serviceusage:v1beta1/GoogleApiServiceusageV1beta1OperationMetadata/resourceNames": resource_names
|
||||||
|
"/serviceusage:v1beta1/GoogleApiServiceusageV1beta1OperationMetadata/resourceNames/resource_name": resource_name
|
||||||
"/serviceusage:v1beta1/Http": http
|
"/serviceusage:v1beta1/Http": http
|
||||||
"/serviceusage:v1beta1/Http/fullyDecodeReservedExpansion": fully_decode_reserved_expansion
|
"/serviceusage:v1beta1/Http/fullyDecodeReservedExpansion": fully_decode_reserved_expansion
|
||||||
"/serviceusage:v1beta1/Http/rules": rules
|
"/serviceusage:v1beta1/Http/rules": rules
|
||||||
|
@ -78420,6 +78447,8 @@
|
||||||
"/testing:v1/testing.testEnvironmentCatalog.get/projectId": project_id
|
"/testing:v1/testing.testEnvironmentCatalog.get/projectId": project_id
|
||||||
"/texttospeech:v1beta1/AudioConfig": audio_config
|
"/texttospeech:v1beta1/AudioConfig": audio_config
|
||||||
"/texttospeech:v1beta1/AudioConfig/audioEncoding": audio_encoding
|
"/texttospeech:v1beta1/AudioConfig/audioEncoding": audio_encoding
|
||||||
|
"/texttospeech:v1beta1/AudioConfig/effectsProfileId": effects_profile_id
|
||||||
|
"/texttospeech:v1beta1/AudioConfig/effectsProfileId/effects_profile_id": effects_profile_id
|
||||||
"/texttospeech:v1beta1/AudioConfig/pitch": pitch
|
"/texttospeech:v1beta1/AudioConfig/pitch": pitch
|
||||||
"/texttospeech:v1beta1/AudioConfig/sampleRateHertz": sample_rate_hertz
|
"/texttospeech:v1beta1/AudioConfig/sampleRateHertz": sample_rate_hertz
|
||||||
"/texttospeech:v1beta1/AudioConfig/speakingRate": speaking_rate
|
"/texttospeech:v1beta1/AudioConfig/speakingRate": speaking_rate
|
||||||
|
|
|
@ -27,11 +27,14 @@ module Google
|
||||||
# @see https://cloud.google.com/service-usage/
|
# @see https://cloud.google.com/service-usage/
|
||||||
module ServiceusageV1
|
module ServiceusageV1
|
||||||
VERSION = 'V1'
|
VERSION = 'V1'
|
||||||
REVISION = '20180627'
|
REVISION = '20180630'
|
||||||
|
|
||||||
# View and manage your data across Google Cloud Platform services
|
# View and manage your data across Google Cloud Platform services
|
||||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
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
|
# Manage your Google API service configuration
|
||||||
AUTH_SERVICE_MANAGEMENT = 'https://www.googleapis.com/auth/service.management'
|
AUTH_SERVICE_MANAGEMENT = 'https://www.googleapis.com/auth/service.management'
|
||||||
end
|
end
|
||||||
|
|
|
@ -443,6 +443,34 @@ module Google
|
||||||
end
|
end
|
||||||
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.
|
# Response message for the `BatchEnableServices` method.
|
||||||
# This response message is assigned to the `response` field of the returned
|
# This response message is assigned to the `response` field of the returned
|
||||||
# Operation when that operation is done.
|
# Operation when that operation is done.
|
||||||
|
@ -754,6 +782,30 @@ module Google
|
||||||
end
|
end
|
||||||
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.
|
# Response message for the `DisableService` method.
|
||||||
# This response message is assigned to the `response` field of the returned
|
# This response message is assigned to the `response` field of the returned
|
||||||
# Operation when that operation is done.
|
# Operation when that operation is done.
|
||||||
|
@ -937,7 +989,7 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
#
|
# Provides error messages for the failing services.
|
||||||
class EnableFailure
|
class EnableFailure
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
@ -962,6 +1014,19 @@ module Google
|
||||||
end
|
end
|
||||||
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.
|
# Response message for the `EnableService` method.
|
||||||
# This response message is assigned to the `response` field of the returned
|
# This response message is assigned to the `response` field of the returned
|
||||||
# Operation when that operation is done.
|
# Operation when that operation is done.
|
||||||
|
@ -1677,6 +1742,26 @@ module Google
|
||||||
end
|
end
|
||||||
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.
|
# A service that is available for use by the consumer.
|
||||||
class GoogleApiServiceusageV1Service
|
class GoogleApiServiceusageV1Service
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
@ -1881,6 +1966,26 @@ module Google
|
||||||
end
|
end
|
||||||
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
|
# Defines the HTTP configuration for an API service. It contains a list of
|
||||||
# HttpRule, each specifying the mapping of an RPC method
|
# HttpRule, each specifying the mapping of an RPC method
|
||||||
# to one or more HTTP REST API methods.
|
# to one or more HTTP REST API methods.
|
||||||
|
@ -2289,6 +2394,32 @@ module Google
|
||||||
end
|
end
|
||||||
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:
|
# A description of a log type. Example in YAML format:
|
||||||
# - name: library.googleapis.com/activity_history
|
# - name: library.googleapis.com/activity_history
|
||||||
# description: The history of borrowing and returning library items.
|
# description: The history of borrowing and returning library items.
|
||||||
|
|
|
@ -76,6 +76,12 @@ module Google
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class BatchEnableServicesRequest
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
class BatchEnableServicesResponse
|
class BatchEnableServicesResponse
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
@ -136,6 +142,12 @@ module Google
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class DisableServiceRequest
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
class DisableServiceResponse
|
class DisableServiceResponse
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
@ -166,6 +178,12 @@ module Google
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class EnableServiceRequest
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
class EnableServiceResponse
|
class EnableServiceResponse
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
@ -208,6 +226,12 @@ module Google
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class GoogleApiServiceusageV1OperationMetadata
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
class GoogleApiServiceusageV1Service
|
class GoogleApiServiceusageV1Service
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
@ -220,6 +244,12 @@ module Google
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class GoogleApiServiceusageV1beta1OperationMetadata
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
class Http
|
class Http
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
@ -244,6 +274,12 @@ module Google
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class ListServicesResponse
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
class LogDescriptor
|
class LogDescriptor
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
@ -515,6 +551,13 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class BatchEnableServicesRequest
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :service_ids, as: 'serviceIds'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
class BatchEnableServicesResponse
|
class BatchEnableServicesResponse
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
@ -598,6 +641,13 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class DisableServiceRequest
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :disable_dependent_services, as: 'disableDependentServices'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
class DisableServiceResponse
|
class DisableServiceResponse
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
@ -642,6 +692,12 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class EnableServiceRequest
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
class EnableServiceResponse
|
class EnableServiceResponse
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
@ -767,6 +823,13 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class GoogleApiServiceusageV1OperationMetadata
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :resource_names, as: 'resourceNames'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
class GoogleApiServiceusageV1Service
|
class GoogleApiServiceusageV1Service
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
@ -798,6 +861,13 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class GoogleApiServiceusageV1beta1OperationMetadata
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :resource_names, as: 'resourceNames'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
class Http
|
class Http
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
@ -850,6 +920,15 @@ module Google
|
||||||
end
|
end
|
||||||
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
|
class LogDescriptor
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
|
|
@ -202,6 +202,214 @@ module Google
|
||||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
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
|
protected
|
||||||
|
|
||||||
|
|
|
@ -27,7 +27,7 @@ module Google
|
||||||
# @see https://cloud.google.com/service-usage/
|
# @see https://cloud.google.com/service-usage/
|
||||||
module ServiceusageV1beta1
|
module ServiceusageV1beta1
|
||||||
VERSION = 'V1beta1'
|
VERSION = 'V1beta1'
|
||||||
REVISION = '20180621'
|
REVISION = '20180630'
|
||||||
|
|
||||||
# View and manage your data across Google Cloud Platform services
|
# View and manage your data across Google Cloud Platform services
|
||||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||||
|
|
|
@ -965,7 +965,7 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
#
|
# Provides error messages for the failing services.
|
||||||
class EnableFailure
|
class EnableFailure
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
@ -1718,6 +1718,26 @@ module Google
|
||||||
end
|
end
|
||||||
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.
|
# A service that is available for use by the consumer.
|
||||||
class GoogleApiServiceusageV1Service
|
class GoogleApiServiceusageV1Service
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
@ -1922,6 +1942,26 @@ module Google
|
||||||
end
|
end
|
||||||
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
|
# Defines the HTTP configuration for an API service. It contains a list of
|
||||||
# HttpRule, each specifying the mapping of an RPC method
|
# HttpRule, each specifying the mapping of an RPC method
|
||||||
# to one or more HTTP REST API methods.
|
# to one or more HTTP REST API methods.
|
||||||
|
|
|
@ -220,6 +220,12 @@ module Google
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class GoogleApiServiceusageV1OperationMetadata
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
class GoogleApiServiceusageV1Service
|
class GoogleApiServiceusageV1Service
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
@ -232,6 +238,12 @@ module Google
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class GoogleApiServiceusageV1beta1OperationMetadata
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
class Http
|
class Http
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
@ -810,6 +822,13 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class GoogleApiServiceusageV1OperationMetadata
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :resource_names, as: 'resourceNames'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
class GoogleApiServiceusageV1Service
|
class GoogleApiServiceusageV1Service
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
@ -841,6 +860,13 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class GoogleApiServiceusageV1beta1OperationMetadata
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :resource_names, as: 'resourceNames'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
class Http
|
class Http
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
||||||
# @see https://cloud.google.com/spanner/
|
# @see https://cloud.google.com/spanner/
|
||||||
module SpannerV1
|
module SpannerV1
|
||||||
VERSION = 'V1'
|
VERSION = 'V1'
|
||||||
REVISION = '20180511'
|
REVISION = '20180625'
|
||||||
|
|
||||||
# View and manage your data across Google Cloud Platform services
|
# View and manage your data across Google Cloud Platform services
|
||||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
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.
|
# 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
|
module SpeechV1
|
||||||
VERSION = 'V1'
|
VERSION = 'V1'
|
||||||
REVISION = '20180614'
|
REVISION = '20180629'
|
||||||
|
|
||||||
# View and manage your data across Google Cloud Platform services
|
# View and manage your data across Google Cloud Platform services
|
||||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||||
|
|
|
@ -30,7 +30,7 @@ module Google
|
||||||
# Speech = Google::Apis::SpeechV1 # Alias the module
|
# Speech = Google::Apis::SpeechV1 # Alias the module
|
||||||
# service = Speech::SpeechService.new
|
# 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
|
class SpeechService < Google::Apis::Core::BaseService
|
||||||
# @return [String]
|
# @return [String]
|
||||||
# API key. Your API key identifies your project and provides you with API access,
|
# 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/
|
# @see https://cloud.google.com/text-to-speech/
|
||||||
module TexttospeechV1beta1
|
module TexttospeechV1beta1
|
||||||
VERSION = 'V1beta1'
|
VERSION = 'V1beta1'
|
||||||
REVISION = '20180601'
|
REVISION = '20180629'
|
||||||
|
|
||||||
# View and manage your data across Google Cloud Platform services
|
# View and manage your data across Google Cloud Platform services
|
||||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||||
|
|
|
@ -31,6 +31,13 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :audio_encoding
|
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
|
# 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
|
# semitones from the original pitch. -20 means decrease 20 semitones from the
|
||||||
# original pitch.
|
# original pitch.
|
||||||
|
@ -75,6 +82,7 @@ module Google
|
||||||
# Update properties of this object
|
# Update properties of this object
|
||||||
def update!(**args)
|
def update!(**args)
|
||||||
@audio_encoding = args[:audio_encoding] if args.key?(:audio_encoding)
|
@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)
|
@pitch = args[:pitch] if args.key?(:pitch)
|
||||||
@sample_rate_hertz = args[:sample_rate_hertz] if args.key?(:sample_rate_hertz)
|
@sample_rate_hertz = args[:sample_rate_hertz] if args.key?(:sample_rate_hertz)
|
||||||
@speaking_rate = args[:speaking_rate] if args.key?(:speaking_rate)
|
@speaking_rate = args[:speaking_rate] if args.key?(:speaking_rate)
|
||||||
|
|
|
@ -68,6 +68,7 @@ module Google
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
property :audio_encoding, as: 'audioEncoding'
|
property :audio_encoding, as: 'audioEncoding'
|
||||||
|
collection :effects_profile_id, as: 'effectsProfileId'
|
||||||
property :pitch, as: 'pitch'
|
property :pitch, as: 'pitch'
|
||||||
property :sample_rate_hertz, as: 'sampleRateHertz'
|
property :sample_rate_hertz, as: 'sampleRateHertz'
|
||||||
property :speaking_rate, as: 'speakingRate'
|
property :speaking_rate, as: 'speakingRate'
|
||||||
|
|
Loading…
Reference in New Issue