WebhookCreateParameters Class
- java.
lang. Object - com.
microsoft. azure. management. containerregistry. WebhookCreateParameters
- com.
public class WebhookCreateParameters
The parameters for creating a webhook.
Constructor Summary
Constructor | Description | |
---|---|---|
WebhookCreateParameters() |
Method Summary
Modifier and Type | Method and Description |
---|---|
java.util.List<Webhook |
actions()
Get the list of actions that trigger the webhook to post notifications. |
java.util.Map<java.lang.String,java.lang.String> |
customHeaders()
Get custom headers that will be added to the webhook notifications. |
java.lang.String |
location()
Get the location of the webhook. |
java.lang.String |
scope()
Get the scope of repositories where the event can be triggered. |
java.lang.String |
serviceUri()
Get the service URI for the webhook to post notifications. |
Webhook |
status()
Get the status of the webhook at the time the operation was called. |
java.util.Map<java.lang.String,java.lang.String> |
tags()
Get the tags for the webhook. |
Webhook |
withActions(List<WebhookAction> actions)
Set the list of actions that trigger the webhook to post notifications. |
Webhook |
withCustomHeaders(Map<String,String> customHeaders)
Set custom headers that will be added to the webhook notifications. |
Webhook |
withLocation(String location)
Set the location of the webhook. |
Webhook |
withScope(String scope)
Set the scope of repositories where the event can be triggered. |
Webhook |
withServiceUri(String serviceUri)
Set the service URI for the webhook to post notifications. |
Webhook |
withStatus(WebhookStatus status)
Set the status of the webhook at the time the operation was called. |
Webhook |
withTags(Map<String,String> tags)
Set the tags for the webhook. |
Methods inherited from java.lang.Object
Constructor Details
WebhookCreateParameters
public WebhookCreateParameters()
Method Details
actions
public List
Get the list of actions that trigger the webhook to post notifications.
Returns:
customHeaders
public Map
Get custom headers that will be added to the webhook notifications.
Returns:
location
public String location()
Get the location of the webhook. This cannot be changed after the resource is created.
Returns:
scope
public String scope()
Get the scope of repositories where the event can be triggered. For example, 'foo:*' means events for all tags under repository 'foo'. 'foo:bar' means events for 'foo:bar' only. 'foo' is equivalent to 'foo:latest'. Empty means all events.
Returns:
serviceUri
public String serviceUri()
Get the service URI for the webhook to post notifications.
Returns:
status
public WebhookStatus status()
Get the status of the webhook at the time the operation was called. Possible values include: 'enabled', 'disabled'.
Returns:
tags
public Map
Get the tags for the webhook.
Returns:
withActions
public WebhookCreateParameters withActions(List
Set the list of actions that trigger the webhook to post notifications.
Parameters:
Returns:
withCustomHeaders
public WebhookCreateParameters withCustomHeaders(Map
Set custom headers that will be added to the webhook notifications.
Parameters:
Returns:
withLocation
public WebhookCreateParameters withLocation(String location)
Set the location of the webhook. This cannot be changed after the resource is created.
Parameters:
Returns:
withScope
public WebhookCreateParameters withScope(String scope)
Set the scope of repositories where the event can be triggered. For example, 'foo:*' means events for all tags under repository 'foo'. 'foo:bar' means events for 'foo:bar' only. 'foo' is equivalent to 'foo:latest'. Empty means all events.
Parameters:
Returns:
withServiceUri
public WebhookCreateParameters withServiceUri(String serviceUri)
Set the service URI for the webhook to post notifications.
Parameters:
Returns:
withStatus
public WebhookCreateParameters withStatus(WebhookStatus status)
Set the status of the webhook at the time the operation was called. Possible values include: 'enabled', 'disabled'.
Parameters:
Returns:
withTags
public WebhookCreateParameters withTags(Map
Set the tags for the webhook.
Parameters:
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for