Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions policy.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"issuerParameters": {"certificateTransparency": null, "name": "Self"}, "keyProperties": {"curve": null, "exportable": true, "keySize": 2048, "keyType": "RSA", "reuseKey": true}, "lifetimeActions": [{"action": {"actionType": "AutoRenew"}, "trigger": {"daysBeforeExpiry": 90}}], "secretProperties": {"contentType": "application/x-pkcs12"}, "x509CertificateProperties": {"keyUsage": ["cRLSign", "dataEncipherment", "digitalSignature", "keyEncipherment", "keyAgreement", "keyCertSign"], "subject": "CN=CLIGetDefaultPolicy", "validityInMonths": 12}}
4 changes: 4 additions & 0 deletions src/nginx/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
Release History
===============

2.0.0b8
++++++
* Added support for updating subnet.

2.0.0b7
++++++
* Added support for API key and protected files. Remove location for configuration create and update.
Expand Down
6 changes: 3 additions & 3 deletions src/nginx/azext_nginx/aaz/latest/nginx/deployment/_create.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ class Create(AAZCommand):
"""

_aaz_info = {
"version": "2024-09-01-preview",
"version": "2024-11-01-preview",
"resources": [
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/nginx.nginxplus/nginxdeployments/{}", "2024-09-01-preview"],
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/nginx.nginxplus/nginxdeployments/{}", "2024-11-01-preview"],
]
}

Expand Down Expand Up @@ -378,7 +378,7 @@ def url_parameters(self):
def query_parameters(self):
parameters = {
**self.serialize_query_param(
"api-version", "2024-09-01-preview",
"api-version", "2024-11-01-preview",
required=True,
),
}
Expand Down
6 changes: 3 additions & 3 deletions src/nginx/azext_nginx/aaz/latest/nginx/deployment/_delete.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ class Delete(AAZCommand):
"""

_aaz_info = {
"version": "2024-09-01-preview",
"version": "2024-11-01-preview",
"resources": [
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/nginx.nginxplus/nginxdeployments/{}", "2024-09-01-preview"],
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/nginx.nginxplus/nginxdeployments/{}", "2024-11-01-preview"],
]
}

Expand Down Expand Up @@ -146,7 +146,7 @@ def url_parameters(self):
def query_parameters(self):
parameters = {
**self.serialize_query_param(
"api-version", "2024-09-01-preview",
"api-version", "2024-11-01-preview",
required=True,
),
}
Expand Down
10 changes: 5 additions & 5 deletions src/nginx/azext_nginx/aaz/latest/nginx/deployment/_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ class List(AAZCommand):
"""

_aaz_info = {
"version": "2024-09-01-preview",
"version": "2024-11-01-preview",
"resources": [
["mgmt-plane", "/subscriptions/{}/providers/nginx.nginxplus/nginxdeployments", "2024-09-01-preview"],
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/nginx.nginxplus/nginxdeployments", "2024-09-01-preview"],
["mgmt-plane", "/subscriptions/{}/providers/nginx.nginxplus/nginxdeployments", "2024-11-01-preview"],
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/nginx.nginxplus/nginxdeployments", "2024-11-01-preview"],
]
}

Expand Down Expand Up @@ -116,7 +116,7 @@ def url_parameters(self):
def query_parameters(self):
parameters = {
**self.serialize_query_param(
"api-version", "2024-09-01-preview",
"api-version", "2024-11-01-preview",
required=True,
),
}
Expand Down Expand Up @@ -457,7 +457,7 @@ def url_parameters(self):
def query_parameters(self):
parameters = {
**self.serialize_query_param(
"api-version", "2024-09-01-preview",
"api-version", "2024-11-01-preview",
required=True,
),
}
Expand Down
6 changes: 3 additions & 3 deletions src/nginx/azext_nginx/aaz/latest/nginx/deployment/_show.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ class Show(AAZCommand):
"""

_aaz_info = {
"version": "2024-09-01-preview",
"version": "2024-11-01-preview",
"resources": [
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/nginx.nginxplus/nginxdeployments/{}", "2024-09-01-preview"],
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/nginx.nginxplus/nginxdeployments/{}", "2024-11-01-preview"],
]
}

