Autogenerated update (2019-03-23)

Update:
- cloudasset_v1beta1
- cloudtasks_v2
- cloudtasks_v2beta3
- compute_alpha
- compute_beta
- compute_v1
- dataproc_v1beta2
- dialogflow_v2
- dialogflow_v2beta1
- jobs_v3p1beta1
- logging_v2beta1
- serviceconsumermanagement_v1
- servicemanagement_v1
This commit is contained in:
Google APIs 2019-03-23 00:37:29 +00:00
parent efaeaefab6
commit 1c37257c0c
42 changed files with 8969 additions and 2890 deletions

File diff suppressed because it is too large Load Diff

View File

@ -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/cloudasset_v1/service.rb'
require 'google/apis/cloudasset_v1/classes.rb'
require 'google/apis/cloudasset_v1/representations.rb'
module Google
module Apis
# Cloud Asset API
#
# The cloud asset API manages the history and inventory of cloud resources.
#
# @see https://console.cloud.google.com/apis/api/cloudasset.googleapis.com/overview
module CloudassetV1
VERSION = 'V1'
REVISION = '20190321'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
end
end
end

View File

@ -0,0 +1,805 @@
# 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 CloudassetV1
# Cloud asset. This includes all Google Cloud Platform resources,
# Cloud IAM policies, and other non-GCP assets.
class Asset
include Google::Apis::Core::Hashable
# Type of the asset. Example: "compute.googleapis.com/Disk".
# Corresponds to the JSON property `assetType`
# @return [String]
attr_accessor :asset_type
# Defines an Identity and Access Management (IAM) policy. It is used to
# specify access control policies for Cloud Platform resources.
# A `Policy` consists of a list of `bindings`. A `binding` binds a list of
# `members` to a `role`, where the members can be user accounts, Google groups,
# Google domains, and service accounts. A `role` is a named list of permissions
# defined by IAM.
# **JSON Example**
# `
# "bindings": [
# `
# "role": "roles/owner",
# "members": [
# "user:mike@example.com",
# "group:admins@example.com",
# "domain:google.com",
# "serviceAccount:my-other-app@appspot.gserviceaccount.com"
# ]
# `,
# `
# "role": "roles/viewer",
# "members": ["user:sean@example.com"]
# `
# ]
# `
# **YAML Example**
# bindings:
# - members:
# - user:mike@example.com
# - group:admins@example.com
# - domain:google.com
# - serviceAccount:my-other-app@appspot.gserviceaccount.com
# role: roles/owner
# - members:
# - user:sean@example.com
# role: roles/viewer
# For a description of IAM and its features, see the
# [IAM developer's guide](https://cloud.google.com/iam/docs).
# Corresponds to the JSON property `iamPolicy`
# @return [Google::Apis::CloudassetV1::Policy]
attr_accessor :iam_policy
# The full name of the asset. For example:
# `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/
# instance1`.
# See [Resource
# Names](https://cloud.google.com/apis/design/resource_names#full_resource_name)
# for more information.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# Representation of a cloud resource.
# Corresponds to the JSON property `resource`
# @return [Google::Apis::CloudassetV1::Resource]
attr_accessor :resource
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@asset_type = args[:asset_type] if args.key?(:asset_type)
@iam_policy = args[:iam_policy] if args.key?(:iam_policy)
@name = args[:name] if args.key?(:name)
@resource = args[:resource] if args.key?(:resource)
end
end
# Specifies the audit configuration for a service.
# The configuration determines which permission types are logged, and what
# identities, if any, are exempted from logging.
# An AuditConfig must have one or more AuditLogConfigs.
# If there are AuditConfigs for both `allServices` and a specific service,
# the union of the two AuditConfigs is used for that service: the log_types
# specified in each AuditConfig are enabled, and the exempted_members in each
# AuditLogConfig are exempted.
# Example Policy with multiple AuditConfigs:
# `
# "audit_configs": [
# `
# "service": "allServices"
# "audit_log_configs": [
# `
# "log_type": "DATA_READ",
# "exempted_members": [
# "user:foo@gmail.com"
# ]
# `,
# `
# "log_type": "DATA_WRITE",
# `,
# `
# "log_type": "ADMIN_READ",
# `
# ]
# `,
# `
# "service": "fooservice.googleapis.com"
# "audit_log_configs": [
# `
# "log_type": "DATA_READ",
# `,
# `
# "log_type": "DATA_WRITE",
# "exempted_members": [
# "user:bar@gmail.com"
# ]
# `
# ]
# `
# ]
# `
# For fooservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
# logging. It also exempts foo@gmail.com from DATA_READ logging, and
# bar@gmail.com from DATA_WRITE logging.
class AuditConfig
include Google::Apis::Core::Hashable
# The configuration for logging of each type of permission.
# Corresponds to the JSON property `auditLogConfigs`
# @return [Array<Google::Apis::CloudassetV1::AuditLogConfig>]
attr_accessor :audit_log_configs
# Specifies a service that will be enabled for audit logging.
# For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
# `allServices` is a special value that covers all services.
# Corresponds to the JSON property `service`
# @return [String]
attr_accessor :service
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@audit_log_configs = args[:audit_log_configs] if args.key?(:audit_log_configs)
@service = args[:service] if args.key?(:service)
end
end
# Provides the configuration for logging a type of permissions.
# Example:
# `
# "audit_log_configs": [
# `
# "log_type": "DATA_READ",
# "exempted_members": [
# "user:foo@gmail.com"
# ]
# `,
# `
# "log_type": "DATA_WRITE",
# `
# ]
# `
# This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting
# foo@gmail.com from DATA_READ logging.
class AuditLogConfig
include Google::Apis::Core::Hashable
# Specifies the identities that do not cause logging for this type of
# permission.
# Follows the same format of Binding.members.
# Corresponds to the JSON property `exemptedMembers`
# @return [Array<String>]
attr_accessor :exempted_members
# The log type that this config enables.
# Corresponds to the JSON property `logType`
# @return [String]
attr_accessor :log_type
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@exempted_members = args[:exempted_members] if args.key?(:exempted_members)
@log_type = args[:log_type] if args.key?(:log_type)
end
end
# Batch get assets history response.
class BatchGetAssetsHistoryResponse
include Google::Apis::Core::Hashable
# A list of assets with valid time windows.
# Corresponds to the JSON property `assets`
# @return [Array<Google::Apis::CloudassetV1::TemporalAsset>]
attr_accessor :assets
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@assets = args[:assets] if args.key?(:assets)
end
end
# Associates `members` with a `role`.
class Binding
include Google::Apis::Core::Hashable
# Represents an expression text. Example:
# title: "User account presence"
# description: "Determines whether the request has a user account"
# expression: "size(request.user) > 0"
# Corresponds to the JSON property `condition`
# @return [Google::Apis::CloudassetV1::Expr]
attr_accessor :condition
# Specifies the identities requesting access for a Cloud Platform resource.
# `members` can have the following values:
# * `allUsers`: A special identifier that represents anyone who is
# on the internet; with or without a Google account.
# * `allAuthenticatedUsers`: A special identifier that represents anyone
# who is authenticated with a Google account or a service account.
# * `user:`emailid``: An email address that represents a specific Google
# account. For example, `alice@gmail.com` .
# * `serviceAccount:`emailid``: An email address that represents a service
# account. For example, `my-other-app@appspot.gserviceaccount.com`.
# * `group:`emailid``: An email address that represents a Google group.
# For example, `admins@example.com`.
# * `domain:`domain``: The G Suite domain (primary) that represents all the
# users of that domain. For example, `google.com` or `example.com`.
# Corresponds to the JSON property `members`
# @return [Array<String>]
attr_accessor :members
# Role that is assigned to `members`.
# For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
# Corresponds to the JSON property `role`
# @return [String]
attr_accessor :role
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@condition = args[:condition] if args.key?(:condition)
@members = args[:members] if args.key?(:members)
@role = args[:role] if args.key?(:role)
end
end
# Export asset request.
class ExportAssetsRequest
include Google::Apis::Core::Hashable
# A list of asset types of which to take a snapshot for. For example:
# "compute.googleapis.com/Disk". If specified, only matching assets will be
# returned.
# See [Introduction to Cloud Asset
# Inventory](https://cloud.google.com/resource-manager/docs/cloud-asset-
# inventory/overview)
# for all supported asset types.
# Corresponds to the JSON property `assetTypes`
# @return [Array<String>]
attr_accessor :asset_types
# Asset content type. If not specified, no content but the asset name will be
# returned.
# Corresponds to the JSON property `contentType`
# @return [String]
attr_accessor :content_type
# Output configuration for export assets destination.
# Corresponds to the JSON property `outputConfig`
# @return [Google::Apis::CloudassetV1::OutputConfig]
attr_accessor :output_config
# Timestamp to take an asset snapshot. This can only be set to a timestamp
# between 2018-10-02 UTC (inclusive) and the current time. If not specified,
# the current time will be used. Due to delays in resource data collection
# and indexing, there is a volatile window during which running the same
# query may get different results.
# Corresponds to the JSON property `readTime`
# @return [String]
attr_accessor :read_time
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@asset_types = args[:asset_types] if args.key?(:asset_types)
@content_type = args[:content_type] if args.key?(:content_type)
@output_config = args[:output_config] if args.key?(:output_config)
@read_time = args[:read_time] if args.key?(:read_time)
end
end
# Represents an expression text. Example:
# title: "User account presence"
# description: "Determines whether the request has a user account"
# expression: "size(request.user) > 0"
class Expr
include Google::Apis::Core::Hashable
# An optional description of the expression. This is a longer text which
# describes the expression, e.g. when hovered over it in a UI.
# Corresponds to the JSON property `description`
# @return [String]
attr_accessor :description
# Textual representation of an expression in
# Common Expression Language syntax.
# The application context of the containing message determines which
# well-known feature set of CEL is supported.
# Corresponds to the JSON property `expression`
# @return [String]
attr_accessor :expression
# An optional string indicating the location of the expression for error
# reporting, e.g. a file name and a position in the file.
# Corresponds to the JSON property `location`
# @return [String]
attr_accessor :location
# An optional title for the expression, i.e. a short string describing
# its purpose. This can be used e.g. in UIs which allow to enter the
# expression.
# Corresponds to the JSON property `title`
# @return [String]
attr_accessor :title
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@description = args[:description] if args.key?(:description)
@expression = args[:expression] if args.key?(:expression)
@location = args[:location] if args.key?(:location)
@title = args[:title] if args.key?(:title)
end
end
# A Cloud Storage location.
class GcsDestination
include Google::Apis::Core::Hashable
# The uri of the Cloud Storage object. It's the same uri that is used by
# gsutil. For example: "gs://bucket_name/object_name". See [Viewing and
# Editing Object
# Metadata](https://cloud.google.com/storage/docs/viewing-editing-metadata)
# for more information.
# 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
# This resource represents a long-running operation that is the result of a
# network API call.
class Operation
include Google::Apis::Core::Hashable
# If the value is `false`, it means the operation is still in progress.
# If `true`, the operation is completed, and either `error` or `response` is
# available.
# Corresponds to the JSON property `done`
# @return [Boolean]
attr_accessor :done
alias_method :done?, :done
# The `Status` type defines a logical error model that is suitable for
# different programming environments, including REST APIs and RPC APIs. It is
# used by [gRPC](https://github.com/grpc). The error model is designed to be:
# - Simple to use and understand for most users
# - Flexible enough to meet unexpected needs
# # Overview
# The `Status` message contains three pieces of data: error code, error
# message, and error details. The error code should be an enum value of
# google.rpc.Code, but it may accept additional error codes if needed. The
# error message should be a developer-facing English message that helps
# developers *understand* and *resolve* the error. If a localized user-facing
# error message is needed, put the localized message in the error details or
# localize it in the client. The optional error details may contain arbitrary
# information about the error. There is a predefined set of error detail types
# in the package `google.rpc` that can be used for common error conditions.
# # Language mapping
# The `Status` message is the logical representation of the error model, but it
# is not necessarily the actual wire format. When the `Status` message is
# exposed in different client libraries and different wire protocols, it can be
# mapped differently. For example, it will likely be mapped to some exceptions
# in Java, but more likely mapped to some error codes in C.
# # Other uses
# The error model and the `Status` message can be used in a variety of
# environments, either with or without APIs, to provide a
# consistent developer experience across different environments.
# Example uses of this error model include:
# - Partial errors. If a service needs to return partial errors to the client,
# it may embed the `Status` in the normal response to indicate the partial
# errors.
# - Workflow errors. A typical workflow has multiple steps. Each step may
# have a `Status` message for error reporting.
# - Batch operations. If a client uses batch request and batch response, the
# `Status` message should be used directly inside batch response, one for
# each error sub-response.
# - Asynchronous operations. If an API call embeds asynchronous operation
# results in its response, the status of those operations should be
# represented directly using the `Status` message.
# - Logging. If some API errors are stored in logs, the message `Status` could
# be used directly after any stripping needed for security/privacy reasons.
# Corresponds to the JSON property `error`
# @return [Google::Apis::CloudassetV1::Status]
attr_accessor :error
# Service-specific metadata associated with the operation. It typically
# contains progress information and common metadata such as create time.
# Some services might not provide such metadata. Any method that returns a
# long-running operation should document the metadata type, if any.
# Corresponds to the JSON property `metadata`
# @return [Hash<String,Object>]
attr_accessor :metadata
# The server-assigned name, which is only unique within the same service that
# originally returns it. If you use the default HTTP mapping, the
# `name` should have the format of `operations/some/unique/name`.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# The normal response of the operation in case of success. If the original
# method returns no data on success, such as `Delete`, the response is
# `google.protobuf.Empty`. If the original method is standard
# `Get`/`Create`/`Update`, the response should be the resource. For other
# methods, the response should have the type `XxxResponse`, where `Xxx`
# is the original method name. For example, if the original method name
# is `TakeSnapshot()`, the inferred response type is
# `TakeSnapshotResponse`.
# Corresponds to the JSON property `response`
# @return [Hash<String,Object>]
attr_accessor :response
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@done = args[:done] if args.key?(:done)
@error = args[:error] if args.key?(:error)
@metadata = args[:metadata] if args.key?(:metadata)
@name = args[:name] if args.key?(:name)
@response = args[:response] if args.key?(:response)
end
end
# Output configuration for export assets destination.
class OutputConfig
include Google::Apis::Core::Hashable
# A Cloud Storage location.
# Corresponds to the JSON property `gcsDestination`
# @return [Google::Apis::CloudassetV1::GcsDestination]
attr_accessor :gcs_destination
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@gcs_destination = args[:gcs_destination] if args.key?(:gcs_destination)
end
end
# Defines an Identity and Access Management (IAM) policy. It is used to
# specify access control policies for Cloud Platform resources.
# A `Policy` consists of a list of `bindings`. A `binding` binds a list of
# `members` to a `role`, where the members can be user accounts, Google groups,
# Google domains, and service accounts. A `role` is a named list of permissions
# defined by IAM.
# **JSON Example**
# `
# "bindings": [
# `
# "role": "roles/owner",
# "members": [
# "user:mike@example.com",
# "group:admins@example.com",
# "domain:google.com",
# "serviceAccount:my-other-app@appspot.gserviceaccount.com"
# ]
# `,
# `
# "role": "roles/viewer",
# "members": ["user:sean@example.com"]
# `
# ]
# `
# **YAML Example**
# bindings:
# - members:
# - user:mike@example.com
# - group:admins@example.com
# - domain:google.com
# - serviceAccount:my-other-app@appspot.gserviceaccount.com
# role: roles/owner
# - members:
# - user:sean@example.com
# role: roles/viewer
# For a description of IAM and its features, see the
# [IAM developer's guide](https://cloud.google.com/iam/docs).
class Policy
include Google::Apis::Core::Hashable
# Specifies cloud audit logging configuration for this policy.
# Corresponds to the JSON property `auditConfigs`
# @return [Array<Google::Apis::CloudassetV1::AuditConfig>]
attr_accessor :audit_configs
# Associates a list of `members` to a `role`.
# `bindings` with no members will result in an error.
# Corresponds to the JSON property `bindings`
# @return [Array<Google::Apis::CloudassetV1::Binding>]
attr_accessor :bindings
# `etag` is used for optimistic concurrency control as a way to help
# prevent simultaneous updates of a policy from overwriting each other.
# It is strongly suggested that systems make use of the `etag` in the
# read-modify-write cycle to perform policy updates in order to avoid race
# conditions: An `etag` is returned in the response to `getIamPolicy`, and
# systems are expected to put that etag in the request to `setIamPolicy` to
# ensure that their change will be applied to the same version of the policy.
# If no `etag` is provided in the call to `setIamPolicy`, then the existing
# policy is overwritten blindly.
# Corresponds to the JSON property `etag`
# NOTE: Values are automatically base64 encoded/decoded in the client library.
# @return [String]
attr_accessor :etag
# Deprecated.
# Corresponds to the JSON property `version`
# @return [Fixnum]
attr_accessor :version
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@audit_configs = args[:audit_configs] if args.key?(:audit_configs)
@bindings = args[:bindings] if args.key?(:bindings)
@etag = args[:etag] if args.key?(:etag)
@version = args[:version] if args.key?(:version)
end
end
# Representation of a cloud resource.
class Resource
include Google::Apis::Core::Hashable
# The content of the resource, in which some sensitive fields are scrubbed
# away and may not be present.
# Corresponds to the JSON property `data`
# @return [Hash<String,Object>]
attr_accessor :data
# The URL of the discovery document containing the resource's JSON schema.
# For example:
# `"https://www.googleapis.com/discovery/v1/apis/compute/v1/rest"`.
# It will be left unspecified for resources without a discovery-based API,
# such as Cloud Bigtable.
# Corresponds to the JSON property `discoveryDocumentUri`
# @return [String]
attr_accessor :discovery_document_uri
# The JSON schema name listed in the discovery document.
# Example: "Project". It will be left unspecified for resources (such as
# Cloud Bigtable) without a discovery-based API.
# Corresponds to the JSON property `discoveryName`
# @return [String]
attr_accessor :discovery_name
# The full name of the immediate parent of this resource. See
# [Resource
# Names](https://cloud.google.com/apis/design/resource_names#full_resource_name)
# for more information.
# For GCP assets, it is the parent resource defined in the [Cloud IAM policy
# hierarchy](https://cloud.google.com/iam/docs/overview#policy_hierarchy).
# For example:
# `"//cloudresourcemanager.googleapis.com/projects/my_project_123"`.
# For third-party assets, it is up to the users to define.
# Corresponds to the JSON property `parent`
# @return [String]
attr_accessor :parent
# The REST URL for accessing the resource. An HTTP GET operation using this
# URL returns the resource itself.
# Example:
# `https://cloudresourcemanager.googleapis.com/v1/projects/my-project-123`.
# It will be left unspecified for resources without a REST API.
# Corresponds to the JSON property `resourceUrl`
# @return [String]
attr_accessor :resource_url
# The API version. Example: "v1".
# Corresponds to the JSON property `version`
# @return [String]
attr_accessor :version
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@data = args[:data] if args.key?(:data)
@discovery_document_uri = args[:discovery_document_uri] if args.key?(:discovery_document_uri)
@discovery_name = args[:discovery_name] if args.key?(:discovery_name)
@parent = args[:parent] if args.key?(:parent)
@resource_url = args[:resource_url] if args.key?(:resource_url)
@version = args[:version] if args.key?(:version)
end
end
# The `Status` type defines a logical error model that is suitable for
# different programming environments, including REST APIs and RPC APIs. It is
# used by [gRPC](https://github.com/grpc). The error model is designed to be:
# - Simple to use and understand for most users
# - Flexible enough to meet unexpected needs
# # Overview
# The `Status` message contains three pieces of data: error code, error
# message, and error details. The error code should be an enum value of
# google.rpc.Code, but it may accept additional error codes if needed. The
# error message should be a developer-facing English message that helps
# developers *understand* and *resolve* the error. If a localized user-facing
# error message is needed, put the localized message in the error details or
# localize it in the client. The optional error details may contain arbitrary
# information about the error. There is a predefined set of error detail types
# in the package `google.rpc` that can be used for common error conditions.
# # Language mapping
# The `Status` message is the logical representation of the error model, but it
# is not necessarily the actual wire format. When the `Status` message is
# exposed in different client libraries and different wire protocols, it can be
# mapped differently. For example, it will likely be mapped to some exceptions
# in Java, but more likely mapped to some error codes in C.
# # Other uses
# The error model and the `Status` message can be used in a variety of
# environments, either with or without APIs, to provide a
# consistent developer experience across different environments.
# Example uses of this error model include:
# - Partial errors. If a service needs to return partial errors to the client,
# it may embed the `Status` in the normal response to indicate the partial
# errors.
# - Workflow errors. A typical workflow has multiple steps. Each step may
# have a `Status` message for error reporting.
# - Batch operations. If a client uses batch request and batch response, the
# `Status` message should be used directly inside batch response, one for
# each error sub-response.
# - Asynchronous operations. If an API call embeds asynchronous operation
# results in its response, the status of those operations should be
# represented directly using the `Status` message.
# - Logging. If some API errors are stored in logs, the message `Status` could
# be used directly after any stripping needed for security/privacy reasons.
class Status
include Google::Apis::Core::Hashable
# The status code, which should be an enum value of google.rpc.Code.
# Corresponds to the JSON property `code`
# @return [Fixnum]
attr_accessor :code
# A list of messages that carry the error details. There is a common set of
# message types for APIs to use.
# Corresponds to the JSON property `details`
# @return [Array<Hash<String,Object>>]
attr_accessor :details
# A developer-facing error message, which should be in English. Any
# user-facing error message should be localized and sent in the
# google.rpc.Status.details field, or localized by the client.
# Corresponds to the JSON property `message`
# @return [String]
attr_accessor :message
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@code = args[:code] if args.key?(:code)
@details = args[:details] if args.key?(:details)
@message = args[:message] if args.key?(:message)
end
end
# Temporal asset. In addition to the asset, the temporal asset includes the
# status of the asset and valid from and to time of it.
class TemporalAsset
include Google::Apis::Core::Hashable
# Cloud asset. This includes all Google Cloud Platform resources,
# Cloud IAM policies, and other non-GCP assets.
# Corresponds to the JSON property `asset`
# @return [Google::Apis::CloudassetV1::Asset]
attr_accessor :asset
# If the asset is deleted or not.
# Corresponds to the JSON property `deleted`
# @return [Boolean]
attr_accessor :deleted
alias_method :deleted?, :deleted
# A time window of (start_time, end_time].
# Corresponds to the JSON property `window`
# @return [Google::Apis::CloudassetV1::TimeWindow]
attr_accessor :window
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@asset = args[:asset] if args.key?(:asset)
@deleted = args[:deleted] if args.key?(:deleted)
@window = args[:window] if args.key?(:window)
end
end
# A time window of (start_time, end_time].
class TimeWindow
include Google::Apis::Core::Hashable
# End time of the time window (inclusive).
# Current timestamp if not specified.
# Corresponds to the JSON property `endTime`
# @return [String]
attr_accessor :end_time
# Start time of the time window (exclusive).
# Corresponds to the JSON property `startTime`
# @return [String]
attr_accessor :start_time
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@end_time = args[:end_time] if args.key?(:end_time)
@start_time = args[:start_time] if args.key?(:start_time)
end
end
end
end
end

