Autogenerated update (2020-08-15)

Delete:
- dns_v2beta1

Update:
- cloudfunctions_v1
- cloudtasks_v2
- container_v1beta1
- pagespeedonline_v5
- people_v1
- prod_tt_sasportal_v1alpha1
- recommendationengine_v1beta1
- servicecontrol_v2
- texttospeech_v1
- texttospeech_v1beta1
- videointelligence_v1
- videointelligence_v1beta2
- videointelligence_v1p1beta1
- videointelligence_v1p2beta1
This commit is contained in:
Google APIs 2020-08-15 00:38:25 +00:00
parent cb8c50c5f2
commit cfefabb117
49 changed files with 6345 additions and 10510 deletions

View File

@ -50763,6 +50763,7 @@
"/container:v1beta1/Cluster/nodeIpv4CidrSize": node_ipv4_cidr_size
"/container:v1beta1/Cluster/nodePools": node_pools
"/container:v1beta1/Cluster/nodePools/node_pool": node_pool
"/container:v1beta1/Cluster/notificationConfig": notification_config
"/container:v1beta1/Cluster/podSecurityPolicyConfig": pod_security_policy_config
"/container:v1beta1/Cluster/privateCluster": private_cluster
"/container:v1beta1/Cluster/privateClusterConfig": private_cluster_config
@ -50797,6 +50798,7 @@
"/container:v1beta1/ClusterUpdate/desiredClusterAutoscaling": desired_cluster_autoscaling
"/container:v1beta1/ClusterUpdate/desiredClusterTelemetry": desired_cluster_telemetry
"/container:v1beta1/ClusterUpdate/desiredDatabaseEncryption": desired_database_encryption
"/container:v1beta1/ClusterUpdate/desiredDatapathProvider": desired_datapath_provider
"/container:v1beta1/ClusterUpdate/desiredDefaultSnatStatus": desired_default_snat_status
"/container:v1beta1/ClusterUpdate/desiredImageType": desired_image_type
"/container:v1beta1/ClusterUpdate/desiredIntraNodeVisibilityConfig": desired_intra_node_visibility_config
@ -50810,6 +50812,7 @@
"/container:v1beta1/ClusterUpdate/desiredNodePoolAutoscaling": desired_node_pool_autoscaling
"/container:v1beta1/ClusterUpdate/desiredNodePoolId": desired_node_pool_id
"/container:v1beta1/ClusterUpdate/desiredNodeVersion": desired_node_version
"/container:v1beta1/ClusterUpdate/desiredNotificationConfig": desired_notification_config
"/container:v1beta1/ClusterUpdate/desiredPodSecurityPolicyConfig": desired_pod_security_policy_config
"/container:v1beta1/ClusterUpdate/desiredPrivateClusterConfig": desired_private_cluster_config
"/container:v1beta1/ClusterUpdate/desiredReleaseChannel": desired_release_channel
@ -50987,6 +50990,7 @@
"/container:v1beta1/Metric/name": name
"/container:v1beta1/Metric/stringValue": string_value
"/container:v1beta1/NetworkConfig": network_config
"/container:v1beta1/NetworkConfig/datapathProvider": datapath_provider
"/container:v1beta1/NetworkConfig/defaultSnatStatus": default_snat_status
"/container:v1beta1/NetworkConfig/enableIntraNodeVisibility": enable_intra_node_visibility
"/container:v1beta1/NetworkConfig/network": network
@ -51061,11 +51065,14 @@
"/container:v1beta1/NodeTaint/effect": effect
"/container:v1beta1/NodeTaint/key": key
"/container:v1beta1/NodeTaint/value": value
"/container:v1beta1/NotificationConfig": notification_config
"/container:v1beta1/NotificationConfig/pubsub": pubsub
"/container:v1beta1/Operation": operation
"/container:v1beta1/Operation/clusterConditions": cluster_conditions
"/container:v1beta1/Operation/clusterConditions/cluster_condition": cluster_condition
"/container:v1beta1/Operation/detail": detail
"/container:v1beta1/Operation/endTime": end_time
"/container:v1beta1/Operation/error": error
"/container:v1beta1/Operation/location": location
"/container:v1beta1/Operation/name": name
"/container:v1beta1/Operation/nodepoolConditions": nodepool_conditions
@ -51097,6 +51104,9 @@
"/container:v1beta1/PrivateClusterConfig/publicEndpoint": public_endpoint
"/container:v1beta1/PrivateClusterMasterGlobalAccessConfig": private_cluster_master_global_access_config
"/container:v1beta1/PrivateClusterMasterGlobalAccessConfig/enabled": enabled
"/container:v1beta1/PubSub": pub_sub
"/container:v1beta1/PubSub/enabled": enabled
"/container:v1beta1/PubSub/topic": topic
"/container:v1beta1/RecurringTimeWindow": recurring_time_window
"/container:v1beta1/RecurringTimeWindow/recurrence": recurrence
"/container:v1beta1/RecurringTimeWindow/window": window
@ -51232,7 +51242,14 @@
"/container:v1beta1/StartIPRotationRequest/projectId": project_id
"/container:v1beta1/StartIPRotationRequest/rotateCredentials": rotate_credentials
"/container:v1beta1/StartIPRotationRequest/zone": zone
"/container:v1beta1/Status": status
"/container:v1beta1/Status/code": code
"/container:v1beta1/Status/details": details
"/container:v1beta1/Status/details/detail": detail
"/container:v1beta1/Status/details/detail/detail": detail
"/container:v1beta1/Status/message": message
"/container:v1beta1/StatusCondition": status_condition
"/container:v1beta1/StatusCondition/canonicalCode": canonical_code
"/container:v1beta1/StatusCondition/code": code
"/container:v1beta1/StatusCondition/message": message
"/container:v1beta1/TimeWindow": time_window
@ -51268,6 +51285,13 @@
"/container:v1beta1/UpdateNodePoolRequest/upgradeSettings": upgrade_settings
"/container:v1beta1/UpdateNodePoolRequest/workloadMetadataConfig": workload_metadata_config
"/container:v1beta1/UpdateNodePoolRequest/zone": zone
"/container:v1beta1/UpgradeEvent": upgrade_event
"/container:v1beta1/UpgradeEvent/currentVersion": current_version
"/container:v1beta1/UpgradeEvent/operation": operation
"/container:v1beta1/UpgradeEvent/operationStartTime": operation_start_time
"/container:v1beta1/UpgradeEvent/resource": resource
"/container:v1beta1/UpgradeEvent/resourceType": resource_type
"/container:v1beta1/UpgradeEvent/targetVersion": target_version
"/container:v1beta1/UpgradeSettings": upgrade_settings
"/container:v1beta1/UpgradeSettings/maxSurge": max_surge
"/container:v1beta1/UpgradeSettings/maxUnavailable": max_unavailable
@ -112223,6 +112247,15 @@
"/people:v1/Locale": locale
"/people:v1/Locale/metadata": metadata
"/people:v1/Locale/value": value
"/people:v1/Location": location
"/people:v1/Location/buildingId": building_id
"/people:v1/Location/current": current
"/people:v1/Location/deskCode": desk_code
"/people:v1/Location/floor": floor
"/people:v1/Location/floorSection": floor_section
"/people:v1/Location/metadata": metadata
"/people:v1/Location/type": type
"/people:v1/Location/value": value
"/people:v1/Membership": membership
"/people:v1/Membership/contactGroupMembership": contact_group_membership
"/people:v1/Membership/domainMembership": domain_membership
@ -112316,6 +112349,8 @@
"/people:v1/Person/interests/interest": interest
"/people:v1/Person/locales": locales
"/people:v1/Person/locales/locale": locale
"/people:v1/Person/locations": locations
"/people:v1/Person/locations/location": location
"/people:v1/Person/memberships": memberships
"/people:v1/Person/memberships/membership": membership
"/people:v1/Person/metadata": metadata
@ -114239,6 +114274,7 @@
"/prod_tt_sasportal:v1alpha1/SasPortalDeviceGrant/channelType": channel_type
"/prod_tt_sasportal:v1alpha1/SasPortalDeviceGrant/expireTime": expire_time
"/prod_tt_sasportal:v1alpha1/SasPortalDeviceGrant/frequencyRange": frequency_range
"/prod_tt_sasportal:v1alpha1/SasPortalDeviceGrant/grantId": grant_id
"/prod_tt_sasportal:v1alpha1/SasPortalDeviceGrant/maxEirp": max_eirp
"/prod_tt_sasportal:v1alpha1/SasPortalDeviceGrant/moveList": move_list
"/prod_tt_sasportal:v1alpha1/SasPortalDeviceGrant/moveList/move_list": move_list

View File

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

File diff suppressed because it is too large Load Diff

View File

@ -47,9 +47,8 @@ module Google
@batch_path = 'batch'
end
# Gets the latest state of a long-running operation. Clients can use this
# method to poll the operation result at intervals as recommended by the API
# service.
# Gets the latest state of a long-running operation. Clients can use this method
# to poll the operation result at intervals as recommended by the API service.
# @param [String] name
# The name of the operation resource.
# @param [String] fields
@ -79,30 +78,28 @@ module Google
execute_or_queue_command(command, &block)
end
# Lists operations that match the specified filter in the request. If the
# server doesn't support this method, it returns `UNIMPLEMENTED`.
# NOTE: the `name` binding allows API services to override the binding
# to use different resource name schemes, such as `users/*/operations`. To
# override the binding, API services can add a binding such as
# `"/v1/`name=users/*`/operations"` to their service configuration.
# For backwards compatibility, the default name includes the operations
# collection id, however overriding users must ensure the name binding
# is the parent resource, without the operations collection id.
# Lists operations that match the specified filter in the request. If the server
# doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name`
# binding allows API services to override the binding to use different resource
# name schemes, such as `users/*/operations`. To override the binding, API
# services can add a binding such as `"/v1/`name=users/*`/operations"` to their
# service configuration. For backwards compatibility, the default name includes
# the operations collection id, however overriding users must ensure the name
# binding is the parent resource, without the operations collection id.
# @param [String] filter
# Required. A filter for matching the requested operations.<br><br> The
# supported formats of <b>filter</b> are:<br> To query for a specific function: <
# code>project:*,location:*,function:*</code><br> To query for all of the latest
# operations for a project: <code>project:*,latest:true</code>
# Required. A filter for matching the requested operations. The supported
# formats of *filter* are: To query for a specific function: project:*,location:*
# ,function:* To query for all of the latest operations for a project: project:*,
# latest:true
# @param [String] name
# Must not be set.
# @param [Fixnum] page_size
# The maximum number of records that should be returned.<br> Requested page size
# cannot exceed 100. If not set, the default page size is 100.<br><br>
# Pagination is only supported when querying for a specific function.
# The maximum number of records that should be returned. Requested page size
# cannot exceed 100. If not set, the default page size is 100. Pagination is
# only supported when querying for a specific function.
# @param [String] page_token
# Token identifying which result to start with, which is returned by a previous
# list call.<br><br> Pagination is only supported when querying for a specific
# function.
# list call. Pagination is only supported when querying for a specific function.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -173,9 +170,9 @@ module Google
end
# Synchronously invokes a deployed Cloud Function. To be used for testing
# purposes as very limited traffic is allowed. For more information on
# the actual limits, refer to
# [Rate Limits](https://cloud.google.com/functions/quotas#rate_limits).
# purposes as very limited traffic is allowed. For more information on the
# actual limits, refer to [Rate Limits](https://cloud.google.com/functions/
# quotas#rate_limits).
# @param [String] name
# Required. The name of the function to be called.
# @param [Google::Apis::CloudfunctionsV1::CallFunctionRequest] call_function_request_object
@ -209,12 +206,11 @@ module Google
end
# Creates a new function. If a function with the given name already exists in
# the specified project, the long running operation will return
# `ALREADY_EXISTS` error.
# the specified project, the long running operation will return `ALREADY_EXISTS`
# error.
# @param [String] location
# Required. The project and location in which the function should be created,
# specified
# in the format `projects/*/locations/*`
# specified in the format `projects/*/locations/*`
# @param [Google::Apis::CloudfunctionsV1::CloudFunction] cloud_function_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -246,8 +242,8 @@ module Google
end
# Deletes a function with the given name from the specified project. If the
# given function is used by some trigger, the trigger will be updated to
# remove this function.
# given function is used by some trigger, the trigger will be updated to remove
# this function.
# @param [String] name
# Required. The name of the function which should be deleted.
# @param [String] fields
@ -277,14 +273,13 @@ module Google
execute_or_queue_command(command, &block)
end
# Returns a signed URL for downloading deployed function source code.
# The URL is only valid for a limited period and should be used within
# minutes after generation.
# For more information about the signed URL usage see:
# https://cloud.google.com/storage/docs/access-control/signed-urls
# Returns a signed URL for downloading deployed function source code. The URL is
# only valid for a limited period and should be used within minutes after
# generation. For more information about the signed URL usage see: https://cloud.
# google.com/storage/docs/access-control/signed-urls
# @param [String] name
# The name of function for which source code Google Cloud Storage signed
# URL should be generated.
# The name of function for which source code Google Cloud Storage signed URL
# should be generated.
# @param [Google::Apis::CloudfunctionsV1::GenerateDownloadUrlRequest] generate_download_url_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -315,28 +310,24 @@ module Google
execute_or_queue_command(command, &block)
end
# Returns a signed URL for uploading a function source code.
# For more information about the signed URL usage see:
# https://cloud.google.com/storage/docs/access-control/signed-urls.
# Once the function source code upload is complete, the used signed
# URL should be provided in CreateFunction or UpdateFunction request
# as a reference to the function source code.
# When uploading source code to the generated signed URL, please follow
# these restrictions:
# * Source file type should be a zip file.
# * Source file size should not exceed 100MB limit.
# * No credentials should be attached - the signed URLs provide access to the
# target bucket using internal service identity; if credentials were
# attached, the identity from the credentials would be used, but that
# identity does not have permissions to upload files to the URL.
# When making a HTTP PUT request, these two headers need to be specified:
# * `content-type: application/zip`
# * `x-goog-content-length-range: 0,104857600`
# And this header SHOULD NOT be specified:
# * `Authorization: Bearer YOUR_TOKEN`
# Returns a signed URL for uploading a function source code. For more
# information about the signed URL usage see: https://cloud.google.com/storage/
# docs/access-control/signed-urls. Once the function source code upload is
# complete, the used signed URL should be provided in CreateFunction or
# UpdateFunction request as a reference to the function source code. When
# uploading source code to the generated signed URL, please follow these
# restrictions: * Source file type should be a zip file. * Source file size
# should not exceed 100MB limit. * No credentials should be attached - the
# signed URLs provide access to the target bucket using internal service
# identity; if credentials were attached, the identity from the credentials
# would be used, but that identity does not have permissions to upload files to
# the URL. When making a HTTP PUT request, these two headers need to be
# specified: * `content-type: application/zip` * `x-goog-content-length-range: 0,
# 104857600` And this header SHOULD NOT be specified: * `Authorization: Bearer
# YOUR_TOKEN`
# @param [String] parent
# The project and location in which the Google Cloud Storage signed URL
# should be generated, specified in the format `projects/*/locations/*`.
# The project and location in which the Google Cloud Storage signed URL should
# be generated, specified in the format `projects/*/locations/*`.
# @param [Google::Apis::CloudfunctionsV1::GenerateUploadUrlRequest] generate_upload_url_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -397,22 +388,19 @@ module Google
execute_or_queue_command(command, &block)
end
# Gets the IAM access control policy for a function.
# Returns an empty policy if the function exists and does not have a policy
# set.
# Gets the IAM access control policy for a function. Returns an empty policy if
# the function exists and does not have a policy set.
# @param [String] resource
# REQUIRED: The resource for which the policy is being requested.
# See the operation documentation for the appropriate value for this field.
# REQUIRED: The resource for which the policy is being requested. See the
# operation documentation for the appropriate value for this field.
# @param [Fixnum] options_requested_policy_version
# Optional. The policy format version to be returned.
# Valid values are 0, 1, and 3. Requests specifying an invalid value will be
# rejected.
# Requests for policies with any conditional bindings must specify version 3.
# Policies without any conditional bindings may specify any valid value or
# leave the field unset.
# To learn which resources support conditions in their IAM policies, see the
# [IAM
# documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
# Optional. The policy format version to be returned. Valid values are 0, 1, and
# 3. Requests specifying an invalid value will be rejected. Requests for
# policies with any conditional bindings must specify version 3. Policies
# without any conditional bindings may specify any valid value or leave the
# field unset. To learn which resources support conditions in their IAM policies,
# see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
# resource-policies).
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -443,19 +431,18 @@ module Google
# Returns a list of functions that belong to the requested project.
# @param [String] parent
# The project and location from which the function should be listed,
# specified in the format `projects/*/locations/*`
# If you want to list functions in all locations, use "-" in place of a
# location. When listing functions in all locations, if one or more
# location(s) are unreachable, the response will contain functions from all
# reachable locations along with the names of any unreachable locations.
# The project and location from which the function should be listed, specified
# in the format `projects/*/locations/*` If you want to list functions in all
# locations, use "-" in place of a location. When listing functions in all
# locations, if one or more location(s) are unreachable, the response will
# contain functions from all reachable locations along with the names of any
# unreachable locations.
# @param [Fixnum] page_size
# Maximum number of functions to return per call.
# @param [String] page_token
# The value returned by the last
# `ListFunctionsResponse`; indicates that
# this is a continuation of a prior `ListFunctions` call, and that the
# system should return the next page of data.
# The value returned by the last `ListFunctionsResponse`; indicates that this is
# a continuation of a prior `ListFunctions` call, and that the system should
# return the next page of data.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -487,8 +474,8 @@ module Google
# Updates existing function.
# @param [String] name
# A user-defined name of the function. Function names must be unique
# globally and match pattern `projects/*/locations/*/functions/*`
# A user-defined name of the function. Function names must be unique globally
# and match pattern `projects/*/locations/*/functions/*`
# @param [Google::Apis::CloudfunctionsV1::CloudFunction] cloud_function_object
# @param [String] update_mask
# Required list of fields to be updated in this request.
@ -522,11 +509,11 @@ module Google
execute_or_queue_command(command, &block)
end
# Sets the IAM access control policy on the specified function.
# Replaces any existing policy.
# Sets the IAM access control policy on the specified function. Replaces any
# existing policy.
# @param [String] resource
# REQUIRED: The resource for which the policy is being specified.
# See the operation documentation for the appropriate value for this field.
# REQUIRED: The resource for which the policy is being specified. See the
# operation documentation for the appropriate value for this field.
# @param [Google::Apis::CloudfunctionsV1::SetIamPolicyRequest] set_iam_policy_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -557,13 +544,12 @@ module Google
execute_or_queue_command(command, &block)
end
# Tests the specified permissions against the IAM access control policy
# for a function.
# If the function does not exist, this will return an empty set of
# Tests the specified permissions against the IAM access control policy for a
# function. If the function does not exist, this will return an empty set of
# permissions, not a NOT_FOUND error.
# @param [String] resource
# REQUIRED: The resource for which the policy detail is being requested.
# See the operation documentation for the appropriate value for this field.
# REQUIRED: The resource for which the policy detail is being requested. See the
# operation documentation for the appropriate value for this field.
# @param [Google::Apis::CloudfunctionsV1::TestIamPermissionsRequest] test_iam_permissions_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.

View File

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

File diff suppressed because it is too large Load Diff

View File

