From 4d0f9ef98db38dc21e56a8baa1c6b3fa3f9ff008 Mon Sep 17 00:00:00 2001 From: hongli750210 Date: Fri, 20 Dec 2024 15:29:37 +0800 Subject: [PATCH] Fix ci analyze exception. --- .../pom.xml | 1 - .../ContainerRegistryManager.java | 6 +- .../fluent/models/RegistryProperties.java | 54 ++++++------ .../RegistryPropertiesUpdateParameters.java | 36 ++++---- .../fluent/models/ReplicationProperties.java | 18 ++-- .../models/AccessKeyType.java | 15 +++- .../models/CheckNameAvailabilityResult.java | 18 +++- .../models/NetworkRuleBypassOptions.java | 8 +- .../models/OverridingArgument.java | 12 ++- .../models/OverridingValue.java | 12 ++- .../models/PublicNetworkAccess.java | 8 +- .../containerregistry/models/Registries.java | 6 +- .../containerregistry/models/Registry.java | 82 +++++++++++++++---- .../models/RegistryDockerTaskRunRequest.java | 30 +++++-- .../models/RegistryDockerTaskStep.java | 30 +++++-- .../models/RegistryEncodedTaskRunRequest.java | 30 +++++-- .../models/RegistryEncodedTaskStep.java | 18 +++- .../models/RegistryFileTaskRunRequest.java | 30 +++++-- .../models/RegistryFileTaskStep.java | 18 +++- .../models/RegistrySourceTrigger.java | 30 +++++-- .../models/RegistryTask.java | 66 ++++++++++++--- .../models/RegistryTaskRun.java | 68 ++++++++++++--- .../models/RegistryTaskStep.java | 12 ++- .../models/SourceUploadDefinition.java | 12 ++- .../containerregistry/models/Webhook.java | 62 +++++++++++--- .../models/ZoneRedundancy.java | 8 +- 26 files changed, 532 insertions(+), 158 deletions(-) diff --git a/sdk/resourcemanager/azure-resourcemanager-containerregistry/pom.xml b/sdk/resourcemanager/azure-resourcemanager-containerregistry/pom.xml index 117ff1f7834d5..4cbf32fd28656 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerregistry/pom.xml +++ b/sdk/resourcemanager/azure-resourcemanager-containerregistry/pom.xml @@ -41,7 +41,6 @@ --add-opens com.azure.core/com.azure.core.implementation.util=ALL-UNNAMED - - diff --git a/sdk/resourcemanager/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/ContainerRegistryManager.java b/sdk/resourcemanager/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/ContainerRegistryManager.java index 534e38329ffd9..6dc65d0cd3d9b 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/ContainerRegistryManager.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/ContainerRegistryManager.java @@ -97,7 +97,11 @@ private ContainerRegistryManager(HttpPipeline httpPipeline, AzureProfile profile .buildClient()); } - /** @return the availability set resource management API entry point */ + /** + * Gets the availability set resource management API entry point. + * + * @return the availability set resource management API entry point + */ public Registries containerRegistries() { if (this.registries == null) { this.registries = new RegistriesImpl(this); diff --git a/sdk/resourcemanager/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/fluent/models/RegistryProperties.java b/sdk/resourcemanager/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/fluent/models/RegistryProperties.java index c24e02e78eb76..85b393f9e5d44 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/fluent/models/RegistryProperties.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/fluent/models/RegistryProperties.java @@ -83,17 +83,17 @@ public final class RegistryProperties implements JsonSerializable privateEndpointConnections; /* - * Whether or not public network access is allowed for the container registry. + * Checks whether or not public network access is allowed for the container registry. */ private PublicNetworkAccess publicNetworkAccess; /* - * Whether to allow trusted Azure services to access a network restricted registry. + * Checks whether to allow trusted Azure services to access a network restricted registry. */ private NetworkRuleBypassOptions networkRuleBypassOptions; /* - * Whether or not zone redundancy is enabled for this container registry + * Checks whether or not zone redundancy is enabled for this container registry */ private ZoneRedundancy zoneRedundancy; @@ -105,7 +105,7 @@ public RegistryProperties() { /** * Get the loginServer property: The URL that can be used to log into the container registry. - * + * * @return the loginServer value. */ public String loginServer() { @@ -114,7 +114,7 @@ public String loginServer() { /** * Get the creationDate property: The creation date of the container registry in ISO8601 format. - * + * * @return the creationDate value. */ public OffsetDateTime creationDate() { @@ -124,7 +124,7 @@ public OffsetDateTime creationDate() { /** * Get the provisioningState property: The provisioning state of the container registry at the time the operation * was called. - * + * * @return the provisioningState value. */ public ProvisioningState provisioningState() { @@ -133,7 +133,7 @@ public ProvisioningState provisioningState() { /** * Get the status property: The status of the container registry at the time the operation was called. - * + * * @return the status value. */ public Status status() { @@ -142,7 +142,7 @@ public Status status() { /** * Get the adminUserEnabled property: The value that indicates whether the admin user is enabled. - * + * * @return the adminUserEnabled value. */ public Boolean adminUserEnabled() { @@ -151,7 +151,7 @@ public Boolean adminUserEnabled() { /** * Set the adminUserEnabled property: The value that indicates whether the admin user is enabled. - * + * * @param adminUserEnabled the adminUserEnabled value to set. * @return the RegistryProperties object itself. */ @@ -162,7 +162,7 @@ public RegistryProperties withAdminUserEnabled(Boolean adminUserEnabled) { /** * Get the networkRuleSet property: The network rule set for a container registry. - * + * * @return the networkRuleSet value. */ public NetworkRuleSet networkRuleSet() { @@ -171,7 +171,7 @@ public NetworkRuleSet networkRuleSet() { /** * Set the networkRuleSet property: The network rule set for a container registry. - * + * * @param networkRuleSet the networkRuleSet value to set. * @return the RegistryProperties object itself. */ @@ -182,7 +182,7 @@ public RegistryProperties withNetworkRuleSet(NetworkRuleSet networkRuleSet) { /** * Get the policies property: The policies for a container registry. - * + * * @return the policies value. */ public Policies policies() { @@ -191,7 +191,7 @@ public Policies policies() { /** * Set the policies property: The policies for a container registry. - * + * * @param policies the policies value to set. * @return the RegistryProperties object itself. */ @@ -202,7 +202,7 @@ public RegistryProperties withPolicies(Policies policies) { /** * Get the encryption property: The encryption settings of container registry. - * + * * @return the encryption value. */ public EncryptionProperty encryption() { @@ -211,7 +211,7 @@ public EncryptionProperty encryption() { /** * Set the encryption property: The encryption settings of container registry. - * + * * @param encryption the encryption value to set. * @return the RegistryProperties object itself. */ @@ -222,7 +222,7 @@ public RegistryProperties withEncryption(EncryptionProperty encryption) { /** * Get the dataEndpointEnabled property: Enable a single data endpoint per region for serving data. - * + * * @return the dataEndpointEnabled value. */ public Boolean dataEndpointEnabled() { @@ -231,7 +231,7 @@ public Boolean dataEndpointEnabled() { /** * Set the dataEndpointEnabled property: Enable a single data endpoint per region for serving data. - * + * * @param dataEndpointEnabled the dataEndpointEnabled value to set. * @return the RegistryProperties object itself. */ @@ -242,7 +242,7 @@ public RegistryProperties withDataEndpointEnabled(Boolean dataEndpointEnabled) { /** * Get the dataEndpointHostNames property: List of host names that will serve data when dataEndpointEnabled is true. - * + * * @return the dataEndpointHostNames value. */ public List dataEndpointHostNames() { @@ -251,7 +251,7 @@ public List dataEndpointHostNames() { /** * Get the privateEndpointConnections property: List of private endpoint connections for a container registry. - * + * * @return the privateEndpointConnections value. */ public List privateEndpointConnections() { @@ -260,7 +260,7 @@ public List privateEndpointConnections() { /** * Get the publicNetworkAccess property: Whether or not public network access is allowed for the container registry. - * + * * @return the publicNetworkAccess value. */ public PublicNetworkAccess publicNetworkAccess() { @@ -269,7 +269,7 @@ public PublicNetworkAccess publicNetworkAccess() { /** * Set the publicNetworkAccess property: Whether or not public network access is allowed for the container registry. - * + * * @param publicNetworkAccess the publicNetworkAccess value to set. * @return the RegistryProperties object itself. */ @@ -281,7 +281,7 @@ public RegistryProperties withPublicNetworkAccess(PublicNetworkAccess publicNetw /** * Get the networkRuleBypassOptions property: Whether to allow trusted Azure services to access a network restricted * registry. - * + * * @return the networkRuleBypassOptions value. */ public NetworkRuleBypassOptions networkRuleBypassOptions() { @@ -291,7 +291,7 @@ public NetworkRuleBypassOptions networkRuleBypassOptions() { /** * Set the networkRuleBypassOptions property: Whether to allow trusted Azure services to access a network restricted * registry. - * + * * @param networkRuleBypassOptions the networkRuleBypassOptions value to set. * @return the RegistryProperties object itself. */ @@ -302,7 +302,7 @@ public RegistryProperties withNetworkRuleBypassOptions(NetworkRuleBypassOptions /** * Get the zoneRedundancy property: Whether or not zone redundancy is enabled for this container registry. - * + * * @return the zoneRedundancy value. */ public ZoneRedundancy zoneRedundancy() { @@ -311,7 +311,7 @@ public ZoneRedundancy zoneRedundancy() { /** * Set the zoneRedundancy property: Whether or not zone redundancy is enabled for this container registry. - * + * * @param zoneRedundancy the zoneRedundancy value to set. * @return the RegistryProperties object itself. */ @@ -322,7 +322,7 @@ public RegistryProperties withZoneRedundancy(ZoneRedundancy zoneRedundancy) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { @@ -365,7 +365,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { /** * Reads an instance of RegistryProperties from the JsonReader. - * + * * @param jsonReader The JsonReader being read. * @return An instance of RegistryProperties if the JsonReader was pointing to an instance of it, or null if it was * pointing to JSON null. diff --git a/sdk/resourcemanager/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/fluent/models/RegistryPropertiesUpdateParameters.java b/sdk/resourcemanager/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/fluent/models/RegistryPropertiesUpdateParameters.java index 4892ed82c76b8..56eca4506bf9c 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/fluent/models/RegistryPropertiesUpdateParameters.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/fluent/models/RegistryPropertiesUpdateParameters.java @@ -47,12 +47,12 @@ public final class RegistryPropertiesUpdateParameters implements JsonSerializabl private Boolean dataEndpointEnabled; /* - * Whether or not public network access is allowed for the container registry. + * Checks whether or not public network access is allowed for the container registry. */ private PublicNetworkAccess publicNetworkAccess; /* - * Whether to allow trusted Azure services to access a network restricted registry. + * Checks whether to allow trusted Azure services to access a network restricted registry. */ private NetworkRuleBypassOptions networkRuleBypassOptions; @@ -64,7 +64,7 @@ public RegistryPropertiesUpdateParameters() { /** * Get the adminUserEnabled property: The value that indicates whether the admin user is enabled. - * + * * @return the adminUserEnabled value. */ public Boolean adminUserEnabled() { @@ -73,7 +73,7 @@ public Boolean adminUserEnabled() { /** * Set the adminUserEnabled property: The value that indicates whether the admin user is enabled. - * + * * @param adminUserEnabled the adminUserEnabled value to set. * @return the RegistryPropertiesUpdateParameters object itself. */ @@ -84,7 +84,7 @@ public RegistryPropertiesUpdateParameters withAdminUserEnabled(Boolean adminUser /** * Get the networkRuleSet property: The network rule set for a container registry. - * + * * @return the networkRuleSet value. */ public NetworkRuleSet networkRuleSet() { @@ -93,7 +93,7 @@ public NetworkRuleSet networkRuleSet() { /** * Set the networkRuleSet property: The network rule set for a container registry. - * + * * @param networkRuleSet the networkRuleSet value to set. * @return the RegistryPropertiesUpdateParameters object itself. */ @@ -104,7 +104,7 @@ public RegistryPropertiesUpdateParameters withNetworkRuleSet(NetworkRuleSet netw /** * Get the policies property: The policies for a container registry. - * + * * @return the policies value. */ public Policies policies() { @@ -113,7 +113,7 @@ public Policies policies() { /** * Set the policies property: The policies for a container registry. - * + * * @param policies the policies value to set. * @return the RegistryPropertiesUpdateParameters object itself. */ @@ -124,7 +124,7 @@ public RegistryPropertiesUpdateParameters withPolicies(Policies policies) { /** * Get the encryption property: The encryption settings of container registry. - * + * * @return the encryption value. */ public EncryptionProperty encryption() { @@ -133,7 +133,7 @@ public EncryptionProperty encryption() { /** * Set the encryption property: The encryption settings of container registry. - * + * * @param encryption the encryption value to set. * @return the RegistryPropertiesUpdateParameters object itself. */ @@ -144,7 +144,7 @@ public RegistryPropertiesUpdateParameters withEncryption(EncryptionProperty encr /** * Get the dataEndpointEnabled property: Enable a single data endpoint per region for serving data. - * + * * @return the dataEndpointEnabled value. */ public Boolean dataEndpointEnabled() { @@ -153,7 +153,7 @@ public Boolean dataEndpointEnabled() { /** * Set the dataEndpointEnabled property: Enable a single data endpoint per region for serving data. - * + * * @param dataEndpointEnabled the dataEndpointEnabled value to set. * @return the RegistryPropertiesUpdateParameters object itself. */ @@ -164,7 +164,7 @@ public RegistryPropertiesUpdateParameters withDataEndpointEnabled(Boolean dataEn /** * Get the publicNetworkAccess property: Whether or not public network access is allowed for the container registry. - * + * * @return the publicNetworkAccess value. */ public PublicNetworkAccess publicNetworkAccess() { @@ -173,7 +173,7 @@ public PublicNetworkAccess publicNetworkAccess() { /** * Set the publicNetworkAccess property: Whether or not public network access is allowed for the container registry. - * + * * @param publicNetworkAccess the publicNetworkAccess value to set. * @return the RegistryPropertiesUpdateParameters object itself. */ @@ -185,7 +185,7 @@ public RegistryPropertiesUpdateParameters withPublicNetworkAccess(PublicNetworkA /** * Get the networkRuleBypassOptions property: Whether to allow trusted Azure services to access a network restricted * registry. - * + * * @return the networkRuleBypassOptions value. */ public NetworkRuleBypassOptions networkRuleBypassOptions() { @@ -195,7 +195,7 @@ public NetworkRuleBypassOptions networkRuleBypassOptions() { /** * Set the networkRuleBypassOptions property: Whether to allow trusted Azure services to access a network restricted * registry. - * + * * @param networkRuleBypassOptions the networkRuleBypassOptions value to set. * @return the RegistryPropertiesUpdateParameters object itself. */ @@ -207,7 +207,7 @@ public NetworkRuleBypassOptions networkRuleBypassOptions() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { @@ -242,7 +242,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { /** * Reads an instance of RegistryPropertiesUpdateParameters from the JsonReader. - * + * * @param jsonReader The JsonReader being read. * @return An instance of RegistryPropertiesUpdateParameters if the JsonReader was pointing to an instance of it, or * null if it was pointing to JSON null. diff --git a/sdk/resourcemanager/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/fluent/models/ReplicationProperties.java b/sdk/resourcemanager/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/fluent/models/ReplicationProperties.java index e56dd2aeb2fa3..7a695080a4f22 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/fluent/models/ReplicationProperties.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/fluent/models/ReplicationProperties.java @@ -36,7 +36,7 @@ public final class ReplicationProperties implements JsonSerializable { /** Secondary key. */ public static final AccessKeyType SECONDARY = fromString(PasswordName.PASSWORD2.toString()); + /** + * Creates a new instance of AccessKeyType value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public AccessKeyType() { + } + /** * Finds or creates an access key name based on the provided name. * @@ -23,7 +32,11 @@ public static AccessKeyType fromString(String name) { return fromString(name, AccessKeyType.class); } - /** @return known admin user access key names */ + /** + * Gets known admin user access key names. + * + * @return known admin user access key names + */ public static Collection values() { return values(AccessKeyType.class); } diff --git a/sdk/resourcemanager/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/models/CheckNameAvailabilityResult.java b/sdk/resourcemanager/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/models/CheckNameAvailabilityResult.java index 622cb40ef1378..6f12a7f2b7f76 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/models/CheckNameAvailabilityResult.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/models/CheckNameAvailabilityResult.java @@ -9,12 +9,24 @@ /** The result of checking for container registry name availability. */ @Fluent public interface CheckNameAvailabilityResult extends HasInnerModel { - /** @return true if the specified name is valid and available for use, otherwise false */ + /** + * Checks whether the specified name is valid and available for use. + * + * @return true if the specified name is valid and available for use, otherwise false + */ boolean isAvailable(); - /** @return the reason why the user-provided name for the container registry could not be used */ + /** + * Gets the reason why the user-provided name for the container registry could not be used. + * + * @return the reason why the user-provided name for the container registry could not be used + */ String unavailabilityReason(); - /** @return the error message that provides more detail for the reason why the name is not available */ + /** + * Gets provides more detail for the reason why the name is not available. + * + * @return the error message that provides more detail for the reason why the name is not available + */ String unavailabilityMessage(); } diff --git a/sdk/resourcemanager/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/models/NetworkRuleBypassOptions.java b/sdk/resourcemanager/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/models/NetworkRuleBypassOptions.java index 2e30841a9d8d8..d631ef906a21a 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/models/NetworkRuleBypassOptions.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/models/NetworkRuleBypassOptions.java @@ -8,7 +8,7 @@ import java.util.Collection; /** - * Whether to allow trusted Azure services to access a network restricted registry. + * Checks whether to allow trusted Azure services to access a network restricted registry. */ public final class NetworkRuleBypassOptions extends ExpandableStringEnum { /** @@ -23,7 +23,7 @@ public final class NetworkRuleBypassOptions extends ExpandableStringEnum values() { diff --git a/sdk/resourcemanager/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/models/OverridingArgument.java b/sdk/resourcemanager/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/models/OverridingArgument.java index 11443ae314136..817858cef38f8 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/models/OverridingArgument.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/models/OverridingArgument.java @@ -21,12 +21,20 @@ public OverridingArgument(String value, boolean isSecret) { this.isSecret = isSecret; } - /** @return the value of the overriding argument. */ + /** + * Gets the value of the overriding argument. + * + * @return the value of the overriding argument. + */ public String value() { return this.value; } - /** @return whether the overriding argument is secret or not. */ + /** + * Checks whether the overriding argument is secret or not. + * + * @return whether the overriding argument is secret or not. + */ public boolean isSecret() { return this.isSecret; } diff --git a/sdk/resourcemanager/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/models/OverridingValue.java b/sdk/resourcemanager/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/models/OverridingValue.java index 45c8f56957f64..b8192a1f18840 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/models/OverridingValue.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/models/OverridingValue.java @@ -21,12 +21,20 @@ public OverridingValue(String value, boolean isSecret) { this.isSecret = isSecret; } - /** @return the value of the overriding value. */ + /** + * Gets the value of the overriding value. + * + * @return the value of the overriding value. + */ public String value() { return this.value; } - /** @return whether the overriding value is secret or not. */ + /** + * Gets whether the overriding value is secret or not.. + * + * @return whether the overriding value is secret or not. + */ public boolean isSecret() { return this.isSecret; } diff --git a/sdk/resourcemanager/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/models/PublicNetworkAccess.java b/sdk/resourcemanager/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/models/PublicNetworkAccess.java index 70b26d621385e..e908f3e54ce2a 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/models/PublicNetworkAccess.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/models/PublicNetworkAccess.java @@ -8,7 +8,7 @@ import java.util.Collection; /** - * Whether or not public network access is allowed for the container registry. + * Checks whether or not public network access is allowed for the container registry. */ public final class PublicNetworkAccess extends ExpandableStringEnum { /** @@ -23,7 +23,7 @@ public final class PublicNetworkAccess extends ExpandableStringEnum values() { diff --git a/sdk/resourcemanager/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/models/Registries.java b/sdk/resourcemanager/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/models/Registries.java index f2f69b374412a..7df96dfebebd9 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/models/Registries.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/models/Registries.java @@ -122,7 +122,11 @@ Mono regenerateCredentialAsync(String resourceGroupName, St */ Mono getBuildSourceUploadUrlAsync(String rgName, String acrName); - /** @return returns entry point to manage container registry webhooks. */ + /** + * Gets returns entry point to manage container registry webhooks. + * + * @return returns entry point to manage container registry webhooks. + */ WebhooksClient webhooks(); /** Grouping of registry webhook actions. */ diff --git a/sdk/resourcemanager/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/models/Registry.java b/sdk/resourcemanager/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/models/Registry.java index a8a406263f296..10286db4c6ceb 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/models/Registry.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/models/Registry.java @@ -27,22 +27,46 @@ public interface Registry extends GroupableResource, SupportsListingPrivateLinkResource, SupportsListingPrivateEndpointConnection, SupportsUpdatingPrivateEndpointConnection { - /** @return the SKU of the container registry. */ + /** + * Gets the SKU of the container registry.. + * + * @return the SKU of the container registry. + */ Sku sku(); - /** @return the URL that can be used to log into the container registry */ + /** + * Gets the URL that can be used to log into the container registry. + * + * @return the URL that can be used to log into the container registry + */ String loginServerUrl(); - /** @return the creation date of the container registry in ISO8601 format */ + /** + * Gets the creation date of the container registry. + * + * @return the creation date of the container registry in ISO8601 format + */ OffsetDateTime creationDate(); - /** @return the value that indicates whether the admin user is enabled */ + /** + * Checks whether the value that indicates whether the admin user is enabled. + * + * @return the value that indicates whether the admin user is enabled + */ boolean adminUserEnabled(); - /** @return the login credentials for the specified container registry */ + /** + * Gets the login credentials for the specified container registry. + * + * @return the login credentials for the specified container registry + */ RegistryCredentials getCredentials(); - /** @return a representation of the future computation of this call */ + /** + * Gets a representation of the future computation of this call. + * + * @return a representation of the future computation of this call + */ Mono getCredentialsAsync(); /** @@ -75,37 +99,67 @@ public interface Registry extends GroupableResource listQuotaUsagesAsync(); - /** @return returns the upload location for the user to be able to upload the source. */ + /** + * Gets the upload location for the user to be able to upload the source. + * + * @return returns the upload location for the user to be able to upload the source. + */ SourceUploadDefinition getBuildSourceUploadUrl(); /** - * Gets the upload location for the user to be able to upload the source asynchronously. + * Gets the upload location. * * @return a representation of the future computation of this call */ Mono getBuildSourceUploadUrlAsync(); - /** @return returns entry point to manage container registry webhooks. */ + /** + * Gets entry point to manage container registry webhooks. + * + * @return returns entry point to manage container registry webhooks. + */ WebhookOperations webhooks(); /** + * Gets the state of public network access for the container registry. + * * @return the state of public network access for the container registry. */ PublicNetworkAccess publicNetworkAccess(); - /** @return whether the container registry can be access from trusted services */ + /** + * Checks whether the container registry can be access from trusted services + * + * @return whether the container registry can be access from trusted services + */ boolean canAccessFromTrustedServices(); - /** @return the network rule set for the container registry */ + /** + * Gets the network rule set for the container registry. + * + * @return the network rule set for the container registry + */ NetworkRuleSet networkRuleSet(); - /** @return whether the container registries dedicated data endpoints can be accessed from public network */ + /** + * Checks whether the container registries dedicated data endpoints can be accessed from public network. + * + * @return whether the container registries dedicated data endpoints can be accessed from public network + */ boolean isDedicatedDataEndpointsEnabled(); - /** @return Whether or not zone redundancy is enabled for this container registry */ + /** + * Checks whether zone redundancy is enabled for this container registry. + * + * @return Whether zone redundancy is enabled for this container registry + */ boolean isZoneRedundancyEnabled(); - /** @return list of host names that will serve data when isDedicatedDataEndpointsEnabled is true */ + /** + * Gets list of host names that will serve data. + * + * @return list of host names that will serve data when isDedicatedDataEndpointsEnabled is true + */ List dedicatedDataEndpointsHostNames(); /** diff --git a/sdk/resourcemanager/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/models/RegistryDockerTaskRunRequest.java b/sdk/resourcemanager/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/models/RegistryDockerTaskRunRequest.java index ae05a16645c76..9596483e646e3 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/models/RegistryDockerTaskRunRequest.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/models/RegistryDockerTaskRunRequest.java @@ -11,19 +11,39 @@ /** An immutable client-side representation of an Azure registry Docker task run request. */ @Fluent() public interface RegistryDockerTaskRunRequest { - /** @return the length of the timeout. */ + /** + * Gets the length of the timeout. + * + * @return the length of the timeout. + */ int timeout(); - /** @return the properties of the platform. */ + /** + * Gets the properties of the platform. + * + * @return the properties of the platform. + */ PlatformProperties platform(); - /** @return the number of CPUs. */ + /** + * Gets the number of CPUs. + * + * @return the number of CPUs. + */ int cpuCount(); - /** @return the location of the source control. */ + /** + * Gets the location of the source control. + * + * @return the location of the source control. + */ String sourceLocation(); - /** @return whether archive is enabled. */ + /** + * Checks whether archive is enabled. + * + * @return whether archive is enabled. + */ boolean isArchiveEnabled(); /** Container interface for all the definitions related to a registry Docker task run request. */ diff --git a/sdk/resourcemanager/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/models/RegistryDockerTaskStep.java b/sdk/resourcemanager/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/models/RegistryDockerTaskStep.java index 2580244c649de..40643f5ed4617 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/models/RegistryDockerTaskStep.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/models/RegistryDockerTaskStep.java @@ -12,19 +12,39 @@ /** An immutable client-side representation of an Azure RegistryDockerTaskStep registry task. */ @Fluent() public interface RegistryDockerTaskStep extends HasInnerModel, RegistryTaskStep { - /** @return the image names of this Docker task step */ + /** + * Gets the image names of this Docker task step. + * + * @return the image names of this Docker task step + */ List imageNames(); - /** @return whether push is enabled for this Docker task step */ + /** + * Checks whether push is enabled for this Docker task step. + * + * @return whether push is enabled for this Docker task step + */ boolean isPushEnabled(); - /** @return whether there is no cache for this Docker task step */ + /** + * Checks whether there is no cache for this Docker task step. + * + * @return whether there is no cache for this Docker task step + */ boolean noCache(); - /** @return Docker file path for this Docker task step */ + /** + * Gets Docker file path for this Docker task step. + * + * @return Docker file path for this Docker task step + */ String dockerFilePath(); - /** @return the arguments this Docker task step */ + /** + * Gets the arguments this Docker task step. + * + * @return the arguments this Docker task step + */ List arguments(); /** Container interface for all the definitions related to a RegistryDockerTaskStep. */ diff --git a/sdk/resourcemanager/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/models/RegistryEncodedTaskRunRequest.java b/sdk/resourcemanager/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/models/RegistryEncodedTaskRunRequest.java index a69d5b2b2d97d..dbd5aa49782c2 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/models/RegistryEncodedTaskRunRequest.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/models/RegistryEncodedTaskRunRequest.java @@ -9,19 +9,39 @@ /** An immutable client-side representation of an Azure registry Encoded task run request. */ @Fluent() public interface RegistryEncodedTaskRunRequest { - /** @return the length of the timeout. */ + /** + * Gets the length of the timeout. + * + * @return the length of the timeout. + */ int timeout(); - /** @return the properties of the platform. */ + /** + * Gets the properties of the platform. + * + * @return the properties of the platform. + */ PlatformProperties platform(); - /** @return the number of CPUs. */ + /** + * Gets the number of CPUs. + * + * @return the number of CPUs. + */ int cpuCount(); - /** @return the location of the source control. */ + /** + * Gets the location of the source control. + * + * @return the location of the source control. + */ String sourceLocation(); - /** @return whether archive is enabled. */ + /** + * Checks whether archive is enabled. + * + * @return whether archive is enabled. + */ boolean isArchiveEnabled(); /** Container interface for all the definitions related to a registry Encoded task run request. */ diff --git a/sdk/resourcemanager/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/models/RegistryEncodedTaskStep.java b/sdk/resourcemanager/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/models/RegistryEncodedTaskStep.java index e05529c9b0370..fcce7f27ccc98 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/models/RegistryEncodedTaskStep.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/models/RegistryEncodedTaskStep.java @@ -12,13 +12,25 @@ /** An immutable client-side representation of an Azure RegistryEncodedTaskStep registry task. */ @Fluent() public interface RegistryEncodedTaskStep extends RegistryTaskStep { - /** @return the encoded task content of this encoded task step */ + /** + * Gets the encoded task content of this encoded task step. + * + * @return the encoded task content of this encoded task step + */ String encodedTaskContent(); - /** @return the encoded values content of this encoded task step */ + /** + * Gets the encoded values content of this encoded task step. + * + * @return the encoded values content of this encoded task step + */ String encodedValuesContent(); - /** @return the values of this encoded task step */ + /** + * Gets the values of this encoded task step. + * + * @return the values of this encoded task step + */ List values(); /** Container interface for all the definitions related to a RegistryEncodedTaskStep. */ diff --git a/sdk/resourcemanager/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/models/RegistryFileTaskRunRequest.java b/sdk/resourcemanager/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/models/RegistryFileTaskRunRequest.java index aa9ee869cc987..7d6792d6d699a 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/models/RegistryFileTaskRunRequest.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/models/RegistryFileTaskRunRequest.java @@ -9,19 +9,39 @@ /** An immutable client-side representation of an Azure registry file task run request. */ @Fluent() public interface RegistryFileTaskRunRequest { - /** @return the length of the timeout. */ + /** + * Gets the length of the timeout. + * + * @return the length of the timeout. + */ int timeout(); - /** @return the properties of the platform. */ + /** + * Gets the properties of the platform. + * + * @return the properties of the platform. + */ PlatformProperties platform(); - /** @return the number of CPUs. */ + /** + * Gets the number of CPUs. + * + * @return the number of CPUs. + */ int cpuCount(); - /** @return the location of the source control. */ + /** + * Gets the location of the source control. + * + * @return the location of the source control. + */ String sourceLocation(); - /** @return whether archive is enabled. */ + /** + * Checks whether archive is enabled. + * + * @return whether archive is enabled. + */ boolean isArchiveEnabled(); /** Container interface for all the definitions related to a registry file task run request. */ diff --git a/sdk/resourcemanager/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/models/RegistryFileTaskStep.java b/sdk/resourcemanager/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/models/RegistryFileTaskStep.java index c17c9529c153b..135651d923a86 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/models/RegistryFileTaskStep.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/models/RegistryFileTaskStep.java @@ -12,13 +12,25 @@ /** An immutable client-side representation of an Azure RegistryFileTaskStep registry task. */ @Fluent() public interface RegistryFileTaskStep extends RegistryTaskStep { - /** @return the task file path of this file task step */ + /** + * Gets the task file path of this file task step. + * + * @return the task file path of this file task step + */ String taskFilePath(); - /** @return the values file path of this file task step */ + /** + * Gets the values file path of this file task step. + * + * @return the values file path of this file task step + */ String valuesFilePath(); - /** @return the values of this file task step */ + /** + * Gets the values of this file task step. + * + * @return the values of this file task step + */ List values(); /** Container interface for all the definitions related to a RegistryFileTaskStep. */ diff --git a/sdk/resourcemanager/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/models/RegistrySourceTrigger.java b/sdk/resourcemanager/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/models/RegistrySourceTrigger.java index a9f958d716110..4ce19b1600b5e 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/models/RegistrySourceTrigger.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/models/RegistrySourceTrigger.java @@ -12,19 +12,39 @@ @Fluent() public interface RegistrySourceTrigger extends HasInnerModel { - /** @return Returns the type of source control this trigger uses. I.e., Github, AzureDevOps etc. */ + /** + * Gets the type of source control this trigger uses. + * + * @return Returns the type of source control this trigger uses. I.e., Github, AzureDevOps etc. + */ SourceControlType sourceControlType(); - /** @return the URL of the repository used as source control. */ + /** + * Gets the URL of the repository used as source control. + * + * @return the URL of the repository used as source control. + */ String sourceControlRepositoryUrl(); - /** @return the list of actions that trigger an event. I.e., a commit, a pull request etc. */ + /** + * Gets the list of actions that trigger an event. + * + * @return the list of actions that trigger an event. I.e., a commit, a pull request etc. + */ List sourceTriggerEvents(); - /** @return the branch of the repository that is being used as source control. I.e., master. */ + /** + * Gets the branch of the repository that is being used as source control. + * + * @return the branch of the repository that is being used as source control. I.e., master. + */ String sourceControlBranch(); - /** @return the source trigger status. I.e., enabled, disabled. */ + /** + * Gets the source trigger status. + * + * @return the source trigger status. I.e., enabled, disabled. + */ TriggerStatus status(); /** Container interface for all of the definitions related to a container registry source trigger. */ diff --git a/sdk/resourcemanager/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/models/RegistryTask.java b/sdk/resourcemanager/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/models/RegistryTask.java index be9eeeeefe4f8..3bf75618dca7c 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/models/RegistryTask.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/models/RegistryTask.java @@ -20,37 +20,81 @@ public interface RegistryTask extends Resource, HasInnerModel, Refreshable, Updatable { - /** @return the name of the resource's resource group */ + /** + * Gets the name of the resource's resource group. + * + * @return the name of the resource's resource group + */ String resourceGroupName(); - /** @return the parent ID of this resource */ + /** + * Gets the parent ID of this resource. + * + * @return the parent ID of this resource + */ String parentRegistryId(); - /** @return the provisioning state of the build task */ + /** + * Gets the provisioning state of the build task. + * + * @return the provisioning state of the build task + */ ProvisioningState provisioningState(); - /** @return the creation date of build task */ + /** + * Gets the creation date of build task. + * + * @return the creation date of build task + */ OffsetDateTime creationDate(); - /** @return the current status of build task */ + /** + * Gets the current status of build task. + * + * @return the current status of build task + */ TaskStatus status(); - /** @return the RegistryTaskStep of the current task */ + /** + * Gets the RegistryTaskStep of the current task. + * + * @return the RegistryTaskStep of the current task + */ RegistryTaskStep registryTaskStep(); - /** @return the build timeout settings in seconds */ + /** + * Gets the build timeout settings in seconds. + * + * @return the build timeout settings in seconds + */ int timeout(); - /** @return the build timeout settings in seconds */ + /** + * Gets the build timeout settings in seconds. + * + * @return the build timeout settings in seconds + */ PlatformProperties platform(); - /** @return the CPU count */ + /** + * Gets the count of CPUs. + * + * @return the CPU count + */ int cpuCount(); - /** @return the trigger of the task */ + /** + * Gets the trigger of the task. + * + * @return the trigger of the task + */ TriggerProperties trigger(); - /** @return the source triggers of the task. */ + /** + * Gets the source triggers of the task. + * + * @return the source triggers of the task. + */ Map sourceTriggers(); /** Container interface for all the definitions related to a registry task. */ diff --git a/sdk/resourcemanager/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/models/RegistryTaskRun.java b/sdk/resourcemanager/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/models/RegistryTaskRun.java index d9043c247641b..5e6d9e2e9d8e7 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/models/RegistryTaskRun.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/models/RegistryTaskRun.java @@ -13,43 +13,89 @@ /** An immutable client-side representation of an Azure RegistryDockerTaskRunRequest registry task run request. */ @Fluent() public interface RegistryTaskRun extends HasInnerModel, Refreshable { - /** @return the name of the resource group for this task run request */ + /** + * Gets the name of the resource group. + * + * @return the name of the resource group for this task run request + */ String resourceGroupName(); - /** @return the registry name of this task run request */ + /** + * Gets the registry name. + * + * @return the registry name of this task run request + */ String registryName(); /** + * Gets the name of the task. + * * @return the name of the task in the case of a TaskRunRequest (or null if task is still queued), null in other * cases */ String taskName(); - /** @return the status of the run request */ + /** + * Gets the status of the run request. + * + * @return the status of the run request + */ RunStatus status(); - /** @return the run type of the run request */ + /** + * Gets the run type of the run request. + * + * @return the run type of the run request + */ RunType runType(); - /** @return the last time the run request was updated */ + /** + * Gets the last time the run request was updated. + * + * @return the last time the run request was updated + */ OffsetDateTime lastUpdatedTime(); - /** @return the time when the run request was created */ + /** + * Gets the time when the run request was created. + * + * @return the time when the run request was created + */ OffsetDateTime createTime(); - /** @return whether archiving is enabled for the run request */ + /** + * Checks whether archiving is enabled for the run request. + * + * @return whether archiving is enabled for the run request + */ boolean isArchiveEnabled(); - /** @return the platform properties of the run request */ + /** + * Gets the platform properties of the run request. + * + * @return the platform properties of the run request + */ PlatformProperties platform(); - /** @return the numbers of cpu */ + /** + * Gets the numbers of CPU. + * + * @return the numbers of CPU + */ int cpu(); - /** @return the provisioning state of the run request */ + /** + * Gets the provisioning state of the run request. + * + * @return the provisioning state of the run request + */ ProvisioningState provisioningState(); - /** @return the id of the run */ + /** + * Gets the id of the run. + * + * @return the id of the run + */ String runId(); /** Container interface for all the definitions related to a RegistryTaskRun. */ diff --git a/sdk/resourcemanager/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/models/RegistryTaskStep.java b/sdk/resourcemanager/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/models/RegistryTaskStep.java index b44efc685d460..d418dc3f84d5b 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/models/RegistryTaskStep.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/models/RegistryTaskStep.java @@ -9,9 +9,17 @@ /** An immutable client-side representation of an Azure RegistryTaskStep registry task. */ @Fluent() public interface RegistryTaskStep { - /** @return the base image dependencies of this RegistryTaskStep */ + /** + * Gets the base image dependencies. + * + * @return the base image dependencies of this RegistryTaskStep + */ List baseImageDependencies(); - /** @return the context path of this RegistryTaskStep */ + /** + * Gets the context path. + * + * @return the context path of this RegistryTaskStep + */ String contextPath(); } diff --git a/sdk/resourcemanager/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/models/SourceUploadDefinition.java b/sdk/resourcemanager/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/models/SourceUploadDefinition.java index 4a54f9b125c29..b4d888b2b5d5e 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/models/SourceUploadDefinition.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/models/SourceUploadDefinition.java @@ -9,9 +9,17 @@ /** The source repository properties for a build task. */ @Fluent public interface SourceUploadDefinition extends HasInnerModel { - /** @return the URL where the client can upload the source */ + /** + * Gets the URL where the client can upload the source. + * + * @return the URL where the client can upload the source + */ String uploadUrl(); - /** @return the the relative path to the source; this is used to submit the subsequent queue build request */ + /** + * Gets the relative path to the source. + * + * @return the relative path to the source; this is used to submit the subsequent queue build request + */ String relativePath(); } diff --git a/sdk/resourcemanager/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/models/Webhook.java b/sdk/resourcemanager/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/models/Webhook.java index ad43686ca070b..0db6da699e596 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/models/Webhook.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/models/Webhook.java @@ -23,29 +23,55 @@ public interface Webhook extends ExternalChildResource, Resource, HasInnerModel, Refreshable, Updatable { - /** @return the status of the webhook */ + /** + * Gets the status of the webhook. + * + * @return the status of the webhook + */ boolean isEnabled(); /** + * Gets the scope of repositories where the event can be triggered. + * * @return 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 */ String scope(); - /** @return the service URI for the webhook to post notifications */ + /** + * Gets the service URI for the webhook to post notifications. + * + * @return the service URI for the webhook to post notifications + */ String serviceUri(); - /** @return the Custom headers that will be added to the webhook notifications */ + /** + * Gets the Custom headers that will be added to the webhook notifications. + * + * @return the Custom headers that will be added to the webhook notifications + */ Map customHeaders(); - /** @return the list of actions that trigger the webhook to post notifications */ + /** + * Gets the list of actions that trigger the webhook to post notifications. + * + * @return the list of actions that trigger the webhook to post notifications + */ Collection triggers(); - /** @return the provisioning state of the webhook */ + /** + * Gets the provisioning state of the webhook. + * + * @return the provisioning state of the webhook + */ ProvisioningState provisioningState(); - /** @return the webhook parent ID */ + /** + * Gets the webhook parent ID. + * + * @return the webhook parent ID + */ String parentId(); /** Changes the status of the webhook to "enabled". */ @@ -68,16 +94,32 @@ public interface Webhook extends ExternalChildResource, Resou */ Mono disableAsync(); - /** @return the id on an event info resource */ + /** + * Gets the id on an event info resource. + * + * @return the id on an event info resource + */ String ping(); - /** @return a representation of the future computation of this call, returning the id on an event info resource */ + /** + * Gets the id on an event info resource. + * + * @return a representation of the future computation of this call, returning the id on an event info resource + */ Mono pingAsync(); - /** @return the list of event info object */ + /** + * Gets the list of event info object. + * + * @return the list of event info object + */ PagedIterable listEvents(); - /** @return a representation of the future computation of this call, returning the list of event info object */ + /** + * Gets the list of event info object. + * + * @return a representation of the future computation of this call, returning the list of event info object + */ PagedFlux listEventsAsync(); /** Grouping of webhook definition stages. */ diff --git a/sdk/resourcemanager/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/models/ZoneRedundancy.java b/sdk/resourcemanager/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/models/ZoneRedundancy.java index 12ffd8ab556ee..2c36003a68d23 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/models/ZoneRedundancy.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/models/ZoneRedundancy.java @@ -8,7 +8,7 @@ import java.util.Collection; /** - * Whether or not zone redundancy is enabled for this container registry. + * Checks whether or not zone redundancy is enabled for this container registry. */ public final class ZoneRedundancy extends ExpandableStringEnum { /** @@ -23,7 +23,7 @@ public final class ZoneRedundancy extends ExpandableStringEnum { /** * Creates a new instance of ZoneRedundancy value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -32,7 +32,7 @@ public ZoneRedundancy() { /** * Creates or finds a ZoneRedundancy from its string representation. - * + * * @param name a name to look for. * @return the corresponding ZoneRedundancy. */ @@ -42,7 +42,7 @@ public static ZoneRedundancy fromString(String name) { /** * Gets known ZoneRedundancy values. - * + * * @return known ZoneRedundancy values. */ public static Collection values() {