Autogenerated update (2017-10-19)

Update:
- cloudfunctions_v1
- cloudfunctions_v1beta2
- cloudtasks_v2beta2
- dlp_v2beta1
- firebaseremoteconfig_v1
- proximitybeacon_v1beta1
- servicemanagement_v1
- serviceuser_v1
- toolresults_v1beta3
This commit is contained in:
Google APIs 2017-10-19 00:35:39 +00:00
parent 749e418caa
commit 1fb2583a20
21 changed files with 1188 additions and 23 deletions

View File

@ -12483,6 +12483,49 @@
"/clouderrorreporting:v1beta1/fields": fields "/clouderrorreporting:v1beta1/fields": fields
"/clouderrorreporting:v1beta1/key": key "/clouderrorreporting:v1beta1/key": key
"/clouderrorreporting:v1beta1/quotaUser": quota_user "/clouderrorreporting:v1beta1/quotaUser": quota_user
"/cloudfunctions:v1/CallFunctionRequest": call_function_request
"/cloudfunctions:v1/CallFunctionRequest/data": data
"/cloudfunctions:v1/CallFunctionResponse": call_function_response
"/cloudfunctions:v1/CallFunctionResponse/error": error
"/cloudfunctions:v1/CallFunctionResponse/executionId": execution_id
"/cloudfunctions:v1/CallFunctionResponse/result": result
"/cloudfunctions:v1/CloudFunction": cloud_function
"/cloudfunctions:v1/CloudFunction/availableMemoryMb": available_memory_mb
"/cloudfunctions:v1/CloudFunction/description": description
"/cloudfunctions:v1/CloudFunction/entryPoint": entry_point
"/cloudfunctions:v1/CloudFunction/eventTrigger": event_trigger
"/cloudfunctions:v1/CloudFunction/httpsTrigger": https_trigger
"/cloudfunctions:v1/CloudFunction/labels": labels
"/cloudfunctions:v1/CloudFunction/labels/label": label
"/cloudfunctions:v1/CloudFunction/name": name
"/cloudfunctions:v1/CloudFunction/serviceAccountEmail": service_account_email
"/cloudfunctions:v1/CloudFunction/sourceArchiveUrl": source_archive_url
"/cloudfunctions:v1/CloudFunction/sourceRepository": source_repository
"/cloudfunctions:v1/CloudFunction/sourceUploadUrl": source_upload_url
"/cloudfunctions:v1/CloudFunction/status": status
"/cloudfunctions:v1/CloudFunction/timeout": timeout
"/cloudfunctions:v1/CloudFunction/updateTime": update_time
"/cloudfunctions:v1/CloudFunction/versionId": version_id
"/cloudfunctions:v1/EventTrigger": event_trigger
"/cloudfunctions:v1/EventTrigger/eventType": event_type
"/cloudfunctions:v1/EventTrigger/failurePolicy": failure_policy
"/cloudfunctions:v1/EventTrigger/resource": resource
"/cloudfunctions:v1/EventTrigger/service": service
"/cloudfunctions:v1/FailurePolicy": failure_policy
"/cloudfunctions:v1/FailurePolicy/retry": retry
"/cloudfunctions:v1/GenerateDownloadUrlRequest": generate_download_url_request
"/cloudfunctions:v1/GenerateDownloadUrlRequest/versionId": version_id
"/cloudfunctions:v1/GenerateDownloadUrlResponse": generate_download_url_response
"/cloudfunctions:v1/GenerateDownloadUrlResponse/downloadUrl": download_url
"/cloudfunctions:v1/GenerateUploadUrlRequest": generate_upload_url_request
"/cloudfunctions:v1/GenerateUploadUrlResponse": generate_upload_url_response
"/cloudfunctions:v1/GenerateUploadUrlResponse/uploadUrl": upload_url
"/cloudfunctions:v1/HttpsTrigger": https_trigger
"/cloudfunctions:v1/HttpsTrigger/url": url
"/cloudfunctions:v1/ListFunctionsResponse": list_functions_response
"/cloudfunctions:v1/ListFunctionsResponse/functions": functions
"/cloudfunctions:v1/ListFunctionsResponse/functions/function": function
"/cloudfunctions:v1/ListFunctionsResponse/nextPageToken": next_page_token
"/cloudfunctions:v1/ListLocationsResponse": list_locations_response "/cloudfunctions:v1/ListLocationsResponse": list_locations_response
"/cloudfunctions:v1/ListLocationsResponse/locations": locations "/cloudfunctions:v1/ListLocationsResponse/locations": locations
"/cloudfunctions:v1/ListLocationsResponse/locations/location": location "/cloudfunctions:v1/ListLocationsResponse/locations/location": location
@ -12506,12 +12549,22 @@
"/cloudfunctions:v1/Operation/name": name "/cloudfunctions:v1/Operation/name": name
"/cloudfunctions:v1/Operation/response": response "/cloudfunctions:v1/Operation/response": response
"/cloudfunctions:v1/Operation/response/response": response "/cloudfunctions:v1/Operation/response/response": response
"/cloudfunctions:v1/OperationMetadataV1": operation_metadata_v1
"/cloudfunctions:v1/OperationMetadataV1/request": request
"/cloudfunctions:v1/OperationMetadataV1/request/request": request
"/cloudfunctions:v1/OperationMetadataV1/target": target
"/cloudfunctions:v1/OperationMetadataV1/type": type
"/cloudfunctions:v1/OperationMetadataV1/versionId": version_id
"/cloudfunctions:v1/OperationMetadataV1Beta2": operation_metadata_v1_beta2 "/cloudfunctions:v1/OperationMetadataV1Beta2": operation_metadata_v1_beta2
"/cloudfunctions:v1/OperationMetadataV1Beta2/request": request "/cloudfunctions:v1/OperationMetadataV1Beta2/request": request
"/cloudfunctions:v1/OperationMetadataV1Beta2/request/request": request "/cloudfunctions:v1/OperationMetadataV1Beta2/request/request": request
"/cloudfunctions:v1/OperationMetadataV1Beta2/target": target "/cloudfunctions:v1/OperationMetadataV1Beta2/target": target
"/cloudfunctions:v1/OperationMetadataV1Beta2/type": type "/cloudfunctions:v1/OperationMetadataV1Beta2/type": type
"/cloudfunctions:v1/OperationMetadataV1Beta2/versionId": version_id "/cloudfunctions:v1/OperationMetadataV1Beta2/versionId": version_id
"/cloudfunctions:v1/Retry": retry
"/cloudfunctions:v1/SourceRepository": source_repository
"/cloudfunctions:v1/SourceRepository/deployedUrl": deployed_url
"/cloudfunctions:v1/SourceRepository/url": url
"/cloudfunctions:v1/Status": status "/cloudfunctions:v1/Status": status
"/cloudfunctions:v1/Status/code": code "/cloudfunctions:v1/Status/code": code
"/cloudfunctions:v1/Status/details": details "/cloudfunctions:v1/Status/details": details
@ -12525,6 +12578,25 @@
"/cloudfunctions:v1/cloudfunctions.operations.list/name": name "/cloudfunctions:v1/cloudfunctions.operations.list/name": name
"/cloudfunctions:v1/cloudfunctions.operations.list/pageSize": page_size "/cloudfunctions:v1/cloudfunctions.operations.list/pageSize": page_size
"/cloudfunctions:v1/cloudfunctions.operations.list/pageToken": page_token "/cloudfunctions:v1/cloudfunctions.operations.list/pageToken": page_token
"/cloudfunctions:v1/cloudfunctions.projects.locations.functions.call": call_function
"/cloudfunctions:v1/cloudfunctions.projects.locations.functions.call/name": name
"/cloudfunctions:v1/cloudfunctions.projects.locations.functions.create": create_project_location_function
"/cloudfunctions:v1/cloudfunctions.projects.locations.functions.create/location": location
"/cloudfunctions:v1/cloudfunctions.projects.locations.functions.delete": delete_project_location_function
"/cloudfunctions:v1/cloudfunctions.projects.locations.functions.delete/name": name
"/cloudfunctions:v1/cloudfunctions.projects.locations.functions.generateDownloadUrl": generate_function_download_url
"/cloudfunctions:v1/cloudfunctions.projects.locations.functions.generateDownloadUrl/name": name
"/cloudfunctions:v1/cloudfunctions.projects.locations.functions.generateUploadUrl": generate_function_upload_url
"/cloudfunctions:v1/cloudfunctions.projects.locations.functions.generateUploadUrl/parent": parent
"/cloudfunctions:v1/cloudfunctions.projects.locations.functions.get": get_project_location_function
"/cloudfunctions:v1/cloudfunctions.projects.locations.functions.get/name": name
"/cloudfunctions:v1/cloudfunctions.projects.locations.functions.list": list_project_location_functions
"/cloudfunctions:v1/cloudfunctions.projects.locations.functions.list/pageSize": page_size
"/cloudfunctions:v1/cloudfunctions.projects.locations.functions.list/pageToken": page_token
"/cloudfunctions:v1/cloudfunctions.projects.locations.functions.list/parent": parent
"/cloudfunctions:v1/cloudfunctions.projects.locations.functions.patch": patch_project_location_function
"/cloudfunctions:v1/cloudfunctions.projects.locations.functions.patch/name": name
"/cloudfunctions:v1/cloudfunctions.projects.locations.functions.patch/updateMask": update_mask
"/cloudfunctions:v1/cloudfunctions.projects.locations.list": list_project_locations "/cloudfunctions:v1/cloudfunctions.projects.locations.list": list_project_locations
"/cloudfunctions:v1/cloudfunctions.projects.locations.list/filter": filter "/cloudfunctions:v1/cloudfunctions.projects.locations.list/filter": filter
"/cloudfunctions:v1/cloudfunctions.projects.locations.list/name": name "/cloudfunctions:v1/cloudfunctions.projects.locations.list/name": name
@ -12600,6 +12672,12 @@
"/cloudfunctions:v1beta2/Operation/name": name "/cloudfunctions:v1beta2/Operation/name": name
"/cloudfunctions:v1beta2/Operation/response": response "/cloudfunctions:v1beta2/Operation/response": response
"/cloudfunctions:v1beta2/Operation/response/response": response "/cloudfunctions:v1beta2/Operation/response/response": response
"/cloudfunctions:v1beta2/OperationMetadataV1": operation_metadata_v1
"/cloudfunctions:v1beta2/OperationMetadataV1/request": request
"/cloudfunctions:v1beta2/OperationMetadataV1/request/request": request
"/cloudfunctions:v1beta2/OperationMetadataV1/target": target
"/cloudfunctions:v1beta2/OperationMetadataV1/type": type
"/cloudfunctions:v1beta2/OperationMetadataV1/versionId": version_id
"/cloudfunctions:v1beta2/OperationMetadataV1Beta2": operation_metadata_v1_beta2 "/cloudfunctions:v1beta2/OperationMetadataV1Beta2": operation_metadata_v1_beta2
"/cloudfunctions:v1beta2/OperationMetadataV1Beta2/request": request "/cloudfunctions:v1beta2/OperationMetadataV1Beta2/request": request
"/cloudfunctions:v1beta2/OperationMetadataV1Beta2/request/request": request "/cloudfunctions:v1beta2/OperationMetadataV1Beta2/request/request": request
@ -41501,6 +41579,7 @@
"/firebaseremoteconfig:v1/RemoteConfig/parameters": parameters "/firebaseremoteconfig:v1/RemoteConfig/parameters": parameters
"/firebaseremoteconfig:v1/RemoteConfig/parameters/parameter": parameter "/firebaseremoteconfig:v1/RemoteConfig/parameters/parameter": parameter
"/firebaseremoteconfig:v1/RemoteConfigCondition": remote_config_condition "/firebaseremoteconfig:v1/RemoteConfigCondition": remote_config_condition
"/firebaseremoteconfig:v1/RemoteConfigCondition/description": description
"/firebaseremoteconfig:v1/RemoteConfigCondition/expression": expression "/firebaseremoteconfig:v1/RemoteConfigCondition/expression": expression
"/firebaseremoteconfig:v1/RemoteConfigCondition/name": name "/firebaseremoteconfig:v1/RemoteConfigCondition/name": name
"/firebaseremoteconfig:v1/RemoteConfigCondition/tagColor": tag_color "/firebaseremoteconfig:v1/RemoteConfigCondition/tagColor": tag_color
@ -41508,6 +41587,7 @@
"/firebaseremoteconfig:v1/RemoteConfigParameter/conditionalValues": conditional_values "/firebaseremoteconfig:v1/RemoteConfigParameter/conditionalValues": conditional_values
"/firebaseremoteconfig:v1/RemoteConfigParameter/conditionalValues/conditional_value": conditional_value "/firebaseremoteconfig:v1/RemoteConfigParameter/conditionalValues/conditional_value": conditional_value
"/firebaseremoteconfig:v1/RemoteConfigParameter/defaultValue": default_value "/firebaseremoteconfig:v1/RemoteConfigParameter/defaultValue": default_value
"/firebaseremoteconfig:v1/RemoteConfigParameter/description": description
"/firebaseremoteconfig:v1/RemoteConfigParameterValue": remote_config_parameter_value "/firebaseremoteconfig:v1/RemoteConfigParameterValue": remote_config_parameter_value
"/firebaseremoteconfig:v1/RemoteConfigParameterValue/useInAppDefault": use_in_app_default "/firebaseremoteconfig:v1/RemoteConfigParameterValue/useInAppDefault": use_in_app_default
"/firebaseremoteconfig:v1/RemoteConfigParameterValue/value": value "/firebaseremoteconfig:v1/RemoteConfigParameterValue/value": value

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/functions # @see https://cloud.google.com/functions
module CloudfunctionsV1 module CloudfunctionsV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20170914' REVISION = '20171017'
# 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,6 +22,392 @@ module Google
module Apis module Apis
module CloudfunctionsV1 module CloudfunctionsV1
# Request for the `CallFunction` method.
class CallFunctionRequest
include Google::Apis::Core::Hashable
# Input to be passed to the function.
# Corresponds to the JSON property `data`
# @return [String]
attr_accessor :data
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@data = args[:data] if args.key?(:data)
end
end
# Response of `CallFunction` method.
class CallFunctionResponse
include Google::Apis::Core::Hashable
# Either system or user-function generated error. Set if execution
# was not successful.
# Corresponds to the JSON property `error`
# @return [String]
attr_accessor :error
# Execution id of function invocation.
# Corresponds to the JSON property `executionId`
# @return [String]
attr_accessor :execution_id
# Result populated for successful execution of synchronous function. Will
# not be populated if function does not return a result through context.
# Corresponds to the JSON property `result`
# @return [String]
attr_accessor :result
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@error = args[:error] if args.key?(:error)
@execution_id = args[:execution_id] if args.key?(:execution_id)
@result = args[:result] if args.key?(:result)
end
end
# Describes a Cloud Function that contains user computation executed in
# response to an event. It encapsulate function and triggers configurations.
class CloudFunction
include Google::Apis::Core::Hashable
# The amount of memory in MB available for a function.
# Defaults to 256MB.
# Corresponds to the JSON property `availableMemoryMb`
# @return [Fixnum]
attr_accessor :available_memory_mb
# User-provided description of a function.
# Corresponds to the JSON property `description`
# @return [String]
attr_accessor :description
# The name of the function (as defined in source code) that will be
# executed. Defaults to the resource name suffix, if not specified. For
# backward compatibility, if function with given name is not found, then the
# system will try to use function named "function".
# For Node.js this is name of a function exported by the module specified
# in `source_location`.
# Corresponds to the JSON property `entryPoint`
# @return [String]
attr_accessor :entry_point
# Describes EventTrigger, used to request events be sent from another
# service.
# Corresponds to the JSON property `eventTrigger`
# @return [Google::Apis::CloudfunctionsV1::EventTrigger]
attr_accessor :event_trigger
# Describes HttpsTrigger, could be used to connect web hooks to function.
# Corresponds to the JSON property `httpsTrigger`
# @return [Google::Apis::CloudfunctionsV1::HttpsTrigger]
attr_accessor :https_trigger
# Labels associated with this Cloud Function.
# Corresponds to the JSON property `labels`
# @return [Hash<String,String>]
attr_accessor :labels
# A user-defined name of the function. Function names must be unique
# globally and match pattern `projects/*/locations/*/functions/*`
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# Output only. The email of the function's service account.
# Corresponds to the JSON property `serviceAccountEmail`
# @return [String]
attr_accessor :service_account_email
# The Google Cloud Storage URL, starting with gs://, pointing to the zip
# archive which contains the function.
# Corresponds to the JSON property `sourceArchiveUrl`
# @return [String]
attr_accessor :source_archive_url
# Describes SourceRepository, used to represent parameters related to
# source repository where a function is hosted.
# Corresponds to the JSON property `sourceRepository`
# @return [Google::Apis::CloudfunctionsV1::SourceRepository]
attr_accessor :source_repository
# The Google Cloud Storage signed URL used for source uploading, generated
# by google.cloud.functions.v1.GenerateUploadUrl
# Corresponds to the JSON property `sourceUploadUrl`
# @return [String]
attr_accessor :source_upload_url
# Output only. Status of the function deployment.
# Corresponds to the JSON property `status`
# @return [String]
attr_accessor :status
# The function execution timeout. Execution is considered failed and
# can be terminated if the function is not completed at the end of the
# timeout period. Defaults to 60 seconds.
# Corresponds to the JSON property `timeout`
# @return [String]
attr_accessor :timeout
# Output only. The last update timestamp of a Cloud Function.
# Corresponds to the JSON property `updateTime`
# @return [String]
attr_accessor :update_time
# Output only.
# The version identifier of the Cloud Function. Each deployment attempt
# results in a new version of a function being created.
# Corresponds to the JSON property `versionId`
# @return [Fixnum]
attr_accessor :version_id
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@available_memory_mb = args[:available_memory_mb] if args.key?(:available_memory_mb)
@description = args[:description] if args.key?(:description)
@entry_point = args[:entry_point] if args.key?(:entry_point)
@event_trigger = args[:event_trigger] if args.key?(:event_trigger)
@https_trigger = args[:https_trigger] if args.key?(:https_trigger)
@labels = args[:labels] if args.key?(:labels)
@name = args[:name] if args.key?(:name)
@service_account_email = args[:service_account_email] if args.key?(:service_account_email)
@source_archive_url = args[:source_archive_url] if args.key?(:source_archive_url)
@source_repository = args[:source_repository] if args.key?(:source_repository)
@source_upload_url = args[:source_upload_url] if args.key?(:source_upload_url)
@status = args[:status] if args.key?(:status)
@timeout = args[:timeout] if args.key?(:timeout)
@update_time = args[:update_time] if args.key?(:update_time)
@version_id = args[:version_id] if args.key?(:version_id)
end
end
# Describes EventTrigger, used to request events be sent from another
# service.
class EventTrigger
include Google::Apis::Core::Hashable
# Required. The type of event to observe. For example:
# `google.storage.object.finalized` and
# `google.firebase.analytics.event.log`.
# Event type consists of three parts:
# 1. namespace: The domain name of the organization in reverse-domain
# notation (e.g. `acme.net` appears as `net.acme`) and any orginization
# specific subdivisions. If the organization's top-level domain is `com`,
# the top-level domain is ommited (e.g. `google.com` appears as
# `google`). For example, `google.storage` and
# `google.firebase.analytics`.
# 2. resource type: The type of resource on which event ocurs. For
# example, the Google Cloud Storage API includes the type `object`.
# 3. action: The action that generates the event. For example, actions for
# a Google Cloud Storage Object include 'finalize' and 'delete'.
# These parts are lower case and joined by '.'.
# Corresponds to the JSON property `eventType`
# @return [String]
attr_accessor :event_type
# Describes the policy in case of function's execution failure.
# If empty, then defaults to ignoring failures (i.e. not retrying them).
# Corresponds to the JSON property `failurePolicy`
# @return [Google::Apis::CloudfunctionsV1::FailurePolicy]
attr_accessor :failure_policy
# Required. The resource(s) from which to observe events, for example,
# `projects/_/buckets/myBucket`.
# Not all syntactically correct values are accepted by all services. For
# example:
# 1. The authorization model must support it. Google Cloud Functions
# only allows EventTriggers to be deployed that observe resources in the
# same project as the `CloudFunction`.
# 2. The resource type must match the pattern expected for an
# `event_type`. For example, an `EventTrigger` that has an
# `event_type` of "google.pubsub.topic.publish" should have a resource
# that matches Google Cloud Pub/Sub topics.
# Additionally, some services may support short names when creating an
# `EventTrigger`. These will always be returned in the normalized "long"
# format.
# See each *service's* documentation for supported formats.
# Corresponds to the JSON property `resource`
# @return [String]
attr_accessor :resource
# The hostname of the service that should be observed.
# If no string is provided, the default service implementing the API will
# be used. For example, `storage.googleapis.com` is the default for all
# event types in the 'google.storage` namespace.
# Corresponds to the JSON property `service`
# @return [String]
attr_accessor :service
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@event_type = args[:event_type] if args.key?(:event_type)
@failure_policy = args[:failure_policy] if args.key?(:failure_policy)
@resource = args[:resource] if args.key?(:resource)
@service = args[:service] if args.key?(:service)
end
end
# Describes the policy in case of function's execution failure.
# If empty, then defaults to ignoring failures (i.e. not retrying them).
class FailurePolicy
include Google::Apis::Core::Hashable
# Describes the retry policy in case of function's execution failure.
# A function execution will be retried on any failure.
# A failed execution will be retried up to 7 days with an exponential backoff
# (capped at 10 seconds).
# Retried execution is charged as any other execution.
# Corresponds to the JSON property `retry`
# @return [Google::Apis::CloudfunctionsV1::Retry]
attr_accessor :retry
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@retry = args[:retry] if args.key?(:retry)
end
end
# Request of `GenerateDownloadUrl` method.
class GenerateDownloadUrlRequest
include Google::Apis::Core::Hashable
# The optional version of function. If not set, default, current version
# is used.
# Corresponds to the JSON property `versionId`
# @return [Fixnum]
attr_accessor :version_id
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@version_id = args[:version_id] if args.key?(:version_id)
end
end
# Response of `GenerateDownloadUrl` method.
class GenerateDownloadUrlResponse
include Google::Apis::Core::Hashable
# The generated Google Cloud Storage signed URL that should be used for
# function source code download.
# Corresponds to the JSON property `downloadUrl`
# @return [String]
attr_accessor :download_url
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@download_url = args[:download_url] if args.key?(:download_url)
end
end
# Request of `GenerateSourceUploadUrl` method.
class GenerateUploadUrlRequest
include Google::Apis::Core::Hashable
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
end
end
# Response of `GenerateSourceUploadUrl` method.
class GenerateUploadUrlResponse
include Google::Apis::Core::Hashable
# The generated Google Cloud Storage signed URL that should be used for a
# function source code upload. The uploaded file should be a zip archive
# which contains a function.
# Corresponds to the JSON property `uploadUrl`
# @return [String]
attr_accessor :upload_url
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@upload_url = args[:upload_url] if args.key?(:upload_url)
end
end
# Describes HttpsTrigger, could be used to connect web hooks to function.
class HttpsTrigger
include Google::Apis::Core::Hashable
# Output only. The deployed url for the function.
# Corresponds to the JSON property `url`
# @return [String]
attr_accessor :url
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@url = args[:url] if args.key?(:url)
end
end
# Response for the `ListFunctions` method.
class ListFunctionsResponse
include Google::Apis::Core::Hashable
# The functions that match the request.
# Corresponds to the JSON property `functions`
# @return [Array<Google::Apis::CloudfunctionsV1::CloudFunction>]
attr_accessor :functions
# If not empty, indicates that there may be more functions that match
# the request; this value should be passed in a new
# google.cloud.functions.v1.ListFunctionsRequest
# to get more functions.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@functions = args[:functions] if args.key?(:functions)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
end
# The response message for Locations.ListLocations. # The response message for Locations.ListLocations.
class ListLocationsResponse class ListLocationsResponse
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -209,6 +595,45 @@ module Google
end end
end end
# Metadata describing an Operation
class OperationMetadataV1
include Google::Apis::Core::Hashable
# The original request that started the operation.
# Corresponds to the JSON property `request`
# @return [Hash<String,Object>]
attr_accessor :request
# Target of the operation - for example
# projects/project-1/locations/region-1/functions/function-1
# Corresponds to the JSON property `target`
# @return [String]
attr_accessor :target
# Type of operation.
# Corresponds to the JSON property `type`
# @return [String]
attr_accessor :type
# Version id of the function created or updated by an API call.
# This field is only pupulated for Create and Update operations.
# Corresponds to the JSON property `versionId`
# @return [Fixnum]
attr_accessor :version_id
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@request = args[:request] if args.key?(:request)
@target = args[:target] if args.key?(:target)
@type = args[:type] if args.key?(:type)
@version_id = args[:version_id] if args.key?(:version_id)
end
end
# Metadata describing an Operation # Metadata describing an Operation
class OperationMetadataV1Beta2 class OperationMetadataV1Beta2
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -248,6 +673,63 @@ module Google
end end
end end
# Describes the retry policy in case of function's execution failure.
# A function execution will be retried on any failure.
# A failed execution will be retried up to 7 days with an exponential backoff
# (capped at 10 seconds).
# Retried execution is charged as any other execution.
class Retry
include Google::Apis::Core::Hashable
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
end
end
# Describes SourceRepository, used to represent parameters related to
# source repository where a function is hosted.
class SourceRepository
include Google::Apis::Core::Hashable
# Output only. The URL pointing to the hosted repository where the function
# were defined at the time of deployment. It always points to a specific
# commit in the format described above.
# Corresponds to the JSON property `deployedUrl`
# @return [String]
attr_accessor :deployed_url
# The URL pointing to the hosted repository where the function is defined.
# There are supported Cloud Source Repository URLs in the following
# formats:
# To refer to a specific commit:
# `https://source.developers.google.com/projects/*/repos/*/revisions/*/paths/*`
# To refer to a moveable alias (branch):
# `https://source.developers.google.com/projects/*/repos/*/moveable-aliases/*/
# paths/*`
# In particular, to refer to HEAD use `master` moveable alias.
# To refer to a specific fixed alias (tag):
# `https://source.developers.google.com/projects/*/repos/*/fixed-aliases/*/paths/
# *`
# You may omit `paths/*` if you want to use the main directory.
# Corresponds to the JSON property `url`
# @return [String]
attr_accessor :url
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@deployed_url = args[:deployed_url] if args.key?(:deployed_url)
@url = args[:url] if args.key?(:url)
end
end
# The `Status` type defines a logical error model that is suitable for different # The `Status` type defines a logical error model that is suitable for different
# programming environments, including REST APIs and RPC APIs. It is used by # programming environments, including REST APIs and RPC APIs. It is used by
# [gRPC](https://github.com/grpc). The error model is designed to be: # [gRPC](https://github.com/grpc). The error model is designed to be:

View File

@ -22,6 +22,72 @@ module Google
module Apis module Apis
module CloudfunctionsV1 module CloudfunctionsV1
class CallFunctionRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class CallFunctionResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class CloudFunction
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class EventTrigger
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class FailurePolicy
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GenerateDownloadUrlRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GenerateDownloadUrlResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GenerateUploadUrlRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GenerateUploadUrlResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class HttpsTrigger
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListFunctionsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListLocationsResponse class ListLocationsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -46,18 +112,138 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class OperationMetadataV1
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class OperationMetadataV1Beta2 class OperationMetadataV1Beta2
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class Retry
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SourceRepository
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Status class Status
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class CallFunctionRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :data, as: 'data'
end
end
class CallFunctionResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :error, as: 'error'
property :execution_id, as: 'executionId'
property :result, as: 'result'
end
end
class CloudFunction
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :available_memory_mb, as: 'availableMemoryMb'
property :description, as: 'description'
property :entry_point, as: 'entryPoint'
property :event_trigger, as: 'eventTrigger', class: Google::Apis::CloudfunctionsV1::EventTrigger, decorator: Google::Apis::CloudfunctionsV1::EventTrigger::Representation
property :https_trigger, as: 'httpsTrigger', class: Google::Apis::CloudfunctionsV1::HttpsTrigger, decorator: Google::Apis::CloudfunctionsV1::HttpsTrigger::Representation
hash :labels, as: 'labels'
property :name, as: 'name'
property :service_account_email, as: 'serviceAccountEmail'
property :source_archive_url, as: 'sourceArchiveUrl'
property :source_repository, as: 'sourceRepository', class: Google::Apis::CloudfunctionsV1::SourceRepository, decorator: Google::Apis::CloudfunctionsV1::SourceRepository::Representation
property :source_upload_url, as: 'sourceUploadUrl'
property :status, as: 'status'
property :timeout, as: 'timeout'
property :update_time, as: 'updateTime'
property :version_id, :numeric_string => true, as: 'versionId'
end
end
class EventTrigger
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :event_type, as: 'eventType'
property :failure_policy, as: 'failurePolicy', class: Google::Apis::CloudfunctionsV1::FailurePolicy, decorator: Google::Apis::CloudfunctionsV1::FailurePolicy::Representation
property :resource, as: 'resource'
property :service, as: 'service'
end
end
class FailurePolicy
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :retry, as: 'retry', class: Google::Apis::CloudfunctionsV1::Retry, decorator: Google::Apis::CloudfunctionsV1::Retry::Representation
end
end
class GenerateDownloadUrlRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :version_id, :numeric_string => true, as: 'versionId'
end
end
class GenerateDownloadUrlResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :download_url, as: 'downloadUrl'
end
end
class GenerateUploadUrlRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class GenerateUploadUrlResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :upload_url, as: 'uploadUrl'
end
end
class HttpsTrigger
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :url, as: 'url'
end
end
class ListFunctionsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :functions, as: 'functions', class: Google::Apis::CloudfunctionsV1::CloudFunction, decorator: Google::Apis::CloudfunctionsV1::CloudFunction::Representation
property :next_page_token, as: 'nextPageToken'
end
end
class ListLocationsResponse class ListLocationsResponse
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -98,6 +284,16 @@ module Google
end end
end end
class OperationMetadataV1
# @private
class Representation < Google::Apis::Core::JsonRepresentation
hash :request, as: 'request'
property :target, as: 'target'
property :type, as: 'type'
property :version_id, :numeric_string => true, as: 'versionId'
end
end
class OperationMetadataV1Beta2 class OperationMetadataV1Beta2
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -108,6 +304,20 @@ module Google
end end
end end
class Retry
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class SourceRepository
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :deployed_url, as: 'deployedUrl'
property :url, as: 'url'
end
end
class Status class Status
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -166,6 +166,294 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Invokes synchronously deployed function. To be used for testing, very
# limited traffic allowed.
# @param [String] name
# The name of the function to be called.
# @param [Google::Apis::CloudfunctionsV1::CallFunctionRequest] call_function_request_object
# @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::CloudfunctionsV1::CallFunctionResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudfunctionsV1::CallFunctionResponse]
#
# @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 call_function(name, call_function_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+name}:call', options)
command.request_representation = Google::Apis::CloudfunctionsV1::CallFunctionRequest::Representation
command.request_object = call_function_request_object
command.response_representation = Google::Apis::CloudfunctionsV1::CallFunctionResponse::Representation
command.response_class = Google::Apis::CloudfunctionsV1::CallFunctionResponse
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Creates a new function. If a function with the given name already exists in
# the specified project, the long running operation will return
# `ALREADY_EXISTS` error.
# @param [String] location
# The project and location in which the function should be created, specified
# in the format `projects/*/locations/*`
# @param [Google::Apis::CloudfunctionsV1::CloudFunction] cloud_function_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @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::CloudfunctionsV1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudfunctionsV1::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 create_project_location_function(location, cloud_function_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+location}/functions', options)
command.request_representation = Google::Apis::CloudfunctionsV1::CloudFunction::Representation
command.request_object = cloud_function_object
command.response_representation = Google::Apis::CloudfunctionsV1::Operation::Representation
command.response_class = Google::Apis::CloudfunctionsV1::Operation
command.params['location'] = location unless location.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Deletes a function with the given name from the specified project. If the
# given function is used by some trigger, the trigger will be updated to
# remove this function.
# @param [String] name
# The name of the function which should be deleted.
# @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::CloudfunctionsV1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudfunctionsV1::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 delete_project_location_function(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:delete, 'v1/{+name}', options)
command.response_representation = Google::Apis::CloudfunctionsV1::Operation::Representation
command.response_class = Google::Apis::CloudfunctionsV1::Operation
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Returns a signed URL for downloading deployed function source code.
# The URL is only valid for a limited period and should be used within
# minutes after generation.
# For more information about the signed URL usage see:
# https://cloud.google.com/storage/docs/access-control/signed-urls
# @param [String] name
# The name of function for which source code Google Cloud Storage signed
# URL should be generated.
# @param [Google::Apis::CloudfunctionsV1::GenerateDownloadUrlRequest] generate_download_url_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @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::CloudfunctionsV1::GenerateDownloadUrlResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudfunctionsV1::GenerateDownloadUrlResponse]
#
# @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 generate_function_download_url(name, generate_download_url_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+name}:generateDownloadUrl', options)
command.request_representation = Google::Apis::CloudfunctionsV1::GenerateDownloadUrlRequest::Representation
command.request_object = generate_download_url_request_object
command.response_representation = Google::Apis::CloudfunctionsV1::GenerateDownloadUrlResponse::Representation
command.response_class = Google::Apis::CloudfunctionsV1::GenerateDownloadUrlResponse
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Returns a signed URL for uploading a function source code.
# For more information about the signed URL usage see:
# https://cloud.google.com/storage/docs/access-control/signed-urls
# Once the function source code upload is complete, the used signed
# URL should be provided in CreateFunction or UpdateFunction request
# as a reference to the function source code.
# @param [String] parent
# The project and location in which the Google Cloud Storage signed URL
# should be generated, specified in the format `projects/*/locations/*
# @param [Google::Apis::CloudfunctionsV1::GenerateUploadUrlRequest] generate_upload_url_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @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::CloudfunctionsV1::GenerateUploadUrlResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudfunctionsV1::GenerateUploadUrlResponse]
#
# @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 generate_function_upload_url(parent, generate_upload_url_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+parent}/functions:generateUploadUrl', options)
command.request_representation = Google::Apis::CloudfunctionsV1::GenerateUploadUrlRequest::Representation
command.request_object = generate_upload_url_request_object
command.response_representation = Google::Apis::CloudfunctionsV1::GenerateUploadUrlResponse::Representation
command.response_class = Google::Apis::CloudfunctionsV1::GenerateUploadUrlResponse
command.params['parent'] = parent unless parent.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Returns a function with the given name from the requested project.
# @param [String] name
# The name of the function which details should be obtained.
# @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::CloudfunctionsV1::CloudFunction] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudfunctionsV1::CloudFunction]
#
# @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_location_function(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+name}', options)
command.response_representation = Google::Apis::CloudfunctionsV1::CloudFunction::Representation
command.response_class = Google::Apis::CloudfunctionsV1::CloudFunction
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Returns a list of functions that belong to the requested project.
# @param [String] parent
# The project and location from which the function should be listed,
# specified in the format `projects/*/locations/*`
# If you want to list functions in all locations, use "-" in place of a
# location.
# @param [Fixnum] page_size
# Maximum number of functions to return per call.
# @param [String] page_token
# The value returned by the last
# `ListFunctionsResponse`; indicates that
# this is a continuation of a prior `ListFunctions` call, and that the
# system should return the next page of data.
# @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::CloudfunctionsV1::ListFunctionsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudfunctionsV1::ListFunctionsResponse]
#
# @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_project_location_functions(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+parent}/functions', options)
command.response_representation = Google::Apis::CloudfunctionsV1::ListFunctionsResponse::Representation
command.response_class = Google::Apis::CloudfunctionsV1::ListFunctionsResponse
command.params['parent'] = parent unless parent.nil?
command.query['pageSize'] = page_size unless page_size.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
# Updates existing function.
# @param [String] name
# A user-defined name of the function. Function names must be unique
# globally and match pattern `projects/*/locations/*/functions/*`
# @param [Google::Apis::CloudfunctionsV1::CloudFunction] cloud_function_object
# @param [String] update_mask
# Required list of fields to be updated in this 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::CloudfunctionsV1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudfunctionsV1::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_project_location_function(name, cloud_function_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:patch, 'v1/{+name}', options)
command.request_representation = Google::Apis::CloudfunctionsV1::CloudFunction::Representation
command.request_object = cloud_function_object
command.response_representation = Google::Apis::CloudfunctionsV1::Operation::Representation
command.response_class = Google::Apis::CloudfunctionsV1::Operation
command.params['name'] = name unless name.nil?
command.query['updateMask'] = update_mask unless update_mask.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
protected protected
def apply_command_defaults(command) def apply_command_defaults(command)

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/functions # @see https://cloud.google.com/functions
module CloudfunctionsV1beta2 module CloudfunctionsV1beta2
VERSION = 'V1beta2' VERSION = 'V1beta2'
REVISION = '20171009' REVISION = '20171017'
# 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