@ -116,23 +116,17 @@ module Google
execute_or_queue_command(command, &block)
end
# Creates a queue.
# Queues created with this method allow tasks to live for a maximum of 31
# days. After a task is 31 days old, the task will be deleted regardless of
# whether
# it was dispatched or not.
# WARNING: Using this method may have unintended side effects if you are
# using an App Engine `queue.yaml` or `queue.xml` file to manage your queues.
# Read
# [Overview of Queue Management and
# queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using
# this method.
# Creates a queue. Queues created with this method allow tasks to live for a
# maximum of 31 days. After a task is 31 days old, the task will be deleted
# regardless of whether it was dispatched or not. WARNING: Using this method may
# have unintended side effects if you are using an App Engine `queue.yaml` or `
# queue.xml` file to manage your queues. Read [Overview of Queue Management and
# queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using this
# method.
# @param [String] parent
# Required. The location name in which the queue will be created.
# For example: `projects/PROJECT_ID/locations/LOCATION_ID`
# The list of allowed locations can be obtained by calling Cloud
# Tasks' implementation of
# ListLocations.
# Required. The location name in which the queue will be created. For example: `
# projects/PROJECT_ID/locations/LOCATION_ID` The list of allowed locations can
# be obtained by calling Cloud Tasks' implementation of ListLocations.
# @param [Google::Apis::CloudtasksV2::Queue] queue_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -163,19 +157,15 @@ module Google
execute_or_queue_command(command, &block)
end
# Deletes a queue.
# This command will delete the queue even if it has tasks in it.
# Note: If you delete a queue, a queue with the same name can't be created
# for 7 days.
# WARNING: Using this method may have unintended side effects if you are
# Deletes a queue. This command will delete the queue even if it has tasks in it.
# Note: If you delete a queue, a queue with the same name can't be created for
# 7 days. WARNING: Using this method may have unintended side effects if you are
# using an App Engine `queue.yaml` or `queue.xml` file to manage your queues.
# Read
# [Overview of Queue Management and
# queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using
# this method.
# Read [Overview of Queue Management and queue.yaml](https://cloud.google.com/
# tasks/docs/queue-yaml) before using this method.
# @param [String] name
# Required. The queue name. For example:
# `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
# Required. The queue name. For example: `projects/PROJECT_ID/locations/
# LOCATION_ID/queues/QUEUE_ID`
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -205,8 +195,8 @@ module Google
# Gets a queue.
# @param [String] name
# Required. The resource name of the queue. For example:
# `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
# Required. The resource name of the queue. For example: `projects/PROJECT_ID/
# locations/LOCATION_ID/queues/QUEUE_ID`
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -234,16 +224,13 @@ module Google
execute_or_queue_command(command, &block)
end
# Gets the access control policy for a Queue.
# Returns an empty policy if the resource exists and does not have a policy
# set.
# Authorization requires the following
# [Google IAM](https://cloud.google.com/iam) permission on the specified
# resource parent:
# * `cloudtasks.queues.getIamPolicy`
# Gets the access control policy for a Queue. Returns an empty policy if the
# resource exists and does not have a policy set. Authorization requires the
# following [Google IAM](https://cloud.google.com/iam) permission on the
# specified resource parent: * `cloudtasks.queues.getIamPolicy`
# @param [String] resource
# REQUIRED: The resource for which the policy is being requested.
# See the operation documentation for the appropriate value for this field.
# REQUIRED: The resource for which the policy is being requested. See the
# operation documentation for the appropriate value for this field.
# @param [Google::Apis::CloudtasksV2::GetIamPolicyRequest] get_iam_policy_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -274,36 +261,28 @@ module Google
execute_or_queue_command(command, &block)
end
# Lists queues.
# Queues are returned in lexicographical order.
# Lists queues. Queues are returned in lexicographical order.
# @param [String] parent
# Required. The location name.
# For example: `projects/PROJECT_ID/locations/LOCATION_ID`
# Required. The location name. For example: `projects/PROJECT_ID/locations/
# LOCATION_ID`
# @param [String] filter
# `filter` can be used to specify a subset of queues. Any Queue
# field can be used as a filter and several operators as supported.
# For example: `<=, <, >=, >, !=, =, :`. The filter syntax is the same as
# described in
# [Stackdriver's Advanced Logs
# Filters](https://cloud.google.com/logging/docs/view/advanced_filters).
# Sample filter "state: PAUSED".
# Note that using filters might cause fewer queues than the
# requested page_size to be returned.
# `filter` can be used to specify a subset of queues. Any Queue field can be
# used as a filter and several operators as supported. For example: `<=, <, >=, >
# , !=, =, :`. The filter syntax is the same as described in [Stackdriver's
# Advanced Logs Filters](https://cloud.google.com/logging/docs/view/
# advanced_filters). Sample filter "state: PAUSED". Note that using filters
# might cause fewer queues than the requested page_size to be returned.
# @param [Fixnum] page_size
# Requested page size.
# The maximum page size is 9800. If unspecified, the page size will
# be the maximum. Fewer queues than requested might be returned,
# even if more queues exist; use the
# next_page_token in the
# response to determine if more queues exist.
# Requested page size. The maximum page size is 9800. If unspecified, the page
# size will be the maximum. Fewer queues than requested might be returned, even
# if more queues exist; use the next_page_token in the response to determine if
# more queues exist.
# @param [String] page_token
# A token identifying the page of results to return.
# To request the first page results, page_token must be empty. To
# request the next page of results, page_token must be the value of
# next_page_token returned
# from the previous call to ListQueues
# method. It is an error to switch the value of the
# filter while iterating through pages.
# A token identifying the page of results to return. To request the first page
# results, page_token must be empty. To request the next page of results,
# page_token must be the value of next_page_token returned from the previous
# call to ListQueues method. It is an error to switch the value of the filter
# while iterating through pages.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -334,41 +313,30 @@ module Google
execute_or_queue_command(command, &block)
end
# Updates a queue.
# This method creates the queue if it does not exist and updates
# the queue if it does exist.
# Queues created with this method allow tasks to live for a maximum of 31
# days. After a task is 31 days old, the task will be deleted regardless of
# whether
# it was dispatched or not.
# WARNING: Using this method may have unintended side effects if you are
# using an App Engine `queue.yaml` or `queue.xml` file to manage your queues.
# Read
# [Overview of Queue Management and
# queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using
# this method.
# Updates a queue. This method creates the queue if it does not exist and
# updates the queue if it does exist. Queues created with this method allow
# tasks to live for a maximum of 31 days. After a task is 31 days old, the task
# will be deleted regardless of whether it was dispatched or not. WARNING: Using
# this method may have unintended side effects if you are using an App Engine `
# queue.yaml` or `queue.xml` file to manage your queues. Read [Overview of Queue
# Management and queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml)
# before using this method.
# @param [String] name
# Caller-specified and required in CreateQueue,
# after which it becomes output only.
# The queue name.
# The queue name must have the following format:
# `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
# * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]),
# hyphens (-), colons (:), or periods (.).
# For more information, see
# [Identifying
# projects](https://cloud.google.com/resource-manager/docs/creating-managing-
# projects#identifying_projects)
# * `LOCATION_ID` is the canonical ID for the queue's location.
# The list of available locations can be obtained by calling
# ListLocations.
# For more information, see https://cloud.google.com/about/locations/.
# * `QUEUE_ID` can contain letters ([A-Za-z]), numbers ([0-9]), or
# hyphens (-). The maximum length is 100 characters.
# Caller-specified and required in CreateQueue, after which it becomes output
# only. The queue name. The queue name must have the following format: `projects/
# PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` * `PROJECT_ID` can contain
# letters ([A-Za-z]), numbers ([0-9]), hyphens (-), colons (:), or periods (.).
# For more information, see [Identifying projects](https://cloud.google.com/
# resource-manager/docs/creating-managing-projects#identifying_projects) * `
# LOCATION_ID` is the canonical ID for the queue's location. The list of
# available locations can be obtained by calling ListLocations. For more
# information, see https://cloud.google.com/about/locations/. * `QUEUE_ID` can
# contain letters ([A-Za-z]), numbers ([0-9]), or hyphens (-). The maximum
# length is 100 characters.
# @param [Google::Apis::CloudtasksV2::Queue] queue_object
# @param [String] update_mask
# A mask used to specify which fields of the queue are being updated.
# If empty, then all fields will be updated.
# A mask used to specify which fields of the queue are being updated. If empty,
# then all fields will be updated.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -399,15 +367,12 @@ module Google
execute_or_queue_command(command, &block)
end
# Pauses the queue.
# If a queue is paused then the system will stop dispatching tasks
# until the queue is resumed via
# ResumeQueue. Tasks can still be added
# when the queue is paused. A queue is paused if its
# state is PAUSED.
# Pauses the queue. If a queue is paused then the system will stop dispatching
# tasks until the queue is resumed via ResumeQueue. Tasks can still be added
# when the queue is paused. A queue is paused if its state is PAUSED.
# @param [String] name
# Required. The queue name. For example:
# `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID`
# Required. The queue name. For example: `projects/PROJECT_ID/location/
# LOCATION_ID/queues/QUEUE_ID`
# @param [Google::Apis::CloudtasksV2::PauseQueueRequest] pause_queue_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -438,13 +403,13 @@ module Google
execute_or_queue_command(command, &block)
end
# Purges a queue by deleting all of its tasks.
# All tasks created before this method is called are permanently deleted.
# Purge operations can take up to one minute to take effect. Tasks
# might be dispatched before the purge takes effect. A purge is irreversible.
# Purges a queue by deleting all of its tasks. All tasks created before this
# method is called are permanently deleted. Purge operations can take up to one
# minute to take effect. Tasks might be dispatched before the purge takes effect.
# A purge is irreversible.
# @param [String] name
# Required. The queue name. For example:
# `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID`
# Required. The queue name. For example: `projects/PROJECT_ID/location/
# LOCATION_ID/queues/QUEUE_ID`
# @param [Google::Apis::CloudtasksV2::PurgeQueueRequest] purge_queue_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -475,20 +440,15 @@ module Google
execute_or_queue_command(command, &block)
end
# Resume a queue.
# This method resumes a queue after it has been
# PAUSED or
# DISABLED. The state of a queue is stored
# in the queue's state; after calling this method it
# will be set to RUNNING.
# WARNING: Resuming many high-QPS queues at the same time can
# lead to target overloading. If you are resuming high-QPS
# queues, follow the 500/50/5 pattern described in
# [Managing Cloud Tasks Scaling
# Resume a queue. This method resumes a queue after it has been PAUSED or
# DISABLED. The state of a queue is stored in the queue's state; after calling
# this method it will be set to RUNNING. WARNING: Resuming many high-QPS queues
# at the same time can lead to target overloading. If you are resuming high-QPS
# queues, follow the 500/50/5 pattern described in [Managing Cloud Tasks Scaling
# Risks](https://cloud.google.com/tasks/docs/manage-cloud-task-scaling).
# @param [String] name
# Required. The queue name. For example:
# `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID`
# Required. The queue name. For example: `projects/PROJECT_ID/location/
# LOCATION_ID/queues/QUEUE_ID`
# @param [Google::Apis::CloudtasksV2::ResumeQueueRequest] resume_queue_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -519,17 +479,14 @@ module Google
execute_or_queue_command(command, &block)
end
# Sets the access control policy for a Queue. Replaces any existing
# policy.
# Note: The Cloud Console does not check queue-level IAM permissions yet.
# Project-level permissions are required to use the Cloud Console.
# Authorization requires the following
# [Google IAM](https://cloud.google.com/iam) permission on the specified
# resource parent:
# * `cloudtasks.queues.setIamPolicy`
# Sets the access control policy for a Queue. Replaces any existing policy. Note:
# The Cloud Console does not check queue-level IAM permissions yet. Project-
# level permissions are required to use the Cloud Console. Authorization
# requires the following [Google IAM](https://cloud.google.com/iam) permission
# on the specified resource parent: * `cloudtasks.queues.setIamPolicy`
# @param [String] resource
# REQUIRED: The resource for which the policy is being specified.
# See the operation documentation for the appropriate value for this field.
# REQUIRED: The resource for which the policy is being specified. See the
# operation documentation for the appropriate value for this field.
# @param [Google::Apis::CloudtasksV2::SetIamPolicyRequest] set_iam_policy_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -560,15 +517,14 @@ module Google
execute_or_queue_command(command, &block)
end
# Returns permissions that a caller has on a Queue.
# If the resource does not exist, this will return an empty set of
# permissions, not a NOT_FOUND error.
# Note: This operation is designed to be used for building permission-aware
# UIs and command-line tools, not for authorization checking. This operation
# may "fail open" without warning.
# Returns permissions that a caller has on a Queue. If the resource does not
# exist, this will return an empty set of permissions, not a NOT_FOUND error.
# Note: This operation is designed to be used for building permission-aware UIs
# and command-line tools, not for authorization checking. This operation may "
# fail open" without warning.
# @param [String] resource
# REQUIRED: The resource for which the policy detail is being requested.
# See the operation documentation for the appropriate value for this field.
# REQUIRED: The resource for which the policy detail is being requested. See the
# operation documentation for the appropriate value for this field.
# @param [Google::Apis::CloudtasksV2::TestIamPermissionsRequest] test_iam_permissions_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -599,13 +555,11 @@ module Google
execute_or_queue_command(command, &block)
end
# Creates a task and adds it to a queue.
# Tasks cannot be updated after creation; there is no UpdateTask command.
# * The maximum task size is 100KB.
# Creates a task and adds it to a queue. Tasks cannot be updated after creation;
# there is no UpdateTask command. * The maximum task size is 100KB.
# @param [String] parent
# Required. The queue name. For example:
# `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
# The queue must already exist.
# Required. The queue name. For example: `projects/PROJECT_ID/locations/
# LOCATION_ID/queues/QUEUE_ID` The queue must already exist.
# @param [Google::Apis::CloudtasksV2::CreateTaskRequest] create_task_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -636,13 +590,11 @@ module Google
execute_or_queue_command(command, &block)
end
# Deletes a task.
# A task can be deleted if it is scheduled or dispatched. A task
# cannot be deleted if it has executed successfully or permanently
# failed.
# Deletes a task. A task can be deleted if it is scheduled or dispatched. A task
# cannot be deleted if it has executed successfully or permanently failed.
# @param [String] name
# Required. The task name. For example:
# `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
# Required. The task name. For example: `projects/PROJECT_ID/locations/
# LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -672,19 +624,15 @@ module Google
# Gets a task.
# @param [String] name
# Required. The task name. For example:
# `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
# Required. The task name. For example: `projects/PROJECT_ID/locations/
# LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
# @param [String] response_view
# The response_view specifies which subset of the Task will be
# returned.
# By default response_view is BASIC; not all
# information is retrieved by default because some data, such as
# payloads, might be desirable to return only when needed because
# of its large size or because of the sensitivity of data that it
# contains.
# Authorization for FULL requires
# `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
# permission on the Task resource.
# The response_view specifies which subset of the Task will be returned. By
# default response_view is BASIC; not all information is retrieved by default
# because some data, such as payloads, might be desirable to return only when
# needed because of its large size or because of the sensitivity of data that it
# contains. Authorization for FULL requires `cloudtasks.tasks.fullView` [Google
# IAM](https://cloud.google.com/iam/) permission on the Task resource.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -713,42 +661,30 @@ module Google
execute_or_queue_command(command, &block)
end
# Lists the tasks in a queue.
# By default, only the BASIC view is retrieved
# due to performance considerations;
# response_view controls the
# subset of information which is returned.
# The tasks may be returned in any order. The ordering may change at any
# time.
# Lists the tasks in a queue. By default, only the BASIC view is retrieved due
# to performance considerations; response_view controls the subset of
# information which is returned. The tasks may be returned in any order. The
# ordering may change at any time.
# @param [String] parent
# Required. The queue name. For example:
# `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
# Required. The queue name. For example: `projects/PROJECT_ID/locations/
# LOCATION_ID/queues/QUEUE_ID`
# @param [Fixnum] page_size
# Maximum page size.
# Fewer tasks than requested might be returned, even if more tasks exist; use
# next_page_token in the response to
# determine if more tasks exist.
# The maximum page size is 1000. If unspecified, the page size will be the
# maximum.
# Maximum page size. Fewer tasks than requested might be returned, even if more
# tasks exist; use next_page_token in the response to determine if more tasks
# exist. The maximum page size is 1000. If unspecified, the page size will be
# the maximum.
# @param [String] page_token
# A token identifying the page of results to return.
# To request the first page results, page_token must be empty. To
# request the next page of results, page_token must be the value of
# next_page_token returned
# from the previous call to ListTasks
# method.
# The page token is valid for only 2 hours.
# A token identifying the page of results to return. To request the first page
# results, page_token must be empty. To request the next page of results,
# page_token must be the value of next_page_token returned from the previous
# call to ListTasks method. The page token is valid for only 2 hours.
# @param [String] response_view
# The response_view specifies which subset of the Task will be
# returned.
# By default response_view is BASIC; not all
# information is retrieved by default because some data, such as
# payloads, might be desirable to return only when needed because
# of its large size or because of the sensitivity of data that it
# contains.
# Authorization for FULL requires
# `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
# permission on the Task resource.
# The response_view specifies which subset of the Task will be returned. By
# default response_view is BASIC; not all information is retrieved by default
# because some data, such as payloads, might be desirable to return only when
# needed because of its large size or because of the sensitivity of data that it
# contains. Authorization for FULL requires `cloudtasks.tasks.fullView` [Google
# IAM](https://cloud.google.com/iam/) permission on the Task resource.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -779,28 +715,21 @@ module Google
execute_or_queue_command(command, &block)
end
# Forces a task to run now.
# When this method is called, Cloud Tasks will dispatch the task, even if
# the task is already running, the queue has reached its RateLimits or
# is PAUSED.
# This command is meant to be used for manual debugging. For
# example, RunTask can be used to retry a failed
# task after a fix has been made or to manually force a task to be
# dispatched now.
# The dispatched task is returned. That is, the task that is returned
# contains the status after the task is dispatched but
# before the task is received by its target.
# If Cloud Tasks receives a successful response from the task's
# target, then the task will be deleted; otherwise the task's
# schedule_time will be reset to the time that
# RunTask was called plus the retry delay specified
# in the queue's RetryConfig.
# RunTask returns
# NOT_FOUND when it is called on a
# task that has already succeeded or permanently failed.
# Forces a task to run now. When this method is called, Cloud Tasks will
# dispatch the task, even if the task is already running, the queue has reached
# its RateLimits or is PAUSED. This command is meant to be used for manual
# debugging. For example, RunTask can be used to retry a failed task after a fix
# has been made or to manually force a task to be dispatched now. The dispatched
# task is returned. That is, the task that is returned contains the status after
# the task is dispatched but before the task is received by its target. If Cloud
# Tasks receives a successful response from the task's target, then the task
# will be deleted; otherwise the task's schedule_time will be reset to the time
# that RunTask was called plus the retry delay specified in the queue's
# RetryConfig. RunTask returns NOT_FOUND when it is called on a task that has
# already succeeded or permanently failed.
# @param [String] name
# Required. The task name. For example:
# `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
# Required. The task name. For example: `projects/PROJECT_ID/locations/
# LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
# @param [Google::Apis::CloudtasksV2::RunTaskRequest] run_task_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/container-engine/
module ContainerV1beta1
VERSION = 'V1beta1'
REVISION = '20200724'
REVISION = '20200805'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

File diff suppressed because it is too large Load Diff

View File

@ -394,6 +394,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class NotificationConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Operation
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -424,6 +430,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class PubSub
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class RecurringTimeWindow
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -568,6 +580,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class Status
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class StatusCondition
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -604,6 +622,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class UpgradeEvent
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class UpgradeSettings
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -818,6 +842,8 @@ module Google
property :node_ipv4_cidr_size, as: 'nodeIpv4CidrSize'
collection :node_pools, as: 'nodePools', class: Google::Apis::ContainerV1beta1::NodePool, decorator: Google::Apis::ContainerV1beta1::NodePool::Representation
property :notification_config, as: 'notificationConfig', class: Google::Apis::ContainerV1beta1::NotificationConfig, decorator: Google::Apis::ContainerV1beta1::NotificationConfig::Representation
property :pod_security_policy_config, as: 'podSecurityPolicyConfig', class: Google::Apis::ContainerV1beta1::PodSecurityPolicyConfig, decorator: Google::Apis::ContainerV1beta1::PodSecurityPolicyConfig::Representation
property :private_cluster, as: 'privateCluster'
@ -879,6 +905,7 @@ module Google
property :desired_database_encryption, as: 'desiredDatabaseEncryption', class: Google::Apis::ContainerV1beta1::DatabaseEncryption, decorator: Google::Apis::ContainerV1beta1::DatabaseEncryption::Representation
property :desired_datapath_provider, as: 'desiredDatapathProvider'
property :desired_default_snat_status, as: 'desiredDefaultSnatStatus', class: Google::Apis::ContainerV1beta1::DefaultSnatStatus, decorator: Google::Apis::ContainerV1beta1::DefaultSnatStatus::Representation
property :desired_image_type, as: 'desiredImageType'
@ -896,6 +923,8 @@ module Google
property :desired_node_pool_id, as: 'desiredNodePoolId'
property :desired_node_version, as: 'desiredNodeVersion'
property :desired_notification_config, as: 'desiredNotificationConfig', class: Google::Apis::ContainerV1beta1::NotificationConfig, decorator: Google::Apis::ContainerV1beta1::NotificationConfig::Representation
property :desired_pod_security_policy_config, as: 'desiredPodSecurityPolicyConfig', class: Google::Apis::ContainerV1beta1::PodSecurityPolicyConfig, decorator: Google::Apis::ContainerV1beta1::PodSecurityPolicyConfig::Representation
property :desired_private_cluster_config, as: 'desiredPrivateClusterConfig', class: Google::Apis::ContainerV1beta1::PrivateClusterConfig, decorator: Google::Apis::ContainerV1beta1::PrivateClusterConfig::Representation
@ -1253,6 +1282,7 @@ module Google
class NetworkConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :datapath_provider, as: 'datapathProvider'
property :default_snat_status, as: 'defaultSnatStatus', class: Google::Apis::ContainerV1beta1::DefaultSnatStatus, decorator: Google::Apis::ContainerV1beta1::DefaultSnatStatus::Representation
property :enable_intra_node_visibility, as: 'enableIntraNodeVisibility'
@ -1377,6 +1407,14 @@ module Google
end
end
class NotificationConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :pubsub, as: 'pubsub', class: Google::Apis::ContainerV1beta1::PubSub, decorator: Google::Apis::ContainerV1beta1::PubSub::Representation
end
end
class Operation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -1384,6 +1422,8 @@ module Google
property :detail, as: 'detail'
property :end_time, as: 'endTime'
property :error, as: 'error', class: Google::Apis::ContainerV1beta1::Status, decorator: Google::Apis::ContainerV1beta1::Status::Representation
property :location, as: 'location'
property :name, as: 'name'
collection :nodepool_conditions, as: 'nodepoolConditions', class: Google::Apis::ContainerV1beta1::StatusCondition, decorator: Google::Apis::ContainerV1beta1::StatusCondition::Representation
@ -1440,6 +1480,14 @@ module Google
end
end
class PubSub
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :enabled, as: 'enabled'
property :topic, as: 'topic'
end
end
class RecurringTimeWindow
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -1697,9 +1745,19 @@ module Google
end
end
class Status
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :code, as: 'code'
collection :details, as: 'details'
property :message, as: 'message'
end
end
class StatusCondition
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :canonical_code, as: 'canonicalCode'
property :code, as: 'code'
property :message, as: 'message'
end
@ -1767,6 +1825,18 @@ module Google
end
end
class UpgradeEvent
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :current_version, as: 'currentVersion'
property :operation, as: 'operation'
property :operation_start_time, as: 'operationStartTime'
property :resource, as: 'resource'
property :resource_type, as: 'resourceType'
property :target_version, as: 'targetVersion'
end
end
class UpgradeSettings
# @private
class Representation < Google::Apis::Core::JsonRepresentation

File diff suppressed because it is too large Load Diff

View File

