ProjectsLocationsFunctionsResource class

Constructors

ProjectsLocationsFunctionsResource(ApiRequester client)

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

abortFunctionUpgrade(AbortFunctionUpgradeRequest request, String name, {String? $fields}) Future<Operation>
Aborts generation upgrade process for a function with the given name from the specified project.
commitFunctionUpgrade(CommitFunctionUpgradeRequest request, String name, {String? $fields}) Future<Operation>
Finalizes the upgrade after which function upgrade can not be rolled back.
create(Function_ request, String parent, {String? functionId, String? $fields}) Future<Operation>
Creates a new function.
delete(String name, {String? $fields}) Future<Operation>
Deletes a function with the given name from the specified project.
generateDownloadUrl(GenerateDownloadUrlRequest request, String name, {String? $fields}) Future<GenerateDownloadUrlResponse>
Returns a signed URL for downloading deployed function source code.
generateUploadUrl(GenerateUploadUrlRequest request, String parent, {String? $fields}) Future<GenerateUploadUrlResponse>
Returns a signed URL for uploading a function source code.
get(String name, {String? revision, String? $fields}) Future<Function_>
Returns a function with the given name from the requested project.
getIamPolicy(String resource, {int? options_requestedPolicyVersion, String? $fields}) Future<Policy>
Gets the access control policy for a resource.
list(String parent, {String? filter, String? orderBy, int? pageSize, String? pageToken, String? $fields}) Future<ListFunctionsResponse>
Returns a list of functions that belong to the requested project.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
patch(Function_ request, String name, {String? updateMask, String? $fields}) Future<Operation>
Updates existing function.
redirectFunctionUpgradeTraffic(RedirectFunctionUpgradeTrafficRequest request, String name, {String? $fields}) Future<Operation>
Changes the traffic target of a function from the original 1st Gen function to the 2nd Gen copy.
rollbackFunctionUpgradeTraffic(RollbackFunctionUpgradeTrafficRequest request, String name, {String? $fields}) Future<Operation>
Reverts the traffic target of a function from the 2nd Gen copy to the original 1st Gen function.
setIamPolicy(SetIamPolicyRequest request, String resource, {String? $fields}) Future<Policy>
Sets the access control policy on the specified resource.
setupFunctionUpgradeConfig(SetupFunctionUpgradeConfigRequest request, String name, {String? $fields}) Future<Operation>
Creates a 2nd Gen copy of the function configuration based on the 1st Gen function with the given name.
testIamPermissions(TestIamPermissionsRequest request, String resource, {String? $fields}) Future<TestIamPermissionsResponse>
Returns permissions that a caller has on the specified resource.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited