diff --git a/src/monitor-pipeline-group/HISTORY.rst b/src/monitor-pipeline-group/HISTORY.rst new file mode 100644 index 0000000000..abbff5a61a --- /dev/null +++ b/src/monitor-pipeline-group/HISTORY.rst @@ -0,0 +1,8 @@ +.. :changelog: + +Release History +=============== + +1.0.0b1 +++++++ +* Initial release. \ No newline at end of file diff --git a/src/monitor-pipeline-group/README.md b/src/monitor-pipeline-group/README.md new file mode 100644 index 0000000000..e28ee4670e --- /dev/null +++ b/src/monitor-pipeline-group/README.md @@ -0,0 +1,31 @@ +# Azure CLI monitor-pipeline-group Extension # +This is an extension to Azure CLI to manage Azure Monitor Pipeline Group (Microsoft.Monitor/pipelineGroups) resources. + +## How to use ## +Install this extension using the below CLI command +``` +az extension add --name monitor-pipeline-group +``` + +### Included Features +#### pipeline-group +##### Create +``` +az monitor pipeline-group create --resource-group "myResourceGroup" --location "eastus" --name "myPipeline" --exporters @exporters.json --processors @processors.json --receivers @receivers.json --service @service.json --network-config [] --replicas 1 --extended-location @extendedLocation.json +``` +##### Show +``` +az monitor pipeline-group show --resource-group "myResourceGroup" --name "myPipeline" +``` +##### List +``` +az monitor pipeline-group list --resource-group "myResourceGroup" +``` +##### Update +``` +az monitor pipeline-group update --resource-group "myResourceGroup" --name "myPipeline" --service @service.json --exporters @exporters.json --processors @processors.json --receivers @receivers.json --service @service.json +``` +##### Delete +``` +az monitor pipeline-group delete --resource-group "myResourceGroup" --name "myPipeline" +``` \ No newline at end of file diff --git a/src/monitor-pipeline-group/azext_monitor_pipeline_group/__init__.py b/src/monitor-pipeline-group/azext_monitor_pipeline_group/__init__.py new file mode 100644 index 0000000000..79d6fd0456 --- /dev/null +++ b/src/monitor-pipeline-group/azext_monitor_pipeline_group/__init__.py @@ -0,0 +1,42 @@ +# -------------------------------------------------------------------------------------------- +# 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 +# -------------------------------------------------------------------------------------------- + +from azure.cli.core import AzCommandsLoader +from azext_monitor_pipeline_group._help import helps # pylint: disable=unused-import + + +class MonitorPipelineGroupCommandsLoader(AzCommandsLoader): + + def __init__(self, cli_ctx=None): + from azure.cli.core.commands import CliCommandType + custom_command_type = CliCommandType( + operations_tmpl='azext_monitor_pipeline_group.custom#{}') + super().__init__(cli_ctx=cli_ctx, + custom_command_type=custom_command_type) + + def load_command_table(self, args): + from azext_monitor_pipeline_group.commands import load_command_table + from azure.cli.core.aaz import load_aaz_command_table + try: + from . import aaz + except ImportError: + aaz = None + if aaz: + load_aaz_command_table( + loader=self, + aaz_pkg_name=aaz.__name__, + args=args + ) + load_command_table(self, args) + return self.command_table + + def load_arguments(self, command): + from azext_monitor_pipeline_group._params import load_arguments + load_arguments(self, command) + + +COMMAND_LOADER_CLS = MonitorPipelineGroupCommandsLoader diff --git a/src/monitor-pipeline-group/azext_monitor_pipeline_group/_help.py b/src/monitor-pipeline-group/azext_monitor_pipeline_group/_help.py new file mode 100644 index 0000000000..126d5d0071 --- /dev/null +++ b/src/monitor-pipeline-group/azext_monitor_pipeline_group/_help.py @@ -0,0 +1,11 @@ +# -------------------------------------------------------------------------------------------- +# 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: disable=line-too-long +# pylint: disable=too-many-lines + +from knack.help_files import helps # pylint: disable=unused-import diff --git a/src/monitor-pipeline-group/azext_monitor_pipeline_group/_params.py b/src/monitor-pipeline-group/azext_monitor_pipeline_group/_params.py new file mode 100644 index 0000000000..cfcec717c9 --- /dev/null +++ b/src/monitor-pipeline-group/azext_monitor_pipeline_group/_params.py @@ -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: disable=too-many-lines +# pylint: disable=too-many-statements + + +def load_arguments(self, _): # pylint: disable=unused-argument + pass diff --git a/src/monitor-pipeline-group/azext_monitor_pipeline_group/aaz/__init__.py b/src/monitor-pipeline-group/azext_monitor_pipeline_group/aaz/__init__.py new file mode 100644 index 0000000000..5757aea317 --- /dev/null +++ b/src/monitor-pipeline-group/azext_monitor_pipeline_group/aaz/__init__.py @@ -0,0 +1,6 @@ +# -------------------------------------------------------------------------------------------- +# 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 +# -------------------------------------------------------------------------------------------- diff --git a/src/monitor-pipeline-group/azext_monitor_pipeline_group/aaz/latest/__init__.py b/src/monitor-pipeline-group/azext_monitor_pipeline_group/aaz/latest/__init__.py new file mode 100644 index 0000000000..f6acc11aa4 --- /dev/null +++ b/src/monitor-pipeline-group/azext_monitor_pipeline_group/aaz/latest/__init__.py @@ -0,0 +1,10 @@ +# -------------------------------------------------------------------------------------------- +# 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 + diff --git a/src/monitor-pipeline-group/azext_monitor_pipeline_group/aaz/latest/monitor/__cmd_group.py b/src/monitor-pipeline-group/azext_monitor_pipeline_group/aaz/latest/monitor/__cmd_group.py new file mode 100644 index 0000000000..b7be6b843b --- /dev/null +++ b/src/monitor-pipeline-group/azext_monitor_pipeline_group/aaz/latest/monitor/__cmd_group.py @@ -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( + "monitor", +) +class __CMDGroup(AAZCommandGroup): + """Manage the Azure Monitor Service. + """ + pass + + +__all__ = ["__CMDGroup"] diff --git a/src/monitor-pipeline-group/azext_monitor_pipeline_group/aaz/latest/monitor/__init__.py b/src/monitor-pipeline-group/azext_monitor_pipeline_group/aaz/latest/monitor/__init__.py new file mode 100644 index 0000000000..5a9d61963d --- /dev/null +++ b/src/monitor-pipeline-group/azext_monitor_pipeline_group/aaz/latest/monitor/__init__.py @@ -0,0 +1,11 @@ +# -------------------------------------------------------------------------------------------- +# 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 * diff --git a/src/monitor-pipeline-group/azext_monitor_pipeline_group/aaz/latest/monitor/pipeline_group/__cmd_group.py b/src/monitor-pipeline-group/azext_monitor_pipeline_group/aaz/latest/monitor/pipeline_group/__cmd_group.py new file mode 100644 index 0000000000..15641a94fb --- /dev/null +++ b/src/monitor-pipeline-group/azext_monitor_pipeline_group/aaz/latest/monitor/pipeline_group/__cmd_group.py @@ -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( + "monitor pipeline-group", +) +class __CMDGroup(AAZCommandGroup): + """Manage Pipeline Groups + """ + pass + + +__all__ = ["__CMDGroup"] diff --git a/src/monitor-pipeline-group/azext_monitor_pipeline_group/aaz/latest/monitor/pipeline_group/__init__.py b/src/monitor-pipeline-group/azext_monitor_pipeline_group/aaz/latest/monitor/pipeline_group/__init__.py new file mode 100644 index 0000000000..db73033039 --- /dev/null +++ b/src/monitor-pipeline-group/azext_monitor_pipeline_group/aaz/latest/monitor/pipeline_group/__init__.py @@ -0,0 +1,17 @@ +# -------------------------------------------------------------------------------------------- +# 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 * +from ._delete import * +from ._list import * +from ._show import * +from ._update import * +from ._wait import * diff --git a/src/monitor-pipeline-group/azext_monitor_pipeline_group/aaz/latest/monitor/pipeline_group/_create.py b/src/monitor-pipeline-group/azext_monitor_pipeline_group/aaz/latest/monitor/pipeline_group/_create.py new file mode 100644 index 0000000000..55fa8dbf58 --- /dev/null +++ b/src/monitor-pipeline-group/azext_monitor_pipeline_group/aaz/latest/monitor/pipeline_group/_create.py @@ -0,0 +1,1160 @@ +# -------------------------------------------------------------------------------------------- +# 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( + "monitor pipeline-group create", +) +class Create(AAZCommand): + """Create a pipeline group instance. + + :example: Create a PipelineGroup instance using UDP receiver + az monitor pipeline-group create --resource-group myResourceGroup --pipeline-group-name plGroup1 --location eastus2 --extended-location "{name:/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/microsoft.extendedlocation/customlocations/myTestCustomLocation,type:CustomLocation}" --tags "{tag1:A,tag2:B}" --receivers "[{type:UDP,name:udp-receiver1,udp:{endpoint:'0.0.0.0:518',encoding:utf-8}}]" --processors "[]" --exporters "[{type:AzureMonitorWorkspaceLogs,name:my-workspace-logs-exporter1,azure-monitor-workspace-logs:{api:{data-collection-endpoint-url:'https://logs-myingestion-eb0s.eastus-1.ingest.monitor.azure.com',stream:Custom-MyTableRawData_CL,data-collection-rule:dcr-00000000000000000000000000000000,schema:{record-map:[{from:body,to:Body},{from:severity_text,to:SeverityText},{from:time_unix_nano,to:TimeGenerated}]}},concurrency:{worker-count:4,batch-queue-size:100}}}]" --service "{pipelines:[{name:MyPipelineForLogs1,type:logs,receivers:[udp-receiver1],processors:[],exporters:[my-workspace-logs-exporter1]}]}" + """ + + _aaz_info = { + "version": "2023-10-01-preview", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.monitor/pipelinegroups/{}", "2023-10-01-preview"], + ] + } + + AZ_SUPPORT_NO_WAIT = True + + def _handler(self, command_args): + super()._handler(command_args) + return self.build_lro_poller(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 "" + + _args_schema = cls._args_schema + _args_schema.pipeline_group_name = AAZStrArg( + options=["-n", "--name", "--pipeline-group-name"], + help="The name of pipeline group. The name is case insensitive.", + required=True, + fmt=AAZStrArgFormat( + pattern="^(?!-)[a-zA-Z0-9-]{3,10}[^-]$", + ), + ) + _args_schema.resource_group = AAZResourceGroupNameArg( + required=True, + ) + + # define Arg Group "Properties" + + _args_schema = cls._args_schema + _args_schema.exporters = AAZListArg( + options=["--exporters"], + arg_group="Properties", + help="The exporters specified for a pipeline group instance.", + ) + _args_schema.network_config = AAZListArg( + options=["--network-config"], + arg_group="Properties", + help="Networking configurations for the pipeline group instance.", + ) + _args_schema.processors = AAZListArg( + options=["--processors"], + arg_group="Properties", + help="The processors specified for a pipeline group instance.", + ) + _args_schema.receivers = AAZListArg( + options=["--receivers"], + arg_group="Properties", + help="The receivers specified for a pipeline group instance.", + ) + _args_schema.replicas = AAZIntArg( + options=["--replicas"], + arg_group="Properties", + help="Defines the amount of replicas of the pipeline group instance.", + ) + _args_schema.service = AAZObjectArg( + options=["--service"], + arg_group="Properties", + help="The service section for a given pipeline group instance.", + ) + + exporters = cls._args_schema.exporters + exporters.Element = AAZObjectArg() + + _element = cls._args_schema.exporters.Element + _element.azure_monitor_workspace_logs = AAZObjectArg( + options=["azure-monitor-workspace-logs"], + help="Azure Monitor Workspace Logs specific configurations.", + ) + _element.name = AAZStrArg( + options=["name"], + help="The name of exporter.", + required=True, + fmt=AAZStrArgFormat( + pattern="^(?!-)[a-zA-Z0-9-]{3,32}[^-]$", + ), + ) + _element.tcp = AAZObjectArg( + options=["tcp"], + help="TCP based exporter. Used for pipelineGroup exporter.", + ) + _element.type = AAZStrArg( + options=["type"], + help="The type of exporter.", + required=True, + enum={"AzureMonitorWorkspaceLogs": "AzureMonitorWorkspaceLogs", "PipelineGroup": "PipelineGroup"}, + ) + + azure_monitor_workspace_logs = cls._args_schema.exporters.Element.azure_monitor_workspace_logs + azure_monitor_workspace_logs.api = AAZObjectArg( + options=["api"], + help="API configurations for Azure Monitor workspace exporter.", + required=True, + ) + azure_monitor_workspace_logs.cache = AAZObjectArg( + options=["cache"], + help="Cache configurations.", + ) + azure_monitor_workspace_logs.concurrency = AAZObjectArg( + options=["concurrency"], + help="Concurrency configuration for the exporter.", + ) + + api = cls._args_schema.exporters.Element.azure_monitor_workspace_logs.api + api.data_collection_endpoint_url = AAZStrArg( + options=["data-collection-endpoint-url"], + help="Data collection endpoint ingestion url.", + required=True, + fmt=AAZStrArgFormat( + pattern="^(https?)://[a-zA-Z0-9-]+(\\.[a-zA-Z0-9-]+)*$", + ), + ) + api.data_collection_rule = AAZStrArg( + options=["data-collection-rule"], + help="Data Collection Rule (DCR) immutable id.", + required=True, + fmt=AAZStrArgFormat( + pattern="^(?!-)[a-zA-Z0-9.-]{1,1000}[^-]$", + ), + ) + api.schema = AAZObjectArg( + options=["schema"], + help="The schema mapping for incoming data.", + required=True, + ) + api.stream = AAZStrArg( + options=["stream"], + help="Stream name in destination. Azure Monitor stream is related to the destination table.", + required=True, + fmt=AAZStrArgFormat( + pattern="^(?!-)[a-zA-Z0-9._-]{1,1000}[^-]$", + ), + ) + + schema = cls._args_schema.exporters.Element.azure_monitor_workspace_logs.api.schema + schema.record_map = AAZListArg( + options=["record-map"], + help="Record Map.", + required=True, + ) + schema.resource_map = AAZListArg( + options=["resource-map"], + help="Resource Map captures information about the entity for which telemetry is recorded. For example, metrics exposed by a Kubernetes container can be linked to a resource that specifies the cluster, namespace, pod, and container name.Resource may capture an entire hierarchy of entity identification. It may describe the host in the cloud and specific container or an application running in the process.", + ) + schema.scope_map = AAZListArg( + options=["scope-map"], + help="A scope map is a logical unit of the application code with which the emitted telemetry can be associated.", + ) + + record_map = cls._args_schema.exporters.Element.azure_monitor_workspace_logs.api.schema.record_map + record_map.Element = AAZObjectArg() + + _element = cls._args_schema.exporters.Element.azure_monitor_workspace_logs.api.schema.record_map.Element + _element.from_ = AAZStrArg( + options=["from"], + help="Record Map Key.", + required=True, + ) + _element.to = AAZStrArg( + options=["to"], + help="Record Map Value.", + required=True, + ) + + resource_map = cls._args_schema.exporters.Element.azure_monitor_workspace_logs.api.schema.resource_map + resource_map.Element = AAZObjectArg() + + _element = cls._args_schema.exporters.Element.azure_monitor_workspace_logs.api.schema.resource_map.Element + _element.from_ = AAZStrArg( + options=["from"], + help="Resource Map Key.", + required=True, + ) + _element.to = AAZStrArg( + options=["to"], + help="Resource Map Value.", + required=True, + ) + + scope_map = cls._args_schema.exporters.Element.azure_monitor_workspace_logs.api.schema.scope_map + scope_map.Element = AAZObjectArg() + + _element = cls._args_schema.exporters.Element.azure_monitor_workspace_logs.api.schema.scope_map.Element + _element.from_ = AAZStrArg( + options=["from"], + help="Scope Map Key.", + required=True, + ) + _element.to = AAZStrArg( + options=["to"], + help="Scope Map Value.", + required=True, + ) + + cache = cls._args_schema.exporters.Element.azure_monitor_workspace_logs.cache + cache.max_storage_usage = AAZIntArg( + options=["max-storage-usage"], + help="Max storage usage in megabytes.", + ) + cache.retention_period = AAZIntArg( + options=["retention-period"], + help="Retention period in minutes.", + ) + + concurrency = cls._args_schema.exporters.Element.azure_monitor_workspace_logs.concurrency + concurrency.batch_queue_size = AAZIntArg( + options=["batch-queue-size"], + help="Size of the queue for log batches.", + default=100, + ) + concurrency.worker_count = AAZIntArg( + options=["worker-count"], + help="Number of parallel workers processing the log queues.", + default=4, + ) + + tcp = cls._args_schema.exporters.Element.tcp + tcp.url = AAZStrArg( + options=["url"], + help="TCP url to export.", + required=True, + fmt=AAZStrArgFormat( + pattern="^(https?)://[a-zA-Z0-9-]+(\\.[a-zA-Z0-9-]+)*$", + ), + ) + + network_config = cls._args_schema.network_config + network_config.Element = AAZObjectArg() + + _element = cls._args_schema.network_config.Element + _element.external_networking_mode = AAZStrArg( + options=["external-networking-mode"], + help="External networking mode.", + required=True, + enum={"LoadBalancerOnly": "LoadBalancerOnly"}, + ) + _element.host = AAZStrArg( + options=["host"], + help="The address exposed on the cluster. Example: azuremonitorpipeline.contoso.com.", + fmt=AAZStrArgFormat( + pattern="^[a-zA-Z0-9-\\.]+$", + ), + ) + _element.routes = AAZListArg( + options=["routes"], + help="Networking routes configuration.", + required=True, + ) + + routes = cls._args_schema.network_config.Element.routes + routes.Element = AAZObjectArg() + + _element = cls._args_schema.network_config.Element.routes.Element + _element.path = AAZStrArg( + options=["path"], + help="Route path.", + fmt=AAZStrArgFormat( + pattern="^[a-zA-Z0-9-/\\.]+$", + ), + ) + _element.port = AAZIntArg( + options=["port"], + help="The port that will be configured externally. If not specified, it will use the port from the receiver definition.", + fmt=AAZIntArgFormat( + maximum=65535, + minimum=1, + ), + ) + _element.receiver = AAZStrArg( + options=["receiver"], + help="The name of the previously defined receiver.", + required=True, + fmt=AAZStrArgFormat( + pattern="^(?!-)[a-zA-Z0-9-]{3,32}[^-]$", + ), + ) + _element.subdomain = AAZStrArg( + options=["subdomain"], + help="Route subdomain.", + fmt=AAZStrArgFormat( + pattern="^[a-zA-Z0-9-\\.]+$", + ), + ) + + processors = cls._args_schema.processors + processors.Element = AAZObjectArg() + + _element = cls._args_schema.processors.Element + _element.batch = AAZObjectArg( + options=["batch"], + help="Batch processor configurations.", + ) + _element.name = AAZStrArg( + options=["name"], + help="The name of processor.", + required=True, + fmt=AAZStrArgFormat( + pattern="^(?!-)[a-zA-Z0-9-]{3,32}[^-]$", + ), + ) + _element.type = AAZStrArg( + options=["type"], + help="The type of processor.", + required=True, + enum={"Batch": "Batch"}, + ) + + batch = cls._args_schema.processors.Element.batch + batch.batch_size = AAZIntArg( + options=["batch-size"], + help="Size of the batch.", + default=8192, + fmt=AAZIntArgFormat( + maximum=100000, + minimum=10, + ), + ) + batch.timeout = AAZIntArg( + options=["timeout"], + help="Timeout in milliseconds.", + default=200, + fmt=AAZIntArgFormat( + maximum=60000, + minimum=10, + ), + ) + + receivers = cls._args_schema.receivers + receivers.Element = AAZObjectArg() + + _element = cls._args_schema.receivers.Element + _element.name = AAZStrArg( + options=["name"], + help="The name of receiver.", + required=True, + fmt=AAZStrArgFormat( + pattern="^(?!-)[a-zA-Z0-9-]{3,32}[^-]$", + ), + ) + _element.otlp = AAZObjectArg( + options=["otlp"], + help="OTLP receiver configurations. This field is mandatory for OTLP and pipelineGroup receivers.", + ) + _element.syslog = AAZObjectArg( + options=["syslog"], + help="Syslog configurations. This field is mandatory for syslog type receivers.", + ) + _element.type = AAZStrArg( + options=["type"], + help="The type of receiver.", + required=True, + enum={"Ama": "Ama", "OTLP": "OTLP", "PipelineGroup": "PipelineGroup", "Syslog": "Syslog", "UDP": "UDP"}, + ) + _element.udp = AAZObjectArg( + options=["udp"], + help="UDP receiver configurations. This field is mandatory for UDP receivers.", + ) + + otlp = cls._args_schema.receivers.Element.otlp + otlp.endpoint = AAZStrArg( + options=["endpoint"], + help="OTLP GRPC endpoint definition. Example: 0.0.0.0:.", + required=True, + fmt=AAZStrArgFormat( + pattern="^[a-zA-Z0-9-\\.]+:[0-9]+$", + ), + ) + + syslog = cls._args_schema.receivers.Element.syslog + syslog.endpoint = AAZStrArg( + options=["endpoint"], + help="Syslog receiver endpoint definition. Example: 0.0.0.0:.", + required=True, + fmt=AAZStrArgFormat( + pattern="^[a-zA-Z0-9-\\.]+:[0-9]+$", + ), + ) + syslog.protocol = AAZStrArg( + options=["protocol"], + help="Protocol to parse syslog messages. Default rfc3164", + default="rfc3164", + enum={"rfc3164": "rfc3164", "rfc5424": "rfc5424"}, + ) + + udp = cls._args_schema.receivers.Element.udp + udp.encoding = AAZStrArg( + options=["encoding"], + help="The encoding of the stream being received.", + default="nop", + enum={"ascii": "ascii", "big5": "big5", "nop": "nop", "utf-16be": "utf-16be", "utf-16le": "utf-16le", "utf-8": "utf-8"}, + ) + udp.endpoint = AAZStrArg( + options=["endpoint"], + help="TCP endpoint definition. Example: 0.0.0.0:.", + required=True, + fmt=AAZStrArgFormat( + pattern="^[a-zA-Z0-9-\\.]+:[0-9]+$", + ), + ) + udp.read_queue_length = AAZIntArg( + options=["read-queue-length"], + help="Max read queue length.", + default=1000, + fmt=AAZIntArgFormat( + maximum=100000, + minimum=100, + ), + ) + + service = cls._args_schema.service + service.persistence = AAZObjectArg( + options=["persistence"], + help="Persistence options to all pipelines in the instance.", + ) + service.pipelines = AAZListArg( + options=["pipelines"], + help="Pipelines belonging to a given pipeline group.", + required=True, + ) + + persistence = cls._args_schema.service.persistence + persistence.persistent_volume_name = AAZStrArg( + options=["persistent-volume-name"], + help="The name of the mounted persistent volume.", + required=True, + ) + + pipelines = cls._args_schema.service.pipelines + pipelines.Element = AAZObjectArg() + + _element = cls._args_schema.service.pipelines.Element + _element.exporters = AAZListArg( + options=["exporters"], + help="Reference to exporters configured for the pipeline.", + required=True, + ) + _element.name = AAZStrArg( + options=["name"], + help="Name of the pipeline.", + required=True, + fmt=AAZStrArgFormat( + pattern="^(?!-)[a-zA-Z0-9-]{3,32}[^-]$", + ), + ) + _element.processors = AAZListArg( + options=["processors"], + help="Reference to processors configured for the pipeline.", + ) + _element.receivers = AAZListArg( + options=["receivers"], + help="Reference to receivers configured for the pipeline.", + required=True, + ) + _element.type = AAZStrArg( + options=["type"], + help="The type of pipeline", + required=True, + enum={"logs": "logs"}, + ) + + exporters = cls._args_schema.service.pipelines.Element.exporters + exporters.Element = AAZStrArg() + + processors = cls._args_schema.service.pipelines.Element.processors + processors.Element = AAZStrArg() + + receivers = cls._args_schema.service.pipelines.Element.receivers + receivers.Element = AAZStrArg() + + # define Arg Group "Resource" + + _args_schema = cls._args_schema + _args_schema.extended_location = AAZObjectArg( + options=["--extended-location"], + arg_group="Resource", + help="The extended location for given pipeline group.", + ) + _args_schema.location = AAZResourceLocationArg( + arg_group="Resource", + help="The geo-location where the resource lives", + required=True, + fmt=AAZResourceLocationArgFormat( + resource_group_arg="resource_group", + ), + ) + _args_schema.tags = AAZDictArg( + options=["--tags"], + arg_group="Resource", + help="Resource tags.", + ) + + extended_location = cls._args_schema.extended_location + extended_location.name = AAZStrArg( + options=["name"], + help="The name of the extended location.", + required=True, + ) + extended_location.type = AAZStrArg( + options=["type"], + help="The type of the extended location.", + required=True, + enum={"CustomLocation": "CustomLocation", "EdgeZone": "EdgeZone"}, + ) + + tags = cls._args_schema.tags + tags.Element = AAZStrArg() + return cls._args_schema + + def _execute_operations(self): + self.pre_operations() + yield self.PipelineGroupsCreateOrUpdate(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, client_flatten=True) + return result + + class PipelineGroupsCreateOrUpdate(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 [202]: + return self.client.build_lro_polling( + self.ctx.args.no_wait, + session, + self.on_200_201, + self.on_error, + lro_options={"final-state-via": "azure-async-operation"}, + path_format_arguments=self.url_parameters, + ) + if session.http_response.status_code in [200, 201]: + return self.client.build_lro_polling( + self.ctx.args.no_wait, + session, + self.on_200_201, + self.on_error, + lro_options={"final-state-via": "azure-async-operation"}, + path_format_arguments=self.url_parameters, + ) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Monitor/pipelineGroups/{pipelineGroupName}", + **self.url_parameters + ) + + @property + def method(self): + return "PUT" + + @property + def error_format(self): + return "MgmtErrorFormat" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "pipelineGroupName", self.ctx.args.pipeline_group_name, + required=True, + ), + **self.serialize_url_param( + "resourceGroupName", self.ctx.args.resource_group, + required=True, + ), + **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", "2023-10-01-preview", + required=True, + ), + } + return parameters + + @property + def header_parameters(self): + parameters = { + **self.serialize_header_param( + "Content-Type", "application/json", + ), + **self.serialize_header_param( + "Accept", "application/json", + ), + } + return parameters + + @property + def content(self): + _content_value, _builder = self.new_content_builder( + self.ctx.args, + typ=AAZObjectType, + typ_kwargs={"flags": {"required": True, "client_flatten": True}} + ) + _builder.set_prop("extendedLocation", AAZObjectType, ".extended_location") + _builder.set_prop("location", AAZStrType, ".location", typ_kwargs={"flags": {"required": True}}) + _builder.set_prop("properties", AAZObjectType, typ_kwargs={"flags": {"client_flatten": True}}) + _builder.set_prop("tags", AAZDictType, ".tags") + + extended_location = _builder.get(".extendedLocation") + if extended_location is not None: + extended_location.set_prop("name", AAZStrType, ".name", typ_kwargs={"flags": {"required": True}}) + extended_location.set_prop("type", AAZStrType, ".type", typ_kwargs={"flags": {"required": True}}) + + properties = _builder.get(".properties") + if properties is not None: + properties.set_prop("exporters", AAZListType, ".exporters", typ_kwargs={"flags": {"required": True}}) + properties.set_prop("networkingConfigurations", AAZListType, ".network_config") + properties.set_prop("processors", AAZListType, ".processors", typ_kwargs={"flags": {"required": True}}) + properties.set_prop("receivers", AAZListType, ".receivers", typ_kwargs={"flags": {"required": True}}) + properties.set_prop("replicas", AAZIntType, ".replicas") + properties.set_prop("service", AAZObjectType, ".service", typ_kwargs={"flags": {"required": True}}) + + exporters = _builder.get(".properties.exporters") + if exporters is not None: + exporters.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.exporters[]") + if _elements is not None: + _elements.set_prop("azureMonitorWorkspaceLogs", AAZObjectType, ".azure_monitor_workspace_logs") + _elements.set_prop("name", AAZStrType, ".name", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("tcp", AAZObjectType, ".tcp") + _elements.set_prop("type", AAZStrType, ".type", typ_kwargs={"flags": {"required": True}}) + + azure_monitor_workspace_logs = _builder.get(".properties.exporters[].azureMonitorWorkspaceLogs") + if azure_monitor_workspace_logs is not None: + azure_monitor_workspace_logs.set_prop("api", AAZObjectType, ".api", typ_kwargs={"flags": {"required": True}}) + azure_monitor_workspace_logs.set_prop("cache", AAZObjectType, ".cache") + azure_monitor_workspace_logs.set_prop("concurrency", AAZObjectType, ".concurrency") + + api = _builder.get(".properties.exporters[].azureMonitorWorkspaceLogs.api") + if api is not None: + api.set_prop("dataCollectionEndpointUrl", AAZStrType, ".data_collection_endpoint_url", typ_kwargs={"flags": {"required": True}}) + api.set_prop("dataCollectionRule", AAZStrType, ".data_collection_rule", typ_kwargs={"flags": {"required": True}}) + api.set_prop("schema", AAZObjectType, ".schema", typ_kwargs={"flags": {"required": True}}) + api.set_prop("stream", AAZStrType, ".stream", typ_kwargs={"flags": {"required": True}}) + + schema = _builder.get(".properties.exporters[].azureMonitorWorkspaceLogs.api.schema") + if schema is not None: + schema.set_prop("recordMap", AAZListType, ".record_map", typ_kwargs={"flags": {"required": True}}) + schema.set_prop("resourceMap", AAZListType, ".resource_map") + schema.set_prop("scopeMap", AAZListType, ".scope_map") + + record_map = _builder.get(".properties.exporters[].azureMonitorWorkspaceLogs.api.schema.recordMap") + if record_map is not None: + record_map.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.exporters[].azureMonitorWorkspaceLogs.api.schema.recordMap[]") + if _elements is not None: + _elements.set_prop("from", AAZStrType, ".from_", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("to", AAZStrType, ".to", typ_kwargs={"flags": {"required": True}}) + + resource_map = _builder.get(".properties.exporters[].azureMonitorWorkspaceLogs.api.schema.resourceMap") + if resource_map is not None: + resource_map.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.exporters[].azureMonitorWorkspaceLogs.api.schema.resourceMap[]") + if _elements is not None: + _elements.set_prop("from", AAZStrType, ".from_", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("to", AAZStrType, ".to", typ_kwargs={"flags": {"required": True}}) + + scope_map = _builder.get(".properties.exporters[].azureMonitorWorkspaceLogs.api.schema.scopeMap") + if scope_map is not None: + scope_map.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.exporters[].azureMonitorWorkspaceLogs.api.schema.scopeMap[]") + if _elements is not None: + _elements.set_prop("from", AAZStrType, ".from_", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("to", AAZStrType, ".to", typ_kwargs={"flags": {"required": True}}) + + cache = _builder.get(".properties.exporters[].azureMonitorWorkspaceLogs.cache") + if cache is not None: + cache.set_prop("maxStorageUsage", AAZIntType, ".max_storage_usage") + cache.set_prop("retentionPeriod", AAZIntType, ".retention_period") + + concurrency = _builder.get(".properties.exporters[].azureMonitorWorkspaceLogs.concurrency") + if concurrency is not None: + concurrency.set_prop("batchQueueSize", AAZIntType, ".batch_queue_size") + concurrency.set_prop("workerCount", AAZIntType, ".worker_count") + + tcp = _builder.get(".properties.exporters[].tcp") + if tcp is not None: + tcp.set_prop("url", AAZStrType, ".url", typ_kwargs={"flags": {"required": True}}) + + networking_configurations = _builder.get(".properties.networkingConfigurations") + if networking_configurations is not None: + networking_configurations.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.networkingConfigurations[]") + if _elements is not None: + _elements.set_prop("externalNetworkingMode", AAZStrType, ".external_networking_mode", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("host", AAZStrType, ".host") + _elements.set_prop("routes", AAZListType, ".routes", typ_kwargs={"flags": {"required": True}}) + + routes = _builder.get(".properties.networkingConfigurations[].routes") + if routes is not None: + routes.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.networkingConfigurations[].routes[]") + if _elements is not None: + _elements.set_prop("path", AAZStrType, ".path") + _elements.set_prop("port", AAZIntType, ".port") + _elements.set_prop("receiver", AAZStrType, ".receiver", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("subdomain", AAZStrType, ".subdomain") + + processors = _builder.get(".properties.processors") + if processors is not None: + processors.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.processors[]") + if _elements is not None: + _elements.set_prop("batch", AAZObjectType, ".batch") + _elements.set_prop("name", AAZStrType, ".name", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("type", AAZStrType, ".type", typ_kwargs={"flags": {"required": True}}) + + batch = _builder.get(".properties.processors[].batch") + if batch is not None: + batch.set_prop("batchSize", AAZIntType, ".batch_size") + batch.set_prop("timeout", AAZIntType, ".timeout") + + receivers = _builder.get(".properties.receivers") + if receivers is not None: + receivers.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.receivers[]") + if _elements is not None: + _elements.set_prop("name", AAZStrType, ".name", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("otlp", AAZObjectType, ".otlp") + _elements.set_prop("syslog", AAZObjectType, ".syslog") + _elements.set_prop("type", AAZStrType, ".type", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("udp", AAZObjectType, ".udp") + + otlp = _builder.get(".properties.receivers[].otlp") + if otlp is not None: + otlp.set_prop("endpoint", AAZStrType, ".endpoint", typ_kwargs={"flags": {"required": True}}) + + syslog = _builder.get(".properties.receivers[].syslog") + if syslog is not None: + syslog.set_prop("endpoint", AAZStrType, ".endpoint", typ_kwargs={"flags": {"required": True}}) + syslog.set_prop("protocol", AAZStrType, ".protocol") + + udp = _builder.get(".properties.receivers[].udp") + if udp is not None: + udp.set_prop("encoding", AAZStrType, ".encoding") + udp.set_prop("endpoint", AAZStrType, ".endpoint", typ_kwargs={"flags": {"required": True}}) + udp.set_prop("readQueueLength", AAZIntType, ".read_queue_length") + + service = _builder.get(".properties.service") + if service is not None: + service.set_prop("persistence", AAZObjectType, ".persistence") + service.set_prop("pipelines", AAZListType, ".pipelines", typ_kwargs={"flags": {"required": True}}) + + persistence = _builder.get(".properties.service.persistence") + if persistence is not None: + persistence.set_prop("persistentVolumeName", AAZStrType, ".persistent_volume_name", typ_kwargs={"flags": {"required": True}}) + + pipelines = _builder.get(".properties.service.pipelines") + if pipelines is not None: + pipelines.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.service.pipelines[]") + if _elements is not None: + _elements.set_prop("exporters", AAZListType, ".exporters", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("name", AAZStrType, ".name", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("processors", AAZListType, ".processors") + _elements.set_prop("receivers", AAZListType, ".receivers", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("type", AAZStrType, ".type", typ_kwargs={"flags": {"required": True}}) + + exporters = _builder.get(".properties.service.pipelines[].exporters") + if exporters is not None: + exporters.set_elements(AAZStrType, ".") + + processors = _builder.get(".properties.service.pipelines[].processors") + if processors is not None: + processors.set_elements(AAZStrType, ".") + + receivers = _builder.get(".properties.service.pipelines[].receivers") + if receivers is not None: + receivers.set_elements(AAZStrType, ".") + + tags = _builder.get(".tags") + if tags is not None: + tags.set_elements(AAZStrType, ".") + + return self.serialize_content(_content_value) + + def on_200_201(self, session): + data = self.deserialize_http_content(session) + self.ctx.set_var( + "instance", + data, + schema_builder=self._build_schema_on_200_201 + ) + + _schema_on_200_201 = None + + @classmethod + def _build_schema_on_200_201(cls): + if cls._schema_on_200_201 is not None: + return cls._schema_on_200_201 + + cls._schema_on_200_201 = AAZObjectType() + + _schema_on_200_201 = cls._schema_on_200_201 + _schema_on_200_201.extended_location = AAZObjectType( + serialized_name="extendedLocation", + ) + _schema_on_200_201.id = AAZStrType( + flags={"read_only": True}, + ) + _schema_on_200_201.location = AAZStrType( + flags={"required": True}, + ) + _schema_on_200_201.name = AAZStrType( + flags={"read_only": True}, + ) + _schema_on_200_201.properties = AAZObjectType( + flags={"client_flatten": True}, + ) + _schema_on_200_201.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) + _schema_on_200_201.tags = AAZDictType() + _schema_on_200_201.type = AAZStrType( + flags={"read_only": True}, + ) + + extended_location = cls._schema_on_200_201.extended_location + extended_location.name = AAZStrType( + flags={"required": True}, + ) + extended_location.type = AAZStrType( + flags={"required": True}, + ) + + properties = cls._schema_on_200_201.properties + properties.exporters = AAZListType( + flags={"required": True}, + ) + properties.networking_configurations = AAZListType( + serialized_name="networkingConfigurations", + ) + properties.processors = AAZListType( + flags={"required": True}, + ) + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + flags={"read_only": True}, + ) + properties.receivers = AAZListType( + flags={"required": True}, + ) + properties.replicas = AAZIntType() + properties.service = AAZObjectType( + flags={"required": True}, + ) + + exporters = cls._schema_on_200_201.properties.exporters + exporters.Element = AAZObjectType() + + _element = cls._schema_on_200_201.properties.exporters.Element + _element.azure_monitor_workspace_logs = AAZObjectType( + serialized_name="azureMonitorWorkspaceLogs", + ) + _element.name = AAZStrType( + flags={"required": True}, + ) + _element.tcp = AAZObjectType() + _element.type = AAZStrType( + flags={"required": True}, + ) + + azure_monitor_workspace_logs = cls._schema_on_200_201.properties.exporters.Element.azure_monitor_workspace_logs + azure_monitor_workspace_logs.api = AAZObjectType( + flags={"required": True}, + ) + azure_monitor_workspace_logs.cache = AAZObjectType() + azure_monitor_workspace_logs.concurrency = AAZObjectType() + + api = cls._schema_on_200_201.properties.exporters.Element.azure_monitor_workspace_logs.api + api.data_collection_endpoint_url = AAZStrType( + serialized_name="dataCollectionEndpointUrl", + flags={"required": True}, + ) + api.data_collection_rule = AAZStrType( + serialized_name="dataCollectionRule", + flags={"required": True}, + ) + api.schema = AAZObjectType( + flags={"required": True}, + ) + api.stream = AAZStrType( + flags={"required": True}, + ) + + schema = cls._schema_on_200_201.properties.exporters.Element.azure_monitor_workspace_logs.api.schema + schema.record_map = AAZListType( + serialized_name="recordMap", + flags={"required": True}, + ) + schema.resource_map = AAZListType( + serialized_name="resourceMap", + ) + schema.scope_map = AAZListType( + serialized_name="scopeMap", + ) + + record_map = cls._schema_on_200_201.properties.exporters.Element.azure_monitor_workspace_logs.api.schema.record_map + record_map.Element = AAZObjectType() + + _element = cls._schema_on_200_201.properties.exporters.Element.azure_monitor_workspace_logs.api.schema.record_map.Element + _element["from"] = AAZStrType( + flags={"required": True}, + ) + _element.to = AAZStrType( + flags={"required": True}, + ) + + resource_map = cls._schema_on_200_201.properties.exporters.Element.azure_monitor_workspace_logs.api.schema.resource_map + resource_map.Element = AAZObjectType() + + _element = cls._schema_on_200_201.properties.exporters.Element.azure_monitor_workspace_logs.api.schema.resource_map.Element + _element["from"] = AAZStrType( + flags={"required": True}, + ) + _element.to = AAZStrType( + flags={"required": True}, + ) + + scope_map = cls._schema_on_200_201.properties.exporters.Element.azure_monitor_workspace_logs.api.schema.scope_map + scope_map.Element = AAZObjectType() + + _element = cls._schema_on_200_201.properties.exporters.Element.azure_monitor_workspace_logs.api.schema.scope_map.Element + _element["from"] = AAZStrType( + flags={"required": True}, + ) + _element.to = AAZStrType( + flags={"required": True}, + ) + + cache = cls._schema_on_200_201.properties.exporters.Element.azure_monitor_workspace_logs.cache + cache.max_storage_usage = AAZIntType( + serialized_name="maxStorageUsage", + ) + cache.retention_period = AAZIntType( + serialized_name="retentionPeriod", + ) + + concurrency = cls._schema_on_200_201.properties.exporters.Element.azure_monitor_workspace_logs.concurrency + concurrency.batch_queue_size = AAZIntType( + serialized_name="batchQueueSize", + ) + concurrency.worker_count = AAZIntType( + serialized_name="workerCount", + ) + + tcp = cls._schema_on_200_201.properties.exporters.Element.tcp + tcp.url = AAZStrType( + flags={"required": True}, + ) + + networking_configurations = cls._schema_on_200_201.properties.networking_configurations + networking_configurations.Element = AAZObjectType() + + _element = cls._schema_on_200_201.properties.networking_configurations.Element + _element.external_networking_mode = AAZStrType( + serialized_name="externalNetworkingMode", + flags={"required": True}, + ) + _element.host = AAZStrType() + _element.routes = AAZListType( + flags={"required": True}, + ) + + routes = cls._schema_on_200_201.properties.networking_configurations.Element.routes + routes.Element = AAZObjectType() + + _element = cls._schema_on_200_201.properties.networking_configurations.Element.routes.Element + _element.path = AAZStrType() + _element.port = AAZIntType() + _element.receiver = AAZStrType( + flags={"required": True}, + ) + _element.subdomain = AAZStrType() + + processors = cls._schema_on_200_201.properties.processors + processors.Element = AAZObjectType() + + _element = cls._schema_on_200_201.properties.processors.Element + _element.batch = AAZObjectType() + _element.name = AAZStrType( + flags={"required": True}, + ) + _element.type = AAZStrType( + flags={"required": True}, + ) + + batch = cls._schema_on_200_201.properties.processors.Element.batch + batch.batch_size = AAZIntType( + serialized_name="batchSize", + ) + batch.timeout = AAZIntType() + + receivers = cls._schema_on_200_201.properties.receivers + receivers.Element = AAZObjectType() + + _element = cls._schema_on_200_201.properties.receivers.Element + _element.name = AAZStrType( + flags={"required": True}, + ) + _element.otlp = AAZObjectType() + _element.syslog = AAZObjectType() + _element.type = AAZStrType( + flags={"required": True}, + ) + _element.udp = AAZObjectType() + + otlp = cls._schema_on_200_201.properties.receivers.Element.otlp + otlp.endpoint = AAZStrType( + flags={"required": True}, + ) + + syslog = cls._schema_on_200_201.properties.receivers.Element.syslog + syslog.endpoint = AAZStrType( + flags={"required": True}, + ) + syslog.protocol = AAZStrType() + + udp = cls._schema_on_200_201.properties.receivers.Element.udp + udp.encoding = AAZStrType() + udp.endpoint = AAZStrType( + flags={"required": True}, + ) + udp.read_queue_length = AAZIntType( + serialized_name="readQueueLength", + ) + + service = cls._schema_on_200_201.properties.service + service.persistence = AAZObjectType() + service.pipelines = AAZListType( + flags={"required": True}, + ) + + persistence = cls._schema_on_200_201.properties.service.persistence + persistence.persistent_volume_name = AAZStrType( + serialized_name="persistentVolumeName", + flags={"required": True}, + ) + + pipelines = cls._schema_on_200_201.properties.service.pipelines + pipelines.Element = AAZObjectType() + + _element = cls._schema_on_200_201.properties.service.pipelines.Element + _element.exporters = AAZListType( + flags={"required": True}, + ) + _element.name = AAZStrType( + flags={"required": True}, + ) + _element.processors = AAZListType() + _element.receivers = AAZListType( + flags={"required": True}, + ) + _element.type = AAZStrType( + flags={"required": True}, + ) + + exporters = cls._schema_on_200_201.properties.service.pipelines.Element.exporters + exporters.Element = AAZStrType() + + processors = cls._schema_on_200_201.properties.service.pipelines.Element.processors + processors.Element = AAZStrType() + + receivers = cls._schema_on_200_201.properties.service.pipelines.Element.receivers + receivers.Element = AAZStrType() + + system_data = cls._schema_on_200_201.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", + ) + + tags = cls._schema_on_200_201.tags + tags.Element = AAZStrType() + + return cls._schema_on_200_201 + + +class _CreateHelper: + """Helper class for Create""" + + +__all__ = ["Create"] diff --git a/src/monitor-pipeline-group/azext_monitor_pipeline_group/aaz/latest/monitor/pipeline_group/_delete.py b/src/monitor-pipeline-group/azext_monitor_pipeline_group/aaz/latest/monitor/pipeline_group/_delete.py new file mode 100644 index 0000000000..65448eef5c --- /dev/null +++ b/src/monitor-pipeline-group/azext_monitor_pipeline_group/aaz/latest/monitor/pipeline_group/_delete.py @@ -0,0 +1,163 @@ +# -------------------------------------------------------------------------------------------- +# 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( + "monitor pipeline-group delete", + confirmation="Are you sure you want to perform this operation?", +) +class Delete(AAZCommand): + """Delete a pipeline group instance. + """ + + _aaz_info = { + "version": "2023-10-01-preview", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.monitor/pipelinegroups/{}", "2023-10-01-preview"], + ] + } + + AZ_SUPPORT_NO_WAIT = True + + def _handler(self, command_args): + super()._handler(command_args) + return self.build_lro_poller(self._execute_operations, None) + + _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 "" + + _args_schema = cls._args_schema + _args_schema.pipeline_group_name = AAZStrArg( + options=["-n", "--name", "--pipeline-group-name"], + help="The name of pipeline group. The name is case insensitive.", + required=True, + id_part="name", + fmt=AAZStrArgFormat( + pattern="^(?!-)[a-zA-Z0-9-]{3,10}[^-]$", + ), + ) + _args_schema.resource_group = AAZResourceGroupNameArg( + required=True, + ) + return cls._args_schema + + def _execute_operations(self): + self.pre_operations() + yield self.PipelineGroupsDelete(ctx=self.ctx)() + self.post_operations() + + @register_callback + def pre_operations(self): + pass + + @register_callback + def post_operations(self): + pass + + class PipelineGroupsDelete(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 [202]: + return self.client.build_lro_polling( + self.ctx.args.no_wait, + session, + self.on_200_201, + self.on_error, + lro_options={"final-state-via": "location"}, + path_format_arguments=self.url_parameters, + ) + if session.http_response.status_code in [204]: + return self.client.build_lro_polling( + self.ctx.args.no_wait, + session, + self.on_204, + self.on_error, + lro_options={"final-state-via": "location"}, + path_format_arguments=self.url_parameters, + ) + if session.http_response.status_code in [200, 201]: + return self.client.build_lro_polling( + self.ctx.args.no_wait, + session, + self.on_200_201, + self.on_error, + lro_options={"final-state-via": "location"}, + path_format_arguments=self.url_parameters, + ) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Monitor/pipelineGroups/{pipelineGroupName}", + **self.url_parameters + ) + + @property + def method(self): + return "DELETE" + + @property + def error_format(self): + return "MgmtErrorFormat" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "pipelineGroupName", self.ctx.args.pipeline_group_name, + required=True, + ), + **self.serialize_url_param( + "resourceGroupName", self.ctx.args.resource_group, + required=True, + ), + **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", "2023-10-01-preview", + required=True, + ), + } + return parameters + + def on_204(self, session): + pass + + def on_200_201(self, session): + pass + + +class _DeleteHelper: + """Helper class for Delete""" + + +__all__ = ["Delete"] diff --git a/src/monitor-pipeline-group/azext_monitor_pipeline_group/aaz/latest/monitor/pipeline_group/_list.py b/src/monitor-pipeline-group/azext_monitor_pipeline_group/aaz/latest/monitor/pipeline_group/_list.py new file mode 100644 index 0000000000..3344dcfbd5 --- /dev/null +++ b/src/monitor-pipeline-group/azext_monitor_pipeline_group/aaz/latest/monitor/pipeline_group/_list.py @@ -0,0 +1,845 @@ +# -------------------------------------------------------------------------------------------- +# 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( + "monitor pipeline-group list", +) +class List(AAZCommand): + """List all workspaces in the specified subscription + """ + + _aaz_info = { + "version": "2023-10-01-preview", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/providers/microsoft.monitor/pipelinegroups", "2023-10-01-preview"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.monitor/pipelinegroups", "2023-10-01-preview"], + ] + } + + 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 "" + + _args_schema = cls._args_schema + _args_schema.resource_group = AAZResourceGroupNameArg() + return cls._args_schema + + def _execute_operations(self): + self.pre_operations() + condition_0 = has_value(self.ctx.args.resource_group) and has_value(self.ctx.subscription_id) + condition_1 = has_value(self.ctx.subscription_id) and has_value(self.ctx.args.resource_group) is not True + if condition_0: + self.PipelineGroupsListByResourceGroup(ctx=self.ctx)() + if condition_1: + self.PipelineGroupsListBySubscription(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 PipelineGroupsListByResourceGroup(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}/resourceGroups/{resourceGroupName}/providers/Microsoft.Monitor/pipelineGroups", + **self.url_parameters + ) + + @property + def method(self): + return "GET" + + @property + def error_format(self): + return "MgmtErrorFormat" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "resourceGroupName", self.ctx.args.resource_group, + required=True, + ), + **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", "2023-10-01-preview", + 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( + flags={"required": True}, + ) + + value = cls._schema_on_200.value + value.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element + _element.extended_location = AAZObjectType( + serialized_name="extendedLocation", + ) + _element.id = AAZStrType( + flags={"read_only": True}, + ) + _element.location = AAZStrType( + flags={"required": 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.tags = AAZDictType() + _element.type = AAZStrType( + flags={"read_only": True}, + ) + + extended_location = cls._schema_on_200.value.Element.extended_location + extended_location.name = AAZStrType( + flags={"required": True}, + ) + extended_location.type = AAZStrType( + flags={"required": True}, + ) + + properties = cls._schema_on_200.value.Element.properties + properties.exporters = AAZListType( + flags={"required": True}, + ) + properties.networking_configurations = AAZListType( + serialized_name="networkingConfigurations", + ) + properties.processors = AAZListType( + flags={"required": True}, + ) + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + flags={"read_only": True}, + ) + properties.receivers = AAZListType( + flags={"required": True}, + ) + properties.replicas = AAZIntType() + properties.service = AAZObjectType( + flags={"required": True}, + ) + + exporters = cls._schema_on_200.value.Element.properties.exporters + exporters.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.exporters.Element + _element.azure_monitor_workspace_logs = AAZObjectType( + serialized_name="azureMonitorWorkspaceLogs", + ) + _element.name = AAZStrType( + flags={"required": True}, + ) + _element.tcp = AAZObjectType() + _element.type = AAZStrType( + flags={"required": True}, + ) + + azure_monitor_workspace_logs = cls._schema_on_200.value.Element.properties.exporters.Element.azure_monitor_workspace_logs + azure_monitor_workspace_logs.api = AAZObjectType( + flags={"required": True}, + ) + azure_monitor_workspace_logs.cache = AAZObjectType() + azure_monitor_workspace_logs.concurrency = AAZObjectType() + + api = cls._schema_on_200.value.Element.properties.exporters.Element.azure_monitor_workspace_logs.api + api.data_collection_endpoint_url = AAZStrType( + serialized_name="dataCollectionEndpointUrl", + flags={"required": True}, + ) + api.data_collection_rule = AAZStrType( + serialized_name="dataCollectionRule", + flags={"required": True}, + ) + api.schema = AAZObjectType( + flags={"required": True}, + ) + api.stream = AAZStrType( + flags={"required": True}, + ) + + schema = cls._schema_on_200.value.Element.properties.exporters.Element.azure_monitor_workspace_logs.api.schema + schema.record_map = AAZListType( + serialized_name="recordMap", + flags={"required": True}, + ) + schema.resource_map = AAZListType( + serialized_name="resourceMap", + ) + schema.scope_map = AAZListType( + serialized_name="scopeMap", + ) + + record_map = cls._schema_on_200.value.Element.properties.exporters.Element.azure_monitor_workspace_logs.api.schema.record_map + record_map.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.exporters.Element.azure_monitor_workspace_logs.api.schema.record_map.Element + _element["from"] = AAZStrType( + flags={"required": True}, + ) + _element.to = AAZStrType( + flags={"required": True}, + ) + + resource_map = cls._schema_on_200.value.Element.properties.exporters.Element.azure_monitor_workspace_logs.api.schema.resource_map + resource_map.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.exporters.Element.azure_monitor_workspace_logs.api.schema.resource_map.Element + _element["from"] = AAZStrType( + flags={"required": True}, + ) + _element.to = AAZStrType( + flags={"required": True}, + ) + + scope_map = cls._schema_on_200.value.Element.properties.exporters.Element.azure_monitor_workspace_logs.api.schema.scope_map + scope_map.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.exporters.Element.azure_monitor_workspace_logs.api.schema.scope_map.Element + _element["from"] = AAZStrType( + flags={"required": True}, + ) + _element.to = AAZStrType( + flags={"required": True}, + ) + + cache = cls._schema_on_200.value.Element.properties.exporters.Element.azure_monitor_workspace_logs.cache + cache.max_storage_usage = AAZIntType( + serialized_name="maxStorageUsage", + ) + cache.retention_period = AAZIntType( + serialized_name="retentionPeriod", + ) + + concurrency = cls._schema_on_200.value.Element.properties.exporters.Element.azure_monitor_workspace_logs.concurrency + concurrency.batch_queue_size = AAZIntType( + serialized_name="batchQueueSize", + ) + concurrency.worker_count = AAZIntType( + serialized_name="workerCount", + ) + + tcp = cls._schema_on_200.value.Element.properties.exporters.Element.tcp + tcp.url = AAZStrType( + flags={"required": True}, + ) + + networking_configurations = cls._schema_on_200.value.Element.properties.networking_configurations + networking_configurations.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.networking_configurations.Element + _element.external_networking_mode = AAZStrType( + serialized_name="externalNetworkingMode", + flags={"required": True}, + ) + _element.host = AAZStrType() + _element.routes = AAZListType( + flags={"required": True}, + ) + + routes = cls._schema_on_200.value.Element.properties.networking_configurations.Element.routes + routes.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.networking_configurations.Element.routes.Element + _element.path = AAZStrType() + _element.port = AAZIntType() + _element.receiver = AAZStrType( + flags={"required": True}, + ) + _element.subdomain = AAZStrType() + + processors = cls._schema_on_200.value.Element.properties.processors + processors.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.processors.Element + _element.batch = AAZObjectType() + _element.name = AAZStrType( + flags={"required": True}, + ) + _element.type = AAZStrType( + flags={"required": True}, + ) + + batch = cls._schema_on_200.value.Element.properties.processors.Element.batch + batch.batch_size = AAZIntType( + serialized_name="batchSize", + ) + batch.timeout = AAZIntType() + + receivers = cls._schema_on_200.value.Element.properties.receivers + receivers.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.receivers.Element + _element.name = AAZStrType( + flags={"required": True}, + ) + _element.otlp = AAZObjectType() + _element.syslog = AAZObjectType() + _element.type = AAZStrType( + flags={"required": True}, + ) + _element.udp = AAZObjectType() + + otlp = cls._schema_on_200.value.Element.properties.receivers.Element.otlp + otlp.endpoint = AAZStrType( + flags={"required": True}, + ) + + syslog = cls._schema_on_200.value.Element.properties.receivers.Element.syslog + syslog.endpoint = AAZStrType( + flags={"required": True}, + ) + syslog.protocol = AAZStrType() + + udp = cls._schema_on_200.value.Element.properties.receivers.Element.udp + udp.encoding = AAZStrType() + udp.endpoint = AAZStrType( + flags={"required": True}, + ) + udp.read_queue_length = AAZIntType( + serialized_name="readQueueLength", + ) + + service = cls._schema_on_200.value.Element.properties.service + service.persistence = AAZObjectType() + service.pipelines = AAZListType( + flags={"required": True}, + ) + + persistence = cls._schema_on_200.value.Element.properties.service.persistence + persistence.persistent_volume_name = AAZStrType( + serialized_name="persistentVolumeName", + flags={"required": True}, + ) + + pipelines = cls._schema_on_200.value.Element.properties.service.pipelines + pipelines.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.service.pipelines.Element + _element.exporters = AAZListType( + flags={"required": True}, + ) + _element.name = AAZStrType( + flags={"required": True}, + ) + _element.processors = AAZListType() + _element.receivers = AAZListType( + flags={"required": True}, + ) + _element.type = AAZStrType( + flags={"required": True}, + ) + + exporters = cls._schema_on_200.value.Element.properties.service.pipelines.Element.exporters + exporters.Element = AAZStrType() + + processors = cls._schema_on_200.value.Element.properties.service.pipelines.Element.processors + processors.Element = AAZStrType() + + receivers = cls._schema_on_200.value.Element.properties.service.pipelines.Element.receivers + receivers.Element = 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", + ) + + tags = cls._schema_on_200.value.Element.tags + tags.Element = AAZStrType() + + return cls._schema_on_200 + + class PipelineGroupsListBySubscription(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.Monitor/pipelineGroups", + **self.url_parameters + ) + + @property + def method(self): + return "GET" + + @property + def error_format(self): + return "MgmtErrorFormat" + + @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", "2023-10-01-preview", + 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( + flags={"required": True}, + ) + + value = cls._schema_on_200.value + value.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element + _element.extended_location = AAZObjectType( + serialized_name="extendedLocation", + ) + _element.id = AAZStrType( + flags={"read_only": True}, + ) + _element.location = AAZStrType( + flags={"required": 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.tags = AAZDictType() + _element.type = AAZStrType( + flags={"read_only": True}, + ) + + extended_location = cls._schema_on_200.value.Element.extended_location + extended_location.name = AAZStrType( + flags={"required": True}, + ) + extended_location.type = AAZStrType( + flags={"required": True}, + ) + + properties = cls._schema_on_200.value.Element.properties + properties.exporters = AAZListType( + flags={"required": True}, + ) + properties.networking_configurations = AAZListType( + serialized_name="networkingConfigurations", + ) + properties.processors = AAZListType( + flags={"required": True}, + ) + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + flags={"read_only": True}, + ) + properties.receivers = AAZListType( + flags={"required": True}, + ) + properties.replicas = AAZIntType() + properties.service = AAZObjectType( + flags={"required": True}, + ) + + exporters = cls._schema_on_200.value.Element.properties.exporters + exporters.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.exporters.Element + _element.azure_monitor_workspace_logs = AAZObjectType( + serialized_name="azureMonitorWorkspaceLogs", + ) + _element.name = AAZStrType( + flags={"required": True}, + ) + _element.tcp = AAZObjectType() + _element.type = AAZStrType( + flags={"required": True}, + ) + + azure_monitor_workspace_logs = cls._schema_on_200.value.Element.properties.exporters.Element.azure_monitor_workspace_logs + azure_monitor_workspace_logs.api = AAZObjectType( + flags={"required": True}, + ) + azure_monitor_workspace_logs.cache = AAZObjectType() + azure_monitor_workspace_logs.concurrency = AAZObjectType() + + api = cls._schema_on_200.value.Element.properties.exporters.Element.azure_monitor_workspace_logs.api + api.data_collection_endpoint_url = AAZStrType( + serialized_name="dataCollectionEndpointUrl", + flags={"required": True}, + ) + api.data_collection_rule = AAZStrType( + serialized_name="dataCollectionRule", + flags={"required": True}, + ) + api.schema = AAZObjectType( + flags={"required": True}, + ) + api.stream = AAZStrType( + flags={"required": True}, + ) + + schema = cls._schema_on_200.value.Element.properties.exporters.Element.azure_monitor_workspace_logs.api.schema + schema.record_map = AAZListType( + serialized_name="recordMap", + flags={"required": True}, + ) + schema.resource_map = AAZListType( + serialized_name="resourceMap", + ) + schema.scope_map = AAZListType( + serialized_name="scopeMap", + ) + + record_map = cls._schema_on_200.value.Element.properties.exporters.Element.azure_monitor_workspace_logs.api.schema.record_map + record_map.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.exporters.Element.azure_monitor_workspace_logs.api.schema.record_map.Element + _element["from"] = AAZStrType( + flags={"required": True}, + ) + _element.to = AAZStrType( + flags={"required": True}, + ) + + resource_map = cls._schema_on_200.value.Element.properties.exporters.Element.azure_monitor_workspace_logs.api.schema.resource_map + resource_map.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.exporters.Element.azure_monitor_workspace_logs.api.schema.resource_map.Element + _element["from"] = AAZStrType( + flags={"required": True}, + ) + _element.to = AAZStrType( + flags={"required": True}, + ) + + scope_map = cls._schema_on_200.value.Element.properties.exporters.Element.azure_monitor_workspace_logs.api.schema.scope_map + scope_map.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.exporters.Element.azure_monitor_workspace_logs.api.schema.scope_map.Element + _element["from"] = AAZStrType( + flags={"required": True}, + ) + _element.to = AAZStrType( + flags={"required": True}, + ) + + cache = cls._schema_on_200.value.Element.properties.exporters.Element.azure_monitor_workspace_logs.cache + cache.max_storage_usage = AAZIntType( + serialized_name="maxStorageUsage", + ) + cache.retention_period = AAZIntType( + serialized_name="retentionPeriod", + ) + + concurrency = cls._schema_on_200.value.Element.properties.exporters.Element.azure_monitor_workspace_logs.concurrency + concurrency.batch_queue_size = AAZIntType( + serialized_name="batchQueueSize", + ) + concurrency.worker_count = AAZIntType( + serialized_name="workerCount", + ) + + tcp = cls._schema_on_200.value.Element.properties.exporters.Element.tcp + tcp.url = AAZStrType( + flags={"required": True}, + ) + + networking_configurations = cls._schema_on_200.value.Element.properties.networking_configurations + networking_configurations.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.networking_configurations.Element + _element.external_networking_mode = AAZStrType( + serialized_name="externalNetworkingMode", + flags={"required": True}, + ) + _element.host = AAZStrType() + _element.routes = AAZListType( + flags={"required": True}, + ) + + routes = cls._schema_on_200.value.Element.properties.networking_configurations.Element.routes + routes.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.networking_configurations.Element.routes.Element + _element.path = AAZStrType() + _element.port = AAZIntType() + _element.receiver = AAZStrType( + flags={"required": True}, + ) + _element.subdomain = AAZStrType() + + processors = cls._schema_on_200.value.Element.properties.processors + processors.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.processors.Element + _element.batch = AAZObjectType() + _element.name = AAZStrType( + flags={"required": True}, + ) + _element.type = AAZStrType( + flags={"required": True}, + ) + + batch = cls._schema_on_200.value.Element.properties.processors.Element.batch + batch.batch_size = AAZIntType( + serialized_name="batchSize", + ) + batch.timeout = AAZIntType() + + receivers = cls._schema_on_200.value.Element.properties.receivers + receivers.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.receivers.Element + _element.name = AAZStrType( + flags={"required": True}, + ) + _element.otlp = AAZObjectType() + _element.syslog = AAZObjectType() + _element.type = AAZStrType( + flags={"required": True}, + ) + _element.udp = AAZObjectType() + + otlp = cls._schema_on_200.value.Element.properties.receivers.Element.otlp + otlp.endpoint = AAZStrType( + flags={"required": True}, + ) + + syslog = cls._schema_on_200.value.Element.properties.receivers.Element.syslog + syslog.endpoint = AAZStrType( + flags={"required": True}, + ) + syslog.protocol = AAZStrType() + + udp = cls._schema_on_200.value.Element.properties.receivers.Element.udp + udp.encoding = AAZStrType() + udp.endpoint = AAZStrType( + flags={"required": True}, + ) + udp.read_queue_length = AAZIntType( + serialized_name="readQueueLength", + ) + + service = cls._schema_on_200.value.Element.properties.service + service.persistence = AAZObjectType() + service.pipelines = AAZListType( + flags={"required": True}, + ) + + persistence = cls._schema_on_200.value.Element.properties.service.persistence + persistence.persistent_volume_name = AAZStrType( + serialized_name="persistentVolumeName", + flags={"required": True}, + ) + + pipelines = cls._schema_on_200.value.Element.properties.service.pipelines + pipelines.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.service.pipelines.Element + _element.exporters = AAZListType( + flags={"required": True}, + ) + _element.name = AAZStrType( + flags={"required": True}, + ) + _element.processors = AAZListType() + _element.receivers = AAZListType( + flags={"required": True}, + ) + _element.type = AAZStrType( + flags={"required": True}, + ) + + exporters = cls._schema_on_200.value.Element.properties.service.pipelines.Element.exporters + exporters.Element = AAZStrType() + + processors = cls._schema_on_200.value.Element.properties.service.pipelines.Element.processors + processors.Element = AAZStrType() + + receivers = cls._schema_on_200.value.Element.properties.service.pipelines.Element.receivers + receivers.Element = 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", + ) + + tags = cls._schema_on_200.value.Element.tags + tags.Element = AAZStrType() + + return cls._schema_on_200 + + +class _ListHelper: + """Helper class for List""" + + +__all__ = ["List"] diff --git a/src/monitor-pipeline-group/azext_monitor_pipeline_group/aaz/latest/monitor/pipeline_group/_show.py b/src/monitor-pipeline-group/azext_monitor_pipeline_group/aaz/latest/monitor/pipeline_group/_show.py new file mode 100644 index 0000000000..ddf3f5e35e --- /dev/null +++ b/src/monitor-pipeline-group/azext_monitor_pipeline_group/aaz/latest/monitor/pipeline_group/_show.py @@ -0,0 +1,459 @@ +# -------------------------------------------------------------------------------------------- +# 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( + "monitor pipeline-group show", +) +class Show(AAZCommand): + """Get the specific pipeline group instance. + """ + + _aaz_info = { + "version": "2023-10-01-preview", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.monitor/pipelinegroups/{}", "2023-10-01-preview"], + ] + } + + def _handler(self, command_args): + super()._handler(command_args) + self._execute_operations() + return 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 "" + + _args_schema = cls._args_schema + _args_schema.pipeline_group_name = AAZStrArg( + options=["-n", "--name", "--pipeline-group-name"], + help="The name of pipeline group. The name is case insensitive.", + required=True, + id_part="name", + fmt=AAZStrArgFormat( + pattern="^(?!-)[a-zA-Z0-9-]{3,10}[^-]$", + ), + ) + _args_schema.resource_group = AAZResourceGroupNameArg( + required=True, + ) + return cls._args_schema + + def _execute_operations(self): + self.pre_operations() + self.PipelineGroupsGet(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, client_flatten=True) + return result + + class PipelineGroupsGet(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}/resourceGroups/{resourceGroupName}/providers/Microsoft.Monitor/pipelineGroups/{pipelineGroupName}", + **self.url_parameters + ) + + @property + def method(self): + return "GET" + + @property + def error_format(self): + return "MgmtErrorFormat" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "pipelineGroupName", self.ctx.args.pipeline_group_name, + required=True, + ), + **self.serialize_url_param( + "resourceGroupName", self.ctx.args.resource_group, + required=True, + ), + **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", "2023-10-01-preview", + 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.extended_location = AAZObjectType( + serialized_name="extendedLocation", + ) + _schema_on_200.id = AAZStrType( + flags={"read_only": True}, + ) + _schema_on_200.location = AAZStrType( + flags={"required": True}, + ) + _schema_on_200.name = AAZStrType( + flags={"read_only": True}, + ) + _schema_on_200.properties = AAZObjectType( + flags={"client_flatten": True}, + ) + _schema_on_200.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) + _schema_on_200.tags = AAZDictType() + _schema_on_200.type = AAZStrType( + flags={"read_only": True}, + ) + + extended_location = cls._schema_on_200.extended_location + extended_location.name = AAZStrType( + flags={"required": True}, + ) + extended_location.type = AAZStrType( + flags={"required": True}, + ) + + properties = cls._schema_on_200.properties + properties.exporters = AAZListType( + flags={"required": True}, + ) + properties.networking_configurations = AAZListType( + serialized_name="networkingConfigurations", + ) + properties.processors = AAZListType( + flags={"required": True}, + ) + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + flags={"read_only": True}, + ) + properties.receivers = AAZListType( + flags={"required": True}, + ) + properties.replicas = AAZIntType() + properties.service = AAZObjectType( + flags={"required": True}, + ) + + exporters = cls._schema_on_200.properties.exporters + exporters.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.exporters.Element + _element.azure_monitor_workspace_logs = AAZObjectType( + serialized_name="azureMonitorWorkspaceLogs", + ) + _element.name = AAZStrType( + flags={"required": True}, + ) + _element.tcp = AAZObjectType() + _element.type = AAZStrType( + flags={"required": True}, + ) + + azure_monitor_workspace_logs = cls._schema_on_200.properties.exporters.Element.azure_monitor_workspace_logs + azure_monitor_workspace_logs.api = AAZObjectType( + flags={"required": True}, + ) + azure_monitor_workspace_logs.cache = AAZObjectType() + azure_monitor_workspace_logs.concurrency = AAZObjectType() + + api = cls._schema_on_200.properties.exporters.Element.azure_monitor_workspace_logs.api + api.data_collection_endpoint_url = AAZStrType( + serialized_name="dataCollectionEndpointUrl", + flags={"required": True}, + ) + api.data_collection_rule = AAZStrType( + serialized_name="dataCollectionRule", + flags={"required": True}, + ) + api.schema = AAZObjectType( + flags={"required": True}, + ) + api.stream = AAZStrType( + flags={"required": True}, + ) + + schema = cls._schema_on_200.properties.exporters.Element.azure_monitor_workspace_logs.api.schema + schema.record_map = AAZListType( + serialized_name="recordMap", + flags={"required": True}, + ) + schema.resource_map = AAZListType( + serialized_name="resourceMap", + ) + schema.scope_map = AAZListType( + serialized_name="scopeMap", + ) + + record_map = cls._schema_on_200.properties.exporters.Element.azure_monitor_workspace_logs.api.schema.record_map + record_map.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.exporters.Element.azure_monitor_workspace_logs.api.schema.record_map.Element + _element["from"] = AAZStrType( + flags={"required": True}, + ) + _element.to = AAZStrType( + flags={"required": True}, + ) + + resource_map = cls._schema_on_200.properties.exporters.Element.azure_monitor_workspace_logs.api.schema.resource_map + resource_map.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.exporters.Element.azure_monitor_workspace_logs.api.schema.resource_map.Element + _element["from"] = AAZStrType( + flags={"required": True}, + ) + _element.to = AAZStrType( + flags={"required": True}, + ) + + scope_map = cls._schema_on_200.properties.exporters.Element.azure_monitor_workspace_logs.api.schema.scope_map + scope_map.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.exporters.Element.azure_monitor_workspace_logs.api.schema.scope_map.Element + _element["from"] = AAZStrType( + flags={"required": True}, + ) + _element.to = AAZStrType( + flags={"required": True}, + ) + + cache = cls._schema_on_200.properties.exporters.Element.azure_monitor_workspace_logs.cache + cache.max_storage_usage = AAZIntType( + serialized_name="maxStorageUsage", + ) + cache.retention_period = AAZIntType( + serialized_name="retentionPeriod", + ) + + concurrency = cls._schema_on_200.properties.exporters.Element.azure_monitor_workspace_logs.concurrency + concurrency.batch_queue_size = AAZIntType( + serialized_name="batchQueueSize", + ) + concurrency.worker_count = AAZIntType( + serialized_name="workerCount", + ) + + tcp = cls._schema_on_200.properties.exporters.Element.tcp + tcp.url = AAZStrType( + flags={"required": True}, + ) + + networking_configurations = cls._schema_on_200.properties.networking_configurations + networking_configurations.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.networking_configurations.Element + _element.external_networking_mode = AAZStrType( + serialized_name="externalNetworkingMode", + flags={"required": True}, + ) + _element.host = AAZStrType() + _element.routes = AAZListType( + flags={"required": True}, + ) + + routes = cls._schema_on_200.properties.networking_configurations.Element.routes + routes.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.networking_configurations.Element.routes.Element + _element.path = AAZStrType() + _element.port = AAZIntType() + _element.receiver = AAZStrType( + flags={"required": True}, + ) + _element.subdomain = AAZStrType() + + processors = cls._schema_on_200.properties.processors + processors.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.processors.Element + _element.batch = AAZObjectType() + _element.name = AAZStrType( + flags={"required": True}, + ) + _element.type = AAZStrType( + flags={"required": True}, + ) + + batch = cls._schema_on_200.properties.processors.Element.batch + batch.batch_size = AAZIntType( + serialized_name="batchSize", + ) + batch.timeout = AAZIntType() + + receivers = cls._schema_on_200.properties.receivers + receivers.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.receivers.Element + _element.name = AAZStrType( + flags={"required": True}, + ) + _element.otlp = AAZObjectType() + _element.syslog = AAZObjectType() + _element.type = AAZStrType( + flags={"required": True}, + ) + _element.udp = AAZObjectType() + + otlp = cls._schema_on_200.properties.receivers.Element.otlp + otlp.endpoint = AAZStrType( + flags={"required": True}, + ) + + syslog = cls._schema_on_200.properties.receivers.Element.syslog + syslog.endpoint = AAZStrType( + flags={"required": True}, + ) + syslog.protocol = AAZStrType() + + udp = cls._schema_on_200.properties.receivers.Element.udp + udp.encoding = AAZStrType() + udp.endpoint = AAZStrType( + flags={"required": True}, + ) + udp.read_queue_length = AAZIntType( + serialized_name="readQueueLength", + ) + + service = cls._schema_on_200.properties.service + service.persistence = AAZObjectType() + service.pipelines = AAZListType( + flags={"required": True}, + ) + + persistence = cls._schema_on_200.properties.service.persistence + persistence.persistent_volume_name = AAZStrType( + serialized_name="persistentVolumeName", + flags={"required": True}, + ) + + pipelines = cls._schema_on_200.properties.service.pipelines + pipelines.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.service.pipelines.Element + _element.exporters = AAZListType( + flags={"required": True}, + ) + _element.name = AAZStrType( + flags={"required": True}, + ) + _element.processors = AAZListType() + _element.receivers = AAZListType( + flags={"required": True}, + ) + _element.type = AAZStrType( + flags={"required": True}, + ) + + exporters = cls._schema_on_200.properties.service.pipelines.Element.exporters + exporters.Element = AAZStrType() + + processors = cls._schema_on_200.properties.service.pipelines.Element.processors + processors.Element = AAZStrType() + + receivers = cls._schema_on_200.properties.service.pipelines.Element.receivers + receivers.Element = AAZStrType() + + system_data = cls._schema_on_200.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", + ) + + tags = cls._schema_on_200.tags + tags.Element = AAZStrType() + + return cls._schema_on_200 + + +class _ShowHelper: + """Helper class for Show""" + + +__all__ = ["Show"] diff --git a/src/monitor-pipeline-group/azext_monitor_pipeline_group/aaz/latest/monitor/pipeline_group/_update.py b/src/monitor-pipeline-group/azext_monitor_pipeline_group/aaz/latest/monitor/pipeline_group/_update.py new file mode 100644 index 0000000000..eb92a3a18a --- /dev/null +++ b/src/monitor-pipeline-group/azext_monitor_pipeline_group/aaz/latest/monitor/pipeline_group/_update.py @@ -0,0 +1,1290 @@ +# -------------------------------------------------------------------------------------------- +# 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( + "monitor pipeline-group update", +) +class Update(AAZCommand): + """Update a pipeline group instance. + + :example: Update a pipeline-group instance + az monitor pipeline-group update --resource-group myResourceGroup --pipeline-group-name plGroup1 --receivers "[{type:UDP,name:udp-receiver1,udp:{endpoint:'0.0.0.0:518',encoding:utf-8}}]" --processors "[]" --exporters "[{type:AzureMonitorWorkspaceLogs,name:my-workspace-logs-exporter1,azure-monitor-workspace-logs:{api:{data-collection-endpoint-url:'https://logs-myingestion-eb0s.eastus-1.ingest.monitor.azure.com',stream:Custom-MyTableRawData_CL,data-collection-rule:dcr-00000000000000000000000000000000,schema:{record-map:[{from:body,to:Body},{from:severity_text,to:SeverityText},{from:time_unix_nano,to:TimeGenerated}]}},concurrency:{worker-count:4,batch-queue-size:100}}}]" --service "{pipelines:[{name:MyPipelineForLogs1,type:logs,receivers:[udp-receiver1],processors:[],exporters:[my-workspace-logs-exporter1]}]}" + """ + + _aaz_info = { + "version": "2023-10-01-preview", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.monitor/pipelinegroups/{}", "2023-10-01-preview"], + ] + } + + AZ_SUPPORT_NO_WAIT = True + + AZ_SUPPORT_GENERIC_UPDATE = True + + def _handler(self, command_args): + super()._handler(command_args) + return self.build_lro_poller(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 "" + + _args_schema = cls._args_schema + _args_schema.pipeline_group_name = AAZStrArg( + options=["-n", "--name", "--pipeline-group-name"], + help="The name of pipeline group. The name is case insensitive.", + required=True, + id_part="name", + fmt=AAZStrArgFormat( + pattern="^(?!-)[a-zA-Z0-9-]{3,10}[^-]$", + ), + ) + _args_schema.resource_group = AAZResourceGroupNameArg( + required=True, + ) + + # define Arg Group "Properties" + + _args_schema = cls._args_schema + _args_schema.exporters = AAZListArg( + options=["--exporters"], + arg_group="Properties", + help="The exporters specified for a pipeline group instance.", + ) + _args_schema.network_config = AAZListArg( + options=["--network-config"], + arg_group="Properties", + help="Networking configurations for the pipeline group instance.", + nullable=True, + ) + _args_schema.processors = AAZListArg( + options=["--processors"], + arg_group="Properties", + help="The processors specified for a pipeline group instance.", + ) + _args_schema.receivers = AAZListArg( + options=["--receivers"], + arg_group="Properties", + help="The receivers specified for a pipeline group instance.", + ) + _args_schema.replicas = AAZIntArg( + options=["--replicas"], + arg_group="Properties", + help="Defines the amount of replicas of the pipeline group instance.", + nullable=True, + ) + _args_schema.service = AAZObjectArg( + options=["--service"], + arg_group="Properties", + help="The service section for a given pipeline group instance.", + ) + + exporters = cls._args_schema.exporters + exporters.Element = AAZObjectArg( + nullable=True, + ) + + _element = cls._args_schema.exporters.Element + _element.azure_monitor_workspace_logs = AAZObjectArg( + options=["azure-monitor-workspace-logs"], + help="Azure Monitor Workspace Logs specific configurations.", + nullable=True, + ) + _element.name = AAZStrArg( + options=["name"], + help="The name of exporter.", + fmt=AAZStrArgFormat( + pattern="^(?!-)[a-zA-Z0-9-]{3,32}[^-]$", + ), + ) + _element.tcp = AAZObjectArg( + options=["tcp"], + help="TCP based exporter. Used for pipelineGroup exporter.", + nullable=True, + ) + _element.type = AAZStrArg( + options=["type"], + help="The type of exporter.", + enum={"AzureMonitorWorkspaceLogs": "AzureMonitorWorkspaceLogs", "PipelineGroup": "PipelineGroup"}, + ) + + azure_monitor_workspace_logs = cls._args_schema.exporters.Element.azure_monitor_workspace_logs + azure_monitor_workspace_logs.api = AAZObjectArg( + options=["api"], + help="API configurations for Azure Monitor workspace exporter.", + ) + azure_monitor_workspace_logs.cache = AAZObjectArg( + options=["cache"], + help="Cache configurations.", + nullable=True, + ) + azure_monitor_workspace_logs.concurrency = AAZObjectArg( + options=["concurrency"], + help="Concurrency configuration for the exporter.", + nullable=True, + ) + + api = cls._args_schema.exporters.Element.azure_monitor_workspace_logs.api + api.data_collection_endpoint_url = AAZStrArg( + options=["data-collection-endpoint-url"], + help="Data collection endpoint ingestion url.", + fmt=AAZStrArgFormat( + pattern="^(https?)://[a-zA-Z0-9-]+(\\.[a-zA-Z0-9-]+)*$", + ), + ) + api.data_collection_rule = AAZStrArg( + options=["data-collection-rule"], + help="Data Collection Rule (DCR) immutable id.", + fmt=AAZStrArgFormat( + pattern="^(?!-)[a-zA-Z0-9.-]{1,1000}[^-]$", + ), + ) + api.schema = AAZObjectArg( + options=["schema"], + help="The schema mapping for incoming data.", + ) + api.stream = AAZStrArg( + options=["stream"], + help="Stream name in destination. Azure Monitor stream is related to the destination table.", + fmt=AAZStrArgFormat( + pattern="^(?!-)[a-zA-Z0-9._-]{1,1000}[^-]$", + ), + ) + + schema = cls._args_schema.exporters.Element.azure_monitor_workspace_logs.api.schema + schema.record_map = AAZListArg( + options=["record-map"], + help="Record Map.", + ) + schema.resource_map = AAZListArg( + options=["resource-map"], + help="Resource Map captures information about the entity for which telemetry is recorded. For example, metrics exposed by a Kubernetes container can be linked to a resource that specifies the cluster, namespace, pod, and container name.Resource may capture an entire hierarchy of entity identification. It may describe the host in the cloud and specific container or an application running in the process.", + nullable=True, + ) + schema.scope_map = AAZListArg( + options=["scope-map"], + help="A scope map is a logical unit of the application code with which the emitted telemetry can be associated.", + nullable=True, + ) + + record_map = cls._args_schema.exporters.Element.azure_monitor_workspace_logs.api.schema.record_map + record_map.Element = AAZObjectArg( + nullable=True, + ) + + _element = cls._args_schema.exporters.Element.azure_monitor_workspace_logs.api.schema.record_map.Element + _element.from_ = AAZStrArg( + options=["from"], + help="Record Map Key.", + ) + _element.to = AAZStrArg( + options=["to"], + help="Record Map Value.", + ) + + resource_map = cls._args_schema.exporters.Element.azure_monitor_workspace_logs.api.schema.resource_map + resource_map.Element = AAZObjectArg( + nullable=True, + ) + + _element = cls._args_schema.exporters.Element.azure_monitor_workspace_logs.api.schema.resource_map.Element + _element.from_ = AAZStrArg( + options=["from"], + help="Resource Map Key.", + ) + _element.to = AAZStrArg( + options=["to"], + help="Resource Map Value.", + ) + + scope_map = cls._args_schema.exporters.Element.azure_monitor_workspace_logs.api.schema.scope_map + scope_map.Element = AAZObjectArg( + nullable=True, + ) + + _element = cls._args_schema.exporters.Element.azure_monitor_workspace_logs.api.schema.scope_map.Element + _element.from_ = AAZStrArg( + options=["from"], + help="Scope Map Key.", + ) + _element.to = AAZStrArg( + options=["to"], + help="Scope Map Value.", + ) + + cache = cls._args_schema.exporters.Element.azure_monitor_workspace_logs.cache + cache.max_storage_usage = AAZIntArg( + options=["max-storage-usage"], + help="Max storage usage in megabytes.", + nullable=True, + ) + cache.retention_period = AAZIntArg( + options=["retention-period"], + help="Retention period in minutes.", + nullable=True, + ) + + concurrency = cls._args_schema.exporters.Element.azure_monitor_workspace_logs.concurrency + concurrency.batch_queue_size = AAZIntArg( + options=["batch-queue-size"], + help="Size of the queue for log batches.", + nullable=True, + ) + concurrency.worker_count = AAZIntArg( + options=["worker-count"], + help="Number of parallel workers processing the log queues.", + nullable=True, + ) + + tcp = cls._args_schema.exporters.Element.tcp + tcp.url = AAZStrArg( + options=["url"], + help="TCP url to export.", + fmt=AAZStrArgFormat( + pattern="^(https?)://[a-zA-Z0-9-]+(\\.[a-zA-Z0-9-]+)*$", + ), + ) + + network_config = cls._args_schema.network_config + network_config.Element = AAZObjectArg( + nullable=True, + ) + + _element = cls._args_schema.network_config.Element + _element.external_networking_mode = AAZStrArg( + options=["external-networking-mode"], + help="External networking mode.", + enum={"LoadBalancerOnly": "LoadBalancerOnly"}, + ) + _element.host = AAZStrArg( + options=["host"], + help="The address exposed on the cluster. Example: azuremonitorpipeline.contoso.com.", + nullable=True, + fmt=AAZStrArgFormat( + pattern="^[a-zA-Z0-9-\\.]+$", + ), + ) + _element.routes = AAZListArg( + options=["routes"], + help="Networking routes configuration.", + ) + + routes = cls._args_schema.network_config.Element.routes + routes.Element = AAZObjectArg( + nullable=True, + ) + + _element = cls._args_schema.network_config.Element.routes.Element + _element.path = AAZStrArg( + options=["path"], + help="Route path.", + nullable=True, + fmt=AAZStrArgFormat( + pattern="^[a-zA-Z0-9-/\\.]+$", + ), + ) + _element.port = AAZIntArg( + options=["port"], + help="The port that will be configured externally. If not specified, it will use the port from the receiver definition.", + nullable=True, + fmt=AAZIntArgFormat( + maximum=65535, + minimum=1, + ), + ) + _element.receiver = AAZStrArg( + options=["receiver"], + help="The name of the previously defined receiver.", + fmt=AAZStrArgFormat( + pattern="^(?!-)[a-zA-Z0-9-]{3,32}[^-]$", + ), + ) + _element.subdomain = AAZStrArg( + options=["subdomain"], + help="Route subdomain.", + nullable=True, + fmt=AAZStrArgFormat( + pattern="^[a-zA-Z0-9-\\.]+$", + ), + ) + + processors = cls._args_schema.processors + processors.Element = AAZObjectArg( + nullable=True, + ) + + _element = cls._args_schema.processors.Element + _element.batch = AAZObjectArg( + options=["batch"], + help="Batch processor configurations.", + nullable=True, + ) + _element.name = AAZStrArg( + options=["name"], + help="The name of processor.", + fmt=AAZStrArgFormat( + pattern="^(?!-)[a-zA-Z0-9-]{3,32}[^-]$", + ), + ) + _element.type = AAZStrArg( + options=["type"], + help="The type of processor.", + enum={"Batch": "Batch"}, + ) + + batch = cls._args_schema.processors.Element.batch + batch.batch_size = AAZIntArg( + options=["batch-size"], + help="Size of the batch.", + nullable=True, + fmt=AAZIntArgFormat( + maximum=100000, + minimum=10, + ), + ) + batch.timeout = AAZIntArg( + options=["timeout"], + help="Timeout in milliseconds.", + nullable=True, + fmt=AAZIntArgFormat( + maximum=60000, + minimum=10, + ), + ) + + receivers = cls._args_schema.receivers + receivers.Element = AAZObjectArg( + nullable=True, + ) + + _element = cls._args_schema.receivers.Element + _element.name = AAZStrArg( + options=["name"], + help="The name of receiver.", + fmt=AAZStrArgFormat( + pattern="^(?!-)[a-zA-Z0-9-]{3,32}[^-]$", + ), + ) + _element.otlp = AAZObjectArg( + options=["otlp"], + help="OTLP receiver configurations. This field is mandatory for OTLP and pipelineGroup receivers.", + nullable=True, + ) + _element.syslog = AAZObjectArg( + options=["syslog"], + help="Syslog configurations. This field is mandatory for syslog type receivers.", + nullable=True, + ) + _element.type = AAZStrArg( + options=["type"], + help="The type of receiver.", + enum={"Ama": "Ama", "OTLP": "OTLP", "PipelineGroup": "PipelineGroup", "Syslog": "Syslog", "UDP": "UDP"}, + ) + _element.udp = AAZObjectArg( + options=["udp"], + help="UDP receiver configurations. This field is mandatory for UDP receivers.", + nullable=True, + ) + + otlp = cls._args_schema.receivers.Element.otlp + otlp.endpoint = AAZStrArg( + options=["endpoint"], + help="OTLP GRPC endpoint definition. Example: 0.0.0.0:.", + fmt=AAZStrArgFormat( + pattern="^[a-zA-Z0-9-\\.]+:[0-9]+$", + ), + ) + + syslog = cls._args_schema.receivers.Element.syslog + syslog.endpoint = AAZStrArg( + options=["endpoint"], + help="Syslog receiver endpoint definition. Example: 0.0.0.0:.", + fmt=AAZStrArgFormat( + pattern="^[a-zA-Z0-9-\\.]+:[0-9]+$", + ), + ) + syslog.protocol = AAZStrArg( + options=["protocol"], + help="Protocol to parse syslog messages. Default rfc3164", + nullable=True, + enum={"rfc3164": "rfc3164", "rfc5424": "rfc5424"}, + ) + + udp = cls._args_schema.receivers.Element.udp + udp.encoding = AAZStrArg( + options=["encoding"], + help="The encoding of the stream being received.", + nullable=True, + enum={"ascii": "ascii", "big5": "big5", "nop": "nop", "utf-16be": "utf-16be", "utf-16le": "utf-16le", "utf-8": "utf-8"}, + ) + udp.endpoint = AAZStrArg( + options=["endpoint"], + help="TCP endpoint definition. Example: 0.0.0.0:.", + fmt=AAZStrArgFormat( + pattern="^[a-zA-Z0-9-\\.]+:[0-9]+$", + ), + ) + udp.read_queue_length = AAZIntArg( + options=["read-queue-length"], + help="Max read queue length.", + nullable=True, + fmt=AAZIntArgFormat( + maximum=100000, + minimum=100, + ), + ) + + service = cls._args_schema.service + service.persistence = AAZObjectArg( + options=["persistence"], + help="Persistence options to all pipelines in the instance.", + nullable=True, + ) + service.pipelines = AAZListArg( + options=["pipelines"], + help="Pipelines belonging to a given pipeline group.", + ) + + persistence = cls._args_schema.service.persistence + persistence.persistent_volume_name = AAZStrArg( + options=["persistent-volume-name"], + help="The name of the mounted persistent volume.", + ) + + pipelines = cls._args_schema.service.pipelines + pipelines.Element = AAZObjectArg( + nullable=True, + ) + + _element = cls._args_schema.service.pipelines.Element + _element.exporters = AAZListArg( + options=["exporters"], + help="Reference to exporters configured for the pipeline.", + ) + _element.name = AAZStrArg( + options=["name"], + help="Name of the pipeline.", + fmt=AAZStrArgFormat( + pattern="^(?!-)[a-zA-Z0-9-]{3,32}[^-]$", + ), + ) + _element.processors = AAZListArg( + options=["processors"], + help="Reference to processors configured for the pipeline.", + nullable=True, + ) + _element.receivers = AAZListArg( + options=["receivers"], + help="Reference to receivers configured for the pipeline.", + ) + _element.type = AAZStrArg( + options=["type"], + help="The type of pipeline", + enum={"logs": "logs"}, + ) + + exporters = cls._args_schema.service.pipelines.Element.exporters + exporters.Element = AAZStrArg( + nullable=True, + ) + + processors = cls._args_schema.service.pipelines.Element.processors + processors.Element = AAZStrArg( + nullable=True, + ) + + receivers = cls._args_schema.service.pipelines.Element.receivers + receivers.Element = AAZStrArg( + nullable=True, + ) + + # define Arg Group "Resource" + + _args_schema = cls._args_schema + _args_schema.tags = AAZDictArg( + options=["--tags"], + arg_group="Resource", + help="Resource tags.", + nullable=True, + ) + + tags = cls._args_schema.tags + tags.Element = AAZStrArg( + nullable=True, + ) + return cls._args_schema + + def _execute_operations(self): + self.pre_operations() + self.PipelineGroupsGet(ctx=self.ctx)() + self.pre_instance_update(self.ctx.vars.instance) + self.InstanceUpdateByJson(ctx=self.ctx)() + self.InstanceUpdateByGeneric(ctx=self.ctx)() + self.post_instance_update(self.ctx.vars.instance) + yield self.PipelineGroupsCreateOrUpdate(ctx=self.ctx)() + self.post_operations() + + @register_callback + def pre_operations(self): + pass + + @register_callback + def post_operations(self): + pass + + @register_callback + def pre_instance_update(self, instance): + pass + + @register_callback + def post_instance_update(self, instance): + pass + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.vars.instance, client_flatten=True) + return result + + class PipelineGroupsGet(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}/resourceGroups/{resourceGroupName}/providers/Microsoft.Monitor/pipelineGroups/{pipelineGroupName}", + **self.url_parameters + ) + + @property + def method(self): + return "GET" + + @property + def error_format(self): + return "MgmtErrorFormat" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "pipelineGroupName", self.ctx.args.pipeline_group_name, + required=True, + ), + **self.serialize_url_param( + "resourceGroupName", self.ctx.args.resource_group, + required=True, + ), + **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", "2023-10-01-preview", + 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() + _UpdateHelper._build_schema_pipeline_group_read(cls._schema_on_200) + + return cls._schema_on_200 + + class PipelineGroupsCreateOrUpdate(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 [202]: + return self.client.build_lro_polling( + self.ctx.args.no_wait, + session, + self.on_200_201, + self.on_error, + lro_options={"final-state-via": "azure-async-operation"}, + path_format_arguments=self.url_parameters, + ) + if session.http_response.status_code in [200, 201]: + return self.client.build_lro_polling( + self.ctx.args.no_wait, + session, + self.on_200_201, + self.on_error, + lro_options={"final-state-via": "azure-async-operation"}, + path_format_arguments=self.url_parameters, + ) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Monitor/pipelineGroups/{pipelineGroupName}", + **self.url_parameters + ) + + @property + def method(self): + return "PUT" + + @property + def error_format(self): + return "MgmtErrorFormat" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "pipelineGroupName", self.ctx.args.pipeline_group_name, + required=True, + ), + **self.serialize_url_param( + "resourceGroupName", self.ctx.args.resource_group, + required=True, + ), + **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", "2023-10-01-preview", + required=True, + ), + } + return parameters + + @property + def header_parameters(self): + parameters = { + **self.serialize_header_param( + "Content-Type", "application/json", + ), + **self.serialize_header_param( + "Accept", "application/json", + ), + } + return parameters + + @property + def content(self): + _content_value, _builder = self.new_content_builder( + self.ctx.args, + value=self.ctx.vars.instance, + ) + + return self.serialize_content(_content_value) + + def on_200_201(self, session): + data = self.deserialize_http_content(session) + self.ctx.set_var( + "instance", + data, + schema_builder=self._build_schema_on_200_201 + ) + + _schema_on_200_201 = None + + @classmethod + def _build_schema_on_200_201(cls): + if cls._schema_on_200_201 is not None: + return cls._schema_on_200_201 + + cls._schema_on_200_201 = AAZObjectType() + _UpdateHelper._build_schema_pipeline_group_read(cls._schema_on_200_201) + + return cls._schema_on_200_201 + + class InstanceUpdateByJson(AAZJsonInstanceUpdateOperation): + + def __call__(self, *args, **kwargs): + self._update_instance(self.ctx.vars.instance) + + def _update_instance(self, instance): + _instance_value, _builder = self.new_content_builder( + self.ctx.args, + value=instance, + typ=AAZObjectType + ) + _builder.set_prop("properties", AAZObjectType, typ_kwargs={"flags": {"client_flatten": True}}) + _builder.set_prop("tags", AAZDictType, ".tags") + + properties = _builder.get(".properties") + if properties is not None: + properties.set_prop("exporters", AAZListType, ".exporters", typ_kwargs={"flags": {"required": True}}) + properties.set_prop("networkingConfigurations", AAZListType, ".network_config") + properties.set_prop("processors", AAZListType, ".processors", typ_kwargs={"flags": {"required": True}}) + properties.set_prop("receivers", AAZListType, ".receivers", typ_kwargs={"flags": {"required": True}}) + properties.set_prop("replicas", AAZIntType, ".replicas") + properties.set_prop("service", AAZObjectType, ".service", typ_kwargs={"flags": {"required": True}}) + + exporters = _builder.get(".properties.exporters") + if exporters is not None: + exporters.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.exporters[]") + if _elements is not None: + _elements.set_prop("azureMonitorWorkspaceLogs", AAZObjectType, ".azure_monitor_workspace_logs") + _elements.set_prop("name", AAZStrType, ".name", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("tcp", AAZObjectType, ".tcp") + _elements.set_prop("type", AAZStrType, ".type", typ_kwargs={"flags": {"required": True}}) + + azure_monitor_workspace_logs = _builder.get(".properties.exporters[].azureMonitorWorkspaceLogs") + if azure_monitor_workspace_logs is not None: + azure_monitor_workspace_logs.set_prop("api", AAZObjectType, ".api", typ_kwargs={"flags": {"required": True}}) + azure_monitor_workspace_logs.set_prop("cache", AAZObjectType, ".cache") + azure_monitor_workspace_logs.set_prop("concurrency", AAZObjectType, ".concurrency") + + api = _builder.get(".properties.exporters[].azureMonitorWorkspaceLogs.api") + if api is not None: + api.set_prop("dataCollectionEndpointUrl", AAZStrType, ".data_collection_endpoint_url", typ_kwargs={"flags": {"required": True}}) + api.set_prop("dataCollectionRule", AAZStrType, ".data_collection_rule", typ_kwargs={"flags": {"required": True}}) + api.set_prop("schema", AAZObjectType, ".schema", typ_kwargs={"flags": {"required": True}}) + api.set_prop("stream", AAZStrType, ".stream", typ_kwargs={"flags": {"required": True}}) + + schema = _builder.get(".properties.exporters[].azureMonitorWorkspaceLogs.api.schema") + if schema is not None: + schema.set_prop("recordMap", AAZListType, ".record_map", typ_kwargs={"flags": {"required": True}}) + schema.set_prop("resourceMap", AAZListType, ".resource_map") + schema.set_prop("scopeMap", AAZListType, ".scope_map") + + record_map = _builder.get(".properties.exporters[].azureMonitorWorkspaceLogs.api.schema.recordMap") + if record_map is not None: + record_map.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.exporters[].azureMonitorWorkspaceLogs.api.schema.recordMap[]") + if _elements is not None: + _elements.set_prop("from", AAZStrType, ".from_", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("to", AAZStrType, ".to", typ_kwargs={"flags": {"required": True}}) + + resource_map = _builder.get(".properties.exporters[].azureMonitorWorkspaceLogs.api.schema.resourceMap") + if resource_map is not None: + resource_map.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.exporters[].azureMonitorWorkspaceLogs.api.schema.resourceMap[]") + if _elements is not None: + _elements.set_prop("from", AAZStrType, ".from_", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("to", AAZStrType, ".to", typ_kwargs={"flags": {"required": True}}) + + scope_map = _builder.get(".properties.exporters[].azureMonitorWorkspaceLogs.api.schema.scopeMap") + if scope_map is not None: + scope_map.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.exporters[].azureMonitorWorkspaceLogs.api.schema.scopeMap[]") + if _elements is not None: + _elements.set_prop("from", AAZStrType, ".from_", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("to", AAZStrType, ".to", typ_kwargs={"flags": {"required": True}}) + + cache = _builder.get(".properties.exporters[].azureMonitorWorkspaceLogs.cache") + if cache is not None: + cache.set_prop("maxStorageUsage", AAZIntType, ".max_storage_usage") + cache.set_prop("retentionPeriod", AAZIntType, ".retention_period") + + concurrency = _builder.get(".properties.exporters[].azureMonitorWorkspaceLogs.concurrency") + if concurrency is not None: + concurrency.set_prop("batchQueueSize", AAZIntType, ".batch_queue_size") + concurrency.set_prop("workerCount", AAZIntType, ".worker_count") + + tcp = _builder.get(".properties.exporters[].tcp") + if tcp is not None: + tcp.set_prop("url", AAZStrType, ".url", typ_kwargs={"flags": {"required": True}}) + + networking_configurations = _builder.get(".properties.networkingConfigurations") + if networking_configurations is not None: + networking_configurations.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.networkingConfigurations[]") + if _elements is not None: + _elements.set_prop("externalNetworkingMode", AAZStrType, ".external_networking_mode", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("host", AAZStrType, ".host") + _elements.set_prop("routes", AAZListType, ".routes", typ_kwargs={"flags": {"required": True}}) + + routes = _builder.get(".properties.networkingConfigurations[].routes") + if routes is not None: + routes.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.networkingConfigurations[].routes[]") + if _elements is not None: + _elements.set_prop("path", AAZStrType, ".path") + _elements.set_prop("port", AAZIntType, ".port") + _elements.set_prop("receiver", AAZStrType, ".receiver", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("subdomain", AAZStrType, ".subdomain") + + processors = _builder.get(".properties.processors") + if processors is not None: + processors.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.processors[]") + if _elements is not None: + _elements.set_prop("batch", AAZObjectType, ".batch") + _elements.set_prop("name", AAZStrType, ".name", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("type", AAZStrType, ".type", typ_kwargs={"flags": {"required": True}}) + + batch = _builder.get(".properties.processors[].batch") + if batch is not None: + batch.set_prop("batchSize", AAZIntType, ".batch_size") + batch.set_prop("timeout", AAZIntType, ".timeout") + + receivers = _builder.get(".properties.receivers") + if receivers is not None: + receivers.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.receivers[]") + if _elements is not None: + _elements.set_prop("name", AAZStrType, ".name", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("otlp", AAZObjectType, ".otlp") + _elements.set_prop("syslog", AAZObjectType, ".syslog") + _elements.set_prop("type", AAZStrType, ".type", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("udp", AAZObjectType, ".udp") + + otlp = _builder.get(".properties.receivers[].otlp") + if otlp is not None: + otlp.set_prop("endpoint", AAZStrType, ".endpoint", typ_kwargs={"flags": {"required": True}}) + + syslog = _builder.get(".properties.receivers[].syslog") + if syslog is not None: + syslog.set_prop("endpoint", AAZStrType, ".endpoint", typ_kwargs={"flags": {"required": True}}) + syslog.set_prop("protocol", AAZStrType, ".protocol") + + udp = _builder.get(".properties.receivers[].udp") + if udp is not None: + udp.set_prop("encoding", AAZStrType, ".encoding") + udp.set_prop("endpoint", AAZStrType, ".endpoint", typ_kwargs={"flags": {"required": True}}) + udp.set_prop("readQueueLength", AAZIntType, ".read_queue_length") + + service = _builder.get(".properties.service") + if service is not None: + service.set_prop("persistence", AAZObjectType, ".persistence") + service.set_prop("pipelines", AAZListType, ".pipelines", typ_kwargs={"flags": {"required": True}}) + + persistence = _builder.get(".properties.service.persistence") + if persistence is not None: + persistence.set_prop("persistentVolumeName", AAZStrType, ".persistent_volume_name", typ_kwargs={"flags": {"required": True}}) + + pipelines = _builder.get(".properties.service.pipelines") + if pipelines is not None: + pipelines.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.service.pipelines[]") + if _elements is not None: + _elements.set_prop("exporters", AAZListType, ".exporters", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("name", AAZStrType, ".name", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("processors", AAZListType, ".processors") + _elements.set_prop("receivers", AAZListType, ".receivers", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("type", AAZStrType, ".type", typ_kwargs={"flags": {"required": True}}) + + exporters = _builder.get(".properties.service.pipelines[].exporters") + if exporters is not None: + exporters.set_elements(AAZStrType, ".") + + processors = _builder.get(".properties.service.pipelines[].processors") + if processors is not None: + processors.set_elements(AAZStrType, ".") + + receivers = _builder.get(".properties.service.pipelines[].receivers") + if receivers is not None: + receivers.set_elements(AAZStrType, ".") + + tags = _builder.get(".tags") + if tags is not None: + tags.set_elements(AAZStrType, ".") + + return _instance_value + + class InstanceUpdateByGeneric(AAZGenericInstanceUpdateOperation): + + def __call__(self, *args, **kwargs): + self._update_instance_by_generic( + self.ctx.vars.instance, + self.ctx.generic_update_args + ) + + +class _UpdateHelper: + """Helper class for Update""" + + _schema_pipeline_group_read = None + + @classmethod + def _build_schema_pipeline_group_read(cls, _schema): + if cls._schema_pipeline_group_read is not None: + _schema.extended_location = cls._schema_pipeline_group_read.extended_location + _schema.id = cls._schema_pipeline_group_read.id + _schema.location = cls._schema_pipeline_group_read.location + _schema.name = cls._schema_pipeline_group_read.name + _schema.properties = cls._schema_pipeline_group_read.properties + _schema.system_data = cls._schema_pipeline_group_read.system_data + _schema.tags = cls._schema_pipeline_group_read.tags + _schema.type = cls._schema_pipeline_group_read.type + return + + cls._schema_pipeline_group_read = _schema_pipeline_group_read = AAZObjectType() + + pipeline_group_read = _schema_pipeline_group_read + pipeline_group_read.extended_location = AAZObjectType( + serialized_name="extendedLocation", + ) + pipeline_group_read.id = AAZStrType( + flags={"read_only": True}, + ) + pipeline_group_read.location = AAZStrType( + flags={"required": True}, + ) + pipeline_group_read.name = AAZStrType( + flags={"read_only": True}, + ) + pipeline_group_read.properties = AAZObjectType( + flags={"client_flatten": True}, + ) + pipeline_group_read.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) + pipeline_group_read.tags = AAZDictType() + pipeline_group_read.type = AAZStrType( + flags={"read_only": True}, + ) + + extended_location = _schema_pipeline_group_read.extended_location + extended_location.name = AAZStrType( + flags={"required": True}, + ) + extended_location.type = AAZStrType( + flags={"required": True}, + ) + + properties = _schema_pipeline_group_read.properties + properties.exporters = AAZListType( + flags={"required": True}, + ) + properties.networking_configurations = AAZListType( + serialized_name="networkingConfigurations", + ) + properties.processors = AAZListType( + flags={"required": True}, + ) + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + flags={"read_only": True}, + ) + properties.receivers = AAZListType( + flags={"required": True}, + ) + properties.replicas = AAZIntType() + properties.service = AAZObjectType( + flags={"required": True}, + ) + + exporters = _schema_pipeline_group_read.properties.exporters + exporters.Element = AAZObjectType() + + _element = _schema_pipeline_group_read.properties.exporters.Element + _element.azure_monitor_workspace_logs = AAZObjectType( + serialized_name="azureMonitorWorkspaceLogs", + ) + _element.name = AAZStrType( + flags={"required": True}, + ) + _element.tcp = AAZObjectType() + _element.type = AAZStrType( + flags={"required": True}, + ) + + azure_monitor_workspace_logs = _schema_pipeline_group_read.properties.exporters.Element.azure_monitor_workspace_logs + azure_monitor_workspace_logs.api = AAZObjectType( + flags={"required": True}, + ) + azure_monitor_workspace_logs.cache = AAZObjectType() + azure_monitor_workspace_logs.concurrency = AAZObjectType() + + api = _schema_pipeline_group_read.properties.exporters.Element.azure_monitor_workspace_logs.api + api.data_collection_endpoint_url = AAZStrType( + serialized_name="dataCollectionEndpointUrl", + flags={"required": True}, + ) + api.data_collection_rule = AAZStrType( + serialized_name="dataCollectionRule", + flags={"required": True}, + ) + api.schema = AAZObjectType( + flags={"required": True}, + ) + api.stream = AAZStrType( + flags={"required": True}, + ) + + schema = _schema_pipeline_group_read.properties.exporters.Element.azure_monitor_workspace_logs.api.schema + schema.record_map = AAZListType( + serialized_name="recordMap", + flags={"required": True}, + ) + schema.resource_map = AAZListType( + serialized_name="resourceMap", + ) + schema.scope_map = AAZListType( + serialized_name="scopeMap", + ) + + record_map = _schema_pipeline_group_read.properties.exporters.Element.azure_monitor_workspace_logs.api.schema.record_map + record_map.Element = AAZObjectType() + + _element = _schema_pipeline_group_read.properties.exporters.Element.azure_monitor_workspace_logs.api.schema.record_map.Element + _element["from"] = AAZStrType( + flags={"required": True}, + ) + _element.to = AAZStrType( + flags={"required": True}, + ) + + resource_map = _schema_pipeline_group_read.properties.exporters.Element.azure_monitor_workspace_logs.api.schema.resource_map + resource_map.Element = AAZObjectType() + + _element = _schema_pipeline_group_read.properties.exporters.Element.azure_monitor_workspace_logs.api.schema.resource_map.Element + _element["from"] = AAZStrType( + flags={"required": True}, + ) + _element.to = AAZStrType( + flags={"required": True}, + ) + + scope_map = _schema_pipeline_group_read.properties.exporters.Element.azure_monitor_workspace_logs.api.schema.scope_map + scope_map.Element = AAZObjectType() + + _element = _schema_pipeline_group_read.properties.exporters.Element.azure_monitor_workspace_logs.api.schema.scope_map.Element + _element["from"] = AAZStrType( + flags={"required": True}, + ) + _element.to = AAZStrType( + flags={"required": True}, + ) + + cache = _schema_pipeline_group_read.properties.exporters.Element.azure_monitor_workspace_logs.cache + cache.max_storage_usage = AAZIntType( + serialized_name="maxStorageUsage", + ) + cache.retention_period = AAZIntType( + serialized_name="retentionPeriod", + ) + + concurrency = _schema_pipeline_group_read.properties.exporters.Element.azure_monitor_workspace_logs.concurrency + concurrency.batch_queue_size = AAZIntType( + serialized_name="batchQueueSize", + ) + concurrency.worker_count = AAZIntType( + serialized_name="workerCount", + ) + + tcp = _schema_pipeline_group_read.properties.exporters.Element.tcp + tcp.url = AAZStrType( + flags={"required": True}, + ) + + networking_configurations = _schema_pipeline_group_read.properties.networking_configurations + networking_configurations.Element = AAZObjectType() + + _element = _schema_pipeline_group_read.properties.networking_configurations.Element + _element.external_networking_mode = AAZStrType( + serialized_name="externalNetworkingMode", + flags={"required": True}, + ) + _element.host = AAZStrType() + _element.routes = AAZListType( + flags={"required": True}, + ) + + routes = _schema_pipeline_group_read.properties.networking_configurations.Element.routes + routes.Element = AAZObjectType() + + _element = _schema_pipeline_group_read.properties.networking_configurations.Element.routes.Element + _element.path = AAZStrType() + _element.port = AAZIntType() + _element.receiver = AAZStrType( + flags={"required": True}, + ) + _element.subdomain = AAZStrType() + + processors = _schema_pipeline_group_read.properties.processors + processors.Element = AAZObjectType() + + _element = _schema_pipeline_group_read.properties.processors.Element + _element.batch = AAZObjectType() + _element.name = AAZStrType( + flags={"required": True}, + ) + _element.type = AAZStrType( + flags={"required": True}, + ) + + batch = _schema_pipeline_group_read.properties.processors.Element.batch + batch.batch_size = AAZIntType( + serialized_name="batchSize", + ) + batch.timeout = AAZIntType() + + receivers = _schema_pipeline_group_read.properties.receivers + receivers.Element = AAZObjectType() + + _element = _schema_pipeline_group_read.properties.receivers.Element + _element.name = AAZStrType( + flags={"required": True}, + ) + _element.otlp = AAZObjectType() + _element.syslog = AAZObjectType() + _element.type = AAZStrType( + flags={"required": True}, + ) + _element.udp = AAZObjectType() + + otlp = _schema_pipeline_group_read.properties.receivers.Element.otlp + otlp.endpoint = AAZStrType( + flags={"required": True}, + ) + + syslog = _schema_pipeline_group_read.properties.receivers.Element.syslog + syslog.endpoint = AAZStrType( + flags={"required": True}, + ) + syslog.protocol = AAZStrType() + + udp = _schema_pipeline_group_read.properties.receivers.Element.udp + udp.encoding = AAZStrType() + udp.endpoint = AAZStrType( + flags={"required": True}, + ) + udp.read_queue_length = AAZIntType( + serialized_name="readQueueLength", + ) + + service = _schema_pipeline_group_read.properties.service + service.persistence = AAZObjectType() + service.pipelines = AAZListType( + flags={"required": True}, + ) + + persistence = _schema_pipeline_group_read.properties.service.persistence + persistence.persistent_volume_name = AAZStrType( + serialized_name="persistentVolumeName", + flags={"required": True}, + ) + + pipelines = _schema_pipeline_group_read.properties.service.pipelines + pipelines.Element = AAZObjectType() + + _element = _schema_pipeline_group_read.properties.service.pipelines.Element + _element.exporters = AAZListType( + flags={"required": True}, + ) + _element.name = AAZStrType( + flags={"required": True}, + ) + _element.processors = AAZListType() + _element.receivers = AAZListType( + flags={"required": True}, + ) + _element.type = AAZStrType( + flags={"required": True}, + ) + + exporters = _schema_pipeline_group_read.properties.service.pipelines.Element.exporters + exporters.Element = AAZStrType() + + processors = _schema_pipeline_group_read.properties.service.pipelines.Element.processors + processors.Element = AAZStrType() + + receivers = _schema_pipeline_group_read.properties.service.pipelines.Element.receivers + receivers.Element = AAZStrType() + + system_data = _schema_pipeline_group_read.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", + ) + + tags = _schema_pipeline_group_read.tags + tags.Element = AAZStrType() + + _schema.extended_location = cls._schema_pipeline_group_read.extended_location + _schema.id = cls._schema_pipeline_group_read.id + _schema.location = cls._schema_pipeline_group_read.location + _schema.name = cls._schema_pipeline_group_read.name + _schema.properties = cls._schema_pipeline_group_read.properties + _schema.system_data = cls._schema_pipeline_group_read.system_data + _schema.tags = cls._schema_pipeline_group_read.tags + _schema.type = cls._schema_pipeline_group_read.type + + +__all__ = ["Update"] diff --git a/src/monitor-pipeline-group/azext_monitor_pipeline_group/aaz/latest/monitor/pipeline_group/_wait.py b/src/monitor-pipeline-group/azext_monitor_pipeline_group/aaz/latest/monitor/pipeline_group/_wait.py new file mode 100644 index 0000000000..603c64fe9d --- /dev/null +++ b/src/monitor-pipeline-group/azext_monitor_pipeline_group/aaz/latest/monitor/pipeline_group/_wait.py @@ -0,0 +1,458 @@ +# -------------------------------------------------------------------------------------------- +# 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( + "monitor pipeline-group wait", +) +class Wait(AAZWaitCommand): + """Place the CLI in a waiting state until a condition is met. + """ + + _aaz_info = { + "resources": [ + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.monitor/pipelinegroups/{}", "2023-10-01-preview"], + ] + } + + def _handler(self, command_args): + super()._handler(command_args) + self._execute_operations() + return 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 "" + + _args_schema = cls._args_schema + _args_schema.pipeline_group_name = AAZStrArg( + options=["-n", "--name", "--pipeline-group-name"], + help="The name of pipeline group. The name is case insensitive.", + required=True, + id_part="name", + fmt=AAZStrArgFormat( + pattern="^(?!-)[a-zA-Z0-9-]{3,10}[^-]$", + ), + ) + _args_schema.resource_group = AAZResourceGroupNameArg( + required=True, + ) + return cls._args_schema + + def _execute_operations(self): + self.pre_operations() + self.PipelineGroupsGet(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, client_flatten=False) + return result + + class PipelineGroupsGet(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}/resourceGroups/{resourceGroupName}/providers/Microsoft.Monitor/pipelineGroups/{pipelineGroupName}", + **self.url_parameters + ) + + @property + def method(self): + return "GET" + + @property + def error_format(self): + return "MgmtErrorFormat" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "pipelineGroupName", self.ctx.args.pipeline_group_name, + required=True, + ), + **self.serialize_url_param( + "resourceGroupName", self.ctx.args.resource_group, + required=True, + ), + **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", "2023-10-01-preview", + 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.extended_location = AAZObjectType( + serialized_name="extendedLocation", + ) + _schema_on_200.id = AAZStrType( + flags={"read_only": True}, + ) + _schema_on_200.location = AAZStrType( + flags={"required": True}, + ) + _schema_on_200.name = AAZStrType( + flags={"read_only": True}, + ) + _schema_on_200.properties = AAZObjectType( + flags={"client_flatten": True}, + ) + _schema_on_200.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) + _schema_on_200.tags = AAZDictType() + _schema_on_200.type = AAZStrType( + flags={"read_only": True}, + ) + + extended_location = cls._schema_on_200.extended_location + extended_location.name = AAZStrType( + flags={"required": True}, + ) + extended_location.type = AAZStrType( + flags={"required": True}, + ) + + properties = cls._schema_on_200.properties + properties.exporters = AAZListType( + flags={"required": True}, + ) + properties.networking_configurations = AAZListType( + serialized_name="networkingConfigurations", + ) + properties.processors = AAZListType( + flags={"required": True}, + ) + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + flags={"read_only": True}, + ) + properties.receivers = AAZListType( + flags={"required": True}, + ) + properties.replicas = AAZIntType() + properties.service = AAZObjectType( + flags={"required": True}, + ) + + exporters = cls._schema_on_200.properties.exporters + exporters.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.exporters.Element + _element.azure_monitor_workspace_logs = AAZObjectType( + serialized_name="azureMonitorWorkspaceLogs", + ) + _element.name = AAZStrType( + flags={"required": True}, + ) + _element.tcp = AAZObjectType() + _element.type = AAZStrType( + flags={"required": True}, + ) + + azure_monitor_workspace_logs = cls._schema_on_200.properties.exporters.Element.azure_monitor_workspace_logs + azure_monitor_workspace_logs.api = AAZObjectType( + flags={"required": True}, + ) + azure_monitor_workspace_logs.cache = AAZObjectType() + azure_monitor_workspace_logs.concurrency = AAZObjectType() + + api = cls._schema_on_200.properties.exporters.Element.azure_monitor_workspace_logs.api + api.data_collection_endpoint_url = AAZStrType( + serialized_name="dataCollectionEndpointUrl", + flags={"required": True}, + ) + api.data_collection_rule = AAZStrType( + serialized_name="dataCollectionRule", + flags={"required": True}, + ) + api.schema = AAZObjectType( + flags={"required": True}, + ) + api.stream = AAZStrType( + flags={"required": True}, + ) + + schema = cls._schema_on_200.properties.exporters.Element.azure_monitor_workspace_logs.api.schema + schema.record_map = AAZListType( + serialized_name="recordMap", + flags={"required": True}, + ) + schema.resource_map = AAZListType( + serialized_name="resourceMap", + ) + schema.scope_map = AAZListType( + serialized_name="scopeMap", + ) + + record_map = cls._schema_on_200.properties.exporters.Element.azure_monitor_workspace_logs.api.schema.record_map + record_map.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.exporters.Element.azure_monitor_workspace_logs.api.schema.record_map.Element + _element["from"] = AAZStrType( + flags={"required": True}, + ) + _element.to = AAZStrType( + flags={"required": True}, + ) + + resource_map = cls._schema_on_200.properties.exporters.Element.azure_monitor_workspace_logs.api.schema.resource_map + resource_map.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.exporters.Element.azure_monitor_workspace_logs.api.schema.resource_map.Element + _element["from"] = AAZStrType( + flags={"required": True}, + ) + _element.to = AAZStrType( + flags={"required": True}, + ) + + scope_map = cls._schema_on_200.properties.exporters.Element.azure_monitor_workspace_logs.api.schema.scope_map + scope_map.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.exporters.Element.azure_monitor_workspace_logs.api.schema.scope_map.Element + _element["from"] = AAZStrType( + flags={"required": True}, + ) + _element.to = AAZStrType( + flags={"required": True}, + ) + + cache = cls._schema_on_200.properties.exporters.Element.azure_monitor_workspace_logs.cache + cache.max_storage_usage = AAZIntType( + serialized_name="maxStorageUsage", + ) + cache.retention_period = AAZIntType( + serialized_name="retentionPeriod", + ) + + concurrency = cls._schema_on_200.properties.exporters.Element.azure_monitor_workspace_logs.concurrency + concurrency.batch_queue_size = AAZIntType( + serialized_name="batchQueueSize", + ) + concurrency.worker_count = AAZIntType( + serialized_name="workerCount", + ) + + tcp = cls._schema_on_200.properties.exporters.Element.tcp + tcp.url = AAZStrType( + flags={"required": True}, + ) + + networking_configurations = cls._schema_on_200.properties.networking_configurations + networking_configurations.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.networking_configurations.Element + _element.external_networking_mode = AAZStrType( + serialized_name="externalNetworkingMode", + flags={"required": True}, + ) + _element.host = AAZStrType() + _element.routes = AAZListType( + flags={"required": True}, + ) + + routes = cls._schema_on_200.properties.networking_configurations.Element.routes + routes.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.networking_configurations.Element.routes.Element + _element.path = AAZStrType() + _element.port = AAZIntType() + _element.receiver = AAZStrType( + flags={"required": True}, + ) + _element.subdomain = AAZStrType() + + processors = cls._schema_on_200.properties.processors + processors.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.processors.Element + _element.batch = AAZObjectType() + _element.name = AAZStrType( + flags={"required": True}, + ) + _element.type = AAZStrType( + flags={"required": True}, + ) + + batch = cls._schema_on_200.properties.processors.Element.batch + batch.batch_size = AAZIntType( + serialized_name="batchSize", + ) + batch.timeout = AAZIntType() + + receivers = cls._schema_on_200.properties.receivers + receivers.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.receivers.Element + _element.name = AAZStrType( + flags={"required": True}, + ) + _element.otlp = AAZObjectType() + _element.syslog = AAZObjectType() + _element.type = AAZStrType( + flags={"required": True}, + ) + _element.udp = AAZObjectType() + + otlp = cls._schema_on_200.properties.receivers.Element.otlp + otlp.endpoint = AAZStrType( + flags={"required": True}, + ) + + syslog = cls._schema_on_200.properties.receivers.Element.syslog + syslog.endpoint = AAZStrType( + flags={"required": True}, + ) + syslog.protocol = AAZStrType() + + udp = cls._schema_on_200.properties.receivers.Element.udp + udp.encoding = AAZStrType() + udp.endpoint = AAZStrType( + flags={"required": True}, + ) + udp.read_queue_length = AAZIntType( + serialized_name="readQueueLength", + ) + + service = cls._schema_on_200.properties.service + service.persistence = AAZObjectType() + service.pipelines = AAZListType( + flags={"required": True}, + ) + + persistence = cls._schema_on_200.properties.service.persistence + persistence.persistent_volume_name = AAZStrType( + serialized_name="persistentVolumeName", + flags={"required": True}, + ) + + pipelines = cls._schema_on_200.properties.service.pipelines + pipelines.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.service.pipelines.Element + _element.exporters = AAZListType( + flags={"required": True}, + ) + _element.name = AAZStrType( + flags={"required": True}, + ) + _element.processors = AAZListType() + _element.receivers = AAZListType( + flags={"required": True}, + ) + _element.type = AAZStrType( + flags={"required": True}, + ) + + exporters = cls._schema_on_200.properties.service.pipelines.Element.exporters + exporters.Element = AAZStrType() + + processors = cls._schema_on_200.properties.service.pipelines.Element.processors + processors.Element = AAZStrType() + + receivers = cls._schema_on_200.properties.service.pipelines.Element.receivers + receivers.Element = AAZStrType() + + system_data = cls._schema_on_200.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", + ) + + tags = cls._schema_on_200.tags + tags.Element = AAZStrType() + + return cls._schema_on_200 + + +class _WaitHelper: + """Helper class for Wait""" + + +__all__ = ["Wait"] diff --git a/src/monitor-pipeline-group/azext_monitor_pipeline_group/azext_metadata.json b/src/monitor-pipeline-group/azext_monitor_pipeline_group/azext_metadata.json new file mode 100644 index 0000000000..b1e08d1f4b --- /dev/null +++ b/src/monitor-pipeline-group/azext_monitor_pipeline_group/azext_metadata.json @@ -0,0 +1,4 @@ +{ + "azext.isPreview": true, + "azext.minCliCoreVersion": "2.61.0" +} \ No newline at end of file diff --git a/src/monitor-pipeline-group/azext_monitor_pipeline_group/commands.py b/src/monitor-pipeline-group/azext_monitor_pipeline_group/commands.py new file mode 100644 index 0000000000..b0d842e499 --- /dev/null +++ b/src/monitor-pipeline-group/azext_monitor_pipeline_group/commands.py @@ -0,0 +1,15 @@ +# -------------------------------------------------------------------------------------------- +# 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: disable=too-many-lines +# pylint: disable=too-many-statements + +# from azure.cli.core.commands import CliCommandType + + +def load_command_table(self, _): # pylint: disable=unused-argument + pass diff --git a/src/monitor-pipeline-group/azext_monitor_pipeline_group/custom.py b/src/monitor-pipeline-group/azext_monitor_pipeline_group/custom.py new file mode 100644 index 0000000000..86df1e48ef --- /dev/null +++ b/src/monitor-pipeline-group/azext_monitor_pipeline_group/custom.py @@ -0,0 +1,14 @@ +# -------------------------------------------------------------------------------------------- +# 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: disable=too-many-lines +# pylint: disable=too-many-statements + +from knack.log import get_logger + + +logger = get_logger(__name__) diff --git a/src/monitor-pipeline-group/azext_monitor_pipeline_group/tests/__init__.py b/src/monitor-pipeline-group/azext_monitor_pipeline_group/tests/__init__.py new file mode 100644 index 0000000000..5757aea317 --- /dev/null +++ b/src/monitor-pipeline-group/azext_monitor_pipeline_group/tests/__init__.py @@ -0,0 +1,6 @@ +# -------------------------------------------------------------------------------------------- +# 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 +# -------------------------------------------------------------------------------------------- diff --git a/src/monitor-pipeline-group/azext_monitor_pipeline_group/tests/latest/__init__.py b/src/monitor-pipeline-group/azext_monitor_pipeline_group/tests/latest/__init__.py new file mode 100644 index 0000000000..5757aea317 --- /dev/null +++ b/src/monitor-pipeline-group/azext_monitor_pipeline_group/tests/latest/__init__.py @@ -0,0 +1,6 @@ +# -------------------------------------------------------------------------------------------- +# 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 +# -------------------------------------------------------------------------------------------- diff --git a/src/monitor-pipeline-group/azext_monitor_pipeline_group/tests/latest/data_files/exporters.json b/src/monitor-pipeline-group/azext_monitor_pipeline_group/tests/latest/data_files/exporters.json new file mode 100644 index 0000000000..87eb2808f7 --- /dev/null +++ b/src/monitor-pipeline-group/azext_monitor_pipeline_group/tests/latest/data_files/exporters.json @@ -0,0 +1,29 @@ +[ + { + "name": "gigla1", + "type": "AzureMonitorWorkspaceLogs", + "azureMonitorWorkspaceLogs": { + "api": { + "dataCollectionEndpointUrl": "https://myexporter.eastus-1.ingest.monitor.azure.com", + "dataCollectionRule": "dcr-00000000000000000000000000000000", + "stream": "Custom-MyTableRawData", + "schema": { + "recordMap": [ + { + "from": "body", + "to": "Body" + }, + { + "from": "severity_text", + "to": "SeverityText" + }, + { + "from": "time_unix_nano", + "to": "TimeGenerated" + } + ] + } + } + } + } +] \ No newline at end of file diff --git a/src/monitor-pipeline-group/azext_monitor_pipeline_group/tests/latest/data_files/extendedLocation.json b/src/monitor-pipeline-group/azext_monitor_pipeline_group/tests/latest/data_files/extendedLocation.json new file mode 100644 index 0000000000..f6f1cf5007 --- /dev/null +++ b/src/monitor-pipeline-group/azext_monitor_pipeline_group/tests/latest/data_files/extendedLocation.json @@ -0,0 +1,4 @@ +{ + "name": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kubetest/providers/Microsoft.ExtendedLocation/customLocations/myloc", + "type": "CustomLocation" +} \ No newline at end of file diff --git a/src/monitor-pipeline-group/azext_monitor_pipeline_group/tests/latest/data_files/processors.json b/src/monitor-pipeline-group/azext_monitor_pipeline_group/tests/latest/data_files/processors.json new file mode 100644 index 0000000000..c055ec5d9f --- /dev/null +++ b/src/monitor-pipeline-group/azext_monitor_pipeline_group/tests/latest/data_files/processors.json @@ -0,0 +1,9 @@ +[ + { + "name": "batchproc1", + "type": "Batch", + "batch": { + "batchSize": 10 + } + } +] \ No newline at end of file diff --git a/src/monitor-pipeline-group/azext_monitor_pipeline_group/tests/latest/data_files/receivers.json b/src/monitor-pipeline-group/azext_monitor_pipeline_group/tests/latest/data_files/receivers.json new file mode 100644 index 0000000000..c0678356f6 --- /dev/null +++ b/src/monitor-pipeline-group/azext_monitor_pipeline_group/tests/latest/data_files/receivers.json @@ -0,0 +1,23 @@ +[ + { + "name": "otlp1", + "type": "OTLP", + "otlp": { + "endpoint": "0.0.0.0:7777" + } + }, + { + "name": "myudpreceiveralittlelong26283032", + "type": "UDP", + "udp": { + "endpoint": "0.0.0.0:5555" + } + }, + { + "name": "mysyslog1", + "type": "Syslog", + "syslog": { + "endpoint": "0.0.0.0:4444" + } + } +] \ No newline at end of file diff --git a/src/monitor-pipeline-group/azext_monitor_pipeline_group/tests/latest/data_files/service.json b/src/monitor-pipeline-group/azext_monitor_pipeline_group/tests/latest/data_files/service.json new file mode 100644 index 0000000000..42136667ef --- /dev/null +++ b/src/monitor-pipeline-group/azext_monitor_pipeline_group/tests/latest/data_files/service.json @@ -0,0 +1,19 @@ +{ + "pipelines": [ + { + "name": "MyPipeline1", + "type": "Logs", + "receivers": [ + "otlp1", + "myudpreceiveralittlelong26283032", + "mysyslog1" + ], + "processors": [ + "batchproc1" + ], + "exporters": [ + "gigla1" + ] + } + ] +} \ No newline at end of file diff --git a/src/monitor-pipeline-group/azext_monitor_pipeline_group/tests/latest/data_files/servicepatch.json b/src/monitor-pipeline-group/azext_monitor_pipeline_group/tests/latest/data_files/servicepatch.json new file mode 100644 index 0000000000..b49c37ecd0 --- /dev/null +++ b/src/monitor-pipeline-group/azext_monitor_pipeline_group/tests/latest/data_files/servicepatch.json @@ -0,0 +1,19 @@ +{ + "pipelines": [ + { + "name": "MyPipeline2", + "type": "Logs", + "receivers": [ + "otlp1", + "myudpreceiveralittlelong26283032", + "mysyslog1" + ], + "processors": [ + "batchproc1" + ], + "exporters": [ + "gigla1" + ] + } + ] +} \ No newline at end of file diff --git a/src/monitor-pipeline-group/azext_monitor_pipeline_group/tests/latest/recordings/test_monitor_pipeline_group.yaml b/src/monitor-pipeline-group/azext_monitor_pipeline_group/tests/latest/recordings/test_monitor_pipeline_group.yaml new file mode 100644 index 0000000000..ca9eb93500 --- /dev/null +++ b/src/monitor-pipeline-group/azext_monitor_pipeline_group/tests/latest/recordings/test_monitor_pipeline_group.yaml @@ -0,0 +1,822 @@ +interactions: +- request: + body: '{"extendedLocation": {"name": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kubetest/providers/Microsoft.ExtendedLocation/customLocations/myloc", + "type": "CustomLocation"}, "location": "eastus2euap", "properties": {"exporters": + [{"azureMonitorWorkspaceLogs": {"api": {"dataCollectionEndpointUrl": "https://myexporter.eastus-1.ingest.monitor.azure.com", + "dataCollectionRule": "dcr-00000000000000000000000000000000", "schema": {"recordMap": + [{"from": "body", "to": "Body"}, {"from": "severity_text", "to": "SeverityText"}, + {"from": "time_unix_nano", "to": "TimeGenerated"}]}, "stream": "Custom-MyTableRawData"}}, + "name": "gigla1", "type": "AzureMonitorWorkspaceLogs"}], "networkingConfigurations": + [], "processors": [{"batch": {"batchSize": 10}, "name": "batchproc1", "type": + "Batch"}], "receivers": [{"name": "otlp1", "otlp": {"endpoint": "0.0.0.0:7777"}, + "type": "OTLP"}, {"name": "myudpreceiveralittlelong26283032", "type": "UDP", + "udp": {"endpoint": "0.0.0.0:5555"}}, {"name": "mysyslog1", "syslog": {"endpoint": + "0.0.0.0:4444"}, "type": "Syslog"}], "replicas": 1, "service": {"pipelines": + [{"exporters": ["gigla1"], "name": "MyPipeline1", "processors": ["batchproc1"], + "receivers": ["otlp1", "myudpreceiveralittlelong26283032", "mysyslog1"], "type": + "logs"}]}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - monitor pipeline-group create + Connection: + - keep-alive + Content-Length: + - '1296' + Content-Type: + - application/json + ParameterSetName: + - -g -n -l --exporters --processors --receivers --service --extended-location + --network-config --replicas + User-Agent: + - AZURECLI/2.64.0 azsdk-python-core/1.31.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Monitor/pipelineGroups/mygroup?api-version=2023-10-01-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Monitor/pipelineGroups/mygroup","name":"mygroup","type":"microsoft.monitor/pipelinegroups","location":"eastus2euap","extendedLocation":{"name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kubetest/providers/Microsoft.ExtendedLocation/customLocations/myloc","type":"CustomLocation"},"systemData":{"createdBy":"jinghuan@microsoft.com","createdByType":"User","createdAt":"2024-09-20T05:45:43.9945997Z","lastModifiedBy":"jinghuan@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-09-20T05:45:43.9945997Z"},"properties":{"provisioningState":"Accepted","exporters":[{"azureMonitorWorkspaceLogs":{"api":{"dataCollectionEndpointUrl":"https://myexporter.eastus-1.ingest.monitor.azure.com","dataCollectionRule":"dcr-00000000000000000000000000000000","schema":{"recordMap":[{"from":"body","to":"Body"},{"from":"severity_text","to":"SeverityText"},{"from":"time_unix_nano","to":"TimeGenerated"}]},"stream":"Custom-MyTableRawData"}},"name":"gigla1","type":"AzureMonitorWorkspaceLogs"}],"networkingConfigurations":[],"processors":[{"batch":{"batchSize":10},"name":"batchproc1","type":"Batch"}],"receivers":[{"name":"otlp1","otlp":{"endpoint":"0.0.0.0:7777"},"type":"OTLP"},{"name":"myudpreceiveralittlelong26283032","type":"UDP","udp":{"endpoint":"0.0.0.0:5555"}},{"name":"mysyslog1","syslog":{"endpoint":"0.0.0.0:4444"},"type":"Syslog"}],"replicas":1,"service":{"pipelines":[{"exporters":["gigla1"],"name":"MyPipeline1","processors":["batchproc1"],"receivers":["otlp1","myudpreceiveralittlelong26283032","mysyslog1"],"type":"logs"}]}}}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Monitor/locations/EASTUS2EUAP/operationStatuses/769a69cb-25ee-4dd5-ba44-e4b3296d524a*1BFBF3EC08E299E2655FE038A334DFE2392A70C608F96D6D6358E29A8ED07134?api-version=2023-10-01-preview&t=638624079485570484&c=MIIHhzCCBm-gAwIBAgITHgTSAvXh1GCKrw08WQAABNIC9TANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwNjI3MTUyNDA3WhcNMjUwNjIyMTUyNDA3WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAOX5t0OxQxE3upQbbFvsmp5T7gqPC72fDSg6G0QO-q7rqYToC8QZH_q_PRft3qJZILPcMnC3i05PTpzbeogSlCaa_AwlLL7W5xwBRGnsSFi6uqID-boEdPC1XBtfJ14hE4xgTlvyDFkeshYKWfG6lyrFXbpwsk-8W5euzj5uEAU138aMueyASKkhbn0w-sYa2oA_U3jECVOIlAwWtv49Wed78xbdxyOXsueDyzxDOoM-H1uA24aMiLn3z563K9_bYY4a6hsemVB7YhKwCV0dGFB2NlQuW_yO_VNKEK9b5n56xBisqDcyIAGbNaCFxMjAXplvF7azyX5n0rlTcXgQ5EUCAwEAAaOCBHQwggRwMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHLBggrBgEFBQcBAQSCAb0wggG5MGMGCCsGAQUFBzAChldodHRwOi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BmBgorBgEEAYI3ewICMFgwVgYIKwYBBQUHAgIwSh5IADMAMwBlADAAMQA5ADIAMQAtADQAZAA2ADQALQA0AGYAOABjAC0AYQAwADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEATAfBgNVHSMEGDAWgBTxRmjG8cPwKy19i2rhsvm-NfzRQTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAAE87bMgkwSJkJtWUWHywZrpdkdbMMJKKdyoixpEZVLQBkS9P248tTUDTQq_W-W_H7OUWFz7F2SmgWJcMU4lnrWQB7xGR2SU5N_Uq5D-F95ksx2I3ALBtLB8wC6t2cwtzjFIPYr9NPyCtZrnbgh6CAFqGpOq0mVkPAHZBfOfywStnkVpA4JYP0B8IIBfA4E-YqSFxC_9vSP8doGWlUkJhw7E1ylemxWU0jv_96awij-EayTYpo-pH2U6hG6hdW5nRZ929VEbgHmcDW03GdpvtqiZGWC3RdWgVHTZPvQ5XyUmZOaBQILallvd5D9QYh1VmY4oAl5QfafZ76IVrmfwu6c&s=LCkvPx3rlcS6g8shjrxh0G0jvzmcZeYyPHl6GaEWcLtKRK2kiIEFcn-ofCDbjN6YJlr4aOrFBWgt8KD_xoD_0_fehGGYSMhhhl41lkXir3PWetJpZ9davZt-hWlDPhmhpzysA7qVonNjibnldfHFKH0kENbGefBW24LEXzM_pX5LRDBFCo5sT4JsYITwKm5yrpkL2232hLFT2E5_1qLF8Yj5lDKVeNRkM6li3aR3c9ODvb0fUYhwywVM8Mo8LGA-Lyum7oYaPf5UB5RDTK2vR-IHV82bS2aqgMAIGrEyRIE43WmWplU6tOMdJ7fSNJiiRuq6pYYXEeLlA_FYcRqeLg&h=kTCvfmEkYeCxDY_K7l3hma6QnNfvJgwdiInX_g6iMb0 + cache-control: + - no-cache + content-length: + - '1682' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 20 Sep 2024 05:45:48 GMT + etag: + - '"01004d7a-0000-3400-0000-66ed0c0c0000"' + expires: + - '-1' + mise-correlation-id: + - cd76df7b-46d6-4a20-afb0-84c82768306c + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-azure-ref: + - 20240920T054546Z-1544895b797gtg8fak7zs254zw00000008s000000001ssbx + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-providerhub-traffic: + - 'True' + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + x-msedge-ref: + - 'Ref A: 4E548748BF3045C4B3D7DE50FD3DDBC2 Ref B: MAA201060515047 Ref C: 2024-09-20T05:45:41Z' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - monitor pipeline-group create + Connection: + - keep-alive + ParameterSetName: + - -g -n -l --exporters --processors --receivers --service --extended-location + --network-config --replicas + User-Agent: + - AZURECLI/2.64.0 azsdk-python-core/1.31.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Monitor/locations/EASTUS2EUAP/operationStatuses/769a69cb-25ee-4dd5-ba44-e4b3296d524a*1BFBF3EC08E299E2655FE038A334DFE2392A70C608F96D6D6358E29A8ED07134?api-version=2023-10-01-preview&t=638624079485570484&c=MIIHhzCCBm-gAwIBAgITHgTSAvXh1GCKrw08WQAABNIC9TANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwNjI3MTUyNDA3WhcNMjUwNjIyMTUyNDA3WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADC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pH2U6hG6hdW5nRZ929VEbgHmcDW03GdpvtqiZGWC3RdWgVHTZPvQ5XyUmZOaBQILallvd5D9QYh1VmY4oAl5QfafZ76IVrmfwu6c&s=LCkvPx3rlcS6g8shjrxh0G0jvzmcZeYyPHl6GaEWcLtKRK2kiIEFcn-ofCDbjN6YJlr4aOrFBWgt8KD_xoD_0_fehGGYSMhhhl41lkXir3PWetJpZ9davZt-hWlDPhmhpzysA7qVonNjibnldfHFKH0kENbGefBW24LEXzM_pX5LRDBFCo5sT4JsYITwKm5yrpkL2232hLFT2E5_1qLF8Yj5lDKVeNRkM6li3aR3c9ODvb0fUYhwywVM8Mo8LGA-Lyum7oYaPf5UB5RDTK2vR-IHV82bS2aqgMAIGrEyRIE43WmWplU6tOMdJ7fSNJiiRuq6pYYXEeLlA_FYcRqeLg&h=kTCvfmEkYeCxDY_K7l3hma6QnNfvJgwdiInX_g6iMb0 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Monitor/locations/EASTUS2EUAP/operationStatuses/769a69cb-25ee-4dd5-ba44-e4b3296d524a*1BFBF3EC08E299E2655FE038A334DFE2392A70C608F96D6D6358E29A8ED07134","name":"769a69cb-25ee-4dd5-ba44-e4b3296d524a*1BFBF3EC08E299E2655FE038A334DFE2392A70C608F96D6D6358E29A8ED07134","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Monitor/pipelineGroups/mygroup","status":"Accepted","startTime":"2024-09-20T05:45:46.4447318Z"}' + headers: + cache-control: + - no-cache + content-length: + - '554' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 20 Sep 2024 05:45:49 GMT + etag: + - '"0000a6fc-0000-3400-0000-66ed0c0a0000"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: C866304EE12F4BDCA6B3264F726F2FFC Ref B: MAA201060514039 Ref C: 2024-09-20T05:45:49Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - monitor pipeline-group create + Connection: + - keep-alive + ParameterSetName: + - -g -n -l --exporters --processors --receivers --service --extended-location + --network-config --replicas + User-Agent: + - AZURECLI/2.64.0 azsdk-python-core/1.31.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Monitor/locations/EASTUS2EUAP/operationStatuses/769a69cb-25ee-4dd5-ba44-e4b3296d524a*1BFBF3EC08E299E2655FE038A334DFE2392A70C608F96D6D6358E29A8ED07134?api-version=2023-10-01-preview&t=638624079485570484&c=MIIHhzCCBm-gAwIBAgITHgTSAvXh1GCKrw08WQAABNIC9TANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwNjI3MTUyNDA3WhcNMjUwNjIyMTUyNDA3WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAOX5t0OxQxE3upQbbFvsmp5T7gqPC72fDSg6G0QO-q7rqYToC8QZH_q_PRft3qJZILPcMnC3i05PTpzbeogSlCaa_AwlLL7W5xwBRGnsSFi6uqID-boEdPC1XBtfJ14hE4xgTlvyDFkeshYKWfG6lyrFXbpwsk-8W5euzj5uEAU138aMueyASKkhbn0w-sYa2oA_U3jECVOIlAwWtv49Wed78xbdxyOXsueDyzxDOoM-H1uA24aMiLn3z563K9_bYY4a6hsemVB7YhKwCV0dGFB2NlQuW_yO_VNKEK9b5n56xBisqDcyIAGbNaCFxMjA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eNRkM6li3aR3c9ODvb0fUYhwywVM8Mo8LGA-Lyum7oYaPf5UB5RDTK2vR-IHV82bS2aqgMAIGrEyRIE43WmWplU6tOMdJ7fSNJiiRuq6pYYXEeLlA_FYcRqeLg&h=kTCvfmEkYeCxDY_K7l3hma6QnNfvJgwdiInX_g6iMb0 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Monitor/locations/EASTUS2EUAP/operationStatuses/769a69cb-25ee-4dd5-ba44-e4b3296d524a*1BFBF3EC08E299E2655FE038A334DFE2392A70C608F96D6D6358E29A8ED07134","name":"769a69cb-25ee-4dd5-ba44-e4b3296d524a*1BFBF3EC08E299E2655FE038A334DFE2392A70C608F96D6D6358E29A8ED07134","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Monitor/pipelineGroups/mygroup","status":"Succeeded","startTime":"2024-09-20T05:45:46.4447318Z","endTime":"2024-09-20T05:46:14.8289486Z","properties":null}' + headers: + cache-control: + - no-cache + content-length: + - '614' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 20 Sep 2024 05:46:21 GMT + etag: + - '"0000a8fc-0000-3400-0000-66ed0c260000"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: 0215811E15E14824A2165E1B990BC6A5 Ref B: MAA201060514027 Ref C: 2024-09-20T05:46:20Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - monitor pipeline-group create + Connection: + - keep-alive + ParameterSetName: + - -g -n -l --exporters --processors --receivers --service --extended-location + --network-config --replicas + User-Agent: + - AZURECLI/2.64.0 azsdk-python-core/1.31.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Monitor/pipelineGroups/mygroup?api-version=2023-10-01-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Monitor/pipelineGroups/mygroup","name":"mygroup","type":"microsoft.monitor/pipelinegroups","location":"eastus2euap","extendedLocation":{"name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kubetest/providers/Microsoft.ExtendedLocation/customLocations/myloc","type":"CustomLocation"},"systemData":{"createdBy":"jinghuan@microsoft.com","createdByType":"User","createdAt":"2024-09-20T05:45:43.9945997Z","lastModifiedBy":"319f651f-7ddb-4fc6-9857-7aef9250bd05","lastModifiedByType":"Application","lastModifiedAt":"2024-09-20T05:46:21.4411542Z"},"properties":{"provisioningState":"Succeeded","exporters":[{"azureMonitorWorkspaceLogs":{"api":{"dataCollectionEndpointUrl":"https://myexporter.eastus-1.ingest.monitor.azure.com","dataCollectionRule":"dcr-00000000000000000000000000000000","schema":{"recordMap":[{"from":"body","to":"Body"},{"from":"severity_text","to":"SeverityText"},{"from":"time_unix_nano","to":"TimeGenerated"}]},"stream":"Custom-MyTableRawData"}},"name":"gigla1","type":"AzureMonitorWorkspaceLogs"}],"networkingConfigurations":[],"processors":[{"batch":{"batchSize":10},"name":"batchproc1","type":"Batch"}],"receivers":[{"name":"otlp1","otlp":{"endpoint":"0.0.0.0:7777"},"type":"OTLP"},{"name":"myudpreceiveralittlelong26283032","type":"UDP","udp":{"endpoint":"0.0.0.0:5555"}},{"name":"mysyslog1","syslog":{"endpoint":"0.0.0.0:4444"},"type":"Syslog"}],"replicas":1,"service":{"pipelines":[{"exporters":["gigla1"],"name":"MyPipeline1","processors":["batchproc1"],"receivers":["otlp1","myudpreceiveralittlelong26283032","mysyslog1"],"type":"logs"}]}}}' + headers: + cache-control: + - no-cache + content-length: + - '1704' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 20 Sep 2024 05:46:23 GMT + etag: + - '"0100507a-0000-3400-0000-66ed0c2d0000"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-providerhub-traffic: + - 'True' + x-msedge-ref: + - 'Ref A: 2DA769470A7444B2A5DAA7EDCB4DA45D Ref B: MAA201060513025 Ref C: 2024-09-20T05:46:23Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - monitor pipeline-group show + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - AZURECLI/2.64.0 azsdk-python-core/1.31.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Monitor/pipelineGroups/mygroup?api-version=2023-10-01-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Monitor/pipelineGroups/mygroup","name":"mygroup","type":"microsoft.monitor/pipelinegroups","location":"eastus2euap","extendedLocation":{"name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kubetest/providers/Microsoft.ExtendedLocation/customLocations/myloc","type":"CustomLocation"},"systemData":{"createdBy":"jinghuan@microsoft.com","createdByType":"User","createdAt":"2024-09-20T05:45:43.9945997Z","lastModifiedBy":"319f651f-7ddb-4fc6-9857-7aef9250bd05","lastModifiedByType":"Application","lastModifiedAt":"2024-09-20T05:46:21.4411542Z"},"properties":{"provisioningState":"Succeeded","exporters":[{"azureMonitorWorkspaceLogs":{"api":{"dataCollectionEndpointUrl":"https://myexporter.eastus-1.ingest.monitor.azure.com","dataCollectionRule":"dcr-00000000000000000000000000000000","schema":{"recordMap":[{"from":"body","to":"Body"},{"from":"severity_text","to":"SeverityText"},{"from":"time_unix_nano","to":"TimeGenerated"}]},"stream":"Custom-MyTableRawData"}},"name":"gigla1","type":"AzureMonitorWorkspaceLogs"}],"networkingConfigurations":[],"processors":[{"batch":{"batchSize":10},"name":"batchproc1","type":"Batch"}],"receivers":[{"name":"otlp1","otlp":{"endpoint":"0.0.0.0:7777"},"type":"OTLP"},{"name":"myudpreceiveralittlelong26283032","type":"UDP","udp":{"endpoint":"0.0.0.0:5555"}},{"name":"mysyslog1","syslog":{"endpoint":"0.0.0.0:4444"},"type":"Syslog"}],"replicas":1,"service":{"pipelines":[{"exporters":["gigla1"],"name":"MyPipeline1","processors":["batchproc1"],"receivers":["otlp1","myudpreceiveralittlelong26283032","mysyslog1"],"type":"logs"}]}}}' + headers: + cache-control: + - no-cache + content-length: + - '1704' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 20 Sep 2024 05:46:25 GMT + etag: + - '"0100507a-0000-3400-0000-66ed0c2d0000"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-providerhub-traffic: + - 'True' + x-msedge-ref: + - 'Ref A: 1C65980C621540E9896AC5B0F208E25F Ref B: MAA201060516019 Ref C: 2024-09-20T05:46:24Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - monitor pipeline-group list + Connection: + - keep-alive + ParameterSetName: + - -g + User-Agent: + - AZURECLI/2.64.0 azsdk-python-core/1.31.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Monitor/pipelineGroups?api-version=2023-10-01-preview + response: + body: + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Monitor/pipelineGroups/mygroup","name":"mygroup","type":"microsoft.monitor/pipelinegroups","location":"eastus2euap","extendedLocation":{"name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kubetest/providers/Microsoft.ExtendedLocation/customLocations/myloc","type":"CustomLocation"},"systemData":{"createdBy":"jinghuan@microsoft.com","createdByType":"User","createdAt":"2024-09-20T05:45:43.9945997Z","lastModifiedBy":"319f651f-7ddb-4fc6-9857-7aef9250bd05","lastModifiedByType":"Application","lastModifiedAt":"2024-09-20T05:46:21.4411542Z"},"properties":{"provisioningState":"Succeeded","exporters":[{"azureMonitorWorkspaceLogs":{"api":{"dataCollectionEndpointUrl":"https://myexporter.eastus-1.ingest.monitor.azure.com","dataCollectionRule":"dcr-00000000000000000000000000000000","schema":{"recordMap":[{"from":"body","to":"Body"},{"from":"severity_text","to":"SeverityText"},{"from":"time_unix_nano","to":"TimeGenerated"}]},"stream":"Custom-MyTableRawData"}},"name":"gigla1","type":"AzureMonitorWorkspaceLogs"}],"networkingConfigurations":[],"processors":[{"batch":{"batchSize":10},"name":"batchproc1","type":"Batch"}],"receivers":[{"name":"otlp1","otlp":{"endpoint":"0.0.0.0:7777"},"type":"OTLP"},{"name":"myudpreceiveralittlelong26283032","type":"UDP","udp":{"endpoint":"0.0.0.0:5555"}},{"name":"mysyslog1","syslog":{"endpoint":"0.0.0.0:4444"},"type":"Syslog"}],"replicas":1,"service":{"pipelines":[{"exporters":["gigla1"],"name":"MyPipeline1","processors":["batchproc1"],"receivers":["otlp1","myudpreceiveralittlelong26283032","mysyslog1"],"type":"logs"}]}}}]}' + headers: + cache-control: + - no-cache + content-length: + - '1716' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 20 Sep 2024 05:46:30 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-providerhub-traffic: + - 'True' + x-msedge-ref: + - 'Ref A: 0974002B58D24AA6B1FBA8EDE334722C Ref B: MAA201060514031 Ref C: 2024-09-20T05:46:26Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - monitor pipeline-group update + Connection: + - keep-alive + ParameterSetName: + - -g -n --service + User-Agent: + - AZURECLI/2.64.0 azsdk-python-core/1.31.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Monitor/pipelineGroups/mygroup?api-version=2023-10-01-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Monitor/pipelineGroups/mygroup","name":"mygroup","type":"microsoft.monitor/pipelinegroups","location":"eastus2euap","extendedLocation":{"name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kubetest/providers/Microsoft.ExtendedLocation/customLocations/myloc","type":"CustomLocation"},"systemData":{"createdBy":"jinghuan@microsoft.com","createdByType":"User","createdAt":"2024-09-20T05:45:43.9945997Z","lastModifiedBy":"319f651f-7ddb-4fc6-9857-7aef9250bd05","lastModifiedByType":"Application","lastModifiedAt":"2024-09-20T05:46:21.4411542Z"},"properties":{"provisioningState":"Succeeded","exporters":[{"azureMonitorWorkspaceLogs":{"api":{"dataCollectionEndpointUrl":"https://myexporter.eastus-1.ingest.monitor.azure.com","dataCollectionRule":"dcr-00000000000000000000000000000000","schema":{"recordMap":[{"from":"body","to":"Body"},{"from":"severity_text","to":"SeverityText"},{"from":"time_unix_nano","to":"TimeGenerated"}]},"stream":"Custom-MyTableRawData"}},"name":"gigla1","type":"AzureMonitorWorkspaceLogs"}],"networkingConfigurations":[],"processors":[{"batch":{"batchSize":10},"name":"batchproc1","type":"Batch"}],"receivers":[{"name":"otlp1","otlp":{"endpoint":"0.0.0.0:7777"},"type":"OTLP"},{"name":"myudpreceiveralittlelong26283032","type":"UDP","udp":{"endpoint":"0.0.0.0:5555"}},{"name":"mysyslog1","syslog":{"endpoint":"0.0.0.0:4444"},"type":"Syslog"}],"replicas":1,"service":{"pipelines":[{"exporters":["gigla1"],"name":"MyPipeline1","processors":["batchproc1"],"receivers":["otlp1","myudpreceiveralittlelong26283032","mysyslog1"],"type":"logs"}]}}}' + headers: + cache-control: + - no-cache + content-length: + - '1704' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 20 Sep 2024 05:46:30 GMT + etag: + - '"0100507a-0000-3400-0000-66ed0c2d0000"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-providerhub-traffic: + - 'True' + x-msedge-ref: + - 'Ref A: B0C8E61A7A444E17BB9CFD5ED2B7D1D9 Ref B: MAA201060515009 Ref C: 2024-09-20T05:46:30Z' + status: + code: 200 + message: OK +- request: + body: '{"extendedLocation": {"name": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kubetest/providers/Microsoft.ExtendedLocation/customLocations/myloc", + "type": "CustomLocation"}, "location": "eastus2euap", "properties": {"exporters": + [{"azureMonitorWorkspaceLogs": {"api": {"dataCollectionEndpointUrl": "https://myexporter.eastus-1.ingest.monitor.azure.com", + "dataCollectionRule": "dcr-00000000000000000000000000000000", "schema": {"recordMap": + [{"from": "body", "to": "Body"}, {"from": "severity_text", "to": "SeverityText"}, + {"from": "time_unix_nano", "to": "TimeGenerated"}]}, "stream": "Custom-MyTableRawData"}}, + "name": "gigla1", "type": "AzureMonitorWorkspaceLogs"}], "networkingConfigurations": + [], "processors": [{"batch": {"batchSize": 10}, "name": "batchproc1", "type": + "Batch"}], "receivers": [{"name": "otlp1", "otlp": {"endpoint": "0.0.0.0:7777"}, + "type": "OTLP"}, {"name": "myudpreceiveralittlelong26283032", "type": "UDP", + "udp": {"endpoint": "0.0.0.0:5555"}}, {"name": "mysyslog1", "syslog": {"endpoint": + "0.0.0.0:4444"}, "type": "Syslog"}], "replicas": 1, "service": {"pipelines": + [{"exporters": ["gigla1"], "name": "MyPipeline2", "processors": ["batchproc1"], + "receivers": ["otlp1", "myudpreceiveralittlelong26283032", "mysyslog1"], "type": + "logs"}]}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - monitor pipeline-group update + Connection: + - keep-alive + Content-Length: + - '1296' + Content-Type: + - application/json + ParameterSetName: + - -g -n --service + User-Agent: + - AZURECLI/2.64.0 azsdk-python-core/1.31.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Monitor/pipelineGroups/mygroup?api-version=2023-10-01-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Monitor/pipelineGroups/mygroup","name":"mygroup","type":"microsoft.monitor/pipelinegroups","location":"eastus2euap","extendedLocation":{"name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kubetest/providers/Microsoft.ExtendedLocation/customLocations/myloc","type":"CustomLocation"},"systemData":{"createdBy":"jinghuan@microsoft.com","createdByType":"User","createdAt":"2024-09-20T05:45:43.9945997Z","lastModifiedBy":"jinghuan@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-09-20T05:46:32.6283864Z"},"properties":{"provisioningState":"Accepted","exporters":[{"azureMonitorWorkspaceLogs":{"api":{"dataCollectionEndpointUrl":"https://myexporter.eastus-1.ingest.monitor.azure.com","dataCollectionRule":"dcr-00000000000000000000000000000000","schema":{"recordMap":[{"from":"body","to":"Body"},{"from":"severity_text","to":"SeverityText"},{"from":"time_unix_nano","to":"TimeGenerated"}]},"stream":"Custom-MyTableRawData"}},"name":"gigla1","type":"AzureMonitorWorkspaceLogs"}],"networkingConfigurations":[],"processors":[{"batch":{"batchSize":10},"name":"batchproc1","type":"Batch"}],"receivers":[{"name":"otlp1","otlp":{"endpoint":"0.0.0.0:7777"},"type":"OTLP"},{"name":"myudpreceiveralittlelong26283032","type":"UDP","udp":{"endpoint":"0.0.0.0:5555"}},{"name":"mysyslog1","syslog":{"endpoint":"0.0.0.0:4444"},"type":"Syslog"}],"replicas":1,"service":{"pipelines":[{"exporters":["gigla1"],"name":"MyPipeline2","processors":["batchproc1"],"receivers":["otlp1","myudpreceiveralittlelong26283032","mysyslog1"],"type":"logs"}]}}}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Monitor/locations/EASTUS2EUAP/operationStatuses/ff81ab08-8d56-45f4-addf-c57a9b0e9ac6*1BFBF3EC08E299E2655FE038A334DFE2392A70C608F96D6D6358E29A8ED07134?api-version=2023-10-01-preview&t=638624079958159726&c=MIIHhzCCBm-gAwIBAgITHgTSAvXh1GCKrw08WQAABNIC9TANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwNjI3MTUyNDA3WhcNMjUwNjIyMTUyNDA3WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAOX5t0OxQxE3upQbbFvsmp5T7gqPC72fDSg6G0QO-q7rqYToC8QZH_q_PRft3qJZILPcMnC3i05PTpzbeogSlCaa_AwlLL7W5xwBRGnsSFi6uqID-boEdPC1XBtfJ14hE4xgTlvyDFkeshYKWfG6lyrFXbpwsk-8W5euzj5uEAU138aMueyASKkhbn0w-sYa2oA_U3jECVOIlAwWtv49Wed78xbdxyOXsueDyzxDOoM-H1uA24aMiLn3z563K9_bYY4a6hsemVB7YhKwCV0dGFB2NlQuW_yO_VNKEK9b5n56xBisqDcyIAGbNaCFxMjAXplvF7azyX5n0rlTcXgQ5EUCAwEAAaOCBHQwggRwMCcGCSsGAQQBgjcVCgQaMBgwC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dZDiD9yABmqHDFTZc1DhIgUgaupGKvgNhL5NHiHFT5P5X4XSQKoqf9Tg&h=UWfuZM1WTJA7PzCSKTpyyLAjeb8Rlc-oQ4i7unZufao + cache-control: + - no-cache + content-length: + - '1682' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 20 Sep 2024 05:46:35 GMT + etag: + - '"0100527a-0000-3400-0000-66ed0c3b0000"' + expires: + - '-1' + mise-correlation-id: + - 1a15a281-fbe3-49cd-bebd-7bf9edc550f5 + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-azure-ref: + - 20240920T054635Z-1544895b7977swq9qv3fxnapxs00000009gg00000000002z + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-providerhub-traffic: + - 'True' + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + x-msedge-ref: + - 'Ref A: 0F0CEFCEF4B149D2A5FE80DAB5FF53FC Ref B: MAA201060514011 Ref C: 2024-09-20T05:46:31Z' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - monitor pipeline-group update + Connection: + - keep-alive + ParameterSetName: + - -g -n --service + User-Agent: + - AZURECLI/2.64.0 azsdk-python-core/1.31.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Monitor/locations/EASTUS2EUAP/operationStatuses/ff81ab08-8d56-45f4-addf-c57a9b0e9ac6*1BFBF3EC08E299E2655FE038A334DFE2392A70C608F96D6D6358E29A8ED07134?api-version=2023-10-01-preview&t=638624079958159726&c=MIIHhzCCBm-gAwIBAgITHgTSAvXh1GCKrw08WQAABNIC9TANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwNjI3MTUyND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SU5N_Uq5D-F95ksx2I3ALBtLB8wC6t2cwtzjFIPYr9NPyCtZrnbgh6CAFqGpOq0mVkPAHZBfOfywStnkVpA4JYP0B8IIBfA4E-YqSFxC_9vSP8doGWlUkJhw7E1ylemxWU0jv_96awij-EayTYpo-pH2U6hG6hdW5nRZ929VEbgHmcDW03GdpvtqiZGWC3RdWgVHTZPvQ5XyUmZOaBQILallvd5D9QYh1VmY4oAl5QfafZ76IVrmfwu6c&s=G1Uo3YWLHkyQ21IhDkeU6lQlqb7CZJ9lAXpv9lID74d_YKw5bcu18RgAym0jcb2qAU10Z-6rls33UHCsBJZWQ6-JjXtM79AF9DWEdVGUZwt0VkHUncH_Z98J_kVX44jDm21Uc4f9VU2dolr63MO8YSomMj1FbqHpwVgYNuJmnzOqrddANW8nqPf8iYwfEmgzneX4Y14yihS2OOKNYeB7eXw31gqRtArMUu8di1QQWFY-2ymqHEAJW2-wTL28u1V2yezEI3dHyNCTmmg2Kj2VWq98AkhS5KdZDiD9yABmqHDFTZc1DhIgUgaupGKvgNhL5NHiHFT5P5X4XSQKoqf9Tg&h=UWfuZM1WTJA7PzCSKTpyyLAjeb8Rlc-oQ4i7unZufao + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Monitor/locations/EASTUS2EUAP/operationStatuses/ff81ab08-8d56-45f4-addf-c57a9b0e9ac6*1BFBF3EC08E299E2655FE038A334DFE2392A70C608F96D6D6358E29A8ED07134","name":"ff81ab08-8d56-45f4-addf-c57a9b0e9ac6*1BFBF3EC08E299E2655FE038A334DFE2392A70C608F96D6D6358E29A8ED07134","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Monitor/pipelineGroups/mygroup","status":"Accepted","startTime":"2024-09-20T05:46:34.9058313Z"}' + headers: + cache-control: + - no-cache + content-length: + - '554' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 20 Sep 2024 05:46:37 GMT + etag: + - '"0000a9fc-0000-3400-0000-66ed0c3b0000"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: 2C0E28125CE84F4F85A940E07A8F88F8 Ref B: MAA201060514035 Ref C: 2024-09-20T05:46:36Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - monitor pipeline-group update + Connection: + - keep-alive + ParameterSetName: + - -g -n --service + User-Agent: + - AZURECLI/2.64.0 azsdk-python-core/1.31.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Monitor/locations/EASTUS2EUAP/operationStatuses/ff81ab08-8d56-45f4-addf-c57a9b0e9ac6*1BFBF3EC08E299E2655FE038A334DFE2392A70C608F96D6D6358E29A8ED07134?api-version=2023-10-01-preview&t=638624079958159726&c=MIIHhzCCBm-gAwIBAgITHgTSAvXh1GCKrw08WQAABNIC9TANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwNjI3MTUyNDA3WhcNMjUwNjIyMTUyNDA3WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAOX5t0OxQxE3upQbbFvsmp5T7gqPC72fDSg6G0QO-q7rqYToC8QZH_q_PRft3qJZILPcMnC3i05PTpzbeogSlCaa_AwlLL7W5xwBRGnsSFi6uqID-boEdPC1XBtfJ14hE4xgTlvyDFkeshYKWfG6lyrFXbpwsk-8W5euzj5uEAU138aMueyASKkhbn0w-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JjXtM79AF9DWEdVGUZwt0VkHUncH_Z98J_kVX44jDm21Uc4f9VU2dolr63MO8YSomMj1FbqHpwVgYNuJmnzOqrddANW8nqPf8iYwfEmgzneX4Y14yihS2OOKNYeB7eXw31gqRtArMUu8di1QQWFY-2ymqHEAJW2-wTL28u1V2yezEI3dHyNCTmmg2Kj2VWq98AkhS5KdZDiD9yABmqHDFTZc1DhIgUgaupGKvgNhL5NHiHFT5P5X4XSQKoqf9Tg&h=UWfuZM1WTJA7PzCSKTpyyLAjeb8Rlc-oQ4i7unZufao + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Monitor/locations/EASTUS2EUAP/operationStatuses/ff81ab08-8d56-45f4-addf-c57a9b0e9ac6*1BFBF3EC08E299E2655FE038A334DFE2392A70C608F96D6D6358E29A8ED07134","name":"ff81ab08-8d56-45f4-addf-c57a9b0e9ac6*1BFBF3EC08E299E2655FE038A334DFE2392A70C608F96D6D6358E29A8ED07134","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Monitor/pipelineGroups/mygroup","status":"Succeeded","startTime":"2024-09-20T05:46:34.9058313Z","endTime":"2024-09-20T05:46:53.83216Z","properties":null}' + headers: + cache-control: + - no-cache + content-length: + - '612' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 20 Sep 2024 05:47:07 GMT + etag: + - '"0000abfc-0000-3400-0000-66ed0c4d0000"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: 15CD3D7C02164E0D86291A06F63F30D2 Ref B: MAA201060516053 Ref C: 2024-09-20T05:47:07Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - monitor pipeline-group update + Connection: + - keep-alive + ParameterSetName: + - -g -n --service + User-Agent: + - AZURECLI/2.64.0 azsdk-python-core/1.31.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Monitor/pipelineGroups/mygroup?api-version=2023-10-01-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Monitor/pipelineGroups/mygroup","name":"mygroup","type":"microsoft.monitor/pipelinegroups","location":"eastus2euap","extendedLocation":{"name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kubetest/providers/Microsoft.ExtendedLocation/customLocations/myloc","type":"CustomLocation"},"systemData":{"createdBy":"jinghuan@microsoft.com","createdByType":"User","createdAt":"2024-09-20T05:45:43.9945997Z","lastModifiedBy":"319f651f-7ddb-4fc6-9857-7aef9250bd05","lastModifiedByType":"Application","lastModifiedAt":"2024-09-20T05:46:57.157319Z"},"properties":{"provisioningState":"Succeeded","exporters":[{"azureMonitorWorkspaceLogs":{"api":{"dataCollectionEndpointUrl":"https://myexporter.eastus-1.ingest.monitor.azure.com","dataCollectionRule":"dcr-00000000000000000000000000000000","schema":{"recordMap":[{"from":"body","to":"Body"},{"from":"severity_text","to":"SeverityText"},{"from":"time_unix_nano","to":"TimeGenerated"}]},"stream":"Custom-MyTableRawData"}},"name":"gigla1","type":"AzureMonitorWorkspaceLogs"}],"networkingConfigurations":[],"processors":[{"batch":{"batchSize":10},"name":"batchproc1","type":"Batch"}],"receivers":[{"name":"otlp1","otlp":{"endpoint":"0.0.0.0:7777"},"type":"OTLP"},{"name":"myudpreceiveralittlelong26283032","type":"UDP","udp":{"endpoint":"0.0.0.0:5555"}},{"name":"mysyslog1","syslog":{"endpoint":"0.0.0.0:4444"},"type":"Syslog"}],"replicas":1,"service":{"pipelines":[{"exporters":["gigla1"],"name":"MyPipeline2","processors":["batchproc1"],"receivers":["otlp1","myudpreceiveralittlelong26283032","mysyslog1"],"type":"logs"}]}}}' + headers: + cache-control: + - no-cache + content-length: + - '1703' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 20 Sep 2024 05:47:08 GMT + etag: + - '"0100587a-0000-3400-0000-66ed0c510000"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-providerhub-traffic: + - 'True' + x-msedge-ref: + - 'Ref A: 0C1C1EAE3D7649D6B22FCC65923997C7 Ref B: MAA201060516033 Ref C: 2024-09-20T05:47:09Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - monitor pipeline-group delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -g -n -y + User-Agent: + - AZURECLI/2.64.0 azsdk-python-core/1.31.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Monitor/pipelineGroups/mygroup?api-version=2023-10-01-preview + response: + body: + string: 'null' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Monitor/locations/EASTUS2EUAP/operationStatuses/fa9c4352-1eb9-4f67-943e-ca53cd7dd96d*1BFBF3EC08E299E2655FE038A334DFE2392A70C608F96D6D6358E29A8ED07134?api-version=2023-10-01-preview&t=638624080341609436&c=MIIHhzCCBm-gAwIBAgITHgTSAvXh1GCKrw08WQAABNIC9TANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwNjI3MTUyNDA3WhcNMjUwNjIyMTUyNDA3WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0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fywStnkVpA4JYP0B8IIBfA4E-YqSFxC_9vSP8doGWlUkJhw7E1ylemxWU0jv_96awij-EayTYpo-pH2U6hG6hdW5nRZ929VEbgHmcDW03GdpvtqiZGWC3RdWgVHTZPvQ5XyUmZOaBQILallvd5D9QYh1VmY4oAl5QfafZ76IVrmfwu6c&s=NkRUeVj7PpCPrMI_GdRSz54Tgp2tfmuY9WByKe4IMOzS5IoENAO8qIfAxuMpwy5iqhNOqaevk_TPAzrdJlR3WU5bmymFbr86X8bR__ZGTwIFrRa4w_0sJhOSq0JmJAz9TRSbIZV1CQlep3_e1yWgFO21sKlxqTpdNCN9jETsADnWzJnVzVhzfY1Y3T6F0PQQ_9BpU_w7-m-LRUK6bAX0nhBorU2sGhU7nFLDrIyAznRi7C1NB0CtzfTPLFpjAPnm2eVSeYXG62WVaSUlIySshMJ0zwM6IMxRLVZSkCZ05Gs46n-yFynCzTMiefU4ee4PZdDmn365MJgkRIeq_lr_2g&h=EsUL8hLFz8cPLYfPefDcLzGB-_3qM09qnIk4bTgAotY + cache-control: + - no-cache + content-length: + - '4' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 20 Sep 2024 05:47:14 GMT + etag: + - '"0100597a-0000-3400-0000-66ed0c620000"' + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Monitor/locations/EASTUS2EUAP/operationStatuses/fa9c4352-1eb9-4f67-943e-ca53cd7dd96d*1BFBF3EC08E299E2655FE038A334DFE2392A70C608F96D6D6358E29A8ED07134?api-version=2023-10-01-preview&t=638624080341765159&c=MIIHhzCCBm-gAwIBAgITHgTSAvXh1GCKrw08WQAABNIC9TANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwNjI3MTUyNDA3WhcNMjUwNjIyMTUyNDA3WjBAMT4wPAYD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zjFIPYr9NPyCtZrnbgh6CAFqGpOq0mVkPAHZBfOfywStnkVpA4JYP0B8IIBfA4E-YqSFxC_9vSP8doGWlUkJhw7E1ylemxWU0jv_96awij-EayTYpo-pH2U6hG6hdW5nRZ929VEbgHmcDW03GdpvtqiZGWC3RdWgVHTZPvQ5XyUmZOaBQILallvd5D9QYh1VmY4oAl5QfafZ76IVrmfwu6c&s=exrKEgoPJ_3beSLjqSnGaFz_dRpMVTaZ0qe5YQRWZYbDP5SYrcRBGg41uLmI8RYmbb7hOMfe_DE-WQadGpxatuPPnlAEDfj3aKwiNur_oz4F-m8T2RIBRvGM9hwxpS8K51_M-eRFFExQd6eLOVRWOC897aXbrpLr_8u-eaxdId0QwOv00HFGz6wGfq8NJbqIiVf6Nv3sBdNgGmfcQPrLu0hB-Tqmfi12MitUbhzJ7b-_bj0KzFfi4BSqqbS3e4Md4P8IVdteLU6-n2zQ4u91sk75urV1IF-7-uppxFFO4pFQ92gBrXJ8GIkgDZNDMtaLG7WKtdjmCdTLsnA6S45CVQ&h=ShENcmgHJDWB4Nu-VItV_zo7EGTRJDAc6OhTuHR9fpM + mise-correlation-id: + - c5981650-8845-4e4b-a58e-fcc5f027fc96 + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-azure-ref: + - 20240920T054713Z-1544895b797x95snfsc1ku7qp00000000c50000000018e7p + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-providerhub-traffic: + - 'True' + x-ms-ratelimit-remaining-subscription-deletes: + - '14999' + x-msedge-ref: + - 'Ref A: 636E9851505A47F6B3D75C6B5AF2E7AA Ref B: MAA201060514031 Ref C: 2024-09-20T05:47:10Z' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - monitor pipeline-group delete + Connection: + - keep-alive + ParameterSetName: + - -g -n -y + User-Agent: + - AZURECLI/2.64.0 azsdk-python-core/1.31.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Monitor/locations/EASTUS2EUAP/operationStatuses/fa9c4352-1eb9-4f67-943e-ca53cd7dd96d*1BFBF3EC08E299E2655FE038A334DFE2392A70C608F96D6D6358E29A8ED07134?api-version=2023-10-01-preview&t=638624080341609436&c=MIIHhzCCBm-gAwIBAgITHgTSAvXh1GCKrw08WQAABNIC9TANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwNjI3MTUyNDA3WhcNMjUwNjIyMTUyNDA3WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAOX5t0OxQxE3upQbbFvsmp5T7gqPC72fDSg6G0QO-q7rqYToC8QZH_q_PRft3qJZILPcMnC3i05PTpzbeogSlCaa_AwlLL7W5xwBRGnsSFi6uqID-boEdPC1XBtfJ14hE4xgTlvyDFkeshYKWfG6lyrFXbpwsk-8W5euzj5uEAU138aMueyASKkhbn0w-sYa2oA_U3jECVOIlAwWtv49Wed78xbdxyOXsueDyzxDOoM-H1uA24aMiLn3z563K9_bYY4a6hsemVB7YhKwCV0dGFB2NlQuW_yO_VNKEK9b5n56xBisqDcyIAGbNaCFxMjAXplvF7azyX5n0rlTcXgQ5EUCAwEAAaOCBHQwggRwMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHLBggrBgEFBQcBAQSCAb0wggG5MGMGCCsGAQUFBzA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AGCN3sBATBmBgorBgEEAYI3ewICMFgwVgYIKwYBBQUHAgIwSh5IADMAMwBlADAAMQA5ADIAMQAtADQAZAA2ADQALQA0AGYAOABjAC0AYQAwADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEATAfBgNVHSMEGDAWgBTxRmjG8cPwKy19i2rhsvm-NfzRQTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAAE87bMgkwSJkJtWUWHywZrpdkdbMMJKKdyoixpEZVLQBkS9P248tTUDTQq_W-W_H7OUWFz7F2SmgWJcMU4lnrWQB7xGR2SU5N_Uq5D-F95ksx2I3ALBtLB8wC6t2cwtzjFIPYr9NPyCtZrnbgh6CAFqGpOq0mVkPAHZBfOfywStnkVpA4JYP0B8IIBfA4E-YqSFxC_9vSP8doGWlUkJhw7E1ylemxWU0jv_96awij-EayTYpo-pH2U6hG6hdW5nRZ929VEbgHmcDW03GdpvtqiZGWC3RdWgVHTZPvQ5XyUmZOaBQILallvd5D9QYh1VmY4oAl5QfafZ76IVrmfwu6c&s=NkRUeVj7PpCPrMI_GdRSz54Tgp2tfmuY9WByKe4IMOzS5IoENAO8qIfAxuMpwy5iqhNOqaevk_TPAzrdJlR3WU5bmymFbr86X8bR__ZGTwIFrRa4w_0sJhOSq0JmJAz9TRSbIZV1CQlep3_e1yWgFO21sKlxqTpdNCN9jETsADnWzJnVzVhzfY1Y3T6F0PQQ_9BpU_w7-m-LRUK6bAX0nhBorU2sGhU7nFLDrIyAznRi7C1NB0CtzfTPLFpjAPnm2eVSeYXG62WVaSUlIySshMJ0zwM6IMxRLVZSkCZ05Gs46n-yFynCzTMiefU4ee4PZdDmn365MJgkRIeq_lr_2g&h=EsUL8hLFz8cPLYfPefDcLzGB-_3qM09qnIk4bTgAotY + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Monitor/locations/EASTUS2EUAP/operationStatuses/fa9c4352-1eb9-4f67-943e-ca53cd7dd96d*1BFBF3EC08E299E2655FE038A334DFE2392A70C608F96D6D6358E29A8ED07134","name":"fa9c4352-1eb9-4f67-943e-ca53cd7dd96d*1BFBF3EC08E299E2655FE038A334DFE2392A70C608F96D6D6358E29A8ED07134","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Monitor/pipelineGroups/mygroup","status":"Deleting","startTime":"2024-09-20T05:47:13.5691746Z"}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Monitor/locations/eastus2euap/operationStatuses/fa9c4352-1eb9-4f67-943e-ca53cd7dd96d*1BFBF3EC08E299E2655FE038A334DFE2392A70C608F96D6D6358E29A8ED07134?api-version=2023-10-01-preview&t=638624080358139748&c=MIIHhzCCBm-gAwIBAgITHgTSAvXh1GCKrw08WQAABNIC9TANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwNjI3MTUyNDA3WhcNMjUwNjIyMTUyNDA3WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAOX5t0OxQxE3upQbbFvsmp5T7gqPC72fDSg6G0QO-q7rqYToC8QZH_q_PRft3qJZILPcMnC3i05PTpzbeogSlCaa_AwlLL7W5xwBRGnsSFi6uqID-boEdPC1XBtfJ14hE4xgTlvyDFkeshYKWfG6lyrFXbpwsk-8W5euzj5uEAU138aMueyASKkhbn0w-sYa2oA_U3jECVOIlAwWtv49Wed78xbdxyOXsueDyzxDOoM-H1uA24aMiLn3z563K9_bYY4a6h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ichaENN7J9nDRR8bABFGrd4toGPsovYyzLi9VebftfqOVjuxjnDwU8sFlfOxSflKwXFWQC-Dw74CQCu1kYgAPogSpwPLj9ZXkX-0IyH426cRoCA1ft8eahj9eZiDdynZXp9BMwd1byGcCiUgbwsfDWTxynEFom_X9iMH9C_cZKuOpFjN72ObFZQ&h=Yr22PUHCfsspot2defbJP_Iyz03fGt2mJAJ03xTuMCM + cache-control: + - no-cache + content-length: + - '554' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 20 Sep 2024 05:47:15 GMT + etag: + - '"0000acfc-0000-3400-0000-66ed0c610000"' + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Monitor/locations/eastus2euap/operationStatuses/fa9c4352-1eb9-4f67-943e-ca53cd7dd96d*1BFBF3EC08E299E2655FE038A334DFE2392A70C608F96D6D6358E29A8ED07134?api-version=2023-10-01-preview&t=638624080358295555&c=MIIHhzCCBm-gAwIBAgITHgTSAvXh1GCKrw08WQAABNIC9TANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwNjI3MTUyNDA3WhcNMjUwNjIyMTUyNDA3WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAOX5t0OxQxE3upQbbFvsmp5T7gqPC72fDSg6G0QO-q7rqYToC8QZH_q_PRft3qJZILPcMnC3i05PTpzbeogSlCaa_AwlLL7W5xwBRGnsSFi6uqID-boEdPC1XBtfJ14hE4xgTlvyDFkeshYKWfG6lyrFXbpwsk-8W5euzj5uEAU138aMueyASKkhbn0w-sYa2oA_U3jECVOIlAwWtv49Wed78xbdxyOXsueDyzxDO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hoAsYeYOoHicRh6TTEnI6ghigJe2I5kbeHXn_lZKK7K6FkhT2R637diAFp-j36y5LrMSQ5qRyT9iJNSa2wE0DyAtP0zUDYJbAeG82bpGmrjYUD6MvCALcliokhJU-ZRJ98xXejzhU8b2kpY_28vZlFslfKbOzGwzo_5N8rEN0v8mI2T9KIKwRtRbqXh5NagJY1tDgk-c05tbK5_7C_b2A&h=TLxq9wlaZ4ldDYrPQlKq2UE5KnEYK4d7x2ZekYYxWso + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: 376E8CF6EBCC47D4BC46849910574121 Ref B: MAA201060513009 Ref C: 2024-09-20T05:47:14Z' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - monitor pipeline-group delete + Connection: + - keep-alive + ParameterSetName: + - -g -n -y + User-Agent: + - AZURECLI/2.64.0 azsdk-python-core/1.31.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Monitor/locations/EASTUS2EUAP/operationStatuses/fa9c4352-1eb9-4f67-943e-ca53cd7dd96d*1BFBF3EC08E299E2655FE038A334DFE2392A70C608F96D6D6358E29A8ED07134?api-version=2023-10-01-preview&t=638624080341609436&c=MIIHhzCCBm-gAwIBAgITHgTSAvXh1GCKrw08WQAABNIC9TANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwNjI3MTUyNDA3WhcNMjUwNjIyMTUyNDA3WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbT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UkJhw7E1ylemxWU0jv_96awij-EayTYpo-pH2U6hG6hdW5nRZ929VEbgHmcDW03GdpvtqiZGWC3RdWgVHTZPvQ5XyUmZOaBQILallvd5D9QYh1VmY4oAl5QfafZ76IVrmfwu6c&s=NkRUeVj7PpCPrMI_GdRSz54Tgp2tfmuY9WByKe4IMOzS5IoENAO8qIfAxuMpwy5iqhNOqaevk_TPAzrdJlR3WU5bmymFbr86X8bR__ZGTwIFrRa4w_0sJhOSq0JmJAz9TRSbIZV1CQlep3_e1yWgFO21sKlxqTpdNCN9jETsADnWzJnVzVhzfY1Y3T6F0PQQ_9BpU_w7-m-LRUK6bAX0nhBorU2sGhU7nFLDrIyAznRi7C1NB0CtzfTPLFpjAPnm2eVSeYXG62WVaSUlIySshMJ0zwM6IMxRLVZSkCZ05Gs46n-yFynCzTMiefU4ee4PZdDmn365MJgkRIeq_lr_2g&h=EsUL8hLFz8cPLYfPefDcLzGB-_3qM09qnIk4bTgAotY + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Monitor/locations/EASTUS2EUAP/operationStatuses/fa9c4352-1eb9-4f67-943e-ca53cd7dd96d*1BFBF3EC08E299E2655FE038A334DFE2392A70C608F96D6D6358E29A8ED07134","name":"fa9c4352-1eb9-4f67-943e-ca53cd7dd96d*1BFBF3EC08E299E2655FE038A334DFE2392A70C608F96D6D6358E29A8ED07134","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Monitor/pipelineGroups/mygroup","status":"Succeeded","startTime":"2024-09-20T05:47:13.5691746Z","endTime":"2024-09-20T05:47:39.9277651Z","properties":null}' + headers: + cache-control: + - no-cache + content-length: + - '614' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 20 Sep 2024 05:47:46 GMT + etag: + - '"0000aefc-0000-3400-0000-66ed0c7b0000"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: E1A855FF87244468A19DABB637A5A78E Ref B: MAA201060515027 Ref C: 2024-09-20T05:47:46Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - monitor pipeline-group delete + Connection: + - keep-alive + ParameterSetName: + - -g -n -y + User-Agent: + - AZURECLI/2.64.0 azsdk-python-core/1.31.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Monitor/locations/EASTUS2EUAP/operationStatuses/fa9c4352-1eb9-4f67-943e-ca53cd7dd96d*1BFBF3EC08E299E2655FE038A334DFE2392A70C608F96D6D6358E29A8ED07134?api-version=2023-10-01-preview&t=638624080341765159&c=MIIHhzCCBm-gAwIBAgITHgTSAvXh1GCKrw08WQAABNIC9TANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwNjI3MTUyNDA3WhcNMjUwNjIyMTUyNDA3WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAOX5t0OxQxE3upQbbFvsmp5T7gqPC72fDSg6G0QO-q7rqYToC8QZH_q_PRft3qJZILPcMnC3i05PTpzbeogSlCaa_AwlLL7W5xwBRGnsSFi6uqID-boEdPC1XBtfJ14hE4xgTlvyDFkeshYKWfG6lyrFXbpwsk-8W5euzj5uEAU138aMueyASKkhbn0w-sYa2oA_U3jECVOIlAwWtv49Wed78xbdxyOXsueDyzxDOoM-H1uA24aMiLn3z563K9_bYY4a6hsemVB7YhKwCV0dGFB2NlQ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z6wGfq8NJbqIiVf6Nv3sBdNgGmfcQPrLu0hB-Tqmfi12MitUbhzJ7b-_bj0KzFfi4BSqqbS3e4Md4P8IVdteLU6-n2zQ4u91sk75urV1IF-7-uppxFFO4pFQ92gBrXJ8GIkgDZNDMtaLG7WKtdjmCdTLsnA6S45CVQ&h=ShENcmgHJDWB4Nu-VItV_zo7EGTRJDAc6OhTuHR9fpM + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Monitor/locations/EASTUS2EUAP/operationStatuses/fa9c4352-1eb9-4f67-943e-ca53cd7dd96d*1BFBF3EC08E299E2655FE038A334DFE2392A70C608F96D6D6358E29A8ED07134","name":"fa9c4352-1eb9-4f67-943e-ca53cd7dd96d*1BFBF3EC08E299E2655FE038A334DFE2392A70C608F96D6D6358E29A8ED07134","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Monitor/pipelineGroups/mygroup","status":"Succeeded","startTime":"2024-09-20T05:47:13.5691746Z","endTime":"2024-09-20T05:47:39.9277651Z","properties":null}' + headers: + cache-control: + - no-cache + content-length: + - '614' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 20 Sep 2024 05:47:47 GMT + etag: + - '"0000aefc-0000-3400-0000-66ed0c7b0000"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: A88E2873536D41868C96282A6B2BA120 Ref B: MAA201060515029 Ref C: 2024-09-20T05:47:47Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - monitor pipeline-group list + Connection: + - keep-alive + ParameterSetName: + - -g + User-Agent: + - AZURECLI/2.64.0 azsdk-python-core/1.31.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Monitor/pipelineGroups?api-version=2023-10-01-preview + response: + body: + string: '{"value":[]}' + headers: + cache-control: + - no-cache + content-length: + - '12' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 20 Sep 2024 05:47:49 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: 85D4477660E743978CED595F6F03E37F Ref B: MAA201060515047 Ref C: 2024-09-20T05:47:48Z' + status: + code: 200 + message: OK +version: 1 diff --git a/src/monitor-pipeline-group/azext_monitor_pipeline_group/tests/latest/test_monitor_pipeline_group.py b/src/monitor-pipeline-group/azext_monitor_pipeline_group/tests/latest/test_monitor_pipeline_group.py new file mode 100644 index 0000000000..cb23e55d9d --- /dev/null +++ b/src/monitor-pipeline-group/azext_monitor_pipeline_group/tests/latest/test_monitor_pipeline_group.py @@ -0,0 +1,55 @@ +# -------------------------------------------------------------------------------------------- +# 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 +# -------------------------------------------------------------------------------------------- + +from azure.cli.testsdk import * + + +class MonitorPipelineGroupScenario(ScenarioTest): + @ResourceGroupPreparer() + def test_monitor_pipeline_group(self, resource_group): + import os + data_path = os.path.relpath(os.path.join(os.path.abspath(__file__), '..', 'data_files')) + self.kwargs.update({ + 'rg': resource_group, + 'name': 'mygroup', + 'location': 'eastus2euap', + 'exporters_path': os.path.join(data_path, "exporters.json").replace('\\', '\\\\'), + 'extended_location_path': os.path.join(data_path, "extendedLocation.json").replace('\\', '\\\\'), + 'processors_path': os.path.join(data_path, "processors.json").replace('\\', '\\\\'), + 'receivers_path': os.path.join(data_path, "receivers.json").replace('\\', '\\\\'), + 'service_path': os.path.join(data_path, "service.json").replace('\\', '\\\\'), + 'servicepatch_path': os.path.join(data_path, "servicepatch.json").replace('\\', '\\\\') + }) + + self.cmd('az monitor pipeline-group create -g {rg} -n {name} -l {location} ' + '--exporters @{exporters_path} ' + '--processors @{processors_path} ' + '--receivers @{receivers_path} ' + '--service @{service_path} ' + '--extended-location @{extended_location_path} ' + '--network-config [] ' + '--replicas 1 ', + checks=[self.check('provisioningState', 'Succeeded')]) + + self.cmd('az monitor pipeline-group show -g {rg} -n {name}', checks=[ + self.check('name', '{name}'), + self.check('provisioningState', 'Succeeded') + ]) + + self.cmd('az monitor pipeline-group list -g {rg}', checks=[ + self.check('length(@)', 1) + ]) + + self.cmd('az monitor pipeline-group update -g {rg} -n {name} --service @{servicepatch_path}', checks=[ + self.check('service.pipelines[0].name', 'MyPipeline2') + ]) + + self.cmd('az monitor pipeline-group delete -g {rg} -n {name} -y') + + self.cmd('az monitor pipeline-group list -g {rg}', checks=[ + self.check('length(@)', 0) + ]) \ No newline at end of file diff --git a/src/monitor-pipeline-group/setup.cfg b/src/monitor-pipeline-group/setup.cfg new file mode 100644 index 0000000000..2fdd96e5d3 --- /dev/null +++ b/src/monitor-pipeline-group/setup.cfg @@ -0,0 +1 @@ +#setup.cfg \ No newline at end of file diff --git a/src/monitor-pipeline-group/setup.py b/src/monitor-pipeline-group/setup.py new file mode 100644 index 0000000000..42fce7c73a --- /dev/null +++ b/src/monitor-pipeline-group/setup.py @@ -0,0 +1,49 @@ +# -------------------------------------------------------------------------------------------- +# 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 +# -------------------------------------------------------------------------------------------- + +from codecs import open +from setuptools import setup, find_packages + + +# HISTORY.rst entry. +VERSION = '1.0.0b1' + +# The full list of classifiers is available at +# https://pypi.python.org/pypi?%3Aaction=list_classifiers +CLASSIFIERS = [ + 'Development Status :: 4 - Beta', + 'Intended Audience :: Developers', + 'Intended Audience :: System Administrators', + 'Programming Language :: Python', + 'Programming Language :: Python :: 3', + 'Programming Language :: Python :: 3.7', + 'Programming Language :: Python :: 3.8', + 'Programming Language :: Python :: 3.9', + 'License :: OSI Approved :: MIT License', +] + +DEPENDENCIES = [] + +with open('README.md', 'r', encoding='utf-8') as f: + README = f.read() +with open('HISTORY.rst', 'r', encoding='utf-8') as f: + HISTORY = f.read() + +setup( + name='monitor-pipeline-group', + version=VERSION, + description='Microsoft Azure Command-Line Tools MonitorPipelineGroup Extension.', + long_description=README + '\n\n' + HISTORY, + license='MIT', + author='Microsoft Corporation', + author_email='azpycli@microsoft.com', + url='https://github.com/Azure/azure-cli-extensions/tree/main/src/monitor-pipeline-group', + classifiers=CLASSIFIERS, + packages=find_packages(exclude=["tests"]), + package_data={'azext_monitor_pipeline_group': ['azext_metadata.json']}, + install_requires=DEPENDENCIES +)