Autogenerated update (2020-08-08)

Update:
- bigqueryreservation_v1alpha2
- cloudprofiler_v2
- displayvideo_v1
- dlp_v2
- logging_v2
- oslogin_v1alpha
- oslogin_v1beta
- pubsub_v1
- pubsublite_v1
- texttospeech_v1beta1
This commit is contained in:
Google APIs 2020-08-08 00:38:23 +00:00
parent 929dd28e95
commit 889330f35e
32 changed files with 3427 additions and 3425 deletions

View File

@ -104749,6 +104749,7 @@
"/logging:v2/LogBucket/createTime": create_time "/logging:v2/LogBucket/createTime": create_time
"/logging:v2/LogBucket/description": description "/logging:v2/LogBucket/description": description
"/logging:v2/LogBucket/lifecycleState": lifecycle_state "/logging:v2/LogBucket/lifecycleState": lifecycle_state
"/logging:v2/LogBucket/locked": locked
"/logging:v2/LogBucket/name": name "/logging:v2/LogBucket/name": name
"/logging:v2/LogBucket/retentionDays": retention_days "/logging:v2/LogBucket/retentionDays": retention_days
"/logging:v2/LogBucket/updateTime": update_time "/logging:v2/LogBucket/updateTime": update_time
@ -104814,6 +104815,8 @@
"/logging:v2/LogSink/destination": destination "/logging:v2/LogSink/destination": destination
"/logging:v2/LogSink/disabled": disabled "/logging:v2/LogSink/disabled": disabled
"/logging:v2/LogSink/endTime": end_time "/logging:v2/LogSink/endTime": end_time
"/logging:v2/LogSink/exclusions": exclusions
"/logging:v2/LogSink/exclusions/exclusion": exclusion
"/logging:v2/LogSink/filter": filter "/logging:v2/LogSink/filter": filter
"/logging:v2/LogSink/includeChildren": include_children "/logging:v2/LogSink/includeChildren": include_children
"/logging:v2/LogSink/name": name "/logging:v2/LogSink/name": name
@ -104899,6 +104902,7 @@
"/logging:v2/SourceReference": source_reference "/logging:v2/SourceReference": source_reference
"/logging:v2/SourceReference/repository": repository "/logging:v2/SourceReference/repository": repository
"/logging:v2/SourceReference/revisionId": revision_id "/logging:v2/SourceReference/revisionId": revision_id
"/logging:v2/UndeleteBucketRequest": undelete_bucket_request
"/logging:v2/WriteLogEntriesRequest": write_log_entries_request "/logging:v2/WriteLogEntriesRequest": write_log_entries_request
"/logging:v2/WriteLogEntriesRequest/dryRun": dry_run "/logging:v2/WriteLogEntriesRequest/dryRun": dry_run
"/logging:v2/WriteLogEntriesRequest/entries": entries "/logging:v2/WriteLogEntriesRequest/entries": entries
@ -104927,6 +104931,11 @@
"/logging:v2/logging.billingAccounts.exclusions.patch": patch_billing_account_exclusion "/logging:v2/logging.billingAccounts.exclusions.patch": patch_billing_account_exclusion
"/logging:v2/logging.billingAccounts.exclusions.patch/name": name "/logging:v2/logging.billingAccounts.exclusions.patch/name": name
"/logging:v2/logging.billingAccounts.exclusions.patch/updateMask": update_mask "/logging:v2/logging.billingAccounts.exclusions.patch/updateMask": update_mask
"/logging:v2/logging.billingAccounts.locations.buckets.create": create_billing_account_location_bucket
"/logging:v2/logging.billingAccounts.locations.buckets.create/bucketId": bucket_id
"/logging:v2/logging.billingAccounts.locations.buckets.create/parent": parent
"/logging:v2/logging.billingAccounts.locations.buckets.delete": delete_billing_account_location_bucket
"/logging:v2/logging.billingAccounts.locations.buckets.delete/name": name
"/logging:v2/logging.billingAccounts.locations.buckets.list": list_billing_account_location_buckets "/logging:v2/logging.billingAccounts.locations.buckets.list": list_billing_account_location_buckets
"/logging:v2/logging.billingAccounts.locations.buckets.list/pageSize": page_size "/logging:v2/logging.billingAccounts.locations.buckets.list/pageSize": page_size
"/logging:v2/logging.billingAccounts.locations.buckets.list/pageToken": page_token "/logging:v2/logging.billingAccounts.locations.buckets.list/pageToken": page_token
@ -104934,6 +104943,8 @@
"/logging:v2/logging.billingAccounts.locations.buckets.patch": patch_billing_account_location_bucket "/logging:v2/logging.billingAccounts.locations.buckets.patch": patch_billing_account_location_bucket
"/logging:v2/logging.billingAccounts.locations.buckets.patch/name": name "/logging:v2/logging.billingAccounts.locations.buckets.patch/name": name
"/logging:v2/logging.billingAccounts.locations.buckets.patch/updateMask": update_mask "/logging:v2/logging.billingAccounts.locations.buckets.patch/updateMask": update_mask
"/logging:v2/logging.billingAccounts.locations.buckets.undelete": undelete_billing_account_location_bucket
"/logging:v2/logging.billingAccounts.locations.buckets.undelete/name": name
"/logging:v2/logging.billingAccounts.logs.delete": delete_billing_account_log "/logging:v2/logging.billingAccounts.logs.delete": delete_billing_account_log
"/logging:v2/logging.billingAccounts.logs.delete/logName": log_name "/logging:v2/logging.billingAccounts.logs.delete/logName": log_name
"/logging:v2/logging.billingAccounts.logs.list": list_billing_account_logs "/logging:v2/logging.billingAccounts.logs.list": list_billing_account_logs
@ -104987,6 +104998,11 @@
"/logging:v2/logging.folders.exclusions.patch": patch_folder_exclusion "/logging:v2/logging.folders.exclusions.patch": patch_folder_exclusion
"/logging:v2/logging.folders.exclusions.patch/name": name "/logging:v2/logging.folders.exclusions.patch/name": name
"/logging:v2/logging.folders.exclusions.patch/updateMask": update_mask "/logging:v2/logging.folders.exclusions.patch/updateMask": update_mask
"/logging:v2/logging.folders.locations.buckets.create": create_folder_location_bucket
"/logging:v2/logging.folders.locations.buckets.create/bucketId": bucket_id
"/logging:v2/logging.folders.locations.buckets.create/parent": parent
"/logging:v2/logging.folders.locations.buckets.delete": delete_folder_location_bucket
"/logging:v2/logging.folders.locations.buckets.delete/name": name
"/logging:v2/logging.folders.locations.buckets.get": get_folder_location_bucket "/logging:v2/logging.folders.locations.buckets.get": get_folder_location_bucket
"/logging:v2/logging.folders.locations.buckets.get/name": name "/logging:v2/logging.folders.locations.buckets.get/name": name
"/logging:v2/logging.folders.locations.buckets.list": list_folder_location_buckets "/logging:v2/logging.folders.locations.buckets.list": list_folder_location_buckets
@ -104996,6 +105012,8 @@
"/logging:v2/logging.folders.locations.buckets.patch": patch_folder_location_bucket "/logging:v2/logging.folders.locations.buckets.patch": patch_folder_location_bucket
"/logging:v2/logging.folders.locations.buckets.patch/name": name "/logging:v2/logging.folders.locations.buckets.patch/name": name
"/logging:v2/logging.folders.locations.buckets.patch/updateMask": update_mask "/logging:v2/logging.folders.locations.buckets.patch/updateMask": update_mask
"/logging:v2/logging.folders.locations.buckets.undelete": undelete_folder_location_bucket
"/logging:v2/logging.folders.locations.buckets.undelete/name": name
"/logging:v2/logging.folders.logs.delete": delete_folder_log "/logging:v2/logging.folders.logs.delete": delete_folder_log
"/logging:v2/logging.folders.logs.delete/logName": log_name "/logging:v2/logging.folders.logs.delete/logName": log_name
"/logging:v2/logging.folders.logs.list": list_folder_logs "/logging:v2/logging.folders.logs.list": list_folder_logs
@ -105022,6 +105040,11 @@
"/logging:v2/logging.folders.sinks.update/uniqueWriterIdentity": unique_writer_identity "/logging:v2/logging.folders.sinks.update/uniqueWriterIdentity": unique_writer_identity
"/logging:v2/logging.folders.sinks.update/updateMask": update_mask "/logging:v2/logging.folders.sinks.update/updateMask": update_mask
"/logging:v2/logging.getCmekSettings/name": name "/logging:v2/logging.getCmekSettings/name": name
"/logging:v2/logging.locations.buckets.create": create_location_bucket
"/logging:v2/logging.locations.buckets.create/bucketId": bucket_id
"/logging:v2/logging.locations.buckets.create/parent": parent
"/logging:v2/logging.locations.buckets.delete": delete_location_bucket
"/logging:v2/logging.locations.buckets.delete/name": name
"/logging:v2/logging.locations.buckets.get": get_location_bucket "/logging:v2/logging.locations.buckets.get": get_location_bucket
"/logging:v2/logging.locations.buckets.get/name": name "/logging:v2/logging.locations.buckets.get/name": name
"/logging:v2/logging.locations.buckets.list": list_location_buckets "/logging:v2/logging.locations.buckets.list": list_location_buckets
@ -105031,6 +105054,8 @@
"/logging:v2/logging.locations.buckets.patch": patch_location_bucket "/logging:v2/logging.locations.buckets.patch": patch_location_bucket
"/logging:v2/logging.locations.buckets.patch/name": name "/logging:v2/logging.locations.buckets.patch/name": name
"/logging:v2/logging.locations.buckets.patch/updateMask": update_mask "/logging:v2/logging.locations.buckets.patch/updateMask": update_mask
"/logging:v2/logging.locations.buckets.undelete": undelete_location_bucket
"/logging:v2/logging.locations.buckets.undelete/name": name
"/logging:v2/logging.logs.delete": delete_log "/logging:v2/logging.logs.delete": delete_log
"/logging:v2/logging.logs.delete/logName": log_name "/logging:v2/logging.logs.delete/logName": log_name
"/logging:v2/logging.logs.list": list_logs "/logging:v2/logging.logs.list": list_logs
@ -105055,6 +105080,11 @@
"/logging:v2/logging.organizations.exclusions.patch/updateMask": update_mask "/logging:v2/logging.organizations.exclusions.patch/updateMask": update_mask
"/logging:v2/logging.organizations.getCmekSettings": get_organization_cmek_settings "/logging:v2/logging.organizations.getCmekSettings": get_organization_cmek_settings
"/logging:v2/logging.organizations.getCmekSettings/name": name "/logging:v2/logging.organizations.getCmekSettings/name": name
"/logging:v2/logging.organizations.locations.buckets.create": create_organization_location_bucket
"/logging:v2/logging.organizations.locations.buckets.create/bucketId": bucket_id
"/logging:v2/logging.organizations.locations.buckets.create/parent": parent
"/logging:v2/logging.organizations.locations.buckets.delete": delete_organization_location_bucket
"/logging:v2/logging.organizations.locations.buckets.delete/name": name
"/logging:v2/logging.organizations.locations.buckets.get": get_organization_location_bucket "/logging:v2/logging.organizations.locations.buckets.get": get_organization_location_bucket
"/logging:v2/logging.organizations.locations.buckets.get/name": name "/logging:v2/logging.organizations.locations.buckets.get/name": name
"/logging:v2/logging.organizations.locations.buckets.list": list_organization_location_buckets "/logging:v2/logging.organizations.locations.buckets.list": list_organization_location_buckets
@ -105064,6 +105094,8 @@
"/logging:v2/logging.organizations.locations.buckets.patch": patch_organization_location_bucket "/logging:v2/logging.organizations.locations.buckets.patch": patch_organization_location_bucket
"/logging:v2/logging.organizations.locations.buckets.patch/name": name "/logging:v2/logging.organizations.locations.buckets.patch/name": name
"/logging:v2/logging.organizations.locations.buckets.patch/updateMask": update_mask "/logging:v2/logging.organizations.locations.buckets.patch/updateMask": update_mask
"/logging:v2/logging.organizations.locations.buckets.undelete": undelete_organization_location_bucket
"/logging:v2/logging.organizations.locations.buckets.undelete/name": name
"/logging:v2/logging.organizations.logs.delete": delete_organization_log "/logging:v2/logging.organizations.logs.delete": delete_organization_log
"/logging:v2/logging.organizations.logs.delete/logName": log_name "/logging:v2/logging.organizations.logs.delete/logName": log_name
"/logging:v2/logging.organizations.logs.list": list_organization_logs "/logging:v2/logging.organizations.logs.list": list_organization_logs
@ -105105,6 +105137,11 @@
"/logging:v2/logging.projects.exclusions.patch": patch_project_exclusion "/logging:v2/logging.projects.exclusions.patch": patch_project_exclusion
"/logging:v2/logging.projects.exclusions.patch/name": name "/logging:v2/logging.projects.exclusions.patch/name": name
"/logging:v2/logging.projects.exclusions.patch/updateMask": update_mask "/logging:v2/logging.projects.exclusions.patch/updateMask": update_mask
"/logging:v2/logging.projects.locations.buckets.create": create_project_location_bucket
"/logging:v2/logging.projects.locations.buckets.create/bucketId": bucket_id
"/logging:v2/logging.projects.locations.buckets.create/parent": parent
"/logging:v2/logging.projects.locations.buckets.delete": delete_project_location_bucket
"/logging:v2/logging.projects.locations.buckets.delete/name": name
"/logging:v2/logging.projects.locations.buckets.get": get_project_location_bucket "/logging:v2/logging.projects.locations.buckets.get": get_project_location_bucket
"/logging:v2/logging.projects.locations.buckets.get/name": name "/logging:v2/logging.projects.locations.buckets.get/name": name
"/logging:v2/logging.projects.locations.buckets.list": list_project_location_buckets "/logging:v2/logging.projects.locations.buckets.list": list_project_location_buckets
@ -105114,6 +105151,8 @@
"/logging:v2/logging.projects.locations.buckets.patch": patch_project_location_bucket "/logging:v2/logging.projects.locations.buckets.patch": patch_project_location_bucket
"/logging:v2/logging.projects.locations.buckets.patch/name": name "/logging:v2/logging.projects.locations.buckets.patch/name": name
"/logging:v2/logging.projects.locations.buckets.patch/updateMask": update_mask "/logging:v2/logging.projects.locations.buckets.patch/updateMask": update_mask
"/logging:v2/logging.projects.locations.buckets.undelete": undelete_project_location_bucket
"/logging:v2/logging.projects.locations.buckets.undelete/name": name
"/logging:v2/logging.projects.logs.delete": delete_project_log "/logging:v2/logging.projects.logs.delete": delete_project_log
"/logging:v2/logging.projects.logs.delete/logName": log_name "/logging:v2/logging.projects.logs.delete/logName": log_name
"/logging:v2/logging.projects.logs.list": list_project_logs "/logging:v2/logging.projects.logs.list": list_project_logs
@ -114178,6 +114217,7 @@
"/pubsub:v1/Subscription": subscription "/pubsub:v1/Subscription": subscription
"/pubsub:v1/Subscription/ackDeadlineSeconds": ack_deadline_seconds "/pubsub:v1/Subscription/ackDeadlineSeconds": ack_deadline_seconds
"/pubsub:v1/Subscription/deadLetterPolicy": dead_letter_policy "/pubsub:v1/Subscription/deadLetterPolicy": dead_letter_policy
"/pubsub:v1/Subscription/detached": detached
"/pubsub:v1/Subscription/enableMessageOrdering": enable_message_ordering "/pubsub:v1/Subscription/enableMessageOrdering": enable_message_ordering
"/pubsub:v1/Subscription/expirationPolicy": expiration_policy "/pubsub:v1/Subscription/expirationPolicy": expiration_policy
"/pubsub:v1/Subscription/filter": filter "/pubsub:v1/Subscription/filter": filter
@ -134977,10 +135017,18 @@
"/texttospeech:v1beta1/SynthesisInput/text": text "/texttospeech:v1beta1/SynthesisInput/text": text
"/texttospeech:v1beta1/SynthesizeSpeechRequest": synthesize_speech_request "/texttospeech:v1beta1/SynthesizeSpeechRequest": synthesize_speech_request
"/texttospeech:v1beta1/SynthesizeSpeechRequest/audioConfig": audio_config "/texttospeech:v1beta1/SynthesizeSpeechRequest/audioConfig": audio_config
"/texttospeech:v1beta1/SynthesizeSpeechRequest/enableTimePointing": enable_time_pointing
"/texttospeech:v1beta1/SynthesizeSpeechRequest/enableTimePointing/enable_time_pointing": enable_time_pointing
"/texttospeech:v1beta1/SynthesizeSpeechRequest/input": input "/texttospeech:v1beta1/SynthesizeSpeechRequest/input": input
"/texttospeech:v1beta1/SynthesizeSpeechRequest/voice": voice "/texttospeech:v1beta1/SynthesizeSpeechRequest/voice": voice
"/texttospeech:v1beta1/SynthesizeSpeechResponse": synthesize_speech_response "/texttospeech:v1beta1/SynthesizeSpeechResponse": synthesize_speech_response
"/texttospeech:v1beta1/SynthesizeSpeechResponse/audioConfig": audio_config
"/texttospeech:v1beta1/SynthesizeSpeechResponse/audioContent": audio_content "/texttospeech:v1beta1/SynthesizeSpeechResponse/audioContent": audio_content
"/texttospeech:v1beta1/SynthesizeSpeechResponse/timepoints": timepoints
"/texttospeech:v1beta1/SynthesizeSpeechResponse/timepoints/timepoint": timepoint
"/texttospeech:v1beta1/Timepoint": timepoint
"/texttospeech:v1beta1/Timepoint/markName": mark_name
"/texttospeech:v1beta1/Timepoint/timeSeconds": time_seconds
"/texttospeech:v1beta1/Voice": voice "/texttospeech:v1beta1/Voice": voice
"/texttospeech:v1beta1/Voice/languageCodes": language_codes "/texttospeech:v1beta1/Voice/languageCodes": language_codes
"/texttospeech:v1beta1/Voice/languageCodes/language_code": language_code "/texttospeech:v1beta1/Voice/languageCodes/language_code": language_code

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/bigquery/ # @see https://cloud.google.com/bigquery/
module BigqueryreservationV1alpha2 module BigqueryreservationV1alpha2
VERSION = 'V1alpha2' VERSION = 'V1alpha2'
REVISION = '20200509' REVISION = '20200801'
# View and manage your data in Google BigQuery # View and manage your data in Google BigQuery
AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery' AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery'