View File

@ -0,0 +1,263 @@
# 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 CloudassetV1
class Asset
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
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 BatchGetAssetsHistoryResponse
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 ExportAssetsRequest
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 GcsDestination
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 OutputConfig
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 Resource
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 TemporalAsset
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class TimeWindow
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Asset
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :asset_type, as: 'assetType'
property :iam_policy, as: 'iamPolicy', class: Google::Apis::CloudassetV1::Policy, decorator: Google::Apis::CloudassetV1::Policy::Representation
property :name, as: 'name'
property :resource, as: 'resource', class: Google::Apis::CloudassetV1::Resource, decorator: Google::Apis::CloudassetV1::Resource::Representation
end
end
class AuditConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :audit_log_configs, as: 'auditLogConfigs', class: Google::Apis::CloudassetV1::AuditLogConfig, decorator: Google::Apis::CloudassetV1::AuditLogConfig::Representation
property :service, as: 'service'
end
end
class AuditLogConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :exempted_members, as: 'exemptedMembers'
property :log_type, as: 'logType'
end
end
class BatchGetAssetsHistoryResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :assets, as: 'assets', class: Google::Apis::CloudassetV1::TemporalAsset, decorator: Google::Apis::CloudassetV1::TemporalAsset::Representation
end
end
class Binding
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :condition, as: 'condition', class: Google::Apis::CloudassetV1::Expr, decorator: Google::Apis::CloudassetV1::Expr::Representation
collection :members, as: 'members'
property :role, as: 'role'
end
end
class ExportAssetsRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :asset_types, as: 'assetTypes'
property :content_type, as: 'contentType'
property :output_config, as: 'outputConfig', class: Google::Apis::CloudassetV1::OutputConfig, decorator: Google::Apis::CloudassetV1::OutputConfig::Representation
property :read_time, as: 'readTime'
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 GcsDestination
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :uri, as: 'uri'
end
end
class Operation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :done, as: 'done'
property :error, as: 'error', class: Google::Apis::CloudassetV1::Status, decorator: Google::Apis::CloudassetV1::Status::Representation
hash :metadata, as: 'metadata'
property :name, as: 'name'
hash :response, as: 'response'
end
end
class OutputConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :gcs_destination, as: 'gcsDestination', class: Google::Apis::CloudassetV1::GcsDestination, decorator: Google::Apis::CloudassetV1::GcsDestination::Representation
end
end
class Policy
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :audit_configs, as: 'auditConfigs', class: Google::Apis::CloudassetV1::AuditConfig, decorator: Google::Apis::CloudassetV1::AuditConfig::Representation
collection :bindings, as: 'bindings', class: Google::Apis::CloudassetV1::Binding, decorator: Google::Apis::CloudassetV1::Binding::Representation
property :etag, :base64 => true, as: 'etag'
property :version, as: 'version'
end
end
class Resource
# @private
class Representation < Google::Apis::Core::JsonRepresentation
hash :data, as: 'data'
property :discovery_document_uri, as: 'discoveryDocumentUri'
property :discovery_name, as: 'discoveryName'
property :parent, as: 'parent'
property :resource_url, as: 'resourceUrl'
property :version, as: 'version'
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 TemporalAsset
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :asset, as: 'asset', class: Google::Apis::CloudassetV1::Asset, decorator: Google::Apis::CloudassetV1::Asset::Representation
property :deleted, as: 'deleted'
property :window, as: 'window', class: Google::Apis::CloudassetV1::TimeWindow, decorator: Google::Apis::CloudassetV1::TimeWindow::Representation
end
end
class TimeWindow
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :end_time, as: 'endTime'
property :start_time, as: 'startTime'
end
end
end
end
end

View File

@ -0,0 +1,190 @@
# 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 CloudassetV1
# Cloud Asset API
#
# The cloud asset API manages the history and inventory of cloud resources.
#
# @example
# require 'google/apis/cloudasset_v1'
#
# Cloudasset = Google::Apis::CloudassetV1 # Alias the module
# service = Cloudasset::CloudAssetService.new
#
# @see https://console.cloud.google.com/apis/api/cloudasset.googleapis.com/overview
class CloudAssetService < 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://cloudasset.googleapis.com/', '')
@batch_path = 'batch'
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::CloudassetV1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudassetV1::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_operation(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+name}', options)
command.response_representation = Google::Apis::CloudassetV1::Operation::Representation
command.response_class = Google::Apis::CloudassetV1::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
# Batch gets the update history of assets that overlap a time window.
# For RESOURCE content, this API outputs history with asset in both
# non-delete or deleted status.
# For IAM_POLICY content, this API outputs history when the asset and its
# attached IAM POLICY both exist. This can create gaps in the output history.
# If a specified asset does not exist, this API returns an INVALID_ARGUMENT
# error.
# @param [String] parent
# Required. The relative name of the root asset. It can only be an
# organization number (such as "organizations/123"), a project ID (such as
# "projects/my-project-id")", or a project number (such as "projects/12345").
# @param [Array<String>, String] asset_names
# A list of the full names of the assets. For example:
# `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/
# instance1`.
# See [Resource
# Names](https://cloud.google.com/apis/design/resource_names#full_resource_name)
# and [Resource Name Format](https://cloud.google.com/resource-manager/docs/
# cloud-asset-inventory/resource-name-format)
# for more info.
# The request becomes a no-op if the asset name list is empty, and the max
# size of the asset name list is 100 in one request.
# @param [String] content_type
# Required. The content type.
# @param [String] read_time_window_end_time
# End time of the time window (inclusive).
# Current timestamp if not specified.
# @param [String] read_time_window_start_time
# Start time of the time window (exclusive).
# @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::CloudassetV1::BatchGetAssetsHistoryResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudassetV1::BatchGetAssetsHistoryResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def batch_get_assets_history(parent, asset_names: nil, content_type: nil, read_time_window_end_time: nil, read_time_window_start_time: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+parent}:batchGetAssetsHistory', options)
command.response_representation = Google::Apis::CloudassetV1::BatchGetAssetsHistoryResponse::Representation
command.response_class = Google::Apis::CloudassetV1::BatchGetAssetsHistoryResponse
command.params['parent'] = parent unless parent.nil?
command.query['assetNames'] = asset_names unless asset_names.nil?
command.query['contentType'] = content_type unless content_type.nil?
command.query['readTimeWindow.endTime'] = read_time_window_end_time unless read_time_window_end_time.nil?
command.query['readTimeWindow.startTime'] = read_time_window_start_time unless read_time_window_start_time.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Exports assets with time and resource types to a given Cloud Storage
# location. The output format is newline-delimited JSON.
# This API implements the google.longrunning.Operation API allowing you
# to keep track of the export.
# @param [String] parent
# Required. The relative name of the root asset. This can only be an
# organization number (such as "organizations/123"), a project ID (such as
# "projects/my-project-id"), or a project number (such as "projects/12345"),
# or a folder number (such as "folders/123").
# @param [Google::Apis::CloudassetV1::ExportAssetsRequest] export_assets_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::CloudassetV1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudassetV1::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 export_assets(parent, export_assets_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+parent}:exportAssets', options)
command.request_representation = Google::Apis::CloudassetV1::ExportAssetsRequest::Representation
command.request_object = export_assets_request_object
command.response_representation = Google::Apis::CloudassetV1::Operation::Representation
command.response_class = Google::Apis::CloudassetV1::Operation
command.params['parent'] = parent unless parent.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
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

View File

@ -25,7 +25,7 @@ module Google
# @see https://console.cloud.google.com/apis/api/cloudasset.googleapis.com/overview
module CloudassetV1beta1
VERSION = 'V1beta1'
REVISION = '20190311'
REVISION = '20190321'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/tasks/
module CloudtasksV2
VERSION = 'V2'
REVISION = '20190228'
REVISION = '20190314'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

File diff suppressed because it is too large Load Diff

View File

@ -22,18 +22,230 @@ module Google
module Apis
module CloudtasksV2
class AppEngineHttpRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AppEngineRouting
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Attempt
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 CreateTaskRequest
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 GetIamPolicyRequest
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 ListQueuesResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListTasksResponse
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 PauseQueueRequest
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 PurgeQueueRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Queue
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class RateLimits
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ResumeQueueRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class RetryConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class RunTaskRequest
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 Task
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 AppEngineHttpRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :app_engine_routing, as: 'appEngineRouting', class: Google::Apis::CloudtasksV2::AppEngineRouting, decorator: Google::Apis::CloudtasksV2::AppEngineRouting::Representation
property :body, :base64 => true, as: 'body'
hash :headers, as: 'headers'
property :http_method, as: 'httpMethod'
property :relative_uri, as: 'relativeUri'
end
end
class AppEngineRouting
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :host, as: 'host'
property :instance, as: 'instance'
property :service, as: 'service'
property :version, as: 'version'
end
end
class Attempt
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :dispatch_time, as: 'dispatchTime'
property :response_status, as: 'responseStatus', class: Google::Apis::CloudtasksV2::Status, decorator: Google::Apis::CloudtasksV2::Status::Representation
property :response_time, as: 'responseTime'
property :schedule_time, as: 'scheduleTime'
end
end
class Binding
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :condition, as: 'condition', class: Google::Apis::CloudtasksV2::Expr, decorator: Google::Apis::CloudtasksV2::Expr::Representation
collection :members, as: 'members'
property :role, as: 'role'
end
end
class CreateTaskRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :response_view, as: 'responseView'
property :task, as: 'task', class: Google::Apis::CloudtasksV2::Task, decorator: Google::Apis::CloudtasksV2::Task::Representation
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 GetIamPolicyRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class ListLocationsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -43,6 +255,24 @@ module Google
end
end
class ListQueuesResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :next_page_token, as: 'nextPageToken'
collection :queues, as: 'queues', class: Google::Apis::CloudtasksV2::Queue, decorator: Google::Apis::CloudtasksV2::Queue::Representation
end
end
class ListTasksResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :next_page_token, as: 'nextPageToken'
collection :tasks, as: 'tasks', class: Google::Apis::CloudtasksV2::Task, decorator: Google::Apis::CloudtasksV2::Task::Representation
end
end
class Location
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -53,6 +283,126 @@ module Google
property :name, as: 'name'
end
end
class PauseQueueRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class Policy
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :bindings, as: 'bindings', class: Google::Apis::CloudtasksV2::Binding, decorator: Google::Apis::CloudtasksV2::Binding::Representation
property :etag, :base64 => true, as: 'etag'
property :version, as: 'version'
end
end
class PurgeQueueRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class Queue
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :app_engine_routing_override, as: 'appEngineRoutingOverride', class: Google::Apis::CloudtasksV2::AppEngineRouting, decorator: Google::Apis::CloudtasksV2::AppEngineRouting::Representation
property :name, as: 'name'
property :purge_time, as: 'purgeTime'
property :rate_limits, as: 'rateLimits', class: Google::Apis::CloudtasksV2::RateLimits, decorator: Google::Apis::CloudtasksV2::RateLimits::Representation
property :retry_config, as: 'retryConfig', class: Google::Apis::CloudtasksV2::RetryConfig, decorator: Google::Apis::CloudtasksV2::RetryConfig::Representation
property :state, as: 'state'
end
end
class RateLimits
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :max_burst_size, as: 'maxBurstSize'
property :max_concurrent_dispatches, as: 'maxConcurrentDispatches'
property :max_dispatches_per_second, as: 'maxDispatchesPerSecond'
end
end
class ResumeQueueRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class RetryConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :max_attempts, as: 'maxAttempts'
property :max_backoff, as: 'maxBackoff'
property :max_doublings, as: 'maxDoublings'
property :max_retry_duration, as: 'maxRetryDuration'
property :min_backoff, as: 'minBackoff'
end
end
class RunTaskRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :response_view, as: 'responseView'
end
end
class SetIamPolicyRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :policy, as: 'policy', class: Google::Apis::CloudtasksV2::Policy, decorator: Google::Apis::CloudtasksV2::Policy::Representation
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 Task
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :app_engine_http_request, as: 'appEngineHttpRequest', class: Google::Apis::CloudtasksV2::AppEngineHttpRequest, decorator: Google::Apis::CloudtasksV2::AppEngineHttpRequest::Representation
property :create_time, as: 'createTime'
property :dispatch_count, as: 'dispatchCount'
property :dispatch_deadline, as: 'dispatchDeadline'
property :first_attempt, as: 'firstAttempt', class: Google::Apis::CloudtasksV2::Attempt, decorator: Google::Apis::CloudtasksV2::Attempt::Representation
property :last_attempt, as: 'lastAttempt', class: Google::Apis::CloudtasksV2::Attempt, decorator: Google::Apis::CloudtasksV2::Attempt::Representation
property :name, as: 'name'
property :response_count, as: 'responseCount'
property :schedule_time, as: 'scheduleTime'
property :view, as: 'view'
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

View File

