Autogenerated update (2020-06-10)

Update:
- cloudasset_v1
- cloudasset_v1beta1
- cloudasset_v1p1beta1
- cloudasset_v1p4beta1
- cloudbuild_v1
- cloudbuild_v1alpha1
- cloudbuild_v1alpha2
- dlp_v2
- file_v1
- file_v1beta1
- gmail_v1
- memcache_v1beta2
- osconfig_v1beta
- pagespeedonline_v5
- people_v1
This commit is contained in:
Google APIs 2020-06-10 00:38:16 +00:00
parent 5852c0c734
commit e62553d4ba
38 changed files with 1342 additions and 1783 deletions

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/asset-inventory/docs/quickstart # @see https://cloud.google.com/asset-inventory/docs/quickstart
module CloudassetV1 module CloudassetV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20200515' REVISION = '20200605'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -59,7 +59,7 @@ module Google
# @return [Array<String>] # @return [Array<String>]
attr_accessor :ancestors attr_accessor :ancestors
# The type of the asset. Example: "compute.googleapis.com/Disk" # The type of the asset. Example: `compute.googleapis.com/Disk`
# See [Supported asset # See [Supported asset
# types](https://cloud.google.com/asset-inventory/docs/supported-asset-types) # types](https://cloud.google.com/asset-inventory/docs/supported-asset-types)
# for more information. # for more information.
@ -133,8 +133,8 @@ module Google
attr_accessor :iam_policy attr_accessor :iam_policy
# The full name of the asset. Example: # The full name of the asset. Example:
# "//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/ # `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/
# instance1" # instance1`
# See [Resource # See [Resource
# names](https://cloud.google.com/apis/design/resource_names#full_resource_name) # names](https://cloud.google.com/apis/design/resource_names#full_resource_name)
# for more information. # for more information.
@ -170,6 +170,12 @@ module Google
# @return [Google::Apis::CloudassetV1::GoogleIdentityAccesscontextmanagerV1ServicePerimeter] # @return [Google::Apis::CloudassetV1::GoogleIdentityAccesscontextmanagerV1ServicePerimeter]
attr_accessor :service_perimeter attr_accessor :service_perimeter
# The last update timestamp of an asset. update_time is updated when
# create/update/delete operation is performed.
# Corresponds to the JSON property `updateTime`
# @return [String]
attr_accessor :update_time
def initialize(**args) def initialize(**args)
update!(**args) update!(**args)
end end
@ -185,6 +191,7 @@ module Google
@org_policy = args[:org_policy] if args.key?(:org_policy) @org_policy = args[:org_policy] if args.key?(:org_policy)
@resource = args[:resource] if args.key?(:resource) @resource = args[:resource] if args.key?(:resource)
@service_perimeter = args[:service_perimeter] if args.key?(:service_perimeter) @service_perimeter = args[:service_perimeter] if args.key?(:service_perimeter)
@update_time = args[:update_time] if args.key?(:update_time)
end end
end end
@ -200,7 +207,7 @@ module Google
# ` # `
# "audit_configs": [ # "audit_configs": [
# ` # `
# "service": "allServices" # "service": "allServices",
# "audit_log_configs": [ # "audit_log_configs": [
# ` # `
# "log_type": "DATA_READ", # "log_type": "DATA_READ",
@ -209,18 +216,18 @@ module Google
# ] # ]
# `, # `,
# ` # `
# "log_type": "DATA_WRITE", # "log_type": "DATA_WRITE"
# `, # `,
# ` # `
# "log_type": "ADMIN_READ", # "log_type": "ADMIN_READ"
# ` # `
# ] # ]
# `, # `,
# ` # `
# "service": "sampleservice.googleapis.com" # "service": "sampleservice.googleapis.com",
# "audit_log_configs": [ # "audit_log_configs": [
# ` # `
# "log_type": "DATA_READ", # "log_type": "DATA_READ"
# `, # `,
# ` # `
# "log_type": "DATA_WRITE", # "log_type": "DATA_WRITE",
@ -272,7 +279,7 @@ module Google
# ] # ]
# `, # `,
# ` # `
# "log_type": "DATA_WRITE", # "log_type": "DATA_WRITE"
# ` # `
# ] # ]
# ` # `
@ -323,7 +330,7 @@ module Google
end end
end end
# A BigQuery destination. # A BigQuery destination for exporting assets to.
class BigQueryDestination class BigQueryDestination
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -495,31 +502,6 @@ module Google
end end
end end
# Explanation about the IAM policy search result.
class Explanation
include Google::Apis::Core::Hashable
# The map from roles to their included permissions that match the
# permission query (i.e., a query containing `policy.role.permissions:`).
# Example: if query `policy.role.permissions : "compute.disk.get"`
# matches a policy binding that contains owner role, the
# matched_permissions will be `"roles/owner": ["compute.disk.get"]`. The
# roles can also be found in the returned `policy` bindings. Note that the
# map is populated only for requests with permission queries.
# Corresponds to the JSON property `matchedPermissions`
# @return [Hash<String,Google::Apis::CloudassetV1::Permissions>]
attr_accessor :matched_permissions
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@matched_permissions = args[:matched_permissions] if args.key?(:matched_permissions)
end
end
# Export asset request. # Export asset request.
class ExportAssetsRequest class ExportAssetsRequest
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -1600,117 +1582,6 @@ module Google
end end
end end
# A result of IAM Policy search, containing information of an IAM policy.
class IamPolicySearchResult
include Google::Apis::Core::Hashable
# Explanation about the IAM policy search result.
# Corresponds to the JSON property `explanation`
# @return [Google::Apis::CloudassetV1::Explanation]
attr_accessor :explanation
# 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::CloudassetV1::Policy]
attr_accessor :policy
# The project that the associated GCP resource belongs to, in the form of
# projects/`PROJECT_NUMBER`. If an IAM policy is set on a resource (like VM
# instance, Cloud Storage bucket), the project field will indicate the
# project that contains the resource. If an IAM policy is set on a folder or
# orgnization, the project field will be empty.
# To search against the `project`:
# * specify the `scope` field as this project in your search request.
# Corresponds to the JSON property `project`
# @return [String]
attr_accessor :project
# The full resource name of the resource associated with this IAM policy.
# Example:
# "//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/
# instance1".
# See [Cloud Asset Inventory Resource Name
# Format](https://cloud.google.com/asset-inventory/docs/resource-name-format)
# for more information.
# To search against the `resource`:
# * use a field query. Example: `resource : "organizations/123"`
# Corresponds to the JSON property `resource`
# @return [String]
attr_accessor :resource
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@explanation = args[:explanation] if args.key?(:explanation)
@policy = args[:policy] if args.key?(:policy)
@project = args[:project] if args.key?(:project)
@resource = args[:resource] if args.key?(:resource)
end
end
# #
class ListFeedsResponse class ListFeedsResponse
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -1798,7 +1669,7 @@ module Google
class OutputConfig class OutputConfig
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# A BigQuery destination. # A BigQuery destination for exporting assets to.
# Corresponds to the JSON property `bigqueryDestination` # Corresponds to the JSON property `bigqueryDestination`
# @return [Google::Apis::CloudassetV1::BigQueryDestination] # @return [Google::Apis::CloudassetV1::BigQueryDestination]
attr_accessor :bigquery_destination attr_accessor :bigquery_destination
@ -1819,25 +1690,6 @@ module Google
end end
end end
# IAM permissions
class Permissions
include Google::Apis::Core::Hashable
# A list of permissions. A sample permission string: "compute.disk.get".
# 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
# An Identity and Access Management (IAM) policy, which specifies access # An Identity and Access Management (IAM) policy, which specifies access
# controls for Google Cloud resources. # controls for Google Cloud resources.
# A `Policy` is a collection of `bindings`. A `binding` binds one or more # A `Policy` is a collection of `bindings`. A `binding` binds one or more
@ -1998,7 +1850,7 @@ module Google
# The URL of the discovery document containing the resource's JSON schema. # The URL of the discovery document containing the resource's JSON schema.
# Example: # Example:
# "https://www.googleapis.com/discovery/v1/apis/compute/v1/rest" # `https://www.googleapis.com/discovery/v1/apis/compute/v1/rest`
# This value is unspecified for resources that do not have an API based on a # This value is unspecified for resources that do not have an API based on a
# discovery document, such as Cloud Bigtable. # discovery document, such as Cloud Bigtable.
# Corresponds to the JSON property `discoveryDocumentUri` # Corresponds to the JSON property `discoveryDocumentUri`
@ -2006,7 +1858,7 @@ module Google
attr_accessor :discovery_document_uri attr_accessor :discovery_document_uri
# The JSON schema name listed in the discovery document. Example: # The JSON schema name listed in the discovery document. Example:
# "Project" # `Project`
# This value is unspecified for resources that do not have an API based on a # This value is unspecified for resources that do not have an API based on a
# discovery document, such as Cloud Bigtable. # discovery document, such as Cloud Bigtable.
# Corresponds to the JSON property `discoveryName` # Corresponds to the JSON property `discoveryName`
@ -2027,7 +1879,7 @@ module Google
# [Cloud IAM policy # [Cloud IAM policy
# hierarchy](https://cloud.google.com/iam/docs/overview#policy_hierarchy). # hierarchy](https://cloud.google.com/iam/docs/overview#policy_hierarchy).
# Example: # Example:
# "//cloudresourcemanager.googleapis.com/projects/my_project_123" # `//cloudresourcemanager.googleapis.com/projects/my_project_123`
# For third-party assets, this field may be set differently. # For third-party assets, this field may be set differently.
# Corresponds to the JSON property `parent` # Corresponds to the JSON property `parent`
# @return [String] # @return [String]
@ -2035,13 +1887,13 @@ module Google
# The REST URL for accessing the resource. An HTTP `GET` request using this # The REST URL for accessing the resource. An HTTP `GET` request using this
# URL returns the resource itself. Example: # URL returns the resource itself. Example:
# "https://cloudresourcemanager.googleapis.com/v1/projects/my-project-123" # `https://cloudresourcemanager.googleapis.com/v1/projects/my-project-123`
# This value is unspecified for resources without a REST API. # This value is unspecified for resources without a REST API.
# Corresponds to the JSON property `resourceUrl` # Corresponds to the JSON property `resourceUrl`
# @return [String] # @return [String]
attr_accessor :resource_url attr_accessor :resource_url
# The API version. Example: "v1" # The API version. Example: `v1`
# Corresponds to the JSON property `version` # Corresponds to the JSON property `version`
# @return [String] # @return [String]
attr_accessor :version attr_accessor :version
@ -2062,175 +1914,6 @@ module Google
end end
end end
# A result of Resource Search, containing information of a cloud resoure.
class ResourceSearchResult
include Google::Apis::Core::Hashable
# The additional attributes of this resource. The attributes may vary from
# one resource type to another. Examples: "projectId" for Project,
# "dnsName" for DNS ManagedZone.
# To search against the `additional_attributes`:
# * use a free text query to match the attributes values. Example: to search
# additional_attributes = ` dnsName: "foobar" `, you can issue a query
# `"foobar"`.
# Corresponds to the JSON property `additionalAttributes`
# @return [Hash<String,Object>]
attr_accessor :additional_attributes
# The type of this resource. Example: "compute.googleapis.com/Disk".
# To search against the `asset_type`:
# * specify the `asset_type` field in your search request.
# Corresponds to the JSON property `assetType`
# @return [String]
attr_accessor :asset_type
# One or more paragraphs of text description of this resource. Maximum length
# could be up to 1M bytes.
# To search against the `description`:
# * use a field query. Example: `description : "*important instance*"`
# * use a free text query. Example: `"*important instance*"`
# Corresponds to the JSON property `description`
# @return [String]
attr_accessor :description
# The display name of this resource.
# To search against the `display_name`:
# * use a field query. Example: `displayName : "My Instance"`
# * use a free text query. Example: `"My Instance"`
# Corresponds to the JSON property `displayName`
# @return [String]
attr_accessor :display_name
# Labels associated with this resource. See [Labelling and grouping GCP
# resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-
# your-google-cloud-platform-resources)
# for more information.
# To search against the `labels`:
# * use a field query, as following:
# - query on any label's key or value. Example: `labels : "prod"`
# - query by a given label. Example: `labels.env : "prod"`
# - query by a given label'sexistence. Example: `labels.env : *`
# * use a free text query. Example: `"prod"`
# Corresponds to the JSON property `labels`
# @return [Hash<String,String>]
attr_accessor :labels
# Location can be "global", regional like "us-east1", or zonal like
# "us-west1-b".
# To search against the `location`:
# * use a field query. Example: `location : "us-west*"`
# * use a free text query. Example: `"us-west*"`
# Corresponds to the JSON property `location`
# @return [String]
attr_accessor :location
# The full resource name of this resource. Example:
# "//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/
# instance1".
# See [Cloud Asset Inventory Resource Name
# Format](https://cloud.google.com/asset-inventory/docs/resource-name-format)
# for more information.
# To search against the `name`:
# * use a field query. Example: `name : "instance1"`
# * use a free text query. Example: `"instance1"`
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# Network tags associated with this resource. Like labels, network tags are a
# type of annotations used to group GCP resources. See [Labelling GCP
# resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-
# your-google-cloud-platform-resources)
# for more information.
# To search against the `network_tags`:
# * use a field query. Example: `networkTags : "internal"`
# * use a free text query. Example: `"internal"`
# Corresponds to the JSON property `networkTags`
# @return [Array<String>]
attr_accessor :network_tags
# The project that this resource belongs to, in the form of
# projects/`PROJECT_NUMBER`.
# To search against the `project`:
# * specify the `scope` field as this project in your search request.
# Corresponds to the JSON property `project`
# @return [String]
attr_accessor :project
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@additional_attributes = args[:additional_attributes] if args.key?(:additional_attributes)
@asset_type = args[:asset_type] if args.key?(:asset_type)
@description = args[:description] if args.key?(:description)
@display_name = args[:display_name] if args.key?(:display_name)
@labels = args[:labels] if args.key?(:labels)
@location = args[:location] if args.key?(:location)
@name = args[:name] if args.key?(:name)
@network_tags = args[:network_tags] if args.key?(:network_tags)
@project = args[:project] if args.key?(:project)
end
end
# Search all IAM policies response.
class SearchAllIamPoliciesResponse
include Google::Apis::Core::Hashable
# Set if there are more results than those appearing in this response; to get
# the next set of results, call this method again, using this value as the
# `page_token`.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
# A list of IamPolicy that match the search query. Related information such
# as the associated resource is returned along with the policy.
# Corresponds to the JSON property `results`
# @return [Array<Google::Apis::CloudassetV1::IamPolicySearchResult>]
attr_accessor :results
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
@results = args[:results] if args.key?(:results)
end
end
# Search all resources response.
class SearchAllResourcesResponse
include Google::Apis::Core::Hashable
# If there are more results than those appearing in this response, then
# `next_page_token` is included. To get the next set of results, call this
# method again using the value of `next_page_token` as `page_token`.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
# A list of Resources that match the search query. It contains the resource
# standard metadata information.
# Corresponds to the JSON property `results`
# @return [Array<Google::Apis::CloudassetV1::ResourceSearchResult>]
attr_accessor :results
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
@results = args[:results] if args.key?(:results)
end
end
# The `Status` type defines a logical error model that is suitable for # The `Status` type defines a logical error model that is suitable for
# different programming environments, including REST APIs and RPC APIs. It is # different programming environments, including REST APIs and RPC APIs. It is
# used by [gRPC](https://github.com/grpc). Each `Status` message contains # used by [gRPC](https://github.com/grpc). Each `Status` message contains
@ -2291,7 +1974,7 @@ module Google
attr_accessor :deleted attr_accessor :deleted
alias_method :deleted?, :deleted alias_method :deleted?, :deleted
# A time window specified by its "start_time" and "end_time". # A time window specified by its `start_time` and `end_time`.
# Corresponds to the JSON property `window` # Corresponds to the JSON property `window`
# @return [Google::Apis::CloudassetV1::TimeWindow] # @return [Google::Apis::CloudassetV1::TimeWindow]
attr_accessor :window attr_accessor :window
@ -2308,7 +1991,7 @@ module Google
end end
end end
# A time window specified by its "start_time" and "end_time". # A time window specified by its `start_time` and `end_time`.
class TimeWindow class TimeWindow
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable

View File