Expand Down Expand Up @@ -123,7 +123,7 @@ def url_parameters(self):
def query_parameters(self):
parameters = {
**self.serialize_query_param(
"api-version", "2024-09-01-preview",
"api-version", "2024-11-01-preview",
required=True,
),
}
Expand Down
8 changes: 4 additions & 4 deletions src/nginx/azext_nginx/aaz/latest/nginx/deployment/_update.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ class Update(AAZCommand):
"""

_aaz_info = {
"version": "2024-09-01-preview",
"version": "2024-11-01-preview",
"resources": [
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/nginx.nginxplus/nginxdeployments/{}", "2024-09-01-preview"],
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/nginx.nginxplus/nginxdeployments/{}", "2024-11-01-preview"],
]
}

Expand Down Expand Up @@ -377,7 +377,7 @@ def url_parameters(self):
def query_parameters(self):
parameters = {
**self.serialize_query_param(
"api-version", "2024-09-01-preview",
"api-version", "2024-11-01-preview",
required=True,
),
}
Expand Down Expand Up @@ -476,7 +476,7 @@ def url_parameters(self):
def query_parameters(self):
parameters = {
**self.serialize_query_param(
"api-version", "2024-09-01-preview",
"api-version", "2024-11-01-preview",
required=True,
),
}
Expand Down
4 changes: 2 additions & 2 deletions src/nginx/azext_nginx/aaz/latest/nginx/deployment/_wait.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class Wait(AAZWaitCommand):

_aaz_info = {
"resources": [
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/nginx.nginxplus/nginxdeployments/{}", "2024-09-01-preview"],
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/nginx.nginxplus/nginxdeployments/{}", "2024-11-01-preview"],
]
}

Expand Down Expand Up @@ -119,7 +119,7 @@ def url_parameters(self):
def query_parameters(self):
parameters = {
**self.serialize_query_param(
"api-version", "2024-09-01-preview",
"api-version", "2024-11-01-preview",
required=True,
),
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@

@register_command_group(
"nginx deployment api-key",
is_preview=True,
)
class __CMDGroup(AAZCommandGroup):
"""Managing Nginxaas deployment API Keys
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,15 @@

@register_command(
"nginx deployment api-key create",
is_preview=True,
)
class Create(AAZCommand):
"""Create an API Key for the Nginx deployment in order to access the dataplane API endpoint
"""

_aaz_info = {
"version": "2024-09-01-preview",
"version": "2024-11-01-preview",
"resources": [
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/nginx.nginxplus/nginxdeployments/{}/apikeys/{}", "2024-09-01-preview"],
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/nginx.nginxplus/nginxdeployments/{}/apikeys/{}", "2024-11-01-preview"],
]
}

Expand Down Expand Up @@ -149,7 +148,7 @@ def url_parameters(self):
def query_parameters(self):
parameters = {
**self.serialize_query_param(
"api-version", "2024-09-01-preview",
"api-version", "2024-11-01-preview",
required=True,
),
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,16 @@

@register_command(
"nginx deployment api-key delete",
is_preview=True,
confirmation="Are you sure you want to perform this operation?",
)
class Delete(AAZCommand):
"""Delete API key for Nginx deployment
"""

_aaz_info = {
"version": "2024-09-01-preview",
"version": "2024-11-01-preview",
"resources": [
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/nginx.nginxplus/nginxdeployments/{}/apikeys/{}", "2024-09-01-preview"],
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/nginx.nginxplus/nginxdeployments/{}/apikeys/{}", "2024-11-01-preview"],
]
}

Expand Down Expand Up @@ -133,7 +132,7 @@ def url_parameters(self):
def query_parameters(self):
parameters = {
**self.serialize_query_param(
"api-version", "2024-09-01-preview",
"api-version", "2024-11-01-preview",
required=True,
),
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,15 @@

@register_command(
"nginx deployment api-key list",
is_preview=True,
)
class List(AAZCommand):
"""List all API Keys of the given Nginx deployment
"""

_aaz_info = {
"version": "2024-09-01-preview",
"version": "2024-11-01-preview",
"resources": [
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/nginx.nginxplus/nginxdeployments/{}/apikeys", "2024-09-01-preview"],
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/nginx.nginxplus/nginxdeployments/{}/apikeys", "2024-11-01-preview"],
]
}

Expand Down Expand Up @@ -122,7 +121,7 @@ def url_parameters(self):
def query_parameters(self):
parameters = {
**self.serialize_query_param(
"api-version", "2024-09-01-preview",
"api-version", "2024-11-01-preview",
required=True,
),
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,15 @@

@register_command(
"nginx deployment api-key show",
is_preview=True,
)
class Show(AAZCommand):
"""Get the specified API Key of the given Nginx deployment
"""

_aaz_info = {
"version": "2024-09-01-preview",
"version": "2024-11-01-preview",
"resources": [
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/nginx.nginxplus/nginxdeployments/{}/apikeys/{}", "2024-09-01-preview"],
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/nginx.nginxplus/nginxdeployments/{}/apikeys/{}", "2024-11-01-preview"],
]
}

Expand Down Expand Up @@ -134,7 +133,7 @@ def url_parameters(self):
def query_parameters(self):
parameters = {
**self.serialize_query_param(
"api-version", "2024-09-01-preview",
"api-version", "2024-11-01-preview",
required=True,
),
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,15 @@

@register_command(
"nginx deployment api-key update",
is_preview=True,
)
class Update(AAZCommand):
"""Update an API Key for the Nginx deployment in order to access the dataplane API endpoint
"""

_aaz_info = {
"version": "2024-09-01-preview",
"version": "2024-11-01-preview",
"resources": [
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/nginx.nginxplus/nginxdeployments/{}/apikeys/{}", "2024-09-01-preview"],
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/nginx.nginxplus/nginxdeployments/{}/apikeys/{}", "2024-11-01-preview"],
]
}

Expand Down Expand Up @@ -168,7 +167,7 @@ def url_parameters(self):
def query_parameters(self):
parameters = {
**self.serialize_query_param(
"api-version", "2024-09-01-preview",
"api-version", "2024-11-01-preview",
required=True,
),
}
Expand Down Expand Up @@ -255,7 +254,7 @@ def url_parameters(self):
def query_parameters(self):
parameters = {
**self.serialize_query_param(
"api-version", "2024-09-01-preview",
"api-version", "2024-11-01-preview",
required=True,
),
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ class Create(AAZCommand):
"""

_aaz_info = {
"version": "2024-09-01-preview",
"version": "2024-11-01-preview",
"resources": [
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/nginx.nginxplus/nginxdeployments/{}/certificates/{}", "2024-09-01-preview"],
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/nginx.nginxplus/nginxdeployments/{}/certificates/{}", "2024-11-01-preview"],
]
}

Expand Down Expand Up @@ -64,14 +64,6 @@ def _build_arguments_schema(cls, *args, **kwargs):

# define Arg Group "Body"

_args_schema = cls._args_schema
_args_schema.location = AAZResourceLocationArg(
arg_group="Body",
fmt=AAZResourceLocationArgFormat(
resource_group_arg="resource_group",
),
)

# define Arg Group "Properties"

_args_schema = cls._args_schema
Expand Down Expand Up @@ -177,7 +169,7 @@ def url_parameters(self):
def query_parameters(self):
parameters = {
**self.serialize_query_param(
"api-version", "2024-09-01-preview",
"api-version", "2024-11-01-preview",
required=True,
),
}
Expand All @@ -202,7 +194,6 @@ def content(self):
typ=AAZObjectType,
typ_kwargs={"flags": {"client_flatten": True}}
)
_builder.set_prop("location", AAZStrType, ".location")
_builder.set_prop("properties", AAZObjectType)

properties = _builder.get(".properties")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ class Delete(AAZCommand):
"""

_aaz_info = {
"version": "2024-09-01-preview",
"version": "2024-11-01-preview",
"resources": [
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/nginx.nginxplus/nginxdeployments/{}/certificates/{}", "2024-09-01-preview"],
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/nginx.nginxplus/nginxdeployments/{}/certificates/{}", "2024-11-01-preview"],
]
}

Expand Down Expand Up @@ -156,7 +156,7 @@ def url_parameters(self):
def query_parameters(self):
parameters = {
**self.serialize_query_param(
"api-version", "2024-09-01-preview",
"api-version", "2024-11-01-preview",
required=True,
),
}
Expand Down
Loading
Loading