@ -1,43 +0,0 @@
# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'google/apis/dns_v2beta1/service.rb'
require 'google/apis/dns_v2beta1/classes.rb'
require 'google/apis/dns_v2beta1/representations.rb'
module Google
module Apis
# Cloud DNS API
#
#
#
# @see http://developers.google.com/cloud-dns
module DnsV2beta1
VERSION = 'V2beta1'
REVISION = '20200806'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
# View your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM_READ_ONLY = 'https://www.googleapis.com/auth/cloud-platform.read-only'
# View your DNS records hosted by Google Cloud DNS
AUTH_NDEV_CLOUDDNS_READONLY = 'https://www.googleapis.com/auth/ndev.clouddns.readonly'
# View and manage your DNS records hosted by Google Cloud DNS
AUTH_NDEV_CLOUDDNS_READWRITE = 'https://www.googleapis.com/auth/ndev.clouddns.readwrite'
end
end
end

File diff suppressed because it is too large Load Diff

View File

@ -1,588 +0,0 @@
# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'date'
require 'google/apis/core/base_service'
require 'google/apis/core/json_representation'
require 'google/apis/core/hashable'
require 'google/apis/errors'
module Google
module Apis
module DnsV2beta1
class Change
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ChangesListResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class DnsKey
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class DnsKeyDigest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class DnsKeySpec
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class DnsKeysListResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ManagedZone
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ManagedZoneDnsSecConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ManagedZoneForwardingConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ManagedZoneForwardingConfigNameServerTarget
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ManagedZoneOperationsListResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ManagedZonePeeringConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ManagedZonePeeringConfigTargetNetwork
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ManagedZonePrivateVisibilityConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ManagedZonePrivateVisibilityConfigNetwork
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ManagedZoneReverseLookupConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ManagedZonesListResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Operation
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class OperationDnsKeyContext
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class OperationManagedZoneContext
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class PoliciesListResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class PoliciesPatchResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class PoliciesUpdateResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Policy
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class PolicyAlternativeNameServerConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class PolicyAlternativeNameServerConfigTargetNameServer
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class PolicyNetwork
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Project
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Quota
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ResourceRecordSet
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ResourceRecordSetsListResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ResponseHeader
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Change
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :additions, as: 'additions', class: Google::Apis::DnsV2beta1::ResourceRecordSet, decorator: Google::Apis::DnsV2beta1::ResourceRecordSet::Representation
collection :deletions, as: 'deletions', class: Google::Apis::DnsV2beta1::ResourceRecordSet, decorator: Google::Apis::DnsV2beta1::ResourceRecordSet::Representation
property :id, as: 'id'
property :is_serving, as: 'isServing'
property :kind, as: 'kind'
property :start_time, as: 'startTime'
property :status, as: 'status'
end
end
class ChangesListResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :changes, as: 'changes', class: Google::Apis::DnsV2beta1::Change, decorator: Google::Apis::DnsV2beta1::Change::Representation
property :header, as: 'header', class: Google::Apis::DnsV2beta1::ResponseHeader, decorator: Google::Apis::DnsV2beta1::ResponseHeader::Representation
property :kind, as: 'kind'
property :next_page_token, as: 'nextPageToken'
end
end
class DnsKey
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :algorithm, as: 'algorithm'
property :creation_time, as: 'creationTime'
property :description, as: 'description'
collection :digests, as: 'digests', class: Google::Apis::DnsV2beta1::DnsKeyDigest, decorator: Google::Apis::DnsV2beta1::DnsKeyDigest::Representation
property :id, as: 'id'
property :is_active, as: 'isActive'
property :key_length, as: 'keyLength'
property :key_tag, as: 'keyTag'
property :kind, as: 'kind'
property :public_key, as: 'publicKey'
property :type, as: 'type'
end
end
class DnsKeyDigest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :digest, as: 'digest'
property :type, as: 'type'
end
end
class DnsKeySpec
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :algorithm, as: 'algorithm'
property :key_length, as: 'keyLength'
property :key_type, as: 'keyType'
property :kind, as: 'kind'
end
end
class DnsKeysListResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :dns_keys, as: 'dnsKeys', class: Google::Apis::DnsV2beta1::DnsKey, decorator: Google::Apis::DnsV2beta1::DnsKey::Representation
property :header, as: 'header', class: Google::Apis::DnsV2beta1::ResponseHeader, decorator: Google::Apis::DnsV2beta1::ResponseHeader::Representation
property :kind, as: 'kind'
property :next_page_token, as: 'nextPageToken'
end
end
class ManagedZone
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :creation_time, as: 'creationTime'
property :description, as: 'description'
property :dns_name, as: 'dnsName'
property :dnssec_config, as: 'dnssecConfig', class: Google::Apis::DnsV2beta1::ManagedZoneDnsSecConfig, decorator: Google::Apis::DnsV2beta1::ManagedZoneDnsSecConfig::Representation
property :forwarding_config, as: 'forwardingConfig', class: Google::Apis::DnsV2beta1::ManagedZoneForwardingConfig, decorator: Google::Apis::DnsV2beta1::ManagedZoneForwardingConfig::Representation
property :id, :numeric_string => true, as: 'id'
property :kind, as: 'kind'
hash :labels, as: 'labels'
property :name, as: 'name'
property :name_server_set, as: 'nameServerSet'
collection :name_servers, as: 'nameServers'
property :peering_config, as: 'peeringConfig', class: Google::Apis::DnsV2beta1::ManagedZonePeeringConfig, decorator: Google::Apis::DnsV2beta1::ManagedZonePeeringConfig::Representation
property :private_visibility_config, as: 'privateVisibilityConfig', class: Google::Apis::DnsV2beta1::ManagedZonePrivateVisibilityConfig, decorator: Google::Apis::DnsV2beta1::ManagedZonePrivateVisibilityConfig::Representation
property :reverse_lookup_config, as: 'reverseLookupConfig', class: Google::Apis::DnsV2beta1::ManagedZoneReverseLookupConfig, decorator: Google::Apis::DnsV2beta1::ManagedZoneReverseLookupConfig::Representation
property :visibility, as: 'visibility'
end
end
class ManagedZoneDnsSecConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :default_key_specs, as: 'defaultKeySpecs', class: Google::Apis::DnsV2beta1::DnsKeySpec, decorator: Google::Apis::DnsV2beta1::DnsKeySpec::Representation
property :kind, as: 'kind'
property :non_existence, as: 'nonExistence'
property :state, as: 'state'
end
end
class ManagedZoneForwardingConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :kind, as: 'kind'
collection :target_name_servers, as: 'targetNameServers', class: Google::Apis::DnsV2beta1::ManagedZoneForwardingConfigNameServerTarget, decorator: Google::Apis::DnsV2beta1::ManagedZoneForwardingConfigNameServerTarget::Representation
end
end
class ManagedZoneForwardingConfigNameServerTarget
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :forwarding_path, as: 'forwardingPath'
property :ipv4_address, as: 'ipv4Address'
property :kind, as: 'kind'
end
end
class ManagedZoneOperationsListResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :header, as: 'header', class: Google::Apis::DnsV2beta1::ResponseHeader, decorator: Google::Apis::DnsV2beta1::ResponseHeader::Representation
property :kind, as: 'kind'
property :next_page_token, as: 'nextPageToken'
collection :operations, as: 'operations', class: Google::Apis::DnsV2beta1::Operation, decorator: Google::Apis::DnsV2beta1::Operation::Representation
end
end
class ManagedZonePeeringConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :kind, as: 'kind'
property :target_network, as: 'targetNetwork', class: Google::Apis::DnsV2beta1::ManagedZonePeeringConfigTargetNetwork, decorator: Google::Apis::DnsV2beta1::ManagedZonePeeringConfigTargetNetwork::Representation
end
end
class ManagedZonePeeringConfigTargetNetwork
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :deactivate_time, as: 'deactivateTime'
property :kind, as: 'kind'
property :network_url, as: 'networkUrl'
end
end
class ManagedZonePrivateVisibilityConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :kind, as: 'kind'
collection :networks, as: 'networks', class: Google::Apis::DnsV2beta1::ManagedZonePrivateVisibilityConfigNetwork, decorator: Google::Apis::DnsV2beta1::ManagedZonePrivateVisibilityConfigNetwork::Representation
end
end
class ManagedZonePrivateVisibilityConfigNetwork
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :kind, as: 'kind'
property :network_url, as: 'networkUrl'
end
end
class ManagedZoneReverseLookupConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :kind, as: 'kind'
end
end
class ManagedZonesListResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :header, as: 'header', class: Google::Apis::DnsV2beta1::ResponseHeader, decorator: Google::Apis::DnsV2beta1::ResponseHeader::Representation
property :kind, as: 'kind'
collection :managed_zones, as: 'managedZones', class: Google::Apis::DnsV2beta1::ManagedZone, decorator: Google::Apis::DnsV2beta1::ManagedZone::Representation
property :next_page_token, as: 'nextPageToken'
end
end
class Operation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :dns_key_context, as: 'dnsKeyContext', class: Google::Apis::DnsV2beta1::OperationDnsKeyContext, decorator: Google::Apis::DnsV2beta1::OperationDnsKeyContext::Representation
property :id, as: 'id'
property :kind, as: 'kind'
property :start_time, as: 'startTime'
property :status, as: 'status'
property :type, as: 'type'
property :user, as: 'user'
property :zone_context, as: 'zoneContext', class: Google::Apis::DnsV2beta1::OperationManagedZoneContext, decorator: Google::Apis::DnsV2beta1::OperationManagedZoneContext::Representation
end
end
class OperationDnsKeyContext
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :new_value, as: 'newValue', class: Google::Apis::DnsV2beta1::DnsKey, decorator: Google::Apis::DnsV2beta1::DnsKey::Representation
property :old_value, as: 'oldValue', class: Google::Apis::DnsV2beta1::DnsKey, decorator: Google::Apis::DnsV2beta1::DnsKey::Representation
end
end
class OperationManagedZoneContext
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :new_value, as: 'newValue', class: Google::Apis::DnsV2beta1::ManagedZone, decorator: Google::Apis::DnsV2beta1::ManagedZone::Representation
property :old_value, as: 'oldValue', class: Google::Apis::DnsV2beta1::ManagedZone, decorator: Google::Apis::DnsV2beta1::ManagedZone::Representation
end
end
class PoliciesListResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :header, as: 'header', class: Google::Apis::DnsV2beta1::ResponseHeader, decorator: Google::Apis::DnsV2beta1::ResponseHeader::Representation
property :kind, as: 'kind'
property :next_page_token, as: 'nextPageToken'
collection :policies, as: 'policies', class: Google::Apis::DnsV2beta1::Policy, decorator: Google::Apis::DnsV2beta1::Policy::Representation
end
end
class PoliciesPatchResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :header, as: 'header', class: Google::Apis::DnsV2beta1::ResponseHeader, decorator: Google::Apis::DnsV2beta1::ResponseHeader::Representation
property :policy, as: 'policy', class: Google::Apis::DnsV2beta1::Policy, decorator: Google::Apis::DnsV2beta1::Policy::Representation
end
end
class PoliciesUpdateResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :header, as: 'header', class: Google::Apis::DnsV2beta1::ResponseHeader, decorator: Google::Apis::DnsV2beta1::ResponseHeader::Representation
property :policy, as: 'policy', class: Google::Apis::DnsV2beta1::Policy, decorator: Google::Apis::DnsV2beta1::Policy::Representation
end
end
class Policy
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :alternative_name_server_config, as: 'alternativeNameServerConfig', class: Google::Apis::DnsV2beta1::PolicyAlternativeNameServerConfig, decorator: Google::Apis::DnsV2beta1::PolicyAlternativeNameServerConfig::Representation
property :description, as: 'description'
property :enable_inbound_forwarding, as: 'enableInboundForwarding'
property :enable_logging, as: 'enableLogging'
property :id, :numeric_string => true, as: 'id'
property :kind, as: 'kind'
property :name, as: 'name'
collection :networks, as: 'networks', class: Google::Apis::DnsV2beta1::PolicyNetwork, decorator: Google::Apis::DnsV2beta1::PolicyNetwork::Representation
end
end
class PolicyAlternativeNameServerConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :kind, as: 'kind'
collection :target_name_servers, as: 'targetNameServers', class: Google::Apis::DnsV2beta1::PolicyAlternativeNameServerConfigTargetNameServer, decorator: Google::Apis::DnsV2beta1::PolicyAlternativeNameServerConfigTargetNameServer::Representation
end
end
class PolicyAlternativeNameServerConfigTargetNameServer
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :forwarding_path, as: 'forwardingPath'
property :ipv4_address, as: 'ipv4Address'
property :kind, as: 'kind'
end
end
class PolicyNetwork
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :kind, as: 'kind'
property :network_url, as: 'networkUrl'
end
end
class Project
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :id, as: 'id'
property :kind, as: 'kind'
property :number, :numeric_string => true, as: 'number'
property :quota, as: 'quota', class: Google::Apis::DnsV2beta1::Quota, decorator: Google::Apis::DnsV2beta1::Quota::Representation
end
end
class Quota
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :dns_keys_per_managed_zone, as: 'dnsKeysPerManagedZone'
property :kind, as: 'kind'
property :managed_zones, as: 'managedZones'
property :managed_zones_per_network, as: 'managedZonesPerNetwork'
property :networks_per_managed_zone, as: 'networksPerManagedZone'
property :networks_per_policy, as: 'networksPerPolicy'
property :policies, as: 'policies'
property :resource_records_per_rrset, as: 'resourceRecordsPerRrset'
property :rrset_additions_per_change, as: 'rrsetAdditionsPerChange'
property :rrset_deletions_per_change, as: 'rrsetDeletionsPerChange'
property :rrsets_per_managed_zone, as: 'rrsetsPerManagedZone'
property :target_name_servers_per_managed_zone, as: 'targetNameServersPerManagedZone'
property :target_name_servers_per_policy, as: 'targetNameServersPerPolicy'
property :total_rrdata_size_per_change, as: 'totalRrdataSizePerChange'
collection :whitelisted_key_specs, as: 'whitelistedKeySpecs', class: Google::Apis::DnsV2beta1::DnsKeySpec, decorator: Google::Apis::DnsV2beta1::DnsKeySpec::Representation
end
end
class ResourceRecordSet
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :kind, as: 'kind'
property :name, as: 'name'
collection :rrdatas, as: 'rrdatas'
collection :signature_rrdatas, as: 'signatureRrdatas'
property :ttl, as: 'ttl'
property :type, as: 'type'
end
end
class ResourceRecordSetsListResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :header, as: 'header', class: Google::Apis::DnsV2beta1::ResponseHeader, decorator: Google::Apis::DnsV2beta1::ResponseHeader::Representation
property :kind, as: 'kind'
property :next_page_token, as: 'nextPageToken'
collection :rrsets, as: 'rrsets', class: Google::Apis::DnsV2beta1::ResourceRecordSet, decorator: Google::Apis::DnsV2beta1::ResourceRecordSet::Representation
end
end
class ResponseHeader
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :operation_id, as: 'operationId'
end
end
end
end
end

View File