@ -116,6 +116,734 @@ module Google
execute_or_queue_command(command, &block)
end
# Creates a queue.
# Queues created with this method allow tasks to live for a maximum of 31
# days. After a task is 31 days old, the task will be deleted regardless of
# whether
# it was dispatched or not.
# WARNING: Using this method may have unintended side effects if you are
# using an App Engine `queue.yaml` or `queue.xml` file to manage your queues.
# Read
# [Overview of Queue Management and queue.yaml](https://cloud.google.com/tasks/
# docs/queue-yaml)
# before using this method.
# @param [String] parent
# Required.
# The location name in which the queue will be created.
# For example: `projects/PROJECT_ID/locations/LOCATION_ID`
# The list of allowed locations can be obtained by calling Cloud
# Tasks' implementation of
# ListLocations.
# @param [Google::Apis::CloudtasksV2::Queue] queue_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::CloudtasksV2::Queue] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudtasksV2::Queue]
#
# @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_project_location_queue(parent, queue_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v2/{+parent}/queues', options)
command.request_representation = Google::Apis::CloudtasksV2::Queue::Representation
command.request_object = queue_object
command.response_representation = Google::Apis::CloudtasksV2::Queue::Representation
command.response_class = Google::Apis::CloudtasksV2::Queue
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 queue.
# This command will delete the queue even if it has tasks in it.
# Note: If you delete a queue, a queue with the same name can't be created
# for 7 days.
# WARNING: Using this method may have unintended side effects if you are
# using an App Engine `queue.yaml` or `queue.xml` file to manage your queues.
# Read
# [Overview of Queue Management and queue.yaml](https://cloud.google.com/tasks/
# docs/queue-yaml)
# before using this method.
# @param [String] name
# Required.
# The queue name. For example:
# `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudtasksV2::Empty] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudtasksV2::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_queue(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:delete, 'v2/{+name}', options)
command.response_representation = Google::Apis::CloudtasksV2::Empty::Representation
command.response_class = Google::Apis::CloudtasksV2::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 a queue.
# @param [String] name
# Required.
# The resource name of the queue. For example:
# `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudtasksV2::Queue] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudtasksV2::Queue]
#
# @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_queue(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v2/{+name}', options)
command.response_representation = Google::Apis::CloudtasksV2::Queue::Representation
command.response_class = Google::Apis::CloudtasksV2::Queue
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 access control policy for a Queue.
# Returns an empty policy if the resource exists and does not have a policy
# set.
# Authorization requires the following
# [Google IAM](https://cloud.google.com/iam) permission on the specified
# resource parent:
# * `cloudtasks.queues.getIamPolicy`
# @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 [Google::Apis::CloudtasksV2::GetIamPolicyRequest] get_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::CloudtasksV2::Policy] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudtasksV2::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_queue_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v2/{+resource}:getIamPolicy', options)
command.request_representation = Google::Apis::CloudtasksV2::GetIamPolicyRequest::Representation
command.request_object = get_iam_policy_request_object
command.response_representation = Google::Apis::CloudtasksV2::Policy::Representation
command.response_class = Google::Apis::CloudtasksV2::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
# Lists queues.
# Queues are returned in lexicographical order.
# @param [String] parent
# Required.
# The location name.
# For example: `projects/PROJECT_ID/locations/LOCATION_ID`
# @param [String] filter
# `filter` can be used to specify a subset of queues. Any Queue
# field can be used as a filter and several operators as supported.
# For example: `<=, <, >=, >, !=, =, :`. The filter syntax is the same as
# described in
# [Stackdriver's Advanced Logs Filters](https://cloud.google.com/logging/docs/
# view/advanced_filters).
# Sample filter "state: PAUSED".
# Note that using filters might cause fewer queues than the
# requested page_size to be returned.
# @param [Fixnum] page_size
# Requested page size.
# The maximum page size is 9800. If unspecified, the page size will
# be the maximum. Fewer queues than requested might be returned,
# even if more queues exist; use the
# next_page_token in the
# response to determine if more queues exist.
# @param [String] page_token
# A token identifying the page of results to return.
# To request the first page results, page_token must be empty. To
# request the next page of results, page_token must be the value of
# next_page_token returned
# from the previous call to ListQueues
# method. It is an error to switch the value of the
# filter while iterating through pages.
# @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::CloudtasksV2::ListQueuesResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudtasksV2::ListQueuesResponse]
#
# @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_queues(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v2/{+parent}/queues', options)
command.response_representation = Google::Apis::CloudtasksV2::ListQueuesResponse::Representation
command.response_class = Google::Apis::CloudtasksV2::ListQueuesResponse
command.params['parent'] = parent unless parent.nil?
command.query['filter'] = filter unless filter.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Updates a queue.
# This method creates the queue if it does not exist and updates
# the queue if it does exist.
# Queues created with this method allow tasks to live for a maximum of 31
# days. After a task is 31 days old, the task will be deleted regardless of
# whether
# it was dispatched or not.
# WARNING: Using this method may have unintended side effects if you are
# using an App Engine `queue.yaml` or `queue.xml` file to manage your queues.
# Read
# [Overview of Queue Management and queue.yaml](https://cloud.google.com/tasks/
# docs/queue-yaml)
# before using this method.
# @param [String] name
# Caller-specified and required in CreateQueue,
# after which it becomes output only.
# The queue name.
# The queue name must have the following format:
# `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
# * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]),
# hyphens (-), colons (:), or periods (.).
# For more information, see
# [Identifying
# projects](https://cloud.google.com/resource-manager/docs/creating-managing-
# projects#identifying_projects)
# * `LOCATION_ID` is the canonical ID for the queue's location.
# The list of available locations can be obtained by calling
# ListLocations.
# For more information, see https://cloud.google.com/about/locations/.
# * `QUEUE_ID` can contain letters ([A-Za-z]), numbers ([0-9]), or
# hyphens (-). The maximum length is 100 characters.
# @param [Google::Apis::CloudtasksV2::Queue] queue_object
# @param [String] update_mask
# A mask used to specify which fields of the queue are being updated.
# If empty, then all fields will 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::CloudtasksV2::Queue] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudtasksV2::Queue]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def patch_project_location_queue(name, queue_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:patch, 'v2/{+name}', options)
command.request_representation = Google::Apis::CloudtasksV2::Queue::Representation
command.request_object = queue_object
command.response_representation = Google::Apis::CloudtasksV2::Queue::Representation
command.response_class = Google::Apis::CloudtasksV2::Queue
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
# Pauses the queue.
# If a queue is paused then the system will stop dispatching tasks
# until the queue is resumed via
# ResumeQueue. Tasks can still be added
# when the queue is paused. A queue is paused if its
# state is PAUSED.
# @param [String] name
# Required.
# The queue name. For example:
# `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID`
# @param [Google::Apis::CloudtasksV2::PauseQueueRequest] pause_queue_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::CloudtasksV2::Queue] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudtasksV2::Queue]
#
# @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 pause_queue(name, pause_queue_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v2/{+name}:pause', options)
command.request_representation = Google::Apis::CloudtasksV2::PauseQueueRequest::Representation
command.request_object = pause_queue_request_object
command.response_representation = Google::Apis::CloudtasksV2::Queue::Representation
command.response_class = Google::Apis::CloudtasksV2::Queue
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
# Purges a queue by deleting all of its tasks.
# All tasks created before this method is called are permanently deleted.
# Purge operations can take up to one minute to take effect. Tasks
# might be dispatched before the purge takes effect. A purge is irreversible.
# @param [String] name
# Required.
# The queue name. For example:
# `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID`
# @param [Google::Apis::CloudtasksV2::PurgeQueueRequest] purge_queue_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::CloudtasksV2::Queue] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudtasksV2::Queue]
#
# @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 purge_queue(name, purge_queue_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v2/{+name}:purge', options)
command.request_representation = Google::Apis::CloudtasksV2::PurgeQueueRequest::Representation
command.request_object = purge_queue_request_object
command.response_representation = Google::Apis::CloudtasksV2::Queue::Representation
command.response_class = Google::Apis::CloudtasksV2::Queue
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
# Resume a queue.
# This method resumes a queue after it has been
# PAUSED or
# DISABLED. The state of a queue is stored
# in the queue's state; after calling this method it
# will be set to RUNNING.
# WARNING: Resuming many high-QPS queues at the same time can
# lead to target overloading. If you are resuming high-QPS
# queues, follow the 500/50/5 pattern described in
# [Managing Cloud Tasks Scaling Risks](https://cloud.google.com/tasks/docs/
# manage-cloud-task-scaling).
# @param [String] name
# Required.
# The queue name. For example:
# `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID`
# @param [Google::Apis::CloudtasksV2::ResumeQueueRequest] resume_queue_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::CloudtasksV2::Queue] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudtasksV2::Queue]
#
# @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 resume_queue(name, resume_queue_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v2/{+name}:resume', options)
command.request_representation = Google::Apis::CloudtasksV2::ResumeQueueRequest::Representation
command.request_object = resume_queue_request_object
command.response_representation = Google::Apis::CloudtasksV2::Queue::Representation
command.response_class = Google::Apis::CloudtasksV2::Queue
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
# Sets the access control policy for a Queue. Replaces any existing
# policy.
# Note: The Cloud Console does not check queue-level IAM permissions yet.
# Project-level permissions are required to use the Cloud Console.
# Authorization requires the following
# [Google IAM](https://cloud.google.com/iam) permission on the specified
# resource parent:
# * `cloudtasks.queues.setIamPolicy`
# @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::CloudtasksV2::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::CloudtasksV2::Policy] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudtasksV2::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_queue_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v2/{+resource}:setIamPolicy', options)
command.request_representation = Google::Apis::CloudtasksV2::SetIamPolicyRequest::Representation
command.request_object = set_iam_policy_request_object
command.response_representation = Google::Apis::CloudtasksV2::Policy::Representation
command.response_class = Google::Apis::CloudtasksV2::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 a Queue.
# 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::CloudtasksV2::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::CloudtasksV2::TestIamPermissionsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudtasksV2::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_queue_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v2/{+resource}:testIamPermissions', options)
command.request_representation = Google::Apis::CloudtasksV2::TestIamPermissionsRequest::Representation
command.request_object = test_iam_permissions_request_object
command.response_representation = Google::Apis::CloudtasksV2::TestIamPermissionsResponse::Representation
command.response_class = Google::Apis::CloudtasksV2::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
# Creates a task and adds it to a queue.
# Tasks cannot be updated after creation; there is no UpdateTask command.
# * For App Engine queues, the maximum task size is
# 100KB.
# @param [String] parent
# Required.
# The queue name. For example:
# `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
# The queue must already exist.
# @param [Google::Apis::CloudtasksV2::CreateTaskRequest] create_task_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::CloudtasksV2::Task] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudtasksV2::Task]
#
# @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_task(parent, create_task_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v2/{+parent}/tasks', options)
command.request_representation = Google::Apis::CloudtasksV2::CreateTaskRequest::Representation
command.request_object = create_task_request_object
command.response_representation = Google::Apis::CloudtasksV2::Task::Representation
command.response_class = Google::Apis::CloudtasksV2::Task
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 task.
# A task can be deleted if it is scheduled or dispatched. A task
# cannot be deleted if it has executed successfully or permanently
# failed.
# @param [String] name
# Required.
# The task name. For example:
# `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudtasksV2::Empty] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudtasksV2::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_queue_task(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:delete, 'v2/{+name}', options)
command.response_representation = Google::Apis::CloudtasksV2::Empty::Representation
command.response_class = Google::Apis::CloudtasksV2::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 a task.
# @param [String] name
# Required.
# The task name. For example:
# `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
# @param [String] response_view
# The response_view specifies which subset of the Task will be
# returned.
# By default response_view is BASIC; not all
# information is retrieved by default because some data, such as
# payloads, might be desirable to return only when needed because
# of its large size or because of the sensitivity of data that it
# contains.
# Authorization for FULL requires
# `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
# permission on the Task 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::CloudtasksV2::Task] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudtasksV2::Task]
#
# @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_queue_task(name, response_view: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v2/{+name}', options)
command.response_representation = Google::Apis::CloudtasksV2::Task::Representation
command.response_class = Google::Apis::CloudtasksV2::Task
command.params['name'] = name unless name.nil?
command.query['responseView'] = response_view unless response_view.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 the tasks in a queue.
# By default, only the BASIC view is retrieved
# due to performance considerations;
# response_view controls the
# subset of information which is returned.
# The tasks may be returned in any order. The ordering may change at any
# time.
# @param [String] parent
# Required.
# The queue name. For example:
# `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
# @param [Fixnum] page_size
# Requested page size. Fewer tasks than requested might be returned.
# The maximum page size is 1000. If unspecified, the page size will
# be the maximum. Fewer tasks than requested might be returned,
# even if more tasks exist; use
# next_page_token in the
# response to determine if more tasks exist.
# @param [String] page_token
# A token identifying the page of results to return.
# To request the first page results, page_token must be empty. To
# request the next page of results, page_token must be the value of
# next_page_token returned
# from the previous call to ListTasks
# method.
# The page token is valid for only 2 hours.
# @param [String] response_view
# The response_view specifies which subset of the Task will be
# returned.
# By default response_view is BASIC; not all
# information is retrieved by default because some data, such as
# payloads, might be desirable to return only when needed because
# of its large size or because of the sensitivity of data that it
# contains.
# Authorization for FULL requires
# `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
# permission on the Task 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::CloudtasksV2::ListTasksResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudtasksV2::ListTasksResponse]
#
# @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_queue_tasks(parent, page_size: nil, page_token: nil, response_view: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v2/{+parent}/tasks', options)
command.response_representation = Google::Apis::CloudtasksV2::ListTasksResponse::Representation
command.response_class = Google::Apis::CloudtasksV2::ListTasksResponse
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['responseView'] = response_view unless response_view.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Forces a task to run now.
# When this method is called, Cloud Tasks will dispatch the task, even if
# the task is already running, the queue has reached its RateLimits or
# is PAUSED.
# This command is meant to be used for manual debugging. For
# example, RunTask can be used to retry a failed
# task after a fix has been made or to manually force a task to be
# dispatched now.
# The dispatched task is returned. That is, the task that is returned
# contains the status after the task is dispatched but
# before the task is received by its target.
# If Cloud Tasks receives a successful response from the task's
# target, then the task will be deleted; otherwise the task's
# schedule_time will be reset to the time that
# RunTask was called plus the retry delay specified
# in the queue's RetryConfig.
# RunTask returns
# NOT_FOUND when it is called on a
# task that has already succeeded or permanently failed.
# @param [String] name
# Required.
# The task name. For example:
# `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
# @param [Google::Apis::CloudtasksV2::RunTaskRequest] run_task_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::CloudtasksV2::Task] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudtasksV2::Task]
#
# @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 run_task(name, run_task_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v2/{+name}:run', options)
command.request_representation = Google::Apis::CloudtasksV2::RunTaskRequest::Representation
command.request_object = run_task_request_object
command.response_representation = Google::Apis::CloudtasksV2::Task::Representation
command.response_class = Google::Apis::CloudtasksV2::Task
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
protected
def apply_command_defaults(command)

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/tasks/
module CloudtasksV2beta3
VERSION = 'V2beta3'
REVISION = '20190228'
REVISION = '20190314'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -40,14 +40,18 @@ module Google
# Defines routing characteristics specific to App Engine - service, version,
# and instance.
# For more information about services, versions, and instances see
# [An Overview of App Engine](https://cloud.google.com/appengine/docs/python/an-
# overview-of-app-engine),
# [Microservices Architecture on Google App Engine](https://cloud.google.com/
# appengine/docs/python/microservices-on-app-engine),
# [App Engine Standard request routing](https://cloud.google.com/appengine/docs/
# standard/python/how-requests-are-routed),
# and [App Engine Flex request routing](https://cloud.google.com/appengine/docs/
# flexible/python/how-requests-are-routed).
# [An Overview of App
# Engine](https://cloud.google.com/appengine/docs/python/an-overview-of-app-
# engine),
# [Microservices Architecture on Google App
# Engine](https://cloud.google.com/appengine/docs/python/microservices-on-app-
# engine),
# [App Engine Standard request
# routing](https://cloud.google.com/appengine/docs/standard/python/how-requests-
# are-routed),
# and [App Engine Flex request
# routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests-
# are-routed).
# Corresponds to the JSON property `appEngineRoutingOverride`
# @return [Google::Apis::CloudtasksV2beta3::AppEngineRouting]
attr_accessor :app_engine_routing_override
@ -75,11 +79,12 @@ module Google
# `https://www.googleapis.com/auth/cloud-platform`
# The task will be delivered to the App Engine app which belongs to the same
# project as the queue. For more information, see
# [How Requests are Routed](https://cloud.google.com/appengine/docs/standard/
# python/how-requests-are-routed)
# [How Requests are
# Routed](https://cloud.google.com/appengine/docs/standard/python/how-requests-
# are-routed)
# and how routing is affected by
# [dispatch files](https://cloud.google.com/appengine/docs/python/config/
# dispatchref).
# [dispatch
# files](https://cloud.google.com/appengine/docs/python/config/dispatchref).
# Traffic is encrypted during transport and never leaves Google datacenters.
# Because this traffic is carried over a communication mechanism internal to
# Google, you cannot explicitly set the protocol (for example, HTTP or HTTPS).
@ -97,12 +102,13 @@ module Google
# relative_uri
# Tasks can be dispatched to secure app handlers, unsecure app handlers, and
# URIs restricted with
# [`login: admin`](https://cloud.google.com/appengine/docs/standard/python/
# config/appref).
# [`login:
# admin`](https://cloud.google.com/appengine/docs/standard/python/config/appref).
# Because tasks are not run as any user, they cannot be dispatched to URIs
# restricted with
# [`login: required`](https://cloud.google.com/appengine/docs/standard/python/
# config/appref)
# [`login:
# required`](https://cloud.google.com/appengine/docs/standard/python/config/
# appref)
# Task dispatches also do not follow redirects.
# The task attempt has succeeded if the app's request handler returns
# an HTTP response code in the range [`200` - `299`]. `503` is
@ -118,14 +124,18 @@ module Google
# Defines routing characteristics specific to App Engine - service, version,
# and instance.
# For more information about services, versions, and instances see
# [An Overview of App Engine](https://cloud.google.com/appengine/docs/python/an-
# overview-of-app-engine),
# [Microservices Architecture on Google App Engine](https://cloud.google.com/
# appengine/docs/python/microservices-on-app-engine),
# [App Engine Standard request routing](https://cloud.google.com/appengine/docs/
# standard/python/how-requests-are-routed),
# and [App Engine Flex request routing](https://cloud.google.com/appengine/docs/
# flexible/python/how-requests-are-routed).
# [An Overview of App
# Engine](https://cloud.google.com/appengine/docs/python/an-overview-of-app-
# engine),
# [Microservices Architecture on Google App
# Engine](https://cloud.google.com/appengine/docs/python/microservices-on-app-
# engine),
# [App Engine Standard request
# routing](https://cloud.google.com/appengine/docs/standard/python/how-requests-
# are-routed),
# and [App Engine Flex request
# routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests-
# are-routed).
# Corresponds to the JSON property `appEngineRouting`
# @return [Google::Apis::CloudtasksV2beta3::AppEngineRouting]
attr_accessor :app_engine_routing
@ -164,8 +174,9 @@ module Google
# * `X-AppEngine-*`
# In addition, Cloud Tasks sets some headers when the task is dispatched,
# such as headers containing information about the task; see
# [request headers](https://cloud.google.com/appengine/docs/python/taskqueue/
# push/creating-handlers#reading_request_headers).
# [request
# headers](https://cloud.google.com/appengine/docs/python/taskqueue/push/
# creating-handlers#reading_request_headers).
# These headers are set only when the task is dispatched, so they are not
# visible when the task is returned in a Cloud Tasks response.
# Although there is no specific limit for the maximum number of headers or
@ -179,12 +190,14 @@ module Google
# The app's request handler for the task's target URL must be able to handle
# HTTP requests with this http_method, otherwise the task attempt will fail
# with error code 405 (Method Not Allowed). See
# [Writing a push task request handler](https://cloud.google.com/appengine/docs/
# java/taskqueue/push/creating-handlers#writing_a_push_task_request_handler)
# [Writing a push task request
# handler](https://cloud.google.com/appengine/docs/java/taskqueue/push/creating-
# handlers#writing_a_push_task_request_handler)
# and the documentation for the request handlers in the language your app is
# written in e.g.
# [Python Request Handler](https://cloud.google.com/appengine/docs/python/tools/
# webapp/requesthandlerclass).
# [Python Request
# Handler](https://cloud.google.com/appengine/docs/python/tools/webapp/
# requesthandlerclass).
# Corresponds to the JSON property `httpMethod`
# @return [String]
attr_accessor :http_method
@ -216,14 +229,18 @@ module Google
# Defines routing characteristics specific to App Engine - service, version,
# and instance.
# For more information about services, versions, and instances see
# [An Overview of App Engine](https://cloud.google.com/appengine/docs/python/an-
# overview-of-app-engine),
# [Microservices Architecture on Google App Engine](https://cloud.google.com/
# appengine/docs/python/microservices-on-app-engine),
# [App Engine Standard request routing](https://cloud.google.com/appengine/docs/
# standard/python/how-requests-are-routed),
# and [App Engine Flex request routing](https://cloud.google.com/appengine/docs/
# flexible/python/how-requests-are-routed).
# [An Overview of App
# Engine](https://cloud.google.com/appengine/docs/python/an-overview-of-app-
# engine),
# [Microservices Architecture on Google App
# Engine](https://cloud.google.com/appengine/docs/python/microservices-on-app-
# engine),
# [App Engine Standard request
# routing](https://cloud.google.com/appengine/docs/standard/python/how-requests-
# are-routed),
# and [App Engine Flex request
# routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests-
# are-routed).
class AppEngineRouting
include Google::Apis::Core::Hashable
@ -234,8 +251,9 @@ module Google
# and instance. Tasks which were created using
# the App Engine SDK might have a custom domain name.
# For more information, see
# [How Requests are Routed](https://cloud.google.com/appengine/docs/standard/
# python/how-requests-are-routed).
# [How Requests are
# Routed](https://cloud.google.com/appengine/docs/standard/python/how-requests-
# are-routed).
# Corresponds to the JSON property `host`
# @return [String]
attr_accessor :host
@ -244,14 +262,16 @@ module Google
# By default, the task is sent to an instance which is available when
# the task is attempted.
# Requests can only be sent to a specific instance if
# [manual scaling is used in App Engine Standard](https://cloud.google.com/
# appengine/docs/python/an-overview-of-app-engine?hl=en_US#
# scaling_types_and_instance_classes).
# [manual scaling is used in App Engine
# Standard](https://cloud.google.com/appengine/docs/python/an-overview-of-app-
# engine?hl=en_US#scaling_types_and_instance_classes).
# App Engine Flex does not support instances. For more information, see
# [App Engine Standard request routing](https://cloud.google.com/appengine/docs/
# standard/python/how-requests-are-routed)
# and [App Engine Flex request routing](https://cloud.google.com/appengine/docs/
# flexible/python/how-requests-are-routed).
# [App Engine Standard request
# routing](https://cloud.google.com/appengine/docs/standard/python/how-requests-
# are-routed)
# and [App Engine Flex request
# routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests-
# are-routed).
# Corresponds to the JSON property `instance`
# @return [String]
attr_accessor :instance
@ -315,14 +335,14 @@ module Google
# @return [String]
attr_accessor :dispatch_time
# The `Status` type defines a logical error model that is suitable for different
# programming environments, including REST APIs and RPC APIs. It is used by
# [gRPC](https://github.com/grpc). The error model is designed to be:
# The `Status` type defines a logical error model that is suitable for
# different programming environments, including REST APIs and RPC APIs. It is
# used by [gRPC](https://github.com/grpc). The error model is designed to be:
# - Simple to use and understand for most users
# - Flexible enough to meet unexpected needs
# # Overview
# The `Status` message contains three pieces of data: error code, error message,
# and error details. The error code should be an enum value of
# The `Status` message contains three pieces of data: error code, error
# message, and error details. The error code should be an enum value of
# google.rpc.Code, but it may accept additional error codes if needed. The
# error message should be a developer-facing English message that helps
# developers *understand* and *resolve* the error. If a localized user-facing
@ -807,8 +827,9 @@ module Google
# * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]),
# hyphens (-), colons (:), or periods (.).
# For more information, see
# [Identifying projects](https://cloud.google.com/resource-manager/docs/
# creating-managing-projects#identifying_projects)
# [Identifying
# projects](https://cloud.google.com/resource-manager/docs/creating-managing-
# projects#identifying_projects)
# * `LOCATION_ID` is the canonical ID for the queue's location.
# The list of available locations can be obtained by calling
# ListLocations.
@ -823,9 +844,9 @@ module Google
# All tasks that were created before this time
# were purged.
# A queue can be purged using PurgeQueue, the
# [App Engine Task Queue SDK, or the Cloud Console](https://cloud.google.com/
# appengine/docs/standard/python/taskqueue/push/deleting-tasks-and-queues#
# purging_all_tasks_from_a_queue).
# [App Engine Task Queue SDK, or the Cloud
# Console](https://cloud.google.com/appengine/docs/standard/python/taskqueue/
# push/deleting-tasks-and-queues#purging_all_tasks_from_a_queue).
# Purge time will be truncated to the nearest microsecond. Purge
# time will be unset if the queue has never been purged.
# Corresponds to the JSON property `purgeTime`
@ -922,8 +943,9 @@ module Google
# default.
# The maximum allowed value is 5,000.
# This field has the same meaning as
# [max_concurrent_requests in queue.yaml/xml](https://cloud.google.com/appengine/
# docs/standard/python/config/queueref#max_concurrent_requests).
# [max_concurrent_requests in
# queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/
# queueref#max_concurrent_requests).
# Corresponds to the JSON property `maxConcurrentDispatches`
# @return [Fixnum]
attr_accessor :max_concurrent_dispatches
@ -934,8 +956,9 @@ module Google
# * For App Engine queues, the maximum allowed value
# is 500.
# This field has the same meaning as
# [rate in queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/
# python/config/queueref#rate).
# [rate in
# queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/
# queueref#rate).
# Corresponds to the JSON property `maxDispatchesPerSecond`
# @return [Float]
attr_accessor :max_dispatches_per_second
@ -978,8 +1001,9 @@ module Google
# default.
# -1 indicates unlimited attempts.
# This field has the same meaning as
# [task_retry_limit in queue.yaml/xml](https://cloud.google.com/appengine/docs/
# standard/python/config/queueref#retry_parameters).
# [task_retry_limit in
# queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/
# queueref#retry_parameters).
# Corresponds to the JSON property `maxAttempts`
# @return [Fixnum]
attr_accessor :max_attempts
@ -993,8 +1017,9 @@ module Google
# default.
# `max_backoff` will be truncated to the nearest second.
# This field has the same meaning as
# [max_backoff_seconds in queue.yaml/xml](https://cloud.google.com/appengine/
# docs/standard/python/config/queueref#retry_parameters).
# [max_backoff_seconds in
# queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/
# queueref#retry_parameters).
# Corresponds to the JSON property `maxBackoff`
# @return [String]
attr_accessor :max_backoff
@ -1018,8 +1043,9 @@ module Google
# If unspecified when the queue is created, Cloud Tasks will pick the
# default.
# This field has the same meaning as
# [max_doublings in queue.yaml/xml](https://cloud.google.com/appengine/docs/
# standard/python/config/queueref#retry_parameters).
# [max_doublings in
# queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/
# queueref#retry_parameters).
# Corresponds to the JSON property `maxDoublings`
# @return [Fixnum]
attr_accessor :max_doublings
@ -1035,8 +1061,9 @@ module Google
# default.
# `max_retry_duration` will be truncated to the nearest second.
# This field has the same meaning as
# [task_age_limit in queue.yaml/xml](https://cloud.google.com/appengine/docs/
# standard/python/config/queueref#retry_parameters).
# [task_age_limit in
# queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/
# queueref#retry_parameters).
# Corresponds to the JSON property `maxRetryDuration`
# @return [String]
attr_accessor :max_retry_duration
@ -1050,8 +1077,9 @@ module Google
# default.
# `min_backoff` will be truncated to the nearest second.
# This field has the same meaning as
# [min_backoff_seconds in queue.yaml/xml](https://cloud.google.com/appengine/
# docs/standard/python/config/queueref#retry_parameters).
# [min_backoff_seconds in
# queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/
# queueref#retry_parameters).
# Corresponds to the JSON property `minBackoff`
# @return [String]
attr_accessor :min_backoff
@ -1154,14 +1182,14 @@ module Google
end
end
# The `Status` type defines a logical error model that is suitable for different
# programming environments, including REST APIs and RPC APIs. It is used by
# [gRPC](https://github.com/grpc). The error model is designed to be:
# The `Status` type defines a logical error model that is suitable for
# different programming environments, including REST APIs and RPC APIs. It is
# used by [gRPC](https://github.com/grpc). The error model is designed to be:
# - Simple to use and understand for most users
# - Flexible enough to meet unexpected needs
# # Overview
# The `Status` message contains three pieces of data: error code, error message,
# and error details. The error code should be an enum value of
# The `Status` message contains three pieces of data: error code, error
# message, and error details. The error code should be an enum value of
# google.rpc.Code, but it may accept additional error codes if needed. The
# error message should be a developer-facing English message that helps
# developers *understand* and *resolve* the error. If a localized user-facing
@ -1243,11 +1271,12 @@ module Google
# `https://www.googleapis.com/auth/cloud-platform`
# The task will be delivered to the App Engine app which belongs to the same
# project as the queue. For more information, see
# [How Requests are Routed](https://cloud.google.com/appengine/docs/standard/
# python/how-requests-are-routed)
# [How Requests are
# Routed](https://cloud.google.com/appengine/docs/standard/python/how-requests-
# are-routed)
# and how routing is affected by
# [dispatch files](https://cloud.google.com/appengine/docs/python/config/
# dispatchref).
# [dispatch
# files](https://cloud.google.com/appengine/docs/python/config/dispatchref).
# Traffic is encrypted during transport and never leaves Google datacenters.
# Because this traffic is carried over a communication mechanism internal to
# Google, you cannot explicitly set the protocol (for example, HTTP or HTTPS).
@ -1265,12 +1294,13 @@ module Google
# relative_uri
# Tasks can be dispatched to secure app handlers, unsecure app handlers, and
# URIs restricted with
# [`login: admin`](https://cloud.google.com/appengine/docs/standard/python/
# config/appref).
# [`login:
# admin`](https://cloud.google.com/appengine/docs/standard/python/config/appref).
# Because tasks are not run as any user, they cannot be dispatched to URIs
# restricted with
# [`login: required`](https://cloud.google.com/appengine/docs/standard/python/
# config/appref)
# [`login:
# required`](https://cloud.google.com/appengine/docs/standard/python/config/
# appref)
# Task dispatches also do not follow redirects.
# The task attempt has succeeded if the app's request handler returns
# an HTTP response code in the range [`200` - `299`]. `503` is
@ -1307,8 +1337,9 @@ module Google
# The default and maximum values depend on the type of request:
# * For App Engine tasks, 0 indicates that the
# request has the default deadline. The default deadline depends on the
# [scaling type](https://cloud.google.com/appengine/docs/standard/go/how-
# instances-are-managed#instance_scaling)
# [scaling
# type](https://cloud.google.com/appengine/docs/standard/go/how-instances-are-
# managed#instance_scaling)
# of the service: 10 minutes for standard apps with automatic scaling, 24
# hours for standard apps with manual and basic scaling, and 60 minutes for
# flex apps. If the request deadline is set, it must be in the interval [15
@ -1342,8 +1373,9 @@ module Google
# * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]),
# hyphens (-), colons (:), or periods (.).
# For more information, see
# [Identifying projects](https://cloud.google.com/resource-manager/docs/
# creating-managing-projects#identifying_projects)
# [Identifying
# projects](https://cloud.google.com/resource-manager/docs/creating-managing-
# projects#identifying_projects)
# * `LOCATION_ID` is the canonical ID for the task's location.
# The list of available locations can be obtained by calling
# ListLocations.