View File

@ -22,13 +22,12 @@ module Google
module Apis module Apis
module BigqueryreservationV1alpha2 module BigqueryreservationV1alpha2
# The metadata for operation returned from # The metadata for operation returned from ReservationService.CreateSlotPool.
# ReservationService.CreateSlotPool.
class CreateSlotPoolMetadata class CreateSlotPoolMetadata
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Resource name of the slot pool that is being created. E.g., # Resource name of the slot pool that is being created. E.g., projects/myproject/
# projects/myproject/locations/us-central1/reservations/foo/slotPools/123 # locations/us-central1/reservations/foo/slotPools/123
# Corresponds to the JSON property `slotPool` # Corresponds to the JSON property `slotPool`
# @return [String] # @return [String]
attr_accessor :slot_pool attr_accessor :slot_pool
@ -43,13 +42,11 @@ module Google
end end
end end
# A generic empty message that you can re-use to avoid defining duplicated # A generic empty message that you can re-use to avoid defining duplicated empty
# empty messages in your APIs. A typical example is to use it as the request # messages in your APIs. A typical example is to use it as the request or the
# or the response type of an API method. For instance: # response type of an API method. For instance: service Foo ` rpc Bar(google.
# service Foo ` # protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for
# rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); # `Empty` is empty JSON object ````.
# `
# The JSON representation for `Empty` is empty JSON object ````.
class Empty class Empty
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -66,8 +63,8 @@ module Google
class ListReservationGrantsResponse class ListReservationGrantsResponse
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Token to retrieve the next page of results, or empty if there are no # Token to retrieve the next page of results, or empty if there are no more
# more results in the list. # results in the list.
# Corresponds to the JSON property `nextPageToken` # Corresponds to the JSON property `nextPageToken`
# @return [String] # @return [String]
attr_accessor :next_page_token attr_accessor :next_page_token
@ -92,8 +89,8 @@ module Google
class ListReservationsResponse class ListReservationsResponse
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Token to retrieve the next page of results, or empty if there are no # Token to retrieve the next page of results, or empty if there are no more
# more results in the list. # results in the list.
# Corresponds to the JSON property `nextPageToken` # Corresponds to the JSON property `nextPageToken`
# @return [String] # @return [String]
attr_accessor :next_page_token attr_accessor :next_page_token
@ -118,8 +115,8 @@ module Google
class ListSlotPoolsResponse class ListSlotPoolsResponse
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Token to retrieve the next page of results, or empty if there are no # Token to retrieve the next page of results, or empty if there are no more
# more results in the list. # results in the list.
# Corresponds to the JSON property `nextPageToken` # Corresponds to the JSON property `nextPageToken`
# @return [String] # @return [String]
attr_accessor :next_page_token attr_accessor :next_page_token
@ -145,47 +142,45 @@ module Google
class Operation class Operation
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# If the value is `false`, it means the operation is still in progress. # If the value is `false`, it means the operation is still in progress. If `true`
# If `true`, the operation is completed, and either `error` or `response` is # , the operation is completed, and either `error` or `response` is available.
# available.
# Corresponds to the JSON property `done` # Corresponds to the JSON property `done`
# @return [Boolean] # @return [Boolean]
attr_accessor :done attr_accessor :done
alias_method :done?, :done alias_method :done?, :done
# The `Status` type defines a logical error model that is suitable for # The `Status` type defines a logical error model that is suitable for different
# different programming environments, including REST APIs and RPC APIs. It is # programming environments, including REST APIs and RPC APIs. It is used by [
# used by [gRPC](https://github.com/grpc). Each `Status` message contains # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
# three pieces of data: error code, error message, and error details. # data: error code, error message, and error details. You can find out more
# You can find out more about this error model and how to work with it in the # about this error model and how to work with it in the [API Design Guide](https:
# [API Design Guide](https://cloud.google.com/apis/design/errors). # //cloud.google.com/apis/design/errors).
# Corresponds to the JSON property `error` # Corresponds to the JSON property `error`
# @return [Google::Apis::BigqueryreservationV1alpha2::Status] # @return [Google::Apis::BigqueryreservationV1alpha2::Status]
attr_accessor :error attr_accessor :error
# Service-specific metadata associated with the operation. It typically # Service-specific metadata associated with the operation. It typically contains
# contains progress information and common metadata such as create time. # progress information and common metadata such as create time. Some services
# Some services might not provide such metadata. Any method that returns a # might not provide such metadata. Any method that returns a long-running
# long-running operation should document the metadata type, if any. # operation should document the metadata type, if any.
# Corresponds to the JSON property `metadata` # Corresponds to the JSON property `metadata`
# @return [Hash<String,Object>] # @return [Hash<String,Object>]
attr_accessor :metadata attr_accessor :metadata
# The server-assigned name, which is only unique within the same service that # The server-assigned name, which is only unique within the same service that
# originally returns it. If you use the default HTTP mapping, the # originally returns it. If you use the default HTTP mapping, the `name` should
# `name` should be a resource name ending with `operations/`unique_id``. # be a resource name ending with `operations/`unique_id``.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
# @return [String] # @return [String]
attr_accessor :name attr_accessor :name
# The normal response of the operation in case of success. If the original # The normal response of the operation in case of success. If the original
# method returns no data on success, such as `Delete`, the response is # method returns no data on success, such as `Delete`, the response is `google.
# `google.protobuf.Empty`. If the original method is standard # protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`,
# `Get`/`Create`/`Update`, the response should be the resource. For other # the response should be the resource. For other methods, the response should
# methods, the response should have the type `XxxResponse`, where `Xxx` # have the type `XxxResponse`, where `Xxx` is the original method name. For
# is the original method name. For example, if the original method name # example, if the original method name is `TakeSnapshot()`, the inferred
# is `TakeSnapshot()`, the inferred response type is # response type is `TakeSnapshotResponse`.
# `TakeSnapshotResponse`.
# Corresponds to the JSON property `response` # Corresponds to the JSON property `response`
# @return [Hash<String,Object>] # @return [Hash<String,Object>]
attr_accessor :response attr_accessor :response
@ -208,35 +203,31 @@ module Google
class Reservation class Reservation
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The resource name of the reservation, e.g., # The resource name of the reservation, e.g., "projects/*/locations/*/
# "projects/*/locations/*/reservations/dev/team/product". Reservation names # reservations/dev/team/product". Reservation names (e.g., "dev/team/product")
# (e.g., "dev/team/product") exceeding a depth of six will fail with # exceeding a depth of six will fail with `google.rpc.Code.INVALID_ARGUMENT`.
# `google.rpc.Code.INVALID_ARGUMENT`.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
# @return [String] # @return [String]
attr_accessor :name attr_accessor :name
# Maximum slots available to this reservation and its children. A slot is a # Maximum slots available to this reservation and its children. A slot is a unit
# unit of computational power in BigQuery, and serves as the unit of # of computational power in BigQuery, and serves as the unit of parallelism. In
# parallelism. In a scan of a multi-partitioned table, a single slot operates # a scan of a multi-partitioned table, a single slot operates on a single
# on a single partition of the table. # partition of the table. If the new reservation's slot capacity exceed the
# If the new reservation's slot capacity exceed the parent's slot capacity or # parent's slot capacity or if total slot capacity of the new reservation and
# if total slot capacity of the new reservation and its siblings exceeds the # its siblings exceeds the parent's slot capacity, the request will fail with `
# parent's slot capacity, the request will fail with # google.rpc.Code.RESOURCE_EXHAUSTED`.
# `google.rpc.Code.RESOURCE_EXHAUSTED`.
# Corresponds to the JSON property `slotCapacity` # Corresponds to the JSON property `slotCapacity`
# @return [Fixnum] # @return [Fixnum]
attr_accessor :slot_capacity attr_accessor :slot_capacity
# If true, any query using this reservation will also be submitted to the # If true, any query using this reservation will also be submitted to the parent
# parent reservation. This allows the query to share the additional slot # reservation. This allows the query to share the additional slot capacity of
# capacity of the parent with other queries in the parent reservation. If the # the parent with other queries in the parent reservation. If the parent also
# parent also has this field set to true, then this process will continue # has this field set to true, then this process will continue until it
# until it encounters a reservation for which this is false. # encounters a reservation for which this is false. If false, a query using this
# If false, a query using this reservation will # reservation will execute with the maximum slot capacity as specified above. If
# execute with the maximum slot capacity as specified above. # not specified, default value is true. Ignored for top-level reservation.
# If not specified, default value is true.
# Ignored for top-level reservation.
# Corresponds to the JSON property `useParentReservation` # Corresponds to the JSON property `useParentReservation`
# @return [Boolean] # @return [Boolean]
attr_accessor :use_parent_reservation attr_accessor :use_parent_reservation
@ -254,13 +245,13 @@ module Google
end end
end end
# A ReservationGrant allows a project to submit jobs # A ReservationGrant allows a project to submit jobs of a certain type using
# of a certain type using slots from the specified reservation. # slots from the specified reservation.
class ReservationGrant class ReservationGrant
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The resource which will use the reservation. E.g. # The resource which will use the reservation. E.g. projects/myproject, folders/
# projects/myproject, folders/123, organizations/456. # 123, organizations/456.
# Corresponds to the JSON property `grantee` # Corresponds to the JSON property `grantee`
# @return [String] # @return [String]
attr_accessor :grantee attr_accessor :grantee
@ -270,16 +261,15 @@ module Google
# @return [String] # @return [String]
attr_accessor :job_type attr_accessor :job_type
# Output only. Name of the resource. E.g.: # Output only. Name of the resource. E.g.: projects/myproject/locations/eu/
# projects/myproject/locations/eu/reservationGrants/123. # reservationGrants/123.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
# @return [String] # @return [String]
attr_accessor :name attr_accessor :name
# Resource name of the reservation. # Resource name of the reservation. E.g., projects/myproject/locations/eu/
# E.g., projects/myproject/locations/eu/reservations/my_reservation. # reservations/my_reservation. This reservation must be in the same location as
# This reservation must be in the same location as the grant. # the grant. This reservation should belong to the same parent project.
# This reservation should belong to the same parent project.
# Corresponds to the JSON property `reservation` # Corresponds to the JSON property `reservation`
# @return [String] # @return [String]
attr_accessor :reservation attr_accessor :reservation
@ -307,8 +297,8 @@ module Google
class SearchReservationGrantsResponse class SearchReservationGrantsResponse
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Token to retrieve the next page of results, or empty if there are no # Token to retrieve the next page of results, or empty if there are no more
# more results in the list. # results in the list.
# Corresponds to the JSON property `nextPageToken` # Corresponds to the JSON property `nextPageToken`
# @return [String] # @return [String]
attr_accessor :next_page_token attr_accessor :next_page_token
@ -333,34 +323,32 @@ module Google
# usage. Slot pool is immutable and cannot be deleted until the end of the # usage. Slot pool is immutable and cannot be deleted until the end of the
# commitment period. After the end of the commitment period, slots are still # commitment period. After the end of the commitment period, slots are still
# available but can be freely removed any time. Annual commitments will # available but can be freely removed any time. Annual commitments will
# automatically be downgraded to monthly after the commitment ends. # automatically be downgraded to monthly after the commitment ends. A slot pool
# A slot pool resource exists as a child resource of a top-level reservation. # resource exists as a child resource of a top-level reservation. Sum of all the
# Sum of all the ACTIVE pools slot_count is always equal to the reservation # ACTIVE pools slot_count is always equal to the reservation slot_capacity.
# slot_capacity.
class SlotPool class SlotPool
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Output only. The end of the commitment period. Slot pool cannot be # Output only. The end of the commitment period. Slot pool cannot be removed
# removed before commitment_end_time. It is applicable only for ACTIVE slot # before commitment_end_time. It is applicable only for ACTIVE slot pools and is
# pools and is computed as a combination of the plan and the time when the # computed as a combination of the plan and the time when the slot pool became
# slot pool became ACTIVE. # ACTIVE.
# Corresponds to the JSON property `commitmentEndTime` # Corresponds to the JSON property `commitmentEndTime`
# @return [String] # @return [String]
attr_accessor :commitment_end_time attr_accessor :commitment_end_time
# The `Status` type defines a logical error model that is suitable for # The `Status` type defines a logical error model that is suitable for different
# different programming environments, including REST APIs and RPC APIs. It is # programming environments, including REST APIs and RPC APIs. It is used by [
# used by [gRPC](https://github.com/grpc). Each `Status` message contains # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
# three pieces of data: error code, error message, and error details. # data: error code, error message, and error details. You can find out more
# You can find out more about this error model and how to work with it in the # about this error model and how to work with it in the [API Design Guide](https:
# [API Design Guide](https://cloud.google.com/apis/design/errors). # //cloud.google.com/apis/design/errors).
# Corresponds to the JSON property `failureStatus` # Corresponds to the JSON property `failureStatus`
# @return [Google::Apis::BigqueryreservationV1alpha2::Status] # @return [Google::Apis::BigqueryreservationV1alpha2::Status]
attr_accessor :failure_status attr_accessor :failure_status
# Output only. The resource name of the slot pool, e.g., # Output only. The resource name of the slot pool, e.g., projects/myproject/
# projects/myproject/locations/us-central1/reservations/myreservation/ # locations/us-central1/reservations/myreservation/slotPools/123
# slotPools/123
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
# @return [String] # @return [String]
attr_accessor :name attr_accessor :name
@ -395,12 +383,12 @@ module Google
end end
end end
# The `Status` type defines a logical error model that is suitable for # The `Status` type defines a logical error model that is suitable for different
# different programming environments, including REST APIs and RPC APIs. It is # programming environments, including REST APIs and RPC APIs. It is used by [
# used by [gRPC](https://github.com/grpc). Each `Status` message contains # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
# three pieces of data: error code, error message, and error details. # data: error code, error message, and error details. You can find out more
# You can find out more about this error model and how to work with it in the # about this error model and how to work with it in the [API Design Guide](https:
# [API Design Guide](https://cloud.google.com/apis/design/errors). # //cloud.google.com/apis/design/errors).
class Status class Status
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -415,9 +403,9 @@ module Google
# @return [Array<Hash<String,Object>>] # @return [Array<Hash<String,Object>>]
attr_accessor :details attr_accessor :details
# A developer-facing error message, which should be in English. Any # A developer-facing error message, which should be in English. Any user-facing
# user-facing error message should be localized and sent in the # error message should be localized and sent in the google.rpc.Status.details
# google.rpc.Status.details field, or localized by the client. # field, or localized by the client.
# Corresponds to the JSON property `message` # Corresponds to the JSON property `message`
# @return [String] # @return [String]
attr_accessor :message attr_accessor :message

View File