@ -70,12 +70,6 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class Explanation
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ExportAssetsRequest class ExportAssetsRequest
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -190,12 +184,6 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class IamPolicySearchResult
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListFeedsResponse class ListFeedsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -214,12 +202,6 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class Permissions
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Policy class Policy
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -238,24 +220,6 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class ResourceSearchResult
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SearchAllIamPoliciesResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SearchAllResourcesResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Status class Status
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -298,6 +262,7 @@ module Google
property :service_perimeter, as: 'servicePerimeter', class: Google::Apis::CloudassetV1::GoogleIdentityAccesscontextmanagerV1ServicePerimeter, decorator: Google::Apis::CloudassetV1::GoogleIdentityAccesscontextmanagerV1ServicePerimeter::Representation property :service_perimeter, as: 'servicePerimeter', class: Google::Apis::CloudassetV1::GoogleIdentityAccesscontextmanagerV1ServicePerimeter, decorator: Google::Apis::CloudassetV1::GoogleIdentityAccesscontextmanagerV1ServicePerimeter::Representation
property :update_time, as: 'updateTime'
end end
end end
@ -360,14 +325,6 @@ module Google
end end
end end
class Explanation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
hash :matched_permissions, as: 'matchedPermissions', class: Google::Apis::CloudassetV1::Permissions, decorator: Google::Apis::CloudassetV1::Permissions::Representation
end
end
class ExportAssetsRequest class ExportAssetsRequest
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -566,18 +523,6 @@ module Google
end end
end end
class IamPolicySearchResult
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :explanation, as: 'explanation', class: Google::Apis::CloudassetV1::Explanation, decorator: Google::Apis::CloudassetV1::Explanation::Representation
property :policy, as: 'policy', class: Google::Apis::CloudassetV1::Policy, decorator: Google::Apis::CloudassetV1::Policy::Representation
property :project, as: 'project'
property :resource, as: 'resource'
end
end
class ListFeedsResponse class ListFeedsResponse
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -608,13 +553,6 @@ module Google
end end
end end
class Permissions
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :permissions, as: 'permissions'
end
end
class Policy class Policy
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -647,39 +585,6 @@ module Google
end end
end end
class ResourceSearchResult
# @private
class Representation < Google::Apis::Core::JsonRepresentation
hash :additional_attributes, as: 'additionalAttributes'
property :asset_type, as: 'assetType'
property :description, as: 'description'
property :display_name, as: 'displayName'
hash :labels, as: 'labels'
property :location, as: 'location'
property :name, as: 'name'
collection :network_tags, as: 'networkTags'
property :project, as: 'project'
end
end
class SearchAllIamPoliciesResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :next_page_token, as: 'nextPageToken'
collection :results, as: 'results', class: Google::Apis::CloudassetV1::IamPolicySearchResult, decorator: Google::Apis::CloudassetV1::IamPolicySearchResult::Representation
end
end
class SearchAllResourcesResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :next_page_token, as: 'nextPageToken'
collection :results, as: 'results', class: Google::Apis::CloudassetV1::ResourceSearchResult, decorator: Google::Apis::CloudassetV1::ResourceSearchResult::Representation
end
end
class Status class Status
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -254,10 +254,10 @@ module Google
end end
# Batch gets the update history of assets that overlap a time window. # 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 # 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. # attached IAM POLICY both exist. This can create gaps in the output history.
# Otherwise, this API outputs history with asset in both non-delete or
# deleted status.
# If a specified asset does not exist, this API returns an INVALID_ARGUMENT # If a specified asset does not exist, this API returns an INVALID_ARGUMENT
# error. # error.
# @param [String] parent # @param [String] parent
@ -311,13 +311,15 @@ module Google
end end
# Exports assets with time and resource types to a given Cloud Storage # Exports assets with time and resource types to a given Cloud Storage
# location. The output format is newline-delimited JSON. Each line represents # location/BigQuery table. For Cloud Storage location destinations, the
# a google.cloud.asset.v1.Asset in the JSON format. # output format is newline-delimited JSON. Each line represents a
# This API implements the google.longrunning.Operation API allowing you # google.cloud.asset.v1.Asset in the JSON format; for BigQuery table
# to keep track of the export. We recommend intervals of at least 2 seconds # destinations, the output table stores the fields in asset proto as columns.
# with exponential retry to poll the export operation result. For # This API implements the google.longrunning.Operation API
# regular-size resource parent, the export operation usually finishes within # , which allows you to keep track of the export. We recommend intervals of
# 5 minutes. # at least 2 seconds with exponential retry to poll the export operation
# result. For regular-size resource parent, the export operation usually
# finishes within 5 minutes.
# @param [String] parent # @param [String] parent
# Required. The relative name of the root asset. This can only be an # Required. The relative name of the root asset. This can only be an
# organization number (such as "organizations/123"), a project ID (such as # organization number (such as "organizations/123"), a project ID (such as
@ -352,183 +354,6 @@ module Google
command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Searches all the IAM policies within the given accessible scope (e.g., a
# project, a folder or an organization). Callers should have
# cloud.assets.SearchAllIamPolicies permission upon the requested scope,
# otherwise the request will be rejected.
# @param [String] scope
# Required. A scope can be a project, a folder or an organization. The search is
# limited to the IAM policies within the `scope`.
# The allowed values are:
# * projects/`PROJECT_ID`
# * projects/`PROJECT_NUMBER`
# * folders/`FOLDER_NUMBER`
# * organizations/`ORGANIZATION_NUMBER`
# @param [Fixnum] page_size
# Optional. The page size for search result pagination. Page size is capped at
# 500 even
# if a larger value is given. If set to zero, server will pick an appropriate
# default. Returned results may be fewer than requested. When this happens,
# there could be more results as long as `next_page_token` is returned.
# @param [String] page_token
# Optional. If present, retrieve the next batch of results from the preceding
# call to
# this method. `page_token` must be the value of `next_page_token` from the
# previous response. The values of all other method parameters must be
# identical to those in the previous call.
# @param [String] query
# Optional. The query statement. An empty query can be specified to search all
# the IAM
# policies within the given `scope`.
# Examples:
# * `policy : "amy@gmail.com"` to find Cloud IAM policy bindings that
# specify user "amy@gmail.com".
# * `policy : "roles/compute.admin"` to find Cloud IAM policy bindings that
# specify the Compute Admin role.
# * `policy.role.permissions : "storage.buckets.update"` to find Cloud IAM
# policy bindings that specify a role containing "storage.buckets.update"
# permission.
# * `resource : "organizations/123"` to find Cloud IAM policy bindings that
# are set on "organizations/123".
# * `(resource : ("organizations/123" OR "folders/1234") AND policy : "amy")`
# to find Cloud IAM policy bindings that are set on "organizations/123" or
# "folders/1234", and also specify user "amy".
# See [how to construct a
# query](https://cloud.google.com/asset-inventory/docs/searching-iam-policies#
# how_to_construct_a_query)
# for more details.
# @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::SearchAllIamPoliciesResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudassetV1::SearchAllIamPoliciesResponse]
#
# @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 search_all_iam_policies(scope, page_size: nil, page_token: nil, query: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+scope}:searchAllIamPolicies', options)
command.response_representation = Google::Apis::CloudassetV1::SearchAllIamPoliciesResponse::Representation
command.response_class = Google::Apis::CloudassetV1::SearchAllIamPoliciesResponse
command.params['scope'] = scope unless scope.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['query'] = query unless query.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Searches all the resources within the given accessible scope (e.g., a
# project, a folder or an organization). Callers should have
# cloud.assets.SearchAllResources permission upon the requested scope,
# otherwise the request will be rejected.
# @param [String] scope
# Required. A scope can be a project, a folder or an organization. The search is
# limited to the resources within the `scope`.
# The allowed values are:
# * projects/`PROJECT_ID`
# * projects/`PROJECT_NUMBER`
# * folders/`FOLDER_NUMBER`
# * organizations/`ORGANIZATION_NUMBER`
# @param [Array<String>, String] asset_types
# Optional. A list of asset types that this request searches for. If empty, it
# will
# search all the [searchable asset
# types](https://cloud.google.com/asset-inventory/docs/supported-asset-types#
# searchable_asset_types).
# @param [String] order_by
# Optional. A comma separated list of fields specifying the sorting order of the
# results. The default order is ascending. Add " DESC" after the field name
# to indicate descending order. Redundant space characters are ignored.
# Example: "location DESC, name". See [supported resource metadata
# fields](https://cloud.google.com/asset-inventory/docs/searching-resources#
# query_on_resource_metadata_fields)
# for more details.
# @param [Fixnum] page_size
# Optional. The page size for search result pagination. Page size is capped at
# 500 even
# if a larger value is given. If set to zero, server will pick an appropriate
# default. Returned results may be fewer than requested. When this happens,
# there could be more results as long as `next_page_token` is returned.
# @param [String] page_token
# Optional. If present, then retrieve the next batch of results from the
# preceding call
# to this method. `page_token` must be the value of `next_page_token` from
# the previous response. The values of all other method parameters, must be
# identical to those in the previous call.
# @param [String] query
# Optional. The query statement. An empty query can be specified to search all
# the
# resources of certain `asset_types` within the given `scope`.
# Examples:
# * `name : "Important"` to find Cloud resources whose name contains
# "Important" as a word.
# * `displayName : "Impor*"` to find Cloud resources whose display name
# contains "Impor" as a word prefix.
# * `description : "*por*"` to find Cloud resources whose description
# contains "por" as a substring.
# * `location : "us-west*"` to find Cloud resources whose location is
# prefixed with "us-west".
# * `labels : "prod"` to find Cloud resources whose labels contain "prod" as
# a key or value.
# * `labels.env : "prod"` to find Cloud resources which have a label "env"
# and its value is "prod".
# * `labels.env : *` to find Cloud resources which have a label "env".
# * `"Important"` to find Cloud resources which contain "Important" as a word
# in any of the searchable fields.
# * `"Impor*"` to find Cloud resources which contain "Impor" as a word prefix
# in any of the searchable fields.
# * `"*por*"` to find Cloud resources which contain "por" as a substring in
# any of the searchable fields.
# * `("Important" AND location : ("us-west1" OR "global"))` to find Cloud
# resources which contain "Important" as a word in any of the searchable
# fields and are also located in the "us-west1" region or the "global"
# location.
# See [how to construct a
# query](https://cloud.google.com/asset-inventory/docs/searching-resources#
# how_to_construct_a_query)
# for more details.
# @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::SearchAllResourcesResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudassetV1::SearchAllResourcesResponse]
#
# @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 search_all_resources(scope, asset_types: nil, order_by: nil, page_size: nil, page_token: nil, query: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+scope}:searchAllResources', options)
command.response_representation = Google::Apis::CloudassetV1::SearchAllResourcesResponse::Representation
command.response_class = Google::Apis::CloudassetV1::SearchAllResourcesResponse
command.params['scope'] = scope unless scope.nil?
command.query['assetTypes'] = asset_types unless asset_types.nil?
command.query['orderBy'] = order_by unless order_by.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['query'] = query unless query.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
protected protected

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/asset-inventory/docs/quickstart # @see https://cloud.google.com/asset-inventory/docs/quickstart
module CloudassetV1beta1 module CloudassetV1beta1
VERSION = 'V1beta1' VERSION = 'V1beta1'
REVISION = '20200515' REVISION = '20200605'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -137,7 +137,7 @@ module Google
# ` # `
# "audit_configs": [ # "audit_configs": [
# ` # `
# "service": "allServices" # "service": "allServices",
# "audit_log_configs": [ # "audit_log_configs": [
# ` # `
# "log_type": "DATA_READ", # "log_type": "DATA_READ",
@ -146,18 +146,18 @@ module Google
# ] # ]
# `, # `,
# ` # `
# "log_type": "DATA_WRITE", # "log_type": "DATA_WRITE"
# `, # `,
# ` # `
# "log_type": "ADMIN_READ", # "log_type": "ADMIN_READ"
# ` # `
# ] # ]
# `, # `,
# ` # `
# "service": "sampleservice.googleapis.com" # "service": "sampleservice.googleapis.com",
# "audit_log_configs": [ # "audit_log_configs": [
# ` # `
# "log_type": "DATA_READ", # "log_type": "DATA_READ"
# `, # `,
# ` # `
# "log_type": "DATA_WRITE", # "log_type": "DATA_WRITE",
@ -209,7 +209,7 @@ module Google
# ] # ]
# `, # `,
# ` # `
# "log_type": "DATA_WRITE", # "log_type": "DATA_WRITE"
# ` # `
# ] # ]
# ` # `

View File

@ -122,10 +122,10 @@ module Google
end end
# Batch gets the update history of assets that overlap a time window. # 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 # 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. # attached IAM POLICY both exist. This can create gaps in the output history.
# Otherwise, this API outputs history with asset in both non-delete or
# deleted status.
# If a specified asset does not exist, this API returns an INVALID_ARGUMENT # If a specified asset does not exist, this API returns an INVALID_ARGUMENT
# error. # error.
# @param [String] parent # @param [String] parent
@ -254,10 +254,10 @@ module Google
end end
# Batch gets the update history of assets that overlap a time window. # 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 # 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. # attached IAM POLICY both exist. This can create gaps in the output history.
# Otherwise, this API outputs history with asset in both non-delete or
# deleted status.
# If a specified asset does not exist, this API returns an INVALID_ARGUMENT # If a specified asset does not exist, this API returns an INVALID_ARGUMENT
# error. # error.
# @param [String] parent # @param [String] parent

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/asset-inventory/docs/quickstart # @see https://cloud.google.com/asset-inventory/docs/quickstart
module CloudassetV1p1beta1 module CloudassetV1p1beta1
VERSION = 'V1p1beta1' VERSION = 'V1p1beta1'
REVISION = '20200515' REVISION = '20200605'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -34,7 +34,7 @@ module Google
# ` # `
# "audit_configs": [ # "audit_configs": [
# ` # `
# "service": "allServices" # "service": "allServices",
# "audit_log_configs": [ # "audit_log_configs": [
# ` # `
# "log_type": "DATA_READ", # "log_type": "DATA_READ",
@ -43,18 +43,18 @@ module Google
# ] # ]
# `, # `,
# ` # `
# "log_type": "DATA_WRITE", # "log_type": "DATA_WRITE"
# `, # `,
# ` # `
# "log_type": "ADMIN_READ", # "log_type": "ADMIN_READ"
# ` # `
# ] # ]
# `, # `,
# ` # `
# "service": "sampleservice.googleapis.com" # "service": "sampleservice.googleapis.com",
# "audit_log_configs": [ # "audit_log_configs": [
# ` # `
# "log_type": "DATA_READ", # "log_type": "DATA_READ"
# `, # `,
# ` # `
# "log_type": "DATA_WRITE", # "log_type": "DATA_WRITE",
@ -106,7 +106,7 @@ module Google
# ] # ]
# `, # `,
# ` # `
# "log_type": "DATA_WRITE", # "log_type": "DATA_WRITE"
# ` # `
# ] # ]
# ` # `

View File

@ -47,12 +47,12 @@ module Google
@batch_path = 'batch' @batch_path = 'batch'
end end
# Searches all the IAM policies under a given accessible CRM scope # Searches all the IAM policies within a given accessible CRM scope
# (project/folder/organization). This RPC gives callers # (project/folder/organization). This RPC gives callers especially
# especially admins the ability to search all the IAM policies under a scope, # administrators the ability to search all the IAM policies within a scope,
# even if they don't have .getIamPolicy permission of all the IAM policies. # even if they don't have `.getIamPolicy` permission of all the IAM policies.
# Callers should have cloud.assets.SearchAllIamPolicies permission on the # Callers should have `cloud.assets.SearchAllIamPolicies` permission on the
# requested scope, otherwise it will be rejected. # requested scope, otherwise the request will be rejected.
# @param [String] scope # @param [String] scope
# Required. The relative name of an asset. The search is limited to the # Required. The relative name of an asset. The search is limited to the
# resources # resources
@ -74,8 +74,7 @@ module Google
# previous response. The values of all other method parameters must be # previous response. The values of all other method parameters must be
# identical to those in the previous call. # identical to those in the previous call.
# @param [String] query # @param [String] query
# Optional. The query statement. # Optional. The query statement. Examples:
# Examples:
# * "policy:myuser@mydomain.com" # * "policy:myuser@mydomain.com"
# * "policy:(myuser@mydomain.com viewer)" # * "policy:(myuser@mydomain.com viewer)"
# @param [String] fields # @param [String] fields
@ -108,12 +107,12 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Searches all the resources under a given accessible CRM scope # Searches all the resources within a given accessible CRM scope
# (project/folder/organization). This RPC gives callers # (project/folder/organization). This RPC gives callers especially
# especially admins the ability to search all the resources under a scope, # administrators the ability to search all the resources within a scope, even
# even if they don't have .get permission of all the resources. Callers # if they don't have `.get` permission of all the resources. Callers should
# should have cloud.assets.SearchAllResources permission on the requested # have `cloud.assets.SearchAllResources` permission on the requested scope,
# scope, otherwise it will be rejected. # otherwise the request will be rejected.
# @param [String] scope # @param [String] scope
# Required. The relative name of an asset. The search is limited to the # Required. The relative name of an asset. The search is limited to the
# resources # resources
@ -128,9 +127,9 @@ module Google
# search all the supported asset types. # search all the supported asset types.
# @param [String] order_by # @param [String] order_by
# Optional. A comma separated list of fields specifying the sorting order of the # Optional. A comma separated list of fields specifying the sorting order of the
# results. The default order is ascending. Add " desc" after the field name # results. The default order is ascending. Add ` DESC` after the field name
# to indicate descending order. Redundant space characters are ignored. For # to indicate descending order. Redundant space characters are ignored. For
# example, " foo , bar desc ". # example, ` location DESC , name `.
# @param [Fixnum] page_size # @param [Fixnum] page_size
# Optional. The page size for search result pagination. Page size is capped at # Optional. The page size for search result pagination. Page size is capped at
# 500 even # 500 even

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/asset-inventory/docs/quickstart # @see https://cloud.google.com/asset-inventory/docs/quickstart
module CloudassetV1p4beta1 module CloudassetV1p4beta1
VERSION = 'V1p4beta1' VERSION = 'V1p4beta1'
REVISION = '20200515' REVISION = '20200605'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -511,7 +511,8 @@ module Google
# @return [Google::Apis::CloudassetV1p4beta1::GoogleCloudAssetV1p4beta1AnalysisState] # @return [Google::Apis::CloudassetV1p4beta1::GoogleCloudAssetV1p4beta1AnalysisState]
attr_accessor :analysis_state attr_accessor :analysis_state
# The [full resource name](https://aip.dev/122#full-resource-names). # The [full resource
# name](https://cloud.google.com/asset-inventory/docs/resource-name-format)
# Corresponds to the JSON property `fullResourceName` # Corresponds to the JSON property `fullResourceName`
# @return [String] # @return [String]
attr_accessor :full_resource_name attr_accessor :full_resource_name
@ -603,14 +604,20 @@ module Google
# within # within
# the parent will be analyzed. This can only be an organization number (such # the parent will be analyzed. This can only be an organization number (such
# as "organizations/123") or a folder number (such as "folders/123"). # as "organizations/123") or a folder number (such as "folders/123").
# To know how to get organization id, visit [here
# ](https://cloud.google.com/resource-manager/docs/creating-managing-
# organization#retrieving_your_organization_id).
# To know how to get folder id, visit [here
# ](https://cloud.google.com/resource-manager/docs/creating-managing-folders#
# viewing_or_listing_folders_and_projects).
# Corresponds to the JSON property `parent` # Corresponds to the JSON property `parent`
# @return [String] # @return [String]
attr_accessor :parent attr_accessor :parent
# Specifies the resource to analyze for access policies, which may be set # Specifies the resource to analyze for access policies, which may be set
# directly on the resource, or on ancestors such as organizations, folders or # directly on the resource, or on ancestors such as organizations, folders or
# projects. At least one of ResourceSelector, IdentitySelector or # projects. Either ResourceSelector or IdentitySelector must be
# AccessSelector must be specified in a request. # specified in a request.
# Corresponds to the JSON property `resourceSelector` # Corresponds to the JSON property `resourceSelector`
# @return [Google::Apis::CloudassetV1p4beta1::ResourceSelector] # @return [Google::Apis::CloudassetV1p4beta1::ResourceSelector]
attr_accessor :resource_selector attr_accessor :resource_selector
@ -639,7 +646,9 @@ module Google
# @return [Array<Google::Apis::CloudassetV1p4beta1::GoogleCloudAssetV1p4beta1AccessControlList>] # @return [Array<Google::Apis::CloudassetV1p4beta1::GoogleCloudAssetV1p4beta1AccessControlList>]
attr_accessor :access_control_lists attr_accessor :access_control_lists
# The full name of the resource to which the iam_binding policy attaches. # The [full resource
# name](https://cloud.google.com/asset-inventory/docs/resource-name-format)
# of the resource to which the iam_binding policy attaches.
# Corresponds to the JSON property `attachedResourceFullName` # Corresponds to the JSON property `attachedResourceFullName`
# @return [String] # @return [String]
attr_accessor :attached_resource_full_name attr_accessor :attached_resource_full_name
@ -685,6 +694,13 @@ module Google
# Required. The identity appear in the form of members in # Required. The identity appear in the form of members in
# [IAM policy # [IAM policy
# binding](https://cloud.google.com/iam/reference/rest/v1/Binding). # binding](https://cloud.google.com/iam/reference/rest/v1/Binding).
# The examples of supported forms are:
# "user:mike@example.com",
# "group:admins@example.com",
# "domain:google.com",
# "serviceAccount:my-project-id@appspot.gserviceaccount.com".
# Notice that wildcard characters (such as * and ?) are not supported.
# You must give a specific identity.
# Corresponds to the JSON property `identity` # Corresponds to the JSON property `identity`
# @return [String] # @return [String]
attr_accessor :identity attr_accessor :identity
@ -859,14 +875,16 @@ module Google
# Specifies the resource to analyze for access policies, which may be set # Specifies the resource to analyze for access policies, which may be set
# directly on the resource, or on ancestors such as organizations, folders or # directly on the resource, or on ancestors such as organizations, folders or
# projects. At least one of ResourceSelector, IdentitySelector or # projects. Either ResourceSelector or IdentitySelector must be
# AccessSelector must be specified in a request. # specified in a request.
class ResourceSelector class ResourceSelector
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Required. The [full resource # Required. The [full resource
# name](https://cloud.google.com/apis/design/resource_names#full_resource_name) # name](https://cloud.google.com/asset-inventory/docs/resource-name-format)
# . # of a resource of [supported resource
# types](https://cloud.google.com/asset-inventory/docs/supported-asset-types#
# analyzable_asset_types).
# Corresponds to the JSON property `fullResourceName` # Corresponds to the JSON property `fullResourceName`
# @return [String] # @return [String]
attr_accessor :full_resource_name attr_accessor :full_resource_name

View File

@ -54,6 +54,12 @@ module Google
# within # within
# the parent will be analyzed. This can only be an organization number (such # the parent will be analyzed. This can only be an organization number (such
# as "organizations/123") or a folder number (such as "folders/123"). # as "organizations/123") or a folder number (such as "folders/123").
# To know how to get organization id, visit [here
# ](https://cloud.google.com/resource-manager/docs/creating-managing-
# organization#retrieving_your_organization_id).
# To know how to get folder id, visit [here
# ](https://cloud.google.com/resource-manager/docs/creating-managing-folders#
# viewing_or_listing_folders_and_projects).
# @param [Array<String>, String] analysis_query_access_selector_permissions # @param [Array<String>, String] analysis_query_access_selector_permissions
# Optional. The permissions to appear in result. # Optional. The permissions to appear in result.
# @param [Array<String>, String] analysis_query_access_selector_roles # @param [Array<String>, String] analysis_query_access_selector_roles
@ -62,16 +68,25 @@ module Google
# Required. The identity appear in the form of members in # Required. The identity appear in the form of members in
# [IAM policy # [IAM policy
# binding](https://cloud.google.com/iam/reference/rest/v1/Binding). # binding](https://cloud.google.com/iam/reference/rest/v1/Binding).
# The examples of supported forms are:
# "user:mike@example.com",
# "group:admins@example.com",
# "domain:google.com",
# "serviceAccount:my-project-id@appspot.gserviceaccount.com".
# Notice that wildcard characters (such as * and ?) are not supported.
# You must give a specific identity.
# @param [String] analysis_query_resource_selector_full_resource_name # @param [String] analysis_query_resource_selector_full_resource_name
# Required. The [full resource # Required. The [full resource
# name](https://cloud.google.com/apis/design/resource_names#full_resource_name) # name](https://cloud.google.com/asset-inventory/docs/resource-name-format)
# . # of a resource of [supported resource
# types](https://cloud.google.com/asset-inventory/docs/supported-asset-types#
# analyzable_asset_types).
# @param [Boolean] options_analyze_service_account_impersonation # @param [Boolean] options_analyze_service_account_impersonation
# Optional. If true, the response will include access analysis from identities # Optional. If true, the response will include access analysis from identities
# to # to
# resources via service account impersonation. This is a very expensive # resources via service account impersonation. This is a very expensive
# operation, because many derived queries will be executed. We highly # operation, because many derived queries will be executed. We highly
# recommend you use ExportIamPolicyAnalysis rpc instead. # recommend you use AssetService.ExportIamPolicyAnalysis rpc instead.
# For example, if the request analyzes for which resources user A has # For example, if the request analyzes for which resources user A has
# permission P, and there's an IAM policy states user A has # permission P, and there's an IAM policy states user A has
# iam.serviceAccounts.getAccessToken permission to a service account SA, # iam.serviceAccounts.getAccessToken permission to a service account SA,
@ -175,6 +190,12 @@ module Google
# within # within
# the parent will be analyzed. This can only be an organization number (such # the parent will be analyzed. This can only be an organization number (such
# as "organizations/123") or a folder number (such as "folders/123"). # as "organizations/123") or a folder number (such as "folders/123").
# To know how to get organization id, visit [here
# ](https://cloud.google.com/resource-manager/docs/creating-managing-
# organization#retrieving_your_organization_id).
# To know how to get folder id, visit [here
# ](https://cloud.google.com/resource-manager/docs/creating-managing-folders#
# viewing_or_listing_folders_and_projects).
# @param [Google::Apis::CloudassetV1p4beta1::ExportIamPolicyAnalysisRequest] export_iam_policy_analysis_request_object # @param [Google::Apis::CloudassetV1p4beta1::ExportIamPolicyAnalysisRequest] export_iam_policy_analysis_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/cloud-build/docs/ # @see https://cloud.google.com/cloud-build/docs/
module CloudbuildV1 module CloudbuildV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20200601' REVISION = '20200606'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -381,8 +381,8 @@ module Google
# @return [String] # @return [String]
attr_accessor :log_streaming_option attr_accessor :log_streaming_option
# Option to specify the logging mode, which determines where the logs are # Option to specify the logging mode, which determines if and where build
# stored. # logs are stored.
# Corresponds to the JSON property `logging` # Corresponds to the JSON property `logging`
# @return [String] # @return [String]
attr_accessor :logging attr_accessor :logging

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/cloud-build/docs/ # @see https://cloud.google.com/cloud-build/docs/
module CloudbuildV1alpha1 module CloudbuildV1alpha1
VERSION = 'V1alpha1' VERSION = 'V1alpha1'
REVISION = '20200601' REVISION = '20200606'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -381,8 +381,8 @@ module Google
# @return [String] # @return [String]
attr_accessor :log_streaming_option attr_accessor :log_streaming_option
# Option to specify the logging mode, which determines where the logs are # Option to specify the logging mode, which determines if and where build
# stored. # logs are stored.
# Corresponds to the JSON property `logging` # Corresponds to the JSON property `logging`
# @return [String] # @return [String]
attr_accessor :logging attr_accessor :logging

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/cloud-build/docs/ # @see https://cloud.google.com/cloud-build/docs/
module CloudbuildV1alpha2 module CloudbuildV1alpha2
VERSION = 'V1alpha2' VERSION = 'V1alpha2'
REVISION = '20200601' REVISION = '20200606'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -381,8 +381,8 @@ module Google
# @return [String] # @return [String]
attr_accessor :log_streaming_option attr_accessor :log_streaming_option
# Option to specify the logging mode, which determines where the logs are # Option to specify the logging mode, which determines if and where build
# stored. # logs are stored.
# Corresponds to the JSON property `logging` # Corresponds to the JSON property `logging`
# @return [String] # @return [String]
attr_accessor :logging attr_accessor :logging

View File

@ -27,7 +27,7 @@ module Google
# @see https://cloud.google.com/dlp/docs/ # @see https://cloud.google.com/dlp/docs/
module DlpV2 module DlpV2
VERSION = 'V2' VERSION = 'V2'
REVISION = '20200516' REVISION = '20200606'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -36,7 +36,8 @@ module Google
# Publish a message into given Pub/Sub topic when DlpJob has completed. The # Publish a message into given Pub/Sub topic when DlpJob has completed. The
# message contains a single field, `DlpJobName`, which is equal to the # message contains a single field, `DlpJobName`, which is equal to the
# finished job's # finished job's
# [`DlpJob.name`](/dlp/docs/reference/rest/v2/projects.dlpJobs#DlpJob). # [`DlpJob.name`](https://cloud.google.com/dlp/docs/reference/rest/v2/projects.
# dlpJobs#DlpJob).
# Compatible with: Inspect, Risk # Compatible with: Inspect, Risk
# Corresponds to the JSON property `pubSub` # Corresponds to the JSON property `pubSub`
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2PublishToPubSub] # @return [Google::Apis::DlpV2::GooglePrivacyDlpV2PublishToPubSub]
@ -1576,8 +1577,8 @@ module Google
# Message for detecting output from deidentification transformations # Message for detecting output from deidentification transformations
# such as # such as
# [`CryptoReplaceFfxFpeConfig`](/dlp/docs/reference/rest/v2/organizations. # [`CryptoReplaceFfxFpeConfig`](https://cloud.google.com/dlp/docs/reference/rest/
# deidentifyTemplates#cryptoreplaceffxfpeconfig). # v2/organizations.deidentifyTemplates#cryptoreplaceffxfpeconfig).
# These types of transformations are # These types of transformations are
# those that perform pseudonymization, thereby producing a "surrogate" as # those that perform pseudonymization, thereby producing a "surrogate" as
# output. This should be used in conjunction with a field on the # output. This should be used in conjunction with a field on the
@ -4895,7 +4896,8 @@ module Google
# Publish a message into given Pub/Sub topic when DlpJob has completed. The # Publish a message into given Pub/Sub topic when DlpJob has completed. The
# message contains a single field, `DlpJobName`, which is equal to the # message contains a single field, `DlpJobName`, which is equal to the
# finished job's # finished job's
# [`DlpJob.name`](/dlp/docs/reference/rest/v2/projects.dlpJobs#DlpJob). # [`DlpJob.name`](https://cloud.google.com/dlp/docs/reference/rest/v2/projects.
# dlpJobs#DlpJob).
# Compatible with: Inspect, Risk # Compatible with: Inspect, Risk
class GooglePrivacyDlpV2PublishToPubSub class GooglePrivacyDlpV2PublishToPubSub
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -5975,8 +5977,8 @@ module Google
# Message for detecting output from deidentification transformations # Message for detecting output from deidentification transformations
# such as # such as
# [`CryptoReplaceFfxFpeConfig`](/dlp/docs/reference/rest/v2/organizations. # [`CryptoReplaceFfxFpeConfig`](https://cloud.google.com/dlp/docs/reference/rest/
# deidentifyTemplates#cryptoreplaceffxfpeconfig). # v2/organizations.deidentifyTemplates#cryptoreplaceffxfpeconfig).
# These types of transformations are # These types of transformations are
# those that perform pseudonymization, thereby producing a "surrogate" as # those that perform pseudonymization, thereby producing a "surrogate" as
# output. This should be used in conjunction with a field on the # output. This should be used in conjunction with a field on the

View File

@ -62,7 +62,8 @@ module Google
# @param [String] location_id # @param [String] location_id
# Deprecated. This field has no effect. # Deprecated. This field has no effect.
# @param [String] parent # @param [String] parent
# The parent resource name, for example locations/`location_id`. # The parent resource name.
# - Format:locations/[LOCATION-ID]
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -97,7 +98,8 @@ module Google
# supports. See https://cloud.google.com/dlp/docs/infotypes-reference to # supports. See https://cloud.google.com/dlp/docs/infotypes-reference to
# learn more. # learn more.
# @param [String] parent # @param [String] parent
# The parent resource name, for example locations/`location_id`. # The parent resource name.
# - Format:locations/[LOCATION-ID]
# @param [String] filter # @param [String] filter
# filter to only return infoTypes supported by certain parts of the # filter to only return infoTypes supported by certain parts of the
# API. Defaults to supported_by=INSPECT. # API. Defaults to supported_by=INSPECT.
@ -142,8 +144,11 @@ module Google
# See https://cloud.google.com/dlp/docs/creating-templates-deid to learn # See https://cloud.google.com/dlp/docs/creating-templates-deid to learn
# more. # more.
# @param [String] parent # @param [String] parent
# Required. The parent resource name, for example projects/my-project-id or # Required. Parent resource name.
# organizations/my-org-id. # - Format:projects/[PROJECT-ID]
# - Format:organizations/[ORGANIZATION-ID]
# - Format:projects/[PROJECT-ID]/locations/[LOCATION-ID]
# - Format:organizations/[ORGANIZATION-ID]/locations/[LOCATION-ID]
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CreateDeidentifyTemplateRequest] google_privacy_dlp_v2_create_deidentify_template_request_object # @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CreateDeidentifyTemplateRequest] google_privacy_dlp_v2_create_deidentify_template_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -248,8 +253,11 @@ module Google
# See https://cloud.google.com/dlp/docs/creating-templates-deid to learn # See https://cloud.google.com/dlp/docs/creating-templates-deid to learn
# more. # more.
# @param [String] parent # @param [String] parent
# Required. The parent resource name, for example projects/my-project-id or # Required. Parent resource name.
# organizations/my-org-id. # - Format:projects/[PROJECT-ID]
# - Format:organizations/[ORGANIZATION-ID]
# - Format:projects/[PROJECT-ID]/locations/[LOCATION-ID]
# - Format:organizations/[ORGANIZATION-ID]/locations/[LOCATION-ID]
# @param [String] location_id # @param [String] location_id
# Deprecated. This field has no effect. # Deprecated. This field has no effect.
# @param [String] order_by # @param [String] order_by
@ -342,8 +350,11 @@ module Google
# for inspecting content, images, and storage. # for inspecting content, images, and storage.
# See https://cloud.google.com/dlp/docs/creating-templates to learn more. # See https://cloud.google.com/dlp/docs/creating-templates to learn more.
# @param [String] parent # @param [String] parent
# Required. The parent resource name, for example projects/my-project-id or # Required. Parent resource name.
# organizations/my-org-id. # - Format:projects/[PROJECT-ID]
# - Format:organizations/[ORGANIZATION-ID]
# - Format:projects/[PROJECT-ID]/locations/[LOCATION-ID]
# - Format:organizations/[ORGANIZATION-ID]/locations/[LOCATION-ID]
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CreateInspectTemplateRequest] google_privacy_dlp_v2_create_inspect_template_request_object # @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CreateInspectTemplateRequest] google_privacy_dlp_v2_create_inspect_template_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -445,8 +456,11 @@ module Google
# Lists InspectTemplates. # Lists InspectTemplates.
# See https://cloud.google.com/dlp/docs/creating-templates to learn more. # See https://cloud.google.com/dlp/docs/creating-templates to learn more.
# @param [String] parent # @param [String] parent
# Required. The parent resource name, for example projects/my-project-id or # Required. Parent resource name.
# organizations/my-org-id. # - Format:projects/[PROJECT-ID]
# - Format:organizations/[ORGANIZATION-ID]
# - Format:projects/[PROJECT-ID]/locations/[LOCATION-ID]
# - Format:organizations/[ORGANIZATION-ID]/locations/[LOCATION-ID]
# @param [String] location_id # @param [String] location_id
# Deprecated. This field has no effect. # Deprecated. This field has no effect.
# @param [String] order_by # @param [String] order_by
@ -538,8 +552,11 @@ module Google
# See https://cloud.google.com/dlp/docs/creating-templates-deid to learn # See https://cloud.google.com/dlp/docs/creating-templates-deid to learn
# more. # more.
# @param [String] parent # @param [String] parent
# Required. The parent resource name, for example projects/my-project-id or # Required. Parent resource name.
# organizations/my-org-id. # - Format:projects/[PROJECT-ID]
# - Format:organizations/[ORGANIZATION-ID]
# - Format:projects/[PROJECT-ID]/locations/[LOCATION-ID]
# - Format:organizations/[ORGANIZATION-ID]/locations/[LOCATION-ID]
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CreateDeidentifyTemplateRequest] google_privacy_dlp_v2_create_deidentify_template_request_object # @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CreateDeidentifyTemplateRequest] google_privacy_dlp_v2_create_deidentify_template_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -644,8 +661,11 @@ module Google
# See https://cloud.google.com/dlp/docs/creating-templates-deid to learn # See https://cloud.google.com/dlp/docs/creating-templates-deid to learn
# more. # more.
# @param [String] parent # @param [String] parent
# Required. The parent resource name, for example projects/my-project-id or # Required. Parent resource name.
# organizations/my-org-id. # - Format:projects/[PROJECT-ID]
# - Format:organizations/[ORGANIZATION-ID]
# - Format:projects/[PROJECT-ID]/locations/[LOCATION-ID]
# - Format:organizations/[ORGANIZATION-ID]/locations/[LOCATION-ID]
# @param [String] location_id # @param [String] location_id
# Deprecated. This field has no effect. # Deprecated. This field has no effect.
# @param [String] order_by # @param [String] order_by
@ -738,8 +758,11 @@ module Google
# for inspecting content, images, and storage. # for inspecting content, images, and storage.
# See https://cloud.google.com/dlp/docs/creating-templates to learn more. # See https://cloud.google.com/dlp/docs/creating-templates to learn more.
# @param [String] parent # @param [String] parent
# Required. The parent resource name, for example projects/my-project-id or # Required. Parent resource name.
# organizations/my-org-id. # - Format:projects/[PROJECT-ID]
# - Format:organizations/[ORGANIZATION-ID]
# - Format:projects/[PROJECT-ID]/locations/[LOCATION-ID]
# - Format:organizations/[ORGANIZATION-ID]/locations/[LOCATION-ID]
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CreateInspectTemplateRequest] google_privacy_dlp_v2_create_inspect_template_request_object # @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CreateInspectTemplateRequest] google_privacy_dlp_v2_create_inspect_template_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -841,8 +864,11 @@ module Google
# Lists InspectTemplates. # Lists InspectTemplates.
# See https://cloud.google.com/dlp/docs/creating-templates to learn more. # See https://cloud.google.com/dlp/docs/creating-templates to learn more.
# @param [String] parent # @param [String] parent
# Required. The parent resource name, for example projects/my-project-id or # Required. Parent resource name.
# organizations/my-org-id. # - Format:projects/[PROJECT-ID]
# - Format:organizations/[ORGANIZATION-ID]
# - Format:projects/[PROJECT-ID]/locations/[LOCATION-ID]
# - Format:organizations/[ORGANIZATION-ID]/locations/[LOCATION-ID]
# @param [String] location_id # @param [String] location_id
# Deprecated. This field has no effect. # Deprecated. This field has no effect.
# @param [String] order_by # @param [String] order_by
@ -933,8 +959,11 @@ module Google
# See https://cloud.google.com/dlp/docs/creating-stored-infotypes to # See https://cloud.google.com/dlp/docs/creating-stored-infotypes to
# learn more. # learn more.
# @param [String] parent # @param [String] parent
# Required. The parent resource name, for example projects/my-project-id or # Required. Parent resource name.
# organizations/my-org-id. # - Format:projects/[PROJECT-ID]
# - Format:organizations/[ORGANIZATION-ID]
# - Format:projects/[PROJECT-ID]/locations/[LOCATION-ID]
# - Format:organizations/[ORGANIZATION-ID]/locations/[LOCATION-ID]
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CreateStoredInfoTypeRequest] google_privacy_dlp_v2_create_stored_info_type_request_object # @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CreateStoredInfoTypeRequest] google_privacy_dlp_v2_create_stored_info_type_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -1038,8 +1067,11 @@ module Google
# See https://cloud.google.com/dlp/docs/creating-stored-infotypes to # See https://cloud.google.com/dlp/docs/creating-stored-infotypes to
# learn more. # learn more.
# @param [String] parent # @param [String] parent
# Required. The parent resource name, for example projects/my-project-id or # Required. Parent resource name.
# organizations/my-org-id. # - Format:projects/[PROJECT-ID]
# - Format:organizations/[ORGANIZATION-ID]
# - Format:projects/[PROJECT-ID]/locations/[LOCATION-ID]
# - Format:organizations/[ORGANIZATION-ID]/locations/[LOCATION-ID]
# @param [String] location_id # @param [String] location_id
# Deprecated. This field has no effect. # Deprecated. This field has no effect.
# @param [String] order_by # @param [String] order_by
@ -1133,8 +1165,11 @@ module Google
# See https://cloud.google.com/dlp/docs/creating-stored-infotypes to # See https://cloud.google.com/dlp/docs/creating-stored-infotypes to
# learn more. # learn more.
# @param [String] parent # @param [String] parent
# Required. The parent resource name, for example projects/my-project-id or # Required. Parent resource name.
# organizations/my-org-id. # - Format:projects/[PROJECT-ID]
# - Format:organizations/[ORGANIZATION-ID]
# - Format:projects/[PROJECT-ID]/locations/[LOCATION-ID]
# - Format:organizations/[ORGANIZATION-ID]/locations/[LOCATION-ID]
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CreateStoredInfoTypeRequest] google_privacy_dlp_v2_create_stored_info_type_request_object # @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CreateStoredInfoTypeRequest] google_privacy_dlp_v2_create_stored_info_type_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -1238,8 +1273,11 @@ module Google
# See https://cloud.google.com/dlp/docs/creating-stored-infotypes to # See https://cloud.google.com/dlp/docs/creating-stored-infotypes to
# learn more. # learn more.
# @param [String] parent # @param [String] parent
# Required. The parent resource name, for example projects/my-project-id or # Required. Parent resource name.
# organizations/my-org-id. # - Format:projects/[PROJECT-ID]
# - Format:organizations/[ORGANIZATION-ID]
# - Format:projects/[PROJECT-ID]/locations/[LOCATION-ID]
# - Format:organizations/[ORGANIZATION-ID]/locations/[LOCATION-ID]
# @param [String] location_id # @param [String] location_id
# Deprecated. This field has no effect. # Deprecated. This field has no effect.
# @param [String] order_by # @param [String] order_by
@ -1337,7 +1375,9 @@ module Google
# system will automatically choose what detectors to run. By default this may # system will automatically choose what detectors to run. By default this may
# be all types, but may change over time as detectors are updated. # be all types, but may change over time as detectors are updated.
# @param [String] parent # @param [String] parent
# The parent resource name, for example projects/my-project-id. # Parent resource name.
# - Format:projects/[PROJECT-ID]
# - Format:projects/[PROJECT-ID]/locations/[LOCATION-ID]
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyContentRequest] google_privacy_dlp_v2_deidentify_content_request_object # @param [Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyContentRequest] google_privacy_dlp_v2_deidentify_content_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -1376,7 +1416,9 @@ module Google
# For how to guides, see https://cloud.google.com/dlp/docs/inspecting-images # For how to guides, see https://cloud.google.com/dlp/docs/inspecting-images
# and https://cloud.google.com/dlp/docs/inspecting-text, # and https://cloud.google.com/dlp/docs/inspecting-text,
# @param [String] parent # @param [String] parent
# The parent resource name, for example projects/my-project-id. # Parent resource name.
# - Format:projects/[PROJECT-ID]
# - Format:projects/[PROJECT-ID]/locations/[LOCATION-ID]
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2InspectContentRequest] google_privacy_dlp_v2_inspect_content_request_object # @param [Google::Apis::DlpV2::GooglePrivacyDlpV2InspectContentRequest] google_privacy_dlp_v2_inspect_content_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -1414,6 +1456,8 @@ module Google
# to learn more. # to learn more.
# @param [String] parent # @param [String] parent
# Required. The parent resource name. # Required. The parent resource name.
# - Format:projects/[PROJECT-ID]
# - Format:projects/[PROJECT-ID]/locations/[LOCATION-ID]
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2ReidentifyContentRequest] google_privacy_dlp_v2_reidentify_content_request_object # @param [Google::Apis::DlpV2::GooglePrivacyDlpV2ReidentifyContentRequest] google_privacy_dlp_v2_reidentify_content_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -1449,8 +1493,11 @@ module Google
# See https://cloud.google.com/dlp/docs/creating-templates-deid to learn # See https://cloud.google.com/dlp/docs/creating-templates-deid to learn
# more. # more.
# @param [String] parent # @param [String] parent
# Required. The parent resource name, for example projects/my-project-id or # Required. Parent resource name.
# organizations/my-org-id. # - Format:projects/[PROJECT-ID]
# - Format:organizations/[ORGANIZATION-ID]
# - Format:projects/[PROJECT-ID]/locations/[LOCATION-ID]
# - Format:organizations/[ORGANIZATION-ID]/locations/[LOCATION-ID]
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CreateDeidentifyTemplateRequest] google_privacy_dlp_v2_create_deidentify_template_request_object # @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CreateDeidentifyTemplateRequest] google_privacy_dlp_v2_create_deidentify_template_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -1555,8 +1602,11 @@ module Google
# See https://cloud.google.com/dlp/docs/creating-templates-deid to learn # See https://cloud.google.com/dlp/docs/creating-templates-deid to learn
# more. # more.
# @param [String] parent # @param [String] parent
# Required. The parent resource name, for example projects/my-project-id or # Required. Parent resource name.
# organizations/my-org-id. # - Format:projects/[PROJECT-ID]
# - Format:organizations/[ORGANIZATION-ID]
# - Format:projects/[PROJECT-ID]/locations/[LOCATION-ID]
# - Format:organizations/[ORGANIZATION-ID]/locations/[LOCATION-ID]
# @param [String] location_id # @param [String] location_id
# Deprecated. This field has no effect. # Deprecated. This field has no effect.
# @param [String] order_by # @param [String] order_by
@ -1689,7 +1739,9 @@ module Google
# system will automatically choose what detectors to run. By default this may # system will automatically choose what detectors to run. By default this may
# be all types, but may change over time as detectors are updated. # be all types, but may change over time as detectors are updated.
# @param [String] parent # @param [String] parent
# Required. The parent resource name, for example projects/my-project-id. # Required. Parent resource name.
# - Format:projects/[PROJECT-ID]
# - Format:projects/[PROJECT-ID]/locations/[LOCATION-ID]
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CreateDlpJobRequest] google_privacy_dlp_v2_create_dlp_job_request_object # @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CreateDlpJobRequest] google_privacy_dlp_v2_create_dlp_job_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -1790,7 +1842,9 @@ module Google
# See https://cloud.google.com/dlp/docs/inspecting-storage and # See https://cloud.google.com/dlp/docs/inspecting-storage and
# https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more. # https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more.
# @param [String] parent # @param [String] parent
# Required. The parent resource name, for example projects/my-project-id. # Required. Parent resource name.
# - Format:projects/[PROJECT-ID]
# - Format:projects/[PROJECT-ID]/locations/[LOCATION-ID]
# @param [String] filter # @param [String] filter
# Allows filtering. # Allows filtering.
# Supported syntax: # Supported syntax:
@ -1875,7 +1929,9 @@ module Google
# system will automatically choose what detectors to run. By default this may # system will automatically choose what detectors to run. By default this may
# be all types, but may change over time as detectors are updated. # be all types, but may change over time as detectors are updated.
# @param [String] parent # @param [String] parent
# The parent resource name, for example projects/my-project-id. # The parent resource name.
# - Format:projects/[PROJECT-ID]
# - Format:projects/[PROJECT-ID]/locations/[LOCATION-ID]
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2RedactImageRequest] google_privacy_dlp_v2_redact_image_request_object # @param [Google::Apis::DlpV2::GooglePrivacyDlpV2RedactImageRequest] google_privacy_dlp_v2_redact_image_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -1910,8 +1966,11 @@ module Google
# for inspecting content, images, and storage. # for inspecting content, images, and storage.
# See https://cloud.google.com/dlp/docs/creating-templates to learn more. # See https://cloud.google.com/dlp/docs/creating-templates to learn more.
# @param [String] parent # @param [String] parent
# Required. The parent resource name, for example projects/my-project-id or # Required. Parent resource name.
# organizations/my-org-id. # - Format:projects/[PROJECT-ID]
# - Format:organizations/[ORGANIZATION-ID]
# - Format:projects/[PROJECT-ID]/locations/[LOCATION-ID]
# - Format:organizations/[ORGANIZATION-ID]/locations/[LOCATION-ID]
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CreateInspectTemplateRequest] google_privacy_dlp_v2_create_inspect_template_request_object # @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CreateInspectTemplateRequest] google_privacy_dlp_v2_create_inspect_template_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -2013,8 +2072,11 @@ module Google
# Lists InspectTemplates. # Lists InspectTemplates.
# See https://cloud.google.com/dlp/docs/creating-templates to learn more. # See https://cloud.google.com/dlp/docs/creating-templates to learn more.
# @param [String] parent # @param [String] parent
# Required. The parent resource name, for example projects/my-project-id or # Required. Parent resource name.
# organizations/my-org-id. # - Format:projects/[PROJECT-ID]
# - Format:organizations/[ORGANIZATION-ID]
# - Format:projects/[PROJECT-ID]/locations/[LOCATION-ID]
# - Format:organizations/[ORGANIZATION-ID]/locations/[LOCATION-ID]
# @param [String] location_id # @param [String] location_id
# Deprecated. This field has no effect. # Deprecated. This field has no effect.
# @param [String] order_by # @param [String] order_by
@ -2140,7 +2202,9 @@ module Google
# sensitive information on a set schedule. # sensitive information on a set schedule.
# See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more. # See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more.
# @param [String] parent # @param [String] parent
# Required. The parent resource name, for example projects/my-project-id. # Required. Parent resource name.
# - Format:projects/[PROJECT-ID]
# - Format:projects/[PROJECT-ID]/locations/[LOCATION-ID]
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CreateJobTriggerRequest] google_privacy_dlp_v2_create_job_trigger_request_object # @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CreateJobTriggerRequest] google_privacy_dlp_v2_create_job_trigger_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -2238,7 +2302,9 @@ module Google
# Lists job triggers. # Lists job triggers.
# See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more. # See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more.
# @param [String] parent # @param [String] parent
# Required. The parent resource name, for example `projects/my-project-id`. # Required. Parent resource name.
# - Format:projects/[PROJECT-ID]
# - Format:projects/[PROJECT-ID]/locations/[LOCATION-ID]
# @param [String] filter # @param [String] filter
# Allows filtering. # Allows filtering.
# Supported syntax: # Supported syntax:
@ -2355,7 +2421,9 @@ module Google
# system will automatically choose what detectors to run. By default this may # system will automatically choose what detectors to run. By default this may
# be all types, but may change over time as detectors are updated. # be all types, but may change over time as detectors are updated.
# @param [String] parent # @param [String] parent
# The parent resource name, for example projects/my-project-id. # Parent resource name.
# - Format:projects/[PROJECT-ID]
# - Format:projects/[PROJECT-ID]/locations/[LOCATION-ID]
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyContentRequest] google_privacy_dlp_v2_deidentify_content_request_object # @param [Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyContentRequest] google_privacy_dlp_v2_deidentify_content_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -2394,7 +2462,9 @@ module Google
# For how to guides, see https://cloud.google.com/dlp/docs/inspecting-images # For how to guides, see https://cloud.google.com/dlp/docs/inspecting-images
# and https://cloud.google.com/dlp/docs/inspecting-text, # and https://cloud.google.com/dlp/docs/inspecting-text,
# @param [String] parent # @param [String] parent
# The parent resource name, for example projects/my-project-id. # Parent resource name.
# - Format:projects/[PROJECT-ID]
# - Format:projects/[PROJECT-ID]/locations/[LOCATION-ID]
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2InspectContentRequest] google_privacy_dlp_v2_inspect_content_request_object # @param [Google::Apis::DlpV2::GooglePrivacyDlpV2InspectContentRequest] google_privacy_dlp_v2_inspect_content_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -2432,6 +2502,8 @@ module Google
# to learn more. # to learn more.
# @param [String] parent # @param [String] parent
# Required. The parent resource name. # Required. The parent resource name.
# - Format:projects/[PROJECT-ID]
# - Format:projects/[PROJECT-ID]/locations/[LOCATION-ID]
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2ReidentifyContentRequest] google_privacy_dlp_v2_reidentify_content_request_object # @param [Google::Apis::DlpV2::GooglePrivacyDlpV2ReidentifyContentRequest] google_privacy_dlp_v2_reidentify_content_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -2467,8 +2539,11 @@ module Google
# See https://cloud.google.com/dlp/docs/creating-templates-deid to learn # See https://cloud.google.com/dlp/docs/creating-templates-deid to learn
# more. # more.
# @param [String] parent # @param [String] parent
# Required. The parent resource name, for example projects/my-project-id or # Required. Parent resource name.
# organizations/my-org-id. # - Format:projects/[PROJECT-ID]
# - Format:organizations/[ORGANIZATION-ID]
# - Format:projects/[PROJECT-ID]/locations/[LOCATION-ID]
# - Format:organizations/[ORGANIZATION-ID]/locations/[LOCATION-ID]
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CreateDeidentifyTemplateRequest] google_privacy_dlp_v2_create_deidentify_template_request_object # @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CreateDeidentifyTemplateRequest] google_privacy_dlp_v2_create_deidentify_template_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -2573,8 +2648,11 @@ module Google
# See https://cloud.google.com/dlp/docs/creating-templates-deid to learn # See https://cloud.google.com/dlp/docs/creating-templates-deid to learn
# more. # more.
# @param [String] parent # @param [String] parent
# Required. The parent resource name, for example projects/my-project-id or # Required. Parent resource name.
# organizations/my-org-id. # - Format:projects/[PROJECT-ID]
# - Format:organizations/[ORGANIZATION-ID]
# - Format:projects/[PROJECT-ID]/locations/[LOCATION-ID]
# - Format:organizations/[ORGANIZATION-ID]/locations/[LOCATION-ID]
# @param [String] location_id # @param [String] location_id
# Deprecated. This field has no effect. # Deprecated. This field has no effect.
# @param [String] order_by # @param [String] order_by
@ -2707,7 +2785,9 @@ module Google
# system will automatically choose what detectors to run. By default this may # system will automatically choose what detectors to run. By default this may
# be all types, but may change over time as detectors are updated. # be all types, but may change over time as detectors are updated.
# @param [String] parent # @param [String] parent
# Required. The parent resource name, for example projects/my-project-id. # Required. Parent resource name.
# - Format:projects/[PROJECT-ID]
# - Format:projects/[PROJECT-ID]/locations/[LOCATION-ID]
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CreateDlpJobRequest] google_privacy_dlp_v2_create_dlp_job_request_object # @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CreateDlpJobRequest] google_privacy_dlp_v2_create_dlp_job_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -2884,7 +2964,9 @@ module Google
# See https://cloud.google.com/dlp/docs/inspecting-storage and # See https://cloud.google.com/dlp/docs/inspecting-storage and
# https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more. # https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more.
# @param [String] parent # @param [String] parent
# Required. The parent resource name, for example projects/my-project-id. # Required. Parent resource name.
# - Format:projects/[PROJECT-ID]
# - Format:projects/[PROJECT-ID]/locations/[LOCATION-ID]
# @param [String] filter # @param [String] filter
# Allows filtering. # Allows filtering.
# Supported syntax: # Supported syntax:
@ -2969,7 +3051,9 @@ module Google
# system will automatically choose what detectors to run. By default this may # system will automatically choose what detectors to run. By default this may
# be all types, but may change over time as detectors are updated. # be all types, but may change over time as detectors are updated.
# @param [String] parent # @param [String] parent
# The parent resource name, for example projects/my-project-id. # The parent resource name.
# - Format:projects/[PROJECT-ID]
# - Format:projects/[PROJECT-ID]/locations/[LOCATION-ID]
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2RedactImageRequest] google_privacy_dlp_v2_redact_image_request_object # @param [Google::Apis::DlpV2::GooglePrivacyDlpV2RedactImageRequest] google_privacy_dlp_v2_redact_image_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -3004,8 +3088,11 @@ module Google
# for inspecting content, images, and storage. # for inspecting content, images, and storage.
# See https://cloud.google.com/dlp/docs/creating-templates to learn more. # See https://cloud.google.com/dlp/docs/creating-templates to learn more.
# @param [String] parent # @param [String] parent
# Required. The parent resource name, for example projects/my-project-id or # Required. Parent resource name.
# organizations/my-org-id. # - Format:projects/[PROJECT-ID]
# - Format:organizations/[ORGANIZATION-ID]
# - Format:projects/[PROJECT-ID]/locations/[LOCATION-ID]
# - Format:organizations/[ORGANIZATION-ID]/locations/[LOCATION-ID]
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CreateInspectTemplateRequest] google_privacy_dlp_v2_create_inspect_template_request_object # @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CreateInspectTemplateRequest] google_privacy_dlp_v2_create_inspect_template_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -3107,8 +3194,11 @@ module Google
# Lists InspectTemplates. # Lists InspectTemplates.
# See https://cloud.google.com/dlp/docs/creating-templates to learn more. # See https://cloud.google.com/dlp/docs/creating-templates to learn more.
# @param [String] parent # @param [String] parent
# Required. The parent resource name, for example projects/my-project-id or # Required. Parent resource name.
# organizations/my-org-id. # - Format:projects/[PROJECT-ID]
# - Format:organizations/[ORGANIZATION-ID]
# - Format:projects/[PROJECT-ID]/locations/[LOCATION-ID]
# - Format:organizations/[ORGANIZATION-ID]/locations/[LOCATION-ID]
# @param [String] location_id # @param [String] location_id
# Deprecated. This field has no effect. # Deprecated. This field has no effect.
# @param [String] order_by # @param [String] order_by
@ -3234,7 +3324,9 @@ module Google
# sensitive information on a set schedule. # sensitive information on a set schedule.
# See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more. # See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more.
# @param [String] parent # @param [String] parent
# Required. The parent resource name, for example projects/my-project-id. # Required. Parent resource name.
# - Format:projects/[PROJECT-ID]
# - Format:projects/[PROJECT-ID]/locations/[LOCATION-ID]
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CreateJobTriggerRequest] google_privacy_dlp_v2_create_job_trigger_request_object # @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CreateJobTriggerRequest] google_privacy_dlp_v2_create_job_trigger_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -3372,7 +3464,9 @@ module Google
# Lists job triggers. # Lists job triggers.
# See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more. # See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more.
# @param [String] parent # @param [String] parent
# Required. The parent resource name, for example `projects/my-project-id`. # Required. Parent resource name.
# - Format:projects/[PROJECT-ID]
# - Format:projects/[PROJECT-ID]/locations/[LOCATION-ID]
# @param [String] filter # @param [String] filter
# Allows filtering. # Allows filtering.
# Supported syntax: # Supported syntax:
@ -3485,8 +3579,11 @@ module Google
# See https://cloud.google.com/dlp/docs/creating-stored-infotypes to # See https://cloud.google.com/dlp/docs/creating-stored-infotypes to
# learn more. # learn more.
# @param [String] parent # @param [String] parent
# Required. The parent resource name, for example projects/my-project-id or # Required. Parent resource name.
# organizations/my-org-id. # - Format:projects/[PROJECT-ID]
# - Format:organizations/[ORGANIZATION-ID]
# - Format:projects/[PROJECT-ID]/locations/[LOCATION-ID]
# - Format:organizations/[ORGANIZATION-ID]/locations/[LOCATION-ID]
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CreateStoredInfoTypeRequest] google_privacy_dlp_v2_create_stored_info_type_request_object # @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CreateStoredInfoTypeRequest] google_privacy_dlp_v2_create_stored_info_type_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -3590,8 +3687,11 @@ module Google
# See https://cloud.google.com/dlp/docs/creating-stored-infotypes to # See https://cloud.google.com/dlp/docs/creating-stored-infotypes to
# learn more. # learn more.
# @param [String] parent # @param [String] parent
# Required. The parent resource name, for example projects/my-project-id or # Required. Parent resource name.
# organizations/my-org-id. # - Format:projects/[PROJECT-ID]
# - Format:organizations/[ORGANIZATION-ID]
# - Format:projects/[PROJECT-ID]/locations/[LOCATION-ID]
# - Format:organizations/[ORGANIZATION-ID]/locations/[LOCATION-ID]
# @param [String] location_id # @param [String] location_id
# Deprecated. This field has no effect. # Deprecated. This field has no effect.
# @param [String] order_by # @param [String] order_by
@ -3685,8 +3785,11 @@ module Google
# See https://cloud.google.com/dlp/docs/creating-stored-infotypes to # See https://cloud.google.com/dlp/docs/creating-stored-infotypes to
# learn more. # learn more.
# @param [String] parent # @param [String] parent
# Required. The parent resource name, for example projects/my-project-id or # Required. Parent resource name.
# organizations/my-org-id. # - Format:projects/[PROJECT-ID]
# - Format:organizations/[ORGANIZATION-ID]
# - Format:projects/[PROJECT-ID]/locations/[LOCATION-ID]
# - Format:organizations/[ORGANIZATION-ID]/locations/[LOCATION-ID]
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CreateStoredInfoTypeRequest] google_privacy_dlp_v2_create_stored_info_type_request_object # @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CreateStoredInfoTypeRequest] google_privacy_dlp_v2_create_stored_info_type_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -3790,8 +3893,11 @@ module Google
# See https://cloud.google.com/dlp/docs/creating-stored-infotypes to # See https://cloud.google.com/dlp/docs/creating-stored-infotypes to
# learn more. # learn more.
# @param [String] parent # @param [String] parent
# Required. The parent resource name, for example projects/my-project-id or # Required. Parent resource name.
# organizations/my-org-id. # - Format:projects/[PROJECT-ID]
# - Format:organizations/[ORGANIZATION-ID]
# - Format:projects/[PROJECT-ID]/locations/[LOCATION-ID]
# - Format:organizations/[ORGANIZATION-ID]/locations/[LOCATION-ID]
# @param [String] location_id # @param [String] location_id
# Deprecated. This field has no effect. # Deprecated. This field has no effect.
# @param [String] order_by # @param [String] order_by

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/filestore/ # @see https://cloud.google.com/filestore/
module FileV1 module FileV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20200602' REVISION = '20200608'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/filestore/ # @see https://cloud.google.com/filestore/
module FileV1beta1 module FileV1beta1
VERSION = 'V1beta1' VERSION = 'V1beta1'
REVISION = '20200602' REVISION = '20200608'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -20,12 +20,13 @@ module Google
module Apis module Apis
# Gmail API # Gmail API
# #
# Access Gmail mailboxes including sending user email. # The Gmail API lets you view and manage Gmail mailbox data like
# threads, messages, and labels.
# #
# @see https://developers.google.com/gmail/api/ # @see https://developers.google.com/gmail/api/
module GmailV1 module GmailV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20200504' REVISION = '20200601'
# Read, compose, send, and permanently delete all your email from Gmail # Read, compose, send, and permanently delete all your email from Gmail
AUTH_SCOPE = 'https://mail.google.com/' AUTH_SCOPE = 'https://mail.google.com/'

