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/nodeIpv4CidrSize": node_ipv4_cidr_size
"/container:v1beta1/Cluster/nodePools": node_pools "/container:v1beta1/Cluster/nodePools": node_pools
"/container:v1beta1/Cluster/nodePools/node_pool": node_pool "/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/podSecurityPolicyConfig": pod_security_policy_config
"/container:v1beta1/Cluster/privateCluster": private_cluster "/container:v1beta1/Cluster/privateCluster": private_cluster
"/container:v1beta1/Cluster/privateClusterConfig": private_cluster_config "/container:v1beta1/Cluster/privateClusterConfig": private_cluster_config
@ -50797,6 +50798,7 @@
"/container:v1beta1/ClusterUpdate/desiredClusterAutoscaling": desired_cluster_autoscaling "/container:v1beta1/ClusterUpdate/desiredClusterAutoscaling": desired_cluster_autoscaling
"/container:v1beta1/ClusterUpdate/desiredClusterTelemetry": desired_cluster_telemetry "/container:v1beta1/ClusterUpdate/desiredClusterTelemetry": desired_cluster_telemetry
"/container:v1beta1/ClusterUpdate/desiredDatabaseEncryption": desired_database_encryption "/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/desiredDefaultSnatStatus": desired_default_snat_status
"/container:v1beta1/ClusterUpdate/desiredImageType": desired_image_type "/container:v1beta1/ClusterUpdate/desiredImageType": desired_image_type
"/container:v1beta1/ClusterUpdate/desiredIntraNodeVisibilityConfig": desired_intra_node_visibility_config "/container:v1beta1/ClusterUpdate/desiredIntraNodeVisibilityConfig": desired_intra_node_visibility_config
@ -50810,6 +50812,7 @@
"/container:v1beta1/ClusterUpdate/desiredNodePoolAutoscaling": desired_node_pool_autoscaling "/container:v1beta1/ClusterUpdate/desiredNodePoolAutoscaling": desired_node_pool_autoscaling
"/container:v1beta1/ClusterUpdate/desiredNodePoolId": desired_node_pool_id "/container:v1beta1/ClusterUpdate/desiredNodePoolId": desired_node_pool_id
"/container:v1beta1/ClusterUpdate/desiredNodeVersion": desired_node_version "/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/desiredPodSecurityPolicyConfig": desired_pod_security_policy_config
"/container:v1beta1/ClusterUpdate/desiredPrivateClusterConfig": desired_private_cluster_config "/container:v1beta1/ClusterUpdate/desiredPrivateClusterConfig": desired_private_cluster_config
"/container:v1beta1/ClusterUpdate/desiredReleaseChannel": desired_release_channel "/container:v1beta1/ClusterUpdate/desiredReleaseChannel": desired_release_channel
@ -50987,6 +50990,7 @@
"/container:v1beta1/Metric/name": name "/container:v1beta1/Metric/name": name
"/container:v1beta1/Metric/stringValue": string_value "/container:v1beta1/Metric/stringValue": string_value
"/container:v1beta1/NetworkConfig": network_config "/container:v1beta1/NetworkConfig": network_config
"/container:v1beta1/NetworkConfig/datapathProvider": datapath_provider
"/container:v1beta1/NetworkConfig/defaultSnatStatus": default_snat_status "/container:v1beta1/NetworkConfig/defaultSnatStatus": default_snat_status
"/container:v1beta1/NetworkConfig/enableIntraNodeVisibility": enable_intra_node_visibility "/container:v1beta1/NetworkConfig/enableIntraNodeVisibility": enable_intra_node_visibility
"/container:v1beta1/NetworkConfig/network": network "/container:v1beta1/NetworkConfig/network": network
@ -51061,11 +51065,14 @@
"/container:v1beta1/NodeTaint/effect": effect "/container:v1beta1/NodeTaint/effect": effect
"/container:v1beta1/NodeTaint/key": key "/container:v1beta1/NodeTaint/key": key
"/container:v1beta1/NodeTaint/value": value "/container:v1beta1/NodeTaint/value": value
"/container:v1beta1/NotificationConfig": notification_config
"/container:v1beta1/NotificationConfig/pubsub": pubsub
"/container:v1beta1/Operation": operation "/container:v1beta1/Operation": operation
"/container:v1beta1/Operation/clusterConditions": cluster_conditions "/container:v1beta1/Operation/clusterConditions": cluster_conditions
"/container:v1beta1/Operation/clusterConditions/cluster_condition": cluster_condition "/container:v1beta1/Operation/clusterConditions/cluster_condition": cluster_condition
"/container:v1beta1/Operation/detail": detail "/container:v1beta1/Operation/detail": detail
"/container:v1beta1/Operation/endTime": end_time "/container:v1beta1/Operation/endTime": end_time
"/container:v1beta1/Operation/error": error
"/container:v1beta1/Operation/location": location "/container:v1beta1/Operation/location": location
"/container:v1beta1/Operation/name": name "/container:v1beta1/Operation/name": name
"/container:v1beta1/Operation/nodepoolConditions": nodepool_conditions "/container:v1beta1/Operation/nodepoolConditions": nodepool_conditions
@ -51097,6 +51104,9 @@
"/container:v1beta1/PrivateClusterConfig/publicEndpoint": public_endpoint "/container:v1beta1/PrivateClusterConfig/publicEndpoint": public_endpoint
"/container:v1beta1/PrivateClusterMasterGlobalAccessConfig": private_cluster_master_global_access_config "/container:v1beta1/PrivateClusterMasterGlobalAccessConfig": private_cluster_master_global_access_config
"/container:v1beta1/PrivateClusterMasterGlobalAccessConfig/enabled": enabled "/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": recurring_time_window
"/container:v1beta1/RecurringTimeWindow/recurrence": recurrence "/container:v1beta1/RecurringTimeWindow/recurrence": recurrence
"/container:v1beta1/RecurringTimeWindow/window": window "/container:v1beta1/RecurringTimeWindow/window": window
@ -51232,7 +51242,14 @@
"/container:v1beta1/StartIPRotationRequest/projectId": project_id "/container:v1beta1/StartIPRotationRequest/projectId": project_id
"/container:v1beta1/StartIPRotationRequest/rotateCredentials": rotate_credentials "/container:v1beta1/StartIPRotationRequest/rotateCredentials": rotate_credentials
"/container:v1beta1/StartIPRotationRequest/zone": zone "/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": status_condition
"/container:v1beta1/StatusCondition/canonicalCode": canonical_code
"/container:v1beta1/StatusCondition/code": code "/container:v1beta1/StatusCondition/code": code
"/container:v1beta1/StatusCondition/message": message "/container:v1beta1/StatusCondition/message": message
"/container:v1beta1/TimeWindow": time_window "/container:v1beta1/TimeWindow": time_window
@ -51268,6 +51285,13 @@
"/container:v1beta1/UpdateNodePoolRequest/upgradeSettings": upgrade_settings "/container:v1beta1/UpdateNodePoolRequest/upgradeSettings": upgrade_settings
"/container:v1beta1/UpdateNodePoolRequest/workloadMetadataConfig": workload_metadata_config "/container:v1beta1/UpdateNodePoolRequest/workloadMetadataConfig": workload_metadata_config
"/container:v1beta1/UpdateNodePoolRequest/zone": zone "/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": upgrade_settings
"/container:v1beta1/UpgradeSettings/maxSurge": max_surge "/container:v1beta1/UpgradeSettings/maxSurge": max_surge
"/container:v1beta1/UpgradeSettings/maxUnavailable": max_unavailable "/container:v1beta1/UpgradeSettings/maxUnavailable": max_unavailable
@ -112223,6 +112247,15 @@
"/people:v1/Locale": locale "/people:v1/Locale": locale
"/people:v1/Locale/metadata": metadata "/people:v1/Locale/metadata": metadata
"/people:v1/Locale/value": value "/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": membership
"/people:v1/Membership/contactGroupMembership": contact_group_membership "/people:v1/Membership/contactGroupMembership": contact_group_membership
"/people:v1/Membership/domainMembership": domain_membership "/people:v1/Membership/domainMembership": domain_membership
@ -112316,6 +112349,8 @@
"/people:v1/Person/interests/interest": interest "/people:v1/Person/interests/interest": interest
"/people:v1/Person/locales": locales "/people:v1/Person/locales": locales
"/people:v1/Person/locales/locale": locale "/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": memberships
"/people:v1/Person/memberships/membership": membership "/people:v1/Person/memberships/membership": membership
"/people:v1/Person/metadata": metadata "/people:v1/Person/metadata": metadata
@ -114239,6 +114274,7 @@
"/prod_tt_sasportal:v1alpha1/SasPortalDeviceGrant/channelType": channel_type "/prod_tt_sasportal:v1alpha1/SasPortalDeviceGrant/channelType": channel_type
"/prod_tt_sasportal:v1alpha1/SasPortalDeviceGrant/expireTime": expire_time "/prod_tt_sasportal:v1alpha1/SasPortalDeviceGrant/expireTime": expire_time
"/prod_tt_sasportal:v1alpha1/SasPortalDeviceGrant/frequencyRange": frequency_range "/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/maxEirp": max_eirp
"/prod_tt_sasportal:v1alpha1/SasPortalDeviceGrant/moveList": move_list "/prod_tt_sasportal:v1alpha1/SasPortalDeviceGrant/moveList": move_list
"/prod_tt_sasportal:v1alpha1/SasPortalDeviceGrant/moveList/move_list": 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 # @see https://cloud.google.com/functions
module CloudfunctionsV1 module CloudfunctionsV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20200717' REVISION = '20200806'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