@ -1,913 +0,0 @@
# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'google/apis/core/base_service'
require 'google/apis/core/json_representation'
require 'google/apis/core/hashable'
require 'google/apis/errors'
module Google
module Apis
module DnsV2beta1
# Cloud DNS API
#
#
#
# @example
# require 'google/apis/dns_v2beta1'
#
# Dns = Google::Apis::DnsV2beta1 # Alias the module
# service = Dns::DnsService.new
#
# @see http://developers.google.com/cloud-dns
class DnsService < Google::Apis::Core::BaseService
# @return [String]
# API key. Your API key identifies your project and provides you with API access,
# quota, and reports. Required unless you provide an OAuth 2.0 token.
attr_accessor :key
# @return [String]
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
attr_accessor :quota_user
def initialize
super('https://dns.googleapis.com/', '')
@batch_path = 'batch'
end
# Atomically update the ResourceRecordSet collection.
# @param [String] project
# Identifies the project addressed by this request.
# @param [String] managed_zone
# Identifies the managed zone addressed by this request. Can be the managed zone
# name or id.
# @param [Google::Apis::DnsV2beta1::Change] change_object
# @param [String] client_operation_id
# For mutating operation requests only. An optional identifier specified by the
# client. Must be unique for operation resources in the Operations collection.
# @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::DnsV2beta1::Change] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DnsV2beta1::Change]
#
# @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_change(project, managed_zone, change_object = nil, client_operation_id: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'dns/v2beta1/projects/{project}/managedZones/{managedZone}/changes', options)
command.request_representation = Google::Apis::DnsV2beta1::Change::Representation
command.request_object = change_object
command.response_representation = Google::Apis::DnsV2beta1::Change::Representation
command.response_class = Google::Apis::DnsV2beta1::Change
command.params['project'] = project unless project.nil?
command.params['managedZone'] = managed_zone unless managed_zone.nil?
command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Fetch the representation of an existing Change.
# @param [String] project
# Identifies the project addressed by this request.
# @param [String] managed_zone
# Identifies the managed zone addressed by this request. Can be the managed zone
# name or id.
# @param [String] change_id
# The identifier of the requested change, from a previous
# ResourceRecordSetsChangeResponse.
# @param [String] client_operation_id
# For mutating operation requests only. An optional identifier specified by the
# client. Must be unique for operation resources in the Operations collection.
# @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::DnsV2beta1::Change] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DnsV2beta1::Change]
#
# @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_change(project, managed_zone, change_id, client_operation_id: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'dns/v2beta1/projects/{project}/managedZones/{managedZone}/changes/{changeId}', options)
command.response_representation = Google::Apis::DnsV2beta1::Change::Representation
command.response_class = Google::Apis::DnsV2beta1::Change
command.params['project'] = project unless project.nil?
command.params['managedZone'] = managed_zone unless managed_zone.nil?
command.params['changeId'] = change_id unless change_id.nil?
command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Enumerate Changes to a ResourceRecordSet collection.
# @param [String] project
# Identifies the project addressed by this request.
# @param [String] managed_zone
# Identifies the managed zone addressed by this request. Can be the managed zone
# name or id.
# @param [Fixnum] max_results
# Optional. Maximum number of results to be returned. If unspecified, the server
# will decide how many results to return.
# @param [String] page_token
# Optional. A tag returned by a previous list request that was truncated. Use
# this parameter to continue a previous list request.
# @param [String] sort_by
# Sorting criterion. The only supported value is change sequence.
# @param [String] sort_order
# Sorting order direction: 'ascending' or 'descending'.
# @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::DnsV2beta1::ChangesListResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DnsV2beta1::ChangesListResponse]
#
# @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_changes(project, managed_zone, max_results: nil, page_token: nil, sort_by: nil, sort_order: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'dns/v2beta1/projects/{project}/managedZones/{managedZone}/changes', options)
command.response_representation = Google::Apis::DnsV2beta1::ChangesListResponse::Representation
command.response_class = Google::Apis::DnsV2beta1::ChangesListResponse
command.params['project'] = project unless project.nil?
command.params['managedZone'] = managed_zone unless managed_zone.nil?
command.query['maxResults'] = max_results unless max_results.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['sortBy'] = sort_by unless sort_by.nil?
command.query['sortOrder'] = sort_order unless sort_order.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Fetch the representation of an existing DnsKey.
# @param [String] project
# Identifies the project addressed by this request.
# @param [String] managed_zone
# Identifies the managed zone addressed by this request. Can be the managed zone
# name or id.
# @param [String] dns_key_id
# The identifier of the requested DnsKey.
# @param [String] client_operation_id
# For mutating operation requests only. An optional identifier specified by the
# client. Must be unique for operation resources in the Operations collection.
# @param [String] digest_type
# An optional comma-separated list of digest types to compute and display for
# key signing keys. If omitted, the recommended digest type will be computed and
# displayed.
# @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::DnsV2beta1::DnsKey] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DnsV2beta1::DnsKey]
#
# @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_dns_key(project, managed_zone, dns_key_id, client_operation_id: nil, digest_type: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'dns/v2beta1/projects/{project}/managedZones/{managedZone}/dnsKeys/{dnsKeyId}', options)
command.response_representation = Google::Apis::DnsV2beta1::DnsKey::Representation
command.response_class = Google::Apis::DnsV2beta1::DnsKey
command.params['project'] = project unless project.nil?
command.params['managedZone'] = managed_zone unless managed_zone.nil?
command.params['dnsKeyId'] = dns_key_id unless dns_key_id.nil?
command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil?
command.query['digestType'] = digest_type unless digest_type.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Enumerate DnsKeys to a ResourceRecordSet collection.
# @param [String] project
# Identifies the project addressed by this request.
# @param [String] managed_zone
# Identifies the managed zone addressed by this request. Can be the managed zone
# name or id.
# @param [String] digest_type
# An optional comma-separated list of digest types to compute and display for
# key signing keys. If omitted, the recommended digest type will be computed and
# displayed.
# @param [Fixnum] max_results
# Optional. Maximum number of results to be returned. If unspecified, the server
# will decide how many results to return.
# @param [String] page_token
# Optional. A tag returned by a previous list request that was truncated. Use
# this parameter to continue a previous list request.
# @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::DnsV2beta1::DnsKeysListResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DnsV2beta1::DnsKeysListResponse]
#
# @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_dns_keys(project, managed_zone, digest_type: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'dns/v2beta1/projects/{project}/managedZones/{managedZone}/dnsKeys', options)
command.response_representation = Google::Apis::DnsV2beta1::DnsKeysListResponse::Representation
command.response_class = Google::Apis::DnsV2beta1::DnsKeysListResponse
command.params['project'] = project unless project.nil?
command.params['managedZone'] = managed_zone unless managed_zone.nil?
command.query['digestType'] = digest_type unless digest_type.nil?
command.query['maxResults'] = max_results unless max_results.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Fetch the representation of an existing Operation.
# @param [String] project
# Identifies the project addressed by this request.
# @param [String] managed_zone
# Identifies the managed zone addressed by this request.
# @param [String] operation
# Identifies the operation addressed by this request.
# @param [String] client_operation_id
# For mutating operation requests only. An optional identifier specified by the
# client. Must be unique for operation resources in the Operations collection.
# @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::DnsV2beta1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DnsV2beta1::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_managed_zone_operation(project, managed_zone, operation, client_operation_id: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'dns/v2beta1/projects/{project}/managedZones/{managedZone}/operations/{operation}', options)
command.response_representation = Google::Apis::DnsV2beta1::Operation::Representation
command.response_class = Google::Apis::DnsV2beta1::Operation
command.params['project'] = project unless project.nil?
command.params['managedZone'] = managed_zone unless managed_zone.nil?
command.params['operation'] = operation unless operation.nil?
command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Enumerate Operations for the given ManagedZone.
# @param [String] project
# Identifies the project addressed by this request.
# @param [String] managed_zone
# Identifies the managed zone addressed by this request.
# @param [Fixnum] max_results
# Optional. Maximum number of results to be returned. If unspecified, the server
# will decide how many results to return.
# @param [String] page_token
# Optional. A tag returned by a previous list request that was truncated. Use
# this parameter to continue a previous list request.
# @param [String] sort_by
# Sorting criterion. The only supported values are START_TIME and ID.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::DnsV2beta1::ManagedZoneOperationsListResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DnsV2beta1::ManagedZoneOperationsListResponse]
#
# @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_managed_zone_operations(project, managed_zone, max_results: nil, page_token: nil, sort_by: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'dns/v2beta1/projects/{project}/managedZones/{managedZone}/operations', options)
command.response_representation = Google::Apis::DnsV2beta1::ManagedZoneOperationsListResponse::Representation
command.response_class = Google::Apis::DnsV2beta1::ManagedZoneOperationsListResponse
command.params['project'] = project unless project.nil?
command.params['managedZone'] = managed_zone unless managed_zone.nil?
command.query['maxResults'] = max_results unless max_results.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['sortBy'] = sort_by unless sort_by.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 ManagedZone.
# @param [String] project
# Identifies the project addressed by this request.
# @param [Google::Apis::DnsV2beta1::ManagedZone] managed_zone_object
# @param [String] client_operation_id
# For mutating operation requests only. An optional identifier specified by the
# client. Must be unique for operation resources in the Operations collection.
# @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::DnsV2beta1::ManagedZone] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DnsV2beta1::ManagedZone]
#
# @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_managed_zone(project, managed_zone_object = nil, client_operation_id: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'dns/v2beta1/projects/{project}/managedZones', options)
command.request_representation = Google::Apis::DnsV2beta1::ManagedZone::Representation
command.request_object = managed_zone_object
command.response_representation = Google::Apis::DnsV2beta1::ManagedZone::Representation
command.response_class = Google::Apis::DnsV2beta1::ManagedZone
command.params['project'] = project unless project.nil?
command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Delete a previously created ManagedZone.
# @param [String] project
# Identifies the project addressed by this request.
# @param [String] managed_zone
# Identifies the managed zone addressed by this request. Can be the managed zone
# name or id.
# @param [String] client_operation_id
# For mutating operation requests only. An optional identifier specified by the
# client. Must be unique for operation resources in the Operations collection.
# @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 [NilClass] No result returned for this method
# @yieldparam err [StandardError] error object if request failed
#
# @return [void]
#
# @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_managed_zone(project, managed_zone, client_operation_id: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:delete, 'dns/v2beta1/projects/{project}/managedZones/{managedZone}', options)
command.params['project'] = project unless project.nil?
command.params['managedZone'] = managed_zone unless managed_zone.nil?
command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Fetch the representation of an existing ManagedZone.
# @param [String] project
# Identifies the project addressed by this request.
# @param [String] managed_zone
# Identifies the managed zone addressed by this request. Can be the managed zone
# name or id.
# @param [String] client_operation_id
# For mutating operation requests only. An optional identifier specified by the
# client. Must be unique for operation resources in the Operations collection.
# @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::DnsV2beta1::ManagedZone] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DnsV2beta1::ManagedZone]
#
# @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_managed_zone(project, managed_zone, client_operation_id: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'dns/v2beta1/projects/{project}/managedZones/{managedZone}', options)
command.response_representation = Google::Apis::DnsV2beta1::ManagedZone::Representation
command.response_class = Google::Apis::DnsV2beta1::ManagedZone
command.params['project'] = project unless project.nil?
command.params['managedZone'] = managed_zone unless managed_zone.nil?
command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Enumerate ManagedZones that have been created but not yet deleted.
# @param [String] project
# Identifies the project addressed by this request.
# @param [String] dns_name
# Restricts the list to return only zones with this domain name.
# @param [Fixnum] max_results
# Optional. Maximum number of results to be returned. If unspecified, the server
# will decide how many results to return.
# @param [String] page_token
# Optional. A tag returned by a previous list request that was truncated. Use
# this parameter to continue a previous list request.
# @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::DnsV2beta1::ManagedZonesListResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DnsV2beta1::ManagedZonesListResponse]
#
# @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_managed_zones(project, dns_name: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'dns/v2beta1/projects/{project}/managedZones', options)
command.response_representation = Google::Apis::DnsV2beta1::ManagedZonesListResponse::Representation
command.response_class = Google::Apis::DnsV2beta1::ManagedZonesListResponse
command.params['project'] = project unless project.nil?
command.query['dnsName'] = dns_name unless dns_name.nil?
command.query['maxResults'] = max_results unless max_results.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Apply a partial update to an existing ManagedZone.
# @param [String] project
# Identifies the project addressed by this request.
# @param [String] managed_zone
# Identifies the managed zone addressed by this request. Can be the managed zone
# name or id.
# @param [Google::Apis::DnsV2beta1::ManagedZone] managed_zone_object
# @param [String] client_operation_id
# For mutating operation requests only. An optional identifier specified by the
# client. Must be unique for operation resources in the Operations collection.
# @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::DnsV2beta1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DnsV2beta1::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def patch_managed_zone(project, managed_zone, managed_zone_object = nil, client_operation_id: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:patch, 'dns/v2beta1/projects/{project}/managedZones/{managedZone}', options)
command.request_representation = Google::Apis::DnsV2beta1::ManagedZone::Representation
command.request_object = managed_zone_object
command.response_representation = Google::Apis::DnsV2beta1::Operation::Representation
command.response_class = Google::Apis::DnsV2beta1::Operation
command.params['project'] = project unless project.nil?
command.params['managedZone'] = managed_zone unless managed_zone.nil?
command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Update an existing ManagedZone.
# @param [String] project
# Identifies the project addressed by this request.
# @param [String] managed_zone
# Identifies the managed zone addressed by this request. Can be the managed zone
# name or id.
# @param [Google::Apis::DnsV2beta1::ManagedZone] managed_zone_object
# @param [String] client_operation_id
# For mutating operation requests only. An optional identifier specified by the
# client. Must be unique for operation resources in the Operations collection.
# @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::DnsV2beta1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DnsV2beta1::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def update_managed_zone(project, managed_zone, managed_zone_object = nil, client_operation_id: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:put, 'dns/v2beta1/projects/{project}/managedZones/{managedZone}', options)
command.request_representation = Google::Apis::DnsV2beta1::ManagedZone::Representation
command.request_object = managed_zone_object
command.response_representation = Google::Apis::DnsV2beta1::Operation::Representation
command.response_class = Google::Apis::DnsV2beta1::Operation
command.params['project'] = project unless project.nil?
command.params['managedZone'] = managed_zone unless managed_zone.nil?
command.query['clientOperationId'] = client_operation_id unless client_operation_id.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 Policy
# @param [String] project
# Identifies the project addressed by this request.
# @param [Google::Apis::DnsV2beta1::Policy] policy_object
# @param [String] client_operation_id
# For mutating operation requests only. An optional identifier specified by the
# client. Must be unique for operation resources in the Operations collection.
# @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::DnsV2beta1::Policy] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DnsV2beta1::Policy]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def create_policy(project, policy_object = nil, client_operation_id: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'dns/v2beta1/projects/{project}/policies', options)
command.request_representation = Google::Apis::DnsV2beta1::Policy::Representation
command.request_object = policy_object
command.response_representation = Google::Apis::DnsV2beta1::Policy::Representation
command.response_class = Google::Apis::DnsV2beta1::Policy
command.params['project'] = project unless project.nil?
command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Delete a previously created Policy. Will fail if the policy is still being
# referenced by a network.
# @param [String] project
# Identifies the project addressed by this request.
# @param [String] policy
# User given friendly name of the policy addressed by this request.
# @param [String] client_operation_id
# For mutating operation requests only. An optional identifier specified by the
# client. Must be unique for operation resources in the Operations collection.
# @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 [NilClass] No result returned for this method
# @yieldparam err [StandardError] error object if request failed
#
# @return [void]
#
# @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_policy(project, policy, client_operation_id: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:delete, 'dns/v2beta1/projects/{project}/policies/{policy}', options)
command.params['project'] = project unless project.nil?
command.params['policy'] = policy unless policy.nil?
command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Fetch the representation of an existing Policy.
# @param [String] project
# Identifies the project addressed by this request.
# @param [String] policy
# User given friendly name of the policy addressed by this request.
# @param [String] client_operation_id
# For mutating operation requests only. An optional identifier specified by the
# client. Must be unique for operation resources in the Operations collection.
# @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::DnsV2beta1::Policy] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DnsV2beta1::Policy]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_policy(project, policy, client_operation_id: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'dns/v2beta1/projects/{project}/policies/{policy}', options)
command.response_representation = Google::Apis::DnsV2beta1::Policy::Representation
command.response_class = Google::Apis::DnsV2beta1::Policy
command.params['project'] = project unless project.nil?
command.params['policy'] = policy unless policy.nil?
command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Enumerate all Policies associated with a project.
# @param [String] project
# Identifies the project addressed by this request.
# @param [Fixnum] max_results
# Optional. Maximum number of results to be returned. If unspecified, the server
# will decide how many results to return.
# @param [String] page_token
# Optional. A tag returned by a previous list request that was truncated. Use
# this parameter to continue a previous list request.
# @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::DnsV2beta1::PoliciesListResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DnsV2beta1::PoliciesListResponse]
#
# @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_policies(project, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'dns/v2beta1/projects/{project}/policies', options)
command.response_representation = Google::Apis::DnsV2beta1::PoliciesListResponse::Representation
command.response_class = Google::Apis::DnsV2beta1::PoliciesListResponse
command.params['project'] = project unless project.nil?
command.query['maxResults'] = max_results unless max_results.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Apply a partial update to an existing Policy.
# @param [String] project
# Identifies the project addressed by this request.
# @param [String] policy
# User given friendly name of the policy addressed by this request.
# @param [Google::Apis::DnsV2beta1::Policy] policy_object
# @param [String] client_operation_id
# For mutating operation requests only. An optional identifier specified by the
# client. Must be unique for operation resources in the Operations collection.
# @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::DnsV2beta1::PoliciesPatchResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DnsV2beta1::PoliciesPatchResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def patch_policy(project, policy, policy_object = nil, client_operation_id: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:patch, 'dns/v2beta1/projects/{project}/policies/{policy}', options)
command.request_representation = Google::Apis::DnsV2beta1::Policy::Representation
command.request_object = policy_object
command.response_representation = Google::Apis::DnsV2beta1::PoliciesPatchResponse::Representation
command.response_class = Google::Apis::DnsV2beta1::PoliciesPatchResponse
command.params['project'] = project unless project.nil?
command.params['policy'] = policy unless policy.nil?
command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Update an existing Policy.
# @param [String] project
# Identifies the project addressed by this request.
# @param [String] policy
# User given friendly name of the policy addressed by this request.
# @param [Google::Apis::DnsV2beta1::Policy] policy_object
# @param [String] client_operation_id
# For mutating operation requests only. An optional identifier specified by the
# client. Must be unique for operation resources in the Operations collection.
# @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::DnsV2beta1::PoliciesUpdateResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DnsV2beta1::PoliciesUpdateResponse]
#
# @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_policy(project, policy, policy_object = nil, client_operation_id: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:put, 'dns/v2beta1/projects/{project}/policies/{policy}', options)
command.request_representation = Google::Apis::DnsV2beta1::Policy::Representation
command.request_object = policy_object
command.response_representation = Google::Apis::DnsV2beta1::PoliciesUpdateResponse::Representation
command.response_class = Google::Apis::DnsV2beta1::PoliciesUpdateResponse
command.params['project'] = project unless project.nil?
command.params['policy'] = policy unless policy.nil?
command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Fetch the representation of an existing Project.
# @param [String] project
# Identifies the project addressed by this request.
# @param [String] client_operation_id
# For mutating operation requests only. An optional identifier specified by the
# client. Must be unique for operation resources in the Operations collection.
# @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::DnsV2beta1::Project] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DnsV2beta1::Project]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_project(project, client_operation_id: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'dns/v2beta1/projects/{project}', options)
command.response_representation = Google::Apis::DnsV2beta1::Project::Representation
command.response_class = Google::Apis::DnsV2beta1::Project
command.params['project'] = project unless project.nil?
command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Enumerate ResourceRecordSets that have been created but not yet deleted.
# @param [String] project
# Identifies the project addressed by this request.
# @param [String] managed_zone
# Identifies the managed zone addressed by this request. Can be the managed zone
# name or id.
# @param [Fixnum] max_results
# Optional. Maximum number of results to be returned. If unspecified, the server
# will decide how many results to return.
# @param [String] name
# Restricts the list to return only records with this fully qualified domain
# name.
# @param [String] page_token
# Optional. A tag returned by a previous list request that was truncated. Use
# this parameter to continue a previous list request.
# @param [String] type
# Restricts the list to return only records of this type. If present, the "name"
# parameter must also be present.
# @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::DnsV2beta1::ResourceRecordSetsListResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DnsV2beta1::ResourceRecordSetsListResponse]
#
# @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_resource_record_sets(project, managed_zone, max_results: nil, name: nil, page_token: nil, type: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'dns/v2beta1/projects/{project}/managedZones/{managedZone}/rrsets', options)
command.response_representation = Google::Apis::DnsV2beta1::ResourceRecordSetsListResponse::Representation
command.response_class = Google::Apis::DnsV2beta1::ResourceRecordSetsListResponse
command.params['project'] = project unless project.nil?
command.params['managedZone'] = managed_zone unless managed_zone.nil?
command.query['maxResults'] = max_results unless max_results.nil?
command.query['name'] = name unless name.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['type'] = type unless type.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
protected
def apply_command_defaults(command)
command.query['key'] = key unless key.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
end
end
end
end
end

View File

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

View File

@ -55,8 +55,7 @@ module Google
end
# A proportion of data in the total distribution, bucketed by a min/max
# percentage. Each bucket's range is bounded by min <= x < max, In
# millisecond.
# percentage. Each bucket's range is bounded by min <= x < max, In millisecond.
class Bucket
include Google::Apis::Core::Hashable
@ -159,8 +158,7 @@ module Google
class ConfigSettings
include Google::Apis::Core::Hashable
# How Lighthouse was run, e.g. from the Chrome extension or from the npm
# module.
# How Lighthouse was run, e.g. from the Chrome extension or from the npm module.
# Corresponds to the JSON property `channel`
# @return [String]
attr_accessor :channel
@ -277,9 +275,9 @@ module Google
# @return [String]
attr_accessor :id
# A numeric value that has a meaning specific to the audit, e.g. the number
# of nodes in the DOM or the timestamp of a specific load event. More
# information can be found in the audit details, if present.
# A numeric value that has a meaning specific to the audit, e.g. the number of
# nodes in the DOM or the timestamp of a specific load event. More information
# can be found in the audit details, if present.
# Corresponds to the JSON property `numericValue`
# @return [Float]
attr_accessor :numeric_value
@ -348,8 +346,8 @@ module Google
# @return [String]
attr_accessor :manual_description
# The overall score of the category, the weighted average of all its audits.
# (The category's score, can be null.)
# The overall score of the category, the weighted average of all its audits. (
# The category's score, can be null.)
# Corresponds to the JSON property `score`
# @return [Object]
attr_accessor :score
@ -491,7 +489,7 @@ module Google
# @return [String]
attr_accessor :initial_url
# The map of <metrics, data>.
# The map of .
# Corresponds to the JSON property `metrics`
# @return [Hash<String,Google::Apis::PagespeedonlineV5::UserPageLoadMetricV5>]
attr_accessor :metrics
@ -535,8 +533,8 @@ module Google
# @return [String]
attr_accessor :captcha_result
# Canonicalized and final URL for the document, after following page
# redirects (if any).
# Canonicalized and final URL for the document, after following page redirects (
# if any).
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
@ -642,14 +640,12 @@ module Google
# @return [String]
attr_accessor :lab_data_title
# The disclaimer shown under performance explaning that the network can
# vary.
# The disclaimer shown under performance explaning that the network can vary.
# Corresponds to the JSON property `lsPerformanceCategoryDescription`
# @return [String]
attr_accessor :ls_performance_category_description
# The heading shown above a list of audits that were not computerd in the
# run.
# The heading shown above a list of audits that were not computerd in the run.
# Corresponds to the JSON property `manualAuditsGroupTitle`
# @return [String]
attr_accessor :manual_audits_group_title
@ -659,8 +655,7 @@ module Google
# @return [String]
attr_accessor :not_applicable_audits_group_title
# The heading for the estimated page load savings opportunity of an
# audit.
# The heading for the estimated page load savings opportunity of an audit.
# Corresponds to the JSON property `opportunityResourceColumnLabel`
# @return [String]
attr_accessor :opportunity_resource_column_label
@ -680,8 +675,8 @@ module Google
# @return [String]
attr_accessor :scorescale_label
# The label shown preceding important warnings that may have invalidated
# an entire report.
# The label shown preceding important warnings that may have invalidated an
# entire report.
# Corresponds to the JSON property `toplevelWarningsMessage`
# @return [String]
attr_accessor :toplevel_warnings_message
@ -831,9 +826,8 @@ module Google
# @return [String]
attr_accessor :metric_id
# We use this field to store certain percentile value for this metric.
# For v4, this field contains pc50.
# For v5, this field contains pc90.
# We use this field to store certain percentile value for this metric. For v4,
# this field contains pc50. For v5, this field contains pc90.
# Corresponds to the JSON property `percentile`
# @return [Fixnum]
attr_accessor :percentile

View File

@ -61,10 +61,9 @@ module Google
# @param [String] locale
# The locale used to localize formatted results
# @param [String] strategy
# The analysis strategy (desktop or mobile) to use, and desktop is the
# default
# The analysis strategy (desktop or mobile) to use, and desktop is the default
# @param [String] url
# The URL to fetch and analyze
# Required. The URL to fetch and analyze
# @param [String] utm_campaign
# Campaign name for analytics.
# @param [String] utm_source

View File

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

View File

@ -502,9 +502,9 @@ module Google
# the copy mask with metadata and membership fields if not set. Valid values are:
# * addresses * ageRanges * biographies * birthdays * calendarUrls * clientData
# * coverPhotos * emailAddresses * events * externalIds * genders * imClients *
# interests * locales * memberships * metadata * miscKeywords * names *
# nicknames * occupations * organizations * phoneNumbers * photos * relations *
# residences * sipAddresses * skills * urls * userDefined
# interests * locales * locations * memberships * metadata * miscKeywords *
# names * nicknames * occupations * organizations * phoneNumbers * photos *
# relations * sipAddresses * skills * urls * userDefined
# Corresponds to the JSON property `readMask`
# @return [String]
attr_accessor :read_mask
@ -1187,6 +1187,69 @@ module Google
end
end
# A person's location.
class Location
include Google::Apis::Core::Hashable
# The building identifier.
# Corresponds to the JSON property `buildingId`
# @return [String]
attr_accessor :building_id
# Whether the location is the current location.
# Corresponds to the JSON property `current`
# @return [Boolean]
attr_accessor :current
alias_method :current?, :current
# The individual desk location.
# Corresponds to the JSON property `deskCode`
# @return [String]
attr_accessor :desk_code
# The floor name or number.
# Corresponds to the JSON property `floor`
# @return [String]
attr_accessor :floor
# The floor section in `floor_name`.
# Corresponds to the JSON property `floorSection`
# @return [String]
attr_accessor :floor_section
# Metadata about a field.
# Corresponds to the JSON property `metadata`
# @return [Google::Apis::PeopleV1::FieldMetadata]
attr_accessor :metadata
# The type of the location. The type can be custom or one of these predefined
# values: * `desk` * `grewUp`
# Corresponds to the JSON property `type`
# @return [String]
attr_accessor :type
# The free-form value of the location.
# Corresponds to the JSON property `value`
# @return [String]
attr_accessor :value
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@building_id = args[:building_id] if args.key?(:building_id)
@current = args[:current] if args.key?(:current)
@desk_code = args[:desk_code] if args.key?(:desk_code)
@floor = args[:floor] if args.key?(:floor)
@floor_section = args[:floor_section] if args.key?(:floor_section)
@metadata = args[:metadata] if args.key?(:metadata)
@type = args[:type] if args.key?(:type)
@value = args[:value] if args.key?(:value)
end
end
# A person's membership in a group. Only contact group memberships can be
# modified.
class Membership
@ -1689,6 +1752,11 @@ module Google
# @return [Array<Google::Apis::PeopleV1::Locale>]
attr_accessor :locales
# The person's locations.
# Corresponds to the JSON property `locations`
# @return [Array<Google::Apis::PeopleV1::Location>]
attr_accessor :locations
# The person's group memberships.
# Corresponds to the JSON property `memberships`
# @return [Array<Google::Apis::PeopleV1::Membership>]
@ -1751,7 +1819,8 @@ module Google
# @return [Array<Google::Apis::PeopleV1::RelationshipStatus>]
attr_accessor :relationship_statuses
# The person's residences.
# **DEPRECATED**: (Please use `person.locations` instead) The person's
# residences.
# Corresponds to the JSON property `residences`
# @return [Array<Google::Apis::PeopleV1::Residence>]
attr_accessor :residences
@ -1811,6 +1880,7 @@ module Google
@im_clients = args[:im_clients] if args.key?(:im_clients)
@interests = args[:interests] if args.key?(:interests)
@locales = args[:locales] if args.key?(:locales)
@locations = args[:locations] if args.key?(:locations)
@memberships = args[:memberships] if args.key?(:memberships)
@metadata = args[:metadata] if args.key?(:metadata)
@misc_keywords = args[:misc_keywords] if args.key?(:misc_keywords)
@ -2154,7 +2224,8 @@ module Google
end
end
# A person's past or current residence.
# **DEPRECATED**: Please use `person.locations` instead. A person's past or
# current residence.
class Residence
include Google::Apis::Core::Hashable
@ -2426,9 +2497,9 @@ module Google
# empty if not set, which will skip the post mutate get. Valid values are: *
# addresses * ageRanges * biographies * birthdays * calendarUrls * clientData *
# coverPhotos * emailAddresses * events * externalIds * genders * imClients *
# interests * locales * memberships * metadata * miscKeywords * names *
# nicknames * occupations * organizations * phoneNumbers * photos * relations *
# residences * sipAddresses * skills * urls * userDefined
# interests * locales * locations * memberships * metadata * miscKeywords *
# names * nicknames * occupations * organizations * phoneNumbers * photos *
# relations * sipAddresses * skills * urls * userDefined
# Corresponds to the JSON property `personFields`
# @return [String]
attr_accessor :person_fields

