docs: update generated docs (#981)
diff --git a/docs/dyn/cloudfunctions_v1beta2.projects.locations.functions.html b/docs/dyn/cloudfunctions_v1beta2.projects.locations.functions.html
index 4a8d92b..eb75f02 100644
--- a/docs/dyn/cloudfunctions_v1beta2.projects.locations.functions.html
+++ b/docs/dyn/cloudfunctions_v1beta2.projects.locations.functions.html
@@ -127,9 +127,9 @@
An object of the form:
{ # Response of `CallFunction` method.
- "executionId": "A String", # Execution id of function invocation.
"result": "A String", # Result populated for successful execution of synchronous function. Will
# not be populated if function does not return a result through context.
+ "executionId": "A String", # Execution id of function invocation.
"error": "A String", # Either system or user-function generated error. Set if execution
# was not successful.
}</pre>
@@ -149,27 +149,25 @@
{ # Describes a Cloud Function that contains user computation executed in
# response to an event. It encapsulate function and triggers configurations.
- "httpsTrigger": { # Describes HTTPSTrigger, could be used to connect web hooks to function. # An HTTPS endpoint type of source that can be triggered via URL.
- "url": "A String", # Output only. The deployed url for the function.
- },
- "maxInstances": 42, # The limit on the maximum number of function instances that may coexist at a
- # given time.
- "environmentVariables": { # Environment variables that shall be available during function execution.
- "a_key": "A String",
- },
- "status": "A String", # Output only. Status of the function deployment.
+ "timeout": "A String", # 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.
+ "runtime": "A String", # The runtime in which to run the function. Required when deploying a new
+ # function, optional when updating an existing function. For a complete
+ # list of possible choices, see the
+ # [`gcloud` command
+ # reference](/sdk/gcloud/reference/functions/deploy#--runtime).
"eventTrigger": { # Describes EventTrigger, used to request events be sent from another # A source that fires events in response to a condition in another service.
# service.
- "eventType": "A String", # `event_type` names contain the service that is sending an event and the
- # kind of event that was fired. Must be of the form
- # `providers/*/eventTypes/*` e.g. Directly handle a Message published to
- # Google Cloud Pub/Sub `providers/cloud.pubsub/eventTypes/topic.publish`.
- #
- # Handle an object changing in Google Cloud Storage:
- # `providers/cloud.storage/eventTypes/object.change`
- #
- # Handle a write to the Firebase Realtime Database:
- # `providers/google.firebase.database/eventTypes/ref.write`
+ "failurePolicy": { # Describes the policy in case of function's execution failure. # Specifies policy for failed executions.
+ # If empty, then defaults to ignoring failures (i.e. not retrying them).
+ "retry": { # Describes the retry policy in case of function's execution failure. # If specified, then the function will be retried in case of a 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.
+ },
+ },
"resource": "A String", # Which instance of the source's service should send events. E.g. for Pub/Sub
# this would be a Pub/Sub topic at `projects/*/topics/*`. For Google Cloud
# Storage this would be a bucket at `projects/*/buckets/*`. For any source
@@ -180,36 +178,46 @@
# 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.
- "failurePolicy": { # Describes the policy in case of function's execution failure. # Specifies policy for failed executions.
- # If empty, then defaults to ignoring failures (i.e. not retrying them).
- "retry": { # Describes the retry policy in case of function's execution failure. # If specified, then the function will be retried in case of a 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.
- },
- },
+ "eventType": "A String", # `event_type` names contain the service that is sending an event and the
+ # kind of event that was fired. Must be of the form
+ # `providers/*/eventTypes/*` e.g. Directly handle a Message published to
+ # Google Cloud Pub/Sub `providers/cloud.pubsub/eventTypes/topic.publish`.
+ #
+ # Handle an object changing in Google Cloud Storage:
+ # `providers/cloud.storage/eventTypes/object.change`
+ #
+ # Handle a write to the Firebase Realtime Database:
+ # `providers/google.firebase.database/eventTypes/ref.write`
},
- "sourceUploadUrl": "A String", # The Google Cloud Storage signed URL used for source uploading, generated
- # by google.cloud.functions.v1beta2.GenerateUploadUrl
- "timeout": "A String", # 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.
- "availableMemoryMb": 42, # The amount of memory in MB available for a function.
- # Defaults to 256MB.
- "runtime": "A String", # The runtime in which to run the function. Required when deploying a new
- # function, optional when updating an existing function. For a complete
- # list of possible choices, see the
- # [`gcloud` command
- # reference](/sdk/gcloud/reference/functions/deploy#--runtime).
- "name": "A String", # A user-defined name of the function. Function names must be unique
- # globally and match pattern `projects/*/locations/*/functions/*`
- "versionId": "A String", # Output only. The version identifier of the Cloud Function. Each deployment attempt
- # results in a new version of a function being created.
"serviceAccount": "A String", # The email of the function's service account. If empty, defaults to
# `{project_id}@appspot.gserviceaccount.com`.
- "sourceArchiveUrl": "A String", # The Google Cloud Storage URL, starting with gs://, pointing to the zip
- # archive which contains the function.
+ "entryPoint": "A String", # 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`.
+ "status": "A String", # Output only. Status of the function deployment.
+ "sourceRepositoryUrl": "A String", # 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.
+ "environmentVariables": { # Environment variables that shall be available during function execution.
+ "a_key": "A String",
+ },
+ "labels": { # Labels associated with this Cloud Function.
+ "a_key": "A String",
+ },
+ "updateTime": "A String", # Output only. The last update timestamp of a Cloud Function.
"vpcConnector": "A String", # The VPC Network Connector that this cloud function can connect to. It can
# be either the fully-qualified URI, or the short name of the network
# connector resource. The format of this field is
@@ -220,6 +228,37 @@
#
# See [the VPC documentation](https://cloud.google.com/compute/docs/vpc) for
# more information on connecting Cloud projects.
+ "latestOperation": "A String", # Output only. Name of the most recent operation modifying the function. If
+ # the function status is `DEPLOYING` or `DELETING`, then it points to the
+ # active operation.
+ "httpsTrigger": { # Describes HTTPSTrigger, could be used to connect web hooks to function. # An HTTPS endpoint type of source that can be triggered via URL.
+ "url": "A String", # Output only. The deployed url for the function.
+ },
+ "sourceArchiveUrl": "A String", # The Google Cloud Storage URL, starting with gs://, pointing to the zip
+ # archive which contains the function.
+ "sourceUploadUrl": "A String", # The Google Cloud Storage signed URL used for source uploading, generated
+ # by google.cloud.functions.v1beta2.GenerateUploadUrl
+ "maxInstances": 42, # The limit on the maximum number of function instances that may coexist at a
+ # given time.
+ "sourceRepository": { # Describes the location of the function source in a remote repository. # The hosted repository where the function is defined.
+ "tag": "A String", # The name of the tag that captures the state of the repository from
+ # which the function should be fetched.
+ "repositoryUrl": "A String", # URL to the hosted repository where the function is defined. Only paths in
+ # https://source.developers.google.com domain are supported. The path should
+ # contain the name of the repository.
+ "deployedRevision": "A String", # Output only. The id of the revision that was resolved at the moment of
+ # function creation or update. For example when a user deployed from a
+ # branch, it will be the revision id of the latest change on this branch at
+ # that time. If user deployed from revision then this value will be always
+ # equal to the revision specified by the user.
+ "revision": "A String", # The id of the revision that captures the state of the repository from
+ # which the function should be fetched.
+ "sourcePath": "A String", # The path within the repository where the function is defined. The path
+ # should point to the directory where Cloud Functions files are located. Use
+ # "/" if the function is defined directly in the root directory of a
+ # repository.
+ "branch": "A String", # The name of the branch from which the function should be fetched.
+ },
"network": "A String", # The VPC Network that this cloud function can connect to. It can be
# either the fully-qualified URI, or the short name of the network resource.
# If the short network name is used, the network must belong to the same
@@ -234,51 +273,12 @@
#
# See [the VPC documentation](https://cloud.google.com/compute/docs/vpc) for
# more information on connecting Cloud projects.
- "sourceRepository": { # Describes the location of the function source in a remote repository. # The hosted repository where the function is defined.
- "revision": "A String", # The id of the revision that captures the state of the repository from
- # which the function should be fetched.
- "repositoryUrl": "A String", # URL to the hosted repository where the function is defined. Only paths in
- # https://source.developers.google.com domain are supported. The path should
- # contain the name of the repository.
- "tag": "A String", # The name of the tag that captures the state of the repository from
- # which the function should be fetched.
- "branch": "A String", # The name of the branch from which the function should be fetched.
- "deployedRevision": "A String", # Output only. The id of the revision that was resolved at the moment of
- # function creation or update. For example when a user deployed from a
- # branch, it will be the revision id of the latest change on this branch at
- # that time. If user deployed from revision then this value will be always
- # equal to the revision specified by the user.
- "sourcePath": "A String", # The path within the repository where the function is defined. The path
- # should point to the directory where Cloud Functions files are located. Use
- # "/" if the function is defined directly in the root directory of a
- # repository.
- },
- "labels": { # Labels associated with this Cloud Function.
- "a_key": "A String",
- },
- "entryPoint": "A String", # 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`.
- "sourceRepositoryUrl": "A String", # 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.
- "updateTime": "A String", # Output only. The last update timestamp of a Cloud Function.
- "latestOperation": "A String", # Output only. Name of the most recent operation modifying the function. If
- # the function status is `DEPLOYING` or `DELETING`, then it points to the
- # active operation.
+ "versionId": "A String", # Output only. The version identifier of the Cloud Function. Each deployment attempt
+ # results in a new version of a function being created.
+ "availableMemoryMb": 42, # The amount of memory in MB available for a function.
+ # Defaults to 256MB.
+ "name": "A String", # A user-defined name of the function. Function names must be unique
+ # globally and match pattern `projects/*/locations/*/functions/*`
}
x__xgafv: string, V1 error format.
@@ -291,15 +291,6 @@
{ # This resource represents a long-running operation that is the result of a
# network API call.
- "metadata": { # Service-specific metadata associated with the operation. It typically
- # contains progress information and common metadata such as create time.
- # Some services might not provide such metadata. Any method that returns a
- # long-running operation should document the metadata type, if any.
- "a_key": "", # Properties of the object. Contains field @type with type URL.
- },
- "done": True or False, # If the value is `false`, it means the operation is still in progress.
- # If `true`, the operation is completed, and either `error` or `response` is
- # available.
"response": { # The normal response of the operation in case of success. If the original
# method returns no data on success, such as `Delete`, the response is
# `google.protobuf.Empty`. If the original method is standard
@@ -310,9 +301,18 @@
# `TakeSnapshotResponse`.
"a_key": "", # Properties of the object. Contains field @type with type URL.
},
+ "metadata": { # Service-specific metadata associated with the operation. It typically
+ # contains progress information and common metadata such as create time.
+ # Some services might not provide such metadata. Any method that returns a
+ # long-running operation should document the metadata type, if any.
+ "a_key": "", # Properties of the object. Contains field @type with type URL.
+ },
"name": "A String", # The server-assigned name, which is only unique within the same service that
# originally returns it. If you use the default HTTP mapping, the
# `name` should be a resource name ending with `operations/{unique_id}`.
+ "done": True or False, # If the value is `false`, it means the operation is still in progress.
+ # If `true`, the operation is completed, and either `error` or `response` is
+ # available.
"error": { # The `Status` type defines a logical error model that is suitable for # The error result of the operation in case of failure or cancellation.
# different programming environments, including REST APIs and RPC APIs. It is
# used by [gRPC](https://github.com/grpc). Each `Status` message contains
@@ -320,16 +320,16 @@
#
# You can find out more about this error model and how to work with it in the
# [API Design Guide](https://cloud.google.com/apis/design/errors).
- "message": "A String", # A developer-facing error message, which should be in English. Any
- # user-facing error message should be localized and sent in the
- # google.rpc.Status.details field, or localized by the client.
+ "code": 42, # The status code, which should be an enum value of google.rpc.Code.
"details": [ # A list of messages that carry the error details. There is a common set of
# message types for APIs to use.
{
"a_key": "", # Properties of the object. Contains field @type with type URL.
},
],
- "code": 42, # The status code, which should be an enum value of google.rpc.Code.
+ "message": "A String", # A developer-facing error message, which should be in English. Any
+ # user-facing error message should be localized and sent in the
+ # google.rpc.Status.details field, or localized by the client.
},
}</pre>
</div>
@@ -352,15 +352,6 @@
{ # This resource represents a long-running operation that is the result of a
# network API call.
- "metadata": { # Service-specific metadata associated with the operation. It typically
- # contains progress information and common metadata such as create time.
- # Some services might not provide such metadata. Any method that returns a
- # long-running operation should document the metadata type, if any.
- "a_key": "", # Properties of the object. Contains field @type with type URL.
- },
- "done": True or False, # If the value is `false`, it means the operation is still in progress.
- # If `true`, the operation is completed, and either `error` or `response` is
- # available.
"response": { # The normal response of the operation in case of success. If the original
# method returns no data on success, such as `Delete`, the response is
# `google.protobuf.Empty`. If the original method is standard
@@ -371,9 +362,18 @@
# `TakeSnapshotResponse`.
"a_key": "", # Properties of the object. Contains field @type with type URL.
},
+ "metadata": { # Service-specific metadata associated with the operation. It typically
+ # contains progress information and common metadata such as create time.
+ # Some services might not provide such metadata. Any method that returns a
+ # long-running operation should document the metadata type, if any.
+ "a_key": "", # Properties of the object. Contains field @type with type URL.
+ },
"name": "A String", # The server-assigned name, which is only unique within the same service that
# originally returns it. If you use the default HTTP mapping, the
# `name` should be a resource name ending with `operations/{unique_id}`.
+ "done": True or False, # If the value is `false`, it means the operation is still in progress.
+ # If `true`, the operation is completed, and either `error` or `response` is
+ # available.
"error": { # The `Status` type defines a logical error model that is suitable for # The error result of the operation in case of failure or cancellation.
# different programming environments, including REST APIs and RPC APIs. It is
# used by [gRPC](https://github.com/grpc). Each `Status` message contains
@@ -381,16 +381,16 @@
#
# You can find out more about this error model and how to work with it in the
# [API Design Guide](https://cloud.google.com/apis/design/errors).
- "message": "A String", # A developer-facing error message, which should be in English. Any
- # user-facing error message should be localized and sent in the
- # google.rpc.Status.details field, or localized by the client.
+ "code": 42, # The status code, which should be an enum value of google.rpc.Code.
"details": [ # A list of messages that carry the error details. There is a common set of
# message types for APIs to use.
{
"a_key": "", # Properties of the object. Contains field @type with type URL.
},
],
- "code": 42, # The status code, which should be an enum value of google.rpc.Code.
+ "message": "A String", # A developer-facing error message, which should be in English. Any
+ # user-facing error message should be localized and sent in the
+ # google.rpc.Status.details field, or localized by the client.
},
}</pre>
</div>
@@ -495,27 +495,25 @@
{ # Describes a Cloud Function that contains user computation executed in
# response to an event. It encapsulate function and triggers configurations.
- "httpsTrigger": { # Describes HTTPSTrigger, could be used to connect web hooks to function. # An HTTPS endpoint type of source that can be triggered via URL.
- "url": "A String", # Output only. The deployed url for the function.
- },
- "maxInstances": 42, # The limit on the maximum number of function instances that may coexist at a
- # given time.
- "environmentVariables": { # Environment variables that shall be available during function execution.
- "a_key": "A String",
- },
- "status": "A String", # Output only. Status of the function deployment.
+ "timeout": "A String", # 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.
+ "runtime": "A String", # The runtime in which to run the function. Required when deploying a new
+ # function, optional when updating an existing function. For a complete
+ # list of possible choices, see the
+ # [`gcloud` command
+ # reference](/sdk/gcloud/reference/functions/deploy#--runtime).
"eventTrigger": { # Describes EventTrigger, used to request events be sent from another # A source that fires events in response to a condition in another service.
# service.
- "eventType": "A String", # `event_type` names contain the service that is sending an event and the
- # kind of event that was fired. Must be of the form
- # `providers/*/eventTypes/*` e.g. Directly handle a Message published to
- # Google Cloud Pub/Sub `providers/cloud.pubsub/eventTypes/topic.publish`.
- #
- # Handle an object changing in Google Cloud Storage:
- # `providers/cloud.storage/eventTypes/object.change`
- #
- # Handle a write to the Firebase Realtime Database:
- # `providers/google.firebase.database/eventTypes/ref.write`
+ "failurePolicy": { # Describes the policy in case of function's execution failure. # Specifies policy for failed executions.
+ # If empty, then defaults to ignoring failures (i.e. not retrying them).
+ "retry": { # Describes the retry policy in case of function's execution failure. # If specified, then the function will be retried in case of a 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.
+ },
+ },
"resource": "A String", # Which instance of the source's service should send events. E.g. for Pub/Sub
# this would be a Pub/Sub topic at `projects/*/topics/*`. For Google Cloud
# Storage this would be a bucket at `projects/*/buckets/*`. For any source
@@ -526,36 +524,46 @@
# 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.
- "failurePolicy": { # Describes the policy in case of function's execution failure. # Specifies policy for failed executions.
- # If empty, then defaults to ignoring failures (i.e. not retrying them).
- "retry": { # Describes the retry policy in case of function's execution failure. # If specified, then the function will be retried in case of a 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.
- },
- },
+ "eventType": "A String", # `event_type` names contain the service that is sending an event and the
+ # kind of event that was fired. Must be of the form
+ # `providers/*/eventTypes/*` e.g. Directly handle a Message published to
+ # Google Cloud Pub/Sub `providers/cloud.pubsub/eventTypes/topic.publish`.
+ #
+ # Handle an object changing in Google Cloud Storage:
+ # `providers/cloud.storage/eventTypes/object.change`
+ #
+ # Handle a write to the Firebase Realtime Database:
+ # `providers/google.firebase.database/eventTypes/ref.write`
},
- "sourceUploadUrl": "A String", # The Google Cloud Storage signed URL used for source uploading, generated
- # by google.cloud.functions.v1beta2.GenerateUploadUrl
- "timeout": "A String", # 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.
- "availableMemoryMb": 42, # The amount of memory in MB available for a function.
- # Defaults to 256MB.
- "runtime": "A String", # The runtime in which to run the function. Required when deploying a new
- # function, optional when updating an existing function. For a complete
- # list of possible choices, see the
- # [`gcloud` command
- # reference](/sdk/gcloud/reference/functions/deploy#--runtime).
- "name": "A String", # A user-defined name of the function. Function names must be unique
- # globally and match pattern `projects/*/locations/*/functions/*`
- "versionId": "A String", # Output only. The version identifier of the Cloud Function. Each deployment attempt
- # results in a new version of a function being created.
"serviceAccount": "A String", # The email of the function's service account. If empty, defaults to
# `{project_id}@appspot.gserviceaccount.com`.
- "sourceArchiveUrl": "A String", # The Google Cloud Storage URL, starting with gs://, pointing to the zip
- # archive which contains the function.
+ "entryPoint": "A String", # 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`.
+ "status": "A String", # Output only. Status of the function deployment.
+ "sourceRepositoryUrl": "A String", # 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.
+ "environmentVariables": { # Environment variables that shall be available during function execution.
+ "a_key": "A String",
+ },
+ "labels": { # Labels associated with this Cloud Function.
+ "a_key": "A String",
+ },
+ "updateTime": "A String", # Output only. The last update timestamp of a Cloud Function.
"vpcConnector": "A String", # The VPC Network Connector that this cloud function can connect to. It can
# be either the fully-qualified URI, or the short name of the network
# connector resource. The format of this field is
@@ -566,6 +574,37 @@
#
# See [the VPC documentation](https://cloud.google.com/compute/docs/vpc) for
# more information on connecting Cloud projects.
+ "latestOperation": "A String", # Output only. Name of the most recent operation modifying the function. If
+ # the function status is `DEPLOYING` or `DELETING`, then it points to the
+ # active operation.
+ "httpsTrigger": { # Describes HTTPSTrigger, could be used to connect web hooks to function. # An HTTPS endpoint type of source that can be triggered via URL.
+ "url": "A String", # Output only. The deployed url for the function.
+ },
+ "sourceArchiveUrl": "A String", # The Google Cloud Storage URL, starting with gs://, pointing to the zip
+ # archive which contains the function.
+ "sourceUploadUrl": "A String", # The Google Cloud Storage signed URL used for source uploading, generated
+ # by google.cloud.functions.v1beta2.GenerateUploadUrl
+ "maxInstances": 42, # The limit on the maximum number of function instances that may coexist at a
+ # given time.
+ "sourceRepository": { # Describes the location of the function source in a remote repository. # The hosted repository where the function is defined.
+ "tag": "A String", # The name of the tag that captures the state of the repository from
+ # which the function should be fetched.
+ "repositoryUrl": "A String", # URL to the hosted repository where the function is defined. Only paths in
+ # https://source.developers.google.com domain are supported. The path should
+ # contain the name of the repository.
+ "deployedRevision": "A String", # Output only. The id of the revision that was resolved at the moment of
+ # function creation or update. For example when a user deployed from a
+ # branch, it will be the revision id of the latest change on this branch at
+ # that time. If user deployed from revision then this value will be always
+ # equal to the revision specified by the user.
+ "revision": "A String", # The id of the revision that captures the state of the repository from
+ # which the function should be fetched.
+ "sourcePath": "A String", # The path within the repository where the function is defined. The path
+ # should point to the directory where Cloud Functions files are located. Use
+ # "/" if the function is defined directly in the root directory of a
+ # repository.
+ "branch": "A String", # The name of the branch from which the function should be fetched.
+ },
"network": "A String", # The VPC Network that this cloud function can connect to. It can be
# either the fully-qualified URI, or the short name of the network resource.
# If the short network name is used, the network must belong to the same
@@ -580,51 +619,12 @@
#
# See [the VPC documentation](https://cloud.google.com/compute/docs/vpc) for
# more information on connecting Cloud projects.
- "sourceRepository": { # Describes the location of the function source in a remote repository. # The hosted repository where the function is defined.
- "revision": "A String", # The id of the revision that captures the state of the repository from
- # which the function should be fetched.
- "repositoryUrl": "A String", # URL to the hosted repository where the function is defined. Only paths in
- # https://source.developers.google.com domain are supported. The path should
- # contain the name of the repository.
- "tag": "A String", # The name of the tag that captures the state of the repository from
- # which the function should be fetched.
- "branch": "A String", # The name of the branch from which the function should be fetched.
- "deployedRevision": "A String", # Output only. The id of the revision that was resolved at the moment of
- # function creation or update. For example when a user deployed from a
- # branch, it will be the revision id of the latest change on this branch at
- # that time. If user deployed from revision then this value will be always
- # equal to the revision specified by the user.
- "sourcePath": "A String", # The path within the repository where the function is defined. The path
- # should point to the directory where Cloud Functions files are located. Use
- # "/" if the function is defined directly in the root directory of a
- # repository.
- },
- "labels": { # Labels associated with this Cloud Function.
- "a_key": "A String",
- },
- "entryPoint": "A String", # 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`.
- "sourceRepositoryUrl": "A String", # 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.
- "updateTime": "A String", # Output only. The last update timestamp of a Cloud Function.
- "latestOperation": "A String", # Output only. Name of the most recent operation modifying the function. If
- # the function status is `DEPLOYING` or `DELETING`, then it points to the
- # active operation.
+ "versionId": "A String", # Output only. The version identifier of the Cloud Function. Each deployment attempt
+ # results in a new version of a function being created.
+ "availableMemoryMb": 42, # The amount of memory in MB available for a function.
+ # Defaults to 256MB.
+ "name": "A String", # A user-defined name of the function. Function names must be unique
+ # globally and match pattern `projects/*/locations/*/functions/*`
}</pre>
</div>
@@ -653,34 +653,32 @@
An object of the form:
{ # Response for the `ListFunctions` method.
- "unreachable": [ # Locations that could not be reached. The response does not include any
- # functions from these locations.
- "A String",
- ],
+ "nextPageToken": "A String", # 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.v1beta2.ListFunctionsRequest
+ # to get more functions.
"functions": [ # The functions that match the request.
{ # Describes a Cloud Function that contains user computation executed in
# response to an event. It encapsulate function and triggers configurations.
- "httpsTrigger": { # Describes HTTPSTrigger, could be used to connect web hooks to function. # An HTTPS endpoint type of source that can be triggered via URL.
- "url": "A String", # Output only. The deployed url for the function.
- },
- "maxInstances": 42, # The limit on the maximum number of function instances that may coexist at a
- # given time.
- "environmentVariables": { # Environment variables that shall be available during function execution.
- "a_key": "A String",
- },
- "status": "A String", # Output only. Status of the function deployment.
+ "timeout": "A String", # 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.
+ "runtime": "A String", # The runtime in which to run the function. Required when deploying a new
+ # function, optional when updating an existing function. For a complete
+ # list of possible choices, see the
+ # [`gcloud` command
+ # reference](/sdk/gcloud/reference/functions/deploy#--runtime).
"eventTrigger": { # Describes EventTrigger, used to request events be sent from another # A source that fires events in response to a condition in another service.
# service.
- "eventType": "A String", # `event_type` names contain the service that is sending an event and the
- # kind of event that was fired. Must be of the form
- # `providers/*/eventTypes/*` e.g. Directly handle a Message published to
- # Google Cloud Pub/Sub `providers/cloud.pubsub/eventTypes/topic.publish`.
- #
- # Handle an object changing in Google Cloud Storage:
- # `providers/cloud.storage/eventTypes/object.change`
- #
- # Handle a write to the Firebase Realtime Database:
- # `providers/google.firebase.database/eventTypes/ref.write`
+ "failurePolicy": { # Describes the policy in case of function's execution failure. # Specifies policy for failed executions.
+ # If empty, then defaults to ignoring failures (i.e. not retrying them).
+ "retry": { # Describes the retry policy in case of function's execution failure. # If specified, then the function will be retried in case of a 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.
+ },
+ },
"resource": "A String", # Which instance of the source's service should send events. E.g. for Pub/Sub
# this would be a Pub/Sub topic at `projects/*/topics/*`. For Google Cloud
# Storage this would be a bucket at `projects/*/buckets/*`. For any source
@@ -691,36 +689,46 @@
# 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.
- "failurePolicy": { # Describes the policy in case of function's execution failure. # Specifies policy for failed executions.
- # If empty, then defaults to ignoring failures (i.e. not retrying them).
- "retry": { # Describes the retry policy in case of function's execution failure. # If specified, then the function will be retried in case of a 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.
- },
- },
+ "eventType": "A String", # `event_type` names contain the service that is sending an event and the
+ # kind of event that was fired. Must be of the form
+ # `providers/*/eventTypes/*` e.g. Directly handle a Message published to
+ # Google Cloud Pub/Sub `providers/cloud.pubsub/eventTypes/topic.publish`.
+ #
+ # Handle an object changing in Google Cloud Storage:
+ # `providers/cloud.storage/eventTypes/object.change`
+ #
+ # Handle a write to the Firebase Realtime Database:
+ # `providers/google.firebase.database/eventTypes/ref.write`
},
- "sourceUploadUrl": "A String", # The Google Cloud Storage signed URL used for source uploading, generated
- # by google.cloud.functions.v1beta2.GenerateUploadUrl
- "timeout": "A String", # 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.
- "availableMemoryMb": 42, # The amount of memory in MB available for a function.
- # Defaults to 256MB.
- "runtime": "A String", # The runtime in which to run the function. Required when deploying a new
- # function, optional when updating an existing function. For a complete
- # list of possible choices, see the
- # [`gcloud` command
- # reference](/sdk/gcloud/reference/functions/deploy#--runtime).
- "name": "A String", # A user-defined name of the function. Function names must be unique
- # globally and match pattern `projects/*/locations/*/functions/*`
- "versionId": "A String", # Output only. The version identifier of the Cloud Function. Each deployment attempt
- # results in a new version of a function being created.
"serviceAccount": "A String", # The email of the function's service account. If empty, defaults to
# `{project_id}@appspot.gserviceaccount.com`.
- "sourceArchiveUrl": "A String", # The Google Cloud Storage URL, starting with gs://, pointing to the zip
- # archive which contains the function.
+ "entryPoint": "A String", # 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`.
+ "status": "A String", # Output only. Status of the function deployment.
+ "sourceRepositoryUrl": "A String", # 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.
+ "environmentVariables": { # Environment variables that shall be available during function execution.
+ "a_key": "A String",
+ },
+ "labels": { # Labels associated with this Cloud Function.
+ "a_key": "A String",
+ },
+ "updateTime": "A String", # Output only. The last update timestamp of a Cloud Function.
"vpcConnector": "A String", # The VPC Network Connector that this cloud function can connect to. It can
# be either the fully-qualified URI, or the short name of the network
# connector resource. The format of this field is
@@ -731,6 +739,37 @@
#
# See [the VPC documentation](https://cloud.google.com/compute/docs/vpc) for
# more information on connecting Cloud projects.
+ "latestOperation": "A String", # Output only. Name of the most recent operation modifying the function. If
+ # the function status is `DEPLOYING` or `DELETING`, then it points to the
+ # active operation.
+ "httpsTrigger": { # Describes HTTPSTrigger, could be used to connect web hooks to function. # An HTTPS endpoint type of source that can be triggered via URL.
+ "url": "A String", # Output only. The deployed url for the function.
+ },
+ "sourceArchiveUrl": "A String", # The Google Cloud Storage URL, starting with gs://, pointing to the zip
+ # archive which contains the function.
+ "sourceUploadUrl": "A String", # The Google Cloud Storage signed URL used for source uploading, generated
+ # by google.cloud.functions.v1beta2.GenerateUploadUrl
+ "maxInstances": 42, # The limit on the maximum number of function instances that may coexist at a
+ # given time.
+ "sourceRepository": { # Describes the location of the function source in a remote repository. # The hosted repository where the function is defined.
+ "tag": "A String", # The name of the tag that captures the state of the repository from
+ # which the function should be fetched.
+ "repositoryUrl": "A String", # URL to the hosted repository where the function is defined. Only paths in
+ # https://source.developers.google.com domain are supported. The path should
+ # contain the name of the repository.
+ "deployedRevision": "A String", # Output only. The id of the revision that was resolved at the moment of
+ # function creation or update. For example when a user deployed from a
+ # branch, it will be the revision id of the latest change on this branch at
+ # that time. If user deployed from revision then this value will be always
+ # equal to the revision specified by the user.
+ "revision": "A String", # The id of the revision that captures the state of the repository from
+ # which the function should be fetched.
+ "sourcePath": "A String", # The path within the repository where the function is defined. The path
+ # should point to the directory where Cloud Functions files are located. Use
+ # "/" if the function is defined directly in the root directory of a
+ # repository.
+ "branch": "A String", # The name of the branch from which the function should be fetched.
+ },
"network": "A String", # The VPC Network that this cloud function can connect to. It can be
# either the fully-qualified URI, or the short name of the network resource.
# If the short network name is used, the network must belong to the same
@@ -745,57 +784,18 @@
#
# See [the VPC documentation](https://cloud.google.com/compute/docs/vpc) for
# more information on connecting Cloud projects.
- "sourceRepository": { # Describes the location of the function source in a remote repository. # The hosted repository where the function is defined.
- "revision": "A String", # The id of the revision that captures the state of the repository from
- # which the function should be fetched.
- "repositoryUrl": "A String", # URL to the hosted repository where the function is defined. Only paths in
- # https://source.developers.google.com domain are supported. The path should
- # contain the name of the repository.
- "tag": "A String", # The name of the tag that captures the state of the repository from
- # which the function should be fetched.
- "branch": "A String", # The name of the branch from which the function should be fetched.
- "deployedRevision": "A String", # Output only. The id of the revision that was resolved at the moment of
- # function creation or update. For example when a user deployed from a
- # branch, it will be the revision id of the latest change on this branch at
- # that time. If user deployed from revision then this value will be always
- # equal to the revision specified by the user.
- "sourcePath": "A String", # The path within the repository where the function is defined. The path
- # should point to the directory where Cloud Functions files are located. Use
- # "/" if the function is defined directly in the root directory of a
- # repository.
- },
- "labels": { # Labels associated with this Cloud Function.
- "a_key": "A String",
- },
- "entryPoint": "A String", # 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`.
- "sourceRepositoryUrl": "A String", # 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.
- "updateTime": "A String", # Output only. The last update timestamp of a Cloud Function.
- "latestOperation": "A String", # Output only. Name of the most recent operation modifying the function. If
- # the function status is `DEPLOYING` or `DELETING`, then it points to the
- # active operation.
+ "versionId": "A String", # Output only. The version identifier of the Cloud Function. Each deployment attempt
+ # results in a new version of a function being created.
+ "availableMemoryMb": 42, # The amount of memory in MB available for a function.
+ # Defaults to 256MB.
+ "name": "A String", # A user-defined name of the function. Function names must be unique
+ # globally and match pattern `projects/*/locations/*/functions/*`
},
],
- "nextPageToken": "A String", # 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.v1beta2.ListFunctionsRequest
- # to get more functions.
+ "unreachable": [ # Locations that could not be reached. The response does not include any
+ # functions from these locations.
+ "A String",
+ ],
}</pre>
</div>
@@ -824,27 +824,25 @@
{ # Describes a Cloud Function that contains user computation executed in
# response to an event. It encapsulate function and triggers configurations.
- "httpsTrigger": { # Describes HTTPSTrigger, could be used to connect web hooks to function. # An HTTPS endpoint type of source that can be triggered via URL.
- "url": "A String", # Output only. The deployed url for the function.
- },
- "maxInstances": 42, # The limit on the maximum number of function instances that may coexist at a
- # given time.
- "environmentVariables": { # Environment variables that shall be available during function execution.
- "a_key": "A String",
- },
- "status": "A String", # Output only. Status of the function deployment.
+ "timeout": "A String", # 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.
+ "runtime": "A String", # The runtime in which to run the function. Required when deploying a new
+ # function, optional when updating an existing function. For a complete
+ # list of possible choices, see the
+ # [`gcloud` command
+ # reference](/sdk/gcloud/reference/functions/deploy#--runtime).
"eventTrigger": { # Describes EventTrigger, used to request events be sent from another # A source that fires events in response to a condition in another service.
# service.
- "eventType": "A String", # `event_type` names contain the service that is sending an event and the
- # kind of event that was fired. Must be of the form
- # `providers/*/eventTypes/*` e.g. Directly handle a Message published to
- # Google Cloud Pub/Sub `providers/cloud.pubsub/eventTypes/topic.publish`.
- #
- # Handle an object changing in Google Cloud Storage:
- # `providers/cloud.storage/eventTypes/object.change`
- #
- # Handle a write to the Firebase Realtime Database:
- # `providers/google.firebase.database/eventTypes/ref.write`
+ "failurePolicy": { # Describes the policy in case of function's execution failure. # Specifies policy for failed executions.
+ # If empty, then defaults to ignoring failures (i.e. not retrying them).
+ "retry": { # Describes the retry policy in case of function's execution failure. # If specified, then the function will be retried in case of a 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.
+ },
+ },
"resource": "A String", # Which instance of the source's service should send events. E.g. for Pub/Sub
# this would be a Pub/Sub topic at `projects/*/topics/*`. For Google Cloud
# Storage this would be a bucket at `projects/*/buckets/*`. For any source
@@ -855,36 +853,46 @@
# 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.
- "failurePolicy": { # Describes the policy in case of function's execution failure. # Specifies policy for failed executions.
- # If empty, then defaults to ignoring failures (i.e. not retrying them).
- "retry": { # Describes the retry policy in case of function's execution failure. # If specified, then the function will be retried in case of a 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.
- },
- },
+ "eventType": "A String", # `event_type` names contain the service that is sending an event and the
+ # kind of event that was fired. Must be of the form
+ # `providers/*/eventTypes/*` e.g. Directly handle a Message published to
+ # Google Cloud Pub/Sub `providers/cloud.pubsub/eventTypes/topic.publish`.
+ #
+ # Handle an object changing in Google Cloud Storage:
+ # `providers/cloud.storage/eventTypes/object.change`
+ #
+ # Handle a write to the Firebase Realtime Database:
+ # `providers/google.firebase.database/eventTypes/ref.write`
},
- "sourceUploadUrl": "A String", # The Google Cloud Storage signed URL used for source uploading, generated
- # by google.cloud.functions.v1beta2.GenerateUploadUrl
- "timeout": "A String", # 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.
- "availableMemoryMb": 42, # The amount of memory in MB available for a function.
- # Defaults to 256MB.
- "runtime": "A String", # The runtime in which to run the function. Required when deploying a new
- # function, optional when updating an existing function. For a complete
- # list of possible choices, see the
- # [`gcloud` command
- # reference](/sdk/gcloud/reference/functions/deploy#--runtime).
- "name": "A String", # A user-defined name of the function. Function names must be unique
- # globally and match pattern `projects/*/locations/*/functions/*`
- "versionId": "A String", # Output only. The version identifier of the Cloud Function. Each deployment attempt
- # results in a new version of a function being created.
"serviceAccount": "A String", # The email of the function's service account. If empty, defaults to
# `{project_id}@appspot.gserviceaccount.com`.
- "sourceArchiveUrl": "A String", # The Google Cloud Storage URL, starting with gs://, pointing to the zip
- # archive which contains the function.
+ "entryPoint": "A String", # 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`.
+ "status": "A String", # Output only. Status of the function deployment.
+ "sourceRepositoryUrl": "A String", # 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.
+ "environmentVariables": { # Environment variables that shall be available during function execution.
+ "a_key": "A String",
+ },
+ "labels": { # Labels associated with this Cloud Function.
+ "a_key": "A String",
+ },
+ "updateTime": "A String", # Output only. The last update timestamp of a Cloud Function.
"vpcConnector": "A String", # The VPC Network Connector that this cloud function can connect to. It can
# be either the fully-qualified URI, or the short name of the network
# connector resource. The format of this field is
@@ -895,6 +903,37 @@
#
# See [the VPC documentation](https://cloud.google.com/compute/docs/vpc) for
# more information on connecting Cloud projects.
+ "latestOperation": "A String", # Output only. Name of the most recent operation modifying the function. If
+ # the function status is `DEPLOYING` or `DELETING`, then it points to the
+ # active operation.
+ "httpsTrigger": { # Describes HTTPSTrigger, could be used to connect web hooks to function. # An HTTPS endpoint type of source that can be triggered via URL.
+ "url": "A String", # Output only. The deployed url for the function.
+ },
+ "sourceArchiveUrl": "A String", # The Google Cloud Storage URL, starting with gs://, pointing to the zip
+ # archive which contains the function.
+ "sourceUploadUrl": "A String", # The Google Cloud Storage signed URL used for source uploading, generated
+ # by google.cloud.functions.v1beta2.GenerateUploadUrl
+ "maxInstances": 42, # The limit on the maximum number of function instances that may coexist at a
+ # given time.
+ "sourceRepository": { # Describes the location of the function source in a remote repository. # The hosted repository where the function is defined.
+ "tag": "A String", # The name of the tag that captures the state of the repository from
+ # which the function should be fetched.
+ "repositoryUrl": "A String", # URL to the hosted repository where the function is defined. Only paths in
+ # https://source.developers.google.com domain are supported. The path should
+ # contain the name of the repository.
+ "deployedRevision": "A String", # Output only. The id of the revision that was resolved at the moment of
+ # function creation or update. For example when a user deployed from a
+ # branch, it will be the revision id of the latest change on this branch at
+ # that time. If user deployed from revision then this value will be always
+ # equal to the revision specified by the user.
+ "revision": "A String", # The id of the revision that captures the state of the repository from
+ # which the function should be fetched.
+ "sourcePath": "A String", # The path within the repository where the function is defined. The path
+ # should point to the directory where Cloud Functions files are located. Use
+ # "/" if the function is defined directly in the root directory of a
+ # repository.
+ "branch": "A String", # The name of the branch from which the function should be fetched.
+ },
"network": "A String", # The VPC Network that this cloud function can connect to. It can be
# either the fully-qualified URI, or the short name of the network resource.
# If the short network name is used, the network must belong to the same
@@ -909,51 +948,12 @@
#
# See [the VPC documentation](https://cloud.google.com/compute/docs/vpc) for
# more information on connecting Cloud projects.
- "sourceRepository": { # Describes the location of the function source in a remote repository. # The hosted repository where the function is defined.
- "revision": "A String", # The id of the revision that captures the state of the repository from
- # which the function should be fetched.
- "repositoryUrl": "A String", # URL to the hosted repository where the function is defined. Only paths in
- # https://source.developers.google.com domain are supported. The path should
- # contain the name of the repository.
- "tag": "A String", # The name of the tag that captures the state of the repository from
- # which the function should be fetched.
- "branch": "A String", # The name of the branch from which the function should be fetched.
- "deployedRevision": "A String", # Output only. The id of the revision that was resolved at the moment of
- # function creation or update. For example when a user deployed from a
- # branch, it will be the revision id of the latest change on this branch at
- # that time. If user deployed from revision then this value will be always
- # equal to the revision specified by the user.
- "sourcePath": "A String", # The path within the repository where the function is defined. The path
- # should point to the directory where Cloud Functions files are located. Use
- # "/" if the function is defined directly in the root directory of a
- # repository.
- },
- "labels": { # Labels associated with this Cloud Function.
- "a_key": "A String",
- },
- "entryPoint": "A String", # 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`.
- "sourceRepositoryUrl": "A String", # 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.
- "updateTime": "A String", # Output only. The last update timestamp of a Cloud Function.
- "latestOperation": "A String", # Output only. Name of the most recent operation modifying the function. If
- # the function status is `DEPLOYING` or `DELETING`, then it points to the
- # active operation.
+ "versionId": "A String", # Output only. The version identifier of the Cloud Function. Each deployment attempt
+ # results in a new version of a function being created.
+ "availableMemoryMb": 42, # The amount of memory in MB available for a function.
+ # Defaults to 256MB.
+ "name": "A String", # A user-defined name of the function. Function names must be unique
+ # globally and match pattern `projects/*/locations/*/functions/*`
}
x__xgafv: string, V1 error format.
@@ -966,15 +966,6 @@
{ # This resource represents a long-running operation that is the result of a
# network API call.
- "metadata": { # Service-specific metadata associated with the operation. It typically
- # contains progress information and common metadata such as create time.
- # Some services might not provide such metadata. Any method that returns a
- # long-running operation should document the metadata type, if any.
- "a_key": "", # Properties of the object. Contains field @type with type URL.
- },
- "done": True or False, # If the value is `false`, it means the operation is still in progress.
- # If `true`, the operation is completed, and either `error` or `response` is
- # available.
"response": { # The normal response of the operation in case of success. If the original
# method returns no data on success, such as `Delete`, the response is
# `google.protobuf.Empty`. If the original method is standard
@@ -985,9 +976,18 @@
# `TakeSnapshotResponse`.
"a_key": "", # Properties of the object. Contains field @type with type URL.
},
+ "metadata": { # Service-specific metadata associated with the operation. It typically
+ # contains progress information and common metadata such as create time.
+ # Some services might not provide such metadata. Any method that returns a
+ # long-running operation should document the metadata type, if any.
+ "a_key": "", # Properties of the object. Contains field @type with type URL.
+ },
"name": "A String", # The server-assigned name, which is only unique within the same service that
# originally returns it. If you use the default HTTP mapping, the
# `name` should be a resource name ending with `operations/{unique_id}`.
+ "done": True or False, # If the value is `false`, it means the operation is still in progress.
+ # If `true`, the operation is completed, and either `error` or `response` is
+ # available.
"error": { # The `Status` type defines a logical error model that is suitable for # The error result of the operation in case of failure or cancellation.
# different programming environments, including REST APIs and RPC APIs. It is
# used by [gRPC](https://github.com/grpc). Each `Status` message contains
@@ -995,16 +995,16 @@
#
# You can find out more about this error model and how to work with it in the
# [API Design Guide](https://cloud.google.com/apis/design/errors).
- "message": "A String", # A developer-facing error message, which should be in English. Any
- # user-facing error message should be localized and sent in the
- # google.rpc.Status.details field, or localized by the client.
+ "code": 42, # The status code, which should be an enum value of google.rpc.Code.
"details": [ # A list of messages that carry the error details. There is a common set of
# message types for APIs to use.
{
"a_key": "", # Properties of the object. Contains field @type with type URL.
},
],
- "code": 42, # The status code, which should be an enum value of google.rpc.Code.
+ "message": "A String", # A developer-facing error message, which should be in English. Any
+ # user-facing error message should be localized and sent in the
+ # google.rpc.Status.details field, or localized by the client.
},
}</pre>
</div>