@ -47,31 +47,26 @@ module Google
@batch_path = 'batch' @batch_path = 'batch'
end end
# Look up grants for a specified resource for a particular region. # Look up grants for a specified resource for a particular region. If the
# If the request is about a project: # request is about a project: 1) Grants created on the project will be returned
# 1) Grants created on the project will be returned if they exist. # if they exist. 2) Otherwise grants created on the closest ancestor will be
# 2) Otherwise grants created on the closest ancestor will be returned. # returned. 3) Grants for different JobTypes will all be returned. Same logic
# 3) Grants for different JobTypes will all be returned. # applies if the request is about a folder. If the request is about an
# Same logic applies if the request is about a folder. # organization, then grants created on the organization will be returned (
# If the request is about an organization, then grants created on the # organization doesn't have ancestors). Comparing to ListReservationGrants,
# organization will be returned (organization doesn't have ancestors). # there are two behavior differences: 1) permission on the grantee will be
# Comparing to ListReservationGrants, there are two behavior # verified in this API. 2) Hierarchy lookup (project->folder->organization)
# differences: # happens in this API.
# 1) permission on the grantee will be verified in this API.
# 2) Hierarchy lookup (project->folder->organization) happens in this API.
# @param [String] parent # @param [String] parent
# The parent resource name (containing project and location), which owns the # The parent resource name (containing project and location), which owns the
# grants. e.g.: # grants. e.g.: "projects/myproject/locations/us-central1".
# "projects/myproject/locations/us-central1".
# @param [Fixnum] page_size # @param [Fixnum] page_size
# The maximum number of items to return. # The maximum number of items to return.
# @param [String] page_token # @param [String] page_token
# The next_page_token value returned from a previous List request, if any. # The next_page_token value returned from a previous List request, if any.
# @param [String] query # @param [String] query
# Please specify resource name as grantee in the query. # Please specify resource name as grantee in the query. e.g., "grantee=projects/
# e.g., "grantee=projects/myproject" # myproject" "grantee=folders/123" "grantee=organizations/456"
# "grantee=folders/123"
# "grantee=organizations/456"
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -102,15 +97,13 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Starts asynchronous cancellation on a long-running operation. The server # Starts asynchronous cancellation on a long-running operation. The server makes
# makes a best effort to cancel the operation, but success is not # a best effort to cancel the operation, but success is not guaranteed. If the
# guaranteed. If the server doesn't support this method, it returns # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
# `google.rpc.Code.UNIMPLEMENTED`. Clients can use # Clients can use Operations.GetOperation or other methods to check whether the
# Operations.GetOperation or # cancellation succeeded or whether the operation completed despite cancellation.
# other methods to check whether the cancellation succeeded or whether the # On successful cancellation, the operation is not deleted; instead, it becomes
# operation completed despite cancellation. On successful cancellation, # an operation with an Operation.error value with a google.rpc.Status.code of 1,
# the operation is not deleted; instead, it becomes an operation with
# an Operation.error value with a google.rpc.Status.code of 1,
# corresponding to `Code.CANCELLED`. # corresponding to `Code.CANCELLED`.
# @param [String] name # @param [String] name
# The name of the operation resource to be cancelled. # The name of the operation resource to be cancelled.
@ -141,9 +134,8 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Gets the latest state of a long-running operation. Clients can use this # Gets the latest state of a long-running operation. Clients can use this method
# method to poll the operation result at intervals as recommended by the API # to poll the operation result at intervals as recommended by the API service.
# service.
# @param [String] name # @param [String] name
# The name of the operation resource. # The name of the operation resource.
# @param [String] fields # @param [String] fields
@ -173,14 +165,13 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Returns `google.rpc.Code.PERMISSION_DENIED` if user does not have # Returns `google.rpc.Code.PERMISSION_DENIED` if user does not have 'bigquery.
# 'bigquery.admin' permissions on the project using the reservation # admin' permissions on the project using the reservation and the project that
# and the project that owns this reservation. # owns this reservation. Returns `google.rpc.Code.INVALID_ARGUMENT` when
# Returns `google.rpc.Code.INVALID_ARGUMENT` when location of the grant # location of the grant does not match location of the reservation.
# does not match location of the reservation.
# @param [String] parent # @param [String] parent
# The parent resource name of the reservation grant # The parent resource name of the reservation grant E.g.: projects/myproject/
# E.g.: projects/myproject/location/eu. # location/eu.
# @param [Google::Apis::BigqueryreservationV1alpha2::ReservationGrant] reservation_grant_object # @param [Google::Apis::BigqueryreservationV1alpha2::ReservationGrant] reservation_grant_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -211,19 +202,15 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Deletes a reservation grant. No expansion will happen. # Deletes a reservation grant. No expansion will happen. E.g: organizationA
# E.g: # contains project1 and project2. Reservation res1 exists.
# organizationA contains project1 and project2. Reservation res1 exists.
# CreateReservationGrant was invoked previously and following grants were # CreateReservationGrant was invoked previously and following grants were
# created explicitly: # created explicitly: Then deletion of won't affect . After deletion of ,
# <organizationA, res1> # queries from project1 will still use res1, while queries from project2 will
# <project1, res1> # use on-demand mode.
# Then deletion of <organizationA, res1> won't affect <project1, res1>. After
# deletion of <organizationA, res1>, queries from project1 will still use
# res1, while queries from project2 will use on-demand mode.
# @param [String] name # @param [String] name
# Name of the resource, e.g.: # Name of the resource, e.g.: projects/myproject/locations/eu/reservationGrants/
# projects/myproject/locations/eu/reservationGrants/123 # 123
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -251,15 +238,11 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Lists reservation grants. # Lists reservation grants. Only explicitly created grants will be returned. E.g:
# Only explicitly created grants will be returned. E.g:
# organizationA contains project1 and project2. Reservation res1 exists. # organizationA contains project1 and project2. Reservation res1 exists.
# CreateReservationGrant was invoked previously and following grants were # CreateReservationGrant was invoked previously and following grants were
# created explicitly: # created explicitly: Then this API will just return the above two grants for
# <organizationA, res1> # reservation res1, and no expansion/merge will happen.
# <project1, res1>
# Then this API will just return the above two grants for reservation res1,
# and no expansion/merge will happen.
# @param [String] parent # @param [String] parent
# The parent resource name e.g.: projects/myproject/location/eu. # The parent resource name e.g.: projects/myproject/location/eu.
# @param [Fixnum] page_size # @param [Fixnum] page_size
@ -295,15 +278,15 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Creates a new reservation resource. Multiple reservations are created if # Creates a new reservation resource. Multiple reservations are created if the
# the ancestor reservations do not exist. # ancestor reservations do not exist.
# @param [String] parent # @param [String] parent
# Project, location, and (optionally) reservation name. E.g., # Project, location, and (optionally) reservation name. E.g., projects/myproject/
# projects/myproject/locations/us-central1/reservations/parent # locations/us-central1/reservations/parent
# @param [Google::Apis::BigqueryreservationV1alpha2::Reservation] reservation_object # @param [Google::Apis::BigqueryreservationV1alpha2::Reservation] reservation_object
# @param [String] reservation_id # @param [String] reservation_id
# The reservation ID relative to the parent, e.g., "dev". This field must # The reservation ID relative to the parent, e.g., "dev". This field must only
# only contain alphanumeric characters. # contain alphanumeric characters.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -334,15 +317,15 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Creates a new reservation resource. Multiple reservations are created if # Creates a new reservation resource. Multiple reservations are created if the
# the ancestor reservations do not exist. # ancestor reservations do not exist.
# @param [String] parent # @param [String] parent
# Project, location, and (optionally) reservation name. E.g., # Project, location, and (optionally) reservation name. E.g., projects/myproject/
# projects/myproject/locations/us-central1/reservations/parent # locations/us-central1/reservations/parent
# @param [Google::Apis::BigqueryreservationV1alpha2::Reservation] reservation_object # @param [Google::Apis::BigqueryreservationV1alpha2::Reservation] reservation_object
# @param [String] reservation_id # @param [String] reservation_id
# The reservation ID relative to the parent, e.g., "dev". This field must # The reservation ID relative to the parent, e.g., "dev". This field must only
# only contain alphanumeric characters. # contain alphanumeric characters.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -373,19 +356,17 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Deletes a reservation. # Deletes a reservation. Returns `google.rpc.Code.FAILED_PRECONDITION` in the
# Returns `google.rpc.Code.FAILED_PRECONDITION` in the following cases: # following cases: 1. When reservation has child reservations. This check can be
# 1. When reservation has child reservations. This check can be bypassed by # bypassed by setting DeleteReservationRequest.force flag to true. 2. When top-
# setting DeleteReservationRequest.force flag to true. # level reservation with slot pools is being deleted.
# 2. When top-level reservation with slot pools is being deleted.
# @param [String] name # @param [String] name
# Resource name of the reservation to retrieve. E.g., # Resource name of the reservation to retrieve. E.g., projects/myproject/
# projects/myproject/locations/us-central1/reservations/my_reservation # locations/us-central1/reservations/my_reservation
# @param [Boolean] force # @param [Boolean] force
# If true, deletes all the child reservations of the given reservation. # If true, deletes all the child reservations of the given reservation.
# Otherwise, attempting to delete a reservation that has child # Otherwise, attempting to delete a reservation that has child reservations will
# reservations will fail with error code # fail with error code `google.rpc.Code.FAILED_PRECONDITION`.
# `google.rpc.Code.FAILED_PRECONDITION`.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -416,8 +397,8 @@ module Google
# Returns information about the reservation. # Returns information about the reservation.
# @param [String] name # @param [String] name
# Resource name of the reservation to retrieve. E.g., # Resource name of the reservation to retrieve. E.g., projects/myproject/
# projects/myproject/locations/us-central1/reservations/path/to/reserv # locations/us-central1/reservations/path/to/reserv
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -447,14 +428,13 @@ module Google
# Lists all the reservations for the project in the specified location. # Lists all the reservations for the project in the specified location.
# @param [String] parent # @param [String] parent
# The parent resource name containing project and location, e.g.: # The parent resource name containing project and location, e.g.: "projects/
# "projects/myproject/locations/us-central1" # myproject/locations/us-central1"
# @param [String] filter # @param [String] filter
# Can be used to filter out reservations based on names, capacity, etc, e.g.: # Can be used to filter out reservations based on names, capacity, etc, e.g.:
# filter="reservation.slot_capacity > 200" # filter="reservation.slot_capacity > 200" filter="reservation.name = \"*dev/*\""
# filter="reservation.name = \"*dev/*\"" # Advanced filtering syntax can be [here](https://cloud.google.com/logging/docs/
# Advanced filtering syntax can be # view/advanced-filters).
# [here](https://cloud.google.com/logging/docs/view/advanced-filters).
# @param [Fixnum] page_size # @param [Fixnum] page_size
# The maximum number of items to return. # The maximum number of items to return.
# @param [String] page_token # @param [String] page_token
@ -492,10 +472,9 @@ module Google
# Updates an existing reservation resource. Applicable only for child # Updates an existing reservation resource. Applicable only for child
# reservations. # reservations.
# @param [String] name # @param [String] name
# The resource name of the reservation, e.g., # The resource name of the reservation, e.g., "projects/*/locations/*/
# "projects/*/locations/*/reservations/dev/team/product". Reservation names # reservations/dev/team/product". Reservation names (e.g., "dev/team/product")
# (e.g., "dev/team/product") exceeding a depth of six will fail with # exceeding a depth of six will fail with `google.rpc.Code.INVALID_ARGUMENT`.
# `google.rpc.Code.INVALID_ARGUMENT`.
# @param [Google::Apis::BigqueryreservationV1alpha2::Reservation] reservation_object # @param [Google::Apis::BigqueryreservationV1alpha2::Reservation] reservation_object
# @param [String] update_mask # @param [String] update_mask
# Standard field mask for the set of fields to be updated. # Standard field mask for the set of fields to be updated.
@ -530,12 +509,11 @@ module Google
end end
# Deletes a slot pool. Attempting to delete slot pool before its # Deletes a slot pool. Attempting to delete slot pool before its
# commitment_end_time will fail with the error code # commitment_end_time will fail with the error code `google.rpc.Code.
# `google.rpc.Code.FAILED_PRECONDITION`. # FAILED_PRECONDITION`.
# @param [String] name # @param [String] name
# Resource name of the slot pool to delete. E.g., # Resource name of the slot pool to delete. E.g., projects/myproject/locations/
# projects/myproject/locations/us-central1/reservations/my_reservation/ # us-central1/reservations/my_reservation/slotPools/123
# slotPools/123
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -565,9 +543,8 @@ module Google
# Returns information about the slot pool. # Returns information about the slot pool.
# @param [String] name # @param [String] name
# Resource name of the slot pool to retrieve. E.g., # Resource name of the slot pool to retrieve. E.g., projects/myproject/locations/
# projects/myproject/locations/us-central1/reservations/my_reservation/ # us-central1/reservations/my_reservation/slotPools/123
# slotPools/123
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -597,9 +574,9 @@ module Google
# Lists all the slot pools for the reservation. # Lists all the slot pools for the reservation.
# @param [String] parent # @param [String] parent
# Resource name of the parent reservation. Only top-level reservations can # Resource name of the parent reservation. Only top-level reservations can have
# have slot pools. E.g., # slot pools. E.g., projects/myproject/locations/us-central1/reservations/
# projects/myproject/locations/us-central1/reservations/my_reservation # my_reservation
# @param [Fixnum] page_size # @param [Fixnum] page_size
# The maximum number of items to return. # The maximum number of items to return.
# @param [String] page_token # @param [String] page_token

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/profiler/ # @see https://cloud.google.com/profiler/
module CloudprofilerV2 module CloudprofilerV2
VERSION = 'V2' VERSION = 'V2'
REVISION = '20200210' REVISION = '20200803'
# 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 File

@ -22,9 +22,9 @@ module Google
module Apis module Apis
module CloudprofilerV2 module CloudprofilerV2
# CreateProfileRequest describes a profile resource online creation request. # CreateProfileRequest describes a profile resource online creation request. The
# The deployment field must be populated. The profile_type specifies the list # deployment field must be populated. The profile_type specifies the list of
# of profile types supported by the agent. The creation call will hang until a # profile types supported by the agent. The creation call will hang until a
# profile of one of these types needs to be collected. # profile of one of these types needs to be collected.
class CreateProfileRequest class CreateProfileRequest
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -56,30 +56,27 @@ module Google
# Labels identify the deployment within the user universe and same target. # Labels identify the deployment within the user universe and same target.
# Validation regex for label names: `^[a-z0-9]([a-z0-9-]`0,61`[a-z0-9])?$`. # Validation regex for label names: `^[a-z0-9]([a-z0-9-]`0,61`[a-z0-9])?$`.
# Value for an individual label must be <= 512 bytes, the total # Value for an individual label must be <= 512 bytes, the total size of all
# size of all label names and values must be <= 1024 bytes. # label names and values must be <= 1024 bytes. Label named "language" can be
# Label named "language" can be used to record the programming language of # used to record the programming language of the profiled deployment. The
# the profiled deployment. The standard choices for the value include "java", # standard choices for the value include "java", "go", "python", "ruby", "nodejs"
# "go", "python", "ruby", "nodejs", "php", "dotnet". # , "php", "dotnet". For deployments running on Google Cloud Platform, "zone" or
# For deployments running on Google Cloud Platform, "zone" or "region" label # "region" label should be present describing the deployment location. An
# should be present describing the deployment location. An example of a zone # example of a zone is "us-central1-a", an example of a region is "us-central1"
# is "us-central1-a", an example of a region is "us-central1" or # or "us-central".
# "us-central".
# Corresponds to the JSON property `labels` # Corresponds to the JSON property `labels`
# @return [Hash<String,String>] # @return [Hash<String,String>]
attr_accessor :labels attr_accessor :labels
# Project ID is the ID of a cloud project. # Project ID is the ID of a cloud project. Validation regex: `^a-z`4,61`[a-z0-9]$
# Validation regex: `^a-z`4,61`[a-z0-9]$`. # `.
# Corresponds to the JSON property `projectId` # Corresponds to the JSON property `projectId`
# @return [String] # @return [String]
attr_accessor :project_id attr_accessor :project_id
# Target is the service name used to group related deployments: # Target is the service name used to group related deployments: * Service name
# * Service name for GAE Flex / Standard. # for GAE Flex / Standard. * Cluster and container name for GKE. * User-
# * Cluster and container name for GKE. # specified string for direct GCE profiling (e.g. Java). * Job name for Dataflow.
# * User-specified string for direct GCE profiling (e.g. Java).
# * Job name for Dataflow.
# Validation regex: `^[a-z]([-a-z0-9_.]`0,253`[a-z0-9])?$`. # Validation regex: `^[a-z]([-a-z0-9_.]`0,253`[a-z0-9])?$`.
# Corresponds to the JSON property `target` # Corresponds to the JSON property `target`
# @return [String] # @return [String]
@ -106,19 +103,18 @@ module Google
# @return [Google::Apis::CloudprofilerV2::Deployment] # @return [Google::Apis::CloudprofilerV2::Deployment]
attr_accessor :deployment attr_accessor :deployment
# Duration of the profiling session. # Duration of the profiling session. Input (for the offline mode) or output (for
# Input (for the offline mode) or output (for the online mode). # the online mode). The field represents requested profiling duration. It may
# The field represents requested profiling duration. It may slightly differ # slightly differ from the effective profiling duration, which is recorded in
# from the effective profiling duration, which is recorded in the profile # the profile data, in case the profiling can't be stopped immediately (e.g. in
# data, in case the profiling can't be stopped immediately (e.g. in case # case stopping the profiling is handled asynchronously).
# stopping the profiling is handled asynchronously).
# Corresponds to the JSON property `duration` # Corresponds to the JSON property `duration`
# @return [String] # @return [String]
attr_accessor :duration attr_accessor :duration
# Input only. Labels associated to this specific profile. These labels will # Input only. Labels associated to this specific profile. These labels will get
# get merged with the deployment labels for the final data set. See # merged with the deployment labels for the final data set. See documentation on
# documentation on deployment labels for validation rules and limits. # deployment labels for validation rules and limits.
# Corresponds to the JSON property `labels` # Corresponds to the JSON property `labels`
# @return [Hash<String,String>] # @return [Hash<String,String>]
attr_accessor :labels attr_accessor :labels
@ -128,16 +124,15 @@ module Google
# @return [String] # @return [String]
attr_accessor :name attr_accessor :name
# Input only. Profile bytes, as a gzip compressed serialized proto, the # Input only. Profile bytes, as a gzip compressed serialized proto, the format
# format is https://github.com/google/pprof/blob/master/proto/profile.proto. # is https://github.com/google/pprof/blob/master/proto/profile.proto.
# Corresponds to the JSON property `profileBytes` # Corresponds to the JSON property `profileBytes`
# NOTE: Values are automatically base64 encoded/decoded in the client library. # NOTE: Values are automatically base64 encoded/decoded in the client library.
# @return [String] # @return [String]
attr_accessor :profile_bytes attr_accessor :profile_bytes
# Type of profile. # Type of profile. For offline mode, this must be specified when creating the
# For offline mode, this must be specified when creating the profile. For # profile. For online mode it is assigned and returned by the server.
# online mode it is assigned and returned by the server.
# Corresponds to the JSON property `profileType` # Corresponds to the JSON property `profileType`
# @return [String] # @return [String]
attr_accessor :profile_type attr_accessor :profile_type

