Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

How to specify APIVersion when using ARM Generic Resource operations #679

Closed
dave-read opened this issue Jul 3, 2017 · 2 comments
Closed
Assignees
Labels
question The issue doesn't require a change to the product in order to be resolved. Most issues start as that

Comments

@dave-read
Copy link

In prior version of the SDK (v7.0.0-beta), the Management Client (azure-sdk-for-go/arm/resources/resources/client.go) included an APIVersion property that allowed use of Generic Resource operations like CreateOrUpdate with preview APIs (e.g. Azure PostgresSQL requires 2017-04-30-preview)

type ManagementClient struct {
	autorest.Client
	BaseURI        string
	APIVersion     string
	SubscriptionID string
}

When updating to the latest releases (v10.x.x-beta) that APIVersion property is no longer available and the API version appears to be fixed at 2016-09-01. Was that change by design? If so, is there any other way to specify an APIVersion when using the SDK with Generic Resource operations (e.g. GroupClient CreateOrUpdate)?

@marstr
Copy link
Member

marstr commented Jul 5, 2017

Howdy @dave-read,

As you suspected, this change was done by design. Here are a few threads that explain why this happened, and which problems we're trying to solve:

Also, checkout my experimental branch, were I've started regenerating code to conform to a pattern which supports all API Versions here:
Azure/azure-sdk-for-go experimental/allAPIVersions

@marstr marstr self-assigned this Jul 5, 2017
@marstr marstr added the question The issue doesn't require a change to the product in order to be resolved. Most issues start as that label Jul 5, 2017
@marstr
Copy link
Member

marstr commented Jul 5, 2017

Feel free to ask for this to be re-opened if you don't find the answers you're looking for in those threads!

@marstr marstr closed this as completed Jul 5, 2017
@github-actions github-actions bot locked and limited conversation to collaborators Apr 11, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
question The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Projects
None yet
Development

No branches or pull requests

2 participants