File diff suppressed because it is too large Load Diff

View File

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

View File

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

File diff suppressed because it is too large Load Diff

View File

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

View File

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

File diff suppressed because it is too large Load Diff

View File

@ -394,6 +394,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class NotificationConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Operation class Operation
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -424,6 +430,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class PubSub
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class RecurringTimeWindow class RecurringTimeWindow
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -568,6 +580,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class Status
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class StatusCondition class StatusCondition
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -604,6 +622,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class UpgradeEvent
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class UpgradeSettings class UpgradeSettings
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -818,6 +842,8 @@ module Google
property :node_ipv4_cidr_size, as: 'nodeIpv4CidrSize' property :node_ipv4_cidr_size, as: 'nodeIpv4CidrSize'
collection :node_pools, as: 'nodePools', class: Google::Apis::ContainerV1beta1::NodePool, decorator: Google::Apis::ContainerV1beta1::NodePool::Representation 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 :pod_security_policy_config, as: 'podSecurityPolicyConfig', class: Google::Apis::ContainerV1beta1::PodSecurityPolicyConfig, decorator: Google::Apis::ContainerV1beta1::PodSecurityPolicyConfig::Representation
property :private_cluster, as: 'privateCluster' 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_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_default_snat_status, as: 'desiredDefaultSnatStatus', class: Google::Apis::ContainerV1beta1::DefaultSnatStatus, decorator: Google::Apis::ContainerV1beta1::DefaultSnatStatus::Representation
property :desired_image_type, as: 'desiredImageType' property :desired_image_type, as: 'desiredImageType'
@ -896,6 +923,8 @@ module Google
property :desired_node_pool_id, as: 'desiredNodePoolId' property :desired_node_pool_id, as: 'desiredNodePoolId'
property :desired_node_version, as: 'desiredNodeVersion' 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_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 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 class NetworkConfig
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation 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 :default_snat_status, as: 'defaultSnatStatus', class: Google::Apis::ContainerV1beta1::DefaultSnatStatus, decorator: Google::Apis::ContainerV1beta1::DefaultSnatStatus::Representation
property :enable_intra_node_visibility, as: 'enableIntraNodeVisibility' property :enable_intra_node_visibility, as: 'enableIntraNodeVisibility'
@ -1377,6 +1407,14 @@ module Google
end end
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 class Operation
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -1384,6 +1422,8 @@ module Google
property :detail, as: 'detail' property :detail, as: 'detail'
property :end_time, as: 'endTime' 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 :location, as: 'location'
property :name, as: 'name' property :name, as: 'name'
collection :nodepool_conditions, as: 'nodepoolConditions', class: Google::Apis::ContainerV1beta1::StatusCondition, decorator: Google::Apis::ContainerV1beta1::StatusCondition::Representation collection :nodepool_conditions, as: 'nodepoolConditions', class: Google::Apis::ContainerV1beta1::StatusCondition, decorator: Google::Apis::ContainerV1beta1::StatusCondition::Representation
@ -1440,6 +1480,14 @@ module Google
end end
end end
class PubSub
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :enabled, as: 'enabled'
property :topic, as: 'topic'
end
end
class RecurringTimeWindow class RecurringTimeWindow
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -1697,9 +1745,19 @@ module Google
end end
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 class StatusCondition
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :canonical_code, as: 'canonicalCode'
property :code, as: 'code' property :code, as: 'code'
property :message, as: 'message' property :message, as: 'message'
end end
@ -1767,6 +1825,18 @@ module Google
end end
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 class UpgradeSettings
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation 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