View File

@ -47,17 +47,15 @@ module Google
@batch_path = 'batch' @batch_path = 'batch'
end end
# CreateProfile creates a new profile resource in the online mode. # CreateProfile creates a new profile resource in the online mode. The server
# The server ensures that the new profiles are created at a constant rate per # ensures that the new profiles are created at a constant rate per deployment,
# deployment, so the creation request may hang for some time until the next # so the creation request may hang for some time until the next profile session
# profile session is available. # is available. The request may fail with ABORTED error if the creation is not
# The request may fail with ABORTED error if the creation is not available # available within ~1m, the response will indicate the duration of the backoff
# within ~1m, the response will indicate the duration of the backoff the # the client should take before attempting creating a profile again. The backoff
# client should take before attempting creating a profile again. The backoff # duration is returned in google.rpc.RetryInfo extension on the response status.
# duration is returned in google.rpc.RetryInfo extension on the response # To a gRPC client, the extension will be return as a binary-serialized proto in
# status. To a gRPC client, the extension will be return as a # the trailing metadata item named "google.rpc.retryinfo-bin".
# binary-serialized proto in the trailing metadata item named
# "google.rpc.retryinfo-bin".
# @param [String] parent # @param [String] parent
# Parent project to create the profile in. # Parent project to create the profile in.
# @param [Google::Apis::CloudprofilerV2::CreateProfileRequest] create_profile_request_object # @param [Google::Apis::CloudprofilerV2::CreateProfileRequest] create_profile_request_object
@ -90,9 +88,9 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# CreateOfflineProfile creates a new profile resource in the offline mode. # CreateOfflineProfile creates a new profile resource in the offline mode. The
# The client provides the profile to create along with the profile bytes, the # client provides the profile to create along with the profile bytes, the server
# server records it. # records it.
# @param [String] parent # @param [String] parent
# Parent project to create the profile in. # Parent project to create the profile in.
# @param [Google::Apis::CloudprofilerV2::Profile] profile_object # @param [Google::Apis::CloudprofilerV2::Profile] profile_object
@ -127,16 +125,16 @@ module Google
# UpdateProfile updates the profile bytes and labels on the profile resource # UpdateProfile updates the profile bytes and labels on the profile resource
# created in the online mode. Updating the bytes for profiles created in the # created in the online mode. Updating the bytes for profiles created in the
# offline mode is currently not supported: the profile content must be # offline mode is currently not supported: the profile content must be provided
# provided at the time of the profile creation. # at the time of the profile creation.
# @param [String] name # @param [String] name
# Output only. Opaque, server-assigned, unique ID for this profile. # Output only. Opaque, server-assigned, unique ID for this profile.
# @param [Google::Apis::CloudprofilerV2::Profile] profile_object # @param [Google::Apis::CloudprofilerV2::Profile] profile_object
# @param [String] update_mask # @param [String] update_mask
# Field mask used to specify the fields to be overwritten. Currently only # Field mask used to specify the fields to be overwritten. Currently only
# profile_bytes and labels fields are supported by UpdateProfile, so only # profile_bytes and labels fields are supported by UpdateProfile, so only those
# those fields can be specified in the mask. When no mask is provided, all # fields can be specified in the mask. When no mask is provided, all fields are
# fields are overwritten. # overwritten.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user

View File

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/display-video/ # @see https://developers.google.com/display-video/
module DisplayvideoV1 module DisplayvideoV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20200804' REVISION = '20200806'
# Create, see, edit, and permanently delete your Display & Video 360 entities and reports # Create, see, edit, and permanently delete your Display & Video 360 entities and reports
AUTH_DISPLAY_VIDEO = 'https://www.googleapis.com/auth/display-video' AUTH_DISPLAY_VIDEO = 'https://www.googleapis.com/auth/display-video'

View File

@ -1117,20 +1117,20 @@ module Google
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The number of ACTIVE and PAUSED campaigns under this advertiser. These # The number of ACTIVE and PAUSED campaigns under this advertiser. These
# campaigns count towards the limit of 9,999 campaigns per advertiser. # campaigns count towards the limit of 9999 campaigns per advertiser.
# Corresponds to the JSON property `usedCampaignsCount` # Corresponds to the JSON property `usedCampaignsCount`
# @return [Fixnum] # @return [Fixnum]
attr_accessor :used_campaigns_count attr_accessor :used_campaigns_count
# The number of ACTIVE, PAUSED and DRAFT insertion orders under this advertiser. # The number of ACTIVE, PAUSED and DRAFT insertion orders under this advertiser.
# These insertion orders count towards the limit of 9,999 insertion orders per # These insertion orders count towards the limit of 9999 insertion orders per
# advertiser. # advertiser.
# Corresponds to the JSON property `usedInsertionOrdersCount` # Corresponds to the JSON property `usedInsertionOrdersCount`
# @return [Fixnum] # @return [Fixnum]
attr_accessor :used_insertion_orders_count attr_accessor :used_insertion_orders_count
# The number of ACTIVE, PAUSED, and DRAFT line items under this advertiser. # The number of ACTIVE, PAUSED, and DRAFT line items under this advertiser.
# These line items count towards the limit of 9,999 line items per advertiser. # These line items count towards the limit of 9999 line items per advertiser.
# Corresponds to the JSON property `usedLineItemsCount` # Corresponds to the JSON property `usedLineItemsCount`
# @return [Fixnum] # @return [Fixnum]
attr_accessor :used_line_items_count attr_accessor :used_line_items_count
@ -1469,7 +1469,7 @@ module Google
end end
end end
# Response message for BulkEditAssignedUserRoles. #
class BulkEditAssignedUserRolesResponse class BulkEditAssignedUserRolesResponse
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -5579,7 +5579,7 @@ module Google
end end
end end
# Response message for CustomBiddingAlgorithmService.ListCustomBiddingAlgorithms. #
class ListCustomBiddingAlgorithmsResponse class ListCustomBiddingAlgorithmsResponse
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -5906,7 +5906,7 @@ module Google
end end
end end
# Response message for ListPartnerAssignedTargetingOptions. #
class ListPartnerAssignedTargetingOptionsResponse class ListPartnerAssignedTargetingOptionsResponse
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -5934,7 +5934,7 @@ module Google
end end
end end
# Response message for ListPartners. #
class ListPartnersResponse class ListPartnersResponse
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -6015,7 +6015,7 @@ module Google
end end
end end
# Response message for ListUsers. #
class ListUsersResponse class ListUsersResponse
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable

View File

@ -49,8 +49,8 @@ module Google
end end
# Audits an advertiser. Returns the counts of used entities per resource type # Audits an advertiser. Returns the counts of used entities per resource type
# under the advertiser provided. Used entities count towards their [respective # under the advertiser provided. Used entities count towards their respective
# resource limit]: (https://support.google.com/displayvideo/answer/6071450?hl=en) # resource limit. See https://support.google.com/displayvideo/answer/6071450.
# @param [Fixnum] advertiser_id # @param [Fixnum] advertiser_id
# Required. The ID of the advertiser to audit. # Required. The ID of the advertiser to audit.
# @param [String] read_mask # @param [String] read_mask
@ -2845,9 +2845,9 @@ module Google
# @param [Fixnum] custom_bidding_algorithm_id # @param [Fixnum] custom_bidding_algorithm_id
# Required. The ID of the custom bidding algorithm to fetch. # Required. The ID of the custom bidding algorithm to fetch.
# @param [Fixnum] advertiser_id # @param [Fixnum] advertiser_id
# The ID of the DV3 partner that has access to the custom bidding algorithm. # The ID of the DV360 partner that has access to the custom bidding algorithm.
# @param [Fixnum] partner_id # @param [Fixnum] partner_id
# The ID of the DV3 partner that has access to the custom bidding algorithm. # The ID of the DV360 partner that has access to the custom bidding algorithm.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -2881,7 +2881,7 @@ module Google
# can be used in bidding stratgies. The order is defined by the order_by # can be used in bidding stratgies. The order is defined by the order_by
# parameter. # parameter.
# @param [Fixnum] advertiser_id # @param [Fixnum] advertiser_id
# The ID of the DV3 advertiser that has access to the custom bidding algorithm. # The ID of the DV360 advertiser that has access to the custom bidding algorithm.
# @param [String] filter # @param [String] filter
# Allows filtering by custom bidding algorithm fields. Supported syntax: * # Allows filtering by custom bidding algorithm fields. Supported syntax: *
# Filter expressions are made up of one or more restrictions. * Restrictions can # Filter expressions are made up of one or more restrictions. * Restrictions can
@ -2912,7 +2912,7 @@ module Google
# ListCustomBiddingAlgorithms` method. If not specified, the first page of # ListCustomBiddingAlgorithms` method. If not specified, the first page of
# results will be returned. # results will be returned.
# @param [Fixnum] partner_id # @param [Fixnum] partner_id
# The ID of the DV3 partner that has access to the custom bidding algorithm. # The ID of the DV360 partner that has access to the custom bidding algorithm.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -3856,9 +3856,9 @@ module Google
# Bulk edits targeting options under a single partner. The operation will delete # Bulk edits targeting options under a single partner. The operation will delete
# the assigned targeting options provided in # the assigned targeting options provided in
# BulkEditPartnerAssignedTargetingOptionsRequest.delete_requests and then create # BulkEditPartnerAssignedTargetingOptionsRequest.deleteRequests and then create
# the assigned targeting options provided in # the assigned targeting options provided in
# BulkEditPartnerAssignedTargetingOptionsRequest.create_requests . # BulkEditPartnerAssignedTargetingOptionsRequest.createRequests .
# @param [Fixnum] partner_id # @param [Fixnum] partner_id
# Required. The ID of the partner. # Required. The ID of the partner.
# @param [Google::Apis::DisplayvideoV1::BulkEditPartnerAssignedTargetingOptionsRequest] bulk_edit_partner_assigned_targeting_options_request_object # @param [Google::Apis::DisplayvideoV1::BulkEditPartnerAssignedTargetingOptionsRequest] bulk_edit_partner_assigned_targeting_options_request_object
@ -4657,9 +4657,9 @@ module Google
end end
# Bulk edits user roles for a user. The operation will delete the assigned user # Bulk edits user roles for a user. The operation will delete the assigned user
# roles provided in BulkEditAssignedUserRolesRequest.deleted_assigned_user_roles # roles provided in BulkEditAssignedUserRolesRequest.deletedAssignedUserRoles
# and then assign the user roles provided in BulkEditAssignedUserRolesRequest. # and then assign the user roles provided in BulkEditAssignedUserRolesRequest.
# created_assigned_user_roles. # createdAssignedUserRoles.
# @param [Fixnum] user_id # @param [Fixnum] user_id
# Required. The ID of the user to which the assigned user roles belong. # Required. The ID of the user to which the assigned user roles belong.
# @param [Google::Apis::DisplayvideoV1::BulkEditAssignedUserRolesRequest] bulk_edit_assigned_user_roles_request_object # @param [Google::Apis::DisplayvideoV1::BulkEditAssignedUserRolesRequest] bulk_edit_assigned_user_roles_request_object

View File

@ -27,7 +27,7 @@ module Google
# @see https://cloud.google.com/dlp/docs/ # @see https://cloud.google.com/dlp/docs/
module DlpV2 module DlpV2
VERSION = 'V2' VERSION = 'V2'
REVISION = '20200726' REVISION = '20200805'
# 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'

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -28,7 +28,7 @@ module Google
# @see https://cloud.google.com/logging/docs/ # @see https://cloud.google.com/logging/docs/
module LoggingV2 module LoggingV2
VERSION = 'V2' VERSION = 'V2'
REVISION = '20200724' REVISION = '20200801'
# 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 File

