WebhookInner Class

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 WebhookInner class.

Method Summary

Modifier and Type Method and Description
List<WebhookAction> actions()

Get the actions property: The list of actions that trigger the webhook to post notifications.

static WebhookInner fromJson(JsonReader jsonReader)

Reads an instance of WebhookInner from the JsonReader.

String id()

Get the id property: Fully qualified resource Id for the resource.

String name()

Get the name property: The name of the resource.

ProvisioningState provisioningState()

Get the provisioningState property: The provisioning state of the webhook at the time the operation was called.

String scope()

Get the scope property: The scope of repositories where the event can be triggered.

WebhookStatus status()

Get the status property: The status of the webhook at the time the operation was called.

SystemData systemData()

Get the systemData property: Metadata pertaining to creation and last modification of the resource.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

WebhookInner withActions(List<WebhookAction> actions)

Set the actions property: The list of actions that trigger the webhook to post notifications.

WebhookInner withLocation(String location)
WebhookInner withScope(String scope)

Set the scope property: The scope of repositories where the event can be triggered.

WebhookInner withStatus(WebhookStatus status)

Set the status property: The status of the webhook at the time the operation was called.

WebhookInner 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 actions()

Get the actions property: The list of actions that trigger the webhook to post notifications.

Returns:

the actions value.

fromJson

public static WebhookInner fromJson(JsonReader jsonReader)

Reads an instance of WebhookInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of WebhookInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

id

public String id()

Get the id property: Fully qualified resource Id for the resource.

Overrides:

WebhookInner.id()

Returns:

the id value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

WebhookInner.name()

Returns:

the name value.

provisioningState

public ProvisioningState provisioningState()

Get the provisioningState property: The provisioning state of the webhook at the time the operation was called.

Returns:

the provisioningState value.

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:

the scope value.

status

public WebhookStatus status()

Get the status property: The status of the webhook at the time the operation was called.

Returns:

the status value.

systemData

public SystemData systemData()

Get the systemData property: Metadata pertaining to creation and last modification of the resource.

Returns:

the systemData value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

WebhookInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

WebhookInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

withActions

public WebhookInner withActions(List actions)

Set the actions property: The list of actions that trigger the webhook to post notifications.

Parameters:

actions - the actions value to set.

Returns:

the WebhookInner object itself.

withLocation

public WebhookInner withLocation(String location)

Overrides:

WebhookInner.withLocation(String location)

Parameters:

location

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:

scope - the scope value to set.

Returns:

the WebhookInner object itself.

withStatus

public WebhookInner withStatus(WebhookStatus status)

Set the status property: The status of the webhook at the time the operation was called.

Parameters:

status - the status value to set.

Returns:

the WebhookInner object itself.

withTags

public WebhookInner withTags(Map tags)

Overrides:

WebhookInner.withTags(Map<String,String> tags)

Parameters:

tags

Applies to