From b39ab2b3fee541874b99cb1f5924fe938db1f4bc Mon Sep 17 00:00:00 2001 From: Kunal Kulkarni Date: Thu, 5 May 2022 09:13:00 -0700 Subject: [PATCH 01/13] Azure Traffic Collector changes --- .../AzureTrafficCollector.json | 985 ++++++++++++++++++ .../examples/AzureTrafficCollectorCreate.json | 51 + .../examples/AzureTrafficCollectorDelete.json | 13 + .../examples/AzureTrafficCollectorGet.json | 26 + .../AzureTrafficCollectorUpdateTags.json | 33 + ...eTrafficCollectorsByResourceGroupList.json | 30 + ...reTrafficCollectorsBySubscriptionList.json | 29 + .../examples/CollectorPoliciesList.json | 44 + .../examples/CollectorPolicyCreate.json | 94 ++ .../examples/CollectorPolicyDelete.json | 14 + .../examples/CollectorPolicyGet.json | 41 + .../examples/OperationsList.json | 22 + .../2022-05-01/AzureTrafficCollector.json | 985 ++++++++++++++++++ .../examples/AzureTrafficCollectorCreate.json | 51 + .../examples/AzureTrafficCollectorDelete.json | 13 + .../examples/AzureTrafficCollectorGet.json | 26 + .../AzureTrafficCollectorUpdateTags.json | 33 + ...eTrafficCollectorsByResourceGroupList.json | 30 + ...reTrafficCollectorsBySubscriptionList.json | 29 + .../examples/CollectorPoliciesList.json | 44 + .../examples/CollectorPolicyCreate.json | 94 ++ .../examples/CollectorPolicyDelete.json | 14 + .../examples/CollectorPolicyGet.json | 41 + .../2022-05-01/examples/OperationsList.json | 22 + .../resource-manager/readme.csharp.md | 15 + .../resource-manager/readme.go.md | 11 + .../resource-manager/readme.md | 79 ++ .../resource-manager/readme.python.md | 21 + .../resource-manager/readme.ruby.md | 19 + .../resource-manager/readme.typescript.md | 13 + 30 files changed, 2922 insertions(+) create mode 100644 specification/networkfunction/resource-manager/Microsoft.NetworkFunction/preview/2021-09-01-preview/AzureTrafficCollector.json create mode 100644 specification/networkfunction/resource-manager/Microsoft.NetworkFunction/preview/2021-09-01-preview/examples/AzureTrafficCollectorCreate.json create mode 100644 specification/networkfunction/resource-manager/Microsoft.NetworkFunction/preview/2021-09-01-preview/examples/AzureTrafficCollectorDelete.json create mode 100644 specification/networkfunction/resource-manager/Microsoft.NetworkFunction/preview/2021-09-01-preview/examples/AzureTrafficCollectorGet.json create mode 100644 specification/networkfunction/resource-manager/Microsoft.NetworkFunction/preview/2021-09-01-preview/examples/AzureTrafficCollectorUpdateTags.json create mode 100644 specification/networkfunction/resource-manager/Microsoft.NetworkFunction/preview/2021-09-01-preview/examples/AzureTrafficCollectorsByResourceGroupList.json create mode 100644 specification/networkfunction/resource-manager/Microsoft.NetworkFunction/preview/2021-09-01-preview/examples/AzureTrafficCollectorsBySubscriptionList.json create mode 100644 specification/networkfunction/resource-manager/Microsoft.NetworkFunction/preview/2021-09-01-preview/examples/CollectorPoliciesList.json create mode 100644 specification/networkfunction/resource-manager/Microsoft.NetworkFunction/preview/2021-09-01-preview/examples/CollectorPolicyCreate.json create mode 100644 specification/networkfunction/resource-manager/Microsoft.NetworkFunction/preview/2021-09-01-preview/examples/CollectorPolicyDelete.json create mode 100644 specification/networkfunction/resource-manager/Microsoft.NetworkFunction/preview/2021-09-01-preview/examples/CollectorPolicyGet.json create mode 100644 specification/networkfunction/resource-manager/Microsoft.NetworkFunction/preview/2021-09-01-preview/examples/OperationsList.json create mode 100644 specification/networkfunction/resource-manager/Microsoft.NetworkFunction/stable/2022-05-01/AzureTrafficCollector.json create mode 100644 specification/networkfunction/resource-manager/Microsoft.NetworkFunction/stable/2022-05-01/examples/AzureTrafficCollectorCreate.json create mode 100644 specification/networkfunction/resource-manager/Microsoft.NetworkFunction/stable/2022-05-01/examples/AzureTrafficCollectorDelete.json create mode 100644 specification/networkfunction/resource-manager/Microsoft.NetworkFunction/stable/2022-05-01/examples/AzureTrafficCollectorGet.json create mode 100644 specification/networkfunction/resource-manager/Microsoft.NetworkFunction/stable/2022-05-01/examples/AzureTrafficCollectorUpdateTags.json create mode 100644 specification/networkfunction/resource-manager/Microsoft.NetworkFunction/stable/2022-05-01/examples/AzureTrafficCollectorsByResourceGroupList.json create mode 100644 specification/networkfunction/resource-manager/Microsoft.NetworkFunction/stable/2022-05-01/examples/AzureTrafficCollectorsBySubscriptionList.json create mode 100644 specification/networkfunction/resource-manager/Microsoft.NetworkFunction/stable/2022-05-01/examples/CollectorPoliciesList.json create mode 100644 specification/networkfunction/resource-manager/Microsoft.NetworkFunction/stable/2022-05-01/examples/CollectorPolicyCreate.json create mode 100644 specification/networkfunction/resource-manager/Microsoft.NetworkFunction/stable/2022-05-01/examples/CollectorPolicyDelete.json create mode 100644 specification/networkfunction/resource-manager/Microsoft.NetworkFunction/stable/2022-05-01/examples/CollectorPolicyGet.json create mode 100644 specification/networkfunction/resource-manager/Microsoft.NetworkFunction/stable/2022-05-01/examples/OperationsList.json create mode 100644 specification/networkfunction/resource-manager/readme.csharp.md create mode 100644 specification/networkfunction/resource-manager/readme.go.md create mode 100644 specification/networkfunction/resource-manager/readme.md create mode 100644 specification/networkfunction/resource-manager/readme.python.md create mode 100644 specification/networkfunction/resource-manager/readme.ruby.md create mode 100644 specification/networkfunction/resource-manager/readme.typescript.md diff --git a/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/preview/2021-09-01-preview/AzureTrafficCollector.json b/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/preview/2021-09-01-preview/AzureTrafficCollector.json new file mode 100644 index 000000000000..a3dbb34fa6f8 --- /dev/null +++ b/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/preview/2021-09-01-preview/AzureTrafficCollector.json @@ -0,0 +1,985 @@ +{ + "swagger": "2.0", + "info": { + "version": "2021-09-01-preview", + "title": "Azure Traffic Collector", + "description": "Azure Traffic Collector service", + "license": { + "name": "Microsoft" + } + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "paths": { + "/providers/Microsoft.NetworkFunction/operations": { + "get": { + "tags": [ + "Operations" + ], + "description": "Lists all of the available NetworkFunction Rest API operations.", + "operationId": "NetworkFunction_ListOperations", + "x-ms-examples": { + "OperationsList": { + "$ref": "examples/OperationsList.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/OperationListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed. If the resource group does not exist, 404 (NotFound) will be returned.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.NetworkFunction/azureTrafficCollectors": { + "get": { + "tags": [ + "AzureTrafficCollectors" + ], + "description": "Return list of Azure Traffic Collectors in a subscription", + "operationId": "AzureTrafficCollectorsBySubscription_List", + "x-ms-examples": { + "List of Traffic Collectors by Subscription": { + "$ref": "examples/AzureTrafficCollectorsBySubscriptionList.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/apiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns a list of azure traffic collector resources.", + "schema": { + "$ref": "#/definitions/AzureTrafficCollectorListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed. If the resource group does not exist, 404 (NotFound) will be returned.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkFunction/azureTrafficCollectors": { + "get": { + "tags": [ + "AzureTrafficCollectors" + ], + "description": "Return list of Azure Traffic Collectors in a Resource Group", + "operationId": "AzureTrafficCollectorsByResourceGroup_List", + "x-ms-examples": { + "List of Traffic Collectors by ResourceGroup": { + "$ref": "examples/AzureTrafficCollectorsByResourceGroupList.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/apiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns a list of azure traffic collector resources.", + "schema": { + "$ref": "#/definitions/AzureTrafficCollectorListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed. If the resource group does not exist, 404 (NotFound) will be returned.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkFunction/azureTrafficCollectors/{azureTrafficCollectorName}": { + "get": { + "tags": [ + "AzureTrafficCollectors" + ], + "operationId": "AzureTrafficCollectors_Get", + "description": "Gets the specified Azure Traffic Collector in a specified resource group", + "parameters": [ + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/azureTrafficCollectorNameParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns the resulting Azure Traffic Collector resource.", + "schema": { + "$ref": "#/definitions/AzureTrafficCollector" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Get Traffic Collector": { + "$ref": "examples/AzureTrafficCollectorGet.json" + } + } + }, + "put": { + "tags": [ + "AzureTrafficCollectors" + ], + "description": "Creates or updates a Azure Traffic Collector resource", + "operationId": "AzureTrafficCollectors_CreateOrUpdate", + "parameters": [ + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/azureTrafficCollectorNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "x-ms-client-flatten": true, + "schema": { + "$ref": "#/definitions/AzureTrafficCollector" + }, + "description": "The parameters to provide for the created Azure Traffic Collector." + } + ], + "responses": { + "200": { + "description": "Update successful. The operation returns the resulting Azure Traffic Collector resource.", + "schema": { + "$ref": "#/definitions/AzureTrafficCollector" + } + }, + "201": { + "description": "Create successful. The operation returns the resulting Azure Traffic Collector resource.", + "schema": { + "$ref": "#/definitions/AzureTrafficCollector" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Create a traffic collector": { + "$ref": "examples/AzureTrafficCollectorCreate.json" + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } + }, + "delete": { + "tags": [ + "AzureTrafficCollectors" + ], + "operationId": "AzureTrafficCollectors_Delete", + "description": "Deletes a specified Azure Traffic Collector resource.", + "parameters": [ + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/azureTrafficCollectorNameParameter" + } + ], + "responses": { + "200": { + "description": "Delete successful." + }, + "202": { + "description": "Accepted and the operation will complete asynchronously." + }, + "204": { + "description": "Request successful. Resource does not exist." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Delete Traffic Collector": { + "$ref": "examples/AzureTrafficCollectorDelete.json" + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + } + }, + "patch": { + "tags": [ + "AzureTrafficCollectors" + ], + "operationId": "AzureTrafficCollectors_UpdateTags", + "x-ms-examples": { + "Update Traffic Collector tags": { + "$ref": "examples/AzureTrafficCollectorUpdateTags.json" + } + }, + "description": "Updates the specified Azure Traffic Collector tags.", + "parameters": [ + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/TagsObject" + }, + "description": "Parameters supplied to update Azure Traffic Collector tags." + }, + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/azureTrafficCollectorNameParameter" + } + ], + "responses": { + "200": { + "description": "Update successful. The operation returns the resulting Azure Traffic Collector resource.", + "schema": { + "$ref": "#/definitions/AzureTrafficCollector" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkFunction/azureTrafficCollectors/{azureTrafficCollectorName}/collectorPolicies": { + "get": { + "tags": [ + "CollectorPolicies" + ], + "description": "Return list of Collector policies in a Azure Traffic Collector", + "operationId": "CollectorPolicies_List", + "x-ms-examples": { + "List of Collection Policies": { + "$ref": "examples/CollectorPoliciesList.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/azureTrafficCollectorNameParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns a list of collector policies in a azure traffic collector.", + "schema": { + "$ref": "#/definitions/CollectorPolicyListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed. If the resource group does not exist, 404 (NotFound) will be returned.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkFunction/azureTrafficCollectors/{azureTrafficCollectorName}/collectorPolicies/{collectorPolicyName}": { + "get": { + "tags": [ + "CollectorPolicies" + ], + "operationId": "CollectorPolicies_Get", + "description": "Gets the collector policy in a specified Traffic Collector", + "parameters": [ + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/azureTrafficCollectorNameParameter" + }, + { + "$ref": "#/parameters/collectorPolicyNameParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns the collector policy resource.", + "schema": { + "$ref": "#/definitions/CollectorPolicy" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Get Collection Policy": { + "$ref": "examples/CollectorPolicyGet.json" + } + } + }, + "put": { + "tags": [ + "CollectorPolicies" + ], + "description": "Creates or updates a Collector Policy resource", + "operationId": "CollectorPolicies_CreateOrUpdate", + "parameters": [ + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/azureTrafficCollectorNameParameter" + }, + { + "$ref": "#/parameters/collectorPolicyNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "x-ms-client-flatten": true, + "schema": { + "$ref": "#/definitions/CollectorPolicy" + }, + "description": "The parameters to provide for the created Collector Policy." + } + ], + "responses": { + "200": { + "description": "Update successful. The operation returns the resulting Collector Policy resource.", + "schema": { + "$ref": "#/definitions/CollectorPolicy" + } + }, + "201": { + "description": "Create successful. The operation returns the resulting Collector Policy resource.", + "schema": { + "$ref": "#/definitions/CollectorPolicy" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Create a collection policy": { + "$ref": "examples/CollectorPolicyCreate.json" + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } + }, + "delete": { + "tags": [ + "CollectorPolicies" + ], + "operationId": "CollectorPolicies_Delete", + "description": "Deletes a specified Collector Policy resource.", + "parameters": [ + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/azureTrafficCollectorNameParameter" + }, + { + "$ref": "#/parameters/collectorPolicyNameParameter" + } + ], + "responses": { + "200": { + "description": "Delete successful." + }, + "202": { + "description": "Accepted and the operation will complete asynchronously." + }, + "204": { + "description": "Request successful. Resource does not exist." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Delete Collection Policy": { + "$ref": "examples/CollectorPolicyDelete.json" + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + } + } + } + }, + "definitions": { + "TagsObject": { + "type": "object", + "properties": { + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Resource tags." + } + }, + "description": "Tags object for patch operations." + }, + "AzureTrafficCollectorListResult": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/AzureTrafficCollector" + }, + "description": "A list of Traffic Collector resources." + }, + "nextLink": { + "type": "string", + "description": "The URL to get the next set of results.", + "readOnly": true + } + }, + "description": "Response for the ListTrafficCollectors API service call." + }, + "AzureTrafficCollectorPropertiesFormat": { + "type": "object", + "x-ms-azure-resource": true, + "properties": { + "collectorPolicies": { + "type": "array", + "items": { + "$ref": "#/definitions/CollectorPolicy" + }, + "description": "Collector Policies for Azure Traffic Collector." + }, + "virtualHub": { + "$ref": "#/definitions/ResourceReference", + "description": "The virtualHub to which the Azure Traffic Collector belongs." + }, + "provisioningState": { + "readOnly": true, + "$ref": "#/definitions/ProvisioningState", + "description": "The provisioning state of the application rule collection resource." + } + }, + "description": "Azure Traffic Collector resource properties." + }, + "AzureTrafficCollector": { + "type": "object", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/AzureTrafficCollectorPropertiesFormat", + "description": "Properties of the Azure Traffic Collector." + }, + "etag": { + "type": "string", + "readOnly": true, + "description": "A unique read-only string that changes whenever the resource is updated." + } + }, + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "description": "Azure Traffic Collector resource." + }, + "CollectorPolicyListResult": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/CollectorPolicy" + }, + "description": "A list of collection policies." + }, + "nextLink": { + "type": "string", + "description": "The URL to get the next set of results.", + "readOnly": true + } + }, + "description": "Response for the ListCollectorPolicies API service call." + }, + "EmissionPolicyDestination": { + "type": "object", + "properties": { + "destinationType": { + "type": "string", + "enum": [ + "AzureMonitor" + ], + "description": "Emission destination type.", + "x-ms-enum": { + "name": "destinationType", + "modelAsString": true + } + } + }, + "description": "Emission policy destination properties." + }, + "EmissionPoliciesPropertiesFormat": { + "type": "object", + "properties": { + "emissionType": { + "type": "string", + "enum": [ + "IPFIX" + ], + "description": "Emission format type.", + "x-ms-enum": { + "name": "emissionType", + "modelAsString": true + } + }, + "emissionDestinations": { + "type": "array", + "items": { + "$ref": "#/definitions/EmissionPolicyDestination" + }, + "description": "Emission policy destinations." + } + }, + "description": "Emission policy properties." + }, + "IngestionSourcesPropertiesFormat": { + "type": "object", + "properties": { + "sourceType": { + "type": "string", + "description": "Ingestion source type.", + "enum": [ + "Resource" + ], + "x-ms-enum": { + "name": "sourceType", + "modelAsString": true + } + }, + "resourceId": { + "type": "string", + "description": "Resource ID." + } + }, + "description": "Ingestion policy propeties." + }, + "IngestionPolicyPropertiesFormat": { + "type": "object", + "properties": { + "ingestionType": { + "type": "string", + "description": "The ingestion type.", + "enum": [ + "IPFIX" + ], + "x-ms-enum": { + "name": "ingestionType", + "modelAsString": true + } + }, + "ingestionSources": { + "type": "array", + "items": { + "$ref": "#/definitions/IngestionSourcesPropertiesFormat" + }, + "description": "Ingestion Sources." + } + }, + "description": "Ingestion Policy properties." + }, + "CollectorPolicyPropertiesFormat": { + "type": "object", + "properties": { + "ingestionPolicy": { + "$ref": "#/definitions/IngestionPolicyPropertiesFormat", + "description": "Ingestion policies." + }, + "emissionPolicies": { + "type": "array", + "items": { + "$ref": "#/definitions/EmissionPoliciesPropertiesFormat" + }, + "description": "Emission policies." + }, + "provisioningState": { + "readOnly": true, + "$ref": "#/definitions/ProvisioningState", + "description": "The provisioning state." + } + }, + "description": "Collection policy properties." + }, + "CollectorPolicy": { + "type": "object", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/CollectorPolicyPropertiesFormat", + "description": "Properties of the Collection Policy." + }, + "name": { + "type": "string", + "readOnly": true, + "description": "The name of Collection Policy in a Traffic Collector." + }, + "etag": { + "type": "string", + "readOnly": true, + "description": "A unique read-only string that changes whenever the resource is updated." + }, + "type": { + "type": "string", + "readOnly": true, + "description": "The type of resource." + } + }, + "allOf": [ + { + "$ref": "#/definitions/ResourceReference" + } + ], + "description": "Collection policy resource." + }, + "Resource": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "Resource ID.", + "readOnly": true + }, + "name": { + "type": "string", + "description": "Resource name.", + "readOnly": true + }, + "type": { + "readOnly": true, + "type": "string", + "description": "Resource type." + }, + "location": { + "type": "string", + "description": "Resource location." + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Resource tags." + } + }, + "description": "Common resource representation.", + "x-ms-azure-resource": true + }, + "ResourceReference": { + "type": "object", + "properties": { + "id": { + "type": "string", + "readOnly": true, + "description": "Resource ID." + } + }, + "description": "Resource reference properties.", + "x-ms-azure-resource": true + }, + "CloudErrorBody": { + "type": "object", + "x-ms-external": true, + "properties": { + "code": { + "type": "string", + "description": "An identifier for the error. Codes are invariant and are intended to be consumed programmatically." + }, + "message": { + "type": "string", + "description": "A message describing the error, intended to be suitable for display in a user interface." + }, + "target": { + "type": "string", + "description": "The target of the particular error. For example, the name of the property in error." + }, + "details": { + "type": "array", + "items": { + "$ref": "#/definitions/CloudErrorBody" + }, + "description": "A list of additional details about the error." + } + }, + "description": "An error response from the service." + }, + "CloudError": { + "type": "object", + "x-ms-external": true, + "properties": { + "error": { + "description": "An error response from the service.", + "$ref": "#/definitions/CloudErrorBody" + } + }, + "description": "An error response from the service." + }, + "ProvisioningState": { + "type": "string", + "readOnly": true, + "description": "The current provisioning state.", + "enum": [ + "Succeeded", + "Updating", + "Deleting", + "Failed" + ], + "x-ms-enum": { + "name": "ProvisioningState", + "modelAsString": true + } + }, + "OperationListResult": { + "type": "object", + "description": "Result of the request to list Azure Traffic Collector operations. It contains a list of operations and a URL link to get the next set of results.", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/Operation" + }, + "description": "List of operations supported by the Azure Traffic Collector resource provider." + }, + "nextLink": { + "type": "string", + "description": "URL to get the next set of operation list results if there are any." + } + } + }, + "Operation": { + "description": "Azure Traffic Collector REST API operation definition.", + "type": "object", + "properties": { + "name": { + "description": "Operation name: {provider}/{resource}/{operation}", + "type": "string" + }, + "isDataAction": { + "description": "Indicates whether the operation is a data action", + "type": "boolean", + "default": false + }, + "display": { + "type": "object", + "description": "Display metadata associated with the operation.", + "properties": { + "provider": { + "description": "Service provider: Microsoft NetworkFunction.", + "type": "string" + }, + "resource": { + "description": "Resource on which the operation is performed etc.", + "type": "string" + }, + "operation": { + "description": "Type of operation: get, read, delete, etc.", + "type": "string" + }, + "description": { + "description": "Description of the operation.", + "type": "string" + } + } + }, + "origin": { + "description": "Origin of the operation", + "type": "string" + } + } + } + }, + "parameters": { + "apiVersionParameter": { + "name": "api-version", + "in": "query", + "description": "Version of the API to be used with the client request.", + "required": true, + "type": "string", + "enum": [ + "2021-09-01-preview" + ], + "default": "2021-09-01-preview" + }, + "resourceGroupName": { + "name": "resourceGroupName", + "in": "path", + "description": "The name of the resource group.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "subscriptionIdParameter": { + "name": "subscriptionId", + "in": "path", + "description": "Azure Subscription ID.", + "required": true, + "type": "string" + }, + "collectorPolicyNameParameter": { + "name": "collectorPolicyName", + "in": "path", + "description": "Collector Policy Name", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "azureTrafficCollectorNameParameter": { + "name": "azureTrafficCollectorName", + "in": "path", + "description": "Azure Traffic Collector name", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + } + } +} diff --git a/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/preview/2021-09-01-preview/examples/AzureTrafficCollectorCreate.json b/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/preview/2021-09-01-preview/examples/AzureTrafficCollectorCreate.json new file mode 100644 index 000000000000..e39edf7ec578 --- /dev/null +++ b/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/preview/2021-09-01-preview/examples/AzureTrafficCollectorCreate.json @@ -0,0 +1,51 @@ +{ + "parameters": { + "api-version": "2021-09-01-preview", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "azureTrafficCollectorName": "atc", + "parameters": { + "location": "West US", + "tags": { + "key1": "value1" + }, + "properties": { + "collectorPolicies": [] + } + } + }, + "responses": { + "200": { + "body": { + "name": "atc", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.NetworkFunction/azureTrafficCollectors/atc", + "type": "Microsoft.NetworkFunction/azureTrafficCollectors", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "location": "West US", + "tags": { + "key1": "value1" + }, + "properties": { + "collectorPolicies": [], + "provisioningState": "Succeeded" + } + } + }, + "201": { + "body": { + "name": "atc", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.NetworkFunction/azureTrafficCollectors/atc", + "type": "Microsoft.NetworkFunction/azureTrafficCollectors", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "location": "West US", + "tags": { + "key1": "value1" + }, + "properties": { + "collectorPolicies": [], + "provisioningState": "Succeeded" + } + } + } + } +} diff --git a/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/preview/2021-09-01-preview/examples/AzureTrafficCollectorDelete.json b/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/preview/2021-09-01-preview/examples/AzureTrafficCollectorDelete.json new file mode 100644 index 000000000000..624800db00f8 --- /dev/null +++ b/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/preview/2021-09-01-preview/examples/AzureTrafficCollectorDelete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "api-version": "2021-09-01-preview", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "azureTrafficCollectorName": "atc" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} diff --git a/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/preview/2021-09-01-preview/examples/AzureTrafficCollectorGet.json b/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/preview/2021-09-01-preview/examples/AzureTrafficCollectorGet.json new file mode 100644 index 000000000000..369031887dc8 --- /dev/null +++ b/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/preview/2021-09-01-preview/examples/AzureTrafficCollectorGet.json @@ -0,0 +1,26 @@ +{ + "parameters": { + "api-version": "2021-09-01-preview", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "azureTrafficCollectorName": "atc" + }, + "responses": { + "200": { + "body": { + "name": "atc", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.NetworkFunction/azureTrafficCollectors/atc", + "type": "Microsoft.NetworkFunction/azureTrafficCollectors", + "location": "West US", + "tags": { + "key1": "value1" + }, + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "collectorPolicies": [], + "provisioningState": "Succeeded" + } + } + } + } +} diff --git a/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/preview/2021-09-01-preview/examples/AzureTrafficCollectorUpdateTags.json b/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/preview/2021-09-01-preview/examples/AzureTrafficCollectorUpdateTags.json new file mode 100644 index 000000000000..e42646de84dc --- /dev/null +++ b/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/preview/2021-09-01-preview/examples/AzureTrafficCollectorUpdateTags.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "api-version": "2021-09-01-preview", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "azureTrafficCollectorName": "atc", + "parameters": { + "tags": { + "key1": "value1", + "key2": "value2" + } + } + }, + "responses": { + "200": { + "body": { + "name": "atc", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.NetworkFunction/azureTrafficCollectors/atc", + "type": "Microsoft.NetworkFunction/azureTrafficCollectors", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "location": "West US", + "tags": { + "key1": "value1", + "key2": "value2" + }, + "properties": { + "collectorPolicies": [], + "provisioningState": "Succeeded" + } + } + } + } +} diff --git a/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/preview/2021-09-01-preview/examples/AzureTrafficCollectorsByResourceGroupList.json b/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/preview/2021-09-01-preview/examples/AzureTrafficCollectorsByResourceGroupList.json new file mode 100644 index 000000000000..59df90824612 --- /dev/null +++ b/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/preview/2021-09-01-preview/examples/AzureTrafficCollectorsByResourceGroupList.json @@ -0,0 +1,30 @@ +{ + "parameters": { + "api-version": "2021-09-01-preview", + "subscriptionId": "subid", + "resourceGroupName": "rg1" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "atc", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.NetworkFunction/azureTrafficCollectors/atc", + "type": "Microsoft.NetworkFunction/azureTrafficCollectors", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "location": "West US", + "tags": { + "key1": "value1" + }, + "properties": { + "collectorPolicies": [], + "provisioningState": "Succeeded" + } + } + ], + "nextLink": "string" + } + } + } +} diff --git a/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/preview/2021-09-01-preview/examples/AzureTrafficCollectorsBySubscriptionList.json b/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/preview/2021-09-01-preview/examples/AzureTrafficCollectorsBySubscriptionList.json new file mode 100644 index 000000000000..fb8ec442e8b4 --- /dev/null +++ b/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/preview/2021-09-01-preview/examples/AzureTrafficCollectorsBySubscriptionList.json @@ -0,0 +1,29 @@ +{ + "parameters": { + "api-version": "2021-09-01-preview", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "atc", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.NetworkFunction/azureTrafficCollectors/atc", + "type": "Microsoft.NetworkFunction/azureTrafficCollectors", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "location": "West US", + "tags": { + "key1": "value1" + }, + "properties": { + "collectorPolicies": [], + "provisioningState": "Succeeded" + } + } + ], + "nextLink": "string" + } + } + } +} diff --git a/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/preview/2021-09-01-preview/examples/CollectorPoliciesList.json b/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/preview/2021-09-01-preview/examples/CollectorPoliciesList.json new file mode 100644 index 000000000000..628ad69db1a0 --- /dev/null +++ b/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/preview/2021-09-01-preview/examples/CollectorPoliciesList.json @@ -0,0 +1,44 @@ +{ + "parameters": { + "api-version": "2021-09-01-preview", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "azureTrafficCollectorName": "atc" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "atc", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.NetworkFunction/azureTrafficCollectors/atc/collectorPolicies/cp1", + "etag": "w/\\72090554-7e3b-43f2-80ad-99a9020dcb11\\", + "type": "Microsoft.NetworkFunction/azureTrafficCollectors/collectorPolicies", + "properties": { + "ingestionPolicy": { + "ingestionType": "IPFIX", + "ingestionSources": [ + { + "resourceId": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName", + "sourceType": "Resource" + } + ] + }, + "emissionPolicies": [ + { + "emissionType": "IPFIX", + "emissionDestinations": [ + { + "destinationType": "AzureMonitor" + } + ] + } + ], + "provisioningState": "Succeeded" + } + } + ] + } + } + } +} diff --git a/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/preview/2021-09-01-preview/examples/CollectorPolicyCreate.json b/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/preview/2021-09-01-preview/examples/CollectorPolicyCreate.json new file mode 100644 index 000000000000..702a1229d167 --- /dev/null +++ b/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/preview/2021-09-01-preview/examples/CollectorPolicyCreate.json @@ -0,0 +1,94 @@ +{ + "parameters": { + "api-version": "2021-09-01-preview", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "azureTrafficCollectorName": "atc", + "collectorPolicyName": "cp1", + "parameters": { + "properties": { + "ingestionPolicy": { + "ingestionType": "IPFIX", + "ingestionSources": [ + { + "resourceId": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName", + "sourceType": "Resource" + } + ] + }, + "emissionPolicies": [ + { + "emissionType": "IPFIX", + "emissionDestinations": [ + { + "destinationType": "AzureMonitor" + } + ] + } + ] + } + } + }, + "responses": { + "200": { + "body": { + "name": "cp1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.NetworkFunction/AzureTrafficCollector/atc/collectorPolicies/cp1", + "etag": "w/\\72090554-7e3b-43f2-80ad-99a9020dcb11\\", + "type": "Microsoft.NetworkFunction/azureTrafficCollectors/collectorPolicies", + "properties": { + "ingestionPolicy": { + "ingestionType": "IPFIX", + "ingestionSources": [ + { + "resourceId": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName", + "sourceType": "Resource" + } + ] + }, + "emissionPolicies": [ + { + "emissionType": "IPFIX", + "emissionDestinations": [ + { + "destinationType": "AzureMonitor" + } + ] + } + ], + "provisioningState": "Succeeded" + } + } + }, + "201": { + "body": { + "name": "cp1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.NetworkFunction/azureTrafficCollectors/atc/collectorPolicies/cp1", + "etag": "w/\\72090554-7e3b-43f2-80ad-99a9020dcb11\\", + "type": "Microsoft.NetworkFunction/azureTrafficCollectors/collectorPolicies", + "properties": { + "ingestionPolicy": { + "ingestionType": "IPFIX", + "ingestionSources": [ + { + "resourceId": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName", + "sourceType": "Resource" + } + ] + }, + "emissionPolicies": [ + { + "emissionType": "IPFIX", + "emissionDestinations": [ + { + "destinationType": "AzureMonitor" + } + ] + } + ], + "provisioningState": "Succeeded" + } + } + } + } +} diff --git a/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/preview/2021-09-01-preview/examples/CollectorPolicyDelete.json b/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/preview/2021-09-01-preview/examples/CollectorPolicyDelete.json new file mode 100644 index 000000000000..0aa6e3eb8eab --- /dev/null +++ b/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/preview/2021-09-01-preview/examples/CollectorPolicyDelete.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "api-version": "2021-09-01-preview", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "azureTrafficCollectorName": "atc", + "collectorPolicyName": "cp1" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} diff --git a/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/preview/2021-09-01-preview/examples/CollectorPolicyGet.json b/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/preview/2021-09-01-preview/examples/CollectorPolicyGet.json new file mode 100644 index 000000000000..c9479be576a9 --- /dev/null +++ b/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/preview/2021-09-01-preview/examples/CollectorPolicyGet.json @@ -0,0 +1,41 @@ +{ + "parameters": { + "api-version": "2021-09-01-preview", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "azureTrafficCollectorName": "atc", + "collectorPolicyName": "cp1" + }, + "responses": { + "200": { + "body": { + "name": "atc", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.NetworkFunction/azureTrafficCollectors/atc/collectorPolicies/cp1", + "etag": "w/\\72090554-7e3b-43f2-80ad-99a9020dcb11\\", + "type": "Microsoft.NetworkFunction/azureTrafficCollectors/collectorPolicies", + "properties": { + "ingestionPolicy": { + "ingestionType": "IPFIX", + "ingestionSources": [ + { + "resourceId": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName", + "sourceType": "Resource" + } + ] + }, + "emissionPolicies": [ + { + "emissionType": "IPFIX", + "emissionDestinations": [ + { + "destinationType": "AzureMonitor" + } + ] + } + ], + "provisioningState": "Succeeded" + } + } + } + } +} diff --git a/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/preview/2021-09-01-preview/examples/OperationsList.json b/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/preview/2021-09-01-preview/examples/OperationsList.json new file mode 100644 index 000000000000..fd7acc0c60b9 --- /dev/null +++ b/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/preview/2021-09-01-preview/examples/OperationsList.json @@ -0,0 +1,22 @@ +{ + "parameters": { + "api-version": "2021-09-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "Microsoft.NetworkFunction/azureTrafficCollectors/write", + "display": { + "provider": "Microsoft NetworkFunction", + "resource": "AzureTrafficCollector", + "operation": "Create/Update a azure traffic collector", + "description": "Creates or Update a azure traffic collector" + } + } + ] + } + } + } +} diff --git a/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/stable/2022-05-01/AzureTrafficCollector.json b/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/stable/2022-05-01/AzureTrafficCollector.json new file mode 100644 index 000000000000..3b1154c25a2d --- /dev/null +++ b/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/stable/2022-05-01/AzureTrafficCollector.json @@ -0,0 +1,985 @@ +{ + "swagger": "2.0", + "info": { + "version": "2022-05-01", + "title": "Azure Traffic Collector", + "description": "Azure Traffic Collector service", + "license": { + "name": "Microsoft" + } + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "paths": { + "/providers/Microsoft.NetworkFunction/operations": { + "get": { + "tags": [ + "Operations" + ], + "description": "Lists all of the available NetworkFunction Rest API operations.", + "operationId": "NetworkFunction_ListOperations", + "x-ms-examples": { + "OperationsList": { + "$ref": "examples/OperationsList.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/OperationListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed. If the resource group does not exist, 404 (NotFound) will be returned.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.NetworkFunction/azureTrafficCollectors": { + "get": { + "tags": [ + "AzureTrafficCollectors" + ], + "description": "Return list of Azure Traffic Collectors in a subscription", + "operationId": "AzureTrafficCollectorsBySubscription_List", + "x-ms-examples": { + "List of Traffic Collectors by Subscription": { + "$ref": "examples/AzureTrafficCollectorsBySubscriptionList.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/apiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns a list of azure traffic collector resources.", + "schema": { + "$ref": "#/definitions/AzureTrafficCollectorListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed. If the resource group does not exist, 404 (NotFound) will be returned.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkFunction/azureTrafficCollectors": { + "get": { + "tags": [ + "AzureTrafficCollectors" + ], + "description": "Return list of Azure Traffic Collectors in a Resource Group", + "operationId": "AzureTrafficCollectorsByResourceGroup_List", + "x-ms-examples": { + "List of Traffic Collectors by ResourceGroup": { + "$ref": "examples/AzureTrafficCollectorsByResourceGroupList.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/apiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns a list of azure traffic collector resources.", + "schema": { + "$ref": "#/definitions/AzureTrafficCollectorListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed. If the resource group does not exist, 404 (NotFound) will be returned.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkFunction/azureTrafficCollectors/{azureTrafficCollectorName}": { + "get": { + "tags": [ + "AzureTrafficCollectors" + ], + "operationId": "AzureTrafficCollectors_Get", + "description": "Gets the specified Azure Traffic Collector in a specified resource group", + "parameters": [ + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/azureTrafficCollectorNameParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns the resulting Azure Traffic Collector resource.", + "schema": { + "$ref": "#/definitions/AzureTrafficCollector" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Get Traffic Collector": { + "$ref": "examples/AzureTrafficCollectorGet.json" + } + } + }, + "put": { + "tags": [ + "AzureTrafficCollectors" + ], + "description": "Creates or updates a Azure Traffic Collector resource", + "operationId": "AzureTrafficCollectors_CreateOrUpdate", + "parameters": [ + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/azureTrafficCollectorNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "x-ms-client-flatten": true, + "schema": { + "$ref": "#/definitions/AzureTrafficCollector" + }, + "description": "The parameters to provide for the created Azure Traffic Collector." + } + ], + "responses": { + "200": { + "description": "Update successful. The operation returns the resulting Azure Traffic Collector resource.", + "schema": { + "$ref": "#/definitions/AzureTrafficCollector" + } + }, + "201": { + "description": "Create successful. The operation returns the resulting Azure Traffic Collector resource.", + "schema": { + "$ref": "#/definitions/AzureTrafficCollector" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Create a traffic collector": { + "$ref": "examples/AzureTrafficCollectorCreate.json" + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } + }, + "delete": { + "tags": [ + "AzureTrafficCollectors" + ], + "operationId": "AzureTrafficCollectors_Delete", + "description": "Deletes a specified Azure Traffic Collector resource.", + "parameters": [ + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/azureTrafficCollectorNameParameter" + } + ], + "responses": { + "200": { + "description": "Delete successful." + }, + "202": { + "description": "Accepted and the operation will complete asynchronously." + }, + "204": { + "description": "Request successful. Resource does not exist." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Delete Traffic Collector": { + "$ref": "examples/AzureTrafficCollectorDelete.json" + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + } + }, + "patch": { + "tags": [ + "AzureTrafficCollectors" + ], + "operationId": "AzureTrafficCollectors_UpdateTags", + "x-ms-examples": { + "Update Traffic Collector tags": { + "$ref": "examples/AzureTrafficCollectorUpdateTags.json" + } + }, + "description": "Updates the specified Azure Traffic Collector tags.", + "parameters": [ + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/TagsObject" + }, + "description": "Parameters supplied to update Azure Traffic Collector tags." + }, + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/azureTrafficCollectorNameParameter" + } + ], + "responses": { + "200": { + "description": "Update successful. The operation returns the resulting Azure Traffic Collector resource.", + "schema": { + "$ref": "#/definitions/AzureTrafficCollector" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkFunction/azureTrafficCollectors/{azureTrafficCollectorName}/collectorPolicies": { + "get": { + "tags": [ + "CollectorPolicies" + ], + "description": "Return list of Collector policies in a Azure Traffic Collector", + "operationId": "CollectorPolicies_List", + "x-ms-examples": { + "List of Collection Policies": { + "$ref": "examples/CollectorPoliciesList.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/azureTrafficCollectorNameParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns a list of collector policies in a azure traffic collector.", + "schema": { + "$ref": "#/definitions/CollectorPolicyListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed. If the resource group does not exist, 404 (NotFound) will be returned.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkFunction/azureTrafficCollectors/{azureTrafficCollectorName}/collectorPolicies/{collectorPolicyName}": { + "get": { + "tags": [ + "CollectorPolicies" + ], + "operationId": "CollectorPolicies_Get", + "description": "Gets the collector policy in a specified Traffic Collector", + "parameters": [ + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/azureTrafficCollectorNameParameter" + }, + { + "$ref": "#/parameters/collectorPolicyNameParameter" + } + ], + "responses": { + "200": { + "description": "Request successful. The operation returns the collector policy resource.", + "schema": { + "$ref": "#/definitions/CollectorPolicy" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Get Collection Policy": { + "$ref": "examples/CollectorPolicyGet.json" + } + } + }, + "put": { + "tags": [ + "CollectorPolicies" + ], + "description": "Creates or updates a Collector Policy resource", + "operationId": "CollectorPolicies_CreateOrUpdate", + "parameters": [ + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/azureTrafficCollectorNameParameter" + }, + { + "$ref": "#/parameters/collectorPolicyNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "x-ms-client-flatten": true, + "schema": { + "$ref": "#/definitions/CollectorPolicy" + }, + "description": "The parameters to provide for the created Collector Policy." + } + ], + "responses": { + "200": { + "description": "Update successful. The operation returns the resulting Collector Policy resource.", + "schema": { + "$ref": "#/definitions/CollectorPolicy" + } + }, + "201": { + "description": "Create successful. The operation returns the resulting Collector Policy resource.", + "schema": { + "$ref": "#/definitions/CollectorPolicy" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Create a collection policy": { + "$ref": "examples/CollectorPolicyCreate.json" + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } + }, + "delete": { + "tags": [ + "CollectorPolicies" + ], + "operationId": "CollectorPolicies_Delete", + "description": "Deletes a specified Collector Policy resource.", + "parameters": [ + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/azureTrafficCollectorNameParameter" + }, + { + "$ref": "#/parameters/collectorPolicyNameParameter" + } + ], + "responses": { + "200": { + "description": "Delete successful." + }, + "202": { + "description": "Accepted and the operation will complete asynchronously." + }, + "204": { + "description": "Request successful. Resource does not exist." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Delete Collection Policy": { + "$ref": "examples/CollectorPolicyDelete.json" + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + } + } + } + }, + "definitions": { + "TagsObject": { + "type": "object", + "properties": { + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Resource tags." + } + }, + "description": "Tags object for patch operations." + }, + "AzureTrafficCollectorListResult": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/AzureTrafficCollector" + }, + "description": "A list of Traffic Collector resources." + }, + "nextLink": { + "type": "string", + "description": "The URL to get the next set of results.", + "readOnly": true + } + }, + "description": "Response for the ListTrafficCollectors API service call." + }, + "AzureTrafficCollectorPropertiesFormat": { + "type": "object", + "x-ms-azure-resource": true, + "properties": { + "collectorPolicies": { + "type": "array", + "items": { + "$ref": "#/definitions/CollectorPolicy" + }, + "description": "Collector Policies for Azure Traffic Collector." + }, + "virtualHub": { + "$ref": "#/definitions/ResourceReference", + "description": "The virtualHub to which the Azure Traffic Collector belongs." + }, + "provisioningState": { + "readOnly": true, + "$ref": "#/definitions/ProvisioningState", + "description": "The provisioning state of the application rule collection resource." + } + }, + "description": "Azure Traffic Collector resource properties." + }, + "AzureTrafficCollector": { + "type": "object", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/AzureTrafficCollectorPropertiesFormat", + "description": "Properties of the Azure Traffic Collector." + }, + "etag": { + "type": "string", + "readOnly": true, + "description": "A unique read-only string that changes whenever the resource is updated." + } + }, + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "description": "Azure Traffic Collector resource." + }, + "CollectorPolicyListResult": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/CollectorPolicy" + }, + "description": "A list of collection policies." + }, + "nextLink": { + "type": "string", + "description": "The URL to get the next set of results.", + "readOnly": true + } + }, + "description": "Response for the ListCollectorPolicies API service call." + }, + "EmissionPolicyDestination": { + "type": "object", + "properties": { + "destinationType": { + "type": "string", + "enum": [ + "AzureMonitor" + ], + "description": "Emission destination type.", + "x-ms-enum": { + "name": "destinationType", + "modelAsString": true + } + } + }, + "description": "Emission policy destination properties." + }, + "EmissionPoliciesPropertiesFormat": { + "type": "object", + "properties": { + "emissionType": { + "type": "string", + "enum": [ + "IPFIX" + ], + "description": "Emission format type.", + "x-ms-enum": { + "name": "emissionType", + "modelAsString": true + } + }, + "emissionDestinations": { + "type": "array", + "items": { + "$ref": "#/definitions/EmissionPolicyDestination" + }, + "description": "Emission policy destinations." + } + }, + "description": "Emission policy properties." + }, + "IngestionSourcesPropertiesFormat": { + "type": "object", + "properties": { + "sourceType": { + "type": "string", + "description": "Ingestion source type.", + "enum": [ + "Resource" + ], + "x-ms-enum": { + "name": "sourceType", + "modelAsString": true + } + }, + "resourceId": { + "type": "string", + "description": "Resource ID." + } + }, + "description": "Ingestion policy propeties." + }, + "IngestionPolicyPropertiesFormat": { + "type": "object", + "properties": { + "ingestionType": { + "type": "string", + "description": "The ingestion type.", + "enum": [ + "IPFIX" + ], + "x-ms-enum": { + "name": "ingestionType", + "modelAsString": true + } + }, + "ingestionSources": { + "type": "array", + "items": { + "$ref": "#/definitions/IngestionSourcesPropertiesFormat" + }, + "description": "Ingestion Sources." + } + }, + "description": "Ingestion Policy properties." + }, + "CollectorPolicyPropertiesFormat": { + "type": "object", + "properties": { + "ingestionPolicy": { + "$ref": "#/definitions/IngestionPolicyPropertiesFormat", + "description": "Ingestion policies." + }, + "emissionPolicies": { + "type": "array", + "items": { + "$ref": "#/definitions/EmissionPoliciesPropertiesFormat" + }, + "description": "Emission policies." + }, + "provisioningState": { + "readOnly": true, + "$ref": "#/definitions/ProvisioningState", + "description": "The provisioning state." + } + }, + "description": "Collection policy properties." + }, + "CollectorPolicy": { + "type": "object", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/CollectorPolicyPropertiesFormat", + "description": "Properties of the Collection Policy." + }, + "name": { + "type": "string", + "readOnly": true, + "description": "The name of Collection Policy in a Traffic Collector." + }, + "etag": { + "type": "string", + "readOnly": true, + "description": "A unique read-only string that changes whenever the resource is updated." + }, + "type": { + "type": "string", + "readOnly": true, + "description": "The type of resource." + } + }, + "allOf": [ + { + "$ref": "#/definitions/ResourceReference" + } + ], + "description": "Collection policy resource." + }, + "Resource": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "Resource ID.", + "readOnly": true + }, + "name": { + "type": "string", + "description": "Resource name.", + "readOnly": true + }, + "type": { + "readOnly": true, + "type": "string", + "description": "Resource type." + }, + "location": { + "type": "string", + "description": "Resource location." + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Resource tags." + } + }, + "description": "Common resource representation.", + "x-ms-azure-resource": true + }, + "ResourceReference": { + "type": "object", + "properties": { + "id": { + "type": "string", + "readOnly": true, + "description": "Resource ID." + } + }, + "description": "Resource reference properties.", + "x-ms-azure-resource": true + }, + "CloudErrorBody": { + "type": "object", + "x-ms-external": true, + "properties": { + "code": { + "type": "string", + "description": "An identifier for the error. Codes are invariant and are intended to be consumed programmatically." + }, + "message": { + "type": "string", + "description": "A message describing the error, intended to be suitable for display in a user interface." + }, + "target": { + "type": "string", + "description": "The target of the particular error. For example, the name of the property in error." + }, + "details": { + "type": "array", + "items": { + "$ref": "#/definitions/CloudErrorBody" + }, + "description": "A list of additional details about the error." + } + }, + "description": "An error response from the service." + }, + "CloudError": { + "type": "object", + "x-ms-external": true, + "properties": { + "error": { + "description": "An error response from the service.", + "$ref": "#/definitions/CloudErrorBody" + } + }, + "description": "An error response from the service." + }, + "ProvisioningState": { + "type": "string", + "readOnly": true, + "description": "The current provisioning state.", + "enum": [ + "Succeeded", + "Updating", + "Deleting", + "Failed" + ], + "x-ms-enum": { + "name": "ProvisioningState", + "modelAsString": true + } + }, + "OperationListResult": { + "type": "object", + "description": "Result of the request to list Azure Traffic Collector operations. It contains a list of operations and a URL link to get the next set of results.", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/Operation" + }, + "description": "List of operations supported by the Azure Traffic Collector resource provider." + }, + "nextLink": { + "type": "string", + "description": "URL to get the next set of operation list results if there are any." + } + } + }, + "Operation": { + "description": "Azure Traffic Collector REST API operation definition.", + "type": "object", + "properties": { + "name": { + "description": "Operation name: {provider}/{resource}/{operation}", + "type": "string" + }, + "isDataAction": { + "description": "Indicates whether the operation is a data action", + "type": "boolean", + "default": false + }, + "display": { + "type": "object", + "description": "Display metadata associated with the operation.", + "properties": { + "provider": { + "description": "Service provider: Microsoft NetworkFunction.", + "type": "string" + }, + "resource": { + "description": "Resource on which the operation is performed etc.", + "type": "string" + }, + "operation": { + "description": "Type of operation: get, read, delete, etc.", + "type": "string" + }, + "description": { + "description": "Description of the operation.", + "type": "string" + } + } + }, + "origin": { + "description": "Origin of the operation", + "type": "string" + } + } + } + }, + "parameters": { + "apiVersionParameter": { + "name": "api-version", + "in": "query", + "description": "Version of the API to be used with the client request.", + "required": true, + "type": "string", + "enum": [ + "2021-09-01-preview" + ], + "default": "2021-09-01-preview" + }, + "resourceGroupName": { + "name": "resourceGroupName", + "in": "path", + "description": "The name of the resource group.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "subscriptionIdParameter": { + "name": "subscriptionId", + "in": "path", + "description": "Azure Subscription ID.", + "required": true, + "type": "string" + }, + "collectorPolicyNameParameter": { + "name": "collectorPolicyName", + "in": "path", + "description": "Collector Policy Name", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "azureTrafficCollectorNameParameter": { + "name": "azureTrafficCollectorName", + "in": "path", + "description": "Azure Traffic Collector name", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + } + } +} diff --git a/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/stable/2022-05-01/examples/AzureTrafficCollectorCreate.json b/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/stable/2022-05-01/examples/AzureTrafficCollectorCreate.json new file mode 100644 index 000000000000..3571afe21136 --- /dev/null +++ b/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/stable/2022-05-01/examples/AzureTrafficCollectorCreate.json @@ -0,0 +1,51 @@ +{ + "parameters": { + "api-version": "2022-05-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "azureTrafficCollectorName": "atc", + "parameters": { + "location": "West US", + "tags": { + "key1": "value1" + }, + "properties": { + "collectorPolicies": [] + } + } + }, + "responses": { + "200": { + "body": { + "name": "atc", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.NetworkFunction/azureTrafficCollectors/atc", + "type": "Microsoft.NetworkFunction/azureTrafficCollectors", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "location": "West US", + "tags": { + "key1": "value1" + }, + "properties": { + "collectorPolicies": [], + "provisioningState": "Succeeded" + } + } + }, + "201": { + "body": { + "name": "atc", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.NetworkFunction/azureTrafficCollectors/atc", + "type": "Microsoft.NetworkFunction/azureTrafficCollectors", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "location": "West US", + "tags": { + "key1": "value1" + }, + "properties": { + "collectorPolicies": [], + "provisioningState": "Succeeded" + } + } + } + } +} diff --git a/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/stable/2022-05-01/examples/AzureTrafficCollectorDelete.json b/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/stable/2022-05-01/examples/AzureTrafficCollectorDelete.json new file mode 100644 index 000000000000..04e9dbf66087 --- /dev/null +++ b/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/stable/2022-05-01/examples/AzureTrafficCollectorDelete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "api-version": "2022-05-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "azureTrafficCollectorName": "atc" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} diff --git a/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/stable/2022-05-01/examples/AzureTrafficCollectorGet.json b/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/stable/2022-05-01/examples/AzureTrafficCollectorGet.json new file mode 100644 index 000000000000..e4f92d19f5cf --- /dev/null +++ b/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/stable/2022-05-01/examples/AzureTrafficCollectorGet.json @@ -0,0 +1,26 @@ +{ + "parameters": { + "api-version": "2022-05-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "azureTrafficCollectorName": "atc" + }, + "responses": { + "200": { + "body": { + "name": "atc", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.NetworkFunction/azureTrafficCollectors/atc", + "type": "Microsoft.NetworkFunction/azureTrafficCollectors", + "location": "West US", + "tags": { + "key1": "value1" + }, + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "properties": { + "collectorPolicies": [], + "provisioningState": "Succeeded" + } + } + } + } +} diff --git a/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/stable/2022-05-01/examples/AzureTrafficCollectorUpdateTags.json b/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/stable/2022-05-01/examples/AzureTrafficCollectorUpdateTags.json new file mode 100644 index 000000000000..ba9486c28c42 --- /dev/null +++ b/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/stable/2022-05-01/examples/AzureTrafficCollectorUpdateTags.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "api-version": "2022-05-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "azureTrafficCollectorName": "atc", + "parameters": { + "tags": { + "key1": "value1", + "key2": "value2" + } + } + }, + "responses": { + "200": { + "body": { + "name": "atc", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.NetworkFunction/azureTrafficCollectors/atc", + "type": "Microsoft.NetworkFunction/azureTrafficCollectors", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "location": "West US", + "tags": { + "key1": "value1", + "key2": "value2" + }, + "properties": { + "collectorPolicies": [], + "provisioningState": "Succeeded" + } + } + } + } +} diff --git a/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/stable/2022-05-01/examples/AzureTrafficCollectorsByResourceGroupList.json b/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/stable/2022-05-01/examples/AzureTrafficCollectorsByResourceGroupList.json new file mode 100644 index 000000000000..d6742c067aa1 --- /dev/null +++ b/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/stable/2022-05-01/examples/AzureTrafficCollectorsByResourceGroupList.json @@ -0,0 +1,30 @@ +{ + "parameters": { + "api-version": "2022-05-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "atc", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.NetworkFunction/azureTrafficCollectors/atc", + "type": "Microsoft.NetworkFunction/azureTrafficCollectors", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "location": "West US", + "tags": { + "key1": "value1" + }, + "properties": { + "collectorPolicies": [], + "provisioningState": "Succeeded" + } + } + ], + "nextLink": "string" + } + } + } +} diff --git a/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/stable/2022-05-01/examples/AzureTrafficCollectorsBySubscriptionList.json b/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/stable/2022-05-01/examples/AzureTrafficCollectorsBySubscriptionList.json new file mode 100644 index 000000000000..52a7af11f439 --- /dev/null +++ b/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/stable/2022-05-01/examples/AzureTrafficCollectorsBySubscriptionList.json @@ -0,0 +1,29 @@ +{ + "parameters": { + "api-version": "2022-05-01", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "atc", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.NetworkFunction/azureTrafficCollectors/atc", + "type": "Microsoft.NetworkFunction/azureTrafficCollectors", + "etag": "w/\\00000000-0000-0000-0000-000000000000\\", + "location": "West US", + "tags": { + "key1": "value1" + }, + "properties": { + "collectorPolicies": [], + "provisioningState": "Succeeded" + } + } + ], + "nextLink": "string" + } + } + } +} diff --git a/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/stable/2022-05-01/examples/CollectorPoliciesList.json b/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/stable/2022-05-01/examples/CollectorPoliciesList.json new file mode 100644 index 000000000000..3f12a63b7f8c --- /dev/null +++ b/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/stable/2022-05-01/examples/CollectorPoliciesList.json @@ -0,0 +1,44 @@ +{ + "parameters": { + "api-version": "2022-05-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "azureTrafficCollectorName": "atc" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "atc", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.NetworkFunction/azureTrafficCollectors/atc/collectorPolicies/cp1", + "etag": "w/\\72090554-7e3b-43f2-80ad-99a9020dcb11\\", + "type": "Microsoft.NetworkFunction/azureTrafficCollectors/collectorPolicies", + "properties": { + "ingestionPolicy": { + "ingestionType": "IPFIX", + "ingestionSources": [ + { + "resourceId": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName", + "sourceType": "Resource" + } + ] + }, + "emissionPolicies": [ + { + "emissionType": "IPFIX", + "emissionDestinations": [ + { + "destinationType": "AzureMonitor" + } + ] + } + ], + "provisioningState": "Succeeded" + } + } + ] + } + } + } +} diff --git a/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/stable/2022-05-01/examples/CollectorPolicyCreate.json b/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/stable/2022-05-01/examples/CollectorPolicyCreate.json new file mode 100644 index 000000000000..e1dca0d912e5 --- /dev/null +++ b/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/stable/2022-05-01/examples/CollectorPolicyCreate.json @@ -0,0 +1,94 @@ +{ + "parameters": { + "api-version": "2022-05-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "azureTrafficCollectorName": "atc", + "collectorPolicyName": "cp1", + "parameters": { + "properties": { + "ingestionPolicy": { + "ingestionType": "IPFIX", + "ingestionSources": [ + { + "resourceId": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName", + "sourceType": "Resource" + } + ] + }, + "emissionPolicies": [ + { + "emissionType": "IPFIX", + "emissionDestinations": [ + { + "destinationType": "AzureMonitor" + } + ] + } + ] + } + } + }, + "responses": { + "200": { + "body": { + "name": "cp1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.NetworkFunction/AzureTrafficCollector/atc/collectorPolicies/cp1", + "etag": "w/\\72090554-7e3b-43f2-80ad-99a9020dcb11\\", + "type": "Microsoft.NetworkFunction/azureTrafficCollectors/collectorPolicies", + "properties": { + "ingestionPolicy": { + "ingestionType": "IPFIX", + "ingestionSources": [ + { + "resourceId": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName", + "sourceType": "Resource" + } + ] + }, + "emissionPolicies": [ + { + "emissionType": "IPFIX", + "emissionDestinations": [ + { + "destinationType": "AzureMonitor" + } + ] + } + ], + "provisioningState": "Succeeded" + } + } + }, + "201": { + "body": { + "name": "cp1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.NetworkFunction/azureTrafficCollectors/atc/collectorPolicies/cp1", + "etag": "w/\\72090554-7e3b-43f2-80ad-99a9020dcb11\\", + "type": "Microsoft.NetworkFunction/azureTrafficCollectors/collectorPolicies", + "properties": { + "ingestionPolicy": { + "ingestionType": "IPFIX", + "ingestionSources": [ + { + "resourceId": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName", + "sourceType": "Resource" + } + ] + }, + "emissionPolicies": [ + { + "emissionType": "IPFIX", + "emissionDestinations": [ + { + "destinationType": "AzureMonitor" + } + ] + } + ], + "provisioningState": "Succeeded" + } + } + } + } +} diff --git a/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/stable/2022-05-01/examples/CollectorPolicyDelete.json b/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/stable/2022-05-01/examples/CollectorPolicyDelete.json new file mode 100644 index 000000000000..cc99ba2eec29 --- /dev/null +++ b/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/stable/2022-05-01/examples/CollectorPolicyDelete.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "api-version": "2022-05-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "azureTrafficCollectorName": "atc", + "collectorPolicyName": "cp1" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} diff --git a/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/stable/2022-05-01/examples/CollectorPolicyGet.json b/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/stable/2022-05-01/examples/CollectorPolicyGet.json new file mode 100644 index 000000000000..226ff692ffca --- /dev/null +++ b/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/stable/2022-05-01/examples/CollectorPolicyGet.json @@ -0,0 +1,41 @@ +{ + "parameters": { + "api-version": "2022-05-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "azureTrafficCollectorName": "atc", + "collectorPolicyName": "cp1" + }, + "responses": { + "200": { + "body": { + "name": "atc", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.NetworkFunction/azureTrafficCollectors/atc/collectorPolicies/cp1", + "etag": "w/\\72090554-7e3b-43f2-80ad-99a9020dcb11\\", + "type": "Microsoft.NetworkFunction/azureTrafficCollectors/collectorPolicies", + "properties": { + "ingestionPolicy": { + "ingestionType": "IPFIX", + "ingestionSources": [ + { + "resourceId": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName", + "sourceType": "Resource" + } + ] + }, + "emissionPolicies": [ + { + "emissionType": "IPFIX", + "emissionDestinations": [ + { + "destinationType": "AzureMonitor" + } + ] + } + ], + "provisioningState": "Succeeded" + } + } + } + } +} diff --git a/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/stable/2022-05-01/examples/OperationsList.json b/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/stable/2022-05-01/examples/OperationsList.json new file mode 100644 index 000000000000..0b5b39a8dc26 --- /dev/null +++ b/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/stable/2022-05-01/examples/OperationsList.json @@ -0,0 +1,22 @@ +{ + "parameters": { + "api-version": "2022-05-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "Microsoft.NetworkFunction/azureTrafficCollectors/write", + "display": { + "provider": "Microsoft NetworkFunction", + "resource": "AzureTrafficCollector", + "operation": "Create/Update a azure traffic collector", + "description": "Creates or Update a azure traffic collector" + } + } + ] + } + } + } +} diff --git a/specification/networkfunction/resource-manager/readme.csharp.md b/specification/networkfunction/resource-manager/readme.csharp.md new file mode 100644 index 000000000000..e0984cc6a95d --- /dev/null +++ b/specification/networkfunction/resource-manager/readme.csharp.md @@ -0,0 +1,15 @@ +## C + +These settings apply only when `--csharp` is specified on the command line. +Please also specify `--csharp-sdks-folder=`. + +```yaml $(csharp) +csharp: + azure-arm: true + license-header: MICROSOFT_MIT_NO_VERSION + payload-flattening-threshold: 1 + clear-output-folder: true + client-side-validation: false + namespace: Microsoft.NetworkFunction + output-folder: $(csharp-sdks-folder)/networkfunction/management/Microsoft.NetworkFunction/GeneratedProtocol +``` \ No newline at end of file diff --git a/specification/networkfunction/resource-manager/readme.go.md b/specification/networkfunction/resource-manager/readme.go.md new file mode 100644 index 000000000000..91da3c426299 --- /dev/null +++ b/specification/networkfunction/resource-manager/readme.go.md @@ -0,0 +1,11 @@ +## Go + +These settings apply only when `--go` is specified on the command line. + +```yaml $(go) && $(track2) +azure-arm: true +license-header: MICROSOFT_MIT_NO_VERSION +module-name: sdk/networkfunction/armnetworkfunction +module: github.com/Azure/azure-sdk-for-go/$(module-name) +output-folder: $(go-sdk-folder)/$(module-name) +``` \ No newline at end of file diff --git a/specification/networkfunction/resource-manager/readme.md b/specification/networkfunction/resource-manager/readme.md new file mode 100644 index 000000000000..725b1b85e938 --- /dev/null +++ b/specification/networkfunction/resource-manager/readme.md @@ -0,0 +1,79 @@ +# networkfunction + +> see https://aka.ms/autorest + +This is the AutoRest configuration file for networkfunction. + +## Getting Started + +To build the SDKs for My API, simply install AutoRest via `npm` (`npm install -g autorest`) and then run: + +> `autorest readme.md` + +To see additional help and options, run: + +> `autorest --help` + +For other options on installation see [Installing AutoRest](https://aka.ms/autorest/install) on the AutoRest github page. + +--- + +## Configuration + +### Basic Information + +These are the global settings for the networkfunction. + +```yaml +openapi-type: arm +tag: package-2021-09-01-preview +``` + +### Tag: package-2021-09-01-preview + +These settings apply only when `--tag=package-2021-09-01-preview` is specified on the command line. + +```yaml $(tag) == 'package-2021-09-01-preview' +input-file: + - Microsoft.NetworkFunction/preview/2021-09-01-preview/AzureTrafficCollector.json +``` + +--- + +# Code Generation + +## Swagger to SDK + +This section describes what SDK should be generated by the automatic system. +This is not used by Autorest itself. + +```yaml $(swagger-to-sdk) +swagger-to-sdk: + - repo: azure-sdk-for-python + - repo: azure-sdk-for-java + - repo: azure-sdk-for-go-track2 + - repo: azure-sdk-for-js + - repo: azure-sdk-for-ruby + after_scripts: + - bundle install && rake arm:regen_all_profiles['azure_mgmt_networkfunction'] +``` + +## Go + +See configuration in [readme.go.md](./readme.go.md) + +## Python + +See configuration in [readme.python.md](./readme.python.md) + +## Ruby + +See configuration in [readme.ruby.md](./readme.ruby.md) + +## TypeScript + +See configuration in [readme.typescript.md](./readme.typescript.md) + +## CSharp + +See configuration in [readme.csharp.md](./readme.csharp.md) \ No newline at end of file diff --git a/specification/networkfunction/resource-manager/readme.python.md b/specification/networkfunction/resource-manager/readme.python.md new file mode 100644 index 000000000000..b4c0d9cd34cd --- /dev/null +++ b/specification/networkfunction/resource-manager/readme.python.md @@ -0,0 +1,21 @@ +## Python + +These settings apply only when `--python` is specified on the command line. +Please also specify `--python-sdks-folder=`. + +```yaml $(python) +python: + azure-arm: true + license-header: MICROSOFT_MIT_NO_VERSION + payload-flattening-threshold: 2 + namespace: Microsoft.NetworkFunction + package-name: networkfunction + package-version: 2021-09-01-preview + clear-output-folder: true +``` + +```yaml $(python) +python: + no-namespace-folders: true + output-folder: $(python-sdks-folder)/azure-mgmt/networkfunction +``` \ No newline at end of file diff --git a/specification/networkfunction/resource-manager/readme.ruby.md b/specification/networkfunction/resource-manager/readme.ruby.md new file mode 100644 index 000000000000..4bdf367013cb --- /dev/null +++ b/specification/networkfunction/resource-manager/readme.ruby.md @@ -0,0 +1,19 @@ +## Ruby + +These settings apply only when `--ruby` is specified on the command line. + +```yaml +package-name: azure_mgmt_networkfunction +package-version: 2021-09-01-preview +azure-arm: true +``` + +### Tag: package-2021-09-01-preview and ruby + +These settings apply only when `--tag=package-2021-09-01-preview --ruby` is specified on the command line. +Please also specify `--ruby-sdks-folder=`. + +```yaml $(tag) == 'package-2021-09-01-preview' && $(ruby) +namespace: Microsoft.NetworkFunction +output-folder: $(ruby-sdks-folder)/networkfunction +``` \ No newline at end of file diff --git a/specification/networkfunction/resource-manager/readme.typescript.md b/specification/networkfunction/resource-manager/readme.typescript.md new file mode 100644 index 000000000000..b25cb480dc53 --- /dev/null +++ b/specification/networkfunction/resource-manager/readme.typescript.md @@ -0,0 +1,13 @@ +## TypeScript + +These settings apply only when `--typescript` is specified on the command line. +Please also specify `--typescript-sdks-folder=`. + +```yaml $(typescript) +typescript: + azure-arm: true + package-name: "networkfunction" + output-folder: "$(typescript-sdks-folder)/packages/networkfunction" + payload-flattening-threshold: 1 + generate-metadata: true +``` \ No newline at end of file From 6c15497c7633f133643e3167a2dec7503b0c9f89 Mon Sep 17 00:00:00 2001 From: Kunal Kulkarni Date: Thu, 5 May 2022 10:25:50 -0700 Subject: [PATCH 02/13] spell check and prettier fix --- custom-words.txt | 1 + .../preview/2021-09-01-preview/AzureTrafficCollector.json | 2 +- .../stable/2022-05-01/AzureTrafficCollector.json | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/custom-words.txt b/custom-words.txt index 6d28e64086e9..f0d5bdbcaed4 100644 --- a/custom-words.txt +++ b/custom-words.txt @@ -980,6 +980,7 @@ ipconfig ipconfiguration ipconfigurations ipfilterrules +IPFIX ipgroups ipos Ipsec diff --git a/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/preview/2021-09-01-preview/AzureTrafficCollector.json b/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/preview/2021-09-01-preview/AzureTrafficCollector.json index a3dbb34fa6f8..e184cac59d07 100644 --- a/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/preview/2021-09-01-preview/AzureTrafficCollector.json +++ b/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/preview/2021-09-01-preview/AzureTrafficCollector.json @@ -677,7 +677,7 @@ "emissionDestinations": { "type": "array", "items": { - "$ref": "#/definitions/EmissionPolicyDestination" + "$ref": "#/definitions/EmissionPolicyDestination" }, "description": "Emission policy destinations." } diff --git a/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/stable/2022-05-01/AzureTrafficCollector.json b/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/stable/2022-05-01/AzureTrafficCollector.json index 3b1154c25a2d..383dda78915e 100644 --- a/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/stable/2022-05-01/AzureTrafficCollector.json +++ b/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/stable/2022-05-01/AzureTrafficCollector.json @@ -677,7 +677,7 @@ "emissionDestinations": { "type": "array", "items": { - "$ref": "#/definitions/EmissionPolicyDestination" + "$ref": "#/definitions/EmissionPolicyDestination" }, "description": "Emission policy destinations." } From 1406ea902d14e2373b0773f5f159f8c1339999d9 Mon Sep 17 00:00:00 2001 From: Kunal Kulkarni Date: Thu, 5 May 2022 10:51:18 -0700 Subject: [PATCH 03/13] avocado, model validation fixes --- .../AzureTrafficCollector.json | 24 ++++++++-------- .../2022-05-01/AzureTrafficCollector.json | 28 +++++++++---------- .../resource-manager/readme.md | 13 ++++++++- 3 files changed, 38 insertions(+), 27 deletions(-) diff --git a/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/preview/2021-09-01-preview/AzureTrafficCollector.json b/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/preview/2021-09-01-preview/AzureTrafficCollector.json index e184cac59d07..51a05566e408 100644 --- a/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/preview/2021-09-01-preview/AzureTrafficCollector.json +++ b/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/preview/2021-09-01-preview/AzureTrafficCollector.json @@ -39,7 +39,7 @@ "operationId": "NetworkFunction_ListOperations", "x-ms-examples": { "OperationsList": { - "$ref": "examples/OperationsList.json" + "$ref": "./examples/OperationsList.json" } }, "parameters": [ @@ -75,7 +75,7 @@ "operationId": "AzureTrafficCollectorsBySubscription_List", "x-ms-examples": { "List of Traffic Collectors by Subscription": { - "$ref": "examples/AzureTrafficCollectorsBySubscriptionList.json" + "$ref": "./examples/AzureTrafficCollectorsBySubscriptionList.json" } }, "parameters": [ @@ -114,7 +114,7 @@ "operationId": "AzureTrafficCollectorsByResourceGroup_List", "x-ms-examples": { "List of Traffic Collectors by ResourceGroup": { - "$ref": "examples/AzureTrafficCollectorsByResourceGroupList.json" + "$ref": "./examples/AzureTrafficCollectorsByResourceGroupList.json" } }, "parameters": [ @@ -184,7 +184,7 @@ }, "x-ms-examples": { "Get Traffic Collector": { - "$ref": "examples/AzureTrafficCollectorGet.json" + "$ref": "./examples/AzureTrafficCollectorGet.json" } } }, @@ -240,7 +240,7 @@ }, "x-ms-examples": { "Create a traffic collector": { - "$ref": "examples/AzureTrafficCollectorCreate.json" + "$ref": "./examples/AzureTrafficCollectorCreate.json" } }, "x-ms-long-running-operation": true, @@ -287,7 +287,7 @@ }, "x-ms-examples": { "Delete Traffic Collector": { - "$ref": "examples/AzureTrafficCollectorDelete.json" + "$ref": "./examples/AzureTrafficCollectorDelete.json" } }, "x-ms-long-running-operation": true, @@ -302,7 +302,7 @@ "operationId": "AzureTrafficCollectors_UpdateTags", "x-ms-examples": { "Update Traffic Collector tags": { - "$ref": "examples/AzureTrafficCollectorUpdateTags.json" + "$ref": "./examples/AzureTrafficCollectorUpdateTags.json" } }, "description": "Updates the specified Azure Traffic Collector tags.", @@ -354,7 +354,7 @@ "operationId": "CollectorPolicies_List", "x-ms-examples": { "List of Collection Policies": { - "$ref": "examples/CollectorPoliciesList.json" + "$ref": "./examples/CollectorPoliciesList.json" } }, "parameters": [ @@ -430,7 +430,7 @@ }, "x-ms-examples": { "Get Collection Policy": { - "$ref": "examples/CollectorPolicyGet.json" + "$ref": "./examples/CollectorPolicyGet.json" } } }, @@ -489,7 +489,7 @@ }, "x-ms-examples": { "Create a collection policy": { - "$ref": "examples/CollectorPolicyCreate.json" + "$ref": "./examples/CollectorPolicyCreate.json" } }, "x-ms-long-running-operation": true, @@ -539,7 +539,7 @@ }, "x-ms-examples": { "Delete Collection Policy": { - "$ref": "examples/CollectorPolicyDelete.json" + "$ref": "./examples/CollectorPolicyDelete.json" } }, "x-ms-long-running-operation": true, @@ -703,7 +703,7 @@ "description": "Resource ID." } }, - "description": "Ingestion policy propeties." + "description": "Ingestion policy properties." }, "IngestionPolicyPropertiesFormat": { "type": "object", diff --git a/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/stable/2022-05-01/AzureTrafficCollector.json b/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/stable/2022-05-01/AzureTrafficCollector.json index 383dda78915e..49094cf3e16e 100644 --- a/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/stable/2022-05-01/AzureTrafficCollector.json +++ b/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/stable/2022-05-01/AzureTrafficCollector.json @@ -39,7 +39,7 @@ "operationId": "NetworkFunction_ListOperations", "x-ms-examples": { "OperationsList": { - "$ref": "examples/OperationsList.json" + "$ref": "./examples/OperationsList.json" } }, "parameters": [ @@ -75,7 +75,7 @@ "operationId": "AzureTrafficCollectorsBySubscription_List", "x-ms-examples": { "List of Traffic Collectors by Subscription": { - "$ref": "examples/AzureTrafficCollectorsBySubscriptionList.json" + "$ref": "./examples/AzureTrafficCollectorsBySubscriptionList.json" } }, "parameters": [ @@ -114,7 +114,7 @@ "operationId": "AzureTrafficCollectorsByResourceGroup_List", "x-ms-examples": { "List of Traffic Collectors by ResourceGroup": { - "$ref": "examples/AzureTrafficCollectorsByResourceGroupList.json" + "$ref": "./examples/AzureTrafficCollectorsByResourceGroupList.json" } }, "parameters": [ @@ -184,7 +184,7 @@ }, "x-ms-examples": { "Get Traffic Collector": { - "$ref": "examples/AzureTrafficCollectorGet.json" + "$ref": "./examples/AzureTrafficCollectorGet.json" } } }, @@ -240,7 +240,7 @@ }, "x-ms-examples": { "Create a traffic collector": { - "$ref": "examples/AzureTrafficCollectorCreate.json" + "$ref": "./examples/AzureTrafficCollectorCreate.json" } }, "x-ms-long-running-operation": true, @@ -287,7 +287,7 @@ }, "x-ms-examples": { "Delete Traffic Collector": { - "$ref": "examples/AzureTrafficCollectorDelete.json" + "$ref": "./examples/AzureTrafficCollectorDelete.json" } }, "x-ms-long-running-operation": true, @@ -302,7 +302,7 @@ "operationId": "AzureTrafficCollectors_UpdateTags", "x-ms-examples": { "Update Traffic Collector tags": { - "$ref": "examples/AzureTrafficCollectorUpdateTags.json" + "$ref": "./examples/AzureTrafficCollectorUpdateTags.json" } }, "description": "Updates the specified Azure Traffic Collector tags.", @@ -354,7 +354,7 @@ "operationId": "CollectorPolicies_List", "x-ms-examples": { "List of Collection Policies": { - "$ref": "examples/CollectorPoliciesList.json" + "$ref": "./examples/CollectorPoliciesList.json" } }, "parameters": [ @@ -430,7 +430,7 @@ }, "x-ms-examples": { "Get Collection Policy": { - "$ref": "examples/CollectorPolicyGet.json" + "$ref": "./examples/CollectorPolicyGet.json" } } }, @@ -489,7 +489,7 @@ }, "x-ms-examples": { "Create a collection policy": { - "$ref": "examples/CollectorPolicyCreate.json" + "$ref": "./examples/CollectorPolicyCreate.json" } }, "x-ms-long-running-operation": true, @@ -539,7 +539,7 @@ }, "x-ms-examples": { "Delete Collection Policy": { - "$ref": "examples/CollectorPolicyDelete.json" + "$ref": "./examples/CollectorPolicyDelete.json" } }, "x-ms-long-running-operation": true, @@ -703,7 +703,7 @@ "description": "Resource ID." } }, - "description": "Ingestion policy propeties." + "description": "Ingestion policy properties." }, "IngestionPolicyPropertiesFormat": { "type": "object", @@ -946,9 +946,9 @@ "required": true, "type": "string", "enum": [ - "2021-09-01-preview" + "2022-05-01" ], - "default": "2021-09-01-preview" + "default": "2022-05-01" }, "resourceGroupName": { "name": "resourceGroupName", diff --git a/specification/networkfunction/resource-manager/readme.md b/specification/networkfunction/resource-manager/readme.md index 725b1b85e938..044e48029781 100644 --- a/specification/networkfunction/resource-manager/readme.md +++ b/specification/networkfunction/resource-manager/readme.md @@ -26,7 +26,7 @@ These are the global settings for the networkfunction. ```yaml openapi-type: arm -tag: package-2021-09-01-preview +tag: package-2022-05-01 ``` ### Tag: package-2021-09-01-preview @@ -40,6 +40,17 @@ input-file: --- +### Tag: package-2022-05-01 + +These settings apply only when `--tag=package-2022-05-01` is specified on the command line. + +```yaml $(tag) == 'package-2022-05-01' +input-file: + - Microsoft.NetworkFunction/stable/2022-05-01/AzureTrafficCollector.json +``` + +--- + # Code Generation ## Swagger to SDK From 24854e57ef2d7349b7a96a568bf5c3b58072af77 Mon Sep 17 00:00:00 2001 From: Kunal Kulkarni Date: Thu, 5 May 2022 11:15:10 -0700 Subject: [PATCH 04/13] lint fixes --- .../preview/2021-09-01-preview/AzureTrafficCollector.json | 6 +++++- .../stable/2022-05-01/AzureTrafficCollector.json | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/preview/2021-09-01-preview/AzureTrafficCollector.json b/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/preview/2021-09-01-preview/AzureTrafficCollector.json index 51a05566e408..00d8864ba265 100644 --- a/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/preview/2021-09-01-preview/AzureTrafficCollector.json +++ b/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/preview/2021-09-01-preview/AzureTrafficCollector.json @@ -948,7 +948,11 @@ "enum": [ "2021-09-01-preview" ], - "default": "2021-09-01-preview" + "default": "2021-09-01-preview", + "x-ms-enum": { + "name": "apiVersionParameter", + "modelAsString": true + } }, "resourceGroupName": { "name": "resourceGroupName", diff --git a/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/stable/2022-05-01/AzureTrafficCollector.json b/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/stable/2022-05-01/AzureTrafficCollector.json index 49094cf3e16e..a9f4c8a0831f 100644 --- a/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/stable/2022-05-01/AzureTrafficCollector.json +++ b/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/stable/2022-05-01/AzureTrafficCollector.json @@ -948,7 +948,11 @@ "enum": [ "2022-05-01" ], - "default": "2022-05-01" + "default": "2022-05-01", + "x-ms-enum": { + "name": "apiVersionParameter", + "modelAsString": true + } }, "resourceGroupName": { "name": "resourceGroupName", From 23dd9db715c15c0a0417ce8810b2e018fdccec3e Mon Sep 17 00:00:00 2001 From: Kunal Kulkarni Date: Thu, 5 May 2022 11:37:29 -0700 Subject: [PATCH 05/13] lint fixes for array item id --- .../2021-09-01-preview/AzureTrafficCollector.json | 15 ++++++++++----- .../stable/2022-05-01/AzureTrafficCollector.json | 15 ++++++++++----- 2 files changed, 20 insertions(+), 10 deletions(-) diff --git a/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/preview/2021-09-01-preview/AzureTrafficCollector.json b/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/preview/2021-09-01-preview/AzureTrafficCollector.json index 00d8864ba265..577064a6756f 100644 --- a/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/preview/2021-09-01-preview/AzureTrafficCollector.json +++ b/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/preview/2021-09-01-preview/AzureTrafficCollector.json @@ -679,7 +679,8 @@ "items": { "$ref": "#/definitions/EmissionPolicyDestination" }, - "description": "Emission policy destinations." + "description": "Emission policy destinations.", + "x-ms-identifiers": [] } }, "description": "Emission policy properties." @@ -724,7 +725,8 @@ "items": { "$ref": "#/definitions/IngestionSourcesPropertiesFormat" }, - "description": "Ingestion Sources." + "description": "Ingestion Sources.", + "x-ms-identifiers": [] } }, "description": "Ingestion Policy properties." @@ -741,7 +743,8 @@ "items": { "$ref": "#/definitions/EmissionPoliciesPropertiesFormat" }, - "description": "Emission policies." + "description": "Emission policies.", + "x-ms-identifiers": [] }, "provisioningState": { "readOnly": true, @@ -848,7 +851,8 @@ "items": { "$ref": "#/definitions/CloudErrorBody" }, - "description": "A list of additional details about the error." + "description": "A list of additional details about the error.", + "x-ms-identifiers": [] } }, "description": "An error response from the service." @@ -888,7 +892,8 @@ "items": { "$ref": "#/definitions/Operation" }, - "description": "List of operations supported by the Azure Traffic Collector resource provider." + "description": "List of operations supported by the Azure Traffic Collector resource provider.", + "x-ms-identifiers": [] }, "nextLink": { "type": "string", diff --git a/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/stable/2022-05-01/AzureTrafficCollector.json b/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/stable/2022-05-01/AzureTrafficCollector.json index a9f4c8a0831f..4e760dcf6596 100644 --- a/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/stable/2022-05-01/AzureTrafficCollector.json +++ b/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/stable/2022-05-01/AzureTrafficCollector.json @@ -679,7 +679,8 @@ "items": { "$ref": "#/definitions/EmissionPolicyDestination" }, - "description": "Emission policy destinations." + "description": "Emission policy destinations.", + "x-ms-identifiers": [] } }, "description": "Emission policy properties." @@ -725,7 +726,8 @@ "$ref": "#/definitions/IngestionSourcesPropertiesFormat" }, "description": "Ingestion Sources." - } + }, + "x-ms-identifiers": [] }, "description": "Ingestion Policy properties." }, @@ -741,7 +743,8 @@ "items": { "$ref": "#/definitions/EmissionPoliciesPropertiesFormat" }, - "description": "Emission policies." + "description": "Emission policies.", + "x-ms-identifiers": [] }, "provisioningState": { "readOnly": true, @@ -848,7 +851,8 @@ "items": { "$ref": "#/definitions/CloudErrorBody" }, - "description": "A list of additional details about the error." + "description": "A list of additional details about the error.", + "x-ms-identifiers": [] } }, "description": "An error response from the service." @@ -888,7 +892,8 @@ "items": { "$ref": "#/definitions/Operation" }, - "description": "List of operations supported by the Azure Traffic Collector resource provider." + "description": "List of operations supported by the Azure Traffic Collector resource provider.", + "x-ms-identifiers": [] }, "nextLink": { "type": "string", From fbe65bed15d17ff3b867fd8eb7f470559856ac66 Mon Sep 17 00:00:00 2001 From: Kunal Kulkarni Date: Thu, 5 May 2022 11:52:05 -0700 Subject: [PATCH 06/13] undo arrayitem lint fixes --- .../2021-09-01-preview/AzureTrafficCollector.json | 15 +++++---------- .../stable/2022-05-01/AzureTrafficCollector.json | 15 +++++---------- 2 files changed, 10 insertions(+), 20 deletions(-) diff --git a/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/preview/2021-09-01-preview/AzureTrafficCollector.json b/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/preview/2021-09-01-preview/AzureTrafficCollector.json index 577064a6756f..00d8864ba265 100644 --- a/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/preview/2021-09-01-preview/AzureTrafficCollector.json +++ b/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/preview/2021-09-01-preview/AzureTrafficCollector.json @@ -679,8 +679,7 @@ "items": { "$ref": "#/definitions/EmissionPolicyDestination" }, - "description": "Emission policy destinations.", - "x-ms-identifiers": [] + "description": "Emission policy destinations." } }, "description": "Emission policy properties." @@ -725,8 +724,7 @@ "items": { "$ref": "#/definitions/IngestionSourcesPropertiesFormat" }, - "description": "Ingestion Sources.", - "x-ms-identifiers": [] + "description": "Ingestion Sources." } }, "description": "Ingestion Policy properties." @@ -743,8 +741,7 @@ "items": { "$ref": "#/definitions/EmissionPoliciesPropertiesFormat" }, - "description": "Emission policies.", - "x-ms-identifiers": [] + "description": "Emission policies." }, "provisioningState": { "readOnly": true, @@ -851,8 +848,7 @@ "items": { "$ref": "#/definitions/CloudErrorBody" }, - "description": "A list of additional details about the error.", - "x-ms-identifiers": [] + "description": "A list of additional details about the error." } }, "description": "An error response from the service." @@ -892,8 +888,7 @@ "items": { "$ref": "#/definitions/Operation" }, - "description": "List of operations supported by the Azure Traffic Collector resource provider.", - "x-ms-identifiers": [] + "description": "List of operations supported by the Azure Traffic Collector resource provider." }, "nextLink": { "type": "string", diff --git a/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/stable/2022-05-01/AzureTrafficCollector.json b/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/stable/2022-05-01/AzureTrafficCollector.json index 4e760dcf6596..a9f4c8a0831f 100644 --- a/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/stable/2022-05-01/AzureTrafficCollector.json +++ b/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/stable/2022-05-01/AzureTrafficCollector.json @@ -679,8 +679,7 @@ "items": { "$ref": "#/definitions/EmissionPolicyDestination" }, - "description": "Emission policy destinations.", - "x-ms-identifiers": [] + "description": "Emission policy destinations." } }, "description": "Emission policy properties." @@ -726,8 +725,7 @@ "$ref": "#/definitions/IngestionSourcesPropertiesFormat" }, "description": "Ingestion Sources." - }, - "x-ms-identifiers": [] + } }, "description": "Ingestion Policy properties." }, @@ -743,8 +741,7 @@ "items": { "$ref": "#/definitions/EmissionPoliciesPropertiesFormat" }, - "description": "Emission policies.", - "x-ms-identifiers": [] + "description": "Emission policies." }, "provisioningState": { "readOnly": true, @@ -851,8 +848,7 @@ "items": { "$ref": "#/definitions/CloudErrorBody" }, - "description": "A list of additional details about the error.", - "x-ms-identifiers": [] + "description": "A list of additional details about the error." } }, "description": "An error response from the service." @@ -892,8 +888,7 @@ "items": { "$ref": "#/definitions/Operation" }, - "description": "List of operations supported by the Azure Traffic Collector resource provider.", - "x-ms-identifiers": [] + "description": "List of operations supported by the Azure Traffic Collector resource provider." }, "nextLink": { "type": "string", From 755451058e397bb2e37596813010728dc547e084 Mon Sep 17 00:00:00 2001 From: Jiefeng Chen <51037443+BigCat20196@users.noreply.github.com> Date: Sat, 7 May 2022 15:00:27 +0800 Subject: [PATCH 07/13] Update readme.md --- specification/networkfunction/resource-manager/readme.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/specification/networkfunction/resource-manager/readme.md b/specification/networkfunction/resource-manager/readme.md index 044e48029781..fe1ee6cd7cf2 100644 --- a/specification/networkfunction/resource-manager/readme.md +++ b/specification/networkfunction/resource-manager/readme.md @@ -60,7 +60,7 @@ This is not used by Autorest itself. ```yaml $(swagger-to-sdk) swagger-to-sdk: - - repo: azure-sdk-for-python + - repo: azure-sdk-for-python-track2 - repo: azure-sdk-for-java - repo: azure-sdk-for-go-track2 - repo: azure-sdk-for-js @@ -87,4 +87,4 @@ See configuration in [readme.typescript.md](./readme.typescript.md) ## CSharp -See configuration in [readme.csharp.md](./readme.csharp.md) \ No newline at end of file +See configuration in [readme.csharp.md](./readme.csharp.md) From 12afa8b6112f99fa9c57fa2610981dad5a4a99b7 Mon Sep 17 00:00:00 2001 From: Jiefeng Chen <51037443+BigCat20196@users.noreply.github.com> Date: Sat, 7 May 2022 15:01:36 +0800 Subject: [PATCH 08/13] Update readme.python.md --- .../resource-manager/readme.python.md | 25 ++++++++----------- 1 file changed, 11 insertions(+), 14 deletions(-) diff --git a/specification/networkfunction/resource-manager/readme.python.md b/specification/networkfunction/resource-manager/readme.python.md index b4c0d9cd34cd..15b83b6e62b2 100644 --- a/specification/networkfunction/resource-manager/readme.python.md +++ b/specification/networkfunction/resource-manager/readme.python.md @@ -3,19 +3,16 @@ These settings apply only when `--python` is specified on the command line. Please also specify `--python-sdks-folder=`. -```yaml $(python) -python: - azure-arm: true - license-header: MICROSOFT_MIT_NO_VERSION - payload-flattening-threshold: 2 - namespace: Microsoft.NetworkFunction - package-name: networkfunction - package-version: 2021-09-01-preview - clear-output-folder: true +``` yaml $(python) +azure-arm: true +license-header: MICROSOFT_MIT_NO_VERSION +package-name: azure-mgmt-networkfunction +namespace: azure.mgmt.networkfunction +package-version: 1.0.0b1 +clear-output-folder: true ``` -```yaml $(python) -python: - no-namespace-folders: true - output-folder: $(python-sdks-folder)/azure-mgmt/networkfunction -``` \ No newline at end of file +``` yaml $(python) +no-namespace-folders: true +output-folder: $(python-sdks-folder)/networkfunction/azure-mgmt-networkfunction/azure/mgmt/networkfunction +``` From 964a6a7819f5d00374e674cff228a6f0ae5f66a2 Mon Sep 17 00:00:00 2001 From: Kunal Kulkarni Date: Thu, 12 May 2022 10:54:18 -0700 Subject: [PATCH 09/13] updated swagger --- .../AzureTrafficCollector.json | 170 ++++++++++++------ .../2022-05-01/AzureTrafficCollector.json | 170 ++++++++++++------ 2 files changed, 240 insertions(+), 100 deletions(-) diff --git a/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/preview/2021-09-01-preview/AzureTrafficCollector.json b/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/preview/2021-09-01-preview/AzureTrafficCollector.json index 00d8864ba265..4e5d178e9f7b 100644 --- a/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/preview/2021-09-01-preview/AzureTrafficCollector.json +++ b/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/preview/2021-09-01-preview/AzureTrafficCollector.json @@ -3,10 +3,7 @@ "info": { "version": "2021-09-01-preview", "title": "Azure Traffic Collector", - "description": "Azure Traffic Collector service", - "license": { - "name": "Microsoft" - } + "description": "Azure Traffic Collector service" }, "host": "management.azure.com", "schemes": [ @@ -18,6 +15,13 @@ "produces": [ "application/json" ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], "securityDefinitions": { "azure_auth": { "type": "oauth2", @@ -39,7 +43,7 @@ "operationId": "NetworkFunction_ListOperations", "x-ms-examples": { "OperationsList": { - "$ref": "./examples/OperationsList.json" + "$ref": "examples/OperationsList.json" } }, "parameters": [ @@ -75,7 +79,7 @@ "operationId": "AzureTrafficCollectorsBySubscription_List", "x-ms-examples": { "List of Traffic Collectors by Subscription": { - "$ref": "./examples/AzureTrafficCollectorsBySubscriptionList.json" + "$ref": "examples/AzureTrafficCollectorsBySubscriptionList.json" } }, "parameters": [ @@ -114,7 +118,7 @@ "operationId": "AzureTrafficCollectorsByResourceGroup_List", "x-ms-examples": { "List of Traffic Collectors by ResourceGroup": { - "$ref": "./examples/AzureTrafficCollectorsByResourceGroupList.json" + "$ref": "examples/AzureTrafficCollectorsByResourceGroupList.json" } }, "parameters": [ @@ -184,7 +188,7 @@ }, "x-ms-examples": { "Get Traffic Collector": { - "$ref": "./examples/AzureTrafficCollectorGet.json" + "$ref": "examples/AzureTrafficCollectorGet.json" } } }, @@ -240,7 +244,7 @@ }, "x-ms-examples": { "Create a traffic collector": { - "$ref": "./examples/AzureTrafficCollectorCreate.json" + "$ref": "examples/AzureTrafficCollectorCreate.json" } }, "x-ms-long-running-operation": true, @@ -287,7 +291,7 @@ }, "x-ms-examples": { "Delete Traffic Collector": { - "$ref": "./examples/AzureTrafficCollectorDelete.json" + "$ref": "examples/AzureTrafficCollectorDelete.json" } }, "x-ms-long-running-operation": true, @@ -302,7 +306,7 @@ "operationId": "AzureTrafficCollectors_UpdateTags", "x-ms-examples": { "Update Traffic Collector tags": { - "$ref": "./examples/AzureTrafficCollectorUpdateTags.json" + "$ref": "examples/AzureTrafficCollectorUpdateTags.json" } }, "description": "Updates the specified Azure Traffic Collector tags.", @@ -353,8 +357,8 @@ "description": "Return list of Collector policies in a Azure Traffic Collector", "operationId": "CollectorPolicies_List", "x-ms-examples": { - "List of Collection Policies": { - "$ref": "./examples/CollectorPoliciesList.json" + "List of Collector Policies": { + "$ref": "examples/CollectorPoliciesList.json" } }, "parameters": [ @@ -429,8 +433,8 @@ } }, "x-ms-examples": { - "Get Collection Policy": { - "$ref": "./examples/CollectorPolicyGet.json" + "Get Collector Policy": { + "$ref": "examples/CollectorPolicyGet.json" } } }, @@ -488,8 +492,8 @@ } }, "x-ms-examples": { - "Create a collection policy": { - "$ref": "./examples/CollectorPolicyCreate.json" + "Create a collector policy": { + "$ref": "examples/CollectorPolicyCreate.json" } }, "x-ms-long-running-operation": true, @@ -538,8 +542,8 @@ } }, "x-ms-examples": { - "Delete Collection Policy": { - "$ref": "./examples/CollectorPolicyDelete.json" + "Delete Collector Policy": { + "$ref": "examples/CollectorPolicyDelete.json" } }, "x-ms-long-running-operation": true, @@ -583,15 +587,7 @@ }, "AzureTrafficCollectorPropertiesFormat": { "type": "object", - "x-ms-azure-resource": true, "properties": { - "collectorPolicies": { - "type": "array", - "items": { - "$ref": "#/definitions/CollectorPolicy" - }, - "description": "Collector Policies for Azure Traffic Collector." - }, "virtualHub": { "$ref": "#/definitions/ResourceReference", "description": "The virtualHub to which the Azure Traffic Collector belongs." @@ -599,7 +595,7 @@ "provisioningState": { "readOnly": true, "$ref": "#/definitions/ProvisioningState", - "description": "The provisioning state of the application rule collection resource." + "description": "The provisioning state of the Azure Traffic Collector resource." } }, "description": "Azure Traffic Collector resource properties." @@ -620,7 +616,7 @@ }, "allOf": [ { - "$ref": "#/definitions/Resource" + "$ref": "#/definitions/TrackedResource" } ], "description": "Azure Traffic Collector resource." @@ -633,7 +629,7 @@ "items": { "$ref": "#/definitions/CollectorPolicy" }, - "description": "A list of collection policies." + "description": "A list collector policies." }, "nextLink": { "type": "string", @@ -749,7 +745,7 @@ "description": "The provisioning state." } }, - "description": "Collection policy properties." + "description": "Collector policy properties." }, "CollectorPolicy": { "type": "object", @@ -757,32 +753,31 @@ "properties": { "x-ms-client-flatten": true, "$ref": "#/definitions/CollectorPolicyPropertiesFormat", - "description": "Properties of the Collection Policy." - }, - "name": { - "type": "string", - "readOnly": true, - "description": "The name of Collection Policy in a Traffic Collector." + "description": "Properties of the Collector Policy." }, "etag": { "type": "string", "readOnly": true, "description": "A unique read-only string that changes whenever the resource is updated." }, - "type": { - "type": "string", - "readOnly": true, - "description": "The type of resource." + "systemData": { + "allOf": [ + { + "$ref": "#/definitions/SystemData" + } + ], + "description": "Metadata pertaining to creation and last modification of the resource.", + "readOnly": true } }, "allOf": [ { - "$ref": "#/definitions/ResourceReference" + "$ref": "#/definitions/ProxyResource" } ], - "description": "Collection policy resource." + "description": "Collector policy resource." }, - "Resource": { + "TrackedResource": { "type": "object", "properties": { "id": { @@ -810,6 +805,15 @@ "type": "string" }, "description": "Resource tags." + }, + "systemData": { + "allOf": [ + { + "$ref": "#/definitions/SystemData" + } + ], + "description": "Metadata pertaining to creation and last modification of the resource.", + "readOnly": true } }, "description": "Common resource representation.", @@ -827,6 +831,28 @@ "description": "Resource reference properties.", "x-ms-azure-resource": true }, + "ProxyResource": { + "type": "object", + "x-ms-azure-resource": true, + "description": "An azure resource object", + "properties": { + "id": { + "type": "string", + "readOnly": true, + "description": "Azure resource Id" + }, + "type": { + "type": "string", + "readOnly": true, + "description": "Azure resource type" + }, + "name": { + "type": "string", + "readOnly": true, + "description": "Azure resource name" + } + } + }, "CloudErrorBody": { "type": "object", "x-ms-external": true, @@ -936,6 +962,54 @@ "type": "string" } } + }, + "SystemData": { + "description": "Metadata pertaining to creation and last modification of the resource.", + "type": "object", + "readOnly": true, + "properties": { + "createdBy": { + "type": "string", + "description": "The identity that created the resource." + }, + "createdByType": { + "type": "string", + "description": "The type of identity that created the resource.", + "enum": [ + "User", + "Application", + "ManagedIdentity", + "Key" + ], + "x-ms-enum": { + "name": "createdByType", + "modelAsString": true + } + }, + "createdAt": { + "type": "string", + "format": "date-time", + "description": "The timestamp of resource creation (UTC)." + }, + "lastModifiedBy": { + "type": "string", + "description": "The identity that last modified the resource." + }, + "lastModifiedByType": { + "type": "string", + "description": "The type of identity that last modified the resource.", + "enum": [ + "User", + "Application", + "ManagedIdentity", + "Key" + ], + "x-ms-enum": { + "name": "createdByType", + "modelAsString": true + } + } + } } }, "parameters": { @@ -948,11 +1022,7 @@ "enum": [ "2021-09-01-preview" ], - "default": "2021-09-01-preview", - "x-ms-enum": { - "name": "apiVersionParameter", - "modelAsString": true - } + "default": "2021-09-01-preview" }, "resourceGroupName": { "name": "resourceGroupName", @@ -986,4 +1056,4 @@ "x-ms-parameter-location": "method" } } -} +} \ No newline at end of file diff --git a/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/stable/2022-05-01/AzureTrafficCollector.json b/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/stable/2022-05-01/AzureTrafficCollector.json index a9f4c8a0831f..ffc0ce2a3564 100644 --- a/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/stable/2022-05-01/AzureTrafficCollector.json +++ b/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/stable/2022-05-01/AzureTrafficCollector.json @@ -3,10 +3,7 @@ "info": { "version": "2022-05-01", "title": "Azure Traffic Collector", - "description": "Azure Traffic Collector service", - "license": { - "name": "Microsoft" - } + "description": "Azure Traffic Collector service" }, "host": "management.azure.com", "schemes": [ @@ -18,6 +15,13 @@ "produces": [ "application/json" ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], "securityDefinitions": { "azure_auth": { "type": "oauth2", @@ -39,7 +43,7 @@ "operationId": "NetworkFunction_ListOperations", "x-ms-examples": { "OperationsList": { - "$ref": "./examples/OperationsList.json" + "$ref": "examples/OperationsList.json" } }, "parameters": [ @@ -75,7 +79,7 @@ "operationId": "AzureTrafficCollectorsBySubscription_List", "x-ms-examples": { "List of Traffic Collectors by Subscription": { - "$ref": "./examples/AzureTrafficCollectorsBySubscriptionList.json" + "$ref": "examples/AzureTrafficCollectorsBySubscriptionList.json" } }, "parameters": [ @@ -114,7 +118,7 @@ "operationId": "AzureTrafficCollectorsByResourceGroup_List", "x-ms-examples": { "List of Traffic Collectors by ResourceGroup": { - "$ref": "./examples/AzureTrafficCollectorsByResourceGroupList.json" + "$ref": "examples/AzureTrafficCollectorsByResourceGroupList.json" } }, "parameters": [ @@ -184,7 +188,7 @@ }, "x-ms-examples": { "Get Traffic Collector": { - "$ref": "./examples/AzureTrafficCollectorGet.json" + "$ref": "examples/AzureTrafficCollectorGet.json" } } }, @@ -240,7 +244,7 @@ }, "x-ms-examples": { "Create a traffic collector": { - "$ref": "./examples/AzureTrafficCollectorCreate.json" + "$ref": "examples/AzureTrafficCollectorCreate.json" } }, "x-ms-long-running-operation": true, @@ -287,7 +291,7 @@ }, "x-ms-examples": { "Delete Traffic Collector": { - "$ref": "./examples/AzureTrafficCollectorDelete.json" + "$ref": "examples/AzureTrafficCollectorDelete.json" } }, "x-ms-long-running-operation": true, @@ -302,7 +306,7 @@ "operationId": "AzureTrafficCollectors_UpdateTags", "x-ms-examples": { "Update Traffic Collector tags": { - "$ref": "./examples/AzureTrafficCollectorUpdateTags.json" + "$ref": "examples/AzureTrafficCollectorUpdateTags.json" } }, "description": "Updates the specified Azure Traffic Collector tags.", @@ -353,8 +357,8 @@ "description": "Return list of Collector policies in a Azure Traffic Collector", "operationId": "CollectorPolicies_List", "x-ms-examples": { - "List of Collection Policies": { - "$ref": "./examples/CollectorPoliciesList.json" + "List of Collector Policies": { + "$ref": "examples/CollectorPoliciesList.json" } }, "parameters": [ @@ -429,8 +433,8 @@ } }, "x-ms-examples": { - "Get Collection Policy": { - "$ref": "./examples/CollectorPolicyGet.json" + "Get Collector Policy": { + "$ref": "examples/CollectorPolicyGet.json" } } }, @@ -488,8 +492,8 @@ } }, "x-ms-examples": { - "Create a collection policy": { - "$ref": "./examples/CollectorPolicyCreate.json" + "Create a collector policy": { + "$ref": "examples/CollectorPolicyCreate.json" } }, "x-ms-long-running-operation": true, @@ -538,8 +542,8 @@ } }, "x-ms-examples": { - "Delete Collection Policy": { - "$ref": "./examples/CollectorPolicyDelete.json" + "Delete Collector Policy": { + "$ref": "examples/CollectorPolicyDelete.json" } }, "x-ms-long-running-operation": true, @@ -583,15 +587,7 @@ }, "AzureTrafficCollectorPropertiesFormat": { "type": "object", - "x-ms-azure-resource": true, "properties": { - "collectorPolicies": { - "type": "array", - "items": { - "$ref": "#/definitions/CollectorPolicy" - }, - "description": "Collector Policies for Azure Traffic Collector." - }, "virtualHub": { "$ref": "#/definitions/ResourceReference", "description": "The virtualHub to which the Azure Traffic Collector belongs." @@ -599,7 +595,7 @@ "provisioningState": { "readOnly": true, "$ref": "#/definitions/ProvisioningState", - "description": "The provisioning state of the application rule collection resource." + "description": "The provisioning state of the Azure Traffic Collector resource." } }, "description": "Azure Traffic Collector resource properties." @@ -620,7 +616,7 @@ }, "allOf": [ { - "$ref": "#/definitions/Resource" + "$ref": "#/definitions/TrackedResource" } ], "description": "Azure Traffic Collector resource." @@ -633,7 +629,7 @@ "items": { "$ref": "#/definitions/CollectorPolicy" }, - "description": "A list of collection policies." + "description": "A list collector policies." }, "nextLink": { "type": "string", @@ -749,7 +745,7 @@ "description": "The provisioning state." } }, - "description": "Collection policy properties." + "description": "Collector policy properties." }, "CollectorPolicy": { "type": "object", @@ -757,32 +753,31 @@ "properties": { "x-ms-client-flatten": true, "$ref": "#/definitions/CollectorPolicyPropertiesFormat", - "description": "Properties of the Collection Policy." - }, - "name": { - "type": "string", - "readOnly": true, - "description": "The name of Collection Policy in a Traffic Collector." + "description": "Properties of the Collector Policy." }, "etag": { "type": "string", "readOnly": true, "description": "A unique read-only string that changes whenever the resource is updated." }, - "type": { - "type": "string", - "readOnly": true, - "description": "The type of resource." + "systemData": { + "allOf": [ + { + "$ref": "#/definitions/SystemData" + } + ], + "description": "Metadata pertaining to creation and last modification of the resource.", + "readOnly": true } }, "allOf": [ { - "$ref": "#/definitions/ResourceReference" + "$ref": "#/definitions/ProxyResource" } ], - "description": "Collection policy resource." + "description": "Collector policy resource." }, - "Resource": { + "TrackedResource": { "type": "object", "properties": { "id": { @@ -810,6 +805,15 @@ "type": "string" }, "description": "Resource tags." + }, + "systemData": { + "allOf": [ + { + "$ref": "#/definitions/SystemData" + } + ], + "description": "Metadata pertaining to creation and last modification of the resource.", + "readOnly": true } }, "description": "Common resource representation.", @@ -827,6 +831,28 @@ "description": "Resource reference properties.", "x-ms-azure-resource": true }, + "ProxyResource": { + "type": "object", + "x-ms-azure-resource": true, + "description": "An azure resource object", + "properties": { + "id": { + "type": "string", + "readOnly": true, + "description": "Azure resource Id" + }, + "type": { + "type": "string", + "readOnly": true, + "description": "Azure resource type" + }, + "name": { + "type": "string", + "readOnly": true, + "description": "Azure resource name" + } + } + }, "CloudErrorBody": { "type": "object", "x-ms-external": true, @@ -936,6 +962,54 @@ "type": "string" } } + }, + "SystemData": { + "description": "Metadata pertaining to creation and last modification of the resource.", + "type": "object", + "readOnly": true, + "properties": { + "createdBy": { + "type": "string", + "description": "The identity that created the resource." + }, + "createdByType": { + "type": "string", + "description": "The type of identity that created the resource.", + "enum": [ + "User", + "Application", + "ManagedIdentity", + "Key" + ], + "x-ms-enum": { + "name": "createdByType", + "modelAsString": true + } + }, + "createdAt": { + "type": "string", + "format": "date-time", + "description": "The timestamp of resource creation (UTC)." + }, + "lastModifiedBy": { + "type": "string", + "description": "The identity that last modified the resource." + }, + "lastModifiedByType": { + "type": "string", + "description": "The type of identity that last modified the resource.", + "enum": [ + "User", + "Application", + "ManagedIdentity", + "Key" + ], + "x-ms-enum": { + "name": "createdByType", + "modelAsString": true + } + } + } } }, "parameters": { @@ -948,11 +1022,7 @@ "enum": [ "2022-05-01" ], - "default": "2022-05-01", - "x-ms-enum": { - "name": "apiVersionParameter", - "modelAsString": true - } + "default": "2022-05-01" }, "resourceGroupName": { "name": "resourceGroupName", @@ -986,4 +1056,4 @@ "x-ms-parameter-location": "method" } } -} +} \ No newline at end of file From 8843c5836fe5ccedfe5bc319e683b2ca1e7322a9 Mon Sep 17 00:00:00 2001 From: Kunal Kulkarni Date: Thu, 12 May 2022 11:16:33 -0700 Subject: [PATCH 10/13] updated swagger --- .../AzureTrafficCollector.json | 89 ++++++++----------- .../2022-05-01/AzureTrafficCollector.json | 89 ++++++++----------- 2 files changed, 76 insertions(+), 102 deletions(-) diff --git a/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/preview/2021-09-01-preview/AzureTrafficCollector.json b/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/preview/2021-09-01-preview/AzureTrafficCollector.json index 4e5d178e9f7b..a7078543528d 100644 --- a/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/preview/2021-09-01-preview/AzureTrafficCollector.json +++ b/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/preview/2021-09-01-preview/AzureTrafficCollector.json @@ -3,7 +3,10 @@ "info": { "version": "2021-09-01-preview", "title": "Azure Traffic Collector", - "description": "Azure Traffic Collector service" + "description": "Azure Traffic Collector service", + "license": { + "name": "Microsoft" + } }, "host": "management.azure.com", "schemes": [ @@ -15,13 +18,6 @@ "produces": [ "application/json" ], - "security": [ - { - "azure_auth": [ - "user_impersonation" - ] - } - ], "securityDefinitions": { "azure_auth": { "type": "oauth2", @@ -43,7 +39,7 @@ "operationId": "NetworkFunction_ListOperations", "x-ms-examples": { "OperationsList": { - "$ref": "examples/OperationsList.json" + "$ref": "./examples/OperationsList.json" } }, "parameters": [ @@ -79,7 +75,7 @@ "operationId": "AzureTrafficCollectorsBySubscription_List", "x-ms-examples": { "List of Traffic Collectors by Subscription": { - "$ref": "examples/AzureTrafficCollectorsBySubscriptionList.json" + "$ref": "./examples/AzureTrafficCollectorsBySubscriptionList.json" } }, "parameters": [ @@ -118,7 +114,7 @@ "operationId": "AzureTrafficCollectorsByResourceGroup_List", "x-ms-examples": { "List of Traffic Collectors by ResourceGroup": { - "$ref": "examples/AzureTrafficCollectorsByResourceGroupList.json" + "$ref": "./examples/AzureTrafficCollectorsByResourceGroupList.json" } }, "parameters": [ @@ -188,7 +184,7 @@ }, "x-ms-examples": { "Get Traffic Collector": { - "$ref": "examples/AzureTrafficCollectorGet.json" + "$ref": "./examples/AzureTrafficCollectorGet.json" } } }, @@ -244,7 +240,7 @@ }, "x-ms-examples": { "Create a traffic collector": { - "$ref": "examples/AzureTrafficCollectorCreate.json" + "$ref": "./examples/AzureTrafficCollectorCreate.json" } }, "x-ms-long-running-operation": true, @@ -291,7 +287,7 @@ }, "x-ms-examples": { "Delete Traffic Collector": { - "$ref": "examples/AzureTrafficCollectorDelete.json" + "$ref": "./examples/AzureTrafficCollectorDelete.json" } }, "x-ms-long-running-operation": true, @@ -306,7 +302,7 @@ "operationId": "AzureTrafficCollectors_UpdateTags", "x-ms-examples": { "Update Traffic Collector tags": { - "$ref": "examples/AzureTrafficCollectorUpdateTags.json" + "$ref": "./examples/AzureTrafficCollectorUpdateTags.json" } }, "description": "Updates the specified Azure Traffic Collector tags.", @@ -357,8 +353,8 @@ "description": "Return list of Collector policies in a Azure Traffic Collector", "operationId": "CollectorPolicies_List", "x-ms-examples": { - "List of Collector Policies": { - "$ref": "examples/CollectorPoliciesList.json" + "List of Collection Policies": { + "$ref": "./examples/CollectorPoliciesList.json" } }, "parameters": [ @@ -433,8 +429,8 @@ } }, "x-ms-examples": { - "Get Collector Policy": { - "$ref": "examples/CollectorPolicyGet.json" + "Get Collection Policy": { + "$ref": "./examples/CollectorPolicyGet.json" } } }, @@ -492,8 +488,8 @@ } }, "x-ms-examples": { - "Create a collector policy": { - "$ref": "examples/CollectorPolicyCreate.json" + "Create a collection policy": { + "$ref": "./examples/CollectorPolicyCreate.json" } }, "x-ms-long-running-operation": true, @@ -542,8 +538,8 @@ } }, "x-ms-examples": { - "Delete Collector Policy": { - "$ref": "examples/CollectorPolicyDelete.json" + "Delete Collection Policy": { + "$ref": "./examples/CollectorPolicyDelete.json" } }, "x-ms-long-running-operation": true, @@ -587,7 +583,15 @@ }, "AzureTrafficCollectorPropertiesFormat": { "type": "object", + "x-ms-azure-resource": true, "properties": { + "collectorPolicies": { + "type": "array", + "items": { + "$ref": "#/definitions/CollectorPolicy" + }, + "description": "Collector Policies for Azure Traffic Collector." + }, "virtualHub": { "$ref": "#/definitions/ResourceReference", "description": "The virtualHub to which the Azure Traffic Collector belongs." @@ -595,7 +599,7 @@ "provisioningState": { "readOnly": true, "$ref": "#/definitions/ProvisioningState", - "description": "The provisioning state of the Azure Traffic Collector resource." + "description": "The provisioning state of the application rule collection resource." } }, "description": "Azure Traffic Collector resource properties." @@ -616,7 +620,7 @@ }, "allOf": [ { - "$ref": "#/definitions/TrackedResource" + "$ref": "#/definitions/Resource" } ], "description": "Azure Traffic Collector resource." @@ -629,7 +633,7 @@ "items": { "$ref": "#/definitions/CollectorPolicy" }, - "description": "A list collector policies." + "description": "A list of collection policies." }, "nextLink": { "type": "string", @@ -745,7 +749,7 @@ "description": "The provisioning state." } }, - "description": "Collector policy properties." + "description": "Collection policy properties." }, "CollectorPolicy": { "type": "object", @@ -831,28 +835,6 @@ "description": "Resource reference properties.", "x-ms-azure-resource": true }, - "ProxyResource": { - "type": "object", - "x-ms-azure-resource": true, - "description": "An azure resource object", - "properties": { - "id": { - "type": "string", - "readOnly": true, - "description": "Azure resource Id" - }, - "type": { - "type": "string", - "readOnly": true, - "description": "Azure resource type" - }, - "name": { - "type": "string", - "readOnly": true, - "description": "Azure resource name" - } - } - }, "CloudErrorBody": { "type": "object", "x-ms-external": true, @@ -1012,6 +994,7 @@ } } }, + "parameters": { "apiVersionParameter": { "name": "api-version", @@ -1022,7 +1005,11 @@ "enum": [ "2021-09-01-preview" ], - "default": "2021-09-01-preview" + "default": "2021-09-01-preview", + "x-ms-enum": { + "name": "apiVersionParameter", + "modelAsString": true + } }, "resourceGroupName": { "name": "resourceGroupName", @@ -1056,4 +1043,4 @@ "x-ms-parameter-location": "method" } } -} \ No newline at end of file +} diff --git a/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/stable/2022-05-01/AzureTrafficCollector.json b/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/stable/2022-05-01/AzureTrafficCollector.json index ffc0ce2a3564..c2492a58846a 100644 --- a/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/stable/2022-05-01/AzureTrafficCollector.json +++ b/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/stable/2022-05-01/AzureTrafficCollector.json @@ -3,7 +3,10 @@ "info": { "version": "2022-05-01", "title": "Azure Traffic Collector", - "description": "Azure Traffic Collector service" + "description": "Azure Traffic Collector service", + "license": { + "name": "Microsoft" + } }, "host": "management.azure.com", "schemes": [ @@ -15,13 +18,6 @@ "produces": [ "application/json" ], - "security": [ - { - "azure_auth": [ - "user_impersonation" - ] - } - ], "securityDefinitions": { "azure_auth": { "type": "oauth2", @@ -43,7 +39,7 @@ "operationId": "NetworkFunction_ListOperations", "x-ms-examples": { "OperationsList": { - "$ref": "examples/OperationsList.json" + "$ref": "./examples/OperationsList.json" } }, "parameters": [ @@ -79,7 +75,7 @@ "operationId": "AzureTrafficCollectorsBySubscription_List", "x-ms-examples": { "List of Traffic Collectors by Subscription": { - "$ref": "examples/AzureTrafficCollectorsBySubscriptionList.json" + "$ref": "./examples/AzureTrafficCollectorsBySubscriptionList.json" } }, "parameters": [ @@ -118,7 +114,7 @@ "operationId": "AzureTrafficCollectorsByResourceGroup_List", "x-ms-examples": { "List of Traffic Collectors by ResourceGroup": { - "$ref": "examples/AzureTrafficCollectorsByResourceGroupList.json" + "$ref": "./examples/AzureTrafficCollectorsByResourceGroupList.json" } }, "parameters": [ @@ -188,7 +184,7 @@ }, "x-ms-examples": { "Get Traffic Collector": { - "$ref": "examples/AzureTrafficCollectorGet.json" + "$ref": "./examples/AzureTrafficCollectorGet.json" } } }, @@ -244,7 +240,7 @@ }, "x-ms-examples": { "Create a traffic collector": { - "$ref": "examples/AzureTrafficCollectorCreate.json" + "$ref": "./examples/AzureTrafficCollectorCreate.json" } }, "x-ms-long-running-operation": true, @@ -291,7 +287,7 @@ }, "x-ms-examples": { "Delete Traffic Collector": { - "$ref": "examples/AzureTrafficCollectorDelete.json" + "$ref": "./examples/AzureTrafficCollectorDelete.json" } }, "x-ms-long-running-operation": true, @@ -306,7 +302,7 @@ "operationId": "AzureTrafficCollectors_UpdateTags", "x-ms-examples": { "Update Traffic Collector tags": { - "$ref": "examples/AzureTrafficCollectorUpdateTags.json" + "$ref": "./examples/AzureTrafficCollectorUpdateTags.json" } }, "description": "Updates the specified Azure Traffic Collector tags.", @@ -357,8 +353,8 @@ "description": "Return list of Collector policies in a Azure Traffic Collector", "operationId": "CollectorPolicies_List", "x-ms-examples": { - "List of Collector Policies": { - "$ref": "examples/CollectorPoliciesList.json" + "List of Collection Policies": { + "$ref": "./examples/CollectorPoliciesList.json" } }, "parameters": [ @@ -433,8 +429,8 @@ } }, "x-ms-examples": { - "Get Collector Policy": { - "$ref": "examples/CollectorPolicyGet.json" + "Get Collection Policy": { + "$ref": "./examples/CollectorPolicyGet.json" } } }, @@ -492,8 +488,8 @@ } }, "x-ms-examples": { - "Create a collector policy": { - "$ref": "examples/CollectorPolicyCreate.json" + "Create a collection policy": { + "$ref": "./examples/CollectorPolicyCreate.json" } }, "x-ms-long-running-operation": true, @@ -542,8 +538,8 @@ } }, "x-ms-examples": { - "Delete Collector Policy": { - "$ref": "examples/CollectorPolicyDelete.json" + "Delete Collection Policy": { + "$ref": "./examples/CollectorPolicyDelete.json" } }, "x-ms-long-running-operation": true, @@ -587,7 +583,15 @@ }, "AzureTrafficCollectorPropertiesFormat": { "type": "object", + "x-ms-azure-resource": true, "properties": { + "collectorPolicies": { + "type": "array", + "items": { + "$ref": "#/definitions/CollectorPolicy" + }, + "description": "Collector Policies for Azure Traffic Collector." + }, "virtualHub": { "$ref": "#/definitions/ResourceReference", "description": "The virtualHub to which the Azure Traffic Collector belongs." @@ -595,7 +599,7 @@ "provisioningState": { "readOnly": true, "$ref": "#/definitions/ProvisioningState", - "description": "The provisioning state of the Azure Traffic Collector resource." + "description": "The provisioning state of the application rule collection resource." } }, "description": "Azure Traffic Collector resource properties." @@ -616,7 +620,7 @@ }, "allOf": [ { - "$ref": "#/definitions/TrackedResource" + "$ref": "#/definitions/Resource" } ], "description": "Azure Traffic Collector resource." @@ -629,7 +633,7 @@ "items": { "$ref": "#/definitions/CollectorPolicy" }, - "description": "A list collector policies." + "description": "A list of collection policies." }, "nextLink": { "type": "string", @@ -745,7 +749,7 @@ "description": "The provisioning state." } }, - "description": "Collector policy properties." + "description": "Collection policy properties." }, "CollectorPolicy": { "type": "object", @@ -831,28 +835,6 @@ "description": "Resource reference properties.", "x-ms-azure-resource": true }, - "ProxyResource": { - "type": "object", - "x-ms-azure-resource": true, - "description": "An azure resource object", - "properties": { - "id": { - "type": "string", - "readOnly": true, - "description": "Azure resource Id" - }, - "type": { - "type": "string", - "readOnly": true, - "description": "Azure resource type" - }, - "name": { - "type": "string", - "readOnly": true, - "description": "Azure resource name" - } - } - }, "CloudErrorBody": { "type": "object", "x-ms-external": true, @@ -1012,6 +994,7 @@ } } }, + "parameters": { "apiVersionParameter": { "name": "api-version", @@ -1022,7 +1005,11 @@ "enum": [ "2022-05-01" ], - "default": "2022-05-01" + "default": "2022-05-01", + "x-ms-enum": { + "name": "apiVersionParameter", + "modelAsString": true + } }, "resourceGroupName": { "name": "resourceGroupName", @@ -1056,4 +1043,4 @@ "x-ms-parameter-location": "method" } } -} \ No newline at end of file +} From 71c230b7b46ee11c146f9c85fd8d7231b040da83 Mon Sep 17 00:00:00 2001 From: Kunal Kulkarni Date: Thu, 12 May 2022 11:36:02 -0700 Subject: [PATCH 11/13] updated swagger --- .../preview/2021-09-01-preview/AzureTrafficCollector.json | 3 +-- .../stable/2022-05-01/AzureTrafficCollector.json | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/preview/2021-09-01-preview/AzureTrafficCollector.json b/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/preview/2021-09-01-preview/AzureTrafficCollector.json index a7078543528d..cb1e41292e4c 100644 --- a/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/preview/2021-09-01-preview/AzureTrafficCollector.json +++ b/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/preview/2021-09-01-preview/AzureTrafficCollector.json @@ -620,7 +620,7 @@ }, "allOf": [ { - "$ref": "#/definitions/Resource" + "$ref": "#/definitions/TrackedResource" } ], "description": "Azure Traffic Collector resource." @@ -994,7 +994,6 @@ } } }, - "parameters": { "apiVersionParameter": { "name": "api-version", diff --git a/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/stable/2022-05-01/AzureTrafficCollector.json b/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/stable/2022-05-01/AzureTrafficCollector.json index c2492a58846a..c3150a0c49f6 100644 --- a/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/stable/2022-05-01/AzureTrafficCollector.json +++ b/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/stable/2022-05-01/AzureTrafficCollector.json @@ -620,7 +620,7 @@ }, "allOf": [ { - "$ref": "#/definitions/Resource" + "$ref": "#/definitions/TrackedResource" } ], "description": "Azure Traffic Collector resource." @@ -994,7 +994,6 @@ } } }, - "parameters": { "apiVersionParameter": { "name": "api-version", From 9c8ce200f7b5f2c9a33bd98ddca88f5af9658a18 Mon Sep 17 00:00:00 2001 From: Kunal Kulkarni Date: Thu, 12 May 2022 11:44:23 -0700 Subject: [PATCH 12/13] updated swagger --- .../AzureTrafficCollector.json | 22 +++++++++++++++++++ .../2022-05-01/AzureTrafficCollector.json | 22 +++++++++++++++++++ 2 files changed, 44 insertions(+) diff --git a/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/preview/2021-09-01-preview/AzureTrafficCollector.json b/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/preview/2021-09-01-preview/AzureTrafficCollector.json index cb1e41292e4c..fb4035e02474 100644 --- a/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/preview/2021-09-01-preview/AzureTrafficCollector.json +++ b/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/preview/2021-09-01-preview/AzureTrafficCollector.json @@ -835,6 +835,28 @@ "description": "Resource reference properties.", "x-ms-azure-resource": true }, + "ProxyResource": { + "type": "object", + "x-ms-azure-resource": true, + "description": "An azure resource object", + "properties": { + "id": { + "type": "string", + "readOnly": true, + "description": "Azure resource Id" + }, + "type": { + "type": "string", + "readOnly": true, + "description": "Azure resource type" + }, + "name": { + "type": "string", + "readOnly": true, + "description": "Azure resource name" + } + } + }, "CloudErrorBody": { "type": "object", "x-ms-external": true, diff --git a/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/stable/2022-05-01/AzureTrafficCollector.json b/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/stable/2022-05-01/AzureTrafficCollector.json index c3150a0c49f6..31a255663fbb 100644 --- a/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/stable/2022-05-01/AzureTrafficCollector.json +++ b/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/stable/2022-05-01/AzureTrafficCollector.json @@ -835,6 +835,28 @@ "description": "Resource reference properties.", "x-ms-azure-resource": true }, + "ProxyResource": { + "type": "object", + "x-ms-azure-resource": true, + "description": "An azure resource object", + "properties": { + "id": { + "type": "string", + "readOnly": true, + "description": "Azure resource Id" + }, + "type": { + "type": "string", + "readOnly": true, + "description": "Azure resource type" + }, + "name": { + "type": "string", + "readOnly": true, + "description": "Azure resource name" + } + } + }, "CloudErrorBody": { "type": "object", "x-ms-external": true, From 4f63bf4f2d80215c5d8628470ac9e49bf3800f78 Mon Sep 17 00:00:00 2001 From: Kunal Kulkarni Date: Thu, 12 May 2022 12:04:05 -0700 Subject: [PATCH 13/13] updated swagger --- .../preview/2021-09-01-preview/AzureTrafficCollector.json | 5 +++++ .../stable/2022-05-01/AzureTrafficCollector.json | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/preview/2021-09-01-preview/AzureTrafficCollector.json b/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/preview/2021-09-01-preview/AzureTrafficCollector.json index fb4035e02474..3ecbe91d20b2 100644 --- a/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/preview/2021-09-01-preview/AzureTrafficCollector.json +++ b/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/preview/2021-09-01-preview/AzureTrafficCollector.json @@ -679,6 +679,7 @@ "items": { "$ref": "#/definitions/EmissionPolicyDestination" }, + "x-ms-identifiers": [], "description": "Emission policy destinations." } }, @@ -724,6 +725,7 @@ "items": { "$ref": "#/definitions/IngestionSourcesPropertiesFormat" }, + "x-ms-identifiers": [], "description": "Ingestion Sources." } }, @@ -741,6 +743,7 @@ "items": { "$ref": "#/definitions/EmissionPoliciesPropertiesFormat" }, + "x-ms-identifiers": [], "description": "Emission policies." }, "provisioningState": { @@ -878,6 +881,7 @@ "items": { "$ref": "#/definitions/CloudErrorBody" }, + "x-ms-identifiers": [], "description": "A list of additional details about the error." } }, @@ -918,6 +922,7 @@ "items": { "$ref": "#/definitions/Operation" }, + "x-ms-identifiers": [], "description": "List of operations supported by the Azure Traffic Collector resource provider." }, "nextLink": { diff --git a/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/stable/2022-05-01/AzureTrafficCollector.json b/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/stable/2022-05-01/AzureTrafficCollector.json index 31a255663fbb..e89dffc440ea 100644 --- a/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/stable/2022-05-01/AzureTrafficCollector.json +++ b/specification/networkfunction/resource-manager/Microsoft.NetworkFunction/stable/2022-05-01/AzureTrafficCollector.json @@ -679,6 +679,7 @@ "items": { "$ref": "#/definitions/EmissionPolicyDestination" }, + "x-ms-identifiers": [], "description": "Emission policy destinations." } }, @@ -724,6 +725,7 @@ "items": { "$ref": "#/definitions/IngestionSourcesPropertiesFormat" }, + "x-ms-identifiers": [], "description": "Ingestion Sources." } }, @@ -741,6 +743,7 @@ "items": { "$ref": "#/definitions/EmissionPoliciesPropertiesFormat" }, + "x-ms-identifiers": [], "description": "Emission policies." }, "provisioningState": { @@ -878,6 +881,7 @@ "items": { "$ref": "#/definitions/CloudErrorBody" }, + "x-ms-identifiers": [], "description": "A list of additional details about the error." } }, @@ -918,6 +922,7 @@ "items": { "$ref": "#/definitions/Operation" }, + "x-ms-identifiers": [], "description": "List of operations supported by the Azure Traffic Collector resource provider." }, "nextLink": {