Skip to content

[ReleasePR @azure/arm-attestation] Add Track2 release go tag#18618

Closed
openapi-sdkautomation[bot] wants to merge 1 commit intoAzure:feature/v4from
AzureSDKAutomation:sdkAuto/@azure_arm-attestation
Closed

[ReleasePR @azure/arm-attestation] Add Track2 release go tag#18618
openapi-sdkautomation[bot] wants to merge 1 commit intoAzure:feature/v4from
AzureSDKAutomation:sdkAuto/@azure_arm-attestation

Conversation

@openapi-sdkautomation
Copy link
Copy Markdown
Contributor

@openapi-sdkautomation openapi-sdkautomation bot commented Nov 10, 2021

Create to sync Azure/azure-rest-api-specs#16847
ReCreate this PR

Installation Instructions

You can install the package @azure/arm-attestation of this PR using the following command:

curl -L "https://portal.azure-devex-tools.com/api/sdk-dl-pub?p=Azure/16847/azure-sdk-for-js/@azure_arm-attestation/azure-arm-attestation-1.1.1.tgz" -o azure-arm-attestation-1.1.1.tgz
npm install azure-arm-attestation-1.1.1.tgz

Direct Download

The generated package can be directly downloaded from here:

attestation: fixing the segment `attestationProvider` to be `attestationProvider` which matches the API (Azure#16355)

Using the API Version in the Portal (2020-10-01):

Using API Version 2020-10-01 and a valid AttestationProvider with this endpoint returns an error that the `attestationProvider` resource type cannot be found:

```
$ az rest --method get --uri "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tom-dev/providers/Microsoft.Attestation/attestationProvider/tomdevaccprov/privateEndpointConnections?api-version=2020-10-01"
Not Found({"error":{"code":"InvalidResourceType","message":"The resource type could not be found in the namespace 'Microsoft.Attestation' for api version '2020-10-01'."}})
```

Updating this to `attestationProviders` fixes this (and correctly returns a 404 that there is no PrivateEndpointConnection for this Attestation Provider):

```
$ az rest --method get --uri "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tom-dev/providers/Microsoft.Attestation/attestationProviders/tomdevaccprov/privateEndpointConnections?api-version=2020-10-01"
Not Found({"error":{"code":"InvalidOperation","message":"PrivateEndpointConnection is not found."}})
```

---

Using API Version 2021-06-01-preview and a valid AttestationProvider with this endpoint returns an error that the `attestationProvider` resource type cannot be found:

```
$ az rest --method get --uri "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tom-dev/providers/Microsoft.Attestation/attestationProvider/tomdevaccprov/privateEndpointConnections?api-version=2021-06-01-preview"
Not Found({"error":{"code":"InvalidResourceType","message":"The resource type could not be found in the namespace 'Microsoft.Attestation' for api version '2021-06-01-preview'."}})
```

Updating this to `attestationProviders` fixes this (and correctly returns a 404 that there is no PrivateEndpointConnection for this Attestation Provider):

```
$ az rest --method get --uri "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tom-dev/providers/Microsoft.Attestation/attestationProviders/tomdevaccprov/privateEndpointConnections?api-version=2021-06-01-preview"
Not Found({"error":{"code":"InvalidOperation","message":"PrivateEndpointConnection is not found."}})
```
@ghost ghost added Attestation Mgmt This issue is related to a management-plane library. labels Nov 10, 2021
@openapi-sdkautomation openapi-sdkautomation bot changed the title [ReleasePR @azure/arm-attestation] attestation: fixing the segment attestationProvider to be attestationProviders which matches the API [ReleasePR @azure/arm-attestation] Add Track2 release go tag Nov 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Attestation Mgmt This issue is related to a management-plane library.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants