Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mgmt, update containerregistry to 2023-07-01 #36688

Merged
merged 2 commits into from
Sep 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion sdk/resourcemanager/api-specs.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
"dir": "azure-resourcemanager-containerregistry",
"source": "specification/containerregistry/resource-manager/readme.md",
"package": "com.azure.resourcemanager.containerregistry",
"args": "--tag=package-2022-12"
"args": "--tag=package-2023-07"
},
"containerregistry-hybrid": {
"dir": "../resourcemanagerhybrid/azure-resourcemanager-containerregistry",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,11 @@

## 2.31.0-beta.1 (Unreleased)

### Features Added

### Breaking Changes
### Other Changes

### Bugs Fixed
#### Dependency Updates

### Other Changes
- Updated `api-version` to `2023-07-01`.

## 2.30.0 (2023-08-25)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
"AssetsRepo": "Azure/azure-sdk-assets",
"AssetsRepoPrefixPath": "java",
"TagPrefix": "java/resourcemanager/azure-resourcemanager-containerregistry",
"Tag": "java/resourcemanager/azure-resourcemanager-containerregistry_bfd3d979bd"
"Tag": "java/resourcemanager/azure-resourcemanager-containerregistry_1a4bd3c103"
}
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
</javaModulesSurefireArgLine>

<parallelizeTests>false</parallelizeTests>
<revapi.skip>true</revapi.skip>
XiaofeiCao marked this conversation as resolved.
Show resolved Hide resolved
</properties>

<developers>
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,20 @@ public interface ContainerRegistryManagementClient {
*/
Duration getDefaultPollInterval();

/**
* Gets the CacheRulesClient object to access its operations.
*
* @return the CacheRulesClient object.
*/
CacheRulesClient getCacheRules();

/**
* Gets the CredentialSetsClient object to access its operations.
*
* @return the CredentialSetsClient object.
*/
CredentialSetsClient getCredentialSets();

/**
* Gets the RegistriesClient object to access its operations.
*
Expand Down

Large diffs are not rendered by default.

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();
}
}
}
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() {
}
}
Loading
Loading