@ -98,8 +98,7 @@ module Google
# overflow and underflow). Each bucket represents a constant absolute # overflow and underflow). Each bucket represents a constant absolute
# uncertainty on the specific value in the bucket.There are num_finite_buckets + # uncertainty on the specific value in the bucket.There are num_finite_buckets +
# 2 (= N) buckets. Bucket i has the following boundaries:Upper bound (0 <= i < N- # 2 (= N) buckets. Bucket i has the following boundaries:Upper bound (0 <= i < N-
# 1): offset + (width * i). Lower bound (1 <= i < N): offset + (width * (i - 1)) # 1): offset + (width * i). Lower bound (1 <= i < N): offset + (width * (i - 1)).
# .
# Corresponds to the JSON property `linearBuckets` # Corresponds to the JSON property `linearBuckets`
# @return [Google::Apis::LoggingV2::Linear] # @return [Google::Apis::LoggingV2::Linear]
attr_accessor :linear_buckets attr_accessor :linear_buckets
@ -173,11 +172,9 @@ module Google
# A generic empty message that you can re-use to avoid defining duplicated empty # A generic empty message that you can re-use to avoid defining duplicated empty
# messages in your APIs. A typical example is to use it as the request or the # messages in your APIs. A typical example is to use it as the request or the
# response type of an API method. For instance: # response type of an API method. For instance: service Foo ` rpc Bar(google.
# service Foo ` # protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for
# rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); # Empty is empty JSON object ``.
# `
# The JSON representation for Empty is empty JSON object ``.
class Empty class Empty
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -339,8 +336,7 @@ module Google
attr_accessor :status attr_accessor :status
# The user agent sent by the client. Example: "Mozilla/4.0 (compatible; MSIE 6.0; # The user agent sent by the client. Example: "Mozilla/4.0 (compatible; MSIE 6.0;
# Windows 98; Q312461; .NET # Windows 98; Q312461; .NET CLR 1.0.3705)".
# CLR 1.0.3705)".
# Corresponds to the JSON property `userAgent` # Corresponds to the JSON property `userAgent`
# @return [String] # @return [String]
attr_accessor :user_agent attr_accessor :user_agent
@ -404,8 +400,7 @@ module Google
# overflow and underflow). Each bucket represents a constant absolute # overflow and underflow). Each bucket represents a constant absolute
# uncertainty on the specific value in the bucket.There are num_finite_buckets + # uncertainty on the specific value in the bucket.There are num_finite_buckets +
# 2 (= N) buckets. Bucket i has the following boundaries:Upper bound (0 <= i < N- # 2 (= N) buckets. Bucket i has the following boundaries:Upper bound (0 <= i < N-
# 1): offset + (width * i). Lower bound (1 <= i < N): offset + (width * (i - 1)) # 1): offset + (width * i). Lower bound (1 <= i < N): offset + (width * (i - 1)).
# .
class Linear class Linear
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -538,12 +533,9 @@ module Google
attr_accessor :project_ids attr_accessor :project_ids
# Required. Names of one or more parent resources from which to retrieve log # Required. Names of one or more parent resources from which to retrieve log
# entries: # entries: "projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]" "
# "projects/[PROJECT_ID]" # billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]" Projects listed in
# "organizations/[ORGANIZATION_ID]" # the project_ids field are added to this list.
# "billingAccounts/[BILLING_ACCOUNT_ID]"
# "folders/[FOLDER_ID]"
# Projects listed in the project_ids field are added to this list.
# Corresponds to the JSON property `resourceNames` # Corresponds to the JSON property `resourceNames`
# @return [Array<String>] # @return [Array<String>]
attr_accessor :resource_names attr_accessor :resource_names
@ -727,11 +719,17 @@ module Google
# @return [String] # @return [String]
attr_accessor :lifecycle_state attr_accessor :lifecycle_state
# Whether the bucket has been locked. The retention period on a locked bucket
# may not be changed. Locked buckets may only be deleted if they are empty.
# Corresponds to the JSON property `locked`
# @return [Boolean]
attr_accessor :locked
alias_method :locked?, :locked
# The resource name of the bucket. For example: "projects/my-project-id/ # The resource name of the bucket. For example: "projects/my-project-id/
# locations/my-location/buckets/my-bucket-id The supported locations are: " # locations/my-location/buckets/my-bucket-id The supported locations are: "
# global" "us-central1"For the location of global it is unspecified where logs # global"For the location of global it is unspecified where logs are actually
# are actually stored. Once a bucket has been created, the location can not be # stored. Once a bucket has been created, the location can not be changed.
# changed.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
# @return [String] # @return [String]
attr_accessor :name attr_accessor :name
@ -758,6 +756,7 @@ module Google
@create_time = args[:create_time] if args.key?(:create_time) @create_time = args[:create_time] if args.key?(:create_time)
@description = args[:description] if args.key?(:description) @description = args[:description] if args.key?(:description)
@lifecycle_state = args[:lifecycle_state] if args.key?(:lifecycle_state) @lifecycle_state = args[:lifecycle_state] if args.key?(:lifecycle_state)
@locked = args[:locked] if args.key?(:locked)
@name = args[:name] if args.key?(:name) @name = args[:name] if args.key?(:name)
@retention_days = args[:retention_days] if args.key?(:retention_days) @retention_days = args[:retention_days] if args.key?(:retention_days)
@update_time = args[:update_time] if args.key?(:update_time) @update_time = args[:update_time] if args.key?(:update_time)
@ -799,22 +798,20 @@ module Google
# @return [Hash<String,String>] # @return [Hash<String,String>]
attr_accessor :labels attr_accessor :labels
# Required. The resource name of the log to which this log entry belongs: # Required. The resource name of the log to which this log entry belongs: "
# "projects/[PROJECT_ID]/logs/[LOG_ID]" # projects/[PROJECT_ID]/logs/[LOG_ID]" "organizations/[ORGANIZATION_ID]/logs/[
# "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]" # LOG_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]" "folders/[
# "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]" # FOLDER_ID]/logs/[LOG_ID]" A project number may be used in place of PROJECT_ID.
# "folders/[FOLDER_ID]/logs/[LOG_ID]" # The project number is translated to its corresponding PROJECT_ID internally
# A project number may be used in place of PROJECT_ID. The project number is # and the log_name field will contain PROJECT_ID in queries and exports.[LOG_ID]
# translated to its corresponding PROJECT_ID internally and the log_name field # must be URL-encoded within log_name. Example: "organizations/1234567890/logs/
# will contain PROJECT_ID in queries and exports.[LOG_ID] must be URL-encoded # cloudresourcemanager.googleapis.com%2Factivity". [LOG_ID] must be less than
# within log_name. Example: "organizations/1234567890/logs/cloudresourcemanager. # 512 characters long and can only include the following characters: upper and
# googleapis.com%2Factivity". [LOG_ID] must be less than 512 characters long and # lower case alphanumeric characters, forward-slash, underscore, hyphen, and
# can only include the following characters: upper and lower case alphanumeric # period.For backward compatibility, if log_name begins with a forward-slash,
# characters, forward-slash, underscore, hyphen, and period.For backward # such as /projects/..., then the log entry is ingested as usual but the forward-
# compatibility, if log_name begins with a forward-slash, such as /projects/..., # slash is removed. Listing the log entry will not show the leading slash and
# then the log entry is ingested as usual but the forward-slash is removed. # filtering for a log name with a leading slash will never return any results.
# Listing the log entry will not show the leading slash and filtering for a log
# name with a leading slash will never return any results.
# Corresponds to the JSON property `logName` # Corresponds to the JSON property `logName`
# @return [String] # @return [String]
attr_accessor :log_name attr_accessor :log_name
@ -856,10 +853,8 @@ module Google
# attributes according to the schema. For example, a particular Compute Engine # attributes according to the schema. For example, a particular Compute Engine
# VM instance could be represented by the following object, because the # VM instance could be represented by the following object, because the
# MonitoredResourceDescriptor for "gce_instance" has labels "instance_id" and " # MonitoredResourceDescriptor for "gce_instance" has labels "instance_id" and "
# zone": # zone": ` "type": "gce_instance", "labels": ` "instance_id": "12345678901234", "
# ` "type": "gce_instance", # zone": "us-central1-a" ``
# "labels": ` "instance_id": "12345678901234",
# "zone": "us-central1-a" ``
# Corresponds to the JSON property `resource` # Corresponds to the JSON property `resource`
# @return [Google::Apis::LoggingV2::MonitoredResource] # @return [Google::Apis::LoggingV2::MonitoredResource]
attr_accessor :resource attr_accessor :resource
@ -1170,9 +1165,9 @@ module Google
attr_accessor :description attr_accessor :description
# Required. An advanced logs filter (https://cloud.google.com/logging/docs/view/ # Required. An advanced logs filter (https://cloud.google.com/logging/docs/view/
# advanced_filters) which is used to match log entries. Example: # advanced_filters) which is used to match log entries. Example: "resource.type=
# "resource.type=gae_app AND severity>=ERROR" # gae_app AND severity>=ERROR" The maximum length of the filter is 20000
# The maximum length of the filter is 20000 characters. # characters.
# Corresponds to the JSON property `filter` # Corresponds to the JSON property `filter`
# @return [String] # @return [String]
attr_accessor :filter attr_accessor :filter
@ -1194,14 +1189,12 @@ module Google
# Defines a metric type and its schema. Once a metric descriptor is created, # Defines a metric type and its schema. Once a metric descriptor is created,
# deleting or altering it stops data collection and makes the metric type's # deleting or altering it stops data collection and makes the metric type's
# existing data unusable.The following are specific rules for service defined # existing data unusable.The following are specific rules for service defined
# Monitoring metric descriptors: # Monitoring metric descriptors: type, metric_kind, value_type and description
# type, metric_kind, value_type and description fields are all required. The # fields are all required. The unit field must be specified if the value_type is
# unit field must be specified if the value_type is any of DOUBLE, INT64, # any of DOUBLE, INT64, DISTRIBUTION. Maximum of default 500 metric descriptors
# DISTRIBUTION. # per service is allowed. Maximum of default 10 labels per metric descriptor is
# Maximum of default 500 metric descriptors per service is allowed. # allowed.The default maximum limit can be overridden. Please follow https://
# Maximum of default 10 labels per metric descriptor is allowed.The default # cloud.google.com/monitoring/quotas
# maximum limit can be overridden. Please follow https://cloud.google.com/
# monitoring/quotas
# Corresponds to the JSON property `metricDescriptor` # Corresponds to the JSON property `metricDescriptor`
# @return [Google::Apis::LoggingV2::MetricDescriptor] # @return [Google::Apis::LoggingV2::MetricDescriptor]
attr_accessor :metric_descriptor attr_accessor :metric_descriptor
@ -1229,14 +1222,14 @@ module Google
# metric to extract the values to record from a log entry. Two functions are # metric to extract the values to record from a log entry. Two functions are
# supported for value extraction: EXTRACT(field) or REGEXP_EXTRACT(field, regex). # supported for value extraction: EXTRACT(field) or REGEXP_EXTRACT(field, regex).
# The argument are: 1. field: The name of the log entry field from which the # The argument are: 1. field: The name of the log entry field from which the
# value is to be extracted. 2. regex: A regular expression using the Google # value is to be extracted. 2. regex: A regular expression using the Google RE2
# RE2 syntax (https://github.com/google/re2/wiki/Syntax) with a single capture # syntax (https://github.com/google/re2/wiki/Syntax) with a single capture group
# group to extract data from the specified log entry field. The value of the # to extract data from the specified log entry field. The value of the field is
# field is converted to a string before applying the regex. It is an error to # converted to a string before applying the regex. It is an error to specify a
# specify a regex that does not include exactly one capture group.The result of # regex that does not include exactly one capture group.The result of the
# the extraction must be convertible to a double type, as the distribution # extraction must be convertible to a double type, as the distribution always
# always records double values. If either the extraction or the conversion to # records double values. If either the extraction or the conversion to double
# double fails, then those values are not recorded in the distribution.Example: # fails, then those values are not recorded in the distribution.Example:
# REGEXP_EXTRACT(jsonPayload.request, ".*quantity=(\d+).*") # REGEXP_EXTRACT(jsonPayload.request, ".*quantity=(\d+).*")
# Corresponds to the JSON property `valueExtractor` # Corresponds to the JSON property `valueExtractor`
# @return [String] # @return [String]
@ -1292,12 +1285,11 @@ module Google
# @return [String] # @return [String]
attr_accessor :description attr_accessor :description
# Required. The export destination: # Required. The export destination: "storage.googleapis.com/[GCS_BUCKET]" "
# "storage.googleapis.com/[GCS_BUCKET]" # bigquery.googleapis.com/projects/[PROJECT_ID]/datasets/[DATASET]" "pubsub.
# "bigquery.googleapis.com/projects/[PROJECT_ID]/datasets/[DATASET]" # googleapis.com/projects/[PROJECT_ID]/topics/[TOPIC_ID]" The sink's
# "pubsub.googleapis.com/projects/[PROJECT_ID]/topics/[TOPIC_ID]" # writer_identity, set when the sink is created, must have permission to write
# The sink's writer_identity, set when the sink is created, must have permission # to the destination or else the log entries are not exported. For more
# to write to the destination or else the log entries are not exported. For more
# information, see Exporting Logs with Sinks (https://cloud.google.com/logging/ # information, see Exporting Logs with Sinks (https://cloud.google.com/logging/
# docs/api/tasks/exporting-logs). # docs/api/tasks/exporting-logs).
# Corresponds to the JSON property `destination` # Corresponds to the JSON property `destination`
@ -1311,10 +1303,17 @@ module Google
attr_accessor :disabled attr_accessor :disabled
alias_method :disabled?, :disabled alias_method :disabled?, :disabled
# Optional. Log entries that match any of the exclusion filters will not be
# exported. If a log entry is matched by both filter and one of
# exclusion_filters it will not be exported.
# Corresponds to the JSON property `exclusions`
# @return [Array<Google::Apis::LoggingV2::LogExclusion>]
attr_accessor :exclusions
# Optional. An advanced logs filter (https://cloud.google.com/logging/docs/view/ # Optional. An advanced logs filter (https://cloud.google.com/logging/docs/view/
# advanced-queries). The only exported log entries are those that are in the # advanced-queries). The only exported log entries are those that are in the
# resource owning the sink and that match the filter. For example: # resource owning the sink and that match the filter. For example: logName="
# logName="projects/[PROJECT_ID]/logs/[LOG_ID]" AND severity>=ERROR # projects/[PROJECT_ID]/logs/[LOG_ID]" AND severity>=ERROR
# Corresponds to the JSON property `filter` # Corresponds to the JSON property `filter`
# @return [String] # @return [String]
attr_accessor :filter attr_accessor :filter
@ -1328,9 +1327,8 @@ module Google
# if this field is true, then the filter resource.type=gce_instance would export # if this field is true, then the filter resource.type=gce_instance would export
# all Compute Engine VM instance log entries from all projects in the sink's # all Compute Engine VM instance log entries from all projects in the sink's
# parent. To only export entries from certain child projects, filter on the # parent. To only export entries from certain child projects, filter on the
# project part of the log name: # project part of the log name: logName:("projects/test-project1/" OR "projects/
# logName:("projects/test-project1/" OR "projects/test-project2/") AND # test-project2/") AND resource.type=gce_instance
# resource.type=gce_instance
# Corresponds to the JSON property `includeChildren` # Corresponds to the JSON property `includeChildren`
# @return [Boolean] # @return [Boolean]
attr_accessor :include_children attr_accessor :include_children
@ -1356,16 +1354,15 @@ module Google
# @return [String] # @return [String]
attr_accessor :update_time attr_accessor :update_time
# Output only. An IAM identity&mdash;a service account or group&mdash;under # Output only. An IAM identity—a service account or group—under which Logging
# which Logging writes the exported log entries to the sink's destination. This # writes the exported log entries to the sink's destination. This field is set
# field is set by sinks.create and sinks.update based on the value of # by sinks.create and sinks.update based on the value of unique_writer_identity
# unique_writer_identity in those methods.Until you grant this identity write- # in those methods.Until you grant this identity write-access to the destination,
# access to the destination, log entry exports from this sink will fail. For # log entry exports from this sink will fail. For more information, see
# more information, see Granting Access for a Resource (https://cloud.google.com/ # Granting Access for a Resource (https://cloud.google.com/iam/docs/granting-
# iam/docs/granting-roles-to-service-accounts# # roles-to-service-accounts#granting_access_to_a_service_account_for_a_resource).
# granting_access_to_a_service_account_for_a_resource). Consult the destination # Consult the destination service's documentation to determine the appropriate
# service's documentation to determine the appropriate IAM roles to assign to # IAM roles to assign to the identity.
# the identity.
# Corresponds to the JSON property `writerIdentity` # Corresponds to the JSON property `writerIdentity`
# @return [String] # @return [String]
attr_accessor :writer_identity attr_accessor :writer_identity
@ -1381,6 +1378,7 @@ module Google
@description = args[:description] if args.key?(:description) @description = args[:description] if args.key?(:description)
@destination = args[:destination] if args.key?(:destination) @destination = args[:destination] if args.key?(:destination)
@disabled = args[:disabled] if args.key?(:disabled) @disabled = args[:disabled] if args.key?(:disabled)
@exclusions = args[:exclusions] if args.key?(:exclusions)
@filter = args[:filter] if args.key?(:filter) @filter = args[:filter] if args.key?(:filter)
@include_children = args[:include_children] if args.key?(:include_children) @include_children = args[:include_children] if args.key?(:include_children)
@name = args[:name] if args.key?(:name) @name = args[:name] if args.key?(:name)
@ -1393,14 +1391,12 @@ module Google
# Defines a metric type and its schema. Once a metric descriptor is created, # Defines a metric type and its schema. Once a metric descriptor is created,
# deleting or altering it stops data collection and makes the metric type's # deleting or altering it stops data collection and makes the metric type's
# existing data unusable.The following are specific rules for service defined # existing data unusable.The following are specific rules for service defined
# Monitoring metric descriptors: # Monitoring metric descriptors: type, metric_kind, value_type and description
# type, metric_kind, value_type and description fields are all required. The # fields are all required. The unit field must be specified if the value_type is
# unit field must be specified if the value_type is any of DOUBLE, INT64, # any of DOUBLE, INT64, DISTRIBUTION. Maximum of default 500 metric descriptors
# DISTRIBUTION. # per service is allowed. Maximum of default 10 labels per metric descriptor is
# Maximum of default 500 metric descriptors per service is allowed. # allowed.The default maximum limit can be overridden. Please follow https://
# Maximum of default 10 labels per metric descriptor is allowed.The default # cloud.google.com/monitoring/quotas
# maximum limit can be overridden. Please follow https://cloud.google.com/
# monitoring/quotas
class MetricDescriptor class MetricDescriptor
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -1418,10 +1414,9 @@ module Google
attr_accessor :display_name attr_accessor :display_name
# The set of labels that can be used to describe a specific instance of this # The set of labels that can be used to describe a specific instance of this
# metric type.The label key name must follow: # metric type.The label key name must follow: Only upper and lower-case letters,
# Only upper and lower-case letters, digits and underscores (_) are allowed. # digits and underscores (_) are allowed. Label name must start with a letter or
# Label name must start with a letter or digit. # digit. The maximum length of a label name is 100 characters.For example, the
# The maximum length of a label name is 100 characters.For example, the
# appengine.googleapis.com/http/server/response_latencies metric type has a # appengine.googleapis.com/http/server/response_latencies metric type has a
# label for the HTTP response code, response_code, so you can look at latencies # label for the HTTP response code, response_code, so you can look at latencies
# for successful responses or just for responses that failed. # for successful responses or just for responses that failed.
@ -1461,16 +1456,14 @@ module Google
# The metric type, including its DNS name prefix. The type is not URL-encoded. # The metric type, including its DNS name prefix. The type is not URL-encoded.
# All service defined metrics must be prefixed with the service name, in the # All service defined metrics must be prefixed with the service name, in the
# format of `service name`/`relative metric name`, such as cloudsql.googleapis. # format of `service name`/`relative metric name`, such as cloudsql.googleapis.
# com/database/cpu/utilization. The relative metric name must follow: # com/database/cpu/utilization. The relative metric name must follow: Only upper
# Only upper and lower-case letters, digits, '/' and underscores '_' are # and lower-case letters, digits, '/' and underscores '_' are allowed. The
# allowed. # maximum number of characters allowed for the relative_metric_name is 100.All
# The maximum number of characters allowed for the relative_metric_name is 100. # user-defined metric types have the DNS name custom.googleapis.com, external.
# All user-defined metric types have the DNS name custom.googleapis.com, # googleapis.com, or logging.googleapis.com/user/.Metric types should use a
# external.googleapis.com, or logging.googleapis.com/user/.Metric types should # natural hierarchical grouping. For example: "custom.googleapis.com/invoice/
# use a natural hierarchical grouping. For example: # paid/amount" "external.googleapis.com/prometheus/up" "appengine.googleapis.com/
# "custom.googleapis.com/invoice/paid/amount" # http/server/response_latencies"
# "external.googleapis.com/prometheus/up"
# "appengine.googleapis.com/http/server/response_latencies"
# Corresponds to the JSON property `type` # Corresponds to the JSON property `type`
# @return [String] # @return [String]
attr_accessor :type attr_accessor :type
@ -1489,63 +1482,32 @@ module Google
# a DOUBLE CUMULATIVE metric whose unit is ks`CPU`, and then write the value 12. # a DOUBLE CUMULATIVE metric whose unit is ks`CPU`, and then write the value 12.
# 005 (which is 12005/1000), or use Kis`CPU` and write 11.723 (which is 12005/ # 005 (which is 12005/1000), or use Kis`CPU` and write 11.723 (which is 12005/
# 1024).The supported units are a subset of The Unified Code for Units of # 1024).The supported units are a subset of The Unified Code for Units of
# Measure (http://unitsofmeasure.org/ucum.html) standard:Basic units (UNIT) # Measure (http://unitsofmeasure.org/ucum.html) standard:Basic units (UNIT) bit
# bit bit # bit By byte s second min minute h hour d day 1 dimensionlessPrefixes (PREFIX)
# By byte # k kilo (10^3) M mega (10^6) G giga (10^9) T tera (10^12) P peta (10^15) E exa (
# s second # 10^18) Z zetta (10^21) Y yotta (10^24) m milli (10^-3) u micro (10^-6) n nano (
# min minute # 10^-9) p pico (10^-12) f femto (10^-15) a atto (10^-18) z zepto (10^-21) y
# h hour # yocto (10^-24) Ki kibi (2^10) Mi mebi (2^20) Gi gibi (2^30) Ti tebi (2^40) Pi
# d day # pebi (2^50)GrammarThe grammar also includes these connectors: / division or
# 1 dimensionlessPrefixes (PREFIX) # ratio (as an infix operator). For examples, kBy/`email` or MiBy/10ms (although
# k kilo (10^3) # you should almost never have /s in a metric unit; rates should always be
# M mega (10^6) # computed at query time from the underlying cumulative or delta value). .
# G giga (10^9) # multiplication or composition (as an infix operator). For examples, GBy.d or k`
# T tera (10^12) # watt`.h.The grammar for a unit is as follows: Expression = Component ` "."
# P peta (10^15) # Component ` ` "/" Component ` ; Component = ( [ PREFIX ] UNIT | "%" ) [
# E exa (10^18) # Annotation ] | Annotation | "1" ; Annotation = "`" NAME "`" ; Notes:
# Z zetta (10^21)
# Y yotta (10^24)
# m milli (10^-3)
# u micro (10^-6)
# n nano (10^-9)
# p pico (10^-12)
# f femto (10^-15)
# a atto (10^-18)
# z zepto (10^-21)
# y yocto (10^-24)
# Ki kibi (2^10)
# Mi mebi (2^20)
# Gi gibi (2^30)
# Ti tebi (2^40)
# Pi pebi (2^50)GrammarThe grammar also includes these connectors:
# / division or ratio (as an infix operator). For examples, kBy/`email` or MiBy/
# 10ms (although you should almost never have /s in a metric unit; rates should
# always be computed at query time from the underlying cumulative or delta
# value).
# . multiplication or composition (as an infix operator). For examples, GBy.d
# or k`watt`.h.The grammar for a unit is as follows:
# Expression = Component ` "." Component ` ` "/" Component ` ;
# Component = ( [ PREFIX ] UNIT | "%" ) [ Annotation ]
# | Annotation
# | "1"
# ;
# Annotation = "`" NAME "`" ;
# Notes:
# Annotation is just a comment if it follows a UNIT. If the annotation is used # Annotation is just a comment if it follows a UNIT. If the annotation is used
# alone, then the unit is equivalent to 1. For examples, `request`/s == 1/s, By` # alone, then the unit is equivalent to 1. For examples, `request`/s == 1/s, By`
# transmitted`/s == By/s. # transmitted`/s == By/s. NAME is a sequence of non-blank printable ASCII
# NAME is a sequence of non-blank printable ASCII characters not containing ` # characters not containing ` or `. 1 represents a unitary dimensionless unit (
# or `. # https://en.wikipedia.org/wiki/Dimensionless_quantity) of 1, such as in 1/s. It
# 1 represents a unitary dimensionless unit (https://en.wikipedia.org/wiki/ # is typically used when none of the basic units are appropriate. For example, "
# Dimensionless_quantity) of 1, such as in 1/s. It is typically used when none # new users per day" can be represented as 1/d or `new-users`/d (and a metric
# of the basic units are appropriate. For example, "new users per day" can be # value 5 would mean "5 new users). Alternatively, "thousands of page views per
# represented as 1/d or `new-users`/d (and a metric value 5 would mean "5 new # day" would be represented as 1000/d or k1/d or k`page_views`/d (and a metric
# users). Alternatively, "thousands of page views per day" would be represented # value of 5.3 would mean "5300 page views per day"). % represents dimensionless
# as 1000/d or k1/d or k`page_views`/d (and a metric value of 5.3 would mean " # value of 1/100, and annotates values giving a percentage (so the metric values
# 5300 page views per day"). # are typically in the range of 0..100, and a metric value 3 means "3 percent").
# % represents dimensionless value of 1/100, and annotates values giving a
# percentage (so the metric values are typically in the range of 0..100, and a
# metric value 3 means "3 percent").
# 10^2.% indicates a metric contains a ratio, typically in the range 0..1, that # 10^2.% indicates a metric contains a ratio, typically in the range 0..1, that
# will be multiplied by 100 and displayed as a percentage (so a metric value 0. # will be multiplied by 100 and displayed as a percentage (so a metric value 0.
# 03 means "3 percent"). # 03 means "3 percent").
@ -1623,10 +1585,8 @@ module Google
# attributes according to the schema. For example, a particular Compute Engine # attributes according to the schema. For example, a particular Compute Engine
# VM instance could be represented by the following object, because the # VM instance could be represented by the following object, because the
# MonitoredResourceDescriptor for "gce_instance" has labels "instance_id" and " # MonitoredResourceDescriptor for "gce_instance" has labels "instance_id" and "
# zone": # zone": ` "type": "gce_instance", "labels": ` "instance_id": "12345678901234", "
# ` "type": "gce_instance", # zone": "us-central1-a" ``
# "labels": ` "instance_id": "12345678901234",
# "zone": "us-central1-a" ``
class MonitoredResource class MonitoredResource
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -1661,18 +1621,14 @@ module Google
# the use of the labels "instance_id" and "zone" to identify particular VM # the use of the labels "instance_id" and "zone" to identify particular VM
# instances.Different services can support different monitored resource types. # instances.Different services can support different monitored resource types.
# The following are specific rules to service defined monitored resources for # The following are specific rules to service defined monitored resources for
# Monitoring and Logging: # Monitoring and Logging: The type, display_name, description, labels and
# The type, display_name, description, labels and launch_stage fields are all # launch_stage fields are all required. The first label of the monitored
# required. # resource descriptor must be resource_container. There are legacy monitored
# The first label of the monitored resource descriptor must be # resource descritptors start with project_id. It must include a location label.
# resource_container. There are legacy monitored resource descritptors start # Maximum of default 5 service defined monitored resource descriptors is allowed
# with project_id. # per service. Maximum of default 10 labels per monitored resource is allowed.
# It must include a location label. # The default maximum limit can be overridden. Please follow https://cloud.
# Maximum of default 5 service defined monitored resource descriptors is # google.com/monitoring/quotas
# allowed per service.
# Maximum of default 10 labels per monitored resource is allowed.The default
# maximum limit can be overridden. Please follow https://cloud.google.com/
# monitoring/quotas
class MonitoredResourceDescriptor class MonitoredResourceDescriptor
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -1690,12 +1646,11 @@ module Google
attr_accessor :display_name attr_accessor :display_name
# Required. A set of labels used to describe instances of this monitored # Required. A set of labels used to describe instances of this monitored
# resource type. The label key name must follow: # resource type. The label key name must follow: Only upper and lower-case
# Only upper and lower-case letters, digits and underscores (_) are allowed. # letters, digits and underscores (_) are allowed. Label name must start with a
# Label name must start with a letter or digit. # letter or digit. The maximum length of a label name is 100 characters.For
# The maximum length of a label name is 100 characters.For example, an # example, an individual Google Cloud SQL database is identified by values for
# individual Google Cloud SQL database is identified by values for the labels # the labels database_id and location.
# database_id and location.
# Corresponds to the JSON property `labels` # Corresponds to the JSON property `labels`
# @return [Array<Google::Apis::LoggingV2::LabelDescriptor>] # @return [Array<Google::Apis::LoggingV2::LabelDescriptor>]
attr_accessor :labels attr_accessor :labels
@ -1719,11 +1674,10 @@ module Google
# represents databases in Google Cloud SQL.All service defined monitored # represents databases in Google Cloud SQL.All service defined monitored
# resource types must be prefixed with the service name, in the format of ` # resource types must be prefixed with the service name, in the format of `
# service name`/`relative resource name`. The relative resource name must follow: # service name`/`relative resource name`. The relative resource name must follow:
# Only upper and lower-case letters and digits are allowed. # Only upper and lower-case letters and digits are allowed. It must start with
# It must start with upper case character and is recommended to use Upper Camel # upper case character and is recommended to use Upper Camel Case style. The
# Case style. # maximum number of characters allowed for the relative_resource_name is 100.
# The maximum number of characters allowed for the relative_resource_name is # Note there are legacy service monitored resources not following this rule.
# 100.Note there are legacy service monitored resources not following this rule.
# Corresponds to the JSON property `type` # Corresponds to the JSON property `type`
# @return [String] # @return [String]
attr_accessor :type attr_accessor :type
@ -1754,10 +1708,8 @@ module Google
# Output only. Values for predefined system metadata labels. System labels are a # Output only. Values for predefined system metadata labels. System labels are a
# kind of metadata extracted by Google, including "machine_image", "vpc", " # kind of metadata extracted by Google, including "machine_image", "vpc", "
# subnet_id", "security_group", "name", etc. System label values can be only # subnet_id", "security_group", "name", etc. System label values can be only
# strings, Boolean values, or a list of strings. For example: # strings, Boolean values, or a list of strings. For example: ` "name": "my-test-
# ` "name": "my-test-instance", # instance", "security_group": ["a", "b", "c"], "spot_instance": false `
# "security_group": ["a", "b", "c"],
# "spot_instance": false `
# Corresponds to the JSON property `systemLabels` # Corresponds to the JSON property `systemLabels`
# @return [Hash<String,Object>] # @return [Hash<String,Object>]
attr_accessor :system_labels attr_accessor :system_labels
@ -2073,6 +2025,19 @@ module Google
end end
end end
# The parameters to UndeleteBucket.
class UndeleteBucketRequest
include Google::Apis::Core::Hashable
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
end
end
# The parameters to WriteLogEntries. # The parameters to WriteLogEntries.
class WriteLogEntriesRequest class WriteLogEntriesRequest
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -2114,14 +2079,11 @@ module Google
attr_accessor :labels attr_accessor :labels
# Optional. A default log resource name that is assigned to all log entries in # Optional. A default log resource name that is assigned to all log entries in
# entries that do not specify a value for log_name: # entries that do not specify a value for log_name: "projects/[PROJECT_ID]/logs/[
# "projects/[PROJECT_ID]/logs/[LOG_ID]" # LOG_ID]" "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]" "billingAccounts/[
# "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]" # BILLING_ACCOUNT_ID]/logs/[LOG_ID]" "folders/[FOLDER_ID]/logs/[LOG_ID]" [LOG_ID]
# "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]" # must be URL-encoded. For example: "projects/my-project-id/logs/syslog" "
# "folders/[FOLDER_ID]/logs/[LOG_ID]" # organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity"
# [LOG_ID] must be URL-encoded. For example:
# "projects/my-project-id/logs/syslog"
# "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity"
# The permission logging.logEntries.create is needed on each project, # The permission logging.logEntries.create is needed on each project,
# organization, billing account, or folder that is receiving new log entries, # organization, billing account, or folder that is receiving new log entries,
# whether the resource is specified in logName or in an individual log entry. # whether the resource is specified in logName or in an individual log entry.
@ -2147,10 +2109,8 @@ module Google
# attributes according to the schema. For example, a particular Compute Engine # attributes according to the schema. For example, a particular Compute Engine
# VM instance could be represented by the following object, because the # VM instance could be represented by the following object, because the
# MonitoredResourceDescriptor for "gce_instance" has labels "instance_id" and " # MonitoredResourceDescriptor for "gce_instance" has labels "instance_id" and "
# zone": # zone": ` "type": "gce_instance", "labels": ` "instance_id": "12345678901234", "
# ` "type": "gce_instance", # zone": "us-central1-a" ``
# "labels": ` "instance_id": "12345678901234",
# "zone": "us-central1-a" ``
# Corresponds to the JSON property `resource` # Corresponds to the JSON property `resource`
# @return [Google::Apis::LoggingV2::MonitoredResource] # @return [Google::Apis::LoggingV2::MonitoredResource]
attr_accessor :resource attr_accessor :resource

