Interface GoogleCloudFunctionDestination
- All Superinterfaces:
ExtensionDestination
For GoogleCloudFunction destinations, you need to grant permissions to the extensions@commercetools-platform.iam.gserviceaccount.com
service account to invoke your function. If your function's version is 1st gen, grant the service account the IAM role Cloud Functions Invoker
. For version 2nd gen, assign the IAM role Cloud Run Invoker
using the Cloud Run console.
Example to create an instance using the builder pattern
GoogleCloudFunctionDestination googleCloudFunctionDestination = GoogleCloudFunctionDestination.builder()
.url("{url}")
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for GoogleCloudFunctionDestination -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for GoogleCloudFunctionDestinationbuilder
(GoogleCloudFunctionDestination template) create builder for GoogleCloudFunctionDestination instancedeepCopy
(GoogleCloudFunctionDestination template) factory method to create a deep copy of GoogleCloudFunctionDestination@NotNull String
getUrl()
URL to the target function.of()
factory methodof
(GoogleCloudFunctionDestination template) factory method to create a shallow copy GoogleCloudFunctionDestinationvoid
URL to the target function.static com.fasterxml.jackson.core.type.TypeReference<GoogleCloudFunctionDestination>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.extension.ExtensionDestination
getType, withExtensionDestination
-
Field Details
-
GOOGLE_CLOUD_FUNCTION
discriminator value for GoogleCloudFunctionDestination- See Also:
-
-
Method Details
-
getUrl
URL to the target function.
- Returns:
- url
-
setUrl
URL to the target function.
- Parameters:
url
- value to be set
-
of
factory method- Returns:
- instance of GoogleCloudFunctionDestination
-
of
factory method to create a shallow copy GoogleCloudFunctionDestination- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static GoogleCloudFunctionDestination deepCopy(@Nullable GoogleCloudFunctionDestination template) factory method to create a deep copy of GoogleCloudFunctionDestination- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for GoogleCloudFunctionDestination- Returns:
- builder
-
builder
create builder for GoogleCloudFunctionDestination instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withGoogleCloudFunctionDestination
accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
static com.fasterxml.jackson.core.type.TypeReference<GoogleCloudFunctionDestination> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-