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:
parent
5852c0c734
commit
e62553d4ba
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://cloud.google.com/asset-inventory/docs/quickstart
|
||||
module CloudassetV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20200515'
|
||||
REVISION = '20200605'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -59,7 +59,7 @@ module Google
|
|||
# @return [Array<String>]
|
||||
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
|
||||
# types](https://cloud.google.com/asset-inventory/docs/supported-asset-types)
|
||||
# for more information.
|
||||
|
@ -133,8 +133,8 @@ module Google
|
|||
attr_accessor :iam_policy
|
||||
|
||||
# The full name of the asset. Example:
|
||||
# "//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/
|
||||
# instance1"
|
||||
# `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/
|
||||
# instance1`
|
||||
# See [Resource
|
||||
# names](https://cloud.google.com/apis/design/resource_names#full_resource_name)
|
||||
# for more information.
|
||||
|
@ -170,6 +170,12 @@ module Google
|
|||
# @return [Google::Apis::CloudassetV1::GoogleIdentityAccesscontextmanagerV1ServicePerimeter]
|
||||
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)
|
||||
update!(**args)
|
||||
end
|
||||
|
@ -185,6 +191,7 @@ module Google
|
|||
@org_policy = args[:org_policy] if args.key?(:org_policy)
|
||||
@resource = args[:resource] if args.key?(:resource)
|
||||
@service_perimeter = args[:service_perimeter] if args.key?(:service_perimeter)
|
||||
@update_time = args[:update_time] if args.key?(:update_time)
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -200,7 +207,7 @@ module Google
|
|||
# `
|
||||
# "audit_configs": [
|
||||
# `
|
||||
# "service": "allServices"
|
||||
# "service": "allServices",
|
||||
# "audit_log_configs": [
|
||||
# `
|
||||
# "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": [
|
||||
# `
|
||||
# "log_type": "DATA_READ",
|
||||
# "log_type": "DATA_READ"
|
||||
# `,
|
||||
# `
|
||||
# "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
|
||||
|
||||
# A BigQuery destination.
|
||||
# A BigQuery destination for exporting assets to.
|
||||
class BigQueryDestination
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
|
@ -495,31 +502,6 @@ module Google
|
|||
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.
|
||||
class ExportAssetsRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
@ -1600,117 +1582,6 @@ module Google
|
|||
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
|
||||
include Google::Apis::Core::Hashable
|
||||
|
@ -1798,7 +1669,7 @@ module Google
|
|||
class OutputConfig
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# A BigQuery destination.
|
||||
# A BigQuery destination for exporting assets to.
|
||||
# Corresponds to the JSON property `bigqueryDestination`
|
||||
# @return [Google::Apis::CloudassetV1::BigQueryDestination]
|
||||
attr_accessor :bigquery_destination
|
||||
|
@ -1819,25 +1690,6 @@ module Google
|
|||
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
|
||||
# controls for Google Cloud resources.
|
||||
# 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.
|
||||
# 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
|
||||
# discovery document, such as Cloud Bigtable.
|
||||
# Corresponds to the JSON property `discoveryDocumentUri`
|
||||
|
@ -2006,7 +1858,7 @@ module Google
|
|||
attr_accessor :discovery_document_uri
|
||||
|
||||
# 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
|
||||
# discovery document, such as Cloud Bigtable.
|
||||
# Corresponds to the JSON property `discoveryName`
|
||||
|
@ -2027,7 +1879,7 @@ module Google
|
|||
# [Cloud IAM policy
|
||||
# hierarchy](https://cloud.google.com/iam/docs/overview#policy_hierarchy).
|
||||
# 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.
|
||||
# Corresponds to the JSON property `parent`
|
||||
# @return [String]
|
||||
|
@ -2035,13 +1887,13 @@ module Google
|
|||
|
||||
# The REST URL for accessing the resource. An HTTP `GET` request using this
|
||||
# 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.
|
||||
# Corresponds to the JSON property `resourceUrl`
|
||||
# @return [String]
|
||||
attr_accessor :resource_url
|
||||
|
||||
# The API version. Example: "v1"
|
||||
# The API version. Example: `v1`
|
||||
# Corresponds to the JSON property `version`
|
||||
# @return [String]
|
||||
attr_accessor :version
|
||||
|
@ -2062,175 +1914,6 @@ module Google
|
|||
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
|
||||
# different programming environments, including REST APIs and RPC APIs. It is
|
||||
# used by [gRPC](https://github.com/grpc). Each `Status` message contains
|
||||
|
@ -2291,7 +1974,7 @@ module Google
|
|||
attr_accessor :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`
|
||||
# @return [Google::Apis::CloudassetV1::TimeWindow]
|
||||
attr_accessor :window
|
||||
|
@ -2308,7 +1991,7 @@ module Google
|
|||
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
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
|
|
|
@ -70,12 +70,6 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Explanation
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ExportAssetsRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -190,12 +184,6 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class IamPolicySearchResult
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ListFeedsResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -214,12 +202,6 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Permissions
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Policy
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -238,24 +220,6 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
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 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 :update_time, as: 'updateTime'
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -360,14 +325,6 @@ module Google
|
|||
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
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
@ -566,18 +523,6 @@ module Google
|
|||
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
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
@ -608,13 +553,6 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class Permissions
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :permissions, as: 'permissions'
|
||||
end
|
||||
end
|
||||
|
||||
class Policy
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
@ -647,39 +585,6 @@ module Google
|
|||
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
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
|
|
@ -254,10 +254,10 @@ module Google
|
|||
end
|
||||
|
||||
# Batch gets the update history of assets that overlap a time window.
|
||||
# For RESOURCE content, this API outputs history with asset in both
|
||||
# non-delete or deleted status.
|
||||
# For IAM_POLICY content, this API outputs history when the asset and its
|
||||
# attached IAM POLICY both exist. This can create gaps in the output history.
|
||||
# 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
|
||||
# error.
|
||||
# @param [String] parent
|
||||
|
@ -311,13 +311,15 @@ module Google
|
|||
end
|
||||
|
||||
# Exports assets with time and resource types to a given Cloud Storage
|
||||
# location. The output format is newline-delimited JSON. Each line represents
|
||||
# a google.cloud.asset.v1.Asset in the JSON format.
|
||||
# This API implements the google.longrunning.Operation API allowing you
|
||||
# to keep track of the export. We recommend intervals of 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.
|
||||
# location/BigQuery table. For Cloud Storage location destinations, the
|
||||
# output format is newline-delimited JSON. Each line represents a
|
||||
# google.cloud.asset.v1.Asset in the JSON format; for BigQuery table
|
||||
# destinations, the output table stores the fields in asset proto as columns.
|
||||
# This API implements the google.longrunning.Operation API
|
||||
# , which allows you to keep track of the export. We recommend intervals of
|
||||
# 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
|
||||
# Required. The relative name of the root asset. This can only be an
|
||||
# organization number (such as "organizations/123"), a project ID (such as
|
||||
|
@ -353,183 +355,6 @@ module Google
|
|||
execute_or_queue_command(command, &block)
|
||||
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
|
||||
|
||||
def apply_command_defaults(command)
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://cloud.google.com/asset-inventory/docs/quickstart
|
||||
module CloudassetV1beta1
|
||||
VERSION = 'V1beta1'
|
||||
REVISION = '20200515'
|
||||
REVISION = '20200605'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -137,7 +137,7 @@ module Google
|
|||
# `
|
||||
# "audit_configs": [
|
||||
# `
|
||||
# "service": "allServices"
|
||||
# "service": "allServices",
|
||||
# "audit_log_configs": [
|
||||
# `
|
||||
# "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": [
|
||||
# `
|
||||
# "log_type": "DATA_READ",
|
||||
# "log_type": "DATA_READ"
|
||||
# `,
|
||||
# `
|
||||
# "log_type": "DATA_WRITE",
|
||||
|
@ -209,7 +209,7 @@ module Google
|
|||
# ]
|
||||
# `,
|
||||
# `
|
||||
# "log_type": "DATA_WRITE",
|
||||
# "log_type": "DATA_WRITE"
|
||||
# `
|
||||
# ]
|
||||
# `
|
||||
|
|
|
@ -122,10 +122,10 @@ module Google
|
|||
end
|
||||
|
||||
# Batch gets the update history of assets that overlap a time window.
|
||||
# For RESOURCE content, this API outputs history with asset in both
|
||||
# non-delete or deleted status.
|
||||
# For IAM_POLICY content, this API outputs history when the asset and its
|
||||
# attached IAM POLICY both exist. This can create gaps in the output history.
|
||||
# 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
|
||||
# error.
|
||||
# @param [String] parent
|
||||
|
@ -254,10 +254,10 @@ module Google
|
|||
end
|
||||
|
||||
# Batch gets the update history of assets that overlap a time window.
|
||||
# For RESOURCE content, this API outputs history with asset in both
|
||||
# non-delete or deleted status.
|
||||
# For IAM_POLICY content, this API outputs history when the asset and its
|
||||
# attached IAM POLICY both exist. This can create gaps in the output history.
|
||||
# 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
|
||||
# error.
|
||||
# @param [String] parent
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://cloud.google.com/asset-inventory/docs/quickstart
|
||||
module CloudassetV1p1beta1
|
||||
VERSION = 'V1p1beta1'
|
||||
REVISION = '20200515'
|
||||
REVISION = '20200605'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -34,7 +34,7 @@ module Google
|
|||
# `
|
||||
# "audit_configs": [
|
||||
# `
|
||||
# "service": "allServices"
|
||||
# "service": "allServices",
|
||||
# "audit_log_configs": [
|
||||
# `
|
||||
# "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": [
|
||||
# `
|
||||
# "log_type": "DATA_READ",
|
||||
# "log_type": "DATA_READ"
|
||||
# `,
|
||||
# `
|
||||
# "log_type": "DATA_WRITE",
|
||||
|
@ -106,7 +106,7 @@ module Google
|
|||
# ]
|
||||
# `,
|
||||
# `
|
||||
# "log_type": "DATA_WRITE",
|
||||
# "log_type": "DATA_WRITE"
|
||||
# `
|
||||
# ]
|
||||
# `
|
||||
|
|
|
@ -47,12 +47,12 @@ module Google
|
|||
@batch_path = 'batch'
|
||||
end
|
||||
|
||||
# Searches all the IAM policies under a given accessible CRM scope
|
||||
# (project/folder/organization). This RPC gives callers
|
||||
# especially admins the ability to search all the IAM policies under a scope,
|
||||
# even if they don't have .getIamPolicy permission of all the IAM policies.
|
||||
# Callers should have cloud.assets.SearchAllIamPolicies permission on the
|
||||
# requested scope, otherwise it will be rejected.
|
||||
# Searches all the IAM policies within a given accessible CRM scope
|
||||
# (project/folder/organization). This RPC gives callers especially
|
||||
# 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.
|
||||
# Callers should have `cloud.assets.SearchAllIamPolicies` permission on the
|
||||
# requested scope, otherwise the request will be rejected.
|
||||
# @param [String] scope
|
||||
# Required. The relative name of an asset. The search is limited to the
|
||||
# resources
|
||||
|
@ -74,8 +74,7 @@ module Google
|
|||
# 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.
|
||||
# Examples:
|
||||
# Optional. The query statement. Examples:
|
||||
# * "policy:myuser@mydomain.com"
|
||||
# * "policy:(myuser@mydomain.com viewer)"
|
||||
# @param [String] fields
|
||||
|
@ -108,12 +107,12 @@ module Google
|
|||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Searches all the resources under a given accessible CRM scope
|
||||
# (project/folder/organization). This RPC gives callers
|
||||
# especially admins the ability to search all the resources under a scope,
|
||||
# even if they don't have .get permission of all the resources. Callers
|
||||
# should have cloud.assets.SearchAllResources permission on the requested
|
||||
# scope, otherwise it will be rejected.
|
||||
# Searches all the resources within a given accessible CRM scope
|
||||
# (project/folder/organization). This RPC gives callers especially
|
||||
# administrators the ability to search all the resources within a scope, even
|
||||
# if they don't have `.get` permission of all the resources. Callers should
|
||||
# have `cloud.assets.SearchAllResources` permission on the requested scope,
|
||||
# otherwise the request will be rejected.
|
||||
# @param [String] scope
|
||||
# Required. The relative name of an asset. The search is limited to the
|
||||
# resources
|
||||
|
@ -128,9 +127,9 @@ module Google
|
|||
# search all the supported 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
|
||||
# results. The default order is ascending. Add ` DESC` after the field name
|
||||
# to indicate descending order. Redundant space characters are ignored. For
|
||||
# example, " foo , bar desc ".
|
||||
# example, ` location DESC , name `.
|
||||
# @param [Fixnum] page_size
|
||||
# Optional. The page size for search result pagination. Page size is capped at
|
||||
# 500 even
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://cloud.google.com/asset-inventory/docs/quickstart
|
||||
module CloudassetV1p4beta1
|
||||
VERSION = 'V1p4beta1'
|
||||
REVISION = '20200515'
|
||||
REVISION = '20200605'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -511,7 +511,8 @@ module Google
|
|||
# @return [Google::Apis::CloudassetV1p4beta1::GoogleCloudAssetV1p4beta1AnalysisState]
|
||||
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`
|
||||
# @return [String]
|
||||
attr_accessor :full_resource_name
|
||||
|
@ -603,14 +604,20 @@ module Google
|
|||
# within
|
||||
# the parent will be analyzed. This can only be an organization number (such
|
||||
# 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`
|
||||
# @return [String]
|
||||
attr_accessor :parent
|
||||
|
||||
# Specifies the resource to analyze for access policies, which may be set
|
||||
# directly on the resource, or on ancestors such as organizations, folders or
|
||||
# projects. At least one of ResourceSelector, IdentitySelector or
|
||||
# AccessSelector must be specified in a request.
|
||||
# projects. Either ResourceSelector or IdentitySelector must be
|
||||
# specified in a request.
|
||||
# Corresponds to the JSON property `resourceSelector`
|
||||
# @return [Google::Apis::CloudassetV1p4beta1::ResourceSelector]
|
||||
attr_accessor :resource_selector
|
||||
|
@ -639,7 +646,9 @@ module Google
|
|||
# @return [Array<Google::Apis::CloudassetV1p4beta1::GoogleCloudAssetV1p4beta1AccessControlList>]
|
||||
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`
|
||||
# @return [String]
|
||||
attr_accessor :attached_resource_full_name
|
||||
|
@ -685,6 +694,13 @@ module Google
|
|||
# Required. The identity appear in the form of members in
|
||||
# [IAM policy
|
||||
# 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`
|
||||
# @return [String]
|
||||
attr_accessor :identity
|
||||
|
@ -859,14 +875,16 @@ module Google
|
|||
|
||||
# Specifies the resource to analyze for access policies, which may be set
|
||||
# directly on the resource, or on ancestors such as organizations, folders or
|
||||
# projects. At least one of ResourceSelector, IdentitySelector or
|
||||
# AccessSelector must be specified in a request.
|
||||
# projects. Either ResourceSelector or IdentitySelector must be
|
||||
# specified in a request.
|
||||
class ResourceSelector
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# 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`
|
||||
# @return [String]
|
||||
attr_accessor :full_resource_name
|
||||
|
|
|
@ -54,6 +54,12 @@ module Google
|
|||
# within
|
||||
# the parent will be analyzed. This can only be an organization number (such
|
||||
# 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
|
||||
# Optional. The permissions to appear in result.
|
||||
# @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
|
||||
# [IAM policy
|
||||
# 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
|
||||
# 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
|
||||
# Optional. If true, the response will include access analysis from identities
|
||||
# to
|
||||
# resources via service account impersonation. This is a very expensive
|
||||
# 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
|
||||
# permission P, and there's an IAM policy states user A has
|
||||
# iam.serviceAccounts.getAccessToken permission to a service account SA,
|
||||
|
@ -175,6 +190,12 @@ module Google
|
|||
# within
|
||||
# the parent will be analyzed. This can only be an organization number (such
|
||||
# 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 [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://cloud.google.com/cloud-build/docs/
|
||||
module CloudbuildV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20200601'
|
||||
REVISION = '20200606'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -381,8 +381,8 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :log_streaming_option
|
||||
|
||||
# Option to specify the logging mode, which determines where the logs are
|
||||
# stored.
|
||||
# Option to specify the logging mode, which determines if and where build
|
||||
# logs are stored.
|
||||
# Corresponds to the JSON property `logging`
|
||||
# @return [String]
|
||||
attr_accessor :logging
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://cloud.google.com/cloud-build/docs/
|
||||
module CloudbuildV1alpha1
|
||||
VERSION = 'V1alpha1'
|
||||
REVISION = '20200601'
|
||||
REVISION = '20200606'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -381,8 +381,8 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :log_streaming_option
|
||||
|
||||
# Option to specify the logging mode, which determines where the logs are
|
||||
# stored.
|
||||
# Option to specify the logging mode, which determines if and where build
|
||||
# logs are stored.
|
||||
# Corresponds to the JSON property `logging`
|
||||
# @return [String]
|
||||
attr_accessor :logging
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://cloud.google.com/cloud-build/docs/
|
||||
module CloudbuildV1alpha2
|
||||
VERSION = 'V1alpha2'
|
||||
REVISION = '20200601'
|
||||
REVISION = '20200606'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -381,8 +381,8 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :log_streaming_option
|
||||
|
||||
# Option to specify the logging mode, which determines where the logs are
|
||||
# stored.
|
||||
# Option to specify the logging mode, which determines if and where build
|
||||
# logs are stored.
|
||||
# Corresponds to the JSON property `logging`
|
||||
# @return [String]
|
||||
attr_accessor :logging
|
||||
|
|
|
@ -27,7 +27,7 @@ module Google
|
|||
# @see https://cloud.google.com/dlp/docs/
|
||||
module DlpV2
|
||||
VERSION = 'V2'
|
||||
REVISION = '20200516'
|
||||
REVISION = '20200606'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -36,7 +36,8 @@ module Google
|
|||
# Publish a message into given Pub/Sub topic when DlpJob has completed. The
|
||||
# message contains a single field, `DlpJobName`, which is equal to the
|
||||
# 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
|
||||
# Corresponds to the JSON property `pubSub`
|
||||
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2PublishToPubSub]
|
||||
|
@ -1576,8 +1577,8 @@ module Google
|
|||
|
||||
# Message for detecting output from deidentification transformations
|
||||
# such as
|
||||
# [`CryptoReplaceFfxFpeConfig`](/dlp/docs/reference/rest/v2/organizations.
|
||||
# deidentifyTemplates#cryptoreplaceffxfpeconfig).
|
||||
# [`CryptoReplaceFfxFpeConfig`](https://cloud.google.com/dlp/docs/reference/rest/
|
||||
# v2/organizations.deidentifyTemplates#cryptoreplaceffxfpeconfig).
|
||||
# These types of transformations are
|
||||
# those that perform pseudonymization, thereby producing a "surrogate" as
|
||||
# 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
|
||||
# message contains a single field, `DlpJobName`, which is equal to the
|
||||
# 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
|
||||
class GooglePrivacyDlpV2PublishToPubSub
|
||||
include Google::Apis::Core::Hashable
|
||||
|
@ -5975,8 +5977,8 @@ module Google
|
|||
|
||||
# Message for detecting output from deidentification transformations
|
||||
# such as
|
||||
# [`CryptoReplaceFfxFpeConfig`](/dlp/docs/reference/rest/v2/organizations.
|
||||
# deidentifyTemplates#cryptoreplaceffxfpeconfig).
|
||||
# [`CryptoReplaceFfxFpeConfig`](https://cloud.google.com/dlp/docs/reference/rest/
|
||||
# v2/organizations.deidentifyTemplates#cryptoreplaceffxfpeconfig).
|
||||
# These types of transformations are
|
||||
# those that perform pseudonymization, thereby producing a "surrogate" as
|
||||
# output. This should be used in conjunction with a field on the
|
||||
|
|
|
@ -62,7 +62,8 @@ module Google
|
|||
# @param [String] location_id
|
||||
# Deprecated. This field has no effect.
|
||||
# @param [String] parent
|
||||
# The parent resource name, for example locations/`location_id`.
|
||||
# The parent resource name.
|
||||
# - Format:locations/[LOCATION-ID]
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
|
@ -97,7 +98,8 @@ module Google
|
|||
# supports. See https://cloud.google.com/dlp/docs/infotypes-reference to
|
||||
# learn more.
|
||||
# @param [String] parent
|
||||
# The parent resource name, for example locations/`location_id`.
|
||||
# The parent resource name.
|
||||
# - Format:locations/[LOCATION-ID]
|
||||
# @param [String] filter
|
||||
# filter to only return infoTypes supported by certain parts of the
|
||||
# API. Defaults to supported_by=INSPECT.
|
||||
|
@ -142,8 +144,11 @@ module Google
|
|||
# See https://cloud.google.com/dlp/docs/creating-templates-deid to learn
|
||||
# more.
|
||||
# @param [String] parent
|
||||
# Required. The parent resource name, for example projects/my-project-id or
|
||||
# organizations/my-org-id.
|
||||
# Required. Parent resource name.
|
||||
# - 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 [String] fields
|
||||
# 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
|
||||
# more.
|
||||
# @param [String] parent
|
||||
# Required. The parent resource name, for example projects/my-project-id or
|
||||
# organizations/my-org-id.
|
||||
# Required. Parent resource name.
|
||||
# - 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
|
||||
# Deprecated. This field has no effect.
|
||||
# @param [String] order_by
|
||||
|
@ -342,8 +350,11 @@ module Google
|
|||
# for inspecting content, images, and storage.
|
||||
# See https://cloud.google.com/dlp/docs/creating-templates to learn more.
|
||||
# @param [String] parent
|
||||
# Required. The parent resource name, for example projects/my-project-id or
|
||||
# organizations/my-org-id.
|
||||
# Required. Parent resource name.
|
||||
# - 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 [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
|
@ -445,8 +456,11 @@ module Google
|
|||
# Lists InspectTemplates.
|
||||
# See https://cloud.google.com/dlp/docs/creating-templates to learn more.
|
||||
# @param [String] parent
|
||||
# Required. The parent resource name, for example projects/my-project-id or
|
||||
# organizations/my-org-id.
|
||||
# Required. Parent resource name.
|
||||
# - 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
|
||||
# Deprecated. This field has no effect.
|
||||
# @param [String] order_by
|
||||
|
@ -538,8 +552,11 @@ module Google
|
|||
# See https://cloud.google.com/dlp/docs/creating-templates-deid to learn
|
||||
# more.
|
||||
# @param [String] parent
|
||||
# Required. The parent resource name, for example projects/my-project-id or
|
||||
# organizations/my-org-id.
|
||||
# Required. Parent resource name.
|
||||
# - 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 [String] fields
|
||||
# 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
|
||||
# more.
|
||||
# @param [String] parent
|
||||
# Required. The parent resource name, for example projects/my-project-id or
|
||||
# organizations/my-org-id.
|
||||
# Required. Parent resource name.
|
||||
# - 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
|
||||
# Deprecated. This field has no effect.
|
||||
# @param [String] order_by
|
||||
|
@ -738,8 +758,11 @@ module Google
|
|||
# for inspecting content, images, and storage.
|
||||
# See https://cloud.google.com/dlp/docs/creating-templates to learn more.
|
||||
# @param [String] parent
|
||||
# Required. The parent resource name, for example projects/my-project-id or
|
||||
# organizations/my-org-id.
|
||||
# Required. Parent resource name.
|
||||
# - 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 [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
|
@ -841,8 +864,11 @@ module Google
|
|||
# Lists InspectTemplates.
|
||||
# See https://cloud.google.com/dlp/docs/creating-templates to learn more.
|
||||
# @param [String] parent
|
||||
# Required. The parent resource name, for example projects/my-project-id or
|
||||
# organizations/my-org-id.
|
||||
# Required. Parent resource name.
|
||||
# - 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
|
||||
# Deprecated. This field has no effect.
|
||||
# @param [String] order_by
|
||||
|
@ -933,8 +959,11 @@ module Google
|
|||
# See https://cloud.google.com/dlp/docs/creating-stored-infotypes to
|
||||
# learn more.
|
||||
# @param [String] parent
|
||||
# Required. The parent resource name, for example projects/my-project-id or
|
||||
# organizations/my-org-id.
|
||||
# Required. Parent resource name.
|
||||
# - 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 [String] fields
|
||||
# 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
|
||||
# learn more.
|
||||
# @param [String] parent
|
||||
# Required. The parent resource name, for example projects/my-project-id or
|
||||
# organizations/my-org-id.
|
||||
# Required. Parent resource name.
|
||||
# - 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
|
||||
# Deprecated. This field has no effect.
|
||||
# @param [String] order_by
|
||||
|
@ -1133,8 +1165,11 @@ module Google
|
|||
# See https://cloud.google.com/dlp/docs/creating-stored-infotypes to
|
||||
# learn more.
|
||||
# @param [String] parent
|
||||
# Required. The parent resource name, for example projects/my-project-id or
|
||||
# organizations/my-org-id.
|
||||
# Required. Parent resource name.
|
||||
# - 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 [String] fields
|
||||
# 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
|
||||
# learn more.
|
||||
# @param [String] parent
|
||||
# Required. The parent resource name, for example projects/my-project-id or
|
||||
# organizations/my-org-id.
|
||||
# Required. Parent resource name.
|
||||
# - 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
|
||||
# Deprecated. This field has no effect.
|
||||
# @param [String] order_by
|
||||
|
@ -1337,7 +1375,9 @@ module Google
|
|||
# system will automatically choose what detectors to run. By default this may
|
||||
# be all types, but may change over time as detectors are updated.
|
||||
# @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 [String] fields
|
||||
# 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
|
||||
# and https://cloud.google.com/dlp/docs/inspecting-text,
|
||||
# @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 [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
|
@ -1414,6 +1456,8 @@ module Google
|
|||
# to learn more.
|
||||
# @param [String] parent
|
||||
# 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 [String] fields
|
||||
# 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
|
||||
# more.
|
||||
# @param [String] parent
|
||||
# Required. The parent resource name, for example projects/my-project-id or
|
||||
# organizations/my-org-id.
|
||||
# Required. Parent resource name.
|
||||
# - 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 [String] fields
|
||||
# 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
|
||||
# more.
|
||||
# @param [String] parent
|
||||
# Required. The parent resource name, for example projects/my-project-id or
|
||||
# organizations/my-org-id.
|
||||
# Required. Parent resource name.
|
||||
# - 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
|
||||
# Deprecated. This field has no effect.
|
||||
# @param [String] order_by
|
||||
|
@ -1689,7 +1739,9 @@ module Google
|
|||
# system will automatically choose what detectors to run. By default this may
|
||||
# be all types, but may change over time as detectors are updated.
|
||||
# @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 [String] fields
|
||||
# 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
|
||||
# https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more.
|
||||
# @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
|
||||
# Allows filtering.
|
||||
# Supported syntax:
|
||||
|
@ -1875,7 +1929,9 @@ module Google
|
|||
# system will automatically choose what detectors to run. By default this may
|
||||
# be all types, but may change over time as detectors are updated.
|
||||
# @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 [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
|
@ -1910,8 +1966,11 @@ module Google
|
|||
# for inspecting content, images, and storage.
|
||||
# See https://cloud.google.com/dlp/docs/creating-templates to learn more.
|
||||
# @param [String] parent
|
||||
# Required. The parent resource name, for example projects/my-project-id or
|
||||
# organizations/my-org-id.
|
||||
# Required. Parent resource name.
|
||||
# - 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 [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
|
@ -2013,8 +2072,11 @@ module Google
|
|||
# Lists InspectTemplates.
|
||||
# See https://cloud.google.com/dlp/docs/creating-templates to learn more.
|
||||
# @param [String] parent
|
||||
# Required. The parent resource name, for example projects/my-project-id or
|
||||
# organizations/my-org-id.
|
||||
# Required. Parent resource name.
|
||||
# - 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
|
||||
# Deprecated. This field has no effect.
|
||||
# @param [String] order_by
|
||||
|
@ -2140,7 +2202,9 @@ module Google
|
|||
# sensitive information on a set schedule.
|
||||
# See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more.
|
||||
# @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 [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
|
@ -2238,7 +2302,9 @@ module Google
|
|||
# Lists job triggers.
|
||||
# See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more.
|
||||
# @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
|
||||
# Allows filtering.
|
||||
# Supported syntax:
|
||||
|
@ -2355,7 +2421,9 @@ module Google
|
|||
# system will automatically choose what detectors to run. By default this may
|
||||
# be all types, but may change over time as detectors are updated.
|
||||
# @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 [String] fields
|
||||
# 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
|
||||
# and https://cloud.google.com/dlp/docs/inspecting-text,
|
||||
# @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 [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
|
@ -2432,6 +2502,8 @@ module Google
|
|||
# to learn more.
|
||||
# @param [String] parent
|
||||
# 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 [String] fields
|
||||
# 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
|
||||
# more.
|
||||
# @param [String] parent
|
||||
# Required. The parent resource name, for example projects/my-project-id or
|
||||
# organizations/my-org-id.
|
||||
# Required. Parent resource name.
|
||||
# - 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 [String] fields
|
||||
# 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
|
||||
# more.
|
||||
# @param [String] parent
|
||||
# Required. The parent resource name, for example projects/my-project-id or
|
||||
# organizations/my-org-id.
|
||||
# Required. Parent resource name.
|
||||
# - 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
|
||||
# Deprecated. This field has no effect.
|
||||
# @param [String] order_by
|
||||
|
@ -2707,7 +2785,9 @@ module Google
|
|||
# system will automatically choose what detectors to run. By default this may
|
||||
# be all types, but may change over time as detectors are updated.
|
||||
# @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 [String] fields
|
||||
# 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
|
||||
# https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more.
|
||||
# @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
|
||||
# Allows filtering.
|
||||
# Supported syntax:
|
||||
|
@ -2969,7 +3051,9 @@ module Google
|
|||
# system will automatically choose what detectors to run. By default this may
|
||||
# be all types, but may change over time as detectors are updated.
|
||||
# @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 [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
|
@ -3004,8 +3088,11 @@ module Google
|
|||
# for inspecting content, images, and storage.
|
||||
# See https://cloud.google.com/dlp/docs/creating-templates to learn more.
|
||||
# @param [String] parent
|
||||
# Required. The parent resource name, for example projects/my-project-id or
|
||||
# organizations/my-org-id.
|
||||
# Required. Parent resource name.
|
||||
# - 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 [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
|
@ -3107,8 +3194,11 @@ module Google
|
|||
# Lists InspectTemplates.
|
||||
# See https://cloud.google.com/dlp/docs/creating-templates to learn more.
|
||||
# @param [String] parent
|
||||
# Required. The parent resource name, for example projects/my-project-id or
|
||||
# organizations/my-org-id.
|
||||
# Required. Parent resource name.
|
||||
# - 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
|
||||
# Deprecated. This field has no effect.
|
||||
# @param [String] order_by
|
||||
|
@ -3234,7 +3324,9 @@ module Google
|
|||
# sensitive information on a set schedule.
|
||||
# See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more.
|
||||
# @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 [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
|
@ -3372,7 +3464,9 @@ module Google
|
|||
# Lists job triggers.
|
||||
# See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more.
|
||||
# @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
|
||||
# Allows filtering.
|
||||
# Supported syntax:
|
||||
|
@ -3485,8 +3579,11 @@ module Google
|
|||
# See https://cloud.google.com/dlp/docs/creating-stored-infotypes to
|
||||
# learn more.
|
||||
# @param [String] parent
|
||||
# Required. The parent resource name, for example projects/my-project-id or
|
||||
# organizations/my-org-id.
|
||||
# Required. Parent resource name.
|
||||
# - 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 [String] fields
|
||||
# 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
|
||||
# learn more.
|
||||
# @param [String] parent
|
||||
# Required. The parent resource name, for example projects/my-project-id or
|
||||
# organizations/my-org-id.
|
||||
# Required. Parent resource name.
|
||||
# - 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
|
||||
# Deprecated. This field has no effect.
|
||||
# @param [String] order_by
|
||||
|
@ -3685,8 +3785,11 @@ module Google
|
|||
# See https://cloud.google.com/dlp/docs/creating-stored-infotypes to
|
||||
# learn more.
|
||||
# @param [String] parent
|
||||
# Required. The parent resource name, for example projects/my-project-id or
|
||||
# organizations/my-org-id.
|
||||
# Required. Parent resource name.
|
||||
# - 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 [String] fields
|
||||
# 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
|
||||
# learn more.
|
||||
# @param [String] parent
|
||||
# Required. The parent resource name, for example projects/my-project-id or
|
||||
# organizations/my-org-id.
|
||||
# Required. Parent resource name.
|
||||
# - 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
|
||||
# Deprecated. This field has no effect.
|
||||
# @param [String] order_by
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://cloud.google.com/filestore/
|
||||
module FileV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20200602'
|
||||
REVISION = '20200608'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://cloud.google.com/filestore/
|
||||
module FileV1beta1
|
||||
VERSION = 'V1beta1'
|
||||
REVISION = '20200602'
|
||||
REVISION = '20200608'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -20,12 +20,13 @@ module Google
|
|||
module Apis
|
||||
# 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/
|
||||
module GmailV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20200504'
|
||||
REVISION = '20200601'
|
||||
|
||||
# Read, compose, send, and permanently delete all your email from Gmail
|
||||
AUTH_SCOPE = 'https://mail.google.com/'
|
||||
|
|
|
@ -31,8 +31,8 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :disposition
|
||||
|
||||
# Email address to which all incoming messages are forwarded. This email address
|
||||
# must be a verified member of the forwarding addresses.
|
||||
# Email address to which all incoming messages are forwarded. This email
|
||||
# address must be a verified member of the forwarding addresses.
|
||||
# Corresponds to the JSON property `emailAddress`
|
||||
# @return [String]
|
||||
attr_accessor :email_address
|
||||
|
@ -83,7 +83,8 @@ module Google
|
|||
# @return [Array<String>]
|
||||
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`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :ids
|
||||
|
@ -106,8 +107,9 @@ module Google
|
|||
end
|
||||
|
||||
# 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
|
||||
# delegation" for more information about delegates.
|
||||
# well as view and add contacts, for the delegator's account. See
|
||||
# <a href="https://support.google.com/mail/answer/138350">"Set up
|
||||
# mail delegation"</a> for more information about delegates.
|
||||
class Delegate
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
|
@ -116,8 +118,8 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :delegate_email
|
||||
|
||||
# Indicates whether this address has been verified and can act as a delegate for
|
||||
# the account. Read-only.
|
||||
# Indicates whether this address has been verified and can act as a delegate
|
||||
# for the account. Read-only.
|
||||
# Corresponds to the JSON property `verificationStatus`
|
||||
# @return [String]
|
||||
attr_accessor :verification_status
|
||||
|
@ -242,16 +244,18 @@ module Google
|
|||
attr_accessor :has_attachment
|
||||
alias_method :has_attachment?, :has_attachment
|
||||
|
||||
# Only return messages not matching the specified query. Supports the same query
|
||||
# format as the Gmail search box. For example, "from:someuser@example.com
|
||||
# rfc822msgid: is:unread".
|
||||
# Only return messages not matching the specified query. Supports the same
|
||||
# query format as the Gmail search box. For example,
|
||||
# <code>"from:someuser@example.com rfc822msgid:<somemsgid@example.com>
|
||||
# is:unread"</code>.
|
||||
# Corresponds to the JSON property `negatedQuery`
|
||||
# @return [String]
|
||||
attr_accessor :negated_query
|
||||
|
||||
# Only return messages matching the specified query. Supports the same query
|
||||
# format as the Gmail search box. For example, "from:someuser@example.com
|
||||
# rfc822msgid: is:unread".
|
||||
# Only return messages matching the specified query. Supports the same
|
||||
# query format as the Gmail search box. For example,
|
||||
# <code>"from:someuser@example.com rfc822msgid:<somemsgid@example.com>
|
||||
# is:unread"</code>.
|
||||
# Corresponds to the JSON property `query`
|
||||
# @return [String]
|
||||
attr_accessor :query
|
||||
|
@ -267,16 +271,16 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :size_comparison
|
||||
|
||||
# Case-insensitive phrase found in the message's subject. Trailing and leading
|
||||
# whitespace are be trimmed and adjacent spaces are collapsed.
|
||||
# Case-insensitive phrase found in the message's subject. Trailing and
|
||||
# leading whitespace are be trimmed and adjacent spaces are collapsed.
|
||||
# Corresponds to the JSON property `subject`
|
||||
# @return [String]
|
||||
attr_accessor :subject
|
||||
|
||||
# The recipient's display name or email address. Includes recipients in the "to",
|
||||
# "cc", and "bcc" header fields. You can use simply the local part of the email
|
||||
# address. For example, "example" and "example@" both match "example@gmail.com".
|
||||
# This field is case-insensitive.
|
||||
# The recipient's display name or email address. Includes recipients in the
|
||||
# "to", "cc", and "bcc" header fields. You can use simply the local part of
|
||||
# the email address. For example, "example" and "example@" both match
|
||||
# "example@gmail.com". This field is case-insensitive.
|
||||
# Corresponds to the JSON property `to`
|
||||
# @return [String]
|
||||
attr_accessor :to
|
||||
|
@ -308,8 +312,8 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :forwarding_email
|
||||
|
||||
# Indicates whether this address has been verified and is usable for forwarding.
|
||||
# Read-only.
|
||||
# Indicates whether this address has been verified and is usable for
|
||||
# forwarding. Read-only.
|
||||
# Corresponds to the JSON property `verificationStatus`
|
||||
# @return [String]
|
||||
attr_accessor :verification_status
|
||||
|
@ -346,8 +350,9 @@ module Google
|
|||
attr_accessor :labels_removed
|
||||
|
||||
# List of messages changed in this history record. The fields for specific
|
||||
# change types, such as messagesAdded may duplicate messages in this field. We
|
||||
# recommend using the specific change-type fields instead of this.
|
||||
# change types, such as <code>messagesAdded</code> may duplicate messages in
|
||||
# this field. We recommend using the specific change-type fields instead
|
||||
# of this.
|
||||
# Corresponds to the JSON property `messages`
|
||||
# @return [Array<Google::Apis::GmailV1::Message>]
|
||||
attr_accessor :messages
|
||||
|
@ -470,8 +475,8 @@ module Google
|
|||
include Google::Apis::Core::Hashable
|
||||
|
||||
# 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
|
||||
# client before expunging messages marked as deleted.
|
||||
# marked as deleted in IMAP. Otherwise, Gmail will wait for an update from
|
||||
# the client before expunging messages marked as deleted.
|
||||
# Corresponds to the JSON property `autoExpunge`
|
||||
# @return [Boolean]
|
||||
attr_accessor :auto_expunge
|
||||
|
@ -483,15 +488,15 @@ module Google
|
|||
attr_accessor :enabled
|
||||
alias_method :enabled?, :enabled
|
||||
|
||||
# The action that will be executed on a message when it is marked as deleted and
|
||||
# expunged from the last visible IMAP folder.
|
||||
# The action that will be executed on a message when it is marked as deleted
|
||||
# and expunged from the last visible IMAP folder.
|
||||
# Corresponds to the JSON property `expungeBehavior`
|
||||
# @return [String]
|
||||
attr_accessor :expunge_behavior
|
||||
|
||||
# An optional limit on the number of messages that an IMAP folder may contain.
|
||||
# Legal values are 0, 1000, 2000, 5000 or 10000. A value of zero is interpreted
|
||||
# to mean that there is no limit.
|
||||
# An optional limit on the number of messages that an IMAP folder may
|
||||
# contain. Legal values are 0, 1000, 2000, 5000 or 10000. A value of zero
|
||||
# is interpreted to mean that there is no limit.
|
||||
# Corresponds to the JSON property `maxFolderSize`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :max_folder_size
|
||||
|
@ -509,12 +514,14 @@ module Google
|
|||
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
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The color to assign to the label. Color is only available for labels that have
|
||||
# their type set to user.
|
||||
# The color to assign to the label. Color is only available for labels that
|
||||
# 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`
|
||||
# @return [Google::Apis::GmailV1::LabelColor]
|
||||
attr_accessor :color
|
||||
|
@ -525,11 +532,14 @@ module Google
|
|||
attr_accessor :id
|
||||
|
||||
# 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`
|
||||
# @return [String]
|
||||
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`
|
||||
# @return [String]
|
||||
attr_accessor :message_list_visibility
|
||||
|
@ -545,6 +555,7 @@ module Google
|
|||
attr_accessor :messages_unread
|
||||
|
||||
# The display name of the label.
|
||||
# @mutable gmail.users.labels.create gmail.users.labels.update
|
||||
# Corresponds to the JSON property `name`
|
||||
# @return [String]
|
||||
attr_accessor :name
|
||||
|
@ -559,14 +570,15 @@ module Google
|
|||
# @return [Fixnum]
|
||||
attr_accessor :threads_unread
|
||||
|
||||
# The owner type for the label. User labels are created by the user and can be
|
||||
# modified and deleted by the user and can be applied to any message or thread.
|
||||
# System labels are internally created and cannot be added, modified, or deleted.
|
||||
# System labels may be able to be applied to or removed from messages and
|
||||
# threads under some circumstances but this is not guaranteed. For example,
|
||||
# users can apply and remove the INBOX and UNREAD labels from messages and
|
||||
# threads, but cannot apply or remove the DRAFTS or SENT labels from messages or
|
||||
# threads.
|
||||
# The owner type for the label. User labels are created by the user and
|
||||
# can be modified and deleted by the user and can be applied to any
|
||||
# message or thread. System labels are internally created and cannot be
|
||||
# added, modified, or deleted. System labels may be able to be applied to or
|
||||
# removed from messages and threads under some circumstances but this is
|
||||
# not guaranteed. For example, users can apply and remove the
|
||||
# <code>INBOX</code> and <code>UNREAD</code> labels from messages and
|
||||
# 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`
|
||||
# @return [String]
|
||||
attr_accessor :type
|
||||
|
@ -594,40 +606,46 @@ module Google
|
|||
class LabelColor
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The background color represented as hex string #RRGGBB (ex #000000). This
|
||||
# field is required in order to set the color of a label. Only the following
|
||||
# predefined set of color values are allowed:
|
||||
# #000000, #434343, #666666, #999999, #cccccc, #efefef, #f3f3f3, #ffffff, #
|
||||
# fb4c2f, #ffad47, #fad165, #16a766, #43d692, #4a86e8, #a479e2, #f691b3, #f6c5be,
|
||||
# #ffe6c7, #fef1d1, #b9e4d0, #c6f3de, #c9daf8, #e4d7f5, #fcdee8, #efa093, #
|
||||
# ffd6a2, #fce8b3, #89d3b2, #a0eac9, #a4c2f4, #d0bcf1, #fbc8d9, #e66550, #ffbc6b,
|
||||
# #fcda83, #44b984, #68dfa9, #6d9eeb, #b694e8, #f7a7c0, #cc3a21, #eaa041, #
|
||||
# f2c960, #149e60, #3dc789, #3c78d8, #8e63ce, #e07798, #ac2b16, #cf8933, #d5ae49,
|
||||
# #0b804b, #2a9c68, #285bac, #653e9b, #b65775, #822111, #a46a21, #aa8831, #
|
||||
# 076239, #1a764d, #1c4587, #41236d, #83334c #464646, #e7e7e7, #0d3472, #b6cff5,
|
||||
# #0d3b44, #98d7e4, #3d188e, #e3d7ff, #711a36, #fbd3e0, #8a1c0a, #f2b2a8, #
|
||||
# 7a2e0b, #ffc8af, #7a4706, #ffdeb5, #594c05, #fbe983, #684e07, #fdedc1, #0b4f30,
|
||||
# #b3efd3, #04502e, #a2dcc1, #c2c2c2, #4986e7, #2da2bb, #b99aff, #994a64, #
|
||||
# f691b2, #ff7537, #ffad46, #662e37, #ebdbde, #cca6ac, #094228, #42d692, #16a765
|
||||
# The background color represented as hex string #RRGGBB (ex #000000).
|
||||
# This field is required in order to set the color of a label.
|
||||
# Only the following predefined set of color values are allowed:
|
||||
# <br/>
|
||||
# # 000000, #434343, #666666, #999999, #cccccc, #efefef, #f3f3f3, #ffffff,
|
||||
# # fb4c2f, #ffad47, #fad165, #16a766, #43d692, #4a86e8, #a479e2, #f691b3,
|
||||
# # f6c5be, #ffe6c7, #fef1d1, #b9e4d0, #c6f3de, #c9daf8, #e4d7f5, #fcdee8,
|
||||
# # efa093, #ffd6a2, #fce8b3, #89d3b2, #a0eac9, #a4c2f4, #d0bcf1, #fbc8d9,
|
||||
# # e66550, #ffbc6b, #fcda83, #44b984, #68dfa9, #6d9eeb, #b694e8, #f7a7c0,
|
||||
# # cc3a21, #eaa041, #f2c960, #149e60, #3dc789, #3c78d8, #8e63ce, #e07798,
|
||||
# # ac2b16, #cf8933, #d5ae49, #0b804b, #2a9c68, #285bac, #653e9b, #b65775,
|
||||
# # 822111, #a46a21, #aa8831, #076239, #1a764d, #1c4587, #41236d, #83334c
|
||||
# # 464646, #e7e7e7, #0d3472, #b6cff5, #0d3b44, #98d7e4, #3d188e, #e3d7ff,
|
||||
# # 711a36, #fbd3e0, #8a1c0a, #f2b2a8, #7a2e0b, #ffc8af, #7a4706, #ffdeb5,
|
||||
# # 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`
|
||||
# @return [String]
|
||||
attr_accessor :background_color
|
||||
|
||||
# The text color of the label, represented as hex string. This field is required
|
||||
# in order to set the color of a label. Only the following predefined set of
|
||||
# color values are allowed:
|
||||
# #000000, #434343, #666666, #999999, #cccccc, #efefef, #f3f3f3, #ffffff, #
|
||||
# fb4c2f, #ffad47, #fad165, #16a766, #43d692, #4a86e8, #a479e2, #f691b3, #f6c5be,
|
||||
# #ffe6c7, #fef1d1, #b9e4d0, #c6f3de, #c9daf8, #e4d7f5, #fcdee8, #efa093, #
|
||||
# ffd6a2, #fce8b3, #89d3b2, #a0eac9, #a4c2f4, #d0bcf1, #fbc8d9, #e66550, #ffbc6b,
|
||||
# #fcda83, #44b984, #68dfa9, #6d9eeb, #b694e8, #f7a7c0, #cc3a21, #eaa041, #
|
||||
# f2c960, #149e60, #3dc789, #3c78d8, #8e63ce, #e07798, #ac2b16, #cf8933, #d5ae49,
|
||||
# #0b804b, #2a9c68, #285bac, #653e9b, #b65775, #822111, #a46a21, #aa8831, #
|
||||
# 076239, #1a764d, #1c4587, #41236d, #83334c #464646, #e7e7e7, #0d3472, #b6cff5,
|
||||
# #0d3b44, #98d7e4, #3d188e, #e3d7ff, #711a36, #fbd3e0, #8a1c0a, #f2b2a8, #
|
||||
# 7a2e0b, #ffc8af, #7a4706, #ffdeb5, #594c05, #fbe983, #684e07, #fdedc1, #0b4f30,
|
||||
# #b3efd3, #04502e, #a2dcc1, #c2c2c2, #4986e7, #2da2bb, #b99aff, #994a64, #
|
||||
# f691b2, #ff7537, #ffad46, #662e37, #ebdbde, #cca6ac, #094228, #42d692, #16a765
|
||||
# The text color of the label, represented as hex string.
|
||||
# This field is required in order to set the color of a label.
|
||||
# Only the following predefined set of color values are allowed:
|
||||
# <br/>
|
||||
# # 000000, #434343, #666666, #999999, #cccccc, #efefef, #f3f3f3, #ffffff,
|
||||
# # fb4c2f, #ffad47, #fad165, #16a766, #43d692, #4a86e8, #a479e2, #f691b3,
|
||||
# # f6c5be, #ffe6c7, #fef1d1, #b9e4d0, #c6f3de, #c9daf8, #e4d7f5, #fcdee8,
|
||||
# # efa093, #ffd6a2, #fce8b3, #89d3b2, #a0eac9, #a4c2f4, #d0bcf1, #fbc8d9,
|
||||
# # e66550, #ffbc6b, #fcda83, #44b984, #68dfa9, #6d9eeb, #b694e8, #f7a7c0,
|
||||
# # cc3a21, #eaa041, #f2c960, #149e60, #3dc789, #3c78d8, #8e63ce, #e07798,
|
||||
# # ac2b16, #cf8933, #d5ae49, #0b804b, #2a9c68, #285bac, #653e9b, #b65775,
|
||||
# # 822111, #a46a21, #aa8831, #076239, #1a764d, #1c4587, #41236d, #83334c
|
||||
# # 464646, #e7e7e7, #0d3472, #b6cff5, #0d3b44, #98d7e4, #3d188e, #e3d7ff,
|
||||
# # 711a36, #fbd3e0, #8a1c0a, #f2b2a8, #7a2e0b, #ffc8af, #7a4706, #ffdeb5,
|
||||
# # 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`
|
||||
# @return [String]
|
||||
attr_accessor :text_color
|
||||
|
@ -643,21 +661,28 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
# Language settings for an account. These settings correspond to the "Language
|
||||
# settings" feature in the web interface.
|
||||
# Language settings for an account. These settings correspond to
|
||||
# the <a href="https://support.google.com/mail/answer/17091">"Language
|
||||
# settings"</a> feature in the web interface.
|
||||
class LanguageSettings
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The language to display Gmail in, formatted as an RFC 3066 Language Tag (for
|
||||
# example en-GB, fr or ja for British English, French, or Japanese respectively).
|
||||
# The set of languages supported by Gmail evolves over time, so please refer to
|
||||
# the "Language" dropdown in the Gmail settings for all available options, as
|
||||
# described in the language settings help article. A table of sample values is
|
||||
# also provided in the Managing Language Settings guide
|
||||
# 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).
|
||||
# The language to display Gmail in, formatted as an
|
||||
# <a href="https://www.w3.org/International/articles/language-tags/">RFC 3066
|
||||
# Language Tag</a> (for example <code>en-GB</code>, <code>fr</code> or
|
||||
# <code>ja</code> for British English, French, or Japanese respectively).
|
||||
# The set of languages supported by Gmail evolves over time, so please refer
|
||||
# to the "Language" dropdown in the
|
||||
# <a href="https://mail.google.com/mail/u/0/#settings/general">Gmail settings
|
||||
# </a> for all available options, as described in the
|
||||
# <a href="https://support.google.com/mail/answer/17091">language settings
|
||||
# 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`
|
||||
# @return [String]
|
||||
attr_accessor :display_language
|
||||
|
@ -695,9 +720,11 @@ module Google
|
|||
class ListDraftsResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# List of drafts. Note that the Message property in each Draft resource only
|
||||
# contains an id and a threadId. The messages.get method can fetch additional
|
||||
# message details.
|
||||
# List of drafts. Note that the <code>Message</code> property in each
|
||||
# <code>Draft</code> resource only contains an <code>id</code> and a
|
||||
# <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`
|
||||
# @return [Array<Google::Apis::GmailV1::Draft>]
|
||||
attr_accessor :drafts
|
||||
|
@ -766,8 +793,9 @@ module Google
|
|||
class ListHistoryResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# List of history records. Any messages contained in the response will typically
|
||||
# only have id and threadId fields populated.
|
||||
# List of history records. Any <code>messages</code> contained in the
|
||||
# response will typically only have <code>id</code> and
|
||||
# <code>threadId</code> fields populated.
|
||||
# Corresponds to the JSON property `history`
|
||||
# @return [Array<Google::Apis::GmailV1::History>]
|
||||
attr_accessor :history
|
||||
|
@ -798,8 +826,10 @@ module Google
|
|||
class ListLabelsResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# List of labels. Note that each label resource only contains an id, name,
|
||||
# messageListVisibility, labelListVisibility, and type. The labels.get method
|
||||
# List of labels. Note that each label resource only contains an
|
||||
# <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.
|
||||
# Corresponds to the JSON property `labels`
|
||||
# @return [Array<Google::Apis::GmailV1::Label>]
|
||||
|
@ -819,8 +849,10 @@ module Google
|
|||
class ListMessagesResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# List of messages. Note that each message resource contains only an id and a
|
||||
# threadId. Additional message details can be fetched using the messages.get
|
||||
# List of messages. Note that each message resource contains only an
|
||||
# <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.
|
||||
# Corresponds to the JSON property `messages`
|
||||
# @return [Array<Google::Apis::GmailV1::Message>]
|
||||
|
@ -901,8 +933,9 @@ module Google
|
|||
attr_accessor :result_size_estimate
|
||||
|
||||
# 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
|
||||
# threads.get method.
|
||||
# <code>messages</code>. The list of <code>messages</code> for a given thread
|
||||
# can be fetched using the
|
||||
# <a href="/gmail/api/v1/reference/users/threads/get">threads.get</a> method.
|
||||
# Corresponds to the JSON property `threads`
|
||||
# @return [Array<Google::Apis::GmailV1::Thread>]
|
||||
attr_accessor :threads
|
||||
|
@ -933,16 +966,17 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :id
|
||||
|
||||
# The internal message creation timestamp (epoch ms), which determines ordering
|
||||
# in the inbox. For normal SMTP-received email, this represents the time the
|
||||
# message was originally accepted by Google, which is more reliable than the
|
||||
# Date header. However, for API-migrated mail, it can be configured by client to
|
||||
# be based on the Date header.
|
||||
# The internal message creation timestamp (epoch ms), which determines
|
||||
# ordering in the inbox. For normal SMTP-received email, this represents the
|
||||
# time the message was originally accepted by Google, which is more reliable
|
||||
# than the <code>Date</code> header. However, for API-migrated mail, it can
|
||||
# be configured by client to be based on the <code>Date</code> header.
|
||||
# Corresponds to the JSON property `internalDate`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :internal_date
|
||||
|
||||
# List of IDs of labels applied to this message.
|
||||
# @mutable gmail.users.messages.insert gmail.users.messages.modify
|
||||
# Corresponds to the JSON property `labelIds`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :label_ids
|
||||
|
@ -952,9 +986,12 @@ module Google
|
|||
# @return [Google::Apis::GmailV1::MessagePart]
|
||||
attr_accessor :payload
|
||||
|
||||
# The entire email message in an RFC 2822 formatted and base64url encoded string.
|
||||
# Returned in messages.get and drafts.get responses when the format=RAW
|
||||
# The entire email message in an RFC 2822 formatted and base64url
|
||||
# encoded string. Returned in <code>messages.get</code> and
|
||||
# <code>drafts.get</code> responses when the <code>format=RAW</code>
|
||||
# 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`
|
||||
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
||||
# @return [String]
|
||||
|
@ -970,13 +1007,17 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :snippet
|
||||
|
||||
# The ID of the thread the message belongs to. To add a message or draft to a
|
||||
# thread, the following criteria must be met:
|
||||
# - The requested threadId must be specified on the Message or Draft.Message you
|
||||
# supply with your request.
|
||||
# - The References and In-Reply-To headers must be set in compliance with the
|
||||
# RFC 2822 standard.
|
||||
# - The Subject headers must match.
|
||||
# The ID of the thread the message belongs to. To add a message or draft to
|
||||
# a thread, the following criteria must be met:
|
||||
# <ol><li>The requested <code>threadId</code> must be specified on the
|
||||
# <code>Message</code> or <code>Draft.Message</code> you supply with your
|
||||
# request.</li>
|
||||
# <li>The <code>References</code> and <code>In-Reply-To</code> headers must
|
||||
# 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`
|
||||
# @return [String]
|
||||
attr_accessor :thread_id
|
||||
|
@ -1008,15 +1049,16 @@ module Google
|
|||
# @return [Google::Apis::GmailV1::MessagePartBody]
|
||||
attr_accessor :body
|
||||
|
||||
# The filename of the attachment. Only present if this message part represents
|
||||
# an attachment.
|
||||
# The filename of the attachment. Only present if this message part
|
||||
# represents an attachment.
|
||||
# Corresponds to the JSON property `filename`
|
||||
# @return [String]
|
||||
attr_accessor :filename
|
||||
|
||||
# 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
|
||||
# email headers such as To, From, and Subject.
|
||||
# representing the entire message payload, it will contain the standard
|
||||
# RFC 2822 email headers such as <code>To</code>, <code>From</code>, and
|
||||
# <code>Subject</code>.
|
||||
# Corresponds to the JSON property `headers`
|
||||
# @return [Array<Google::Apis::GmailV1::MessagePartHeader>]
|
||||
attr_accessor :headers
|
||||
|
@ -1031,10 +1073,11 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :part_id
|
||||
|
||||
# The child MIME message parts of this part. This only applies to container MIME
|
||||
# message parts, for example multipart/*. For non- container MIME message part
|
||||
# types, such as text/plain, this field is empty. For more information, see RFC
|
||||
# 1521.
|
||||
# The child MIME message parts of this part. This only applies to container
|
||||
# MIME message parts, for example <code>multipart/*</code>. For non-
|
||||
# container MIME message part types, such as <code>text/plain</code>, this
|
||||
# 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`
|
||||
# @return [Array<Google::Apis::GmailV1::MessagePart>]
|
||||
attr_accessor :parts
|
||||
|
@ -1058,17 +1101,19 @@ module Google
|
|||
class MessagePartBody
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# When present, contains the ID of an external attachment that can be retrieved
|
||||
# in a separate messages.attachments.get request. When not present, the entire
|
||||
# content of the message part body is contained in the data field.
|
||||
# When present, contains the ID of an external attachment that can be
|
||||
# retrieved in a separate <code>messages.attachments.get</code> request.
|
||||
# When not present, the entire content of the message part body is
|
||||
# contained in the data field.
|
||||
# Corresponds to the JSON property `attachmentId`
|
||||
# @return [String]
|
||||
attr_accessor :attachment_id
|
||||
|
||||
# The body data of a MIME message part as a base64url encoded string. May be
|
||||
# empty for MIME container types that have no message body or when the body data
|
||||
# is sent as a separate attachment. An attachment ID is present if the body data
|
||||
# is contained in a separate attachment.
|
||||
# The body data of a MIME message part as a base64url encoded string.
|
||||
# May be empty for MIME container
|
||||
# types that have no message body or when the body data is sent as a
|
||||
# separate attachment. An attachment ID is present if the body data is
|
||||
# contained in a separate attachment.
|
||||
# Corresponds to the JSON property `data`
|
||||
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
||||
# @return [String]
|
||||
|
@ -1095,13 +1140,14 @@ module Google
|
|||
class MessagePartHeader
|
||||
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`
|
||||
# @return [String]
|
||||
attr_accessor :name
|
||||
|
||||
# The value of the header after the : separator. For example, someuser@example.
|
||||
# com.
|
||||
# The value of the header after the <code>:</code> separator. For example,
|
||||
# <code>someuser@example.com</code>.
|
||||
# Corresponds to the JSON property `value`
|
||||
# @return [String]
|
||||
attr_accessor :value
|
||||
|
@ -1231,48 +1277,53 @@ module Google
|
|||
end
|
||||
|
||||
# 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
|
||||
# aliases correspond to the "Send Mail As" feature in the web interface.
|
||||
# login address associated with the account or a custom "from" address.
|
||||
# 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
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# A name that appears in the "From:" header for mail sent using this alias. For
|
||||
# custom "from" addresses, when this is empty, Gmail will populate the "From:"
|
||||
# header with the name that is used for the primary address associated with the
|
||||
# account. 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.
|
||||
# A name that appears in the "From:" header for mail sent using this alias.
|
||||
# For custom "from" addresses, when this is empty, Gmail will populate the
|
||||
# "From:" header with the name that is used for the primary address
|
||||
# associated with the account.
|
||||
# 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`
|
||||
# @return [String]
|
||||
attr_accessor :display_name
|
||||
|
||||
# Whether this address is selected as the default "From:" address in situations
|
||||
# such as composing a new message or sending a vacation auto-reply. Every Gmail
|
||||
# account has exactly one default send-as address, so the only legal value that
|
||||
# clients may write to this field is true. Changing this from false to true for
|
||||
# an address will result in this field becoming false for the other previous
|
||||
# default address.
|
||||
# Whether this address is selected as the default "From:" address in
|
||||
# situations such as composing a new message or sending a vacation
|
||||
# auto-reply. Every Gmail account has exactly one default send-as address,
|
||||
# so the only legal value that clients may write to this field is
|
||||
# <code>true</code>. Changing this from <code>false</code> to
|
||||
# <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`
|
||||
# @return [Boolean]
|
||||
attr_accessor :is_default
|
||||
alias_method :is_default?, :is_default
|
||||
|
||||
# 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
|
||||
# from the collection of send-as aliases. This field is read-only.
|
||||
# Every Gmail account has exactly one primary address, and it cannot be
|
||||
# deleted from the collection of send-as aliases. This field is read-only.
|
||||
# Corresponds to the JSON property `isPrimary`
|
||||
# @return [Boolean]
|
||||
attr_accessor :is_primary
|
||||
alias_method :is_primary?, :is_primary
|
||||
|
||||
# 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:"
|
||||
# header.
|
||||
# sent using this alias. If this is empty, Gmail will not generate a
|
||||
# "Reply-To:" header.
|
||||
# Corresponds to the JSON property `replyToAddress`
|
||||
# @return [String]
|
||||
attr_accessor :reply_to_address
|
||||
|
||||
# The email address that appears in the "From:" header for mail sent using this
|
||||
# alias. This is read-only for all operations except create.
|
||||
# The email address that appears in the "From:" header for mail sent using
|
||||
# this alias. This is read-only for all operations except create.
|
||||
# Corresponds to the JSON property `sendAsEmail`
|
||||
# @return [String]
|
||||
attr_accessor :send_as_email
|
||||
|
@ -1288,15 +1339,16 @@ module Google
|
|||
# @return [Google::Apis::GmailV1::SmtpMsa]
|
||||
attr_accessor :smtp_msa
|
||||
|
||||
# Whether Gmail should treat this address as an alias for the user's primary
|
||||
# email address. This setting only applies to custom "from" aliases.
|
||||
# Whether Gmail should <a href="https://support.google.com/a/answer/1710338">
|
||||
# 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`
|
||||
# @return [Boolean]
|
||||
attr_accessor :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.
|
||||
# Read-only. This setting only applies to custom "from" aliases.
|
||||
# Indicates whether this address has been verified for use as a send-as
|
||||
# alias. Read-only. This setting only applies to custom "from" aliases.
|
||||
# Corresponds to the JSON property `verificationStatus`
|
||||
# @return [String]
|
||||
attr_accessor :verification_status
|
||||
|
@ -1349,18 +1401,18 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :issuer_cn
|
||||
|
||||
# PEM formatted X509 concatenated certificate string (standard base64 encoding).
|
||||
# Format used for returning key, which includes public key as well as
|
||||
# certificate chain (not private key).
|
||||
# PEM formatted X509 concatenated certificate string (standard base64
|
||||
# encoding). Format used for returning key, which includes public key
|
||||
# as well as certificate chain (not private key).
|
||||
# Corresponds to the JSON property `pem`
|
||||
# @return [String]
|
||||
attr_accessor :pem
|
||||
|
||||
# PKCS#12 format containing a single private/public key pair and certificate
|
||||
# chain. This format is only accepted from client for creating a new SmimeInfo
|
||||
# and is never returned, because the private key is not intended to be exported.
|
||||
# PKCS#12 may be encrypted, in which case encryptedKeyPassword should be set
|
||||
# appropriately.
|
||||
# PKCS#12 format containing a single private/public key pair and
|
||||
# certificate chain. This format is only accepted from client
|
||||
# for creating a new SmimeInfo and is never returned, because the
|
||||
# private key is not intended to be exported. PKCS#12 may be encrypted,
|
||||
# in which case encryptedKeyPassword should be set appropriately.
|
||||
# Corresponds to the JSON property `pkcs12`
|
||||
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
||||
# @return [String]
|
||||
|
@ -1391,9 +1443,9 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :host
|
||||
|
||||
# The password that will be used for authentication with the SMTP service. This
|
||||
# is a write-only field that can be specified in requests to create or update
|
||||
# SendAs settings; it is never populated in responses.
|
||||
# The password that will be used for authentication with the SMTP service.
|
||||
# This is a write-only field that can be specified in requests to create or
|
||||
# update SendAs settings; it is never populated in responses.
|
||||
# Corresponds to the JSON property `password`
|
||||
# @return [String]
|
||||
attr_accessor :password
|
||||
|
@ -1403,15 +1455,15 @@ module Google
|
|||
# @return [Fixnum]
|
||||
attr_accessor :port
|
||||
|
||||
# The protocol that will be used to secure communication with the SMTP service.
|
||||
# Required.
|
||||
# The protocol that will be used to secure communication with the SMTP
|
||||
# service. Required.
|
||||
# Corresponds to the JSON property `securityMode`
|
||||
# @return [String]
|
||||
attr_accessor :security_mode
|
||||
|
||||
# The username that will be used for authentication with the SMTP service. This
|
||||
# is a write-only field that can be specified in requests to create or update
|
||||
# SendAs settings; it is never populated in responses.
|
||||
# The username that will be used for authentication with the SMTP service.
|
||||
# This is a write-only field that can be specified in requests to create or
|
||||
# update SendAs settings; it is never populated in responses.
|
||||
# Corresponds to the JSON property `username`
|
||||
# @return [String]
|
||||
attr_accessor :username
|
||||
|
@ -1467,8 +1519,9 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
# Vacation auto-reply settings for an account. These settings correspond to the "
|
||||
# Vacation responder" feature in the web interface.
|
||||
# Vacation auto-reply settings for an account. These settings correspond to
|
||||
# the <a href="https://support.google.com/mail/answer/25922">"Vacation
|
||||
# responder"</a> feature in the web interface.
|
||||
class VacationSettings
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
|
@ -1478,49 +1531,57 @@ module Google
|
|||
attr_accessor :enable_auto_reply
|
||||
alias_method :enable_auto_reply?, :enable_auto_reply
|
||||
|
||||
# An optional end time for sending auto-replies (epoch ms). When this is
|
||||
# specified, Gmail will automatically reply only to messages that it receives
|
||||
# before the end time. If both startTime and endTime are specified, startTime
|
||||
# must precede endTime.
|
||||
# An optional end time for sending auto-replies (epoch ms).
|
||||
# When this is specified, Gmail will automatically reply only to messages
|
||||
# that it receives before the end time. If both <code>startTime</code> and
|
||||
# <code>endTime</code> are specified, <code>startTime</code> must precede
|
||||
# <code>endTime</code>.
|
||||
# Corresponds to the JSON property `endTime`
|
||||
# @return [Fixnum]
|
||||
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`
|
||||
# @return [String]
|
||||
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`
|
||||
# @return [String]
|
||||
attr_accessor :response_body_plain_text
|
||||
|
||||
# Optional text to prepend to the subject line in vacation responses. In order
|
||||
# to enable auto-replies, either the response subject or the response body must
|
||||
# be nonempty.
|
||||
# Optional text to prepend to the subject line in vacation responses. In
|
||||
# order to enable auto-replies, either the response subject or the response
|
||||
# body must be nonempty.
|
||||
# Corresponds to the JSON property `responseSubject`
|
||||
# @return [String]
|
||||
attr_accessor :response_subject
|
||||
|
||||
# Flag that determines whether responses are sent to recipients who are not in
|
||||
# the user's list of contacts.
|
||||
# Flag that determines whether responses are sent to recipients who are not
|
||||
# in the user's list of contacts.
|
||||
# Corresponds to the JSON property `restrictToContacts`
|
||||
# @return [Boolean]
|
||||
attr_accessor :restrict_to_contacts
|
||||
alias_method :restrict_to_contacts?, :restrict_to_contacts
|
||||
|
||||
# Flag that determines whether responses are sent to recipients who are outside
|
||||
# of the user's domain. This feature is only available for G Suite users.
|
||||
# Flag that determines whether responses are sent to recipients who are
|
||||
# outside of the user's domain. This feature is only available for G Suite
|
||||
# users.
|
||||
# Corresponds to the JSON property `restrictToDomain`
|
||||
# @return [Boolean]
|
||||
attr_accessor :restrict_to_domain
|
||||
alias_method :restrict_to_domain?, :restrict_to_domain
|
||||
|
||||
# An optional start time for sending auto-replies (epoch ms). When this is
|
||||
# specified, Gmail will automatically reply only to messages that it receives
|
||||
# after the start time. If both startTime and endTime are specified, startTime
|
||||
# must precede endTime.
|
||||
# An optional start time for sending auto-replies (epoch ms).
|
||||
# When this is specified, Gmail will automatically reply only to messages
|
||||
# that it receives after the start time. If both <code>startTime</code> and
|
||||
# <code>endTime</code> are specified, <code>startTime</code> must precede
|
||||
# <code>endTime</code>.
|
||||
# Corresponds to the JSON property `startTime`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :start_time
|
||||
|
@ -1551,20 +1612,21 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :label_filter_action
|
||||
|
||||
# List of label_ids to restrict notifications about. By default, if unspecified,
|
||||
# all changes are pushed out. If specified then dictates which labels are
|
||||
# required for a push notification to be generated.
|
||||
# List of label_ids to restrict notifications about. By default,
|
||||
# if unspecified, all changes are pushed out. If specified then
|
||||
# dictates which labels are required for a push notification to
|
||||
# be generated.
|
||||
# Corresponds to the JSON property `labelIds`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :label_ids
|
||||
|
||||
# A fully qualified Google Cloud Pub/Sub API topic name to publish the events to.
|
||||
# This topic name **must** already exist in Cloud Pub/Sub and you **must** have
|
||||
# already granted gmail "publish" permission on it. For example, "projects/my-
|
||||
# project-identifier/topics/my-topic-name" (using the Cloud Pub/Sub "v1" topic
|
||||
# naming format).
|
||||
# Note that the "my-project-identifier" portion must exactly match your Google
|
||||
# developer project id (the one executing this watch request).
|
||||
# A fully qualified Google Cloud Pub/Sub API topic name to publish the
|
||||
# events to. This topic name **must** already exist in Cloud Pub/Sub and
|
||||
# you **must** have already granted gmail "publish" permission on it.
|
||||
# For example, "projects/my-project-identifier/topics/my-topic-name"
|
||||
# (using the Cloud Pub/Sub "v1" topic naming format).
|
||||
# Note that the "my-project-identifier" portion must exactly match your
|
||||
# Google developer project id (the one executing this watch request).
|
||||
# Corresponds to the JSON property `topicName`
|
||||
# @return [String]
|
||||
attr_accessor :topic_name
|
||||
|
@ -1585,8 +1647,9 @@ module Google
|
|||
class WatchResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# When Gmail will stop sending notifications for mailbox updates (epoch millis).
|
||||
# Call watch again before this time to renew the watch.
|
||||
# When Gmail will stop sending notifications for mailbox updates
|
||||
# (epoch millis). Call <code>watch</code> again before this time to renew
|
||||
# the watch.
|
||||
# Corresponds to the JSON property `expiration`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :expiration
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -26,7 +26,7 @@ module Google
|
|||
# @see https://cloud.google.com/memorystore/
|
||||
module MemcacheV1beta2
|
||||
VERSION = 'V1beta2'
|
||||
REVISION = '20200603'
|
||||
REVISION = '20200608'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -62,7 +62,7 @@ module Google
|
|||
# `
|
||||
# "audit_configs": [
|
||||
# `
|
||||
# "service": "allServices"
|
||||
# "service": "allServices",
|
||||
# "audit_log_configs": [
|
||||
# `
|
||||
# "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": [
|
||||
# `
|
||||
# "log_type": "DATA_READ",
|
||||
# "log_type": "DATA_READ"
|
||||
# `,
|
||||
# `
|
||||
# "log_type": "DATA_WRITE",
|
||||
|
@ -134,7 +134,7 @@ module Google
|
|||
# ]
|
||||
# `,
|
||||
# `
|
||||
# "log_type": "DATA_WRITE",
|
||||
# "log_type": "DATA_WRITE"
|
||||
# `
|
||||
# ]
|
||||
# `
|
||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
|||
# @see https://cloud.google.com/
|
||||
module OsconfigV1beta
|
||||
VERSION = 'V1beta'
|
||||
REVISION = '20200504'
|
||||
REVISION = '20200601'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -461,8 +461,7 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
# A request message to initiate patching across Google Compute Engine
|
||||
# instances.
|
||||
# A request message to initiate patching across Compute Engine instances.
|
||||
class ExecutePatchJobRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
|
@ -1182,8 +1181,8 @@ module Google
|
|||
class PatchInstanceFilterGroupLabel
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Google Compute Engine instance labels that must be present for a VM
|
||||
# instance to be targeted by this filter.
|
||||
# Compute Engine instance labels that must be present for a VM instance to
|
||||
# be targeted by this filter.
|
||||
# Corresponds to the JSON property `labels`
|
||||
# @return [Hash<String,String>]
|
||||
attr_accessor :labels
|
||||
|
@ -1200,8 +1199,8 @@ module Google
|
|||
|
||||
# A high level representation of a patch job that is either in progress
|
||||
# or has completed.
|
||||
# Instances details are not included in the job. To paginate through instance
|
||||
# details, use ListPatchJobInstanceDetails.
|
||||
# Instance details are not included in the job. To paginate through instance
|
||||
# details, use `ListPatchJobInstanceDetails`.
|
||||
# For more information about patch jobs, see
|
||||
# [Creating patch
|
||||
# jobs](https://cloud.google.com/compute/docs/os-patch-management/create-patch-
|
||||
|
@ -1283,7 +1282,7 @@ module Google
|
|||
# @return [Float]
|
||||
attr_accessor :percent_complete
|
||||
|
||||
# The current state of the PatchJob .
|
||||
# The current state of the PatchJob.
|
||||
# Corresponds to the JSON property `state`
|
||||
# @return [String]
|
||||
attr_accessor :state
|
||||
|
|
|
@ -28,7 +28,7 @@ module Google
|
|||
# @see https://developers.google.com/speed/docs/insights/v5/about
|
||||
module PagespeedonlineV5
|
||||
VERSION = 'V5'
|
||||
REVISION = '20200305'
|
||||
REVISION = '20200608'
|
||||
|
||||
# Associate you with your personal info on Google
|
||||
PENID = 'openid'
|
||||
|
|
|
@ -496,6 +496,12 @@ module Google
|
|||
# @return [Hash<String,Google::Apis::PagespeedonlineV5::UserPageLoadMetricV5>]
|
||||
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.
|
||||
# Corresponds to the JSON property `overall_category`
|
||||
# @return [String]
|
||||
|
@ -510,6 +516,7 @@ module Google
|
|||
@id = args[:id] if args.key?(:id)
|
||||
@initial_url = args[:initial_url] if args.key?(:initial_url)
|
||||
@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)
|
||||
end
|
||||
end
|
||||
|
|
|
@ -266,6 +266,7 @@ module Google
|
|||
property :initial_url, as: 'initial_url'
|
||||
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'
|
||||
end
|
||||
end
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://developers.google.com/people/
|
||||
module PeopleV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20200604'
|
||||
REVISION = '20200606'
|
||||
|
||||
# See, edit, download, and permanently delete your contacts
|
||||
AUTH_CONTACTS = 'https://www.googleapis.com/auth/contacts'
|
||||
|
|
|
@ -439,8 +439,8 @@ module Google
|
|||
|
||||
# Optional. A field mask to restrict which fields on the person are returned.
|
||||
# Multiple
|
||||
# fields can be specified by separating them with commas. Defaults to empty
|
||||
# if not set, which will skip the post mutate get. Valid values are:
|
||||
# fields can be specified by separating them with commas. Defaults to the
|
||||
# copy mask with metadata and membership fields if not set. Valid values are:
|
||||
# * addresses
|
||||
# * ageRanges
|
||||
# * biographies
|
||||
|
@ -470,6 +470,14 @@ module Google
|
|||
# @return [String]
|
||||
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)
|
||||
update!(**args)
|
||||
end
|
||||
|
@ -478,6 +486,7 @@ module Google
|
|||
def update!(**args)
|
||||
@copy_mask = args[:copy_mask] if args.key?(:copy_mask)
|
||||
@read_mask = args[:read_mask] if args.key?(:read_mask)
|
||||
@sources = args[:sources] if args.key?(:sources)
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -2302,6 +2311,14 @@ module Google
|
|||
# @return [String]
|
||||
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)
|
||||
update!(**args)
|
||||
end
|
||||
|
@ -2310,6 +2327,7 @@ module Google
|
|||
def update!(**args)
|
||||
@person_fields = args[:person_fields] if args.key?(:person_fields)
|
||||
@photo_bytes = args[:photo_bytes] if args.key?(:photo_bytes)
|
||||
@sources = args[:sources] if args.key?(:sources)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -465,6 +465,7 @@ module Google
|
|||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :copy_mask, as: 'copyMask'
|
||||
property :read_mask, as: 'readMask'
|
||||
collection :sources, as: 'sources'
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -950,6 +951,7 @@ module Google
|
|||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :person_fields, as: 'personFields'
|
||||
property :photo_bytes, :base64 => true, as: 'photoBytes'
|
||||
collection :sources, as: 'sources'
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -329,8 +329,104 @@ module Google
|
|||
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 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.
|
||||
# @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
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @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::ClientError] The request is invalid and should not be retried without modification
|
||||
# @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.request_representation = Google::Apis::PeopleV1::Person::Representation
|
||||
command.request_object = person_object
|
||||
command.response_representation = Google::Apis::PeopleV1::Person::Representation
|
||||
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['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
|
@ -422,6 +520,11 @@ module Google
|
|||
# * 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
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @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::ClientError] The request is invalid and should not be retried without modification
|
||||
# @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.response_representation = Google::Apis::PeopleV1::DeleteContactPhotoResponse::Representation
|
||||
command.response_class = Google::Apis::PeopleV1::DeleteContactPhotoResponse
|
||||
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['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
|
@ -495,6 +599,12 @@ module Google
|
|||
# Each
|
||||
# path should start with `person.`: for example, `person.names` or
|
||||
# `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
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @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::ClientError] The request is invalid and should not be retried without modification
|
||||
# @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.response_representation = Google::Apis::PeopleV1::Person::Representation
|
||||
command.response_class = Google::Apis::PeopleV1::Person
|
||||
command.params['resourceName'] = resource_name unless resource_name.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['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)
|
||||
|
@ -571,6 +682,12 @@ module Google
|
|||
# identifies the contact as returned by
|
||||
# [`people.connections.list`](/people/api/rest/v1/people.connections/list).
|
||||
# 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
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @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::ClientError] The request is invalid and should not be retried without modification
|
||||
# @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.response_representation = Google::Apis::PeopleV1::GetPeopleResponse::Representation
|
||||
command.response_class = Google::Apis::PeopleV1::GetPeopleResponse
|
||||
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['resourceNames'] = resource_names unless resource_names.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)
|
||||
|
@ -615,6 +733,41 @@ module Google
|
|||
# with a max length of 27 characters, in the form of
|
||||
# `people/`person_id``.
|
||||
# @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
|
||||
# Required. A field mask to restrict which fields on the person are updated.
|
||||
# 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::ClientError] The request is invalid and should not be retried without modification
|
||||
# @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.request_representation = Google::Apis::PeopleV1::Person::Representation
|
||||
command.request_object = person_object
|
||||
command.response_representation = Google::Apis::PeopleV1::Person::Representation
|
||||
command.response_class = Google::Apis::PeopleV1::Person
|
||||
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['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
|
@ -760,6 +915,12 @@ module Google
|
|||
# @param [String] sort_order
|
||||
# Optional. The order in which the connections should be sorted. Defaults to
|
||||
# `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
|
||||
# Optional. A sync token, received from a previous `ListConnections` call.
|
||||
# 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::ClientError] The request is invalid and should not be retried without modification
|
||||
# @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.response_representation = Google::Apis::PeopleV1::ListConnectionsResponse::Representation
|
||||
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['requestSyncToken'] = request_sync_token unless request_sync_token.nil?
|
||||
command.query['sortOrder'] = sort_order unless sort_order.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
|
||||
|
||||
# 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['sources'] = sources unless sources.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?
|
||||
|
|
Loading…
Reference in New Issue