View File

@ -220,6 +220,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class UndeleteBucketRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class WriteLogEntriesRequest class WriteLogEntriesRequest
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -402,6 +408,7 @@ module Google
property :create_time, as: 'createTime' property :create_time, as: 'createTime'
property :description, as: 'description' property :description, as: 'description'
property :lifecycle_state, as: 'lifecycleState' property :lifecycle_state, as: 'lifecycleState'
property :locked, as: 'locked'
property :name, as: 'name' property :name, as: 'name'
property :retention_days, as: 'retentionDays' property :retention_days, as: 'retentionDays'
property :update_time, as: 'updateTime' property :update_time, as: 'updateTime'
@ -505,6 +512,8 @@ module Google
property :description, as: 'description' property :description, as: 'description'
property :destination, as: 'destination' property :destination, as: 'destination'
property :disabled, as: 'disabled' property :disabled, as: 'disabled'
collection :exclusions, as: 'exclusions', class: Google::Apis::LoggingV2::LogExclusion, decorator: Google::Apis::LoggingV2::LogExclusion::Representation
property :filter, as: 'filter' property :filter, as: 'filter'
property :include_children, as: 'includeChildren' property :include_children, as: 'includeChildren'
property :name, as: 'name' property :name, as: 'name'
@ -629,6 +638,12 @@ module Google
end end
end end
class UndeleteBucketRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class WriteLogEntriesRequest class WriteLogEntriesRequest
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation

File diff suppressed because it is too large Load Diff

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/compute/docs/oslogin/ # @see https://cloud.google.com/compute/docs/oslogin/
module OsloginV1alpha module OsloginV1alpha
VERSION = 'V1alpha' VERSION = 'V1alpha'
REVISION = '20200215' REVISION = '20200801'
# 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 File

