diff --git a/specification/confluent/resource-manager/Microsoft.Confluent/preview/2020-03-01-preview/confluent.json b/specification/confluent/resource-manager/Microsoft.Confluent/preview/2020-03-01-preview/confluent.json index 548105316200..62dbedcd2338 100644 --- a/specification/confluent/resource-manager/Microsoft.Confluent/preview/2020-03-01-preview/confluent.json +++ b/specification/confluent/resource-manager/Microsoft.Confluent/preview/2020-03-01-preview/confluent.json @@ -114,6 +114,39 @@ } } }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Confluent/agreements": { + "get": { + "operationId": "Organization_GetAgreementMarketplaceTerms", + "description": "Get marketplace agreement in the subscription.", + "x-ms-examples": { + "Organization_GetAgreementMarketplaceTerms": { + "$ref": "./examples/Organization_GetAgreementMarketplaceTerms.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Terms returned successfully", + "schema": { + "$ref": "#/definitions/AgreementTerms" + } + }, + "default": { + "description": "Microsoft.Confluent error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ResourceProviderDefaultErrorResponse" + } + } + } + } + }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/organizations": { "get": { "tags": [ @@ -679,6 +712,80 @@ } } } + }, + "AgreementTerms": { + "properties": { + "properties": { + "$ref": "#/definitions/AgreementProperties", + "description": "Represents the properties of the resource.", + "x-ms-client-flatten": true + } + }, + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "description": "Terms properties for provided Publisher/Offer/Plan tuple" + }, + "AgreementProperties": { + "properties": { + "publisher": { + "type": "string", + "description": "Publisher identifier string of image being deployed." + }, + "product": { + "type": "string", + "description": "Offer identifier string of image being deployed." + }, + "plan": { + "type": "string", + "description": "Plan identifier string of image being deployed." + }, + "licenseTextLink": { + "type": "string", + "description": "Link to HTML with Microsoft and Publisher terms." + }, + "privacyPolicyLink": { + "type": "string", + "description": "Link to the privacy policy of the publisher." + }, + "retrieveDatetime": { + "type": "string", + "format": "date-time", + "description": "Date and time in UTC of when the terms were accepted. This is empty if Accepted is false." + }, + "signature": { + "type": "string", + "description": "Terms signature." + }, + "accepted": { + "type": "string", + "description": "If any version of the terms have been accepted, otherwise false." + } + }, + "description": "Agreement Terms definition" + }, + "Resource": { + "description": "ARM resource.", + "properties": { + "id": { + "readOnly": true, + "type": "string", + "description": "Resource ID." + }, + "name": { + "readOnly": true, + "type": "string", + "description": "Resource name." + }, + "type": { + "readOnly": true, + "type": "string", + "description": "Resource type." + } + }, + "x-ms-azure-resource": true } }, "parameters": { diff --git a/specification/confluent/resource-manager/Microsoft.Confluent/preview/2020-03-01-preview/examples/Organization_Delete.json b/specification/confluent/resource-manager/Microsoft.Confluent/preview/2020-03-01-preview/examples/Organization_Delete.json index 9621d3e6929b..9618e8706850 100644 --- a/specification/confluent/resource-manager/Microsoft.Confluent/preview/2020-03-01-preview/examples/Organization_Delete.json +++ b/specification/confluent/resource-manager/Microsoft.Confluent/preview/2020-03-01-preview/examples/Organization_Delete.json @@ -8,6 +8,6 @@ "responses": { "200": {}, "202": {}, - "204": {} + "204": {} } } diff --git a/specification/confluent/resource-manager/Microsoft.Confluent/preview/2020-03-01-preview/examples/Organization_GetAgreementMarketplaceTerms.json b/specification/confluent/resource-manager/Microsoft.Confluent/preview/2020-03-01-preview/examples/Organization_GetAgreementMarketplaceTerms.json new file mode 100644 index 000000000000..8ee93d5d47c3 --- /dev/null +++ b/specification/confluent/resource-manager/Microsoft.Confluent/preview/2020-03-01-preview/examples/Organization_GetAgreementMarketplaceTerms.json @@ -0,0 +1,25 @@ +{ + "parameters": { + "api-version": "2020-03-01-preview", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "id": "id", + "name": "planid", + "type": "Microsoft.Confluent/agreements", + "properties": { + "publisher": "pubid", + "product": "offid", + "plan": "planid", + "licenseTextLink": "test.licenseLink", + "privacyPolicyLink": "test.privacyPolicyLink", + "retrieveDatetime": "2020-10-20T11:33:07.12132Z", + "signature": "ASDFSDAFWEFASDGWERLWER", + "accepted": "true" + } + } + } + } +} \ No newline at end of file diff --git a/specification/confluent/resource-manager/readme.cli.md b/specification/confluent/resource-manager/readme.cli.md new file mode 100644 index 000000000000..bd1ae237a340 --- /dev/null +++ b/specification/confluent/resource-manager/readme.cli.md @@ -0,0 +1,6 @@ +## CLI + +These settings don't need to apply `--cli` on the command line. + +``` yaml +```