View File

@ -31,8 +31,8 @@ module Google
# @return [String] # @return [String]
attr_accessor :disposition attr_accessor :disposition
# Email address to which all incoming messages are forwarded. This email address # Email address to which all incoming messages are forwarded. This email
# must be a verified member of the forwarding addresses. # address must be a verified member of the forwarding addresses.
# Corresponds to the JSON property `emailAddress` # Corresponds to the JSON property `emailAddress`
# @return [String] # @return [String]
attr_accessor :email_address attr_accessor :email_address
@ -83,7 +83,8 @@ module Google
# @return [Array<String>] # @return [Array<String>]
attr_accessor :add_label_ids attr_accessor :add_label_ids
# The IDs of the messages to modify. There is a limit of 1000 ids per request. # The IDs of the messages to modify. There is a limit of 1000 ids per
# request.
# Corresponds to the JSON property `ids` # Corresponds to the JSON property `ids`
# @return [Array<String>] # @return [Array<String>]
attr_accessor :ids attr_accessor :ids
@ -106,8 +107,9 @@ module Google
end end
# Settings for a delegate. Delegates can read, send, and delete messages, as # Settings for a delegate. Delegates can read, send, and delete messages, as
# well as view and add contacts, for the delegator's account. See "Set up mail # well as view and add contacts, for the delegator's account. See
# delegation" for more information about delegates. # <a href="https://support.google.com/mail/answer/138350">"Set up
# mail delegation"</a> for more information about delegates.
class Delegate class Delegate
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -116,8 +118,8 @@ module Google
# @return [String] # @return [String]
attr_accessor :delegate_email attr_accessor :delegate_email
# Indicates whether this address has been verified and can act as a delegate for # Indicates whether this address has been verified and can act as a delegate
# the account. Read-only. # for the account. Read-only.
# Corresponds to the JSON property `verificationStatus` # Corresponds to the JSON property `verificationStatus`
# @return [String] # @return [String]
attr_accessor :verification_status attr_accessor :verification_status
@ -242,16 +244,18 @@ module Google
attr_accessor :has_attachment attr_accessor :has_attachment
alias_method :has_attachment?, :has_attachment alias_method :has_attachment?, :has_attachment
# Only return messages not matching the specified query. Supports the same query # Only return messages not matching the specified query. Supports the same
# format as the Gmail search box. For example, "from:someuser@example.com # query format as the Gmail search box. For example,
# rfc822msgid: is:unread". # <code>"from:someuser@example.com rfc822msgid:<somemsgid@example.com>
# is:unread"</code>.
# Corresponds to the JSON property `negatedQuery` # Corresponds to the JSON property `negatedQuery`
# @return [String] # @return [String]
attr_accessor :negated_query attr_accessor :negated_query
# Only return messages matching the specified query. Supports the same query # Only return messages matching the specified query. Supports the same
# format as the Gmail search box. For example, "from:someuser@example.com # query format as the Gmail search box. For example,
# rfc822msgid: is:unread". # <code>"from:someuser@example.com rfc822msgid:<somemsgid@example.com>
# is:unread"</code>.
# Corresponds to the JSON property `query` # Corresponds to the JSON property `query`
# @return [String] # @return [String]
attr_accessor :query attr_accessor :query
@ -267,16 +271,16 @@ module Google
# @return [String] # @return [String]
attr_accessor :size_comparison attr_accessor :size_comparison
# Case-insensitive phrase found in the message's subject. Trailing and leading # Case-insensitive phrase found in the message's subject. Trailing and
# whitespace are be trimmed and adjacent spaces are collapsed. # leading whitespace are be trimmed and adjacent spaces are collapsed.
# Corresponds to the JSON property `subject` # Corresponds to the JSON property `subject`
# @return [String] # @return [String]
attr_accessor :subject attr_accessor :subject
# The recipient's display name or email address. Includes recipients in the "to", # The recipient's display name or email address. Includes recipients in the
# "cc", and "bcc" header fields. You can use simply the local part of the email # "to", "cc", and "bcc" header fields. You can use simply the local part of
# address. For example, "example" and "example@" both match "example@gmail.com". # the email address. For example, "example" and "example@" both match
# This field is case-insensitive. # "example@gmail.com". This field is case-insensitive.
# Corresponds to the JSON property `to` # Corresponds to the JSON property `to`
# @return [String] # @return [String]
attr_accessor :to attr_accessor :to
@ -308,8 +312,8 @@ module Google
# @return [String] # @return [String]
attr_accessor :forwarding_email attr_accessor :forwarding_email
# Indicates whether this address has been verified and is usable for forwarding. # Indicates whether this address has been verified and is usable for
# Read-only. # forwarding. Read-only.
# Corresponds to the JSON property `verificationStatus` # Corresponds to the JSON property `verificationStatus`
# @return [String] # @return [String]
attr_accessor :verification_status attr_accessor :verification_status
@ -345,9 +349,10 @@ module Google
# @return [Array<Google::Apis::GmailV1::HistoryLabelRemoved>] # @return [Array<Google::Apis::GmailV1::HistoryLabelRemoved>]
attr_accessor :labels_removed attr_accessor :labels_removed
# List of messages changed in this history record. The fields for specific # List of messages changed in this history record. The fields for specific
# change types, such as messagesAdded may duplicate messages in this field. We # change types, such as <code>messagesAdded</code> may duplicate messages in
# recommend using the specific change-type fields instead of this. # this field. We recommend using the specific change-type fields instead
# of this.
# Corresponds to the JSON property `messages` # Corresponds to the JSON property `messages`
# @return [Array<Google::Apis::GmailV1::Message>] # @return [Array<Google::Apis::GmailV1::Message>]
attr_accessor :messages attr_accessor :messages
@ -470,8 +475,8 @@ module Google
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# If this value is true, Gmail will immediately expunge a message when it is # If this value is true, Gmail will immediately expunge a message when it is
# marked as deleted in IMAP. Otherwise, Gmail will wait for an update from the # marked as deleted in IMAP. Otherwise, Gmail will wait for an update from
# client before expunging messages marked as deleted. # the client before expunging messages marked as deleted.
# Corresponds to the JSON property `autoExpunge` # Corresponds to the JSON property `autoExpunge`
# @return [Boolean] # @return [Boolean]
attr_accessor :auto_expunge attr_accessor :auto_expunge
@ -483,15 +488,15 @@ module Google
attr_accessor :enabled attr_accessor :enabled
alias_method :enabled?, :enabled alias_method :enabled?, :enabled
# The action that will be executed on a message when it is marked as deleted and # The action that will be executed on a message when it is marked as deleted
# expunged from the last visible IMAP folder. # and expunged from the last visible IMAP folder.
# Corresponds to the JSON property `expungeBehavior` # Corresponds to the JSON property `expungeBehavior`
# @return [String] # @return [String]
attr_accessor :expunge_behavior attr_accessor :expunge_behavior
# An optional limit on the number of messages that an IMAP folder may contain. # An optional limit on the number of messages that an IMAP folder may
# Legal values are 0, 1000, 2000, 5000 or 10000. A value of zero is interpreted # contain. Legal values are 0, 1000, 2000, 5000 or 10000. A value of zero
# to mean that there is no limit. # is interpreted to mean that there is no limit.
# Corresponds to the JSON property `maxFolderSize` # Corresponds to the JSON property `maxFolderSize`
# @return [Fixnum] # @return [Fixnum]
attr_accessor :max_folder_size attr_accessor :max_folder_size
@ -509,12 +514,14 @@ module Google
end end
end end
# Labels are used to categorize messages and threads within the user's mailbox. # Labels are used to categorize messages and threads within the
# user's mailbox.
class Label class Label
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The color to assign to the label. Color is only available for labels that have # The color to assign to the label. Color is only available for labels that
# their type set to user. # have their <code>type</code> set to <code>user</code>.
# @mutable gmail.users.labels.create gmail.users.labels.update
# Corresponds to the JSON property `color` # Corresponds to the JSON property `color`
# @return [Google::Apis::GmailV1::LabelColor] # @return [Google::Apis::GmailV1::LabelColor]
attr_accessor :color attr_accessor :color
@ -525,11 +532,14 @@ module Google
attr_accessor :id attr_accessor :id
# The visibility of the label in the label list in the Gmail web interface. # The visibility of the label in the label list in the Gmail web interface.
# @mutable gmail.users.labels.create gmail.users.labels.update
# Corresponds to the JSON property `labelListVisibility` # Corresponds to the JSON property `labelListVisibility`
# @return [String] # @return [String]
attr_accessor :label_list_visibility attr_accessor :label_list_visibility
# The visibility of the label in the message list in the Gmail web interface. # The visibility of the label in the message list in the
# Gmail web interface.
# @mutable gmail.users.labels.create gmail.users.labels.update
# Corresponds to the JSON property `messageListVisibility` # Corresponds to the JSON property `messageListVisibility`
# @return [String] # @return [String]
attr_accessor :message_list_visibility attr_accessor :message_list_visibility
@ -545,6 +555,7 @@ module Google
attr_accessor :messages_unread attr_accessor :messages_unread
# The display name of the label. # The display name of the label.
# @mutable gmail.users.labels.create gmail.users.labels.update
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
# @return [String] # @return [String]
attr_accessor :name attr_accessor :name
@ -559,14 +570,15 @@ module Google
# @return [Fixnum] # @return [Fixnum]
attr_accessor :threads_unread attr_accessor :threads_unread
# The owner type for the label. User labels are created by the user and can be # The owner type for the label. User labels are created by the user and
# modified and deleted by the user and can be applied to any message or thread. # can be modified and deleted by the user and can be applied to any
# System labels are internally created and cannot be added, modified, or deleted. # message or thread. System labels are internally created and cannot be
# System labels may be able to be applied to or removed from messages and # added, modified, or deleted. System labels may be able to be applied to or
# threads under some circumstances but this is not guaranteed. For example, # removed from messages and threads under some circumstances but this is
# users can apply and remove the INBOX and UNREAD labels from messages and # not guaranteed. For example, users can apply and remove the
# threads, but cannot apply or remove the DRAFTS or SENT labels from messages or # <code>INBOX</code> and <code>UNREAD</code> labels from messages and
# threads. # threads, but cannot apply or remove the <code>DRAFTS</code> or
# <code>SENT</code> labels from messages or threads.
# Corresponds to the JSON property `type` # Corresponds to the JSON property `type`
# @return [String] # @return [String]
attr_accessor :type attr_accessor :type
@ -594,40 +606,46 @@ module Google
class LabelColor class LabelColor
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The background color represented as hex string #RRGGBB (ex #000000). This # The background color represented as hex string #RRGGBB (ex #000000).
# field is required in order to set the color of a label. Only the following # This field is required in order to set the color of a label.
# predefined set of color values are allowed: # Only the following predefined set of color values are allowed:
# #000000, #434343, #666666, #999999, #cccccc, #efefef, #f3f3f3, #ffffff, # # <br/>
# fb4c2f, #ffad47, #fad165, #16a766, #43d692, #4a86e8, #a479e2, #f691b3, #f6c5be, # # 000000, #434343, #666666, #999999, #cccccc, #efefef, #f3f3f3, #ffffff,
# #ffe6c7, #fef1d1, #b9e4d0, #c6f3de, #c9daf8, #e4d7f5, #fcdee8, #efa093, # # # fb4c2f, #ffad47, #fad165, #16a766, #43d692, #4a86e8, #a479e2, #f691b3,
# ffd6a2, #fce8b3, #89d3b2, #a0eac9, #a4c2f4, #d0bcf1, #fbc8d9, #e66550, #ffbc6b, # # f6c5be, #ffe6c7, #fef1d1, #b9e4d0, #c6f3de, #c9daf8, #e4d7f5, #fcdee8,
# #fcda83, #44b984, #68dfa9, #6d9eeb, #b694e8, #f7a7c0, #cc3a21, #eaa041, # # # efa093, #ffd6a2, #fce8b3, #89d3b2, #a0eac9, #a4c2f4, #d0bcf1, #fbc8d9,
# f2c960, #149e60, #3dc789, #3c78d8, #8e63ce, #e07798, #ac2b16, #cf8933, #d5ae49, # # e66550, #ffbc6b, #fcda83, #44b984, #68dfa9, #6d9eeb, #b694e8, #f7a7c0,
# #0b804b, #2a9c68, #285bac, #653e9b, #b65775, #822111, #a46a21, #aa8831, # # # cc3a21, #eaa041, #f2c960, #149e60, #3dc789, #3c78d8, #8e63ce, #e07798,
# 076239, #1a764d, #1c4587, #41236d, #83334c #464646, #e7e7e7, #0d3472, #b6cff5, # # ac2b16, #cf8933, #d5ae49, #0b804b, #2a9c68, #285bac, #653e9b, #b65775,
# #0d3b44, #98d7e4, #3d188e, #e3d7ff, #711a36, #fbd3e0, #8a1c0a, #f2b2a8, # # # 822111, #a46a21, #aa8831, #076239, #1a764d, #1c4587, #41236d, #83334c
# 7a2e0b, #ffc8af, #7a4706, #ffdeb5, #594c05, #fbe983, #684e07, #fdedc1, #0b4f30, # # 464646, #e7e7e7, #0d3472, #b6cff5, #0d3b44, #98d7e4, #3d188e, #e3d7ff,
# #b3efd3, #04502e, #a2dcc1, #c2c2c2, #4986e7, #2da2bb, #b99aff, #994a64, # # # 711a36, #fbd3e0, #8a1c0a, #f2b2a8, #7a2e0b, #ffc8af, #7a4706, #ffdeb5,
# f691b2, #ff7537, #ffad46, #662e37, #ebdbde, #cca6ac, #094228, #42d692, #16a765 # # 594c05, #fbe983, #684e07, #fdedc1, #0b4f30, #b3efd3, #04502e, #a2dcc1,
# # c2c2c2, #4986e7, #2da2bb, #b99aff, #994a64, #f691b2, #ff7537, #ffad46,
# # 662e37, #ebdbde, #cca6ac, #094228, #42d692, #16a765
# @mutable gmail.users.labels.create gmail.users.labels.update
# Corresponds to the JSON property `backgroundColor` # Corresponds to the JSON property `backgroundColor`
# @return [String] # @return [String]
attr_accessor :background_color attr_accessor :background_color
# The text color of the label, represented as hex string. This field is required # The text color of the label, represented as hex string.
# in order to set the color of a label. Only the following predefined set of # This field is required in order to set the color of a label.
# color values are allowed: # Only the following predefined set of color values are allowed:
# #000000, #434343, #666666, #999999, #cccccc, #efefef, #f3f3f3, #ffffff, # # <br/>
# fb4c2f, #ffad47, #fad165, #16a766, #43d692, #4a86e8, #a479e2, #f691b3, #f6c5be, # # 000000, #434343, #666666, #999999, #cccccc, #efefef, #f3f3f3, #ffffff,
# #ffe6c7, #fef1d1, #b9e4d0, #c6f3de, #c9daf8, #e4d7f5, #fcdee8, #efa093, # # # fb4c2f, #ffad47, #fad165, #16a766, #43d692, #4a86e8, #a479e2, #f691b3,
# ffd6a2, #fce8b3, #89d3b2, #a0eac9, #a4c2f4, #d0bcf1, #fbc8d9, #e66550, #ffbc6b, # # f6c5be, #ffe6c7, #fef1d1, #b9e4d0, #c6f3de, #c9daf8, #e4d7f5, #fcdee8,
# #fcda83, #44b984, #68dfa9, #6d9eeb, #b694e8, #f7a7c0, #cc3a21, #eaa041, # # # efa093, #ffd6a2, #fce8b3, #89d3b2, #a0eac9, #a4c2f4, #d0bcf1, #fbc8d9,
# f2c960, #149e60, #3dc789, #3c78d8, #8e63ce, #e07798, #ac2b16, #cf8933, #d5ae49, # # e66550, #ffbc6b, #fcda83, #44b984, #68dfa9, #6d9eeb, #b694e8, #f7a7c0,
# #0b804b, #2a9c68, #285bac, #653e9b, #b65775, #822111, #a46a21, #aa8831, # # # cc3a21, #eaa041, #f2c960, #149e60, #3dc789, #3c78d8, #8e63ce, #e07798,
# 076239, #1a764d, #1c4587, #41236d, #83334c #464646, #e7e7e7, #0d3472, #b6cff5, # # ac2b16, #cf8933, #d5ae49, #0b804b, #2a9c68, #285bac, #653e9b, #b65775,
# #0d3b44, #98d7e4, #3d188e, #e3d7ff, #711a36, #fbd3e0, #8a1c0a, #f2b2a8, # # # 822111, #a46a21, #aa8831, #076239, #1a764d, #1c4587, #41236d, #83334c
# 7a2e0b, #ffc8af, #7a4706, #ffdeb5, #594c05, #fbe983, #684e07, #fdedc1, #0b4f30, # # 464646, #e7e7e7, #0d3472, #b6cff5, #0d3b44, #98d7e4, #3d188e, #e3d7ff,
# #b3efd3, #04502e, #a2dcc1, #c2c2c2, #4986e7, #2da2bb, #b99aff, #994a64, # # # 711a36, #fbd3e0, #8a1c0a, #f2b2a8, #7a2e0b, #ffc8af, #7a4706, #ffdeb5,
# f691b2, #ff7537, #ffad46, #662e37, #ebdbde, #cca6ac, #094228, #42d692, #16a765 # # 594c05, #fbe983, #684e07, #fdedc1, #0b4f30, #b3efd3, #04502e, #a2dcc1,
# # c2c2c2, #4986e7, #2da2bb, #b99aff, #994a64, #f691b2, #ff7537, #ffad46,
# # 662e37, #ebdbde, #cca6ac, #094228, #42d692, #16a765
# @mutable gmail.users.labels.create gmail.users.labels.update
# Corresponds to the JSON property `textColor` # Corresponds to the JSON property `textColor`
# @return [String] # @return [String]
attr_accessor :text_color attr_accessor :text_color
@ -643,21 +661,28 @@ module Google
end end
end end
# Language settings for an account. These settings correspond to the "Language # Language settings for an account. These settings correspond to
# settings" feature in the web interface. # the <a href="https://support.google.com/mail/answer/17091">"Language
# settings"</a> feature in the web interface.
class LanguageSettings class LanguageSettings
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The language to display Gmail in, formatted as an RFC 3066 Language Tag (for # The language to display Gmail in, formatted as an
# example en-GB, fr or ja for British English, French, or Japanese respectively). # <a href="https://www.w3.org/International/articles/language-tags/">RFC 3066
# The set of languages supported by Gmail evolves over time, so please refer to # Language Tag</a> (for example <code>en-GB</code>, <code>fr</code> or
# the "Language" dropdown in the Gmail settings for all available options, as # <code>ja</code> for British English, French, or Japanese respectively).
# described in the language settings help article. A table of sample values is # The set of languages supported by Gmail evolves over time, so please refer
# also provided in the Managing Language Settings guide # to the "Language" dropdown in the
# Not all Gmail clients can display the same set of languages. In the case that # <a href="https://mail.google.com/mail/u/0/#settings/general">Gmail settings
# a user's display language is not available for use on a particular client, # </a> for all available options, as described in the
# said client automatically chooses to display in the closest supported variant ( # <a href="https://support.google.com/mail/answer/17091">language settings
# or a reasonable default). # help article</a>. A table of sample values is also provided in the
# <a href="/gmail/api/guides/language_settings#display_language">Managing
# Language Settings guide</a>
# Not all Gmail clients can display the same set of languages. In the case
# that a user's display language is not available for use on a particular
# client, said client automatically chooses to display in the closest
# supported variant (or a reasonable default).
# Corresponds to the JSON property `displayLanguage` # Corresponds to the JSON property `displayLanguage`
# @return [String] # @return [String]
attr_accessor :display_language attr_accessor :display_language
@ -695,9 +720,11 @@ module Google
class ListDraftsResponse class ListDraftsResponse
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# List of drafts. Note that the Message property in each Draft resource only # List of drafts. Note that the <code>Message</code> property in each
# contains an id and a threadId. The messages.get method can fetch additional # <code>Draft</code> resource only contains an <code>id</code> and a
# message details. # <code>threadId</code>. The
# <a href="/gmail/api/v1/reference/users/messages/get">messages.get</a>
# method can fetch additional message details.
# Corresponds to the JSON property `drafts` # Corresponds to the JSON property `drafts`
# @return [Array<Google::Apis::GmailV1::Draft>] # @return [Array<Google::Apis::GmailV1::Draft>]
attr_accessor :drafts attr_accessor :drafts
@ -766,8 +793,9 @@ module Google
class ListHistoryResponse class ListHistoryResponse
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# List of history records. Any messages contained in the response will typically # List of history records. Any <code>messages</code> contained in the
# only have id and threadId fields populated. # response will typically only have <code>id</code> and
# <code>threadId</code> fields populated.
# Corresponds to the JSON property `history` # Corresponds to the JSON property `history`
# @return [Array<Google::Apis::GmailV1::History>] # @return [Array<Google::Apis::GmailV1::History>]
attr_accessor :history attr_accessor :history
@ -798,8 +826,10 @@ module Google
class ListLabelsResponse class ListLabelsResponse
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# List of labels. Note that each label resource only contains an id, name, # List of labels. Note that each label resource only contains an
# messageListVisibility, labelListVisibility, and type. The labels.get method # <code>id</code>, <code>name</code>, <code>messageListVisibility</code>,
# <code>labelListVisibility</code>, and <code>type</code>. The
# <a href="/gmail/api/v1/reference/users/labels/get">labels.get</a> method
# can fetch additional label details. # can fetch additional label details.
# Corresponds to the JSON property `labels` # Corresponds to the JSON property `labels`
# @return [Array<Google::Apis::GmailV1::Label>] # @return [Array<Google::Apis::GmailV1::Label>]
@ -819,8 +849,10 @@ module Google
class ListMessagesResponse class ListMessagesResponse
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# List of messages. Note that each message resource contains only an id and a # List of messages. Note that each message resource contains only an
# threadId. Additional message details can be fetched using the messages.get # <code>id</code> and a <code>threadId</code>. Additional message details can
# be fetched using the
# <a href="/gmail/api/v1/reference/users/messages/get">messages.get</a>
# method. # method.
# Corresponds to the JSON property `messages` # Corresponds to the JSON property `messages`
# @return [Array<Google::Apis::GmailV1::Message>] # @return [Array<Google::Apis::GmailV1::Message>]
@ -901,8 +933,9 @@ module Google
attr_accessor :result_size_estimate attr_accessor :result_size_estimate
# List of threads. Note that each thread resource does not contain a list of # List of threads. Note that each thread resource does not contain a list of
# messages. The list of messages for a given thread can be fetched using the # <code>messages</code>. The list of <code>messages</code> for a given thread
# threads.get method. # can be fetched using the
# <a href="/gmail/api/v1/reference/users/threads/get">threads.get</a> method.
# Corresponds to the JSON property `threads` # Corresponds to the JSON property `threads`
# @return [Array<Google::Apis::GmailV1::Thread>] # @return [Array<Google::Apis::GmailV1::Thread>]
attr_accessor :threads attr_accessor :threads
@ -933,16 +966,17 @@ module Google
# @return [String] # @return [String]
attr_accessor :id attr_accessor :id
# The internal message creation timestamp (epoch ms), which determines ordering # The internal message creation timestamp (epoch ms), which determines
# in the inbox. For normal SMTP-received email, this represents the time the # ordering in the inbox. For normal SMTP-received email, this represents the
# message was originally accepted by Google, which is more reliable than the # time the message was originally accepted by Google, which is more reliable
# Date header. However, for API-migrated mail, it can be configured by client to # than the <code>Date</code> header. However, for API-migrated mail, it can
# be based on the Date header. # be configured by client to be based on the <code>Date</code> header.
# Corresponds to the JSON property `internalDate` # Corresponds to the JSON property `internalDate`
# @return [Fixnum] # @return [Fixnum]
attr_accessor :internal_date attr_accessor :internal_date
# List of IDs of labels applied to this message. # List of IDs of labels applied to this message.
# @mutable gmail.users.messages.insert gmail.users.messages.modify
# Corresponds to the JSON property `labelIds` # Corresponds to the JSON property `labelIds`
# @return [Array<String>] # @return [Array<String>]
attr_accessor :label_ids attr_accessor :label_ids
@ -952,9 +986,12 @@ module Google
# @return [Google::Apis::GmailV1::MessagePart] # @return [Google::Apis::GmailV1::MessagePart]
attr_accessor :payload attr_accessor :payload
# The entire email message in an RFC 2822 formatted and base64url encoded string. # The entire email message in an RFC 2822 formatted and base64url
# Returned in messages.get and drafts.get responses when the format=RAW # encoded string. Returned in <code>messages.get</code> and
# <code>drafts.get</code> responses when the <code>format=RAW</code>
# parameter is supplied. # parameter is supplied.
# @mutable gmail.users.messages.insert gmail.users.messages.send
# @mutable gmail.users.drafts.create gmail.users.drafts.update
# Corresponds to the JSON property `raw` # Corresponds to the JSON property `raw`
# NOTE: Values are automatically base64 encoded/decoded in the client library. # NOTE: Values are automatically base64 encoded/decoded in the client library.
# @return [String] # @return [String]
@ -970,13 +1007,17 @@ module Google
# @return [String] # @return [String]
attr_accessor :snippet attr_accessor :snippet
# The ID of the thread the message belongs to. To add a message or draft to a # The ID of the thread the message belongs to. To add a message or draft to
# thread, the following criteria must be met: # a thread, the following criteria must be met:
# - The requested threadId must be specified on the Message or Draft.Message you # <ol><li>The requested <code>threadId</code> must be specified on the
# supply with your request. # <code>Message</code> or <code>Draft.Message</code> you supply with your
# - The References and In-Reply-To headers must be set in compliance with the # request.</li>
# RFC 2822 standard. # <li>The <code>References</code> and <code>In-Reply-To</code> headers must
# - The Subject headers must match. # be set in compliance with the
# <a href="https://tools.ietf.org/html/rfc2822">RFC 2822</a> standard.</li>
# <li>The <code>Subject</code> headers must match.
# @mutable gmail.users.messages.insert gmail.users.messages.send
# @mutable gmail.users.drafts.create gmail.users.drafts.update
# Corresponds to the JSON property `threadId` # Corresponds to the JSON property `threadId`
# @return [String] # @return [String]
attr_accessor :thread_id attr_accessor :thread_id
@ -1008,15 +1049,16 @@ module Google
# @return [Google::Apis::GmailV1::MessagePartBody] # @return [Google::Apis::GmailV1::MessagePartBody]
attr_accessor :body attr_accessor :body
# The filename of the attachment. Only present if this message part represents # The filename of the attachment. Only present if this message part
# an attachment. # represents an attachment.
# Corresponds to the JSON property `filename` # Corresponds to the JSON property `filename`
# @return [String] # @return [String]
attr_accessor :filename attr_accessor :filename
# List of headers on this message part. For the top-level message part, # List of headers on this message part. For the top-level message part,
# representing the entire message payload, it will contain the standard RFC 2822 # representing the entire message payload, it will contain the standard
# email headers such as To, From, and Subject. # RFC 2822 email headers such as <code>To</code>, <code>From</code>, and
# <code>Subject</code>.
# Corresponds to the JSON property `headers` # Corresponds to the JSON property `headers`
# @return [Array<Google::Apis::GmailV1::MessagePartHeader>] # @return [Array<Google::Apis::GmailV1::MessagePartHeader>]
attr_accessor :headers attr_accessor :headers
@ -1031,10 +1073,11 @@ module Google
# @return [String] # @return [String]
attr_accessor :part_id attr_accessor :part_id
# The child MIME message parts of this part. This only applies to container MIME # The child MIME message parts of this part. This only applies to container
# message parts, for example multipart/*. For non- container MIME message part # MIME message parts, for example <code>multipart/*</code>. For non-
# types, such as text/plain, this field is empty. For more information, see RFC # container MIME message part types, such as <code>text/plain</code>, this
# 1521. # field is empty. For more information, see
# <a href="http://www.ietf.org/rfc/rfc1521.txt">RFC 1521</a>.
# Corresponds to the JSON property `parts` # Corresponds to the JSON property `parts`
# @return [Array<Google::Apis::GmailV1::MessagePart>] # @return [Array<Google::Apis::GmailV1::MessagePart>]
attr_accessor :parts attr_accessor :parts
@ -1058,17 +1101,19 @@ module Google
class MessagePartBody class MessagePartBody
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# When present, contains the ID of an external attachment that can be retrieved # When present, contains the ID of an external attachment that can be
# in a separate messages.attachments.get request. When not present, the entire # retrieved in a separate <code>messages.attachments.get</code> request.
# content of the message part body is contained in the data field. # When not present, the entire content of the message part body is
# contained in the data field.
# Corresponds to the JSON property `attachmentId` # Corresponds to the JSON property `attachmentId`
# @return [String] # @return [String]
attr_accessor :attachment_id attr_accessor :attachment_id
# The body data of a MIME message part as a base64url encoded string. May be # The body data of a MIME message part as a base64url encoded string.
# empty for MIME container types that have no message body or when the body data # May be empty for MIME container
# is sent as a separate attachment. An attachment ID is present if the body data # types that have no message body or when the body data is sent as a
# is contained in a separate attachment. # separate attachment. An attachment ID is present if the body data is
# contained in a separate attachment.
# Corresponds to the JSON property `data` # Corresponds to the JSON property `data`
# NOTE: Values are automatically base64 encoded/decoded in the client library. # NOTE: Values are automatically base64 encoded/decoded in the client library.
# @return [String] # @return [String]
@ -1095,13 +1140,14 @@ module Google
class MessagePartHeader class MessagePartHeader
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The name of the header before the : separator. For example, To. # The name of the header before the <code>:</code> separator. For
# example, <code>To</code>.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
# @return [String] # @return [String]
attr_accessor :name attr_accessor :name
# The value of the header after the : separator. For example, someuser@example. # The value of the header after the <code>:</code> separator. For example,
# com. # <code>someuser@example.com</code>.
# Corresponds to the JSON property `value` # Corresponds to the JSON property `value`
# @return [String] # @return [String]
attr_accessor :value attr_accessor :value
@ -1231,48 +1277,53 @@ module Google
end end
# Settings associated with a send-as alias, which can be either the primary # Settings associated with a send-as alias, which can be either the primary
# login address associated with the account or a custom "from" address. Send-as # login address associated with the account or a custom "from" address.
# aliases correspond to the "Send Mail As" feature in the web interface. # Send-as aliases correspond to the
# <a href="https://support.google.com/mail/answer/22370">"Send Mail As"</a>
# feature in the web interface.
class SendAs class SendAs
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# A name that appears in the "From:" header for mail sent using this alias. For # A name that appears in the "From:" header for mail sent using this alias.
# custom "from" addresses, when this is empty, Gmail will populate the "From:" # For custom "from" addresses, when this is empty, Gmail will populate the
# header with the name that is used for the primary address associated with the # "From:" header with the name that is used for the primary address
# account. If the admin has disabled the ability for users to update their name # associated with the account.
# format, requests to update this field for the primary login will silently fail. # If the admin has disabled the ability for users to update their name
# format, requests to update this field for the primary login will silently
# fail.
# Corresponds to the JSON property `displayName` # Corresponds to the JSON property `displayName`
# @return [String] # @return [String]
attr_accessor :display_name attr_accessor :display_name
# Whether this address is selected as the default "From:" address in situations # Whether this address is selected as the default "From:" address in
# such as composing a new message or sending a vacation auto-reply. Every Gmail # situations such as composing a new message or sending a vacation
# account has exactly one default send-as address, so the only legal value that # auto-reply. Every Gmail account has exactly one default send-as address,
# clients may write to this field is true. Changing this from false to true for # so the only legal value that clients may write to this field is
# an address will result in this field becoming false for the other previous # <code>true</code>. Changing this from <code>false</code> to
# default address. # <code>true</code> for an address will result in this field becoming
# <code>false</code> for the other previous default address.
# Corresponds to the JSON property `isDefault` # Corresponds to the JSON property `isDefault`
# @return [Boolean] # @return [Boolean]
attr_accessor :is_default attr_accessor :is_default
alias_method :is_default?, :is_default alias_method :is_default?, :is_default
# Whether this address is the primary address used to login to the account. # Whether this address is the primary address used to login to the account.
# Every Gmail account has exactly one primary address, and it cannot be deleted # Every Gmail account has exactly one primary address, and it cannot be
# from the collection of send-as aliases. This field is read-only. # deleted from the collection of send-as aliases. This field is read-only.
# Corresponds to the JSON property `isPrimary` # Corresponds to the JSON property `isPrimary`
# @return [Boolean] # @return [Boolean]
attr_accessor :is_primary attr_accessor :is_primary
alias_method :is_primary?, :is_primary alias_method :is_primary?, :is_primary
# An optional email address that is included in a "Reply-To:" header for mail # An optional email address that is included in a "Reply-To:" header for mail
# sent using this alias. If this is empty, Gmail will not generate a "Reply-To:" # sent using this alias. If this is empty, Gmail will not generate a
# header. # "Reply-To:" header.
# Corresponds to the JSON property `replyToAddress` # Corresponds to the JSON property `replyToAddress`
# @return [String] # @return [String]
attr_accessor :reply_to_address attr_accessor :reply_to_address
# The email address that appears in the "From:" header for mail sent using this # The email address that appears in the "From:" header for mail sent using
# alias. This is read-only for all operations except create. # this alias. This is read-only for all operations except create.
# Corresponds to the JSON property `sendAsEmail` # Corresponds to the JSON property `sendAsEmail`
# @return [String] # @return [String]
attr_accessor :send_as_email attr_accessor :send_as_email
@ -1288,15 +1339,16 @@ module Google
# @return [Google::Apis::GmailV1::SmtpMsa] # @return [Google::Apis::GmailV1::SmtpMsa]
attr_accessor :smtp_msa attr_accessor :smtp_msa
# Whether Gmail should treat this address as an alias for the user's primary # Whether Gmail should <a href="https://support.google.com/a/answer/1710338">
# email address. This setting only applies to custom "from" aliases. # treat this address as an alias</a> for the user's primary email address.
# This setting only applies to custom "from" aliases.
# Corresponds to the JSON property `treatAsAlias` # Corresponds to the JSON property `treatAsAlias`
# @return [Boolean] # @return [Boolean]
attr_accessor :treat_as_alias attr_accessor :treat_as_alias
alias_method :treat_as_alias?, :treat_as_alias alias_method :treat_as_alias?, :treat_as_alias
# Indicates whether this address has been verified for use as a send-as alias. # Indicates whether this address has been verified for use as a send-as
# Read-only. This setting only applies to custom "from" aliases. # alias. Read-only. This setting only applies to custom "from" aliases.
# Corresponds to the JSON property `verificationStatus` # Corresponds to the JSON property `verificationStatus`
# @return [String] # @return [String]
attr_accessor :verification_status attr_accessor :verification_status
@ -1349,18 +1401,18 @@ module Google
# @return [String] # @return [String]
attr_accessor :issuer_cn attr_accessor :issuer_cn
# PEM formatted X509 concatenated certificate string (standard base64 encoding). # PEM formatted X509 concatenated certificate string (standard base64
# Format used for returning key, which includes public key as well as # encoding). Format used for returning key, which includes public key
# certificate chain (not private key). # as well as certificate chain (not private key).
# Corresponds to the JSON property `pem` # Corresponds to the JSON property `pem`
# @return [String] # @return [String]
attr_accessor :pem attr_accessor :pem
# PKCS#12 format containing a single private/public key pair and certificate # PKCS#12 format containing a single private/public key pair and
# chain. This format is only accepted from client for creating a new SmimeInfo # certificate chain. This format is only accepted from client
# and is never returned, because the private key is not intended to be exported. # for creating a new SmimeInfo and is never returned, because the
# PKCS#12 may be encrypted, in which case encryptedKeyPassword should be set # private key is not intended to be exported. PKCS#12 may be encrypted,
# appropriately. # in which case encryptedKeyPassword should be set appropriately.
# Corresponds to the JSON property `pkcs12` # Corresponds to the JSON property `pkcs12`
# NOTE: Values are automatically base64 encoded/decoded in the client library. # NOTE: Values are automatically base64 encoded/decoded in the client library.
# @return [String] # @return [String]
@ -1386,32 +1438,32 @@ module Google
class SmtpMsa class SmtpMsa
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The hostname of the SMTP service. Required. # The hostname of the SMTP service. Required.
# Corresponds to the JSON property `host` # Corresponds to the JSON property `host`
# @return [String] # @return [String]
attr_accessor :host attr_accessor :host
# The password that will be used for authentication with the SMTP service. This # The password that will be used for authentication with the SMTP service.
# is a write-only field that can be specified in requests to create or update # This is a write-only field that can be specified in requests to create or
# SendAs settings; it is never populated in responses. # update SendAs settings; it is never populated in responses.
# Corresponds to the JSON property `password` # Corresponds to the JSON property `password`
# @return [String] # @return [String]
attr_accessor :password attr_accessor :password
# The port of the SMTP service. Required. # The port of the SMTP service. Required.
# Corresponds to the JSON property `port` # Corresponds to the JSON property `port`
# @return [Fixnum] # @return [Fixnum]
attr_accessor :port attr_accessor :port
# The protocol that will be used to secure communication with the SMTP service. # The protocol that will be used to secure communication with the SMTP
# Required. # service. Required.
# Corresponds to the JSON property `securityMode` # Corresponds to the JSON property `securityMode`
# @return [String] # @return [String]
attr_accessor :security_mode attr_accessor :security_mode
# The username that will be used for authentication with the SMTP service. This # The username that will be used for authentication with the SMTP service.
# is a write-only field that can be specified in requests to create or update # This is a write-only field that can be specified in requests to create or
# SendAs settings; it is never populated in responses. # update SendAs settings; it is never populated in responses.
# Corresponds to the JSON property `username` # Corresponds to the JSON property `username`
# @return [String] # @return [String]
attr_accessor :username attr_accessor :username
@ -1467,8 +1519,9 @@ module Google
end end
end end
# Vacation auto-reply settings for an account. These settings correspond to the " # Vacation auto-reply settings for an account. These settings correspond to
# Vacation responder" feature in the web interface. # the <a href="https://support.google.com/mail/answer/25922">"Vacation
# responder"</a> feature in the web interface.
class VacationSettings class VacationSettings
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -1478,49 +1531,57 @@ module Google
attr_accessor :enable_auto_reply attr_accessor :enable_auto_reply
alias_method :enable_auto_reply?, :enable_auto_reply alias_method :enable_auto_reply?, :enable_auto_reply
# An optional end time for sending auto-replies (epoch ms). When this is # An optional end time for sending auto-replies (epoch ms).
# specified, Gmail will automatically reply only to messages that it receives # When this is specified, Gmail will automatically reply only to messages
# before the end time. If both startTime and endTime are specified, startTime # that it receives before the end time. If both <code>startTime</code> and
# must precede endTime. # <code>endTime</code> are specified, <code>startTime</code> must precede
# <code>endTime</code>.
# Corresponds to the JSON property `endTime` # Corresponds to the JSON property `endTime`
# @return [Fixnum] # @return [Fixnum]
attr_accessor :end_time attr_accessor :end_time
# Response body in HTML format. Gmail will sanitize the HTML before storing it. # Response body in HTML format. Gmail will sanitize the HTML before
# storing it. If both <code>response_body_plain_text</code> and
# <code>response_body_html</code> are specified,
# <code>response_body_html</code> will be used.
# Corresponds to the JSON property `responseBodyHtml` # Corresponds to the JSON property `responseBodyHtml`
# @return [String] # @return [String]
attr_accessor :response_body_html attr_accessor :response_body_html
# Response body in plain text format. # Response body in plain text format. If both
# <code>response_body_plain_text</code> and <code>response_body_html</code>
# are specified, <code>response_body_html</code> will be used.
# Corresponds to the JSON property `responseBodyPlainText` # Corresponds to the JSON property `responseBodyPlainText`
# @return [String] # @return [String]
attr_accessor :response_body_plain_text attr_accessor :response_body_plain_text
# Optional text to prepend to the subject line in vacation responses. In order # Optional text to prepend to the subject line in vacation responses. In
# to enable auto-replies, either the response subject or the response body must # order to enable auto-replies, either the response subject or the response
# be nonempty. # body must be nonempty.
# Corresponds to the JSON property `responseSubject` # Corresponds to the JSON property `responseSubject`
# @return [String] # @return [String]
attr_accessor :response_subject attr_accessor :response_subject
# Flag that determines whether responses are sent to recipients who are not in # Flag that determines whether responses are sent to recipients who are not
# the user's list of contacts. # in the user's list of contacts.
# Corresponds to the JSON property `restrictToContacts` # Corresponds to the JSON property `restrictToContacts`
# @return [Boolean] # @return [Boolean]
attr_accessor :restrict_to_contacts attr_accessor :restrict_to_contacts
alias_method :restrict_to_contacts?, :restrict_to_contacts alias_method :restrict_to_contacts?, :restrict_to_contacts
# Flag that determines whether responses are sent to recipients who are outside # Flag that determines whether responses are sent to recipients who are
# of the user's domain. This feature is only available for G Suite users. # outside of the user's domain. This feature is only available for G Suite
# users.
# Corresponds to the JSON property `restrictToDomain` # Corresponds to the JSON property `restrictToDomain`
# @return [Boolean] # @return [Boolean]
attr_accessor :restrict_to_domain attr_accessor :restrict_to_domain
alias_method :restrict_to_domain?, :restrict_to_domain alias_method :restrict_to_domain?, :restrict_to_domain
# An optional start time for sending auto-replies (epoch ms). When this is # An optional start time for sending auto-replies (epoch ms).
# specified, Gmail will automatically reply only to messages that it receives # When this is specified, Gmail will automatically reply only to messages
# after the start time. If both startTime and endTime are specified, startTime # that it receives after the start time. If both <code>startTime</code> and
# must precede endTime. # <code>endTime</code> are specified, <code>startTime</code> must precede
# <code>endTime</code>.
# Corresponds to the JSON property `startTime` # Corresponds to the JSON property `startTime`
# @return [Fixnum] # @return [Fixnum]
attr_accessor :start_time attr_accessor :start_time
@ -1551,20 +1612,21 @@ module Google
# @return [String] # @return [String]
attr_accessor :label_filter_action attr_accessor :label_filter_action
# List of label_ids to restrict notifications about. By default, if unspecified, # List of label_ids to restrict notifications about. By default,
# all changes are pushed out. If specified then dictates which labels are # if unspecified, all changes are pushed out. If specified then
# required for a push notification to be generated. # dictates which labels are required for a push notification to
# be generated.
# Corresponds to the JSON property `labelIds` # Corresponds to the JSON property `labelIds`
# @return [Array<String>] # @return [Array<String>]
attr_accessor :label_ids attr_accessor :label_ids
# A fully qualified Google Cloud Pub/Sub API topic name to publish the events to. # A fully qualified Google Cloud Pub/Sub API topic name to publish the
# This topic name **must** already exist in Cloud Pub/Sub and you **must** have # events to. This topic name **must** already exist in Cloud Pub/Sub and
# already granted gmail "publish" permission on it. For example, "projects/my- # you **must** have already granted gmail "publish" permission on it.
# project-identifier/topics/my-topic-name" (using the Cloud Pub/Sub "v1" topic # For example, "projects/my-project-identifier/topics/my-topic-name"
# naming format). # (using the Cloud Pub/Sub "v1" topic naming format).
# Note that the "my-project-identifier" portion must exactly match your Google # Note that the "my-project-identifier" portion must exactly match your
# developer project id (the one executing this watch request). # Google developer project id (the one executing this watch request).
# Corresponds to the JSON property `topicName` # Corresponds to the JSON property `topicName`
# @return [String] # @return [String]
attr_accessor :topic_name attr_accessor :topic_name
@ -1585,8 +1647,9 @@ module Google
class WatchResponse class WatchResponse
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# When Gmail will stop sending notifications for mailbox updates (epoch millis). # When Gmail will stop sending notifications for mailbox updates
# Call watch again before this time to renew the watch. # (epoch millis). Call <code>watch</code> again before this time to renew
# the watch.
# Corresponds to the JSON property `expiration` # Corresponds to the JSON property `expiration`
# @return [Fixnum] # @return [Fixnum]
attr_accessor :expiration attr_accessor :expiration

File diff suppressed because it is too large Load Diff

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/memorystore/ # @see https://cloud.google.com/memorystore/
module MemcacheV1beta2 module MemcacheV1beta2
VERSION = 'V1beta2' VERSION = 'V1beta2'
REVISION = '20200603' REVISION = '20200608'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -62,7 +62,7 @@ module Google
# ` # `
# "audit_configs": [ # "audit_configs": [
# ` # `
# "service": "allServices" # "service": "allServices",
# "audit_log_configs": [ # "audit_log_configs": [
# ` # `
# "log_type": "DATA_READ", # "log_type": "DATA_READ",
@ -71,18 +71,18 @@ module Google
# ] # ]
# `, # `,
# ` # `
# "log_type": "DATA_WRITE", # "log_type": "DATA_WRITE"
# `, # `,
# ` # `
# "log_type": "ADMIN_READ", # "log_type": "ADMIN_READ"
# ` # `
# ] # ]
# `, # `,
# ` # `
# "service": "sampleservice.googleapis.com" # "service": "sampleservice.googleapis.com",
# "audit_log_configs": [ # "audit_log_configs": [
# ` # `
# "log_type": "DATA_READ", # "log_type": "DATA_READ"
# `, # `,
# ` # `
# "log_type": "DATA_WRITE", # "log_type": "DATA_WRITE",
@ -134,7 +134,7 @@ module Google
# ] # ]
# `, # `,
# ` # `
# "log_type": "DATA_WRITE", # "log_type": "DATA_WRITE"
# ` # `
# ] # ]
# ` # `

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/ # @see https://cloud.google.com/
module OsconfigV1beta module OsconfigV1beta
VERSION = 'V1beta' VERSION = 'V1beta'
REVISION = '20200504' REVISION = '20200601'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -461,8 +461,7 @@ module Google
end end
end end
# A request message to initiate patching across Google Compute Engine # A request message to initiate patching across Compute Engine instances.
# instances.
class ExecutePatchJobRequest class ExecutePatchJobRequest
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -1182,8 +1181,8 @@ module Google
class PatchInstanceFilterGroupLabel class PatchInstanceFilterGroupLabel
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Google Compute Engine instance labels that must be present for a VM # Compute Engine instance labels that must be present for a VM instance to
# instance to be targeted by this filter. # be targeted by this filter.
# Corresponds to the JSON property `labels` # Corresponds to the JSON property `labels`
# @return [Hash<String,String>] # @return [Hash<String,String>]
attr_accessor :labels attr_accessor :labels
@ -1200,8 +1199,8 @@ module Google
# A high level representation of a patch job that is either in progress # A high level representation of a patch job that is either in progress
# or has completed. # or has completed.
# Instances details are not included in the job. To paginate through instance # Instance details are not included in the job. To paginate through instance
# details, use ListPatchJobInstanceDetails. # details, use `ListPatchJobInstanceDetails`.
# For more information about patch jobs, see # For more information about patch jobs, see
# [Creating patch # [Creating patch
# jobs](https://cloud.google.com/compute/docs/os-patch-management/create-patch- # jobs](https://cloud.google.com/compute/docs/os-patch-management/create-patch-
@ -1283,7 +1282,7 @@ module Google
# @return [Float] # @return [Float]
attr_accessor :percent_complete attr_accessor :percent_complete
# The current state of the PatchJob . # The current state of the PatchJob.
# Corresponds to the JSON property `state` # Corresponds to the JSON property `state`
# @return [String] # @return [String]
attr_accessor :state attr_accessor :state

View File

@ -28,7 +28,7 @@ module Google
# @see https://developers.google.com/speed/docs/insights/v5/about # @see https://developers.google.com/speed/docs/insights/v5/about
module PagespeedonlineV5 module PagespeedonlineV5
VERSION = 'V5' VERSION = 'V5'
REVISION = '20200305' REVISION = '20200608'
# Associate you with your personal info on Google # Associate you with your personal info on Google
PENID = 'openid' PENID = 'openid'

View File

@ -496,6 +496,12 @@ module Google
# @return [Hash<String,Google::Apis::PagespeedonlineV5::UserPageLoadMetricV5>] # @return [Hash<String,Google::Apis::PagespeedonlineV5::UserPageLoadMetricV5>]
attr_accessor :metrics attr_accessor :metrics
# True if the result is an origin fallback from a page, false otherwise.
# Corresponds to the JSON property `origin_fallback`
# @return [Boolean]
attr_accessor :origin_fallback
alias_method :origin_fallback?, :origin_fallback
# The human readable speed "category" of the id. # The human readable speed "category" of the id.
# Corresponds to the JSON property `overall_category` # Corresponds to the JSON property `overall_category`
# @return [String] # @return [String]
@ -510,6 +516,7 @@ module Google
@id = args[:id] if args.key?(:id) @id = args[:id] if args.key?(:id)
@initial_url = args[:initial_url] if args.key?(:initial_url) @initial_url = args[:initial_url] if args.key?(:initial_url)
@metrics = args[:metrics] if args.key?(:metrics) @metrics = args[:metrics] if args.key?(:metrics)
@origin_fallback = args[:origin_fallback] if args.key?(:origin_fallback)
@overall_category = args[:overall_category] if args.key?(:overall_category) @overall_category = args[:overall_category] if args.key?(:overall_category)
end end
end end

View File

@ -266,6 +266,7 @@ module Google
property :initial_url, as: 'initial_url' property :initial_url, as: 'initial_url'
hash :metrics, as: 'metrics', class: Google::Apis::PagespeedonlineV5::UserPageLoadMetricV5, decorator: Google::Apis::PagespeedonlineV5::UserPageLoadMetricV5::Representation hash :metrics, as: 'metrics', class: Google::Apis::PagespeedonlineV5::UserPageLoadMetricV5, decorator: Google::Apis::PagespeedonlineV5::UserPageLoadMetricV5::Representation
property :origin_fallback, as: 'origin_fallback'
property :overall_category, as: 'overall_category' property :overall_category, as: 'overall_category'
end end
end end

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/people/ # @see https://developers.google.com/people/
module PeopleV1 module PeopleV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20200604' REVISION = '20200606'
# See, edit, download, and permanently delete your contacts # See, edit, download, and permanently delete your contacts
AUTH_CONTACTS = 'https://www.googleapis.com/auth/contacts' AUTH_CONTACTS = 'https://www.googleapis.com/auth/contacts'

View File

@ -439,8 +439,8 @@ module Google
# Optional. A field mask to restrict which fields on the person are returned. # Optional. A field mask to restrict which fields on the person are returned.
# Multiple # Multiple
# fields can be specified by separating them with commas. Defaults to empty # fields can be specified by separating them with commas. Defaults to the
# if not set, which will skip the post mutate get. Valid values are: # copy mask with metadata and membership fields if not set. Valid values are:
# * addresses # * addresses
# * ageRanges # * ageRanges
# * biographies # * biographies
@ -470,6 +470,14 @@ module Google
# @return [String] # @return [String]
attr_accessor :read_mask attr_accessor :read_mask
# Optional. A mask of what source types to return. Defaults to
# ReadSourceType.CONTACT and
# ReadSourceType.PROFILE if not
# set.
# Corresponds to the JSON property `sources`
# @return [Array<String>]
attr_accessor :sources
def initialize(**args) def initialize(**args)
update!(**args) update!(**args)
end end
@ -478,6 +486,7 @@ module Google
def update!(**args) def update!(**args)
@copy_mask = args[:copy_mask] if args.key?(:copy_mask) @copy_mask = args[:copy_mask] if args.key?(:copy_mask)
@read_mask = args[:read_mask] if args.key?(:read_mask) @read_mask = args[:read_mask] if args.key?(:read_mask)
@sources = args[:sources] if args.key?(:sources)
end end
end end
@ -2302,6 +2311,14 @@ module Google
# @return [String] # @return [String]
attr_accessor :photo_bytes attr_accessor :photo_bytes
# Optional. A mask of what source types to return. Defaults to
# ReadSourceType.CONTACT and
# ReadSourceType.PROFILE if not
# set.
# Corresponds to the JSON property `sources`
# @return [Array<String>]
attr_accessor :sources
def initialize(**args) def initialize(**args)
update!(**args) update!(**args)
end end
@ -2310,6 +2327,7 @@ module Google
def update!(**args) def update!(**args)
@person_fields = args[:person_fields] if args.key?(:person_fields) @person_fields = args[:person_fields] if args.key?(:person_fields)
@photo_bytes = args[:photo_bytes] if args.key?(:photo_bytes) @photo_bytes = args[:photo_bytes] if args.key?(:photo_bytes)
@sources = args[:sources] if args.key?(:sources)
end end
end end

View File

@ -465,6 +465,7 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :copy_mask, as: 'copyMask' property :copy_mask, as: 'copyMask'
property :read_mask, as: 'readMask' property :read_mask, as: 'readMask'
collection :sources, as: 'sources'
end end
end end
@ -950,6 +951,7 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :person_fields, as: 'personFields' property :person_fields, as: 'personFields'
property :photo_bytes, :base64 => true, as: 'photoBytes' property :photo_bytes, :base64 => true, as: 'photoBytes'
collection :sources, as: 'sources'
end end
end end

View File

@ -329,8 +329,104 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# List all other contacts, that is contacts that are not in a contact group.
# Other contacts are typically auto created contacts from interactions.
# @param [Fixnum] page_size
# Optional. The number of other contacts to include in the response. Valid
# values are
# between 1 and 1000, inclusive. Defaults to 100 if not set or set to 0.
# @param [String] page_token
# Optional. A page token, received from a previous `ListOtherContacts` call.
# Provide this to retrieve the subsequent page.
# When paginating, all other parameters provided to `ListOtherContacts`
# must match the call that provided the page token.
# @param [String] read_mask
# Required. A field mask to restrict which fields on each person are returned.
# Multiple
# fields can be specified by separating them with commas. Valid values are:
# * emailAddresses
# * names
# * phoneNumbers
# @param [Boolean] request_sync_token
# Optional. Whether the response should include `next_sync_token`, which can be
# used to
# get all changes since the last request. For subsequent sync requests use
# the `sync_token` param instead. Initial sync requests that specify
# `request_sync_token` have an additional rate limit.
# @param [String] sync_token
# Optional. A sync token, received from a previous `ListOtherContacts` call.
# Provide this to retrieve only the resources changed since the last request.
# Sync requests that specify `sync_token` have an additional rate limit.
# When syncing, all other parameters provided to `ListOtherContacts`
# must match the call that provided the sync token.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::PeopleV1::ListOtherContactsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::PeopleV1::ListOtherContactsResponse]
#
# @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_other_contacts(page_size: nil, page_token: nil, read_mask: nil, request_sync_token: nil, sync_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/otherContacts', options)
command.response_representation = Google::Apis::PeopleV1::ListOtherContactsResponse::Representation
command.response_class = Google::Apis::PeopleV1::ListOtherContactsResponse
command.query['pageSize'] = page_size unless page_size.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['readMask'] = read_mask unless read_mask.nil?
command.query['requestSyncToken'] = request_sync_token unless request_sync_token.nil?
command.query['syncToken'] = sync_token unless sync_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
# Create a new contact and return the person resource for that contact. # Create a new contact and return the person resource for that contact.
# @param [Google::Apis::PeopleV1::Person] person_object # @param [Google::Apis::PeopleV1::Person] person_object
# @param [String] person_fields
# Required. A field mask to restrict which fields on each person are returned.
# Multiple
# fields can be specified by separating them with commas. Defaults to all
# fields if not set. Valid values are:
# * addresses
# * ageRanges
# * biographies
# * birthdays
# * coverPhotos
# * emailAddresses
# * events
# * genders
# * imClients
# * interests
# * locales
# * memberships
# * metadata
# * names
# * nicknames
# * occupations
# * organizations
# * phoneNumbers
# * photos
# * relations
# * residences
# * sipAddresses
# * skills
# * urls
# * userDefined
# @param [Array<String>, String] sources
# Optional. A mask of what source types to return. Defaults to
# ReadSourceType.CONTACT and
# ReadSourceType.PROFILE if not
# set.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -348,12 +444,14 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @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::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def create_person_contact(person_object = nil, fields: nil, quota_user: nil, options: nil, &block) def create_person_contact(person_object = nil, person_fields: nil, sources: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/people:createContact', options) command = make_simple_command(:post, 'v1/people:createContact', options)
command.request_representation = Google::Apis::PeopleV1::Person::Representation command.request_representation = Google::Apis::PeopleV1::Person::Representation
command.request_object = person_object command.request_object = person_object
command.response_representation = Google::Apis::PeopleV1::Person::Representation command.response_representation = Google::Apis::PeopleV1::Person::Representation
command.response_class = Google::Apis::PeopleV1::Person command.response_class = Google::Apis::PeopleV1::Person
command.query['personFields'] = person_fields unless person_fields.nil?
command.query['sources'] = sources unless sources.nil?
command.query['fields'] = fields unless fields.nil? command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
@ -422,6 +520,11 @@ module Google
# * skills # * skills
# * urls # * urls
# * userDefined # * userDefined
# @param [Array<String>, String] sources
# Optional. A mask of what source types to return. Defaults to
# ReadSourceType.CONTACT and
# ReadSourceType.PROFILE if not
# set.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -439,12 +542,13 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @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::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_person_contact_photo(resource_name, person_fields: nil, fields: nil, quota_user: nil, options: nil, &block) def delete_person_contact_photo(resource_name, person_fields: nil, sources: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:delete, 'v1/{+resourceName}:deleteContactPhoto', options) command = make_simple_command(:delete, 'v1/{+resourceName}:deleteContactPhoto', options)
command.response_representation = Google::Apis::PeopleV1::DeleteContactPhotoResponse::Representation command.response_representation = Google::Apis::PeopleV1::DeleteContactPhotoResponse::Representation
command.response_class = Google::Apis::PeopleV1::DeleteContactPhotoResponse command.response_class = Google::Apis::PeopleV1::DeleteContactPhotoResponse
command.params['resourceName'] = resource_name unless resource_name.nil? command.params['resourceName'] = resource_name unless resource_name.nil?
command.query['personFields'] = person_fields unless person_fields.nil? command.query['personFields'] = person_fields unless person_fields.nil?
command.query['sources'] = sources unless sources.nil?
command.query['fields'] = fields unless fields.nil? command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
@ -495,6 +599,12 @@ module Google
# Each # Each
# path should start with `person.`: for example, `person.names` or # path should start with `person.`: for example, `person.names` or
# `person.photos`. # `person.photos`.
# @param [Array<String>, String] sources
# Optional. A mask of what source types to return. Defaults to
# ReadSourceType.PROFILE
# and
# ReadSourceType.CONTACT
# if not set.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -512,13 +622,14 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @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::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def get_person(resource_name, person_fields: nil, request_mask_include_field: nil, fields: nil, quota_user: nil, options: nil, &block) def get_person(resource_name, person_fields: nil, request_mask_include_field: nil, sources: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+resourceName}', options) command = make_simple_command(:get, 'v1/{+resourceName}', options)
command.response_representation = Google::Apis::PeopleV1::Person::Representation command.response_representation = Google::Apis::PeopleV1::Person::Representation
command.response_class = Google::Apis::PeopleV1::Person command.response_class = Google::Apis::PeopleV1::Person
command.params['resourceName'] = resource_name unless resource_name.nil? command.params['resourceName'] = resource_name unless resource_name.nil?
command.query['personFields'] = person_fields unless person_fields.nil? command.query['personFields'] = person_fields unless person_fields.nil?
command.query['requestMask.includeField'] = request_mask_include_field unless request_mask_include_field.nil? command.query['requestMask.includeField'] = request_mask_include_field unless request_mask_include_field.nil?
command.query['sources'] = sources unless sources.nil?
command.query['fields'] = fields unless fields.nil? command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
@ -571,6 +682,12 @@ module Google
# identifies the contact as returned by # identifies the contact as returned by
# [`people.connections.list`](/people/api/rest/v1/people.connections/list). # [`people.connections.list`](/people/api/rest/v1/people.connections/list).
# You can include up to 50 resource names in one request. # You can include up to 50 resource names in one request.
# @param [Array<String>, String] sources
# Optional. A mask of what source types to return. Defaults to
# ReadSourceType.CONTACT
# and
# ReadSourceType.PROFILE
# if not set.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -588,13 +705,14 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @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::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def get_people(person_fields: nil, request_mask_include_field: nil, resource_names: nil, fields: nil, quota_user: nil, options: nil, &block) def get_people(person_fields: nil, request_mask_include_field: nil, resource_names: nil, sources: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/people:batchGet', options) command = make_simple_command(:get, 'v1/people:batchGet', options)
command.response_representation = Google::Apis::PeopleV1::GetPeopleResponse::Representation command.response_representation = Google::Apis::PeopleV1::GetPeopleResponse::Representation
command.response_class = Google::Apis::PeopleV1::GetPeopleResponse command.response_class = Google::Apis::PeopleV1::GetPeopleResponse
command.query['personFields'] = person_fields unless person_fields.nil? command.query['personFields'] = person_fields unless person_fields.nil?
command.query['requestMask.includeField'] = request_mask_include_field unless request_mask_include_field.nil? command.query['requestMask.includeField'] = request_mask_include_field unless request_mask_include_field.nil?
command.query['resourceNames'] = resource_names unless resource_names.nil? command.query['resourceNames'] = resource_names unless resource_names.nil?
command.query['sources'] = sources unless sources.nil?
command.query['fields'] = fields unless fields.nil? command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
@ -615,6 +733,41 @@ module Google
# with a max length of 27 characters, in the form of # with a max length of 27 characters, in the form of
# `people/`person_id``. # `people/`person_id``.
# @param [Google::Apis::PeopleV1::Person] person_object # @param [Google::Apis::PeopleV1::Person] person_object
# @param [String] person_fields
# Optional. A field mask to restrict which fields on each person are returned.
# Multiple
# fields can be specified by separating them with commas. Defaults to all
# fields if not set. Valid values are:
# * addresses
# * ageRanges
# * biographies
# * birthdays
# * coverPhotos
# * emailAddresses
# * events
# * genders
# * imClients
# * interests
# * locales
# * memberships
# * metadata
# * names
# * nicknames
# * occupations
# * organizations
# * phoneNumbers
# * photos
# * relations
# * residences
# * sipAddresses
# * skills
# * urls
# * userDefined
# @param [Array<String>, String] sources
# Optional. A mask of what source types to return. Defaults to
# ReadSourceType.CONTACT and
# ReadSourceType.PROFILE if not
# set.
# @param [String] update_person_fields # @param [String] update_person_fields
# Required. A field mask to restrict which fields on the person are updated. # Required. A field mask to restrict which fields on the person are updated.
# Multiple # Multiple
@ -657,13 +810,15 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @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::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def update_person_contact(resource_name, person_object = nil, update_person_fields: nil, fields: nil, quota_user: nil, options: nil, &block) def update_person_contact(resource_name, person_object = nil, person_fields: nil, sources: nil, update_person_fields: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:patch, 'v1/{+resourceName}:updateContact', options) command = make_simple_command(:patch, 'v1/{+resourceName}:updateContact', options)
command.request_representation = Google::Apis::PeopleV1::Person::Representation command.request_representation = Google::Apis::PeopleV1::Person::Representation
command.request_object = person_object command.request_object = person_object
command.response_representation = Google::Apis::PeopleV1::Person::Representation command.response_representation = Google::Apis::PeopleV1::Person::Representation
command.response_class = Google::Apis::PeopleV1::Person command.response_class = Google::Apis::PeopleV1::Person
command.params['resourceName'] = resource_name unless resource_name.nil? command.params['resourceName'] = resource_name unless resource_name.nil?
command.query['personFields'] = person_fields unless person_fields.nil?
command.query['sources'] = sources unless sources.nil?
command.query['updatePersonFields'] = update_person_fields unless update_person_fields.nil? command.query['updatePersonFields'] = update_person_fields unless update_person_fields.nil?
command.query['fields'] = fields unless fields.nil? command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['quotaUser'] = quota_user unless quota_user.nil?
@ -760,6 +915,12 @@ module Google
# @param [String] sort_order # @param [String] sort_order
# Optional. The order in which the connections should be sorted. Defaults to # Optional. The order in which the connections should be sorted. Defaults to
# `LAST_MODIFIED_ASCENDING`. # `LAST_MODIFIED_ASCENDING`.
# @param [Array<String>, String] sources
# Optional. A mask of what source types to return. Defaults to
# ReadSourceType.CONTACT
# and
# ReadSourceType.PROFILE if not
# set.
# @param [String] sync_token # @param [String] sync_token
# Optional. A sync token, received from a previous `ListConnections` call. # Optional. A sync token, received from a previous `ListConnections` call.
# Provide this to retrieve only the resources changed since the last request. # Provide this to retrieve only the resources changed since the last request.
@ -783,7 +944,7 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @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::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def list_person_connections(resource_name, page_size: nil, page_token: nil, person_fields: nil, request_mask_include_field: nil, request_sync_token: nil, sort_order: nil, sync_token: nil, fields: nil, quota_user: nil, options: nil, &block) def list_person_connections(resource_name, page_size: nil, page_token: nil, person_fields: nil, request_mask_include_field: nil, request_sync_token: nil, sort_order: nil, sources: nil, sync_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+resourceName}/connections', options) command = make_simple_command(:get, 'v1/{+resourceName}/connections', options)
command.response_representation = Google::Apis::PeopleV1::ListConnectionsResponse::Representation command.response_representation = Google::Apis::PeopleV1::ListConnectionsResponse::Representation
command.response_class = Google::Apis::PeopleV1::ListConnectionsResponse command.response_class = Google::Apis::PeopleV1::ListConnectionsResponse
@ -794,67 +955,7 @@ module Google
command.query['requestMask.includeField'] = request_mask_include_field unless request_mask_include_field.nil? command.query['requestMask.includeField'] = request_mask_include_field unless request_mask_include_field.nil?
command.query['requestSyncToken'] = request_sync_token unless request_sync_token.nil? command.query['requestSyncToken'] = request_sync_token unless request_sync_token.nil?
command.query['sortOrder'] = sort_order unless sort_order.nil? command.query['sortOrder'] = sort_order unless sort_order.nil?
command.query['syncToken'] = sync_token unless sync_token.nil? command.query['sources'] = sources unless sources.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# List all other contacts, that is contacts that are not in a contact group.
# Other contacts are typically auto created contacts from interactions.
# @param [Fixnum] page_size
# Optional. The number of other contacts to include in the response. Valid
# values are
# between 1 and 1000, inclusive. Defaults to 100 if not set or set to 0.
# @param [String] page_token
# Optional. A page token, received from a previous `ListOtherContacts` call.
# Provide this to retrieve the subsequent page.
# When paginating, all other parameters provided to `ListOtherContacts`
# must match the call that provided the page token.
# @param [String] read_mask
# Required. A field mask to restrict which fields on each person are returned.
# Multiple
# fields can be specified by separating them with commas. Valid values are:
# * emailAddresses
# * names
# * phoneNumbers
# @param [Boolean] request_sync_token
# Optional. Whether the response should include `next_sync_token`, which can be
# used to
# get all changes since the last request. For subsequent sync requests use
# the `sync_token` param instead. Initial sync requests that specify
# `request_sync_token` have an additional rate limit.
# @param [String] sync_token
# Optional. A sync token, received from a previous `ListOtherContacts` call.
# Provide this to retrieve only the resources changed since the last request.
# Sync requests that specify `sync_token` have an additional rate limit.
# When syncing, all other parameters provided to `ListOtherContacts`
# must match the call that provided the sync token.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::PeopleV1::ListOtherContactsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::PeopleV1::ListOtherContactsResponse]
#
# @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 other_contacts(page_size: nil, page_token: nil, read_mask: nil, request_sync_token: nil, sync_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/otherContacts', options)
command.response_representation = Google::Apis::PeopleV1::ListOtherContactsResponse::Representation
command.response_class = Google::Apis::PeopleV1::ListOtherContactsResponse
command.query['pageSize'] = page_size unless page_size.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['readMask'] = read_mask unless read_mask.nil?
command.query['requestSyncToken'] = request_sync_token unless request_sync_token.nil?
command.query['syncToken'] = sync_token unless sync_token.nil? command.query['syncToken'] = sync_token unless sync_token.nil?
command.query['fields'] = fields unless fields.nil? command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['quotaUser'] = quota_user unless quota_user.nil?