WebhookPropertiesCreateParameters Class
- java.
lang. Object - com.
azure. resourcemanager. containerregistry. fluent. models. WebhookPropertiesCreateParameters
- com.
Implements
public final class WebhookPropertiesCreateParameters
implements JsonSerializable<WebhookPropertiesCreateParameters>
The parameters for creating the properties of a webhook.
Constructor | Description |
---|---|
Webhook |
Creates an instance of Webhook |
Modifier and Type | Method and Description |
---|---|
List<Webhook |
actions()
Get the actions property: The list of actions that trigger the webhook to post notifications. |
Map<String,String> |
custom Get the custom |
static
Webhook |
from Reads an instance of Webhook |
String |
scope()
Get the scope property: The scope of repositories where the event can be triggered. |
String |
service Get the service |
Webhook |
status()
Get the status property: The status of the webhook at the time the operation was called. |
Json |
to |
void |
validate()
Validates the instance. |
Webhook |
with Set the actions property: The list of actions that trigger the webhook to post notifications. |
Webhook |
with Set the custom |
Webhook |
with Set the scope property: The scope of repositories where the event can be triggered. |
Webhook |
with Set the service |
Webhook |
with Set the status property: The status of the webhook at the time the operation was called. |
Methods inherited from java.lang.Object
WebhookPropertiesCreateParameters
public WebhookPropertiesCreateParameters()
Creates an instance of WebhookPropertiesCreateParameters class.
actions
public List
Get the actions property: The list of actions that trigger the webhook to post notifications.
Returns:
customHeaders
public Map
Get the customHeaders property: Custom headers that will be added to the webhook notifications.
Returns:
fromJson
public static WebhookPropertiesCreateParameters fromJson(JsonReader jsonReader)
Reads an instance of WebhookPropertiesCreateParameters from the JsonReader.
Parameters:
Returns:
Throws:
scope
public String scope()
Get the scope property: 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 serviceUri property: The service URI for the webhook to post notifications.
Returns:
status
public WebhookStatus status()
Get the status property: The status of the webhook at the time the operation was called.
Returns:
toJson
validate
public void validate()
Validates the instance.
withActions
public WebhookPropertiesCreateParameters withActions(List
Set the actions property: The list of actions that trigger the webhook to post notifications.
Parameters:
Returns:
withCustomHeaders
public WebhookPropertiesCreateParameters withCustomHeaders(Map
Set the customHeaders property: Custom headers that will be added to the webhook notifications.
Parameters:
Returns:
withScope
public WebhookPropertiesCreateParameters withScope(String scope)
Set the scope property: 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 WebhookPropertiesCreateParameters withServiceUri(String serviceUri)
Set the serviceUri property: The service URI for the webhook to post notifications.
Parameters:
Returns:
withStatus
public WebhookPropertiesCreateParameters withStatus(WebhookStatus status)
Set the status property: The status of the webhook at the time the operation was called.
Parameters:
Returns:
Azure SDK for Java geri bildirimi
Azure SDK for Java, açık kaynak bir projedir. Geri bildirim sağlamak için bir bağlantı seçin: