Skip to content

Commit

Permalink
Add new API version 2021-08-01 for Data Share (#16021)
Browse files Browse the repository at this point in the history
Co-authored-by: Zach Madsen <zachmadsen@microsoft.com>
  • Loading branch information
zachcmadsen and Zach Madsen authored Sep 14, 2021
1 parent cfa9e0f commit 9572eff
Show file tree
Hide file tree
Showing 71 changed files with 10,614 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -990,6 +990,97 @@
}
}
},
"/providers/Microsoft.DataShare/locations/{location}/activateEmail": {
"post": {
"tags": [
"EmailRegistration"
],
"summary": "Activates the tenant and email combination using email code received.",
"description": "Activate the email registration for the current tenant",
"operationId": "EmailRegistrations_ActivateEmail",
"parameters": [
{
"name": "location",
"in": "path",
"description": "Location of the activation.",
"required": true,
"type": "string"
},
{
"name": "emailRegistration",
"in": "body",
"description": "The payload for tenant domain activation.",
"required": true,
"schema": {
"$ref": "#/definitions/EmailRegistration"
}
},
{
"$ref": "#/parameters/api-version"
}
],
"responses": {
"200": {
"description": "Success",
"schema": {
"$ref": "#/definitions/EmailRegistration"
}
},
"default": {
"description": "An error response received from the Microsoft.DataShare resource provider.",
"schema": {
"$ref": "#/definitions/DataShareError"
}
}
},
"x-ms-examples": {
"EmailRegistrations_ActivateEmail": {
"$ref": "./examples/EmailRegistrations_ActivateEmail.json"
}
}
}
},
"/providers/Microsoft.DataShare/locations/{location}/registerEmail": {
"post": {
"tags": [
"EmailRegistration"
],
"summary": "Registers the tenant and email combination for verification.",
"description": "Register an email for the current tenant",
"operationId": "EmailRegistrations_RegisterEmail",
"parameters": [
{
"name": "location",
"in": "path",
"description": "Location of the registration",
"required": true,
"type": "string"
},
{
"$ref": "#/parameters/api-version"
}
],
"responses": {
"200": {
"description": "Success",
"schema": {
"$ref": "#/definitions/EmailRegistration"
}
},
"default": {
"description": "An error response received from the Microsoft.DataShare resource provider.",
"schema": {
"$ref": "#/definitions/DataShareError"
}
}
},
"x-ms-examples": {
"EmailRegistrations_RegisterEmail": {
"$ref": "./examples/EmailRegistrations_RegisterEmail.json"
}
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shares/{shareName}/invitations/{invitationName}": {
"get": {
"tags": [
Expand Down Expand Up @@ -4571,6 +4662,46 @@
}
}
},
"EmailRegistration": {
"description": "Dto for tenant domain registration",
"type": "object",
"properties": {
"activationCode": {
"description": "Activation code for the registration",
"type": "string"
},
"activationExpirationDate": {
"format": "date-time",
"description": "Date of the activation expiration",
"type": "string",
"readOnly": true
},
"email": {
"description": "The email to register",
"type": "string",
"readOnly": true
},
"registrationStatus": {
"description": "Registration status",
"enum": [
"ActivationPending",
"Activated",
"ActivationAttemptsExhausted"
],
"type": "string",
"readOnly": true,
"x-ms-enum": {
"name": "registrationStatus",
"modelAsString": true
}
},
"tenantId": {
"description": "The tenant to register",
"type": "string",
"readOnly": true
}
}
},
"Identity": {
"description": "Identity of resource",
"type": "object",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"parameters": {
"location": "East US 2",
"api-version": "2019-11-01",
"emailRegistration": {
"activationCode": "djsfhakj2lekowd3wepfklpwe9lpflcd"
}
},
"responses": {
"200": {
"headers": {
"Date": "Wed, 13 Sep 2021 18:04:32 GMT",
"x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888",
"X-Content-Type-Options": "nosniff",
"x-ms-ratelimit-remaining-tenant-reads": "14999",
"x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd"
},
"body": {
"tenantId": "9f532315-b048-4374-8de1-14734d9b7f77",
"email": "receiver@microsoft.com",
"registrationStatus": "Activated",
"activationCode": null,
"activationExpirationDate": "2022-08-12T16:44:53.688049Z"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"parameters": {
"location": "East US 2",
"api-version": "2019-11-01"
},
"responses": {
"200": {
"headers": {
"Date": "Wed, 13 Sep 2021 18:04:32 GMT",
"x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888",
"X-Content-Type-Options": "nosniff",
"x-ms-ratelimit-remaining-tenant-reads": "14999",
"x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd"
},
"body": {
"tenantId": "9f532315-b048-4374-8de1-14734d9b7f77",
"email": "receiver@microsoft.com",
"registrationStatus": "ActivationPending",
"activationCode": null,
"activationExpirationDate": "2022-08-12T16:44:53.688049Z"
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -996,6 +996,97 @@
}
}
},
"/providers/Microsoft.DataShare/locations/{location}/activateEmail": {
"post": {
"tags": [
"EmailRegistration"
],
"summary": "Activates the tenant and email combination using email code received.",
"description": "Activate the email registration for the current tenant",
"operationId": "EmailRegistrations_ActivateEmail",
"parameters": [
{
"name": "location",
"in": "path",
"description": "Location of the activation.",
"required": true,
"type": "string"
},
{
"name": "emailRegistration",
"in": "body",
"description": "The payload for tenant domain activation.",
"required": true,
"schema": {
"$ref": "#/definitions/EmailRegistration"
}
},
{
"$ref": "#/parameters/api-version"
}
],
"responses": {
"200": {
"description": "Success",
"schema": {
"$ref": "#/definitions/EmailRegistration"
}
},
"default": {
"description": "An error response received from the Microsoft.DataShare resource provider.",
"schema": {
"$ref": "#/definitions/DataShareError"
}
}
},
"x-ms-examples": {
"EmailRegistrations_ActivateEmail": {
"$ref": "./examples/EmailRegistrations_ActivateEmail.json"
}
}
}
},
"/providers/Microsoft.DataShare/locations/{location}/registerEmail": {
"post": {
"tags": [
"EmailRegistration"
],
"summary": "Registers the tenant and email combination for verification.",
"description": "Register an email for the current tenant",
"operationId": "EmailRegistrations_RegisterEmail",
"parameters": [
{
"name": "location",
"in": "path",
"description": "Location of the registration",
"required": true,
"type": "string"
},
{
"$ref": "#/parameters/api-version"
}
],
"responses": {
"200": {
"description": "Success",
"schema": {
"$ref": "#/definitions/EmailRegistration"
}
},
"default": {
"description": "An error response received from the Microsoft.DataShare resource provider.",
"schema": {
"$ref": "#/definitions/DataShareError"
}
}
},
"x-ms-examples": {
"EmailRegistrations_RegisterEmail": {
"$ref": "./examples/EmailRegistrations_RegisterEmail.json"
}
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shares/{shareName}/invitations/{invitationName}": {
"get": {
"tags": [
Expand Down Expand Up @@ -4661,6 +4752,46 @@
}
}
},
"EmailRegistration": {
"description": "Dto for tenant domain registration",
"type": "object",
"properties": {
"activationCode": {
"description": "Activation code for the registration",
"type": "string"
},
"activationExpirationDate": {
"format": "date-time",
"description": "Date of the activation expiration",
"type": "string",
"readOnly": true
},
"email": {
"description": "The email to register",
"type": "string",
"readOnly": true
},
"registrationStatus": {
"description": "Registration status",
"enum": [
"ActivationPending",
"Activated",
"ActivationAttemptsExhausted"
],
"type": "string",
"readOnly": true,
"x-ms-enum": {
"name": "registrationStatus",
"modelAsString": true
}
},
"tenantId": {
"description": "The tenant to register",
"type": "string",
"readOnly": true
}
}
},
"Identity": {
"description": "Identity of resource",
"type": "object",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"parameters": {
"location": "East US 2",
"api-version": "2020-09-01",
"emailRegistration": {
"activationCode": "djsfhakj2lekowd3wepfklpwe9lpflcd"
}
},
"responses": {
"200": {
"headers": {
"Date": "Wed, 13 Sep 2021 18:04:32 GMT",
"x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888",
"X-Content-Type-Options": "nosniff",
"x-ms-ratelimit-remaining-tenant-reads": "14999",
"x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd"
},
"body": {
"tenantId": "9f532315-b048-4374-8de1-14734d9b7f77",
"email": "receiver@microsoft.com",
"registrationStatus": "Activated",
"activationCode": null,
"activationExpirationDate": "2022-08-12T16:44:53.688049Z"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"parameters": {
"location": "East US 2",
"api-version": "2020-09-01"
},
"responses": {
"200": {
"headers": {
"Date": "Wed, 13 Sep 2021 18:04:32 GMT",
"x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888",
"X-Content-Type-Options": "nosniff",
"x-ms-ratelimit-remaining-tenant-reads": "14999",
"x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd"
},
"body": {
"tenantId": "9f532315-b048-4374-8de1-14734d9b7f77",
"email": "receiver@microsoft.com",
"registrationStatus": "ActivationPending",
"activationCode": null,
"activationExpirationDate": "2022-08-12T16:44:53.688049Z"
}
}
}
}
Loading

0 comments on commit 9572eff

Please sign in to comment.