@ -596,6 +596,45 @@ module Google
end end
end end
# Metadata describing an Operation
class OperationMetadataV1
include Google::Apis::Core::Hashable
# The original request that started the operation.
# Corresponds to the JSON property `request`
# @return [Hash<String,Object>]
attr_accessor :request
# Target of the operation - for example
# projects/project-1/locations/region-1/functions/function-1
# Corresponds to the JSON property `target`
# @return [String]
attr_accessor :target
# Type of operation.
# Corresponds to the JSON property `type`
# @return [String]
attr_accessor :type
# Version id of the function created or updated by an API call.
# This field is only pupulated for Create and Update operations.
# Corresponds to the JSON property `versionId`
# @return [Fixnum]
attr_accessor :version_id
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@request = args[:request] if args.key?(:request)
@target = args[:target] if args.key?(:target)
@type = args[:type] if args.key?(:type)
@version_id = args[:version_id] if args.key?(:version_id)
end
end
# Metadata describing an Operation # Metadata describing an Operation
class OperationMetadataV1Beta2 class OperationMetadataV1Beta2
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable

View File

@ -112,6 +112,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class OperationMetadataV1
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class OperationMetadataV1Beta2 class OperationMetadataV1Beta2
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -279,6 +285,16 @@ module Google
end end
end end
class OperationMetadataV1
# @private
class Representation < Google::Apis::Core::JsonRepresentation
hash :request, as: 'request'
property :target, as: 'target'
property :type, as: 'type'
property :version_id, :numeric_string => true, as: 'versionId'
end
end
class OperationMetadataV1Beta2 class OperationMetadataV1Beta2
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/cloud-tasks/ # @see https://cloud.google.com/cloud-tasks/
module CloudtasksV2beta2 module CloudtasksV2beta2
VERSION = 'V2beta2' VERSION = 'V2beta2'
REVISION = '20171005' REVISION = '20171018'
# 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

