diff --git a/specification/azsadmin/resource-manager/InfrastructureInsights/Microsoft.InfrastructureInsights.Admin/stable/2016-05-01/InfrastructureInsights.json b/specification/azsadmin/resource-manager/InfrastructureInsights/Microsoft.InfrastructureInsights.Admin/stable/2016-05-01/InfrastructureInsights.json deleted file mode 100644 index 5a7a7354e9b3..000000000000 --- a/specification/azsadmin/resource-manager/InfrastructureInsights/Microsoft.InfrastructureInsights.Admin/stable/2016-05-01/InfrastructureInsights.json +++ /dev/null @@ -1,241 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "version": "2016-05-01", - "title": "InfrastructureInsightsManagementClient", - "description": "The Admin Infrastructure Insights Management Client." - }, - "host": "adminmanagement.local.azurestack.external", - "schemes": [ - "https" - ], - "paths": {}, - "definitions": { - "Dictionary": { - "description": "dictionary", - "type": "object", - "additionalProperties": { - "type": "string" - } - }, - "BaseHealth": { - "description": "Models the base properties for health resource.", - "properties": { - "alertSummary": { - "description": "Gets or sets the alert summary.", - "$ref": "#/definitions/AlertSummary" - }, - "healthState": { - "description": "Gets or sets the health status.", - "type": "string" - }, - "namespace": { - "description": "Gets or sets the name space.", - "type": "string" - }, - "registrationId": { - "description": "Gets or sets the registration id.", - "type": "string" - }, - "routePrefix": { - "description": "Gets or sets the route prefix.", - "type": "string" - } - } - }, - "Resource": { - "description": "Base Resource Object", - "type": "object", - "properties": { - "id": { - "description": "URI of the resource.", - "type": "string" - }, - "name": { - "readOnly": true, - "description": "Name of the resource.", - "type": "string" - }, - "type": { - "readOnly": true, - "description": "Type of resource.", - "type": "string" - }, - "location": { - "readOnly": true, - "description": "Location where resource is location.", - "type": "string" - }, - "tags": { - "readOnly": true, - "description": "List of key value pairs.", - "type": "object", - "additionalProperties": { - "type": "string" - } - } - }, - "x-ms-azure-resource": true - }, - "AlertSummary": { - "description": "Summary of the alerts.", - "properties": { - "criticalAlertCount": { - "description": "How many critical alerts this service has.", - "type": "integer" - }, - "warningAlertCount": { - "description": "How many warning alerts this service has.", - "type": "integer" - } - } - }, - "Metrics": { - "description": "Metrics for a source.", - "properties": { - "name": { - "description": "Name of the usage metric.", - "type": "string" - }, - "maCounterName": { - "description": "Name of the usage metric.", - "type": "string" - }, - "observedTimestamp": { - "description": "Name of the usage metric.", - "type": "string", - "format": "date-time" - }, - "sourceType": { - "description": "Name of the usage metric.", - "type": "string" - }, - "sourceName": { - "description": "Source of the metric.", - "$ref": "#/definitions/MetricsSourceType" - }, - "unit": { - "description": "Unit for the metric.", - "$ref": "#/definitions/MetricsUnit" - }, - "value": { - "description": "Name of the usage metric.", - "type": "number", - "format": "double" - } - } - }, - "MetricsSourceType": { - "type": "string", - "description": "What created the metric.", - "enum": [ - "PhysicalNode", - "VirtualMachine", - "ResourceProvider" - ], - "x-ms-enum": { - "name": "MetricsSourceType", - "modelAsString": true - } - }, - "MetricsUnit": { - "type": "string", - "description": "The unit of the metric.", - "enum": [ - "One", - "Percentage", - "B", - "KB", - "MB", - "GB", - "TB" - ], - "x-ms-enum": { - "name": "MetricsUnit", - "modelAsString": true - } - }, - "UsageMetrics": { - "description": "Metrics of resource usage.", - "properties": { - "name": { - "description": "Name of the usage metric.", - "type": "string" - }, - "metricsValue": { - "description": "List of usage metrics.", - "type": "array", - "items": { - "$ref": "#/definitions/Metrics" - } - } - } - } - }, - "parameters": { - "SubscriptionIdParameter": { - "name": "subscriptionId", - "in": "path", - "description": "Subscription credentials which uniquely identify Microsoft Azure subscription.The subscription ID forms part of the URI for every service call.", - "required": true, - "type": "string" - }, - "ApiVersionParameter": { - "name": "api-version", - "in": "query", - "description": "Client Api Version.", - "required": true, - "type": "string", - "default": "2016-05-01" - }, - "FilterParameter": { - "description": "OData filter parameter.", - "name": "$filter", - "in": "query", - "type": "string", - "x-ms-parameter-location": "method" - }, - "LocationParameter": { - "description": "Location name.", - "name": "location", - "in": "path", - "required": true, - "type": "string", - "x-ms-parameter-location": "method" - }, - "ResourceRegistrationIdParameter": { - "description": "Resource registration id.", - "name": "resourceRegistrationId", - "type": "string", - "required": true, - "in": "path", - "x-ms-parameter-location": "method" - }, - "ServiceRegistrationIdParameter": { - "description": "Service registration id.", - "name": "serviceRegistrationId", - "type": "string", - "required": true, - "in": "path", - "x-ms-parameter-location": "method" - } - }, - "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" - } - } - }, - "security": [ - { - "azure_auth": [ - "user_impersonation" - ] - } - ] -} \ No newline at end of file diff --git a/specification/azsadmin/resource-manager/InfrastructureInsights/readme.md b/specification/azsadmin/resource-manager/InfrastructureInsights/readme.md deleted file mode 100644 index fdf8fa6891ad..000000000000 --- a/specification/azsadmin/resource-manager/InfrastructureInsights/readme.md +++ /dev/null @@ -1,126 +0,0 @@ -# InfrastructureInsights Admin - -> see https://aka.ms/autorest - -This is the AutoRest configuration file for InfrastructureInsights Admin. - ---- -## Getting Started -To build the SDK for InfrastructureInsights Admin, simply [Install AutoRest](https://aka.ms/autorest/install) and in this folder, run: - -> `autorest` - -To see additional help and options, run: - -> `autorest --help` ---- - -## Configuration - -### Basic Information -These are the global settings for the InfrastructureInsights API. - -``` yaml -title: InfrastructureInsightsAdminClient -description: InfrastructureInsights Admin Client -openapi-type: arm -tag: package-2016-05-01 -``` - -### Tag: package-2016-05-01 - -These settings apply only when `--tag=package-2016-05-01` is specified on the command line. - -``` yaml $(tag) == 'package-2016-05-01' -input-file: - - Microsoft.InfrastructureInsights.Admin/stable/2016-05-01/InfrastructureInsights.json - - Microsoft.InfrastructureInsights.Admin/stable/2016-05-01/Alert.json - - Microsoft.InfrastructureInsights.Admin/stable/2016-05-01/RegionHealth.json - - Microsoft.InfrastructureInsights.Admin/stable/2016-05-01/ResourceHealth.json - - Microsoft.InfrastructureInsights.Admin/stable/2016-05-01/ServiceHealth.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-go -``` - -## 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 - namespace: Microsoft.AzureStack.Management.InfrastructureInsights.Admin - payload-flattening-threshold: 1 - output-folder: $(csharp-sdks-folder)/InfrastructureInsights/InfrastructureInsights.Admin/Generated - clear-output-folder: true -``` - -## Python - -These settings apply only when `--python` is specified on the command line. - -``` yaml $(python) -python: - # override the default output folder - output-folder: $(output-folder)/python - license-header: MICROSOFT_MIT_NO_VERSION - payload-flattening-threshold: 2 -``` - -### Tag: package-2016-05-01 and python - -These settings apply only when `--tag=package-2016-05-01 --python` is specified on the command line. - -``` yaml $(tag) == 'package-2016-05-01' && $(python) -namespace: azure.mgmt.infrastructure_insights.admin.v2016_05_01 -``` - -## Go - -These settings apply only when `--go` is specified on the command line. - -``` yaml $(go) -go: - license-header: MICROSOFT_APACHE_NO_VERSION - clear-output-folder: true - namespace: infrastructureinsights -``` - -### Tag: package-2016-05-01 and go - -These settings apply only when `--tag=package-2016-05-01 --go` is specified on the command line. -Please also specify `--go-sdk-folder=`. - -``` yaml $(tag)=='package-2016-05-01' && $(go) -output-folder: $(go-sdk-folder)/services/azsadmin/mgmt/2016-05-01/infrastructureinsights -``` - - -## Java - -These settings apply only when `--java` is specified on the command line. -Please also specify `--azure-libraries-for-java-folder=`. - -``` yaml $(java) -java: - azure-arm: true - fluent: true - namespace: com.microsoft.azure.management.azsadmin.infrastructureinsights - license-header: MICROSOFT_MIT_NO_CODEGEN - payload-flattening-threshold: 1 - output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-azsadmin/infrastructureinsights -``` diff --git a/specification/azsadmin/resource-manager/InfrastructureInsights/Microsoft.InfrastructureInsights.Admin/stable/2016-05-01/Alert.json b/specification/azsadmin/resource-manager/infrastructureinsights/Microsoft.InfrastructureInsights.Admin/preview/2016-05-01/Alert.json similarity index 69% rename from specification/azsadmin/resource-manager/InfrastructureInsights/Microsoft.InfrastructureInsights.Admin/stable/2016-05-01/Alert.json rename to specification/azsadmin/resource-manager/infrastructureinsights/Microsoft.InfrastructureInsights.Admin/preview/2016-05-01/Alert.json index f7c3247abc14..4833a35d70a7 100644 --- a/specification/azsadmin/resource-manager/InfrastructureInsights/Microsoft.InfrastructureInsights.Admin/stable/2016-05-01/Alert.json +++ b/specification/azsadmin/resource-manager/infrastructureinsights/Microsoft.InfrastructureInsights.Admin/preview/2016-05-01/Alert.json @@ -10,22 +10,25 @@ "https" ], "paths": { - "/subscriptions/{subscriptionId}/resourceGroups/System.{location}/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/{location}/alerts": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/{location}/alerts": { "get": { "x-ms-examples": { - "List all alerts": { - "$ref": "./examples/Alert/AlertListOperation_example.json" + "Returns the list of all alerts in a given region.": { + "$ref": "./examples/Alert/List.json" } }, "tags": [ "Alerts" ], - "description": "Returns the list of all alerts in a given location.", + "description": "Returns the list of all alerts in a given region.", "operationId": "Alerts_List", "parameters": [ { "$ref": "InfrastructureInsights.json#/parameters/SubscriptionIdParameter" }, + { + "$ref": "InfrastructureInsights.json#/parameters/ResourceGroupParameter" + }, { "$ref": "InfrastructureInsights.json#/parameters/LocationParameter" }, @@ -56,22 +59,25 @@ ] } }, - "/subscriptions/{subscriptionId}/resourceGroups/System.{location}/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/{location}/alerts/{alertName}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/{location}/alerts/{alertName}": { "get": { "x-ms-examples": { - "Get an alert": { - "$ref": "./examples/Alert/AlertGetOperation_example.json" + "Returns the requested an alert.": { + "$ref": "./examples/Alert/Get.json" } }, "tags": [ "Alerts" ], - "description": "Get an alert.", + "description": "Returns the requested an alert.", "operationId": "Alerts_Get", "parameters": [ { "$ref": "InfrastructureInsights.json#/parameters/SubscriptionIdParameter" }, + { + "$ref": "InfrastructureInsights.json#/parameters/ResourceGroupParameter" + }, { "$ref": "InfrastructureInsights.json#/parameters/LocationParameter" }, @@ -99,19 +105,22 @@ }, "put": { "x-ms-examples": { - "Close an alert": { - "$ref": "./examples/Alert/AlertCloseOperation_example.json" + "Closes the given alert.": { + "$ref": "./examples/Alert/Close.json" } }, "tags": [ "Alerts" ], - "description": "Close an alert.", + "description": "Closes the given alert.", "operationId": "Alerts_Close", "parameters": [ { "$ref": "InfrastructureInsights.json#/parameters/SubscriptionIdParameter" }, + { + "$ref": "InfrastructureInsights.json#/parameters/ResourceGroupParameter" + }, { "$ref": "InfrastructureInsights.json#/parameters/LocationParameter" }, @@ -147,56 +156,57 @@ }, "definitions": { "Alert": { - "description": "This class models an alert resource.", + "description": "This object represents an alert resource.", + "type": "object", "properties": { "properties": { - "description": "Holds all information related to Alerts", + "description": "Contains information related to alerts.", "$ref": "#/definitions/AlertModel", "x-ms-client-flatten": true } }, "allOf": [ { - "$ref": "InfrastructureInsights.json#/definitions/Resource" + "$ref": "InfrastructureInsights.json#/definitions/TrackedResource" } ] }, "AlertModel": { - "description": "Holds Alert data", + "description": "Contains alert data.", "properties": { "closedTimestamp": { - "description": "Gets or sets the closed timestamp of the alert.", + "description": "Timestamp when the alert was closed.", "type": "string" }, "createdTimestamp": { - "description": "Gets or sets the created timestamp of the alert.", + "description": "Timestamp when the alert was created.", "type": "string" }, "description": { - "description": "Gets or sets the description of the alert.", + "description": "Description of the alert.", "type": "array", "items": { "$ref": "InfrastructureInsights.json#/definitions/Dictionary" } }, "faultId": { - "description": "Gets or sets the fault id of the alert.", + "description": "Gets or sets the fault ID of the alert.", "type": "string" }, "alertId": { - "description": "Gets or sets the id of the alert.", + "description": "Gets or sets the ID of the alert.", "type": "string" }, "faultTypeId": { - "description": "Gets or sets the fault type id of the alert.", + "description": "Gets or sets the fault type ID of the alert.", "type": "string" }, "lastUpdatedTimestamp": { - "description": "Gets or sets last updated timestamp of the alert.", + "description": "Timestamp when the alert was last updated.", "type": "string" }, "alertProperties": { - "description": "Gets or sets properties of the alert.", + "description": "Properties of the alert.", "type": "object", "additionalProperties": { "type": "string" @@ -210,52 +220,52 @@ } }, "resourceRegistrationId": { - "description": "Gets or sets the registration id of the atomic component the alert belongs to. This is null if not associated with a resource.", + "description": "Gets or sets the registration ID of the resource associated with the alert. If the alert is not associated with a resource, the resource registration ID is null.", "type": "string" }, "resourceProviderRegistrationId": { - "description": "Gets or sets the registration id of the service the alert belongs to.", + "description": "Gets or sets the registration ID of the service the alert belongs to.", "type": "string" }, "severity": { - "description": "Gets or sets the severity of the alert.", + "description": "Severity of the alert.", "type": "string" }, "state": { - "description": "Gets or sets the state of the alert.", + "description": "State of the alert.", "type": "string" }, "title": { - "description": "Gets or sets the ResourceId for the impacted item.", + "description": "Gets or sets the Resource ID for the impacted item.", "type": "string" }, "impactedResourceId": { - "description": "Gets or sets the ResourceId for the impacted item.", + "description": "Gets or sets the Resource ID for the impacted item.", "type": "string" }, "impactedResourceDisplayName": { - "description": "Gets or sets the display name for the impacted item.", + "description": "Display name for the impacted item.", "type": "string" }, "closedByUserAlias": { - "description": "Gets or sets the user alias who closed the alert.", + "description": "User alias who closed the alert.", "type": "string" } } }, "AlertList": { - "description": "A pageable list of Alerts", + "description": "A pageable list of alerts", "properties": { "value": { "type": "array", "items": { "$ref": "#/definitions/Alert" }, - "description": "Holds all alerts in this page." + "description": "List of alerts." }, "nextLink": { "type": "string", - "description": "Points to the next page." + "description": "URI to the next page." } } } @@ -269,47 +279,6 @@ "in": "path", "x-ms-parameter-location": "method" }, - "RetentionPeriodInDaysBodyParameter": { - "name": "retentionPeriodInDays", - "description": "How long alerts should exist before deletion.", - "schema": { - "type": "integer", - "format": "int32" - }, - "required": true, - "in": "body", - "x-ms-parameter-location": "method" - }, - "ResourceProviderRegistrationIdBodyParameter": { - "description": "A resource provider registration id.", - "name": "resourceProviderRegistrationId", - "schema": { - "type": "string" - }, - "required": true, - "in": "body", - "x-ms-parameter-location": "method" - }, - "ResourceRegistrationIdBodyParameter": { - "description": "A resource provider id.", - "name": "resourceRegistrationId", - "schema": { - "type": "string" - }, - "required": true, - "in": "body", - "x-ms-parameter-location": "method" - }, - "HeartbeatMachineNameBodyParameter": { - "description": "Name of a heartbeat machine.", - "name": "heartbeatMachineName", - "schema": { - "type": "string" - }, - "required": true, - "in": "body", - "x-ms-parameter-location": "method" - }, "UserParameter": { "description": "The username used to perform the operation.", "name": "user", @@ -319,7 +288,7 @@ "x-ms-parameter-location": "method" }, "AlertParameter": { - "description": "Updated Alert Parameter.", + "description": "Updated alert parameter.", "name": "alert", "schema": { "$ref": "#/definitions/Alert" @@ -334,7 +303,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "Azure Active Directory OAuth2 Flow", + "description": "Authorization uses an Azure Active Directory OAuth2 flow.", "scopes": { "user_impersonation": "impersonate your user account" } @@ -347,4 +316,4 @@ ] } ] -} \ No newline at end of file +} diff --git a/specification/azsadmin/resource-manager/infrastructureinsights/Microsoft.InfrastructureInsights.Admin/preview/2016-05-01/InfrastructureInsights.json b/specification/azsadmin/resource-manager/infrastructureinsights/Microsoft.InfrastructureInsights.Admin/preview/2016-05-01/InfrastructureInsights.json new file mode 100644 index 000000000000..7f205e97a213 --- /dev/null +++ b/specification/azsadmin/resource-manager/infrastructureinsights/Microsoft.InfrastructureInsights.Admin/preview/2016-05-01/InfrastructureInsights.json @@ -0,0 +1,353 @@ +{ + "swagger": "2.0", + "info": { + "version": "2016-05-01", + "title": "InfrastructureInsightsManagementClient", + "description": "The Admin Infrastructure Insights Management Client." + }, + "host": "adminmanagement.local.azurestack.external", + "schemes": [ + "https" + ], + "paths": { + "/providers/Microsoft.InfrastructureInsights.Admin/operations": { + "get": { + "x-ms-examples": { + "Returns a list of support REST operations.": { + "$ref": "./examples/Operations/List.json" + } + }, + "description": "Returns a list of support REST operations.", + "tags": [ + "InfrastructureInsights" + ], + "operationId": "Operations_List", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/OperationList" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + } + } + }, + "definitions": { + "Dictionary": { + "description": "Dictionary of string key-value pairs.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "BaseHealth": { + "description": "Models the base properties for health resource.", + "properties": { + "alertSummary": { + "description": "Alert summary.", + "$ref": "#/definitions/AlertSummary" + }, + "healthState": { + "description": "Health state.", + "type": "string" + }, + "namespace": { + "description": "Namespace of the health resource.", + "type": "string" + }, + "registrationId": { + "description": "Registration ID.", + "type": "string" + }, + "routePrefix": { + "description": "Route prefix.", + "type": "string" + } + } + }, + "Resource": { + "description": "The core properties of ARM resources", + "properties": { + "id": { + "readOnly": true, + "type": "string", + "description": "Fully qualified resource Id for the resource" + }, + "name": { + "readOnly": true, + "type": "string", + "description": "The name of the resource" + }, + "type": { + "readOnly": true, + "type": "string", + "description": "The type of the resource." + } + }, + "x-ms-azure-resource": true + }, + "TrackedResource": { + "description": "The resource model definition for a ARM tracked top level resource", + "properties": { + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "x-ms-mutability": [ + "read", + "create", + "update" + ], + "description": "Resource tags." + }, + "location": { + "type": "string", + "x-ms-mutability": [ + "read", + "create" + ], + "description": "The Azure Region where the resource lives" + } + }, + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ] + }, + "AlertSummary": { + "description": "Summary of the alerts.", + "properties": { + "criticalAlertCount": { + "description": "The number of critical alerts for the service.", + "type": "integer" + }, + "warningAlertCount": { + "description": "The number of warning alerts for the service.", + "type": "integer" + } + } + }, + "Metrics": { + "description": "Metrics for a source.", + "properties": { + "name": { + "description": "Name of the usage metric.", + "type": "string" + }, + "maCounterName": { + "description": "Name of the counter.", + "type": "string" + }, + "observedTimestamp": { + "description": "Time counter was observed.", + "type": "string", + "format": "date-time" + }, + "sourceType": { + "description": "Type of the source.", + "type": "string" + }, + "sourceName": { + "description": "Name of the source.", + "$ref": "#/definitions/MetricsSourceType" + }, + "unit": { + "description": "Unit for the metric.", + "$ref": "#/definitions/MetricsUnit" + }, + "value": { + "description": "Name of the usage metric.", + "type": "number", + "format": "double" + } + } + }, + "MetricsSourceType": { + "type": "string", + "description": "The origin of the metric.", + "enum": [ + "PhysicalNode", + "VirtualMachine", + "ResourceProvider" + ], + "x-ms-enum": { + "name": "MetricsSourceType", + "modelAsString": true + } + }, + "MetricsUnit": { + "type": "string", + "description": "The unit of the metric.", + "enum": [ + "One", + "Percentage", + "B", + "KB", + "MB", + "GB", + "TB" + ], + "x-ms-enum": { + "name": "MetricsUnit", + "modelAsString": true + } + }, + "UsageMetrics": { + "description": "Metrics of resource usage.", + "properties": { + "name": { + "description": "Name of the usage metric.", + "type": "string" + }, + "metricsValue": { + "description": "List of usage metrics.", + "type": "array", + "items": { + "$ref": "#/definitions/Metrics" + } + } + } + }, + "Operation": { + "description": "Describes the supported REST operation.", + "properties": { + "name": { + "description": "The name of the operation performed on the object. The name should match the action name that appears in RBAC or the event service.", + "type": "string" + }, + "display": { + "description": "Contains the localized display information for this particular operation or action.", + "$ref": "#/definitions/Display" + } + } + }, + "Display": { + "description": "Contains the localized display information for this particular operation / action.", + "properties": { + "provider": { + "description": "The localized, friendly version of the resource provider name. The provider name is expected to include the name of the publisher or company responsible. The provider name format should use title case and begin with \"Microsoft\" for first-party services. For example, the provider name may be\"Microsoft Monitoring Insights\" or \"Microsoft Compute\".", + "type": "string" + }, + "resource": { + "description": "The localized, friendly version of the resource type related to this action or operation; the resource type should match the public documentation for the resource provider.", + "type": "string" + }, + "operation": { + "description": "The localized, friendly name for the operation. Use the name as it will be displayed to the user.", + "type": "string" + }, + "description": { + "description": "The localized, friendly description for the operation. The description will be displayed to the user. It should be thorough and concise for used in both tooltips and detailed views.", + "type": "string" + } + } + }, + "OperationList": { + "description": "List of Operations", + "properties": { + "value": { + "description": "Array of operations", + "type": "array", + "items": { + "$ref": "#/definitions/Operation" + } + }, + "nextLink": { + "description": "URI to the next page of operations.", + "type": "string" + } + } + } + }, + "parameters": { + "SubscriptionIdParameter": { + "name": "subscriptionId", + "in": "path", + "description": "Subscription credentials that uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", + "required": true, + "type": "string" + }, + "ApiVersionParameter": { + "name": "api-version", + "in": "query", + "description": "Client API Version.", + "required": true, + "type": "string", + "default": "2016-05-01" + }, + "FilterParameter": { + "description": "OData filter parameter.", + "name": "$filter", + "in": "query", + "type": "string", + "x-ms-parameter-location": "method" + }, + "LocationParameter": { + "description": "Name of the region", + "name": "location", + "type": "string", + "required": true, + "in": "path", + "x-ms-parameter-location": "method" + }, + "ResourceGroupParameter": { + "description": "The name of the resource group.", + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "ResourceRegistrationIdParameter": { + "description": "Resource registration ID.", + "name": "resourceRegistrationId", + "type": "string", + "required": true, + "in": "path", + "x-ms-parameter-location": "method" + }, + "ServiceRegistrationIdParameter": { + "description": "Service registration ID.", + "name": "serviceRegistrationId", + "type": "string", + "required": true, + "in": "path", + "x-ms-parameter-location": "method" + } + }, + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Authorization uses an Azure Active Directory OAuth2 flow.", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ] +} diff --git a/specification/azsadmin/resource-manager/InfrastructureInsights/Microsoft.InfrastructureInsights.Admin/stable/2016-05-01/RegionHealth.json b/specification/azsadmin/resource-manager/infrastructureinsights/Microsoft.InfrastructureInsights.Admin/preview/2016-05-01/RegionHealth.json similarity index 78% rename from specification/azsadmin/resource-manager/InfrastructureInsights/Microsoft.InfrastructureInsights.Admin/stable/2016-05-01/RegionHealth.json rename to specification/azsadmin/resource-manager/infrastructureinsights/Microsoft.InfrastructureInsights.Admin/preview/2016-05-01/RegionHealth.json index 893c3eed58a9..bd43b521b0f2 100644 --- a/specification/azsadmin/resource-manager/InfrastructureInsights/Microsoft.InfrastructureInsights.Admin/stable/2016-05-01/RegionHealth.json +++ b/specification/azsadmin/resource-manager/infrastructureinsights/Microsoft.InfrastructureInsights.Admin/preview/2016-05-01/RegionHealth.json @@ -10,24 +10,24 @@ "https" ], "paths": { - "/subscriptions/{subscriptionId}/resourceGroups/System.{location}/providers/Microsoft.InfrastructureInsights.Admin/regionHealths": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.InfrastructureInsights.Admin/regionHealths": { "get": { "x-ms-examples": { - "Get the list of all health items for the region": { - "$ref": "./examples/RegionHealth/RegionHealthListOperation_example.json" + "Returns the list of all health status for the region.": { + "$ref": "./examples/RegionHealth/List.json" } }, "tags": [ "RegionHealths" ], - "description": "Get the list of all regions health status.", + "description": "Returns the list of all health status for the region.", "operationId": "RegionHealths_List", "parameters": [ { "$ref": "InfrastructureInsights.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "InfrastructureInsights.json#/parameters/LocationParameter" + "$ref": "InfrastructureInsights.json#/parameters/ResourceGroupParameter" }, { "$ref": "InfrastructureInsights.json#/parameters/ApiVersionParameter" @@ -56,27 +56,27 @@ ] } }, - "/subscriptions/{subscriptionId}/resourceGroups/System.{location}/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/{region}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/{location}": { "get": { "x-ms-examples": { - "Get the health status of a region": { - "$ref": "./examples/RegionHealth/RegionHealthGetOperation_example.json" + "Returns the requested health status of a region.": { + "$ref": "./examples/RegionHealth/Get.json" } }, "tags": [ "RegionHealths" ], - "description": "Get health status of a region.", + "description": "Returns the requested health status of a region.", "operationId": "RegionHealths_Get", "parameters": [ { "$ref": "InfrastructureInsights.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "InfrastructureInsights.json#/parameters/LocationParameter" + "$ref": "InfrastructureInsights.json#/parameters/ResourceGroupParameter" }, { - "$ref": "#/parameters/RegionParameter" + "$ref": "InfrastructureInsights.json#/parameters/LocationParameter" }, { "$ref": "InfrastructureInsights.json#/parameters/ApiVersionParameter" @@ -101,29 +101,29 @@ }, "definitions": { "RegionHealth": { - "description": "Contains information related to a regions health.", + "description": "Contains information related to the health of a region.", "properties": { "properties": { - "description": "Contains information related to a regions health.", + "description": "Contains information related to the health of a region.", "$ref": "#/definitions/RegionHealthModel", "x-ms-client-flatten": true } }, "allOf": [ { - "$ref": "InfrastructureInsights.json#/definitions/Resource" + "$ref": "InfrastructureInsights.json#/definitions/TrackedResource" } ] }, "RegionHealthModel": { - "description": "Contains information related to a regions health.", + "description": "Contains information related to the health of a region.", "properties": { "alertSummary": { "description": "Summary of alerts.", "$ref": "InfrastructureInsights.json#/definitions/AlertSummary" }, "usageMetrics": { - "description": "List of usage metrics for this region.", + "description": "List of usage metrics for the region.", "type": "array", "items": { "$ref": "InfrastructureInsights.json#/definitions/UsageMetrics" @@ -148,22 +148,13 @@ } } }, - "parameters": { - "RegionParameter": { - "description": "Name of the region", - "name": "region", - "type": "string", - "required": true, - "in": "path", - "x-ms-parameter-location": "method" - } - }, + "parameters": {}, "securityDefinitions": { "azure_auth": { "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "Azure Active Directory OAuth2 Flow", + "description": "Authorization uses an Azure Active Directory OAuth2 flow.", "scopes": { "user_impersonation": "impersonate your user account" } @@ -176,4 +167,4 @@ ] } ] -} \ No newline at end of file +} diff --git a/specification/azsadmin/resource-manager/InfrastructureInsights/Microsoft.InfrastructureInsights.Admin/stable/2016-05-01/ResourceHealth.json b/specification/azsadmin/resource-manager/infrastructureinsights/Microsoft.InfrastructureInsights.Admin/preview/2016-05-01/ResourceHealth.json similarity index 76% rename from specification/azsadmin/resource-manager/InfrastructureInsights/Microsoft.InfrastructureInsights.Admin/stable/2016-05-01/ResourceHealth.json rename to specification/azsadmin/resource-manager/infrastructureinsights/Microsoft.InfrastructureInsights.Admin/preview/2016-05-01/ResourceHealth.json index 5dff4125af87..7cb614bd38b9 100644 --- a/specification/azsadmin/resource-manager/InfrastructureInsights/Microsoft.InfrastructureInsights.Admin/stable/2016-05-01/ResourceHealth.json +++ b/specification/azsadmin/resource-manager/infrastructureinsights/Microsoft.InfrastructureInsights.Admin/preview/2016-05-01/ResourceHealth.json @@ -10,22 +10,25 @@ "https" ], "paths": { - "/subscriptions/{subscriptionId}/resourceGroups/System.{location}/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/{location}/serviceHealths/{serviceRegistrationId}/resourceHealths": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/{location}/serviceHealths/{serviceRegistrationId}/resourceHealths": { "get": { "x-ms-examples": { - "Get a list of resource health items": { - "$ref": "./examples/ResourceHealth/ResourceHealthListOperation_example.json" + "Returns a list of each resource's health under a service.": { + "$ref": "./examples/ResourceHealth/List.json" } }, "tags": [ "Resources" ], - "description": "Get a list of resources?.", + "description": "Returns a list of each resource's health under a service.", "operationId": "ResourceHealths_List", "parameters": [ { "$ref": "InfrastructureInsights.json#/parameters/SubscriptionIdParameter" }, + { + "$ref": "InfrastructureInsights.json#/parameters/ResourceGroupParameter" + }, { "$ref": "InfrastructureInsights.json#/parameters/LocationParameter" }, @@ -59,22 +62,25 @@ ] } }, - "/subscriptions/{subscriptionId}/resourceGroups/System.{location}/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/{location}/serviceHealths/{serviceRegistrationId}/resourceHealths/{resourceRegistrationId}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/{location}/serviceHealths/{serviceRegistrationId}/resourceHealths/{resourceRegistrationId}": { "get": { "x-ms-examples": { - "Get health information about a resource": { - "$ref": "./examples/ResourceHealth/ResourceHealthGetOperation_example.json" + "Returns the requested health information about a resource.": { + "$ref": "./examples/ResourceHealth/Get.json" } }, "tags": [ "Resources" ], - "description": "Get health information about a resources.", + "description": "Returns the requested health information about a resource.", "operationId": "ResourceHealths_Get", "parameters": [ { "$ref": "InfrastructureInsights.json#/parameters/SubscriptionIdParameter" }, + { + "$ref": "InfrastructureInsights.json#/parameters/ResourceGroupParameter" + }, { "$ref": "InfrastructureInsights.json#/parameters/LocationParameter" }, @@ -120,7 +126,7 @@ }, "allOf": [ { - "$ref": "InfrastructureInsights.json#/definitions/Resource" + "$ref": "InfrastructureInsights.json#/definitions/TrackedResource" } ] }, @@ -128,31 +134,31 @@ "description": "Health information related to a resource.", "properties": { "resourceLocation": { - "description": "Gets or sets the resource location.", + "description": "Resource location.", "type": "string" }, "resourceName": { - "description": "Gets or sets the resource name.", + "description": "Resource name.", "type": "string" }, "resourceDisplayName": { - "description": "Gets or sets the resource display name.", + "description": "Resource display name.", "type": "string" }, "resourceType": { - "description": "Gets or sets the resource type.", + "description": "Resource type.", "type": "string" }, "resourceURI": { - "description": "Gets or sets the resource uri.", + "description": "Gets or sets the resource URI.", "type": "string" }, "rpRegistrationId": { - "description": "Gets or sets the resource provider registration id.", + "description": "Gets or sets the resource provider registration ID.", "type": "string" }, "usageMetrics": { - "description": "Gets or sets the usage metrics.", + "description": "Usage metrics.", "type": "array", "items": { "$ref": "InfrastructureInsights.json#/definitions/UsageMetrics" @@ -166,10 +172,10 @@ ] }, "ResourceHealthList": { - "description": "Pageable list of resource healths.", + "description": "Pageable list of resource health objects.", "properties": { "value": { - "description": "Array of of resource healths", + "description": "List of resource health objects.", "type": "array", "items": { "$ref": "#/definitions/ResourceHealth" @@ -187,7 +193,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "Azure Active Directory OAuth2 Flow", + "description": "Authorization uses an Azure Active Directory OAuth2 flow.", "scopes": { "user_impersonation": "impersonate your user account" } @@ -200,4 +206,4 @@ ] } ] -} \ No newline at end of file +} diff --git a/specification/azsadmin/resource-manager/InfrastructureInsights/Microsoft.InfrastructureInsights.Admin/stable/2016-05-01/ServiceHealth.json b/specification/azsadmin/resource-manager/infrastructureinsights/Microsoft.InfrastructureInsights.Admin/preview/2016-05-01/ServiceHealth.json similarity index 73% rename from specification/azsadmin/resource-manager/InfrastructureInsights/Microsoft.InfrastructureInsights.Admin/stable/2016-05-01/ServiceHealth.json rename to specification/azsadmin/resource-manager/infrastructureinsights/Microsoft.InfrastructureInsights.Admin/preview/2016-05-01/ServiceHealth.json index 9d45de31cd3f..bfc33b474dce 100644 --- a/specification/azsadmin/resource-manager/InfrastructureInsights/Microsoft.InfrastructureInsights.Admin/stable/2016-05-01/ServiceHealth.json +++ b/specification/azsadmin/resource-manager/infrastructureinsights/Microsoft.InfrastructureInsights.Admin/preview/2016-05-01/ServiceHealth.json @@ -1,7 +1,7 @@ { "swagger": "2.0", "info": { - "description": "Service health operation endpoints and objects.", + "description": "Resource provider health operation endpoints and objects.", "title": "InfrastructureInsightsManagementClient", "version": "2016-05-01" }, @@ -10,22 +10,25 @@ "https" ], "paths": { - "/subscriptions/{subscriptionId}/resourceGroups/System.{location}/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/{location}/serviceHealths": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/{location}/serviceHealths": { "get": { "x-ms-examples": { - "List all services health": { - "$ref": "./examples/ServiceHealth/ServiceHealthListOperation_example.json" + "Returns the list of all resource provider health states.": { + "$ref": "./examples/ServiceHealth/List.json" } }, "tags": [ "ServiceHealths" ], - "description": "Get a list of all services health", + "description": "Returns the list of all resource provider health states.", "operationId": "ServiceHealths_List", "parameters": [ { "$ref": "InfrastructureInsights.json#/parameters/SubscriptionIdParameter" }, + { + "$ref": "InfrastructureInsights.json#/parameters/ResourceGroupParameter" + }, { "$ref": "InfrastructureInsights.json#/parameters/LocationParameter" }, @@ -56,22 +59,25 @@ ] } }, - "/subscriptions/{subscriptionId}/resourceGroups/System.{location}/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/{location}/serviceHealths/{serviceHealth}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.InfrastructureInsights.Admin/regionHealths/{location}/serviceHealths/{serviceHealth}": { "get": { "x-ms-examples": { - "Get a services health": { - "$ref": "./examples/ServiceHealth/ServiceHealthGetOperation_example.json" + "Returns the requested service health object.": { + "$ref": "./examples/ServiceHealth/Get.json" } }, "tags": [ "ServiceHealths" ], - "description": "Get a services health", + "description": "Returns the requested service health object.", "operationId": "ServiceHealths_Get", "parameters": [ { "$ref": "InfrastructureInsights.json#/parameters/SubscriptionIdParameter" }, + { + "$ref": "InfrastructureInsights.json#/parameters/ResourceGroupParameter" + }, { "$ref": "InfrastructureInsights.json#/parameters/LocationParameter" }, @@ -101,25 +107,26 @@ }, "definitions": { "ServiceHealth": { - "description": "Holds information about a services health.", + "description": "Holds information about the health of a service.", + "type": "object", "properties": { "properties": { - "description": "Holds information about a services health.", + "description": "Holds information about the health of a service.", "x-ms-client-flatten": true, "$ref": "#/definitions/ServiceHealthModel" } }, "allOf": [ { - "$ref": "InfrastructureInsights.json#/definitions/Resource" + "$ref": "InfrastructureInsights.json#/definitions/TrackedResource" } ] }, "ServiceHealthModel": { - "description": "Holds information about a services health.", + "description": "Holds information about the health of a service.", "properties": { "displayName": { - "description": "Name of the alert.", + "description": "Name of the service.", "type": "string" }, "serviceLocation": { @@ -127,7 +134,7 @@ "type": "string" }, "infraURI": { - "description": "The route prefix to the alert.", + "description": "The route prefix to the service.", "type": "string" } }, @@ -138,10 +145,10 @@ ] }, "ServiceHealthList": { - "description": "Pageable list of service health instances.", + "description": "Pageable list of service health objects.", "properties": { "value": { - "description": "Array of service health instances.", + "description": "List of service health objects.", "type": "array", "items": { "$ref": "#/definitions/ServiceHealth" @@ -169,7 +176,7 @@ "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", - "description": "Azure Active Directory OAuth2 Flow", + "description": "Authorization uses an Azure Active Directory OAuth2 flow.", "scopes": { "user_impersonation": "impersonate your user account" } @@ -182,4 +189,4 @@ ] } ] -} \ No newline at end of file +} diff --git a/specification/azsadmin/resource-manager/InfrastructureInsights/Microsoft.InfrastructureInsights.Admin/stable/2016-05-01/examples/Alert/AlertCloseOperation_example.json b/specification/azsadmin/resource-manager/infrastructureinsights/Microsoft.InfrastructureInsights.Admin/preview/2016-05-01/examples/Alert/Close.json similarity index 98% rename from specification/azsadmin/resource-manager/InfrastructureInsights/Microsoft.InfrastructureInsights.Admin/stable/2016-05-01/examples/Alert/AlertCloseOperation_example.json rename to specification/azsadmin/resource-manager/infrastructureinsights/Microsoft.InfrastructureInsights.Admin/preview/2016-05-01/examples/Alert/Close.json index b4b4cd937e07..43618f0d7582 100644 --- a/specification/azsadmin/resource-manager/InfrastructureInsights/Microsoft.InfrastructureInsights.Admin/stable/2016-05-01/examples/Alert/AlertCloseOperation_example.json +++ b/specification/azsadmin/resource-manager/infrastructureinsights/Microsoft.InfrastructureInsights.Admin/preview/2016-05-01/examples/Alert/Close.json @@ -1,6 +1,7 @@ { "parameters": { "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", + "resourceGroupName": "System.local", "location": "local", "alertName": "ca55be03-9be9-4deb-8467-e890ab1d116b", "alert": { @@ -80,4 +81,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/azsadmin/resource-manager/InfrastructureInsights/Microsoft.InfrastructureInsights.Admin/stable/2016-05-01/examples/Alert/AlertGetOperation_example.json b/specification/azsadmin/resource-manager/infrastructureinsights/Microsoft.InfrastructureInsights.Admin/preview/2016-05-01/examples/Alert/Get.json similarity index 98% rename from specification/azsadmin/resource-manager/InfrastructureInsights/Microsoft.InfrastructureInsights.Admin/stable/2016-05-01/examples/Alert/AlertGetOperation_example.json rename to specification/azsadmin/resource-manager/infrastructureinsights/Microsoft.InfrastructureInsights.Admin/preview/2016-05-01/examples/Alert/Get.json index c33dbe10e6aa..e66b7b008c45 100644 --- a/specification/azsadmin/resource-manager/InfrastructureInsights/Microsoft.InfrastructureInsights.Admin/stable/2016-05-01/examples/Alert/AlertGetOperation_example.json +++ b/specification/azsadmin/resource-manager/infrastructureinsights/Microsoft.InfrastructureInsights.Admin/preview/2016-05-01/examples/Alert/Get.json @@ -1,6 +1,7 @@ { "parameters": { "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", + "resourceGroupName": "System.local", "location": "local", "alertName": "ca55be03-9be9-4deb-8467-e890ab1d116b", "api-version": "2016-05-01" @@ -68,4 +69,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/azsadmin/resource-manager/InfrastructureInsights/Microsoft.InfrastructureInsights.Admin/stable/2016-05-01/examples/Alert/AlertListOperation_example.json b/specification/azsadmin/resource-manager/infrastructureinsights/Microsoft.InfrastructureInsights.Admin/preview/2016-05-01/examples/Alert/List.json similarity index 99% rename from specification/azsadmin/resource-manager/InfrastructureInsights/Microsoft.InfrastructureInsights.Admin/stable/2016-05-01/examples/Alert/AlertListOperation_example.json rename to specification/azsadmin/resource-manager/infrastructureinsights/Microsoft.InfrastructureInsights.Admin/preview/2016-05-01/examples/Alert/List.json index 84e9be7df957..820833eca3f7 100644 --- a/specification/azsadmin/resource-manager/InfrastructureInsights/Microsoft.InfrastructureInsights.Admin/stable/2016-05-01/examples/Alert/AlertListOperation_example.json +++ b/specification/azsadmin/resource-manager/infrastructureinsights/Microsoft.InfrastructureInsights.Admin/preview/2016-05-01/examples/Alert/List.json @@ -1,6 +1,7 @@ { "parameters": { "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", + "resourceGroupName": "System.local", "location": "local", "api-version": "2016-05-01" }, @@ -131,4 +132,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/azsadmin/resource-manager/infrastructureinsights/Microsoft.InfrastructureInsights.Admin/preview/2016-05-01/examples/Operations/List.json b/specification/azsadmin/resource-manager/infrastructureinsights/Microsoft.InfrastructureInsights.Admin/preview/2016-05-01/examples/Operations/List.json new file mode 100644 index 000000000000..dd71e3a6e9bc --- /dev/null +++ b/specification/azsadmin/resource-manager/infrastructureinsights/Microsoft.InfrastructureInsights.Admin/preview/2016-05-01/examples/Operations/List.json @@ -0,0 +1,21 @@ +{ + "parameters": { + "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", + "resourceGroupName": "System.local", + "location": "local", + "api-version": "2015-06-01-preview", + "reportedStartTime": "2017-08-01T00:00:00.00Z", + "reportedEndTime": "2017-08-02T00:00:00.00Z", + "aggregationGranularity": "", + "subscriberId": "", + "continuationToken": "" + }, + "responses": { + "200": { + "body": { + "value": [], + "nextLink": "" + } + } + } +} diff --git a/specification/azsadmin/resource-manager/InfrastructureInsights/Microsoft.InfrastructureInsights.Admin/stable/2016-05-01/examples/RegionHealth/RegionHealthGetOperation_example.json b/specification/azsadmin/resource-manager/infrastructureinsights/Microsoft.InfrastructureInsights.Admin/preview/2016-05-01/examples/RegionHealth/Get.json similarity index 98% rename from specification/azsadmin/resource-manager/InfrastructureInsights/Microsoft.InfrastructureInsights.Admin/stable/2016-05-01/examples/RegionHealth/RegionHealthGetOperation_example.json rename to specification/azsadmin/resource-manager/infrastructureinsights/Microsoft.InfrastructureInsights.Admin/preview/2016-05-01/examples/RegionHealth/Get.json index 7cbcc3e7f68f..ec3442f664c5 100644 --- a/specification/azsadmin/resource-manager/InfrastructureInsights/Microsoft.InfrastructureInsights.Admin/stable/2016-05-01/examples/RegionHealth/RegionHealthGetOperation_example.json +++ b/specification/azsadmin/resource-manager/infrastructureinsights/Microsoft.InfrastructureInsights.Admin/preview/2016-05-01/examples/RegionHealth/Get.json @@ -1,8 +1,8 @@ { "parameters": { "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", + "resourceGroupName": "System.local", "location": "local", - "region" : "local", "api-version": "2016-05-01" }, "responses": { @@ -69,4 +69,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/azsadmin/resource-manager/InfrastructureInsights/Microsoft.InfrastructureInsights.Admin/stable/2016-05-01/examples/RegionHealth/RegionHealthListOperation_example.json b/specification/azsadmin/resource-manager/infrastructureinsights/Microsoft.InfrastructureInsights.Admin/preview/2016-05-01/examples/RegionHealth/List.json similarity index 98% rename from specification/azsadmin/resource-manager/InfrastructureInsights/Microsoft.InfrastructureInsights.Admin/stable/2016-05-01/examples/RegionHealth/RegionHealthListOperation_example.json rename to specification/azsadmin/resource-manager/infrastructureinsights/Microsoft.InfrastructureInsights.Admin/preview/2016-05-01/examples/RegionHealth/List.json index caff96489358..5dc952e6369f 100644 --- a/specification/azsadmin/resource-manager/InfrastructureInsights/Microsoft.InfrastructureInsights.Admin/stable/2016-05-01/examples/RegionHealth/RegionHealthListOperation_example.json +++ b/specification/azsadmin/resource-manager/infrastructureinsights/Microsoft.InfrastructureInsights.Admin/preview/2016-05-01/examples/RegionHealth/List.json @@ -1,7 +1,7 @@ { "parameters": { "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", - "location": "local", + "resourceGroupName": "System.local", "api-version": "2016-05-01" }, "responses": { @@ -73,4 +73,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/azsadmin/resource-manager/InfrastructureInsights/Microsoft.InfrastructureInsights.Admin/stable/2016-05-01/examples/ResourceHealth/ResourceHealthGetOperation_example.json b/specification/azsadmin/resource-manager/infrastructureinsights/Microsoft.InfrastructureInsights.Admin/preview/2016-05-01/examples/ResourceHealth/Get.json similarity index 97% rename from specification/azsadmin/resource-manager/InfrastructureInsights/Microsoft.InfrastructureInsights.Admin/stable/2016-05-01/examples/ResourceHealth/ResourceHealthGetOperation_example.json rename to specification/azsadmin/resource-manager/infrastructureinsights/Microsoft.InfrastructureInsights.Admin/preview/2016-05-01/examples/ResourceHealth/Get.json index 28235242f5c5..1db744e75c9f 100644 --- a/specification/azsadmin/resource-manager/InfrastructureInsights/Microsoft.InfrastructureInsights.Admin/stable/2016-05-01/examples/ResourceHealth/ResourceHealthGetOperation_example.json +++ b/specification/azsadmin/resource-manager/infrastructureinsights/Microsoft.InfrastructureInsights.Admin/preview/2016-05-01/examples/ResourceHealth/Get.json @@ -1,6 +1,7 @@ { "parameters": { "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", + "resourceGroupName": "System.local", "location": "local", "serviceRegistrationId": "e56bc7b8-c8b5-4e25-b00c-4f951effb22c", "resourceRegistrationId": "e388fe4c-63a0-4253-9b29-6dd4bf024501", @@ -34,4 +35,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/azsadmin/resource-manager/InfrastructureInsights/Microsoft.InfrastructureInsights.Admin/stable/2016-05-01/examples/ResourceHealth/ResourceHealthListOperation_example.json b/specification/azsadmin/resource-manager/infrastructureinsights/Microsoft.InfrastructureInsights.Admin/preview/2016-05-01/examples/ResourceHealth/List.json similarity index 99% rename from specification/azsadmin/resource-manager/InfrastructureInsights/Microsoft.InfrastructureInsights.Admin/stable/2016-05-01/examples/ResourceHealth/ResourceHealthListOperation_example.json rename to specification/azsadmin/resource-manager/infrastructureinsights/Microsoft.InfrastructureInsights.Admin/preview/2016-05-01/examples/ResourceHealth/List.json index 7286612a5bba..38f6faa69b4b 100644 --- a/specification/azsadmin/resource-manager/InfrastructureInsights/Microsoft.InfrastructureInsights.Admin/stable/2016-05-01/examples/ResourceHealth/ResourceHealthListOperation_example.json +++ b/specification/azsadmin/resource-manager/infrastructureinsights/Microsoft.InfrastructureInsights.Admin/preview/2016-05-01/examples/ResourceHealth/List.json @@ -1,6 +1,7 @@ { "parameters": { "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", + "resourceGroupName": "System.local", "location": "local", "serviceRegistrationId": "e56bc7b8-c8b5-4e25-b00c-4f951effb22c", "api-version": "2016-05-01" @@ -902,4 +903,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/azsadmin/resource-manager/InfrastructureInsights/Microsoft.InfrastructureInsights.Admin/stable/2016-05-01/examples/ServiceHealth/ServiceHealthGetOperation_example.json b/specification/azsadmin/resource-manager/infrastructureinsights/Microsoft.InfrastructureInsights.Admin/preview/2016-05-01/examples/ServiceHealth/Get.json similarity index 97% rename from specification/azsadmin/resource-manager/InfrastructureInsights/Microsoft.InfrastructureInsights.Admin/stable/2016-05-01/examples/ServiceHealth/ServiceHealthGetOperation_example.json rename to specification/azsadmin/resource-manager/infrastructureinsights/Microsoft.InfrastructureInsights.Admin/preview/2016-05-01/examples/ServiceHealth/Get.json index d5c243cf6593..627d0fd755b5 100644 --- a/specification/azsadmin/resource-manager/InfrastructureInsights/Microsoft.InfrastructureInsights.Admin/stable/2016-05-01/examples/ServiceHealth/ServiceHealthGetOperation_example.json +++ b/specification/azsadmin/resource-manager/infrastructureinsights/Microsoft.InfrastructureInsights.Admin/preview/2016-05-01/examples/ServiceHealth/Get.json @@ -1,6 +1,7 @@ { "parameters": { "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", + "resourceGroupName": "System.local", "location": "local", "serviceHealth": "c720a7de-4812-4b58-969d-c2e2a5cd89ec", "api-version": "2016-05-01" @@ -29,4 +30,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/azsadmin/resource-manager/InfrastructureInsights/Microsoft.InfrastructureInsights.Admin/stable/2016-05-01/examples/ServiceHealth/ServiceHealthListOperation_example.json b/specification/azsadmin/resource-manager/infrastructureinsights/Microsoft.InfrastructureInsights.Admin/preview/2016-05-01/examples/ServiceHealth/List.json similarity index 99% rename from specification/azsadmin/resource-manager/InfrastructureInsights/Microsoft.InfrastructureInsights.Admin/stable/2016-05-01/examples/ServiceHealth/ServiceHealthListOperation_example.json rename to specification/azsadmin/resource-manager/infrastructureinsights/Microsoft.InfrastructureInsights.Admin/preview/2016-05-01/examples/ServiceHealth/List.json index 2e3b9e4bdaa7..34991f98383e 100644 --- a/specification/azsadmin/resource-manager/InfrastructureInsights/Microsoft.InfrastructureInsights.Admin/stable/2016-05-01/examples/ServiceHealth/ServiceHealthListOperation_example.json +++ b/specification/azsadmin/resource-manager/infrastructureinsights/Microsoft.InfrastructureInsights.Admin/preview/2016-05-01/examples/ServiceHealth/List.json @@ -1,6 +1,7 @@ { "parameters": { "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", + "resourceGroupName": "System.local", "location": "local", "api-version": "2016-05-01" }, @@ -153,4 +154,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/azsadmin/resource-manager/infrastructureinsights/readme.md b/specification/azsadmin/resource-manager/infrastructureinsights/readme.md new file mode 100644 index 000000000000..7aeb55c98acd --- /dev/null +++ b/specification/azsadmin/resource-manager/infrastructureinsights/readme.md @@ -0,0 +1,61 @@ +# InfrastructureInsights Admin + +> see https://aka.ms/autorest + +This is the AutoRest configuration file for InfrastructureInsights Admin. + +--- +## Getting Started +To build the SDK for InfrastructureInsights Admin, simply [Install AutoRest](https://aka.ms/autorest/install) and in this folder, run: + +> `autorest` + +To see additional help and options, run: + +> `autorest --help` +--- + +## Configuration + +### Basic Information +These are the global settings for the InfrastructureInsights API. + +``` yaml +title: InfrastructureInsightsAdminClient +description: InfrastructureInsights Admin Client +openapi-type: arm +tag: package-2016-05-01 +``` + +### Tag: package-2016-05-01 + +These settings apply only when `--tag=package-2016-05-01` is specified on the command line. + +``` yaml $(tag) == 'package-2016-05-01' +input-file: + - Microsoft.InfrastructureInsights.Admin/stable/2016-05-01/InfrastructureInsights.json + - Microsoft.InfrastructureInsights.Admin/stable/2016-05-01/Alert.json + - Microsoft.InfrastructureInsights.Admin/stable/2016-05-01/RegionHealth.json + - Microsoft.InfrastructureInsights.Admin/stable/2016-05-01/ResourceHealth.json + - Microsoft.InfrastructureInsights.Admin/stable/2016-05-01/ServiceHealth.json +``` + +--- +# Code Generation + +## Swagger to SDK + +## 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 + namespace: Microsoft.AzureStack.Management.InfrastructureInsights.Admin + payload-flattening-threshold: 1 + output-folder: $(csharp-sdks-folder)/Generated + clear-output-folder: true +```