Skip to content

Conversation

openapi-sdkautomation[bot]
Copy link
Contributor

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

attestation: fixing the segment `attestationProvider` to be `attestationProvider` which matches the API (#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 the customer-reported Issues that are reported by GitHub users external to the Azure organization. label Nov 10, 2021
@ghost
Copy link

ghost commented Nov 10, 2021

Thank you for your contribution openapi-sdkautomation[bot]! We will review the pull request and get back to you soon.

@openapi-sdkautomation openapi-sdkautomation bot changed the title [ReleasePR attestation/mgmt/2020-10-01/attestation] attestation: fixing the segment attestationProvider to be attestationProviders which matches the API [ReleasePR attestation/mgmt/2020-10-01/attestation] Add Track2 release go tag Nov 24, 2021
@openapi-sdkautomation openapi-sdkautomation bot changed the title [ReleasePR attestation/mgmt/2020-10-01/attestation] Add Track2 release go tag [ReleasePR attestation/mgmt/2020-10-01/attestation] Adding xms-ids for Attestation Feb 10, 2022
@openapi-sdkautomation openapi-sdkautomation bot changed the title [ReleasePR attestation/mgmt/2020-10-01/attestation] Adding xms-ids for Attestation [ReleasePR attestation/mgmt/2020-10-01/attestation] update readme 2_5 Mar 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
customer-reported Issues that are reported by GitHub users external to the Azure organization.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants