-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Feature udr01 #9233
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
base: main
Are you sure you want to change the base?
Feature udr01 #9233
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||
---|---|---|---|---|---|---|---|---|
|
@@ -22,9 +22,9 @@ class Create(AAZCommand): | |||||||
""" | ||||||||
|
||||||||
_aaz_info = { | ||||||||
"version": "2022-01-01", | ||||||||
"version": "2024-07-01", | ||||||||
"resources": [ | ||||||||
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkmanagers/{}/networkgroups/{}", "2022-01-01"], | ||||||||
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkmanagers/{}/networkgroups/{}", "2024-07-01"], | ||||||||
] | ||||||||
} | ||||||||
|
||||||||
|
@@ -70,6 +70,12 @@ def _build_arguments_schema(cls, *args, **kwargs): | |||||||
arg_group="Properties", | ||||||||
help="A description of the network group.", | ||||||||
) | ||||||||
_args_schema.member_type = AAZStrArg( | ||||||||
options=["--member-type"], | ||||||||
arg_group="Properties", | ||||||||
help="The type of the group member.", | ||||||||
enum={"Subnet": "Subnet", "VirtualNetwork": "VirtualNetwork"}, | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The member_type argument should have a default value specified since this is a new optional parameter. Consider adding
Suggested change
Copilot uses AI. Check for mistakes. Positive FeedbackNegative Feedback |
||||||||
) | ||||||||
return cls._args_schema | ||||||||
|
||||||||
def _execute_operations(self): | ||||||||
|
@@ -141,7 +147,7 @@ def url_parameters(self): | |||||||
def query_parameters(self): | ||||||||
parameters = { | ||||||||
**self.serialize_query_param( | ||||||||
"api-version", "2022-01-01", | ||||||||
"api-version", "2024-07-01", | ||||||||
required=True, | ||||||||
), | ||||||||
} | ||||||||
|
@@ -174,6 +180,7 @@ def content(self): | |||||||
properties = _builder.get(".properties") | ||||||||
if properties is not None: | ||||||||
properties.set_prop("description", AAZStrType, ".description") | ||||||||
properties.set_prop("memberType", AAZStrType, ".member_type") | ||||||||
|
||||||||
return self.serialize_content(_content_value) | ||||||||
|
||||||||
|
@@ -217,10 +224,17 @@ def _build_schema_on_200_201(cls): | |||||||
|
||||||||
properties = cls._schema_on_200_201.properties | ||||||||
properties.description = AAZStrType() | ||||||||
properties.member_type = AAZStrType( | ||||||||
serialized_name="memberType", | ||||||||
) | ||||||||
properties.provisioning_state = AAZStrType( | ||||||||
serialized_name="provisioningState", | ||||||||
flags={"read_only": True}, | ||||||||
) | ||||||||
properties.resource_guid = AAZStrType( | ||||||||
serialized_name="resourceGuid", | ||||||||
flags={"read_only": True}, | ||||||||
) | ||||||||
|
||||||||
system_data = cls._schema_on_200_201.system_data | ||||||||
system_data.created_at = AAZStrType( | ||||||||
|
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 changelog entry for version 2.0.2 appears to be incorrectly placed. Since the current version is being updated to 3.0.1, having a newer feature description under an older version number (2.0.2) creates confusion in the release history.
Copilot uses AI. Check for mistakes.