@ -211,7 +211,7 @@ module Google
end end
end end
# Deprecated. Use AppEngineTarget. # Deprecated. Use AppEngineHttpTarget.
class AppEngineQueueConfig class AppEngineQueueConfig
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -1049,7 +1049,7 @@ module Google
# @return [Google::Apis::CloudtasksV2beta2::AppEngineHttpTarget] # @return [Google::Apis::CloudtasksV2beta2::AppEngineHttpTarget]
attr_accessor :app_engine_http_target attr_accessor :app_engine_http_target
# Deprecated. Use AppEngineTarget. # Deprecated. Use AppEngineHttpTarget.
# Corresponds to the JSON property `appEngineQueueConfig` # Corresponds to the JSON property `appEngineQueueConfig`
# @return [Google::Apis::CloudtasksV2beta2::AppEngineQueueConfig] # @return [Google::Apis::CloudtasksV2beta2::AppEngineQueueConfig]
attr_accessor :app_engine_queue_config attr_accessor :app_engine_queue_config

View File

@ -27,7 +27,7 @@ module Google
# @see https://cloud.google.com/dlp/docs/ # @see https://cloud.google.com/dlp/docs/
module DlpV2beta1 module DlpV2beta1
VERSION = 'V2beta1' VERSION = 'V2beta1'
REVISION = '20171010' REVISION = '20171017'
# 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

