Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{

Check failure on line 1 in specification/agrifood/resource-manager/Microsoft.AgFoodPlatform/preview/2024-12-01-preview/examples/CheckNameAvailability_CheckNameAvailability_AlreadyExists.json

View check run for this annotation

Azure Pipelines / Swagger PrettierCheck

specification/agrifood/resource-manager/Microsoft.AgFoodPlatform/preview/2024-12-01-preview/examples/CheckNameAvailability_CheckNameAvailability_AlreadyExists.json#L1

specification/agrifood/resource-manager/Microsoft.AgFoodPlatform/preview/2024-12-01-preview/examples/CheckNameAvailability_CheckNameAvailability_AlreadyExists.json(1,1): error : Code style issues found, please run prettier. > npm install > npx prettier --write specification/agrifood/resource-manager/Microsoft.AgFoodPlatform/preview/2024-12-01-preview/examples/CheckNameAvailability_CheckNameAvailability_AlreadyExists.json
"parameters": {
"api-version": "2024-12-01-preview",
"subscriptionId": "11111111-2222-3333-4444-555555555555",
"nameAvailabilityRequest": {
"name": "existingaccountname",
"type": "Microsoft.AgFoodPlatform/farmBeats"
}
},
"responses": {
"200": {
"body": {
"nameAvailable": false,
"reason": "AlreadyExists",
"message": "An account named 'existingaccountname' is already in use."
}
}
}
}

Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{

Check failure on line 1 in specification/agrifood/resource-manager/Microsoft.AgFoodPlatform/preview/2024-12-01-preview/examples/CheckNameAvailability_CheckNameAvailability_Available.json

View check run for this annotation

Azure Pipelines / Swagger PrettierCheck

specification/agrifood/resource-manager/Microsoft.AgFoodPlatform/preview/2024-12-01-preview/examples/CheckNameAvailability_CheckNameAvailability_Available.json#L1

specification/agrifood/resource-manager/Microsoft.AgFoodPlatform/preview/2024-12-01-preview/examples/CheckNameAvailability_CheckNameAvailability_Available.json(1,1): error : Code style issues found, please run prettier. > npm install > npx prettier --write specification/agrifood/resource-manager/Microsoft.AgFoodPlatform/preview/2024-12-01-preview/examples/CheckNameAvailability_CheckNameAvailability_Available.json
"parameters": {
"api-version": "2024-12-01-preview",
"subscriptionId": "11111111-2222-3333-4444-555555555555",
"nameAvailabilityRequest": {
"name": "newaccountname",
"type": "Microsoft.AgFoodPlatform/farmBeats"
}
},
"responses": {
"200": {
"body": {
"nameAvailable": true
}
}
}
}

Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
{
"parameters": {
"api-version": "2024-12-01-preview",
"subscriptionId": "11111111-2222-3333-4444-555555555555",
"resourceGroupName": "examples-rg",
"dataManagerForAgricultureResourceName": "examples-dataManagerForAgricultureResourceName",
"dataConnectorName": "WeatherIBM",
"body": {
"properties": {
"credentials": {
"kind": "ApiKeyAuthCredentials",
"apiKey": {
"keyVaultUri": "https://testKeyVault.vault.azure.net/",
"keyName": "abcApiKey",
"keyVersion": "239c0475c7d44f20b0fc27d3fe90a41d"
}
}
}
}
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/ff57165d-e71f-4a0e-8e9b-3cd461dc0f38/resourceGroups/bugbash-instances-westus2/providers/Microsoft.AgFoodPlatform/farmBeats/bb-df-wus2-1/dataConnectors/WeatherIBM",
"type": "Microsoft.AgFoodPlatform/farmBeats/dataConnectors",
"properties": {
"credentials": {
"kind": "OAuthClientCredentials",
"clientId": "string",
"clientSecret": {
"keyVaultUri": "string",
"keyName": "string",
"keyVersion": "string"
}
}
}
}
},
"201": {
"body": {
"id": "/subscriptions/ff57165d-e71f-4a0e-8e9b-3cd461dc0f38/resourceGroups/bugbash-instances-westus2/providers/Microsoft.AgFoodPlatform/farmBeats/bb-df-wus2-1/dataConnectors/SatelliteSentinelHub",
"type": "Microsoft.AgFoodPlatform/farmBeats/dataConnectors",
"properties": {
"credentials": {
"kind": "OAuthClientCredentials",
"clientId": "string",
"clientSecret": {
"keyVaultUri": "string",
"keyName": "string",
"keyVersion": "string"
}
}
},
"systemData": {
"createdBy": "string",
"createdByType": "User",
"createdAt": "2020-02-01T01:01:01.1075056Z",
"lastModifiedBy": "string",
"lastModifiedByType": "User",
"lastModifiedAt": "2020-02-01T01:01:02.1075056Z"
},
"eTag": "7200b954-0000-0700-0000-603cbbc40000",
"name": "SatelliteSentinelHub"
}
}
}
}

Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"parameters": {
"api-version": "2024-12-01-preview",
"subscriptionId": "11111111-2222-3333-4444-555555555555",
"resourceGroupName": "examples-rg",
"dataManagerForAgricultureResourceName": "examples-dataManagerForAgricultureResourceName",
"dataConnectorName": "SatelliteSentinelHub"
},
"responses": {
"200": {},
"204": {},
"400": {
"error": {
"code": "ConnectorConfigurationInvalid",
"message": "Connector name not supported. Supported connectors are 'SatelliteSentinelHub' and 'WeatherIBM'."
}
}
}
}

Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"parameters": {
"api-version": "2024-12-01-preview",
"subscriptionId": "11111111-2222-3333-4444-555555555555",
"resourceGroupName": "examples-rg",
"dataManagerForAgricultureResourceName": "examples-dataManagerForAgricultureResourceName",
"dataConnectorName": "SatelliteSentinelHub"
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/ff57165d-e71f-4a0e-8e9b-3cd461dc0f38/resourceGroups/bugbash-instances-westus2/providers/Microsoft.AgFoodPlatform/farmBeats/bb-df-wus2-1/dataConnectors/SatelliteSentinelHub",
"type": "Microsoft.AgFoodPlatform/farmBeats/dataConnectors",
"properties": {
"credentials": {
"kind": "OAuthClientCredentials",
"clientId": "string",
"clientSecret": {
"keyVaultUri": "string",
"keyName": "string",
"keyVersion": "string"
}
}
},
"systemData": {
"createdBy": "string",
"createdByType": "User",
"createdAt": "2020-02-01T01:01:01.1075056Z",
"lastModifiedBy": "string",
"lastModifiedByType": "User",
"lastModifiedAt": "2020-02-01T01:01:02.1075056Z"
},
"eTag": "7200b954-0000-0700-0000-603cbbc40000",
"name": "SatelliteSentinelHub"
}
}
}
}

Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
{
"parameters": {
"api-version": "2024-12-01-preview",
"subscriptionId": "11111111-2222-3333-4444-555555555555",
"resourceGroupName": "examples-rg",
"dataManagerForAgricultureResourceName": "examples-dataManagerForAgricultureResourceName",
"dataConnectorName": "WeatherIBM"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/subscriptions/ff57165d-e71f-4a0e-8e9b-3cd461dc0f38/resourceGroups/bugbash-instances-westus2/providers/Microsoft.AgFoodPlatform/farmBeats/bb-df-wus2-1/dataConnectors/SatelliteSentinelHub",
"type": "Microsoft.AgFoodPlatform/farmBeats/dataConnectors",
"properties": {
"credentials": {
"kind": "OAuthClientCredentials",
"clientId": "string",
"clientSecret": {
"keyVaultUri": "string",
"keyName": "string",
"keyVersion": "string"
}
}
},
"systemData": {
"createdBy": "string",
"createdByType": "User",
"createdAt": "2020-02-01T01:01:01.1075056Z",
"lastModifiedBy": "string",
"lastModifiedByType": "User",
"lastModifiedAt": "2020-02-01T01:01:02.1075056Z"
},
"eTag": "7200b954-0000-0700-0000-603cbbc40000",
"name": "SatelliteSentinelHub"
},
{
"id": "/subscriptions/ff57165d-e71f-4a0e-8e9b-3cd461dc0f38/resourceGroups/bugbash-instances-westus2/providers/Microsoft.AgFoodPlatform/farmBeats/bb-df-wus2-1/dataConnectors/WeatherIBM",
"type": "Microsoft.AgFoodPlatform/farmBeats/dataConnectors",
"properties": {
"credentials": {
"kind": "ApiKeyAuthCredentials",
"apiKey": {
"keyVaultUri": "string",
"keyName": "string",
"keyVersion": "string"
}
}
},
"systemData": {
"createdBy": "string",
"createdByType": "User",
"createdAt": "2020-02-01T01:01:01.1075056Z",
"lastModifiedBy": "string",
"lastModifiedByType": "User",
"lastModifiedAt": "2020-02-01T01:01:02.1075056Z"
},
"eTag": "7200b954-0000-0700-0000-603cbbc40000",
"name": "WeatherIBM"
}
],
"nextLink": "string"
}
}
}
}

Loading
Loading