Autogenerated update (2020-06-30)
Update: - billingbudgets_v1beta1 - cloudbuild_v1 - cloudbuild_v1alpha1 - cloudbuild_v1alpha2 - doubleclicksearch_v2 - prod_tt_sasportal_v1alpha1
This commit is contained in:
parent
f707396c55
commit
f136f456ff
29096
api_names_out.yaml
29096
api_names_out.yaml
File diff suppressed because it is too large
Load Diff
|
@ -26,7 +26,7 @@ module Google
|
|||
# @see https://cloud.google.com/billing/docs/how-to/budget-api-overview
|
||||
module BillingbudgetsV1beta1
|
||||
VERSION = 'V1beta1'
|
||||
REVISION = '20200522'
|
||||
REVISION = '20200626'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -221,9 +221,9 @@ module Google
|
|||
# Optional. A set of subaccounts of the form `billingAccounts/`account_id``,
|
||||
# specifying
|
||||
# that usage from only this set of subaccounts should be included in the
|
||||
# budget. If a subaccount is set to the name of the master account, usage
|
||||
# from the master account will be included. If omitted, the report will
|
||||
# include usage from the master account and all subaccounts, if they exist.
|
||||
# budget. If a subaccount is set to the name of the resller account, usage
|
||||
# from the reseller account will be included. If omitted, the report will
|
||||
# include usage from the reseller account and all subaccounts, if they exist.
|
||||
# Corresponds to the JSON property `subaccounts`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :subaccounts
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://cloud.google.com/cloud-build/docs/
|
||||
module CloudbuildV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20200619'
|
||||
REVISION = '20200626'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -865,6 +865,25 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
# HTTPDelivery is the delivery configuration for an HTTP notification.
|
||||
class HttpDelivery
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The URI to which JSON-containing HTTP POST requests should be sent.
|
||||
# Corresponds to the JSON property `uri`
|
||||
# @return [String]
|
||||
attr_accessor :uri
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@uri = args[:uri] if args.key?(:uri)
|
||||
end
|
||||
end
|
||||
|
||||
# Container message for hash values.
|
||||
class HashProp
|
||||
include Google::Apis::Core::Hashable
|
||||
|
@ -941,19 +960,39 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
# The response message for Operations.ListOperations.
|
||||
class ListOperationsResponse
|
||||
# Notification is the container which holds the data that is relevant to this
|
||||
# particular notification.
|
||||
class Notification
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The standard List next-page token.
|
||||
# Corresponds to the JSON property `nextPageToken`
|
||||
# The filter string to use for notification filtering.
|
||||
# Currently, this is assumed to be a CEL program.
|
||||
# See https://opensource.google/projects/cel for more.
|
||||
# Corresponds to the JSON property `filter`
|
||||
# @return [String]
|
||||
attr_accessor :next_page_token
|
||||
attr_accessor :filter
|
||||
|
||||
# A list of operations that matches the specified filter in the request.
|
||||
# Corresponds to the JSON property `operations`
|
||||
# @return [Array<Google::Apis::CloudbuildV1::Operation>]
|
||||
attr_accessor :operations
|
||||
# HTTPDelivery is the delivery configuration for an HTTP notification.
|
||||
# Corresponds to the JSON property `httpDelivery`
|
||||
# @return [Google::Apis::CloudbuildV1::HttpDelivery]
|
||||
attr_accessor :http_delivery
|
||||
|
||||
# SlackDelivery is the delivery configuration for delivering Slack messages via
|
||||
# webhooks. See Slack webhook documentation at:
|
||||
# https://api.slack.com/messaging/webhooks.
|
||||
# Corresponds to the JSON property `slackDelivery`
|
||||
# @return [Google::Apis::CloudbuildV1::SlackDelivery]
|
||||
attr_accessor :slack_delivery
|
||||
|
||||
# SMTPDelivery is the delivery configuration for an SMTP (email) notification.
|
||||
# Corresponds to the JSON property `smtpDelivery`
|
||||
# @return [Google::Apis::CloudbuildV1::SmtpDelivery]
|
||||
attr_accessor :smtp_delivery
|
||||
|
||||
# Escape hatch for users to supply custom delivery configs.
|
||||
# Corresponds to the JSON property `structDelivery`
|
||||
# @return [Hash<String,Object>]
|
||||
attr_accessor :struct_delivery
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
|
@ -961,8 +1000,155 @@ module Google
|
|||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
||||
@operations = args[:operations] if args.key?(:operations)
|
||||
@filter = args[:filter] if args.key?(:filter)
|
||||
@http_delivery = args[:http_delivery] if args.key?(:http_delivery)
|
||||
@slack_delivery = args[:slack_delivery] if args.key?(:slack_delivery)
|
||||
@smtp_delivery = args[:smtp_delivery] if args.key?(:smtp_delivery)
|
||||
@struct_delivery = args[:struct_delivery] if args.key?(:struct_delivery)
|
||||
end
|
||||
end
|
||||
|
||||
# NotifierConfig is the top-level configuration message.
|
||||
class NotifierConfig
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The API version of this configuration format.
|
||||
# Corresponds to the JSON property `apiVersion`
|
||||
# @return [String]
|
||||
attr_accessor :api_version
|
||||
|
||||
# The type of notifier to use (e.g. SMTPNotifier).
|
||||
# Corresponds to the JSON property `kind`
|
||||
# @return [String]
|
||||
attr_accessor :kind
|
||||
|
||||
# NotifierMetadata contains the data which can be used to reference or describe
|
||||
# this notifier.
|
||||
# Corresponds to the JSON property `metadata`
|
||||
# @return [Google::Apis::CloudbuildV1::NotifierMetadata]
|
||||
attr_accessor :metadata
|
||||
|
||||
# NotifierSpec is the configuration container for notifications.
|
||||
# Corresponds to the JSON property `spec`
|
||||
# @return [Google::Apis::CloudbuildV1::NotifierSpec]
|
||||
attr_accessor :spec
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@api_version = args[:api_version] if args.key?(:api_version)
|
||||
@kind = args[:kind] if args.key?(:kind)
|
||||
@metadata = args[:metadata] if args.key?(:metadata)
|
||||
@spec = args[:spec] if args.key?(:spec)
|
||||
end
|
||||
end
|
||||
|
||||
# NotifierMetadata contains the data which can be used to reference or describe
|
||||
# this notifier.
|
||||
class NotifierMetadata
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The human-readable and user-given name for the notifier.
|
||||
# For example: "repo-merge-email-notifier".
|
||||
# Corresponds to the JSON property `name`
|
||||
# @return [String]
|
||||
attr_accessor :name
|
||||
|
||||
# The string representing the name and version of notifier to deploy.
|
||||
# Expected to be of the form of "<registry-path>/<name>:<version>".
|
||||
# For example: "gcr.io/my-project/notifiers/smtp:1.2.34".
|
||||
# Corresponds to the JSON property `notifier`
|
||||
# @return [String]
|
||||
attr_accessor :notifier
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@name = args[:name] if args.key?(:name)
|
||||
@notifier = args[:notifier] if args.key?(:notifier)
|
||||
end
|
||||
end
|
||||
|
||||
# NotifierSecret is the container that maps a secret name (reference) to its
|
||||
# Google Cloud Secret Manager resource path.
|
||||
class NotifierSecret
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Name is the local name of the secret, such as the verbatim string
|
||||
# "my-smtp-password".
|
||||
# Corresponds to the JSON property `name`
|
||||
# @return [String]
|
||||
attr_accessor :name
|
||||
|
||||
# Value is interpreted to be a resource path for fetching the actual
|
||||
# (versioned) secret data for this secret. For example, this would be a
|
||||
# Google Cloud Secret Manager secret version resource path like:
|
||||
# "projects/my-project/secrets/my-secret/versions/latest".
|
||||
# Corresponds to the JSON property `value`
|
||||
# @return [String]
|
||||
attr_accessor :value
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@name = args[:name] if args.key?(:name)
|
||||
@value = args[:value] if args.key?(:value)
|
||||
end
|
||||
end
|
||||
|
||||
# NotifierSecretRef contains the reference to a secret stored in the
|
||||
# corresponding NotifierSpec.
|
||||
class NotifierSecretRef
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The value of `secret_ref` should be a `name` that is registered in a
|
||||
# `Secret` in the `secrets` list of the `Spec`.
|
||||
# Corresponds to the JSON property `secretRef`
|
||||
# @return [String]
|
||||
attr_accessor :secret_ref
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@secret_ref = args[:secret_ref] if args.key?(:secret_ref)
|
||||
end
|
||||
end
|
||||
|
||||
# NotifierSpec is the configuration container for notifications.
|
||||
class NotifierSpec
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Notification is the container which holds the data that is relevant to this
|
||||
# particular notification.
|
||||
# Corresponds to the JSON property `notification`
|
||||
# @return [Google::Apis::CloudbuildV1::Notification]
|
||||
attr_accessor :notification
|
||||
|
||||
# Configurations for secret resources used by this particular notifier.
|
||||
# Corresponds to the JSON property `secrets`
|
||||
# @return [Array<Google::Apis::CloudbuildV1::NotifierSecret>]
|
||||
attr_accessor :secrets
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@notification = args[:notification] if args.key?(:notification)
|
||||
@secrets = args[:secrets] if args.key?(:secrets)
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -1241,6 +1427,58 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
# SMTPDelivery is the delivery configuration for an SMTP (email) notification.
|
||||
class SmtpDelivery
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# This is the SMTP account/email that appears in the `From:` of the email.
|
||||
# If empty, it is assumed to be sender.
|
||||
# Corresponds to the JSON property `fromAddress`
|
||||
# @return [String]
|
||||
attr_accessor :from_address
|
||||
|
||||
# NotifierSecretRef contains the reference to a secret stored in the
|
||||
# corresponding NotifierSpec.
|
||||
# Corresponds to the JSON property `password`
|
||||
# @return [Google::Apis::CloudbuildV1::NotifierSecretRef]
|
||||
attr_accessor :password
|
||||
|
||||
# The SMTP port of the server.
|
||||
# Corresponds to the JSON property `port`
|
||||
# @return [String]
|
||||
attr_accessor :port
|
||||
|
||||
# This is the list of addresses to which we send the email (i.e. in the `To:`
|
||||
# of the email).
|
||||
# Corresponds to the JSON property `recipientAddresses`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :recipient_addresses
|
||||
|
||||
# This is the SMTP account/email that is used to send the message.
|
||||
# Corresponds to the JSON property `senderAddress`
|
||||
# @return [String]
|
||||
attr_accessor :sender_address
|
||||
|
||||
# The address of the SMTP server.
|
||||
# Corresponds to the JSON property `server`
|
||||
# @return [String]
|
||||
attr_accessor :server
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@from_address = args[:from_address] if args.key?(:from_address)
|
||||
@password = args[:password] if args.key?(:password)
|
||||
@port = args[:port] if args.key?(:port)
|
||||
@recipient_addresses = args[:recipient_addresses] if args.key?(:recipient_addresses)
|
||||
@sender_address = args[:sender_address] if args.key?(:sender_address)
|
||||
@server = args[:server] if args.key?(:server)
|
||||
end
|
||||
end
|
||||
|
||||
# Pairs a set of secret environment variables containing encrypted
|
||||
# values with the Cloud KMS key to use to decrypt the value.
|
||||
class Secret
|
||||
|
@ -1271,6 +1509,28 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
# SlackDelivery is the delivery configuration for delivering Slack messages via
|
||||
# webhooks. See Slack webhook documentation at:
|
||||
# https://api.slack.com/messaging/webhooks.
|
||||
class SlackDelivery
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# NotifierSecretRef contains the reference to a secret stored in the
|
||||
# corresponding NotifierSpec.
|
||||
# Corresponds to the JSON property `webhookUri`
|
||||
# @return [Google::Apis::CloudbuildV1::NotifierSecretRef]
|
||||
attr_accessor :webhook_uri
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@webhook_uri = args[:webhook_uri] if args.key?(:webhook_uri)
|
||||
end
|
||||
end
|
||||
|
||||
# Location of the source in a supported storage service.
|
||||
class Source
|
||||
include Google::Apis::Core::Hashable
|
||||
|
|
|
@ -106,6 +106,12 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class HttpDelivery
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class HashProp
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -124,7 +130,37 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ListOperationsResponse
|
||||
class Notification
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class NotifierConfig
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class NotifierMetadata
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class NotifierSecret
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class NotifierSecretRef
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class NotifierSpec
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
|
@ -166,12 +202,24 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SmtpDelivery
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Secret
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SlackDelivery
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Source
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -393,6 +441,13 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class HttpDelivery
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :uri, as: 'uri'
|
||||
end
|
||||
end
|
||||
|
||||
class HashProp
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
@ -419,11 +474,61 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class ListOperationsResponse
|
||||
class Notification
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :next_page_token, as: 'nextPageToken'
|
||||
collection :operations, as: 'operations', class: Google::Apis::CloudbuildV1::Operation, decorator: Google::Apis::CloudbuildV1::Operation::Representation
|
||||
property :filter, as: 'filter'
|
||||
property :http_delivery, as: 'httpDelivery', class: Google::Apis::CloudbuildV1::HttpDelivery, decorator: Google::Apis::CloudbuildV1::HttpDelivery::Representation
|
||||
|
||||
property :slack_delivery, as: 'slackDelivery', class: Google::Apis::CloudbuildV1::SlackDelivery, decorator: Google::Apis::CloudbuildV1::SlackDelivery::Representation
|
||||
|
||||
property :smtp_delivery, as: 'smtpDelivery', class: Google::Apis::CloudbuildV1::SmtpDelivery, decorator: Google::Apis::CloudbuildV1::SmtpDelivery::Representation
|
||||
|
||||
hash :struct_delivery, as: 'structDelivery'
|
||||
end
|
||||
end
|
||||
|
||||
class NotifierConfig
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :api_version, as: 'apiVersion'
|
||||
property :kind, as: 'kind'
|
||||
property :metadata, as: 'metadata', class: Google::Apis::CloudbuildV1::NotifierMetadata, decorator: Google::Apis::CloudbuildV1::NotifierMetadata::Representation
|
||||
|
||||
property :spec, as: 'spec', class: Google::Apis::CloudbuildV1::NotifierSpec, decorator: Google::Apis::CloudbuildV1::NotifierSpec::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class NotifierMetadata
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :name, as: 'name'
|
||||
property :notifier, as: 'notifier'
|
||||
end
|
||||
end
|
||||
|
||||
class NotifierSecret
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :name, as: 'name'
|
||||
property :value, as: 'value'
|
||||
end
|
||||
end
|
||||
|
||||
class NotifierSecretRef
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :secret_ref, as: 'secretRef'
|
||||
end
|
||||
end
|
||||
|
||||
class NotifierSpec
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :notification, as: 'notification', class: Google::Apis::CloudbuildV1::Notification, decorator: Google::Apis::CloudbuildV1::Notification::Representation
|
||||
|
||||
collection :secrets, as: 'secrets', class: Google::Apis::CloudbuildV1::NotifierSecret, decorator: Google::Apis::CloudbuildV1::NotifierSecret::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
@ -492,6 +597,19 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class SmtpDelivery
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :from_address, as: 'fromAddress'
|
||||
property :password, as: 'password', class: Google::Apis::CloudbuildV1::NotifierSecretRef, decorator: Google::Apis::CloudbuildV1::NotifierSecretRef::Representation
|
||||
|
||||
property :port, as: 'port'
|
||||
collection :recipient_addresses, as: 'recipientAddresses'
|
||||
property :sender_address, as: 'senderAddress'
|
||||
property :server, as: 'server'
|
||||
end
|
||||
end
|
||||
|
||||
class Secret
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
@ -500,6 +618,14 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class SlackDelivery
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :webhook_uri, as: 'webhookUri', class: Google::Apis::CloudbuildV1::NotifierSecretRef, decorator: Google::Apis::CloudbuildV1::NotifierSecretRef::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class Source
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
|
|
@ -121,53 +121,6 @@ module Google
|
|||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Lists operations that match the specified filter in the request. If the
|
||||
# server doesn't support this method, it returns `UNIMPLEMENTED`.
|
||||
# NOTE: the `name` binding allows API services to override the binding
|
||||
# to use different resource name schemes, such as `users/*/operations`. To
|
||||
# override the binding, API services can add a binding such as
|
||||
# `"/v1/`name=users/*`/operations"` to their service configuration.
|
||||
# For backwards compatibility, the default name includes the operations
|
||||
# collection id, however overriding users must ensure the name binding
|
||||
# is the parent resource, without the operations collection id.
|
||||
# @param [String] name
|
||||
# The name of the operation's parent resource.
|
||||
# @param [String] filter
|
||||
# The standard list filter.
|
||||
# @param [Fixnum] page_size
|
||||
# The standard list page size.
|
||||
# @param [String] page_token
|
||||
# The standard list page token.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::CloudbuildV1::ListOperationsResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::CloudbuildV1::ListOperationsResponse]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def list_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1/{+name}', options)
|
||||
command.response_representation = Google::Apis::CloudbuildV1::ListOperationsResponse::Representation
|
||||
command.response_class = Google::Apis::CloudbuildV1::ListOperationsResponse
|
||||
command.params['name'] = name unless name.nil?
|
||||
command.query['filter'] = filter unless filter.nil?
|
||||
command.query['pageSize'] = page_size unless page_size.nil?
|
||||
command.query['pageToken'] = page_token unless page_token.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Cancels a build in progress.
|
||||
# @param [String] project_id
|
||||
# Required. ID of the project.
|
||||
|
@ -445,53 +398,6 @@ module Google
|
|||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Lists operations that match the specified filter in the request. If the
|
||||
# server doesn't support this method, it returns `UNIMPLEMENTED`.
|
||||
# NOTE: the `name` binding allows API services to override the binding
|
||||
# to use different resource name schemes, such as `users/*/operations`. To
|
||||
# override the binding, API services can add a binding such as
|
||||
# `"/v1/`name=users/*`/operations"` to their service configuration.
|
||||
# For backwards compatibility, the default name includes the operations
|
||||
# collection id, however overriding users must ensure the name binding
|
||||
# is the parent resource, without the operations collection id.
|
||||
# @param [String] name
|
||||
# The name of the operation's parent resource.
|
||||
# @param [String] filter
|
||||
# The standard list filter.
|
||||
# @param [Fixnum] page_size
|
||||
# The standard list page size.
|
||||
# @param [String] page_token
|
||||
# The standard list page token.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::CloudbuildV1::ListOperationsResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::CloudbuildV1::ListOperationsResponse]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1/{+name}/operations', options)
|
||||
command.response_representation = Google::Apis::CloudbuildV1::ListOperationsResponse::Representation
|
||||
command.response_class = Google::Apis::CloudbuildV1::ListOperationsResponse
|
||||
command.params['name'] = name unless name.nil?
|
||||
command.query['filter'] = filter unless filter.nil?
|
||||
command.query['pageSize'] = page_size unless page_size.nil?
|
||||
command.query['pageToken'] = page_token unless page_token.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Creates a new `BuildTrigger`.
|
||||
# This API is experimental.
|
||||
# @param [String] project_id
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://cloud.google.com/cloud-build/docs/
|
||||
module CloudbuildV1alpha1
|
||||
VERSION = 'V1alpha1'
|
||||
REVISION = '20200619'
|
||||
REVISION = '20200626'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -676,6 +676,25 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
# HTTPDelivery is the delivery configuration for an HTTP notification.
|
||||
class HttpDelivery
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The URI to which JSON-containing HTTP POST requests should be sent.
|
||||
# Corresponds to the JSON property `uri`
|
||||
# @return [String]
|
||||
attr_accessor :uri
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@uri = args[:uri] if args.key?(:uri)
|
||||
end
|
||||
end
|
||||
|
||||
# Container message for hash values.
|
||||
class HashProp
|
||||
include Google::Apis::Core::Hashable
|
||||
|
@ -702,31 +721,6 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
# The response message for Operations.ListOperations.
|
||||
class ListOperationsResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The standard List next-page token.
|
||||
# Corresponds to the JSON property `nextPageToken`
|
||||
# @return [String]
|
||||
attr_accessor :next_page_token
|
||||
|
||||
# A list of operations that matches the specified filter in the request.
|
||||
# Corresponds to the JSON property `operations`
|
||||
# @return [Array<Google::Apis::CloudbuildV1alpha1::Operation>]
|
||||
attr_accessor :operations
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
||||
@operations = args[:operations] if args.key?(:operations)
|
||||
end
|
||||
end
|
||||
|
||||
# Response containing existing `WorkerPools`.
|
||||
class ListWorkerPoolsResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
@ -783,6 +777,198 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
# Notification is the container which holds the data that is relevant to this
|
||||
# particular notification.
|
||||
class Notification
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The filter string to use for notification filtering.
|
||||
# Currently, this is assumed to be a CEL program.
|
||||
# See https://opensource.google/projects/cel for more.
|
||||
# Corresponds to the JSON property `filter`
|
||||
# @return [String]
|
||||
attr_accessor :filter
|
||||
|
||||
# HTTPDelivery is the delivery configuration for an HTTP notification.
|
||||
# Corresponds to the JSON property `httpDelivery`
|
||||
# @return [Google::Apis::CloudbuildV1alpha1::HttpDelivery]
|
||||
attr_accessor :http_delivery
|
||||
|
||||
# SlackDelivery is the delivery configuration for delivering Slack messages via
|
||||
# webhooks. See Slack webhook documentation at:
|
||||
# https://api.slack.com/messaging/webhooks.
|
||||
# Corresponds to the JSON property `slackDelivery`
|
||||
# @return [Google::Apis::CloudbuildV1alpha1::SlackDelivery]
|
||||
attr_accessor :slack_delivery
|
||||
|
||||
# SMTPDelivery is the delivery configuration for an SMTP (email) notification.
|
||||
# Corresponds to the JSON property `smtpDelivery`
|
||||
# @return [Google::Apis::CloudbuildV1alpha1::SmtpDelivery]
|
||||
attr_accessor :smtp_delivery
|
||||
|
||||
# Escape hatch for users to supply custom delivery configs.
|
||||
# Corresponds to the JSON property `structDelivery`
|
||||
# @return [Hash<String,Object>]
|
||||
attr_accessor :struct_delivery
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@filter = args[:filter] if args.key?(:filter)
|
||||
@http_delivery = args[:http_delivery] if args.key?(:http_delivery)
|
||||
@slack_delivery = args[:slack_delivery] if args.key?(:slack_delivery)
|
||||
@smtp_delivery = args[:smtp_delivery] if args.key?(:smtp_delivery)
|
||||
@struct_delivery = args[:struct_delivery] if args.key?(:struct_delivery)
|
||||
end
|
||||
end
|
||||
|
||||
# NotifierConfig is the top-level configuration message.
|
||||
class NotifierConfig
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The API version of this configuration format.
|
||||
# Corresponds to the JSON property `apiVersion`
|
||||
# @return [String]
|
||||
attr_accessor :api_version
|
||||
|
||||
# The type of notifier to use (e.g. SMTPNotifier).
|
||||
# Corresponds to the JSON property `kind`
|
||||
# @return [String]
|
||||
attr_accessor :kind
|
||||
|
||||
# NotifierMetadata contains the data which can be used to reference or describe
|
||||
# this notifier.
|
||||
# Corresponds to the JSON property `metadata`
|
||||
# @return [Google::Apis::CloudbuildV1alpha1::NotifierMetadata]
|
||||
attr_accessor :metadata
|
||||
|
||||
# NotifierSpec is the configuration container for notifications.
|
||||
# Corresponds to the JSON property `spec`
|
||||
# @return [Google::Apis::CloudbuildV1alpha1::NotifierSpec]
|
||||
attr_accessor :spec
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@api_version = args[:api_version] if args.key?(:api_version)
|
||||
@kind = args[:kind] if args.key?(:kind)
|
||||
@metadata = args[:metadata] if args.key?(:metadata)
|
||||
@spec = args[:spec] if args.key?(:spec)
|
||||
end
|
||||
end
|
||||
|
||||
# NotifierMetadata contains the data which can be used to reference or describe
|
||||
# this notifier.
|
||||
class NotifierMetadata
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The human-readable and user-given name for the notifier.
|
||||
# For example: "repo-merge-email-notifier".
|
||||
# Corresponds to the JSON property `name`
|
||||
# @return [String]
|
||||
attr_accessor :name
|
||||
|
||||
# The string representing the name and version of notifier to deploy.
|
||||
# Expected to be of the form of "<registry-path>/<name>:<version>".
|
||||
# For example: "gcr.io/my-project/notifiers/smtp:1.2.34".
|
||||
# Corresponds to the JSON property `notifier`
|
||||
# @return [String]
|
||||
attr_accessor :notifier
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@name = args[:name] if args.key?(:name)
|
||||
@notifier = args[:notifier] if args.key?(:notifier)
|
||||
end
|
||||
end
|
||||
|
||||
# NotifierSecret is the container that maps a secret name (reference) to its
|
||||
# Google Cloud Secret Manager resource path.
|
||||
class NotifierSecret
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Name is the local name of the secret, such as the verbatim string
|
||||
# "my-smtp-password".
|
||||
# Corresponds to the JSON property `name`
|
||||
# @return [String]
|
||||
attr_accessor :name
|
||||
|
||||
# Value is interpreted to be a resource path for fetching the actual
|
||||
# (versioned) secret data for this secret. For example, this would be a
|
||||
# Google Cloud Secret Manager secret version resource path like:
|
||||
# "projects/my-project/secrets/my-secret/versions/latest".
|
||||
# Corresponds to the JSON property `value`
|
||||
# @return [String]
|
||||
attr_accessor :value
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@name = args[:name] if args.key?(:name)
|
||||
@value = args[:value] if args.key?(:value)
|
||||
end
|
||||
end
|
||||
|
||||
# NotifierSecretRef contains the reference to a secret stored in the
|
||||
# corresponding NotifierSpec.
|
||||
class NotifierSecretRef
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The value of `secret_ref` should be a `name` that is registered in a
|
||||
# `Secret` in the `secrets` list of the `Spec`.
|
||||
# Corresponds to the JSON property `secretRef`
|
||||
# @return [String]
|
||||
attr_accessor :secret_ref
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@secret_ref = args[:secret_ref] if args.key?(:secret_ref)
|
||||
end
|
||||
end
|
||||
|
||||
# NotifierSpec is the configuration container for notifications.
|
||||
class NotifierSpec
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Notification is the container which holds the data that is relevant to this
|
||||
# particular notification.
|
||||
# Corresponds to the JSON property `notification`
|
||||
# @return [Google::Apis::CloudbuildV1alpha1::Notification]
|
||||
attr_accessor :notification
|
||||
|
||||
# Configurations for secret resources used by this particular notifier.
|
||||
# Corresponds to the JSON property `secrets`
|
||||
# @return [Array<Google::Apis::CloudbuildV1alpha1::NotifierSecret>]
|
||||
attr_accessor :secrets
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@notification = args[:notification] if args.key?(:notification)
|
||||
@secrets = args[:secrets] if args.key?(:secrets)
|
||||
end
|
||||
end
|
||||
|
||||
# This resource represents a long-running operation that is the result of a
|
||||
# network API call.
|
||||
class Operation
|
||||
|
@ -972,6 +1158,58 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
# SMTPDelivery is the delivery configuration for an SMTP (email) notification.
|
||||
class SmtpDelivery
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# This is the SMTP account/email that appears in the `From:` of the email.
|
||||
# If empty, it is assumed to be sender.
|
||||
# Corresponds to the JSON property `fromAddress`
|
||||
# @return [String]
|
||||
attr_accessor :from_address
|
||||
|
||||
# NotifierSecretRef contains the reference to a secret stored in the
|
||||
# corresponding NotifierSpec.
|
||||
# Corresponds to the JSON property `password`
|
||||
# @return [Google::Apis::CloudbuildV1alpha1::NotifierSecretRef]
|
||||
attr_accessor :password
|
||||
|
||||
# The SMTP port of the server.
|
||||
# Corresponds to the JSON property `port`
|
||||
# @return [String]
|
||||
attr_accessor :port
|
||||
|
||||
# This is the list of addresses to which we send the email (i.e. in the `To:`
|
||||
# of the email).
|
||||
# Corresponds to the JSON property `recipientAddresses`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :recipient_addresses
|
||||
|
||||
# This is the SMTP account/email that is used to send the message.
|
||||
# Corresponds to the JSON property `senderAddress`
|
||||
# @return [String]
|
||||
attr_accessor :sender_address
|
||||
|
||||
# The address of the SMTP server.
|
||||
# Corresponds to the JSON property `server`
|
||||
# @return [String]
|
||||
attr_accessor :server
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@from_address = args[:from_address] if args.key?(:from_address)
|
||||
@password = args[:password] if args.key?(:password)
|
||||
@port = args[:port] if args.key?(:port)
|
||||
@recipient_addresses = args[:recipient_addresses] if args.key?(:recipient_addresses)
|
||||
@sender_address = args[:sender_address] if args.key?(:sender_address)
|
||||
@server = args[:server] if args.key?(:server)
|
||||
end
|
||||
end
|
||||
|
||||
# Pairs a set of secret environment variables containing encrypted
|
||||
# values with the Cloud KMS key to use to decrypt the value.
|
||||
class Secret
|
||||
|
@ -1002,6 +1240,28 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
# SlackDelivery is the delivery configuration for delivering Slack messages via
|
||||
# webhooks. See Slack webhook documentation at:
|
||||
# https://api.slack.com/messaging/webhooks.
|
||||
class SlackDelivery
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# NotifierSecretRef contains the reference to a secret stored in the
|
||||
# corresponding NotifierSpec.
|
||||
# Corresponds to the JSON property `webhookUri`
|
||||
# @return [Google::Apis::CloudbuildV1alpha1::NotifierSecretRef]
|
||||
attr_accessor :webhook_uri
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@webhook_uri = args[:webhook_uri] if args.key?(:webhook_uri)
|
||||
end
|
||||
end
|
||||
|
||||
# Location of the source in a supported storage service.
|
||||
class Source
|
||||
include Google::Apis::Core::Hashable
|
||||
|
|
|
@ -88,13 +88,13 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class HashProp
|
||||
class HttpDelivery
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ListOperationsResponse
|
||||
class HashProp
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
|
@ -112,6 +112,42 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Notification
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class NotifierConfig
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class NotifierMetadata
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class NotifierSecret
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class NotifierSecretRef
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class NotifierSpec
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Operation
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -130,12 +166,24 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SmtpDelivery
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Secret
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SlackDelivery
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Source
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -328,6 +376,13 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class HttpDelivery
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :uri, as: 'uri'
|
||||
end
|
||||
end
|
||||
|
||||
class HashProp
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
@ -336,15 +391,6 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class ListOperationsResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :next_page_token, as: 'nextPageToken'
|
||||
collection :operations, as: 'operations', class: Google::Apis::CloudbuildV1alpha1::Operation, decorator: Google::Apis::CloudbuildV1alpha1::Operation::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class ListWorkerPoolsResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
@ -362,6 +408,65 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class Notification
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :filter, as: 'filter'
|
||||
property :http_delivery, as: 'httpDelivery', class: Google::Apis::CloudbuildV1alpha1::HttpDelivery, decorator: Google::Apis::CloudbuildV1alpha1::HttpDelivery::Representation
|
||||
|
||||
property :slack_delivery, as: 'slackDelivery', class: Google::Apis::CloudbuildV1alpha1::SlackDelivery, decorator: Google::Apis::CloudbuildV1alpha1::SlackDelivery::Representation
|
||||
|
||||
property :smtp_delivery, as: 'smtpDelivery', class: Google::Apis::CloudbuildV1alpha1::SmtpDelivery, decorator: Google::Apis::CloudbuildV1alpha1::SmtpDelivery::Representation
|
||||
|
||||
hash :struct_delivery, as: 'structDelivery'
|
||||
end
|
||||
end
|
||||
|
||||
class NotifierConfig
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :api_version, as: 'apiVersion'
|
||||
property :kind, as: 'kind'
|
||||
property :metadata, as: 'metadata', class: Google::Apis::CloudbuildV1alpha1::NotifierMetadata, decorator: Google::Apis::CloudbuildV1alpha1::NotifierMetadata::Representation
|
||||
|
||||
property :spec, as: 'spec', class: Google::Apis::CloudbuildV1alpha1::NotifierSpec, decorator: Google::Apis::CloudbuildV1alpha1::NotifierSpec::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class NotifierMetadata
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :name, as: 'name'
|
||||
property :notifier, as: 'notifier'
|
||||
end
|
||||
end
|
||||
|
||||
class NotifierSecret
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :name, as: 'name'
|
||||
property :value, as: 'value'
|
||||
end
|
||||
end
|
||||
|
||||
class NotifierSecretRef
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :secret_ref, as: 'secretRef'
|
||||
end
|
||||
end
|
||||
|
||||
class NotifierSpec
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :notification, as: 'notification', class: Google::Apis::CloudbuildV1alpha1::Notification, decorator: Google::Apis::CloudbuildV1alpha1::Notification::Representation
|
||||
|
||||
collection :secrets, as: 'secrets', class: Google::Apis::CloudbuildV1alpha1::NotifierSecret, decorator: Google::Apis::CloudbuildV1alpha1::NotifierSecret::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class Operation
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
@ -402,6 +507,19 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class SmtpDelivery
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :from_address, as: 'fromAddress'
|
||||
property :password, as: 'password', class: Google::Apis::CloudbuildV1alpha1::NotifierSecretRef, decorator: Google::Apis::CloudbuildV1alpha1::NotifierSecretRef::Representation
|
||||
|
||||
property :port, as: 'port'
|
||||
collection :recipient_addresses, as: 'recipientAddresses'
|
||||
property :sender_address, as: 'senderAddress'
|
||||
property :server, as: 'server'
|
||||
end
|
||||
end
|
||||
|
||||
class Secret
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
@ -410,6 +528,14 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class SlackDelivery
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :webhook_uri, as: 'webhookUri', class: Google::Apis::CloudbuildV1alpha1::NotifierSecretRef, decorator: Google::Apis::CloudbuildV1alpha1::NotifierSecretRef::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class Source
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
|
|
@ -121,53 +121,6 @@ module Google
|
|||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Lists operations that match the specified filter in the request. If the
|
||||
# server doesn't support this method, it returns `UNIMPLEMENTED`.
|
||||
# NOTE: the `name` binding allows API services to override the binding
|
||||
# to use different resource name schemes, such as `users/*/operations`. To
|
||||
# override the binding, API services can add a binding such as
|
||||
# `"/v1/`name=users/*`/operations"` to their service configuration.
|
||||
# For backwards compatibility, the default name includes the operations
|
||||
# collection id, however overriding users must ensure the name binding
|
||||
# is the parent resource, without the operations collection id.
|
||||
# @param [String] name
|
||||
# The name of the operation's parent resource.
|
||||
# @param [String] filter
|
||||
# The standard list filter.
|
||||
# @param [Fixnum] page_size
|
||||
# The standard list page size.
|
||||
# @param [String] page_token
|
||||
# The standard list page token.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::CloudbuildV1alpha1::ListOperationsResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::CloudbuildV1alpha1::ListOperationsResponse]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1alpha1/{+name}/operations', options)
|
||||
command.response_representation = Google::Apis::CloudbuildV1alpha1::ListOperationsResponse::Representation
|
||||
command.response_class = Google::Apis::CloudbuildV1alpha1::ListOperationsResponse
|
||||
command.params['name'] = name unless name.nil?
|
||||
command.query['filter'] = filter unless filter.nil?
|
||||
command.query['pageSize'] = page_size unless page_size.nil?
|
||||
command.query['pageToken'] = page_token unless page_token.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Creates a `WorkerPool` to run the builds, and returns the new worker pool.
|
||||
# @param [String] parent
|
||||
# ID of the parent project.
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://cloud.google.com/cloud-build/docs/
|
||||
module CloudbuildV1alpha2
|
||||
VERSION = 'V1alpha2'
|
||||
REVISION = '20200619'
|
||||
REVISION = '20200626'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -676,6 +676,25 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
# HTTPDelivery is the delivery configuration for an HTTP notification.
|
||||
class HttpDelivery
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The URI to which JSON-containing HTTP POST requests should be sent.
|
||||
# Corresponds to the JSON property `uri`
|
||||
# @return [String]
|
||||
attr_accessor :uri
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@uri = args[:uri] if args.key?(:uri)
|
||||
end
|
||||
end
|
||||
|
||||
# Container message for hash values.
|
||||
class HashProp
|
||||
include Google::Apis::Core::Hashable
|
||||
|
@ -702,31 +721,6 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
# The response message for Operations.ListOperations.
|
||||
class ListOperationsResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The standard List next-page token.
|
||||
# Corresponds to the JSON property `nextPageToken`
|
||||
# @return [String]
|
||||
attr_accessor :next_page_token
|
||||
|
||||
# A list of operations that matches the specified filter in the request.
|
||||
# Corresponds to the JSON property `operations`
|
||||
# @return [Array<Google::Apis::CloudbuildV1alpha2::Operation>]
|
||||
attr_accessor :operations
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
||||
@operations = args[:operations] if args.key?(:operations)
|
||||
end
|
||||
end
|
||||
|
||||
# Response containing existing `WorkerPools`.
|
||||
class ListWorkerPoolsResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
@ -770,6 +764,198 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
# Notification is the container which holds the data that is relevant to this
|
||||
# particular notification.
|
||||
class Notification
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The filter string to use for notification filtering.
|
||||
# Currently, this is assumed to be a CEL program.
|
||||
# See https://opensource.google/projects/cel for more.
|
||||
# Corresponds to the JSON property `filter`
|
||||
# @return [String]
|
||||
attr_accessor :filter
|
||||
|
||||
# HTTPDelivery is the delivery configuration for an HTTP notification.
|
||||
# Corresponds to the JSON property `httpDelivery`
|
||||
# @return [Google::Apis::CloudbuildV1alpha2::HttpDelivery]
|
||||
attr_accessor :http_delivery
|
||||
|
||||
# SlackDelivery is the delivery configuration for delivering Slack messages via
|
||||
# webhooks. See Slack webhook documentation at:
|
||||
# https://api.slack.com/messaging/webhooks.
|
||||
# Corresponds to the JSON property `slackDelivery`
|
||||
# @return [Google::Apis::CloudbuildV1alpha2::SlackDelivery]
|
||||
attr_accessor :slack_delivery
|
||||
|
||||
# SMTPDelivery is the delivery configuration for an SMTP (email) notification.
|
||||
# Corresponds to the JSON property `smtpDelivery`
|
||||
# @return [Google::Apis::CloudbuildV1alpha2::SmtpDelivery]
|
||||
attr_accessor :smtp_delivery
|
||||
|
||||
# Escape hatch for users to supply custom delivery configs.
|
||||
# Corresponds to the JSON property `structDelivery`
|
||||
# @return [Hash<String,Object>]
|
||||
attr_accessor :struct_delivery
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@filter = args[:filter] if args.key?(:filter)
|
||||
@http_delivery = args[:http_delivery] if args.key?(:http_delivery)
|
||||
@slack_delivery = args[:slack_delivery] if args.key?(:slack_delivery)
|
||||
@smtp_delivery = args[:smtp_delivery] if args.key?(:smtp_delivery)
|
||||
@struct_delivery = args[:struct_delivery] if args.key?(:struct_delivery)
|
||||
end
|
||||
end
|
||||
|
||||
# NotifierConfig is the top-level configuration message.
|
||||
class NotifierConfig
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The API version of this configuration format.
|
||||
# Corresponds to the JSON property `apiVersion`
|
||||
# @return [String]
|
||||
attr_accessor :api_version
|
||||
|
||||
# The type of notifier to use (e.g. SMTPNotifier).
|
||||
# Corresponds to the JSON property `kind`
|
||||
# @return [String]
|
||||
attr_accessor :kind
|
||||
|
||||
# NotifierMetadata contains the data which can be used to reference or describe
|
||||
# this notifier.
|
||||
# Corresponds to the JSON property `metadata`
|
||||
# @return [Google::Apis::CloudbuildV1alpha2::NotifierMetadata]
|
||||
attr_accessor :metadata
|
||||
|
||||
# NotifierSpec is the configuration container for notifications.
|
||||
# Corresponds to the JSON property `spec`
|
||||
# @return [Google::Apis::CloudbuildV1alpha2::NotifierSpec]
|
||||
attr_accessor :spec
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@api_version = args[:api_version] if args.key?(:api_version)
|
||||
@kind = args[:kind] if args.key?(:kind)
|
||||
@metadata = args[:metadata] if args.key?(:metadata)
|
||||
@spec = args[:spec] if args.key?(:spec)
|
||||
end
|
||||
end
|
||||
|
||||
# NotifierMetadata contains the data which can be used to reference or describe
|
||||
# this notifier.
|
||||
class NotifierMetadata
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The human-readable and user-given name for the notifier.
|
||||
# For example: "repo-merge-email-notifier".
|
||||
# Corresponds to the JSON property `name`
|
||||
# @return [String]
|
||||
attr_accessor :name
|
||||
|
||||
# The string representing the name and version of notifier to deploy.
|
||||
# Expected to be of the form of "<registry-path>/<name>:<version>".
|
||||
# For example: "gcr.io/my-project/notifiers/smtp:1.2.34".
|
||||
# Corresponds to the JSON property `notifier`
|
||||
# @return [String]
|
||||
attr_accessor :notifier
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@name = args[:name] if args.key?(:name)
|
||||
@notifier = args[:notifier] if args.key?(:notifier)
|
||||
end
|
||||
end
|
||||
|
||||
# NotifierSecret is the container that maps a secret name (reference) to its
|
||||
# Google Cloud Secret Manager resource path.
|
||||
class NotifierSecret
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Name is the local name of the secret, such as the verbatim string
|
||||
# "my-smtp-password".
|
||||
# Corresponds to the JSON property `name`
|
||||
# @return [String]
|
||||
attr_accessor :name
|
||||
|
||||
# Value is interpreted to be a resource path for fetching the actual
|
||||
# (versioned) secret data for this secret. For example, this would be a
|
||||
# Google Cloud Secret Manager secret version resource path like:
|
||||
# "projects/my-project/secrets/my-secret/versions/latest".
|
||||
# Corresponds to the JSON property `value`
|
||||
# @return [String]
|
||||
attr_accessor :value
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@name = args[:name] if args.key?(:name)
|
||||
@value = args[:value] if args.key?(:value)
|
||||
end
|
||||
end
|
||||
|
||||
# NotifierSecretRef contains the reference to a secret stored in the
|
||||
# corresponding NotifierSpec.
|
||||
class NotifierSecretRef
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The value of `secret_ref` should be a `name` that is registered in a
|
||||
# `Secret` in the `secrets` list of the `Spec`.
|
||||
# Corresponds to the JSON property `secretRef`
|
||||
# @return [String]
|
||||
attr_accessor :secret_ref
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@secret_ref = args[:secret_ref] if args.key?(:secret_ref)
|
||||
end
|
||||
end
|
||||
|
||||
# NotifierSpec is the configuration container for notifications.
|
||||
class NotifierSpec
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Notification is the container which holds the data that is relevant to this
|
||||
# particular notification.
|
||||
# Corresponds to the JSON property `notification`
|
||||
# @return [Google::Apis::CloudbuildV1alpha2::Notification]
|
||||
attr_accessor :notification
|
||||
|
||||
# Configurations for secret resources used by this particular notifier.
|
||||
# Corresponds to the JSON property `secrets`
|
||||
# @return [Array<Google::Apis::CloudbuildV1alpha2::NotifierSecret>]
|
||||
attr_accessor :secrets
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@notification = args[:notification] if args.key?(:notification)
|
||||
@secrets = args[:secrets] if args.key?(:secrets)
|
||||
end
|
||||
end
|
||||
|
||||
# This resource represents a long-running operation that is the result of a
|
||||
# network API call.
|
||||
class Operation
|
||||
|
@ -959,6 +1145,58 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
# SMTPDelivery is the delivery configuration for an SMTP (email) notification.
|
||||
class SmtpDelivery
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# This is the SMTP account/email that appears in the `From:` of the email.
|
||||
# If empty, it is assumed to be sender.
|
||||
# Corresponds to the JSON property `fromAddress`
|
||||
# @return [String]
|
||||
attr_accessor :from_address
|
||||
|
||||
# NotifierSecretRef contains the reference to a secret stored in the
|
||||
# corresponding NotifierSpec.
|
||||
# Corresponds to the JSON property `password`
|
||||
# @return [Google::Apis::CloudbuildV1alpha2::NotifierSecretRef]
|
||||
attr_accessor :password
|
||||
|
||||
# The SMTP port of the server.
|
||||
# Corresponds to the JSON property `port`
|
||||
# @return [String]
|
||||
attr_accessor :port
|
||||
|
||||
# This is the list of addresses to which we send the email (i.e. in the `To:`
|
||||
# of the email).
|
||||
# Corresponds to the JSON property `recipientAddresses`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :recipient_addresses
|
||||
|
||||
# This is the SMTP account/email that is used to send the message.
|
||||
# Corresponds to the JSON property `senderAddress`
|
||||
# @return [String]
|
||||
attr_accessor :sender_address
|
||||
|
||||
# The address of the SMTP server.
|
||||
# Corresponds to the JSON property `server`
|
||||
# @return [String]
|
||||
attr_accessor :server
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@from_address = args[:from_address] if args.key?(:from_address)
|
||||
@password = args[:password] if args.key?(:password)
|
||||
@port = args[:port] if args.key?(:port)
|
||||
@recipient_addresses = args[:recipient_addresses] if args.key?(:recipient_addresses)
|
||||
@sender_address = args[:sender_address] if args.key?(:sender_address)
|
||||
@server = args[:server] if args.key?(:server)
|
||||
end
|
||||
end
|
||||
|
||||
# Pairs a set of secret environment variables containing encrypted
|
||||
# values with the Cloud KMS key to use to decrypt the value.
|
||||
class Secret
|
||||
|
@ -989,6 +1227,28 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
# SlackDelivery is the delivery configuration for delivering Slack messages via
|
||||
# webhooks. See Slack webhook documentation at:
|
||||
# https://api.slack.com/messaging/webhooks.
|
||||
class SlackDelivery
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# NotifierSecretRef contains the reference to a secret stored in the
|
||||
# corresponding NotifierSpec.
|
||||
# Corresponds to the JSON property `webhookUri`
|
||||
# @return [Google::Apis::CloudbuildV1alpha2::NotifierSecretRef]
|
||||
attr_accessor :webhook_uri
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@webhook_uri = args[:webhook_uri] if args.key?(:webhook_uri)
|
||||
end
|
||||
end
|
||||
|
||||
# Location of the source in a supported storage service.
|
||||
class Source
|
||||
include Google::Apis::Core::Hashable
|
||||
|
|
|
@ -88,13 +88,13 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class HashProp
|
||||
class HttpDelivery
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ListOperationsResponse
|
||||
class HashProp
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
|
@ -112,6 +112,42 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Notification
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class NotifierConfig
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class NotifierMetadata
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class NotifierSecret
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class NotifierSecretRef
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class NotifierSpec
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Operation
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -130,12 +166,24 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SmtpDelivery
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Secret
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SlackDelivery
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Source
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -328,6 +376,13 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class HttpDelivery
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :uri, as: 'uri'
|
||||
end
|
||||
end
|
||||
|
||||
class HashProp
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
@ -336,15 +391,6 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class ListOperationsResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :next_page_token, as: 'nextPageToken'
|
||||
collection :operations, as: 'operations', class: Google::Apis::CloudbuildV1alpha2::Operation, decorator: Google::Apis::CloudbuildV1alpha2::Operation::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class ListWorkerPoolsResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
@ -360,6 +406,65 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class Notification
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :filter, as: 'filter'
|
||||
property :http_delivery, as: 'httpDelivery', class: Google::Apis::CloudbuildV1alpha2::HttpDelivery, decorator: Google::Apis::CloudbuildV1alpha2::HttpDelivery::Representation
|
||||
|
||||
property :slack_delivery, as: 'slackDelivery', class: Google::Apis::CloudbuildV1alpha2::SlackDelivery, decorator: Google::Apis::CloudbuildV1alpha2::SlackDelivery::Representation
|
||||
|
||||
property :smtp_delivery, as: 'smtpDelivery', class: Google::Apis::CloudbuildV1alpha2::SmtpDelivery, decorator: Google::Apis::CloudbuildV1alpha2::SmtpDelivery::Representation
|
||||
|
||||
hash :struct_delivery, as: 'structDelivery'
|
||||
end
|
||||
end
|
||||
|
||||
class NotifierConfig
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :api_version, as: 'apiVersion'
|
||||
property :kind, as: 'kind'
|
||||
property :metadata, as: 'metadata', class: Google::Apis::CloudbuildV1alpha2::NotifierMetadata, decorator: Google::Apis::CloudbuildV1alpha2::NotifierMetadata::Representation
|
||||
|
||||
property :spec, as: 'spec', class: Google::Apis::CloudbuildV1alpha2::NotifierSpec, decorator: Google::Apis::CloudbuildV1alpha2::NotifierSpec::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class NotifierMetadata
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :name, as: 'name'
|
||||
property :notifier, as: 'notifier'
|
||||
end
|
||||
end
|
||||
|
||||
class NotifierSecret
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :name, as: 'name'
|
||||
property :value, as: 'value'
|
||||
end
|
||||
end
|
||||
|
||||
class NotifierSecretRef
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :secret_ref, as: 'secretRef'
|
||||
end
|
||||
end
|
||||
|
||||
class NotifierSpec
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :notification, as: 'notification', class: Google::Apis::CloudbuildV1alpha2::Notification, decorator: Google::Apis::CloudbuildV1alpha2::Notification::Representation
|
||||
|
||||
collection :secrets, as: 'secrets', class: Google::Apis::CloudbuildV1alpha2::NotifierSecret, decorator: Google::Apis::CloudbuildV1alpha2::NotifierSecret::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class Operation
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
@ -400,6 +505,19 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class SmtpDelivery
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :from_address, as: 'fromAddress'
|
||||
property :password, as: 'password', class: Google::Apis::CloudbuildV1alpha2::NotifierSecretRef, decorator: Google::Apis::CloudbuildV1alpha2::NotifierSecretRef::Representation
|
||||
|
||||
property :port, as: 'port'
|
||||
collection :recipient_addresses, as: 'recipientAddresses'
|
||||
property :sender_address, as: 'senderAddress'
|
||||
property :server, as: 'server'
|
||||
end
|
||||
end
|
||||
|
||||
class Secret
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
@ -408,6 +526,14 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class SlackDelivery
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :webhook_uri, as: 'webhookUri', class: Google::Apis::CloudbuildV1alpha2::NotifierSecretRef, decorator: Google::Apis::CloudbuildV1alpha2::NotifierSecretRef::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class Source
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
|
|
@ -121,53 +121,6 @@ module Google
|
|||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Lists operations that match the specified filter in the request. If the
|
||||
# server doesn't support this method, it returns `UNIMPLEMENTED`.
|
||||
# NOTE: the `name` binding allows API services to override the binding
|
||||
# to use different resource name schemes, such as `users/*/operations`. To
|
||||
# override the binding, API services can add a binding such as
|
||||
# `"/v1/`name=users/*`/operations"` to their service configuration.
|
||||
# For backwards compatibility, the default name includes the operations
|
||||
# collection id, however overriding users must ensure the name binding
|
||||
# is the parent resource, without the operations collection id.
|
||||
# @param [String] name
|
||||
# The name of the operation's parent resource.
|
||||
# @param [String] filter
|
||||
# The standard list filter.
|
||||
# @param [Fixnum] page_size
|
||||
# The standard list page size.
|
||||
# @param [String] page_token
|
||||
# The standard list page token.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::CloudbuildV1alpha2::ListOperationsResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::CloudbuildV1alpha2::ListOperationsResponse]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1alpha2/{+name}/operations', options)
|
||||
command.response_representation = Google::Apis::CloudbuildV1alpha2::ListOperationsResponse::Representation
|
||||
command.response_class = Google::Apis::CloudbuildV1alpha2::ListOperationsResponse
|
||||
command.params['name'] = name unless name.nil?
|
||||
command.query['filter'] = filter unless filter.nil?
|
||||
command.query['pageSize'] = page_size unless page_size.nil?
|
||||
command.query['pageToken'] = page_token unless page_token.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Creates a `WorkerPool` to run the builds, and returns the new worker pool.
|
||||
# @param [String] parent
|
||||
# Required. The parent resource where this book will be created.
|
||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
|||
# @see https://developers.google.com/search-ads
|
||||
module DoubleclicksearchV2
|
||||
VERSION = 'V2'
|
||||
REVISION = '20200616'
|
||||
REVISION = '20200623'
|
||||
|
||||
# View and manage your advertising data in DoubleClick Search
|
||||
AUTH_DOUBLECLICKSEARCH = 'https://www.googleapis.com/auth/doubleclicksearch'
|
||||
|
|
|
@ -0,0 +1,34 @@
|
|||
# Copyright 2015 Google Inc.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
require 'google/apis/gameservices_v1/service.rb'
|
||||
require 'google/apis/gameservices_v1/classes.rb'
|
||||
require 'google/apis/gameservices_v1/representations.rb'
|
||||
|
||||
module Google
|
||||
module Apis
|
||||
# Game Services API
|
||||
#
|
||||
# Deploy and manage infrastructure for global multiplayer gaming experiences.
|
||||
#
|
||||
# @see https://cloud.google.com/solutions/gaming/
|
||||
module GameservicesV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20200528'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
end
|
||||
end
|
||||
end
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,382 @@
|
|||
# Copyright 2015 Google Inc.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
require 'date'
|
||||
require 'google/apis/core/base_service'
|
||||
require 'google/apis/core/json_representation'
|
||||
require 'google/apis/core/hashable'
|
||||
require 'google/apis/errors'
|
||||
|
||||
module Google
|
||||
module Apis
|
||||
module GameservicesV1
|
||||
|
||||
class AuditConfig
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class AuditLogConfig
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class AuthorizationLoggingOptions
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Binding
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class CancelOperationRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class CloudAuditOptions
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Condition
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class CounterOptions
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class CustomField
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class DataAccessOptions
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Empty
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Expr
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ListLocationsResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ListOperationsResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Location
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class LogConfig
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Operation
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Policy
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Rule
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SetIamPolicyRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Status
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class TestIamPermissionsRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class TestIamPermissionsResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class AuditConfig
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :audit_log_configs, as: 'auditLogConfigs', class: Google::Apis::GameservicesV1::AuditLogConfig, decorator: Google::Apis::GameservicesV1::AuditLogConfig::Representation
|
||||
|
||||
collection :exempted_members, as: 'exemptedMembers'
|
||||
property :service, as: 'service'
|
||||
end
|
||||
end
|
||||
|
||||
class AuditLogConfig
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :exempted_members, as: 'exemptedMembers'
|
||||
property :ignore_child_exemptions, as: 'ignoreChildExemptions'
|
||||
property :log_type, as: 'logType'
|
||||
end
|
||||
end
|
||||
|
||||
class AuthorizationLoggingOptions
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :permission_type, as: 'permissionType'
|
||||
end
|
||||
end
|
||||
|
||||
class Binding
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :condition, as: 'condition', class: Google::Apis::GameservicesV1::Expr, decorator: Google::Apis::GameservicesV1::Expr::Representation
|
||||
|
||||
collection :members, as: 'members'
|
||||
property :role, as: 'role'
|
||||
end
|
||||
end
|
||||
|
||||
class CancelOperationRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
end
|
||||
end
|
||||
|
||||
class CloudAuditOptions
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :authorization_logging_options, as: 'authorizationLoggingOptions', class: Google::Apis::GameservicesV1::AuthorizationLoggingOptions, decorator: Google::Apis::GameservicesV1::AuthorizationLoggingOptions::Representation
|
||||
|
||||
property :log_name, as: 'logName'
|
||||
end
|
||||
end
|
||||
|
||||
class Condition
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :iam, as: 'iam'
|
||||
property :op, as: 'op'
|
||||
property :svc, as: 'svc'
|
||||
property :sys, as: 'sys'
|
||||
collection :values, as: 'values'
|
||||
end
|
||||
end
|
||||
|
||||
class CounterOptions
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :custom_fields, as: 'customFields', class: Google::Apis::GameservicesV1::CustomField, decorator: Google::Apis::GameservicesV1::CustomField::Representation
|
||||
|
||||
property :field, as: 'field'
|
||||
property :metric, as: 'metric'
|
||||
end
|
||||
end
|
||||
|
||||
class CustomField
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :name, as: 'name'
|
||||
property :value, as: 'value'
|
||||
end
|
||||
end
|
||||
|
||||
class DataAccessOptions
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :log_mode, as: 'logMode'
|
||||
end
|
||||
end
|
||||
|
||||
class Empty
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
end
|
||||
end
|
||||
|
||||
class Expr
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :description, as: 'description'
|
||||
property :expression, as: 'expression'
|
||||
property :location, as: 'location'
|
||||
property :title, as: 'title'
|
||||
end
|
||||
end
|
||||
|
||||
class ListLocationsResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :locations, as: 'locations', class: Google::Apis::GameservicesV1::Location, decorator: Google::Apis::GameservicesV1::Location::Representation
|
||||
|
||||
property :next_page_token, as: 'nextPageToken'
|
||||
end
|
||||
end
|
||||
|
||||
class ListOperationsResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :next_page_token, as: 'nextPageToken'
|
||||
collection :operations, as: 'operations', class: Google::Apis::GameservicesV1::Operation, decorator: Google::Apis::GameservicesV1::Operation::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class Location
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :display_name, as: 'displayName'
|
||||
hash :labels, as: 'labels'
|
||||
property :location_id, as: 'locationId'
|
||||
hash :metadata, as: 'metadata'
|
||||
property :name, as: 'name'
|
||||
end
|
||||
end
|
||||
|
||||
class LogConfig
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :cloud_audit, as: 'cloudAudit', class: Google::Apis::GameservicesV1::CloudAuditOptions, decorator: Google::Apis::GameservicesV1::CloudAuditOptions::Representation
|
||||
|
||||
property :counter, as: 'counter', class: Google::Apis::GameservicesV1::CounterOptions, decorator: Google::Apis::GameservicesV1::CounterOptions::Representation
|
||||
|
||||
property :data_access, as: 'dataAccess', class: Google::Apis::GameservicesV1::DataAccessOptions, decorator: Google::Apis::GameservicesV1::DataAccessOptions::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class Operation
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :done, as: 'done'
|
||||
property :error, as: 'error', class: Google::Apis::GameservicesV1::Status, decorator: Google::Apis::GameservicesV1::Status::Representation
|
||||
|
||||
hash :metadata, as: 'metadata'
|
||||
property :name, as: 'name'
|
||||
hash :response, as: 'response'
|
||||
end
|
||||
end
|
||||
|
||||
class Policy
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :audit_configs, as: 'auditConfigs', class: Google::Apis::GameservicesV1::AuditConfig, decorator: Google::Apis::GameservicesV1::AuditConfig::Representation
|
||||
|
||||
collection :bindings, as: 'bindings', class: Google::Apis::GameservicesV1::Binding, decorator: Google::Apis::GameservicesV1::Binding::Representation
|
||||
|
||||
property :etag, :base64 => true, as: 'etag'
|
||||
property :iam_owned, as: 'iamOwned'
|
||||
collection :rules, as: 'rules', class: Google::Apis::GameservicesV1::Rule, decorator: Google::Apis::GameservicesV1::Rule::Representation
|
||||
|
||||
property :version, as: 'version'
|
||||
end
|
||||
end
|
||||
|
||||
class Rule
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :action, as: 'action'
|
||||
collection :conditions, as: 'conditions', class: Google::Apis::GameservicesV1::Condition, decorator: Google::Apis::GameservicesV1::Condition::Representation
|
||||
|
||||
property :description, as: 'description'
|
||||
collection :in, as: 'in'
|
||||
collection :log_config, as: 'logConfig', class: Google::Apis::GameservicesV1::LogConfig, decorator: Google::Apis::GameservicesV1::LogConfig::Representation
|
||||
|
||||
collection :not_in, as: 'notIn'
|
||||
collection :permissions, as: 'permissions'
|
||||
end
|
||||
end
|
||||
|
||||
class SetIamPolicyRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :policy, as: 'policy', class: Google::Apis::GameservicesV1::Policy, decorator: Google::Apis::GameservicesV1::Policy::Representation
|
||||
|
||||
property :update_mask, as: 'updateMask'
|
||||
end
|
||||
end
|
||||
|
||||
class Status
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :code, as: 'code'
|
||||
collection :details, as: 'details'
|
||||
property :message, as: 'message'
|
||||
end
|
||||
end
|
||||
|
||||
class TestIamPermissionsRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :permissions, as: 'permissions'
|
||||
end
|
||||
end
|
||||
|
||||
class TestIamPermissionsResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :permissions, as: 'permissions'
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,405 @@
|
|||
# Copyright 2015 Google Inc.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
require 'google/apis/core/base_service'
|
||||
require 'google/apis/core/json_representation'
|
||||
require 'google/apis/core/hashable'
|
||||
require 'google/apis/errors'
|
||||
|
||||
module Google
|
||||
module Apis
|
||||
module GameservicesV1
|
||||
# Game Services API
|
||||
#
|
||||
# Deploy and manage infrastructure for global multiplayer gaming experiences.
|
||||
#
|
||||
# @example
|
||||
# require 'google/apis/gameservices_v1'
|
||||
#
|
||||
# Gameservices = Google::Apis::GameservicesV1 # Alias the module
|
||||
# service = Gameservices::GameServicesService.new
|
||||
#
|
||||
# @see https://cloud.google.com/solutions/gaming/
|
||||
class GameServicesService < Google::Apis::Core::BaseService
|
||||
# @return [String]
|
||||
# API key. Your API key identifies your project and provides you with API access,
|
||||
# quota, and reports. Required unless you provide an OAuth 2.0 token.
|
||||
attr_accessor :key
|
||||
|
||||
# @return [String]
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
attr_accessor :quota_user
|
||||
|
||||
def initialize
|
||||
super('https://gameservices.googleapis.com/', '')
|
||||
@batch_path = 'batch'
|
||||
end
|
||||
|
||||
# Gets information about a location.
|
||||
# @param [String] name
|
||||
# Resource name for the location.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::GameservicesV1::Location] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::GameservicesV1::Location]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def get_project_location(name, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1/{+name}', options)
|
||||
command.response_representation = Google::Apis::GameservicesV1::Location::Representation
|
||||
command.response_class = Google::Apis::GameservicesV1::Location
|
||||
command.params['name'] = name unless name.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Lists information about the supported locations for this service.
|
||||
# @param [String] name
|
||||
# The resource that owns the locations collection, if applicable.
|
||||
# @param [String] filter
|
||||
# The standard list filter.
|
||||
# @param [Boolean] include_unrevealed_locations
|
||||
# If true, the returned list will include locations which are not yet
|
||||
# revealed.
|
||||
# @param [Fixnum] page_size
|
||||
# The standard list page size.
|
||||
# @param [String] page_token
|
||||
# The standard list page token.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::GameservicesV1::ListLocationsResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::GameservicesV1::ListLocationsResponse]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def list_project_locations(name, filter: nil, include_unrevealed_locations: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1/{+name}/locations', options)
|
||||
command.response_representation = Google::Apis::GameservicesV1::ListLocationsResponse::Representation
|
||||
command.response_class = Google::Apis::GameservicesV1::ListLocationsResponse
|
||||
command.params['name'] = name unless name.nil?
|
||||
command.query['filter'] = filter unless filter.nil?
|
||||
command.query['includeUnrevealedLocations'] = include_unrevealed_locations unless include_unrevealed_locations.nil?
|
||||
command.query['pageSize'] = page_size unless page_size.nil?
|
||||
command.query['pageToken'] = page_token unless page_token.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Gets the access control policy for a resource.
|
||||
# Returns an empty policy if the resource exists and does not have a policy
|
||||
# set.
|
||||
# @param [String] resource
|
||||
# REQUIRED: The resource for which the policy is being requested.
|
||||
# See the operation documentation for the appropriate value for this field.
|
||||
# @param [Fixnum] options_requested_policy_version
|
||||
# Optional. The policy format version to be returned.
|
||||
# Valid values are 0, 1, and 3. Requests specifying an invalid value will be
|
||||
# rejected.
|
||||
# Requests for policies with any conditional bindings must specify version 3.
|
||||
# Policies without any conditional bindings may specify any valid value or
|
||||
# leave the field unset.
|
||||
# To learn which resources support conditions in their IAM policies, see the
|
||||
# [IAM
|
||||
# documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::GameservicesV1::Policy] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::GameservicesV1::Policy]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def get_project_location_game_server_deployment_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
|
||||
command.response_representation = Google::Apis::GameservicesV1::Policy::Representation
|
||||
command.response_class = Google::Apis::GameservicesV1::Policy
|
||||
command.params['resource'] = resource unless resource.nil?
|
||||
command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Sets the access control policy on the specified resource. Replaces any
|
||||
# existing policy.
|
||||
# Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
|
||||
# @param [String] resource
|
||||
# REQUIRED: The resource for which the policy is being specified.
|
||||
# See the operation documentation for the appropriate value for this field.
|
||||
# @param [Google::Apis::GameservicesV1::SetIamPolicyRequest] set_iam_policy_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::GameservicesV1::Policy] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::GameservicesV1::Policy]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def set_game_server_deployment_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
|
||||
command.request_representation = Google::Apis::GameservicesV1::SetIamPolicyRequest::Representation
|
||||
command.request_object = set_iam_policy_request_object
|
||||
command.response_representation = Google::Apis::GameservicesV1::Policy::Representation
|
||||
command.response_class = Google::Apis::GameservicesV1::Policy
|
||||
command.params['resource'] = resource unless resource.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Returns permissions that a caller has on the specified resource.
|
||||
# If the resource does not exist, this will return an empty set of
|
||||
# permissions, not a `NOT_FOUND` error.
|
||||
# Note: This operation is designed to be used for building permission-aware
|
||||
# UIs and command-line tools, not for authorization checking. This operation
|
||||
# may "fail open" without warning.
|
||||
# @param [String] resource
|
||||
# REQUIRED: The resource for which the policy detail is being requested.
|
||||
# See the operation documentation for the appropriate value for this field.
|
||||
# @param [Google::Apis::GameservicesV1::TestIamPermissionsRequest] test_iam_permissions_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::GameservicesV1::TestIamPermissionsResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::GameservicesV1::TestIamPermissionsResponse]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def test_game_server_deployment_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
|
||||
command.request_representation = Google::Apis::GameservicesV1::TestIamPermissionsRequest::Representation
|
||||
command.request_object = test_iam_permissions_request_object
|
||||
command.response_representation = Google::Apis::GameservicesV1::TestIamPermissionsResponse::Representation
|
||||
command.response_class = Google::Apis::GameservicesV1::TestIamPermissionsResponse
|
||||
command.params['resource'] = resource unless resource.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Starts asynchronous cancellation on a long-running operation. The server
|
||||
# makes a best effort to cancel the operation, but success is not
|
||||
# guaranteed. If the server doesn't support this method, it returns
|
||||
# `google.rpc.Code.UNIMPLEMENTED`. Clients can use
|
||||
# Operations.GetOperation or
|
||||
# other methods to check whether the cancellation succeeded or whether the
|
||||
# operation completed despite cancellation. On successful cancellation,
|
||||
# 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`.
|
||||
# @param [String] name
|
||||
# The name of the operation resource to be cancelled.
|
||||
# @param [Google::Apis::GameservicesV1::CancelOperationRequest] cancel_operation_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::GameservicesV1::Empty] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::GameservicesV1::Empty]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def cancel_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1/{+name}:cancel', options)
|
||||
command.request_representation = Google::Apis::GameservicesV1::CancelOperationRequest::Representation
|
||||
command.request_object = cancel_operation_request_object
|
||||
command.response_representation = Google::Apis::GameservicesV1::Empty::Representation
|
||||
command.response_class = Google::Apis::GameservicesV1::Empty
|
||||
command.params['name'] = name unless name.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Deletes a long-running operation. This method indicates that the client is
|
||||
# no longer interested in the operation result. It does not cancel the
|
||||
# operation. If the server doesn't support this method, it returns
|
||||
# `google.rpc.Code.UNIMPLEMENTED`.
|
||||
# @param [String] name
|
||||
# The name of the operation resource to be deleted.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::GameservicesV1::Empty] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::GameservicesV1::Empty]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def delete_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:delete, 'v1/{+name}', options)
|
||||
command.response_representation = Google::Apis::GameservicesV1::Empty::Representation
|
||||
command.response_class = Google::Apis::GameservicesV1::Empty
|
||||
command.params['name'] = name unless name.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Gets the latest state of a long-running operation. Clients can use this
|
||||
# method to poll the operation result at intervals as recommended by the API
|
||||
# service.
|
||||
# @param [String] name
|
||||
# The name of the operation resource.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::GameservicesV1::Operation] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::GameservicesV1::Operation]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def get_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1/{+name}', options)
|
||||
command.response_representation = Google::Apis::GameservicesV1::Operation::Representation
|
||||
command.response_class = Google::Apis::GameservicesV1::Operation
|
||||
command.params['name'] = name unless name.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Lists operations that match the specified filter in the request. If the
|
||||
# server doesn't support this method, it returns `UNIMPLEMENTED`.
|
||||
# NOTE: the `name` binding allows API services to override the binding
|
||||
# to use different resource name schemes, such as `users/*/operations`. To
|
||||
# override the binding, API services can add a binding such as
|
||||
# `"/v1/`name=users/*`/operations"` to their service configuration.
|
||||
# For backwards compatibility, the default name includes the operations
|
||||
# collection id, however overriding users must ensure the name binding
|
||||
# is the parent resource, without the operations collection id.
|
||||
# @param [String] name
|
||||
# The name of the operation's parent resource.
|
||||
# @param [String] filter
|
||||
# The standard list filter.
|
||||
# @param [Fixnum] page_size
|
||||
# The standard list page size.
|
||||
# @param [String] page_token
|
||||
# The standard list page token.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::GameservicesV1::ListOperationsResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::GameservicesV1::ListOperationsResponse]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1/{+name}/operations', options)
|
||||
command.response_representation = Google::Apis::GameservicesV1::ListOperationsResponse::Representation
|
||||
command.response_class = Google::Apis::GameservicesV1::ListOperationsResponse
|
||||
command.params['name'] = name unless name.nil?
|
||||
command.query['filter'] = filter unless filter.nil?
|
||||
command.query['pageSize'] = page_size unless page_size.nil?
|
||||
command.query['pageToken'] = page_token unless page_token.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
protected
|
||||
|
||||
def apply_command_defaults(command)
|
||||
command.query['key'] = key unless key.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://developers.google.com/spectrum-access-system/
|
||||
module ProdTtSasportalV1alpha1
|
||||
VERSION = 'V1alpha1'
|
||||
REVISION = '20200623'
|
||||
REVISION = '20200626'
|
||||
|
||||
# View your email address
|
||||
AUTH_USERINFO_EMAIL = 'https://www.googleapis.com/auth/userinfo.email'
|
||||
|
|
|
@ -150,6 +150,50 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
# The Deployment.
|
||||
class SasPortalDeployment
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The allowed billing modes under this deployment.
|
||||
# Corresponds to the JSON property `allowedBillingModes`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :allowed_billing_modes
|
||||
|
||||
# Default billing mode for the deployment and devices under it.
|
||||
# Corresponds to the JSON property `defaultBillingMode`
|
||||
# @return [String]
|
||||
attr_accessor :default_billing_mode
|
||||
|
||||
# The deployment's display name.
|
||||
# Corresponds to the JSON property `displayName`
|
||||
# @return [String]
|
||||
attr_accessor :display_name
|
||||
|
||||
# Output only. Resource name.
|
||||
# Corresponds to the JSON property `name`
|
||||
# @return [String]
|
||||
attr_accessor :name
|
||||
|
||||
# User id used by the devices belonging to this deployment. Each deployment
|
||||
# should be associated with one unique user_id.
|
||||
# Corresponds to the JSON property `sasUserIds`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :sas_user_ids
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@allowed_billing_modes = args[:allowed_billing_modes] if args.key?(:allowed_billing_modes)
|
||||
@default_billing_mode = args[:default_billing_mode] if args.key?(:default_billing_mode)
|
||||
@display_name = args[:display_name] if args.key?(:display_name)
|
||||
@name = args[:name] if args.key?(:name)
|
||||
@sas_user_ids = args[:sas_user_ids] if args.key?(:sas_user_ids)
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class SasPortalDevice
|
||||
include Google::Apis::Core::Hashable
|
||||
|
@ -721,6 +765,35 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
# Response for ListDeployments method.
|
||||
class SasPortalListDeploymentsResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The deployments that match the
|
||||
# request.
|
||||
# Corresponds to the JSON property `deployments`
|
||||
# @return [Array<Google::Apis::ProdTtSasportalV1alpha1::SasPortalDeployment>]
|
||||
attr_accessor :deployments
|
||||
|
||||
# A pagination token returned from a previous call to
|
||||
# ListDeployments method that indicates
|
||||
# from where listing should continue. If the field is missing or empty, it
|
||||
# means there is no more deployments.
|
||||
# Corresponds to the JSON property `nextPageToken`
|
||||
# @return [String]
|
||||
attr_accessor :next_page_token
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@deployments = args[:deployments] if args.key?(:deployments)
|
||||
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
||||
end
|
||||
end
|
||||
|
||||
# Response for ListDevices method.
|
||||
class SasPortalListDevicesResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
|
|
@ -52,6 +52,12 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SasPortalDeployment
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SasPortalDevice
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -136,6 +142,12 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SasPortalListDeploymentsResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SasPortalListDevicesResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -266,6 +278,17 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class SasPortalDeployment
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :allowed_billing_modes, as: 'allowedBillingModes'
|
||||
property :default_billing_mode, as: 'defaultBillingMode'
|
||||
property :display_name, as: 'displayName'
|
||||
property :name, as: 'name'
|
||||
collection :sas_user_ids, as: 'sasUserIds'
|
||||
end
|
||||
end
|
||||
|
||||
class SasPortalDevice
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
@ -416,6 +439,15 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class SasPortalListDeploymentsResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :deployments, as: 'deployments', class: Google::Apis::ProdTtSasportalV1alpha1::SasPortalDeployment, decorator: Google::Apis::ProdTtSasportalV1alpha1::SasPortalDeployment::Representation
|
||||
|
||||
property :next_page_token, as: 'nextPageToken'
|
||||
end
|
||||
end
|
||||
|
||||
class SasPortalListDevicesResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
|
|
@ -149,6 +149,174 @@ module Google
|
|||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Creates a new deployment.
|
||||
# @param [String] parent
|
||||
# Required. The parent resource name where the deployment is to be created.
|
||||
# @param [Google::Apis::ProdTtSasportalV1alpha1::SasPortalDeployment] sas_portal_deployment_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::ProdTtSasportalV1alpha1::SasPortalDeployment] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ProdTtSasportalV1alpha1::SasPortalDeployment]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def create_customer_deployment(parent, sas_portal_deployment_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1alpha1/{+parent}/deployments', options)
|
||||
command.request_representation = Google::Apis::ProdTtSasportalV1alpha1::SasPortalDeployment::Representation
|
||||
command.request_object = sas_portal_deployment_object
|
||||
command.response_representation = Google::Apis::ProdTtSasportalV1alpha1::SasPortalDeployment::Representation
|
||||
command.response_class = Google::Apis::ProdTtSasportalV1alpha1::SasPortalDeployment
|
||||
command.params['parent'] = parent unless parent.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Deletes a deployment.
|
||||
# @param [String] name
|
||||
# Required. The name of the deployment.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::ProdTtSasportalV1alpha1::SasPortalEmpty] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ProdTtSasportalV1alpha1::SasPortalEmpty]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def delete_customer_deployment(name, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:delete, 'v1alpha1/{+name}', options)
|
||||
command.response_representation = Google::Apis::ProdTtSasportalV1alpha1::SasPortalEmpty::Representation
|
||||
command.response_class = Google::Apis::ProdTtSasportalV1alpha1::SasPortalEmpty
|
||||
command.params['name'] = name unless name.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Returns a requested deployment.
|
||||
# @param [String] name
|
||||
# Required. The name of the deployment.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::ProdTtSasportalV1alpha1::SasPortalDeployment] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ProdTtSasportalV1alpha1::SasPortalDeployment]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def get_customer_deployment(name, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1alpha1/{+name}', options)
|
||||
command.response_representation = Google::Apis::ProdTtSasportalV1alpha1::SasPortalDeployment::Representation
|
||||
command.response_class = Google::Apis::ProdTtSasportalV1alpha1::SasPortalDeployment
|
||||
command.params['name'] = name unless name.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Lists deployments.
|
||||
# @param [String] parent
|
||||
# Required. The parent resource name, for example, "nodes/1",
|
||||
# customer/1/nodes/2.
|
||||
# @param [Fixnum] page_size
|
||||
# The maximum number of deployments to return in the response.
|
||||
# @param [String] page_token
|
||||
# A pagination token returned from a previous call to ListDeployments
|
||||
# method that
|
||||
# indicates where this listing should continue from.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::ProdTtSasportalV1alpha1::SasPortalListDeploymentsResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ProdTtSasportalV1alpha1::SasPortalListDeploymentsResponse]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def list_customer_deployments(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1alpha1/{+parent}/deployments', options)
|
||||
command.response_representation = Google::Apis::ProdTtSasportalV1alpha1::SasPortalListDeploymentsResponse::Representation
|
||||
command.response_class = Google::Apis::ProdTtSasportalV1alpha1::SasPortalListDeploymentsResponse
|
||||
command.params['parent'] = parent unless parent.nil?
|
||||
command.query['pageSize'] = page_size unless page_size.nil?
|
||||
command.query['pageToken'] = page_token unless page_token.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Updates an existing deployment.
|
||||
# @param [String] name
|
||||
# Output only. Resource name.
|
||||
# @param [Google::Apis::ProdTtSasportalV1alpha1::SasPortalDeployment] sas_portal_deployment_object
|
||||
# @param [String] update_mask
|
||||
# Fields to be updated.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::ProdTtSasportalV1alpha1::SasPortalDeployment] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ProdTtSasportalV1alpha1::SasPortalDeployment]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def patch_customer_deployment(name, sas_portal_deployment_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:patch, 'v1alpha1/{+name}', options)
|
||||
command.request_representation = Google::Apis::ProdTtSasportalV1alpha1::SasPortalDeployment::Representation
|
||||
command.request_object = sas_portal_deployment_object
|
||||
command.response_representation = Google::Apis::ProdTtSasportalV1alpha1::SasPortalDeployment::Representation
|
||||
command.response_class = Google::Apis::ProdTtSasportalV1alpha1::SasPortalDeployment
|
||||
command.params['name'] = name unless name.nil?
|
||||
command.query['updateMask'] = update_mask unless update_mask.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Creates a device under a node or customer. Returned devices are unordered.
|
||||
# @param [String] parent
|
||||
# Required. The name of the parent resource.
|
||||
|
@ -688,6 +856,78 @@ module Google
|
|||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Creates a new deployment.
|
||||
# @param [String] parent
|
||||
# Required. The parent resource name where the deployment is to be created.
|
||||
# @param [Google::Apis::ProdTtSasportalV1alpha1::SasPortalDeployment] sas_portal_deployment_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::ProdTtSasportalV1alpha1::SasPortalDeployment] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ProdTtSasportalV1alpha1::SasPortalDeployment]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def create_customer_node_deployment(parent, sas_portal_deployment_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1alpha1/{+parent}/deployments', options)
|
||||
command.request_representation = Google::Apis::ProdTtSasportalV1alpha1::SasPortalDeployment::Representation
|
||||
command.request_object = sas_portal_deployment_object
|
||||
command.response_representation = Google::Apis::ProdTtSasportalV1alpha1::SasPortalDeployment::Representation
|
||||
command.response_class = Google::Apis::ProdTtSasportalV1alpha1::SasPortalDeployment
|
||||
command.params['parent'] = parent unless parent.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Lists deployments.
|
||||
# @param [String] parent
|
||||
# Required. The parent resource name, for example, "nodes/1",
|
||||
# customer/1/nodes/2.
|
||||
# @param [Fixnum] page_size
|
||||
# The maximum number of deployments to return in the response.
|
||||
# @param [String] page_token
|
||||
# A pagination token returned from a previous call to ListDeployments
|
||||
# method that
|
||||
# indicates where this listing should continue from.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::ProdTtSasportalV1alpha1::SasPortalListDeploymentsResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ProdTtSasportalV1alpha1::SasPortalListDeploymentsResponse]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def list_customer_node_deployments(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1alpha1/{+parent}/deployments', options)
|
||||
command.response_representation = Google::Apis::ProdTtSasportalV1alpha1::SasPortalListDeploymentsResponse::Representation
|
||||
command.response_class = Google::Apis::ProdTtSasportalV1alpha1::SasPortalListDeploymentsResponse
|
||||
command.params['parent'] = parent unless parent.nil?
|
||||
command.query['pageSize'] = page_size unless page_size.nil?
|
||||
command.query['pageToken'] = page_token unless page_token.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Creates a new node.
|
||||
# @param [String] parent
|
||||
# Required. The parent resource name where the node is to be created.
|
||||
|
@ -758,6 +998,36 @@ module Google
|
|||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Returns a requested deployment.
|
||||
# @param [String] name
|
||||
# Required. The name of the deployment.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::ProdTtSasportalV1alpha1::SasPortalDeployment] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ProdTtSasportalV1alpha1::SasPortalDeployment]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def get_deployment(name, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1alpha1/{+name}', options)
|
||||
command.response_representation = Google::Apis::ProdTtSasportalV1alpha1::SasPortalDeployment::Representation
|
||||
command.response_class = Google::Apis::ProdTtSasportalV1alpha1::SasPortalDeployment
|
||||
command.params['name'] = name unless name.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Generates a secret to be used with the ValidateInstaller method
|
||||
# @param [Google::Apis::ProdTtSasportalV1alpha1::SasPortalGenerateSecretRequest] sas_portal_generate_secret_request_object
|
||||
# @param [String] fields
|
||||
|
@ -848,6 +1118,141 @@ module Google
|
|||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Deletes a deployment.
|
||||
# @param [String] name
|
||||
# Required. The name of the deployment.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::ProdTtSasportalV1alpha1::SasPortalEmpty] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ProdTtSasportalV1alpha1::SasPortalEmpty]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def delete_node_deployment(name, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:delete, 'v1alpha1/{+name}', options)
|
||||
command.response_representation = Google::Apis::ProdTtSasportalV1alpha1::SasPortalEmpty::Representation
|
||||
command.response_class = Google::Apis::ProdTtSasportalV1alpha1::SasPortalEmpty
|
||||
command.params['name'] = name unless name.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Returns a requested deployment.
|
||||
# @param [String] name
|
||||
# Required. The name of the deployment.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::ProdTtSasportalV1alpha1::SasPortalDeployment] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ProdTtSasportalV1alpha1::SasPortalDeployment]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def get_node_deployment(name, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1alpha1/{+name}', options)
|
||||
command.response_representation = Google::Apis::ProdTtSasportalV1alpha1::SasPortalDeployment::Representation
|
||||
command.response_class = Google::Apis::ProdTtSasportalV1alpha1::SasPortalDeployment
|
||||
command.params['name'] = name unless name.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Lists deployments.
|
||||
# @param [String] parent
|
||||
# Required. The parent resource name, for example, "nodes/1",
|
||||
# customer/1/nodes/2.
|
||||
# @param [Fixnum] page_size
|
||||
# The maximum number of deployments to return in the response.
|
||||
# @param [String] page_token
|
||||
# A pagination token returned from a previous call to ListDeployments
|
||||
# method that
|
||||
# indicates where this listing should continue from.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::ProdTtSasportalV1alpha1::SasPortalListDeploymentsResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ProdTtSasportalV1alpha1::SasPortalListDeploymentsResponse]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def list_node_deployments(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1alpha1/{+parent}/deployments', options)
|
||||
command.response_representation = Google::Apis::ProdTtSasportalV1alpha1::SasPortalListDeploymentsResponse::Representation
|
||||
command.response_class = Google::Apis::ProdTtSasportalV1alpha1::SasPortalListDeploymentsResponse
|
||||
command.params['parent'] = parent unless parent.nil?
|
||||
command.query['pageSize'] = page_size unless page_size.nil?
|
||||
command.query['pageToken'] = page_token unless page_token.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Updates an existing deployment.
|
||||
# @param [String] name
|
||||
# Output only. Resource name.
|
||||
# @param [Google::Apis::ProdTtSasportalV1alpha1::SasPortalDeployment] sas_portal_deployment_object
|
||||
# @param [String] update_mask
|
||||
# Fields to be updated.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::ProdTtSasportalV1alpha1::SasPortalDeployment] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ProdTtSasportalV1alpha1::SasPortalDeployment]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def patch_node_deployment(name, sas_portal_deployment_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:patch, 'v1alpha1/{+name}', options)
|
||||
command.request_representation = Google::Apis::ProdTtSasportalV1alpha1::SasPortalDeployment::Representation
|
||||
command.request_object = sas_portal_deployment_object
|
||||
command.response_representation = Google::Apis::ProdTtSasportalV1alpha1::SasPortalDeployment::Representation
|
||||
command.response_class = Google::Apis::ProdTtSasportalV1alpha1::SasPortalDeployment
|
||||
command.params['name'] = name unless name.nil?
|
||||
command.query['updateMask'] = update_mask unless update_mask.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Creates a device under a node or customer. Returned devices are unordered.
|
||||
# @param [String] parent
|
||||
# Required. The name of the parent resource.
|
||||
|
@ -1387,6 +1792,78 @@ module Google
|
|||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Creates a new deployment.
|
||||
# @param [String] parent
|
||||
# Required. The parent resource name where the deployment is to be created.
|
||||
# @param [Google::Apis::ProdTtSasportalV1alpha1::SasPortalDeployment] sas_portal_deployment_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::ProdTtSasportalV1alpha1::SasPortalDeployment] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ProdTtSasportalV1alpha1::SasPortalDeployment]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def create_node_node_deployment(parent, sas_portal_deployment_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1alpha1/{+parent}/deployments', options)
|
||||
command.request_representation = Google::Apis::ProdTtSasportalV1alpha1::SasPortalDeployment::Representation
|
||||
command.request_object = sas_portal_deployment_object
|
||||
command.response_representation = Google::Apis::ProdTtSasportalV1alpha1::SasPortalDeployment::Representation
|
||||
command.response_class = Google::Apis::ProdTtSasportalV1alpha1::SasPortalDeployment
|
||||
command.params['parent'] = parent unless parent.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Lists deployments.
|
||||
# @param [String] parent
|
||||
# Required. The parent resource name, for example, "nodes/1",
|
||||
# customer/1/nodes/2.
|
||||
# @param [Fixnum] page_size
|
||||
# The maximum number of deployments to return in the response.
|
||||
# @param [String] page_token
|
||||
# A pagination token returned from a previous call to ListDeployments
|
||||
# method that
|
||||
# indicates where this listing should continue from.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::ProdTtSasportalV1alpha1::SasPortalListDeploymentsResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ProdTtSasportalV1alpha1::SasPortalListDeploymentsResponse]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def list_node_node_deployments(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1alpha1/{+parent}/deployments', options)
|
||||
command.response_representation = Google::Apis::ProdTtSasportalV1alpha1::SasPortalListDeploymentsResponse::Representation
|
||||
command.response_class = Google::Apis::ProdTtSasportalV1alpha1::SasPortalListDeploymentsResponse
|
||||
command.params['parent'] = parent unless parent.nil?
|
||||
command.query['pageSize'] = page_size unless page_size.nil?
|
||||
command.query['pageToken'] = page_token unless page_token.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Creates a device under a node or customer. Returned devices are unordered.
|
||||
# @param [String] parent
|
||||
# Required. The name of the parent resource.
|
||||
|
|
Loading…
Reference in New Issue