@ -857,6 +857,20 @@ module Google
# Custom information type based on a dictionary of words or phrases. This can # Custom information type based on a dictionary of words or phrases. This can
# be used to match sensitive information specific to the data, such as a list # be used to match sensitive information specific to the data, such as a list
# of employee IDs or job titles. # of employee IDs or job titles.
# Dictionary words are case-insensitive and all characters other than letters
# and digits in the unicode [Basic Multilingual
# Plane](https://en.wikipedia.org/wiki/Plane_(Unicode)#Basic_Multilingual_Plane)
# will be replaced with whitespace when scanning for matches, so the
# dictionary phrase "Sam Johnson" will match all three phrases "sam johnson",
# "Sam, Johnson", and "Sam (Johnson)". Additionally, the characters
# surrounding any match must be of a different type than the adjacent
# characters within the word, so letters must be next to non-letters and
# digits next to non-digits. For example, the dictionary word "jen" will
# match the first three letters of the text "jen123" but will return no
# matches for "jennifer".
# Dictionary words containing a large number of characters that are not
# letters or digits may result in unexpected findings because such characters
# are treated as whitespace.
# Corresponds to the JSON property `dictionary` # Corresponds to the JSON property `dictionary`
# @return [Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1Dictionary] # @return [Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1Dictionary]
attr_accessor :dictionary attr_accessor :dictionary
@ -1051,6 +1065,20 @@ module Google
# Custom information type based on a dictionary of words or phrases. This can # Custom information type based on a dictionary of words or phrases. This can
# be used to match sensitive information specific to the data, such as a list # be used to match sensitive information specific to the data, such as a list
# of employee IDs or job titles. # of employee IDs or job titles.
# Dictionary words are case-insensitive and all characters other than letters
# and digits in the unicode [Basic Multilingual
# Plane](https://en.wikipedia.org/wiki/Plane_(Unicode)#Basic_Multilingual_Plane)
# will be replaced with whitespace when scanning for matches, so the
# dictionary phrase "Sam Johnson" will match all three phrases "sam johnson",
# "Sam, Johnson", and "Sam (Johnson)". Additionally, the characters
# surrounding any match must be of a different type than the adjacent
# characters within the word, so letters must be next to non-letters and
# digits next to non-digits. For example, the dictionary word "jen" will
# match the first three letters of the text "jen123" but will return no
# matches for "jennifer".
# Dictionary words containing a large number of characters that are not
# letters or digits may result in unexpected findings because such characters
# are treated as whitespace.
class GooglePrivacyDlpV2beta1Dictionary class GooglePrivacyDlpV2beta1Dictionary
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -1141,7 +1169,7 @@ module Google
class GooglePrivacyDlpV2beta1FieldTransformation class GooglePrivacyDlpV2beta1FieldTransformation
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# A condition for determing whether a transformation should be applied to # A condition for determining whether a transformation should be applied to
# a field. # a field.
# Corresponds to the JSON property `condition` # Corresponds to the JSON property `condition`
# @return [Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1RecordCondition] # @return [Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1RecordCondition]
@ -1321,7 +1349,7 @@ module Google
end end
end end
# Configuration for determing how redaction of images should occur. # Configuration for determining how redaction of images should occur.
class GooglePrivacyDlpV2beta1ImageRedactionConfig class GooglePrivacyDlpV2beta1ImageRedactionConfig
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -2541,7 +2569,7 @@ module Google
end end
end end
# A condition for determing whether a transformation should be applied to # A condition for determining whether a transformation should be applied to
# a field. # a field.
class GooglePrivacyDlpV2beta1RecordCondition class GooglePrivacyDlpV2beta1RecordCondition
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -2591,7 +2619,7 @@ module Google
class GooglePrivacyDlpV2beta1RecordSuppression class GooglePrivacyDlpV2beta1RecordSuppression
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# A condition for determing whether a transformation should be applied to # A condition for determining whether a transformation should be applied to
# a field. # a field.
# Corresponds to the JSON property `condition` # Corresponds to the JSON property `condition`
# @return [Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1RecordCondition] # @return [Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1RecordCondition]
@ -3181,9 +3209,9 @@ module Google
class GooglePrivacyDlpV2beta1WordList class GooglePrivacyDlpV2beta1WordList
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Words or phrases defining the dictionary. No word can be shorter than 3 # Words or phrases defining the dictionary. The dictionary must contain
# characters in length. To match, there must be whitespace or punctuation # at least one phrase and every phrase must contain at least 2 characters
# around the targeted string. [required] # that are letters or digits. [required]
# Corresponds to the JSON property `words` # Corresponds to the JSON property `words`
# @return [Array<String>] # @return [Array<String>]
attr_accessor :words attr_accessor :words

