WebhookInner Class
- java.
lang. Object - com.
azure. core. management. ProxyResource - com.
azure. core. management. Resource - com.
azure. resourcemanager. containerregistry. fluent. models. WebhookInner
- com.
- com.
- com.
public final class WebhookInner
extends Resource
An object that represents a webhook for a container registry.
Constructor Summary
Constructor | Description |
---|---|
WebhookInner() |
Creates an instance of Webhook |
Method Summary
Modifier and Type | Method and Description |
---|---|
List<Webhook |
actions()
Get the actions property: The list of actions that trigger the webhook to post notifications. |
static
Webhook |
fromJson(JsonReader jsonReader)
Reads an instance of Webhook |
String |
id()
Get the id property: Fully qualified resource Id for the resource. |
String |
name()
Get the name property: The name of the resource. |
Provisioning |
provisioningState()
Get the provisioning |
String |
scope()
Get the scope property: The scope of repositories where the event can be triggered. |
Webhook |
status()
Get the status property: The status of the webhook at the time the operation was called. |
System |
systemData()
Get the system |
Json |
toJson(JsonWriter jsonWriter) |
String |
type()
Get the type property: The type of the resource. |
void |
validate()
Validates the instance. |
Webhook |
withActions(List<WebhookAction> actions)
Set the actions property: The list of actions that trigger the webhook to post notifications. |
Webhook |
withLocation(String location) |
Webhook |
withScope(String scope)
Set the scope property: The scope of repositories where the event can be triggered. |
Webhook |
withStatus(WebhookStatus status)
Set the status property: The status of the webhook at the time the operation was called. |
Webhook |
withTags(Map<String,String> tags) |
Methods inherited from ProxyResource
Methods inherited from Resource
Methods inherited from java.lang.Object
Constructor Details
WebhookInner
public WebhookInner()
Creates an instance of WebhookInner class.
Method Details
actions
public List
Get the actions property: The list of actions that trigger the webhook to post notifications.
Returns:
fromJson
public static WebhookInner fromJson(JsonReader jsonReader)
Reads an instance of WebhookInner from the JsonReader.
Parameters:
Returns:
Throws:
id
public String id()
Get the id property: Fully qualified resource Id for the resource.
Overrides:
WebhookInner.id()Returns:
name
public String name()
Get the name property: The name of the resource.
Overrides:
WebhookInner.name()Returns:
provisioningState
public ProvisioningState provisioningState()
Get the provisioningState property: The provisioning state of the webhook at the time the operation was called.
Returns:
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:
status
public WebhookStatus status()
Get the status property: The status of the webhook at the time the operation was called.
Returns:
systemData
public SystemData systemData()
Get the systemData property: Metadata pertaining to creation and last modification of the resource.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
WebhookInner.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public String type()
Get the type property: The type of the resource.
Overrides:
WebhookInner.type()Returns:
validate
public void validate()
Validates the instance.
withActions
public WebhookInner withActions(List
Set the actions property: The list of actions that trigger the webhook to post notifications.
Parameters:
Returns:
withLocation
public WebhookInner withLocation(String location)
Overrides:
WebhookInner.withLocation(String location)Parameters:
withScope
public WebhookInner 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:
withStatus
public WebhookInner withStatus(WebhookStatus status)
Set the status property: The status of the webhook at the time the operation was called.
Parameters:
Returns:
withTags
public WebhookInner withTags(Map
Overrides:
WebhookInner.withTags(Map<String,String> tags)Parameters:
Applies to
Azure SDK for Java