View File

@ -220,6 +220,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class Location
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Membership
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -727,6 +733,21 @@ module Google
end
end
class Location
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :building_id, as: 'buildingId'
property :current, as: 'current'
property :desk_code, as: 'deskCode'
property :floor, as: 'floor'
property :floor_section, as: 'floorSection'
property :metadata, as: 'metadata', class: Google::Apis::PeopleV1::FieldMetadata, decorator: Google::Apis::PeopleV1::FieldMetadata::Representation
property :type, as: 'type'
property :value, as: 'value'
end
end
class Membership
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -867,6 +888,8 @@ module Google
collection :locales, as: 'locales', class: Google::Apis::PeopleV1::Locale, decorator: Google::Apis::PeopleV1::Locale::Representation
collection :locations, as: 'locations', class: Google::Apis::PeopleV1::Location, decorator: Google::Apis::PeopleV1::Location::Representation
collection :memberships, as: 'memberships', class: Google::Apis::PeopleV1::Membership, decorator: Google::Apis::PeopleV1::Membership::Representation
property :metadata, as: 'metadata', class: Google::Apis::PeopleV1::PersonMetadata, decorator: Google::Apis::PeopleV1::PersonMetadata::Representation

View File

@ -392,10 +392,10 @@ module Google
# Multiple fields can be specified by separating them with commas. Defaults to
# all fields if not set. Valid values are: * addresses * ageRanges * biographies
# * birthdays * calendarUrls * clientData * coverPhotos * emailAddresses *
# events * externalIds * genders * imClients * interests * locales * memberships
# * metadata * miscKeywords * names * nicknames * occupations * organizations *
# phoneNumbers * photos * relations * residences * sipAddresses * skills * urls *
# userDefined
# events * externalIds * genders * imClients * interests * locales * locations *
# memberships * metadata * miscKeywords * names * nicknames * occupations *
# organizations * phoneNumbers * photos * relations * 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.
@ -468,9 +468,9 @@ module Google
# empty if not set, which will skip the post mutate get. Valid values are: *
# addresses * ageRanges * biographies * birthdays * calendarUrls * clientData *
# coverPhotos * emailAddresses * events * externalIds * genders * imClients *
# interests * locales * memberships * metadata * miscKeywords * names *
# nicknames * occupations * organizations * phoneNumbers * photos * relations *
# residences * sipAddresses * skills * urls * userDefined
# interests * locales * locations * memberships * metadata * miscKeywords *
# names * nicknames * occupations * organizations * phoneNumbers * photos *
# relations * 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.
@ -518,9 +518,9 @@ module Google
# Multiple fields can be specified by separating them with commas. Valid values
# are: * addresses * ageRanges * biographies * birthdays * calendarUrls *
# clientData * coverPhotos * emailAddresses * events * externalIds * genders *
# imClients * interests * locales * memberships * metadata * miscKeywords *
# names * nicknames * occupations * organizations * phoneNumbers * photos *
# relations * residences * sipAddresses * skills * urls * userDefined
# imClients * interests * locales * locations * memberships * metadata *
# miscKeywords * names * nicknames * occupations * organizations * phoneNumbers *
# photos * relations * sipAddresses * skills * urls * userDefined
# @param [String] request_mask_include_field
# Required. Comma-separated list of person fields to be included in the response.
# Each path should start with `person.`: for example, `person.names` or `person.
@ -566,9 +566,9 @@ module Google
# Multiple fields can be specified by separating them with commas. Valid values
# are: * addresses * ageRanges * biographies * birthdays * calendarUrls *
# clientData * coverPhotos * emailAddresses * events * externalIds * genders *
# imClients * interests * locales * memberships * metadata * miscKeywords *
# names * nicknames * occupations * organizations * phoneNumbers * photos *
# relations * residences * sipAddresses * skills * urls * userDefined
# imClients * interests * locales * locations * memberships * metadata *
# miscKeywords * names * nicknames * occupations * organizations * phoneNumbers *
# photos * relations * sipAddresses * skills * urls * userDefined
# @param [String] request_mask_include_field
# Required. Comma-separated list of person fields to be included in the response.
# Each path should start with `person.`: for example, `person.names` or `person.
@ -631,9 +631,9 @@ module Google
# Multiple fields can be specified by separating them with commas. Valid values
# are: * addresses * ageRanges * biographies * birthdays * calendarUrls *
# clientData * coverPhotos * emailAddresses * events * externalIds * genders *
# imClients * interests * locales * memberships * metadata * miscKeywords *
# names * nicknames * occupations * organizations * phoneNumbers * photos *
# relations * residences * sipAddresses * skills * urls * userDefined
# imClients * interests * locales * locations * memberships * metadata *
# miscKeywords * names * nicknames * occupations * organizations * phoneNumbers *
# photos * relations * sipAddresses * skills * urls * userDefined
# @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
@ -699,9 +699,9 @@ module Google
# Multiple fields can be specified by separating them with commas. Valid values
# are: * addresses * ageRanges * biographies * birthdays * calendarUrls *
# clientData * coverPhotos * emailAddresses * events * externalIds * genders *
# imClients * interests * locales * memberships * metadata * miscKeywords *
# names * nicknames * occupations * organizations * phoneNumbers * photos *
# relations * residences * sipAddresses * skills * urls * userDefined
# imClients * interests * locales * locations * memberships * metadata *
# miscKeywords * names * nicknames * occupations * organizations * phoneNumbers *
# photos * relations * sipAddresses * skills * urls * userDefined
# @param [Array<String>, String] sources
# Required. Directory sources to return.
# @param [String] fields
@ -758,10 +758,10 @@ module Google
# Multiple fields can be specified by separating them with commas. Defaults to
# all fields if not set. Valid values are: * addresses * ageRanges * biographies
# * birthdays * calendarUrls * clientData * coverPhotos * emailAddresses *
# events * externalIds * genders * imClients * interests * locales * memberships
# * metadata * miscKeywords * names * nicknames * occupations * organizations *
# phoneNumbers * photos * relations * residences * sipAddresses * skills * urls *
# userDefined
# events * externalIds * genders * imClients * interests * locales * locations *
# memberships * metadata * miscKeywords * names * nicknames * occupations *
# organizations * phoneNumbers * photos * relations * 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.
@ -770,9 +770,9 @@ module Google
# Multiple fields can be specified by separating them with commas. All updated
# fields will be replaced. Valid values are: * addresses * biographies *
# birthdays * calendarUrls * clientData * emailAddresses * events * externalIds *
# genders * imClients * interests * locales * memberships * miscKeywords *
# names * nicknames * occupations * organizations * phoneNumbers * relations *
# residences * sipAddresses * urls * userDefined
# genders * imClients * interests * locales * locations * memberships *
# miscKeywords * names * nicknames * occupations * organizations * phoneNumbers *
# relations * sipAddresses * urls * userDefined
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -856,9 +856,9 @@ module Google
# Multiple fields can be specified by separating them with commas. Valid values
# are: * addresses * ageRanges * biographies * birthdays * calendarUrls *
# clientData * coverPhotos * emailAddresses * events * externalIds * genders *
# imClients * interests * locales * memberships * metadata * miscKeywords *
# names * nicknames * occupations * organizations * phoneNumbers * photos *
# relations * residences * sipAddresses * skills * urls * userDefined
# imClients * interests * locales * locations * memberships * metadata *
# miscKeywords * names * nicknames * occupations * organizations * phoneNumbers *
# photos * relations * sipAddresses * skills * urls * userDefined
# @param [String] request_mask_include_field
# Required. Comma-separated list of person fields to be included in the response.
# Each path should start with `person.`: for example, `person.names` or `person.

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/spectrum-access-system/
module ProdTtSasportalV1alpha1
VERSION = 'V1alpha1'
REVISION = '20200801'
REVISION = '20200813'
# View your email address
AUTH_USERINFO_EMAIL = 'https://www.googleapis.com/auth/userinfo.email'

View File

@ -338,6 +338,11 @@ module Google
# @return [Google::Apis::ProdTtSasportalV1alpha1::SasPortalFrequencyRange]
attr_accessor :frequency_range
# Grant Id.
# Corresponds to the JSON property `grantId`
# @return [String]
attr_accessor :grant_id
# Maximum Equivalent Isotropically Radiated Power (EIRP) permitted by the grant.
# The maximum EIRP is in units of dBm/MHz. The value of maxEirp represents the
# average (RMS) EIRP that would be measured by the procedure defined in FCC part
@ -370,6 +375,7 @@ module Google
@channel_type = args[:channel_type] if args.key?(:channel_type)
@expire_time = args[:expire_time] if args.key?(:expire_time)
@frequency_range = args[:frequency_range] if args.key?(:frequency_range)
@grant_id = args[:grant_id] if args.key?(:grant_id)
@max_eirp = args[:max_eirp] if args.key?(:max_eirp)
@move_list = args[:move_list] if args.key?(:move_list)
@state = args[:state] if args.key?(:state)

View File

@ -319,6 +319,7 @@ module Google
property :expire_time, as: 'expireTime'
property :frequency_range, as: 'frequencyRange', class: Google::Apis::ProdTtSasportalV1alpha1::SasPortalFrequencyRange, decorator: Google::Apis::ProdTtSasportalV1alpha1::SasPortalFrequencyRange::Representation
property :grant_id, as: 'grantId'
property :max_eirp, as: 'maxEirp'
collection :move_list, as: 'moveList', class: Google::Apis::ProdTtSasportalV1alpha1::SasPortalDpaMoveList, decorator: Google::Apis::ProdTtSasportalV1alpha1::SasPortalDpaMoveList::Representation

View File

@ -27,7 +27,7 @@ module Google
# @see https://cloud.google.com/recommendations-ai/docs
module RecommendationengineV1beta1
VERSION = 'V1beta1'
REVISION = '20200803'
REVISION = '20200810'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -147,7 +147,8 @@ module Google
# com/recommendations-ai/docs/upload-catalog#mc Supported values for user event
# imports: 1: "user_events_recommendations_ai" using https://cloud.google.com/
# recommendations-ai/docs/manage-user-events#import (Default for userEvents.
# import)
# import) 2. "user_events_ga360" using https://support.google.com/analytics/
# answer/3437719?hl=en
# Corresponds to the JSON property `dataSchema`
# @return [String]
attr_accessor :data_schema
@ -564,7 +565,8 @@ module Google
# com/recommendations-ai/docs/upload-catalog#mc Supported values for user events
# imports: 1: "user_events_recommendations_ai" using https://cloud.google.com/
# recommendations-ai/docs/manage-user-events#import (Default for userEvents.
# import)
# import) 2. "user_events_ga360" using https://support.google.com/analytics/
# answer/3437719?hl=en
# Corresponds to the JSON property `jsonSchema`
# @return [String]
attr_accessor :json_schema

View File