View File

@ -26,7 +26,7 @@ module Google
# @see https://firebase.google.com/docs/remote-config/ # @see https://firebase.google.com/docs/remote-config/
module FirebaseremoteconfigV1 module FirebaseremoteconfigV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20170830' REVISION = '20171016'
end end
end end
end end

View File

@ -25,7 +25,7 @@ module Google
# * # *
# The RemoteConfig consists of a list of conditions (which can be # The RemoteConfig consists of a list of conditions (which can be
# thought of as named "if" statements) and a map of parameters (parameter key # thought of as named "if" statements) and a map of parameters (parameter key
# to a stucture containing an optional default value, as well as a optional # to a structure containing an optional default value, as well as a optional
# submap of (condition name to value when that condition is true). # submap of (condition name to value when that condition is true).
class RemoteConfig class RemoteConfig
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -74,6 +74,15 @@ module Google
class RemoteConfigCondition class RemoteConfigCondition
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Optional.
# A description for this Condition. Length must be less than or equal to
# 100 characters (or more precisely, unicode code points, which is defined in
# java/com/google/wireless/android/config/ConstsExporter.java).
# A description may contain any Unicode characters
# Corresponds to the JSON property `description`
# @return [String]
attr_accessor :description
# Required. # Required.
# Corresponds to the JSON property `expression` # Corresponds to the JSON property `expression`
# @return [String] # @return [String]
@ -105,6 +114,7 @@ module Google
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@description = args[:description] if args.key?(:description)
@expression = args[:expression] if args.key?(:expression) @expression = args[:expression] if args.key?(:expression)
@name = args[:name] if args.key?(:name) @name = args[:name] if args.key?(:name)
@tag_color = args[:tag_color] if args.key?(:tag_color) @tag_color = args[:tag_color] if args.key?(:tag_color)
@ -134,6 +144,15 @@ module Google
# @return [Google::Apis::FirebaseremoteconfigV1::RemoteConfigParameterValue] # @return [Google::Apis::FirebaseremoteconfigV1::RemoteConfigParameterValue]
attr_accessor :default_value attr_accessor :default_value
# Optional.
# A description for this Parameter. Length must be less than or equal to
# 100 characters (or more precisely, unicode code points, which is defined in
# java/com/google/wireless/android/config/ConstsExporter.java).
# A description may contain any Unicode characters
# Corresponds to the JSON property `description`
# @return [String]
attr_accessor :description
def initialize(**args) def initialize(**args)
update!(**args) update!(**args)
end end
@ -142,6 +161,7 @@ module Google
def update!(**args) def update!(**args)
@conditional_values = args[:conditional_values] if args.key?(:conditional_values) @conditional_values = args[:conditional_values] if args.key?(:conditional_values)
@default_value = args[:default_value] if args.key?(:default_value) @default_value = args[:default_value] if args.key?(:default_value)
@description = args[:description] if args.key?(:description)
end end
end end