@ -21,14 +21,14 @@ module Google
# PageSpeed Insights API # PageSpeed Insights API
# #
# The PageSpeed Insights API lets you analyze the performance of your website # The PageSpeed Insights API lets you analyze the performance of your website
# with a simple API. It offers tailored suggestions for how you can optimize # with a simple API. It offers tailored suggestions for how you can optimize
# your site, and lets you easily integrate PageSpeed Insights analysis into your # your site, and lets you easily integrate PageSpeed Insights analysis into your
# development tools and workflow. # development tools and workflow.
# #
# @see https://developers.google.com/speed/docs/insights/v5/about # @see https://developers.google.com/speed/docs/insights/v5/about
module PagespeedonlineV5 module PagespeedonlineV5
VERSION = 'V5' VERSION = 'V5'
REVISION = '20200721' REVISION = '20200813'
# Associate you with your personal info on Google # Associate you with your personal info on Google
PENID = 'openid' PENID = 'openid'

View File

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

View File

@ -23,7 +23,7 @@ module Google
# PageSpeed Insights API # PageSpeed Insights API
# #
# The PageSpeed Insights API lets you analyze the performance of your website # The PageSpeed Insights API lets you analyze the performance of your website
# with a simple API. It offers tailored suggestions for how you can optimize # with a simple API. It offers tailored suggestions for how you can optimize
# your site, and lets you easily integrate PageSpeed Insights analysis into your # your site, and lets you easily integrate PageSpeed Insights analysis into your
# development tools and workflow. # development tools and workflow.
# #
@ -61,10 +61,9 @@ module Google
# @param [String] locale # @param [String] locale
# The locale used to localize formatted results # The locale used to localize formatted results
# @param [String] strategy # @param [String] strategy
# The analysis strategy (desktop or mobile) to use, and desktop is the # The analysis strategy (desktop or mobile) to use, and desktop is the default
# default
# @param [String] url # @param [String] url
# The URL to fetch and analyze # Required. The URL to fetch and analyze
# @param [String] utm_campaign # @param [String] utm_campaign
# Campaign name for analytics. # Campaign name for analytics.
# @param [String] utm_source # @param [String] utm_source