@ -92,8 +92,9 @@ module Google
# The fully qualified resource name of the catalog.
# @param [Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1Catalog] google_cloud_recommendationengine_v1beta1_catalog_object
# @param [String] update_mask
# Optional. Indicates which fields in the provided 'recommendation_model' to
# update. If not set, will only update the catalog_item_level_config field.
# Optional. Indicates which fields in the provided 'catalog' to update. If not
# set, will only update the catalog_item_level_config field. Currently only
# fields that can be updated are catalog_item_level_config.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/service-control/
module ServicecontrolV2
VERSION = 'V2'
REVISION = '20200727'
REVISION = '20200808'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -22,9 +22,9 @@ module Google
module Apis
module ServicecontrolV2
# This message defines attributes associated with API operations, such as
# a network API request. The terminology is based on the conventions used
# by Google APIs, Istio, and OpenAPI.
# This message defines attributes associated with API operations, such as a
# network API request. The terminology is based on the conventions used by
# Google APIs, Istio, and OpenAPI.
class Api
include Google::Apis::Core::Hashable
@ -35,21 +35,21 @@ module Google
# @return [String]
attr_accessor :operation
# The API protocol used for sending the request, such as "http", "https",
# "grpc", or "internal".
# The API protocol used for sending the request, such as "http", "https", "grpc",
# or "internal".
# Corresponds to the JSON property `protocol`
# @return [String]
attr_accessor :protocol
# The API service name. It is a logical identifier for a networked API,
# such as "pubsub.googleapis.com". The naming syntax depends on the
# API management system being used for handling the request.
# The API service name. It is a logical identifier for a networked API, such as "
# pubsub.googleapis.com". The naming syntax depends on the API management system
# being used for handling the request.
# Corresponds to the JSON property `service`
# @return [String]
attr_accessor :service
# The API version associated with the API operation above, such as "v1" or
# "v1alpha1".
# The API version associated with the API operation above, such as "v1" or "
# v1alpha1".
# Corresponds to the JSON property `version`
# @return [String]
attr_accessor :version
@ -67,33 +67,31 @@ module Google
end
end
# This message defines the standard attribute vocabulary for Google APIs.
# An attribute is a piece of metadata that describes an activity on a network
# service. For example, the size of an HTTP request, or the status code of
# an HTTP response.
# Each attribute has a type and a name, which is logically defined as
# a proto message field in `AttributeContext`. The field type becomes the
# attribute type, and the field path becomes the attribute name. For example,
# the attribute `source.ip` maps to field `AttributeContext.source.ip`.
# This message definition is guaranteed not to have any wire breaking change.
# So you can use it directly for passing attributes across different systems.
# NOTE: Different system may generate different subset of attributes. Please
# verify the system specification before relying on an attribute generated
# a system.
# This message defines the standard attribute vocabulary for Google APIs. An
# attribute is a piece of metadata that describes an activity on a network
# service. For example, the size of an HTTP request, or the status code of an
# HTTP response. Each attribute has a type and a name, which is logically
# defined as a proto message field in `AttributeContext`. The field type becomes
# the attribute type, and the field path becomes the attribute name. For example,
# the attribute `source.ip` maps to field `AttributeContext.source.ip`. This
# message definition is guaranteed not to have any wire breaking change. So you
# can use it directly for passing attributes across different systems. NOTE:
# Different system may generate different subset of attributes. Please verify
# the system specification before relying on an attribute generated a system.
class AttributeContext
include Google::Apis::Core::Hashable
# This message defines attributes associated with API operations, such as
# a network API request. The terminology is based on the conventions used
# by Google APIs, Istio, and OpenAPI.
# This message defines attributes associated with API operations, such as a
# network API request. The terminology is based on the conventions used by
# Google APIs, Istio, and OpenAPI.
# Corresponds to the JSON property `api`
# @return [Google::Apis::ServicecontrolV2::Api]
attr_accessor :api
# This message defines attributes for a node that handles a network request.
# The node can be either a service or an application that sends, forwards,
# or receives the request. Service peers should fill in
# `principal` and `labels` as appropriate.
# This message defines attributes for a node that handles a network request. The
# node can be either a service or an application that sends, forwards, or
# receives the request. Service peers should fill in `principal` and `labels` as
# appropriate.
# Corresponds to the JSON property `destination`
# @return [Google::Apis::ServicecontrolV2::Peer]
attr_accessor :destination
@ -103,38 +101,38 @@ module Google
# @return [Array<Hash<String,Object>>]
attr_accessor :extensions
# This message defines attributes for a node that handles a network request.
# The node can be either a service or an application that sends, forwards,
# or receives the request. Service peers should fill in
# `principal` and `labels` as appropriate.
# This message defines attributes for a node that handles a network request. The
# node can be either a service or an application that sends, forwards, or
# receives the request. Service peers should fill in `principal` and `labels` as
# appropriate.
# Corresponds to the JSON property `origin`
# @return [Google::Apis::ServicecontrolV2::Peer]
attr_accessor :origin
# This message defines attributes for an HTTP request. If the actual
# request is not an HTTP request, the runtime system should try to map
# the actual request to an equivalent HTTP request.
# This message defines attributes for an HTTP request. If the actual request is
# not an HTTP request, the runtime system should try to map the actual request
# to an equivalent HTTP request.
# Corresponds to the JSON property `request`
# @return [Google::Apis::ServicecontrolV2::Request]
attr_accessor :request
# This message defines core attributes for a resource. A resource is an
# addressable (named) entity provided by the destination service. For
# example, a file stored on a network storage service.
# addressable (named) entity provided by the destination service. For example, a
# file stored on a network storage service.
# Corresponds to the JSON property `resource`
# @return [Google::Apis::ServicecontrolV2::Resource]
attr_accessor :resource
# This message defines attributes for a typical network response. It
# generally models semantics of an HTTP response.
# This message defines attributes for a typical network response. It generally
# models semantics of an HTTP response.
# Corresponds to the JSON property `response`
# @return [Google::Apis::ServicecontrolV2::Response]
attr_accessor :response
# This message defines attributes for a node that handles a network request.
# The node can be either a service or an application that sends, forwards,
# or receives the request. Service peers should fill in
# `principal` and `labels` as appropriate.
# This message defines attributes for a node that handles a network request. The
# node can be either a service or an application that sends, forwards, or
# receives the request. Service peers should fill in `principal` and `labels` as
# appropriate.
# Corresponds to the JSON property `source`
# @return [Google::Apis::ServicecontrolV2::Peer]
attr_accessor :source
@ -165,40 +163,36 @@ module Google
# @return [Google::Apis::ServicecontrolV2::AuthenticationInfo]
attr_accessor :authentication_info
# Authorization information. If there are multiple
# resources or permissions involved, then there is
# one AuthorizationInfo element for each `resource, permission` tuple.
# Authorization information. If there are multiple resources or permissions
# involved, then there is one AuthorizationInfo element for each `resource,
# permission` tuple.
# Corresponds to the JSON property `authorizationInfo`
# @return [Array<Google::Apis::ServicecontrolV2::AuthorizationInfo>]
attr_accessor :authorization_info
# Other service-specific data about the request, response, and other
# information associated with the current audited event.
# Other service-specific data about the request, response, and other information
# associated with the current audited event.
# Corresponds to the JSON property `metadata`
# @return [Hash<String,Object>]
attr_accessor :metadata
# The name of the service method or operation.
# For API calls, this should be the name of the API method.
# For example,
# "google.cloud.bigquery.v2.TableService.InsertTable"
# "google.logging.v2.ConfigServiceV2.CreateSink"
# The name of the service method or operation. For API calls, this should be the
# name of the API method. For example, "google.cloud.bigquery.v2.TableService.
# InsertTable" "google.logging.v2.ConfigServiceV2.CreateSink"
# Corresponds to the JSON property `methodName`
# @return [String]
attr_accessor :method_name
# The number of items returned from a List or Query API method,
# if applicable.
# The number of items returned from a List or Query API method, if applicable.
# Corresponds to the JSON property `numResponseItems`
# @return [Fixnum]
attr_accessor :num_response_items
# The operation request. This may not include all request parameters,
# such as those that are too large, privacy-sensitive, or duplicated
# elsewhere in the log record.
# It should never include user-generated data, such as file contents.
# When the JSON object represented here has a proto equivalent, the proto
# name will be indicated in the `@type` property.
# The operation request. This may not include all request parameters, such as
# those that are too large, privacy-sensitive, or duplicated elsewhere in the
# log record. It should never include user-generated data, such as file contents.
# When the JSON object represented here has a proto equivalent, the proto name
# will be indicated in the `@type` property.
# Corresponds to the JSON property `request`
# @return [Hash<String,Object>]
attr_accessor :request
@ -213,55 +207,51 @@ module Google
# @return [Google::Apis::ServicecontrolV2::ResourceLocation]
attr_accessor :resource_location
# The resource or collection that is the target of the operation.
# The name is a scheme-less URI, not including the API service name.
# For example:
# "projects/PROJECT_ID/zones/us-central1-a/instances"
# "projects/PROJECT_ID/datasets/DATASET_ID"
# The resource or collection that is the target of the operation. The name is a
# scheme-less URI, not including the API service name. For example: "projects/
# PROJECT_ID/zones/us-central1-a/instances" "projects/PROJECT_ID/datasets/
# DATASET_ID"
# Corresponds to the JSON property `resourceName`
# @return [String]
attr_accessor :resource_name
# The resource's original state before mutation. Present only for
# operations which have successfully modified the targeted resource(s).
# In general, this field should contain all changed fields, except those
# that are already been included in `request`, `response`, `metadata` or
# `service_data` fields.
# When the JSON object represented here has a proto equivalent,
# the proto name will be indicated in the `@type` property.
# The resource's original state before mutation. Present only for operations
# which have successfully modified the targeted resource(s). In general, this
# field should contain all changed fields, except those that are already been
# included in `request`, `response`, `metadata` or `service_data` fields. When
# the JSON object represented here has a proto equivalent, the proto name will
# be indicated in the `@type` property.
# Corresponds to the JSON property `resourceOriginalState`
# @return [Hash<String,Object>]
attr_accessor :resource_original_state
# The operation response. This may not include all response elements,
# such as those that are too large, privacy-sensitive, or duplicated
# elsewhere in the log record.
# It should never include user-generated data, such as file contents.
# When the JSON object represented here has a proto equivalent, the proto
# name will be indicated in the `@type` property.
# The operation response. This may not include all response elements, such as
# those that are too large, privacy-sensitive, or duplicated elsewhere in the
# log record. It should never include user-generated data, such as file contents.
# When the JSON object represented here has a proto equivalent, the proto name
# will be indicated in the `@type` property.
# Corresponds to the JSON property `response`
# @return [Hash<String,Object>]
attr_accessor :response
# Deprecated. Use the `metadata` field instead.
# Other service-specific data about the request, response, and other
# activities.
# Deprecated. Use the `metadata` field instead. Other service-specific data
# about the request, response, and other activities.
# Corresponds to the JSON property `serviceData`
# @return [Hash<String,Object>]
attr_accessor :service_data
# The name of the API service performing the operation. For example,
# `"compute.googleapis.com"`.
# The name of the API service performing the operation. For example, `"compute.
# googleapis.com"`.
# Corresponds to the JSON property `serviceName`
# @return [String]
attr_accessor :service_name
# 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
# three pieces of data: error code, error message, and error details.
# You can find out more about this error model and how to work with it in the
# [API Design Guide](https://cloud.google.com/apis/design/errors).
# 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 three pieces of
# data: error code, error message, and error details. You can find out more
# about this error model and how to work with it in the [API Design Guide](https:
# //cloud.google.com/apis/design/errors).
# Corresponds to the JSON property `status`
# @return [Google::Apis::ServicecontrolV2::Status]
attr_accessor :status
@ -289,69 +279,59 @@ module Google
end
end
# This message defines request authentication attributes. Terminology is
# based on the JSON Web Token (JWT) standard, but the terms also
# correlate to concepts in other standards.
# This message defines request authentication attributes. Terminology is based
# on the JSON Web Token (JWT) standard, but the terms also correlate to concepts
# in other standards.
class Auth
include Google::Apis::Core::Hashable
# A list of access level resource names that allow resources to be
# accessed by authenticated requester. It is part of Secure GCP processing
# for the incoming request. An access level string has the format:
# "//`api_service_name`/accessPolicies/`policy_id`/accessLevels/`short_name`"
# Example:
# "//accesscontextmanager.googleapis.com/accessPolicies/MY_POLICY_ID/
# accessLevels/MY_LEVEL"
# A list of access level resource names that allow resources to be accessed by
# authenticated requester. It is part of Secure GCP processing for the incoming
# request. An access level string has the format: "//`api_service_name`/
# accessPolicies/`policy_id`/accessLevels/`short_name`" Example: "//
# accesscontextmanager.googleapis.com/accessPolicies/MY_POLICY_ID/accessLevels/
# MY_LEVEL"
# Corresponds to the JSON property `accessLevels`
# @return [Array<String>]
attr_accessor :access_levels
# The intended audience(s) for this authentication information. Reflects
# the audience (`aud`) claim within a JWT. The audience
# value(s) depends on the `issuer`, but typically include one or more of
# the following pieces of information:
# * The services intended to receive the credential. For example,
# ["https://pubsub.googleapis.com/", "https://storage.googleapis.com/"].
# * A set of service-based scopes. For example,
# ["https://www.googleapis.com/auth/cloud-platform"].
# * The client id of an app, such as the Firebase project id for JWTs
# from Firebase Auth.
# Consult the documentation for the credential issuer to determine the
# information provided.
# The intended audience(s) for this authentication information. Reflects the
# audience (`aud`) claim within a JWT. The audience value(s) depends on the `
# issuer`, but typically include one or more of the following pieces of
# information: * The services intended to receive the credential. For example, ["
# https://pubsub.googleapis.com/", "https://storage.googleapis.com/"]. * A set
# of service-based scopes. For example, ["https://www.googleapis.com/auth/cloud-
# platform"]. * The client id of an app, such as the Firebase project id for
# JWTs from Firebase Auth. Consult the documentation for the credential issuer
# to determine the information provided.
# Corresponds to the JSON property `audiences`
# @return [Array<String>]
attr_accessor :audiences
# Structured claims presented with the credential. JWTs include
# ``key: value`` pairs for standard and private claims. The following
# is a subset of the standard required and optional claims that would
# typically be presented for a Google-based JWT:
# `'iss': 'accounts.google.com',
# 'sub': '113289723416554971153',
# 'aud': ['123456789012', 'pubsub.googleapis.com'],
# 'azp': '123456789012.apps.googleusercontent.com',
# 'email': 'jsmith@example.com',
# 'iat': 1353601026,
# 'exp': 1353604926`
# SAML assertions are similarly specified, but with an identity provider
# dependent structure.
# Structured claims presented with the credential. JWTs include ``key: value``
# pairs for standard and private claims. The following is a subset of the
# standard required and optional claims that would typically be presented for a
# Google-based JWT: `'iss': 'accounts.google.com', 'sub': '113289723416554971153'
# , 'aud': ['123456789012', 'pubsub.googleapis.com'], 'azp': '123456789012.apps.
# googleusercontent.com', 'email': 'jsmith@example.com', 'iat': 1353601026, 'exp'
# : 1353604926` SAML assertions are similarly specified, but with an identity
# provider dependent structure.
# Corresponds to the JSON property `claims`
# @return [Hash<String,Object>]
attr_accessor :claims
# The authorized presenter of the credential. Reflects the optional
# Authorized Presenter (`azp`) claim within a JWT or the
# OAuth client id. For example, a Google Cloud Platform client id looks
# as follows: "123456789012.apps.googleusercontent.com".
# The authorized presenter of the credential. Reflects the optional Authorized
# Presenter (`azp`) claim within a JWT or the OAuth client id. For example, a
# Google Cloud Platform client id looks as follows: "123456789012.apps.
# googleusercontent.com".
# Corresponds to the JSON property `presenter`
# @return [String]
attr_accessor :presenter
# The authenticated principal. Reflects the issuer (`iss`) and subject
# (`sub`) claims within a JWT. The issuer and subject should be `/`
# delimited, with `/` percent-encoded within the subject fragment. For
# Google accounts, the principal format is:
# "https://accounts.google.com/`id`"
# The authenticated principal. Reflects the issuer (`iss`) and subject (`sub`)
# claims within a JWT. The issuer and subject should be `/` delimited, with `/`
# percent-encoded within the subject fragment. For Google accounts, the
# principal format is: "https://accounts.google.com/`id`"
# Corresponds to the JSON property `principal`
# @return [String]
attr_accessor :principal
@ -374,48 +354,46 @@ module Google
class AuthenticationInfo
include Google::Apis::Core::Hashable
# The authority selector specified by the requestor, if any.
# It is not guaranteed that the principal was allowed to use this authority.
# The authority selector specified by the requestor, if any. It is not
# guaranteed that the principal was allowed to use this authority.
# Corresponds to the JSON property `authoritySelector`
# @return [String]
attr_accessor :authority_selector
# The email address of the authenticated user (or service account on behalf
# of third party principal) making the request. For privacy reasons, the
# principal email address is redacted for all read-only operations that fail
# with a "permission denied" error.
# The email address of the authenticated user (or service account on behalf of
# third party principal) making the request. For privacy reasons, the principal
# email address is redacted for all read-only operations that fail with a "
# permission denied" error.
# Corresponds to the JSON property `principalEmail`
# @return [String]
attr_accessor :principal_email
# String representation of identity of requesting party.
# Populated for both first and third party identities.
# String representation of identity of requesting party. Populated for both
# first and third party identities.
# Corresponds to the JSON property `principalSubject`
# @return [String]
attr_accessor :principal_subject
# Identity delegation history of an authenticated service account that makes
# the request. It contains information on the real authorities that try to
# access GCP resources by delegating on a service account. When multiple
# authorities present, they are guaranteed to be sorted based on the original
# ordering of the identity delegation events.
# Identity delegation history of an authenticated service account that makes the
# request. It contains information on the real authorities that try to access
# GCP resources by delegating on a service account. When multiple authorities
# present, they are guaranteed to be sorted based on the original ordering of
# the identity delegation events.
# Corresponds to the JSON property `serviceAccountDelegationInfo`
# @return [Array<Google::Apis::ServicecontrolV2::ServiceAccountDelegationInfo>]
attr_accessor :service_account_delegation_info
# The name of the service account key used to create or exchange
# credentials for authenticating the service account making the request.
# This is a scheme-less URI full resource name. For example:
# "//iam.googleapis.com/projects/`PROJECT_ID`/serviceAccounts/`ACCOUNT`/keys/`
# key`"
# The name of the service account key used to create or exchange credentials for
# authenticating the service account making the request. This is a scheme-less
# URI full resource name. For example: "//iam.googleapis.com/projects/`
# PROJECT_ID`/serviceAccounts/`ACCOUNT`/keys/`key`"
# Corresponds to the JSON property `serviceAccountKeyName`
# @return [String]
attr_accessor :service_account_key_name
# The third party identification (if any) of the authenticated user making
# the request.
# When the JSON object represented here has a proto equivalent, the proto
# name will be indicated in the `@type` property.
# The third party identification (if any) of the authenticated user making the
# request. When the JSON object represented here has a proto equivalent, the
# proto name will be indicated in the `@type` property.
# Corresponds to the JSON property `thirdPartyPrincipal`
# @return [Hash<String,Object>]
attr_accessor :third_party_principal
@ -439,8 +417,7 @@ module Google
class AuthorizationInfo
include Google::Apis::Core::Hashable
# Whether or not authorization for `resource` and `permission`
# was granted.
# Whether or not authorization for `resource` and `permission` was granted.
# Corresponds to the JSON property `granted`
# @return [Boolean]
attr_accessor :granted
@ -451,15 +428,15 @@ module Google
# @return [String]
attr_accessor :permission
# The resource being accessed, as a REST-style string. For example:
# bigquery.googleapis.com/projects/PROJECTID/datasets/DATASETID
# The resource being accessed, as a REST-style string. For example: bigquery.
# googleapis.com/projects/PROJECTID/datasets/DATASETID
# Corresponds to the JSON property `resource`
# @return [String]
attr_accessor :resource
# This message defines core attributes for a resource. A resource is an
# addressable (named) entity provided by the destination service. For
# example, a file stored on a network storage service.
# addressable (named) entity provided by the destination service. For example, a
# file stored on a network storage service.
# Corresponds to the JSON property `resourceAttributes`
# @return [Google::Apis::ServicecontrolV2::Resource]
attr_accessor :resource_attributes
@ -481,19 +458,17 @@ module Google
class CheckRequest
include Google::Apis::Core::Hashable
# This message defines the standard attribute vocabulary for Google APIs.
# An attribute is a piece of metadata that describes an activity on a network
# service. For example, the size of an HTTP request, or the status code of
# an HTTP response.
# Each attribute has a type and a name, which is logically defined as
# a proto message field in `AttributeContext`. The field type becomes the
# attribute type, and the field path becomes the attribute name. For example,
# the attribute `source.ip` maps to field `AttributeContext.source.ip`.
# This message definition is guaranteed not to have any wire breaking change.
# So you can use it directly for passing attributes across different systems.
# NOTE: Different system may generate different subset of attributes. Please
# verify the system specification before relying on an attribute generated
# a system.
# This message defines the standard attribute vocabulary for Google APIs. An
# attribute is a piece of metadata that describes an activity on a network
# service. For example, the size of an HTTP request, or the status code of an
# HTTP response. Each attribute has a type and a name, which is logically
# defined as a proto message field in `AttributeContext`. The field type becomes
# the attribute type, and the field path becomes the attribute name. For example,
# the attribute `source.ip` maps to field `AttributeContext.source.ip`. This
# message definition is guaranteed not to have any wire breaking change. So you
# can use it directly for passing attributes across different systems. NOTE:
# Different system may generate different subset of attributes. Please verify
# the system specification before relying on an attribute generated a system.
# Corresponds to the JSON property `attributes`
# @return [Google::Apis::ServicecontrolV2::AttributeContext]
attr_accessor :attributes
@ -504,8 +479,8 @@ module Google
attr_accessor :resources
# Specifies the version of the service configuration that should be used to
# process the request. Must not be empty. Set this field to 'latest' to
# specify using the latest configuration.
# process the request. Must not be empty. Set this field to 'latest' to specify
# using the latest configuration.
# Corresponds to the JSON property `serviceConfigId`
# @return [String]
attr_accessor :service_config_id
@ -531,12 +506,12 @@ module Google
# @return [Hash<String,String>]
attr_accessor :headers
# 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
# three pieces of data: error code, error message, and error details.
# You can find out more about this error model and how to work with it in the
# [API Design Guide](https://cloud.google.com/apis/design/errors).
# 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 three pieces of
# data: error code, error message, and error details. You can find out more
# about this error model and how to work with it in the [API Design Guide](https:
# //cloud.google.com/apis/design/errors).
# Corresponds to the JSON property `status`
# @return [Google::Apis::ServicecontrolV2::Status]
attr_accessor :status
@ -556,14 +531,12 @@ module Google
class FirstPartyPrincipal
include Google::Apis::Core::Hashable
# The email address of a Google account.
# .
# The email address of a Google account. .
# Corresponds to the JSON property `principalEmail`
# @return [String]
attr_accessor :principal_email
# Metadata about the service that uses the service account.
# .
# Metadata about the service that uses the service account. .
# Corresponds to the JSON property `serviceMetadata`
# @return [Hash<String,Object>]
attr_accessor :service_metadata
@ -579,10 +552,10 @@ module Google
end
end
# This message defines attributes for a node that handles a network request.
# The node can be either a service or an application that sends, forwards,
# or receives the request. Service peers should fill in
# `principal` and `labels` as appropriate.
# This message defines attributes for a node that handles a network request. The
# node can be either a service or an application that sends, forwards, or
# receives the request. Service peers should fill in `principal` and `labels` as
# appropriate.
class Peer
include Google::Apis::Core::Hashable
@ -601,16 +574,16 @@ module Google
# @return [Fixnum]
attr_accessor :port
# The identity of this peer. Similar to `Request.auth.principal`, but
# relative to the peer instead of the request. For example, the
# idenity associated with a load balancer that forwared the request.
# The identity of this peer. Similar to `Request.auth.principal`, but relative
# to the peer instead of the request. For example, the idenity associated with a
# load balancer that forwared the request.
# Corresponds to the JSON property `principal`
# @return [String]
attr_accessor :principal
# The CLDR country/region code associated with the above IP address.
# If the IP address is private, the `region_code` should reflect the
# physical location where this peer is running.
# The CLDR country/region code associated with the above IP address. If the IP
# address is private, the `region_code` should reflect the physical location
# where this peer is running.
# Corresponds to the JSON property `regionCode`
# @return [String]
attr_accessor :region_code
@ -633,16 +606,15 @@ module Google
class ReportRequest
include Google::Apis::Core::Hashable
# Describes the list of operations to be reported. Each operation is
# represented as an AttributeContext, and contains all attributes around an
# API access.
# Describes the list of operations to be reported. Each operation is represented
# as an AttributeContext, and contains all attributes around an API access.
# Corresponds to the JSON property `operations`
# @return [Array<Google::Apis::ServicecontrolV2::AttributeContext>]
attr_accessor :operations
# Specifies the version of the service configuration that should be used to
# process the request. Must not be empty. Set this field to 'latest' to
# specify using the latest configuration.
# process the request. Must not be empty. Set this field to 'latest' to specify
# using the latest configuration.
# Corresponds to the JSON property `serviceConfigId`
# @return [String]
attr_accessor :service_config_id
@ -658,8 +630,8 @@ module Google
end
end
# Response message for the Report method.
# If the request contains any invalid data, the server returns an RPC error.
# Response message for the Report method. If the request contains any invalid
# data, the server returns an RPC error.
class ReportResponse
include Google::Apis::Core::Hashable
@ -672,22 +644,22 @@ module Google
end
end
# This message defines attributes for an HTTP request. If the actual
# request is not an HTTP request, the runtime system should try to map
# the actual request to an equivalent HTTP request.
# This message defines attributes for an HTTP request. If the actual request is
# not an HTTP request, the runtime system should try to map the actual request
# to an equivalent HTTP request.
class Request
include Google::Apis::Core::Hashable
# This message defines request authentication attributes. Terminology is
# based on the JSON Web Token (JWT) standard, but the terms also
# correlate to concepts in other standards.
# This message defines request authentication attributes. Terminology is based
# on the JSON Web Token (JWT) standard, but the terms also correlate to concepts
# in other standards.
# Corresponds to the JSON property `auth`
# @return [Google::Apis::ServicecontrolV2::Auth]
attr_accessor :auth
# The HTTP request headers. If multiple headers share the same key, they
# must be merged according to the HTTP spec. All header keys must be
# lowercased, because HTTP header keys are case-insensitive.
# The HTTP request headers. If multiple headers share the same key, they must be
# merged according to the HTTP spec. All header keys must be lowercased, because
# HTTP header keys are case-insensitive.
# Corresponds to the JSON property `headers`
# @return [Hash<String,String>]
attr_accessor :headers
@ -697,9 +669,9 @@ module Google
# @return [String]
attr_accessor :host
# The unique ID for a request, which can be propagated to downstream
# systems. The ID should have low probability of collision
# within a single day for a specific service.
# The unique ID for a request, which can be propagated to downstream systems.
# The ID should have low probability of collision within a single day for a
# specific service.
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
@ -714,23 +686,22 @@ module Google
# @return [String]
attr_accessor :path
# The network protocol used with the request, such as "http/1.1",
# "spdy/3", "h2", "h2c", "webrtc", "tcp", "udp", "quic". See
# https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-
# values.xhtml#alpn-protocol-ids
# for details.
# The network protocol used with the request, such as "http/1.1", "spdy/3", "h2",
# "h2c", "webrtc", "tcp", "udp", "quic". See https://www.iana.org/assignments/
# tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids for
# details.
# Corresponds to the JSON property `protocol`
# @return [String]
attr_accessor :protocol
# The HTTP URL query in the format of `name1=value1&name2=value2`, as it
# appears in the first line of the HTTP request. No decoding is performed.
# The HTTP URL query in the format of `name1=value1&name2=value2`, as it appears
# in the first line of the HTTP request. No decoding is performed.
# Corresponds to the JSON property `query`
# @return [String]
attr_accessor :query
# A special parameter for request reason. It is used by security systems
# to associate auditing information with a request.
# A special parameter for request reason. It is used by security systems to
# associate auditing information with a request.
# Corresponds to the JSON property `reason`
# @return [String]
attr_accessor :reason
@ -745,8 +716,8 @@ module Google
# @return [Fixnum]
attr_accessor :size
# The timestamp when the `destination` service receives the first byte of
# the request.
# The timestamp when the `destination` service receives the first byte of the
# request.
# Corresponds to the JSON property `time`
# @return [String]
attr_accessor :time
@ -776,55 +747,48 @@ module Google
class RequestMetadata
include Google::Apis::Core::Hashable
# The IP address of the caller.
# For caller from internet, this will be public IPv4 or IPv6 address.
# For caller from a Compute Engine VM with external IP address, this
# will be the VM's external IP address. For caller from a Compute
# Engine VM without external IP address, if the VM is in the same
# organization (or project) as the accessed resource, `caller_ip` will
# be the VM's internal IPv4 address, otherwise the `caller_ip` will be
# redacted to "gce-internal-ip".
# The IP address of the caller. For caller from internet, this will be public
# IPv4 or IPv6 address. For caller from a Compute Engine VM with external IP
# address, this will be the VM's external IP address. For caller from a Compute
# Engine VM without external IP address, if the VM is in the same organization (
# or project) as the accessed resource, `caller_ip` will be the VM's internal
# IPv4 address, otherwise the `caller_ip` will be redacted to "gce-internal-ip".
# See https://cloud.google.com/compute/docs/vpc/ for more information.
# Corresponds to the JSON property `callerIp`
# @return [String]
attr_accessor :caller_ip
# The network of the caller.
# Set only if the network host project is part of the same GCP organization
# (or project) as the accessed resource.
# See https://cloud.google.com/compute/docs/vpc/ for more information.
# This is a scheme-less URI full resource name. For example:
# "//compute.googleapis.com/projects/PROJECT_ID/global/networks/NETWORK_ID"
# The network of the caller. Set only if the network host project is part of the
# same GCP organization (or project) as the accessed resource. See https://cloud.
# google.com/compute/docs/vpc/ for more information. This is a scheme-less URI
# full resource name. For example: "//compute.googleapis.com/projects/PROJECT_ID/
# global/networks/NETWORK_ID"
# Corresponds to the JSON property `callerNetwork`
# @return [String]
attr_accessor :caller_network
# The user agent of the caller.
# This information is not authenticated and should be treated accordingly.
# For example:
# + `google-api-python-client/1.4.0`:
# The request was made by the Google API client for Python.
# + `Cloud SDK Command Line Tool apitools-client/1.0 gcloud/0.9.62`:
# The request was made by the Google Cloud SDK CLI (gcloud).
# + `AppEngine-Google; (+http://code.google.com/appengine; appid:
# s~my-project`:
# The request was made from the `my-project` App Engine app.
# NOLINT
# The user agent of the caller. This information is not authenticated and should
# be treated accordingly. For example: + `google-api-python-client/1.4.0`: The
# request was made by the Google API client for Python. + `Cloud SDK Command
# Line Tool apitools-client/1.0 gcloud/0.9.62`: The request was made by the
# Google Cloud SDK CLI (gcloud). + `AppEngine-Google; (+http://code.google.com/
# appengine; appid: s~my-project`: The request was made from the `my-project`
# App Engine app. NOLINT
# Corresponds to the JSON property `callerSuppliedUserAgent`
# @return [String]
attr_accessor :caller_supplied_user_agent
# This message defines attributes for a node that handles a network request.
# The node can be either a service or an application that sends, forwards,
# or receives the request. Service peers should fill in
# `principal` and `labels` as appropriate.
# This message defines attributes for a node that handles a network request. The
# node can be either a service or an application that sends, forwards, or
# receives the request. Service peers should fill in `principal` and `labels` as
# appropriate.
# Corresponds to the JSON property `destinationAttributes`
# @return [Google::Apis::ServicecontrolV2::Peer]
attr_accessor :destination_attributes
# This message defines attributes for an HTTP request. If the actual
# request is not an HTTP request, the runtime system should try to map
# the actual request to an equivalent HTTP request.
# This message defines attributes for an HTTP request. If the actual request is
# not an HTTP request, the runtime system should try to map the actual request
# to an equivalent HTTP request.
# Corresponds to the JSON property `requestAttributes`
# @return [Google::Apis::ServicecontrolV2::Request]
attr_accessor :request_attributes
@ -844,41 +808,40 @@ module Google
end
# This message defines core attributes for a resource. A resource is an
# addressable (named) entity provided by the destination service. For
# example, a file stored on a network storage service.
# addressable (named) entity provided by the destination service. For example, a
# file stored on a network storage service.
class Resource
include Google::Apis::Core::Hashable
# The labels or tags on the resource, such as AWS resource tags and
# Kubernetes resource labels.
# The labels or tags on the resource, such as AWS resource tags and Kubernetes
# resource labels.
# Corresponds to the JSON property `labels`
# @return [Hash<String,String>]
attr_accessor :labels
# The stable identifier (name) of a resource on the `service`. A resource
# can be logically identified as "//`resource.service`/`resource.name`".
# The differences between a resource name and a URI are:
# * Resource name is a logical identifier, independent of network
# protocol and API version. For example,
# `//pubsub.googleapis.com/projects/123/topics/news-feed`.
# * URI often includes protocol and version information, so it can
# be used directly by applications. For example,
# `https://pubsub.googleapis.com/v1/projects/123/topics/news-feed`.
# See https://cloud.google.com/apis/design/resource_names for details.
# The stable identifier (name) of a resource on the `service`. A resource can be
# logically identified as "//`resource.service`/`resource.name`". The
# differences between a resource name and a URI are: * Resource name is a
# logical identifier, independent of network protocol and API version. For
# example, `//pubsub.googleapis.com/projects/123/topics/news-feed`. * URI often
# includes protocol and version information, so it can be used directly by
# applications. For example, `https://pubsub.googleapis.com/v1/projects/123/
# topics/news-feed`. See https://cloud.google.com/apis/design/resource_names for
# details.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# The name of the service that this resource belongs to, such as
# `pubsub.googleapis.com`. The service may be different from the DNS
# hostname that actually serves the request.
# The name of the service that this resource belongs to, such as `pubsub.
# googleapis.com`. The service may be different from the DNS hostname that
# actually serves the request.
# Corresponds to the JSON property `service`
# @return [String]
attr_accessor :service
# The type of the resource. The syntax is platform-specific because
# different platforms define their resources differently.
# For Google APIs, the type format must be "`service`/`kind`".
# The type of the resource. The syntax is platform-specific because different
# platforms define their resources differently. For Google APIs, the type format
# must be "`service`/`kind`".
# Corresponds to the JSON property `type`
# @return [String]
attr_accessor :type
@ -905,8 +868,8 @@ module Google
# @return [String]
attr_accessor :name
# The resource permission needed for this request.
# The format must be "`service`/`plural`.`verb`".
# The resource permission needed for this request. The format must be "`service`/
# `plural`.`verb`".
# Corresponds to the JSON property `permission`
# @return [String]
attr_accessor :permission
@ -932,24 +895,18 @@ module Google
class ResourceLocation
include Google::Apis::Core::Hashable
# The locations of a resource after the execution of the operation.
# Requests to create or delete a location based resource must populate
# the 'current_locations' field and not the 'original_locations' field.
# For example:
# "europe-west1-a"
# "us-east1"
# "nam3"
# The locations of a resource after the execution of the operation. Requests to
# create or delete a location based resource must populate the '
# current_locations' field and not the 'original_locations' field. For example: "
# europe-west1-a" "us-east1" "nam3"
# Corresponds to the JSON property `currentLocations`
# @return [Array<String>]
attr_accessor :current_locations
# The locations of a resource prior to the execution of the operation.
# Requests that mutate the resource's location must populate both the
# 'original_locations' as well as the 'current_locations' fields.
# For example:
# "europe-west1-a"
# "us-east1"
# "nam3"
# The locations of a resource prior to the execution of the operation. Requests
# that mutate the resource's location must populate both the 'original_locations'
# as well as the 'current_locations' fields. For example: "europe-west1-a" "us-
# east1" "nam3"
# Corresponds to the JSON property `originalLocations`
# @return [Array<String>]
attr_accessor :original_locations
@ -965,8 +922,8 @@ module Google
end
end
# This message defines attributes for a typical network response. It
# generally models semantics of an HTTP response.
# This message defines attributes for a typical network response. It generally
# models semantics of an HTTP response.
class Response
include Google::Apis::Core::Hashable
@ -975,9 +932,9 @@ module Google
# @return [Fixnum]
attr_accessor :code
# The HTTP response headers. If multiple headers share the same key, they
# must be merged according to HTTP spec. All header keys must be
# lowercased, because HTTP header keys are case-insensitive.
# The HTTP response headers. If multiple headers share the same key, they must
# be merged according to HTTP spec. All header keys must be lowercased, because
# HTTP header keys are case-insensitive.
# Corresponds to the JSON property `headers`
# @return [Hash<String,String>]
attr_accessor :headers
@ -987,8 +944,8 @@ module Google
# @return [Fixnum]
attr_accessor :size
# The timestamp when the `destination` service generates the first byte of
# the response.
# The timestamp when the `destination` service generates the first byte of the
# response.
# Corresponds to the JSON property `time`
# @return [String]
attr_accessor :time
@ -1031,20 +988,17 @@ module Google
end
end
# The context of a span, attached to
# Exemplars
# in Distribution values during aggregation.
# It contains the name of a span with format:
# projects/[PROJECT_ID_OR_NUMBER]/traces/[TRACE_ID]/spans/[SPAN_ID]
# The context of a span, attached to Exemplars in Distribution values during
# aggregation. It contains the name of a span with format: projects/[
# PROJECT_ID_OR_NUMBER]/traces/[TRACE_ID]/spans/[SPAN_ID]
class SpanContext
include Google::Apis::Core::Hashable
# The resource name of the span. The format is:
# projects/[PROJECT_ID_OR_NUMBER]/traces/[TRACE_ID]/spans/[SPAN_ID]
# `[TRACE_ID]` is a unique identifier for a trace within a project;
# it is a 32-character hexadecimal encoding of a 16-byte array.
# `[SPAN_ID]` is a unique identifier for a span within a trace; it
# is a 16-character hexadecimal encoding of an 8-byte array.
# The resource name of the span. The format is: projects/[PROJECT_ID_OR_NUMBER]/
# traces/[TRACE_ID]/spans/[SPAN_ID] `[TRACE_ID]` is a unique identifier for a
# trace within a project; it is a 32-character hexadecimal encoding of a 16-byte
# array. `[SPAN_ID]` is a unique identifier for a span within a trace; it is a
# 16-character hexadecimal encoding of an 8-byte array.
# Corresponds to the JSON property `spanName`
# @return [String]
attr_accessor :span_name
@ -1059,12 +1013,12 @@ module Google
end
end
# The `Status` type defines a logical error model that is suitable for
# different programming environments, including REST APIs and RPC APIs. It is
# used by [gRPC](https://github.com/grpc). Each `Status` message contains
# three pieces of data: error code, error message, and error details.
# You can find out more about this error model and how to work with it in the
# [API Design Guide](https://cloud.google.com/apis/design/errors).
# 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 three pieces of
# data: error code, error message, and error details. You can find out more
# about this error model and how to work with it in the [API Design Guide](https:
# //cloud.google.com/apis/design/errors).
class Status
include Google::Apis::Core::Hashable
@ -1079,9 +1033,9 @@ module Google
# @return [Array<Hash<String,Object>>]
attr_accessor :details
# A developer-facing error message, which should be in English. Any
# user-facing error message should be localized and sent in the
# google.rpc.Status.details field, or localized by the client.
# A developer-facing error message, which should be in English. Any user-facing
# error message should be localized and sent in the google.rpc.Status.details
# field, or localized by the client.
# Corresponds to the JSON property `message`
# @return [String]
attr_accessor :message