View File

@ -360,8 +360,9 @@ module Google
# * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]),
# hyphens (-), colons (:), or periods (.).
# For more information, see
# [Identifying projects](https://cloud.google.com/resource-manager/docs/
# creating-managing-projects#identifying_projects)
# [Identifying
# projects](https://cloud.google.com/resource-manager/docs/creating-managing-
# projects#identifying_projects)
# * `LOCATION_ID` is the canonical ID for the queue's location.
# The list of available locations can be obtained by calling
# ListLocations.

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/compute/docs/reference/latest/
module ComputeAlpha
VERSION = 'Alpha'
REVISION = '20190221'
REVISION = '20190308'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

File diff suppressed because it is too large Load Diff

View File

@ -160,93 +160,21 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class Allocation
class AllocationSpecificSkuAllocationAllocatedInstancePropertiesReservedDisk
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AllocationAffinity
class AllocationSpecificSkuAllocationReservedInstanceProperties
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AllocationAggregatedList
class AllocationSpecificSkuReservation
class Representation < Google::Apis::Core::JsonRepresentation; end
class Warning
class Representation < Google::Apis::Core::JsonRepresentation; end
class Datum
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
include Google::Apis::Core::JsonObjectSupport
end
include Google::Apis::Core::JsonObjectSupport
end
class AllocationList
class Representation < Google::Apis::Core::JsonRepresentation; end
class Warning
class Representation < Google::Apis::Core::JsonRepresentation; end
class Datum
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
include Google::Apis::Core::JsonObjectSupport
end
include Google::Apis::Core::JsonObjectSupport
end
class AllocationSpecificSkuAllocation
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AllocationSpecificSkuAllocationAllocatedInstanceProperties
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AllocationSpecificSkuAllocationAllocatedInstancePropertiesAllocatedDisk
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AllocationsResizeRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AllocationsScopedList
class Representation < Google::Apis::Core::JsonRepresentation; end
class Warning
class Representation < Google::Apis::Core::JsonRepresentation; end
class Datum
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
include Google::Apis::Core::JsonObjectSupport
end
include Google::Apis::Core::JsonObjectSupport
end
@ -928,6 +856,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class FileContentBuffer
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Firewall
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -1360,6 +1294,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class InitialStateConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Instance
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -1564,6 +1504,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class InstanceGroupManagersPatchPerInstanceConfigsReq
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class InstanceGroupManagersRecreateInstancesRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -2848,6 +2794,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class OrganizationSecurityPoliciesListAssociationsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class OriginAuthenticationMethod
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -3010,7 +2962,7 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class RegionCommitmentsUpdateAllocationsRequest
class RegionCommitmentsUpdateReservationsRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
@ -3094,6 +3046,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class RegionInstanceGroupManagerPatchInstanceConfigReq
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class RegionInstanceGroupManagerUpdateInstanceConfigReq
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -3250,6 +3208,78 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class Reservation
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ReservationAffinity
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ReservationAggregatedList
class Representation < Google::Apis::Core::JsonRepresentation; end
class Warning
class Representation < Google::Apis::Core::JsonRepresentation; end
class Datum
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
include Google::Apis::Core::JsonObjectSupport
end
include Google::Apis::Core::JsonObjectSupport
end
class ReservationList
class Representation < Google::Apis::Core::JsonRepresentation; end
class Warning
class Representation < Google::Apis::Core::JsonRepresentation; end
class Datum
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
include Google::Apis::Core::JsonObjectSupport
end
include Google::Apis::Core::JsonObjectSupport
end
class ReservationsResizeRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ReservationsScopedList
class Representation < Google::Apis::Core::JsonRepresentation; end
class Warning
class Representation < Google::Apis::Core::JsonRepresentation; end
class Datum
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
include Google::Apis::Core::JsonObjectSupport
end
include Google::Apis::Core::JsonObjectSupport
end
class ResourceCommitment
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -4732,12 +4762,42 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class VpnGatewayStatus
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class VpnGatewayStatusHighAvailabilityRequirementState
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class VpnGatewayStatusTunnel
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class VpnGatewayStatusVpnConnection
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class VpnGatewayVpnGatewayInterface
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class VpnGatewaysGetStatusResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class VpnGatewaysScopedList
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -5152,120 +5212,7 @@ module Google
end
end
class Allocation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :commitment, as: 'commitment'
property :creation_timestamp, as: 'creationTimestamp'
property :description, as: 'description'
property :id, :numeric_string => true, as: 'id'
property :kind, as: 'kind'
property :name, as: 'name'
property :self_link, as: 'selfLink'
property :self_link_with_id, as: 'selfLinkWithId'
property :specific_allocation, as: 'specificAllocation', class: Google::Apis::ComputeAlpha::AllocationSpecificSkuAllocation, decorator: Google::Apis::ComputeAlpha::AllocationSpecificSkuAllocation::Representation
property :specific_allocation_required, as: 'specificAllocationRequired'
property :zone, as: 'zone'
end
end
class AllocationAffinity
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :consume_allocation_type, as: 'consumeAllocationType'
property :key, as: 'key'
collection :values, as: 'values'
end
end
class AllocationAggregatedList
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :id, as: 'id'
hash :items, as: 'items', class: Google::Apis::ComputeAlpha::AllocationsScopedList, decorator: Google::Apis::ComputeAlpha::AllocationsScopedList::Representation
property :kind, as: 'kind'
property :next_page_token, as: 'nextPageToken'
property :self_link, as: 'selfLink'
property :warning, as: 'warning', class: Google::Apis::ComputeAlpha::AllocationAggregatedList::Warning, decorator: Google::Apis::ComputeAlpha::AllocationAggregatedList::Warning::Representation
end
class Warning
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :code, as: 'code'
collection :data, as: 'data', class: Google::Apis::ComputeAlpha::AllocationAggregatedList::Warning::Datum, decorator: Google::Apis::ComputeAlpha::AllocationAggregatedList::Warning::Datum::Representation
property :message, as: 'message'
end
class Datum
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :key, as: 'key'
property :value, as: 'value'
end
end
end
end
class AllocationList
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :id, as: 'id'
collection :items, as: 'items', class: Google::Apis::ComputeAlpha::Allocation, decorator: Google::Apis::ComputeAlpha::Allocation::Representation
property :kind, as: 'kind'
property :next_page_token, as: 'nextPageToken'
property :self_link, as: 'selfLink'
property :warning, as: 'warning', class: Google::Apis::ComputeAlpha::AllocationList::Warning, decorator: Google::Apis::ComputeAlpha::AllocationList::Warning::Representation
end
class Warning
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :code, as: 'code'
collection :data, as: 'data', class: Google::Apis::ComputeAlpha::AllocationList::Warning::Datum, decorator: Google::Apis::ComputeAlpha::AllocationList::Warning::Datum::Representation
property :message, as: 'message'
end
class Datum
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :key, as: 'key'
property :value, as: 'value'
end
end
end
end
class AllocationSpecificSkuAllocation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :count, :numeric_string => true, as: 'count'
property :in_use_count, :numeric_string => true, as: 'inUseCount'
property :instance_properties, as: 'instanceProperties', class: Google::Apis::ComputeAlpha::AllocationSpecificSkuAllocationAllocatedInstanceProperties, decorator: Google::Apis::ComputeAlpha::AllocationSpecificSkuAllocationAllocatedInstanceProperties::Representation
end
end
class AllocationSpecificSkuAllocationAllocatedInstanceProperties
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :guest_accelerators, as: 'guestAccelerators', class: Google::Apis::ComputeAlpha::AcceleratorConfig, decorator: Google::Apis::ComputeAlpha::AcceleratorConfig::Representation
collection :local_ssds, as: 'localSsds', class: Google::Apis::ComputeAlpha::AllocationSpecificSkuAllocationAllocatedInstancePropertiesAllocatedDisk, decorator: Google::Apis::ComputeAlpha::AllocationSpecificSkuAllocationAllocatedInstancePropertiesAllocatedDisk::Representation
property :machine_type, as: 'machineType'
property :min_cpu_platform, as: 'minCpuPlatform'
end
end
class AllocationSpecificSkuAllocationAllocatedInstancePropertiesAllocatedDisk
class AllocationSpecificSkuAllocationAllocatedInstancePropertiesReservedDisk
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :disk_size_gb, :numeric_string => true, as: 'diskSizeGb'
@ -5273,38 +5220,25 @@ module Google
end
end
class AllocationsResizeRequest
class AllocationSpecificSkuAllocationReservedInstanceProperties
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :specific_sku_count, :numeric_string => true, as: 'specificSkuCount'
collection :guest_accelerators, as: 'guestAccelerators', class: Google::Apis::ComputeAlpha::AcceleratorConfig, decorator: Google::Apis::ComputeAlpha::AcceleratorConfig::Representation
collection :local_ssds, as: 'localSsds', class: Google::Apis::ComputeAlpha::AllocationSpecificSkuAllocationAllocatedInstancePropertiesReservedDisk, decorator: Google::Apis::ComputeAlpha::AllocationSpecificSkuAllocationAllocatedInstancePropertiesReservedDisk::Representation
property :machine_type, as: 'machineType'
property :min_cpu_platform, as: 'minCpuPlatform'
end
end
class AllocationsScopedList
class AllocationSpecificSkuReservation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :allocations, as: 'allocations', class: Google::Apis::ComputeAlpha::Allocation, decorator: Google::Apis::ComputeAlpha::Allocation::Representation
property :count, :numeric_string => true, as: 'count'
property :in_use_count, :numeric_string => true, as: 'inUseCount'
property :instance_properties, as: 'instanceProperties', class: Google::Apis::ComputeAlpha::AllocationSpecificSkuAllocationReservedInstanceProperties, decorator: Google::Apis::ComputeAlpha::AllocationSpecificSkuAllocationReservedInstanceProperties::Representation
property :warning, as: 'warning', class: Google::Apis::ComputeAlpha::AllocationsScopedList::Warning, decorator: Google::Apis::ComputeAlpha::AllocationsScopedList::Warning::Representation
end
class Warning
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :code, as: 'code'
collection :data, as: 'data', class: Google::Apis::ComputeAlpha::AllocationsScopedList::Warning::Datum, decorator: Google::Apis::ComputeAlpha::AllocationsScopedList::Warning::Datum::Representation
property :message, as: 'message'
end
class Datum
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :key, as: 'key'
property :value, as: 'value'
end
end
end
end
@ -5327,6 +5261,8 @@ module Google
collection :licenses, as: 'licenses'
property :mode, as: 'mode'
property :saved_state, as: 'savedState'
property :shielded_instance_initial_state, as: 'shieldedInstanceInitialState', class: Google::Apis::ComputeAlpha::InitialStateConfig, decorator: Google::Apis::ComputeAlpha::InitialStateConfig::Representation
property :source, as: 'source'
property :type, as: 'type'
end
@ -5958,8 +5894,6 @@ module Google
class Commitment
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :allocations, as: 'allocations', class: Google::Apis::ComputeAlpha::Allocation, decorator: Google::Apis::ComputeAlpha::Allocation::Representation
property :creation_timestamp, as: 'creationTimestamp'
property :description, as: 'description'
property :end_timestamp, as: 'endTimestamp'
@ -5968,6 +5902,8 @@ module Google
property :name, as: 'name'
property :plan, as: 'plan'
property :region, as: 'region'
collection :reservations, as: 'reservations', class: Google::Apis::ComputeAlpha::Reservation, decorator: Google::Apis::ComputeAlpha::Reservation::Representation
collection :resources, as: 'resources', class: Google::Apis::ComputeAlpha::ResourceCommitment, decorator: Google::Apis::ComputeAlpha::ResourceCommitment::Representation
property :self_link, as: 'selfLink'
@ -6579,6 +6515,14 @@ module Google
end
end
class FileContentBuffer
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :content, :base64 => true, as: 'content'
property :file_type, as: 'fileType'
end
end
class Firewall
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -6691,6 +6635,8 @@ module Google
property :label_fingerprint, :base64 => true, as: 'labelFingerprint'
hash :labels, as: 'labels'
property :load_balancing_scheme, as: 'loadBalancingScheme'
collection :metadata_filters, as: 'metadataFilters', class: Google::Apis::ComputeAlpha::MetadataFilter, decorator: Google::Apis::ComputeAlpha::MetadataFilter::Representation
property :name, as: 'name'
property :network, as: 'network'
property :network_tier, as: 'networkTier'
@ -7398,6 +7344,8 @@ module Google
property :self_link, as: 'selfLink'
property :self_link_with_id, as: 'selfLinkWithId'
property :shielded_instance_initial_state, as: 'shieldedInstanceInitialState', class: Google::Apis::ComputeAlpha::InitialStateConfig, decorator: Google::Apis::ComputeAlpha::InitialStateConfig::Representation
property :source_disk, as: 'sourceDisk'
property :source_disk_encryption_key, as: 'sourceDiskEncryptionKey', class: Google::Apis::ComputeAlpha::CustomerEncryptionKey, decorator: Google::Apis::ComputeAlpha::CustomerEncryptionKey::Representation
@ -7457,11 +7405,23 @@ module Google
end
end
class InitialStateConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :dbs, as: 'dbs', class: Google::Apis::ComputeAlpha::FileContentBuffer, decorator: Google::Apis::ComputeAlpha::FileContentBuffer::Representation
collection :dbxs, as: 'dbxs', class: Google::Apis::ComputeAlpha::FileContentBuffer, decorator: Google::Apis::ComputeAlpha::FileContentBuffer::Representation
collection :keks, as: 'keks', class: Google::Apis::ComputeAlpha::FileContentBuffer, decorator: Google::Apis::ComputeAlpha::FileContentBuffer::Representation
property :pk, as: 'pk', class: Google::Apis::ComputeAlpha::FileContentBuffer, decorator: Google::Apis::ComputeAlpha::FileContentBuffer::Representation
end
end
class Instance
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :allocation_affinity, as: 'allocationAffinity', class: Google::Apis::ComputeAlpha::AllocationAffinity, decorator: Google::Apis::ComputeAlpha::AllocationAffinity::Representation
property :can_ip_forward, as: 'canIpForward'
property :cpu_platform, as: 'cpuPlatform'
property :creation_timestamp, as: 'creationTimestamp'
@ -7488,6 +7448,8 @@ module Google
collection :network_interfaces, as: 'networkInterfaces', class: Google::Apis::ComputeAlpha::NetworkInterface, decorator: Google::Apis::ComputeAlpha::NetworkInterface::Representation
property :preserved_state_size_gb, :numeric_string => true, as: 'preservedStateSizeGb'
property :reservation_affinity, as: 'reservationAffinity', class: Google::Apis::ComputeAlpha::ReservationAffinity, decorator: Google::Apis::ComputeAlpha::ReservationAffinity::Representation
collection :resource_policies, as: 'resourcePolicies'
property :scheduling, as: 'scheduling', class: Google::Apis::ComputeAlpha::Scheduling, decorator: Google::Apis::ComputeAlpha::Scheduling::Representation
@ -7892,6 +7854,14 @@ module Google
end
end
class InstanceGroupManagersPatchPerInstanceConfigsReq
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :per_instance_configs, as: 'perInstanceConfigs', class: Google::Apis::ComputeAlpha::PerInstanceConfig, decorator: Google::Apis::ComputeAlpha::PerInstanceConfig::Representation
end
end
class InstanceGroupManagersRecreateInstancesRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -8133,8 +8103,6 @@ module Google
class InstanceProperties
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :allocation_affinity, as: 'allocationAffinity', class: Google::Apis::ComputeAlpha::AllocationAffinity, decorator: Google::Apis::ComputeAlpha::AllocationAffinity::Representation
property :can_ip_forward, as: 'canIpForward'
property :description, as: 'description'
collection :disks, as: 'disks', class: Google::Apis::ComputeAlpha::AttachedDisk, decorator: Google::Apis::ComputeAlpha::AttachedDisk::Representation
@ -8150,6 +8118,8 @@ module Google
property :min_cpu_platform, as: 'minCpuPlatform'
collection :network_interfaces, as: 'networkInterfaces', class: Google::Apis::ComputeAlpha::NetworkInterface, decorator: Google::Apis::ComputeAlpha::NetworkInterface::Representation
property :reservation_affinity, as: 'reservationAffinity', class: Google::Apis::ComputeAlpha::ReservationAffinity, decorator: Google::Apis::ComputeAlpha::ReservationAffinity::Representation
property :scheduling, as: 'scheduling', class: Google::Apis::ComputeAlpha::Scheduling, decorator: Google::Apis::ComputeAlpha::Scheduling::Representation
collection :service_accounts, as: 'serviceAccounts', class: Google::Apis::ComputeAlpha::ServiceAccount, decorator: Google::Apis::ComputeAlpha::ServiceAccount::Representation
@ -9259,6 +9229,7 @@ module Google
# @private
class Representation < Google::Apis::Core::JsonRepresentation
hash :annotations, as: 'annotations'
property :fqdn, as: 'fqdn'
property :instance, as: 'instance'
property :ip_address, as: 'ipAddress'
property :port, as: 'port'
@ -9999,6 +9970,7 @@ module Google
class NotificationEndpointGrpcSettings
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :authority, as: 'authority'
property :endpoint, as: 'endpoint'
property :payload_name, as: 'payloadName'
property :retry_duration_sec, as: 'retryDurationSec'
@ -10196,6 +10168,15 @@ module Google
end
end
class OrganizationSecurityPoliciesListAssociationsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :associations, as: 'associations', class: Google::Apis::ComputeAlpha::SecurityPolicyAssociation, decorator: Google::Apis::ComputeAlpha::SecurityPolicyAssociation::Representation
property :kind, as: 'kind'
end
end
class OriginAuthenticationMethod
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -10507,10 +10488,10 @@ module Google
end
end
class RegionCommitmentsUpdateAllocationsRequest
class RegionCommitmentsUpdateReservationsRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :allocations, as: 'allocations', class: Google::Apis::ComputeAlpha::Allocation, decorator: Google::Apis::ComputeAlpha::Allocation::Representation
collection :reservations, as: 'reservations', class: Google::Apis::ComputeAlpha::Reservation, decorator: Google::Apis::ComputeAlpha::Reservation::Representation
end
end
@ -10640,6 +10621,14 @@ module Google
end
end
class RegionInstanceGroupManagerPatchInstanceConfigReq
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :per_instance_configs, as: 'perInstanceConfigs', class: Google::Apis::ComputeAlpha::PerInstanceConfig, decorator: Google::Apis::ComputeAlpha::PerInstanceConfig::Representation
end
end
class RegionInstanceGroupManagerUpdateInstanceConfigReq
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -10870,6 +10859,132 @@ module Google
end
end
class Reservation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :commitment, as: 'commitment'
property :creation_timestamp, as: 'creationTimestamp'
property :description, as: 'description'
property :id, :numeric_string => true, as: 'id'
property :kind, as: 'kind'
property :name, as: 'name'
property :self_link, as: 'selfLink'
property :self_link_with_id, as: 'selfLinkWithId'
property :specific_reservation, as: 'specificReservation', class: Google::Apis::ComputeAlpha::AllocationSpecificSkuReservation, decorator: Google::Apis::ComputeAlpha::AllocationSpecificSkuReservation::Representation
property :specific_reservation_required, as: 'specificReservationRequired'
property :zone, as: 'zone'
end
end
class ReservationAffinity
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :consume_reservation_type, as: 'consumeReservationType'
property :key, as: 'key'
collection :values, as: 'values'
end
end
class ReservationAggregatedList
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :id, as: 'id'
hash :items, as: 'items', class: Google::Apis::ComputeAlpha::ReservationsScopedList, decorator: Google::Apis::ComputeAlpha::ReservationsScopedList::Representation
property :kind, as: 'kind'
property :next_page_token, as: 'nextPageToken'
property :self_link, as: 'selfLink'
property :warning, as: 'warning', class: Google::Apis::ComputeAlpha::ReservationAggregatedList::Warning, decorator: Google::Apis::ComputeAlpha::ReservationAggregatedList::Warning::Representation
end
class Warning
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :code, as: 'code'
collection :data, as: 'data', class: Google::Apis::ComputeAlpha::ReservationAggregatedList::Warning::Datum, decorator: Google::Apis::ComputeAlpha::ReservationAggregatedList::Warning::Datum::Representation
property :message, as: 'message'
end
class Datum
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :key, as: 'key'
property :value, as: 'value'
end
end
end
end
class ReservationList
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :id, as: 'id'
collection :items, as: 'items', class: Google::Apis::ComputeAlpha::Reservation, decorator: Google::Apis::ComputeAlpha::Reservation::Representation
property :kind, as: 'kind'
property :next_page_token, as: 'nextPageToken'
property :self_link, as: 'selfLink'
property :warning, as: 'warning', class: Google::Apis::ComputeAlpha::ReservationList::Warning, decorator: Google::Apis::ComputeAlpha::ReservationList::Warning::Representation
end
class Warning
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :code, as: 'code'
collection :data, as: 'data', class: Google::Apis::ComputeAlpha::ReservationList::Warning::Datum, decorator: Google::Apis::ComputeAlpha::ReservationList::Warning::Datum::Representation
property :message, as: 'message'
end
class Datum
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :key, as: 'key'
property :value, as: 'value'
end
end
end
end
class ReservationsResizeRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :specific_sku_count, :numeric_string => true, as: 'specificSkuCount'
end
end
class ReservationsScopedList
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :reservations, as: 'reservations', class: Google::Apis::ComputeAlpha::Reservation, decorator: Google::Apis::ComputeAlpha::Reservation::Representation
property :warning, as: 'warning', class: Google::Apis::ComputeAlpha::ReservationsScopedList::Warning, decorator: Google::Apis::ComputeAlpha::ReservationsScopedList::Warning::Representation
end
class Warning
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :code, as: 'code'
collection :data, as: 'data', class: Google::Apis::ComputeAlpha::ReservationsScopedList::Warning::Datum, decorator: Google::Apis::ComputeAlpha::ReservationsScopedList::Warning::Datum::Representation
property :message, as: 'message'
end
class Datum
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :key, as: 'key'
property :value, as: 'value'
end
end
end
end
class ResourceCommitment
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -11331,6 +11446,7 @@ module Google
class RouterNat
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :drain_nat_ips, as: 'drainNatIps'
property :icmp_idle_timeout_sec, as: 'icmpIdleTimeoutSec'
property :log_config, as: 'logConfig', class: Google::Apis::ComputeAlpha::RouterNatLogConfig, decorator: Google::Apis::ComputeAlpha::RouterNatLogConfig::Representation
@ -11400,6 +11516,8 @@ module Google
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :auto_allocated_nat_ips, as: 'autoAllocatedNatIps'
collection :drain_auto_allocated_nat_ips, as: 'drainAutoAllocatedNatIps'
collection :drain_user_allocated_nat_ips, as: 'drainUserAllocatedNatIps'
property :min_extra_nat_ips_needed, as: 'minExtraNatIpsNeeded'
property :name, as: 'name'
property :num_vm_endpoints_with_nat_mappings, as: 'numVmEndpointsWithNatMappings'
@ -11564,6 +11682,7 @@ module Google
property :label_fingerprint, :base64 => true, as: 'labelFingerprint'
hash :labels, as: 'labels'
property :name, as: 'name'
property :rule_tuple_count, as: 'ruleTupleCount'
collection :rules, as: 'rules', class: Google::Apis::ComputeAlpha::SecurityPolicyRule, decorator: Google::Apis::ComputeAlpha::SecurityPolicyRule::Representation
property :self_link, as: 'selfLink'
@ -11577,6 +11696,7 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation
property :attachment_id, as: 'attachmentId'
property :name, as: 'name'
property :security_policy_id, as: 'securityPolicyId'
end
end
@ -11632,6 +11752,7 @@ module Google
property :priority, as: 'priority'
property :rate_limit_options, as: 'rateLimitOptions', class: Google::Apis::ComputeAlpha::SecurityPolicyRuleRateLimitOptions, decorator: Google::Apis::ComputeAlpha::SecurityPolicyRuleRateLimitOptions::Representation
property :rule_tuple_count, as: 'ruleTupleCount'
collection :target_resources, as: 'targetResources'
end
end
@ -12200,6 +12321,7 @@ module Google
property :private_ip_google_access, as: 'privateIpGoogleAccess'
property :private_ipv6_google_access, as: 'privateIpv6GoogleAccess'
property :purpose, as: 'purpose'
property :range_type, as: 'rangeType'
property :region, as: 'region'
property :role, as: 'role'
collection :secondary_ip_ranges, as: 'secondaryIpRanges', class: Google::Apis::ComputeAlpha::SubnetworkSecondaryRange, decorator: Google::Apis::ComputeAlpha::SubnetworkSecondaryRange::Representation
@ -12289,6 +12411,7 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation
property :ip_cidr_range, as: 'ipCidrRange'
property :range_name, as: 'rangeName'
property :range_type, as: 'rangeType'
end
end
@ -12296,6 +12419,7 @@ module Google
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :ip_cidr_range, as: 'ipCidrRange'
property :range_type, as: 'rangeType'
end
end
@ -13411,7 +13535,9 @@ module Google
class VmEndpointNatMappingsInterfaceNatMappings
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :drain_nat_ip_port_ranges, as: 'drainNatIpPortRanges'
collection :nat_ip_port_ranges, as: 'natIpPortRanges'
property :num_total_drain_nat_ports, as: 'numTotalDrainNatPorts'
property :num_total_nat_ports, as: 'numTotalNatPorts'
property :source_alias_ip_range, as: 'sourceAliasIpRange'
property :source_virtual_ip, as: 'sourceVirtualIp'
@ -13532,6 +13658,43 @@ module Google
end
end
class VpnGatewayStatus
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :vpn_connections, as: 'vpnConnections', class: Google::Apis::ComputeAlpha::VpnGatewayStatusVpnConnection, decorator: Google::Apis::ComputeAlpha::VpnGatewayStatusVpnConnection::Representation
end
end
class VpnGatewayStatusHighAvailabilityRequirementState
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :state, as: 'state'
property :unsatisfied_reason, as: 'unsatisfiedReason'
end
end
class VpnGatewayStatusTunnel
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :local_gateway_interface, as: 'localGatewayInterface'
property :peer_gateway_interface, as: 'peerGatewayInterface'
property :tunnel_url, as: 'tunnelUrl'
end
end
class VpnGatewayStatusVpnConnection
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :peer_external_gateway, as: 'peerExternalGateway'
property :peer_gcp_gateway, as: 'peerGcpGateway'
property :state, as: 'state', class: Google::Apis::ComputeAlpha::VpnGatewayStatusHighAvailabilityRequirementState, decorator: Google::Apis::ComputeAlpha::VpnGatewayStatusHighAvailabilityRequirementState::Representation
collection :tunnels, as: 'tunnels', class: Google::Apis::ComputeAlpha::VpnGatewayStatusTunnel, decorator: Google::Apis::ComputeAlpha::VpnGatewayStatusTunnel::Representation
end
end
class VpnGatewayVpnGatewayInterface
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -13540,6 +13703,14 @@ module Google
end
end
class VpnGatewaysGetStatusResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :result, as: 'result', class: Google::Apis::ComputeAlpha::VpnGatewayStatus, decorator: Google::Apis::ComputeAlpha::VpnGatewayStatus::Representation
end
end
class VpnGatewaysScopedList
# @private
class Representation < Google::Apis::Core::JsonRepresentation

File diff suppressed because it is too large Load Diff

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/compute/docs/reference/latest/
module ComputeBeta
VERSION = 'Beta'
REVISION = '20190221'
REVISION = '20190308'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

File diff suppressed because it is too large Load Diff

View File

@ -160,93 +160,21 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class Allocation
class AllocationSpecificSkuAllocationAllocatedInstancePropertiesReservedDisk
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AllocationAffinity
class AllocationSpecificSkuAllocationReservedInstanceProperties
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AllocationAggregatedList
class AllocationSpecificSkuReservation
class Representation < Google::Apis::Core::JsonRepresentation; end
class Warning
class Representation < Google::Apis::Core::JsonRepresentation; end
class Datum
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
include Google::Apis::Core::JsonObjectSupport
end
include Google::Apis::Core::JsonObjectSupport
end
class AllocationList
class Representation < Google::Apis::Core::JsonRepresentation; end
class Warning
class Representation < Google::Apis::Core::JsonRepresentation; end
class Datum
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
include Google::Apis::Core::JsonObjectSupport
end
include Google::Apis::Core::JsonObjectSupport
end
class AllocationSpecificSkuAllocation
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AllocationSpecificSkuAllocationAllocatedInstanceProperties
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AllocationSpecificSkuAllocationAllocatedInstancePropertiesAllocatedDisk
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AllocationsResizeRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AllocationsScopedList
class Representation < Google::Apis::Core::JsonRepresentation; end
class Warning
class Representation < Google::Apis::Core::JsonRepresentation; end
class Datum
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
include Google::Apis::Core::JsonObjectSupport
end
include Google::Apis::Core::JsonObjectSupport
end
@ -436,6 +364,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class BackendServiceFailoverPolicy
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class BackendServiceGroupHealth
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -1282,6 +1216,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class InstanceGroupManagersApplyUpdatesRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class InstanceGroupManagersDeleteInstancesRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -2476,7 +2416,7 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class RegionCommitmentsUpdateAllocationsRequest
class RegionCommitmentsUpdateReservationsRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
@ -2560,6 +2500,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class RegionInstanceGroupManagersApplyUpdatesRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class RegionInstanceGroupManagersDeleteInstancesRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -2656,6 +2602,78 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class Reservation
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ReservationAffinity
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ReservationAggregatedList
class Representation < Google::Apis::Core::JsonRepresentation; end
class Warning
class Representation < Google::Apis::Core::JsonRepresentation; end
class Datum
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
include Google::Apis::Core::JsonObjectSupport
end
include Google::Apis::Core::JsonObjectSupport
end
class ReservationList
class Representation < Google::Apis::Core::JsonRepresentation; end
class Warning
class Representation < Google::Apis::Core::JsonRepresentation; end
class Datum
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
include Google::Apis::Core::JsonObjectSupport
end
include Google::Apis::Core::JsonObjectSupport
end
class ReservationsResizeRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ReservationsScopedList
class Representation < Google::Apis::Core::JsonRepresentation; end
class Warning
class Representation < Google::Apis::Core::JsonRepresentation; end
class Datum
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
include Google::Apis::Core::JsonObjectSupport
end
include Google::Apis::Core::JsonObjectSupport
end
class ResourceCommitment
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -3844,12 +3862,42 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class VpnGatewayStatus
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class VpnGatewayStatusHighAvailabilityRequirementState
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class VpnGatewayStatusTunnel
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class VpnGatewayStatusVpnConnection
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class VpnGatewayVpnGatewayInterface
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class VpnGatewaysGetStatusResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class VpnGatewaysScopedList
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -4254,119 +4302,7 @@ module Google
end
end
class Allocation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :commitment, as: 'commitment'
property :creation_timestamp, as: 'creationTimestamp'
property :description, as: 'description'
property :id, :numeric_string => true, as: 'id'
property :kind, as: 'kind'
property :name, as: 'name'
property :self_link, as: 'selfLink'
property :specific_allocation, as: 'specificAllocation', class: Google::Apis::ComputeBeta::AllocationSpecificSkuAllocation, decorator: Google::Apis::ComputeBeta::AllocationSpecificSkuAllocation::Representation
property :specific_allocation_required, as: 'specificAllocationRequired'
property :zone, as: 'zone'
end
end
class AllocationAffinity
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :consume_allocation_type, as: 'consumeAllocationType'
property :key, as: 'key'
collection :values, as: 'values'
end
end
class AllocationAggregatedList
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :id, as: 'id'
hash :items, as: 'items', class: Google::Apis::ComputeBeta::AllocationsScopedList, decorator: Google::Apis::ComputeBeta::AllocationsScopedList::Representation
property :kind, as: 'kind'
property :next_page_token, as: 'nextPageToken'
property :self_link, as: 'selfLink'
property :warning, as: 'warning', class: Google::Apis::ComputeBeta::AllocationAggregatedList::Warning, decorator: Google::Apis::ComputeBeta::AllocationAggregatedList::Warning::Representation
end
class Warning
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :code, as: 'code'
collection :data, as: 'data', class: Google::Apis::ComputeBeta::AllocationAggregatedList::Warning::Datum, decorator: Google::Apis::ComputeBeta::AllocationAggregatedList::Warning::Datum::Representation
property :message, as: 'message'
end
class Datum
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :key, as: 'key'
property :value, as: 'value'
end
end
end
end
class AllocationList
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :id, as: 'id'
collection :items, as: 'items', class: Google::Apis::ComputeBeta::Allocation, decorator: Google::Apis::ComputeBeta::Allocation::Representation
property :kind, as: 'kind'
property :next_page_token, as: 'nextPageToken'
property :self_link, as: 'selfLink'
property :warning, as: 'warning', class: Google::Apis::ComputeBeta::AllocationList::Warning, decorator: Google::Apis::ComputeBeta::AllocationList::Warning::Representation
end
class Warning
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :code, as: 'code'
collection :data, as: 'data', class: Google::Apis::ComputeBeta::AllocationList::Warning::Datum, decorator: Google::Apis::ComputeBeta::AllocationList::Warning::Datum::Representation
property :message, as: 'message'
end
class Datum
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :key, as: 'key'
property :value, as: 'value'
end
end
end
end
class AllocationSpecificSkuAllocation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :count, :numeric_string => true, as: 'count'
property :in_use_count, :numeric_string => true, as: 'inUseCount'
property :instance_properties, as: 'instanceProperties', class: Google::Apis::ComputeBeta::AllocationSpecificSkuAllocationAllocatedInstanceProperties, decorator: Google::Apis::ComputeBeta::AllocationSpecificSkuAllocationAllocatedInstanceProperties::Representation
end
end
class AllocationSpecificSkuAllocationAllocatedInstanceProperties
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :guest_accelerators, as: 'guestAccelerators', class: Google::Apis::ComputeBeta::AcceleratorConfig, decorator: Google::Apis::ComputeBeta::AcceleratorConfig::Representation
collection :local_ssds, as: 'localSsds', class: Google::Apis::ComputeBeta::AllocationSpecificSkuAllocationAllocatedInstancePropertiesAllocatedDisk, decorator: Google::Apis::ComputeBeta::AllocationSpecificSkuAllocationAllocatedInstancePropertiesAllocatedDisk::Representation
property :machine_type, as: 'machineType'
property :min_cpu_platform, as: 'minCpuPlatform'
end
end
class AllocationSpecificSkuAllocationAllocatedInstancePropertiesAllocatedDisk
class AllocationSpecificSkuAllocationAllocatedInstancePropertiesReservedDisk
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :disk_size_gb, :numeric_string => true, as: 'diskSizeGb'
@ -4374,38 +4310,25 @@ module Google
end
end
class AllocationsResizeRequest
class AllocationSpecificSkuAllocationReservedInstanceProperties
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :specific_sku_count, :numeric_string => true, as: 'specificSkuCount'
collection :guest_accelerators, as: 'guestAccelerators', class: Google::Apis::ComputeBeta::AcceleratorConfig, decorator: Google::Apis::ComputeBeta::AcceleratorConfig::Representation
collection :local_ssds, as: 'localSsds', class: Google::Apis::ComputeBeta::AllocationSpecificSkuAllocationAllocatedInstancePropertiesReservedDisk, decorator: Google::Apis::ComputeBeta::AllocationSpecificSkuAllocationAllocatedInstancePropertiesReservedDisk::Representation
property :machine_type, as: 'machineType'
property :min_cpu_platform, as: 'minCpuPlatform'
end
end
class AllocationsScopedList
class AllocationSpecificSkuReservation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :allocations, as: 'allocations', class: Google::Apis::ComputeBeta::Allocation, decorator: Google::Apis::ComputeBeta::Allocation::Representation
property :count, :numeric_string => true, as: 'count'
property :in_use_count, :numeric_string => true, as: 'inUseCount'
property :instance_properties, as: 'instanceProperties', class: Google::Apis::ComputeBeta::AllocationSpecificSkuAllocationReservedInstanceProperties, decorator: Google::Apis::ComputeBeta::AllocationSpecificSkuAllocationReservedInstanceProperties::Representation
property :warning, as: 'warning', class: Google::Apis::ComputeBeta::AllocationsScopedList::Warning, decorator: Google::Apis::ComputeBeta::AllocationsScopedList::Warning::Representation
end
class Warning
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :code, as: 'code'
collection :data, as: 'data', class: Google::Apis::ComputeBeta::AllocationsScopedList::Warning::Datum, decorator: Google::Apis::ComputeBeta::AllocationsScopedList::Warning::Datum::Representation
property :message, as: 'message'
end
class Datum
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :key, as: 'key'
property :value, as: 'value'
end
end
end
end
@ -4638,6 +4561,7 @@ module Google
property :balancing_mode, as: 'balancingMode'
property :capacity_scaler, as: 'capacityScaler'
property :description, as: 'description'
property :failover, as: 'failover'
property :group, as: 'group'
property :max_connections, as: 'maxConnections'
property :max_connections_per_endpoint, as: 'maxConnectionsPerEndpoint'
@ -4719,6 +4643,8 @@ module Google
collection :custom_request_headers, as: 'customRequestHeaders'
property :description, as: 'description'
property :enable_cdn, as: 'enableCDN'
property :failover_policy, as: 'failoverPolicy', class: Google::Apis::ComputeBeta::BackendServiceFailoverPolicy, decorator: Google::Apis::ComputeBeta::BackendServiceFailoverPolicy::Representation
property :fingerprint, :base64 => true, as: 'fingerprint'
collection :health_checks, as: 'healthChecks'
property :iap, as: 'iap', class: Google::Apis::ComputeBeta::BackendServiceIap, decorator: Google::Apis::ComputeBeta::BackendServiceIap::Representation
@ -4782,6 +4708,15 @@ module Google
end
end
class BackendServiceFailoverPolicy
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :disable_connection_drain_on_failover, as: 'disableConnectionDrainOnFailover'
property :drop_traffic_if_unhealthy, as: 'dropTrafficIfUnhealthy'
property :failover_ratio, as: 'failoverRatio'
end
end
class BackendServiceGroupHealth
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -4908,8 +4843,6 @@ module Google
class Commitment
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :allocations, as: 'allocations', class: Google::Apis::ComputeBeta::Allocation, decorator: Google::Apis::ComputeBeta::Allocation::Representation
property :creation_timestamp, as: 'creationTimestamp'
property :description, as: 'description'
property :end_timestamp, as: 'endTimestamp'
@ -4918,6 +4851,8 @@ module Google
property :name, as: 'name'
property :plan, as: 'plan'
property :region, as: 'region'
collection :reservations, as: 'reservations', class: Google::Apis::ComputeBeta::Reservation, decorator: Google::Apis::ComputeBeta::Reservation::Representation
collection :resources, as: 'resources', class: Google::Apis::ComputeBeta::ResourceCommitment, decorator: Google::Apis::ComputeBeta::ResourceCommitment::Representation
property :self_link, as: 'selfLink'
@ -6085,8 +6020,6 @@ module Google
class Instance
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :allocation_affinity, as: 'allocationAffinity', class: Google::Apis::ComputeBeta::AllocationAffinity, decorator: Google::Apis::ComputeBeta::AllocationAffinity::Representation
property :can_ip_forward, as: 'canIpForward'
property :cpu_platform, as: 'cpuPlatform'
property :creation_timestamp, as: 'creationTimestamp'
@ -6110,6 +6043,8 @@ module Google
property :name, as: 'name'
collection :network_interfaces, as: 'networkInterfaces', class: Google::Apis::ComputeBeta::NetworkInterface, decorator: Google::Apis::ComputeBeta::NetworkInterface::Representation
property :reservation_affinity, as: 'reservationAffinity', class: Google::Apis::ComputeBeta::ReservationAffinity, decorator: Google::Apis::ComputeBeta::ReservationAffinity::Representation
property :scheduling, as: 'scheduling', class: Google::Apis::ComputeBeta::Scheduling, decorator: Google::Apis::ComputeBeta::Scheduling::Representation
property :self_link, as: 'selfLink'
@ -6429,6 +6364,15 @@ module Google
end
end
class InstanceGroupManagersApplyUpdatesRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :instances, as: 'instances'
property :minimal_action, as: 'minimalAction'
property :most_disruptive_allowed_action, as: 'mostDisruptiveAllowedAction'
end
end
class InstanceGroupManagersDeleteInstancesRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -6678,8 +6622,6 @@ module Google
class InstanceProperties
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :allocation_affinity, as: 'allocationAffinity', class: Google::Apis::ComputeBeta::AllocationAffinity, decorator: Google::Apis::ComputeBeta::AllocationAffinity::Representation
property :can_ip_forward, as: 'canIpForward'
property :description, as: 'description'
collection :disks, as: 'disks', class: Google::Apis::ComputeBeta::AttachedDisk, decorator: Google::Apis::ComputeBeta::AttachedDisk::Representation
@ -6695,6 +6637,8 @@ module Google
property :min_cpu_platform, as: 'minCpuPlatform'
collection :network_interfaces, as: 'networkInterfaces', class: Google::Apis::ComputeBeta::NetworkInterface, decorator: Google::Apis::ComputeBeta::NetworkInterface::Representation
property :reservation_affinity, as: 'reservationAffinity', class: Google::Apis::ComputeBeta::ReservationAffinity, decorator: Google::Apis::ComputeBeta::ReservationAffinity::Representation
property :scheduling, as: 'scheduling', class: Google::Apis::ComputeBeta::Scheduling, decorator: Google::Apis::ComputeBeta::Scheduling::Representation
collection :service_accounts, as: 'serviceAccounts', class: Google::Apis::ComputeBeta::ServiceAccount, decorator: Google::Apis::ComputeBeta::ServiceAccount::Representation
@ -8559,10 +8503,10 @@ module Google
end
end
class RegionCommitmentsUpdateAllocationsRequest
class RegionCommitmentsUpdateReservationsRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :allocations, as: 'allocations', class: Google::Apis::ComputeBeta::Allocation, decorator: Google::Apis::ComputeBeta::Allocation::Representation
collection :reservations, as: 'reservations', class: Google::Apis::ComputeBeta::Reservation, decorator: Google::Apis::ComputeBeta::Reservation::Representation
end
end
@ -8691,6 +8635,15 @@ module Google
end
end
class RegionInstanceGroupManagersApplyUpdatesRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :instances, as: 'instances'
property :minimal_action, as: 'minimalAction'
property :most_disruptive_allowed_action, as: 'mostDisruptiveAllowedAction'
end
end
class RegionInstanceGroupManagersDeleteInstancesRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -8837,6 +8790,131 @@ module Google
end
end
class Reservation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :commitment, as: 'commitment'
property :creation_timestamp, as: 'creationTimestamp'
property :description, as: 'description'
property :id, :numeric_string => true, as: 'id'
property :kind, as: 'kind'
property :name, as: 'name'
property :self_link, as: 'selfLink'
property :specific_reservation, as: 'specificReservation', class: Google::Apis::ComputeBeta::AllocationSpecificSkuReservation, decorator: Google::Apis::ComputeBeta::AllocationSpecificSkuReservation::Representation
property :specific_reservation_required, as: 'specificReservationRequired'
property :zone, as: 'zone'
end
end
class ReservationAffinity
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :consume_reservation_type, as: 'consumeReservationType'
property :key, as: 'key'
collection :values, as: 'values'
end
end
class ReservationAggregatedList
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :id, as: 'id'
hash :items, as: 'items', class: Google::Apis::ComputeBeta::ReservationsScopedList, decorator: Google::Apis::ComputeBeta::ReservationsScopedList::Representation
property :kind, as: 'kind'
property :next_page_token, as: 'nextPageToken'
property :self_link, as: 'selfLink'
property :warning, as: 'warning', class: Google::Apis::ComputeBeta::ReservationAggregatedList::Warning, decorator: Google::Apis::ComputeBeta::ReservationAggregatedList::Warning::Representation
end
class Warning
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :code, as: 'code'
collection :data, as: 'data', class: Google::Apis::ComputeBeta::ReservationAggregatedList::Warning::Datum, decorator: Google::Apis::ComputeBeta::ReservationAggregatedList::Warning::Datum::Representation
property :message, as: 'message'
end
class Datum
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :key, as: 'key'
property :value, as: 'value'
end
end
end
end
class ReservationList
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :id, as: 'id'
collection :items, as: 'items', class: Google::Apis::ComputeBeta::Reservation, decorator: Google::Apis::ComputeBeta::Reservation::Representation
property :kind, as: 'kind'
property :next_page_token, as: 'nextPageToken'
property :self_link, as: 'selfLink'
property :warning, as: 'warning', class: Google::Apis::ComputeBeta::ReservationList::Warning, decorator: Google::Apis::ComputeBeta::ReservationList::Warning::Representation
end
class Warning
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :code, as: 'code'
collection :data, as: 'data', class: Google::Apis::ComputeBeta::ReservationList::Warning::Datum, decorator: Google::Apis::ComputeBeta::ReservationList::Warning::Datum::Representation
property :message, as: 'message'
end
class Datum
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :key, as: 'key'
property :value, as: 'value'
end
end
end
end
class ReservationsResizeRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :specific_sku_count, :numeric_string => true, as: 'specificSkuCount'
end
end
class ReservationsScopedList
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :reservations, as: 'reservations', class: Google::Apis::ComputeBeta::Reservation, decorator: Google::Apis::ComputeBeta::Reservation::Representation
property :warning, as: 'warning', class: Google::Apis::ComputeBeta::ReservationsScopedList::Warning, decorator: Google::Apis::ComputeBeta::ReservationsScopedList::Warning::Representation
end
class Warning
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :code, as: 'code'
collection :data, as: 'data', class: Google::Apis::ComputeBeta::ReservationsScopedList::Warning::Datum, decorator: Google::Apis::ComputeBeta::ReservationsScopedList::Warning::Datum::Representation
property :message, as: 'message'
end
class Datum
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :key, as: 'key'
property :value, as: 'value'
end
end
end
end
class ResourceCommitment
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -10937,6 +11015,43 @@ module Google
end
end
class VpnGatewayStatus
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :vpn_connections, as: 'vpnConnections', class: Google::Apis::ComputeBeta::VpnGatewayStatusVpnConnection, decorator: Google::Apis::ComputeBeta::VpnGatewayStatusVpnConnection::Representation
end
end
class VpnGatewayStatusHighAvailabilityRequirementState
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :state, as: 'state'
property :unsatisfied_reason, as: 'unsatisfiedReason'
end
end
class VpnGatewayStatusTunnel
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :local_gateway_interface, as: 'localGatewayInterface'
property :peer_gateway_interface, as: 'peerGatewayInterface'
property :tunnel_url, as: 'tunnelUrl'
end
end
class VpnGatewayStatusVpnConnection
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :peer_external_gateway, as: 'peerExternalGateway'
property :peer_gcp_gateway, as: 'peerGcpGateway'
property :state, as: 'state', class: Google::Apis::ComputeBeta::VpnGatewayStatusHighAvailabilityRequirementState, decorator: Google::Apis::ComputeBeta::VpnGatewayStatusHighAvailabilityRequirementState::Representation
collection :tunnels, as: 'tunnels', class: Google::Apis::ComputeBeta::VpnGatewayStatusTunnel, decorator: Google::Apis::ComputeBeta::VpnGatewayStatusTunnel::Representation
end
end
class VpnGatewayVpnGatewayInterface
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -10945,6 +11060,14 @@ module Google
end
end
class VpnGatewaysGetStatusResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :result, as: 'result', class: Google::Apis::ComputeBeta::VpnGatewayStatus, decorator: Google::Apis::ComputeBeta::VpnGatewayStatus::Representation
end
end
class VpnGatewaysScopedList
# @private
class Representation < Google::Apis::Core::JsonRepresentation