View File

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

View File

@ -502,9 +502,9 @@ module Google
# the copy mask with metadata and membership fields if not set. Valid values are: # the copy mask with metadata and membership fields if not set. Valid values are:
# * addresses * ageRanges * biographies * birthdays * calendarUrls * clientData # * addresses * ageRanges * biographies * birthdays * calendarUrls * clientData
# * coverPhotos * emailAddresses * events * externalIds * genders * imClients * # * coverPhotos * emailAddresses * events * externalIds * genders * imClients *
# interests * locales * memberships * metadata * miscKeywords * names * # interests * locales * locations * memberships * metadata * miscKeywords *
# nicknames * occupations * organizations * phoneNumbers * photos * relations * # names * nicknames * occupations * organizations * phoneNumbers * photos *
# residences * sipAddresses * skills * urls * userDefined # relations * sipAddresses * skills * urls * userDefined
# Corresponds to the JSON property `readMask` # Corresponds to the JSON property `readMask`
# @return [String] # @return [String]
attr_accessor :read_mask attr_accessor :read_mask
@ -1187,6 +1187,69 @@ module Google
end end
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 # A person's membership in a group. Only contact group memberships can be
# modified. # modified.
class Membership class Membership
@ -1689,6 +1752,11 @@ module Google
# @return [Array<Google::Apis::PeopleV1::Locale>] # @return [Array<Google::Apis::PeopleV1::Locale>]
attr_accessor :locales 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. # The person's group memberships.
# Corresponds to the JSON property `memberships` # Corresponds to the JSON property `memberships`
# @return [Array<Google::Apis::PeopleV1::Membership>] # @return [Array<Google::Apis::PeopleV1::Membership>]
@ -1751,7 +1819,8 @@ module Google
# @return [Array<Google::Apis::PeopleV1::RelationshipStatus>] # @return [Array<Google::Apis::PeopleV1::RelationshipStatus>]
attr_accessor :relationship_statuses attr_accessor :relationship_statuses
# The person's residences. # **DEPRECATED**: (Please use `person.locations` instead) The person's
# residences.
# Corresponds to the JSON property `residences` # Corresponds to the JSON property `residences`
# @return [Array<Google::Apis::PeopleV1::Residence>] # @return [Array<Google::Apis::PeopleV1::Residence>]
attr_accessor :residences attr_accessor :residences
@ -1811,6 +1880,7 @@ module Google
@im_clients = args[:im_clients] if args.key?(:im_clients) @im_clients = args[:im_clients] if args.key?(:im_clients)
@interests = args[:interests] if args.key?(:interests) @interests = args[:interests] if args.key?(:interests)
@locales = args[:locales] if args.key?(:locales) @locales = args[:locales] if args.key?(:locales)
@locations = args[:locations] if args.key?(:locations)
@memberships = args[:memberships] if args.key?(:memberships) @memberships = args[:memberships] if args.key?(:memberships)
@metadata = args[:metadata] if args.key?(:metadata) @metadata = args[:metadata] if args.key?(:metadata)
@misc_keywords = args[:misc_keywords] if args.key?(:misc_keywords) @misc_keywords = args[:misc_keywords] if args.key?(:misc_keywords)
@ -2154,7 +2224,8 @@ module Google
end end
end end
# A person's past or current residence. # **DEPRECATED**: Please use `person.locations` instead. A person's past or
# current residence.
class Residence class Residence
include Google::Apis::Core::Hashable 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: * # empty if not set, which will skip the post mutate get. Valid values are: *
# addresses * ageRanges * biographies * birthdays * calendarUrls * clientData * # addresses * ageRanges * biographies * birthdays * calendarUrls * clientData *
# coverPhotos * emailAddresses * events * externalIds * genders * imClients * # coverPhotos * emailAddresses * events * externalIds * genders * imClients *
# interests * locales * memberships * metadata * miscKeywords * names * # interests * locales * locations * memberships * metadata * miscKeywords *
# nicknames * occupations * organizations * phoneNumbers * photos * relations * # names * nicknames * occupations * organizations * phoneNumbers * photos *
# residences * sipAddresses * skills * urls * userDefined # relations * sipAddresses * skills * urls * userDefined
# Corresponds to the JSON property `personFields` # Corresponds to the JSON property `personFields`
# @return [String] # @return [String]
attr_accessor :person_fields attr_accessor :person_fields