View File

@ -48,30 +48,25 @@ module Google
@batch_path = 'batch'
end
# Private Preview. This feature is only available for approved services.
# This method provides admission control for services that are integrated
# with [Service Infrastructure](/service-infrastructure). It checks whether
# an operation should be allowed based on the service configuration and
# relevant policies. It must be called before the operation is executed.
# For more information, see
# [Admission Control](/service-infrastructure/docs/admission-control).
# NOTE: The admission control has an expected policy propagation delay of
# 60s. The caller **must** not depend on the most recent policy changes.
# NOTE: The admission control has a hard limit of 1 referenced resources
# per call. If an operation refers to more than 1 resources, the caller
# must call the Check method multiple times.
# This method requires the `servicemanagement.services.check` permission
# on the specified service. For more information, see
# [Service Control API Access
# Control](https://cloud.google.com/service-infrastructure/docs/service-control/
# access-control).
# Private Preview. This feature is only available for approved services. This
# method provides admission control for services that are integrated with [
# Service Infrastructure](/service-infrastructure). It checks whether an
# operation should be allowed based on the service configuration and relevant
# policies. It must be called before the operation is executed. For more
# information, see [Admission Control](/service-infrastructure/docs/admission-
# control). NOTE: The admission control has an expected policy propagation delay
# of 60s. The caller **must** not depend on the most recent policy changes. NOTE:
# The admission control has a hard limit of 1 referenced resources per call. If
# an operation refers to more than 1 resources, the caller must call the Check
# method multiple times. This method requires the `servicemanagement.services.
# check` permission on the specified service. For more information, see [Service
# Control API Access Control](https://cloud.google.com/service-infrastructure/
# docs/service-control/access-control).
# @param [String] service_name
# The service name as specified in its service configuration. For example,
# `"pubsub.googleapis.com"`.
# See
# [google.api.Service](https://cloud.google.com/service-management/reference/rpc/
# google.api#google.api.Service)
# for the definition of a service name.
# The service name as specified in its service configuration. For example, `"
# pubsub.googleapis.com"`. See [google.api.Service](https://cloud.google.com/
# service-management/reference/rpc/google.api#google.api.Service) for the
# definition of a service name.
# @param [Google::Apis::ServicecontrolV2::CheckRequest] check_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -102,27 +97,22 @@ module Google
execute_or_queue_command(command, &block)
end
# Private Preview. This feature is only available for approved services.
# This method provides telemetry reporting for services that are integrated
# with [Service Infrastructure](/service-infrastructure). It reports a list
# of operations that have occurred on a service. It must be called after the
# operations have been executed. For more information, see
# [Telemetry Reporting](/service-infrastructure/docs/telemetry-reporting).
# NOTE: The telemetry reporting has a hard limit of 1000 operations and 1MB
# per Report call. It is recommended to have no more than 100 operations per
# call.
# This method requires the `servicemanagement.services.report` permission
# on the specified service. For more information, see
# [Service Control API Access
# Control](https://cloud.google.com/service-infrastructure/docs/service-control/
# access-control).
# Private Preview. This feature is only available for approved services. This
# method provides telemetry reporting for services that are integrated with [
# Service Infrastructure](/service-infrastructure). It reports a list of
# operations that have occurred on a service. It must be called after the
# operations have been executed. For more information, see [Telemetry Reporting](
# /service-infrastructure/docs/telemetry-reporting). NOTE: The telemetry
# reporting has a hard limit of 1000 operations and 1MB per Report call. It is
# recommended to have no more than 100 operations per call. This method requires
# the `servicemanagement.services.report` permission on the specified service.
# For more information, see [Service Control API Access Control](https://cloud.
# google.com/service-infrastructure/docs/service-control/access-control).
# @param [String] service_name
# The service name as specified in its service configuration. For example,
# `"pubsub.googleapis.com"`.
# See
# [google.api.Service](https://cloud.google.com/service-management/reference/rpc/
# google.api#google.api.Service)
# for the definition of a service name.
# The service name as specified in its service configuration. For example, `"
# pubsub.googleapis.com"`. See [google.api.Service](https://cloud.google.com/
# service-management/reference/rpc/google.api#google.api.Service) for the
# definition of a service name.
# @param [Google::Apis::ServicecontrolV2::ReportRequest] report_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/text-to-speech/
module TexttospeechV1
VERSION = 'V1'
REVISION = '20200619'
REVISION = '20200807'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -32,18 +32,17 @@ module Google
attr_accessor :audio_encoding
# Optional. Input only. An identifier which selects 'audio effects' profiles
# that are applied on (post synthesized) text to speech. Effects are applied
# on top of each other in the order they are given. See
# [audio
# profiles](https://cloud.google.com/text-to-speech/docs/audio-profiles) for
# current supported profile ids.
# that are applied on (post synthesized) text to speech. Effects are applied on
# top of each other in the order they are given. See [audio profiles](https://
# cloud.google.com/text-to-speech/docs/audio-profiles) for current supported
# profile ids.
# Corresponds to the JSON property `effectsProfileId`
# @return [Array<String>]
attr_accessor :effects_profile_id
# Optional. Input only. Speaking pitch, in the range [-20.0, 20.0]. 20 means
# increase 20 semitones from the original pitch. -20 means decrease 20
# semitones from the original pitch.
# increase 20 semitones from the original pitch. -20 means decrease 20 semitones
# from the original pitch.
# Corresponds to the JSON property `pitch`
# @return [Float]
attr_accessor :pitch
@ -52,29 +51,29 @@ module Google
# specified in SynthesizeSpeechRequest, if this is different from the voice's
# natural sample rate, then the synthesizer will honor this request by
# converting to the desired sample rate (which might result in worse audio
# quality), unless the specified sample rate is not supported for the
# encoding chosen, in which case it will fail the request and return
# google.rpc.Code.INVALID_ARGUMENT.
# quality), unless the specified sample rate is not supported for the encoding
# chosen, in which case it will fail the request and return google.rpc.Code.
# INVALID_ARGUMENT.
# Corresponds to the JSON property `sampleRateHertz`
# @return [Fixnum]
attr_accessor :sample_rate_hertz
# Optional. Input only. Speaking rate/speed, in the range [0.25, 4.0]. 1.0 is
# the normal native speed supported by the specific voice. 2.0 is twice as
# fast, and 0.5 is half as fast. If unset(0.0), defaults to the native 1.0
# speed. Any other values < 0.25 or > 4.0 will return an error.
# the normal native speed supported by the specific voice. 2.0 is twice as fast,
# and 0.5 is half as fast. If unset(0.0), defaults to the native 1.0 speed. Any
# other values < 0.25 or > 4.0 will return an error.
# Corresponds to the JSON property `speakingRate`
# @return [Float]
attr_accessor :speaking_rate
# Optional. Input only. Volume gain (in dB) of the normal native volume
# supported by the specific voice, in the range [-96.0, 16.0]. If unset, or
# set to a value of 0.0 (dB), will play at normal native signal amplitude. A
# value of -6.0 (dB) will play at approximately half the amplitude of the
# normal native signal amplitude. A value of +6.0 (dB) will play at
# approximately twice the amplitude of the normal native signal amplitude.
# Strongly recommend not to exceed +10 (dB) as there's usually no effective
# increase in loudness for any value greater than that.
# supported by the specific voice, in the range [-96.0, 16.0]. If unset, or set
# to a value of 0.0 (dB), will play at normal native signal amplitude. A value
# of -6.0 (dB) will play at approximately half the amplitude of the normal
# native signal amplitude. A value of +6.0 (dB) will play at approximately twice
# the amplitude of the normal native signal amplitude. Strongly recommend not to
# exceed +10 (dB) as there's usually no effective increase in loudness for any
# value greater than that.
# Corresponds to the JSON property `volumeGainDb`
# @return [Float]
attr_accessor :volume_gain_db
@ -114,16 +113,15 @@ module Google
end
# Contains text input to be synthesized. Either `text` or `ssml` must be
# supplied. Supplying both or neither returns
# google.rpc.Code.INVALID_ARGUMENT. The input size is limited to 5000
# characters.
# supplied. Supplying both or neither returns google.rpc.Code.INVALID_ARGUMENT.
# The input size is limited to 5000 characters.
class SynthesisInput
include Google::Apis::Core::Hashable
# The SSML document to be synthesized. The SSML document must be valid
# and well-formed. Otherwise the RPC will fail and return
# google.rpc.Code.INVALID_ARGUMENT. For more information, see
# [SSML](https://cloud.google.com/text-to-speech/docs/ssml).
# The SSML document to be synthesized. The SSML document must be valid and well-
# formed. Otherwise the RPC will fail and return google.rpc.Code.
# INVALID_ARGUMENT. For more information, see [SSML](https://cloud.google.com/
# text-to-speech/docs/ssml).
# Corresponds to the JSON property `ssml`
# @return [String]
attr_accessor :ssml
@ -154,9 +152,8 @@ module Google
attr_accessor :audio_config
# Contains text input to be synthesized. Either `text` or `ssml` must be
# supplied. Supplying both or neither returns
# google.rpc.Code.INVALID_ARGUMENT. The input size is limited to 5000
# characters.
# supplied. Supplying both or neither returns google.rpc.Code.INVALID_ARGUMENT.
# The input size is limited to 5000 characters.
# Corresponds to the JSON property `input`
# @return [Google::Apis::TexttospeechV1::SynthesisInput]
attr_accessor :input
@ -182,11 +179,11 @@ module Google
class SynthesizeSpeechResponse
include Google::Apis::Core::Hashable
# The audio data bytes encoded as specified in the request, including the
# header for encodings that are wrapped in containers (e.g. MP3, OGG_OPUS).
# For LINEAR16 audio, we include the WAV header. Note: as
# with all bytes fields, protobuffers use a pure binary representation,
# whereas JSON representations use base64.
# The audio data bytes encoded as specified in the request, including the header
# for encodings that are wrapped in containers (e.g. MP3, OGG_OPUS). For
# LINEAR16 audio, we include the WAV header. Note: as with all bytes fields,
# protobuffers use a pure binary representation, whereas JSON representations
# use base64.
# Corresponds to the JSON property `audioContent`
# NOTE: Values are automatically base64 encoded/decoded in the client library.
# @return [String]
@ -206,9 +203,8 @@ module Google
class Voice
include Google::Apis::Core::Hashable
# The languages that this voice supports, expressed as
# [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags (e.g.
# "en-US", "es-419", "cmn-tw").
# The languages that this voice supports, expressed as [BCP-47](https://www.rfc-
# editor.org/rfc/bcp/bcp47.txt) language tags (e.g. "en-US", "es-419", "cmn-tw").
# Corresponds to the JSON property `languageCodes`
# @return [Array<String>]
attr_accessor :language_codes
@ -246,32 +242,30 @@ module Google
include Google::Apis::Core::Hashable
# Required. The language (and potentially also the region) of the voice
# expressed as a
# [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag, e.g.
# "en-US". This should not include a script tag (e.g. use
# "cmn-cn" rather than "cmn-Hant-cn"), because the script will be inferred
# from the input provided in the SynthesisInput. The TTS service
# will use this parameter to help choose an appropriate voice. Note that
# the TTS service may choose a voice with a slightly different language code
# than the one selected; it may substitute a different region
# (e.g. using en-US rather than en-CA if there isn't a Canadian voice
# available), or even a different language, e.g. using "nb" (Norwegian
# Bokmal) instead of "no" (Norwegian)".
# expressed as a [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language
# tag, e.g. "en-US". This should not include a script tag (e.g. use "cmn-cn"
# rather than "cmn-Hant-cn"), because the script will be inferred from the input
# provided in the SynthesisInput. The TTS service will use this parameter to
# help choose an appropriate voice. Note that the TTS service may choose a voice
# with a slightly different language code than the one selected; it may
# substitute a different region (e.g. using en-US rather than en-CA if there isn'
# t a Canadian voice available), or even a different language, e.g. using "nb" (
# Norwegian Bokmal) instead of "no" (Norwegian)".
# Corresponds to the JSON property `languageCode`
# @return [String]
attr_accessor :language_code
# The name of the voice. If not set, the service will choose a
# voice based on the other parameters such as language_code and gender.
# The name of the voice. If not set, the service will choose a voice based on
# the other parameters such as language_code and gender.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# The preferred gender of the voice. If not set, the service will
# choose a voice based on the other parameters such as language_code and
# name. Note that this is only a preference, not requirement; if a
# voice of the appropriate gender is not available, the synthesizer should
# substitute a voice with a different gender rather than failing the request.
# The preferred gender of the voice. If not set, the service will choose a voice
# based on the other parameters such as language_code and name. Note that this
# is only a preference, not requirement; if a voice of the appropriate gender is
# not available, the synthesizer should substitute a voice with a different
# gender rather than failing the request.
# Corresponds to the JSON property `ssmlGender`
# @return [String]
attr_accessor :ssml_gender

