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
69 changes: 69 additions & 0 deletions linter_exclusions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -401,6 +401,75 @@ codespace plan create:
confidentialledger managedccfs update:
rule_exclusions:
- missing_command_test_coverage
confluent organization environment:
rule_exclusions:
- require_wait_command_if_no_wait
confluent organization environment cluster:
rule_exclusions:
- require_wait_command_if_no_wait
confluent organization environment cluster connector:
rule_exclusions:
- require_wait_command_if_no_wait
confluent organization environment cluster topic:
rule_exclusions:
- require_wait_command_if_no_wait
confluent agreement default create:
rule_exclusions:
- missing_command_example
confluent organization environment create:
rule_exclusions:
- missing_command_example
parameters:
stream_governance_config:
rule_exclusions:
- option_length_too_long
confluent organization environment update:
rule_exclusions:
- missing_command_example
parameters:
stream_governance_config:
rule_exclusions:
- option_length_too_long
confluent organization environment cluster create:
rule_exclusions:
- missing_command_example
confluent organization environment cluster update:
rule_exclusions:
- missing_command_example
confluent organization environment cluster connector create:
rule_exclusions:
- missing_command_example
parameters:
connector_service_type_info:
rule_exclusions:
- option_length_too_long
confluent organization environment cluster connector update:
rule_exclusions:
- missing_command_example
parameters:
connector_service_type_info:
rule_exclusions:
- option_length_too_long
confluent organization environment cluster topic create:
rule_exclusions:
- missing_command_example
parameters:
partitions_reassignments:
rule_exclusions:
- option_length_too_long
confluent organization environment cluster topic update:
rule_exclusions:
- missing_command_example
parameters:
partitions_reassignments:
rule_exclusions:
- option_length_too_long
confluent validation orgvalidate:
rule_exclusions:
- missing_command_example
confluent validation orgvalidate-v2:
rule_exclusions:
- missing_command_example
containerapp env create:
parameters:
infrastructure_subnet_resource_id:
Expand Down
10 changes: 10 additions & 0 deletions src/confluent/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,16 @@

Release History
===============
1.2.0
+++++
* Updated to API version 2025-08-18-preview.
* Added `az confluent agreement list` and `az confluent agreement default create` commands for managing Confluent marketplace agreements.
* Added `az confluent organization environment create/delete/update` commands for managing environments within a Confluent organization.
* Added `az confluent organization environment cluster create/delete/update` commands for managing clusters within an environment.
* Added `az confluent organization environment cluster connector create/delete/list/show/update` commands for managing connectors within a cluster.
* Added `az confluent organization environment cluster topic create/delete/list/show/update` commands for managing topics within a cluster.
* Added `az confluent validation orgvalidate` and `az confluent validation orgvalidate-v2` commands for validating Confluent organization configurations.

1.1.0
+++++
* Updated az confluent organization create command to accept term_id as an optional parameter.
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(
"confluent agreement",
)
class __CMDGroup(AAZCommandGroup):
"""Manage Agreement
"""
pass


__all__ = ["__CMDGroup"]
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# --------------------------------------------------------------------------------------------
# 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 *
Original file line number Diff line number Diff line change
@@ -0,0 +1,205 @@
# --------------------------------------------------------------------------------------------
# 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(
"confluent agreement list",
)
class List(AAZCommand):
"""List Confluent marketplace agreements in the subscription.
"""

_aaz_info = {
"version": "2024-02-13",
"resources": [
["mgmt-plane", "/subscriptions/{}/providers/microsoft.confluent/agreements", "2024-02-13"],
]
}

AZ_SUPPORT_PAGINATION = True

def _handler(self, command_args):
super()._handler(command_args)
return self.build_paging(self._execute_operations, self._output)

_args_schema = None

@classmethod
def _build_arguments_schema(cls, *args, **kwargs):
if cls._args_schema is not None:
return cls._args_schema
cls._args_schema = super()._build_arguments_schema(*args, **kwargs)

# define Arg Group ""
return cls._args_schema