View File

@ -220,6 +220,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class Location
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Membership class Membership
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -727,6 +733,21 @@ module Google
end end
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 class Membership
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation 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 :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 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 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 # Multiple fields can be specified by separating them with commas. Defaults to
# all fields if not set. Valid values are: * addresses * ageRanges * biographies # all fields if not set. Valid values are: * addresses * ageRanges * biographies
# * birthdays * calendarUrls * clientData * coverPhotos * emailAddresses * # * birthdays * calendarUrls * clientData * coverPhotos * emailAddresses *
# events * externalIds * genders * imClients * interests * locales * memberships # events * externalIds * genders * imClients * interests * locales * locations *
# * metadata * miscKeywords * names * nicknames * occupations * organizations * # memberships * metadata * miscKeywords * names * nicknames * occupations *
# phoneNumbers * photos * relations * residences * sipAddresses * skills * urls * # organizations * phoneNumbers * photos * relations * sipAddresses * skills *
# userDefined # urls * userDefined
# @param [Array<String>, String] sources # @param [Array<String>, String] sources
# Optional. A mask of what source types to return. Defaults to ReadSourceType. # Optional. A mask of what source types to return. Defaults to ReadSourceType.
# CONTACT and ReadSourceType.PROFILE if not set. # 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: * # empty if not set, which will skip the post mutate get. Valid values are: *
# addresses * ageRanges * biographies * birthdays * calendarUrls * clientData * # addresses * ageRanges * biographies * birthdays * calendarUrls * clientData *
# coverPhotos * emailAddresses * events * externalIds * genders * imClients * # coverPhotos * emailAddresses * events * externalIds * genders * imClients *
# interests * locales * memberships * metadata * miscKeywords * names * # interests * locales * locations * memberships * metadata * miscKeywords *
# nicknames * occupations * organizations * phoneNumbers * photos * relations * # names * nicknames * occupations * organizations * phoneNumbers * photos *
# residences * sipAddresses * skills * urls * userDefined # relations * sipAddresses * skills * urls * userDefined
# @param [Array<String>, String] sources # @param [Array<String>, String] sources
# Optional. A mask of what source types to return. Defaults to ReadSourceType. # Optional. A mask of what source types to return. Defaults to ReadSourceType.
# CONTACT and ReadSourceType.PROFILE if not set. # 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 # Multiple fields can be specified by separating them with commas. Valid values
# are: * addresses * ageRanges * biographies * birthdays * calendarUrls * # are: * addresses * ageRanges * biographies * birthdays * calendarUrls *
# clientData * coverPhotos * emailAddresses * events * externalIds * genders * # clientData * coverPhotos * emailAddresses * events * externalIds * genders *
# imClients * interests * locales * memberships * metadata * miscKeywords * # imClients * interests * locales * locations * memberships * metadata *
# names * nicknames * occupations * organizations * phoneNumbers * photos * # miscKeywords * names * nicknames * occupations * organizations * phoneNumbers *
# relations * residences * sipAddresses * skills * urls * userDefined # photos * relations * sipAddresses * skills * urls * userDefined
# @param [String] request_mask_include_field # @param [String] request_mask_include_field
# Required. Comma-separated list of person fields to be included in the response. # 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. # 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 # Multiple fields can be specified by separating them with commas. Valid values
# are: * addresses * ageRanges * biographies * birthdays * calendarUrls * # are: * addresses * ageRanges * biographies * birthdays * calendarUrls *
# clientData * coverPhotos * emailAddresses * events * externalIds * genders * # clientData * coverPhotos * emailAddresses * events * externalIds * genders *
# imClients * interests * locales * memberships * metadata * miscKeywords * # imClients * interests * locales * locations * memberships * metadata *
# names * nicknames * occupations * organizations * phoneNumbers * photos * # miscKeywords * names * nicknames * occupations * organizations * phoneNumbers *
# relations * residences * sipAddresses * skills * urls * userDefined # photos * relations * sipAddresses * skills * urls * userDefined
# @param [String] request_mask_include_field # @param [String] request_mask_include_field
# Required. Comma-separated list of person fields to be included in the response. # 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. # 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 # Multiple fields can be specified by separating them with commas. Valid values
# are: * addresses * ageRanges * biographies * birthdays * calendarUrls * # are: * addresses * ageRanges * biographies * birthdays * calendarUrls *
# clientData * coverPhotos * emailAddresses * events * externalIds * genders * # clientData * coverPhotos * emailAddresses * events * externalIds * genders *
# imClients * interests * locales * memberships * metadata * miscKeywords * # imClients * interests * locales * locations * memberships * metadata *
# names * nicknames * occupations * organizations * phoneNumbers * photos * # miscKeywords * names * nicknames * occupations * organizations * phoneNumbers *
# relations * residences * sipAddresses * skills * urls * userDefined # photos * relations * sipAddresses * skills * urls * userDefined
# @param [Boolean] request_sync_token # @param [Boolean] request_sync_token
# Optional. Whether the response should include `next_sync_token`, which can be # 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 # 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 # Multiple fields can be specified by separating them with commas. Valid values
# are: * addresses * ageRanges * biographies * birthdays * calendarUrls * # are: * addresses * ageRanges * biographies * birthdays * calendarUrls *
# clientData * coverPhotos * emailAddresses * events * externalIds * genders * # clientData * coverPhotos * emailAddresses * events * externalIds * genders *
# imClients * interests * locales * memberships * metadata * miscKeywords * # imClients * interests * locales * locations * memberships * metadata *
# names * nicknames * occupations * organizations * phoneNumbers * photos * # miscKeywords * names * nicknames * occupations * organizations * phoneNumbers *
# relations * residences * sipAddresses * skills * urls * userDefined # photos * relations * sipAddresses * skills * urls * userDefined
# @param [Array<String>, String] sources # @param [Array<String>, String] sources
# Required. Directory sources to return. # Required. Directory sources to return.
# @param [String] fields # @param [String] fields
@ -758,10 +758,10 @@ module Google
# Multiple fields can be specified by separating them with commas. Defaults to # Multiple fields can be specified by separating them with commas. Defaults to
# all fields if not set. Valid values are: * addresses * ageRanges * biographies # all fields if not set. Valid values are: * addresses * ageRanges * biographies
# * birthdays * calendarUrls * clientData * coverPhotos * emailAddresses * # * birthdays * calendarUrls * clientData * coverPhotos * emailAddresses *
# events * externalIds * genders * imClients * interests * locales * memberships # events * externalIds * genders * imClients * interests * locales * locations *
# * metadata * miscKeywords * names * nicknames * occupations * organizations * # memberships * metadata * miscKeywords * names * nicknames * occupations *
# phoneNumbers * photos * relations * residences * sipAddresses * skills * urls * # organizations * phoneNumbers * photos * relations * sipAddresses * skills *
# userDefined # urls * userDefined
# @param [Array<String>, String] sources # @param [Array<String>, String] sources
# Optional. A mask of what source types to return. Defaults to ReadSourceType. # Optional. A mask of what source types to return. Defaults to ReadSourceType.
# CONTACT and ReadSourceType.PROFILE if not set. # 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 # Multiple fields can be specified by separating them with commas. All updated
# fields will be replaced. Valid values are: * addresses * biographies * # fields will be replaced. Valid values are: * addresses * biographies *
# birthdays * calendarUrls * clientData * emailAddresses * events * externalIds * # birthdays * calendarUrls * clientData * emailAddresses * events * externalIds *
# genders * imClients * interests * locales * memberships * miscKeywords * # genders * imClients * interests * locales * locations * memberships *
# names * nicknames * occupations * organizations * phoneNumbers * relations * # miscKeywords * names * nicknames * occupations * organizations * phoneNumbers *
# residences * sipAddresses * urls * userDefined # relations * sipAddresses * urls * userDefined
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -856,9 +856,9 @@ module Google
# Multiple fields can be specified by separating them with commas. Valid values # Multiple fields can be specified by separating them with commas. Valid values
# are: * addresses * ageRanges * biographies * birthdays * calendarUrls * # are: * addresses * ageRanges * biographies * birthdays * calendarUrls *
# clientData * coverPhotos * emailAddresses * events * externalIds * genders * # clientData * coverPhotos * emailAddresses * events * externalIds * genders *
# imClients * interests * locales * memberships * metadata * miscKeywords * # imClients * interests * locales * locations * memberships * metadata *
# names * nicknames * occupations * organizations * phoneNumbers * photos * # miscKeywords * names * nicknames * occupations * organizations * phoneNumbers *
# relations * residences * sipAddresses * skills * urls * userDefined # photos * relations * sipAddresses * skills * urls * userDefined
# @param [String] request_mask_include_field # @param [String] request_mask_include_field
# Required. Comma-separated list of person fields to be included in the response. # 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. # 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/ # @see https://developers.google.com/spectrum-access-system/
module ProdTtSasportalV1alpha1 module ProdTtSasportalV1alpha1
VERSION = 'V1alpha1' VERSION = 'V1alpha1'
REVISION = '20200801' REVISION = '20200813'
# View your email address # View your email address
AUTH_USERINFO_EMAIL = 'https://www.googleapis.com/auth/userinfo.email' AUTH_USERINFO_EMAIL = 'https://www.googleapis.com/auth/userinfo.email'

View File

@ -338,6 +338,11 @@ module Google
# @return [Google::Apis::ProdTtSasportalV1alpha1::SasPortalFrequencyRange] # @return [Google::Apis::ProdTtSasportalV1alpha1::SasPortalFrequencyRange]
attr_accessor :frequency_range 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. # 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 # 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 # 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) @channel_type = args[:channel_type] if args.key?(:channel_type)
@expire_time = args[:expire_time] if args.key?(:expire_time) @expire_time = args[:expire_time] if args.key?(:expire_time)
@frequency_range = args[:frequency_range] if args.key?(:frequency_range) @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) @max_eirp = args[:max_eirp] if args.key?(:max_eirp)
@move_list = args[:move_list] if args.key?(:move_list) @move_list = args[:move_list] if args.key?(:move_list)
@state = args[:state] if args.key?(:state) @state = args[:state] if args.key?(:state)

View File

@ -319,6 +319,7 @@ module Google
property :expire_time, as: 'expireTime' property :expire_time, as: 'expireTime'
property :frequency_range, as: 'frequencyRange', class: Google::Apis::ProdTtSasportalV1alpha1::SasPortalFrequencyRange, decorator: Google::Apis::ProdTtSasportalV1alpha1::SasPortalFrequencyRange::Representation 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' property :max_eirp, as: 'maxEirp'
collection :move_list, as: 'moveList', class: Google::Apis::ProdTtSasportalV1alpha1::SasPortalDpaMoveList, decorator: Google::Apis::ProdTtSasportalV1alpha1::SasPortalDpaMoveList::Representation 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 # @see https://cloud.google.com/recommendations-ai/docs
module RecommendationengineV1beta1 module RecommendationengineV1beta1
VERSION = 'V1beta1' VERSION = 'V1beta1'
REVISION = '20200803' REVISION = '20200810'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -147,7 +147,8 @@ module Google
# com/recommendations-ai/docs/upload-catalog#mc Supported values for user event # com/recommendations-ai/docs/upload-catalog#mc Supported values for user event
# imports: 1: "user_events_recommendations_ai" using https://cloud.google.com/ # imports: 1: "user_events_recommendations_ai" using https://cloud.google.com/
# recommendations-ai/docs/manage-user-events#import (Default for userEvents. # 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` # Corresponds to the JSON property `dataSchema`
# @return [String] # @return [String]
attr_accessor :data_schema attr_accessor :data_schema
@ -564,7 +565,8 @@ module Google
# com/recommendations-ai/docs/upload-catalog#mc Supported values for user events # com/recommendations-ai/docs/upload-catalog#mc Supported values for user events
# imports: 1: "user_events_recommendations_ai" using https://cloud.google.com/ # imports: 1: "user_events_recommendations_ai" using https://cloud.google.com/
# recommendations-ai/docs/manage-user-events#import (Default for userEvents. # 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` # Corresponds to the JSON property `jsonSchema`
# @return [String] # @return [String]
attr_accessor :json_schema attr_accessor :json_schema

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

File diff suppressed because it is too large Load Diff

View File

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

View File

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

File diff suppressed because it is too large Load Diff

View File

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

View File

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

File diff suppressed because it is too large Load Diff

View File

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

View File

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

File diff suppressed because it is too large Load Diff

View File

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