View File

@ -59,6 +59,7 @@ module Google
class RemoteConfigCondition class RemoteConfigCondition
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :description, as: 'description'
property :expression, as: 'expression' property :expression, as: 'expression'
property :name, as: 'name' property :name, as: 'name'
property :tag_color, as: 'tagColor' property :tag_color, as: 'tagColor'
@ -72,6 +73,7 @@ module Google
property :default_value, as: 'defaultValue', class: Google::Apis::FirebaseremoteconfigV1::RemoteConfigParameterValue, decorator: Google::Apis::FirebaseremoteconfigV1::RemoteConfigParameterValue::Representation property :default_value, as: 'defaultValue', class: Google::Apis::FirebaseremoteconfigV1::RemoteConfigParameterValue, decorator: Google::Apis::FirebaseremoteconfigV1::RemoteConfigParameterValue::Representation
property :description, as: 'description'
end end
end end

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/beacons/proximity/ # @see https://developers.google.com/beacons/proximity/
module ProximitybeaconV1beta1 module ProximitybeaconV1beta1
VERSION = 'V1beta1' VERSION = 'V1beta1'
REVISION = '20171003' REVISION = '20171017'
# View and modify your beacons # View and modify your beacons
AUTH_USERLOCATION_BEACON_REGISTRY = 'https://www.googleapis.com/auth/userlocation.beacon.registry' AUTH_USERLOCATION_BEACON_REGISTRY = 'https://www.googleapis.com/auth/userlocation.beacon.registry'

