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
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def load_arguments_eh(self, _):
with self.argument_context('eventhubs eventhub') as c:
c.argument('event_hub_name', arg_type=name_type, id_part='child_name_1', completer=get_eventhubs_command_completion_list, help='Name of Eventhub')

for scope in ['eventhubs eventhub create']:
for scope in ['eventhubs eventhub create', 'eventhubs eventhub update']:
with self.argument_context(scope) as c:
c.argument('partition_count', type=int, help='Number of partitions created for the Event Hub. By default, allowed values are 2-32. Lower value of 1 is supported with Kafka enabled namespaces. In presence of a custom quota, the upper limit will match the upper limit of the quota.')
c.argument('status', arg_type=get_enum_type(['Active', 'Disabled', 'SendDisabled']), help='Status of Eventhub')
Expand All @@ -86,6 +86,7 @@ def load_arguments_eh(self, _):
c.argument('user_metadata', help="Gets and Sets Metadata of User.")
c.argument('timestamp_type', arg_type=get_enum_type(['Create', 'LogAppend']), help='Denotes the type of timestamp the message will hold.')
c.argument('min_compaction_lag_in_mins', type=int, arg_group='Retention-Description', options_list=['--min-lag', '--min-compaction-lag-in-mins'], help="The minimum time a message will remain ineligible for compaction in the log. This value is used when cleanupPolicy is Compact or DeleteOrCompact.")
c.argument('encoding', arg_group='Capture', options_list=['encoding'], help='Enumerates the possible values for the encoding format of capture description. Note: \'AvroDeflate\' will be deprecated in New API Version')
with self.argument_context('eventhubs eventhub list') as c:
c.argument('namespace_name', options_list=['--namespace-name'], id_part=None, help='Name of Namespace')

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ def _build_arguments_schema(cls, *args, **kwargs):
help="Enumerates the possible values for cleanup policy",
enum={"Compact": "Compact", "Delete": "Delete", "DeleteOrCompact": "DeleteOrCompact"},
)
_args_schema.min_compaction_lag_in_mins = AAZIntArg(
_args_schema.min_compaction_lag_time_in_minutes = AAZIntArg(
options=["--min-lag", "--min-compaction-lag-in-mins"],
arg_group="RetentionDescription",
help="The minimum time a message will remain ineligible for compaction in the log. This value is used when cleanupPolicy is Compact or DeleteOrCompact.",
Expand Down Expand Up @@ -340,7 +340,7 @@ def content(self):
retention_description = _builder.get(".properties.retentionDescription")
if retention_description is not None:
retention_description.set_prop("cleanupPolicy", AAZStrType, ".cleanup_policy")
retention_description.set_prop("minCompactionLagInMins", AAZIntType, ".min_compaction_lag_in_mins")
retention_description.set_prop("minCompactionLagTimeInMinutes", AAZIntType, ".min_compaction_lag_time_in_minutes")
retention_description.set_prop("retentionTimeInHours", AAZIntType, ".retention_time_in_hours")
retention_description.set_prop("tombstoneRetentionTimeInHours", AAZIntType, ".tombstone_retention_time_in_hours")

Expand Down Expand Up @@ -479,8 +479,8 @@ def _build_schema_on_200(cls):
retention_description.cleanup_policy = AAZStrType(
serialized_name="cleanupPolicy",
)
retention_description.min_compaction_lag_in_mins = AAZIntType(
serialized_name="minCompactionLagInMins",
retention_description.min_compaction_lag_time_in_minutes = AAZIntType(
serialized_name="minCompactionLagTimeInMinutes",
)
retention_description.retention_time_in_hours = AAZIntType(
serialized_name="retentionTimeInHours",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ def _build_arguments_schema(cls, *args, **kwargs):
nullable=True,
enum={"Compact": "Compact", "Delete": "Delete", "DeleteOrCompact": "DeleteOrCompact"},
)
_args_schema.min_compaction_lag_in_mins = AAZIntArg(
_args_schema.min_compaction_lag_time_in_minutes = AAZIntArg(
options=["--min-lag", "--min-compaction-lag-in-mins"],
arg_group="RetentionDescription",
help="The minimum time a message will remain ineligible for compaction in the log. This value is used when cleanupPolicy is Compact or DeleteOrCompact.",
Expand Down Expand Up @@ -488,7 +488,7 @@ def _update_instance(self, instance):
retention_description = _builder.get(".properties.retentionDescription")
if retention_description is not None:
retention_description.set_prop("cleanupPolicy", AAZStrType, ".cleanup_policy")
retention_description.set_prop("minCompactionLagInMins", AAZIntType, ".min_compaction_lag_in_mins")
retention_description.set_prop("minCompactionLagTimeInMinutes", AAZIntType, ".min_compaction_lag_time_in_minutes")
retention_description.set_prop("retentionTimeInHours", AAZIntType, ".retention_time_in_hours")
retention_description.set_prop("tombstoneRetentionTimeInHours", AAZIntType, ".tombstone_retention_time_in_hours")

Expand Down Expand Up @@ -637,8 +637,8 @@ def _build_schema_eventhub_read(cls, _schema):
retention_description.cleanup_policy = AAZStrType(
serialized_name="cleanupPolicy",
)
retention_description.min_compaction_lag_in_mins = AAZIntType(
serialized_name="minCompactionLagInMins",
retention_description.min_compaction_lag_time_in_minutes = AAZIntType(
serialized_name="minCompactionLagTimeInMinutes",
)
retention_description.retention_time_in_hours = AAZIntType(
serialized_name="retentionTimeInHours",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
#
# Code generated by aaz-dev-tools
# --------------------------------------------------------------------------------------------

# pylint: skip-file
# flake8: noqa

from azure.cli.core.aaz import *


@register_command_group(
"eventhubs namespace nsp-configuration",
)
class __CMDGroup(AAZCommandGroup):
"""Manage Network Security Perimeter Configuration
"""
pass


__all__ = ["__CMDGroup"]
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
#
# Code generated by aaz-dev-tools
# --------------------------------------------------------------------------------------------

# pylint: skip-file
# flake8: noqa

from .__cmd_group import *
from ._list import *
from ._show import *
Loading
Loading