Azure / azure-sdk-for-go

This repository is for active development of the Azure SDK for Go. For consumers of the SDK we recommend visiting our public developer docs at:
https://docs.microsoft.com/azure/developer/go/
MIT License
1.56k stars 802 forks source link

Support update container registry cache rule source repository and target repository #23118

Open bingosummer opened 1 week ago

bingosummer commented 1 week ago

Feature Request

The update operation can only update CredentialSetResourceID. Is it possible to update source repository and target repository?

// CacheRuleUpdateParameters - The parameters for updating a cache rule.
type CacheRuleUpdateParameters struct {
    // The properties of the cache rule update parameters.
    Properties *CacheRuleUpdateProperties
}

// CacheRuleUpdateProperties - The parameters for updating cache rule properties.
type CacheRuleUpdateProperties struct {
    // The ARM resource ID of the credential store which is associated with the Cache rule.
    CredentialSetResourceID *string
}

https://github.com/Azure/azure-sdk-for-go/blob/f84d591780e21bc9108f386374b6ccdcc4bf8021/sdk/resourcemanager/containerregistry/armcontainerregistry/models.go#L365

github-actions[bot] commented 1 week ago

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @northtyphoon @toddysm.

Alancere commented 1 week ago

CacheRuleUpdateParameters is defined here: https://github.com/Azure/azure-rest-api-specs/blob/main/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2023-11-01-preview/containerregistry.json#L4327