def _execute_operations(self):
self.pre_operations()
self.MarketplaceAgreementsList(ctx=self.ctx)()
self.post_operations()

@register_callback
def pre_operations(self):
pass

@register_callback
def post_operations(self):
pass

def _output(self, *args, **kwargs):
result = self.deserialize_output(self.ctx.vars.instance.value, client_flatten=True)
next_link = self.deserialize_output(self.ctx.vars.instance.next_link)
return result, next_link

class MarketplaceAgreementsList(AAZHttpOperation):
CLIENT_TYPE = "MgmtClient"

def __call__(self, *args, **kwargs):
request = self.make_request()
session = self.client.send_request(request=request, stream=False, **kwargs)
if session.http_response.status_code in [200]:
return self.on_200(session)

return self.on_error(session.http_response)

@property
def url(self):
return self.client.format_url(
"/subscriptions/{subscriptionId}/providers/Microsoft.Confluent/agreements",
**self.url_parameters
)

@property
def method(self):
return "GET"

@property
def error_format(self):
return "ODataV4Format"

@property
def url_parameters(self):
parameters = {
**self.serialize_url_param(
"subscriptionId", self.ctx.subscription_id,
required=True,
),
}
return parameters

@property
def query_parameters(self):
parameters = {
**self.serialize_query_param(
"api-version", "2024-02-13",
required=True,
),
}
return parameters

@property
def header_parameters(self):
parameters = {
**self.serialize_header_param(
"Accept", "application/json",
),
}
return parameters

def on_200(self, session):
data = self.deserialize_http_content(session)
self.ctx.set_var(
"instance",
data,
schema_builder=self._build_schema_on_200
)

_schema_on_200 = None

@classmethod
def _build_schema_on_200(cls):
if cls._schema_on_200 is not None:
return cls._schema_on_200

cls._schema_on_200 = AAZObjectType()

_schema_on_200 = cls._schema_on_200
_schema_on_200.next_link = AAZStrType(
serialized_name="nextLink",
)
_schema_on_200.value = AAZListType()

value = cls._schema_on_200.value
value.Element = AAZObjectType()

_element = cls._schema_on_200.value.Element
_element.id = AAZStrType(
flags={"read_only": True},
)
_element.name = AAZStrType(
flags={"read_only": True},
)
_element.properties = AAZObjectType(
flags={"client_flatten": True},
)
_element.system_data = AAZObjectType(
serialized_name="systemData",
flags={"read_only": True},
)
_element.type = AAZStrType(
flags={"read_only": True},
)

properties = cls._schema_on_200.value.Element.properties
properties.accepted = AAZBoolType()
properties.license_text_link = AAZStrType(
serialized_name="licenseTextLink",
)
properties.plan = AAZStrType()
properties.privacy_policy_link = AAZStrType(
serialized_name="privacyPolicyLink",
)
properties.product = AAZStrType()
properties.publisher = AAZStrType()
properties.retrieve_datetime = AAZStrType(
serialized_name="retrieveDatetime",
)
properties.signature = AAZStrType()

system_data = cls._schema_on_200.value.Element.system_data
system_data.created_at = AAZStrType(
serialized_name="createdAt",
)
system_data.created_by = AAZStrType(
serialized_name="createdBy",
)
system_data.created_by_type = AAZStrType(
serialized_name="createdByType",
)
system_data.last_modified_at = AAZStrType(
serialized_name="lastModifiedAt",
)
system_data.last_modified_by = AAZStrType(
serialized_name="lastModifiedBy",
)
system_data.last_modified_by_type = AAZStrType(
serialized_name="lastModifiedByType",
)

return cls._schema_on_200


class _ListHelper:
"""Helper class for List"""


__all__ = ["List"]
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(
"confluent agreement default",
)
class __CMDGroup(AAZCommandGroup):
"""Manage Default
"""
pass


__all__ = ["__CMDGroup"]
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# --------------------------------------------------------------------------------------------
# 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 ._create import *
Loading
Loading