View File

@ -47,8 +47,8 @@ module Google
@batch_path = 'batch'
end
# Synthesizes speech synchronously: receive results after all text input
# has been processed.
# Synthesizes speech synchronously: receive results after all text input has
# been processed.
# @param [Google::Apis::TexttospeechV1::SynthesizeSpeechRequest] synthesize_speech_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -80,13 +80,12 @@ module Google
# Returns a list of Voice supported for synthesis.
# @param [String] language_code
# Optional. Recommended.
# [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. If
# specified, the ListVoices call will only return voices that can be used to
# synthesize this language_code. E.g. when specifying "en-NZ", you will get
# supported "en-*" voices; when specifying "no", you will get supported
# "no-*" (Norwegian) and "nb-*" (Norwegian Bokmal) voices; specifying "zh"
# will also get supported "cmn-*" voices; specifying "zh-hk" will also get
# Optional. Recommended. [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt)
# language tag. If specified, the ListVoices call will only return voices that
# can be used to synthesize this language_code. E.g. when specifying "en-NZ",
# you will get supported "en-*" voices; when specifying "no", you will get
# supported "no-*" (Norwegian) and "nb-*" (Norwegian Bokmal) voices; specifying "
# zh" will also get supported "cmn-*" voices; specifying "zh-hk" will also get
# supported "yue-*" voices.
# @param [String] fields
# Selector specifying which fields to include in a partial response.

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/text-to-speech/
module TexttospeechV1beta1
VERSION = 'V1beta1'
REVISION = '20200731'
REVISION = '20200807'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -32,18 +32,17 @@ module Google
attr_accessor :audio_encoding
# Optional. Input only. An identifier which selects 'audio effects' profiles
# that are applied on (post synthesized) text to speech. Effects are applied
# on top of each other in the order they are given. See
# [audio
# profiles](https://cloud.google.com/text-to-speech/docs/audio-profiles) for
# current supported profile ids.
# that are applied on (post synthesized) text to speech. Effects are applied on
# top of each other in the order they are given. See [audio profiles](https://
# cloud.google.com/text-to-speech/docs/audio-profiles) for current supported
# profile ids.
# Corresponds to the JSON property `effectsProfileId`
# @return [Array<String>]
attr_accessor :effects_profile_id
# Optional. Input only. Speaking pitch, in the range [-20.0, 20.0]. 20 means
# increase 20 semitones from the original pitch. -20 means decrease 20
# semitones from the original pitch.
# increase 20 semitones from the original pitch. -20 means decrease 20 semitones
# from the original pitch.
# Corresponds to the JSON property `pitch`
# @return [Float]
attr_accessor :pitch
@ -52,29 +51,29 @@ module Google
# specified in SynthesizeSpeechRequest, if this is different from the voice's
# natural sample rate, then the synthesizer will honor this request by
# converting to the desired sample rate (which might result in worse audio
# quality), unless the specified sample rate is not supported for the
# encoding chosen, in which case it will fail the request and return
# google.rpc.Code.INVALID_ARGUMENT.
# quality), unless the specified sample rate is not supported for the encoding
# chosen, in which case it will fail the request and return google.rpc.Code.
# INVALID_ARGUMENT.
# Corresponds to the JSON property `sampleRateHertz`
# @return [Fixnum]
attr_accessor :sample_rate_hertz
# Optional. Input only. Speaking rate/speed, in the range [0.25, 4.0]. 1.0 is
# the normal native speed supported by the specific voice. 2.0 is twice as
# fast, and 0.5 is half as fast. If unset(0.0), defaults to the native 1.0
# speed. Any other values < 0.25 or > 4.0 will return an error.
# the normal native speed supported by the specific voice. 2.0 is twice as fast,
# and 0.5 is half as fast. If unset(0.0), defaults to the native 1.0 speed. Any
# other values < 0.25 or > 4.0 will return an error.
# Corresponds to the JSON property `speakingRate`
# @return [Float]
attr_accessor :speaking_rate
# Optional. Input only. Volume gain (in dB) of the normal native volume
# supported by the specific voice, in the range [-96.0, 16.0]. If unset, or
# set to a value of 0.0 (dB), will play at normal native signal amplitude. A
# value of -6.0 (dB) will play at approximately half the amplitude of the
# normal native signal amplitude. A value of +6.0 (dB) will play at
# approximately twice the amplitude of the normal native signal amplitude.
# Strongly recommend not to exceed +10 (dB) as there's usually no effective
# increase in loudness for any value greater than that.
# supported by the specific voice, in the range [-96.0, 16.0]. If unset, or set
# to a value of 0.0 (dB), will play at normal native signal amplitude. A value
# of -6.0 (dB) will play at approximately half the amplitude of the normal
# native signal amplitude. A value of +6.0 (dB) will play at approximately twice
# the amplitude of the normal native signal amplitude. Strongly recommend not to
# exceed +10 (dB) as there's usually no effective increase in loudness for any
# value greater than that.
# Corresponds to the JSON property `volumeGainDb`
# @return [Float]
attr_accessor :volume_gain_db
@ -114,16 +113,15 @@ module Google
end
# Contains text input to be synthesized. Either `text` or `ssml` must be
# supplied. Supplying both or neither returns
# google.rpc.Code.INVALID_ARGUMENT. The input size is limited to 5000
# characters.
# supplied. Supplying both or neither returns google.rpc.Code.INVALID_ARGUMENT.
# The input size is limited to 5000 characters.
class SynthesisInput
include Google::Apis::Core::Hashable
# The SSML document to be synthesized. The SSML document must be valid
# and well-formed. Otherwise the RPC will fail and return
# google.rpc.Code.INVALID_ARGUMENT. For more information, see
# [SSML](https://cloud.google.com/text-to-speech/docs/ssml).
# The SSML document to be synthesized. The SSML document must be valid and well-
# formed. Otherwise the RPC will fail and return google.rpc.Code.
# INVALID_ARGUMENT. For more information, see [SSML](https://cloud.google.com/
# text-to-speech/docs/ssml).
# Corresponds to the JSON property `ssml`
# @return [String]
attr_accessor :ssml
@ -159,9 +157,8 @@ module Google
attr_accessor :enable_time_pointing
# Contains text input to be synthesized. Either `text` or `ssml` must be
# supplied. Supplying both or neither returns
# google.rpc.Code.INVALID_ARGUMENT. The input size is limited to 5000
# characters.
# supplied. Supplying both or neither returns google.rpc.Code.INVALID_ARGUMENT.
# The input size is limited to 5000 characters.
# Corresponds to the JSON property `input`
# @return [Google::Apis::TexttospeechV1beta1::SynthesisInput]
attr_accessor :input
@ -193,18 +190,18 @@ module Google
# @return [Google::Apis::TexttospeechV1beta1::AudioConfig]
attr_accessor :audio_config
# The audio data bytes encoded as specified in the request, including the
# header for encodings that are wrapped in containers (e.g. MP3, OGG_OPUS).
# For LINEAR16 audio, we include the WAV header. Note: as
# with all bytes fields, protobuffers use a pure binary representation,
# whereas JSON representations use base64.
# The audio data bytes encoded as specified in the request, including the header
# for encodings that are wrapped in containers (e.g. MP3, OGG_OPUS). For
# LINEAR16 audio, we include the WAV header. Note: as with all bytes fields,
# protobuffers use a pure binary representation, whereas JSON representations
# use base64.
# Corresponds to the JSON property `audioContent`
# NOTE: Values are automatically base64 encoded/decoded in the client library.
# @return [String]
attr_accessor :audio_content
# A link between a position in the original request input and a corresponding
# time in the output audio. It's only supported via <mark> of SSML input.
# time in the output audio. It's only supported via of SSML input.
# Corresponds to the JSON property `timepoints`
# @return [Array<Google::Apis::TexttospeechV1beta1::Timepoint>]
attr_accessor :timepoints
@ -226,7 +223,7 @@ module Google
class Timepoint
include Google::Apis::Core::Hashable
# Timepoint name as received from the client within <mark> tag.
# Timepoint name as received from the client within tag.
# Corresponds to the JSON property `markName`
# @return [String]
attr_accessor :mark_name
@ -251,9 +248,8 @@ module Google
class Voice
include Google::Apis::Core::Hashable
# The languages that this voice supports, expressed as
# [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags (e.g.
# "en-US", "es-419", "cmn-tw").
# The languages that this voice supports, expressed as [BCP-47](https://www.rfc-
# editor.org/rfc/bcp/bcp47.txt) language tags (e.g. "en-US", "es-419", "cmn-tw").
# Corresponds to the JSON property `languageCodes`
# @return [Array<String>]
attr_accessor :language_codes
@ -291,32 +287,30 @@ module Google
include Google::Apis::Core::Hashable
# Required. The language (and potentially also the region) of the voice
# expressed as a
# [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag, e.g.
# "en-US". This should not include a script tag (e.g. use
# "cmn-cn" rather than "cmn-Hant-cn"), because the script will be inferred
# from the input provided in the SynthesisInput. The TTS service
# will use this parameter to help choose an appropriate voice. Note that
# the TTS service may choose a voice with a slightly different language code
# than the one selected; it may substitute a different region
# (e.g. using en-US rather than en-CA if there isn't a Canadian voice
# available), or even a different language, e.g. using "nb" (Norwegian
# Bokmal) instead of "no" (Norwegian)".
# expressed as a [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language
# tag, e.g. "en-US". This should not include a script tag (e.g. use "cmn-cn"
# rather than "cmn-Hant-cn"), because the script will be inferred from the input
# provided in the SynthesisInput. The TTS service will use this parameter to
# help choose an appropriate voice. Note that the TTS service may choose a voice
# with a slightly different language code than the one selected; it may
# substitute a different region (e.g. using en-US rather than en-CA if there isn'
# t a Canadian voice available), or even a different language, e.g. using "nb" (
# Norwegian Bokmal) instead of "no" (Norwegian)".
# Corresponds to the JSON property `languageCode`
# @return [String]
attr_accessor :language_code
# The name of the voice. If not set, the service will choose a
# voice based on the other parameters such as language_code and gender.
# The name of the voice. If not set, the service will choose a voice based on
# the other parameters such as language_code and gender.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# The preferred gender of the voice. If not set, the service will
# choose a voice based on the other parameters such as language_code and
# name. Note that this is only a preference, not requirement; if a
# voice of the appropriate gender is not available, the synthesizer should
# substitute a voice with a different gender rather than failing the request.
# The preferred gender of the voice. If not set, the service will choose a voice
# based on the other parameters such as language_code and name. Note that this
# is only a preference, not requirement; if a voice of the appropriate gender is
# not available, the synthesizer should substitute a voice with a different
# gender rather than failing the request.
# Corresponds to the JSON property `ssmlGender`
# @return [String]
attr_accessor :ssml_gender

View File

@ -47,8 +47,8 @@ module Google
@batch_path = 'batch'
end
# Synthesizes speech synchronously: receive results after all text input
# has been processed.
# Synthesizes speech synchronously: receive results after all text input has
# been processed.
# @param [Google::Apis::TexttospeechV1beta1::SynthesizeSpeechRequest] synthesize_speech_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -80,13 +80,12 @@ module Google
# Returns a list of Voice supported for synthesis.
# @param [String] language_code
# Optional. Recommended.
# [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. If
# specified, the ListVoices call will only return voices that can be used to
# synthesize this language_code. E.g. when specifying "en-NZ", you will get
# supported "en-*" voices; when specifying "no", you will get supported
# "no-*" (Norwegian) and "nb-*" (Norwegian Bokmal) voices; specifying "zh"
# will also get supported "cmn-*" voices; specifying "zh-hk" will also get
# Optional. Recommended. [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt)
# language tag. If specified, the ListVoices call will only return voices that
# can be used to synthesize this language_code. E.g. when specifying "en-NZ",
# you will get supported "en-*" voices; when specifying "no", you will get
# supported "no-*" (Norwegian) and "nb-*" (Norwegian Bokmal) voices; specifying "
# zh" will also get supported "cmn-*" voices; specifying "zh-hk" will also get
# supported "yue-*" voices.
# @param [String] fields
# Selector specifying which fields to include in a partial response.

View File

@ -27,7 +27,7 @@ module Google
# @see https://cloud.google.com/video-intelligence/docs/
module VideointelligenceV1
VERSION = 'V1'
REVISION = '20200602'
REVISION = '20200810'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

File diff suppressed because it is too large Load Diff

View File

@ -49,15 +49,13 @@ module Google
@batch_path = 'batch'
end
# Starts asynchronous cancellation on a long-running operation. The server
# makes a best effort to cancel the operation, but success is not
# guaranteed. If the server doesn't support this method, it returns
# `google.rpc.Code.UNIMPLEMENTED`. Clients can use
# Operations.GetOperation or
# other methods to check whether the cancellation succeeded or whether the
# operation completed despite cancellation. On successful cancellation,
# the operation is not deleted; instead, it becomes an operation with
# an Operation.error value with a google.rpc.Status.code of 1,
# Starts asynchronous cancellation on a long-running operation. The server makes
# a best effort to cancel the operation, but success is not guaranteed. If the
# server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
# Clients can use Operations.GetOperation or other methods to check whether the
# cancellation succeeded or whether the operation completed despite cancellation.
# On successful cancellation, the operation is not deleted; instead, it becomes
# an operation with an Operation.error value with a google.rpc.Status.code of 1,
# corresponding to `Code.CANCELLED`.
# @param [String] name
# The name of the operation resource to be cancelled.
@ -88,10 +86,10 @@ module Google
execute_or_queue_command(command, &block)
end
# Deletes a long-running operation. This method indicates that the client is
# no longer interested in the operation result. It does not cancel the
# operation. If the server doesn't support this method, it returns
# `google.rpc.Code.UNIMPLEMENTED`.
# Deletes a long-running operation. This method indicates that the client is no
# longer interested in the operation result. It does not cancel the operation.
# If the server doesn't support this method, it returns `google.rpc.Code.
# UNIMPLEMENTED`.
# @param [String] name
# The name of the operation resource to be deleted.
# @param [String] fields
@ -121,9 +119,8 @@ module Google
execute_or_queue_command(command, &block)
end
# Gets the latest state of a long-running operation. Clients can use this
# method to poll the operation result at intervals as recommended by the API
# service.
# Gets the latest state of a long-running operation. Clients can use this method
# to poll the operation result at intervals as recommended by the API service.
# @param [String] name
# The name of the operation resource.
# @param [String] fields
@ -153,9 +150,8 @@ module Google
execute_or_queue_command(command, &block)
end
# Gets the latest state of a long-running operation. Clients can use this
# method to poll the operation result at intervals as recommended by the API
# service.
# Gets the latest state of a long-running operation. Clients can use this method
# to poll the operation result at intervals as recommended by the API service.
# @param [String] name
# The name of the operation resource.
# @param [String] fields
@ -185,15 +181,13 @@ module Google
execute_or_queue_command(command, &block)
end
# Starts asynchronous cancellation on a long-running operation. The server
# makes a best effort to cancel the operation, but success is not
# guaranteed. If the server doesn't support this method, it returns
# `google.rpc.Code.UNIMPLEMENTED`. Clients can use
# Operations.GetOperation or
# other methods to check whether the cancellation succeeded or whether the
# operation completed despite cancellation. On successful cancellation,
# the operation is not deleted; instead, it becomes an operation with
# an Operation.error value with a google.rpc.Status.code of 1,
# Starts asynchronous cancellation on a long-running operation. The server makes
# a best effort to cancel the operation, but success is not guaranteed. If the
# server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
# Clients can use Operations.GetOperation or other methods to check whether the
# cancellation succeeded or whether the operation completed despite cancellation.
# On successful cancellation, the operation is not deleted; instead, it becomes
# an operation with an Operation.error value with a google.rpc.Status.code of 1,
# corresponding to `Code.CANCELLED`.
# @param [String] name
# The name of the operation resource to be cancelled.
@ -227,10 +221,10 @@ module Google
execute_or_queue_command(command, &block)
end
# Deletes a long-running operation. This method indicates that the client is
# no longer interested in the operation result. It does not cancel the
# operation. If the server doesn't support this method, it returns
# `google.rpc.Code.UNIMPLEMENTED`.
# Deletes a long-running operation. This method indicates that the client is no
# longer interested in the operation result. It does not cancel the operation.
# If the server doesn't support this method, it returns `google.rpc.Code.
# UNIMPLEMENTED`.
# @param [String] name
# The name of the operation resource to be deleted.
# @param [String] fields
@ -260,9 +254,8 @@ module Google
execute_or_queue_command(command, &block)
end
# Gets the latest state of a long-running operation. Clients can use this
# method to poll the operation result at intervals as recommended by the API
# service.
# Gets the latest state of a long-running operation. Clients can use this method
# to poll the operation result at intervals as recommended by the API service.
# @param [String] name
# The name of the operation resource.
# @param [String] fields
@ -292,15 +285,14 @@ module Google
execute_or_queue_command(command, &block)
end
# Lists operations that match the specified filter in the request. If the
# server doesn't support this method, it returns `UNIMPLEMENTED`.
# NOTE: the `name` binding allows API services to override the binding
# to use different resource name schemes, such as `users/*/operations`. To
# override the binding, API services can add a binding such as
# `"/v1/`name=users/*`/operations"` to their service configuration.
# For backwards compatibility, the default name includes the operations
# collection id, however overriding users must ensure the name binding
# is the parent resource, without the operations collection id.
# Lists operations that match the specified filter in the request. If the server
# doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name`
# binding allows API services to override the binding to use different resource
# name schemes, such as `users/*/operations`. To override the binding, API
# services can add a binding such as `"/v1/`name=users/*`/operations"` to their
# service configuration. For backwards compatibility, the default name includes
# the operations collection id, however overriding users must ensure the name
# binding is the parent resource, without the operations collection id.
# @param [String] name
# The name of the operation's parent resource.
# @param [String] filter
@ -339,10 +331,10 @@ module Google
execute_or_queue_command(command, &block)
end
# Performs asynchronous video annotation. Progress and results can be
# retrieved through the `google.longrunning.Operations` interface.
# `Operation.metadata` contains `AnnotateVideoProgress` (progress).
# `Operation.response` contains `AnnotateVideoResponse` (results).
# Performs asynchronous video annotation. Progress and results can be retrieved
# through the `google.longrunning.Operations` interface. `Operation.metadata`
# contains `AnnotateVideoProgress` (progress). `Operation.response` contains `
# AnnotateVideoResponse` (results).
# @param [Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1AnnotateVideoRequest] google_cloud_videointelligence_v1_annotate_video_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.

View File

@ -27,7 +27,7 @@ module Google
# @see https://cloud.google.com/video-intelligence/docs/
module VideointelligenceV1beta2
VERSION = 'V1beta2'
REVISION = '20200602'
REVISION = '20200810'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

File diff suppressed because it is too large Load Diff

View File

@ -49,10 +49,10 @@ module Google
@batch_path = 'batch'
end
# Performs asynchronous video annotation. Progress and results can be
# retrieved through the `google.longrunning.Operations` interface.
# `Operation.metadata` contains `AnnotateVideoProgress` (progress).
# `Operation.response` contains `AnnotateVideoResponse` (results).
# Performs asynchronous video annotation. Progress and results can be retrieved
# through the `google.longrunning.Operations` interface. `Operation.metadata`
# contains `AnnotateVideoProgress` (progress). `Operation.response` contains `
# AnnotateVideoResponse` (results).
# @param [Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1beta2AnnotateVideoRequest] google_cloud_videointelligence_v1beta2_annotate_video_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.

View File

@ -27,7 +27,7 @@ module Google
# @see https://cloud.google.com/video-intelligence/docs/
module VideointelligenceV1p1beta1
VERSION = 'V1p1beta1'
REVISION = '20200602'
REVISION = '20200810'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

File diff suppressed because it is too large Load Diff

View File

@ -49,10 +49,10 @@ module Google
@batch_path = 'batch'
end
# Performs asynchronous video annotation. Progress and results can be
# retrieved through the `google.longrunning.Operations` interface.
# `Operation.metadata` contains `AnnotateVideoProgress` (progress).
# `Operation.response` contains `AnnotateVideoResponse` (results).
# Performs asynchronous video annotation. Progress and results can be retrieved
# through the `google.longrunning.Operations` interface. `Operation.metadata`
# contains `AnnotateVideoProgress` (progress). `Operation.response` contains `
# AnnotateVideoResponse` (results).
# @param [Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p1beta1AnnotateVideoRequest] google_cloud_videointelligence_v1p1beta1_annotate_video_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.

View File

@ -27,7 +27,7 @@ module Google
# @see https://cloud.google.com/video-intelligence/docs/
module VideointelligenceV1p2beta1
VERSION = 'V1p2beta1'
REVISION = '20200602'
REVISION = '20200810'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

File diff suppressed because it is too large Load Diff

View File

@ -49,10 +49,10 @@ module Google
@batch_path = 'batch'
end
# Performs asynchronous video annotation. Progress and results can be
# retrieved through the `google.longrunning.Operations` interface.
# `Operation.metadata` contains `AnnotateVideoProgress` (progress).
# `Operation.response` contains `AnnotateVideoResponse` (results).
# Performs asynchronous video annotation. Progress and results can be retrieved
# through the `google.longrunning.Operations` interface. `Operation.metadata`
# contains `AnnotateVideoProgress` (progress). `Operation.response` contains `
# AnnotateVideoResponse` (results).
# @param [Google::Apis::VideointelligenceV1p2beta1::GoogleCloudVideointelligenceV1p2beta1AnnotateVideoRequest] google_cloud_videointelligence_v1p2beta1_annotate_video_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.