View File

@ -27,7 +27,7 @@ module Google
# @see https://cloud.google.com/service-management/ # @see https://cloud.google.com/service-management/
module ServicemanagementV1 module ServicemanagementV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20171007' REVISION = '20171013'
# 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

@ -1289,8 +1289,8 @@ module Google
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# DEPRECATED: This field is no longer supported. Instead of using aliases, # DEPRECATED: This field is no longer supported. Instead of using aliases,
# please specify multiple google.api.Endpoint for each of the intented # please specify multiple google.api.Endpoint for each of the intended
# alias. # aliases.
# Additional names that this endpoint will be hosted on. # Additional names that this endpoint will be hosted on.
# Corresponds to the JSON property `aliases` # Corresponds to the JSON property `aliases`
# @return [Array<String>] # @return [Array<String>]

View File

@ -27,7 +27,7 @@ module Google
# @see https://cloud.google.com/service-management/ # @see https://cloud.google.com/service-management/
module ServiceuserV1 module ServiceuserV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20171006' REVISION = '20171013'
# 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

@ -863,8 +863,8 @@ module Google
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# DEPRECATED: This field is no longer supported. Instead of using aliases, # DEPRECATED: This field is no longer supported. Instead of using aliases,
# please specify multiple google.api.Endpoint for each of the intented # please specify multiple google.api.Endpoint for each of the intended
# alias. # aliases.
# Additional names that this endpoint will be hosted on. # Additional names that this endpoint will be hosted on.
# Corresponds to the JSON property `aliases` # Corresponds to the JSON property `aliases`
# @return [Array<String>] # @return [Array<String>]

View File

@ -25,7 +25,7 @@ module Google
# @see https://firebase.google.com/docs/test-lab/ # @see https://firebase.google.com/docs/test-lab/
module ToolresultsV1beta3 module ToolresultsV1beta3
VERSION = 'V1beta3' VERSION = 'V1beta3'
REVISION = '20171016' REVISION = '20171017'
# 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'