@ -22,13 +22,11 @@ module Google
module Apis module Apis
module OsloginV1alpha module OsloginV1alpha
# A generic empty message that you can re-use to avoid defining duplicated # A generic empty message that you can re-use to avoid defining duplicated empty
# empty messages in your APIs. A typical example is to use it as the request # messages in your APIs. A typical example is to use it as the request or the
# or the response type of an API method. For instance: # response type of an API method. For instance: service Foo ` rpc Bar(google.
# service Foo ` # protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for
# rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); # `Empty` is empty JSON object ````.
# `
# The JSON representation for `Empty` is empty JSON object ````.
class Empty class Empty
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -138,8 +136,8 @@ module Google
# @return [String] # @return [String]
attr_accessor :shell attr_accessor :shell
# System identifier for which account the username or uid applies to. # System identifier for which account the username or uid applies to. By default,
# By default, the empty value is used. # the empty value is used.
# Corresponds to the JSON property `systemId` # Corresponds to the JSON property `systemId`
# @return [String] # @return [String]
attr_accessor :system_id attr_accessor :system_id
@ -188,9 +186,7 @@ module Google
# @return [String] # @return [String]
attr_accessor :fingerprint attr_accessor :fingerprint
# Public key text in SSH format, defined by # Public key text in SSH format, defined by RFC4253 section 6.6.
# <a href="https://www.ietf.org/rfc/rfc4253.txt" target="_blank">RFC4253</a>
# section 6.6.
# Corresponds to the JSON property `key` # Corresponds to the JSON property `key`
# @return [String] # @return [String]
attr_accessor :key attr_accessor :key

View File

@ -47,8 +47,8 @@ module Google
@batch_path = 'batch' @batch_path = 'batch'
end end
# Retrieves the profile information used for logging in to a virtual machine # Retrieves the profile information used for logging in to a virtual machine on
# on Google Compute Engine. # Google Compute Engine.
# @param [String] name # @param [String] name
# The unique ID for the user in format `users/`user``. # The unique ID for the user in format `users/`user``.
# @param [String] operating_system_type # @param [String] operating_system_type
@ -88,8 +88,8 @@ module Google
end end
# Adds an SSH public key and returns the profile information. Default POSIX # Adds an SSH public key and returns the profile information. Default POSIX
# account information is set when no username and UID exist as part of the # account information is set when no username and UID exist as part of the login
# login profile. # profile.
# @param [String] parent # @param [String] parent
# The unique ID for the user in format `users/`user``. # The unique ID for the user in format `users/`user``.
# @param [Google::Apis::OsloginV1alpha::SshPublicKey] ssh_public_key_object # @param [Google::Apis::OsloginV1alpha::SshPublicKey] ssh_public_key_object
@ -127,9 +127,9 @@ module Google
# Deletes a POSIX account. # Deletes a POSIX account.
# @param [String] name # @param [String] name
# A reference to the POSIX account to update. POSIX accounts are identified # A reference to the POSIX account to update. POSIX accounts are identified by
# by the project ID they are associated with. A reference to the POSIX # the project ID they are associated with. A reference to the POSIX account is
# account is in format `users/`user`/projects/`project``. # in format `users/`user`/projects/`project``.
# @param [String] operating_system_type # @param [String] operating_system_type
# The type of operating system associated with the account. # The type of operating system associated with the account.
# @param [String] fields # @param [String] fields
@ -163,8 +163,8 @@ module Google
# Deletes an SSH public key. # Deletes an SSH public key.
# @param [String] name # @param [String] name
# The fingerprint of the public key to update. Public keys are identified by # The fingerprint of the public key to update. Public keys are identified by
# their SHA-256 fingerprint. The fingerprint of the public key is in format # their SHA-256 fingerprint. The fingerprint of the public key is in format `
# `users/`user`/sshPublicKeys/`fingerprint``. # users/`user`/sshPublicKeys/`fingerprint``.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -194,9 +194,9 @@ module Google
# Retrieves an SSH public key. # Retrieves an SSH public key.
# @param [String] name # @param [String] name
# The fingerprint of the public key to retrieve. Public keys are identified # The fingerprint of the public key to retrieve. Public keys are identified by
# by their SHA-256 fingerprint. The fingerprint of the public key is in # their SHA-256 fingerprint. The fingerprint of the public key is in format `
# format `users/`user`/sshPublicKeys/`fingerprint``. # users/`user`/sshPublicKeys/`fingerprint``.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -228,8 +228,8 @@ module Google
# supports patch semantics. # supports patch semantics.
# @param [String] name # @param [String] name
# The fingerprint of the public key to update. Public keys are identified by # The fingerprint of the public key to update. Public keys are identified by
# their SHA-256 fingerprint. The fingerprint of the public key is in format # their SHA-256 fingerprint. The fingerprint of the public key is in format `
# `users/`user`/sshPublicKeys/`fingerprint``. # users/`user`/sshPublicKeys/`fingerprint``.
# @param [Google::Apis::OsloginV1alpha::SshPublicKey] ssh_public_key_object # @param [Google::Apis::OsloginV1alpha::SshPublicKey] ssh_public_key_object
# @param [String] update_mask # @param [String] update_mask
# Mask to control which fields get updated. Updates all if not present. # Mask to control which fields get updated. Updates all if not present.

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/compute/docs/oslogin/ # @see https://cloud.google.com/compute/docs/oslogin/
module OsloginV1beta module OsloginV1beta
VERSION = 'V1beta' VERSION = 'V1beta'
REVISION = '20200215' REVISION = '20200801'
# 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 File

@ -22,13 +22,11 @@ module Google
module Apis module Apis
module OsloginV1beta module OsloginV1beta
# A generic empty message that you can re-use to avoid defining duplicated # A generic empty message that you can re-use to avoid defining duplicated empty
# empty messages in your APIs. A typical example is to use it as the request # messages in your APIs. A typical example is to use it as the request or the
# or the response type of an API method. For instance: # response type of an API method. For instance: service Foo ` rpc Bar(google.
# service Foo ` # protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for
# rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); # `Empty` is empty JSON object ````.
# `
# The JSON representation for `Empty` is empty JSON object ````.
class Empty class Empty
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -138,8 +136,8 @@ module Google
# @return [String] # @return [String]
attr_accessor :shell attr_accessor :shell
# System identifier for which account the username or uid applies to. # System identifier for which account the username or uid applies to. By default,
# By default, the empty value is used. # the empty value is used.
# Corresponds to the JSON property `systemId` # Corresponds to the JSON property `systemId`
# @return [String] # @return [String]
attr_accessor :system_id attr_accessor :system_id
@ -188,9 +186,7 @@ module Google
# @return [String] # @return [String]
attr_accessor :fingerprint attr_accessor :fingerprint
# Public key text in SSH format, defined by # Public key text in SSH format, defined by RFC4253 section 6.6.
# <a href="https://www.ietf.org/rfc/rfc4253.txt" target="_blank">RFC4253</a>
# section 6.6.
# Corresponds to the JSON property `key` # Corresponds to the JSON property `key`
# @return [String] # @return [String]
attr_accessor :key attr_accessor :key

View File

@ -47,8 +47,8 @@ module Google
@batch_path = 'batch' @batch_path = 'batch'
end end
# Retrieves the profile information used for logging in to a virtual machine # Retrieves the profile information used for logging in to a virtual machine on
# on Google Compute Engine. # Google Compute Engine.
# @param [String] name # @param [String] name
# Required. The unique ID for the user in format `users/`user``. # Required. The unique ID for the user in format `users/`user``.
# @param [String] project_id # @param [String] project_id
@ -85,8 +85,8 @@ module Google
end end
# Adds an SSH public key and returns the profile information. Default POSIX # Adds an SSH public key and returns the profile information. Default POSIX
# account information is set when no username and UID exist as part of the # account information is set when no username and UID exist as part of the login
# login profile. # profile.
# @param [String] parent # @param [String] parent
# The unique ID for the user in format `users/`user``. # The unique ID for the user in format `users/`user``.
# @param [Google::Apis::OsloginV1beta::SshPublicKey] ssh_public_key_object # @param [Google::Apis::OsloginV1beta::SshPublicKey] ssh_public_key_object
@ -125,9 +125,8 @@ module Google
# Deletes a POSIX account. # Deletes a POSIX account.
# @param [String] name # @param [String] name
# Required. A reference to the POSIX account to update. POSIX accounts are # Required. A reference to the POSIX account to update. POSIX accounts are
# identified # identified by the project ID they are associated with. A reference to the
# by the project ID they are associated with. A reference to the POSIX # POSIX account is in format `users/`user`/projects/`project``.
# account is in format `users/`user`/projects/`project``.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -158,9 +157,8 @@ module Google
# Deletes an SSH public key. # Deletes an SSH public key.
# @param [String] name # @param [String] name
# Required. The fingerprint of the public key to update. Public keys are # Required. The fingerprint of the public key to update. Public keys are
# identified by # identified by their SHA-256 fingerprint. The fingerprint of the public key is
# their SHA-256 fingerprint. The fingerprint of the public key is in format # in format `users/`user`/sshPublicKeys/`fingerprint``.
# `users/`user`/sshPublicKeys/`fingerprint``.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -191,9 +189,8 @@ module Google
# Retrieves an SSH public key. # Retrieves an SSH public key.
# @param [String] name # @param [String] name
# Required. The fingerprint of the public key to retrieve. Public keys are # Required. The fingerprint of the public key to retrieve. Public keys are
# identified # identified by their SHA-256 fingerprint. The fingerprint of the public key is
# by their SHA-256 fingerprint. The fingerprint of the public key is in # in format `users/`user`/sshPublicKeys/`fingerprint``.
# format `users/`user`/sshPublicKeys/`fingerprint``.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -225,9 +222,8 @@ module Google
# supports patch semantics. # supports patch semantics.
# @param [String] name # @param [String] name
# Required. The fingerprint of the public key to update. Public keys are # Required. The fingerprint of the public key to update. Public keys are
# identified by # identified by their SHA-256 fingerprint. The fingerprint of the public key is
# their SHA-256 fingerprint. The fingerprint of the public key is in format # in format `users/`user`/sshPublicKeys/`fingerprint``.
# `users/`user`/sshPublicKeys/`fingerprint``.
# @param [Google::Apis::OsloginV1beta::SshPublicKey] ssh_public_key_object # @param [Google::Apis::OsloginV1beta::SshPublicKey] ssh_public_key_object
# @param [String] update_mask # @param [String] update_mask
# Mask to control which fields get updated. Updates all if not present. # Mask to control which fields get updated. Updates all if not present.

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/pubsub/docs # @see https://cloud.google.com/pubsub/docs
module PubsubV1 module PubsubV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20200713' REVISION = '20200731'
# 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 File

@ -1196,6 +1196,16 @@ module Google
# @return [Google::Apis::PubsubV1::DeadLetterPolicy] # @return [Google::Apis::PubsubV1::DeadLetterPolicy]
attr_accessor :dead_letter_policy attr_accessor :dead_letter_policy
# Indicates whether the subscription is detached from its topic. Detached
# subscriptions don't receive messages from their topic and don't retain any
# backlog. `Pull` and `StreamingPull` requests will return
# FAILED_PRECONDITION. If the subscription is a push subscription, pushes to
# the endpoint will not be made.
# Corresponds to the JSON property `detached`
# @return [Boolean]
attr_accessor :detached
alias_method :detached?, :detached
# If true, messages published with the same `ordering_key` in `PubsubMessage` # If true, messages published with the same `ordering_key` in `PubsubMessage`
# will be delivered to the subscribers in the order in which they # will be delivered to the subscribers in the order in which they
# are received by the Pub/Sub system. Otherwise, they may be delivered in # are received by the Pub/Sub system. Otherwise, they may be delivered in
@ -1290,6 +1300,7 @@ module Google
def update!(**args) def update!(**args)
@ack_deadline_seconds = args[:ack_deadline_seconds] if args.key?(:ack_deadline_seconds) @ack_deadline_seconds = args[:ack_deadline_seconds] if args.key?(:ack_deadline_seconds)
@dead_letter_policy = args[:dead_letter_policy] if args.key?(:dead_letter_policy) @dead_letter_policy = args[:dead_letter_policy] if args.key?(:dead_letter_policy)
@detached = args[:detached] if args.key?(:detached)
@enable_message_ordering = args[:enable_message_ordering] if args.key?(:enable_message_ordering) @enable_message_ordering = args[:enable_message_ordering] if args.key?(:enable_message_ordering)
@expiration_policy = args[:expiration_policy] if args.key?(:expiration_policy) @expiration_policy = args[:expiration_policy] if args.key?(:expiration_policy)
@filter = args[:filter] if args.key?(:filter) @filter = args[:filter] if args.key?(:filter)

View File

@ -498,6 +498,7 @@ module Google
property :ack_deadline_seconds, as: 'ackDeadlineSeconds' property :ack_deadline_seconds, as: 'ackDeadlineSeconds'
property :dead_letter_policy, as: 'deadLetterPolicy', class: Google::Apis::PubsubV1::DeadLetterPolicy, decorator: Google::Apis::PubsubV1::DeadLetterPolicy::Representation property :dead_letter_policy, as: 'deadLetterPolicy', class: Google::Apis::PubsubV1::DeadLetterPolicy, decorator: Google::Apis::PubsubV1::DeadLetterPolicy::Representation
property :detached, as: 'detached'
property :enable_message_ordering, as: 'enableMessageOrdering' property :enable_message_ordering, as: 'enableMessageOrdering'
property :expiration_policy, as: 'expirationPolicy', class: Google::Apis::PubsubV1::ExpirationPolicy, decorator: Google::Apis::PubsubV1::ExpirationPolicy::Representation property :expiration_policy, as: 'expirationPolicy', class: Google::Apis::PubsubV1::ExpirationPolicy, decorator: Google::Apis::PubsubV1::ExpirationPolicy::Representation

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/pubsub/lite/docs # @see https://cloud.google.com/pubsub/lite/docs
module PubsubliteV1 module PubsubliteV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20200728' REVISION = '20200803'
# 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 File

