diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/CacheRuleCreate.go b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/CacheRuleCreate.go index 169d7fadfc..365b35793d 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/CacheRuleCreate.go +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/CacheRuleCreate.go @@ -6,10 +6,10 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v2" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v3" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/dde5cdd6b104898e71f88b8afe94655ddd9456a9/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples/CacheRuleCreate.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/523ccabf440d8cf1c5b0ea18a8ad1ffedf4902ac/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples/CacheRuleCreate.json func ExampleCacheRulesClient_BeginCreate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/CacheRuleCreate.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/CacheRuleCreate.json index b5f653b249..ffd01135ff 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/CacheRuleCreate.json +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/CacheRuleCreate.json @@ -1 +1 @@ -{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv2.0.0/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv3.0.0-beta.1/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/CacheRuleDelete.go b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/CacheRuleDelete.go index bcb6b0be7f..73e53f1947 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/CacheRuleDelete.go +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/CacheRuleDelete.go @@ -5,10 +5,10 @@ import ( "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v2" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v3" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/dde5cdd6b104898e71f88b8afe94655ddd9456a9/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples/CacheRuleDelete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/523ccabf440d8cf1c5b0ea18a8ad1ffedf4902ac/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples/CacheRuleDelete.json func ExampleCacheRulesClient_BeginDelete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/CacheRuleDelete.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/CacheRuleDelete.json index b5f653b249..ffd01135ff 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/CacheRuleDelete.json +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/CacheRuleDelete.json @@ -1 +1 @@ -{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv2.0.0/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv3.0.0-beta.1/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/CacheRuleGet.go b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/CacheRuleGet.go index 658bd44847..892b89693f 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/CacheRuleGet.go +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/CacheRuleGet.go @@ -5,10 +5,10 @@ import ( "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v2" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v3" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/dde5cdd6b104898e71f88b8afe94655ddd9456a9/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples/CacheRuleGet.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/523ccabf440d8cf1c5b0ea18a8ad1ffedf4902ac/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples/CacheRuleGet.json func ExampleCacheRulesClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/CacheRuleGet.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/CacheRuleGet.json index b5f653b249..ffd01135ff 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/CacheRuleGet.json +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/CacheRuleGet.json @@ -1 +1 @@ -{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv2.0.0/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv3.0.0-beta.1/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/CacheRuleList.go b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/CacheRuleList.go index 20abf16a95..d5d73d1cf7 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/CacheRuleList.go +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/CacheRuleList.go @@ -5,10 +5,10 @@ import ( "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v2" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v3" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/dde5cdd6b104898e71f88b8afe94655ddd9456a9/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples/CacheRuleList.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/523ccabf440d8cf1c5b0ea18a8ad1ffedf4902ac/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples/CacheRuleList.json func ExampleCacheRulesClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/CacheRuleList.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/CacheRuleList.json index b5f653b249..ffd01135ff 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/CacheRuleList.json +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/CacheRuleList.json @@ -1 +1 @@ -{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv2.0.0/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv3.0.0-beta.1/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/CacheRuleUpdate.go b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/CacheRuleUpdate.go index f6f8781232..8e4c41ecf8 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/CacheRuleUpdate.go +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/CacheRuleUpdate.go @@ -6,10 +6,10 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v2" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v3" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/dde5cdd6b104898e71f88b8afe94655ddd9456a9/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples/CacheRuleUpdate.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/523ccabf440d8cf1c5b0ea18a8ad1ffedf4902ac/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples/CacheRuleUpdate.json func ExampleCacheRulesClient_BeginUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/CacheRuleUpdate.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/CacheRuleUpdate.json index b5f653b249..ffd01135ff 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/CacheRuleUpdate.json +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/CacheRuleUpdate.json @@ -1 +1 @@ -{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv2.0.0/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv3.0.0-beta.1/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ConnectedRegistryCreate.go b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ConnectedRegistryCreate.go index a7129171d7..a1348f7e12 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ConnectedRegistryCreate.go +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ConnectedRegistryCreate.go @@ -6,10 +6,10 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v2" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v3" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/dde5cdd6b104898e71f88b8afe94655ddd9456a9/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples/ConnectedRegistryCreate.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/523ccabf440d8cf1c5b0ea18a8ad1ffedf4902ac/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples/ConnectedRegistryCreate.json func ExampleConnectedRegistriesClient_BeginCreate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ConnectedRegistryCreate.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ConnectedRegistryCreate.json index b5f653b249..ffd01135ff 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ConnectedRegistryCreate.json +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ConnectedRegistryCreate.json @@ -1 +1 @@ -{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv2.0.0/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv3.0.0-beta.1/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ConnectedRegistryDeactivate.go b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ConnectedRegistryDeactivate.go index f7b9b3e527..b4789e267b 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ConnectedRegistryDeactivate.go +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ConnectedRegistryDeactivate.go @@ -5,10 +5,10 @@ import ( "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v2" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v3" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/dde5cdd6b104898e71f88b8afe94655ddd9456a9/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples/ConnectedRegistryDeactivate.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/523ccabf440d8cf1c5b0ea18a8ad1ffedf4902ac/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples/ConnectedRegistryDeactivate.json func ExampleConnectedRegistriesClient_BeginDeactivate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ConnectedRegistryDeactivate.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ConnectedRegistryDeactivate.json index b5f653b249..ffd01135ff 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ConnectedRegistryDeactivate.json +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ConnectedRegistryDeactivate.json @@ -1 +1 @@ -{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv2.0.0/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv3.0.0-beta.1/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ConnectedRegistryDelete.go b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ConnectedRegistryDelete.go index 61a55d788f..4399a867ee 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ConnectedRegistryDelete.go +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ConnectedRegistryDelete.go @@ -5,10 +5,10 @@ import ( "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v2" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v3" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/dde5cdd6b104898e71f88b8afe94655ddd9456a9/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples/ConnectedRegistryDelete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/523ccabf440d8cf1c5b0ea18a8ad1ffedf4902ac/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples/ConnectedRegistryDelete.json func ExampleConnectedRegistriesClient_BeginDelete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ConnectedRegistryDelete.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ConnectedRegistryDelete.json index b5f653b249..ffd01135ff 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ConnectedRegistryDelete.json +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ConnectedRegistryDelete.json @@ -1 +1 @@ -{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv2.0.0/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv3.0.0-beta.1/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ConnectedRegistryGet.go b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ConnectedRegistryGet.go index 1f5c617ffc..e893d813bb 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ConnectedRegistryGet.go +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ConnectedRegistryGet.go @@ -5,10 +5,10 @@ import ( "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v2" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v3" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/dde5cdd6b104898e71f88b8afe94655ddd9456a9/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples/ConnectedRegistryGet.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/523ccabf440d8cf1c5b0ea18a8ad1ffedf4902ac/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples/ConnectedRegistryGet.json func ExampleConnectedRegistriesClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ConnectedRegistryGet.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ConnectedRegistryGet.json index b5f653b249..ffd01135ff 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ConnectedRegistryGet.json +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ConnectedRegistryGet.json @@ -1 +1 @@ -{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv2.0.0/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv3.0.0-beta.1/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ConnectedRegistryList.go b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ConnectedRegistryList.go index 04784250b2..7f3cf4b6d2 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ConnectedRegistryList.go +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ConnectedRegistryList.go @@ -5,10 +5,10 @@ import ( "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v2" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v3" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/dde5cdd6b104898e71f88b8afe94655ddd9456a9/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples/ConnectedRegistryList.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/523ccabf440d8cf1c5b0ea18a8ad1ffedf4902ac/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples/ConnectedRegistryList.json func ExampleConnectedRegistriesClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ConnectedRegistryList.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ConnectedRegistryList.json index b5f653b249..ffd01135ff 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ConnectedRegistryList.json +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ConnectedRegistryList.json @@ -1 +1 @@ -{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv2.0.0/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv3.0.0-beta.1/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ConnectedRegistryUpdate.go b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ConnectedRegistryUpdate.go index 3fd46182c8..d30bcebae3 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ConnectedRegistryUpdate.go +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ConnectedRegistryUpdate.go @@ -6,10 +6,10 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v2" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v3" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/dde5cdd6b104898e71f88b8afe94655ddd9456a9/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples/ConnectedRegistryUpdate.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/523ccabf440d8cf1c5b0ea18a8ad1ffedf4902ac/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples/ConnectedRegistryUpdate.json func ExampleConnectedRegistriesClient_BeginUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ConnectedRegistryUpdate.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ConnectedRegistryUpdate.json index b5f653b249..ffd01135ff 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ConnectedRegistryUpdate.json +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ConnectedRegistryUpdate.json @@ -1 +1 @@ -{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv2.0.0/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv3.0.0-beta.1/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/CredentialSetCreate.go b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/CredentialSetCreate.go index b221205861..ae38b9c260 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/CredentialSetCreate.go +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/CredentialSetCreate.go @@ -6,10 +6,10 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v2" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v3" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/dde5cdd6b104898e71f88b8afe94655ddd9456a9/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples/CredentialSetCreate.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/523ccabf440d8cf1c5b0ea18a8ad1ffedf4902ac/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples/CredentialSetCreate.json func ExampleCredentialSetsClient_BeginCreate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/CredentialSetCreate.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/CredentialSetCreate.json index b5f653b249..ffd01135ff 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/CredentialSetCreate.json +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/CredentialSetCreate.json @@ -1 +1 @@ -{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv2.0.0/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv3.0.0-beta.1/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/CredentialSetDelete.go b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/CredentialSetDelete.go index 2cb7d7e873..58a5b30a12 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/CredentialSetDelete.go +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/CredentialSetDelete.go @@ -5,10 +5,10 @@ import ( "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v2" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v3" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/dde5cdd6b104898e71f88b8afe94655ddd9456a9/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples/CredentialSetDelete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/523ccabf440d8cf1c5b0ea18a8ad1ffedf4902ac/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples/CredentialSetDelete.json func ExampleCredentialSetsClient_BeginDelete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/CredentialSetDelete.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/CredentialSetDelete.json index b5f653b249..ffd01135ff 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/CredentialSetDelete.json +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/CredentialSetDelete.json @@ -1 +1 @@ -{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv2.0.0/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv3.0.0-beta.1/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/CredentialSetGet.go b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/CredentialSetGet.go index da5abcb45d..5bed217552 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/CredentialSetGet.go +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/CredentialSetGet.go @@ -5,10 +5,10 @@ import ( "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v2" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v3" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/dde5cdd6b104898e71f88b8afe94655ddd9456a9/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples/CredentialSetGet.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/523ccabf440d8cf1c5b0ea18a8ad1ffedf4902ac/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples/CredentialSetGet.json func ExampleCredentialSetsClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/CredentialSetGet.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/CredentialSetGet.json index b5f653b249..ffd01135ff 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/CredentialSetGet.json +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/CredentialSetGet.json @@ -1 +1 @@ -{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv2.0.0/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv3.0.0-beta.1/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/CredentialSetList.go b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/CredentialSetList.go index a6598ef6cc..ee008f6b06 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/CredentialSetList.go +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/CredentialSetList.go @@ -5,10 +5,10 @@ import ( "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v2" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v3" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/dde5cdd6b104898e71f88b8afe94655ddd9456a9/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples/CredentialSetList.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/523ccabf440d8cf1c5b0ea18a8ad1ffedf4902ac/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples/CredentialSetList.json func ExampleCredentialSetsClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/CredentialSetList.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/CredentialSetList.json index b5f653b249..ffd01135ff 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/CredentialSetList.json +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/CredentialSetList.json @@ -1 +1 @@ -{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv2.0.0/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv3.0.0-beta.1/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/CredentialSetUpdate.go b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/CredentialSetUpdate.go index ca4e7f4008..af861ebc07 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/CredentialSetUpdate.go +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/CredentialSetUpdate.go @@ -6,10 +6,10 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v2" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v3" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/dde5cdd6b104898e71f88b8afe94655ddd9456a9/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples/CredentialSetUpdate.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/523ccabf440d8cf1c5b0ea18a8ad1ffedf4902ac/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples/CredentialSetUpdate.json func ExampleCredentialSetsClient_BeginUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/CredentialSetUpdate.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/CredentialSetUpdate.json index b5f653b249..ffd01135ff 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/CredentialSetUpdate.json +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/CredentialSetUpdate.json @@ -1 +1 @@ -{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv2.0.0/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv3.0.0-beta.1/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ImportImageByManifestDigest.go b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ImportImageByManifestDigest.go index 10bda2f12f..6c976286d0 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ImportImageByManifestDigest.go +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ImportImageByManifestDigest.go @@ -6,10 +6,10 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v2" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v3" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/dde5cdd6b104898e71f88b8afe94655ddd9456a9/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples/ImportImageByManifestDigest.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/523ccabf440d8cf1c5b0ea18a8ad1ffedf4902ac/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples/ImportImageByManifestDigest.json func ExampleRegistriesClient_BeginImportImage_importImageByManifestDigest() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ImportImageByManifestDigest.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ImportImageByManifestDigest.json index b5f653b249..ffd01135ff 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ImportImageByManifestDigest.json +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ImportImageByManifestDigest.json @@ -1 +1 @@ -{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv2.0.0/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv3.0.0-beta.1/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ImportImageByTag.go b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ImportImageByTag.go index 6a1bfdcc9d..1c9fc358d8 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ImportImageByTag.go +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ImportImageByTag.go @@ -6,10 +6,10 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v2" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v3" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/dde5cdd6b104898e71f88b8afe94655ddd9456a9/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples/ImportImageByTag.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/523ccabf440d8cf1c5b0ea18a8ad1ffedf4902ac/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples/ImportImageByTag.json func ExampleRegistriesClient_BeginImportImage_importImageByTag() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ImportImageByTag.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ImportImageByTag.json index b5f653b249..ffd01135ff 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ImportImageByTag.json +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ImportImageByTag.json @@ -1 +1 @@ -{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv2.0.0/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv3.0.0-beta.1/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ImportImageFromPublicRegistry.go b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ImportImageFromPublicRegistry.go index 93495599ab..9d46a806c5 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ImportImageFromPublicRegistry.go +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ImportImageFromPublicRegistry.go @@ -6,10 +6,10 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v2" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v3" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/dde5cdd6b104898e71f88b8afe94655ddd9456a9/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples/ImportImageFromPublicRegistry.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/523ccabf440d8cf1c5b0ea18a8ad1ffedf4902ac/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples/ImportImageFromPublicRegistry.json func ExampleRegistriesClient_BeginImportImage_importImageFromPublicRegistry() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ImportImageFromPublicRegistry.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ImportImageFromPublicRegistry.json index b5f653b249..ffd01135ff 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ImportImageFromPublicRegistry.json +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ImportImageFromPublicRegistry.json @@ -1 +1 @@ -{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv2.0.0/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv3.0.0-beta.1/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/OperationList.go b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/OperationList.go index d4c8225b56..89c68ee1ae 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/OperationList.go +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/OperationList.go @@ -5,10 +5,10 @@ import ( "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v2" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v3" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/dde5cdd6b104898e71f88b8afe94655ddd9456a9/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples/OperationList.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/523ccabf440d8cf1c5b0ea18a8ad1ffedf4902ac/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples/OperationList.json func ExampleOperationsClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/OperationList.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/OperationList.json index b5f653b249..ffd01135ff 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/OperationList.json +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/OperationList.json @@ -1 +1 @@ -{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv2.0.0/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv3.0.0-beta.1/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/PrivateEndpointConnectionCreateOrUpdate.go b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/PrivateEndpointConnectionCreateOrUpdate.go index 0a64265a57..878be7387a 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/PrivateEndpointConnectionCreateOrUpdate.go +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/PrivateEndpointConnectionCreateOrUpdate.go @@ -6,10 +6,10 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v2" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v3" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/dde5cdd6b104898e71f88b8afe94655ddd9456a9/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples/PrivateEndpointConnectionCreateOrUpdate.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/523ccabf440d8cf1c5b0ea18a8ad1ffedf4902ac/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples/PrivateEndpointConnectionCreateOrUpdate.json func ExamplePrivateEndpointConnectionsClient_BeginCreateOrUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/PrivateEndpointConnectionCreateOrUpdate.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/PrivateEndpointConnectionCreateOrUpdate.json index b5f653b249..ffd01135ff 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/PrivateEndpointConnectionCreateOrUpdate.json +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/PrivateEndpointConnectionCreateOrUpdate.json @@ -1 +1 @@ -{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv2.0.0/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv3.0.0-beta.1/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/PrivateEndpointConnectionDelete.go b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/PrivateEndpointConnectionDelete.go index c91113df71..b16e67f1a2 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/PrivateEndpointConnectionDelete.go +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/PrivateEndpointConnectionDelete.go @@ -5,10 +5,10 @@ import ( "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v2" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v3" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/dde5cdd6b104898e71f88b8afe94655ddd9456a9/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples/PrivateEndpointConnectionDelete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/523ccabf440d8cf1c5b0ea18a8ad1ffedf4902ac/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples/PrivateEndpointConnectionDelete.json func ExamplePrivateEndpointConnectionsClient_BeginDelete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/PrivateEndpointConnectionDelete.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/PrivateEndpointConnectionDelete.json index b5f653b249..ffd01135ff 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/PrivateEndpointConnectionDelete.json +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/PrivateEndpointConnectionDelete.json @@ -1 +1 @@ -{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv2.0.0/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv3.0.0-beta.1/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/PrivateEndpointConnectionGet.go b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/PrivateEndpointConnectionGet.go index 119a9ea994..5403d140e5 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/PrivateEndpointConnectionGet.go +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/PrivateEndpointConnectionGet.go @@ -5,10 +5,10 @@ import ( "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v2" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v3" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/dde5cdd6b104898e71f88b8afe94655ddd9456a9/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples/PrivateEndpointConnectionGet.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/523ccabf440d8cf1c5b0ea18a8ad1ffedf4902ac/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples/PrivateEndpointConnectionGet.json func ExamplePrivateEndpointConnectionsClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/PrivateEndpointConnectionGet.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/PrivateEndpointConnectionGet.json index b5f653b249..ffd01135ff 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/PrivateEndpointConnectionGet.json +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/PrivateEndpointConnectionGet.json @@ -1 +1 @@ -{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv2.0.0/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv3.0.0-beta.1/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/PrivateEndpointConnectionList.go b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/PrivateEndpointConnectionList.go index fc41b81e9a..5e6c1b5cab 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/PrivateEndpointConnectionList.go +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/PrivateEndpointConnectionList.go @@ -5,10 +5,10 @@ import ( "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v2" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v3" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/dde5cdd6b104898e71f88b8afe94655ddd9456a9/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples/PrivateEndpointConnectionList.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/523ccabf440d8cf1c5b0ea18a8ad1ffedf4902ac/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples/PrivateEndpointConnectionList.json func ExamplePrivateEndpointConnectionsClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/PrivateEndpointConnectionList.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/PrivateEndpointConnectionList.json index b5f653b249..ffd01135ff 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/PrivateEndpointConnectionList.json +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/PrivateEndpointConnectionList.json @@ -1 +1 @@ -{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv2.0.0/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv3.0.0-beta.1/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/RegistryCheckNameAvailable.go b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/RegistryCheckNameAvailable.go index f196c569ca..64c4c2b752 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/RegistryCheckNameAvailable.go +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/RegistryCheckNameAvailable.go @@ -6,10 +6,10 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v2" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v3" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/dde5cdd6b104898e71f88b8afe94655ddd9456a9/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples/RegistryCheckNameAvailable.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/523ccabf440d8cf1c5b0ea18a8ad1ffedf4902ac/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples/RegistryCheckNameAvailable.json func ExampleRegistriesClient_CheckNameAvailability_registryCheckNameAvailable() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/RegistryCheckNameAvailable.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/RegistryCheckNameAvailable.json index b5f653b249..ffd01135ff 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/RegistryCheckNameAvailable.json +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/RegistryCheckNameAvailable.json @@ -1 +1 @@ -{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv2.0.0/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv3.0.0-beta.1/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/RegistryCheckNameNotAvailable.go b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/RegistryCheckNameNotAvailable.go index 189c35fa6a..3fe1aa6bb5 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/RegistryCheckNameNotAvailable.go +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/RegistryCheckNameNotAvailable.go @@ -6,10 +6,10 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v2" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v3" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/dde5cdd6b104898e71f88b8afe94655ddd9456a9/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples/RegistryCheckNameNotAvailable.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/523ccabf440d8cf1c5b0ea18a8ad1ffedf4902ac/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples/RegistryCheckNameNotAvailable.json func ExampleRegistriesClient_CheckNameAvailability_registryCheckNameNotAvailable() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/RegistryCheckNameNotAvailable.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/RegistryCheckNameNotAvailable.json index b5f653b249..ffd01135ff 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/RegistryCheckNameNotAvailable.json +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/RegistryCheckNameNotAvailable.json @@ -1 +1 @@ -{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv2.0.0/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv3.0.0-beta.1/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/RegistryCreate.go b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/RegistryCreate.go index 29e12267b5..13a9b74ce2 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/RegistryCreate.go +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/RegistryCreate.go @@ -6,10 +6,10 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v2" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v3" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/dde5cdd6b104898e71f88b8afe94655ddd9456a9/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples/RegistryCreate.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/523ccabf440d8cf1c5b0ea18a8ad1ffedf4902ac/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples/RegistryCreate.json func ExampleRegistriesClient_BeginCreate_registryCreate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/RegistryCreate.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/RegistryCreate.json index b5f653b249..ffd01135ff 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/RegistryCreate.json +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/RegistryCreate.json @@ -1 +1 @@ -{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv2.0.0/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv3.0.0-beta.1/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/RegistryCreateAbac.go b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/RegistryCreateAbac.go index eb4ff31c0f..a68861a4c6 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/RegistryCreateAbac.go +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/RegistryCreateAbac.go @@ -6,10 +6,10 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v2" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v3" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/dde5cdd6b104898e71f88b8afe94655ddd9456a9/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples/RegistryCreateAbac.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/523ccabf440d8cf1c5b0ea18a8ad1ffedf4902ac/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples/RegistryCreateAbac.json func ExampleRegistriesClient_BeginCreate_registryCreateAbac() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/RegistryCreateAbac.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/RegistryCreateAbac.json index b5f653b249..ffd01135ff 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/RegistryCreateAbac.json +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/RegistryCreateAbac.json @@ -1 +1 @@ -{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv2.0.0/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv3.0.0-beta.1/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/RegistryCreateZoneRedundant.go b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/RegistryCreateZoneRedundant.go index a9748e6d8f..a0c2d11c61 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/RegistryCreateZoneRedundant.go +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/RegistryCreateZoneRedundant.go @@ -6,10 +6,10 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v2" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v3" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/dde5cdd6b104898e71f88b8afe94655ddd9456a9/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples/RegistryCreateZoneRedundant.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/523ccabf440d8cf1c5b0ea18a8ad1ffedf4902ac/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples/RegistryCreateZoneRedundant.json func ExampleRegistriesClient_BeginCreate_registryCreateZoneRedundant() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/RegistryCreateZoneRedundant.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/RegistryCreateZoneRedundant.json index b5f653b249..ffd01135ff 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/RegistryCreateZoneRedundant.json +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/RegistryCreateZoneRedundant.json @@ -1 +1 @@ -{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv2.0.0/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv3.0.0-beta.1/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/RegistryDelete.go b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/RegistryDelete.go index 7f10e77802..4318f0746a 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/RegistryDelete.go +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/RegistryDelete.go @@ -5,10 +5,10 @@ import ( "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v2" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v3" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/dde5cdd6b104898e71f88b8afe94655ddd9456a9/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples/RegistryDelete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/523ccabf440d8cf1c5b0ea18a8ad1ffedf4902ac/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples/RegistryDelete.json func ExampleRegistriesClient_BeginDelete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/RegistryDelete.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/RegistryDelete.json index b5f653b249..ffd01135ff 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/RegistryDelete.json +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/RegistryDelete.json @@ -1 +1 @@ -{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv2.0.0/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv3.0.0-beta.1/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/RegistryGenerateCredentials.go b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/RegistryGenerateCredentials.go index 7ff96f4e63..c5d6d021be 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/RegistryGenerateCredentials.go +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/RegistryGenerateCredentials.go @@ -8,10 +8,10 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v2" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v3" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/dde5cdd6b104898e71f88b8afe94655ddd9456a9/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples/RegistryGenerateCredentials.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/523ccabf440d8cf1c5b0ea18a8ad1ffedf4902ac/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples/RegistryGenerateCredentials.json func ExampleRegistriesClient_BeginGenerateCredentials() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/RegistryGenerateCredentials.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/RegistryGenerateCredentials.json index b5f653b249..ffd01135ff 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/RegistryGenerateCredentials.json +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/RegistryGenerateCredentials.json @@ -1 +1 @@ -{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv2.0.0/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv3.0.0-beta.1/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/RegistryGet.go b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/RegistryGet.go index 38e8615d59..3a00713ed0 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/RegistryGet.go +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/RegistryGet.go @@ -5,10 +5,10 @@ import ( "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v2" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v3" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/dde5cdd6b104898e71f88b8afe94655ddd9456a9/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples/RegistryGet.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/523ccabf440d8cf1c5b0ea18a8ad1ffedf4902ac/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples/RegistryGet.json func ExampleRegistriesClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/RegistryGet.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/RegistryGet.json index b5f653b249..ffd01135ff 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/RegistryGet.json +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/RegistryGet.json @@ -1 +1 @@ -{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv2.0.0/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv3.0.0-beta.1/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/RegistryGetPrivateLinkResource.go b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/RegistryGetPrivateLinkResource.go index f13bfdf2d5..bac9737773 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/RegistryGetPrivateLinkResource.go +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/RegistryGetPrivateLinkResource.go @@ -5,10 +5,10 @@ import ( "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v2" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v3" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/dde5cdd6b104898e71f88b8afe94655ddd9456a9/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples/RegistryGetPrivateLinkResource.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/523ccabf440d8cf1c5b0ea18a8ad1ffedf4902ac/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples/RegistryGetPrivateLinkResource.json func ExampleRegistriesClient_GetPrivateLinkResource() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/RegistryGetPrivateLinkResource.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/RegistryGetPrivateLinkResource.json index b5f653b249..ffd01135ff 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/RegistryGetPrivateLinkResource.json +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/RegistryGetPrivateLinkResource.json @@ -1 +1 @@ -{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv2.0.0/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv3.0.0-beta.1/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/RegistryList.go b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/RegistryList.go index 92f9bc8f8a..a9675692de 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/RegistryList.go +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/RegistryList.go @@ -5,10 +5,10 @@ import ( "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v2" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v3" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/dde5cdd6b104898e71f88b8afe94655ddd9456a9/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples/RegistryList.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/523ccabf440d8cf1c5b0ea18a8ad1ffedf4902ac/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples/RegistryList.json func ExampleRegistriesClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/RegistryList.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/RegistryList.json index b5f653b249..ffd01135ff 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/RegistryList.json +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/RegistryList.json @@ -1 +1 @@ -{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv2.0.0/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv3.0.0-beta.1/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/RegistryListByResourceGroup.go b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/RegistryListByResourceGroup.go index 044b0b2b23..4e5993a366 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/RegistryListByResourceGroup.go +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/RegistryListByResourceGroup.go @@ -5,10 +5,10 @@ import ( "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v2" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v3" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/dde5cdd6b104898e71f88b8afe94655ddd9456a9/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples/RegistryListByResourceGroup.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/523ccabf440d8cf1c5b0ea18a8ad1ffedf4902ac/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples/RegistryListByResourceGroup.json func ExampleRegistriesClient_NewListByResourceGroupPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/RegistryListByResourceGroup.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/RegistryListByResourceGroup.json index b5f653b249..ffd01135ff 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/RegistryListByResourceGroup.json +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/RegistryListByResourceGroup.json @@ -1 +1 @@ -{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv2.0.0/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv3.0.0-beta.1/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/RegistryListCredentials.go b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/RegistryListCredentials.go index 9ab1f19e20..e8176ea271 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/RegistryListCredentials.go +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/RegistryListCredentials.go @@ -5,10 +5,10 @@ import ( "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v2" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v3" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/dde5cdd6b104898e71f88b8afe94655ddd9456a9/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples/RegistryListCredentials.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/523ccabf440d8cf1c5b0ea18a8ad1ffedf4902ac/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples/RegistryListCredentials.json func ExampleRegistriesClient_ListCredentials() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/RegistryListCredentials.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/RegistryListCredentials.json index b5f653b249..ffd01135ff 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/RegistryListCredentials.json +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/RegistryListCredentials.json @@ -1 +1 @@ -{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv2.0.0/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv3.0.0-beta.1/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/RegistryListPrivateLinkResources.go b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/RegistryListPrivateLinkResources.go index b348ade2f9..c41be91da4 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/RegistryListPrivateLinkResources.go +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/RegistryListPrivateLinkResources.go @@ -5,10 +5,10 @@ import ( "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v2" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v3" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/dde5cdd6b104898e71f88b8afe94655ddd9456a9/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples/RegistryListPrivateLinkResources.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/523ccabf440d8cf1c5b0ea18a8ad1ffedf4902ac/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples/RegistryListPrivateLinkResources.json func ExampleRegistriesClient_NewListPrivateLinkResourcesPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/RegistryListPrivateLinkResources.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/RegistryListPrivateLinkResources.json index b5f653b249..ffd01135ff 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/RegistryListPrivateLinkResources.json +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/RegistryListPrivateLinkResources.json @@ -1 +1 @@ -{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv2.0.0/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv3.0.0-beta.1/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/RegistryListUsages.go b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/RegistryListUsages.go index 93311bc9c8..6ef5bc20d3 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/RegistryListUsages.go +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/RegistryListUsages.go @@ -5,10 +5,10 @@ import ( "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v2" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v3" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/dde5cdd6b104898e71f88b8afe94655ddd9456a9/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples/RegistryListUsages.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/523ccabf440d8cf1c5b0ea18a8ad1ffedf4902ac/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples/RegistryListUsages.json func ExampleRegistriesClient_ListUsages() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/RegistryListUsages.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/RegistryListUsages.json index b5f653b249..ffd01135ff 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/RegistryListUsages.json +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/RegistryListUsages.json @@ -1 +1 @@ -{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv2.0.0/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv3.0.0-beta.1/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/RegistryRegenerateCredential.go b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/RegistryRegenerateCredential.go index 36c7830ed7..3e383213e5 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/RegistryRegenerateCredential.go +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/RegistryRegenerateCredential.go @@ -6,10 +6,10 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v2" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v3" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/dde5cdd6b104898e71f88b8afe94655ddd9456a9/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples/RegistryRegenerateCredential.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/523ccabf440d8cf1c5b0ea18a8ad1ffedf4902ac/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples/RegistryRegenerateCredential.json func ExampleRegistriesClient_RegenerateCredential() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/RegistryRegenerateCredential.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/RegistryRegenerateCredential.json index b5f653b249..ffd01135ff 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/RegistryRegenerateCredential.json +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/RegistryRegenerateCredential.json @@ -1 +1 @@ -{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv2.0.0/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv3.0.0-beta.1/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/RegistryUpdate.go b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/RegistryUpdate.go index 0b25afd195..2eb4e9aa52 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/RegistryUpdate.go +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/RegistryUpdate.go @@ -6,10 +6,10 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v2" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v3" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/dde5cdd6b104898e71f88b8afe94655ddd9456a9/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples/RegistryUpdate.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/523ccabf440d8cf1c5b0ea18a8ad1ffedf4902ac/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples/RegistryUpdate.json func ExampleRegistriesClient_BeginUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/RegistryUpdate.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/RegistryUpdate.json index b5f653b249..ffd01135ff 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/RegistryUpdate.json +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/RegistryUpdate.json @@ -1 +1 @@ -{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv2.0.0/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv3.0.0-beta.1/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ReplicationCreate.go b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ReplicationCreate.go index 0f9107f5d1..624d8afed6 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ReplicationCreate.go +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ReplicationCreate.go @@ -6,10 +6,10 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v2" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v3" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/dde5cdd6b104898e71f88b8afe94655ddd9456a9/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples/ReplicationCreate.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/523ccabf440d8cf1c5b0ea18a8ad1ffedf4902ac/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples/ReplicationCreate.json func ExampleReplicationsClient_BeginCreate_replicationCreate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ReplicationCreate.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ReplicationCreate.json index b5f653b249..ffd01135ff 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ReplicationCreate.json +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ReplicationCreate.json @@ -1 +1 @@ -{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv2.0.0/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv3.0.0-beta.1/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ReplicationCreateZoneRedundant.go b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ReplicationCreateZoneRedundant.go index a3727f8dab..ee878660ab 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ReplicationCreateZoneRedundant.go +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ReplicationCreateZoneRedundant.go @@ -6,10 +6,10 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v2" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v3" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/dde5cdd6b104898e71f88b8afe94655ddd9456a9/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples/ReplicationCreateZoneRedundant.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/523ccabf440d8cf1c5b0ea18a8ad1ffedf4902ac/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples/ReplicationCreateZoneRedundant.json func ExampleReplicationsClient_BeginCreate_replicationCreateZoneRedundant() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ReplicationCreateZoneRedundant.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ReplicationCreateZoneRedundant.json index b5f653b249..ffd01135ff 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ReplicationCreateZoneRedundant.json +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ReplicationCreateZoneRedundant.json @@ -1 +1 @@ -{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv2.0.0/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv3.0.0-beta.1/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ReplicationDelete.go b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ReplicationDelete.go index f9ae266d1c..5acae4ccf2 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ReplicationDelete.go +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ReplicationDelete.go @@ -5,10 +5,10 @@ import ( "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v2" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v3" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/dde5cdd6b104898e71f88b8afe94655ddd9456a9/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples/ReplicationDelete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/523ccabf440d8cf1c5b0ea18a8ad1ffedf4902ac/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples/ReplicationDelete.json func ExampleReplicationsClient_BeginDelete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ReplicationDelete.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ReplicationDelete.json index b5f653b249..ffd01135ff 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ReplicationDelete.json +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ReplicationDelete.json @@ -1 +1 @@ -{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv2.0.0/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv3.0.0-beta.1/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ReplicationGet.go b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ReplicationGet.go index 753ea51e6d..de7c76dacd 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ReplicationGet.go +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ReplicationGet.go @@ -5,10 +5,10 @@ import ( "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v2" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v3" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/dde5cdd6b104898e71f88b8afe94655ddd9456a9/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples/ReplicationGet.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/523ccabf440d8cf1c5b0ea18a8ad1ffedf4902ac/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples/ReplicationGet.json func ExampleReplicationsClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ReplicationGet.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ReplicationGet.json index b5f653b249..ffd01135ff 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ReplicationGet.json +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ReplicationGet.json @@ -1 +1 @@ -{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv2.0.0/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv3.0.0-beta.1/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ReplicationList.go b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ReplicationList.go index 28e94e794b..e138ccd1d7 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ReplicationList.go +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ReplicationList.go @@ -5,10 +5,10 @@ import ( "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v2" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v3" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/dde5cdd6b104898e71f88b8afe94655ddd9456a9/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples/ReplicationList.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/523ccabf440d8cf1c5b0ea18a8ad1ffedf4902ac/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples/ReplicationList.json func ExampleReplicationsClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ReplicationList.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ReplicationList.json index b5f653b249..ffd01135ff 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ReplicationList.json +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ReplicationList.json @@ -1 +1 @@ -{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv2.0.0/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv3.0.0-beta.1/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ReplicationUpdate.go b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ReplicationUpdate.go index d08becb650..f8f6c87e31 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ReplicationUpdate.go +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ReplicationUpdate.go @@ -6,10 +6,10 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v2" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v3" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/dde5cdd6b104898e71f88b8afe94655ddd9456a9/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples/ReplicationUpdate.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/523ccabf440d8cf1c5b0ea18a8ad1ffedf4902ac/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples/ReplicationUpdate.json func ExampleReplicationsClient_BeginUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ReplicationUpdate.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ReplicationUpdate.json index b5f653b249..ffd01135ff 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ReplicationUpdate.json +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ReplicationUpdate.json @@ -1 +1 @@ -{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv2.0.0/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv3.0.0-beta.1/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ScopeMapCreate.go b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ScopeMapCreate.go index 548759922a..74d70fcb4c 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ScopeMapCreate.go +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ScopeMapCreate.go @@ -6,10 +6,10 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v2" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v3" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/dde5cdd6b104898e71f88b8afe94655ddd9456a9/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples/ScopeMapCreate.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/523ccabf440d8cf1c5b0ea18a8ad1ffedf4902ac/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples/ScopeMapCreate.json func ExampleScopeMapsClient_BeginCreate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ScopeMapCreate.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ScopeMapCreate.json index b5f653b249..ffd01135ff 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ScopeMapCreate.json +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ScopeMapCreate.json @@ -1 +1 @@ -{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv2.0.0/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv3.0.0-beta.1/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ScopeMapDelete.go b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ScopeMapDelete.go index cff7e68782..e3333ec063 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ScopeMapDelete.go +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ScopeMapDelete.go @@ -5,10 +5,10 @@ import ( "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v2" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v3" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/dde5cdd6b104898e71f88b8afe94655ddd9456a9/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples/ScopeMapDelete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/523ccabf440d8cf1c5b0ea18a8ad1ffedf4902ac/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples/ScopeMapDelete.json func ExampleScopeMapsClient_BeginDelete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ScopeMapDelete.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ScopeMapDelete.json index b5f653b249..ffd01135ff 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ScopeMapDelete.json +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ScopeMapDelete.json @@ -1 +1 @@ -{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv2.0.0/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv3.0.0-beta.1/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ScopeMapGet.go b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ScopeMapGet.go index c4821b0755..a62008219e 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ScopeMapGet.go +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ScopeMapGet.go @@ -5,10 +5,10 @@ import ( "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v2" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v3" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/dde5cdd6b104898e71f88b8afe94655ddd9456a9/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples/ScopeMapGet.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/523ccabf440d8cf1c5b0ea18a8ad1ffedf4902ac/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples/ScopeMapGet.json func ExampleScopeMapsClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ScopeMapGet.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ScopeMapGet.json index b5f653b249..ffd01135ff 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ScopeMapGet.json +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ScopeMapGet.json @@ -1 +1 @@ -{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv2.0.0/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv3.0.0-beta.1/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ScopeMapList.go b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ScopeMapList.go index 5cddc39a63..b83f1bafbc 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ScopeMapList.go +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ScopeMapList.go @@ -5,10 +5,10 @@ import ( "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v2" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v3" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/dde5cdd6b104898e71f88b8afe94655ddd9456a9/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples/ScopeMapList.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/523ccabf440d8cf1c5b0ea18a8ad1ffedf4902ac/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples/ScopeMapList.json func ExampleScopeMapsClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ScopeMapList.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ScopeMapList.json index b5f653b249..ffd01135ff 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ScopeMapList.json +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ScopeMapList.json @@ -1 +1 @@ -{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv2.0.0/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv3.0.0-beta.1/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ScopeMapUpdate.go b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ScopeMapUpdate.go index dab9c07af8..d28f8794b5 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ScopeMapUpdate.go +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ScopeMapUpdate.go @@ -6,10 +6,10 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v2" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v3" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/dde5cdd6b104898e71f88b8afe94655ddd9456a9/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples/ScopeMapUpdate.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/523ccabf440d8cf1c5b0ea18a8ad1ffedf4902ac/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples/ScopeMapUpdate.json func ExampleScopeMapsClient_BeginUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ScopeMapUpdate.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ScopeMapUpdate.json index b5f653b249..ffd01135ff 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ScopeMapUpdate.json +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/ScopeMapUpdate.json @@ -1 +1 @@ -{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv2.0.0/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv3.0.0-beta.1/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/TokenCreate.go b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/TokenCreate.go index 471667c7fe..da7bd707ab 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/TokenCreate.go +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/TokenCreate.go @@ -6,10 +6,10 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v2" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v3" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/dde5cdd6b104898e71f88b8afe94655ddd9456a9/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples/TokenCreate.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/523ccabf440d8cf1c5b0ea18a8ad1ffedf4902ac/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples/TokenCreate.json func ExampleTokensClient_BeginCreate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/TokenCreate.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/TokenCreate.json index b5f653b249..ffd01135ff 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/TokenCreate.json +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/TokenCreate.json @@ -1 +1 @@ -{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv2.0.0/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv3.0.0-beta.1/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/TokenDelete.go b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/TokenDelete.go index a1d05fdacd..d65d901ccd 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/TokenDelete.go +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/TokenDelete.go @@ -5,10 +5,10 @@ import ( "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v2" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v3" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/dde5cdd6b104898e71f88b8afe94655ddd9456a9/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples/TokenDelete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/523ccabf440d8cf1c5b0ea18a8ad1ffedf4902ac/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples/TokenDelete.json func ExampleTokensClient_BeginDelete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/TokenDelete.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/TokenDelete.json index b5f653b249..ffd01135ff 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/TokenDelete.json +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/TokenDelete.json @@ -1 +1 @@ -{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv2.0.0/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv3.0.0-beta.1/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/TokenGet.go b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/TokenGet.go index 7514043907..da963232cf 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/TokenGet.go +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/TokenGet.go @@ -5,10 +5,10 @@ import ( "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v2" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v3" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/dde5cdd6b104898e71f88b8afe94655ddd9456a9/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples/TokenGet.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/523ccabf440d8cf1c5b0ea18a8ad1ffedf4902ac/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples/TokenGet.json func ExampleTokensClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/TokenGet.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/TokenGet.json index b5f653b249..ffd01135ff 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/TokenGet.json +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/TokenGet.json @@ -1 +1 @@ -{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv2.0.0/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv3.0.0-beta.1/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/TokenList.go b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/TokenList.go index e9099def4e..99c6920f4a 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/TokenList.go +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/TokenList.go @@ -5,10 +5,10 @@ import ( "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v2" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v3" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/dde5cdd6b104898e71f88b8afe94655ddd9456a9/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples/TokenList.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/523ccabf440d8cf1c5b0ea18a8ad1ffedf4902ac/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples/TokenList.json func ExampleTokensClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/TokenList.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/TokenList.json index b5f653b249..ffd01135ff 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/TokenList.json +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/TokenList.json @@ -1 +1 @@ -{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv2.0.0/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv3.0.0-beta.1/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/TokenUpdate.go b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/TokenUpdate.go index 719f24e8b1..bee3e17a49 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/TokenUpdate.go +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/TokenUpdate.go @@ -6,10 +6,10 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v2" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v3" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/dde5cdd6b104898e71f88b8afe94655ddd9456a9/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples/TokenUpdate.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/523ccabf440d8cf1c5b0ea18a8ad1ffedf4902ac/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples/TokenUpdate.json func ExampleTokensClient_BeginUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/TokenUpdate.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/TokenUpdate.json index b5f653b249..ffd01135ff 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/TokenUpdate.json +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/TokenUpdate.json @@ -1 +1 @@ -{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv2.0.0/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv3.0.0-beta.1/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/WebhookCreate.go b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/WebhookCreate.go index 20e70a7c71..8430972197 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/WebhookCreate.go +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/WebhookCreate.go @@ -6,10 +6,10 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v2" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v3" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/dde5cdd6b104898e71f88b8afe94655ddd9456a9/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples/WebhookCreate.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/523ccabf440d8cf1c5b0ea18a8ad1ffedf4902ac/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples/WebhookCreate.json func ExampleWebhooksClient_BeginCreate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/WebhookCreate.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/WebhookCreate.json index b5f653b249..ffd01135ff 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/WebhookCreate.json +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/WebhookCreate.json @@ -1 +1 @@ -{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv2.0.0/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv3.0.0-beta.1/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/WebhookDelete.go b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/WebhookDelete.go index d0867ac453..0226aa0eae 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/WebhookDelete.go +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/WebhookDelete.go @@ -5,10 +5,10 @@ import ( "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v2" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v3" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/dde5cdd6b104898e71f88b8afe94655ddd9456a9/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples/WebhookDelete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/523ccabf440d8cf1c5b0ea18a8ad1ffedf4902ac/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples/WebhookDelete.json func ExampleWebhooksClient_BeginDelete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/WebhookDelete.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/WebhookDelete.json index b5f653b249..ffd01135ff 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/WebhookDelete.json +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/WebhookDelete.json @@ -1 +1 @@ -{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv2.0.0/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv3.0.0-beta.1/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/WebhookGet.go b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/WebhookGet.go index 2d477493e3..ba2c656bf5 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/WebhookGet.go +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/WebhookGet.go @@ -5,10 +5,10 @@ import ( "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v2" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v3" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/dde5cdd6b104898e71f88b8afe94655ddd9456a9/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples/WebhookGet.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/523ccabf440d8cf1c5b0ea18a8ad1ffedf4902ac/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples/WebhookGet.json func ExampleWebhooksClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/WebhookGet.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/WebhookGet.json index b5f653b249..ffd01135ff 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/WebhookGet.json +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/WebhookGet.json @@ -1 +1 @@ -{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv2.0.0/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv3.0.0-beta.1/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/WebhookGetCallbackConfig.go b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/WebhookGetCallbackConfig.go index dadfef6537..54a0900ebe 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/WebhookGetCallbackConfig.go +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/WebhookGetCallbackConfig.go @@ -5,10 +5,10 @@ import ( "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v2" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v3" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/dde5cdd6b104898e71f88b8afe94655ddd9456a9/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples/WebhookGetCallbackConfig.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/523ccabf440d8cf1c5b0ea18a8ad1ffedf4902ac/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples/WebhookGetCallbackConfig.json func ExampleWebhooksClient_GetCallbackConfig() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/WebhookGetCallbackConfig.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/WebhookGetCallbackConfig.json index b5f653b249..ffd01135ff 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/WebhookGetCallbackConfig.json +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/WebhookGetCallbackConfig.json @@ -1 +1 @@ -{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv2.0.0/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv3.0.0-beta.1/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/WebhookList.go b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/WebhookList.go index a36dd5a8bd..c3c0e74d71 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/WebhookList.go +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/WebhookList.go @@ -5,10 +5,10 @@ import ( "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v2" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v3" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/dde5cdd6b104898e71f88b8afe94655ddd9456a9/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples/WebhookList.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/523ccabf440d8cf1c5b0ea18a8ad1ffedf4902ac/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples/WebhookList.json func ExampleWebhooksClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/WebhookList.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/WebhookList.json index b5f653b249..ffd01135ff 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/WebhookList.json +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/WebhookList.json @@ -1 +1 @@ -{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv2.0.0/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv3.0.0-beta.1/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/WebhookListEvents.go b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/WebhookListEvents.go index 6d1e08b1ca..a61d9788ed 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/WebhookListEvents.go +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/WebhookListEvents.go @@ -5,10 +5,10 @@ import ( "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v2" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v3" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/dde5cdd6b104898e71f88b8afe94655ddd9456a9/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples/WebhookListEvents.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/523ccabf440d8cf1c5b0ea18a8ad1ffedf4902ac/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples/WebhookListEvents.json func ExampleWebhooksClient_NewListEventsPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/WebhookListEvents.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/WebhookListEvents.json index b5f653b249..ffd01135ff 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/WebhookListEvents.json +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/WebhookListEvents.json @@ -1 +1 @@ -{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv2.0.0/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv3.0.0-beta.1/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/WebhookPing.go b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/WebhookPing.go index 5b70bd5650..a5d6510203 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/WebhookPing.go +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/WebhookPing.go @@ -5,10 +5,10 @@ import ( "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v2" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v3" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/dde5cdd6b104898e71f88b8afe94655ddd9456a9/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples/WebhookPing.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/523ccabf440d8cf1c5b0ea18a8ad1ffedf4902ac/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples/WebhookPing.json func ExampleWebhooksClient_Ping() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/WebhookPing.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/WebhookPing.json index b5f653b249..ffd01135ff 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/WebhookPing.json +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/WebhookPing.json @@ -1 +1 @@ -{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv2.0.0/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv3.0.0-beta.1/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/WebhookUpdate.go b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/WebhookUpdate.go index b00ccc91fe..c9caebab3e 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/WebhookUpdate.go +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/WebhookUpdate.go @@ -6,10 +6,10 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v2" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v3" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/dde5cdd6b104898e71f88b8afe94655ddd9456a9/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples/WebhookUpdate.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/523ccabf440d8cf1c5b0ea18a8ad1ffedf4902ac/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples/WebhookUpdate.json func ExampleWebhooksClient_BeginUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/WebhookUpdate.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/WebhookUpdate.json index b5f653b249..ffd01135ff 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/WebhookUpdate.json +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/Registry/stable/2025-11-01/examples-go/WebhookUpdate.json @@ -1 +1 @@ -{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv2.0.0/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv3.0.0-beta.1/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/AgentPoolsCreate.go b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/AgentPoolsCreate.go new file mode 100644 index 0000000000..c4029987ad --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/AgentPoolsCreate.go @@ -0,0 +1,56 @@ +package armcontainerregistry_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v3" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/523ccabf440d8cf1c5b0ea18a8ad1ffedf4902ac/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples/AgentPoolsCreate.json +func ExampleAgentPoolsClient_BeginCreate() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + clientFactory, err := armcontainerregistry.NewClientFactory("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := clientFactory.NewAgentPoolsClient().BeginCreate(ctx, "myResourceGroup", "myRegistry", "myAgentPool", armcontainerregistry.AgentPool{ + Location: to.Ptr("WESTUS"), + Tags: map[string]*string{ + "key": to.Ptr("value"), + }, + Properties: &armcontainerregistry.AgentPoolProperties{ + Count: to.Ptr[int32](1), + OS: to.Ptr(armcontainerregistry.OSLinux), + Tier: to.Ptr("S1"), + }, + }, nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + res, err := poller.PollUntilDone(ctx, nil) + if err != nil { + log.Fatalf("failed to pull the result: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.AgentPool = armcontainerregistry.AgentPool{ + // Name: to.Ptr("myAgentPool"), + // Type: to.Ptr("Microsoft.ContainerRegistry/registries/agentPools"), + // ID: to.Ptr("/subscriptions/f9d7ebed-adbd-4cb4-b973-aaf82c136138/resourceGroups/huanwudfwestgroup/providers/Microsoft.ContainerRegistry/registries/huanglidfwest01/agentPools/testagent26"), + // Location: to.Ptr("WESTUS"), + // Properties: &armcontainerregistry.AgentPoolProperties{ + // Count: to.Ptr[int32](1), + // OS: to.Ptr(armcontainerregistry.OSLinux), + // ProvisioningState: to.Ptr(armcontainerregistry.ProvisioningStateSucceeded), + // Tier: to.Ptr("S1"), + // }, + // } +} diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/AgentPoolsCreate.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/AgentPoolsCreate.json new file mode 100644 index 0000000000..ffd01135ff --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/AgentPoolsCreate.json @@ -0,0 +1 @@ +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv3.0.0-beta.1/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/AgentPoolsDelete.go b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/AgentPoolsDelete.go new file mode 100644 index 0000000000..f66701577a --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/AgentPoolsDelete.go @@ -0,0 +1,30 @@ +package armcontainerregistry_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v3" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/523ccabf440d8cf1c5b0ea18a8ad1ffedf4902ac/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples/AgentPoolsDelete.json +func ExampleAgentPoolsClient_BeginDelete() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + clientFactory, err := armcontainerregistry.NewClientFactory("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := clientFactory.NewAgentPoolsClient().BeginDelete(ctx, "myResourceGroup", "myRegistry", "myAgentPool", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + _, err = poller.PollUntilDone(ctx, nil) + if err != nil { + log.Fatalf("failed to pull the result: %v", err) + } +} diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/AgentPoolsDelete.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/AgentPoolsDelete.json new file mode 100644 index 0000000000..ffd01135ff --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/AgentPoolsDelete.json @@ -0,0 +1 @@ +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv3.0.0-beta.1/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/AgentPoolsGet.go b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/AgentPoolsGet.go new file mode 100644 index 0000000000..ababba5012 --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/AgentPoolsGet.go @@ -0,0 +1,41 @@ +package armcontainerregistry_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v3" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/523ccabf440d8cf1c5b0ea18a8ad1ffedf4902ac/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples/AgentPoolsGet.json +func ExampleAgentPoolsClient_Get() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + clientFactory, err := armcontainerregistry.NewClientFactory("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := clientFactory.NewAgentPoolsClient().Get(ctx, "myResourceGroup", "myRegistry", "myAgentPool", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.AgentPool = armcontainerregistry.AgentPool{ + // Name: to.Ptr("myAgentPool"), + // Type: to.Ptr("Microsoft.ContainerRegistry/registries/agentPools"), + // ID: to.Ptr("/subscriptions/f9d7ebed-adbd-4cb4-b973-aaf82c136138/resourceGroups/huanwudfwestgroup/providers/Microsoft.ContainerRegistry/registries/huanglidfwest01/agentPools/testagent26"), + // Location: to.Ptr("WESTUS"), + // Properties: &armcontainerregistry.AgentPoolProperties{ + // Count: to.Ptr[int32](1), + // OS: to.Ptr(armcontainerregistry.OSLinux), + // ProvisioningState: to.Ptr(armcontainerregistry.ProvisioningStateSucceeded), + // Tier: to.Ptr("S1"), + // }, + // } +} diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/AgentPoolsGet.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/AgentPoolsGet.json new file mode 100644 index 0000000000..ffd01135ff --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/AgentPoolsGet.json @@ -0,0 +1 @@ +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv3.0.0-beta.1/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/AgentPoolsGetQueueStatus.go b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/AgentPoolsGetQueueStatus.go new file mode 100644 index 0000000000..d38a8a28e3 --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/AgentPoolsGetQueueStatus.go @@ -0,0 +1,32 @@ +package armcontainerregistry_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v3" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/523ccabf440d8cf1c5b0ea18a8ad1ffedf4902ac/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples/AgentPoolsGetQueueStatus.json +func ExampleAgentPoolsClient_GetQueueStatus() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + clientFactory, err := armcontainerregistry.NewClientFactory("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := clientFactory.NewAgentPoolsClient().GetQueueStatus(ctx, "myResourceGroup", "myRegistry", "myAgentPool", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.AgentPoolQueueStatus = armcontainerregistry.AgentPoolQueueStatus{ + // Count: to.Ptr[int32](10), + // } +} diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/AgentPoolsGetQueueStatus.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/AgentPoolsGetQueueStatus.json new file mode 100644 index 0000000000..ffd01135ff --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/AgentPoolsGetQueueStatus.json @@ -0,0 +1 @@ +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv3.0.0-beta.1/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/AgentPoolsList.go b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/AgentPoolsList.go new file mode 100644 index 0000000000..fd1916ef8a --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/AgentPoolsList.go @@ -0,0 +1,49 @@ +package armcontainerregistry_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v3" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/523ccabf440d8cf1c5b0ea18a8ad1ffedf4902ac/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples/AgentPoolsList.json +func ExampleAgentPoolsClient_NewListPager() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + clientFactory, err := armcontainerregistry.NewClientFactory("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + pager := clientFactory.NewAgentPoolsClient().NewListPager("myResourceGroup", "myRegistry", nil) + for pager.More() { + page, err := pager.NextPage(ctx) + if err != nil { + log.Fatalf("failed to advance page: %v", err) + } + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. + _ = v + } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.AgentPoolListResult = armcontainerregistry.AgentPoolListResult{ + // Value: []*armcontainerregistry.AgentPool{ + // { + // Name: to.Ptr("myAgentPool"), + // Type: to.Ptr("Microsoft.ContainerRegistry/registries/agentPools"), + // ID: to.Ptr("/subscriptions/f9d7ebed-adbd-4cb4-b973-aaf82c136138/resourceGroups/huanwudfwestgroup/providers/Microsoft.ContainerRegistry/registries/huanglidfwest01/agentPools/testagent26"), + // Location: to.Ptr("WESTUS"), + // Properties: &armcontainerregistry.AgentPoolProperties{ + // Count: to.Ptr[int32](1), + // OS: to.Ptr(armcontainerregistry.OSLinux), + // ProvisioningState: to.Ptr(armcontainerregistry.ProvisioningStateSucceeded), + // Tier: to.Ptr("S1"), + // }, + // }}, + // } + } +} diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/AgentPoolsList.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/AgentPoolsList.json new file mode 100644 index 0000000000..ffd01135ff --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/AgentPoolsList.json @@ -0,0 +1 @@ +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv3.0.0-beta.1/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/AgentPoolsUpdate.go b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/AgentPoolsUpdate.go new file mode 100644 index 0000000000..e96f89cfbb --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/AgentPoolsUpdate.go @@ -0,0 +1,50 @@ +package armcontainerregistry_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v3" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/523ccabf440d8cf1c5b0ea18a8ad1ffedf4902ac/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples/AgentPoolsUpdate.json +func ExampleAgentPoolsClient_BeginUpdate() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + clientFactory, err := armcontainerregistry.NewClientFactory("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := clientFactory.NewAgentPoolsClient().BeginUpdate(ctx, "myResourceGroup", "myRegistry", "myAgentPool", armcontainerregistry.AgentPoolUpdateParameters{ + Properties: &armcontainerregistry.AgentPoolPropertiesUpdateParameters{ + Count: to.Ptr[int32](1), + }, + }, nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + res, err := poller.PollUntilDone(ctx, nil) + if err != nil { + log.Fatalf("failed to pull the result: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.AgentPool = armcontainerregistry.AgentPool{ + // Name: to.Ptr("myAgentPool"), + // Type: to.Ptr("Microsoft.ContainerRegistry/registries/agentPools"), + // ID: to.Ptr("/subscriptions/f9d7ebed-adbd-4cb4-b973-aaf82c136138/resourceGroups/huanwudfwestgroup/providers/Microsoft.ContainerRegistry/registries/huanglidfwest01/agentPools/testagent26"), + // Location: to.Ptr("WESTUS"), + // Properties: &armcontainerregistry.AgentPoolProperties{ + // Count: to.Ptr[int32](1), + // OS: to.Ptr(armcontainerregistry.OSLinux), + // ProvisioningState: to.Ptr(armcontainerregistry.ProvisioningStateSucceeded), + // Tier: to.Ptr("S1"), + // }, + // } +} diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/AgentPoolsUpdate.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/AgentPoolsUpdate.json new file mode 100644 index 0000000000..ffd01135ff --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/AgentPoolsUpdate.json @@ -0,0 +1 @@ +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv3.0.0-beta.1/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/ManagedIdentity/TasksCreate_WithLoginIdentity.go b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/ManagedIdentity/TasksCreate_WithLoginIdentity.go new file mode 100644 index 0000000000..6af1aed88c --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/ManagedIdentity/TasksCreate_WithLoginIdentity.go @@ -0,0 +1,172 @@ +package armcontainerregistry_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v3" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/523ccabf440d8cf1c5b0ea18a8ad1ffedf4902ac/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples/ManagedIdentity/TasksCreate_WithLoginIdentity.json +func ExampleTasksClient_Create_tasksCreateWithLoginIdentity() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + clientFactory, err := armcontainerregistry.NewClientFactory("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := clientFactory.NewTasksClient().Create(ctx, "myResourceGroup", "myRegistry", "mytTask", armcontainerregistry.Task{ + Location: to.Ptr("eastus"), + Tags: map[string]*string{ + "testkey": to.Ptr("value"), + }, + Identity: &armcontainerregistry.IdentityProperties{ + Type: to.Ptr(armcontainerregistry.ResourceIdentityTypeSystemAssigned), + }, + Properties: &armcontainerregistry.TaskProperties{ + AgentConfiguration: &armcontainerregistry.AgentProperties{ + CPU: to.Ptr[int32](2), + }, + Credentials: &armcontainerregistry.Credentials{ + SourceRegistry: &armcontainerregistry.SourceRegistryCredentials{ + Identity: to.Ptr("[system]"), + }, + }, + IsSystemTask: to.Ptr(false), + Platform: &armcontainerregistry.PlatformProperties{ + Architecture: to.Ptr(armcontainerregistry.ArchitectureAmd64), + OS: to.Ptr(armcontainerregistry.OSLinux), + }, + Status: to.Ptr(armcontainerregistry.TaskStatusEnabled), + Step: &armcontainerregistry.DockerBuildStep{ + Type: to.Ptr(armcontainerregistry.StepTypeDocker), + ContextPath: to.Ptr("src"), + Arguments: []*armcontainerregistry.Argument{ + { + Name: to.Ptr("mytestargument"), + IsSecret: to.Ptr(false), + Value: to.Ptr("mytestvalue"), + }, + { + Name: to.Ptr("mysecrettestargument"), + IsSecret: to.Ptr(true), + Value: to.Ptr("mysecrettestvalue"), + }}, + DockerFilePath: to.Ptr("src/DockerFile"), + ImageNames: []*string{ + to.Ptr("azurerest:testtag")}, + IsPushEnabled: to.Ptr(true), + NoCache: to.Ptr(false), + }, + Trigger: &armcontainerregistry.TriggerProperties{ + BaseImageTrigger: &armcontainerregistry.BaseImageTrigger{ + Name: to.Ptr("myBaseImageTrigger"), + BaseImageTriggerType: to.Ptr(armcontainerregistry.BaseImageTriggerTypeRuntime), + }, + SourceTriggers: []*armcontainerregistry.SourceTrigger{ + { + Name: to.Ptr("mySourceTrigger"), + SourceRepository: &armcontainerregistry.SourceProperties{ + Branch: to.Ptr("master"), + RepositoryURL: to.Ptr("https://github.com/Azure/azure-rest-api-specs"), + SourceControlAuthProperties: &armcontainerregistry.AuthInfo{ + Token: to.Ptr("xxxxx"), + TokenType: to.Ptr(armcontainerregistry.TokenTypePAT), + }, + SourceControlType: to.Ptr(armcontainerregistry.SourceControlTypeGithub), + }, + SourceTriggerEvents: []*armcontainerregistry.SourceTriggerEvent{ + to.Ptr(armcontainerregistry.SourceTriggerEventCommit)}, + }}, + TimerTriggers: []*armcontainerregistry.TimerTrigger{ + { + Name: to.Ptr("myTimerTrigger"), + Schedule: to.Ptr("30 9 * * 1-5"), + }}, + }, + }, + }, nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.Task = armcontainerregistry.Task{ + // Name: to.Ptr("myTask"), + // Type: to.Ptr("Microsoft.ContainerRegistry/registries/tasks"), + // ID: to.Ptr("/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/tasks/myTask"), + // Location: to.Ptr("eastus"), + // Tags: map[string]*string{ + // "testkey": to.Ptr("value"), + // }, + // Identity: &armcontainerregistry.IdentityProperties{ + // Type: to.Ptr(armcontainerregistry.ResourceIdentityTypeSystemAssigned), + // PrincipalID: to.Ptr("fa153151-b9fd-46f4-9088-5e6600f2689v"), + // TenantID: to.Ptr("f686d426-8d16-42db-81b7-abu4gm510ccd"), + // }, + // Properties: &armcontainerregistry.TaskProperties{ + // AgentConfiguration: &armcontainerregistry.AgentProperties{ + // CPU: to.Ptr[int32](2), + // }, + // CreationDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-01-25T06:54:23.536Z"); return t}()), + // Credentials: &armcontainerregistry.Credentials{ + // SourceRegistry: &armcontainerregistry.SourceRegistryCredentials{ + // Identity: to.Ptr("[system]"), + // }, + // }, + // IsSystemTask: to.Ptr(false), + // Platform: &armcontainerregistry.PlatformProperties{ + // Architecture: to.Ptr(armcontainerregistry.ArchitectureAmd64), + // OS: to.Ptr(armcontainerregistry.OSLinux), + // }, + // ProvisioningState: to.Ptr(armcontainerregistry.ProvisioningStateSucceeded), + // Status: to.Ptr(armcontainerregistry.TaskStatusEnabled), + // Step: &armcontainerregistry.DockerBuildStep{ + // Type: to.Ptr(armcontainerregistry.StepTypeDocker), + // ContextPath: to.Ptr("src"), + // Arguments: []*armcontainerregistry.Argument{ + // { + // Name: to.Ptr("mytestargument"), + // IsSecret: to.Ptr(false), + // Value: to.Ptr("mytestvalue"), + // }}, + // DockerFilePath: to.Ptr("src/DockerFile"), + // ImageNames: []*string{ + // to.Ptr("azurerest:testtag")}, + // IsPushEnabled: to.Ptr(true), + // NoCache: to.Ptr(false), + // }, + // Trigger: &armcontainerregistry.TriggerProperties{ + // BaseImageTrigger: &armcontainerregistry.BaseImageTrigger{ + // Name: to.Ptr("myBaseImageTrigger"), + // BaseImageTriggerType: to.Ptr(armcontainerregistry.BaseImageTriggerTypeRuntime), + // Status: to.Ptr(armcontainerregistry.TriggerStatusEnabled), + // }, + // SourceTriggers: []*armcontainerregistry.SourceTrigger{ + // { + // Name: to.Ptr("mySourceTrigger"), + // SourceRepository: &armcontainerregistry.SourceProperties{ + // Branch: to.Ptr("master"), + // RepositoryURL: to.Ptr("https://github.com/Azure/azure-rest-api-specs"), + // SourceControlType: to.Ptr(armcontainerregistry.SourceControlTypeGithub), + // }, + // SourceTriggerEvents: []*armcontainerregistry.SourceTriggerEvent{ + // to.Ptr(armcontainerregistry.SourceTriggerEventCommit)}, + // Status: to.Ptr(armcontainerregistry.TriggerStatusEnabled), + // }}, + // TimerTriggers: []*armcontainerregistry.TimerTrigger{ + // { + // Name: to.Ptr("myTimerTrigger"), + // Schedule: to.Ptr("30 9 * * 1-5"), + // Status: to.Ptr(armcontainerregistry.TriggerStatusEnabled), + // }}, + // }, + // }, + // } +} diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/ManagedIdentity/TasksCreate_WithLoginIdentity.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/ManagedIdentity/TasksCreate_WithLoginIdentity.json new file mode 100644 index 0000000000..ffd01135ff --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/ManagedIdentity/TasksCreate_WithLoginIdentity.json @@ -0,0 +1 @@ +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv3.0.0-beta.1/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/ManagedIdentity/TasksCreate_WithSystemAndUserIdentities.go b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/ManagedIdentity/TasksCreate_WithSystemAndUserIdentities.go new file mode 100644 index 0000000000..ba7c465099 --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/ManagedIdentity/TasksCreate_WithSystemAndUserIdentities.go @@ -0,0 +1,174 @@ +package armcontainerregistry_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v3" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/523ccabf440d8cf1c5b0ea18a8ad1ffedf4902ac/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples/ManagedIdentity/TasksCreate_WithSystemAndUserIdentities.json +func ExampleTasksClient_Create_tasksCreateWithSystemAndUserIdentities() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + clientFactory, err := armcontainerregistry.NewClientFactory("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := clientFactory.NewTasksClient().Create(ctx, "myResourceGroup", "myRegistry", "mytTask", armcontainerregistry.Task{ + Location: to.Ptr("eastus"), + Tags: map[string]*string{ + "testkey": to.Ptr("value"), + }, + Identity: &armcontainerregistry.IdentityProperties{ + Type: to.Ptr(armcontainerregistry.ResourceIdentityTypeSystemAssignedUserAssigned), + UserAssignedIdentities: map[string]*armcontainerregistry.UserIdentityProperties{ + "/subscriptions/f9d7ebed-adbd-4cb4-b973-aaf82c136138/resourcegroups/myResourceGroup1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity2": {}, + }, + }, + Properties: &armcontainerregistry.TaskProperties{ + AgentConfiguration: &armcontainerregistry.AgentProperties{ + CPU: to.Ptr[int32](2), + }, + IsSystemTask: to.Ptr(false), + Platform: &armcontainerregistry.PlatformProperties{ + Architecture: to.Ptr(armcontainerregistry.ArchitectureAmd64), + OS: to.Ptr(armcontainerregistry.OSLinux), + }, + Status: to.Ptr(armcontainerregistry.TaskStatusEnabled), + Step: &armcontainerregistry.DockerBuildStep{ + Type: to.Ptr(armcontainerregistry.StepTypeDocker), + ContextPath: to.Ptr("src"), + Arguments: []*armcontainerregistry.Argument{ + { + Name: to.Ptr("mytestargument"), + IsSecret: to.Ptr(false), + Value: to.Ptr("mytestvalue"), + }, + { + Name: to.Ptr("mysecrettestargument"), + IsSecret: to.Ptr(true), + Value: to.Ptr("mysecrettestvalue"), + }}, + DockerFilePath: to.Ptr("src/DockerFile"), + ImageNames: []*string{ + to.Ptr("azurerest:testtag")}, + IsPushEnabled: to.Ptr(true), + NoCache: to.Ptr(false), + }, + Trigger: &armcontainerregistry.TriggerProperties{ + BaseImageTrigger: &armcontainerregistry.BaseImageTrigger{ + Name: to.Ptr("myBaseImageTrigger"), + BaseImageTriggerType: to.Ptr(armcontainerregistry.BaseImageTriggerTypeRuntime), + UpdateTriggerEndpoint: to.Ptr("https://user:pass@mycicd.webhook.com?token=foo"), + UpdateTriggerPayloadType: to.Ptr(armcontainerregistry.UpdateTriggerPayloadTypeDefault), + }, + SourceTriggers: []*armcontainerregistry.SourceTrigger{ + { + Name: to.Ptr("mySourceTrigger"), + SourceRepository: &armcontainerregistry.SourceProperties{ + Branch: to.Ptr("master"), + RepositoryURL: to.Ptr("https://github.com/Azure/azure-rest-api-specs"), + SourceControlAuthProperties: &armcontainerregistry.AuthInfo{ + Token: to.Ptr("xxxxx"), + TokenType: to.Ptr(armcontainerregistry.TokenTypePAT), + }, + SourceControlType: to.Ptr(armcontainerregistry.SourceControlTypeGithub), + }, + SourceTriggerEvents: []*armcontainerregistry.SourceTriggerEvent{ + to.Ptr(armcontainerregistry.SourceTriggerEventCommit)}, + }}, + TimerTriggers: []*armcontainerregistry.TimerTrigger{ + { + Name: to.Ptr("myTimerTrigger"), + Schedule: to.Ptr("30 9 * * 1-5"), + }}, + }, + }, + }, nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.Task = armcontainerregistry.Task{ + // Name: to.Ptr("myTask"), + // Type: to.Ptr("Microsoft.ContainerRegistry/registries/tasks"), + // ID: to.Ptr("/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/tasks/myTask"), + // Location: to.Ptr("eastus"), + // Tags: map[string]*string{ + // "testkey": to.Ptr("value"), + // }, + // Identity: &armcontainerregistry.IdentityProperties{ + // Type: to.Ptr(armcontainerregistry.ResourceIdentityTypeSystemAssignedUserAssigned), + // PrincipalID: to.Ptr("fc99dc67-1ad9-45c8-9ebc-e438081c8e30"), + // TenantID: to.Ptr("f686d426-8d16-42db-81b7-ab578e110ccd"), + // UserAssignedIdentities: map[string]*armcontainerregistry.UserIdentityProperties{ + // "/subscriptions/f9d7ebed-adbd-4cb4-b973-aaf82c136138/resourcegroups/myResourceGroup1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity2": &armcontainerregistry.UserIdentityProperties{ + // ClientID: to.Ptr("e35621a5-f615-4a20-940e-de8a84b15abc"), + // PrincipalID: to.Ptr("e45e3m7c-176e-416a-b466-0c5ec8298f8a"), + // }, + // }, + // }, + // Properties: &armcontainerregistry.TaskProperties{ + // AgentConfiguration: &armcontainerregistry.AgentProperties{ + // CPU: to.Ptr[int32](2), + // }, + // CreationDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-01-25T06:54:23.536Z"); return t}()), + // IsSystemTask: to.Ptr(false), + // Platform: &armcontainerregistry.PlatformProperties{ + // Architecture: to.Ptr(armcontainerregistry.ArchitectureAmd64), + // OS: to.Ptr(armcontainerregistry.OSLinux), + // }, + // ProvisioningState: to.Ptr(armcontainerregistry.ProvisioningStateSucceeded), + // Status: to.Ptr(armcontainerregistry.TaskStatusEnabled), + // Step: &armcontainerregistry.DockerBuildStep{ + // Type: to.Ptr(armcontainerregistry.StepTypeDocker), + // ContextPath: to.Ptr("src"), + // Arguments: []*armcontainerregistry.Argument{ + // { + // Name: to.Ptr("mytestargument"), + // IsSecret: to.Ptr(false), + // Value: to.Ptr("mytestvalue"), + // }}, + // DockerFilePath: to.Ptr("src/DockerFile"), + // ImageNames: []*string{ + // to.Ptr("azurerest:testtag")}, + // IsPushEnabled: to.Ptr(true), + // NoCache: to.Ptr(false), + // }, + // Trigger: &armcontainerregistry.TriggerProperties{ + // BaseImageTrigger: &armcontainerregistry.BaseImageTrigger{ + // Name: to.Ptr("myBaseImageTrigger"), + // BaseImageTriggerType: to.Ptr(armcontainerregistry.BaseImageTriggerTypeRuntime), + // Status: to.Ptr(armcontainerregistry.TriggerStatusEnabled), + // UpdateTriggerPayloadType: to.Ptr(armcontainerregistry.UpdateTriggerPayloadTypeDefault), + // }, + // SourceTriggers: []*armcontainerregistry.SourceTrigger{ + // { + // Name: to.Ptr("mySourceTrigger"), + // SourceRepository: &armcontainerregistry.SourceProperties{ + // Branch: to.Ptr("master"), + // RepositoryURL: to.Ptr("https://github.com/Azure/azure-rest-api-specs"), + // SourceControlType: to.Ptr(armcontainerregistry.SourceControlTypeGithub), + // }, + // SourceTriggerEvents: []*armcontainerregistry.SourceTriggerEvent{ + // to.Ptr(armcontainerregistry.SourceTriggerEventCommit)}, + // Status: to.Ptr(armcontainerregistry.TriggerStatusEnabled), + // }}, + // TimerTriggers: []*armcontainerregistry.TimerTrigger{ + // { + // Name: to.Ptr("myTimerTrigger"), + // Schedule: to.Ptr("30 9 * * 1-5"), + // Status: to.Ptr(armcontainerregistry.TriggerStatusEnabled), + // }}, + // }, + // }, + // } +} diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/ManagedIdentity/TasksCreate_WithSystemAndUserIdentities.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/ManagedIdentity/TasksCreate_WithSystemAndUserIdentities.json new file mode 100644 index 0000000000..ffd01135ff --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/ManagedIdentity/TasksCreate_WithSystemAndUserIdentities.json @@ -0,0 +1 @@ +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv3.0.0-beta.1/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/ManagedIdentity/TasksCreate_WithSystemIdentity.go b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/ManagedIdentity/TasksCreate_WithSystemIdentity.go new file mode 100644 index 0000000000..a37e8840b5 --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/ManagedIdentity/TasksCreate_WithSystemIdentity.go @@ -0,0 +1,162 @@ +package armcontainerregistry_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v3" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/523ccabf440d8cf1c5b0ea18a8ad1ffedf4902ac/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples/ManagedIdentity/TasksCreate_WithSystemIdentity.json +func ExampleTasksClient_Create_tasksCreateWithUserIdentitiesWithSystemIdentity() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + clientFactory, err := armcontainerregistry.NewClientFactory("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := clientFactory.NewTasksClient().Create(ctx, "myResourceGroup", "myRegistry", "mytTask", armcontainerregistry.Task{ + Location: to.Ptr("eastus"), + Tags: map[string]*string{ + "testkey": to.Ptr("value"), + }, + Identity: &armcontainerregistry.IdentityProperties{ + Type: to.Ptr(armcontainerregistry.ResourceIdentityTypeSystemAssigned), + }, + Properties: &armcontainerregistry.TaskProperties{ + AgentConfiguration: &armcontainerregistry.AgentProperties{ + CPU: to.Ptr[int32](2), + }, + IsSystemTask: to.Ptr(false), + Platform: &armcontainerregistry.PlatformProperties{ + Architecture: to.Ptr(armcontainerregistry.ArchitectureAmd64), + OS: to.Ptr(armcontainerregistry.OSLinux), + }, + Status: to.Ptr(armcontainerregistry.TaskStatusEnabled), + Step: &armcontainerregistry.DockerBuildStep{ + Type: to.Ptr(armcontainerregistry.StepTypeDocker), + ContextPath: to.Ptr("src"), + Arguments: []*armcontainerregistry.Argument{ + { + Name: to.Ptr("mytestargument"), + IsSecret: to.Ptr(false), + Value: to.Ptr("mytestvalue"), + }, + { + Name: to.Ptr("mysecrettestargument"), + IsSecret: to.Ptr(true), + Value: to.Ptr("mysecrettestvalue"), + }}, + DockerFilePath: to.Ptr("src/DockerFile"), + ImageNames: []*string{ + to.Ptr("azurerest:testtag")}, + IsPushEnabled: to.Ptr(true), + NoCache: to.Ptr(false), + }, + Trigger: &armcontainerregistry.TriggerProperties{ + BaseImageTrigger: &armcontainerregistry.BaseImageTrigger{ + Name: to.Ptr("myBaseImageTrigger"), + BaseImageTriggerType: to.Ptr(armcontainerregistry.BaseImageTriggerTypeRuntime), + }, + SourceTriggers: []*armcontainerregistry.SourceTrigger{ + { + Name: to.Ptr("mySourceTrigger"), + SourceRepository: &armcontainerregistry.SourceProperties{ + Branch: to.Ptr("master"), + RepositoryURL: to.Ptr("https://github.com/Azure/azure-rest-api-specs"), + SourceControlAuthProperties: &armcontainerregistry.AuthInfo{ + Token: to.Ptr("xxxxx"), + TokenType: to.Ptr(armcontainerregistry.TokenTypePAT), + }, + SourceControlType: to.Ptr(armcontainerregistry.SourceControlTypeGithub), + }, + SourceTriggerEvents: []*armcontainerregistry.SourceTriggerEvent{ + to.Ptr(armcontainerregistry.SourceTriggerEventCommit)}, + }}, + TimerTriggers: []*armcontainerregistry.TimerTrigger{ + { + Name: to.Ptr("myTimerTrigger"), + Schedule: to.Ptr("30 9 * * 1-5"), + }}, + }, + }, + }, nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.Task = armcontainerregistry.Task{ + // Name: to.Ptr("myTask"), + // Type: to.Ptr("Microsoft.ContainerRegistry/registries/tasks"), + // ID: to.Ptr("/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/tasks/myTask"), + // Location: to.Ptr("eastus"), + // Tags: map[string]*string{ + // "testkey": to.Ptr("value"), + // }, + // Identity: &armcontainerregistry.IdentityProperties{ + // Type: to.Ptr(armcontainerregistry.ResourceIdentityTypeSystemAssigned), + // PrincipalID: to.Ptr("fa153151-b9fd-46f4-9088-5e6600f2689v"), + // TenantID: to.Ptr("f686d426-8d16-42db-81b7-abu4gm510ccd"), + // }, + // Properties: &armcontainerregistry.TaskProperties{ + // AgentConfiguration: &armcontainerregistry.AgentProperties{ + // CPU: to.Ptr[int32](2), + // }, + // CreationDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-01-25T06:54:23.536Z"); return t}()), + // IsSystemTask: to.Ptr(false), + // Platform: &armcontainerregistry.PlatformProperties{ + // Architecture: to.Ptr(armcontainerregistry.ArchitectureAmd64), + // OS: to.Ptr(armcontainerregistry.OSLinux), + // }, + // ProvisioningState: to.Ptr(armcontainerregistry.ProvisioningStateSucceeded), + // Status: to.Ptr(armcontainerregistry.TaskStatusEnabled), + // Step: &armcontainerregistry.DockerBuildStep{ + // Type: to.Ptr(armcontainerregistry.StepTypeDocker), + // ContextPath: to.Ptr("src"), + // Arguments: []*armcontainerregistry.Argument{ + // { + // Name: to.Ptr("mytestargument"), + // IsSecret: to.Ptr(false), + // Value: to.Ptr("mytestvalue"), + // }}, + // DockerFilePath: to.Ptr("src/DockerFile"), + // ImageNames: []*string{ + // to.Ptr("azurerest:testtag")}, + // IsPushEnabled: to.Ptr(true), + // NoCache: to.Ptr(false), + // }, + // Trigger: &armcontainerregistry.TriggerProperties{ + // BaseImageTrigger: &armcontainerregistry.BaseImageTrigger{ + // Name: to.Ptr("myBaseImageTrigger"), + // BaseImageTriggerType: to.Ptr(armcontainerregistry.BaseImageTriggerTypeRuntime), + // Status: to.Ptr(armcontainerregistry.TriggerStatusEnabled), + // }, + // SourceTriggers: []*armcontainerregistry.SourceTrigger{ + // { + // Name: to.Ptr("mySourceTrigger"), + // SourceRepository: &armcontainerregistry.SourceProperties{ + // Branch: to.Ptr("master"), + // RepositoryURL: to.Ptr("https://github.com/Azure/azure-rest-api-specs"), + // SourceControlType: to.Ptr(armcontainerregistry.SourceControlTypeGithub), + // }, + // SourceTriggerEvents: []*armcontainerregistry.SourceTriggerEvent{ + // to.Ptr(armcontainerregistry.SourceTriggerEventCommit)}, + // Status: to.Ptr(armcontainerregistry.TriggerStatusEnabled), + // }}, + // TimerTriggers: []*armcontainerregistry.TimerTrigger{ + // { + // Name: to.Ptr("myTimerTrigger"), + // Schedule: to.Ptr("30 9 * * 1-5"), + // Status: to.Ptr(armcontainerregistry.TriggerStatusEnabled), + // }}, + // }, + // }, + // } +} diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/ManagedIdentity/TasksCreate_WithSystemIdentity.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/ManagedIdentity/TasksCreate_WithSystemIdentity.json new file mode 100644 index 0000000000..ffd01135ff --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/ManagedIdentity/TasksCreate_WithSystemIdentity.json @@ -0,0 +1 @@ +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv3.0.0-beta.1/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/ManagedIdentity/TasksCreate_WithUserIdentities.go b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/ManagedIdentity/TasksCreate_WithUserIdentities.go new file mode 100644 index 0000000000..3a8e2a572e --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/ManagedIdentity/TasksCreate_WithUserIdentities.go @@ -0,0 +1,177 @@ +package armcontainerregistry_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v3" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/523ccabf440d8cf1c5b0ea18a8ad1ffedf4902ac/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples/ManagedIdentity/TasksCreate_WithUserIdentities.json +func ExampleTasksClient_Create_tasksCreateWithUserIdentities() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + clientFactory, err := armcontainerregistry.NewClientFactory("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := clientFactory.NewTasksClient().Create(ctx, "myResourceGroup", "myRegistry", "mytTask", armcontainerregistry.Task{ + Location: to.Ptr("eastus"), + Tags: map[string]*string{ + "testkey": to.Ptr("value"), + }, + Identity: &armcontainerregistry.IdentityProperties{ + Type: to.Ptr(armcontainerregistry.ResourceIdentityTypeUserAssigned), + UserAssignedIdentities: map[string]*armcontainerregistry.UserIdentityProperties{ + "/subscriptions/f9d7ebed-adbd-4cb4-b973-aaf82c136138/resourcegroups/myResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1": {}, + "/subscriptions/f9d7ebed-adbd-4cb4-b973-aaf82c136138/resourcegroups/myResourceGroup1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity2": {}, + }, + }, + Properties: &armcontainerregistry.TaskProperties{ + AgentConfiguration: &armcontainerregistry.AgentProperties{ + CPU: to.Ptr[int32](2), + }, + IsSystemTask: to.Ptr(false), + Platform: &armcontainerregistry.PlatformProperties{ + Architecture: to.Ptr(armcontainerregistry.ArchitectureAmd64), + OS: to.Ptr(armcontainerregistry.OSLinux), + }, + Status: to.Ptr(armcontainerregistry.TaskStatusEnabled), + Step: &armcontainerregistry.DockerBuildStep{ + Type: to.Ptr(armcontainerregistry.StepTypeDocker), + ContextPath: to.Ptr("src"), + Arguments: []*armcontainerregistry.Argument{ + { + Name: to.Ptr("mytestargument"), + IsSecret: to.Ptr(false), + Value: to.Ptr("mytestvalue"), + }, + { + Name: to.Ptr("mysecrettestargument"), + IsSecret: to.Ptr(true), + Value: to.Ptr("mysecrettestvalue"), + }}, + DockerFilePath: to.Ptr("src/DockerFile"), + ImageNames: []*string{ + to.Ptr("azurerest:testtag")}, + IsPushEnabled: to.Ptr(true), + NoCache: to.Ptr(false), + }, + Trigger: &armcontainerregistry.TriggerProperties{ + BaseImageTrigger: &armcontainerregistry.BaseImageTrigger{ + Name: to.Ptr("myBaseImageTrigger"), + BaseImageTriggerType: to.Ptr(armcontainerregistry.BaseImageTriggerTypeRuntime), + UpdateTriggerEndpoint: to.Ptr("https://user:pass@mycicd.webhook.com?token=foo"), + UpdateTriggerPayloadType: to.Ptr(armcontainerregistry.UpdateTriggerPayloadTypeDefault), + }, + SourceTriggers: []*armcontainerregistry.SourceTrigger{ + { + Name: to.Ptr("mySourceTrigger"), + SourceRepository: &armcontainerregistry.SourceProperties{ + Branch: to.Ptr("master"), + RepositoryURL: to.Ptr("https://github.com/Azure/azure-rest-api-specs"), + SourceControlAuthProperties: &armcontainerregistry.AuthInfo{ + Token: to.Ptr("xxxxx"), + TokenType: to.Ptr(armcontainerregistry.TokenTypePAT), + }, + SourceControlType: to.Ptr(armcontainerregistry.SourceControlTypeGithub), + }, + SourceTriggerEvents: []*armcontainerregistry.SourceTriggerEvent{ + to.Ptr(armcontainerregistry.SourceTriggerEventCommit)}, + }}, + TimerTriggers: []*armcontainerregistry.TimerTrigger{ + { + Name: to.Ptr("myTimerTrigger"), + Schedule: to.Ptr("30 9 * * 1-5"), + }}, + }, + }, + }, nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.Task = armcontainerregistry.Task{ + // Name: to.Ptr("myTask"), + // Type: to.Ptr("Microsoft.ContainerRegistry/registries/tasks"), + // ID: to.Ptr("/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/tasks/myTask"), + // Location: to.Ptr("eastus"), + // Tags: map[string]*string{ + // "testkey": to.Ptr("value"), + // }, + // Identity: &armcontainerregistry.IdentityProperties{ + // Type: to.Ptr(armcontainerregistry.ResourceIdentityTypeUserAssigned), + // UserAssignedIdentities: map[string]*armcontainerregistry.UserIdentityProperties{ + // "/subscriptions/f9d7ebed-adbd-4cb4-b973-aaf82c136138/resourcegroups/myResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1": &armcontainerregistry.UserIdentityProperties{ + // ClientID: to.Ptr("d3ce1bc2-f7d7-4a5b-9979-950f4e57680e"), + // PrincipalID: to.Ptr("b6p9f58b-6fbf-4efd-a7e0-fvd46911a466"), + // }, + // "/subscriptions/f9d7ebed-adbd-4cb4-b973-aaf82c136138/resourcegroups/myResourceGroup1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity2": &armcontainerregistry.UserIdentityProperties{ + // ClientID: to.Ptr("e35621a5-f615-4a20-940e-de8a84b15abc"), + // PrincipalID: to.Ptr("e45e3m7c-176e-416a-b466-0c5ec8298f8a"), + // }, + // }, + // }, + // Properties: &armcontainerregistry.TaskProperties{ + // AgentConfiguration: &armcontainerregistry.AgentProperties{ + // CPU: to.Ptr[int32](2), + // }, + // CreationDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-01-25T06:54:23.536Z"); return t}()), + // IsSystemTask: to.Ptr(false), + // Platform: &armcontainerregistry.PlatformProperties{ + // Architecture: to.Ptr(armcontainerregistry.ArchitectureAmd64), + // OS: to.Ptr(armcontainerregistry.OSLinux), + // }, + // ProvisioningState: to.Ptr(armcontainerregistry.ProvisioningStateSucceeded), + // Status: to.Ptr(armcontainerregistry.TaskStatusEnabled), + // Step: &armcontainerregistry.DockerBuildStep{ + // Type: to.Ptr(armcontainerregistry.StepTypeDocker), + // ContextPath: to.Ptr("src"), + // Arguments: []*armcontainerregistry.Argument{ + // { + // Name: to.Ptr("mytestargument"), + // IsSecret: to.Ptr(false), + // Value: to.Ptr("mytestvalue"), + // }}, + // DockerFilePath: to.Ptr("src/DockerFile"), + // ImageNames: []*string{ + // to.Ptr("azurerest:testtag")}, + // IsPushEnabled: to.Ptr(true), + // NoCache: to.Ptr(false), + // }, + // Trigger: &armcontainerregistry.TriggerProperties{ + // BaseImageTrigger: &armcontainerregistry.BaseImageTrigger{ + // Name: to.Ptr("myBaseImageTrigger"), + // BaseImageTriggerType: to.Ptr(armcontainerregistry.BaseImageTriggerTypeRuntime), + // Status: to.Ptr(armcontainerregistry.TriggerStatusEnabled), + // UpdateTriggerPayloadType: to.Ptr(armcontainerregistry.UpdateTriggerPayloadTypeDefault), + // }, + // SourceTriggers: []*armcontainerregistry.SourceTrigger{ + // { + // Name: to.Ptr("mySourceTrigger"), + // SourceRepository: &armcontainerregistry.SourceProperties{ + // Branch: to.Ptr("master"), + // RepositoryURL: to.Ptr("https://github.com/Azure/azure-rest-api-specs"), + // SourceControlType: to.Ptr(armcontainerregistry.SourceControlTypeGithub), + // }, + // SourceTriggerEvents: []*armcontainerregistry.SourceTriggerEvent{ + // to.Ptr(armcontainerregistry.SourceTriggerEventCommit)}, + // Status: to.Ptr(armcontainerregistry.TriggerStatusEnabled), + // }}, + // TimerTriggers: []*armcontainerregistry.TimerTrigger{ + // { + // Name: to.Ptr("myTimerTrigger"), + // Schedule: to.Ptr("30 9 * * 1-5"), + // Status: to.Ptr(armcontainerregistry.TriggerStatusEnabled), + // }}, + // }, + // }, + // } +} diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/ManagedIdentity/TasksCreate_WithUserIdentities.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/ManagedIdentity/TasksCreate_WithUserIdentities.json new file mode 100644 index 0000000000..ffd01135ff --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/ManagedIdentity/TasksCreate_WithUserIdentities.json @@ -0,0 +1 @@ +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv3.0.0-beta.1/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/ManagedIdentity/TasksUpdate_WithKeyVaultCustomCredentials.go b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/ManagedIdentity/TasksUpdate_WithKeyVaultCustomCredentials.go new file mode 100644 index 0000000000..38a5ce8219 --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/ManagedIdentity/TasksUpdate_WithKeyVaultCustomCredentials.go @@ -0,0 +1,148 @@ +package armcontainerregistry_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v3" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/523ccabf440d8cf1c5b0ea18a8ad1ffedf4902ac/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples/ManagedIdentity/TasksUpdate_WithKeyVaultCustomCredentials.json +func ExampleTasksClient_Update_tasksUpdateWithKeyVaultCustomCredentials() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + clientFactory, err := armcontainerregistry.NewClientFactory("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := clientFactory.NewTasksClient().Update(ctx, "myResourceGroup", "myRegistry", "myTask", armcontainerregistry.TaskUpdateParameters{ + Properties: &armcontainerregistry.TaskPropertiesUpdateParameters{ + AgentConfiguration: &armcontainerregistry.AgentProperties{ + CPU: to.Ptr[int32](3), + }, + Credentials: &armcontainerregistry.Credentials{ + CustomRegistries: map[string]*armcontainerregistry.CustomRegistryCredentials{ + "myregistry.azurecr.io": { + Identity: to.Ptr("[system]"), + Password: &armcontainerregistry.SecretObject{ + Type: to.Ptr(armcontainerregistry.SecretObjectTypeVaultsecret), + Value: to.Ptr("https://myacbvault.vault.azure.net/secrets/password"), + }, + UserName: &armcontainerregistry.SecretObject{ + Type: to.Ptr(armcontainerregistry.SecretObjectTypeVaultsecret), + Value: to.Ptr("https://myacbvault.vault.azure.net/secrets/username"), + }, + }, + }, + }, + Status: to.Ptr(armcontainerregistry.TaskStatusEnabled), + Step: &armcontainerregistry.DockerBuildStepUpdateParameters{ + Type: to.Ptr(armcontainerregistry.StepTypeDocker), + DockerFilePath: to.Ptr("src/DockerFile"), + ImageNames: []*string{ + to.Ptr("azurerest:testtag1")}, + }, + Trigger: &armcontainerregistry.TriggerUpdateParameters{ + SourceTriggers: []*armcontainerregistry.SourceTriggerUpdateParameters{ + { + Name: to.Ptr("mySourceTrigger"), + SourceRepository: &armcontainerregistry.SourceUpdateParameters{ + SourceControlAuthProperties: &armcontainerregistry.AuthInfoUpdateParameters{ + Token: to.Ptr("xxxxx"), + TokenType: to.Ptr(armcontainerregistry.TokenTypePAT), + }, + }, + SourceTriggerEvents: []*armcontainerregistry.SourceTriggerEvent{ + to.Ptr(armcontainerregistry.SourceTriggerEventCommit)}, + }}, + }, + }, + Tags: map[string]*string{ + "testkey": to.Ptr("value"), + }, + }, nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.Task = armcontainerregistry.Task{ + // Name: to.Ptr("myTask"), + // Type: to.Ptr("Microsoft.ContainerRegistry/registries/tasks"), + // ID: to.Ptr("/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/tasks/myTask"), + // Location: to.Ptr("eastus"), + // Tags: map[string]*string{ + // "testkey": to.Ptr("value"), + // }, + // Identity: &armcontainerregistry.IdentityProperties{ + // Type: to.Ptr(armcontainerregistry.ResourceIdentityTypeSystemAssigned), + // PrincipalID: to.Ptr("fa153151-b9fd-46f4-9088-5e6600f2689v"), + // TenantID: to.Ptr("f686d426-8d16-42db-81b7-abu4gm510ccd"), + // }, + // Properties: &armcontainerregistry.TaskProperties{ + // AgentConfiguration: &armcontainerregistry.AgentProperties{ + // CPU: to.Ptr[int32](3), + // }, + // CreationDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-01-25T06:54:23.536Z"); return t}()), + // Credentials: &armcontainerregistry.Credentials{ + // CustomRegistries: map[string]*armcontainerregistry.CustomRegistryCredentials{ + // "myregistry.azurecr.io": nil, + // }, + // }, + // Platform: &armcontainerregistry.PlatformProperties{ + // Architecture: to.Ptr(armcontainerregistry.ArchitectureAmd64), + // OS: to.Ptr(armcontainerregistry.OSLinux), + // }, + // ProvisioningState: to.Ptr(armcontainerregistry.ProvisioningStateSucceeded), + // Status: to.Ptr(armcontainerregistry.TaskStatusEnabled), + // Step: &armcontainerregistry.DockerBuildStep{ + // Type: to.Ptr(armcontainerregistry.StepTypeDocker), + // ContextPath: to.Ptr("src"), + // Arguments: []*armcontainerregistry.Argument{ + // { + // Name: to.Ptr("mytestargument"), + // IsSecret: to.Ptr(false), + // Value: to.Ptr("mytestvalue"), + // }}, + // DockerFilePath: to.Ptr("src/DockerFile"), + // ImageNames: []*string{ + // to.Ptr("azurerest:testtag1")}, + // IsPushEnabled: to.Ptr(true), + // NoCache: to.Ptr(false), + // }, + // Trigger: &armcontainerregistry.TriggerProperties{ + // BaseImageTrigger: &armcontainerregistry.BaseImageTrigger{ + // Name: to.Ptr("myBaseImageTrigger"), + // BaseImageTriggerType: to.Ptr(armcontainerregistry.BaseImageTriggerTypeRuntime), + // Status: to.Ptr(armcontainerregistry.TriggerStatusEnabled), + // UpdateTriggerEndpoint: to.Ptr("https://user:pass@mycicd.webhook.com?token=foo"), + // UpdateTriggerPayloadType: to.Ptr(armcontainerregistry.UpdateTriggerPayloadTypeToken), + // }, + // SourceTriggers: []*armcontainerregistry.SourceTrigger{ + // { + // Name: to.Ptr("mySourceTrigger"), + // SourceRepository: &armcontainerregistry.SourceProperties{ + // Branch: to.Ptr("master"), + // RepositoryURL: to.Ptr("https://github.com/Azure/azure-rest-api-specs"), + // SourceControlType: to.Ptr(armcontainerregistry.SourceControlTypeGithub), + // }, + // SourceTriggerEvents: []*armcontainerregistry.SourceTriggerEvent{ + // to.Ptr(armcontainerregistry.SourceTriggerEventCommit)}, + // Status: to.Ptr(armcontainerregistry.TriggerStatusEnabled), + // }}, + // TimerTriggers: []*armcontainerregistry.TimerTrigger{ + // { + // Name: to.Ptr("myTimerTrigger"), + // Schedule: to.Ptr("30 9 * * 1-5"), + // Status: to.Ptr(armcontainerregistry.TriggerStatusEnabled), + // }}, + // }, + // }, + // } +} diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/ManagedIdentity/TasksUpdate_WithKeyVaultCustomCredentials.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/ManagedIdentity/TasksUpdate_WithKeyVaultCustomCredentials.json new file mode 100644 index 0000000000..ffd01135ff --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/ManagedIdentity/TasksUpdate_WithKeyVaultCustomCredentials.json @@ -0,0 +1 @@ +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv3.0.0-beta.1/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/ManagedIdentity/TasksUpdate_WithLoginIdentity.go b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/ManagedIdentity/TasksUpdate_WithLoginIdentity.go new file mode 100644 index 0000000000..3c83e7f2af --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/ManagedIdentity/TasksUpdate_WithLoginIdentity.go @@ -0,0 +1,136 @@ +package armcontainerregistry_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v3" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/523ccabf440d8cf1c5b0ea18a8ad1ffedf4902ac/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples/ManagedIdentity/TasksUpdate_WithLoginIdentity.json +func ExampleTasksClient_Update_tasksUpdateWithLoginIdentity() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + clientFactory, err := armcontainerregistry.NewClientFactory("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := clientFactory.NewTasksClient().Update(ctx, "myResourceGroup", "myRegistry", "myTask", armcontainerregistry.TaskUpdateParameters{ + Properties: &armcontainerregistry.TaskPropertiesUpdateParameters{ + AgentConfiguration: &armcontainerregistry.AgentProperties{ + CPU: to.Ptr[int32](3), + }, + Credentials: &armcontainerregistry.Credentials{ + SourceRegistry: &armcontainerregistry.SourceRegistryCredentials{ + Identity: to.Ptr("[system]"), + }, + }, + Status: to.Ptr(armcontainerregistry.TaskStatusEnabled), + Step: &armcontainerregistry.DockerBuildStepUpdateParameters{ + Type: to.Ptr(armcontainerregistry.StepTypeDocker), + DockerFilePath: to.Ptr("src/DockerFile"), + ImageNames: []*string{ + to.Ptr("azurerest:testtag1")}, + }, + Trigger: &armcontainerregistry.TriggerUpdateParameters{ + SourceTriggers: []*armcontainerregistry.SourceTriggerUpdateParameters{ + { + Name: to.Ptr("mySourceTrigger"), + SourceRepository: &armcontainerregistry.SourceUpdateParameters{ + SourceControlAuthProperties: &armcontainerregistry.AuthInfoUpdateParameters{ + Token: to.Ptr("xxxxx"), + TokenType: to.Ptr(armcontainerregistry.TokenTypePAT), + }, + }, + SourceTriggerEvents: []*armcontainerregistry.SourceTriggerEvent{ + to.Ptr(armcontainerregistry.SourceTriggerEventCommit)}, + }}, + }, + }, + Tags: map[string]*string{ + "testkey": to.Ptr("value"), + }, + }, nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.Task = armcontainerregistry.Task{ + // Name: to.Ptr("myTask"), + // Type: to.Ptr("Microsoft.ContainerRegistry/registries/tasks"), + // ID: to.Ptr("/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/tasks/myTask"), + // Location: to.Ptr("eastus"), + // Tags: map[string]*string{ + // "testkey": to.Ptr("value"), + // }, + // Identity: &armcontainerregistry.IdentityProperties{ + // Type: to.Ptr(armcontainerregistry.ResourceIdentityTypeSystemAssigned), + // PrincipalID: to.Ptr("fa153151-b9fd-46f4-9088-5e6600f2689v"), + // TenantID: to.Ptr("f686d426-8d16-42db-81b7-abu4gm510ccd"), + // }, + // Properties: &armcontainerregistry.TaskProperties{ + // AgentConfiguration: &armcontainerregistry.AgentProperties{ + // CPU: to.Ptr[int32](3), + // }, + // CreationDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-01-25T06:54:23.536Z"); return t}()), + // Credentials: &armcontainerregistry.Credentials{ + // SourceRegistry: &armcontainerregistry.SourceRegistryCredentials{ + // Identity: to.Ptr("[system]"), + // }, + // }, + // Platform: &armcontainerregistry.PlatformProperties{ + // Architecture: to.Ptr(armcontainerregistry.ArchitectureAmd64), + // OS: to.Ptr(armcontainerregistry.OSLinux), + // }, + // ProvisioningState: to.Ptr(armcontainerregistry.ProvisioningStateSucceeded), + // Status: to.Ptr(armcontainerregistry.TaskStatusEnabled), + // Step: &armcontainerregistry.DockerBuildStep{ + // Type: to.Ptr(armcontainerregistry.StepTypeDocker), + // ContextPath: to.Ptr("src"), + // Arguments: []*armcontainerregistry.Argument{ + // { + // Name: to.Ptr("mytestargument"), + // IsSecret: to.Ptr(false), + // Value: to.Ptr("mytestvalue"), + // }}, + // DockerFilePath: to.Ptr("src/DockerFile"), + // ImageNames: []*string{ + // to.Ptr("azurerest:testtag1")}, + // IsPushEnabled: to.Ptr(true), + // NoCache: to.Ptr(false), + // }, + // Trigger: &armcontainerregistry.TriggerProperties{ + // BaseImageTrigger: &armcontainerregistry.BaseImageTrigger{ + // Name: to.Ptr("myBaseImageTrigger"), + // BaseImageTriggerType: to.Ptr(armcontainerregistry.BaseImageTriggerTypeRuntime), + // Status: to.Ptr(armcontainerregistry.TriggerStatusEnabled), + // }, + // SourceTriggers: []*armcontainerregistry.SourceTrigger{ + // { + // Name: to.Ptr("mySourceTrigger"), + // SourceRepository: &armcontainerregistry.SourceProperties{ + // Branch: to.Ptr("master"), + // RepositoryURL: to.Ptr("https://github.com/Azure/azure-rest-api-specs"), + // SourceControlType: to.Ptr(armcontainerregistry.SourceControlTypeGithub), + // }, + // SourceTriggerEvents: []*armcontainerregistry.SourceTriggerEvent{ + // to.Ptr(armcontainerregistry.SourceTriggerEventCommit)}, + // Status: to.Ptr(armcontainerregistry.TriggerStatusEnabled), + // }}, + // TimerTriggers: []*armcontainerregistry.TimerTrigger{ + // { + // Name: to.Ptr("myTimerTrigger"), + // Schedule: to.Ptr("30 9 * * 1-5"), + // Status: to.Ptr(armcontainerregistry.TriggerStatusEnabled), + // }}, + // }, + // }, + // } +} diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/ManagedIdentity/TasksUpdate_WithLoginIdentity.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/ManagedIdentity/TasksUpdate_WithLoginIdentity.json new file mode 100644 index 0000000000..ffd01135ff --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/ManagedIdentity/TasksUpdate_WithLoginIdentity.json @@ -0,0 +1 @@ +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv3.0.0-beta.1/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/ManagedIdentity/TasksUpdate_WithMSICustomCredentials.go b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/ManagedIdentity/TasksUpdate_WithMSICustomCredentials.go new file mode 100644 index 0000000000..aad005c78a --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/ManagedIdentity/TasksUpdate_WithMSICustomCredentials.go @@ -0,0 +1,138 @@ +package armcontainerregistry_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v3" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/523ccabf440d8cf1c5b0ea18a8ad1ffedf4902ac/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples/ManagedIdentity/TasksUpdate_WithMSICustomCredentials.json +func ExampleTasksClient_Update_tasksUpdateWithMsiCustomCredentials() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + clientFactory, err := armcontainerregistry.NewClientFactory("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := clientFactory.NewTasksClient().Update(ctx, "myResourceGroup", "myRegistry", "myTask", armcontainerregistry.TaskUpdateParameters{ + Properties: &armcontainerregistry.TaskPropertiesUpdateParameters{ + AgentConfiguration: &armcontainerregistry.AgentProperties{ + CPU: to.Ptr[int32](3), + }, + Credentials: &armcontainerregistry.Credentials{ + CustomRegistries: map[string]*armcontainerregistry.CustomRegistryCredentials{ + "myregistry.azurecr.io": { + Identity: to.Ptr("[system]"), + }, + }, + }, + Status: to.Ptr(armcontainerregistry.TaskStatusEnabled), + Step: &armcontainerregistry.DockerBuildStepUpdateParameters{ + Type: to.Ptr(armcontainerregistry.StepTypeDocker), + DockerFilePath: to.Ptr("src/DockerFile"), + ImageNames: []*string{ + to.Ptr("azurerest:testtag1")}, + }, + Trigger: &armcontainerregistry.TriggerUpdateParameters{ + SourceTriggers: []*armcontainerregistry.SourceTriggerUpdateParameters{ + { + Name: to.Ptr("mySourceTrigger"), + SourceRepository: &armcontainerregistry.SourceUpdateParameters{ + SourceControlAuthProperties: &armcontainerregistry.AuthInfoUpdateParameters{ + Token: to.Ptr("xxxxx"), + TokenType: to.Ptr(armcontainerregistry.TokenTypePAT), + }, + }, + SourceTriggerEvents: []*armcontainerregistry.SourceTriggerEvent{ + to.Ptr(armcontainerregistry.SourceTriggerEventCommit)}, + }}, + }, + }, + Tags: map[string]*string{ + "testkey": to.Ptr("value"), + }, + }, nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.Task = armcontainerregistry.Task{ + // Name: to.Ptr("myTask"), + // Type: to.Ptr("Microsoft.ContainerRegistry/registries/tasks"), + // ID: to.Ptr("/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/tasks/myTask"), + // Location: to.Ptr("eastus"), + // Tags: map[string]*string{ + // "testkey": to.Ptr("value"), + // }, + // Identity: &armcontainerregistry.IdentityProperties{ + // Type: to.Ptr(armcontainerregistry.ResourceIdentityTypeSystemAssigned), + // PrincipalID: to.Ptr("fa153151-b9fd-46f4-9088-5e6600f2689v"), + // TenantID: to.Ptr("f686d426-8d16-42db-81b7-abu4gm510ccd"), + // }, + // Properties: &armcontainerregistry.TaskProperties{ + // AgentConfiguration: &armcontainerregistry.AgentProperties{ + // CPU: to.Ptr[int32](3), + // }, + // CreationDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-01-25T06:54:23.536Z"); return t}()), + // Credentials: &armcontainerregistry.Credentials{ + // CustomRegistries: map[string]*armcontainerregistry.CustomRegistryCredentials{ + // "myregistry.azure.io": nil, + // }, + // }, + // Platform: &armcontainerregistry.PlatformProperties{ + // Architecture: to.Ptr(armcontainerregistry.ArchitectureAmd64), + // OS: to.Ptr(armcontainerregistry.OSLinux), + // }, + // ProvisioningState: to.Ptr(armcontainerregistry.ProvisioningStateSucceeded), + // Status: to.Ptr(armcontainerregistry.TaskStatusEnabled), + // Step: &armcontainerregistry.DockerBuildStep{ + // Type: to.Ptr(armcontainerregistry.StepTypeDocker), + // ContextPath: to.Ptr("src"), + // Arguments: []*armcontainerregistry.Argument{ + // { + // Name: to.Ptr("mytestargument"), + // IsSecret: to.Ptr(false), + // Value: to.Ptr("mytestvalue"), + // }}, + // DockerFilePath: to.Ptr("src/DockerFile"), + // ImageNames: []*string{ + // to.Ptr("azurerest:testtag1")}, + // IsPushEnabled: to.Ptr(true), + // NoCache: to.Ptr(false), + // }, + // Trigger: &armcontainerregistry.TriggerProperties{ + // BaseImageTrigger: &armcontainerregistry.BaseImageTrigger{ + // Name: to.Ptr("myBaseImageTrigger"), + // BaseImageTriggerType: to.Ptr(armcontainerregistry.BaseImageTriggerTypeRuntime), + // Status: to.Ptr(armcontainerregistry.TriggerStatusEnabled), + // }, + // SourceTriggers: []*armcontainerregistry.SourceTrigger{ + // { + // Name: to.Ptr("mySourceTrigger"), + // SourceRepository: &armcontainerregistry.SourceProperties{ + // Branch: to.Ptr("master"), + // RepositoryURL: to.Ptr("https://github.com/Azure/azure-rest-api-specs"), + // SourceControlType: to.Ptr(armcontainerregistry.SourceControlTypeGithub), + // }, + // SourceTriggerEvents: []*armcontainerregistry.SourceTriggerEvent{ + // to.Ptr(armcontainerregistry.SourceTriggerEventCommit)}, + // Status: to.Ptr(armcontainerregistry.TriggerStatusEnabled), + // }}, + // TimerTriggers: []*armcontainerregistry.TimerTrigger{ + // { + // Name: to.Ptr("myTimerTrigger"), + // Schedule: to.Ptr("30 9 * * 1-5"), + // Status: to.Ptr(armcontainerregistry.TriggerStatusEnabled), + // }}, + // }, + // }, + // } +} diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/ManagedIdentity/TasksUpdate_WithMSICustomCredentials.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/ManagedIdentity/TasksUpdate_WithMSICustomCredentials.json new file mode 100644 index 0000000000..ffd01135ff --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/ManagedIdentity/TasksUpdate_WithMSICustomCredentials.json @@ -0,0 +1 @@ +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv3.0.0-beta.1/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/RegistriesGetBuildSourceUploadUrl.go b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/RegistriesGetBuildSourceUploadUrl.go new file mode 100644 index 0000000000..a7d798a333 --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/RegistriesGetBuildSourceUploadUrl.go @@ -0,0 +1,33 @@ +package armcontainerregistry_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v3" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/523ccabf440d8cf1c5b0ea18a8ad1ffedf4902ac/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples/RegistriesGetBuildSourceUploadUrl.json +func ExampleRegistriesClient_GetBuildSourceUploadURL() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + clientFactory, err := armcontainerregistry.NewClientFactory("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := clientFactory.NewRegistriesClient().GetBuildSourceUploadURL(ctx, "myResourceGroup", "myRegistry", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.SourceUploadDefinition = armcontainerregistry.SourceUploadDefinition{ + // RelativePath: to.Ptr("source/201802130000/b52f12d8-c3d6-4d75-9107-220f0bfc681d.tar.gz"), + // UploadURL: to.Ptr("https://registrystorageaccount.blob.core.windows.net/registrycontainer/source/201802130000/b52f12d8-c3d6-4d75-9107-220f0bfc681d.tar.gz?sv=2015-04-05&st=2015-04-29T22%3A18%3A26Z&se=2015-04-30T02%3A23%3A26Z&sr=b&sp=rw&sip=168.1.5.60-168.1.5.70&spr=https&sig=Z%2FRHIX5Xcg0Mq2rqI3OlWTjEg2tYkboXr1P9ZUXDtkk%3D"), + // } +} diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/RegistriesGetBuildSourceUploadUrl.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/RegistriesGetBuildSourceUploadUrl.json new file mode 100644 index 0000000000..ffd01135ff --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/RegistriesGetBuildSourceUploadUrl.json @@ -0,0 +1 @@ +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv3.0.0-beta.1/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/RegistriesScheduleRun.go b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/RegistriesScheduleRun.go new file mode 100644 index 0000000000..426ae2cb4a --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/RegistriesScheduleRun.go @@ -0,0 +1,68 @@ +package armcontainerregistry_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v3" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/523ccabf440d8cf1c5b0ea18a8ad1ffedf4902ac/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples/RegistriesScheduleRun.json +func ExampleRegistriesClient_ScheduleRun_registriesScheduleRun() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + clientFactory, err := armcontainerregistry.NewClientFactory("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := clientFactory.NewRegistriesClient().ScheduleRun(ctx, "myResourceGroup", "myRegistry", &armcontainerregistry.DockerBuildRequest{ + Type: to.Ptr("DockerBuildRequest"), + IsArchiveEnabled: to.Ptr(true), + AgentConfiguration: &armcontainerregistry.AgentProperties{ + CPU: to.Ptr[int32](2), + }, + Arguments: []*armcontainerregistry.Argument{ + { + Name: to.Ptr("mytestargument"), + IsSecret: to.Ptr(false), + Value: to.Ptr("mytestvalue"), + }, + { + Name: to.Ptr("mysecrettestargument"), + IsSecret: to.Ptr(true), + Value: to.Ptr("mysecrettestvalue"), + }}, + DockerFilePath: to.Ptr("DockerFile"), + ImageNames: []*string{ + to.Ptr("azurerest:testtag")}, + IsPushEnabled: to.Ptr(true), + NoCache: to.Ptr(true), + Platform: &armcontainerregistry.PlatformProperties{ + Architecture: to.Ptr(armcontainerregistry.ArchitectureAmd64), + OS: to.Ptr(armcontainerregistry.OSLinux), + }, + SourceLocation: to.Ptr("https://myaccount.blob.core.windows.net/sascontainer/source.zip?sv=2015-04-05&st=2015-04-29T22%3A18%3A26Z&se=2015-04-30T02%3A23%3A26Z&sr=b&sp=rw&sip=168.1.5.60-168.1.5.70&spr=https&sig=Z%2FRHIX5Xcg0Mq2rqI3OlWTjEg2tYkboXr1P9ZUXDtkk%3D"), + }, nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.Run = armcontainerregistry.Run{ + // Name: to.Ptr("0accec26-d6de-4757-8e74-d080f38eaaab"), + // Type: to.Ptr("Microsoft.ContainerRegistry/registries/run"), + // ID: to.Ptr("/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/runs/0accec26-d6de-4757-8e74-d080f38eaaab"), + // Properties: &armcontainerregistry.RunProperties{ + // LastUpdatedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-01-25T05:13:51.617Z"); return t}()), + // ProvisioningState: to.Ptr(armcontainerregistry.ProvisioningStateSucceeded), + // RunID: to.Ptr("0accec26-d6de-4757-8e74-d080f38eaaab"), + // Status: to.Ptr(armcontainerregistry.RunStatusSucceeded), + // }, + // } +} diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/RegistriesScheduleRun.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/RegistriesScheduleRun.json new file mode 100644 index 0000000000..ffd01135ff --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/RegistriesScheduleRun.json @@ -0,0 +1 @@ +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv3.0.0-beta.1/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/RegistriesScheduleRun_EncodedTaskRun.go b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/RegistriesScheduleRun_EncodedTaskRun.go new file mode 100644 index 0000000000..fa3c91ec81 --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/RegistriesScheduleRun_EncodedTaskRun.go @@ -0,0 +1,62 @@ +package armcontainerregistry_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v3" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/523ccabf440d8cf1c5b0ea18a8ad1ffedf4902ac/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples/RegistriesScheduleRun_EncodedTaskRun.json +func ExampleRegistriesClient_ScheduleRun_registriesScheduleRunEncodedTaskRun() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + clientFactory, err := armcontainerregistry.NewClientFactory("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := clientFactory.NewRegistriesClient().ScheduleRun(ctx, "myResourceGroup", "myRegistry", &armcontainerregistry.EncodedTaskRunRequest{ + Type: to.Ptr("EncodedTaskRunRequest"), + AgentConfiguration: &armcontainerregistry.AgentProperties{ + CPU: to.Ptr[int32](2), + }, + EncodedTaskContent: to.Ptr("c3RlcHM6Cnt7IGlmIFZhbHVlcy5lbnZpcm9ubWVudCA9PSAncHJvZCcgfX0KICAtIHJ1bjogcHJvZCBzZXR1cAp7eyBlbHNlIGlmIFZhbHVlcy5lbnZpcm9ubWVudCA9PSAnc3RhZ2luZycgfX0KICAtIHJ1bjogc3RhZ2luZyBzZXR1cAp7eyBlbHNlIH19CiAgLSBydW46IGRlZmF1bHQgc2V0dXAKe3sgZW5kIH19CgogIC0gcnVuOiBidWlsZCAtdCBGYW5jeVRoaW5nOnt7LlZhbHVlcy5lbnZpcm9ubWVudH19LXt7LlZhbHVlcy52ZXJzaW9ufX0gLgoKcHVzaDogWydGYW5jeVRoaW5nOnt7LlZhbHVlcy5lbnZpcm9ubWVudH19LXt7LlZhbHVlcy52ZXJzaW9ufX0nXQ=="), + EncodedValuesContent: to.Ptr("ZW52aXJvbm1lbnQ6IHByb2QKdmVyc2lvbjogMQ=="), + Platform: &armcontainerregistry.PlatformProperties{ + OS: to.Ptr(armcontainerregistry.OSLinux), + }, + Values: []*armcontainerregistry.SetValue{ + { + Name: to.Ptr("mytestargument"), + IsSecret: to.Ptr(false), + Value: to.Ptr("mytestvalue"), + }, + { + Name: to.Ptr("mysecrettestargument"), + IsSecret: to.Ptr(true), + Value: to.Ptr("mysecrettestvalue"), + }}, + }, nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.Run = armcontainerregistry.Run{ + // Name: to.Ptr("0accec26-d6de-4757-8e74-d080f38eaaab"), + // Type: to.Ptr("Microsoft.ContainerRegistry/registries/run"), + // ID: to.Ptr("/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/runs/0accec26-d6de-4757-8e74-d080f38eaaab"), + // Properties: &armcontainerregistry.RunProperties{ + // LastUpdatedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-01-25T05:13:51.617Z"); return t}()), + // ProvisioningState: to.Ptr(armcontainerregistry.ProvisioningStateSucceeded), + // RunID: to.Ptr("0accec26-d6de-4757-8e74-d080f38eaaab"), + // Status: to.Ptr(armcontainerregistry.RunStatusSucceeded), + // }, + // } +} diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/RegistriesScheduleRun_EncodedTaskRun.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/RegistriesScheduleRun_EncodedTaskRun.json new file mode 100644 index 0000000000..ffd01135ff --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/RegistriesScheduleRun_EncodedTaskRun.json @@ -0,0 +1 @@ +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv3.0.0-beta.1/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/RegistriesScheduleRun_FileTaskRun.go b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/RegistriesScheduleRun_FileTaskRun.go new file mode 100644 index 0000000000..9dcdb44a42 --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/RegistriesScheduleRun_FileTaskRun.go @@ -0,0 +1,63 @@ +package armcontainerregistry_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v3" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/523ccabf440d8cf1c5b0ea18a8ad1ffedf4902ac/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples/RegistriesScheduleRun_FileTaskRun.json +func ExampleRegistriesClient_ScheduleRun_registriesScheduleRunFileTaskRun() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + clientFactory, err := armcontainerregistry.NewClientFactory("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := clientFactory.NewRegistriesClient().ScheduleRun(ctx, "myResourceGroup", "myRegistry", &armcontainerregistry.FileTaskRunRequest{ + Type: to.Ptr("FileTaskRunRequest"), + AgentConfiguration: &armcontainerregistry.AgentProperties{ + CPU: to.Ptr[int32](2), + }, + Platform: &armcontainerregistry.PlatformProperties{ + OS: to.Ptr(armcontainerregistry.OSLinux), + }, + SourceLocation: to.Ptr("https://myaccount.blob.core.windows.net/sascontainer/source.zip?sv=2015-04-05&st=2015-04-29T22%3A18%3A26Z&se=2015-04-30T02%3A23%3A26Z&sr=b&sp=rw&sip=168.1.5.60-168.1.5.70&spr=https&sig=Z%2FRHIX5Xcg0Mq2rqI3OlWTjEg2tYkboXr1P9ZUXDtkk%3D"), + TaskFilePath: to.Ptr("acb.yaml"), + Values: []*armcontainerregistry.SetValue{ + { + Name: to.Ptr("mytestargument"), + IsSecret: to.Ptr(false), + Value: to.Ptr("mytestvalue"), + }, + { + Name: to.Ptr("mysecrettestargument"), + IsSecret: to.Ptr(true), + Value: to.Ptr("mysecrettestvalue"), + }}, + ValuesFilePath: to.Ptr("prod-values.yaml"), + }, nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.Run = armcontainerregistry.Run{ + // Name: to.Ptr("0accec26-d6de-4757-8e74-d080f38eaaab"), + // Type: to.Ptr("Microsoft.ContainerRegistry/registries/run"), + // ID: to.Ptr("/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/runs/0accec26-d6de-4757-8e74-d080f38eaaab"), + // Properties: &armcontainerregistry.RunProperties{ + // LastUpdatedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-01-25T05:13:51.617Z"); return t}()), + // ProvisioningState: to.Ptr(armcontainerregistry.ProvisioningStateSucceeded), + // RunID: to.Ptr("0accec26-d6de-4757-8e74-d080f38eaaab"), + // Status: to.Ptr(armcontainerregistry.RunStatusSucceeded), + // }, + // } +} diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/RegistriesScheduleRun_FileTaskRun.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/RegistriesScheduleRun_FileTaskRun.json new file mode 100644 index 0000000000..ffd01135ff --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/RegistriesScheduleRun_FileTaskRun.json @@ -0,0 +1 @@ +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv3.0.0-beta.1/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/RegistriesScheduleRun_FileTask_WithCustomCredentials.go b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/RegistriesScheduleRun_FileTask_WithCustomCredentials.go new file mode 100644 index 0000000000..3c9e7b37e6 --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/RegistriesScheduleRun_FileTask_WithCustomCredentials.go @@ -0,0 +1,75 @@ +package armcontainerregistry_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v3" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/523ccabf440d8cf1c5b0ea18a8ad1ffedf4902ac/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples/RegistriesScheduleRun_FileTask_WithCustomCredentials.json +func ExampleRegistriesClient_ScheduleRun_registriesScheduleRunTaskWithCustomCredentials() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + clientFactory, err := armcontainerregistry.NewClientFactory("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := clientFactory.NewRegistriesClient().ScheduleRun(ctx, "myResourceGroup", "myRegistry", &armcontainerregistry.FileTaskRunRequest{ + Type: to.Ptr("FileTaskRunRequest"), + Credentials: &armcontainerregistry.Credentials{ + CustomRegistries: map[string]*armcontainerregistry.CustomRegistryCredentials{ + "myregistry.azurecr.io": { + Password: &armcontainerregistry.SecretObject{ + Type: to.Ptr(armcontainerregistry.SecretObjectTypeOpaque), + Value: to.Ptr("***"), + }, + UserName: &armcontainerregistry.SecretObject{ + Type: to.Ptr(armcontainerregistry.SecretObjectTypeOpaque), + Value: to.Ptr("reg1"), + }, + }, + }, + SourceRegistry: &armcontainerregistry.SourceRegistryCredentials{ + LoginMode: to.Ptr(armcontainerregistry.SourceRegistryLoginModeDefault), + }, + }, + Platform: &armcontainerregistry.PlatformProperties{ + OS: to.Ptr(armcontainerregistry.OSLinux), + }, + TaskFilePath: to.Ptr("acb.yaml"), + Values: []*armcontainerregistry.SetValue{ + { + Name: to.Ptr("mytestargument"), + IsSecret: to.Ptr(false), + Value: to.Ptr("mytestvalue"), + }, + { + Name: to.Ptr("mysecrettestargument"), + IsSecret: to.Ptr(true), + Value: to.Ptr("mysecrettestvalue"), + }}, + }, nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.Run = armcontainerregistry.Run{ + // Name: to.Ptr("0accec26-d6de-4757-8e74-d080f38eaaab"), + // Type: to.Ptr("Microsoft.ContainerRegistry/registries/run"), + // ID: to.Ptr("/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/runs/0accec26-d6de-4757-8e74-d080f38eaaab"), + // Properties: &armcontainerregistry.RunProperties{ + // LastUpdatedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-01-25T05:13:51.617Z"); return t}()), + // ProvisioningState: to.Ptr(armcontainerregistry.ProvisioningStateSucceeded), + // RunID: to.Ptr("0accec26-d6de-4757-8e74-d080f38eaaab"), + // Status: to.Ptr(armcontainerregistry.RunStatusSucceeded), + // }, + // } +} diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/RegistriesScheduleRun_FileTask_WithCustomCredentials.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/RegistriesScheduleRun_FileTask_WithCustomCredentials.json new file mode 100644 index 0000000000..ffd01135ff --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/RegistriesScheduleRun_FileTask_WithCustomCredentials.json @@ -0,0 +1 @@ +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv3.0.0-beta.1/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/RegistriesScheduleRun_Task.go b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/RegistriesScheduleRun_Task.go new file mode 100644 index 0000000000..5cdb9d1ced --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/RegistriesScheduleRun_Task.go @@ -0,0 +1,71 @@ +package armcontainerregistry_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v3" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/523ccabf440d8cf1c5b0ea18a8ad1ffedf4902ac/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples/RegistriesScheduleRun_Task.json +func ExampleRegistriesClient_ScheduleRun_registriesScheduleRunTask() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + clientFactory, err := armcontainerregistry.NewClientFactory("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := clientFactory.NewRegistriesClient().ScheduleRun(ctx, "myResourceGroup", "myRegistry", &armcontainerregistry.TaskRunRequest{ + Type: to.Ptr("TaskRunRequest"), + OverrideTaskStepProperties: &armcontainerregistry.OverrideTaskStepProperties{ + Arguments: []*armcontainerregistry.Argument{ + { + Name: to.Ptr("mytestargument"), + IsSecret: to.Ptr(false), + Value: to.Ptr("mytestvalue"), + }, + { + Name: to.Ptr("mysecrettestargument"), + IsSecret: to.Ptr(true), + Value: to.Ptr("mysecrettestvalue"), + }}, + File: to.Ptr("overriddenDockerfile"), + Target: to.Ptr("build"), + UpdateTriggerToken: to.Ptr("aGVsbG8gd29ybGQ="), + Values: []*armcontainerregistry.SetValue{ + { + Name: to.Ptr("mytestname"), + IsSecret: to.Ptr(false), + Value: to.Ptr("mytestvalue"), + }, + { + Name: to.Ptr("mysecrettestname"), + IsSecret: to.Ptr(true), + Value: to.Ptr("mysecrettestvalue"), + }}, + }, + TaskID: to.Ptr("myTask"), + }, nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.Run = armcontainerregistry.Run{ + // Name: to.Ptr("0accec26-d6de-4757-8e74-d080f38eaaab"), + // Type: to.Ptr("Microsoft.ContainerRegistry/registries/run"), + // ID: to.Ptr("/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/runs/0accec26-d6de-4757-8e74-d080f38eaaab"), + // Properties: &armcontainerregistry.RunProperties{ + // LastUpdatedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-01-25T05:13:51.617Z"); return t}()), + // ProvisioningState: to.Ptr(armcontainerregistry.ProvisioningStateSucceeded), + // RunID: to.Ptr("0accec26-d6de-4757-8e74-d080f38eaaab"), + // Status: to.Ptr(armcontainerregistry.RunStatusSucceeded), + // }, + // } +} diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/RegistriesScheduleRun_Task.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/RegistriesScheduleRun_Task.json new file mode 100644 index 0000000000..ffd01135ff --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/RegistriesScheduleRun_Task.json @@ -0,0 +1 @@ +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv3.0.0-beta.1/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/RegistriesScheduleRun_WithCustomCredentials.go b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/RegistriesScheduleRun_WithCustomCredentials.go new file mode 100644 index 0000000000..0da9650415 --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/RegistriesScheduleRun_WithCustomCredentials.go @@ -0,0 +1,96 @@ +package armcontainerregistry_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v3" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/523ccabf440d8cf1c5b0ea18a8ad1ffedf4902ac/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples/RegistriesScheduleRun_WithCustomCredentials.json +func ExampleRegistriesClient_ScheduleRun_registriesScheduleRunWithCustomCredentials() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + clientFactory, err := armcontainerregistry.NewClientFactory("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := clientFactory.NewRegistriesClient().ScheduleRun(ctx, "myResourceGroup", "myRegistry", &armcontainerregistry.DockerBuildRequest{ + Type: to.Ptr("DockerBuildRequest"), + IsArchiveEnabled: to.Ptr(true), + AgentConfiguration: &armcontainerregistry.AgentProperties{ + CPU: to.Ptr[int32](2), + }, + Arguments: []*armcontainerregistry.Argument{ + { + Name: to.Ptr("mytestargument"), + IsSecret: to.Ptr(false), + Value: to.Ptr("mytestvalue"), + }, + { + Name: to.Ptr("mysecrettestargument"), + IsSecret: to.Ptr(true), + Value: to.Ptr("mysecrettestvalue"), + }}, + Credentials: &armcontainerregistry.Credentials{ + CustomRegistries: map[string]*armcontainerregistry.CustomRegistryCredentials{ + "myregistry.azurecr.io": { + Password: &armcontainerregistry.SecretObject{ + Type: to.Ptr(armcontainerregistry.SecretObjectTypeOpaque), + Value: to.Ptr("***"), + }, + UserName: &armcontainerregistry.SecretObject{ + Type: to.Ptr(armcontainerregistry.SecretObjectTypeOpaque), + Value: to.Ptr("reg1"), + }, + }, + "myregistry2.azurecr.io": { + Password: &armcontainerregistry.SecretObject{ + Type: to.Ptr(armcontainerregistry.SecretObjectTypeOpaque), + Value: to.Ptr("***"), + }, + UserName: &armcontainerregistry.SecretObject{ + Type: to.Ptr(armcontainerregistry.SecretObjectTypeOpaque), + Value: to.Ptr("reg2"), + }, + }, + }, + SourceRegistry: &armcontainerregistry.SourceRegistryCredentials{ + LoginMode: to.Ptr(armcontainerregistry.SourceRegistryLoginModeDefault), + }, + }, + DockerFilePath: to.Ptr("DockerFile"), + ImageNames: []*string{ + to.Ptr("azurerest:testtag")}, + IsPushEnabled: to.Ptr(true), + NoCache: to.Ptr(true), + Platform: &armcontainerregistry.PlatformProperties{ + Architecture: to.Ptr(armcontainerregistry.ArchitectureAmd64), + OS: to.Ptr(armcontainerregistry.OSLinux), + }, + SourceLocation: to.Ptr("https://myaccount.blob.core.windows.net/sascontainer/source.zip?sv=2015-04-05&st=2015-04-29T22%3A18%3A26Z&se=2015-04-30T02%3A23%3A26Z&sr=b&sp=rw&sip=168.1.5.60-168.1.5.70&spr=https&sig=Z%2FRHIX5Xcg0Mq2rqI3OlWTjEg2tYkboXr1P9ZUXDtkk%3D"), + Target: to.Ptr("stage1"), + }, nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.Run = armcontainerregistry.Run{ + // Name: to.Ptr("0accec26-d6de-4757-8e74-d080f38eaaab"), + // Type: to.Ptr("Microsoft.ContainerRegistry/registries/run"), + // ID: to.Ptr("/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/runs/0accec26-d6de-4757-8e74-d080f38eaaab"), + // Properties: &armcontainerregistry.RunProperties{ + // LastUpdatedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-01-25T05:13:51.617Z"); return t}()), + // ProvisioningState: to.Ptr(armcontainerregistry.ProvisioningStateSucceeded), + // RunID: to.Ptr("0accec26-d6de-4757-8e74-d080f38eaaab"), + // Status: to.Ptr(armcontainerregistry.RunStatusSucceeded), + // }, + // } +} diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/RegistriesScheduleRun_WithCustomCredentials.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/RegistriesScheduleRun_WithCustomCredentials.json new file mode 100644 index 0000000000..ffd01135ff --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/RegistriesScheduleRun_WithCustomCredentials.json @@ -0,0 +1 @@ +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv3.0.0-beta.1/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/RegistriesScheduleRun_WithLogTemplate.go b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/RegistriesScheduleRun_WithLogTemplate.go new file mode 100644 index 0000000000..70259b75d4 --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/RegistriesScheduleRun_WithLogTemplate.go @@ -0,0 +1,69 @@ +package armcontainerregistry_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v3" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/523ccabf440d8cf1c5b0ea18a8ad1ffedf4902ac/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples/RegistriesScheduleRun_WithLogTemplate.json +func ExampleRegistriesClient_ScheduleRun_registriesScheduleRunWithLogTemplate() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + clientFactory, err := armcontainerregistry.NewClientFactory("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := clientFactory.NewRegistriesClient().ScheduleRun(ctx, "myResourceGroup", "myRegistry", &armcontainerregistry.DockerBuildRequest{ + Type: to.Ptr("DockerBuildRequest"), + IsArchiveEnabled: to.Ptr(true), + LogTemplate: to.Ptr("acr/tasks:{{.Run.OS}}"), + AgentConfiguration: &armcontainerregistry.AgentProperties{ + CPU: to.Ptr[int32](2), + }, + Arguments: []*armcontainerregistry.Argument{ + { + Name: to.Ptr("mytestargument"), + IsSecret: to.Ptr(false), + Value: to.Ptr("mytestvalue"), + }, + { + Name: to.Ptr("mysecrettestargument"), + IsSecret: to.Ptr(true), + Value: to.Ptr("mysecrettestvalue"), + }}, + DockerFilePath: to.Ptr("DockerFile"), + ImageNames: []*string{ + to.Ptr("azurerest:testtag")}, + IsPushEnabled: to.Ptr(true), + NoCache: to.Ptr(true), + Platform: &armcontainerregistry.PlatformProperties{ + Architecture: to.Ptr(armcontainerregistry.ArchitectureAmd64), + OS: to.Ptr(armcontainerregistry.OSLinux), + }, + SourceLocation: to.Ptr("https://myaccount.blob.core.windows.net/sascontainer/source.zip?sv=2015-04-05&st=2015-04-29T22%3A18%3A26Z&se=2015-04-30T02%3A23%3A26Z&sr=b&sp=rw&sip=168.1.5.60-168.1.5.70&spr=https&sig=Z%2FRHIX5Xcg0Mq2rqI3OlWTjEg2tYkboXr1P9ZUXDtkk%3D"), + }, nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.Run = armcontainerregistry.Run{ + // Name: to.Ptr("0accec26-d6de-4757-8e74-d080f38eaaab"), + // Type: to.Ptr("Microsoft.ContainerRegistry/registries/run"), + // ID: to.Ptr("/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/runs/0accec26-d6de-4757-8e74-d080f38eaaab"), + // Properties: &armcontainerregistry.RunProperties{ + // LastUpdatedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-01-25T05:13:51.617Z"); return t}()), + // ProvisioningState: to.Ptr(armcontainerregistry.ProvisioningStateSucceeded), + // RunID: to.Ptr("0accec26-d6de-4757-8e74-d080f38eaaab"), + // Status: to.Ptr(armcontainerregistry.RunStatusSucceeded), + // }, + // } +} diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/RegistriesScheduleRun_WithLogTemplate.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/RegistriesScheduleRun_WithLogTemplate.json new file mode 100644 index 0000000000..ffd01135ff --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/RegistriesScheduleRun_WithLogTemplate.json @@ -0,0 +1 @@ +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv3.0.0-beta.1/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/RunsCancel.go b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/RunsCancel.go new file mode 100644 index 0000000000..c441c3958b --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/RunsCancel.go @@ -0,0 +1,26 @@ +package armcontainerregistry_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v3" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/523ccabf440d8cf1c5b0ea18a8ad1ffedf4902ac/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples/RunsCancel.json +func ExampleRunsClient_Cancel() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + clientFactory, err := armcontainerregistry.NewClientFactory("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + _, err = clientFactory.NewRunsClient().Cancel(ctx, "myResourceGroup", "myRegistry", "0accec26-d6de-4757-8e74-d080f38eaaab", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } +} diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/RunsCancel.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/RunsCancel.json new file mode 100644 index 0000000000..ffd01135ff --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/RunsCancel.json @@ -0,0 +1 @@ +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv3.0.0-beta.1/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/RunsGet.go b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/RunsGet.go new file mode 100644 index 0000000000..c827e5180d --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/RunsGet.go @@ -0,0 +1,77 @@ +package armcontainerregistry_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v3" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/523ccabf440d8cf1c5b0ea18a8ad1ffedf4902ac/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples/RunsGet.json +func ExampleRunsClient_Get() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + clientFactory, err := armcontainerregistry.NewClientFactory("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := clientFactory.NewRunsClient().Get(ctx, "myResourceGroup", "myRegistry", "0accec26-d6de-4757-8e74-d080f38eaaab", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.Run = armcontainerregistry.Run{ + // Name: to.Ptr("0accec26-d6de-4757-8e74-d080f38eaaab"), + // Type: to.Ptr("Microsoft.ContainerRegistry/registries/runs"), + // ID: to.Ptr("/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/runs/0accec26-d6de-4757-8e74-d080f38eaaab"), + // Properties: &armcontainerregistry.RunProperties{ + // AgentConfiguration: &armcontainerregistry.AgentProperties{ + // CPU: to.Ptr[int32](2), + // }, + // CreateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-01-25T05:13:51.618Z"); return t}()), + // FinishTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-01-25T06:13:51.618Z"); return t}()), + // ImageUpdateTrigger: &armcontainerregistry.ImageUpdateTrigger{ + // ID: to.Ptr("c0c43143-da5d-41ef-b9e1-e7d749272e88"), + // Images: []*armcontainerregistry.ImageDescriptor{ + // { + // Digest: to.Ptr("sha256:cbbf2f9a99b47fc460d422812b6a5adff7dfee951d8fa2e4a98caa0"), + // Registry: to.Ptr("registry.hub.docker.com"), + // Repository: to.Ptr("mybaseimage"), + // Tag: to.Ptr("latest"), + // }}, + // Timestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-01-25T05:13:51.618Z"); return t}()), + // }, + // IsArchiveEnabled: to.Ptr(true), + // LastUpdatedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-01-25T05:13:51.617Z"); return t}()), + // LogArtifact: &armcontainerregistry.ImageDescriptor{ + // Digest: to.Ptr("sha256:cbbf2f9a99b47fc460d422812b6a5adff7dfee951d8fa2e4a98caa0"), + // Registry: to.Ptr("myregistry"), + // Repository: to.Ptr("acr/tasks"), + // Tag: to.Ptr("mytask-0accec26-d6de-4757-8e74-d080f38eaaab-log"), + // }, + // OutputImages: []*armcontainerregistry.ImageDescriptor{ + // { + // Digest: to.Ptr("sha256:cbbf2f9a99b47fc460d422812b6a5adff7dfee951d8fa2e4a98caa0"), + // Registry: to.Ptr("myregistry.azurecr.io"), + // Repository: to.Ptr("myimage"), + // Tag: to.Ptr("latest"), + // }}, + // Platform: &armcontainerregistry.PlatformProperties{ + // Architecture: to.Ptr(armcontainerregistry.ArchitectureAmd64), + // OS: to.Ptr(armcontainerregistry.OSLinux), + // }, + // ProvisioningState: to.Ptr(armcontainerregistry.ProvisioningStateSucceeded), + // RunID: to.Ptr("0accec26-d6de-4757-8e74-d080f38eaaab"), + // RunType: to.Ptr(armcontainerregistry.RunTypeAutoBuild), + // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-01-25T05:50:51.618Z"); return t}()), + // Status: to.Ptr(armcontainerregistry.RunStatusSucceeded), + // Task: to.Ptr("myTask"), + // }, + // } +} diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/RunsGet.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/RunsGet.json new file mode 100644 index 0000000000..ffd01135ff --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/RunsGet.json @@ -0,0 +1 @@ +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv3.0.0-beta.1/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/RunsGetLogSasUrl.go b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/RunsGetLogSasUrl.go new file mode 100644 index 0000000000..f038ee8dba --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/RunsGetLogSasUrl.go @@ -0,0 +1,32 @@ +package armcontainerregistry_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v3" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/523ccabf440d8cf1c5b0ea18a8ad1ffedf4902ac/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples/RunsGetLogSasUrl.json +func ExampleRunsClient_GetLogSasURL() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + clientFactory, err := armcontainerregistry.NewClientFactory("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := clientFactory.NewRunsClient().GetLogSasURL(ctx, "myResourceGroup", "myRegistry", "0accec26-d6de-4757-8e74-d080f38eaaab", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.RunGetLogResult = armcontainerregistry.RunGetLogResult{ + // LogLink: to.Ptr("https://registrystorageaccount.blob.core.windows.net/sascontainer/logs/0accec26-d6de-4757-8e74-d080f38eaaab/rawtext.log?sv=2015-04-05&st=2015-04-29T22%3A18%3A26Z&se=2015-04-30T02%3A23%3A26Z&sr=b&sp=rw&sip=168.1.5.60-168.1.5.70&spr=https&sig=Z%2FRHIX5Xcg0Mq2rqI3OlWTjEg2tYkboXr1P9ZUXDtkk%3D"), + // } +} diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/RunsGetLogSasUrl.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/RunsGetLogSasUrl.json new file mode 100644 index 0000000000..ffd01135ff --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/RunsGetLogSasUrl.json @@ -0,0 +1 @@ +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv3.0.0-beta.1/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/RunsList.go b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/RunsList.go new file mode 100644 index 0000000000..ee4b561c70 --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/RunsList.go @@ -0,0 +1,88 @@ +package armcontainerregistry_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v3" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/523ccabf440d8cf1c5b0ea18a8ad1ffedf4902ac/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples/RunsList.json +func ExampleRunsClient_NewListPager() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + clientFactory, err := armcontainerregistry.NewClientFactory("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + pager := clientFactory.NewRunsClient().NewListPager("myResourceGroup", "myRegistry", &armcontainerregistry.RunsClientListOptions{Filter: to.Ptr(""), + Top: to.Ptr[int32](10), + }) + for pager.More() { + page, err := pager.NextPage(ctx) + if err != nil { + log.Fatalf("failed to advance page: %v", err) + } + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. + _ = v + } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.RunListResult = armcontainerregistry.RunListResult{ + // Value: []*armcontainerregistry.Run{ + // { + // Name: to.Ptr("0accec26-d6de-4757-8e74-d080f38eaaab"), + // Type: to.Ptr("Microsoft.ContainerRegistry/registries/runs"), + // ID: to.Ptr("/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/runs/0accec26-d6de-4757-8e74-d080f38eaaab"), + // Properties: &armcontainerregistry.RunProperties{ + // AgentConfiguration: &armcontainerregistry.AgentProperties{ + // CPU: to.Ptr[int32](2), + // }, + // CreateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-01-25T05:13:51.618Z"); return t}()), + // FinishTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-01-25T06:13:51.618Z"); return t}()), + // ImageUpdateTrigger: &armcontainerregistry.ImageUpdateTrigger{ + // ID: to.Ptr("c0c43143-da5d-41ef-b9e1-e7d749272e88"), + // Images: []*armcontainerregistry.ImageDescriptor{ + // { + // Digest: to.Ptr("sha256:cbbf2f9a99b47fc460d422812b6a5adff7dfee951d8fa2e4a98caa0"), + // Registry: to.Ptr("registry.hub.docker.com"), + // Repository: to.Ptr("mybaseimage"), + // Tag: to.Ptr("latest"), + // }}, + // Timestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-01-25T05:13:51.618Z"); return t}()), + // }, + // IsArchiveEnabled: to.Ptr(true), + // LastUpdatedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-01-25T05:13:51.617Z"); return t}()), + // LogArtifact: &armcontainerregistry.ImageDescriptor{ + // Digest: to.Ptr("sha256:cbbf2f9a99b47fc460d422812b6a5adff7dfee951d8fa2e4a98caa0"), + // Registry: to.Ptr("myregistry"), + // Repository: to.Ptr("acr/tasks"), + // Tag: to.Ptr("mytask-0accec26-d6de-4757-8e74-d080f38eaaab-log"), + // }, + // OutputImages: []*armcontainerregistry.ImageDescriptor{ + // { + // Digest: to.Ptr("sha256:cbbf2f9a99b47fc460d422812b6a5adff7dfee951d8fa2e4a98caa0"), + // Registry: to.Ptr("myregistry.azurecr.io"), + // Repository: to.Ptr("myimage"), + // Tag: to.Ptr("latest"), + // }}, + // Platform: &armcontainerregistry.PlatformProperties{ + // Architecture: to.Ptr(armcontainerregistry.ArchitectureAmd64), + // OS: to.Ptr(armcontainerregistry.OSLinux), + // }, + // ProvisioningState: to.Ptr(armcontainerregistry.ProvisioningStateSucceeded), + // RunID: to.Ptr("0accec26-d6de-4757-8e74-d080f38eaaab"), + // RunType: to.Ptr(armcontainerregistry.RunTypeAutoBuild), + // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-01-25T05:50:51.618Z"); return t}()), + // Status: to.Ptr(armcontainerregistry.RunStatusSucceeded), + // Task: to.Ptr("myTask"), + // }, + // }}, + // } + } +} diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/RunsList.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/RunsList.json new file mode 100644 index 0000000000..ffd01135ff --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/RunsList.json @@ -0,0 +1 @@ +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv3.0.0-beta.1/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/RunsUpdate.go b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/RunsUpdate.go new file mode 100644 index 0000000000..4c5f0fa53d --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/RunsUpdate.go @@ -0,0 +1,80 @@ +package armcontainerregistry_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v3" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/523ccabf440d8cf1c5b0ea18a8ad1ffedf4902ac/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples/RunsUpdate.json +func ExampleRunsClient_Update() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + clientFactory, err := armcontainerregistry.NewClientFactory("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := clientFactory.NewRunsClient().Update(ctx, "myResourceGroup", "myRegistry", "0accec26-d6de-4757-8e74-d080f38eaaab", armcontainerregistry.RunUpdateParameters{ + IsArchiveEnabled: to.Ptr(true), + }, nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.Run = armcontainerregistry.Run{ + // Name: to.Ptr("0accec26-d6de-4757-8e74-d080f38eaaab"), + // Type: to.Ptr("Microsoft.ContainerRegistry/registries/runs"), + // ID: to.Ptr("/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/runs/0accec26-d6de-4757-8e74-d080f38eaaab"), + // Properties: &armcontainerregistry.RunProperties{ + // AgentConfiguration: &armcontainerregistry.AgentProperties{ + // CPU: to.Ptr[int32](2), + // }, + // CreateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-01-25T05:13:51.618Z"); return t}()), + // FinishTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-01-25T06:13:51.618Z"); return t}()), + // ImageUpdateTrigger: &armcontainerregistry.ImageUpdateTrigger{ + // ID: to.Ptr("c0c43143-da5d-41ef-b9e1-e7d749272e88"), + // Images: []*armcontainerregistry.ImageDescriptor{ + // { + // Digest: to.Ptr("sha256:cbbf2f9a99b47fc460d422812b6a5adff7dfee951d8fa2e4a98caa0"), + // Registry: to.Ptr("registry.hub.docker.com"), + // Repository: to.Ptr("mybaseimage"), + // Tag: to.Ptr("latest"), + // }}, + // Timestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-01-25T05:13:51.618Z"); return t}()), + // }, + // IsArchiveEnabled: to.Ptr(true), + // LastUpdatedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-01-25T05:13:51.617Z"); return t}()), + // LogArtifact: &armcontainerregistry.ImageDescriptor{ + // Digest: to.Ptr("sha256:cbbf2f9a99b47fc460d422812b6a5adff7dfee951d8fa2e4a98caa0"), + // Registry: to.Ptr("myregistry"), + // Repository: to.Ptr("acr/tasks"), + // Tag: to.Ptr("mytask-0accec26-d6de-4757-8e74-d080f38eaaab-log"), + // }, + // OutputImages: []*armcontainerregistry.ImageDescriptor{ + // { + // Digest: to.Ptr("sha256:cbbf2f9a99b47fc460d422812b6a5adff7dfee951d8fa2e4a98caa0"), + // Registry: to.Ptr("myregistry.azurecr.io"), + // Repository: to.Ptr("myimage"), + // Tag: to.Ptr("latest"), + // }}, + // Platform: &armcontainerregistry.PlatformProperties{ + // Architecture: to.Ptr(armcontainerregistry.ArchitectureAmd64), + // OS: to.Ptr(armcontainerregistry.OSLinux), + // }, + // ProvisioningState: to.Ptr(armcontainerregistry.ProvisioningStateSucceeded), + // RunID: to.Ptr("0accec26-d6de-4757-8e74-d080f38eaaab"), + // RunType: to.Ptr(armcontainerregistry.RunTypeAutoBuild), + // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-01-25T05:50:51.618Z"); return t}()), + // Status: to.Ptr(armcontainerregistry.RunStatusSucceeded), + // Task: to.Ptr("myTask"), + // }, + // } +} diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/RunsUpdate.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/RunsUpdate.json new file mode 100644 index 0000000000..ffd01135ff --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/RunsUpdate.json @@ -0,0 +1 @@ +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv3.0.0-beta.1/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/TaskRunsCreate.go b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/TaskRunsCreate.go new file mode 100644 index 0000000000..86f4d8162e --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/TaskRunsCreate.go @@ -0,0 +1,92 @@ +package armcontainerregistry_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v3" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/523ccabf440d8cf1c5b0ea18a8ad1ffedf4902ac/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples/TaskRunsCreate.json +func ExampleTaskRunsClient_BeginCreate() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + clientFactory, err := armcontainerregistry.NewClientFactory("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := clientFactory.NewTaskRunsClient().BeginCreate(ctx, "myResourceGroup", "myRegistry", "myRun", armcontainerregistry.TaskRun{ + Properties: &armcontainerregistry.TaskRunProperties{ + ForceUpdateTag: to.Ptr("test"), + RunRequest: &armcontainerregistry.EncodedTaskRunRequest{ + Type: to.Ptr("EncodedTaskRunRequest"), + Credentials: &armcontainerregistry.Credentials{}, + EncodedTaskContent: to.Ptr("c3RlcHM6IAogIC0gY21kOiB7eyAuVmFsdWVzLmNvbW1hbmQgfX0K"), + EncodedValuesContent: to.Ptr("Y29tbWFuZDogYmFzaCBlY2hvIHt7LlJ1bi5SZWdpc3RyeX19Cg=="), + Platform: &armcontainerregistry.PlatformProperties{ + Architecture: to.Ptr(armcontainerregistry.ArchitectureAmd64), + OS: to.Ptr(armcontainerregistry.OSLinux), + }, + Values: []*armcontainerregistry.SetValue{}, + }, + }, + }, nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + res, err := poller.PollUntilDone(ctx, nil) + if err != nil { + log.Fatalf("failed to pull the result: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.TaskRun = armcontainerregistry.TaskRun{ + // Name: to.Ptr("myrun"), + // Type: to.Ptr("Microsoft.ContainerRegistry/registries/TaskRuns"), + // ID: to.Ptr("/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/taskRuns/myRun"), + // Properties: &armcontainerregistry.TaskRunProperties{ + // ProvisioningState: to.Ptr(armcontainerregistry.ProvisioningStateSucceeded), + // RunRequest: &armcontainerregistry.EncodedTaskRunRequest{ + // Type: to.Ptr("EncodedTaskRunRequest"), + // IsArchiveEnabled: to.Ptr(true), + // Credentials: &armcontainerregistry.Credentials{ + // }, + // EncodedTaskContent: to.Ptr("c3RlcHM6IAogIC0gY21kOiB7eyAuVmFsdWVzLmNvbW1hbmQgfX0K"), + // EncodedValuesContent: to.Ptr("Y29tbWFuZDogYmFzaCBlY2hvIHt7LlJ1bi5SZWdpc3RyeX19Cg=="), + // Platform: &armcontainerregistry.PlatformProperties{ + // Architecture: to.Ptr(armcontainerregistry.ArchitectureAmd64), + // OS: to.Ptr(armcontainerregistry.OSLinux), + // }, + // Values: []*armcontainerregistry.SetValue{ + // }, + // }, + // RunResult: &armcontainerregistry.Run{ + // Name: to.Ptr("yd5"), + // Type: to.Ptr("Microsoft.ContainerRegistry/registries/runs"), + // ID: to.Ptr("/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/runs/yd5"), + // Properties: &armcontainerregistry.RunProperties{ + // AgentConfiguration: &armcontainerregistry.AgentProperties{ + // CPU: to.Ptr[int32](2), + // }, + // CreateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-09-06T17:23:21.926Z"); return t}()), + // IsArchiveEnabled: to.Ptr(true), + // LastUpdatedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-09-06T17:23:21.000Z"); return t}()), + // Platform: &armcontainerregistry.PlatformProperties{ + // Architecture: to.Ptr(armcontainerregistry.ArchitectureAmd64), + // OS: to.Ptr(armcontainerregistry.OSLinux), + // }, + // ProvisioningState: to.Ptr(armcontainerregistry.ProvisioningStateSucceeded), + // RunID: to.Ptr("yd5"), + // RunType: to.Ptr(armcontainerregistry.RunTypeQuickRun), + // Status: to.Ptr(armcontainerregistry.RunStatusQueued), + // }, + // }, + // }, + // } +} diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/TaskRunsCreate.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/TaskRunsCreate.json new file mode 100644 index 0000000000..ffd01135ff --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/TaskRunsCreate.json @@ -0,0 +1 @@ +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv3.0.0-beta.1/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/TaskRunsDelete.go b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/TaskRunsDelete.go new file mode 100644 index 0000000000..4603ae1011 --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/TaskRunsDelete.go @@ -0,0 +1,26 @@ +package armcontainerregistry_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v3" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/523ccabf440d8cf1c5b0ea18a8ad1ffedf4902ac/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples/TaskRunsDelete.json +func ExampleTaskRunsClient_Delete() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + clientFactory, err := armcontainerregistry.NewClientFactory("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + _, err = clientFactory.NewTaskRunsClient().Delete(ctx, "myResourceGroup", "myRegistry", "myRun", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } +} diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/TaskRunsDelete.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/TaskRunsDelete.json new file mode 100644 index 0000000000..ffd01135ff --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/TaskRunsDelete.json @@ -0,0 +1 @@ +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv3.0.0-beta.1/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/TaskRunsGet.go b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/TaskRunsGet.go new file mode 100644 index 0000000000..0d40e3364e --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/TaskRunsGet.go @@ -0,0 +1,74 @@ +package armcontainerregistry_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v3" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/523ccabf440d8cf1c5b0ea18a8ad1ffedf4902ac/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples/TaskRunsGet.json +func ExampleTaskRunsClient_Get() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + clientFactory, err := armcontainerregistry.NewClientFactory("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := clientFactory.NewTaskRunsClient().Get(ctx, "myResourceGroup", "myRegistry", "myRun", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.TaskRun = armcontainerregistry.TaskRun{ + // Name: to.Ptr("myRun"), + // Type: to.Ptr("Microsoft.ContainerRegistry/registries/TaskRuns"), + // ID: to.Ptr("/subscriptions/3647315e-0c5b-4ce4-8739-b071e144b2c9/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/taskRuns/myRun"), + // Properties: &armcontainerregistry.TaskRunProperties{ + // ProvisioningState: to.Ptr(armcontainerregistry.ProvisioningStateSucceeded), + // RunRequest: &armcontainerregistry.EncodedTaskRunRequest{ + // Type: to.Ptr("EncodedTaskRunRequest"), + // IsArchiveEnabled: to.Ptr(true), + // Credentials: &armcontainerregistry.Credentials{ + // }, + // EncodedTaskContent: to.Ptr("c3RlcHM6IAogIC0gY21kOiB7eyAuVmFsdWVzLmNvbW1hbmQgfX0K"), + // EncodedValuesContent: to.Ptr("Y29tbWFuZDogYmFzaCBlY2hvIHt7LlJ1bi5SZWdpc3RyeX19Cg=="), + // Platform: &armcontainerregistry.PlatformProperties{ + // Architecture: to.Ptr(armcontainerregistry.ArchitectureAmd64), + // OS: to.Ptr(armcontainerregistry.OSLinux), + // }, + // Values: []*armcontainerregistry.SetValue{ + // }, + // }, + // RunResult: &armcontainerregistry.Run{ + // Name: to.Ptr("yd5"), + // Type: to.Ptr("Microsoft.ContainerRegistry/registries/runs"), + // ID: to.Ptr("/subscriptions/3647315e-0c5b-4ce4-8739-b071e144b2c9/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/runs/yd5"), + // Properties: &armcontainerregistry.RunProperties{ + // AgentConfiguration: &armcontainerregistry.AgentProperties{ + // CPU: to.Ptr[int32](2), + // }, + // CreateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-09-06T17:23:21.926Z"); return t}()), + // FinishTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-09-06T17:23:29.879Z"); return t}()), + // IsArchiveEnabled: to.Ptr(true), + // LastUpdatedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-09-06T17:23:29.000Z"); return t}()), + // Platform: &armcontainerregistry.PlatformProperties{ + // Architecture: to.Ptr(armcontainerregistry.ArchitectureAmd64), + // OS: to.Ptr(armcontainerregistry.OSLinux), + // }, + // ProvisioningState: to.Ptr(armcontainerregistry.ProvisioningStateSucceeded), + // RunID: to.Ptr("yd5"), + // RunType: to.Ptr(armcontainerregistry.RunTypeQuickRun), + // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-09-06T17:23:22.134Z"); return t}()), + // Status: to.Ptr(armcontainerregistry.RunStatusSucceeded), + // }, + // }, + // }, + // } +} diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/TaskRunsGet.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/TaskRunsGet.json new file mode 100644 index 0000000000..ffd01135ff --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/TaskRunsGet.json @@ -0,0 +1 @@ +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv3.0.0-beta.1/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/TaskRunsGetDetails.go b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/TaskRunsGetDetails.go new file mode 100644 index 0000000000..e0ef35c748 --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/TaskRunsGetDetails.go @@ -0,0 +1,74 @@ +package armcontainerregistry_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v3" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/523ccabf440d8cf1c5b0ea18a8ad1ffedf4902ac/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples/TaskRunsGetDetails.json +func ExampleTaskRunsClient_GetDetails() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + clientFactory, err := armcontainerregistry.NewClientFactory("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := clientFactory.NewTaskRunsClient().GetDetails(ctx, "myResourceGroup", "myRegistry", "myRun", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.TaskRun = armcontainerregistry.TaskRun{ + // Name: to.Ptr("myRun"), + // Type: to.Ptr("Microsoft.ContainerRegistry/registries/TaskRuns"), + // ID: to.Ptr("/subscriptions/3647315e-0c5b-4ce4-8739-b071e144b2c9/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/taskRuns/myRun"), + // Properties: &armcontainerregistry.TaskRunProperties{ + // ProvisioningState: to.Ptr(armcontainerregistry.ProvisioningStateSucceeded), + // RunRequest: &armcontainerregistry.EncodedTaskRunRequest{ + // Type: to.Ptr("EncodedTaskRunRequest"), + // IsArchiveEnabled: to.Ptr(true), + // Credentials: &armcontainerregistry.Credentials{ + // }, + // EncodedTaskContent: to.Ptr("c3RlcHM6IAogIC0gY21kOiB7eyAuVmFsdWVzLmNvbW1hbmQgfX0K"), + // EncodedValuesContent: to.Ptr("Y29tbWFuZDogYmFzaCBlY2hvIHt7LlJ1bi5SZWdpc3RyeX19Cg=="), + // Platform: &armcontainerregistry.PlatformProperties{ + // Architecture: to.Ptr(armcontainerregistry.ArchitectureAmd64), + // OS: to.Ptr(armcontainerregistry.OSLinux), + // }, + // Values: []*armcontainerregistry.SetValue{ + // }, + // }, + // RunResult: &armcontainerregistry.Run{ + // Name: to.Ptr("yd5"), + // Type: to.Ptr("Microsoft.ContainerRegistry/registries/runs"), + // ID: to.Ptr("/subscriptions/3647315e-0c5b-4ce4-8739-b071e144b2c9/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/runs/yd5"), + // Properties: &armcontainerregistry.RunProperties{ + // AgentConfiguration: &armcontainerregistry.AgentProperties{ + // CPU: to.Ptr[int32](2), + // }, + // CreateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-09-06T17:23:21.926Z"); return t}()), + // FinishTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-09-06T17:23:29.879Z"); return t}()), + // IsArchiveEnabled: to.Ptr(true), + // LastUpdatedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-09-06T17:23:29.000Z"); return t}()), + // Platform: &armcontainerregistry.PlatformProperties{ + // Architecture: to.Ptr(armcontainerregistry.ArchitectureAmd64), + // OS: to.Ptr(armcontainerregistry.OSLinux), + // }, + // ProvisioningState: to.Ptr(armcontainerregistry.ProvisioningStateSucceeded), + // RunID: to.Ptr("yd5"), + // RunType: to.Ptr(armcontainerregistry.RunTypeQuickRun), + // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-09-06T17:23:22.134Z"); return t}()), + // Status: to.Ptr(armcontainerregistry.RunStatusSucceeded), + // }, + // }, + // }, + // } +} diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/TaskRunsGetDetails.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/TaskRunsGetDetails.json new file mode 100644 index 0000000000..ffd01135ff --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/TaskRunsGetDetails.json @@ -0,0 +1 @@ +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv3.0.0-beta.1/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/TaskRunsList.go b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/TaskRunsList.go new file mode 100644 index 0000000000..253926a9e2 --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/TaskRunsList.go @@ -0,0 +1,82 @@ +package armcontainerregistry_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v3" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/523ccabf440d8cf1c5b0ea18a8ad1ffedf4902ac/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples/TaskRunsList.json +func ExampleTaskRunsClient_NewListPager() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + clientFactory, err := armcontainerregistry.NewClientFactory("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + pager := clientFactory.NewTaskRunsClient().NewListPager("myResourceGroup", "myRegistry", nil) + for pager.More() { + page, err := pager.NextPage(ctx) + if err != nil { + log.Fatalf("failed to advance page: %v", err) + } + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. + _ = v + } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.TaskRunListResult = armcontainerregistry.TaskRunListResult{ + // Value: []*armcontainerregistry.TaskRun{ + // { + // Name: to.Ptr("mytestrun"), + // Type: to.Ptr("Microsoft.ContainerRegistry/registries/TaskRuns"), + // ID: to.Ptr("/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/taskRuns/myRun"), + // Properties: &armcontainerregistry.TaskRunProperties{ + // ProvisioningState: to.Ptr(armcontainerregistry.ProvisioningStateSucceeded), + // RunRequest: &armcontainerregistry.EncodedTaskRunRequest{ + // Type: to.Ptr("EncodedTaskRunRequest"), + // IsArchiveEnabled: to.Ptr(true), + // Credentials: &armcontainerregistry.Credentials{ + // }, + // EncodedTaskContent: to.Ptr("c3RlcHM6IAogIC0gY21kOiB7eyAuVmFsdWVzLmNvbW1hbmQgfX0K"), + // EncodedValuesContent: to.Ptr("Y29tbWFuZDogYmFzaCBlY2hvIHt7LlJ1bi5SZWdpc3RyeX19Cg=="), + // Platform: &armcontainerregistry.PlatformProperties{ + // Architecture: to.Ptr(armcontainerregistry.ArchitectureAmd64), + // OS: to.Ptr(armcontainerregistry.OSLinux), + // }, + // Values: []*armcontainerregistry.SetValue{ + // }, + // }, + // RunResult: &armcontainerregistry.Run{ + // Name: to.Ptr("yd4"), + // Type: to.Ptr("Microsoft.ContainerRegistry/registries/runs"), + // ID: to.Ptr("/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/runs/yd4"), + // Properties: &armcontainerregistry.RunProperties{ + // AgentConfiguration: &armcontainerregistry.AgentProperties{ + // CPU: to.Ptr[int32](2), + // }, + // CreateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-09-04T17:15:29.227Z"); return t}()), + // FinishTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-09-04T17:15:37.034Z"); return t}()), + // IsArchiveEnabled: to.Ptr(true), + // LastUpdatedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-09-04T17:15:37.000Z"); return t}()), + // Platform: &armcontainerregistry.PlatformProperties{ + // Architecture: to.Ptr(armcontainerregistry.ArchitectureAmd64), + // OS: to.Ptr(armcontainerregistry.OSLinux), + // }, + // ProvisioningState: to.Ptr(armcontainerregistry.ProvisioningStateSucceeded), + // RunID: to.Ptr("yd4"), + // RunType: to.Ptr(armcontainerregistry.RunTypeQuickRun), + // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-09-04T17:15:29.458Z"); return t}()), + // Status: to.Ptr(armcontainerregistry.RunStatusSucceeded), + // }, + // }, + // }, + // }}, + // } + } +} diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/TaskRunsList.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/TaskRunsList.json new file mode 100644 index 0000000000..ffd01135ff --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/TaskRunsList.json @@ -0,0 +1 @@ +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv3.0.0-beta.1/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/TaskRunsUpdate.go b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/TaskRunsUpdate.go new file mode 100644 index 0000000000..9003545104 --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/TaskRunsUpdate.go @@ -0,0 +1,93 @@ +package armcontainerregistry_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v3" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/523ccabf440d8cf1c5b0ea18a8ad1ffedf4902ac/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples/TaskRunsUpdate.json +func ExampleTaskRunsClient_BeginUpdate() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + clientFactory, err := armcontainerregistry.NewClientFactory("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := clientFactory.NewTaskRunsClient().BeginUpdate(ctx, "myResourceGroup", "myRegistry", "myRun", armcontainerregistry.TaskRunUpdateParameters{ + Properties: &armcontainerregistry.TaskRunPropertiesUpdateParameters{ + ForceUpdateTag: to.Ptr("test"), + RunRequest: &armcontainerregistry.EncodedTaskRunRequest{ + Type: to.Ptr("EncodedTaskRunRequest"), + IsArchiveEnabled: to.Ptr(true), + Credentials: &armcontainerregistry.Credentials{}, + EncodedTaskContent: to.Ptr("c3RlcHM6IAogIC0gY21kOiB7eyAuVmFsdWVzLmNvbW1hbmQgfX0K"), + EncodedValuesContent: to.Ptr("Y29tbWFuZDogYmFzaCBlY2hvIHt7LlJ1bi5SZWdpc3RyeX19Cg=="), + Platform: &armcontainerregistry.PlatformProperties{ + Architecture: to.Ptr(armcontainerregistry.ArchitectureAmd64), + OS: to.Ptr(armcontainerregistry.OSLinux), + }, + Values: []*armcontainerregistry.SetValue{}, + }, + }, + }, nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + res, err := poller.PollUntilDone(ctx, nil) + if err != nil { + log.Fatalf("failed to pull the result: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.TaskRun = armcontainerregistry.TaskRun{ + // Name: to.Ptr("mytestrun"), + // Type: to.Ptr("Microsoft.ContainerRegistry/registries/TaskRuns"), + // ID: to.Ptr("/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/taskRuns/myRun"), + // Properties: &armcontainerregistry.TaskRunProperties{ + // ProvisioningState: to.Ptr(armcontainerregistry.ProvisioningStateSucceeded), + // RunRequest: &armcontainerregistry.EncodedTaskRunRequest{ + // Type: to.Ptr("EncodedTaskRunRequest"), + // IsArchiveEnabled: to.Ptr(true), + // Credentials: &armcontainerregistry.Credentials{ + // }, + // EncodedTaskContent: to.Ptr("c3RlcHM6IAogIC0gY21kOiB7eyAuVmFsdWVzLmNvbW1hbmQgfX0K"), + // EncodedValuesContent: to.Ptr("Y29tbWFuZDogYmFzaCBlY2hvIHt7LlJ1bi5SZWdpc3RyeX19Cg=="), + // Platform: &armcontainerregistry.PlatformProperties{ + // Architecture: to.Ptr(armcontainerregistry.ArchitectureAmd64), + // OS: to.Ptr(armcontainerregistry.OSLinux), + // }, + // Values: []*armcontainerregistry.SetValue{ + // }, + // }, + // RunResult: &armcontainerregistry.Run{ + // Name: to.Ptr("yd6"), + // Type: to.Ptr("Microsoft.ContainerRegistry/registries/runs"), + // ID: to.Ptr("/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/runs/yd6"), + // Properties: &armcontainerregistry.RunProperties{ + // AgentConfiguration: &armcontainerregistry.AgentProperties{ + // CPU: to.Ptr[int32](2), + // }, + // CreateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-09-06T17:31:34.118Z"); return t}()), + // IsArchiveEnabled: to.Ptr(true), + // LastUpdatedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-09-06T17:31:34.000Z"); return t}()), + // Platform: &armcontainerregistry.PlatformProperties{ + // Architecture: to.Ptr(armcontainerregistry.ArchitectureAmd64), + // OS: to.Ptr(armcontainerregistry.OSLinux), + // }, + // ProvisioningState: to.Ptr(armcontainerregistry.ProvisioningStateSucceeded), + // RunID: to.Ptr("yd6"), + // RunType: to.Ptr(armcontainerregistry.RunTypeQuickRun), + // Status: to.Ptr(armcontainerregistry.RunStatusQueued), + // }, + // }, + // }, + // } +} diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/TaskRunsUpdate.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/TaskRunsUpdate.json new file mode 100644 index 0000000000..ffd01135ff --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/TaskRunsUpdate.json @@ -0,0 +1 @@ +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv3.0.0-beta.1/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/TasksCreate.go b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/TasksCreate.go new file mode 100644 index 0000000000..7540339e75 --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/TasksCreate.go @@ -0,0 +1,167 @@ +package armcontainerregistry_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v3" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/523ccabf440d8cf1c5b0ea18a8ad1ffedf4902ac/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples/TasksCreate.json +func ExampleTasksClient_Create_tasksCreate() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + clientFactory, err := armcontainerregistry.NewClientFactory("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := clientFactory.NewTasksClient().Create(ctx, "myResourceGroup", "myRegistry", "mytTask", armcontainerregistry.Task{ + Location: to.Ptr("eastus"), + Tags: map[string]*string{ + "testkey": to.Ptr("value"), + }, + Identity: &armcontainerregistry.IdentityProperties{ + Type: to.Ptr(armcontainerregistry.ResourceIdentityTypeSystemAssigned), + }, + Properties: &armcontainerregistry.TaskProperties{ + AgentConfiguration: &armcontainerregistry.AgentProperties{ + CPU: to.Ptr[int32](2), + }, + IsSystemTask: to.Ptr(false), + LogTemplate: to.Ptr("acr/tasks:{{.Run.OS}}"), + Platform: &armcontainerregistry.PlatformProperties{ + Architecture: to.Ptr(armcontainerregistry.ArchitectureAmd64), + OS: to.Ptr(armcontainerregistry.OSLinux), + }, + Status: to.Ptr(armcontainerregistry.TaskStatusEnabled), + Step: &armcontainerregistry.DockerBuildStep{ + Type: to.Ptr(armcontainerregistry.StepTypeDocker), + ContextPath: to.Ptr("src"), + Arguments: []*armcontainerregistry.Argument{ + { + Name: to.Ptr("mytestargument"), + IsSecret: to.Ptr(false), + Value: to.Ptr("mytestvalue"), + }, + { + Name: to.Ptr("mysecrettestargument"), + IsSecret: to.Ptr(true), + Value: to.Ptr("mysecrettestvalue"), + }}, + DockerFilePath: to.Ptr("src/DockerFile"), + ImageNames: []*string{ + to.Ptr("azurerest:testtag")}, + IsPushEnabled: to.Ptr(true), + NoCache: to.Ptr(false), + }, + Trigger: &armcontainerregistry.TriggerProperties{ + BaseImageTrigger: &armcontainerregistry.BaseImageTrigger{ + Name: to.Ptr("myBaseImageTrigger"), + BaseImageTriggerType: to.Ptr(armcontainerregistry.BaseImageTriggerTypeRuntime), + UpdateTriggerEndpoint: to.Ptr("https://user:pass@mycicd.webhook.com?token=foo"), + UpdateTriggerPayloadType: to.Ptr(armcontainerregistry.UpdateTriggerPayloadTypeToken), + }, + SourceTriggers: []*armcontainerregistry.SourceTrigger{ + { + Name: to.Ptr("mySourceTrigger"), + SourceRepository: &armcontainerregistry.SourceProperties{ + Branch: to.Ptr("master"), + RepositoryURL: to.Ptr("https://github.com/Azure/azure-rest-api-specs"), + SourceControlAuthProperties: &armcontainerregistry.AuthInfo{ + Token: to.Ptr("xxxxx"), + TokenType: to.Ptr(armcontainerregistry.TokenTypePAT), + }, + SourceControlType: to.Ptr(armcontainerregistry.SourceControlTypeGithub), + }, + SourceTriggerEvents: []*armcontainerregistry.SourceTriggerEvent{ + to.Ptr(armcontainerregistry.SourceTriggerEventCommit)}, + }}, + TimerTriggers: []*armcontainerregistry.TimerTrigger{ + { + Name: to.Ptr("myTimerTrigger"), + Schedule: to.Ptr("30 9 * * 1-5"), + }}, + }, + }, + }, nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.Task = armcontainerregistry.Task{ + // Name: to.Ptr("myTask"), + // Type: to.Ptr("Microsoft.ContainerRegistry/registries/tasks"), + // ID: to.Ptr("/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/tasks/myTask"), + // Location: to.Ptr("eastus"), + // Tags: map[string]*string{ + // "testkey": to.Ptr("value"), + // }, + // Identity: &armcontainerregistry.IdentityProperties{ + // Type: to.Ptr(armcontainerregistry.ResourceIdentityTypeSystemAssigned), + // PrincipalID: to.Ptr("fa153151-b9fd-46f4-9088-5e6600f2689v"), + // TenantID: to.Ptr("f686d426-8d16-42db-81b7-abu4gm510ccd"), + // }, + // Properties: &armcontainerregistry.TaskProperties{ + // AgentConfiguration: &armcontainerregistry.AgentProperties{ + // CPU: to.Ptr[int32](2), + // }, + // CreationDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-01-25T06:54:23.536Z"); return t}()), + // IsSystemTask: to.Ptr(false), + // LogTemplate: to.Ptr("acr/tasks:{{.Run.OS}}"), + // Platform: &armcontainerregistry.PlatformProperties{ + // Architecture: to.Ptr(armcontainerregistry.ArchitectureAmd64), + // OS: to.Ptr(armcontainerregistry.OSLinux), + // }, + // ProvisioningState: to.Ptr(armcontainerregistry.ProvisioningStateSucceeded), + // Status: to.Ptr(armcontainerregistry.TaskStatusEnabled), + // Step: &armcontainerregistry.DockerBuildStep{ + // Type: to.Ptr(armcontainerregistry.StepTypeDocker), + // ContextPath: to.Ptr("src"), + // Arguments: []*armcontainerregistry.Argument{ + // { + // Name: to.Ptr("mytestargument"), + // IsSecret: to.Ptr(false), + // Value: to.Ptr("mytestvalue"), + // }}, + // DockerFilePath: to.Ptr("src/DockerFile"), + // ImageNames: []*string{ + // to.Ptr("azurerest:testtag")}, + // IsPushEnabled: to.Ptr(true), + // NoCache: to.Ptr(false), + // }, + // Trigger: &armcontainerregistry.TriggerProperties{ + // BaseImageTrigger: &armcontainerregistry.BaseImageTrigger{ + // Name: to.Ptr("myBaseImageTrigger"), + // BaseImageTriggerType: to.Ptr(armcontainerregistry.BaseImageTriggerTypeRuntime), + // Status: to.Ptr(armcontainerregistry.TriggerStatusEnabled), + // UpdateTriggerPayloadType: to.Ptr(armcontainerregistry.UpdateTriggerPayloadTypeToken), + // }, + // SourceTriggers: []*armcontainerregistry.SourceTrigger{ + // { + // Name: to.Ptr("mySourceTrigger"), + // SourceRepository: &armcontainerregistry.SourceProperties{ + // Branch: to.Ptr("master"), + // RepositoryURL: to.Ptr("https://github.com/Azure/azure-rest-api-specs"), + // SourceControlType: to.Ptr(armcontainerregistry.SourceControlTypeGithub), + // }, + // SourceTriggerEvents: []*armcontainerregistry.SourceTriggerEvent{ + // to.Ptr(armcontainerregistry.SourceTriggerEventCommit)}, + // Status: to.Ptr(armcontainerregistry.TriggerStatusEnabled), + // }}, + // TimerTriggers: []*armcontainerregistry.TimerTrigger{ + // { + // Name: to.Ptr("myTimerTrigger"), + // Schedule: to.Ptr("30 9 * * 1-5"), + // Status: to.Ptr(armcontainerregistry.TriggerStatusEnabled), + // }}, + // }, + // }, + // } +} diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/TasksCreate.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/TasksCreate.json new file mode 100644 index 0000000000..ffd01135ff --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/TasksCreate.json @@ -0,0 +1 @@ +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv3.0.0-beta.1/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/TasksCreate_QuickTask.go b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/TasksCreate_QuickTask.go new file mode 100644 index 0000000000..be4c024a3b --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/TasksCreate_QuickTask.go @@ -0,0 +1,56 @@ +package armcontainerregistry_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v3" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/523ccabf440d8cf1c5b0ea18a8ad1ffedf4902ac/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples/TasksCreate_QuickTask.json +func ExampleTasksClient_Create_tasksCreateQuickTask() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + clientFactory, err := armcontainerregistry.NewClientFactory("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := clientFactory.NewTasksClient().Create(ctx, "myResourceGroup", "myRegistry", "quicktask", armcontainerregistry.Task{ + Location: to.Ptr("eastus"), + Tags: map[string]*string{ + "testkey": to.Ptr("value"), + }, + Properties: &armcontainerregistry.TaskProperties{ + IsSystemTask: to.Ptr(true), + LogTemplate: to.Ptr("acr/tasks:{{.Run.OS}}"), + Status: to.Ptr(armcontainerregistry.TaskStatusEnabled), + }, + }, nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.Task = armcontainerregistry.Task{ + // Name: to.Ptr("quicktask"), + // Type: to.Ptr("Microsoft.ContainerRegistry/registries/tasks"), + // ID: to.Ptr("/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/tasks/myTask"), + // Location: to.Ptr("eastus"), + // Tags: map[string]*string{ + // "testkey": to.Ptr("value"), + // }, + // Properties: &armcontainerregistry.TaskProperties{ + // CreationDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-01-25T06:54:23.536Z"); return t}()), + // IsSystemTask: to.Ptr(true), + // LogTemplate: to.Ptr("acr/tasks:{{.Run.OS}}"), + // ProvisioningState: to.Ptr(armcontainerregistry.ProvisioningStateSucceeded), + // Status: to.Ptr(armcontainerregistry.TaskStatusEnabled), + // }, + // } +} diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/TasksCreate_QuickTask.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/TasksCreate_QuickTask.json new file mode 100644 index 0000000000..ffd01135ff --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/TasksCreate_QuickTask.json @@ -0,0 +1 @@ +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv3.0.0-beta.1/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/TasksDelete.go b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/TasksDelete.go new file mode 100644 index 0000000000..d30964e559 --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/TasksDelete.go @@ -0,0 +1,26 @@ +package armcontainerregistry_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v3" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/523ccabf440d8cf1c5b0ea18a8ad1ffedf4902ac/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples/TasksDelete.json +func ExampleTasksClient_Delete() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + clientFactory, err := armcontainerregistry.NewClientFactory("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + _, err = clientFactory.NewTasksClient().Delete(ctx, "myResourceGroup", "myRegistry", "myTask", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } +} diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/TasksDelete.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/TasksDelete.json new file mode 100644 index 0000000000..ffd01135ff --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/TasksDelete.json @@ -0,0 +1 @@ +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv3.0.0-beta.1/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/TasksGet.go b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/TasksGet.go new file mode 100644 index 0000000000..a815e113e5 --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/TasksGet.go @@ -0,0 +1,102 @@ +package armcontainerregistry_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v3" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/523ccabf440d8cf1c5b0ea18a8ad1ffedf4902ac/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples/TasksGet.json +func ExampleTasksClient_Get() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + clientFactory, err := armcontainerregistry.NewClientFactory("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := clientFactory.NewTasksClient().Get(ctx, "myResourceGroup", "myRegistry", "myTask", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.Task = armcontainerregistry.Task{ + // Name: to.Ptr("myTask"), + // Type: to.Ptr("Microsoft.ContainerRegistry/registries/tasks"), + // ID: to.Ptr("/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/tasks/myTask"), + // Location: to.Ptr("eastus"), + // Tags: map[string]*string{ + // "testkey": to.Ptr("value"), + // }, + // Identity: &armcontainerregistry.IdentityProperties{ + // Type: to.Ptr(armcontainerregistry.ResourceIdentityTypeSystemAssigned), + // PrincipalID: to.Ptr("fa153151-b9fd-46f4-9088-5e6600f2689v"), + // TenantID: to.Ptr("f686d426-8d16-42db-81b7-abu4gm510ccd"), + // }, + // Properties: &armcontainerregistry.TaskProperties{ + // AgentConfiguration: &armcontainerregistry.AgentProperties{ + // CPU: to.Ptr[int32](2), + // }, + // CreationDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-01-25T06:54:23.536Z"); return t}()), + // Credentials: &armcontainerregistry.Credentials{ + // CustomRegistries: map[string]*armcontainerregistry.CustomRegistryCredentials{ + // "myregistry.azure.io": nil, + // }, + // }, + // IsSystemTask: to.Ptr(false), + // Platform: &armcontainerregistry.PlatformProperties{ + // Architecture: to.Ptr(armcontainerregistry.ArchitectureAmd64), + // OS: to.Ptr(armcontainerregistry.OSLinux), + // }, + // ProvisioningState: to.Ptr(armcontainerregistry.ProvisioningStateSucceeded), + // Status: to.Ptr(armcontainerregistry.TaskStatusEnabled), + // Step: &armcontainerregistry.DockerBuildStep{ + // Type: to.Ptr(armcontainerregistry.StepTypeDocker), + // ContextPath: to.Ptr("src"), + // Arguments: []*armcontainerregistry.Argument{ + // { + // Name: to.Ptr("mytestargument"), + // IsSecret: to.Ptr(false), + // Value: to.Ptr("mytestvalue"), + // }}, + // DockerFilePath: to.Ptr("src/DockerFile"), + // ImageNames: []*string{ + // to.Ptr("azurerest:testtag")}, + // IsPushEnabled: to.Ptr(true), + // NoCache: to.Ptr(false), + // }, + // Trigger: &armcontainerregistry.TriggerProperties{ + // BaseImageTrigger: &armcontainerregistry.BaseImageTrigger{ + // Name: to.Ptr("myBaseImageTrigger"), + // BaseImageTriggerType: to.Ptr(armcontainerregistry.BaseImageTriggerTypeRuntime), + // Status: to.Ptr(armcontainerregistry.TriggerStatusEnabled), + // UpdateTriggerPayloadType: to.Ptr(armcontainerregistry.UpdateTriggerPayloadTypeToken), + // }, + // SourceTriggers: []*armcontainerregistry.SourceTrigger{ + // { + // Name: to.Ptr("mySourceTrigger"), + // SourceRepository: &armcontainerregistry.SourceProperties{ + // Branch: to.Ptr("master"), + // RepositoryURL: to.Ptr("https://github.com/Azure/azure-rest-api-specs"), + // SourceControlType: to.Ptr(armcontainerregistry.SourceControlTypeGithub), + // }, + // SourceTriggerEvents: []*armcontainerregistry.SourceTriggerEvent{ + // to.Ptr(armcontainerregistry.SourceTriggerEventCommit)}, + // Status: to.Ptr(armcontainerregistry.TriggerStatusEnabled), + // }}, + // TimerTriggers: []*armcontainerregistry.TimerTrigger{ + // { + // Name: to.Ptr("myTimerTrigger"), + // Schedule: to.Ptr("30 9 * * 1-5"), + // Status: to.Ptr(armcontainerregistry.TriggerStatusEnabled), + // }}, + // }, + // }, + // } +} diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/TasksGet.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/TasksGet.json new file mode 100644 index 0000000000..ffd01135ff --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/TasksGet.json @@ -0,0 +1 @@ +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv3.0.0-beta.1/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/TasksGetDetails.go b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/TasksGetDetails.go new file mode 100644 index 0000000000..b020cec68c --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/TasksGetDetails.go @@ -0,0 +1,117 @@ +package armcontainerregistry_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v3" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/523ccabf440d8cf1c5b0ea18a8ad1ffedf4902ac/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples/TasksGetDetails.json +func ExampleTasksClient_GetDetails() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + clientFactory, err := armcontainerregistry.NewClientFactory("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := clientFactory.NewTasksClient().GetDetails(ctx, "myResourceGroup", "myRegistry", "myTask", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.Task = armcontainerregistry.Task{ + // Location: to.Ptr("eastus"), + // Tags: map[string]*string{ + // "testkey": to.Ptr("value"), + // }, + // Identity: &armcontainerregistry.IdentityProperties{ + // Type: to.Ptr(armcontainerregistry.ResourceIdentityTypeSystemAssigned), + // PrincipalID: to.Ptr("fa153151-b9fd-46f4-9088-5e6600f2689v"), + // TenantID: to.Ptr("f686d426-8d16-42db-81b7-abu4gm510ccd"), + // }, + // Properties: &armcontainerregistry.TaskProperties{ + // AgentConfiguration: &armcontainerregistry.AgentProperties{ + // CPU: to.Ptr[int32](2), + // }, + // Credentials: &armcontainerregistry.Credentials{ + // CustomRegistries: map[string]*armcontainerregistry.CustomRegistryCredentials{ + // "myregistry.azure-test.io": &armcontainerregistry.CustomRegistryCredentials{ + // Identity: to.Ptr("[system]"), + // Password: &armcontainerregistry.SecretObject{ + // Type: to.Ptr(armcontainerregistry.SecretObjectTypeVaultsecret), + // Value: to.Ptr("https://myacbvault.vault.azure.net/secrets/username"), + // }, + // UserName: &armcontainerregistry.SecretObject{ + // Type: to.Ptr(armcontainerregistry.SecretObjectTypeOpaque), + // Value: to.Ptr("username"), + // }, + // }, + // }, + // }, + // IsSystemTask: to.Ptr(false), + // Platform: &armcontainerregistry.PlatformProperties{ + // Architecture: to.Ptr(armcontainerregistry.ArchitectureAmd64), + // OS: to.Ptr(armcontainerregistry.OSLinux), + // }, + // Status: to.Ptr(armcontainerregistry.TaskStatusEnabled), + // Step: &armcontainerregistry.DockerBuildStep{ + // Type: to.Ptr(armcontainerregistry.StepTypeDocker), + // ContextPath: to.Ptr("src"), + // Arguments: []*armcontainerregistry.Argument{ + // { + // Name: to.Ptr("mytestargument"), + // IsSecret: to.Ptr(false), + // Value: to.Ptr("mytestvalue"), + // }, + // { + // Name: to.Ptr("mysecrettestargument"), + // IsSecret: to.Ptr(true), + // Value: to.Ptr("mysecrettestvalue"), + // }}, + // DockerFilePath: to.Ptr("src/DockerFile"), + // ImageNames: []*string{ + // to.Ptr("azurerest:testtag")}, + // IsPushEnabled: to.Ptr(true), + // NoCache: to.Ptr(false), + // }, + // Trigger: &armcontainerregistry.TriggerProperties{ + // BaseImageTrigger: &armcontainerregistry.BaseImageTrigger{ + // Name: to.Ptr("myBaseImageTrigger"), + // BaseImageTriggerType: to.Ptr(armcontainerregistry.BaseImageTriggerTypeRuntime), + // Status: to.Ptr(armcontainerregistry.TriggerStatusEnabled), + // UpdateTriggerEndpoint: to.Ptr("https://user:pass@mycicd.webhook.com?token=foo"), + // UpdateTriggerPayloadType: to.Ptr(armcontainerregistry.UpdateTriggerPayloadTypeToken), + // }, + // SourceTriggers: []*armcontainerregistry.SourceTrigger{ + // { + // Name: to.Ptr("mySourceTrigger"), + // SourceRepository: &armcontainerregistry.SourceProperties{ + // Branch: to.Ptr("master"), + // RepositoryURL: to.Ptr("https://github.com/Azure/azure-rest-api-specs"), + // SourceControlAuthProperties: &armcontainerregistry.AuthInfo{ + // Token: to.Ptr("xxxxx"), + // TokenType: to.Ptr(armcontainerregistry.TokenTypePAT), + // }, + // SourceControlType: to.Ptr(armcontainerregistry.SourceControlTypeGithub), + // }, + // SourceTriggerEvents: []*armcontainerregistry.SourceTriggerEvent{ + // to.Ptr(armcontainerregistry.SourceTriggerEventCommit)}, + // Status: to.Ptr(armcontainerregistry.TriggerStatusEnabled), + // }}, + // TimerTriggers: []*armcontainerregistry.TimerTrigger{ + // { + // Name: to.Ptr("myTimerTrigger"), + // Schedule: to.Ptr("30 9 * * 1-5"), + // Status: to.Ptr(armcontainerregistry.TriggerStatusEnabled), + // }}, + // }, + // }, + // } +} diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/TasksGetDetails.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/TasksGetDetails.json new file mode 100644 index 0000000000..ffd01135ff --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/TasksGetDetails.json @@ -0,0 +1 @@ +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv3.0.0-beta.1/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/TasksList.go b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/TasksList.go new file mode 100644 index 0000000000..51b9b26ce0 --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/TasksList.go @@ -0,0 +1,110 @@ +package armcontainerregistry_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v3" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/523ccabf440d8cf1c5b0ea18a8ad1ffedf4902ac/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples/TasksList.json +func ExampleTasksClient_NewListPager() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + clientFactory, err := armcontainerregistry.NewClientFactory("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + pager := clientFactory.NewTasksClient().NewListPager("myResourceGroup", "myRegistry", nil) + for pager.More() { + page, err := pager.NextPage(ctx) + if err != nil { + log.Fatalf("failed to advance page: %v", err) + } + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. + _ = v + } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.TaskListResult = armcontainerregistry.TaskListResult{ + // Value: []*armcontainerregistry.Task{ + // { + // Name: to.Ptr("myTask"), + // Type: to.Ptr("Microsoft.ContainerRegistry/registries/tasks"), + // ID: to.Ptr("/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/tasks/myTask"), + // Location: to.Ptr("eastus"), + // Tags: map[string]*string{ + // "testkey": to.Ptr("value"), + // }, + // Identity: &armcontainerregistry.IdentityProperties{ + // Type: to.Ptr(armcontainerregistry.ResourceIdentityTypeSystemAssigned), + // PrincipalID: to.Ptr("fa153151-b9fd-46f4-9088-5e6600f2689v"), + // TenantID: to.Ptr("f686d426-8d16-42db-81b7-abu4gm510ccd"), + // }, + // Properties: &armcontainerregistry.TaskProperties{ + // AgentConfiguration: &armcontainerregistry.AgentProperties{ + // CPU: to.Ptr[int32](2), + // }, + // CreationDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-01-25T06:54:23.536Z"); return t}()), + // Credentials: &armcontainerregistry.Credentials{ + // CustomRegistries: map[string]*armcontainerregistry.CustomRegistryCredentials{ + // "myRegistry.azure.io": nil, + // }, + // }, + // IsSystemTask: to.Ptr(false), + // Platform: &armcontainerregistry.PlatformProperties{ + // Architecture: to.Ptr(armcontainerregistry.ArchitectureAmd64), + // OS: to.Ptr(armcontainerregistry.OSLinux), + // }, + // ProvisioningState: to.Ptr(armcontainerregistry.ProvisioningStateSucceeded), + // Status: to.Ptr(armcontainerregistry.TaskStatusEnabled), + // Step: &armcontainerregistry.DockerBuildStep{ + // Type: to.Ptr(armcontainerregistry.StepTypeDocker), + // ContextPath: to.Ptr("src"), + // Arguments: []*armcontainerregistry.Argument{ + // { + // Name: to.Ptr("mytestargument"), + // IsSecret: to.Ptr(false), + // Value: to.Ptr("mytestvalue"), + // }}, + // DockerFilePath: to.Ptr("src/DockerFile"), + // ImageNames: []*string{ + // to.Ptr("azurerest:testtag")}, + // IsPushEnabled: to.Ptr(true), + // NoCache: to.Ptr(false), + // }, + // Trigger: &armcontainerregistry.TriggerProperties{ + // BaseImageTrigger: &armcontainerregistry.BaseImageTrigger{ + // Name: to.Ptr("myBaseImageTrigger"), + // BaseImageTriggerType: to.Ptr(armcontainerregistry.BaseImageTriggerTypeRuntime), + // Status: to.Ptr(armcontainerregistry.TriggerStatusEnabled), + // UpdateTriggerPayloadType: to.Ptr(armcontainerregistry.UpdateTriggerPayloadTypeDefault), + // }, + // SourceTriggers: []*armcontainerregistry.SourceTrigger{ + // { + // Name: to.Ptr("mySourceTrigger"), + // SourceRepository: &armcontainerregistry.SourceProperties{ + // Branch: to.Ptr("master"), + // RepositoryURL: to.Ptr("https://github.com/Azure/azure-rest-api-specs"), + // SourceControlType: to.Ptr(armcontainerregistry.SourceControlTypeGithub), + // }, + // SourceTriggerEvents: []*armcontainerregistry.SourceTriggerEvent{ + // to.Ptr(armcontainerregistry.SourceTriggerEventCommit)}, + // Status: to.Ptr(armcontainerregistry.TriggerStatusEnabled), + // }}, + // TimerTriggers: []*armcontainerregistry.TimerTrigger{ + // { + // Name: to.Ptr("myTimerTrigger"), + // Schedule: to.Ptr("30 9 * * 1-5"), + // Status: to.Ptr(armcontainerregistry.TriggerStatusEnabled), + // }}, + // }, + // }, + // }}, + // } + } +} diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/TasksList.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/TasksList.json new file mode 100644 index 0000000000..ffd01135ff --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/TasksList.json @@ -0,0 +1 @@ +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv3.0.0-beta.1/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/TasksUpdate.go b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/TasksUpdate.go new file mode 100644 index 0000000000..59ff772248 --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/TasksUpdate.go @@ -0,0 +1,149 @@ +package armcontainerregistry_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v3" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/523ccabf440d8cf1c5b0ea18a8ad1ffedf4902ac/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples/TasksUpdate.json +func ExampleTasksClient_Update_tasksUpdate() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + clientFactory, err := armcontainerregistry.NewClientFactory("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := clientFactory.NewTasksClient().Update(ctx, "myResourceGroup", "myRegistry", "myTask", armcontainerregistry.TaskUpdateParameters{ + Properties: &armcontainerregistry.TaskPropertiesUpdateParameters{ + AgentConfiguration: &armcontainerregistry.AgentProperties{ + CPU: to.Ptr[int32](3), + }, + Credentials: &armcontainerregistry.Credentials{ + CustomRegistries: map[string]*armcontainerregistry.CustomRegistryCredentials{ + "myregistry.azurecr.io": { + Identity: to.Ptr("[system]"), + Password: &armcontainerregistry.SecretObject{ + Type: to.Ptr(armcontainerregistry.SecretObjectTypeVaultsecret), + Value: to.Ptr("https://myacbvault.vault.azure.net/secrets/password"), + }, + UserName: &armcontainerregistry.SecretObject{ + Type: to.Ptr(armcontainerregistry.SecretObjectTypeOpaque), + Value: to.Ptr("username"), + }, + }, + }, + }, + LogTemplate: to.Ptr("acr/tasks:{{.Run.OS}}"), + Status: to.Ptr(armcontainerregistry.TaskStatusEnabled), + Step: &armcontainerregistry.DockerBuildStepUpdateParameters{ + Type: to.Ptr(armcontainerregistry.StepTypeDocker), + DockerFilePath: to.Ptr("src/DockerFile"), + ImageNames: []*string{ + to.Ptr("azurerest:testtag1")}, + }, + Trigger: &armcontainerregistry.TriggerUpdateParameters{ + SourceTriggers: []*armcontainerregistry.SourceTriggerUpdateParameters{ + { + Name: to.Ptr("mySourceTrigger"), + SourceRepository: &armcontainerregistry.SourceUpdateParameters{ + SourceControlAuthProperties: &armcontainerregistry.AuthInfoUpdateParameters{ + Token: to.Ptr("xxxxx"), + TokenType: to.Ptr(armcontainerregistry.TokenTypePAT), + }, + }, + SourceTriggerEvents: []*armcontainerregistry.SourceTriggerEvent{ + to.Ptr(armcontainerregistry.SourceTriggerEventCommit)}, + }}, + }, + }, + Tags: map[string]*string{ + "testkey": to.Ptr("value"), + }, + }, nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.Task = armcontainerregistry.Task{ + // Name: to.Ptr("myTask"), + // Type: to.Ptr("Microsoft.ContainerRegistry/registries/tasks"), + // ID: to.Ptr("/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/tasks/myTask"), + // Location: to.Ptr("eastus"), + // Tags: map[string]*string{ + // "testkey": to.Ptr("value"), + // }, + // Identity: &armcontainerregistry.IdentityProperties{ + // Type: to.Ptr(armcontainerregistry.ResourceIdentityTypeSystemAssigned), + // PrincipalID: to.Ptr("fa153151-b9fd-46f4-9088-5e6600f2689v"), + // TenantID: to.Ptr("f686d426-8d16-42db-81b7-abu4gm510ccd"), + // }, + // Properties: &armcontainerregistry.TaskProperties{ + // AgentConfiguration: &armcontainerregistry.AgentProperties{ + // CPU: to.Ptr[int32](3), + // }, + // CreationDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-01-25T06:54:23.536Z"); return t}()), + // Credentials: &armcontainerregistry.Credentials{ + // CustomRegistries: map[string]*armcontainerregistry.CustomRegistryCredentials{ + // "myregistry.azurecr.io": nil, + // }, + // }, + // LogTemplate: to.Ptr("acr/tasks:{{.Run.OS}}"), + // Platform: &armcontainerregistry.PlatformProperties{ + // Architecture: to.Ptr(armcontainerregistry.ArchitectureAmd64), + // OS: to.Ptr(armcontainerregistry.OSLinux), + // }, + // ProvisioningState: to.Ptr(armcontainerregistry.ProvisioningStateSucceeded), + // Status: to.Ptr(armcontainerregistry.TaskStatusEnabled), + // Step: &armcontainerregistry.DockerBuildStep{ + // Type: to.Ptr(armcontainerregistry.StepTypeDocker), + // ContextPath: to.Ptr("src"), + // Arguments: []*armcontainerregistry.Argument{ + // { + // Name: to.Ptr("mytestargument"), + // IsSecret: to.Ptr(false), + // Value: to.Ptr("mytestvalue"), + // }}, + // DockerFilePath: to.Ptr("src/DockerFile"), + // ImageNames: []*string{ + // to.Ptr("azurerest:testtag1")}, + // IsPushEnabled: to.Ptr(true), + // NoCache: to.Ptr(false), + // }, + // Trigger: &armcontainerregistry.TriggerProperties{ + // BaseImageTrigger: &armcontainerregistry.BaseImageTrigger{ + // Name: to.Ptr("myBaseImageTrigger"), + // BaseImageTriggerType: to.Ptr(armcontainerregistry.BaseImageTriggerTypeRuntime), + // Status: to.Ptr(armcontainerregistry.TriggerStatusEnabled), + // UpdateTriggerPayloadType: to.Ptr(armcontainerregistry.UpdateTriggerPayloadTypeDefault), + // }, + // SourceTriggers: []*armcontainerregistry.SourceTrigger{ + // { + // Name: to.Ptr("mySourceTrigger"), + // SourceRepository: &armcontainerregistry.SourceProperties{ + // Branch: to.Ptr("master"), + // RepositoryURL: to.Ptr("https://github.com/Azure/azure-rest-api-specs"), + // SourceControlType: to.Ptr(armcontainerregistry.SourceControlTypeGithub), + // }, + // SourceTriggerEvents: []*armcontainerregistry.SourceTriggerEvent{ + // to.Ptr(armcontainerregistry.SourceTriggerEventCommit)}, + // Status: to.Ptr(armcontainerregistry.TriggerStatusEnabled), + // }}, + // TimerTriggers: []*armcontainerregistry.TimerTrigger{ + // { + // Name: to.Ptr("myTimerTrigger"), + // Schedule: to.Ptr("30 9 * * 1-5"), + // Status: to.Ptr(armcontainerregistry.TriggerStatusEnabled), + // }}, + // }, + // }, + // } +} diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/TasksUpdate.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/TasksUpdate.json new file mode 100644 index 0000000000..ffd01135ff --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/TasksUpdate.json @@ -0,0 +1 @@ +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv3.0.0-beta.1/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/TasksUpdate_QuickTask.go b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/TasksUpdate_QuickTask.go new file mode 100644 index 0000000000..8d68fefbec --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/TasksUpdate_QuickTask.go @@ -0,0 +1,53 @@ +package armcontainerregistry_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v3" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/523ccabf440d8cf1c5b0ea18a8ad1ffedf4902ac/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples/TasksUpdate_QuickTask.json +func ExampleTasksClient_Update_tasksUpdateQuickTask() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + clientFactory, err := armcontainerregistry.NewClientFactory("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := clientFactory.NewTasksClient().Update(ctx, "myResourceGroup", "myRegistry", "quicktask", armcontainerregistry.TaskUpdateParameters{ + Properties: &armcontainerregistry.TaskPropertiesUpdateParameters{ + LogTemplate: to.Ptr("acr/tasks:{{.Run.OS}}"), + Status: to.Ptr(armcontainerregistry.TaskStatusEnabled), + }, + Tags: map[string]*string{ + "testkey": to.Ptr("value"), + }, + }, nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.Task = armcontainerregistry.Task{ + // Name: to.Ptr("myTask"), + // Type: to.Ptr("Microsoft.ContainerRegistry/registries/tasks"), + // ID: to.Ptr("/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/tasks/myTask"), + // Location: to.Ptr("eastus"), + // Tags: map[string]*string{ + // "testkey": to.Ptr("value"), + // }, + // Properties: &armcontainerregistry.TaskProperties{ + // CreationDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-01-25T06:54:23.536Z"); return t}()), + // LogTemplate: to.Ptr("acr/tasks:{{.Run.OS}}"), + // ProvisioningState: to.Ptr(armcontainerregistry.ProvisioningStateSucceeded), + // Status: to.Ptr(armcontainerregistry.TaskStatusEnabled), + // }, + // } +} diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/TasksUpdate_QuickTask.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/TasksUpdate_QuickTask.json new file mode 100644 index 0000000000..ffd01135ff --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/TasksUpdate_QuickTask.json @@ -0,0 +1 @@ +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv3.0.0-beta.1/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/TasksUpdate_WithOpaqueCustomCredentials.go b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/TasksUpdate_WithOpaqueCustomCredentials.go new file mode 100644 index 0000000000..6acbef3dbb --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/TasksUpdate_WithOpaqueCustomCredentials.go @@ -0,0 +1,145 @@ +package armcontainerregistry_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry/v3" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/523ccabf440d8cf1c5b0ea18a8ad1ffedf4902ac/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples/TasksUpdate_WithOpaqueCustomCredentials.json +func ExampleTasksClient_Update_tasksUpdateWithOpaqueCustomCredentials() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + clientFactory, err := armcontainerregistry.NewClientFactory("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := clientFactory.NewTasksClient().Update(ctx, "myResourceGroup", "myRegistry", "myTask", armcontainerregistry.TaskUpdateParameters{ + Properties: &armcontainerregistry.TaskPropertiesUpdateParameters{ + AgentConfiguration: &armcontainerregistry.AgentProperties{ + CPU: to.Ptr[int32](3), + }, + Credentials: &armcontainerregistry.Credentials{ + CustomRegistries: map[string]*armcontainerregistry.CustomRegistryCredentials{ + "myregistry.azurecr.io": { + Password: &armcontainerregistry.SecretObject{ + Type: to.Ptr(armcontainerregistry.SecretObjectTypeOpaque), + Value: to.Ptr("***"), + }, + UserName: &armcontainerregistry.SecretObject{ + Type: to.Ptr(armcontainerregistry.SecretObjectTypeOpaque), + Value: to.Ptr("username"), + }, + }, + }, + }, + Status: to.Ptr(armcontainerregistry.TaskStatusEnabled), + Step: &armcontainerregistry.DockerBuildStepUpdateParameters{ + Type: to.Ptr(armcontainerregistry.StepTypeDocker), + DockerFilePath: to.Ptr("src/DockerFile"), + ImageNames: []*string{ + to.Ptr("azurerest:testtag1")}, + }, + Trigger: &armcontainerregistry.TriggerUpdateParameters{ + SourceTriggers: []*armcontainerregistry.SourceTriggerUpdateParameters{ + { + Name: to.Ptr("mySourceTrigger"), + SourceRepository: &armcontainerregistry.SourceUpdateParameters{ + SourceControlAuthProperties: &armcontainerregistry.AuthInfoUpdateParameters{ + Token: to.Ptr("xxxxx"), + TokenType: to.Ptr(armcontainerregistry.TokenTypePAT), + }, + }, + SourceTriggerEvents: []*armcontainerregistry.SourceTriggerEvent{ + to.Ptr(armcontainerregistry.SourceTriggerEventCommit)}, + }}, + }, + }, + Tags: map[string]*string{ + "testkey": to.Ptr("value"), + }, + }, nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.Task = armcontainerregistry.Task{ + // Name: to.Ptr("myTask"), + // Type: to.Ptr("Microsoft.ContainerRegistry/registries/tasks"), + // ID: to.Ptr("/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/tasks/myTask"), + // Location: to.Ptr("eastus"), + // Tags: map[string]*string{ + // "testkey": to.Ptr("value"), + // }, + // Identity: &armcontainerregistry.IdentityProperties{ + // Type: to.Ptr(armcontainerregistry.ResourceIdentityTypeSystemAssigned), + // PrincipalID: to.Ptr("fa153151-b9fd-46f4-9088-5e6600f2689v"), + // TenantID: to.Ptr("f686d426-8d16-42db-81b7-abu4gm510ccd"), + // }, + // Properties: &armcontainerregistry.TaskProperties{ + // AgentConfiguration: &armcontainerregistry.AgentProperties{ + // CPU: to.Ptr[int32](3), + // }, + // CreationDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-01-25T06:54:23.536Z"); return t}()), + // Credentials: &armcontainerregistry.Credentials{ + // CustomRegistries: map[string]*armcontainerregistry.CustomRegistryCredentials{ + // "myregistry.azure.io": nil, + // }, + // }, + // Platform: &armcontainerregistry.PlatformProperties{ + // Architecture: to.Ptr(armcontainerregistry.ArchitectureAmd64), + // OS: to.Ptr(armcontainerregistry.OSLinux), + // }, + // ProvisioningState: to.Ptr(armcontainerregistry.ProvisioningStateSucceeded), + // Status: to.Ptr(armcontainerregistry.TaskStatusEnabled), + // Step: &armcontainerregistry.DockerBuildStep{ + // Type: to.Ptr(armcontainerregistry.StepTypeDocker), + // ContextPath: to.Ptr("src"), + // Arguments: []*armcontainerregistry.Argument{ + // { + // Name: to.Ptr("mytestargument"), + // IsSecret: to.Ptr(false), + // Value: to.Ptr("mytestvalue"), + // }}, + // DockerFilePath: to.Ptr("src/DockerFile"), + // ImageNames: []*string{ + // to.Ptr("azurerest:testtag1")}, + // IsPushEnabled: to.Ptr(true), + // NoCache: to.Ptr(false), + // }, + // Trigger: &armcontainerregistry.TriggerProperties{ + // BaseImageTrigger: &armcontainerregistry.BaseImageTrigger{ + // Name: to.Ptr("myBaseImageTrigger"), + // BaseImageTriggerType: to.Ptr(armcontainerregistry.BaseImageTriggerTypeRuntime), + // Status: to.Ptr(armcontainerregistry.TriggerStatusEnabled), + // }, + // SourceTriggers: []*armcontainerregistry.SourceTrigger{ + // { + // Name: to.Ptr("mySourceTrigger"), + // SourceRepository: &armcontainerregistry.SourceProperties{ + // Branch: to.Ptr("master"), + // RepositoryURL: to.Ptr("https://github.com/Azure/azure-rest-api-specs"), + // SourceControlType: to.Ptr(armcontainerregistry.SourceControlTypeGithub), + // }, + // SourceTriggerEvents: []*armcontainerregistry.SourceTriggerEvent{ + // to.Ptr(armcontainerregistry.SourceTriggerEventCommit)}, + // Status: to.Ptr(armcontainerregistry.TriggerStatusEnabled), + // }}, + // TimerTriggers: []*armcontainerregistry.TimerTrigger{ + // { + // Name: to.Ptr("myTimerTrigger"), + // Schedule: to.Ptr("30 9 * * 1-5"), + // Status: to.Ptr(armcontainerregistry.TriggerStatusEnabled), + // }}, + // }, + // }, + // } +} diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/TasksUpdate_WithOpaqueCustomCredentials.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/TasksUpdate_WithOpaqueCustomCredentials.json new file mode 100644 index 0000000000..ffd01135ff --- /dev/null +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/preview/2025-03-01-preview/examples-go/TasksUpdate_WithOpaqueCustomCredentials.json @@ -0,0 +1 @@ +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fcontainerregistry%2Farmcontainerregistry%2Fv3.0.0-beta.1/sdk/resourcemanager/containerregistry/armcontainerregistry/README.md"} \ No newline at end of file