File diff suppressed because it is too large Load Diff

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/compute/docs/reference/latest/
module ComputeV1
VERSION = 'V1'
REVISION = '20190221'
REVISION = '20190308'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -7387,6 +7387,17 @@ module Google
# @return [Array<Google::Apis::ComputeV1::ServiceAccount>]
attr_accessor :service_accounts
# A set of Shielded Instance options.
# Corresponds to the JSON property `shieldedInstanceConfig`
# @return [Google::Apis::ComputeV1::ShieldedInstanceConfig]
attr_accessor :shielded_instance_config
# The policy describes the baseline against which Instance boot integrity is
# measured.
# Corresponds to the JSON property `shieldedInstanceIntegrityPolicy`
# @return [Google::Apis::ComputeV1::ShieldedInstanceIntegrityPolicy]
attr_accessor :shielded_instance_integrity_policy
# [Output Only] Whether a VM has been restricted for start because Compute
# Engine has detected suspicious activity.
# Corresponds to the JSON property `startRestricted`
@ -7444,6 +7455,8 @@ module Google
@scheduling = args[:scheduling] if args.key?(:scheduling)
@self_link = args[:self_link] if args.key?(:self_link)
@service_accounts = args[:service_accounts] if args.key?(:service_accounts)
@shielded_instance_config = args[:shielded_instance_config] if args.key?(:shielded_instance_config)
@shielded_instance_integrity_policy = args[:shielded_instance_integrity_policy] if args.key?(:shielded_instance_integrity_policy)
@start_restricted = args[:start_restricted] if args.key?(:start_restricted)
@status = args[:status] if args.key?(:status)
@status_message = args[:status_message] if args.key?(:status_message)
@ -18609,6 +18622,119 @@ module Google
end
end
# A set of Shielded Instance options.
class ShieldedInstanceConfig
include Google::Apis::Core::Hashable
# Defines whether the instance has integrity monitoring enabled.
# Corresponds to the JSON property `enableIntegrityMonitoring`
# @return [Boolean]
attr_accessor :enable_integrity_monitoring
alias_method :enable_integrity_monitoring?, :enable_integrity_monitoring
# Defines whether the instance has Secure Boot enabled.
# Corresponds to the JSON property `enableSecureBoot`
# @return [Boolean]
attr_accessor :enable_secure_boot
alias_method :enable_secure_boot?, :enable_secure_boot
# Defines whether the instance has the vTPM enabled.
# Corresponds to the JSON property `enableVtpm`
# @return [Boolean]
attr_accessor :enable_vtpm
alias_method :enable_vtpm?, :enable_vtpm
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@enable_integrity_monitoring = args[:enable_integrity_monitoring] if args.key?(:enable_integrity_monitoring)
@enable_secure_boot = args[:enable_secure_boot] if args.key?(:enable_secure_boot)
@enable_vtpm = args[:enable_vtpm] if args.key?(:enable_vtpm)
end
end
# A shielded Instance identity entry.
class ShieldedInstanceIdentity
include Google::Apis::Core::Hashable
# A Shielded Instance Identity Entry.
# Corresponds to the JSON property `encryptionKey`
# @return [Google::Apis::ComputeV1::ShieldedInstanceIdentityEntry]
attr_accessor :encryption_key
# [Output Only] Type of the resource. Always compute#shieldedInstanceIdentity
# for shielded Instance identity entry.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# A Shielded Instance Identity Entry.
# Corresponds to the JSON property `signingKey`
# @return [Google::Apis::ComputeV1::ShieldedInstanceIdentityEntry]
attr_accessor :signing_key
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@encryption_key = args[:encryption_key] if args.key?(:encryption_key)
@kind = args[:kind] if args.key?(:kind)
@signing_key = args[:signing_key] if args.key?(:signing_key)
end
end
# A Shielded Instance Identity Entry.
class ShieldedInstanceIdentityEntry
include Google::Apis::Core::Hashable
# A PEM-encoded X.509 certificate. This field can be empty.
# Corresponds to the JSON property `ekCert`
# @return [String]
attr_accessor :ek_cert
# A PEM-encoded public key.
# Corresponds to the JSON property `ekPub`
# @return [String]
attr_accessor :ek_pub
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@ek_cert = args[:ek_cert] if args.key?(:ek_cert)
@ek_pub = args[:ek_pub] if args.key?(:ek_pub)
end
end
# The policy describes the baseline against which Instance boot integrity is
# measured.
class ShieldedInstanceIntegrityPolicy
include Google::Apis::Core::Hashable
# Updates the integrity policy baseline using the measurements from the VM
# instance's most recent boot.
# Corresponds to the JSON property `updateAutoLearnPolicy`
# @return [Boolean]
attr_accessor :update_auto_learn_policy
alias_method :update_auto_learn_policy?, :update_auto_learn_policy
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@update_auto_learn_policy = args[:update_auto_learn_policy] if args.key?(:update_auto_learn_policy)
end
end
# Represents a customer-supplied Signing Key used by Cloud CDN Signed URLs
class SignedUrlKey
include Google::Apis::Core::Hashable

View File

@ -2536,6 +2536,30 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class ShieldedInstanceConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ShieldedInstanceIdentity
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ShieldedInstanceIdentityEntry
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ShieldedInstanceIntegrityPolicy
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SignedUrlKey
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -5092,6 +5116,10 @@ module Google
property :self_link, as: 'selfLink'
collection :service_accounts, as: 'serviceAccounts', class: Google::Apis::ComputeV1::ServiceAccount, decorator: Google::Apis::ComputeV1::ServiceAccount::Representation
property :shielded_instance_config, as: 'shieldedInstanceConfig', class: Google::Apis::ComputeV1::ShieldedInstanceConfig, decorator: Google::Apis::ComputeV1::ShieldedInstanceConfig::Representation
property :shielded_instance_integrity_policy, as: 'shieldedInstanceIntegrityPolicy', class: Google::Apis::ComputeV1::ShieldedInstanceIntegrityPolicy, decorator: Google::Apis::ComputeV1::ShieldedInstanceIntegrityPolicy::Representation
property :start_restricted, as: 'startRestricted'
property :status, as: 'status'
property :status_message, as: 'statusMessage'
@ -7989,6 +8017,41 @@ module Google
end
end
class ShieldedInstanceConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :enable_integrity_monitoring, as: 'enableIntegrityMonitoring'
property :enable_secure_boot, as: 'enableSecureBoot'
property :enable_vtpm, as: 'enableVtpm'
end
end
class ShieldedInstanceIdentity
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :encryption_key, as: 'encryptionKey', class: Google::Apis::ComputeV1::ShieldedInstanceIdentityEntry, decorator: Google::Apis::ComputeV1::ShieldedInstanceIdentityEntry::Representation
property :kind, as: 'kind'
property :signing_key, as: 'signingKey', class: Google::Apis::ComputeV1::ShieldedInstanceIdentityEntry, decorator: Google::Apis::ComputeV1::ShieldedInstanceIdentityEntry::Representation
end
end
class ShieldedInstanceIdentityEntry
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :ek_cert, as: 'ekCert'
property :ek_pub, as: 'ekPub'
end
end
class ShieldedInstanceIntegrityPolicy
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :update_auto_learn_policy, as: 'updateAutoLearnPolicy'
end
end
class SignedUrlKey
# @private
class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -7572,6 +7572,45 @@ module Google
execute_or_queue_command(command, &block)
end
# Returns the Shielded Instance Identity of an instance
# @param [String] project
# Project ID for this request.
# @param [String] zone
# The name of the zone for this request.
# @param [String] instance
# Name or id of the instance scoping this request.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ComputeV1::ShieldedInstanceIdentity] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeV1::ShieldedInstanceIdentity]
#
# @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_instance_shielded_instance_identity(project, zone, instance, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{project}/zones/{zone}/instances/{instance}/getShieldedInstanceIdentity', options)
command.response_representation = Google::Apis::ComputeV1::ShieldedInstanceIdentity::Representation
command.response_class = Google::Apis::ComputeV1::ShieldedInstanceIdentity
command.params['project'] = project unless project.nil?
command.params['zone'] = zone unless zone.nil?
command.params['instance'] = instance unless instance.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Creates an instance resource in the specified project using the data included
# in the request.
# @param [String] project
@ -8377,6 +8416,62 @@ module Google
execute_or_queue_command(command, &block)
end
# Sets the Shielded Instance integrity policy for an instance. You can only use
# this method on a running instance. This method supports PATCH semantics and
# uses the JSON merge patch format and processing rules.
# @param [String] project
# Project ID for this request.
# @param [String] zone
# The name of the zone for this request.
# @param [String] instance
# Name or id of the instance scoping this request.
# @param [Google::Apis::ComputeV1::ShieldedInstanceIntegrityPolicy] shielded_instance_integrity_policy_object
# @param [String] request_id
# An optional request ID to identify requests. Specify a unique request ID so
# that if you must retry your request, the server will know to ignore the
# request if it has already been completed.
# For example, consider a situation where you make an initial request and the
# request times out. If you make the request again with the same request ID, the
# server can check if original operation with the same request ID was received,
# and if so, will ignore the second request. This prevents clients from
# accidentally creating duplicate commitments.
# The request ID must be a valid UUID with the exception that zero UUID is not
# supported (00000000-0000-0000-0000-000000000000).
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeV1::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 set_instance_shielded_instance_integrity_policy(project, zone, instance, shielded_instance_integrity_policy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:patch, '{project}/zones/{zone}/instances/{instance}/setShieldedInstanceIntegrityPolicy', options)
command.request_representation = Google::Apis::ComputeV1::ShieldedInstanceIntegrityPolicy::Representation
command.request_object = shielded_instance_integrity_policy_object
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
command.response_class = Google::Apis::ComputeV1::Operation
command.params['project'] = project unless project.nil?
command.params['zone'] = zone unless zone.nil?
command.params['instance'] = instance unless instance.nil?
command.query['requestId'] = request_id unless request_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Sets network tags for the specified instance to the data included in the
# request.
# @param [String] project
@ -8791,6 +8886,62 @@ module Google
execute_or_queue_command(command, &block)
end
# Updates the Shielded Instance config for an instance. You can only use this
# method on a stopped instance. This method supports PATCH semantics and uses
# the JSON merge patch format and processing rules.
# @param [String] project
# Project ID for this request.
# @param [String] zone
# The name of the zone for this request.
# @param [String] instance
# Name or id of the instance scoping this request.
# @param [Google::Apis::ComputeV1::ShieldedInstanceConfig] shielded_instance_config_object
# @param [String] request_id
# An optional request ID to identify requests. Specify a unique request ID so
# that if you must retry your request, the server will know to ignore the
# request if it has already been completed.
# For example, consider a situation where you make an initial request and the
# request times out. If you make the request again with the same request ID, the
# server can check if original operation with the same request ID was received,
# and if so, will ignore the second request. This prevents clients from
# accidentally creating duplicate commitments.
# The request ID must be a valid UUID with the exception that zero UUID is not
# supported (00000000-0000-0000-0000-000000000000).
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeV1::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 update_instance_shielded_instance_config(project, zone, instance, shielded_instance_config_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:patch, '{project}/zones/{zone}/instances/{instance}/updateShieldedInstanceConfig', options)
command.request_representation = Google::Apis::ComputeV1::ShieldedInstanceConfig::Representation
command.request_object = shielded_instance_config_object
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
command.response_class = Google::Apis::ComputeV1::Operation
command.params['project'] = project unless project.nil?
command.params['zone'] = zone unless zone.nil?
command.params['instance'] = instance unless instance.nil?
command.query['requestId'] = request_id unless request_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Retrieves an aggregated list of interconnect attachments.
# @param [String] project
# Project ID for this request.

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/dataproc/
module DataprocV1beta2
VERSION = 'V1beta2'
REVISION = '20190301'
REVISION = '20190313'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -54,37 +54,6 @@ module Google
end
end
# Allocation Affinity for consuming Zonal allocation.
class AllocationAffinity
include Google::Apis::Core::Hashable
#
# Corresponds to the JSON property `consumeAllocationType`
# @return [String]
attr_accessor :consume_allocation_type
# Corresponds to the label key of Allocation resource.
# Corresponds to the JSON property `key`
# @return [String]
attr_accessor :key
# Corresponds to the label values of allocation resource.
# Corresponds to the JSON property `values`
# @return [Array<String>]
attr_accessor :values
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@consume_allocation_type = args[:consume_allocation_type] if args.key?(:consume_allocation_type)
@key = args[:key] if args.key?(:key)
@values = args[:values] if args.key?(:values)
end
end
# Autoscaling Policy config associated with the cluster.
class AutoscalingConfig
include Google::Apis::Core::Hashable
@ -418,8 +387,8 @@ module Google
# default, executables are run on master and all worker nodes. You can test a
# node's <code>role</code> metadata to run an executable on a master or worker
# node, as shown below using curl (you can also use wget):
# ROLE=$(curl -H Metadata-Flavor:Google http://metadata/computeMetadata/v1beta2/
# instance/attributes/dataproc-role)
# ROLE=$(curl -H Metadata-Flavor:Google
# http://metadata/computeMetadata/v1beta2/instance/attributes/dataproc-role)
# if [[ "$`ROLE`" == 'Master' ]]; then
# ... master specific actions ...
# else
@ -892,11 +861,6 @@ module Google
class GceClusterConfig
include Google::Apis::Core::Hashable
# Allocation Affinity for consuming Zonal allocation.
# Corresponds to the JSON property `allocationAffinity`
# @return [Google::Apis::DataprocV1beta2::AllocationAffinity]
attr_accessor :allocation_affinity
# Optional. If true, all instances in the cluster will only have internal IP
# addresses. By default, clusters are not restricted to internal IP addresses,
# and will have ephemeral external IP addresses assigned to each instance. This
@ -928,6 +892,11 @@ module Google
# @return [String]
attr_accessor :network_uri
# Reservation Affinity for consuming Zonal reservation.
# Corresponds to the JSON property `reservationAffinity`
# @return [Google::Apis::DataprocV1beta2::ReservationAffinity]
attr_accessor :reservation_affinity
# Optional. The service account of the instances. Defaults to the default
# Compute Engine service account. Custom service accounts need permissions
# equivalent to the following IAM roles:
@ -987,10 +956,10 @@ module Google
# Update properties of this object
def update!(**args)
@allocation_affinity = args[:allocation_affinity] if args.key?(:allocation_affinity)
@internal_ip_only = args[:internal_ip_only] if args.key?(:internal_ip_only)
@metadata = args[:metadata] if args.key?(:metadata)
@network_uri = args[:network_uri] if args.key?(:network_uri)
@reservation_affinity = args[:reservation_affinity] if args.key?(:reservation_affinity)
@service_account = args[:service_account] if args.key?(:service_account)
@service_account_scopes = args[:service_account_scopes] if args.key?(:service_account_scopes)
@subnetwork_uri = args[:subnetwork_uri] if args.key?(:subnetwork_uri)
@ -1154,9 +1123,10 @@ module Google
include Google::Apis::Core::Hashable
# Optional. Maximum number of instances for this group. Required for primary
# workers. Note that by default, clusters will not use secondary workers.Primary
# workers - Bounds: [min_instances, ). Secondary workers - Bounds: [
# min_instances, ). Default: 0.
# workers. Note that by default, clusters will not use secondary workers.
# Required for secondary workers if the minimum secondary instances is set.
# Primary workers - Bounds: [min_instances, ). Required. Secondary workers -
# Bounds: [min_instances, ). Default: 0.
# Corresponds to the JSON property `maxInstances`
# @return [Fixnum]
attr_accessor :max_instances
@ -1168,17 +1138,7 @@ module Google
# @return [Fixnum]
attr_accessor :min_instances
# Optional. Weight for instance group. Determines fraction of total workers in
# cluster that will be composed of instances from this instance group (e.g. if
# primary workers have weight 2 and secondary workers have weight 1, then the
# cluster should have approximately 2 primary workers to each secondary worker.
# Cluster may not reach these exact weights if constrained by min/max bounds or
# other autoscaling configurations.Note that all groups have an equal weight by
# default, so the cluster will attempt to maintain an equal number of workers in
# each group within configured size bounds per group. The cluster may not reach
# this balance of weights if not allowed by worker-count bounds. For example, if
# max_instances for secondary workers is 0, only primary workers will be added.
# The cluster can also be out of balance when created.Default: 1.
#
# Corresponds to the JSON property `weight`
# @return [Fixnum]
attr_accessor :weight
@ -2511,6 +2471,37 @@ module Google
end
end
# Reservation Affinity for consuming Zonal reservation.
class ReservationAffinity
include Google::Apis::Core::Hashable
# Optional. Type of reservation to consume
# Corresponds to the JSON property `consumeReservationType`
# @return [String]
attr_accessor :consume_reservation_type
# Optional. Corresponds to the label key of reservation resource.
# Corresponds to the JSON property `key`
# @return [String]
attr_accessor :key
# Optional. Corresponds to the label values of reservation resource.
# Corresponds to the JSON property `values`
# @return [Array<String>]
attr_accessor :values
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@consume_reservation_type = args[:consume_reservation_type] if args.key?(:consume_reservation_type)
@key = args[:key] if args.key?(:key)
@values = args[:values] if args.key?(:values)
end
end
# Security related configuration, including encryption, Kerberos, etc.
class SecurityConfig
include Google::Apis::Core::Hashable

