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

Add DeploymentStacks APIs #44254

Closed
wants to merge 3 commits into from
Closed

Add DeploymentStacks APIs #44254

wants to merge 3 commits into from

Conversation

ArthurMa1978
Copy link
Member

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.

@github-actions github-actions bot added the Mgmt This issue is related to a management-plane library. label May 27, 2024
@azure-sdk
Copy link
Collaborator

API change check

APIView has identified API level changes in this PR and created following API reviews.

Azure.ResourceManager.Resources

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; }
Copy link
Contributor

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.

Copy link
Member Author

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)
Copy link
Contributor

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.

Copy link
Member Author

@ArthurMa1978 ArthurMa1978 Jun 5, 2024

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)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be "CreateListAtScopeRequestUri"?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, fixed

@ArthurMa1978
Copy link
Member Author

#44405 is the new pr for this effort

@ArthurMa1978 ArthurMa1978 deleted the mgmt-resources branch July 1, 2024 01:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Mgmt This issue is related to a management-plane library.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants