From 77c5db25fe62c1ca5951728565035f809f389a33 Mon Sep 17 00:00:00 2001 From: priyank-b <60386653+priyank-b@users.noreply.github.com> Date: Wed, 3 Mar 2021 19:19:07 +0530 Subject: [PATCH 1/7] New Readme Config File New Go Language Readme Config File New Azure AZ Readme Config File New Azure CLI Readme Config File New Typescript Language Readme Config File New Python Language Readme Config File New C# Language Readme Config File New AzureResourceSchema Readme Config File New Swagger Spec File New Swagger Example Spec File Base commit with initial approved farmbeats RP Apis Adding extensions apis Fixing linter and spellcheck issues Fixing python and go sdk generation --- custom-words.txt | 3 + .../preview/2020-05-12-preview/agfood.json | 998 ++++++++++++++++++ .../farmbeats_ListByResourceGroup.json | 38 + .../farmbeats_ListBySubscription.json | 37 + .../examples/farmbeats_createOrUpdate.json | 65 ++ .../examples/farmbeats_delete.json | 12 + .../examples/farmbeats_extensions_get.json | 33 + .../farmbeats_extensions_install.json | 33 + .../farmbeats_extensions_listByFarmBeats.json | 37 + .../farmbeats_extensions_uninstall.json | 13 + .../farmbeats_extensions_upgrade.json | 33 + .../examples/farmbeats_get.json | 34 + .../examples/farmbeats_update.json | 40 + ...onCheckNameAvailability_AlreadyExists.json | 19 + ...cationCheckNameAvailability_Available.json | 17 + .../examples/operations_list.json | 64 ++ .../agfood/resource-manager/readme.az.md | 28 + .../readme.azureresourceschema.md | 23 + .../agfood/resource-manager/readme.cli.md | 1 + .../agfood/resource-manager/readme.csharp.md | 15 + .../agfood/resource-manager/readme.go.md | 26 + .../agfood/resource-manager/readme.md | 107 ++ .../agfood/resource-manager/readme.python.md | 48 + .../resource-manager/readme.typescript.md | 14 + 24 files changed, 1738 insertions(+) create mode 100644 specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/agfood.json create mode 100644 specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/examples/farmbeats_ListByResourceGroup.json create mode 100644 specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/examples/farmbeats_ListBySubscription.json create mode 100644 specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/examples/farmbeats_createOrUpdate.json create mode 100644 specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/examples/farmbeats_delete.json create mode 100644 specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/examples/farmbeats_extensions_get.json create mode 100644 specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/examples/farmbeats_extensions_install.json create mode 100644 specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/examples/farmbeats_extensions_listByFarmBeats.json create mode 100644 specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/examples/farmbeats_extensions_uninstall.json create mode 100644 specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/examples/farmbeats_extensions_upgrade.json create mode 100644 specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/examples/farmbeats_get.json create mode 100644 specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/examples/farmbeats_update.json create mode 100644 specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/examples/locationCheckNameAvailability_AlreadyExists.json create mode 100644 specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/examples/locationCheckNameAvailability_Available.json create mode 100644 specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/examples/operations_list.json create mode 100644 specification/agfood/resource-manager/readme.az.md create mode 100644 specification/agfood/resource-manager/readme.azureresourceschema.md create mode 100644 specification/agfood/resource-manager/readme.cli.md create mode 100644 specification/agfood/resource-manager/readme.csharp.md create mode 100644 specification/agfood/resource-manager/readme.go.md create mode 100644 specification/agfood/resource-manager/readme.md create mode 100644 specification/agfood/resource-manager/readme.python.md create mode 100644 specification/agfood/resource-manager/readme.typescript.md diff --git a/custom-words.txt b/custom-words.txt index 3b86e0485a37..5a667072e243 100644 --- a/custom-words.txt +++ b/custom-words.txt @@ -640,6 +640,9 @@ failover failovers Fairplay Fanout +farmbeats +Farmbeats +FarmBeats fatherable faultable fconfig diff --git a/specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/agfood.json b/specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/agfood.json new file mode 100644 index 000000000000..2d985d397fb8 --- /dev/null +++ b/specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/agfood.json @@ -0,0 +1,998 @@ +{ + "swagger": "2.0", + "info": { + "version": "2020-05-12-preview", + "title": "AgFoodPlatformClient", + "description": "API's to manage agriculture and food industry data." + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "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": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgFoodPlatform/farmBeats/{farmBeatsResourceName}/extensions/{extensionId}": { + "put": { + "tags": [ + "Extensions" + ], + "description": "Install extension.", + "operationId": "Extensions_Create", + "x-ms-examples": { + "Extensions_Install": { + "$ref": "./examples/farmbeats_extensions_install.json" + } + }, + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/FarmBeatsResourceNameParameter" + }, + { + "$ref": "#/parameters/ExtensionIdParameter" + } + ], + "responses": { + "201": { + "description": "Success", + "schema": { + "$ref": "#/definitions/Extension" + } + }, + "default": { + "description": "Error", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + }, + "get": { + "tags": [ + "Extensions" + ], + "description": "Get installed extension details by extension id.", + "operationId": "Extensions_Get", + "x-ms-examples": { + "Extensions_Get": { + "$ref": "./examples/farmbeats_extensions_get.json" + } + }, + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/FarmBeatsResourceNameParameter" + }, + { + "$ref": "#/parameters/ExtensionIdParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/Extension" + } + }, + "default": { + "description": "Error", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + }, + "patch": { + "tags": [ + "Extensions" + ], + "description": "Upgrade to latest extension.", + "operationId": "Extensions_Update", + "x-ms-examples": { + "Extensions_Upgrade": { + "$ref": "./examples/farmbeats_extensions_upgrade.json" + } + }, + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/FarmBeatsResourceNameParameter" + }, + { + "$ref": "#/parameters/ExtensionIdParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/Extension" + } + }, + "default": { + "description": "Error", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + }, + "delete": { + "tags": [ + "Extensions" + ], + "description": "Uninstall extension.", + "operationId": "Extensions_Delete", + "x-ms-examples": { + "Extensions_Uninstall": { + "$ref": "./examples/farmbeats_extensions_uninstall.json" + } + }, + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/FarmBeatsResourceNameParameter" + }, + { + "$ref": "#/parameters/ExtensionIdParameter" + } + ], + "responses": { + "204": { + "description": "Not Found" + }, + "200": { + "description": "Success" + }, + "default": { + "description": "Error", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgFoodPlatform/farmBeats/{farmBeatsResourceName}/extensions": { + "get": { + "tags": [ + "Extensions" + ], + "description": "Get installed extensions details by FarmBeats resource.", + "operationId": "Extensions_ListByFarmBeats", + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "Extensions_ListByFarmBeats": { + "$ref": "./examples/farmbeats_extensions_listByFarmBeats.json" + } + }, + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/FarmBeatsResourceNameParameter" + }, + { + "in": "query", + "name": "extensionId", + "description": "Id of the extension.", + "type": "string" + }, + { + "in": "query", + "name": "category", + "description": "Category of extension (weather/sensor/satellite etc.).", + "type": "string", + "maxLength": 50, + "minLength": 0 + }, + { + "in": "query", + "name": "$maxPageSize", + "description": "Maximum number of items needed (inclusive).\r\nMinimum = 10, Maximum = 1000, Default value = 50.", + "type": "integer", + "format": "int32", + "default": 50, + "maximum": 1000, + "minimum": 10 + }, + { + "in": "query", + "name": "$skipToken", + "description": "Skip token for getting next set of results.", + "type": "string" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/ExtensionListResponse" + } + }, + "default": { + "description": "Error", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/providers/Microsoft.AgFoodPlatform/operations": { + "get": { + "tags": [ + "Operations" + ], + "description": "Lists the available operations of Microsoft.AgFoodPlatform resource provider.", + "operationId": "Operations_List", + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "Operations_List": { + "$ref": "./examples/operations_list.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success.", + "schema": { + "$ref": "#/definitions/OperationListResponse" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.AgFoodPlatform/checkNameAvailability": { + "post": { + "tags": [ + "Locations" + ], + "operationId": "Locations_CheckNameAvailability", + "x-ms-examples": { + "LocationCheckNameAvailability_Available": { + "$ref": "./examples/locationCheckNameAvailability_Available.json" + }, + "LocationCheckNameAvailability_AlreadyExists": { + "$ref": "./examples/locationCheckNameAvailability_AlreadyExists.json" + } + }, + "description": "To check whether a resource name is available.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/NameAvailabilityRequest" + }, + "description": "Name availability request payload." + } + ], + "responses": { + "200": { + "description": "Success. Returns details about whether a Farmbeats instance is available.", + "schema": { + "$ref": "#/definitions/CheckNameAvailabilityResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgFoodPlatform/farmBeats/{farmBeatsResourceName}": { + "put": { + "tags": [ + "FarmBeatsModel" + ], + "operationId": "FarmBeatsModels_CreateOrUpdate", + "description": "Creates or update a FarmBeats resource.", + "x-ms-examples": { + "FarmBeats_Create": { + "$ref": "./examples/farmbeats_createOrUpdate.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/FarmBeatsResourceNameParameter" + }, + { + "name": "farmBeatsCreateOrUpdateRequest", + "description": "FarmBeats resource create or update request object.", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/FarmBeats" + } + } + ], + "responses": { + "200": { + "description": "FarmBeats resource was updated successfully. Check provisioningStatus to see detailed status.", + "schema": { + "$ref": "#/definitions/FarmBeats" + } + }, + "201": { + "description": "FarmBeats resource was created successfully. Check provisioningStatus to see detailed status.", + "schema": { + "$ref": "#/definitions/FarmBeats" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + }, + "get": { + "tags": [ + "FarmBeatsModel" + ], + "operationId": "FarmBeatModels_Get", + "description": "Get a FarmBeats resource by identified name.", + "x-ms-examples": { + "FarmBeats_Get": { + "$ref": "./examples/farmbeats_get.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/FarmBeatsResourceNameParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/FarmBeats" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + }, + "patch": { + "tags": [ + "FarmBeatsModel" + ], + "operationId": "FarmBeatsModels_Update", + "description": "Incrementally updates FarmBeats resource by identified name.", + "x-ms-examples": { + "FarmBeats_Update": { + "$ref": "./examples/farmbeats_update.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/FarmBeatsResourceNameParameter" + }, + { + "name": "farmBeatsUpdateRequest", + "description": "FarmBeats resource update request object.", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/FarmBeatsUpdateParameters" + } + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/FarmBeats" + } + }, + "default": { + "description": "Error.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + }, + "delete": { + "tags": [ + "FarmBeatsModel" + ], + "operationId": "FarmBeatsModels_Delete", + "description": "Removes FarmBeats resource identified by name.", + "x-ms-examples": { + "FarmBeats_Delete": { + "$ref": "./examples/farmbeats_delete.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/FarmBeatsResourceNameParameter" + } + ], + "responses": { + "200": { + "description": "The specified resource was deleted successfully." + }, + "204": { + "description": "The specified resource does not exist in the subscription." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgFoodPlatform/farmBeats": { + "get": { + "tags": [ + "FarmBeatsModel" + ], + "description": "Lists the FarmBeats instances for a resource group.", + "operationId": "FarmBeatsModels_ListByResourceGroup", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/FarmBeatsCollection" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "FarmBeats_ListByResourceGroup": { + "$ref": "./examples/farmbeats_ListByResourceGroup.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.AgFoodPlatform/farmBeats": { + "get": { + "tags": [ + "FarmBeatsModel" + ], + "description": "Lists the FarmBeats instances for a subscription.", + "operationId": "FarmBeatsModel_ListBySubscription", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/FarmBeatsCollection" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "FarmBeats_ListBySubscription": { + "$ref": "./examples/farmbeats_ListBySubscription.json" + } + } + } + } + }, + "definitions": { + "Extension": { + "type": "object", + "description": "Api Model for Extension object.", + "properties": { + "properties": { + "description": "Extension Properties.", + "$ref": "#/definitions/ExtensionProperties", + "x-ms-client-flatten": true + }, + "systemData": { + "readOnly": true, + "description": "The system meta data relating to this resource.", + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/systemData" + }, + "eTag": { + "description": "The ETag value to implement optimistic concurrency.", + "type": "string", + "readOnly": true + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ProxyResource" + } + ], + "x-ms-azure-resource": true + }, + "ExtensionListResponse": { + "description": "Paged response contains list of requested objects and a URL link to get the next set of results.", + "type": "object", + "properties": { + "value": { + "description": "List of requested objects.", + "type": "array", + "items": { + "$ref": "#/definitions/Extension" + } + }, + "$skipToken": { + "description": "Token used in retrieving the next page. If null, there are no additional pages.", + "type": "string" + }, + "nextLink": { + "description": "Continuation link (absolute URI) to the next page of results in the list.", + "type": "string" + } + } + }, + "ExtensionProperties": { + "description": "Extension proxy resource properties object.", + "type": "object", + "properties": { + "category": { + "description": "Category of the extension. e.g. weather/sensor/satellite.", + "maxLength": 100, + "minLength": 2, + "type": "string", + "readOnly": true + }, + "installedExtensionVersion": { + "description": "Installed extension version.", + "maxLength": 100, + "minLength": 2, + "type": "string", + "readOnly": true + }, + "extensionAuthLink": { + "description": "Extension auth link.", + "type": "string", + "readOnly": true + }, + "extensionApiDocsLink": { + "description": "Extension api docs link.", + "type": "string", + "readOnly": true + } + } + }, + "Operation": { + "description": "Resources and supported operations on them.", + "type": "object", + "properties": { + "name": { + "description": "Operation name: {provider}/{resource}/{read | write | action | delete}", + "type": "string", + "readOnly": true + }, + "isDataAction": { + "description": "A boolean value indicating whether the operation is a data action or not.", + "type": "boolean", + "readOnly": true + }, + "display": { + "description": "Operation display payload which is exposed in the response of the resource provider.", + "properties": { + "provider": { + "description": "Name of the provider for display purposes.", + "type": "string", + "readOnly": true + }, + "resource": { + "description": "Name of the resource type for display purposes.", + "type": "string", + "readOnly": true + }, + "operation": { + "description": "Name of the operation for display purposes.", + "type": "string", + "readOnly": true + }, + "description": { + "description": "Description of the operation for display purposes.", + "type": "string", + "readOnly": true + } + } + } + } + }, + "OperationListResponse": { + "description": "Result of the request to list AgFoodPlatform operations. It contains a list of resources and supported operations on them and a URL link to get the next set of results.", + "type": "object", + "properties": { + "value": { + "description": "List of resources and supported operations by the Microsoft.AgFoodPlatform resource provider.", + "type": "array", + "items": { + "$ref": "#/definitions/Operation" + } + }, + "nextLink": { + "description": "URL to get the next set of operation list results if there are any.", + "type": "string" + } + } + }, + "NameAvailabilityRequest": { + "description": "Parameters body to pass for name availability check.", + "properties": { + "name": { + "type": "string", + "description": "Resource name to check." + }, + "type": { + "type": "string", + "description": "Resource type to check." + } + }, + "required": [ + "name", + "type" + ] + }, + "CheckNameAvailabilityResult": { + "properties": { + "nameAvailable": { + "readOnly": true, + "type": "boolean", + "description": "Gets a boolean value that indicates whether the name is available for you to use. If true, the name is available. If false, the name has already been taken or invalid and cannot be used." + }, + "reason": { + "readOnly": true, + "type": "string", + "enum": [ + "Invalid", + "AlreadyExists" + ], + "x-ms-enum": { + "name": "NameAvailabilityReason", + "modelAsString": true + }, + "description": "Gets the reason that a given resource name could not be used. The 'reason' element is returned only if 'nameAvailable' is false." + }, + "message": { + "readOnly": true, + "type": "string", + "description": "Gets an error message explaining the 'reason' value in more detail." + } + }, + "description": "The CheckNameAvailability operation response." + }, + "FarmBeatsUpdateParameters": { + "description": "Parameters used to update an existing FarmBeats resource.", + "type": "object", + "properties": { + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "A list of key value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key no greater than 128 characters and value no greater than 256 characters." + } + } + }, + "FarmBeats": { + "description": "FarmBeats resource object.", + "type": "object", + "properties": { + "properties": { + "description": "FarmBeats Properties.", + "$ref": "#/definitions/FarmBeatsProperties", + "x-ms-client-flatten": true + }, + "systemData": { + "readOnly": true, + "description": "The system meta data relating to this resource.", + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/systemData" + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/TrackedResource" + } + ], + "x-ms-azure-resource": true + }, + "FarmBeatsProperties": { + "description": "FarmBeats resource properties object.", + "type": "object", + "properties": { + "instanceUri": { + "type": "string", + "description": "Uri of the FarmBeats instance.", + "readOnly": true + }, + "provisioningState": { + "description": "FarmBeats instance provisioning state.", + "enum": [ + "Creating", + "Updating", + "Deleting", + "Succeeded", + "Failed" + ], + "type": "string", + "readOnly": true, + "x-ms-enum": { + "name": "ProvisioningState", + "modelAsString": true + } + } + } + }, + "FarmBeatsCollection": { + "description": "Collection of the FarmBeats payload which is exposed in the request/response of the resource provider.", + "type": "object", + "properties": { + "value": { + "description": "The collection of FarmBeats instances.", + "uniqueItems": false, + "type": "array", + "items": { + "$ref": "#/definitions/FarmBeats" + } + }, + "nextLink": { + "description": "Gets or sets the URL, that the client should use to fetch the next page (per server side paging).\r\nIt's null for now, added for future use.", + "type": "string" + } + } + }, + "ErrorResponse": { + "description": "An error response from the service.", + "type": "object", + "properties": { + "error": { + "description": "The error object", + "$ref": "#/definitions/ErrorResponseBody" + } + } + }, + "ErrorResponseBody": { + "properties": { + "code": { + "readOnly": true, + "type": "string", + "description": "The error code." + }, + "message": { + "readOnly": true, + "type": "string", + "description": "The error message." + }, + "target": { + "readOnly": true, + "type": "string", + "description": "The error target." + }, + "details": { + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/ErrorResponseBody" + }, + "description": "The error details." + }, + "additionalInfo": { + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/ErrorAdditionalInfo" + }, + "description": "The error additional info." + } + }, + "description": "The resource management error response." + }, + "ErrorAdditionalInfo": { + "properties": { + "type": { + "readOnly": true, + "type": "string", + "description": "The additional info type." + }, + "info": { + "readOnly": true, + "type": "object", + "description": "The additional info.", + "additionalProperties": { + "type": "string" + } + } + }, + "description": "The resource management error additional info." + } + }, + "parameters": { + "FarmBeatsResourceNameParameter": { + "description": "FarmBeats resource name.", + "name": "farmBeatsResourceName", + "in": "path", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "ExtensionIdParameter": { + "description": "Id of extension proxy resource.", + "name": "extensionId", + "in": "path", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + } + } +} diff --git a/specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/examples/farmbeats_ListByResourceGroup.json b/specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/examples/farmbeats_ListByResourceGroup.json new file mode 100644 index 000000000000..69b66f5bec27 --- /dev/null +++ b/specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/examples/farmbeats_ListByResourceGroup.json @@ -0,0 +1,38 @@ +{ + "parameters": { + "api-version": "2020-05-12-preview", + "subscriptionId": "11111111-2222-3333-4444-555555555555", + "resourceGroupName": "examples-rg" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "id": "/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/examples-rg/Microsoft.AgFoodPlatform/farmBeats/examples-farmbeatsResourceName", + "name": "examples-farmBeatsResourceName", + "type": "Microsoft.AgFoodPlatform/farmBeats", + "location": "eastus2", + "tags": { + "key1": "value1", + "key2": "value2" + }, + "systemData": { + "createdBy": "string", + "createdByType": "User", + "createdAt": "2020-02-01T01:01:01.1075056Z", + "lastModifiedBy": "string", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-02-01T01:01:01.1075056Z" + }, + "properties": { + "instanceUri": "https://examples-farmbeatsResourceName.eastus2.farmbeats.azure.net", + "provisioningState": "Succeeded" + } + } + ] + } + } + } +} diff --git a/specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/examples/farmbeats_ListBySubscription.json b/specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/examples/farmbeats_ListBySubscription.json new file mode 100644 index 000000000000..60ae3f9167ec --- /dev/null +++ b/specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/examples/farmbeats_ListBySubscription.json @@ -0,0 +1,37 @@ +{ + "parameters": { + "api-version": "2020-05-12-preview", + "subscriptionId": "11111111-2222-3333-4444-555555555555" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "id": "/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/examples-rg/Microsoft.AgFoodPlatform/farmBeats/examples-farmbeatsResourceName", + "name": "examples-farmBeatsResourceName", + "type": "Microsoft.AgFoodPlatform/farmBeats", + "location": "eastus2", + "tags": { + "key1": "value1", + "key2": "value2" + }, + "systemData": { + "createdBy": "string", + "createdByType": "User", + "createdAt": "2020-02-01T01:01:01.1075056Z", + "lastModifiedBy": "string", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-02-01T01:01:01.1075056Z" + }, + "properties": { + "instanceUri": "https://examples-farmbeatsResourceName.eastus2.farmbeats.azure.net", + "provisioningState": "Succeeded" + } + } + ] + } + } + } +} diff --git a/specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/examples/farmbeats_createOrUpdate.json b/specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/examples/farmbeats_createOrUpdate.json new file mode 100644 index 000000000000..2d76da431d8d --- /dev/null +++ b/specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/examples/farmbeats_createOrUpdate.json @@ -0,0 +1,65 @@ +{ + "parameters": { + "api-version": "2020-05-12-preview", + "subscriptionId": "11111111-2222-3333-4444-555555555555", + "resourceGroupName": "examples-rg", + "farmBeatsResourceName": "examples-farmbeatsResourceName", + "farmBeatsCreateOrUpdateRequest": { + "location": "eastus2", + "tags": { + "key1": "value1", + "key2": "value2" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/examples-rg/Microsoft.AgFoodPlatform/farmBeats/examples-farmbeatsResourceName", + "name": "examples-farmbeatsResourceName", + "type": "Microsoft.AgFoodPlatform/farmBeats", + "location": "eastus2", + "tags": { + "key1": "value1", + "key2": "value2" + }, + "systemData": { + "createdBy": "string", + "createdByType": "User", + "createdAt": "2020-02-01T01:01:01.1075056Z", + "lastModifiedBy": "string", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-02-01T01:01:01.1075056Z" + }, + "properties": { + "instanceUri": "https://examples-farmbeatsResourceName.eastus2.farmbeats.azure.net", + "provisioningState": "Succeeded" + } + } + }, + "201": { + "body": { + "id": "/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/examples-rg/Microsoft.AgFoodPlatform/farmBeats/examples-farmbeatsResourceName", + "name": "examples-farmbeatsResourceName", + "type": "Microsoft.AgFoodPlatform/farmBeats", + "location": "eastus2", + "tags": { + "key1": "value1", + "key2": "value2" + }, + "systemData": { + "createdBy": "string", + "createdByType": "User", + "createdAt": "2020-02-01T01:01:01.1075056Z", + "lastModifiedBy": "string", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-02-01T01:01:01.1075056Z" + }, + "properties": { + "instanceUri": "https://examples-farmbeatsResourceName.eastus2.farmbeats.azure.net", + "provisioningState": "Creating" + } + } + } + } +} diff --git a/specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/examples/farmbeats_delete.json b/specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/examples/farmbeats_delete.json new file mode 100644 index 000000000000..ca960b71cfdf --- /dev/null +++ b/specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/examples/farmbeats_delete.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "api-version": "2020-05-12-preview", + "subscriptionId": "11111111-2222-3333-4444-555555555555", + "resourceGroupName": "examples-rg", + "farmBeatsResourceName": "examples-farmBeatsResourceName" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/examples/farmbeats_extensions_get.json b/specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/examples/farmbeats_extensions_get.json new file mode 100644 index 000000000000..900ac7ebfde3 --- /dev/null +++ b/specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/examples/farmbeats_extensions_get.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "api-version": "2020-05-12-preview", + "subscriptionId": "11111111-2222-3333-4444-555555555555", + "resourceGroupName": "examples-rg", + "farmBeatsResourceName": "examples-farmbeatsResourceName", + "extensionId": "provider.extension" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/examples-rg/Microsoft.AgFoodPlatform/farmBeats/examples-farmbeatsResourceName/extensions/provider.extension", + "name": "provider.extension", + "type": "Microsoft.AgFoodPlatform/farmBeats/extensions", + "systemData": { + "createdBy": "string", + "createdByType": "User", + "createdAt": "2020-02-01T01:01:01.1075056Z", + "lastModifiedBy": "string", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-02-01T01:01:01.1075056Z" + }, + "eTag": "7200b954-0000-0700-0000-603cbbc40000", + "properties": { + "category": "Weather", + "installedExtensionVersion": "1.0", + "extensionAuthLink": "https://www.provider.com/extension/", + "extensionApiDocsLink": "https://docs.provider.com/documentation/extension" + } + } + } + } +} diff --git a/specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/examples/farmbeats_extensions_install.json b/specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/examples/farmbeats_extensions_install.json new file mode 100644 index 000000000000..31ee675b03cf --- /dev/null +++ b/specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/examples/farmbeats_extensions_install.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "api-version": "2020-05-12-preview", + "subscriptionId": "11111111-2222-3333-4444-555555555555", + "resourceGroupName": "examples-rg", + "farmBeatsResourceName": "examples-farmbeatsResourceName", + "extensionId": "provider.extension" + }, + "responses": { + "201": { + "body": { + "id": "/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/examples-rg/Microsoft.AgFoodPlatform/farmBeats/examples-farmbeatsResourceName/extensions/provider.extension", + "name": "provider.extension", + "type": "Microsoft.AgFoodPlatform/farmBeats/extensions", + "systemData": { + "createdBy": "string", + "createdByType": "User", + "createdAt": "2020-02-01T01:01:01.1075056Z", + "lastModifiedBy": "string", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-02-01T01:01:01.1075056Z" + }, + "eTag": "7200b954-0000-0700-0000-603cbbc40000", + "properties": { + "category": "Weather", + "installedExtensionVersion": "1.0", + "extensionAuthLink": "https://www.provider.com/extension/", + "extensionApiDocsLink": "https://docs.provider.com/documentation/extension" + } + } + } + } +} diff --git a/specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/examples/farmbeats_extensions_listByFarmBeats.json b/specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/examples/farmbeats_extensions_listByFarmBeats.json new file mode 100644 index 000000000000..1797877afcb6 --- /dev/null +++ b/specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/examples/farmbeats_extensions_listByFarmBeats.json @@ -0,0 +1,37 @@ +{ + "parameters": { + "api-version": "2020-05-12-preview", + "subscriptionId": "11111111-2222-3333-4444-555555555555", + "resourceGroupName": "examples-rg", + "farmBeatsResourceName": "examples-farmbeatsResourceName" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "id": "/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/examples-rg/Microsoft.AgFoodPlatform/farmBeats/examples-farmbeatsResourceName/extensions/provider.extension", + "name": "provider.extension", + "type": "Microsoft.AgFoodPlatform/farmBeats/extensions", + "systemData": { + "createdBy": "string", + "createdByType": "User", + "createdAt": "2020-02-01T01:01:01.1075056Z", + "lastModifiedBy": "string", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-02-01T01:01:01.1075056Z" + }, + "eTag": "7200b954-0000-0700-0000-603cbbc40000", + "properties": { + "category": "Weather", + "installedExtensionVersion": "1.0", + "extensionAuthLink": "https://www.provider.com/extension/", + "extensionApiDocsLink": "https://docs.provider.com/documentation/extension" + } + } + ] + } + } + } +} diff --git a/specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/examples/farmbeats_extensions_uninstall.json b/specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/examples/farmbeats_extensions_uninstall.json new file mode 100644 index 000000000000..acc12ece1dc8 --- /dev/null +++ b/specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/examples/farmbeats_extensions_uninstall.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "api-version": "2020-05-12-preview", + "subscriptionId": "11111111-2222-3333-4444-555555555555", + "resourceGroupName": "examples-rg", + "farmBeatsResourceName": "examples-farmbeatsResourceName", + "extensionId": "provider.extension" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/examples/farmbeats_extensions_upgrade.json b/specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/examples/farmbeats_extensions_upgrade.json new file mode 100644 index 000000000000..25c9e5ed91d7 --- /dev/null +++ b/specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/examples/farmbeats_extensions_upgrade.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "api-version": "2020-05-12-preview", + "subscriptionId": "11111111-2222-3333-4444-555555555555", + "resourceGroupName": "examples-rg", + "farmBeatsResourceName": "examples-farmbeatsResourceName", + "extensionId": "provider.extension" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/examples-rg/Microsoft.AgFoodPlatform/farmBeats/examples-farmbeatsResourceName/extensions/provider.extension", + "name": "provider.extension", + "type": "Microsoft.AgFoodPlatform/farmBeats/extensions", + "systemData": { + "createdBy": "string", + "createdByType": "User", + "createdAt": "2020-02-01T01:01:01.1075056Z", + "lastModifiedBy": "string", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-02-01T01:01:01.1075056Z" + }, + "eTag": "7200b954-0000-0700-0000-603cbbc40000", + "properties": { + "category": "Weather", + "installedExtensionVersion": "2.0", + "extensionAuthLink": "https://www.provider.com/extension/", + "extensionApiDocsLink": "https://docs.provider.com/documentation/extension" + } + } + } + } +} diff --git a/specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/examples/farmbeats_get.json b/specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/examples/farmbeats_get.json new file mode 100644 index 000000000000..f15db77e4d33 --- /dev/null +++ b/specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/examples/farmbeats_get.json @@ -0,0 +1,34 @@ +{ + "parameters": { + "api-version": "2020-05-12-preview", + "subscriptionId": "11111111-2222-3333-4444-555555555555", + "resourceGroupName": "examples-rg", + "farmBeatsResourceName": "examples-farmBeatsResourceName" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/examples-rg/Microsoft.AgFoodPlatform/farmBeats/examples-farmbeatsResourceName", + "name": "examples-farmBeatsResourceName", + "type": "Microsoft.AgFoodPlatform/farmBeats", + "location": "eastus2", + "tags": { + "key1": "value1", + "key2": "value2" + }, + "systemData": { + "createdBy": "string", + "createdByType": "User", + "createdAt": "2020-02-01T01:01:01.1075056Z", + "lastModifiedBy": "string", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-02-01T01:01:01.1075056Z" + }, + "properties": { + "instanceUri": "https://examples-farmbeatsResourceName.eastus2.farmbeats.azure.net", + "provisioningState": "Succeeded" + } + } + } + } +} diff --git a/specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/examples/farmbeats_update.json b/specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/examples/farmbeats_update.json new file mode 100644 index 000000000000..d9ed608c6f64 --- /dev/null +++ b/specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/examples/farmbeats_update.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "api-version": "2020-05-12-preview", + "subscriptionId": "11111111-2222-3333-4444-555555555555", + "resourceGroupName": "examples-rg", + "farmBeatsResourceName": "examples-farmBeatsResourceName", + "farmBeatsUpdateRequest": { + "tags": { + "key1": "value1", + "key2": "value2" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/examples-rg/Microsoft.AgFoodPlatform/farmBeats/examples-farmbeatsResourceName", + "name": "examples-farmBeatsResourceName", + "type": "Microsoft.AgFoodPlatform/farmBeats", + "location": "eastus2", + "tags": { + "key1": "value1", + "key2": "value2" + }, + "systemData": { + "createdBy": "string", + "createdByType": "User", + "createdAt": "2020-02-01T01:01:01.1075056Z", + "lastModifiedBy": "string", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-02-01T01:01:01.1075056Z" + }, + "properties": { + "instanceUri": "https://examples-farmbeatsResourceName.eastus2.farmbeats.azure.net", + "provisioningState": "Succeeded" + } + } + } + } +} diff --git a/specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/examples/locationCheckNameAvailability_AlreadyExists.json b/specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/examples/locationCheckNameAvailability_AlreadyExists.json new file mode 100644 index 000000000000..f21d491f89a5 --- /dev/null +++ b/specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/examples/locationCheckNameAvailability_AlreadyExists.json @@ -0,0 +1,19 @@ +{ + "parameters": { + "api-version": "2020-05-12-preview", + "subscriptionId": "11111111-2222-3333-4444-555555555555", + "parameters": { + "name": "existingaccountname", + "type": "Microsoft.AgFoodPlatform/farmBeats" + } + }, + "responses": { + "200": { + "body": { + "nameAvailable": false, + "reason": "AlreadyExists", + "message": "An account named 'existingaccountname' is already in use." + } + } + } +} diff --git a/specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/examples/locationCheckNameAvailability_Available.json b/specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/examples/locationCheckNameAvailability_Available.json new file mode 100644 index 000000000000..e1d9fd8fade4 --- /dev/null +++ b/specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/examples/locationCheckNameAvailability_Available.json @@ -0,0 +1,17 @@ +{ + "parameters": { + "api-version": "2020-05-12-preview", + "subscriptionId": "11111111-2222-3333-4444-555555555555", + "parameters": { + "name": "newaccountname", + "type": "Microsoft.AgFoodPlatform/farmBeats" + } + }, + "responses": { + "200": { + "body": { + "nameAvailable": true + } + } + } +} diff --git a/specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/examples/operations_list.json b/specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/examples/operations_list.json new file mode 100644 index 000000000000..a7408fca6a6a --- /dev/null +++ b/specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/examples/operations_list.json @@ -0,0 +1,64 @@ +{ + "parameters": { + "api-version": "2020-05-12-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "Microsoft.AgFoodPlatform/farmBeats/read", + "isDataAction": false, + "display": { + "provider": "Microsoft AgFoodPlatform", + "resource": "farmBeats", + "operation": "Get FarmBeats", + "description": "Gets the FarmBeats resource" + } + }, + { + "name": "Microsoft.AgFoodPlatform/farmBeats/write", + "isDataAction": false, + "display": { + "provider": "Microsoft AgFoodPlatform", + "resource": "farmBeats", + "operation": "Create or update FarmBeats Resource", + "description": "Create or update FarmBeats Resource" + } + }, + { + "name": "Microsoft.AgFoodPlatform/farmBeats/delete", + "isDataAction": false, + "display": { + "provider": "Microsoft AgFoodPlatform", + "resource": "farmBeats", + "operation": "Delete FarmBeats Resource", + "description": "Delete FarmBeats Resource" + } + }, + { + "name": "Microsoft.AgFoodPlatform/locations/checkNameAvailability/action", + "isDataAction": false, + "display": { + "provider": "Microsoft AgFoodPlatform", + "resource": "Locations", + "operation": "Check Name Availability", + "description": "Checks that resource name is valid and is not in use." + } + }, + { + "name": "Microsoft.AgFoodPlatform/operations/read", + "isDataAction": false, + "display": { + "provider": "Microsoft AgFoodPlatform", + "resource": "operations", + "operation": "List all operations", + "description": "List all operations in Microsoft AgFoodPlatform Resource Provider." + } + } + ], + "nextLink": "https://management.azure.com/providers/Microsoft.AgFoodPlatform/operations?$skiptoken={token}" + } + } + } +} diff --git a/specification/agfood/resource-manager/readme.az.md b/specification/agfood/resource-manager/readme.az.md new file mode 100644 index 000000000000..fdb8a9adf7e0 --- /dev/null +++ b/specification/agfood/resource-manager/readme.az.md @@ -0,0 +1,28 @@ +## AZ + +These settings apply only when `--az` is specified on the command line. + +For new Resource Provider. It is highly recommended to onboard Azure CLI extensions. There's no differences in terms of customer usage. + +``` yaml $(az) && $(target-mode) != 'core' +az: + extensions: agfood + namespace: azure.mgmt.agfood + package-name: azure-mgmt-agfood +az-output-folder: $(azure-cli-extension-folder)/src/agfood +python-sdk-output-folder: "$(az-output-folder)/azext_agfood/vendored_sdks/agfood" +# add additinal configuration here specific for Azure CLI +# refer to the faq.md for more details +``` + + + +This is for command modules that already in azure cli main repo. +``` yaml $(az) && $(target-mode) == 'core' +az: + extensions: agfood + namespace: azure.mgmt.agfood + package-name: azure-mgmt-agfood +az-output-folder: $(azure-cli-folder)/src/azure-cli/azure/cli/command_modules/agfood +python-sdk-output-folder: "$(az-output-folder)/vendored_sdks/agfood" +``` \ No newline at end of file diff --git a/specification/agfood/resource-manager/readme.azureresourceschema.md b/specification/agfood/resource-manager/readme.azureresourceschema.md new file mode 100644 index 000000000000..2436ca5b8705 --- /dev/null +++ b/specification/agfood/resource-manager/readme.azureresourceschema.md @@ -0,0 +1,23 @@ +## AzureResourceSchema + +These settings apply only when `--azureresourceschema` is specified on the command line. + +### AzureResourceSchema multi-api + +``` yaml $(azureresourceschema) && $(multiapi) +batch: + - tag: schema-agfood-2020-05-12-preview + +``` + +Please also specify `--azureresourceschema-folder=`. + +### Tag: schema-agfood-2020-05-12-preview and azureresourceschema + +``` yaml $(tag) == 'schema-agfood-2020-05-12-preview' && $(azureresourceschema) +output-folder: $(azureresourceschema-folder)/schemas + +# all the input files in this apiVersion +input-file: + - Microsoft.AgFoodPlatform/preview/2020-05-12-preview/agfood.json +``` diff --git a/specification/agfood/resource-manager/readme.cli.md b/specification/agfood/resource-manager/readme.cli.md new file mode 100644 index 000000000000..c6cf6ad37ea4 --- /dev/null +++ b/specification/agfood/resource-manager/readme.cli.md @@ -0,0 +1 @@ +## CLI Common Settings for all the command line tools \ No newline at end of file diff --git a/specification/agfood/resource-manager/readme.csharp.md b/specification/agfood/resource-manager/readme.csharp.md new file mode 100644 index 000000000000..364b07df2745 --- /dev/null +++ b/specification/agfood/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.AgFoodPlatform + output-folder: $(csharp-sdks-folder)/agfood/management/Microsoft.AgFoodPlatform/GeneratedProtocol +``` diff --git a/specification/agfood/resource-manager/readme.go.md b/specification/agfood/resource-manager/readme.go.md new file mode 100644 index 000000000000..48cd1d88d927 --- /dev/null +++ b/specification/agfood/resource-manager/readme.go.md @@ -0,0 +1,26 @@ +## Go + +These settings apply only when `--go` is specified on the command line. + +```yaml $(go) +go: + license-header: MICROSOFT_APACHE_NO_VERSION + namespace: agfood + clear-output-folder: true +``` + +### Go multi-api + +``` yaml $(go) && $(multiapi) +batch: + - tag: package-2020-05-12-preview +``` + +### Tag: package-2020-05-12-preview and go + +These settings apply only when `--tag=package-2020-05-12-preview --go` is specified on the command line. +Please also specify `--go-sdk-folder=`. + +```yaml $(tag) == 'package-2020-05-12-preview' && $(go) +output-folder: $(go-sdk-folder)/services/preview/$(namespace)/mgmt/2020-05-12-preview/$(namespace) +``` diff --git a/specification/agfood/resource-manager/readme.md b/specification/agfood/resource-manager/readme.md new file mode 100644 index 000000000000..6a8ad2d74262 --- /dev/null +++ b/specification/agfood/resource-manager/readme.md @@ -0,0 +1,107 @@ +# agfood + +> see https://aka.ms/autorest + +This is the AutoRest configuration file for agfood. + +## 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 agfood. + +```yaml +openapi-type: arm +tag: package-2020-05-12-preview +``` + +### Tag: package-2020-05-12-preview + +These settings apply only when `--tag=package-2020-05-12-preview` is specified on the command line. + +```yaml $(tag) == 'package-2020-05-12-preview' +input-file: + - Microsoft.AgFoodPlatform/preview/2020-05-12-preview/agfood.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-track2 + - repo: azure-sdk-for-java + - repo: azure-sdk-for-go + - repo: azure-sdk-for-js + - repo: azure-resource-manager-schemas + after_scripts: + - node sdkauto_afterscript.js agfood/resource-manager + - repo: azure-cli-extensions +``` +## Az + +See configuration in [readme.az.md](./readme.az.md) + +## Go + +See configuration in [readme.go.md](./readme.go.md) + +## Python + +See configuration in [readme.python.md](./readme.python.md) + +## TypeScript + +See configuration in [readme.typescript.md](./readme.typescript.md) + +## CSharp + +See configuration in [readme.csharp.md](./readme.csharp.md) + +## AzureResourceSchema + +See configuration in [readme.azureresourceschema.md](./readme.azureresourceschema.md) + +## Suppression + +``` yaml +directive: + - from: agfood.json + suppress: R3006 # BodyTopLevelProperties + where: $.definitions.FarmBeats.properties + reason: Currently systemData is not allowed. + - from: agfood.json + suppress: R3006 # BodyTopLevelProperties + where: $.definitions.Extension.properties + reason: Currently systemData is not allowed. + - from: agfood.json + suppress: R3018 # EnumInsteadOfBoolean + where: + - $.definitions.Operation.properties.isDataAction + - $.definitions.CheckNameAvailabilityResult.properties.nameAvailable + reason: Booleans are used to indicate binary states of the property, enum is not appropriate. + - from: types.json + suppress: R4000 # DescriptionAndTitleMissing + where: $.definitions.Resource + reason: Common type models are inherited. +``` diff --git a/specification/agfood/resource-manager/readme.python.md b/specification/agfood/resource-manager/readme.python.md new file mode 100644 index 000000000000..a512132205f1 --- /dev/null +++ b/specification/agfood/resource-manager/readme.python.md @@ -0,0 +1,48 @@ +## Python + +These settings apply only when `--python` is specified on the command line. +Please also specify `--python-sdks-folder=`. +Use `--python-mode=update` if you already have a setup.py and just want to update the code itself. + +``` yaml $(python) && !$(track2) +python-mode: create +python: + azure-arm: true + license-header: MICROSOFT_MIT_NO_VERSION + payload-flattening-threshold: 2 + namespace: azure.mgmt.agfood + package-name: azure-mgmt-agfood + package-version: 0.1.0 + clear-output-folder: true +``` + +``` yaml $(python-mode) == 'update' && !$(track2) +python: + no-namespace-folders: true + output-folder: $(python-sdks-folder)/agfood/azure-mgmt-agfood/azure/mgmt/agfood +``` +``` yaml $(python-mode) == 'create' && !$(track2) +python: + basic-setup-py: true + output-folder: $(python-sdks-folder)/agfood/azure-mgmt-agfood +``` + +``` yaml $(python) && $(track2) +python-mode: create +azure-arm: true +license-header: MICROSOFT_MIT_NO_VERSION +namespace: azure.mgmt.agfood +package-name: azure-mgmt-agfood +package-version: 0.1.0 +clear-output-folder: true +``` + +``` yaml $(python-mode) == 'update' && $(track2) +no-namespace-folders: true +output-folder: $(python-sdks-folder)/agfood/azure-mgmt-agfood/azure/mgmt/agfood +``` + +``` yaml $(python-mode) == 'create' && $(track2) +basic-setup-py: true +output-folder: $(python-sdks-folder)/agfood/azure-mgmt-agfood +``` diff --git a/specification/agfood/resource-manager/readme.typescript.md b/specification/agfood/resource-manager/readme.typescript.md new file mode 100644 index 000000000000..2728f7ddf540 --- /dev/null +++ b/specification/agfood/resource-manager/readme.typescript.md @@ -0,0 +1,14 @@ +## 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: "@azure/arm-agfood" + output-folder: "$(typescript-sdks-folder)/sdk/agfood/arm-agfood" + payload-flattening-threshold: 1 + clear-output-folder: true + generate-metadata: true +``` From 6527fd86d2de8f5de5ead6d3c0d9349de36118e0 Mon Sep 17 00:00:00 2001 From: Priyanka Jayaswal Date: Fri, 2 Apr 2021 10:54:03 +0530 Subject: [PATCH 2/7] Adding my changes in one commit. more updates more updates more updates more updates --- .../preview/2020-05-12-preview/agfood.json | 897 +++++++++--------- ...ns_install.json => Extensions_Create.json} | 2 +- ..._uninstall.json => Extensions_Delete.json} | 0 ...xtensions_get.json => Extensions_Get.json} | 2 +- ...s.json => Extensions_ListByFarmBeats.json} | 2 +- ...ns_upgrade.json => Extensions_Update.json} | 2 +- ...on => FarmBeatsModels_CreateOrUpdate.json} | 4 +- ...elete.json => FarmBeatsModels_Delete.json} | 0 ...eats_get.json => FarmBeatsModels_Get.json} | 0 ... FarmBeatsModels_ListByResourceGroup.json} | 0 ...> FarmBeatsModels_ListBySubscription.json} | 0 ...pdate.json => FarmBeatsModels_Update.json} | 2 +- ..._CheckNameAvailability_AlreadyExists.json} | 2 +- ...ions_CheckNameAvailability_Available.json} | 2 +- .../examples/Operations_List.json | 94 ++ .../examples/operations_list.json | 64 -- .../agfood/resource-manager/readme.md | 12 + 17 files changed, 541 insertions(+), 544 deletions(-) rename specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/examples/{farmbeats_extensions_install.json => Extensions_Create.json} (96%) rename specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/examples/{farmbeats_extensions_uninstall.json => Extensions_Delete.json} (100%) rename specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/examples/{farmbeats_extensions_get.json => Extensions_Get.json} (96%) rename specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/examples/{farmbeats_extensions_listByFarmBeats.json => Extensions_ListByFarmBeats.json} (96%) rename specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/examples/{farmbeats_extensions_upgrade.json => Extensions_Update.json} (96%) rename specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/examples/{farmbeats_createOrUpdate.json => FarmBeatsModels_CreateOrUpdate.json} (96%) rename specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/examples/{farmbeats_delete.json => FarmBeatsModels_Delete.json} (100%) rename specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/examples/{farmbeats_get.json => FarmBeatsModels_Get.json} (100%) rename specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/examples/{farmbeats_ListByResourceGroup.json => FarmBeatsModels_ListByResourceGroup.json} (100%) rename specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/examples/{farmbeats_ListBySubscription.json => FarmBeatsModels_ListBySubscription.json} (100%) rename specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/examples/{farmbeats_update.json => FarmBeatsModels_Update.json} (97%) rename specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/examples/{locationCheckNameAvailability_AlreadyExists.json => Locations_CheckNameAvailability_AlreadyExists.json} (95%) rename specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/examples/{locationCheckNameAvailability_Available.json => Locations_CheckNameAvailability_Available.json} (93%) create mode 100644 specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/examples/Operations_List.json delete mode 100644 specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/examples/operations_list.json diff --git a/specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/agfood.json b/specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/agfood.json index 2d985d397fb8..b4ee1adae39b 100644 --- a/specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/agfood.json +++ b/specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/agfood.json @@ -1,37 +1,9 @@ { "swagger": "2.0", "info": { - "version": "2020-05-12-preview", - "title": "AgFoodPlatformClient", - "description": "API's to manage agriculture and food industry data." - }, - "host": "management.azure.com", - "schemes": [ - "https" - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "security": [ - { - "azure_auth": [ - "user_impersonation" - ] - } - ], - "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" - } - } + "title": "Azure AgFoodPlatform RP Service", + "description": "APIs documentation for Azure AgFoodPlatform Resource Provider Service.", + "version": "2020-05-12-preview" }, "paths": { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgFoodPlatform/farmBeats/{farmBeatsResourceName}/extensions/{extensionId}": { @@ -41,29 +13,24 @@ ], "description": "Install extension.", "operationId": "Extensions_Create", - "x-ms-examples": { - "Extensions_Install": { - "$ref": "./examples/farmbeats_extensions_install.json" - } - }, "produces": [ "application/json" ], "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "$ref": "#/parameters/ExtensionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "#/parameters/FarmBeatsResourceNameParameter" }, { "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/FarmBeatsResourceNameParameter" + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/ExtensionIdParameter" + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -79,6 +46,11 @@ "$ref": "#/definitions/ErrorResponse" } } + }, + "x-ms-examples": { + "Extensions_Create": { + "$ref": "./examples/Extensions_Create.json" + } } }, "get": { @@ -87,29 +59,24 @@ ], "description": "Get installed extension details by extension id.", "operationId": "Extensions_Get", - "x-ms-examples": { - "Extensions_Get": { - "$ref": "./examples/farmbeats_extensions_get.json" - } - }, "produces": [ "application/json" ], "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "$ref": "#/parameters/ExtensionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "#/parameters/FarmBeatsResourceNameParameter" }, { "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/FarmBeatsResourceNameParameter" + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/ExtensionIdParameter" + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -125,6 +92,11 @@ "$ref": "#/definitions/ErrorResponse" } } + }, + "x-ms-examples": { + "Extensions_Get": { + "$ref": "./examples/Extensions_Get.json" + } } }, "patch": { @@ -133,29 +105,24 @@ ], "description": "Upgrade to latest extension.", "operationId": "Extensions_Update", - "x-ms-examples": { - "Extensions_Upgrade": { - "$ref": "./examples/farmbeats_extensions_upgrade.json" - } - }, "produces": [ "application/json" ], "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "$ref": "#/parameters/ExtensionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "#/parameters/FarmBeatsResourceNameParameter" }, { "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/FarmBeatsResourceNameParameter" + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/ExtensionIdParameter" + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -171,6 +138,11 @@ "$ref": "#/definitions/ErrorResponse" } } + }, + "x-ms-examples": { + "Extensions_Update": { + "$ref": "./examples/Extensions_Update.json" + } } }, "delete": { @@ -179,44 +151,44 @@ ], "description": "Uninstall extension.", "operationId": "Extensions_Delete", - "x-ms-examples": { - "Extensions_Uninstall": { - "$ref": "./examples/farmbeats_extensions_uninstall.json" - } - }, "produces": [ "application/json" ], "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "$ref": "#/parameters/ExtensionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "#/parameters/FarmBeatsResourceNameParameter" }, { "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/FarmBeatsResourceNameParameter" + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/ExtensionIdParameter" + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" } ], "responses": { - "204": { - "description": "Not Found" - }, "200": { "description": "Success" }, + "204": { + "description": "Success" + }, "default": { "description": "Error", "schema": { "$ref": "#/definitions/ErrorResponse" } } + }, + "x-ms-examples": { + "Extensions_Delete": { + "$ref": "./examples/Extensions_Delete.json" + } } } }, @@ -225,28 +197,20 @@ "tags": [ "Extensions" ], - "description": "Get installed extensions details by FarmBeats resource.", + "description": "Get installed extensions details.", "operationId": "Extensions_ListByFarmBeats", - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, - "x-ms-examples": { - "Extensions_ListByFarmBeats": { - "$ref": "./examples/farmbeats_extensions_listByFarmBeats.json" - } - }, "produces": [ "application/json" ], "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" }, { "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" }, { "$ref": "#/parameters/FarmBeatsResourceNameParameter" @@ -254,12 +218,12 @@ { "in": "query", "name": "extensionId", - "description": "Id of the extension.", + "description": "Id of extension proxy resource.", "type": "string" }, { "in": "query", - "name": "category", + "name": "extensionCategory", "description": "Category of extension (weather/sensor/satellite etc.).", "type": "string", "maxLength": 50, @@ -295,122 +259,90 @@ "$ref": "#/definitions/ErrorResponse" } } - } - } - }, - "/providers/Microsoft.AgFoodPlatform/operations": { - "get": { - "tags": [ - "Operations" - ], - "description": "Lists the available operations of Microsoft.AgFoodPlatform resource provider.", - "operationId": "Operations_List", + }, "x-ms-pageable": { "nextLinkName": "nextLink" }, "x-ms-examples": { - "Operations_List": { - "$ref": "./examples/operations_list.json" - } - }, - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "Success.", - "schema": { - "$ref": "#/definitions/OperationListResponse" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } + "Extensions_ListByFarmBeats": { + "$ref": "./examples/Extensions_ListByFarmBeats.json" } } } }, - "/subscriptions/{subscriptionId}/providers/Microsoft.AgFoodPlatform/checkNameAvailability": { - "post": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgFoodPlatform/farmBeats/{farmBeatsResourceName}": { + "get": { "tags": [ - "Locations" + "FarmBeatsModels" + ], + "description": "Get FarmBeats resource.", + "operationId": "FarmBeatsModels_Get", + "produces": [ + "application/json" ], - "operationId": "Locations_CheckNameAvailability", - "x-ms-examples": { - "LocationCheckNameAvailability_Available": { - "$ref": "./examples/locationCheckNameAvailability_Available.json" - }, - "LocationCheckNameAvailability_AlreadyExists": { - "$ref": "./examples/locationCheckNameAvailability_AlreadyExists.json" - } - }, - "description": "To check whether a resource name is available.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" }, { "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" }, { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/NameAvailabilityRequest" - }, - "description": "Name availability request payload." + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/FarmBeatsResourceNameParameter" } ], "responses": { "200": { - "description": "Success. Returns details about whether a Farmbeats instance is available.", + "description": "Success", "schema": { - "$ref": "#/definitions/CheckNameAvailabilityResult" + "$ref": "#/definitions/FarmBeats" } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "Error", "schema": { "$ref": "#/definitions/ErrorResponse" } } + }, + "x-ms-examples": { + "FarmBeatsModels_Get": { + "$ref": "./examples/FarmBeatsModels_Get.json" + } } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgFoodPlatform/farmBeats/{farmBeatsResourceName}": { + }, "put": { "tags": [ - "FarmBeatsModel" + "FarmBeatsModels" ], + "description": "Create or update FarmBeats resource.", "operationId": "FarmBeatsModels_CreateOrUpdate", - "description": "Creates or update a FarmBeats resource.", - "x-ms-examples": { - "FarmBeats_Create": { - "$ref": "./examples/farmbeats_createOrUpdate.json" - } - }, + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "$ref": "#/parameters/FarmBeatsResourceNameParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/FarmBeatsResourceNameParameter" + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" }, { - "name": "farmBeatsCreateOrUpdateRequest", - "description": "FarmBeats resource create or update request object.", "in": "body", + "name": "body", + "description": "FarmBeats resource create or update request object.", "required": true, "schema": { "$ref": "#/definitions/FarmBeats" @@ -419,96 +351,62 @@ ], "responses": { "200": { - "description": "FarmBeats resource was updated successfully. Check provisioningStatus to see detailed status.", + "description": "Success", "schema": { "$ref": "#/definitions/FarmBeats" } }, "201": { - "description": "FarmBeats resource was created successfully. Check provisioningStatus to see detailed status.", + "description": "Success", "schema": { "$ref": "#/definitions/FarmBeats" } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "Error", "schema": { "$ref": "#/definitions/ErrorResponse" } } - } - }, - "get": { - "tags": [ - "FarmBeatsModel" - ], - "operationId": "FarmBeatModels_Get", - "description": "Get a FarmBeats resource by identified name.", - "x-ms-examples": { - "FarmBeats_Get": { - "$ref": "./examples/farmbeats_get.json" - } }, - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/FarmBeatsResourceNameParameter" - } - ], - "responses": { - "200": { - "description": "Success", - "schema": { - "$ref": "#/definitions/FarmBeats" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } + "x-ms-examples": { + "FarmBeatsModels_CreateOrUpdate": { + "$ref": "./examples/FarmBeatsModels_CreateOrUpdate.json" } } }, "patch": { "tags": [ - "FarmBeatsModel" + "FarmBeatsModels" ], + "description": "Update a FarmBeats resource.", "operationId": "FarmBeatsModels_Update", - "description": "Incrementally updates FarmBeats resource by identified name.", - "x-ms-examples": { - "FarmBeats_Update": { - "$ref": "./examples/farmbeats_update.json" - } - }, + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "$ref": "#/parameters/FarmBeatsResourceNameParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/FarmBeatsResourceNameParameter" + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" }, { - "name": "farmBeatsUpdateRequest", - "description": "FarmBeats resource update request object.", "in": "body", + "name": "body", + "description": "Request object.", "required": true, "schema": { - "$ref": "#/definitions/FarmBeatsUpdateParameters" + "$ref": "#/definitions/FarmBeatsUpdateRequestModel" } } ], @@ -520,33 +418,36 @@ } }, "default": { - "description": "Error.", + "description": "Error", "schema": { "$ref": "#/definitions/ErrorResponse" } } + }, + "x-ms-examples": { + "FarmBeatsModels_Update": { + "$ref": "./examples/FarmBeatsModels_Update.json" + } } }, "delete": { "tags": [ - "FarmBeatsModel" + "FarmBeatsModels" ], + "description": "Delete a FarmBeats resource.", "operationId": "FarmBeatsModels_Delete", - "description": "Removes FarmBeats resource identified by name.", - "x-ms-examples": { - "FarmBeats_Delete": { - "$ref": "./examples/farmbeats_delete.json" - } - }, + "produces": [ + "application/json" + ], "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" }, { "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" }, { "$ref": "#/parameters/FarmBeatsResourceNameParameter" @@ -554,47 +455,68 @@ ], "responses": { "200": { - "description": "The specified resource was deleted successfully." + "description": "Success" }, "204": { - "description": "The specified resource does not exist in the subscription." + "description": "Success" }, "default": { - "description": "Error response describing why the operation failed.", + "description": "Error", "schema": { "$ref": "#/definitions/ErrorResponse" } } + }, + "x-ms-examples": { + "FarmBeatsModels_Delete": { + "$ref": "./examples/FarmBeatsModels_Delete.json" + } } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgFoodPlatform/farmBeats": { + "/subscriptions/{subscriptionId}/providers/Microsoft.AgFoodPlatform/farmBeats": { "get": { "tags": [ - "FarmBeatsModel" + "FarmBeatsModels" + ], + "description": "Lists the FarmBeats instances for a subscription.", + "operationId": "FarmBeatsModels_ListBySubscription", + "produces": [ + "application/json" ], - "description": "Lists the FarmBeats instances for a resource group.", - "operationId": "FarmBeatsModels_ListByResourceGroup", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "in": "query", + "name": "$maxPageSize", + "description": "Maximum number of items needed (inclusive).\r\nMinimum = 10, Maximum = 1000, Default value = 50.", + "type": "integer", + "format": "int32", + "default": 50, + "maximum": 1000, + "minimum": 10 + }, + { + "in": "query", + "name": "$skipToken", + "description": "Skip token for getting next set of results.", + "type": "string" }, { "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" } ], "responses": { "200": { "description": "Success", "schema": { - "$ref": "#/definitions/FarmBeatsCollection" + "$ref": "#/definitions/FarmBeatsListResponse" } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "Error", "schema": { "$ref": "#/definitions/ErrorResponse" } @@ -604,36 +526,58 @@ "nextLinkName": "nextLink" }, "x-ms-examples": { - "FarmBeats_ListByResourceGroup": { - "$ref": "./examples/farmbeats_ListByResourceGroup.json" + "FarmBeatsModels_ListBySubscription": { + "$ref": "./examples/FarmBeatsModels_ListBySubscription.json" } } } }, - "/subscriptions/{subscriptionId}/providers/Microsoft.AgFoodPlatform/farmBeats": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgFoodPlatform/farmBeats": { "get": { "tags": [ - "FarmBeatsModel" + "FarmBeatsModels" + ], + "description": "Lists the FarmBeats instances for a resource group.", + "operationId": "FarmBeatsModels_ListByResourceGroup", + "produces": [ + "application/json" ], - "description": "Lists the FarmBeats instances for a subscription.", - "operationId": "FarmBeatsModel_ListBySubscription", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "in": "query", + "name": "$maxPageSize", + "description": "Maximum number of items needed (inclusive).\r\nMinimum = 10, Maximum = 1000, Default value = 50.", + "type": "integer", + "format": "int32", + "default": 50, + "maximum": 1000, + "minimum": 10 + }, + { + "in": "query", + "name": "$skipToken", + "description": "Continuation token for getting next set of results.", + "type": "string" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" }, { "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" } ], "responses": { "200": { "description": "Success", "schema": { - "$ref": "#/definitions/FarmBeatsCollection" + "$ref": "#/definitions/FarmBeatsListResponse" } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "Error", "schema": { "$ref": "#/definitions/ErrorResponse" } @@ -643,77 +587,125 @@ "nextLinkName": "nextLink" }, "x-ms-examples": { - "FarmBeats_ListBySubscription": { - "$ref": "./examples/farmbeats_ListBySubscription.json" + "FarmBeatsModels_ListByResourceGroup": { + "$ref": "./examples/FarmBeatsModels_ListByResourceGroup.json" } } } - } - }, - "definitions": { - "Extension": { - "type": "object", - "description": "Api Model for Extension object.", - "properties": { - "properties": { - "description": "Extension Properties.", - "$ref": "#/definitions/ExtensionProperties", - "x-ms-client-flatten": true - }, - "systemData": { - "readOnly": true, - "description": "The system meta data relating to this resource.", - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/systemData" + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.AgFoodPlatform/checkNameAvailability": { + "post": { + "tags": [ + "Locations" + ], + "description": "Checks the name availability of the resource with requested resource name.", + "operationId": "Locations_CheckNameAvailability", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "in": "body", + "name": "body", + "description": "NameAvailabilityRequest object.", + "required": true, + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/CheckNameAvailabilityRequest" + } + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/CheckNameAvailabilityResponse" + } + }, + "default": { + "description": "Error", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } }, - "eTag": { - "description": "The ETag value to implement optimistic concurrency.", - "type": "string", - "readOnly": true - } - }, - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ProxyResource" + "x-ms-examples": { + "Locations_CheckNameAvailability_AlreadyExists": { + "$ref": "./examples/Locations_CheckNameAvailability_AlreadyExists.json" + }, + "Locations_CheckNameAvailability_Available": { + "$ref": "./examples/Locations_CheckNameAvailability_Available.json" + } } - ], - "x-ms-azure-resource": true + } }, - "ExtensionListResponse": { - "description": "Paged response contains list of requested objects and a URL link to get the next set of results.", - "type": "object", - "properties": { - "value": { - "description": "List of requested objects.", - "type": "array", - "items": { - "$ref": "#/definitions/Extension" + "/providers/Microsoft.AgFoodPlatform/operations": { + "get": { + "tags": [ + "Operations" + ], + "description": "Lists the available operations of Microsoft.AgFoodPlatform resource provider.", + "operationId": "Operations_List", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/OperationListResult" + } + }, + "default": { + "description": "Error", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } } }, - "$skipToken": { - "description": "Token used in retrieving the next page. If null, there are no additional pages.", - "type": "string" + "x-ms-pageable": { + "nextLinkName": "nextLink" }, - "nextLink": { - "description": "Continuation link (absolute URI) to the next page of results in the list.", - "type": "string" + "x-ms-examples": { + "Operations_List": { + "$ref": "./examples/Operations_List.json" + } } } - }, + } + }, + "definitions": { "ExtensionProperties": { - "description": "Extension proxy resource properties object.", + "description": "Extension Proxy Resource properties.", "type": "object", "properties": { - "category": { - "description": "Category of the extension. e.g. weather/sensor/satellite.", - "maxLength": 100, - "minLength": 2, + "extensionId": { + "description": "Extension Id.", + "pattern": "^[A-za-z]{3,50}[.][A-za-z]{3,100}$", + "type": "string", + "readOnly": true + }, + "extensionCategory": { + "description": "Extension category. e.g. weather/sensor/satellite.", "type": "string", "readOnly": true }, "installedExtensionVersion": { "description": "Installed extension version.", - "maxLength": 100, - "minLength": 2, + "pattern": "^([1-9]|10).\\d$", "type": "string", "readOnly": true }, @@ -729,159 +721,125 @@ } } }, - "Operation": { - "description": "Resources and supported operations on them.", - "type": "object", - "properties": { - "name": { - "description": "Operation name: {provider}/{resource}/{read | write | action | delete}", - "type": "string", - "readOnly": true - }, - "isDataAction": { - "description": "A boolean value indicating whether the operation is a data action or not.", - "type": "boolean", - "readOnly": true - }, - "display": { - "description": "Operation display payload which is exposed in the response of the resource provider.", - "properties": { - "provider": { - "description": "Name of the provider for display purposes.", - "type": "string", - "readOnly": true - }, - "resource": { - "description": "Name of the resource type for display purposes.", - "type": "string", - "readOnly": true - }, - "operation": { - "description": "Name of the operation for display purposes.", - "type": "string", - "readOnly": true - }, - "description": { - "description": "Description of the operation for display purposes.", - "type": "string", - "readOnly": true - } - } - } - } - }, - "OperationListResponse": { - "description": "Result of the request to list AgFoodPlatform operations. It contains a list of resources and supported operations on them and a URL link to get the next set of results.", + "ErrorResponse": { + "description": "An error response from the service.", "type": "object", "properties": { - "value": { - "description": "List of resources and supported operations by the Microsoft.AgFoodPlatform resource provider.", - "type": "array", - "items": { - "$ref": "#/definitions/Operation" - } - }, - "nextLink": { - "description": "URL to get the next set of operation list results if there are any.", - "type": "string" + "error": { + "description": "The error object", + "$ref": "#/definitions/ErrorResponseBody" } } }, - "NameAvailabilityRequest": { - "description": "Parameters body to pass for name availability check.", + "ErrorResponseBody": { "properties": { - "name": { + "code": { + "readOnly": true, "type": "string", - "description": "Resource name to check." + "description": "The error code." }, - "type": { - "type": "string", - "description": "Resource type to check." - } - }, - "required": [ - "name", - "type" - ] - }, - "CheckNameAvailabilityResult": { - "properties": { - "nameAvailable": { + "message": { "readOnly": true, - "type": "boolean", - "description": "Gets a boolean value that indicates whether the name is available for you to use. If true, the name is available. If false, the name has already been taken or invalid and cannot be used." + "type": "string", + "description": "The error message." }, - "reason": { + "target": { "readOnly": true, "type": "string", - "enum": [ - "Invalid", - "AlreadyExists" - ], - "x-ms-enum": { - "name": "NameAvailabilityReason", - "modelAsString": true + "description": "The error target." + }, + "details": { + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/ErrorResponseBody" }, - "description": "Gets the reason that a given resource name could not be used. The 'reason' element is returned only if 'nameAvailable' is false." + "description": "The error details." }, - "message": { + "additionalInfo": { "readOnly": true, - "type": "string", - "description": "Gets an error message explaining the 'reason' value in more detail." + "type": "array", + "items": { + "$ref": "#/definitions/ErrorAdditionalInfo" + }, + "description": "The error additional info." } }, - "description": "The CheckNameAvailability operation response." + "description": "The resource management error response." }, - "FarmBeatsUpdateParameters": { - "description": "Parameters used to update an existing FarmBeats resource.", - "type": "object", + "ErrorAdditionalInfo": { "properties": { - "tags": { + "type": { + "readOnly": true, + "type": "string", + "description": "The additional info type." + }, + "info": { + "readOnly": true, "type": "object", + "description": "The additional info.", "additionalProperties": { "type": "string" - }, - "description": "A list of key value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key no greater than 128 characters and value no greater than 256 characters." + } } - } + }, + "description": "The resource management error additional info." }, - "FarmBeats": { - "description": "FarmBeats resource object.", + "Extension": { + "description": "Extension proxy resource.", "type": "object", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ProxyResource" + } + ], "properties": { + "systemData": { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/systemData" + }, "properties": { - "description": "FarmBeats Properties.", - "$ref": "#/definitions/FarmBeatsProperties", + "$ref": "#/definitions/ExtensionProperties", "x-ms-client-flatten": true }, - "systemData": { - "readOnly": true, - "description": "The system meta data relating to this resource.", - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/systemData" + "eTag": { + "description": "The ETag value to implement optimistic concurrency.", + "type": "string", + "readOnly": true } }, - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/TrackedResource" - } - ], "x-ms-azure-resource": true }, + "ExtensionListResponse": { + "description": "Paged response contains list of requested objects and a URL link to get the next set of results.", + "type": "object", + "properties": { + "value": { + "description": "List of requested objects.", + "type": "array", + "items": { + "$ref": "#/definitions/Extension" + } + }, + "nextLink": { + "description": "Continuation link (absolute URI) to the next page of results in the list.", + "type": "string", + "readOnly": true + } + } + }, "FarmBeatsProperties": { - "description": "FarmBeats resource properties object.", + "description": "FarmBeats ARM Resource properties.", "type": "object", "properties": { "instanceUri": { - "type": "string", + "format": "uri", "description": "Uri of the FarmBeats instance.", + "type": "string", "readOnly": true }, "provisioningState": { "description": "FarmBeats instance provisioning state.", "enum": [ - "Creating", - "Updating", - "Deleting", "Succeeded", "Failed" ], @@ -894,105 +852,102 @@ } } }, - "FarmBeatsCollection": { - "description": "Collection of the FarmBeats payload which is exposed in the request/response of the resource provider.", + "FarmBeats": { + "description": "FarmBeats ARM Resource.", "type": "object", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/TrackedResource" + } + ], "properties": { - "value": { - "description": "The collection of FarmBeats instances.", - "uniqueItems": false, - "type": "array", - "items": { - "$ref": "#/definitions/FarmBeats" - } + "systemData": { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/systemData" }, - "nextLink": { - "description": "Gets or sets the URL, that the client should use to fetch the next page (per server side paging).\r\nIt's null for now, added for future use.", - "type": "string" + "properties": { + "$ref": "#/definitions/FarmBeatsProperties", + "x-ms-client-flatten": true } - } + }, + "x-ms-azure-resource": true }, - "ErrorResponse": { - "description": "An error response from the service.", + "FarmBeatsUpdateRequestModel": { + "description": "FarmBeats update request.", "type": "object", "properties": { - "error": { - "description": "The error object", - "$ref": "#/definitions/ErrorResponseBody" + "tags": { + "description": "Resource tags.", + "type": "object", + "additionalProperties": { + "type": "string" + } } } }, - "ErrorResponseBody": { + "FarmBeatsListResponse": { + "description": "Paged response contains list of requested objects and a URL link to get the next set of results.", + "type": "object", "properties": { - "code": { - "readOnly": true, - "type": "string", - "description": "The error code." - }, - "message": { - "readOnly": true, - "type": "string", - "description": "The error message." - }, - "target": { - "readOnly": true, - "type": "string", - "description": "The error target." - }, - "details": { - "readOnly": true, + "value": { + "description": "List of requested objects.", "type": "array", + "uniqueItems": false, "items": { - "$ref": "#/definitions/ErrorResponseBody" - }, - "description": "The error details." + "$ref": "#/definitions/FarmBeats" + } }, - "additionalInfo": { - "readOnly": true, - "type": "array", - "items": { - "$ref": "#/definitions/ErrorAdditionalInfo" - }, - "description": "The error additional info." - } - }, - "description": "The resource management error response." - }, - "ErrorAdditionalInfo": { - "properties": { - "type": { - "readOnly": true, + "nextLink": { + "description": "Continuation link (absolute URI) to the next page of results in the list.", "type": "string", - "description": "The additional info type." - }, - "info": { - "readOnly": true, - "type": "object", - "description": "The additional info.", - "additionalProperties": { - "type": "string" - } + "readOnly": true } - }, - "description": "The resource management error additional info." + } } }, "parameters": { "FarmBeatsResourceNameParameter": { - "description": "FarmBeats resource name.", - "name": "farmBeatsResourceName", "in": "path", + "name": "farmBeatsResourceName", + "description": "FarmBeats resource name.", "required": true, "type": "string", "x-ms-parameter-location": "method" }, "ExtensionIdParameter": { - "description": "Id of extension proxy resource.", - "name": "extensionId", "in": "path", + "name": "extensionId", + "description": "Id of extension proxy resource.", "required": true, "type": "string", "x-ms-parameter-location": "method" } - } + }, + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "flow": "implicit", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "scopes": { + "user_impersonation": "impersonate your user account" + }, + "description": "Azure Active Directory OAuth2 Flow." + } + }, + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "host": "management.azure.com", + "schemes": [ + "https" + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] } diff --git a/specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/examples/farmbeats_extensions_install.json b/specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/examples/Extensions_Create.json similarity index 96% rename from specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/examples/farmbeats_extensions_install.json rename to specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/examples/Extensions_Create.json index 31ee675b03cf..1bf3fe863980 100644 --- a/specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/examples/farmbeats_extensions_install.json +++ b/specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/examples/Extensions_Create.json @@ -22,7 +22,7 @@ }, "eTag": "7200b954-0000-0700-0000-603cbbc40000", "properties": { - "category": "Weather", + "extensionCategory": "Weather", "installedExtensionVersion": "1.0", "extensionAuthLink": "https://www.provider.com/extension/", "extensionApiDocsLink": "https://docs.provider.com/documentation/extension" diff --git a/specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/examples/farmbeats_extensions_uninstall.json b/specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/examples/Extensions_Delete.json similarity index 100% rename from specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/examples/farmbeats_extensions_uninstall.json rename to specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/examples/Extensions_Delete.json diff --git a/specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/examples/farmbeats_extensions_get.json b/specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/examples/Extensions_Get.json similarity index 96% rename from specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/examples/farmbeats_extensions_get.json rename to specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/examples/Extensions_Get.json index 900ac7ebfde3..a9fd49929933 100644 --- a/specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/examples/farmbeats_extensions_get.json +++ b/specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/examples/Extensions_Get.json @@ -22,7 +22,7 @@ }, "eTag": "7200b954-0000-0700-0000-603cbbc40000", "properties": { - "category": "Weather", + "extensionCategory": "Weather", "installedExtensionVersion": "1.0", "extensionAuthLink": "https://www.provider.com/extension/", "extensionApiDocsLink": "https://docs.provider.com/documentation/extension" diff --git a/specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/examples/farmbeats_extensions_listByFarmBeats.json b/specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/examples/Extensions_ListByFarmBeats.json similarity index 96% rename from specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/examples/farmbeats_extensions_listByFarmBeats.json rename to specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/examples/Extensions_ListByFarmBeats.json index 1797877afcb6..c3e1f3b78402 100644 --- a/specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/examples/farmbeats_extensions_listByFarmBeats.json +++ b/specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/examples/Extensions_ListByFarmBeats.json @@ -24,7 +24,7 @@ }, "eTag": "7200b954-0000-0700-0000-603cbbc40000", "properties": { - "category": "Weather", + "extensionCategory": "Weather", "installedExtensionVersion": "1.0", "extensionAuthLink": "https://www.provider.com/extension/", "extensionApiDocsLink": "https://docs.provider.com/documentation/extension" diff --git a/specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/examples/farmbeats_extensions_upgrade.json b/specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/examples/Extensions_Update.json similarity index 96% rename from specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/examples/farmbeats_extensions_upgrade.json rename to specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/examples/Extensions_Update.json index 25c9e5ed91d7..2d08b1b5f6d3 100644 --- a/specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/examples/farmbeats_extensions_upgrade.json +++ b/specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/examples/Extensions_Update.json @@ -22,7 +22,7 @@ }, "eTag": "7200b954-0000-0700-0000-603cbbc40000", "properties": { - "category": "Weather", + "extensionCategory": "Weather", "installedExtensionVersion": "2.0", "extensionAuthLink": "https://www.provider.com/extension/", "extensionApiDocsLink": "https://docs.provider.com/documentation/extension" diff --git a/specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/examples/farmbeats_createOrUpdate.json b/specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/examples/FarmBeatsModels_CreateOrUpdate.json similarity index 96% rename from specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/examples/farmbeats_createOrUpdate.json rename to specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/examples/FarmBeatsModels_CreateOrUpdate.json index 2d76da431d8d..5613d21df6f7 100644 --- a/specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/examples/farmbeats_createOrUpdate.json +++ b/specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/examples/FarmBeatsModels_CreateOrUpdate.json @@ -4,7 +4,7 @@ "subscriptionId": "11111111-2222-3333-4444-555555555555", "resourceGroupName": "examples-rg", "farmBeatsResourceName": "examples-farmbeatsResourceName", - "farmBeatsCreateOrUpdateRequest": { + "body": { "location": "eastus2", "tags": { "key1": "value1", @@ -57,7 +57,7 @@ }, "properties": { "instanceUri": "https://examples-farmbeatsResourceName.eastus2.farmbeats.azure.net", - "provisioningState": "Creating" + "provisioningState": "Failed" } } } diff --git a/specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/examples/farmbeats_delete.json b/specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/examples/FarmBeatsModels_Delete.json similarity index 100% rename from specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/examples/farmbeats_delete.json rename to specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/examples/FarmBeatsModels_Delete.json diff --git a/specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/examples/farmbeats_get.json b/specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/examples/FarmBeatsModels_Get.json similarity index 100% rename from specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/examples/farmbeats_get.json rename to specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/examples/FarmBeatsModels_Get.json diff --git a/specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/examples/farmbeats_ListByResourceGroup.json b/specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/examples/FarmBeatsModels_ListByResourceGroup.json similarity index 100% rename from specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/examples/farmbeats_ListByResourceGroup.json rename to specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/examples/FarmBeatsModels_ListByResourceGroup.json diff --git a/specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/examples/farmbeats_ListBySubscription.json b/specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/examples/FarmBeatsModels_ListBySubscription.json similarity index 100% rename from specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/examples/farmbeats_ListBySubscription.json rename to specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/examples/FarmBeatsModels_ListBySubscription.json diff --git a/specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/examples/farmbeats_update.json b/specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/examples/FarmBeatsModels_Update.json similarity index 97% rename from specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/examples/farmbeats_update.json rename to specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/examples/FarmBeatsModels_Update.json index d9ed608c6f64..91916585be34 100644 --- a/specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/examples/farmbeats_update.json +++ b/specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/examples/FarmBeatsModels_Update.json @@ -4,7 +4,7 @@ "subscriptionId": "11111111-2222-3333-4444-555555555555", "resourceGroupName": "examples-rg", "farmBeatsResourceName": "examples-farmBeatsResourceName", - "farmBeatsUpdateRequest": { + "body": { "tags": { "key1": "value1", "key2": "value2" diff --git a/specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/examples/locationCheckNameAvailability_AlreadyExists.json b/specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/examples/Locations_CheckNameAvailability_AlreadyExists.json similarity index 95% rename from specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/examples/locationCheckNameAvailability_AlreadyExists.json rename to specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/examples/Locations_CheckNameAvailability_AlreadyExists.json index f21d491f89a5..67af64832527 100644 --- a/specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/examples/locationCheckNameAvailability_AlreadyExists.json +++ b/specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/examples/Locations_CheckNameAvailability_AlreadyExists.json @@ -2,7 +2,7 @@ "parameters": { "api-version": "2020-05-12-preview", "subscriptionId": "11111111-2222-3333-4444-555555555555", - "parameters": { + "body": { "name": "existingaccountname", "type": "Microsoft.AgFoodPlatform/farmBeats" } diff --git a/specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/examples/locationCheckNameAvailability_Available.json b/specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/examples/Locations_CheckNameAvailability_Available.json similarity index 93% rename from specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/examples/locationCheckNameAvailability_Available.json rename to specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/examples/Locations_CheckNameAvailability_Available.json index e1d9fd8fade4..c515d3f3c2be 100644 --- a/specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/examples/locationCheckNameAvailability_Available.json +++ b/specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/examples/Locations_CheckNameAvailability_Available.json @@ -2,7 +2,7 @@ "parameters": { "api-version": "2020-05-12-preview", "subscriptionId": "11111111-2222-3333-4444-555555555555", - "parameters": { + "body": { "name": "newaccountname", "type": "Microsoft.AgFoodPlatform/farmBeats" } diff --git a/specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/examples/Operations_List.json b/specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/examples/Operations_List.json new file mode 100644 index 000000000000..a80bbb8e33d4 --- /dev/null +++ b/specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/examples/Operations_List.json @@ -0,0 +1,94 @@ +{ + "parameters": { + "api-version": "2020-05-12-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "Microsoft.AgFoodPlatform/farmBeats/read", + "isDataAction": false, + "display": { + "provider": "Microsoft AgFoodPlatform", + "resource": "AgFoodPlatform FarmBeats", + "operation": "Get or List AgFoodPlatform FarmBeats resource(s).", + "description": "Gets or Lists existing AgFoodPlatform FarmBeats resource(s)." + } + }, + { + "name": "Microsoft.AgFoodPlatform/farmBeats/write", + "isDataAction": false, + "display": { + "provider": "Microsoft AgFoodPlatform", + "resource": "AgFoodPlatform FarmBeats", + "operation": "Create or Update AgFoodPlatform FarmBeats.", + "description": "Creates or Updates AgFoodPlatform FarmBeats." + } + }, + { + "name": "Microsoft.AgFoodPlatform/farmBeats/delete", + "isDataAction": false, + "display": { + "provider": "Microsoft AgFoodPlatform", + "resource": "AgFoodPlatform FarmBeats", + "operation": "Delete AgFoodPlatform FarmBeats resource.", + "description": "Deletes an existing AgFoodPlatform FarmBeats resource." + } + }, + { + "name": "Microsoft.AgFoodPlatform/locations/checkNameAvailability/action", + "isDataAction": false, + "display": { + "provider": "Microsoft AgFoodPlatform", + "resource": "Locations", + "operation": "Check Name Availability", + "description": "Checks that resource name is valid and is not in use." + } + }, + { + "name": "Microsoft.AgFoodPlatform/operations/read", + "isDataAction": false, + "display": { + "provider": "Microsoft AgFoodPlatform", + "resource": "List all operations in Microsoft AgFoodPlatform resource provider.", + "operation": "List all operations.", + "description": "List all operations in Microsoft AgFoodPlatform resource provider." + } + }, + { + "name": "Microsoft.AgFoodPlatform/farmBeats/extensions/read", + "isDataAction": false, + "display": { + "provider": "Microsoft AgFoodPlatform", + "resource": "AgFoodPlatform Extensions", + "operation": "Get or List AgFoodPlatform Extensions resource(s).", + "description": "Gets or Lists existing AgFoodPlatform Extensions resource(s)." + } + }, + { + "name": "Microsoft.AgFoodPlatform/farmBeats/extensions/write", + "isDataAction": false, + "display": { + "provider": "Microsoft AgFoodPlatform", + "resource": "AgFoodPlatform Extensions", + "operation": "Create or Update AgFoodPlatform Extensions.", + "description": "Creates or Updates AgFoodPlatform Extensions." + } + }, + { + "name": "Microsoft.AgFoodPlatform/farmBeats/extensions/delete", + "isDataAction": false, + "display": { + "provider": "Microsoft AgFoodPlatform", + "resource": "AgFoodPlatform Extensions", + "operation": "Delete AgFoodPlatform Extensions resource.", + "description": "Deletes an existing AgFoodPlatform Extensions resource." + } + } + ], + "nextLink": "https://management.azure.com/providers/Microsoft.AgFoodPlatform/operations?$skiptoken={token}" + } + } + } +} diff --git a/specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/examples/operations_list.json b/specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/examples/operations_list.json deleted file mode 100644 index a7408fca6a6a..000000000000 --- a/specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/examples/operations_list.json +++ /dev/null @@ -1,64 +0,0 @@ -{ - "parameters": { - "api-version": "2020-05-12-preview" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "Microsoft.AgFoodPlatform/farmBeats/read", - "isDataAction": false, - "display": { - "provider": "Microsoft AgFoodPlatform", - "resource": "farmBeats", - "operation": "Get FarmBeats", - "description": "Gets the FarmBeats resource" - } - }, - { - "name": "Microsoft.AgFoodPlatform/farmBeats/write", - "isDataAction": false, - "display": { - "provider": "Microsoft AgFoodPlatform", - "resource": "farmBeats", - "operation": "Create or update FarmBeats Resource", - "description": "Create or update FarmBeats Resource" - } - }, - { - "name": "Microsoft.AgFoodPlatform/farmBeats/delete", - "isDataAction": false, - "display": { - "provider": "Microsoft AgFoodPlatform", - "resource": "farmBeats", - "operation": "Delete FarmBeats Resource", - "description": "Delete FarmBeats Resource" - } - }, - { - "name": "Microsoft.AgFoodPlatform/locations/checkNameAvailability/action", - "isDataAction": false, - "display": { - "provider": "Microsoft AgFoodPlatform", - "resource": "Locations", - "operation": "Check Name Availability", - "description": "Checks that resource name is valid and is not in use." - } - }, - { - "name": "Microsoft.AgFoodPlatform/operations/read", - "isDataAction": false, - "display": { - "provider": "Microsoft AgFoodPlatform", - "resource": "operations", - "operation": "List all operations", - "description": "List all operations in Microsoft AgFoodPlatform Resource Provider." - } - } - ], - "nextLink": "https://management.azure.com/providers/Microsoft.AgFoodPlatform/operations?$skiptoken={token}" - } - } - } -} diff --git a/specification/agfood/resource-manager/readme.md b/specification/agfood/resource-manager/readme.md index 6a8ad2d74262..27cfb42e851d 100644 --- a/specification/agfood/resource-manager/readme.md +++ b/specification/agfood/resource-manager/readme.md @@ -100,6 +100,18 @@ directive: - $.definitions.Operation.properties.isDataAction - $.definitions.CheckNameAvailabilityResult.properties.nameAvailable reason: Booleans are used to indicate binary states of the property, enum is not appropriate. + - from: agfood.json + suppress: R4000 # DescriptionAndTitleMissing + where: + - $.definitions.Error.properties.innererror + - $.definitions.ErrorResponse.properties.error + - $.definitions.Extension.properties.properties + - $.definitions.Extension.properties.systemData + - $.definitions.FarmBeats.properties.properties + - $.definitions.FarmBeats.properties.systemData + - $.definitions.InnerError.properties.innererror + - $.definitions.Operation.properties.display + reason: Model has description added in it's schema. - from: types.json suppress: R4000 # DescriptionAndTitleMissing where: $.definitions.Resource From 06ee3a4149df546f6bc8469055dbe6c23eea8cd5 Mon Sep 17 00:00:00 2001 From: Priyanka Jayaswal Date: Sat, 24 Apr 2021 01:10:56 +0530 Subject: [PATCH 3/7] commit updating doc --- .../preview/2020-05-12-preview/agfood.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/agfood.json b/specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/agfood.json index b4ee1adae39b..421826422c6f 100644 --- a/specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/agfood.json +++ b/specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/agfood.json @@ -218,7 +218,7 @@ { "in": "query", "name": "extensionId", - "description": "Id of extension proxy resource.", + "description": "Id of extension resource.", "type": "string" }, { @@ -689,7 +689,7 @@ }, "definitions": { "ExtensionProperties": { - "description": "Extension Proxy Resource properties.", + "description": "Extension resource properties.", "type": "object", "properties": { "extensionId": { @@ -786,7 +786,7 @@ "description": "The resource management error additional info." }, "Extension": { - "description": "Extension proxy resource.", + "description": "Extension resource.", "type": "object", "allOf": [ { @@ -916,7 +916,7 @@ "ExtensionIdParameter": { "in": "path", "name": "extensionId", - "description": "Id of extension proxy resource.", + "description": "Id of extension resource.", "required": true, "type": "string", "x-ms-parameter-location": "method" From da389040c8d8d8d0d38b81713a8fed6e5b99e578 Mon Sep 17 00:00:00 2001 From: Priyanka Jayaswal Date: Fri, 7 May 2021 08:42:15 +0530 Subject: [PATCH 4/7] Updating license header in readme.go --- specification/agfood/resource-manager/readme.go.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/agfood/resource-manager/readme.go.md b/specification/agfood/resource-manager/readme.go.md index 48cd1d88d927..a7cbc2aa134b 100644 --- a/specification/agfood/resource-manager/readme.go.md +++ b/specification/agfood/resource-manager/readme.go.md @@ -4,7 +4,7 @@ These settings apply only when `--go` is specified on the command line. ```yaml $(go) go: - license-header: MICROSOFT_APACHE_NO_VERSION + license-header: MICROSOFT_MIT_NO_VERSION namespace: agfood clear-output-folder: true ``` From 43c24ad84d8238414266f635bebc12450354392b Mon Sep 17 00:00:00 2001 From: Priyanka Jayaswal Date: Fri, 7 May 2021 11:00:03 +0530 Subject: [PATCH 5/7] Updating readme.python.md as per suggestion --- .../agfood/resource-manager/readme.python.md | 31 ++----------------- 1 file changed, 3 insertions(+), 28 deletions(-) diff --git a/specification/agfood/resource-manager/readme.python.md b/specification/agfood/resource-manager/readme.python.md index a512132205f1..f109f297029c 100644 --- a/specification/agfood/resource-manager/readme.python.md +++ b/specification/agfood/resource-manager/readme.python.md @@ -2,38 +2,13 @@ These settings apply only when `--python` is specified on the command line. Please also specify `--python-sdks-folder=`. -Use `--python-mode=update` if you already have a setup.py and just want to update the code itself. -``` yaml $(python) && !$(track2) -python-mode: create -python: - azure-arm: true - license-header: MICROSOFT_MIT_NO_VERSION - payload-flattening-threshold: 2 - namespace: azure.mgmt.agfood - package-name: azure-mgmt-agfood - package-version: 0.1.0 - clear-output-folder: true -``` - -``` yaml $(python-mode) == 'update' && !$(track2) -python: - no-namespace-folders: true - output-folder: $(python-sdks-folder)/agfood/azure-mgmt-agfood/azure/mgmt/agfood -``` -``` yaml $(python-mode) == 'create' && !$(track2) -python: - basic-setup-py: true - output-folder: $(python-sdks-folder)/agfood/azure-mgmt-agfood -``` - -``` yaml $(python) && $(track2) -python-mode: create +``` yaml $(track2) azure-arm: true license-header: MICROSOFT_MIT_NO_VERSION -namespace: azure.mgmt.agfood package-name: azure-mgmt-agfood -package-version: 0.1.0 +no-namespace-folders: true +package-version: 1.0.0b1 clear-output-folder: true ``` From 5e4cd0463bdee10b12494182b50a4910e5c4768f Mon Sep 17 00:00:00 2001 From: Priyanka Jayaswal Date: Fri, 7 May 2021 11:16:06 +0530 Subject: [PATCH 6/7] Updating md files and keeping files that are needed. --- .../agfood/resource-manager/readme.az.md | 28 ------------------- .../readme.azureresourceschema.md | 23 --------------- .../agfood/resource-manager/readme.cli.md | 1 - .../agfood/resource-manager/readme.csharp.md | 2 +- .../agfood/resource-manager/readme.md | 13 --------- .../resource-manager/readme.typescript.md | 1 + 6 files changed, 2 insertions(+), 66 deletions(-) delete mode 100644 specification/agfood/resource-manager/readme.az.md delete mode 100644 specification/agfood/resource-manager/readme.azureresourceschema.md delete mode 100644 specification/agfood/resource-manager/readme.cli.md diff --git a/specification/agfood/resource-manager/readme.az.md b/specification/agfood/resource-manager/readme.az.md deleted file mode 100644 index fdb8a9adf7e0..000000000000 --- a/specification/agfood/resource-manager/readme.az.md +++ /dev/null @@ -1,28 +0,0 @@ -## AZ - -These settings apply only when `--az` is specified on the command line. - -For new Resource Provider. It is highly recommended to onboard Azure CLI extensions. There's no differences in terms of customer usage. - -``` yaml $(az) && $(target-mode) != 'core' -az: - extensions: agfood - namespace: azure.mgmt.agfood - package-name: azure-mgmt-agfood -az-output-folder: $(azure-cli-extension-folder)/src/agfood -python-sdk-output-folder: "$(az-output-folder)/azext_agfood/vendored_sdks/agfood" -# add additinal configuration here specific for Azure CLI -# refer to the faq.md for more details -``` - - - -This is for command modules that already in azure cli main repo. -``` yaml $(az) && $(target-mode) == 'core' -az: - extensions: agfood - namespace: azure.mgmt.agfood - package-name: azure-mgmt-agfood -az-output-folder: $(azure-cli-folder)/src/azure-cli/azure/cli/command_modules/agfood -python-sdk-output-folder: "$(az-output-folder)/vendored_sdks/agfood" -``` \ No newline at end of file diff --git a/specification/agfood/resource-manager/readme.azureresourceschema.md b/specification/agfood/resource-manager/readme.azureresourceschema.md deleted file mode 100644 index 2436ca5b8705..000000000000 --- a/specification/agfood/resource-manager/readme.azureresourceschema.md +++ /dev/null @@ -1,23 +0,0 @@ -## AzureResourceSchema - -These settings apply only when `--azureresourceschema` is specified on the command line. - -### AzureResourceSchema multi-api - -``` yaml $(azureresourceschema) && $(multiapi) -batch: - - tag: schema-agfood-2020-05-12-preview - -``` - -Please also specify `--azureresourceschema-folder=`. - -### Tag: schema-agfood-2020-05-12-preview and azureresourceschema - -``` yaml $(tag) == 'schema-agfood-2020-05-12-preview' && $(azureresourceschema) -output-folder: $(azureresourceschema-folder)/schemas - -# all the input files in this apiVersion -input-file: - - Microsoft.AgFoodPlatform/preview/2020-05-12-preview/agfood.json -``` diff --git a/specification/agfood/resource-manager/readme.cli.md b/specification/agfood/resource-manager/readme.cli.md deleted file mode 100644 index c6cf6ad37ea4..000000000000 --- a/specification/agfood/resource-manager/readme.cli.md +++ /dev/null @@ -1 +0,0 @@ -## CLI Common Settings for all the command line tools \ No newline at end of file diff --git a/specification/agfood/resource-manager/readme.csharp.md b/specification/agfood/resource-manager/readme.csharp.md index 364b07df2745..9e64c3052486 100644 --- a/specification/agfood/resource-manager/readme.csharp.md +++ b/specification/agfood/resource-manager/readme.csharp.md @@ -11,5 +11,5 @@ csharp: clear-output-folder: true client-side-validation: false namespace: Microsoft.AgFoodPlatform - output-folder: $(csharp-sdks-folder)/agfood/management/Microsoft.AgFoodPlatform/GeneratedProtocol + output-folder: $(csharp-sdks-folder)/agfood/management/Microsoft.AgFoodPlatform/Generated ``` diff --git a/specification/agfood/resource-manager/readme.md b/specification/agfood/resource-manager/readme.md index 27cfb42e851d..5a0e4ca8f66f 100644 --- a/specification/agfood/resource-manager/readme.md +++ b/specification/agfood/resource-manager/readme.md @@ -50,18 +50,9 @@ This is not used by Autorest itself. ```yaml $(swagger-to-sdk) swagger-to-sdk: - repo: azure-sdk-for-python-track2 - - repo: azure-sdk-for-java - repo: azure-sdk-for-go - repo: azure-sdk-for-js - - repo: azure-resource-manager-schemas - after_scripts: - - node sdkauto_afterscript.js agfood/resource-manager - - repo: azure-cli-extensions ``` -## Az - -See configuration in [readme.az.md](./readme.az.md) - ## Go See configuration in [readme.go.md](./readme.go.md) @@ -78,10 +69,6 @@ See configuration in [readme.typescript.md](./readme.typescript.md) See configuration in [readme.csharp.md](./readme.csharp.md) -## AzureResourceSchema - -See configuration in [readme.azureresourceschema.md](./readme.azureresourceschema.md) - ## Suppression ``` yaml diff --git a/specification/agfood/resource-manager/readme.typescript.md b/specification/agfood/resource-manager/readme.typescript.md index 2728f7ddf540..c4ad9c4e1545 100644 --- a/specification/agfood/resource-manager/readme.typescript.md +++ b/specification/agfood/resource-manager/readme.typescript.md @@ -6,6 +6,7 @@ Please also specify `--typescript-sdks-folder= Date: Fri, 7 May 2021 12:11:18 +0530 Subject: [PATCH 7/7] updating v1 references to v2 references for common types --- .../preview/2020-05-12-preview/agfood.json | 170 ++++++------------ 1 file changed, 53 insertions(+), 117 deletions(-) diff --git a/specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/agfood.json b/specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/agfood.json index 421826422c6f..2c9eab108ab5 100644 --- a/specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/agfood.json +++ b/specification/agfood/resource-manager/Microsoft.AgFoodPlatform/preview/2020-05-12-preview/agfood.json @@ -24,13 +24,13 @@ "$ref": "#/parameters/FarmBeatsResourceNameParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -43,7 +43,7 @@ "default": { "description": "Error", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, @@ -70,13 +70,13 @@ "$ref": "#/parameters/FarmBeatsResourceNameParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -89,7 +89,7 @@ "default": { "description": "Error", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, @@ -116,13 +116,13 @@ "$ref": "#/parameters/FarmBeatsResourceNameParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -135,7 +135,7 @@ "default": { "description": "Error", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, @@ -162,13 +162,13 @@ "$ref": "#/parameters/FarmBeatsResourceNameParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -181,7 +181,7 @@ "default": { "description": "Error", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, @@ -204,13 +204,13 @@ ], "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" }, { "$ref": "#/parameters/FarmBeatsResourceNameParameter" @@ -256,7 +256,7 @@ "default": { "description": "Error", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, @@ -282,13 +282,13 @@ ], "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" }, { "$ref": "#/parameters/FarmBeatsResourceNameParameter" @@ -304,7 +304,7 @@ "default": { "description": "Error", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, @@ -331,13 +331,13 @@ "$ref": "#/parameters/FarmBeatsResourceNameParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" }, { "in": "body", @@ -365,7 +365,7 @@ "default": { "description": "Error", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, @@ -392,13 +392,13 @@ "$ref": "#/parameters/FarmBeatsResourceNameParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" }, { "in": "body", @@ -420,7 +420,7 @@ "default": { "description": "Error", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, @@ -441,13 +441,13 @@ ], "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" }, { "$ref": "#/parameters/FarmBeatsResourceNameParameter" @@ -463,7 +463,7 @@ "default": { "description": "Error", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, @@ -502,10 +502,10 @@ "type": "string" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -518,7 +518,7 @@ "default": { "description": "Error", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, @@ -560,13 +560,13 @@ "type": "string" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -579,7 +579,7 @@ "default": { "description": "Error", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, @@ -608,10 +608,10 @@ ], "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" }, { "in": "body", @@ -633,7 +633,7 @@ "default": { "description": "Error", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, @@ -659,20 +659,20 @@ ], "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" } ], "responses": { "200": { "description": "Success", "schema": { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/OperationListResult" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/OperationListResult" } }, "default": { "description": "Error", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, @@ -721,81 +721,17 @@ } } }, - "ErrorResponse": { - "description": "An error response from the service.", - "type": "object", - "properties": { - "error": { - "description": "The error object", - "$ref": "#/definitions/ErrorResponseBody" - } - } - }, - "ErrorResponseBody": { - "properties": { - "code": { - "readOnly": true, - "type": "string", - "description": "The error code." - }, - "message": { - "readOnly": true, - "type": "string", - "description": "The error message." - }, - "target": { - "readOnly": true, - "type": "string", - "description": "The error target." - }, - "details": { - "readOnly": true, - "type": "array", - "items": { - "$ref": "#/definitions/ErrorResponseBody" - }, - "description": "The error details." - }, - "additionalInfo": { - "readOnly": true, - "type": "array", - "items": { - "$ref": "#/definitions/ErrorAdditionalInfo" - }, - "description": "The error additional info." - } - }, - "description": "The resource management error response." - }, - "ErrorAdditionalInfo": { - "properties": { - "type": { - "readOnly": true, - "type": "string", - "description": "The additional info type." - }, - "info": { - "readOnly": true, - "type": "object", - "description": "The additional info.", - "additionalProperties": { - "type": "string" - } - } - }, - "description": "The resource management error additional info." - }, "Extension": { "description": "Extension resource.", "type": "object", "allOf": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ProxyResource" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ProxyResource" } ], "properties": { "systemData": { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/systemData" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData" }, "properties": { "$ref": "#/definitions/ExtensionProperties", @@ -857,12 +793,12 @@ "type": "object", "allOf": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/TrackedResource" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/TrackedResource" } ], "properties": { "systemData": { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/systemData" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData" }, "properties": { "$ref": "#/definitions/FarmBeatsProperties",