View File

@ -28,12 +28,6 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class AllocationAffinity
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AutoscalingConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -352,6 +346,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class ReservationAffinity
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SecurityConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -468,15 +468,6 @@ module Google
end
end
class AllocationAffinity
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :consume_allocation_type, as: 'consumeAllocationType'
property :key, as: 'key'
collection :values, as: 'values'
end
end
class AutoscalingConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -698,11 +689,11 @@ module Google
class GceClusterConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :allocation_affinity, as: 'allocationAffinity', class: Google::Apis::DataprocV1beta2::AllocationAffinity, decorator: Google::Apis::DataprocV1beta2::AllocationAffinity::Representation
property :internal_ip_only, as: 'internalIpOnly'
hash :metadata, as: 'metadata'
property :network_uri, as: 'networkUri'
property :reservation_affinity, as: 'reservationAffinity', class: Google::Apis::DataprocV1beta2::ReservationAffinity, decorator: Google::Apis::DataprocV1beta2::ReservationAffinity::Representation
property :service_account, as: 'serviceAccount'
collection :service_account_scopes, as: 'serviceAccountScopes'
property :subnetwork_uri, as: 'subnetworkUri'
@ -1075,6 +1066,15 @@ module Google
end
end
class ReservationAffinity
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :consume_reservation_type, as: 'consumeReservationType'
property :key, as: 'key'
collection :values, as: 'values'
end
end
class SecurityConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -1306,22 +1306,24 @@ module Google
# <td>labels</td><td>Updates labels</td>
# </tr>
# <tr>
# <td>config.worker_config.num_instances</td><td>Resize primary worker group</td>
# <td>config.worker_config.num_instances</td><td>Resize primary worker
# group</td>
# </tr>
# <tr>
# <td>config.secondary_worker_config.num_instances</td><td>Resize secondary
# worker group</td>
# </tr>
# <tr>
# <td>config.lifecycle_config.auto_delete_ttl</td><td>Reset MAX TTL duration</td>
# <td>config.lifecycle_config.auto_delete_ttl</td><td>Reset MAX TTL
# duration</td>
# </tr>
# <tr>
# <td>config.lifecycle_config.auto_delete_time</td><td>Update MAX TTL deletion
# timestamp</td>
# <td>config.lifecycle_config.auto_delete_time</td><td>Update MAX TTL
# deletion timestamp</td>
# </tr>
# <tr>
# <td>config.lifecycle_config.idle_delete_ttl</td><td>Update Idle TTL duration</
# td>
# <td>config.lifecycle_config.idle_delete_ttl</td><td>Update Idle TTL
# duration</td>
# </tr>
# <tr>
# <td>config.autoscaling_config.policy_uri</td><td>Use, stop using, or change

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/dialogflow-enterprise/
module DialogflowV2
VERSION = 'V2'
REVISION = '20190311'
REVISION = '20190318'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -28,7 +28,10 @@ module Google
# Optional. The URI of the agent's avatar.
# Avatars are used throughout the Dialogflow console and in the self-hosted
# [Web Demo](https://dialogflow.com/docs/integrations/web-demo) integration.
# [Web
# Demo](https://cloud.google.com/dialogflow-enterprise/docs/integrations/web-
# demo)
# integration.
# Corresponds to the JSON property `avatarUri`
# @return [String]
attr_accessor :avatar_uri
@ -45,9 +48,11 @@ module Google
attr_accessor :classification_threshold
# Required. The default language of the agent as a language tag. See
# [Language Support](https://dialogflow.com/docs/reference/language) for a
# list of the currently supported language codes.
# This field cannot be set by the `Update` method.
# [Language
# Support](https://cloud.google.com/dialogflow-enterprise/docs/reference/
# language)
# for a list of the currently supported language codes. This field cannot be
# set by the `Update` method.
# Corresponds to the JSON property `defaultLanguageCode`
# @return [String]
attr_accessor :default_language_code
@ -123,9 +128,11 @@ module Google
# Optional. The language of entity synonyms defined in `entities`. If not
# specified, the agent's default language is used.
# [More than a dozen
# languages](https://dialogflow.com/docs/reference/language) are supported.
# Note: languages must be enabled in the agent, before they can be used.
# [Many
# languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/
# language)
# are supported. Note: languages must be enabled in the agent before they can
# be used.
# Corresponds to the JSON property `languageCode`
# @return [String]
attr_accessor :language_code
@ -154,9 +161,11 @@ module Google
# Optional. The language of entity synonyms defined in `entities`. If not
# specified, the agent's default language is used.
# [More than a dozen
# languages](https://dialogflow.com/docs/reference/language) are supported.
# Note: languages must be enabled in the agent, before they can be used.
# [Many
# languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/
# language)
# are supported. Note: languages must be enabled in the agent before they can
# be used.
# Corresponds to the JSON property `languageCode`
# @return [String]
attr_accessor :language_code
@ -223,9 +232,11 @@ module Google
# Optional. The language of entity synonyms defined in `entities`. If not
# specified, the agent's default language is used.
# [More than a dozen
# languages](https://dialogflow.com/docs/reference/language) are supported.
# Note: languages must be enabled in the agent, before they can be used.
# [Many
# languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/
# language)
# are supported. Note: languages must be enabled in the agent before they can
# be used.
# Corresponds to the JSON property `languageCode`
# @return [String]
attr_accessor :language_code
@ -266,9 +277,11 @@ module Google
# Optional. The language of entity synonyms defined in `entity_types`. If not
# specified, the agent's default language is used.
# [More than a dozen
# languages](https://dialogflow.com/docs/reference/language) are supported.
# Note: languages must be enabled in the agent, before they can be used.
# [Many
# languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/
# language)
# are supported. Note: languages must be enabled in the agent before they can
# be used.
# Corresponds to the JSON property `languageCode`
# @return [String]
attr_accessor :language_code
@ -333,9 +346,11 @@ module Google
# Optional. The language of training phrases, parameters and rich messages
# defined in `intents`. If not specified, the agent's default language is
# used. [More than a dozen
# languages](https://dialogflow.com/docs/reference/language) are supported.
# Note: languages must be enabled in the agent, before they can be used.
# used. [Many
# languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/
# language)
# are supported. Note: languages must be enabled in the agent before they can
# be used.
# Corresponds to the JSON property `languageCode`
# @return [String]
attr_accessor :language_code
@ -399,8 +414,10 @@ module Google
attr_accessor :name
# Optional. The collection of parameters associated with this context.
# Refer to [this doc](https://dialogflow.com/docs/actions-and-parameters) for
# syntax.
# Refer to [this
# doc](https://cloud.google.com/dialogflow-enterprise/docs/intents-actions-
# parameters)
# for syntax.
# Corresponds to the JSON property `parameters`
# @return [Hash<String,Object>]
attr_accessor :parameters
@ -638,9 +655,10 @@ module Google
include Google::Apis::Core::Hashable
# Required. The language of this query. See [Language
# Support](https://dialogflow.com/docs/languages) for a list of the
# currently supported language codes. Note that queries in the same session
# do not necessarily need to specify the same language.
# Support](https://cloud.google.com/dialogflow-enterprise/docs/reference/
# language)
# for a list of the currently supported language codes. Note that queries in
# the same session do not necessarily need to specify the same language.
# Corresponds to the JSON property `languageCode`
# @return [String]
attr_accessor :language_code
@ -781,9 +799,10 @@ module Google
# Required. The language of the supplied audio. Dialogflow does not do
# translations. See [Language
# Support](https://dialogflow.com/docs/languages) for a list of the
# currently supported language codes. Note that queries in the same session
# do not necessarily need to specify the same language.
# Support](https://cloud.google.com/dialogflow-enterprise/docs/reference/
# languages)
# for a list of the currently supported language codes. Note that queries in
# the same session do not necessarily need to specify the same language.
# Corresponds to the JSON property `languageCode`
# @return [String]
attr_accessor :language_code
@ -2084,7 +2103,9 @@ module Google
attr_accessor :intent_detection_confidence
# The language that was triggered during intent detection.
# See [Language Support](https://dialogflow.com/docs/reference/language)
# See [Language
# Support](https://cloud.google.com/dialogflow-enterprise/docs/reference/
# language)
# for a list of the currently supported language codes.
# Corresponds to the JSON property `languageCode`
# @return [String]
@ -2274,9 +2295,10 @@ module Google
include Google::Apis::Core::Hashable
# Required. The language of this conversational query. See [Language
# Support](https://dialogflow.com/docs/languages) for a list of the
# currently supported language codes. Note that queries in the same session
# do not necessarily need to specify the same language.
# Support](https://cloud.google.com/dialogflow-enterprise/docs/reference/
# language)
# for a list of the currently supported language codes. Note that queries in
# the same session do not necessarily need to specify the same language.
# Corresponds to the JSON property `languageCode`
# @return [String]
attr_accessor :language_code
@ -2494,8 +2516,10 @@ module Google
attr_accessor :name
# Optional. The collection of parameters associated with this context.
# Refer to [this doc](https://dialogflow.com/docs/actions-and-parameters) for
# syntax.
# Refer to [this
# doc](https://cloud.google.com/dialogflow-enterprise/docs/intents-actions-
# parameters)
# for syntax.
# Corresponds to the JSON property `parameters`
# @return [Hash<String,Object>]
attr_accessor :parameters
@ -2606,9 +2630,10 @@ module Google
include Google::Apis::Core::Hashable
# Required. The language of this query. See [Language
# Support](https://dialogflow.com/docs/languages) for a list of the
# currently supported language codes. Note that queries in the same session
# do not necessarily need to specify the same language.
# Support](https://cloud.google.com/dialogflow-enterprise/docs/reference/
# language)
# for a list of the currently supported language codes. Note that queries in
# the same session do not necessarily need to specify the same language.
# Corresponds to the JSON property `languageCode`
# @return [String]
attr_accessor :language_code
@ -3940,7 +3965,9 @@ module Google
attr_accessor :knowledge_answers
# The language that was triggered during intent detection.
# See [Language Support](https://dialogflow.com/docs/reference/language)
# See [Language
# Support](https://cloud.google.com/dialogflow-enterprise/docs/reference/
# language)
# for a list of the currently supported language codes.
# Corresponds to the JSON property `languageCode`
# @return [String]

View File

@ -346,9 +346,11 @@ module Google
# @param [String] language_code
# Optional. The language of entity synonyms defined in `entity_type`. If not
# specified, the agent's default language is used.
# [More than a dozen
# languages](https://dialogflow.com/docs/reference/language) are supported.
# Note: languages must be enabled in the agent, before they can be used.
# [Many
# languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/
# language)
# are supported. Note: languages must be enabled in the agent before they can
# be used.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -417,9 +419,11 @@ module Google
# @param [String] language_code
# Optional. The language to retrieve entity synonyms for. If not specified,
# the agent's default language is used.
# [More than a dozen
# languages](https://dialogflow.com/docs/reference/language) are supported.
# Note: languages must be enabled in the agent, before they can be used.
# [Many
# languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/
# language)
# are supported. Note: languages must be enabled in the agent before they can
# be used.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -455,9 +459,11 @@ module Google
# @param [String] language_code
# Optional. The language to list entity synonyms for. If not specified,
# the agent's default language is used.
# [More than a dozen
# languages](https://dialogflow.com/docs/reference/language) are supported.
# Note: languages must be enabled in the agent, before they can be used.
# [Many
# languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/
# language)
# are supported. Note: languages must be enabled in the agent before they can
# be used.
# @param [Fixnum] page_size
# Optional. The maximum number of items to return in a single page. By
# default 100 and at most 1000.
@ -503,9 +509,11 @@ module Google
# @param [String] language_code
# Optional. The language of entity synonyms defined in `entity_type`. If not
# specified, the agent's default language is used.
# [More than a dozen
# languages](https://dialogflow.com/docs/reference/language) are supported.
# Note: languages must be enabled in the agent, before they can be used.
# [Many
# languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/
# language)
# are supported. Note: languages must be enabled in the agent before they can
# be used.
# @param [String] update_mask
# Optional. The mask to control which fields get updated.
# @param [String] fields
@ -726,9 +734,11 @@ module Google
# @param [String] language_code
# Optional. The language of training phrases, parameters and rich messages
# defined in `intent`. If not specified, the agent's default language is
# used. [More than a dozen
# languages](https://dialogflow.com/docs/reference/language) are supported.
# Note: languages must be enabled in the agent, before they can be used.
# used. [Many
# languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/
# language)
# are supported. Note: languages must be enabled in the agent before they can
# be used.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -801,9 +811,11 @@ module Google
# @param [String] language_code
# Optional. The language to retrieve training phrases, parameters and rich
# messages for. If not specified, the agent's default language is used.
# [More than a dozen
# languages](https://dialogflow.com/docs/reference/language) are supported.
# Note: languages must be enabled in the agent, before they can be used.
# [Many
# languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/
# language)
# are supported. Note: languages must be enabled in the agent before they can
# be used.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -842,9 +854,11 @@ module Google
# @param [String] language_code
# Optional. The language to list training phrases, parameters and rich
# messages for. If not specified, the agent's default language is used.
# [More than a dozen
# languages](https://dialogflow.com/docs/reference/language) are supported.
# Note: languages must be enabled in the agent before they can be used.
# [Many
# languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/
# language)
# are supported. Note: languages must be enabled in the agent before they can
# be used.
# @param [Fixnum] page_size
# Optional. The maximum number of items to return in a single page. By
# default 100 and at most 1000.
@ -893,9 +907,11 @@ module Google
# @param [String] language_code
# Optional. The language of training phrases, parameters and rich messages
# defined in `intent`. If not specified, the agent's default language is
# used. [More than a dozen
# languages](https://dialogflow.com/docs/reference/language) are supported.
# Note: languages must be enabled in the agent, before they can be used.
# used. [Many
# languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/
# language)
# are supported. Note: languages must be enabled in the agent before they can
# be used.
# @param [String] update_mask
# Optional. The mask to control which fields get updated.
# @param [String] fields

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/dialogflow-enterprise/
module DialogflowV2beta1
VERSION = 'V2beta1'
REVISION = '20190311'
REVISION = '20190318'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -81,8 +81,10 @@ module Google
attr_accessor :name
# Optional. The collection of parameters associated with this context.
# Refer to [this doc](https://dialogflow.com/docs/actions-and-parameters) for
# syntax.
# Refer to [this
# doc](https://cloud.google.com/dialogflow-enterprise/docs/intents-actions-
# parameters)
# for syntax.
# Corresponds to the JSON property `parameters`
# @return [Hash<String,Object>]
attr_accessor :parameters
@ -193,9 +195,10 @@ module Google
include Google::Apis::Core::Hashable
# Required. The language of this query. See [Language
# Support](https://dialogflow.com/docs/languages) for a list of the
# currently supported language codes. Note that queries in the same session
# do not necessarily need to specify the same language.
# Support](https://cloud.google.com/dialogflow-enterprise/docs/reference/
# language)
# for a list of the currently supported language codes. Note that queries in
# the same session do not necessarily need to specify the same language.
# Corresponds to the JSON property `languageCode`
# @return [String]
attr_accessor :language_code
@ -1297,7 +1300,9 @@ module Google
attr_accessor :intent_detection_confidence
# The language that was triggered during intent detection.
# See [Language Support](https://dialogflow.com/docs/reference/language)
# See [Language
# Support](https://cloud.google.com/dialogflow-enterprise/docs/reference/
# language)
# for a list of the currently supported language codes.
# Corresponds to the JSON property `languageCode`
# @return [String]
@ -1500,7 +1505,10 @@ module Google
# Optional. The URI of the agent's avatar.
# Avatars are used throughout the Dialogflow console and in the self-hosted
# [Web Demo](https://dialogflow.com/docs/integrations/web-demo) integration.
# [Web
# Demo](https://cloud.google.com/dialogflow-enterprise/docs/integrations/web-
# demo)
# integration.
# Corresponds to the JSON property `avatarUri`
# @return [String]
attr_accessor :avatar_uri
@ -1517,9 +1525,11 @@ module Google
attr_accessor :classification_threshold
# Required. The default language of the agent as a language tag. See
# [Language Support](https://dialogflow.com/docs/reference/language) for a
# list of the currently supported language codes.
# This field cannot be set by the `Update` method.
# [Language
# Support](https://cloud.google.com/dialogflow-enterprise/docs/reference/
# language)
# for a list of the currently supported language codes. This field cannot be
# set by the `Update` method.
# Corresponds to the JSON property `defaultLanguageCode`
# @return [String]
attr_accessor :default_language_code
@ -1595,9 +1605,11 @@ module Google
# Optional. The language of entity synonyms defined in `entities`. If not
# specified, the agent's default language is used.
# [More than a dozen
# languages](https://dialogflow.com/docs/reference/language) are supported.
# Note: languages must be enabled in the agent, before they can be used.
# [Many
# languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/
# language)
# are supported. Note: languages must be enabled in the agent before they can
# be used.
# Corresponds to the JSON property `languageCode`
# @return [String]
attr_accessor :language_code
@ -1626,9 +1638,11 @@ module Google
# Optional. The language of entity synonyms defined in `entities`. If not
# specified, the agent's default language is used.
# [More than a dozen
# languages](https://dialogflow.com/docs/reference/language) are supported.
# Note: languages must be enabled in the agent, before they can be used.
# [Many
# languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/
# language)
# are supported. Note: languages must be enabled in the agent before they can
# be used.
# Corresponds to the JSON property `languageCode`
# @return [String]
attr_accessor :language_code
@ -1695,9 +1709,11 @@ module Google
# Optional. The language of entity synonyms defined in `entities`. If not
# specified, the agent's default language is used.
# [More than a dozen
# languages](https://dialogflow.com/docs/reference/language) are supported.
# Note: languages must be enabled in the agent, before they can be used.
# [Many
# languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/
# language)
# are supported. Note: languages must be enabled in the agent before they can
# be used.
# Corresponds to the JSON property `languageCode`
# @return [String]
attr_accessor :language_code
@ -1738,9 +1754,11 @@ module Google
# Optional. The language of entity synonyms defined in `entity_types`. If not
# specified, the agent's default language is used.
# [More than a dozen
# languages](https://dialogflow.com/docs/reference/language) are supported.
# Note: languages must be enabled in the agent, before they can be used.
# [Many
# languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/
# language)
# are supported. Note: languages must be enabled in the agent before they can
# be used.
# Corresponds to the JSON property `languageCode`
# @return [String]
attr_accessor :language_code
@ -1805,9 +1823,11 @@ module Google
# Optional. The language of training phrases, parameters and rich messages
# defined in `intents`. If not specified, the agent's default language is
# used. [More than a dozen
# languages](https://dialogflow.com/docs/reference/language) are supported.
# Note: languages must be enabled in the agent, before they can be used.
# used. [Many
# languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/
# language)
# are supported. Note: languages must be enabled in the agent before they can
# be used.
# Corresponds to the JSON property `languageCode`
# @return [String]
attr_accessor :language_code
@ -1875,8 +1895,10 @@ module Google
attr_accessor :name
# Optional. The collection of parameters associated with this context.
# Refer to [this doc](https://dialogflow.com/docs/actions-and-parameters) for
# syntax.
# Refer to [this
# doc](https://cloud.google.com/dialogflow-enterprise/docs/intents-actions-
# parameters)
# for syntax.
# Corresponds to the JSON property `parameters`
# @return [Hash<String,Object>]
attr_accessor :parameters
@ -2223,9 +2245,10 @@ module Google
include Google::Apis::Core::Hashable
# Required. The language of this query. See [Language
# Support](https://dialogflow.com/docs/languages) for a list of the
# currently supported language codes. Note that queries in the same session
# do not necessarily need to specify the same language.
# Support](https://cloud.google.com/dialogflow-enterprise/docs/reference/
# language)
# for a list of the currently supported language codes. Note that queries in
# the same session do not necessarily need to specify the same language.
# Corresponds to the JSON property `languageCode`
# @return [String]
attr_accessor :language_code
@ -2366,9 +2389,10 @@ module Google
# Required. The language of the supplied audio. Dialogflow does not do
# translations. See [Language
# Support](https://dialogflow.com/docs/languages) for a list of the
# currently supported language codes. Note that queries in the same session
# do not necessarily need to specify the same language.
# Support](https://cloud.google.com/dialogflow-enterprise/docs/reference/
# language)
# for a list of the currently supported language codes. Note that queries in
# the same session do not necessarily need to specify the same language.
# Corresponds to the JSON property `languageCode`
# @return [String]
attr_accessor :language_code
@ -4047,7 +4071,9 @@ module Google
attr_accessor :knowledge_answers
# The language that was triggered during intent detection.
# See [Language Support](https://dialogflow.com/docs/reference/language)
# See [Language
# Support](https://cloud.google.com/dialogflow-enterprise/docs/reference/
# language)
# for a list of the currently supported language codes.
# Corresponds to the JSON property `languageCode`
# @return [String]
@ -4390,9 +4416,10 @@ module Google
include Google::Apis::Core::Hashable
# Required. The language of this conversational query. See [Language
# Support](https://dialogflow.com/docs/languages) for a list of the
# currently supported language codes. Note that queries in the same session
# do not necessarily need to specify the same language.
# Support](https://cloud.google.com/dialogflow-enterprise/docs/reference/
# language)
# for a list of the currently supported language codes. Note that queries in
# the same session do not necessarily need to specify the same language.
# Corresponds to the JSON property `languageCode`
# @return [String]
attr_accessor :language_code

View File

@ -346,9 +346,11 @@ module Google
# @param [String] language_code
# Optional. The language of entity synonyms defined in `entity_type`. If not
# specified, the agent's default language is used.
# [More than a dozen
# languages](https://dialogflow.com/docs/reference/language) are supported.
# Note: languages must be enabled in the agent, before they can be used.
# [Many
# languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/
# language)
# are supported. Note: languages must be enabled in the agent before they can
# be used.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -417,9 +419,11 @@ module Google
# @param [String] language_code
# Optional. The language to retrieve entity synonyms for. If not specified,
# the agent's default language is used.
# [More than a dozen
# languages](https://dialogflow.com/docs/reference/language) are supported.
# Note: languages must be enabled in the agent, before they can be used.
# [Many
# languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/
# language)
# are supported. Note: languages must be enabled in the agent before they can
# be used.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -455,9 +459,11 @@ module Google
# @param [String] language_code
# Optional. The language to list entity synonyms for. If not specified,
# the agent's default language is used.
# [More than a dozen
# languages](https://dialogflow.com/docs/reference/language) are supported.
# Note: languages must be enabled in the agent, before they can be used.
# [Many
# languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/
# language)
# are supported. Note: languages must be enabled in the agent before they can
# be used.
# @param [Fixnum] page_size
# Optional. The maximum number of items to return in a single page. By
# default 100 and at most 1000.
@ -503,9 +509,11 @@ module Google
# @param [String] language_code
# Optional. The language of entity synonyms defined in `entity_type`. If not
# specified, the agent's default language is used.
# [More than a dozen
# languages](https://dialogflow.com/docs/reference/language) are supported.
# Note: languages must be enabled in the agent, before they can be used.
# [Many
# languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/
# language)
# are supported. Note: languages must be enabled in the agent before they can
# be used.
# @param [String] update_mask
# Optional. The mask to control which fields get updated.
# @param [String] fields
@ -1194,9 +1202,11 @@ module Google
# @param [String] language_code
# Optional. The language of training phrases, parameters and rich messages
# defined in `intent`. If not specified, the agent's default language is
# used. [More than a dozen
# languages](https://dialogflow.com/docs/reference/language) are supported.
# Note: languages must be enabled in the agent, before they can be used.
# used. [Many
# languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/
# language)
# are supported. Note: languages must be enabled in the agent before they can
# be used.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -1269,9 +1279,11 @@ module Google
# @param [String] language_code
# Optional. The language to retrieve training phrases, parameters and rich
# messages for. If not specified, the agent's default language is used.
# [More than a dozen
# languages](https://dialogflow.com/docs/reference/language) are supported.
# Note: languages must be enabled in the agent, before they can be used.
# [Many
# languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/
# language)
# are supported. Note: languages must be enabled in the agent before they can
# be used.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -1310,9 +1322,11 @@ module Google
# @param [String] language_code
# Optional. The language to list training phrases, parameters and rich
# messages for. If not specified, the agent's default language is used.
# [More than a dozen
# languages](https://dialogflow.com/docs/reference/language) are supported.
# Note: languages must be enabled in the agent before they can be used.
# [Many
# languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/
# language)
# are supported. Note: languages must be enabled in the agent before they can
# be used.
# @param [Fixnum] page_size
# Optional. The maximum number of items to return in a single page. By
# default 100 and at most 1000.
@ -1361,9 +1375,11 @@ module Google
# @param [String] language_code
# Optional. The language of training phrases, parameters and rich messages
# defined in `intent`. If not specified, the agent's default language is
# used. [More than a dozen
# languages](https://dialogflow.com/docs/reference/language) are supported.
# Note: languages must be enabled in the agent, before they can be used.
# used. [Many
# languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/
# language)
# are supported. Note: languages must be enabled in the agent before they can
# be used.
# @param [String] update_mask
# Optional. The mask to control which fields get updated.
# @param [String] fields

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/talent-solution/job-search/docs/
module JobsV3p1beta1
VERSION = 'V3p1beta1'
REVISION = '20190306'
REVISION = '20190322'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -2222,14 +2222,14 @@ module Google
attr_accessor :done
alias_method :done?, :done
# The `Status` type defines a logical error model that is suitable for different
# programming environments, including REST APIs and RPC APIs. It is used by
# [gRPC](https://github.com/grpc). The error model is designed to be:
# The `Status` type defines a logical error model that is suitable for
# different programming environments, including REST APIs and RPC APIs. It is
# used by [gRPC](https://github.com/grpc). The error model is designed to be:
# - Simple to use and understand for most users
# - Flexible enough to meet unexpected needs
# # Overview
# The `Status` message contains three pieces of data: error code, error message,
# and error details. The error code should be an enum value of
# The `Status` message contains three pieces of data: error code, error
# message, and error details. The error code should be an enum value of
# google.rpc.Code, but it may accept additional error codes if needed. The
# error message should be a developer-facing English message that helps
# developers *understand* and *resolve* the error. If a localized user-facing
@ -2909,14 +2909,14 @@ module Google
end
end
# The `Status` type defines a logical error model that is suitable for different
# programming environments, including REST APIs and RPC APIs. It is used by
# [gRPC](https://github.com/grpc). The error model is designed to be:
# The `Status` type defines a logical error model that is suitable for
# different programming environments, including REST APIs and RPC APIs. It is
# used by [gRPC](https://github.com/grpc). The error model is designed to be:
# - Simple to use and understand for most users
# - Flexible enough to meet unexpected needs
# # Overview
# The `Status` message contains three pieces of data: error code, error message,
# and error details. The error code should be an enum value of
# The `Status` message contains three pieces of data: error code, error
# message, and error details. The error code should be an enum value of
# google.rpc.Code, but it may accept additional error codes if needed. The
# error message should be a developer-facing English message that helps
# developers *understand* and *resolve* the error. If a localized user-facing

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/logging/docs/
module LoggingV2beta1
VERSION = 'V2beta1'
REVISION = '20190311'
REVISION = '20190316'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/service-consumer-management/docs/overview
module ServiceconsumermanagementV1
VERSION = 'V1'
REVISION = '20190306'
REVISION = '20190320'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -28,10 +28,9 @@ module Google
include Google::Apis::Core::Hashable
# This structure defines a tenant project to be added to the specified tenancy
# unit and its initial configuration and properties. A project lien will be
# created for the tenant project to prevent the tenant project from being
# deleted accidentally. The lien will be deleted as part of tenant project
# removal.
# unit and its initial configuration and properties. A project lien is created
# for the tenant project to prevent the tenant project from being deleted
# accidentally. The lien is deleted as part of tenant project removal.
# Corresponds to the JSON property `projectConfig`
# @return [Google::Apis::ServiceconsumermanagementV1::TenantProjectConfig]
attr_accessor :project_config
@ -137,10 +136,9 @@ module Google
include Google::Apis::Core::Hashable
# This structure defines a tenant project to be added to the specified tenancy
# unit and its initial configuration and properties. A project lien will be
# created for the tenant project to prevent the tenant project from being
# deleted accidentally. The lien will be deleted as part of tenant project
# removal.
# unit and its initial configuration and properties. A project lien is created
# for the tenant project to prevent the tenant project from being deleted
# accidentally. The lien is deleted as part of tenant project removal.
# Corresponds to the JSON property `projectConfig`
# @return [Google::Apis::ServiceconsumermanagementV1::TenantProjectConfig]
attr_accessor :project_config
@ -172,9 +170,10 @@ module Google
# @return [String]
attr_accessor :external_resource
# When attaching a reserved project already in Tenancy Units, this is the
# tag of tenant resource under the tenancy unit for the service's producer
# project. The reserved tenant resource must be in active state.
# When attaching a reserved project already in tenancy units, this is the
# tag of a tenant resource under the tenancy unit for the managed service's
# service producer project. The reserved tenant resource must be in an
# active state.
# Corresponds to the JSON property `reservedResource`
# @return [String]
attr_accessor :reserved_resource
@ -555,7 +554,7 @@ module Google
end
end
# Describes billing configuration for a new tenant project.
# Describes the billing configuration for a new tenant project.
class BillingConfig
include Google::Apis::Core::Hashable
@ -732,17 +731,18 @@ module Google
end
end
# Request to create a tenancy unit for a consumer of a service.
# Request to create a tenancy unit for a service consumer of a managed service.
class CreateTenancyUnitRequest
include Google::Apis::Core::Hashable
# Optional producer provided identifier of the tenancy unit.
# Optional service producer-provided identifier of the tenancy unit.
# Must be no longer than 40 characters and preferably URI friendly.
# If it is not provided, a UID for the tenancy unit will be auto generated.
# It must be unique across a service.
# If the tenancy unit already exists for the service and consumer pair,
# `CreateTenancyUnit` will return the existing tenancy unit if the provided
# identifier is identical or empty, otherwise the call will fail.
# If it isn't provided, a UID for the tenancy unit is automatically
# generated. The identifier must be unique across a managed service.
# If the tenancy unit already exists for the managed service and service
# consumer pair, calling `CreateTenancyUnit` returns the existing tenancy
# unit if the provided identifier is identical or empty, otherwise the call
# fails.
# Corresponds to the JSON property `tenancyUnitId`
# @return [String]
attr_accessor :tenancy_unit_id
@ -2530,7 +2530,7 @@ module Google
include Google::Apis::Core::Hashable
# Uses the same format as in IAM policy.
# `member` must include both prefix and ID. For example, `user:`emailId``,
# `member` must include both a prefix and ID. For example, `user:`emailId``,
# `serviceAccount:`emailId``, `group:`emailId``.
# Corresponds to the JSON property `members`
# @return [Array<String>]
@ -2695,7 +2695,7 @@ module Google
end
end
# Request message to remove tenant project resource from the tenancy unit.
# Request message to remove a tenant project resource from the tenancy unit.
class RemoveTenantProjectRequest
include Google::Apis::Core::Hashable
@ -3151,16 +3151,16 @@ module Google
end
end
# Describes service account configuration for the tenant project.
# Describes the service account configuration for the tenant project.
class ServiceAccountConfig
include Google::Apis::Core::Hashable
# ID of the IAM service account to be created in tenant project.
# The email format of the service account will be
# The email format of the service account is
# "<account-id>@<tenant-project-id>.iam.gserviceaccount.com".
# This account id has to be unique within tenant project and producers
# have to guarantee it. And it must be 6-30 characters long, and matches the
# regular expression `[a-z]([-a-z0-9]*[a-z0-9])`.
# This account ID must be unique within tenant project and service
# producers have to guarantee it. The ID must be 6-30 characters long, and
# match the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])`.
# Corresponds to the JSON property `accountId`
# @return [String]
attr_accessor :account_id
@ -3425,7 +3425,8 @@ module Google
# @return [String]
attr_accessor :name
# @OutputOnly Google Cloud API name of the service owning this tenancy unit.
# Output only. Google Cloud API name of the managed service owning this
# tenancy unit.
# For example 'serviceconsumermanagement.googleapis.com'.
# Corresponds to the JSON property `service`
# @return [String]
@ -3452,20 +3453,19 @@ module Google
end
# This structure defines a tenant project to be added to the specified tenancy
# unit and its initial configuration and properties. A project lien will be
# created for the tenant project to prevent the tenant project from being
# deleted accidentally. The lien will be deleted as part of tenant project
# removal.
# unit and its initial configuration and properties. A project lien is created
# for the tenant project to prevent the tenant project from being deleted
# accidentally. The lien is deleted as part of tenant project removal.
class TenantProjectConfig
include Google::Apis::Core::Hashable
# Describes billing configuration for a new tenant project.
# Describes the billing configuration for a new tenant project.
# Corresponds to the JSON property `billingConfig`
# @return [Google::Apis::ServiceconsumermanagementV1::BillingConfig]
attr_accessor :billing_config
# Folder where project in this tenancy unit must be located
# This folder must have been previously created with proper
# This folder must have been previously created with the required
# permissions for the caller to create and configure a project in it.
# Valid folder resource names have the format `folders/`folder_number``
# (for example, `folders/123456`).
@ -3473,19 +3473,19 @@ module Google
# @return [String]
attr_accessor :folder
# Labels that will be applied to this project.
# Labels that are applied to this project.
# Corresponds to the JSON property `labels`
# @return [Hash<String,String>]
attr_accessor :labels
# Describes service account configuration for the tenant project.
# Describes the service account configuration for the tenant project.
# Corresponds to the JSON property `serviceAccountConfig`
# @return [Google::Apis::ServiceconsumermanagementV1::ServiceAccountConfig]
attr_accessor :service_account_config
# Google Cloud API names of services that will be activated on this project
# during provisioning. If any of these services can not be activated,
# request will fail.
# Google Cloud API names of services that are activated on this project
# during provisioning. If any of these services can't be activated,
# the request fails.
# For example: 'compute.googleapis.com','cloudfunctions.googleapis.com'
# Corresponds to the JSON property `services`
# @return [Array<String>]
@ -3521,8 +3521,8 @@ module Google
# 'roles/owner' role granted to the Service Consumer Management service
# account.
# At least one binding must have the role `roles/owner`. Among the list of
# members for `roles/owner`, at least one of them must be either `user` or
# `group` type.
# members for `roles/owner`, at least one of them must be either the `user`
# or `group` type.
# Corresponds to the JSON property `policyBindings`
# @return [Array<Google::Apis::ServiceconsumermanagementV1::PolicyBinding>]
attr_accessor :policy_bindings

View File

@ -201,16 +201,15 @@ module Google
execute_or_queue_command(command, &block)
end
# Search tenancy units for a service.
# Search tenancy units for a managed service.
# @param [String] parent
# Service for which search is performed.
# services/`service`
# `service` the name of a service, for example 'service.googleapis.com'.
# @param [Fixnum] page_size
# The maximum number of results returned by this request. Currently, the
# default maximum is set to 1000. If page_size is not provided or the size
# provided is a number larger than 1000, it will be automatically set to
# 1000.
# default maximum is set to 1000. If `page_size` isn't provided or the size
# provided is a number larger than 1000, it's automatically set to 1000.
# Optional.
# @param [String] page_token
# The continuation token, which is used to page through large result sets.
@ -223,9 +222,9 @@ module Google
# name of the field you want to compare. Supported fields are
# `tenant_resources.tag` and `tenant_resources.resource`.
# For example, to search tenancy units that contain at least one tenant
# resource with given tag 'xyz', use query `tenant_resources.tag=xyz`.
# resource with a given tag 'xyz', use the query `tenant_resources.tag=xyz`.
# To search tenancy units that contain at least one tenant resource with
# given resource name 'projects/123456', use query
# a given resource name 'projects/123456', use the query
# `tenant_resources.resource=projects/123456`.
# Multiple expressions can be joined with `AND`s. Tenancy units must match
# all expressions to be included in the result set. For example,
@ -262,10 +261,10 @@ module Google
end
# Add a new tenant project to the tenancy unit.
# There can be at most 512 tenant projects in a tenancy unit.
# There can be a maximum of 512 tenant projects in a tenancy unit.
# If there are previously failed `AddTenantProject` calls, you might need to
# call `RemoveTenantProject` first to clean them before you can make another
# `AddTenantProject` with the same tag.
# call `RemoveTenantProject` first to resolve them before you can make
# another call to `AddTenantProject` with the same tag.
# Operation<response: Empty>.
# @param [String] parent
# Name of the tenancy unit.
@ -299,20 +298,19 @@ module Google
execute_or_queue_command(command, &block)
end
# Apply configuration to an existing tenant project.
# This project must exist in active state and have the original owner
# account. Caller must have the permission to add a project to the given
# tenancy unit. Configuration will be applied, but any existing settings on
# the project will not be modified.
# Specified policy bindings will be applied. Existing binding will not be
# modified.
# Specified services will be activated. No service will be deactivated.
# New billing configuration will be applied if specified.
# Omit billing configuration to keep the existing one.
# Service account in the project will be created if previously non existing.
# Specified folder will be ignored, moving tenant project to a different
# folder is not supported.
# Operation fails if any of the steps fail, but no rollback of already
# Apply a configuration to an existing tenant project.
# This project must exist in an active state and have the original owner
# account. The caller must have permission to add a project to the given
# tenancy unit. The configuration is applied, but any existing settings on
# the project aren't modified.
# Specified policy bindings are applied. Existing bindings aren't modified.
# Specified services are activated. No service is deactivated.
# If specified, new billing configuration is applied.
# Omit a billing configuration to keep the existing one.
# A service account in the project is created if previously non existed.
# The specified folder is ignored, as moving a tenant project to a different
# folder isn't supported.
# The operation fails if any of the steps fail, but no rollback of already
# applied configuration changes is attempted.
# Operation<response: Empty>.
# @param [String] name
@ -348,18 +346,18 @@ module Google
end
# Attach an existing project to the tenancy unit as a new tenant
# resource. The project could be either the tenant project reserved by
# calling AddTenantProject under tenancy unit for the producer project of
# service, or from outside.
# Caller will be checked against the permission as if calling
# AddTenantProject on the same consumer.
# resource. The project could either be the tenant project reserved by
# calling `AddTenantProject` under a tenancy unit of a service producer's
# project of a managed service, or from a separate project.
# The caller is checked against a set of permissions as if calling
# `AddTenantProject` on the same service consumer.
# To trigger the attachement, the targeted tenant project must be in a
# folder. Please also make sure ServiceConsumerManagement service account is
# the owner of that project. Note that these two requirements are already met
# if the project is reserved through AddTenantProject.
# folder. Make sure the ServiceConsumerManagement service account is
# the owner of that project. These two requirements are already met
# if the project is reserved by calling `AddTenantProject`.
# Operation<response: Empty>.
# @param [String] name
# Name of the tenancy unit that project will be attached to.
# Name of the tenancy unit that the project will be attached to.
# @param [Google::Apis::ServiceconsumermanagementV1::AttachTenantProjectRequest] attach_tenant_project_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -396,8 +394,8 @@ module Google
# `collection id` is the cloud resource collection type representing the
# service consumer, for example 'projects', or 'organizations'.
# `resource id` is the consumer numeric id, such as project number: '123456'.
# `service` the name of a service, for example 'service.googleapis.com'.
# Enabled service binding using the new tenancy unit.
# `service` the name of a managed service, such as 'service.googleapis.com'.
# Enables service binding using the new tenancy unit.
# @param [Google::Apis::ServiceconsumermanagementV1::CreateTenancyUnitRequest] create_tenancy_unit_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -428,8 +426,8 @@ module Google
execute_or_queue_command(command, &block)
end
# Delete a tenancy unit. Before the tenancy unit is deleted, there should be
# no tenant resources in it not in DELETED state.
# Delete a tenancy unit. Before you delete the tenancy unit, there should be
# no tenant resources in it that aren't in a DELETED state.
# Operation<response: Empty>.
# @param [String] name
# Name of the tenancy unit to be deleted.
@ -460,17 +458,18 @@ module Google
execute_or_queue_command(command, &block)
end
# Find the tenancy unit for a service and consumer.
# This method should not be used in producers' runtime path, for example
# finding the tenant project number when creating VMs. Producers should
# persist the tenant project information after the project is created.
# Find the tenancy unit for a managed service and service consumer.
# This method shouldn't be used in a service producer's runtime path, for
# example to find the tenant project number when creating VMs. Service
# producers must persist the tenant project's information after the project
# is created.
# @param [String] parent
# Service and consumer. Required.
# Managed service and service consumer. Required.
# services/`service`/`collection id`/`resource id`
# `collection id` is the cloud resource collection type representing the
# service consumer, for example 'projects', or 'organizations'.
# `resource id` is the consumer numeric id, such as project number: '123456'.
# `service` the name of a service, for example 'service.googleapis.com'.
# `service` the name of a service, such as 'service.googleapis.com'.
# @param [String] filter
# Filter expression over tenancy resources field. Optional.
# @param [Fixnum] page_size
@ -509,13 +508,12 @@ module Google
execute_or_queue_command(command, &block)
end
# Removes specified project resource identified by tenant resource tag.
# It will remove project lien with 'TenantManager' origin if that was added.
# It will then attempt to delete the project. If that operation fails, this
# method fails.
# Calls to remove already removed or non-existent tenant project
# will succeed.
# After the project has been deleted, or if was already in DELETED state,
# Removes the specified project resource identified by a tenant resource tag.
# The method removes the project lien with 'TenantManager' origin if that
# was added. It then attempts to delete the project. If that operation
# fails, this method also fails.
# Calls to remove already removed or non-existent tenant project succeed.
# After the project has been deleted, or if was already in a DELETED state,
# resource metadata is permanently removed from the tenancy unit.
# Operation<response: Empty>.
# @param [String] name

View File

@ -27,7 +27,7 @@ module Google
# @see https://cloud.google.com/service-management/
module ServicemanagementV1
VERSION = 'V1'
REVISION = '20190308'
REVISION = '20190315'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'