Skip to content

Commit

Permalink
Updated to ARM tracked resource network protocol model
Browse files Browse the repository at this point in the history
  • Loading branch information
gkostal committed Feb 21, 2020
1 parent f9af8f5 commit 13c7517
Show file tree
Hide file tree
Showing 6 changed files with 166 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
"tags": [
"AttestationProvider"
],
"operationId": "AttestationProviders_Get",
"operationId": "AttestationProvider_Get",
"description": "Get the status of Attestation Provider.",
"x-ms-examples": {
"AttestationProviders_Get": {
Expand Down Expand Up @@ -109,7 +109,7 @@
"tags": [
"AttestationProvider"
],
"operationId": "AttestationProviders_Create",
"operationId": "AttestationProvider_Create",
"description": "Creates or updates the Attestation Provider.",
"x-ms-examples": {
"AttestationProviders_Create": {
Expand All @@ -136,6 +136,7 @@
{
"name": "creationParams",
"in": "body",
"required": true,
"description": "Client supplied parameters.",
"schema": {
"$ref": "#/definitions/AttestationServiceCreationParams"
Expand Down Expand Up @@ -164,11 +165,65 @@
}
}
},
"patch": {
"tags": [
"AttestationProvider"
],
"operationId": "AttestationProvider_Update",
"description": "Updates the Attestation Provider.",
"x-ms-examples": {
"AttestationProviders_Update": {
"$ref": "./examples/Update_AttestationProvider.json"
}
},
"parameters": [
{
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
},
{
"name": "providerName",
"in": "path",
"required": true,
"type": "string",
"description": "Name of the attestation service"
},
{
"$ref": "#/parameters/ApiVersionParameter"
},
{
"name": "updateParams",
"in": "body",
"required": true,
"description": "Client supplied parameters.",
"schema": {
"$ref": "#/definitions/AttestationServicePatchParams"
},
"x-ms-parameter-location": "method"
}
],
"responses": {
"200": {
"description": "Updated attestation service",
"schema": {
"$ref": "#/definitions/AttestationProvider"
}
},
"default": {
"description": "Error result from Attestation service",
"schema": {
"$ref": "#/definitions/CloudError"
}
}
}
},
"delete": {
"tags": [
"AttestationProvider"
],
"operationId": "AttestationProviders_Delete",
"operationId": "AttestationProvider_Delete",
"description": "Delete Attestation Service.",
"x-ms-examples": {
"AttestationProviders_Delete": {
Expand Down Expand Up @@ -344,7 +399,7 @@
],
"allOf": [
{
"$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/Resource"
"$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/TrackedResource"
}
],
"properties": {
Expand All @@ -363,6 +418,10 @@
"status"
],
"properties": {
"trustModel": {
"type": "string",
"description": "Trust model for the attestation service instance."
},
"status": {
"type": "string",
"description": "Status of attestation service.",
Expand Down Expand Up @@ -417,8 +476,46 @@
}
}
},
"AttestationServicePatchParams": {
"description": "Parameters for patching an attestation service instance",
"x-ms-azure-resource": true,
"properties": {
"tags": {
"type": "object",
"additionalProperties": {
"type": "string"
},
"description": "The tags that will be assigned to the attestation service instance."
}
}
},
"AttestationServiceCreationParams": {
"description": "Client supplied parameters passed to attestation service.",
"description": "Parameters for creating an attestation service instance",
"required": [
"location",
"properties"
],
"x-ms-azure-resource": true,
"properties": {
"location": {
"type": "string",
"description": "The supported Azure location where the attestation service instance should be created."
},
"tags": {
"type": "object",
"additionalProperties": {
"type": "string"
},
"description": "The tags that will be assigned to the attestation service instance."
},
"properties": {
"$ref": "#/definitions/AttestationServiceCreationSpecificParams",
"description": "Properties of the attestation service instance"
}
}
},
"AttestationServiceCreationSpecificParams": {
"description": "Client supplied parameters used to create a new attestation service instance.",
"properties": {
"attestationPolicy": {
"type": "string",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,16 @@
"id": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MyResourceGroup/providers/Microsoft.Attestation/attestationProviders/MyAttestationProvider",
"name": "MyAttestationProvider",
"type": "Microsoft.Attestation/attestationProviders",
"location": "East US",
"tags": {
"Property1": "Value1",
"Property2": "Value2",
"Property3": "Value3"
},
"properties": {
"trustModel": "Isolated",
"status": "Ready",
"attestUri": "https://sample-attestation.attestation.azure.net"
"attestUri": "https://superservice.attestation.azure.net"
}
}
},
Expand All @@ -23,9 +30,16 @@
"id": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MyResourceGroup/providers/Microsoft.Attestation/attestationProviders/MyAttestationProvider",
"name": "MyAttestationProvider",
"type": "Microsoft.Attestation/attestationProviders",
"location": "East US",
"tags": {
"Property1": "Value1",
"Property2": "Value2",
"Property3": "Value3"
},
"properties": {
"trustModel": "Isolated",
"status": "Ready",
"attestUri": "https://sample-attestation.attestation.azure.net"
"attestUri": "https://superservice.attestation.azure.net"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,16 @@
"id": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MyResourceGroup/providers/Microsoft.Attestation/attestationProviders/MyAttestationProvider",
"name": "MyAttestationProvider",
"type": "Microsoft.Attestation/attestationProviders",
"location": "East US",
"tags": {
"Property1": "Value1",
"Property2": "Value2",
"Property3": "Value3"
},
"properties": {
"status": "Ready"
"trustModel": "Isolated",
"status": "Ready",
"attestUri": "https://superservice.attestation.azure.net"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"id": "subscriptions/6c96b33e-f5b8-40a6-9011-5cb1c58b0915/resourceGroups/testrg1/providers/Microsoft.Attestation/attestationProviders/MyAttestationProvider",
"name": "MyAttestationProvider",
"type": "Microsoft.Attestation/attestationProviders",
"location": "East US",
"properties": {
"status": "Ready"
}
Expand All @@ -19,6 +20,7 @@
"id": "subscriptions/6c96b33e-f5b8-40a6-9011-5cb1c58b0915/resourceGroups/testrg2/providers/Microsoft.Attestation/attestationProviders/codes2",
"name": "codes2",
"type": "Microsoft.Attestation/attestationProviders",
"location": "East US",
"properties": {
"status": "Ready"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"id": "subscriptions/6c96b33e-f5b8-40a6-9011-5cb1c58b0915/resourceGroups/testrg1/providers/Microsoft.Attestation/attestationProviders/MyAttestationProvider",
"name": "MyAttestationProvider",
"type": "Microsoft.Attestation/attestationProviders",
"location": "East US",
"properties": {
"status": "Ready"
}
Expand All @@ -20,6 +21,7 @@
"id": "subscriptions/6c96b33e-f5b8-40a6-9011-5cb1c58b0915/resourceGroups/testrg1/providers/Microsoft.Attestation/attestationProviders/codes2",
"name": "codes2",
"type": "Microsoft.Attestation/attestationProviders",
"location": "East US",
"properties": {
"status": "Ready"
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"parameters": {
"resourceGroupName": "MyResourceGroup",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"api-version": "2018-09-01-preview",
"providerName": "MyAttestationProvider",
"updateParams": {
"tags": {
"Property1": "Value1",
"Property2": "Value2",
"Property3": "Value3"
}
}
},
"responses": {
"200": {
"body": {
"id": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MyResourceGroup/providers/Microsoft.Attestation/attestationProviders/MyAttestationProvider",
"name": "MyAttestationProvider",
"type": "Microsoft.Attestation/attestationProviders",
"location": "East US",
"tags": {
"Property1": "Value1",
"Property2": "Value2",
"Property3": "Value3"
},
"properties": {
"trustModel": "Isolated",
"status": "Ready",
"attestUri": "https://superservice.attestation.azure.net"
}
}
}
}
}

0 comments on commit 13c7517

Please sign in to comment.