-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Add DeploymentStacks APIs #44254
Add DeploymentStacks APIs #44254
Conversation
API change check APIView has identified API level changes in this PR and created following API reviews. |
public DeploymentStacksTemplateLink TemplateLink { get; set; } | ||
/// <summary> Name and value pairs that define the deployment parameters for the template. Use this element when providing the parameter values directly in the request, rather than linking to an existing parameter file. Use either the parametersLink property or the parameters property, but not both. </summary> | ||
[WirePath("properties.parameters")] | ||
public IDictionary<string, DeploymentParameter> Parameters { get; } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Parameters should be settable. I'm unsure why it is being generated as read-only. We are mimicking deployment parameters here and in the ArmDeploymentProperties, the parameters property is binary data. I'm wondering if we should be following the same pattern here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The .Net SDK design enforces that all collection properties are immutable. To manipulate the elements within the collection—such as adding, removing, or updating items—please utilize the collection’s methods. Here for the Parameters
collection, please use Add method to insert new parameters.
|
||
/// <summary> Initializes a new instance of <see cref="DeploymentStackData"/>. </summary> | ||
/// <param name="location"> The location. </param> | ||
public DeploymentStackData(AzureLocation location) : base(location) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be public? I don't think the user should be initializing these lists as they should be populated by the service.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This can be used for Create\Update\Validate operation
} | ||
} | ||
|
||
internal RequestUriBuilder CreateListAtCopeRequestUri(string scope) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be "CreateListAtScopeRequestUri"?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch, fixed
#44405 is the new pr for this effort |
Contributing to the Azure SDK
Please see our CONTRIBUTING.md if you are not familiar with contributing to this repository or have questions.
For specific information about pull request etiquette and best practices, see this section.