-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mgmt, update containerregistry to 2023-07-01 (#36688)
mgmt, update containerregistry to 2023-07-01
- Loading branch information
Showing
111 changed files
with
5,854 additions
and
228 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
488 changes: 488 additions & 0 deletions
488
...ry/src/main/java/com/azure/resourcemanager/containerregistry/fluent/CacheRulesClient.java
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
512 changes: 512 additions & 0 deletions
512
...rc/main/java/com/azure/resourcemanager/containerregistry/fluent/CredentialSetsClient.java
Large diffs are not rendered by default.
Oops, something went wrong.
152 changes: 152 additions & 0 deletions
152
...c/main/java/com/azure/resourcemanager/containerregistry/fluent/models/CacheRuleInner.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,152 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. | ||
// Code generated by Microsoft (R) AutoRest Code Generator. | ||
|
||
package com.azure.resourcemanager.containerregistry.fluent.models; | ||
|
||
import com.azure.core.annotation.Fluent; | ||
import com.azure.core.management.ProxyResource; | ||
import com.azure.core.management.SystemData; | ||
import com.azure.resourcemanager.containerregistry.models.ProvisioningState; | ||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import java.time.OffsetDateTime; | ||
|
||
/** An object that represents a cache rule for a container registry. */ | ||
@Fluent | ||
public final class CacheRuleInner extends ProxyResource { | ||
/* | ||
* The properties of the cache rule. | ||
*/ | ||
@JsonProperty(value = "properties") | ||
private CacheRuleProperties innerProperties; | ||
|
||
/* | ||
* Metadata pertaining to creation and last modification of the resource. | ||
*/ | ||
@JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY) | ||
private SystemData systemData; | ||
|
||
/** Creates an instance of CacheRuleInner class. */ | ||
public CacheRuleInner() { | ||
} | ||
|
||
/** | ||
* Get the innerProperties property: The properties of the cache rule. | ||
* | ||
* @return the innerProperties value. | ||
*/ | ||
private CacheRuleProperties innerProperties() { | ||
return this.innerProperties; | ||
} | ||
|
||
/** | ||
* Get the systemData property: Metadata pertaining to creation and last modification of the resource. | ||
* | ||
* @return the systemData value. | ||
*/ | ||
public SystemData systemData() { | ||
return this.systemData; | ||
} | ||
|
||
/** | ||
* Get the credentialSetResourceId property: The ARM resource ID of the credential store which is associated with | ||
* the cache rule. | ||
* | ||
* @return the credentialSetResourceId value. | ||
*/ | ||
public String credentialSetResourceId() { | ||
return this.innerProperties() == null ? null : this.innerProperties().credentialSetResourceId(); | ||
} | ||
|
||
/** | ||
* Set the credentialSetResourceId property: The ARM resource ID of the credential store which is associated with | ||
* the cache rule. | ||
* | ||
* @param credentialSetResourceId the credentialSetResourceId value to set. | ||
* @return the CacheRuleInner object itself. | ||
*/ | ||
public CacheRuleInner withCredentialSetResourceId(String credentialSetResourceId) { | ||
if (this.innerProperties() == null) { | ||
this.innerProperties = new CacheRuleProperties(); | ||
} | ||
this.innerProperties().withCredentialSetResourceId(credentialSetResourceId); | ||
return this; | ||
} | ||
|
||
/** | ||
* Get the sourceRepository property: Source repository pulled from upstream. | ||
* | ||
* @return the sourceRepository value. | ||
*/ | ||
public String sourceRepository() { | ||
return this.innerProperties() == null ? null : this.innerProperties().sourceRepository(); | ||
} | ||
|
||
/** | ||
* Set the sourceRepository property: Source repository pulled from upstream. | ||
* | ||
* @param sourceRepository the sourceRepository value to set. | ||
* @return the CacheRuleInner object itself. | ||
*/ | ||
public CacheRuleInner withSourceRepository(String sourceRepository) { | ||
if (this.innerProperties() == null) { | ||
this.innerProperties = new CacheRuleProperties(); | ||
} | ||
this.innerProperties().withSourceRepository(sourceRepository); | ||
return this; | ||
} | ||
|
||
/** | ||
* Get the targetRepository property: Target repository specified in docker pull command. Eg: docker pull | ||
* myregistry.azurecr.io/{targetRepository}:{tag}. | ||
* | ||
* @return the targetRepository value. | ||
*/ | ||
public String targetRepository() { | ||
return this.innerProperties() == null ? null : this.innerProperties().targetRepository(); | ||
} | ||
|
||
/** | ||
* Set the targetRepository property: Target repository specified in docker pull command. Eg: docker pull | ||
* myregistry.azurecr.io/{targetRepository}:{tag}. | ||
* | ||
* @param targetRepository the targetRepository value to set. | ||
* @return the CacheRuleInner object itself. | ||
*/ | ||
public CacheRuleInner withTargetRepository(String targetRepository) { | ||
if (this.innerProperties() == null) { | ||
this.innerProperties = new CacheRuleProperties(); | ||
} | ||
this.innerProperties().withTargetRepository(targetRepository); | ||
return this; | ||
} | ||
|
||
/** | ||
* Get the creationDate property: The creation date of the cache rule. | ||
* | ||
* @return the creationDate value. | ||
*/ | ||
public OffsetDateTime creationDate() { | ||
return this.innerProperties() == null ? null : this.innerProperties().creationDate(); | ||
} | ||
|
||
/** | ||
* Get the provisioningState property: Provisioning state of the resource. | ||
* | ||
* @return the provisioningState value. | ||
*/ | ||
public ProvisioningState provisioningState() { | ||
return this.innerProperties() == null ? null : this.innerProperties().provisioningState(); | ||
} | ||
|
||
/** | ||
* Validates the instance. | ||
* | ||
* @throws IllegalArgumentException thrown if the instance is not valid. | ||
*/ | ||
public void validate() { | ||
if (innerProperties() != null) { | ||
innerProperties().validate(); | ||
} | ||
} | ||
} |
139 changes: 139 additions & 0 deletions
139
...n/java/com/azure/resourcemanager/containerregistry/fluent/models/CacheRuleProperties.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,139 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. | ||
// Code generated by Microsoft (R) AutoRest Code Generator. | ||
|
||
package com.azure.resourcemanager.containerregistry.fluent.models; | ||
|
||
import com.azure.core.annotation.Fluent; | ||
import com.azure.resourcemanager.containerregistry.models.ProvisioningState; | ||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import java.time.OffsetDateTime; | ||
|
||
/** The properties of a cache rule. */ | ||
@Fluent | ||
public final class CacheRuleProperties { | ||
/* | ||
* The ARM resource ID of the credential store which is associated with the cache rule. | ||
*/ | ||
@JsonProperty(value = "credentialSetResourceId") | ||
private String credentialSetResourceId; | ||
|
||
/* | ||
* Source repository pulled from upstream. | ||
*/ | ||
@JsonProperty(value = "sourceRepository") | ||
private String sourceRepository; | ||
|
||
/* | ||
* Target repository specified in docker pull command. | ||
* Eg: docker pull myregistry.azurecr.io/{targetRepository}:{tag} | ||
*/ | ||
@JsonProperty(value = "targetRepository") | ||
private String targetRepository; | ||
|
||
/* | ||
* The creation date of the cache rule. | ||
*/ | ||
@JsonProperty(value = "creationDate", access = JsonProperty.Access.WRITE_ONLY) | ||
private OffsetDateTime creationDate; | ||
|
||
/* | ||
* Provisioning state of the resource. | ||
*/ | ||
@JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY) | ||
private ProvisioningState provisioningState; | ||
|
||
/** Creates an instance of CacheRuleProperties class. */ | ||
public CacheRuleProperties() { | ||
} | ||
|
||
/** | ||
* Get the credentialSetResourceId property: The ARM resource ID of the credential store which is associated with | ||
* the cache rule. | ||
* | ||
* @return the credentialSetResourceId value. | ||
*/ | ||
public String credentialSetResourceId() { | ||
return this.credentialSetResourceId; | ||
} | ||
|
||
/** | ||
* Set the credentialSetResourceId property: The ARM resource ID of the credential store which is associated with | ||
* the cache rule. | ||
* | ||
* @param credentialSetResourceId the credentialSetResourceId value to set. | ||
* @return the CacheRuleProperties object itself. | ||
*/ | ||
public CacheRuleProperties withCredentialSetResourceId(String credentialSetResourceId) { | ||
this.credentialSetResourceId = credentialSetResourceId; | ||
return this; | ||
} | ||
|
||
/** | ||
* Get the sourceRepository property: Source repository pulled from upstream. | ||
* | ||
* @return the sourceRepository value. | ||
*/ | ||
public String sourceRepository() { | ||
return this.sourceRepository; | ||
} | ||
|
||
/** | ||
* Set the sourceRepository property: Source repository pulled from upstream. | ||
* | ||
* @param sourceRepository the sourceRepository value to set. | ||
* @return the CacheRuleProperties object itself. | ||
*/ | ||
public CacheRuleProperties withSourceRepository(String sourceRepository) { | ||
this.sourceRepository = sourceRepository; | ||
return this; | ||
} | ||
|
||
/** | ||
* Get the targetRepository property: Target repository specified in docker pull command. Eg: docker pull | ||
* myregistry.azurecr.io/{targetRepository}:{tag}. | ||
* | ||
* @return the targetRepository value. | ||
*/ | ||
public String targetRepository() { | ||
return this.targetRepository; | ||
} | ||
|
||
/** | ||
* Set the targetRepository property: Target repository specified in docker pull command. Eg: docker pull | ||
* myregistry.azurecr.io/{targetRepository}:{tag}. | ||
* | ||
* @param targetRepository the targetRepository value to set. | ||
* @return the CacheRuleProperties object itself. | ||
*/ | ||
public CacheRuleProperties withTargetRepository(String targetRepository) { | ||
this.targetRepository = targetRepository; | ||
return this; | ||
} | ||
|
||
/** | ||
* Get the creationDate property: The creation date of the cache rule. | ||
* | ||
* @return the creationDate value. | ||
*/ | ||
public OffsetDateTime creationDate() { | ||
return this.creationDate; | ||
} | ||
|
||
/** | ||
* Get the provisioningState property: Provisioning state of the resource. | ||
* | ||
* @return the provisioningState value. | ||
*/ | ||
public ProvisioningState provisioningState() { | ||
return this.provisioningState; | ||
} | ||
|
||
/** | ||
* Validates the instance. | ||
* | ||
* @throws IllegalArgumentException thrown if the instance is not valid. | ||
*/ | ||
public void validate() { | ||
} | ||
} |
Oops, something went wrong.