Autogenerated update (2020-05-09)
Update: - bigquery_v2 - bigqueryconnection_v1beta1 - books_v1 - cloudfunctions_v1 - monitoring_v3 - servicedirectory_v1beta1 - servicemanagement_v1
This commit is contained in:
parent
f409b91d95
commit
66e530cacc
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://cloud.google.com/bigquery/
|
||||
module BigqueryV2
|
||||
VERSION = 'V2'
|
||||
REVISION = '20200415'
|
||||
REVISION = '20200429'
|
||||
|
||||
# View and manage your data in Google BigQuery
|
||||
AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery'
|
||||
|
|
|
@ -312,6 +312,122 @@ module Google
|
|||
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:jose@example.com"
|
||||
# ]
|
||||
# `,
|
||||
# `
|
||||
# "log_type": "DATA_WRITE",
|
||||
# `,
|
||||
# `
|
||||
# "log_type": "ADMIN_READ",
|
||||
# `
|
||||
# ]
|
||||
# `,
|
||||
# `
|
||||
# "service": "sampleservice.googleapis.com"
|
||||
# "audit_log_configs": [
|
||||
# `
|
||||
# "log_type": "DATA_READ",
|
||||
# `,
|
||||
# `
|
||||
# "log_type": "DATA_WRITE",
|
||||
# "exempted_members": [
|
||||
# "user:aliya@example.com"
|
||||
# ]
|
||||
# `
|
||||
# ]
|
||||
# `
|
||||
# ]
|
||||
# `
|
||||
# For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
|
||||
# logging. It also exempts jose@example.com from DATA_READ logging, and
|
||||
# aliya@example.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::BigqueryV2::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:jose@example.com"
|
||||
# ]
|
||||
# `,
|
||||
# `
|
||||
# "log_type": "DATA_WRITE",
|
||||
# `
|
||||
# ]
|
||||
# `
|
||||
# This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting
|
||||
# jose@example.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
|
||||
|
||||
#
|
||||
class BigQueryModelTraining
|
||||
include Google::Apis::Core::Hashable
|
||||
|
@ -624,6 +740,89 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
# Associates `members` with a `role`.
|
||||
class Binding
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Represents a textual expression in the Common Expression Language (CEL)
|
||||
# syntax. CEL is a C-like expression language. The syntax and semantics of CEL
|
||||
# are documented at https://github.com/google/cel-spec.
|
||||
# Example (Comparison):
|
||||
# title: "Summary size limit"
|
||||
# description: "Determines if a summary is less than 100 chars"
|
||||
# expression: "document.summary.size() < 100"
|
||||
# Example (Equality):
|
||||
# title: "Requestor is owner"
|
||||
# description: "Determines if requestor is the document owner"
|
||||
# expression: "document.owner == request.auth.claims.email"
|
||||
# Example (Logic):
|
||||
# title: "Public documents"
|
||||
# description: "Determine whether the document should be publicly visible"
|
||||
# expression: "document.type != 'private' && document.type != 'internal'"
|
||||
# Example (Data Manipulation):
|
||||
# title: "Notification string"
|
||||
# description: "Create a notification string with a timestamp."
|
||||
# expression: "'New message received at ' + string(document.create_time)"
|
||||
# The exact variables and functions that may be referenced within an expression
|
||||
# are determined by the service that evaluates it. See the service
|
||||
# documentation for additional information.
|
||||
# Corresponds to the JSON property `condition`
|
||||
# @return [Google::Apis::BigqueryV2::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@example.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`.
|
||||
# * `deleted:user:`emailid`?uid=`uniqueid``: An email address (plus unique
|
||||
# identifier) representing a user that has been recently deleted. For
|
||||
# example, `alice@example.com?uid=123456789012345678901`. If the user is
|
||||
# recovered, this value reverts to `user:`emailid`` and the recovered user
|
||||
# retains the role in the binding.
|
||||
# * `deleted:serviceAccount:`emailid`?uid=`uniqueid``: An email address (plus
|
||||
# unique identifier) representing a service account that has been recently
|
||||
# deleted. For example,
|
||||
# `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
|
||||
# If the service account is undeleted, this value reverts to
|
||||
# `serviceAccount:`emailid`` and the undeleted service account retains the
|
||||
# role in the binding.
|
||||
# * `deleted:group:`emailid`?uid=`uniqueid``: An email address (plus unique
|
||||
# identifier) representing a Google group that has been recently
|
||||
# deleted. For example, `admins@example.com?uid=123456789012345678901`. If
|
||||
# the group is recovered, this value reverts to `group:`emailid`` and the
|
||||
# recovered group retains the role in the binding.
|
||||
# * `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
|
||||
|
||||
#
|
||||
class BqmlIterationResult
|
||||
include Google::Apis::Core::Hashable
|
||||
|
@ -1832,6 +2031,69 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
# Represents a textual expression in the Common Expression Language (CEL)
|
||||
# syntax. CEL is a C-like expression language. The syntax and semantics of CEL
|
||||
# are documented at https://github.com/google/cel-spec.
|
||||
# Example (Comparison):
|
||||
# title: "Summary size limit"
|
||||
# description: "Determines if a summary is less than 100 chars"
|
||||
# expression: "document.summary.size() < 100"
|
||||
# Example (Equality):
|
||||
# title: "Requestor is owner"
|
||||
# description: "Determines if requestor is the document owner"
|
||||
# expression: "document.owner == request.auth.claims.email"
|
||||
# Example (Logic):
|
||||
# title: "Public documents"
|
||||
# description: "Determine whether the document should be publicly visible"
|
||||
# expression: "document.type != 'private' && document.type != 'internal'"
|
||||
# Example (Data Manipulation):
|
||||
# title: "Notification string"
|
||||
# description: "Create a notification string with a timestamp."
|
||||
# expression: "'New message received at ' + string(document.create_time)"
|
||||
# The exact variables and functions that may be referenced within an expression
|
||||
# are determined by the service that evaluates it. See the service
|
||||
# documentation for additional information.
|
||||
class Expr
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# 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.
|
||||
# Corresponds to the JSON property `expression`
|
||||
# @return [String]
|
||||
attr_accessor :expression
|
||||
|
||||
# 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
|
||||
|
||||
# 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
|
||||
|
||||
#
|
||||
class ExternalDataConfiguration
|
||||
include Google::Apis::Core::Hashable
|
||||
|
@ -1973,6 +2235,52 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
# Request message for `GetIamPolicy` method.
|
||||
class GetIamPolicyRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Encapsulates settings provided to GetIamPolicy.
|
||||
# Corresponds to the JSON property `options`
|
||||
# @return [Google::Apis::BigqueryV2::GetPolicyOptions]
|
||||
attr_accessor :options
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@options = args[:options] if args.key?(:options)
|
||||
end
|
||||
end
|
||||
|
||||
# Encapsulates settings provided to GetIamPolicy.
|
||||
class GetPolicyOptions
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Optional. The policy format version to be returned.
|
||||
# Valid values are 0, 1, and 3. Requests specifying an invalid value will be
|
||||
# rejected.
|
||||
# Requests for policies with any conditional bindings must specify version 3.
|
||||
# Policies without any conditional bindings may specify any valid value or
|
||||
# leave the field unset.
|
||||
# To learn which resources support conditions in their IAM policies, see the
|
||||
# [IAM
|
||||
# documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
|
||||
# Corresponds to the JSON property `requestedPolicyVersion`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :requested_policy_version
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@requested_policy_version = args[:requested_policy_version] if args.key?(:requested_policy_version)
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class GetQueryResultsResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
@ -3980,6 +4288,134 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
# An Identity and Access Management (IAM) policy, which specifies access
|
||||
# controls for Google Cloud resources.
|
||||
# A `Policy` is a collection of `bindings`. A `binding` binds one or more
|
||||
# `members` to a single `role`. Members can be user accounts, service accounts,
|
||||
# Google groups, and domains (such as G Suite). A `role` is a named list of
|
||||
# permissions; each `role` can be an IAM predefined role or a user-created
|
||||
# custom role.
|
||||
# For some types of Google Cloud resources, a `binding` can also specify a
|
||||
# `condition`, which is a logical expression that allows access to a resource
|
||||
# only if the expression evaluates to `true`. A condition can add constraints
|
||||
# based on attributes of the request, the resource, or both. To learn which
|
||||
# resources support conditions in their IAM policies, see the
|
||||
# [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-
|
||||
# policies).
|
||||
# **JSON example:**
|
||||
# `
|
||||
# "bindings": [
|
||||
# `
|
||||
# "role": "roles/resourcemanager.organizationAdmin",
|
||||
# "members": [
|
||||
# "user:mike@example.com",
|
||||
# "group:admins@example.com",
|
||||
# "domain:google.com",
|
||||
# "serviceAccount:my-project-id@appspot.gserviceaccount.com"
|
||||
# ]
|
||||
# `,
|
||||
# `
|
||||
# "role": "roles/resourcemanager.organizationViewer",
|
||||
# "members": [
|
||||
# "user:eve@example.com"
|
||||
# ],
|
||||
# "condition": `
|
||||
# "title": "expirable access",
|
||||
# "description": "Does not grant access after Sep 2020",
|
||||
# "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')
|
||||
# ",
|
||||
# `
|
||||
# `
|
||||
# ],
|
||||
# "etag": "BwWWja0YfJA=",
|
||||
# "version": 3
|
||||
# `
|
||||
# **YAML example:**
|
||||
# bindings:
|
||||
# - members:
|
||||
# - user:mike@example.com
|
||||
# - group:admins@example.com
|
||||
# - domain:google.com
|
||||
# - serviceAccount:my-project-id@appspot.gserviceaccount.com
|
||||
# role: roles/resourcemanager.organizationAdmin
|
||||
# - members:
|
||||
# - user:eve@example.com
|
||||
# role: roles/resourcemanager.organizationViewer
|
||||
# condition:
|
||||
# title: expirable access
|
||||
# description: Does not grant access after Sep 2020
|
||||
# expression: request.time < timestamp('2020-10-01T00:00:00.000Z')
|
||||
# - etag: BwWWja0YfJA=
|
||||
# - version: 3
|
||||
# For a description of IAM and its features, see the
|
||||
# [IAM documentation](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::BigqueryV2::AuditConfig>]
|
||||
attr_accessor :audit_configs
|
||||
|
||||
# Associates a list of `members` to a `role`. Optionally, may specify a
|
||||
# `condition` that determines how and when the `bindings` are applied. Each
|
||||
# of the `bindings` must contain at least one member.
|
||||
# Corresponds to the JSON property `bindings`
|
||||
# @return [Array<Google::Apis::BigqueryV2::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.
|
||||
# **Important:** If you use IAM Conditions, you must include the `etag` field
|
||||
# whenever you call `setIamPolicy`. If you omit this field, then IAM allows
|
||||
# you to overwrite a version `3` policy with a version `1` policy, and all of
|
||||
# the conditions in the version `3` policy are lost.
|
||||
# Corresponds to the JSON property `etag`
|
||||
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
||||
# @return [String]
|
||||
attr_accessor :etag
|
||||
|
||||
# Specifies the format of the policy.
|
||||
# Valid values are `0`, `1`, and `3`. Requests that specify an invalid value
|
||||
# are rejected.
|
||||
# Any operation that affects conditional role bindings must specify version
|
||||
# `3`. This requirement applies to the following operations:
|
||||
# * Getting a policy that includes a conditional role binding
|
||||
# * Adding a conditional role binding to a policy
|
||||
# * Changing a conditional role binding in a policy
|
||||
# * Removing any role binding, with or without a condition, from a policy
|
||||
# that includes conditions
|
||||
# **Important:** If you use IAM Conditions, you must include the `etag` field
|
||||
# whenever you call `setIamPolicy`. If you omit this field, then IAM allows
|
||||
# you to overwrite a version `3` policy with a version `1` policy, and all of
|
||||
# the conditions in the version `3` policy are lost.
|
||||
# If a policy does not include any conditions, operations on that policy may
|
||||
# specify any valid version or leave the field unset.
|
||||
# To learn which resources support conditions in their IAM policies, see the
|
||||
# [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-
|
||||
# policies).
|
||||
# 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
|
||||
|
||||
#
|
||||
class ProjectList
|
||||
include Google::Apis::Core::Hashable
|
||||
|
@ -4914,6 +5350,94 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
# Request message for `SetIamPolicy` method.
|
||||
class SetIamPolicyRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# An Identity and Access Management (IAM) policy, which specifies access
|
||||
# controls for Google Cloud resources.
|
||||
# A `Policy` is a collection of `bindings`. A `binding` binds one or more
|
||||
# `members` to a single `role`. Members can be user accounts, service accounts,
|
||||
# Google groups, and domains (such as G Suite). A `role` is a named list of
|
||||
# permissions; each `role` can be an IAM predefined role or a user-created
|
||||
# custom role.
|
||||
# For some types of Google Cloud resources, a `binding` can also specify a
|
||||
# `condition`, which is a logical expression that allows access to a resource
|
||||
# only if the expression evaluates to `true`. A condition can add constraints
|
||||
# based on attributes of the request, the resource, or both. To learn which
|
||||
# resources support conditions in their IAM policies, see the
|
||||
# [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-
|
||||
# policies).
|
||||
# **JSON example:**
|
||||
# `
|
||||
# "bindings": [
|
||||
# `
|
||||
# "role": "roles/resourcemanager.organizationAdmin",
|
||||
# "members": [
|
||||
# "user:mike@example.com",
|
||||
# "group:admins@example.com",
|
||||
# "domain:google.com",
|
||||
# "serviceAccount:my-project-id@appspot.gserviceaccount.com"
|
||||
# ]
|
||||
# `,
|
||||
# `
|
||||
# "role": "roles/resourcemanager.organizationViewer",
|
||||
# "members": [
|
||||
# "user:eve@example.com"
|
||||
# ],
|
||||
# "condition": `
|
||||
# "title": "expirable access",
|
||||
# "description": "Does not grant access after Sep 2020",
|
||||
# "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')
|
||||
# ",
|
||||
# `
|
||||
# `
|
||||
# ],
|
||||
# "etag": "BwWWja0YfJA=",
|
||||
# "version": 3
|
||||
# `
|
||||
# **YAML example:**
|
||||
# bindings:
|
||||
# - members:
|
||||
# - user:mike@example.com
|
||||
# - group:admins@example.com
|
||||
# - domain:google.com
|
||||
# - serviceAccount:my-project-id@appspot.gserviceaccount.com
|
||||
# role: roles/resourcemanager.organizationAdmin
|
||||
# - members:
|
||||
# - user:eve@example.com
|
||||
# role: roles/resourcemanager.organizationViewer
|
||||
# condition:
|
||||
# title: expirable access
|
||||
# description: Does not grant access after Sep 2020
|
||||
# expression: request.time < timestamp('2020-10-01T00:00:00.000Z')
|
||||
# - etag: BwWWja0YfJA=
|
||||
# - version: 3
|
||||
# For a description of IAM and its features, see the
|
||||
# [IAM documentation](https://cloud.google.com/iam/docs/).
|
||||
# Corresponds to the JSON property `policy`
|
||||
# @return [Google::Apis::BigqueryV2::Policy]
|
||||
attr_accessor :policy
|
||||
|
||||
# OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
|
||||
# the fields in the mask will be modified. If no mask is provided, the
|
||||
# following default mask is used:
|
||||
# `paths: "bindings, etag"`
|
||||
# Corresponds to the JSON property `updateMask`
|
||||
# @return [String]
|
||||
attr_accessor :update_mask
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@policy = args[:policy] if args.key?(:policy)
|
||||
@update_mask = args[:update_mask] if args.key?(:update_mask)
|
||||
end
|
||||
end
|
||||
|
||||
# The type of a variable, e.g., a function argument.
|
||||
# Examples:
|
||||
# INT64: `type_kind="INT64"`
|
||||
|
@ -5785,6 +6309,48 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
# Request message for `TestIamPermissions` method.
|
||||
class TestIamPermissionsRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The set of permissions to check for the `resource`. Permissions with
|
||||
# wildcards (such as '*' or 'storage.*') are not allowed. For more
|
||||
# information see
|
||||
# [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
|
||||
# Corresponds to the JSON property `permissions`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :permissions
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@permissions = args[:permissions] if args.key?(:permissions)
|
||||
end
|
||||
end
|
||||
|
||||
# Response message for `TestIamPermissions` method.
|
||||
class TestIamPermissionsResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# A subset of `TestPermissionsRequest.permissions` that the caller is
|
||||
# allowed.
|
||||
# Corresponds to the JSON property `permissions`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :permissions
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@permissions = args[:permissions] if args.key?(:permissions)
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class TimePartitioning
|
||||
include Google::Apis::Core::Hashable
|
||||
|
|
|
@ -64,6 +64,18 @@ module Google
|
|||
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 BigQueryModelTraining
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -100,6 +112,12 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Binding
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class BqmlIterationResult
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -250,6 +268,12 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Expr
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ExternalDataConfiguration
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -262,6 +286,18 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GetIamPolicyRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GetPolicyOptions
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GetQueryResultsResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -448,6 +484,12 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Policy
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ProjectList
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -574,6 +616,12 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SetIamPolicyRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class StandardSqlDataType
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -694,6 +742,18 @@ module Google
|
|||
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 TimePartitioning
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -799,6 +859,23 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class AuditConfig
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :audit_log_configs, as: 'auditLogConfigs', class: Google::Apis::BigqueryV2::AuditLogConfig, decorator: Google::Apis::BigqueryV2::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 BigQueryModelTraining
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
@ -868,6 +945,16 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class Binding
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :condition, as: 'condition', class: Google::Apis::BigqueryV2::Expr, decorator: Google::Apis::BigqueryV2::Expr::Representation
|
||||
|
||||
collection :members, as: 'members'
|
||||
property :role, as: 'role'
|
||||
end
|
||||
end
|
||||
|
||||
class BqmlIterationResult
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
@ -1163,6 +1250,16 @@ module Google
|
|||
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 ExternalDataConfiguration
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
@ -1195,6 +1292,21 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class GetIamPolicyRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :options, as: 'options', class: Google::Apis::BigqueryV2::GetPolicyOptions, decorator: Google::Apis::BigqueryV2::GetPolicyOptions::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class GetPolicyOptions
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :requested_policy_version, as: 'requestedPolicyVersion'
|
||||
end
|
||||
end
|
||||
|
||||
class GetQueryResultsResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
@ -1669,6 +1781,18 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class Policy
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :audit_configs, as: 'auditConfigs', class: Google::Apis::BigqueryV2::AuditConfig, decorator: Google::Apis::BigqueryV2::AuditConfig::Representation
|
||||
|
||||
collection :bindings, as: 'bindings', class: Google::Apis::BigqueryV2::Binding, decorator: Google::Apis::BigqueryV2::Binding::Representation
|
||||
|
||||
property :etag, :base64 => true, as: 'etag'
|
||||
property :version, as: 'version'
|
||||
end
|
||||
end
|
||||
|
||||
class ProjectList
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
@ -1912,6 +2036,15 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class SetIamPolicyRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :policy, as: 'policy', class: Google::Apis::BigqueryV2::Policy, decorator: Google::Apis::BigqueryV2::Policy::Representation
|
||||
|
||||
property :update_mask, as: 'updateMask'
|
||||
end
|
||||
end
|
||||
|
||||
class StandardSqlDataType
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
@ -2148,6 +2281,20 @@ module Google
|
|||
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
|
||||
|
||||
class TimePartitioning
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
|
|
@ -1213,6 +1213,45 @@ module Google
|
|||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Gets the access control policy for a resource.
|
||||
# Returns an empty policy if the resource exists and does not have a policy
|
||||
# set.
|
||||
# @param [String] resource
|
||||
# REQUIRED: The resource for which the policy is being requested.
|
||||
# See the operation documentation for the appropriate value for this field.
|
||||
# @param [Google::Apis::BigqueryV2::GetIamPolicyRequest] get_iam_policy_request_object
|
||||
# @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::BigqueryV2::Policy] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::BigqueryV2::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_table_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, '{+resource}:getIamPolicy', options)
|
||||
command.request_representation = Google::Apis::BigqueryV2::GetIamPolicyRequest::Representation
|
||||
command.request_object = get_iam_policy_request_object
|
||||
command.response_representation = Google::Apis::BigqueryV2::Policy::Representation
|
||||
command.response_class = Google::Apis::BigqueryV2::Policy
|
||||
command.params['resource'] = resource unless resource.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 a new, empty table in the dataset.
|
||||
# @param [String] project_id
|
||||
# Project ID of the new table
|
||||
|
@ -1338,6 +1377,87 @@ module Google
|
|||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Sets the access control policy on the specified resource. Replaces any
|
||||
# existing policy.
|
||||
# Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
|
||||
# @param [String] resource
|
||||
# REQUIRED: The resource for which the policy is being specified.
|
||||
# See the operation documentation for the appropriate value for this field.
|
||||
# @param [Google::Apis::BigqueryV2::SetIamPolicyRequest] set_iam_policy_request_object
|
||||
# @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::BigqueryV2::Policy] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::BigqueryV2::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_table_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, '{+resource}:setIamPolicy', options)
|
||||
command.request_representation = Google::Apis::BigqueryV2::SetIamPolicyRequest::Representation
|
||||
command.request_object = set_iam_policy_request_object
|
||||
command.response_representation = Google::Apis::BigqueryV2::Policy::Representation
|
||||
command.response_class = Google::Apis::BigqueryV2::Policy
|
||||
command.params['resource'] = resource unless resource.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
|
||||
|
||||
# Returns permissions that a caller has on the specified resource.
|
||||
# If the resource does not exist, this will return an empty set of
|
||||
# permissions, not a `NOT_FOUND` error.
|
||||
# Note: This operation is designed to be used for building permission-aware
|
||||
# UIs and command-line tools, not for authorization checking. This operation
|
||||
# may "fail open" without warning.
|
||||
# @param [String] resource
|
||||
# REQUIRED: The resource for which the policy detail is being requested.
|
||||
# See the operation documentation for the appropriate value for this field.
|
||||
# @param [Google::Apis::BigqueryV2::TestIamPermissionsRequest] test_iam_permissions_request_object
|
||||
# @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::BigqueryV2::TestIamPermissionsResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::BigqueryV2::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_table_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, '{+resource}:testIamPermissions', options)
|
||||
command.request_representation = Google::Apis::BigqueryV2::TestIamPermissionsRequest::Representation
|
||||
command.request_object = test_iam_permissions_request_object
|
||||
command.response_representation = Google::Apis::BigqueryV2::TestIamPermissionsResponse::Representation
|
||||
command.response_class = Google::Apis::BigqueryV2::TestIamPermissionsResponse
|
||||
command.params['resource'] = resource unless resource.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
|
||||
|
||||
# Updates information in an existing table. The update method replaces the
|
||||
# entire table resource, whereas the patch method only replaces fields that are
|
||||
# provided in the submitted table resource.
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://cloud.google.com/bigquery/
|
||||
module BigqueryconnectionV1beta1
|
||||
VERSION = 'V1beta1'
|
||||
REVISION = '20200415'
|
||||
REVISION = '20200430'
|
||||
|
||||
# View and manage your data in Google BigQuery
|
||||
AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery'
|
||||
|
|
|
@ -471,6 +471,9 @@ module Google
|
|||
# Requests for policies with any conditional bindings must specify version 3.
|
||||
# Policies without any conditional bindings may specify any valid value or
|
||||
# leave the field unset.
|
||||
# To learn which resources support conditions in their IAM policies, see the
|
||||
# [IAM
|
||||
# documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
|
||||
# Corresponds to the JSON property `requestedPolicyVersion`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :requested_policy_version
|
||||
|
@ -517,10 +520,13 @@ module Google
|
|||
# Google groups, and domains (such as G Suite). A `role` is a named list of
|
||||
# permissions; each `role` can be an IAM predefined role or a user-created
|
||||
# custom role.
|
||||
# Optionally, a `binding` can specify a `condition`, which is a logical
|
||||
# expression that allows access to a resource only if the expression evaluates
|
||||
# to `true`. A condition can add constraints based on attributes of the
|
||||
# request, the resource, or both.
|
||||
# For some types of Google Cloud resources, a `binding` can also specify a
|
||||
# `condition`, which is a logical expression that allows access to a resource
|
||||
# only if the expression evaluates to `true`. A condition can add constraints
|
||||
# based on attributes of the request, the resource, or both. To learn which
|
||||
# resources support conditions in their IAM policies, see the
|
||||
# [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-
|
||||
# policies).
|
||||
# **JSON example:**
|
||||
# `
|
||||
# "bindings": [
|
||||
|
@ -535,7 +541,9 @@ module Google
|
|||
# `,
|
||||
# `
|
||||
# "role": "roles/resourcemanager.organizationViewer",
|
||||
# "members": ["user:eve@example.com"],
|
||||
# "members": [
|
||||
# "user:eve@example.com"
|
||||
# ],
|
||||
# "condition": `
|
||||
# "title": "expirable access",
|
||||
# "description": "Does not grant access after Sep 2020",
|
||||
|
@ -613,6 +621,9 @@ module Google
|
|||
# the conditions in the version `3` policy are lost.
|
||||
# If a policy does not include any conditions, operations on that policy may
|
||||
# specify any valid version or leave the field unset.
|
||||
# To learn which resources support conditions in their IAM policies, see the
|
||||
# [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-
|
||||
# policies).
|
||||
# Corresponds to the JSON property `version`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :version
|
||||
|
@ -641,10 +652,13 @@ module Google
|
|||
# Google groups, and domains (such as G Suite). A `role` is a named list of
|
||||
# permissions; each `role` can be an IAM predefined role or a user-created
|
||||
# custom role.
|
||||
# Optionally, a `binding` can specify a `condition`, which is a logical
|
||||
# expression that allows access to a resource only if the expression evaluates
|
||||
# to `true`. A condition can add constraints based on attributes of the
|
||||
# request, the resource, or both.
|
||||
# For some types of Google Cloud resources, a `binding` can also specify a
|
||||
# `condition`, which is a logical expression that allows access to a resource
|
||||
# only if the expression evaluates to `true`. A condition can add constraints
|
||||
# based on attributes of the request, the resource, or both. To learn which
|
||||
# resources support conditions in their IAM policies, see the
|
||||
# [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-
|
||||
# policies).
|
||||
# **JSON example:**
|
||||
# `
|
||||
# "bindings": [
|
||||
|
@ -659,7 +673,9 @@ module Google
|
|||
# `,
|
||||
# `
|
||||
# "role": "roles/resourcemanager.organizationViewer",
|
||||
# "members": ["user:eve@example.com"],
|
||||
# "members": [
|
||||
# "user:eve@example.com"
|
||||
# ],
|
||||
# "condition": `
|
||||
# "title": "expirable access",
|
||||
# "description": "Does not grant access after Sep 2020",
|
||||
|
|
|
@ -20,12 +20,12 @@ module Google
|
|||
module Apis
|
||||
# Books API
|
||||
#
|
||||
# Searches for books and manages your Google Books library.
|
||||
# The Google Books API allows clients to access the Google Books repository.
|
||||
#
|
||||
# @see https://developers.google.com/books/docs/v1/getting_started
|
||||
# @see https://code.google.com/apis/books/docs/v1/getting_started.html
|
||||
module BooksV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20200204'
|
||||
REVISION = '20200506'
|
||||
|
||||
# Manage your books
|
||||
AUTH_BOOKS = 'https://www.googleapis.com/auth/books'
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -46,12 +46,6 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class AnnotationData
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Annotations
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -88,12 +82,6 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class BooksSubscriptionReleaseInfo
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class RateRecommendedVolumeResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -130,6 +118,12 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class DictionaryAnnotationdata
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class DictLayerData
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -268,6 +262,12 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Empty
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class FamilyInfo
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -280,6 +280,12 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GeoAnnotationdata
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GeoLayerData
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -292,12 +298,6 @@ module Google
|
|||
class Geo
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
class Boundary
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Viewport
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -376,7 +376,7 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class RequestAccess
|
||||
class RequestAccessData
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
|
@ -409,6 +409,18 @@ module Google
|
|||
class SeriesSubscriptionReleaseInfo
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
class CurrentReleaseInfo
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class NextReleaseInfo
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
|
@ -616,6 +628,12 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ReadingModes
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
|
@ -677,8 +695,7 @@ module Google
|
|||
property :before_selected_text, as: 'beforeSelectedText'
|
||||
property :client_version_ranges, as: 'clientVersionRanges', class: Google::Apis::BooksV1::Annotation::ClientVersionRanges, decorator: Google::Apis::BooksV1::Annotation::ClientVersionRanges::Representation
|
||||
|
||||
property :created, as: 'created', type: DateTime
|
||||
|
||||
property :created, as: 'created'
|
||||
property :current_version_ranges, as: 'currentVersionRanges', class: Google::Apis::BooksV1::Annotation::CurrentVersionRanges, decorator: Google::Apis::BooksV1::Annotation::CurrentVersionRanges::Representation
|
||||
|
||||
property :data, as: 'data'
|
||||
|
@ -692,8 +709,7 @@ module Google
|
|||
collection :page_ids, as: 'pageIds'
|
||||
property :selected_text, as: 'selectedText'
|
||||
property :self_link, as: 'selfLink'
|
||||
property :updated, as: 'updated', type: DateTime
|
||||
|
||||
property :updated, as: 'updated'
|
||||
property :volume_id, as: 'volumeId'
|
||||
end
|
||||
|
||||
|
@ -737,22 +753,6 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class AnnotationData
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :annotation_type, as: 'annotationType'
|
||||
property :data, as: 'data'
|
||||
property :encoded_data, :base64 => true, as: 'encoded_data'
|
||||
property :id, as: 'id'
|
||||
property :kind, as: 'kind'
|
||||
property :layer_id, as: 'layerId'
|
||||
property :self_link, as: 'selfLink'
|
||||
property :updated, as: 'updated', type: DateTime
|
||||
|
||||
property :volume_id, as: 'volumeId'
|
||||
end
|
||||
end
|
||||
|
||||
class Annotations
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
@ -779,8 +779,7 @@ module Google
|
|||
property :layer_id, as: 'layerId'
|
||||
property :limit_type, as: 'limitType'
|
||||
property :remaining_character_count, as: 'remainingCharacterCount'
|
||||
property :updated, as: 'updated', type: DateTime
|
||||
|
||||
property :updated, as: 'updated'
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -788,7 +787,7 @@ module Google
|
|||
class AnnotationsData
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :items, as: 'items', class: Google::Apis::BooksV1::AnnotationData, decorator: Google::Apis::BooksV1::AnnotationData::Representation
|
||||
collection :items, as: 'items', class: Google::Apis::BooksV1::GeoAnnotationdata, decorator: Google::Apis::BooksV1::GeoAnnotationdata::Representation
|
||||
|
||||
property :kind, as: 'kind'
|
||||
property :next_page_token, as: 'nextPageToken'
|
||||
|
@ -816,16 +815,6 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class BooksSubscriptionReleaseInfo
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :amount_in_micros, :numeric_string => true, as: 'amountInMicros'
|
||||
property :currency_code, as: 'currencyCode'
|
||||
property :release_number, as: 'releaseNumber'
|
||||
property :release_timestamp_us, :numeric_string => true, as: 'releaseTimestampUs'
|
||||
end
|
||||
end
|
||||
|
||||
class RateRecommendedVolumeResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
@ -837,18 +826,15 @@ module Google
|
|||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :access, as: 'access'
|
||||
property :created, as: 'created', type: DateTime
|
||||
|
||||
property :created, as: 'created'
|
||||
property :description, as: 'description'
|
||||
property :id, as: 'id'
|
||||
property :kind, as: 'kind'
|
||||
property :self_link, as: 'selfLink'
|
||||
property :title, as: 'title'
|
||||
property :updated, as: 'updated', type: DateTime
|
||||
|
||||
property :updated, as: 'updated'
|
||||
property :volume_count, as: 'volumeCount'
|
||||
property :volumes_last_updated, as: 'volumesLastUpdated', type: DateTime
|
||||
|
||||
property :volumes_last_updated, as: 'volumesLastUpdated'
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -896,6 +882,22 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class DictionaryAnnotationdata
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :annotation_type, as: 'annotationType'
|
||||
property :data, as: 'data', class: Google::Apis::BooksV1::DictLayerData, decorator: Google::Apis::BooksV1::DictLayerData::Representation
|
||||
|
||||
property :encoded_data, :base64 => true, as: 'encodedData'
|
||||
property :id, as: 'id'
|
||||
property :kind, as: 'kind'
|
||||
property :layer_id, as: 'layerId'
|
||||
property :self_link, as: 'selfLink'
|
||||
property :updated, as: 'updated'
|
||||
property :volume_id, as: 'volumeId'
|
||||
end
|
||||
end
|
||||
|
||||
class DictLayerData
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
@ -1128,6 +1130,12 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class Empty
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
end
|
||||
end
|
||||
|
||||
class FamilyInfo
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
@ -1148,6 +1156,22 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class GeoAnnotationdata
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :annotation_type, as: 'annotationType'
|
||||
property :data, as: 'data', class: Google::Apis::BooksV1::GeoLayerData, decorator: Google::Apis::BooksV1::GeoLayerData::Representation
|
||||
|
||||
property :encoded_data, :base64 => true, as: 'encodedData'
|
||||
property :id, as: 'id'
|
||||
property :kind, as: 'kind'
|
||||
property :layer_id, as: 'layerId'
|
||||
property :self_link, as: 'selfLink'
|
||||
property :updated, as: 'updated'
|
||||
property :volume_id, as: 'volumeId'
|
||||
end
|
||||
end
|
||||
|
||||
class GeoLayerData
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
@ -1172,12 +1196,7 @@ module Google
|
|||
class Geo
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :boundary, as: 'boundary', :class => Array do
|
||||
include Representable::JSON::Collection
|
||||
items class: Google::Apis::BooksV1::GeoLayerData::Geo::Boundary, decorator: Google::Apis::BooksV1::GeoLayerData::Geo::Boundary::Representation
|
||||
|
||||
end
|
||||
|
||||
collection :boundary, as: 'boundary'
|
||||
property :cache_policy, as: 'cachePolicy'
|
||||
property :country_code, as: 'countryCode'
|
||||
property :latitude, as: 'latitude'
|
||||
|
@ -1188,14 +1207,6 @@ module Google
|
|||
property :zoom, as: 'zoom'
|
||||
end
|
||||
|
||||
class Boundary
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :latitude, as: 'latitude'
|
||||
property :longitude, as: 'longitude'
|
||||
end
|
||||
end
|
||||
|
||||
class Viewport
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
@ -1247,8 +1258,7 @@ module Google
|
|||
property :kind, as: 'kind'
|
||||
property :layer_id, as: 'layerId'
|
||||
property :self_link, as: 'selfLink'
|
||||
property :updated, as: 'updated', type: DateTime
|
||||
|
||||
property :updated, as: 'updated'
|
||||
property :volume_annotations_version, as: 'volumeAnnotationsVersion'
|
||||
property :volume_id, as: 'volumeId'
|
||||
end
|
||||
|
@ -1336,13 +1346,12 @@ module Google
|
|||
property :gb_text_position, as: 'gbTextPosition'
|
||||
property :kind, as: 'kind'
|
||||
property :pdf_position, as: 'pdfPosition'
|
||||
property :updated, as: 'updated', type: DateTime
|
||||
|
||||
property :updated, as: 'updated'
|
||||
property :volume_id, as: 'volumeId'
|
||||
end
|
||||
end
|
||||
|
||||
class RequestAccess
|
||||
class RequestAccessData
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :concurrent_access, as: 'concurrentAccess', class: Google::Apis::BooksV1::ConcurrentAccessRestriction, decorator: Google::Apis::BooksV1::ConcurrentAccessRestriction::Representation
|
||||
|
@ -1414,13 +1423,33 @@ module Google
|
|||
class SeriesSubscriptionReleaseInfo
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :cancellation_timestamp_us, :numeric_string => true, as: 'cancellationTimestampUs'
|
||||
property :current_release_info, as: 'currentReleaseInfo', class: Google::Apis::BooksV1::BooksSubscriptionReleaseInfo, decorator: Google::Apis::BooksV1::BooksSubscriptionReleaseInfo::Representation
|
||||
property :cancel_time, as: 'cancelTime'
|
||||
property :current_release_info, as: 'currentReleaseInfo', class: Google::Apis::BooksV1::Series::Series::SeriesSubscriptionReleaseInfo::CurrentReleaseInfo, decorator: Google::Apis::BooksV1::Series::Series::SeriesSubscriptionReleaseInfo::CurrentReleaseInfo::Representation
|
||||
|
||||
property :next_release_info, as: 'nextReleaseInfo', class: Google::Apis::BooksV1::BooksSubscriptionReleaseInfo, decorator: Google::Apis::BooksV1::BooksSubscriptionReleaseInfo::Representation
|
||||
property :next_release_info, as: 'nextReleaseInfo', class: Google::Apis::BooksV1::Series::Series::SeriesSubscriptionReleaseInfo::NextReleaseInfo, decorator: Google::Apis::BooksV1::Series::Series::SeriesSubscriptionReleaseInfo::NextReleaseInfo::Representation
|
||||
|
||||
property :series_subscription_type, as: 'seriesSubscriptionType'
|
||||
end
|
||||
|
||||
class CurrentReleaseInfo
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :amount_in_micros, as: 'amountInMicros'
|
||||
property :currency_code, as: 'currencyCode'
|
||||
property :release_number, as: 'releaseNumber'
|
||||
property :release_time, as: 'releaseTime'
|
||||
end
|
||||
end
|
||||
|
||||
class NextReleaseInfo
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :amount_in_micros, as: 'amountInMicros'
|
||||
property :currency_code, as: 'currencyCode'
|
||||
property :release_number, as: 'releaseNumber'
|
||||
property :release_time, as: 'releaseTime'
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -1602,8 +1631,7 @@ module Google
|
|||
|
||||
collection :offers, as: 'offers', class: Google::Apis::BooksV1::Volume::SaleInfo::Offer, decorator: Google::Apis::BooksV1::Volume::SaleInfo::Offer::Representation
|
||||
|
||||
property :on_sale_date, as: 'onSaleDate', type: DateTime
|
||||
|
||||
property :on_sale_date, as: 'onSaleDate'
|
||||
property :retail_price, as: 'retailPrice', class: Google::Apis::BooksV1::Volume::SaleInfo::RetailPrice, decorator: Google::Apis::BooksV1::Volume::SaleInfo::RetailPrice::Representation
|
||||
|
||||
property :saleability, as: 'saleability'
|
||||
|
@ -1674,8 +1702,7 @@ module Google
|
|||
class UserInfo
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :acquired_time, as: 'acquiredTime', type: DateTime
|
||||
|
||||
property :acquired_time, as: 'acquiredTime'
|
||||
property :acquisition_type, as: 'acquisitionType'
|
||||
property :copy, as: 'copy', class: Google::Apis::BooksV1::Volume::UserInfo::Copy, decorator: Google::Apis::BooksV1::Volume::UserInfo::Copy::Representation
|
||||
|
||||
|
@ -1697,8 +1724,7 @@ module Google
|
|||
property :rental_state, as: 'rentalState'
|
||||
property :review, as: 'review', class: Google::Apis::BooksV1::Review, decorator: Google::Apis::BooksV1::Review::Representation
|
||||
|
||||
property :updated, as: 'updated', type: DateTime
|
||||
|
||||
property :updated, as: 'updated'
|
||||
property :user_uploaded_volume_info, as: 'userUploadedVolumeInfo', class: Google::Apis::BooksV1::Volume::UserInfo::UserUploadedVolumeInfo, decorator: Google::Apis::BooksV1::Volume::UserInfo::UserUploadedVolumeInfo::Representation
|
||||
|
||||
end
|
||||
|
@ -1709,8 +1735,7 @@ module Google
|
|||
property :allowed_character_count, as: 'allowedCharacterCount'
|
||||
property :limit_type, as: 'limitType'
|
||||
property :remaining_character_count, as: 'remainingCharacterCount'
|
||||
property :updated, as: 'updated', type: DateTime
|
||||
|
||||
property :updated, as: 'updated'
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -1769,7 +1794,8 @@ module Google
|
|||
property :published_date, as: 'publishedDate'
|
||||
property :publisher, as: 'publisher'
|
||||
property :ratings_count, as: 'ratingsCount'
|
||||
property :reading_modes, as: 'readingModes'
|
||||
property :reading_modes, as: 'readingModes', class: Google::Apis::BooksV1::Volume::VolumeInfo::ReadingModes, decorator: Google::Apis::BooksV1::Volume::VolumeInfo::ReadingModes::Representation
|
||||
|
||||
property :sample_page_count, as: 'samplePageCount'
|
||||
property :series_info, as: 'seriesInfo', class: Google::Apis::BooksV1::Volumeseriesinfo, decorator: Google::Apis::BooksV1::Volumeseriesinfo::Representation
|
||||
|
||||
|
@ -1815,6 +1841,14 @@ module Google
|
|||
property :image_bubble_version, as: 'imageBubbleVersion'
|
||||
end
|
||||
end
|
||||
|
||||
class ReadingModes
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :image, as: 'image'
|
||||
property :text, as: 'text'
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -1844,8 +1878,7 @@ module Google
|
|||
collection :page_ids, as: 'pageIds'
|
||||
property :selected_text, as: 'selectedText'
|
||||
property :self_link, as: 'selfLink'
|
||||
property :updated, as: 'updated', type: DateTime
|
||||
|
||||
property :updated, as: 'updated'
|
||||
property :volume_id, as: 'volumeId'
|
||||
end
|
||||
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://cloud.google.com/functions
|
||||
module CloudfunctionsV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20200219'
|
||||
REVISION = '20200504'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -1000,10 +1000,13 @@ module Google
|
|||
# Google groups, and domains (such as G Suite). A `role` is a named list of
|
||||
# permissions; each `role` can be an IAM predefined role or a user-created
|
||||
# custom role.
|
||||
# Optionally, a `binding` can specify a `condition`, which is a logical
|
||||
# expression that allows access to a resource only if the expression evaluates
|
||||
# to `true`. A condition can add constraints based on attributes of the
|
||||
# request, the resource, or both.
|
||||
# For some types of Google Cloud resources, a `binding` can also specify a
|
||||
# `condition`, which is a logical expression that allows access to a resource
|
||||
# only if the expression evaluates to `true`. A condition can add constraints
|
||||
# based on attributes of the request, the resource, or both. To learn which
|
||||
# resources support conditions in their IAM policies, see the
|
||||
# [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-
|
||||
# policies).
|
||||
# **JSON example:**
|
||||
# `
|
||||
# "bindings": [
|
||||
|
@ -1018,7 +1021,9 @@ module Google
|
|||
# `,
|
||||
# `
|
||||
# "role": "roles/resourcemanager.organizationViewer",
|
||||
# "members": ["user:eve@example.com"],
|
||||
# "members": [
|
||||
# "user:eve@example.com"
|
||||
# ],
|
||||
# "condition": `
|
||||
# "title": "expirable access",
|
||||
# "description": "Does not grant access after Sep 2020",
|
||||
|
@ -1096,6 +1101,9 @@ module Google
|
|||
# the conditions in the version `3` policy are lost.
|
||||
# If a policy does not include any conditions, operations on that policy may
|
||||
# specify any valid version or leave the field unset.
|
||||
# To learn which resources support conditions in their IAM policies, see the
|
||||
# [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-
|
||||
# policies).
|
||||
# Corresponds to the JSON property `version`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :version
|
||||
|
@ -1141,10 +1149,13 @@ module Google
|
|||
# Google groups, and domains (such as G Suite). A `role` is a named list of
|
||||
# permissions; each `role` can be an IAM predefined role or a user-created
|
||||
# custom role.
|
||||
# Optionally, a `binding` can specify a `condition`, which is a logical
|
||||
# expression that allows access to a resource only if the expression evaluates
|
||||
# to `true`. A condition can add constraints based on attributes of the
|
||||
# request, the resource, or both.
|
||||
# For some types of Google Cloud resources, a `binding` can also specify a
|
||||
# `condition`, which is a logical expression that allows access to a resource
|
||||
# only if the expression evaluates to `true`. A condition can add constraints
|
||||
# based on attributes of the request, the resource, or both. To learn which
|
||||
# resources support conditions in their IAM policies, see the
|
||||
# [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-
|
||||
# policies).
|
||||
# **JSON example:**
|
||||
# `
|
||||
# "bindings": [
|
||||
|
@ -1159,7 +1170,9 @@ module Google
|
|||
# `,
|
||||
# `
|
||||
# "role": "roles/resourcemanager.organizationViewer",
|
||||
# "members": ["user:eve@example.com"],
|
||||
# "members": [
|
||||
# "user:eve@example.com"
|
||||
# ],
|
||||
# "condition": `
|
||||
# "title": "expirable access",
|
||||
# "description": "Does not grant access after Sep 2020",
|
||||
|
@ -1197,8 +1210,7 @@ module Google
|
|||
# OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
|
||||
# the fields in the mask will be modified. If no mask is provided, the
|
||||
# following default mask is used:
|
||||
# paths: "bindings, etag"
|
||||
# This field is only used by Cloud IAM.
|
||||
# `paths: "bindings, etag"`
|
||||
# Corresponds to the JSON property `updateMask`
|
||||
# @return [String]
|
||||
attr_accessor :update_mask
|
||||
|
|
|
@ -410,6 +410,9 @@ module Google
|
|||
# Requests for policies with any conditional bindings must specify version 3.
|
||||
# Policies without any conditional bindings may specify any valid value or
|
||||
# leave the field unset.
|
||||
# To learn which resources support conditions in their IAM policies, see the
|
||||
# [IAM
|
||||
# documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
|
|
|
@ -29,7 +29,7 @@ module Google
|
|||
# @see https://cloud.google.com/monitoring/api/
|
||||
module MonitoringV3
|
||||
VERSION = 'V3'
|
||||
REVISION = '20200420'
|
||||
REVISION = '20200502'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -1435,11 +1435,13 @@ module Google
|
|||
# @return [Google::Apis::MonitoringV3::BasicAuthentication]
|
||||
attr_accessor :auth_info
|
||||
|
||||
# The request body associated with the HTTP request. If content_type is
|
||||
# The request body associated with the HTTP POST request. If content_type is
|
||||
# URL_ENCODED, the body passed in must be URL-encoded. Users can provide a
|
||||
# Content-Length header via the headers field or the API will do so. The maximum
|
||||
# byte size is 1 megabyte. Note: As with all bytes fields JSON representations
|
||||
# are base64 encoded.
|
||||
# Content-Length header via the headers field or the API will do so. If the
|
||||
# request_method is GET and body is not empty, the API will return an error. The
|
||||
# maximum byte size is 1 megabyte. Note: As with all bytes fields JSON
|
||||
# representations are base64 encoded. e.g.: "foo=bar" in URL-encoded form is "
|
||||
# foo%3Dbar" and in base64 encoding is "Zm9vJTI1M0RiYXI=".
|
||||
# Corresponds to the JSON property `body`
|
||||
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
||||
# @return [String]
|
||||
|
@ -1461,7 +1463,7 @@ module Google
|
|||
# @return [Hash<String,String>]
|
||||
attr_accessor :headers
|
||||
|
||||
# Boolean specifiying whether to encrypt the header information. Encryption
|
||||
# Boolean specifying whether to encrypt the header information. Encryption
|
||||
# should be specified for any headers related to authentication that you do not
|
||||
# wish to be seen when retrieving the configuration. The server will be
|
||||
# responsible for encrypting the headers. On Get/List calls, if mask_headers is
|
||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
|||
# @see https://cloud.google.com/service-directory
|
||||
module ServicedirectoryV1beta1
|
||||
VERSION = 'V1beta1'
|
||||
REVISION = '20200415'
|
||||
REVISION = '20200429'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -266,6 +266,9 @@ module Google
|
|||
# Requests for policies with any conditional bindings must specify version 3.
|
||||
# Policies without any conditional bindings may specify any valid value or
|
||||
# leave the field unset.
|
||||
# To learn which resources support conditions in their IAM policies, see the
|
||||
# [IAM
|
||||
# documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
|
||||
# Corresponds to the JSON property `requestedPolicyVersion`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :requested_policy_version
|
||||
|
@ -467,10 +470,13 @@ module Google
|
|||
# Google groups, and domains (such as G Suite). A `role` is a named list of
|
||||
# permissions; each `role` can be an IAM predefined role or a user-created
|
||||
# custom role.
|
||||
# Optionally, a `binding` can specify a `condition`, which is a logical
|
||||
# expression that allows access to a resource only if the expression evaluates
|
||||
# to `true`. A condition can add constraints based on attributes of the
|
||||
# request, the resource, or both.
|
||||
# For some types of Google Cloud resources, a `binding` can also specify a
|
||||
# `condition`, which is a logical expression that allows access to a resource
|
||||
# only if the expression evaluates to `true`. A condition can add constraints
|
||||
# based on attributes of the request, the resource, or both. To learn which
|
||||
# resources support conditions in their IAM policies, see the
|
||||
# [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-
|
||||
# policies).
|
||||
# **JSON example:**
|
||||
# `
|
||||
# "bindings": [
|
||||
|
@ -485,7 +491,9 @@ module Google
|
|||
# `,
|
||||
# `
|
||||
# "role": "roles/resourcemanager.organizationViewer",
|
||||
# "members": ["user:eve@example.com"],
|
||||
# "members": [
|
||||
# "user:eve@example.com"
|
||||
# ],
|
||||
# "condition": `
|
||||
# "title": "expirable access",
|
||||
# "description": "Does not grant access after Sep 2020",
|
||||
|
@ -558,6 +566,9 @@ module Google
|
|||
# the conditions in the version `3` policy are lost.
|
||||
# If a policy does not include any conditions, operations on that policy may
|
||||
# specify any valid version or leave the field unset.
|
||||
# To learn which resources support conditions in their IAM policies, see the
|
||||
# [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-
|
||||
# policies).
|
||||
# Corresponds to the JSON property `version`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :version
|
||||
|
@ -691,10 +702,13 @@ module Google
|
|||
# Google groups, and domains (such as G Suite). A `role` is a named list of
|
||||
# permissions; each `role` can be an IAM predefined role or a user-created
|
||||
# custom role.
|
||||
# Optionally, a `binding` can specify a `condition`, which is a logical
|
||||
# expression that allows access to a resource only if the expression evaluates
|
||||
# to `true`. A condition can add constraints based on attributes of the
|
||||
# request, the resource, or both.
|
||||
# For some types of Google Cloud resources, a `binding` can also specify a
|
||||
# `condition`, which is a logical expression that allows access to a resource
|
||||
# only if the expression evaluates to `true`. A condition can add constraints
|
||||
# based on attributes of the request, the resource, or both. To learn which
|
||||
# resources support conditions in their IAM policies, see the
|
||||
# [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-
|
||||
# policies).
|
||||
# **JSON example:**
|
||||
# `
|
||||
# "bindings": [
|
||||
|
@ -709,7 +723,9 @@ module Google
|
|||
# `,
|
||||
# `
|
||||
# "role": "roles/resourcemanager.organizationViewer",
|
||||
# "members": ["user:eve@example.com"],
|
||||
# "members": [
|
||||
# "user:eve@example.com"
|
||||
# ],
|
||||
# "condition": `
|
||||
# "title": "expirable access",
|
||||
# "description": "Does not grant access after Sep 2020",
|
||||
|
|
|
@ -27,7 +27,7 @@ module Google
|
|||
# @see https://cloud.google.com/service-management/
|
||||
module ServicemanagementV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20200411'
|
||||
REVISION = '20200506'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -635,21 +635,31 @@ module Google
|
|||
|
||||
# Billing related configuration of the service.
|
||||
# The following example shows how to configure monitored resources and metrics
|
||||
# for billing:
|
||||
# for billing, `consumer_destinations` is the only supported destination and
|
||||
# the monitored resources need at least one label key
|
||||
# `cloud.googleapis.com/location` to indicate the location of the billing
|
||||
# usage, using different monitored resources between monitoring and billing is
|
||||
# recommended so they can be evolved independently:
|
||||
# monitored_resources:
|
||||
# - type: library.googleapis.com/branch
|
||||
# - type: library.googleapis.com/billing_branch
|
||||
# labels:
|
||||
# - key: /city
|
||||
# description: The city where the library branch is located in.
|
||||
# - key: /name
|
||||
# description: The name of the branch.
|
||||
# - key: cloud.googleapis.com/location
|
||||
# description: |
|
||||
# Predefined label to support billing location restriction.
|
||||
# - key: city
|
||||
# description: |
|
||||
# Custom label to define the city where the library branch is located
|
||||
# in.
|
||||
# - key: name
|
||||
# description: Custom label to define the name of the library branch.
|
||||
# metrics:
|
||||
# - name: library.googleapis.com/book/borrowed_count
|
||||
# metric_kind: DELTA
|
||||
# value_type: INT64
|
||||
# unit: "1"
|
||||
# billing:
|
||||
# consumer_destinations:
|
||||
# - monitored_resource: library.googleapis.com/branch
|
||||
# - monitored_resource: library.googleapis.com/billing_branch
|
||||
# metrics:
|
||||
# - library.googleapis.com/book/borrowed_count
|
||||
class Billing
|
||||
|
@ -1834,6 +1844,9 @@ module Google
|
|||
# Requests for policies with any conditional bindings must specify version 3.
|
||||
# Policies without any conditional bindings may specify any valid value or
|
||||
# leave the field unset.
|
||||
# To learn which resources support conditions in their IAM policies, see the
|
||||
# [IAM
|
||||
# documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
|
||||
# Corresponds to the JSON property `requestedPolicyVersion`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :requested_policy_version
|
||||
|
@ -3311,10 +3324,13 @@ module Google
|
|||
# Google groups, and domains (such as G Suite). A `role` is a named list of
|
||||
# permissions; each `role` can be an IAM predefined role or a user-created
|
||||
# custom role.
|
||||
# Optionally, a `binding` can specify a `condition`, which is a logical
|
||||
# expression that allows access to a resource only if the expression evaluates
|
||||
# to `true`. A condition can add constraints based on attributes of the
|
||||
# request, the resource, or both.
|
||||
# For some types of Google Cloud resources, a `binding` can also specify a
|
||||
# `condition`, which is a logical expression that allows access to a resource
|
||||
# only if the expression evaluates to `true`. A condition can add constraints
|
||||
# based on attributes of the request, the resource, or both. To learn which
|
||||
# resources support conditions in their IAM policies, see the
|
||||
# [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-
|
||||
# policies).
|
||||
# **JSON example:**
|
||||
# `
|
||||
# "bindings": [
|
||||
|
@ -3329,7 +3345,9 @@ module Google
|
|||
# `,
|
||||
# `
|
||||
# "role": "roles/resourcemanager.organizationViewer",
|
||||
# "members": ["user:eve@example.com"],
|
||||
# "members": [
|
||||
# "user:eve@example.com"
|
||||
# ],
|
||||
# "condition": `
|
||||
# "title": "expirable access",
|
||||
# "description": "Does not grant access after Sep 2020",
|
||||
|
@ -3407,6 +3425,9 @@ module Google
|
|||
# the conditions in the version `3` policy are lost.
|
||||
# If a policy does not include any conditions, operations on that policy may
|
||||
# specify any valid version or leave the field unset.
|
||||
# To learn which resources support conditions in their IAM policies, see the
|
||||
# [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-
|
||||
# policies).
|
||||
# Corresponds to the JSON property `version`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :version
|
||||
|
@ -3751,21 +3772,31 @@ module Google
|
|||
|
||||
# Billing related configuration of the service.
|
||||
# The following example shows how to configure monitored resources and metrics
|
||||
# for billing:
|
||||
# for billing, `consumer_destinations` is the only supported destination and
|
||||
# the monitored resources need at least one label key
|
||||
# `cloud.googleapis.com/location` to indicate the location of the billing
|
||||
# usage, using different monitored resources between monitoring and billing is
|
||||
# recommended so they can be evolved independently:
|
||||
# monitored_resources:
|
||||
# - type: library.googleapis.com/branch
|
||||
# - type: library.googleapis.com/billing_branch
|
||||
# labels:
|
||||
# - key: /city
|
||||
# description: The city where the library branch is located in.
|
||||
# - key: /name
|
||||
# description: The name of the branch.
|
||||
# - key: cloud.googleapis.com/location
|
||||
# description: |
|
||||
# Predefined label to support billing location restriction.
|
||||
# - key: city
|
||||
# description: |
|
||||
# Custom label to define the city where the library branch is located
|
||||
# in.
|
||||
# - key: name
|
||||
# description: Custom label to define the name of the library branch.
|
||||
# metrics:
|
||||
# - name: library.googleapis.com/book/borrowed_count
|
||||
# metric_kind: DELTA
|
||||
# value_type: INT64
|
||||
# unit: "1"
|
||||
# billing:
|
||||
# consumer_destinations:
|
||||
# - monitored_resource: library.googleapis.com/branch
|
||||
# - monitored_resource: library.googleapis.com/billing_branch
|
||||
# metrics:
|
||||
# - library.googleapis.com/book/borrowed_count
|
||||
# Corresponds to the JSON property `billing`
|
||||
|
@ -4193,10 +4224,13 @@ module Google
|
|||
# Google groups, and domains (such as G Suite). A `role` is a named list of
|
||||
# permissions; each `role` can be an IAM predefined role or a user-created
|
||||
# custom role.
|
||||
# Optionally, a `binding` can specify a `condition`, which is a logical
|
||||
# expression that allows access to a resource only if the expression evaluates
|
||||
# to `true`. A condition can add constraints based on attributes of the
|
||||
# request, the resource, or both.
|
||||
# For some types of Google Cloud resources, a `binding` can also specify a
|
||||
# `condition`, which is a logical expression that allows access to a resource
|
||||
# only if the expression evaluates to `true`. A condition can add constraints
|
||||
# based on attributes of the request, the resource, or both. To learn which
|
||||
# resources support conditions in their IAM policies, see the
|
||||
# [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-
|
||||
# policies).
|
||||
# **JSON example:**
|
||||
# `
|
||||
# "bindings": [
|
||||
|
@ -4211,7 +4245,9 @@ module Google
|
|||
# `,
|
||||
# `
|
||||
# "role": "roles/resourcemanager.organizationViewer",
|
||||
# "members": ["user:eve@example.com"],
|
||||
# "members": [
|
||||
# "user:eve@example.com"
|
||||
# ],
|
||||
# "condition": `
|
||||
# "title": "expirable access",
|
||||
# "description": "Does not grant access after Sep 2020",
|
||||
|
@ -4249,8 +4285,7 @@ module Google
|
|||
# OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
|
||||
# the fields in the mask will be modified. If no mask is provided, the
|
||||
# following default mask is used:
|
||||
# paths: "bindings, etag"
|
||||
# This field is only used by Cloud IAM.
|
||||
# `paths: "bindings, etag"`
|
||||
# Corresponds to the JSON property `updateMask`
|
||||
# @return [String]
|
||||
attr_accessor :update_mask
|
||||
|
|
|
@ -487,7 +487,7 @@ module Google
|
|||
|
||||
# Sets the access control policy on the specified resource. Replaces any
|
||||
# existing policy.
|
||||
# Can return Public Errors: NOT_FOUND, INVALID_ARGUMENT and PERMISSION_DENIED
|
||||
# Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
|
||||
# @param [String] resource
|
||||
# REQUIRED: The resource for which the policy is being specified.
|
||||
# See the operation documentation for the appropriate value for this field.
|
||||
|
@ -523,7 +523,7 @@ module Google
|
|||
|
||||
# Returns permissions that a caller has on the specified resource.
|
||||
# If the resource does not exist, this will return an empty set of
|
||||
# permissions, not a NOT_FOUND error.
|
||||
# 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.
|
||||
|
@ -801,7 +801,7 @@ module Google
|
|||
|
||||
# Sets the access control policy on the specified resource. Replaces any
|
||||
# existing policy.
|
||||
# Can return Public Errors: NOT_FOUND, INVALID_ARGUMENT and PERMISSION_DENIED
|
||||
# Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
|
||||
# @param [String] resource
|
||||
# REQUIRED: The resource for which the policy is being specified.
|
||||
# See the operation documentation for the appropriate value for this field.
|
||||
|
@ -837,7 +837,7 @@ module Google
|
|||
|
||||
# Returns permissions that a caller has on the specified resource.
|
||||
# If the resource does not exist, this will return an empty set of
|
||||
# permissions, not a NOT_FOUND error.
|
||||
# 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.
|
||||
|
|
Loading…
Reference in New Issue