@ -26,14 +26,12 @@ module Google
class Capacity class Capacity
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Publish throughput capacity per partition in MiB/s. # Publish throughput capacity per partition in MiB/s. Must be >= 4 and <= 16.
# Must be >= 4 and <= 16.
# Corresponds to the JSON property `publishMibPerSec` # Corresponds to the JSON property `publishMibPerSec`
# @return [Fixnum] # @return [Fixnum]
attr_accessor :publish_mib_per_sec attr_accessor :publish_mib_per_sec
# Subscribe throughput capacity per partition in MiB/s. # Subscribe throughput capacity per partition in MiB/s. Must be >= 4 and <= 32.
# Must be >= 4 and <= 32.
# Corresponds to the JSON property `subscribeMibPerSec` # Corresponds to the JSON property `subscribeMibPerSec`
# @return [Fixnum] # @return [Fixnum]
attr_accessor :subscribe_mib_per_sec attr_accessor :subscribe_mib_per_sec
@ -88,13 +86,11 @@ module Google
end end
end end
# A generic empty message that you can re-use to avoid defining duplicated # A generic empty message that you can re-use to avoid defining duplicated empty
# empty messages in your APIs. A typical example is to use it as the request # messages in your APIs. A typical example is to use it as the request or the
# or the response type of an API method. For instance: # response type of an API method. For instance: service Foo ` rpc Bar(google.
# service Foo ` # protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for
# rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); # `Empty` is empty JSON object ````.
# `
# The JSON representation for `Empty` is empty JSON object ````.
class Empty class Empty
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -111,8 +107,8 @@ module Google
class ListPartitionCursorsResponse class ListPartitionCursorsResponse
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# A token, which can be sent as `page_token` to retrieve the next page. # A token, which can be sent as `page_token` to retrieve the next page. If this
# If this field is omitted, there are no subsequent pages. # field is omitted, there are no subsequent pages.
# Corresponds to the JSON property `nextPageToken` # Corresponds to the JSON property `nextPageToken`
# @return [String] # @return [String]
attr_accessor :next_page_token attr_accessor :next_page_token
@ -137,8 +133,8 @@ module Google
class ListSubscriptionsResponse class ListSubscriptionsResponse
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# A token that can be sent as `page_token` to retrieve the next page of # A token that can be sent as `page_token` to retrieve the next page of results.
# results. If this field is omitted, there are no more results. # If this field is omitted, there are no more results.
# Corresponds to the JSON property `nextPageToken` # Corresponds to the JSON property `nextPageToken`
# @return [String] # @return [String]
attr_accessor :next_page_token attr_accessor :next_page_token
@ -164,8 +160,8 @@ module Google
class ListTopicSubscriptionsResponse class ListTopicSubscriptionsResponse
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# A token that can be sent as `page_token` to retrieve the next page of # A token that can be sent as `page_token` to retrieve the next page of results.
# results. If this field is omitted, there are no more results. # If this field is omitted, there are no more results.
# Corresponds to the JSON property `nextPageToken` # Corresponds to the JSON property `nextPageToken`
# @return [String] # @return [String]
attr_accessor :next_page_token attr_accessor :next_page_token
@ -191,8 +187,8 @@ module Google
class ListTopicsResponse class ListTopicsResponse
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# A token that can be sent as `page_token` to retrieve the next page of # A token that can be sent as `page_token` to retrieve the next page of results.
# results. If this field is omitted, there are no more results. # If this field is omitted, there are no more results.
# Corresponds to the JSON property `nextPageToken` # Corresponds to the JSON property `nextPageToken`
# @return [String] # @return [String]
attr_accessor :next_page_token attr_accessor :next_page_token
@ -228,11 +224,10 @@ module Google
# @return [Fixnum] # @return [Fixnum]
attr_accessor :count attr_accessor :count
# Every partition in the topic is allocated throughput equivalent to # Every partition in the topic is allocated throughput equivalent to `scale`
# `scale` times the standard partition throughput (4 MiB/s). This is also # times the standard partition throughput (4 MiB/s). This is also reflected in
# reflected in the cost of this topic; a topic with `scale` of 2 and # the cost of this topic; a topic with `scale` of 2 and count of 10 is charged
# count of 10 is charged for 20 partitions. This value must be in the # for 20 partitions. This value must be in the range [1,4].
# range [1,4].
# Corresponds to the JSON property `scale` # Corresponds to the JSON property `scale`
# @return [Fixnum] # @return [Fixnum]
attr_accessor :scale attr_accessor :scale
@ -280,15 +275,15 @@ module Google
# The provisioned storage, in bytes, per partition. If the number of bytes # The provisioned storage, in bytes, per partition. If the number of bytes
# stored in any of the topic's partitions grows beyond this value, older # stored in any of the topic's partitions grows beyond this value, older
# messages will be dropped to make room for newer ones, regardless of the # messages will be dropped to make room for newer ones, regardless of the value
# value of `period`. # of `period`.
# Corresponds to the JSON property `perPartitionBytes` # Corresponds to the JSON property `perPartitionBytes`
# @return [Fixnum] # @return [Fixnum]
attr_accessor :per_partition_bytes attr_accessor :per_partition_bytes
# How long a published message is retained. If unset, messages will be # How long a published message is retained. If unset, messages will be retained
# retained as long as the bytes retained for each partition is below # as long as the bytes retained for each partition is below `per_partition_bytes`
# `per_partition_bytes`. # .
# Corresponds to the JSON property `period` # Corresponds to the JSON property `period`
# @return [String] # @return [String]
attr_accessor :period attr_accessor :period
@ -313,15 +308,13 @@ module Google
# @return [Google::Apis::PubsubliteV1::DeliveryConfig] # @return [Google::Apis::PubsubliteV1::DeliveryConfig]
attr_accessor :delivery_config attr_accessor :delivery_config
# The name of the subscription. # The name of the subscription. Structured like: projects/`project_number`/
# Structured like: # locations/`location`/subscriptions/`subscription_id`
# projects/`project_number`/locations/`location`/subscriptions/`subscription_id`
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
# @return [String] # @return [String]
attr_accessor :name attr_accessor :name
# The name of the topic this subscription is attached to. # The name of the topic this subscription is attached to. Structured like:
# Structured like:
# projects/`project_number`/locations/`location`/topics/`topic_id` # projects/`project_number`/locations/`location`/topics/`topic_id`
# Corresponds to the JSON property `topic` # Corresponds to the JSON property `topic`
# @return [String] # @return [String]
@ -343,9 +336,8 @@ module Google
class Topic class Topic
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The name of the topic. # The name of the topic. Structured like: projects/`project_number`/locations/`
# Structured like: # location`/topics/`topic_id`
# projects/`project_number`/locations/`location`/topics/`topic_id`
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
# @return [String] # @return [String]
attr_accessor :name attr_accessor :name

View File

@ -49,14 +49,13 @@ module Google
# Creates a new subscription. # Creates a new subscription.
# @param [String] parent # @param [String] parent
# Required. The parent location in which to create the subscription. # Required. The parent location in which to create the subscription. Structured
# Structured like `projects/`project_number`/locations/`location``. # like `projects/`project_number`/locations/`location``.
# @param [Google::Apis::PubsubliteV1::Subscription] subscription_object # @param [Google::Apis::PubsubliteV1::Subscription] subscription_object
# @param [String] subscription_id # @param [String] subscription_id
# Required. The ID to use for the subscription, which will become the final # Required. The ID to use for the subscription, which will become the final
# component # component of the subscription's name. This value is structured like: `my-sub-
# of the subscription's name. # name`.
# This value is structured like: `my-sub-name`.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -149,17 +148,17 @@ module Google
# Returns the list of subscriptions for the given project. # Returns the list of subscriptions for the given project.
# @param [String] parent # @param [String] parent
# Required. The parent whose subscriptions are to be listed. # Required. The parent whose subscriptions are to be listed. Structured like `
# Structured like `projects/`project_number`/locations/`location``. # projects/`project_number`/locations/`location``.
# @param [Fixnum] page_size # @param [Fixnum] page_size
# The maximum number of subscriptions to return. The service may return fewer # The maximum number of subscriptions to return. The service may return fewer
# than this value. # than this value. If unset or zero, all subscriptions for the parent will be
# If unset or zero, all subscriptions for the parent will be returned. # returned.
# @param [String] page_token # @param [String] page_token
# A page token, received from a previous `ListSubscriptions` call. # A page token, received from a previous `ListSubscriptions` call. Provide this
# Provide this to retrieve the subsequent page. # to retrieve the subsequent page. When paginating, all other parameters
# When paginating, all other parameters provided to `ListSubscriptions` must # provided to `ListSubscriptions` must match the call that provided the page
# match the call that provided the page token. # token.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -191,9 +190,8 @@ module Google
# Updates properties of the specified subscription. # Updates properties of the specified subscription.
# @param [String] name # @param [String] name
# The name of the subscription. # The name of the subscription. Structured like: projects/`project_number`/
# Structured like: # locations/`location`/subscriptions/`subscription_id`
# projects/`project_number`/locations/`location`/subscriptions/`subscription_id`
# @param [Google::Apis::PubsubliteV1::Subscription] subscription_object # @param [Google::Apis::PubsubliteV1::Subscription] subscription_object
# @param [String] update_mask # @param [String] update_mask
# Required. A mask specifying the subscription fields to change. # Required. A mask specifying the subscription fields to change.
@ -229,14 +227,12 @@ module Google
# Creates a new topic. # Creates a new topic.
# @param [String] parent # @param [String] parent
# Required. The parent location in which to create the topic. # Required. The parent location in which to create the topic. Structured like `
# Structured like `projects/`project_number`/locations/`location``. # projects/`project_number`/locations/`location``.
# @param [Google::Apis::PubsubliteV1::Topic] topic_object # @param [Google::Apis::PubsubliteV1::Topic] topic_object
# @param [String] topic_id # @param [String] topic_id
# Required. The ID to use for the topic, which will become the final component # Required. The ID to use for the topic, which will become the final component
# of # of the topic's name. This value is structured like: `my-topic-name`.
# the topic's name.
# This value is structured like: `my-topic-name`.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -359,17 +355,15 @@ module Google
# Returns the list of topics for the given project. # Returns the list of topics for the given project.
# @param [String] parent # @param [String] parent
# Required. The parent whose topics are to be listed. # Required. The parent whose topics are to be listed. Structured like `projects/`
# Structured like `projects/`project_number`/locations/`location``. # project_number`/locations/`location``.
# @param [Fixnum] page_size # @param [Fixnum] page_size
# The maximum number of topics to return. The service may return fewer than # The maximum number of topics to return. The service may return fewer than this
# this value. # value. If unset or zero, all topics for the parent will be returned.
# If unset or zero, all topics for the parent will be returned.
# @param [String] page_token # @param [String] page_token
# A page token, received from a previous `ListTopics` call. # A page token, received from a previous `ListTopics` call. Provide this to
# Provide this to retrieve the subsequent page. # retrieve the subsequent page. When paginating, all other parameters provided
# When paginating, all other parameters provided to `ListTopics` must match # to `ListTopics` must match the call that provided the page token.
# the call that provided the page token.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -401,9 +395,8 @@ module Google
# Updates properties of the specified topic. # Updates properties of the specified topic.
# @param [String] name # @param [String] name
# The name of the topic. # The name of the topic. Structured like: projects/`project_number`/locations/`
# Structured like: # location`/topics/`topic_id`
# projects/`project_number`/locations/`location`/topics/`topic_id`
# @param [Google::Apis::PubsubliteV1::Topic] topic_object # @param [Google::Apis::PubsubliteV1::Topic] topic_object
# @param [String] update_mask # @param [String] update_mask
# Required. A mask specifying the topic fields to change. # Required. A mask specifying the topic fields to change.
@ -442,13 +435,13 @@ module Google
# Required. The name of the topic whose subscriptions to list. # Required. The name of the topic whose subscriptions to list.
# @param [Fixnum] page_size # @param [Fixnum] page_size
# The maximum number of subscriptions to return. The service may return fewer # The maximum number of subscriptions to return. The service may return fewer
# than this value. # than this value. If unset or zero, all subscriptions for the given topic will
# If unset or zero, all subscriptions for the given topic will be returned. # be returned.
# @param [String] page_token # @param [String] page_token
# A page token, received from a previous `ListTopicSubscriptions` call. # A page token, received from a previous `ListTopicSubscriptions` call. Provide
# Provide this to retrieve the subsequent page. # this to retrieve the subsequent page. When paginating, all other parameters
# When paginating, all other parameters provided to `ListTopicSubscriptions` # provided to `ListTopicSubscriptions` must match the call that provided the
# must match the call that provided the page token. # page token.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -480,19 +473,17 @@ module Google
# Returns all committed cursor information for a subscription. # Returns all committed cursor information for a subscription.
# @param [String] parent # @param [String] parent
# Required. The subscription for which to retrieve cursors. # Required. The subscription for which to retrieve cursors. Structured like `
# Structured like # projects/`project_number`/locations/`location`/subscriptions/`subscription_id``
# `projects/`project_number`/locations/`location`/subscriptions/`subscription_id` # .
# `.
# @param [Fixnum] page_size # @param [Fixnum] page_size
# The maximum number of cursors to return. The service may return fewer than # The maximum number of cursors to return. The service may return fewer than
# this value. # this value. If unset or zero, all cursors for the parent will be returned.
# If unset or zero, all cursors for the parent will be returned.
# @param [String] page_token # @param [String] page_token
# A page token, received from a previous `ListPartitionCursors` call. # A page token, received from a previous `ListPartitionCursors` call. Provide
# Provide this to retrieve the subsequent page. # this to retrieve the subsequent page. When paginating, all other parameters
# When paginating, all other parameters provided to `ListPartitionCursors` # provided to `ListPartitionCursors` must match the call that provided the page
# must match the call that provided the page token. # token.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user

View File

@ -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 = '20200619' REVISION = '20200731'
# 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 File

@ -153,6 +153,11 @@ module Google
# @return [Google::Apis::TexttospeechV1beta1::AudioConfig] # @return [Google::Apis::TexttospeechV1beta1::AudioConfig]
attr_accessor :audio_config attr_accessor :audio_config
# Whether and what timepoints are returned in the response.
# Corresponds to the JSON property `enableTimePointing`
# @return [Array<String>]
attr_accessor :enable_time_pointing
# Contains text input to be synthesized. Either `text` or `ssml` must be # Contains text input to be synthesized. Either `text` or `ssml` must be
# supplied. Supplying both or neither returns # supplied. Supplying both or neither returns
# google.rpc.Code.INVALID_ARGUMENT. The input size is limited to 5000 # google.rpc.Code.INVALID_ARGUMENT. The input size is limited to 5000
@ -173,6 +178,7 @@ module Google
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@audio_config = args[:audio_config] if args.key?(:audio_config) @audio_config = args[:audio_config] if args.key?(:audio_config)
@enable_time_pointing = args[:enable_time_pointing] if args.key?(:enable_time_pointing)
@input = args[:input] if args.key?(:input) @input = args[:input] if args.key?(:input)
@voice = args[:voice] if args.key?(:voice) @voice = args[:voice] if args.key?(:voice)
end end
@ -182,6 +188,11 @@ module Google
class SynthesizeSpeechResponse class SynthesizeSpeechResponse
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Description of audio data to be synthesized.
# Corresponds to the JSON property `audioConfig`
# @return [Google::Apis::TexttospeechV1beta1::AudioConfig]
attr_accessor :audio_config
# The audio data bytes encoded as specified in the request, including the # The audio data bytes encoded as specified in the request, including the
# header for encodings that are wrapped in containers (e.g. MP3, OGG_OPUS). # header for encodings that are wrapped in containers (e.g. MP3, OGG_OPUS).
# For LINEAR16 audio, we include the WAV header. Note: as # For LINEAR16 audio, we include the WAV header. Note: as
@ -192,13 +203,47 @@ module Google
# @return [String] # @return [String]
attr_accessor :audio_content attr_accessor :audio_content
# A link between a position in the original request input and a corresponding
# time in the output audio. It's only supported via <mark> of SSML input.
# Corresponds to the JSON property `timepoints`
# @return [Array<Google::Apis::TexttospeechV1beta1::Timepoint>]
attr_accessor :timepoints
def initialize(**args) def initialize(**args)
update!(**args) update!(**args)
end end
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@audio_config = args[:audio_config] if args.key?(:audio_config)
@audio_content = args[:audio_content] if args.key?(:audio_content) @audio_content = args[:audio_content] if args.key?(:audio_content)
@timepoints = args[:timepoints] if args.key?(:timepoints)
end
end
# This contains a mapping between a certain point in the input text and a
# corresponding time in the output audio.
class Timepoint
include Google::Apis::Core::Hashable
# Timepoint name as received from the client within <mark> tag.
# Corresponds to the JSON property `markName`
# @return [String]
attr_accessor :mark_name
# Time offset in seconds from the start of the synthesized audio.
# Corresponds to the JSON property `timeSeconds`
# @return [Float]
attr_accessor :time_seconds
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@mark_name = args[:mark_name] if args.key?(:mark_name)
@time_seconds = args[:time_seconds] if args.key?(:time_seconds)
end end
end end

View File

@ -52,6 +52,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class Timepoint
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Voice class Voice
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -97,6 +103,7 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :audio_config, as: 'audioConfig', class: Google::Apis::TexttospeechV1beta1::AudioConfig, decorator: Google::Apis::TexttospeechV1beta1::AudioConfig::Representation property :audio_config, as: 'audioConfig', class: Google::Apis::TexttospeechV1beta1::AudioConfig, decorator: Google::Apis::TexttospeechV1beta1::AudioConfig::Representation
collection :enable_time_pointing, as: 'enableTimePointing'
property :input, as: 'input', class: Google::Apis::TexttospeechV1beta1::SynthesisInput, decorator: Google::Apis::TexttospeechV1beta1::SynthesisInput::Representation property :input, as: 'input', class: Google::Apis::TexttospeechV1beta1::SynthesisInput, decorator: Google::Apis::TexttospeechV1beta1::SynthesisInput::Representation
property :voice, as: 'voice', class: Google::Apis::TexttospeechV1beta1::VoiceSelectionParams, decorator: Google::Apis::TexttospeechV1beta1::VoiceSelectionParams::Representation property :voice, as: 'voice', class: Google::Apis::TexttospeechV1beta1::VoiceSelectionParams, decorator: Google::Apis::TexttospeechV1beta1::VoiceSelectionParams::Representation
@ -107,7 +114,19 @@ module Google
class SynthesizeSpeechResponse class SynthesizeSpeechResponse
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :audio_config, as: 'audioConfig', class: Google::Apis::TexttospeechV1beta1::AudioConfig, decorator: Google::Apis::TexttospeechV1beta1::AudioConfig::Representation
property :audio_content, :base64 => true, as: 'audioContent' property :audio_content, :base64 => true, as: 'audioContent'
collection :timepoints, as: 'timepoints', class: Google::Apis::TexttospeechV1beta1::Timepoint, decorator: Google::Apis::TexttospeechV1beta1::Timepoint::Representation
end
end
class Timepoint
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :mark_name, as: 'markName'
property :time_seconds, as: 'timeSeconds'
end end
end end