From cf4cb5bad0b5004d9cfe43dd3c33e7c422c95a37 Mon Sep 17 00:00:00 2001 From: "Manish Patil (from Dev Box)" Date: Mon, 23 Sep 2024 19:37:49 +0530 Subject: [PATCH 1/4] base commit --- .../codeSigningAccount.json | 1388 +++++++++++++++++ .../examples/CertificateProfiles_Create.json | 83 + .../examples/CertificateProfiles_Delete.json | 23 + .../examples/CertificateProfiles_Get.json | 49 + ...cateProfiles_ListByCodeSigningAccount.json | 52 + ...CertificateProfiles_RevokeCertificate.json | 21 + ...SigningAccounts_CheckNameAvailability.json | 18 + .../examples/CodeSigningAccounts_Create.json | 48 + .../examples/CodeSigningAccounts_Delete.json | 24 + .../examples/CodeSigningAccounts_Get.json | 29 + ...deSigningAccounts_ListByResourceGroup.json | 32 + ...odeSigningAccounts_ListBySubscription.json | 31 + .../examples/CodeSigningAccounts_Update.json | 40 + .../examples/Operations_List.json | 44 + 14 files changed, 1882 insertions(+) create mode 100644 specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-09-30-preview/codeSigningAccount.json create mode 100644 specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-09-30-preview/examples/CertificateProfiles_Create.json create mode 100644 specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-09-30-preview/examples/CertificateProfiles_Delete.json create mode 100644 specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-09-30-preview/examples/CertificateProfiles_Get.json create mode 100644 specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-09-30-preview/examples/CertificateProfiles_ListByCodeSigningAccount.json create mode 100644 specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-09-30-preview/examples/CertificateProfiles_RevokeCertificate.json create mode 100644 specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-09-30-preview/examples/CodeSigningAccounts_CheckNameAvailability.json create mode 100644 specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-09-30-preview/examples/CodeSigningAccounts_Create.json create mode 100644 specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-09-30-preview/examples/CodeSigningAccounts_Delete.json create mode 100644 specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-09-30-preview/examples/CodeSigningAccounts_Get.json create mode 100644 specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-09-30-preview/examples/CodeSigningAccounts_ListByResourceGroup.json create mode 100644 specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-09-30-preview/examples/CodeSigningAccounts_ListBySubscription.json create mode 100644 specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-09-30-preview/examples/CodeSigningAccounts_Update.json create mode 100644 specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-09-30-preview/examples/Operations_List.json diff --git a/specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-09-30-preview/codeSigningAccount.json b/specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-09-30-preview/codeSigningAccount.json new file mode 100644 index 000000000000..123faa923f38 --- /dev/null +++ b/specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-09-30-preview/codeSigningAccount.json @@ -0,0 +1,1388 @@ +{ + "swagger": "2.0", + "info": { + "title": "CodeSigningManagementClient", + "version": "2024-02-05-preview", + "description": "Code Signing resource provider api.", + "x-typespec-generated": [ + { + "emitter": "@azure-tools/typespec-autorest" + } + ] + }, + "schemes": [ + "https" + ], + "host": "management.azure.com", + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "description": "Azure Active Directory OAuth2 Flow.", + "flow": "implicit", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "tags": [ + { + "name": "Operations" + }, + { + "name": "CodeSigningAccounts" + }, + { + "name": "CertificateProfiles" + } + ], + "paths": { + "/providers/Microsoft.CodeSigning/operations": { + "get": { + "operationId": "Operations_List", + "tags": [ + "Operations" + ], + "description": "List the operations for the provider", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/OperationListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "List trusted signing account operations.": { + "$ref": "./examples/Operations_List.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.CodeSigning/checkNameAvailability": { + "post": { + "operationId": "CodeSigningAccounts_CheckNameAvailability", + "tags": [ + "CodeSigningAccounts" + ], + "description": "Checks that the trusted signing account name is valid and is not already in use.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "body", + "in": "body", + "description": "The CheckAvailability request", + "required": true, + "schema": { + "$ref": "#/definitions/CheckNameAvailability" + } + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/CheckNameAvailabilityResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Checks that the trusted signing account name is available.": { + "$ref": "./examples/CodeSigningAccounts_CheckNameAvailability.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.CodeSigning/codeSigningAccounts": { + "get": { + "operationId": "CodeSigningAccounts_ListBySubscription", + "tags": [ + "CodeSigningAccounts" + ], + "description": "Lists trusted signing accounts within a subscription.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/CodeSigningAccountListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Lists trusted signing accounts within a subscription.": { + "$ref": "./examples/CodeSigningAccounts_ListBySubscription.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CodeSigning/codeSigningAccounts": { + "get": { + "operationId": "CodeSigningAccounts_ListByResourceGroup", + "tags": [ + "CodeSigningAccounts" + ], + "description": "Lists trusted signing accounts within a resource group.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/CodeSigningAccountListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Lists trusted signing accounts within a resource group.": { + "$ref": "./examples/CodeSigningAccounts_ListByResourceGroup.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CodeSigning/codeSigningAccounts/{accountName}": { + "get": { + "operationId": "CodeSigningAccounts_Get", + "tags": [ + "CodeSigningAccounts" + ], + "description": "Get a trusted Signing Account.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "accountName", + "in": "path", + "description": "Trusted Signing account name.", + "required": true, + "type": "string", + "pattern": "^(?=.{3,24}$)[^0-9][A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/CodeSigningAccount" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Get a Trusted Signing Account": { + "$ref": "./examples/CodeSigningAccounts_Get.json" + } + } + }, + "put": { + "operationId": "CodeSigningAccounts_Create", + "tags": [ + "CodeSigningAccounts" + ], + "description": "Create a trusted Signing Account.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "accountName", + "in": "path", + "description": "Trusted Signing account name.", + "required": true, + "type": "string", + "pattern": "^(?=.{3,24}$)[^0-9][A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$" + }, + { + "name": "resource", + "in": "body", + "description": "Parameters to create the trusted signing account", + "required": true, + "schema": { + "$ref": "#/definitions/CodeSigningAccount" + } + } + ], + "responses": { + "200": { + "description": "Resource 'CodeSigningAccount' update operation succeeded", + "schema": { + "$ref": "#/definitions/CodeSigningAccount" + } + }, + "201": { + "description": "Resource 'CodeSigningAccount' create operation succeeded", + "schema": { + "$ref": "#/definitions/CodeSigningAccount" + }, + "headers": { + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Create a trusted Signing Account.": { + "$ref": "./examples/CodeSigningAccounts_Create.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "x-ms-long-running-operation": true + }, + "patch": { + "operationId": "CodeSigningAccounts_Update", + "tags": [ + "CodeSigningAccounts" + ], + "description": "Update a trusted signing account.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "accountName", + "in": "path", + "description": "Trusted Signing account name.", + "required": true, + "type": "string", + "pattern": "^(?=.{3,24}$)[^0-9][A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$" + }, + { + "name": "properties", + "in": "body", + "description": "Parameters supplied to update the trusted signing account", + "required": true, + "schema": { + "$ref": "#/definitions/CodeSigningAccountPatch" + } + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/CodeSigningAccount" + } + }, + "202": { + "description": "Resource update request accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Update a trusted signing account.": { + "$ref": "./examples/CodeSigningAccounts_Update.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + }, + "delete": { + "operationId": "CodeSigningAccounts_Delete", + "tags": [ + "CodeSigningAccounts" + ], + "description": "Delete a trusted signing account.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "accountName", + "in": "path", + "description": "Trusted Signing account name.", + "required": true, + "type": "string", + "pattern": "^(?=.{3,24}$)[^0-9][A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$" + } + ], + "responses": { + "202": { + "description": "Resource deletion accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "204": { + "description": "Resource does not exist." + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Delete a trusted signing account.": { + "$ref": "./examples/CodeSigningAccounts_Delete.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CodeSigning/codeSigningAccounts/{accountName}/certificateProfiles": { + "get": { + "operationId": "CertificateProfiles_ListByCodeSigningAccount", + "tags": [ + "CertificateProfiles" + ], + "description": "List certificate profiles under a trusted signing account.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "accountName", + "in": "path", + "description": "Trusted Signing account name.", + "required": true, + "type": "string", + "pattern": "^(?=.{3,24}$)[^0-9][A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/CertificateProfileListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "List certificate profiles under a trusted signing account.": { + "$ref": "./examples/CertificateProfiles_ListByCodeSigningAccount.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CodeSigning/codeSigningAccounts/{accountName}/certificateProfiles/{profileName}": { + "get": { + "operationId": "CertificateProfiles_Get", + "tags": [ + "CertificateProfiles" + ], + "description": "Get details of a certificate profile.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "accountName", + "in": "path", + "description": "Trusted Signing account name.", + "required": true, + "type": "string", + "pattern": "^(?=.{3,24}$)[^0-9][A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$" + }, + { + "name": "profileName", + "in": "path", + "description": "Certificate profile name.", + "required": true, + "type": "string", + "pattern": "^(?=.{5,100}$)[^0-9][A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/CertificateProfile" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Get details of a certificate profile.": { + "$ref": "./examples/CertificateProfiles_Get.json" + } + } + }, + "put": { + "operationId": "CertificateProfiles_Create", + "tags": [ + "CertificateProfiles" + ], + "description": "Create a certificate profile.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "accountName", + "in": "path", + "description": "Trusted Signing account name.", + "required": true, + "type": "string", + "pattern": "^(?=.{3,24}$)[^0-9][A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$" + }, + { + "name": "profileName", + "in": "path", + "description": "Certificate profile name.", + "required": true, + "type": "string", + "pattern": "^(?=.{5,100}$)[^0-9][A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$" + }, + { + "name": "resource", + "in": "body", + "description": "Parameters to create the certificate profile", + "required": true, + "schema": { + "$ref": "#/definitions/CertificateProfile" + } + } + ], + "responses": { + "200": { + "description": "Resource 'CertificateProfile' update operation succeeded", + "schema": { + "$ref": "#/definitions/CertificateProfile" + } + }, + "201": { + "description": "Resource 'CertificateProfile' create operation succeeded", + "schema": { + "$ref": "#/definitions/CertificateProfile" + }, + "headers": { + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Create a certificate profile.": { + "$ref": "./examples/CertificateProfiles_Create.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "x-ms-long-running-operation": true + }, + "delete": { + "operationId": "CertificateProfiles_Delete", + "tags": [ + "CertificateProfiles" + ], + "description": "Delete a certificate profile.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "accountName", + "in": "path", + "description": "Trusted Signing account name.", + "required": true, + "type": "string", + "pattern": "^(?=.{3,24}$)[^0-9][A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$" + }, + { + "name": "profileName", + "in": "path", + "description": "Certificate profile name.", + "required": true, + "type": "string", + "pattern": "^(?=.{5,100}$)[^0-9][A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$" + } + ], + "responses": { + "202": { + "description": "Resource deletion accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "204": { + "description": "Resource does not exist." + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Delete a certificate profile.": { + "$ref": "./examples/CertificateProfiles_Delete.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CodeSigning/codeSigningAccounts/{accountName}/certificateProfiles/{profileName}/revokeCertificate": { + "post": { + "operationId": "CertificateProfiles_RevokeCertificate", + "tags": [ + "CertificateProfiles" + ], + "description": "Revoke a certificate under a certificate profile.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "accountName", + "in": "path", + "description": "Trusted Signing account name.", + "required": true, + "type": "string", + "pattern": "^(?=.{3,24}$)[^0-9][A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$" + }, + { + "name": "profileName", + "in": "path", + "description": "Certificate profile name.", + "required": true, + "type": "string", + "pattern": "^(?=.{5,100}$)[^0-9][A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$" + }, + { + "name": "body", + "in": "body", + "description": "Parameters to revoke the certificate profile", + "required": true, + "schema": { + "$ref": "#/definitions/RevokeCertificate" + } + } + ], + "responses": { + "204": { + "description": "Action completed successfully." + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Revoke a certificate under a certificate profile.": { + "$ref": "./examples/CertificateProfiles_RevokeCertificate.json" + } + } + } + } + }, + "definitions": { + "AccountSku": { + "type": "object", + "description": "SKU of the trusted signing account.", + "properties": { + "name": { + "$ref": "#/definitions/SkuName", + "description": "Name of the SKU." + } + }, + "required": [ + "name" + ] + }, + "Certificate": { + "type": "object", + "description": "Properties of the certificate.", + "properties": { + "serialNumber": { + "type": "string", + "description": "Serial number of the certificate." + }, + "subjectName": { + "type": "string", + "description": "Subject name of the certificate." + }, + "thumbprint": { + "type": "string", + "description": "Thumbprint of the certificate." + }, + "createdDate": { + "type": "string", + "description": "Certificate created date." + }, + "expiryDate": { + "type": "string", + "description": "Certificate expiry date." + }, + "status": { + "$ref": "#/definitions/CertificateStatus", + "description": "Status of the certificate." + }, + "revocation": { + "$ref": "#/definitions/Revocation", + "description": "Revocations history of a certificate.", + "x-ms-client-flatten": true + } + } + }, + "CertificateProfile": { + "type": "object", + "description": "Certificate profile resource.", + "properties": { + "properties": { + "$ref": "#/definitions/CertificateProfileProperties", + "description": "The resource-specific properties for this resource.", + "x-ms-client-flatten": true + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ProxyResource" + } + ] + }, + "CertificateProfileListResult": { + "type": "object", + "description": "The response of a CertificateProfile list operation.", + "properties": { + "value": { + "type": "array", + "description": "The CertificateProfile items on this page", + "items": { + "$ref": "#/definitions/CertificateProfile" + } + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "CertificateProfileProperties": { + "type": "object", + "description": "Properties of the certificate profile.", + "properties": { + "profileType": { + "$ref": "#/definitions/ProfileType", + "description": "Profile type of the certificate." + }, + "commonName": { + "type": "string", + "description": "Used as CN in the certificate subject name.", + "readOnly": true + }, + "organization": { + "type": "string", + "description": "Used as O in the certificate subject name.", + "readOnly": true + }, + "organizationUnit": { + "type": "string", + "description": "Used as OU in the private trust certificate subject name.", + "readOnly": true + }, + "streetAddress": { + "type": "string", + "description": "Used as STREET in the certificate subject name.", + "readOnly": true + }, + "includeStreetAddress": { + "type": "boolean", + "description": "Whether to include STREET in the certificate subject name.", + "default": false + }, + "city": { + "type": "string", + "description": "Used as L in the certificate subject name.", + "readOnly": true + }, + "includeCity": { + "type": "boolean", + "description": "Whether to include L in the certificate subject name. Applicable only for private trust, private trust ci profile types", + "default": false + }, + "state": { + "type": "string", + "description": "Used as S in the certificate subject name.", + "readOnly": true + }, + "includeState": { + "type": "boolean", + "description": "Whether to include S in the certificate subject name. Applicable only for private trust, private trust ci profile types", + "default": false + }, + "country": { + "type": "string", + "description": "Used as C in the certificate subject name.", + "readOnly": true + }, + "includeCountry": { + "type": "boolean", + "description": "Whether to include C in the certificate subject name. Applicable only for private trust, private trust ci profile types", + "default": false + }, + "postalCode": { + "type": "string", + "description": "Used as PC in the certificate subject name.", + "readOnly": true + }, + "includePostalCode": { + "type": "boolean", + "description": "Whether to include PC in the certificate subject name.", + "default": false + }, + "enhancedKeyUsage": { + "type": "string", + "description": "Enhanced key usage of the certificate.", + "readOnly": true + }, + "identityValidationId": { + "type": "string", + "description": "Identity validation id used for the certificate subject name." + }, + "provisioningState": { + "$ref": "#/definitions/ProvisioningState", + "description": "Status of the current operation on certificate profile.", + "readOnly": true + }, + "status": { + "$ref": "#/definitions/CertificateProfileStatus", + "description": "Status of the certificate profile.", + "readOnly": true + }, + "certificates": { + "type": "array", + "description": "List of renewed certificates.", + "items": { + "$ref": "#/definitions/Certificate" + }, + "readOnly": true, + "x-ms-client-flatten": true, + "x-ms-identifiers": [] + } + }, + "required": [ + "profileType" + ] + }, + "CertificateProfileStatus": { + "type": "string", + "description": "Status of the certificate profiles.", + "enum": [ + "Active", + "Disabled", + "Suspended" + ], + "x-ms-enum": { + "name": "CertificateProfileStatus", + "modelAsString": true, + "values": [ + { + "name": "Active", + "value": "Active", + "description": "The certificate profile is active." + }, + { + "name": "Disabled", + "value": "Disabled", + "description": "The certificate profile is disabled." + }, + { + "name": "Suspended", + "value": "Suspended", + "description": "The certificate profile is suspended." + } + ] + } + }, + "CertificateStatus": { + "type": "string", + "description": "Status of the certificate", + "enum": [ + "Active", + "Expired", + "Revoked" + ], + "x-ms-enum": { + "name": "CertificateStatus", + "modelAsString": true, + "values": [ + { + "name": "Active", + "value": "Active", + "description": "The certificate is active." + }, + { + "name": "Expired", + "value": "Expired", + "description": "The certificate is expired." + }, + { + "name": "Revoked", + "value": "Revoked", + "description": "The certificate is revoked." + } + ] + } + }, + "CheckNameAvailability": { + "type": "object", + "description": "The parameters used to check the availability of the trusted signing account name.", + "properties": { + "name": { + "type": "string", + "description": "Trusted signing account name." + } + }, + "required": [ + "name" + ] + }, + "CheckNameAvailabilityResult": { + "type": "object", + "description": "The CheckNameAvailability operation response.", + "properties": { + "nameAvailable": { + "type": "boolean", + "description": "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 is invalid and cannot be used.", + "readOnly": true + }, + "reason": { + "$ref": "#/definitions/NameUnavailabilityReason", + "description": "The reason that a trusted signing account name could not be used. The Reason element is only returned if nameAvailable is false.", + "readOnly": true + }, + "message": { + "type": "string", + "description": "An error message explaining the Reason value in more detail.", + "readOnly": true + } + } + }, + "CodeSigningAccount": { + "type": "object", + "description": "Trusted signing account resource.", + "properties": { + "properties": { + "$ref": "#/definitions/CodeSigningAccountProperties", + "description": "The resource-specific properties for this resource.", + "x-ms-client-flatten": true + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/TrackedResource" + } + ] + }, + "CodeSigningAccountListResult": { + "type": "object", + "description": "The response of a CodeSigningAccount list operation.", + "properties": { + "value": { + "type": "array", + "description": "The CodeSigningAccount items on this page", + "items": { + "$ref": "#/definitions/CodeSigningAccount" + } + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "CodeSigningAccountPatch": { + "type": "object", + "description": "Parameters for creating or updating a trusted signing account.", + "properties": { + "tags": { + "type": "object", + "description": "Resource tags.", + "additionalProperties": { + "type": "string" + } + }, + "properties": { + "$ref": "#/definitions/CodeSigningAccountPatchProperties", + "description": "Properties of the trusted signing account.", + "x-ms-client-flatten": true + } + } + }, + "CodeSigningAccountPatchProperties": { + "type": "object", + "description": "Properties of the trusted signing account.", + "properties": { + "sku": { + "$ref": "#/definitions/AccountSku", + "description": "SKU of the trusted signing account." + } + } + }, + "CodeSigningAccountProperties": { + "type": "object", + "description": "Properties of the trusted signing account.", + "properties": { + "accountUri": { + "type": "string", + "description": "The URI of the trusted signing account which is used during signing files.", + "readOnly": true + }, + "sku": { + "$ref": "#/definitions/AccountSku", + "description": "SKU of the trusted signing account." + }, + "provisioningState": { + "$ref": "#/definitions/ProvisioningState", + "description": "Status of the current operation on trusted signing account.", + "readOnly": true + } + } + }, + "NameUnavailabilityReason": { + "type": "string", + "description": "The reason that a trusted signing account name could not be used. The Reason element is only returned if nameAvailable is false.", + "enum": [ + "AccountNameInvalid", + "AlreadyExists" + ], + "x-ms-enum": { + "name": "NameUnavailabilityReason", + "modelAsString": true, + "values": [ + { + "name": "AccountNameInvalid", + "value": "AccountNameInvalid", + "description": "Account name is invalid" + }, + { + "name": "AlreadyExists", + "value": "AlreadyExists", + "description": "Account name already exists" + } + ] + } + }, + "ProfileType": { + "type": "string", + "description": "Type of the certificate", + "enum": [ + "PublicTrust", + "PrivateTrust", + "PrivateTrustCIPolicy", + "VBSEnclave", + "PublicTrustTest" + ], + "x-ms-enum": { + "name": "ProfileType", + "modelAsString": true, + "values": [ + { + "name": "PublicTrust", + "value": "PublicTrust", + "description": "Used for signing files which are distributed publicly." + }, + { + "name": "PrivateTrust", + "value": "PrivateTrust", + "description": "Used for signing files which are distributed internally within organization or group boundary." + }, + { + "name": "PrivateTrustCIPolicy", + "value": "PrivateTrustCIPolicy", + "description": "Used for signing CI policy files." + }, + { + "name": "VBSEnclave", + "value": "VBSEnclave", + "description": "Used for signing files which are run in secure vbs enclave." + }, + { + "name": "PublicTrustTest", + "value": "PublicTrustTest", + "description": "Used for signing files for testing purpose." + } + ] + } + }, + "ProvisioningState": { + "type": "string", + "description": "The status of the current operation.", + "enum": [ + "Succeeded", + "Failed", + "Canceled", + "Updating", + "Deleting", + "Accepted" + ], + "x-ms-enum": { + "name": "ProvisioningState", + "modelAsString": true, + "values": [ + { + "name": "Succeeded", + "value": "Succeeded", + "description": "Resource has been created." + }, + { + "name": "Failed", + "value": "Failed", + "description": "Resource creation failed." + }, + { + "name": "Canceled", + "value": "Canceled", + "description": "Resource creation was canceled." + }, + { + "name": "Updating", + "value": "Updating", + "description": "Updating in progress." + }, + { + "name": "Deleting", + "value": "Deleting", + "description": "Deletion in progress." + }, + { + "name": "Accepted", + "value": "Accepted", + "description": "Resource creation started." + } + ] + }, + "readOnly": true + }, + "Revocation": { + "type": "object", + "description": "Revocation details of the certificate.", + "properties": { + "requestedAt": { + "type": "string", + "format": "date-time", + "description": "The timestamp when the revocation is requested." + }, + "effectiveAt": { + "type": "string", + "format": "date-time", + "description": "The timestamp when the revocation is effective." + }, + "reason": { + "type": "string", + "description": "Reason for revocation." + }, + "remarks": { + "type": "string", + "description": "Remarks for the revocation." + }, + "status": { + "$ref": "#/definitions/RevocationStatus", + "description": "Status of the revocation." + }, + "failureReason": { + "type": "string", + "description": "Reason for the revocation failure." + } + } + }, + "RevocationStatus": { + "type": "string", + "description": "Revocation status of the certificate.", + "enum": [ + "Succeeded", + "InProgress", + "Failed" + ], + "x-ms-enum": { + "name": "RevocationStatus", + "modelAsString": true, + "values": [ + { + "name": "Succeeded", + "value": "Succeeded", + "description": "Certificate revocation succeeded." + }, + { + "name": "InProgress", + "value": "InProgress", + "description": "Certificate revocation is in progress." + }, + { + "name": "Failed", + "value": "Failed", + "description": "Certificate revocation failed." + } + ] + }, + "readOnly": true + }, + "RevokeCertificate": { + "type": "object", + "description": "Defines the certificate revocation properties.", + "properties": { + "serialNumber": { + "type": "string", + "description": "Serial number of the certificate." + }, + "thumbprint": { + "type": "string", + "description": "Thumbprint of the certificate." + }, + "effectiveAt": { + "type": "string", + "format": "date-time", + "description": "The timestamp when the revocation is effective." + }, + "reason": { + "type": "string", + "description": "Reason for the revocation." + }, + "remarks": { + "type": "string", + "description": "Remarks for the revocation." + } + }, + "required": [ + "serialNumber", + "thumbprint", + "effectiveAt", + "reason" + ] + }, + "SkuName": { + "type": "string", + "description": "Name of the sku.", + "enum": [ + "Basic", + "Premium" + ], + "x-ms-enum": { + "name": "SkuName", + "modelAsString": true, + "values": [ + { + "name": "Basic", + "value": "Basic", + "description": "Basic sku." + }, + { + "name": "Premium", + "value": "Premium", + "description": "Premium sku." + } + ] + } + } + }, + "parameters": {} +} diff --git a/specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-09-30-preview/examples/CertificateProfiles_Create.json b/specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-09-30-preview/examples/CertificateProfiles_Create.json new file mode 100644 index 000000000000..30edf36c2465 --- /dev/null +++ b/specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-09-30-preview/examples/CertificateProfiles_Create.json @@ -0,0 +1,83 @@ +{ + "parameters": { + "accountName": "MyAccount", + "api-version": "2024-02-05-preview", + "resource": { + "properties": { + "profileType": "PublicTrust", + "identityValidationId": "00000000-1234-5678-3333-444444444444", + "includePostalCode": true, + "includeStreetAddress": false + } + }, + "profileName": "profileA", + "resourceGroupName": "MyResourceGroup", + "subscriptionId": "00000000-1111-2222-3333-444444444444" + }, + "responses": { + "200": { + "body": { + "name": "profileA", + "type": "Microsoft.CodeSigning/codeSigningAccounts/certificateProfiles", + "id": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/MyResourceGroup/providers/Microsoft.CodeSigning/codeSigningAccounts/MyAccount/certificateProfiles/profileA", + "properties": { + "certificates": [ + { + "createdDate": "3/14/2023 5:27:49 PM", + "expiryDate": "3/17/2023 5:27:49 PM", + "serialNumber": "xxxxxxxxxxxxxxxxxx", + "status": "Active", + "subjectName": "CN=Contoso Inc, O=Contoso Inc, L=New York, S=New York, C=US", + "thumbprint": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" + } + ], + "city": "Dallas", + "commonName": "Contoso Inc", + "country": "US", + "enhancedKeyUsage": "1.3.6.1.4.1.311.yy.xxxxxxxx.xxxxxxxx.xxxxxxxxx.xxxxxxxx", + "identityValidationId": "00000000-1234-5678-3333-444444444444", + "includeCity": false, + "includeCountry": false, + "includePostalCode": true, + "includeState": false, + "includeStreetAddress": false, + "organization": "Contoso Inc", + "postalCode": "560090", + "profileType": "PublicTrust", + "provisioningState": "Succeeded", + "state": "Texas", + "status": "Active", + "streetAddress": "123 Bluebonnet" + } + } + }, + "201": { + "body": { + "name": "profileA", + "type": "Microsoft.CodeSigning/codeSigningAccounts/certificateProfiles", + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/MyResourceGroup/providers/Microsoft.CodeSigning/codeSigningAccounts/MyAccount/certificateProfiles/profileA", + "properties": { + "certificates": [], + "city": "Dallas", + "commonName": "Contoso Inc", + "country": "US", + "enhancedKeyUsage": "1.3.6.1.4.1.311.yy.xxxxxxxx.xxxxxxxx.xxxxxxxxx.xxxxxxxx", + "identityValidationId": "00000000-1234-5678-3333-444444444444", + "includeCity": false, + "includeCountry": false, + "includePostalCode": true, + "includeState": false, + "includeStreetAddress": false, + "organization": "Contoso Inc", + "postalCode": "560090", + "profileType": "PublicTrust", + "provisioningState": "Succeeded", + "state": "Texas", + "streetAddress": "123 Bluebonnet" + } + } + } + }, + "operationId": "CertificateProfiles_Create", + "title": "Create a certificate profile." +} diff --git a/specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-09-30-preview/examples/CertificateProfiles_Delete.json b/specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-09-30-preview/examples/CertificateProfiles_Delete.json new file mode 100644 index 000000000000..8b09ffa8d8d3 --- /dev/null +++ b/specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-09-30-preview/examples/CertificateProfiles_Delete.json @@ -0,0 +1,23 @@ +{ + "parameters": { + "accountName": "MyAccount", + "api-version": "2024-02-05-preview", + "profileName": "profileA", + "resourceGroupName": "MyResourceGroup", + "subscriptionId": "00000000-1111-2222-3333-444444444444" + }, + "responses": { + "202": { + "headers": { + "azure-asyncoperation": "http://azure.async.operation/status" + } + }, + "204": { + "headers": { + "azure-asyncoperation": "http://azure.async.operation/status" + } + } + }, + "operationId": "CertificateProfiles_Delete", + "title": "Delete a certificate profile." +} diff --git a/specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-09-30-preview/examples/CertificateProfiles_Get.json b/specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-09-30-preview/examples/CertificateProfiles_Get.json new file mode 100644 index 000000000000..5391450cc833 --- /dev/null +++ b/specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-09-30-preview/examples/CertificateProfiles_Get.json @@ -0,0 +1,49 @@ +{ + "parameters": { + "accountName": "MyAccount", + "api-version": "2024-02-05-preview", + "profileName": "profileA", + "resourceGroupName": "MyResourceGroup", + "subscriptionId": "00000000-1111-2222-3333-444444444444" + }, + "responses": { + "200": { + "body": { + "name": "profileA", + "type": "Microsoft.CodeSigning/codeSigningAccounts/certificateProfiles", + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/MyResourceGroup/providers/Microsoft.CodeSigning/codeSigningAccounts/MyAccount/certificateProfiles/profileA", + "properties": { + "certificates": [ + { + "createdDate": "3/14/2023 5:27:49 PM", + "expiryDate": "3/17/2023 5:27:49 PM", + "serialNumber": "xxxxxxxxxxxxxxxxxx", + "status": "Active", + "subjectName": "CN=Contoso Inc, O=Contoso Inc, L=New York, S=New York, C=US", + "thumbprint": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" + } + ], + "city": "Dallas", + "commonName": "Contoso Inc", + "country": "US", + "enhancedKeyUsage": "1.3.6.1.4.1.311.yy.xxxxxxxx.xxxxxxxx.xxxxxxxxx.xxxxxxxx", + "identityValidationId": "123456", + "includeCity": false, + "includeCountry": false, + "includePostalCode": true, + "includeState": false, + "includeStreetAddress": false, + "organization": "Contoso Inc", + "postalCode": "560090", + "profileType": "PublicTrust", + "provisioningState": "Succeeded", + "state": "Texas", + "status": "Active", + "streetAddress": "123 Bluebonnet" + } + } + } + }, + "operationId": "CertificateProfiles_Get", + "title": "Get details of a certificate profile." +} diff --git a/specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-09-30-preview/examples/CertificateProfiles_ListByCodeSigningAccount.json b/specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-09-30-preview/examples/CertificateProfiles_ListByCodeSigningAccount.json new file mode 100644 index 000000000000..7931599b357f --- /dev/null +++ b/specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-09-30-preview/examples/CertificateProfiles_ListByCodeSigningAccount.json @@ -0,0 +1,52 @@ +{ + "parameters": { + "accountName": "MyAccount", + "api-version": "2024-02-05-preview", + "resourceGroupName": "MyResourceGroup", + "subscriptionId": "00000000-1111-2222-3333-444444444444" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "profileA", + "type": "Microsoft.CodeSigning/codeSigningAccounts/certificateProfiles", + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/MyResourceGroup/providers/Microsoft.CodeSigning/codeSigningAccounts/profileA", + "properties": { + "certificates": [ + { + "createdDate": "3/14/2023 5:27:49 PM", + "expiryDate": "3/17/2023 5:27:49 PM", + "serialNumber": "xxxxxxxxxxxxxxxxxx", + "status": "Active", + "subjectName": "CN=Contoso Inc, O=Contoso Inc, L=New York, S=New York, C=US", + "thumbprint": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" + } + ], + "city": "Dallas", + "commonName": "Microsoft Corporation", + "country": "US", + "enhancedKeyUsage": "1.3.6.1.4.1.311.yy.xxxxxxxx.xxxxxxxx.xxxxxxxxx.xxxxxxxx", + "identityValidationId": "123456", + "includeCity": false, + "includeCountry": false, + "includePostalCode": true, + "includeState": false, + "includeStreetAddress": false, + "organization": "Microsoft Corporation", + "postalCode": "560090", + "profileType": "PublicTrust", + "provisioningState": "Succeeded", + "state": "Texas", + "status": "Active", + "streetAddress": "123 Bluebonnet" + } + } + ] + } + } + }, + "operationId": "CertificateProfiles_ListByCodeSigningAccount", + "title": "List certificate profiles under a trusted signing account." +} diff --git a/specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-09-30-preview/examples/CertificateProfiles_RevokeCertificate.json b/specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-09-30-preview/examples/CertificateProfiles_RevokeCertificate.json new file mode 100644 index 000000000000..a9abb4a5f0eb --- /dev/null +++ b/specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-09-30-preview/examples/CertificateProfiles_RevokeCertificate.json @@ -0,0 +1,21 @@ +{ + "parameters": { + "accountName": "MyAccount", + "api-version": "2024-02-05-preview", + "profileName": "profileA", + "resourceGroupName": "MyResourceGroup", + "body": { + "effectiveAt": "2023-11-12T23:40:25+00:00", + "reason": "KeyCompromised", + "remarks": "test", + "serialNumber": "xxxxxxxxxxxxxxxxxx", + "thumbprint": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" + }, + "subscriptionId": "00000000-1111-2222-3333-444444444444" + }, + "responses": { + "204": {} + }, + "operationId": "CertificateProfiles_RevokeCertificate", + "title": "Revoke a certificate under a certificate profile." +} diff --git a/specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-09-30-preview/examples/CodeSigningAccounts_CheckNameAvailability.json b/specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-09-30-preview/examples/CodeSigningAccounts_CheckNameAvailability.json new file mode 100644 index 000000000000..54f2cadf208d --- /dev/null +++ b/specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-09-30-preview/examples/CodeSigningAccounts_CheckNameAvailability.json @@ -0,0 +1,18 @@ +{ + "parameters": { + "body": { + "name": "sample-account" + }, + "api-version": "2024-02-05-preview", + "subscriptionId": "00000000-1111-2222-3333-444444444444" + }, + "responses": { + "200": { + "body": { + "nameAvailable": true + } + } + }, + "operationId": "CodeSigningAccounts_CheckNameAvailability", + "title": "Checks that the trusted signing account name is available." +} diff --git a/specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-09-30-preview/examples/CodeSigningAccounts_Create.json b/specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-09-30-preview/examples/CodeSigningAccounts_Create.json new file mode 100644 index 000000000000..7655810f8b6a --- /dev/null +++ b/specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-09-30-preview/examples/CodeSigningAccounts_Create.json @@ -0,0 +1,48 @@ +{ + "parameters": { + "accountName": "MyAccount", + "api-version": "2024-02-05-preview", + "resource": { + "location": "westus", + "properties": { + "sku": { + "name": "Basic" + } + } + }, + "resourceGroupName": "MyResourceGroup", + "subscriptionId": "00000000-1111-2222-3333-444444444444" + }, + "responses": { + "200": { + "body": { + "name": "MyAccount", + "type": "Microsoft.CodeSigning/codeSigningAccounts", + "id": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/MyResourceGroup/providers/Microsoft.CodeSigning/codeSigningAccounts/MyAccount", + "location": "westus", + "properties": { + "provisioningState": "Succeeded", + "sku": { + "name": "Basic" + } + } + } + }, + "201": { + "body": { + "name": "MyAccount", + "type": "Microsoft.CodeSigning/codeSigningAccounts", + "id": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/MyResourceGroup/providers/Microsoft.CodeSigning/codeSigningAccounts/MyAccount", + "location": "westus", + "properties": { + "provisioningState": "Accepted", + "sku": { + "name": "Basic" + } + } + } + } + }, + "operationId": "CodeSigningAccounts_Create", + "title": "Create a trusted Signing Account." +} diff --git a/specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-09-30-preview/examples/CodeSigningAccounts_Delete.json b/specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-09-30-preview/examples/CodeSigningAccounts_Delete.json new file mode 100644 index 000000000000..b05c9faf4f76 --- /dev/null +++ b/specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-09-30-preview/examples/CodeSigningAccounts_Delete.json @@ -0,0 +1,24 @@ +{ + "parameters": { + "accountName": "MyAccount", + "api-version": "2024-02-05-preview", + "resourceGroupName": "MyResourceGroup", + "subscriptionId": "00000000-1111-2222-3333-444444444444" + }, + "responses": { + "202": { + "headers": { + "azure-asyncoperation": "http://azure.async.operation/status", + "location": "http://azure.async.operation/status" + } + }, + "204": { + "headers": { + "azure-asyncoperation": "http://azure.async.operation/status", + "location": "http://azure.async.operation/status" + } + } + }, + "operationId": "CodeSigningAccounts_Delete", + "title": "Delete a trusted signing account." +} diff --git a/specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-09-30-preview/examples/CodeSigningAccounts_Get.json b/specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-09-30-preview/examples/CodeSigningAccounts_Get.json new file mode 100644 index 000000000000..ce34d9bebbee --- /dev/null +++ b/specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-09-30-preview/examples/CodeSigningAccounts_Get.json @@ -0,0 +1,29 @@ +{ + "parameters": { + "accountName": "MyAccount", + "api-version": "2024-02-05-preview", + "resourceGroupName": "MyResourceGroup", + "subscriptionId": "00000000-1111-2222-3333-444444444444" + }, + "responses": { + "200": { + "body": { + "name": "MyAccount", + "type": "Microsoft.CodeSigning/codeSigningAccounts", + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/MyResourceGroup/providers/Microsoft.CodeSigning/codeSigningAccounts/MyAccount", + "location": "westus", + "properties": { + "provisioningState": "Succeeded", + "sku": { + "name": "Basic" + } + }, + "tags": { + "key1": "value1" + } + } + } + }, + "operationId": "CodeSigningAccounts_Get", + "title": "Get a Trusted Signing Account" +} diff --git a/specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-09-30-preview/examples/CodeSigningAccounts_ListByResourceGroup.json b/specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-09-30-preview/examples/CodeSigningAccounts_ListByResourceGroup.json new file mode 100644 index 000000000000..3fd3b9a6aa57 --- /dev/null +++ b/specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-09-30-preview/examples/CodeSigningAccounts_ListByResourceGroup.json @@ -0,0 +1,32 @@ +{ + "parameters": { + "api-version": "2024-02-05-preview", + "resourceGroupName": "MyResourceGroup", + "subscriptionId": "00000000-1111-2222-3333-444444444444" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "alpha", + "type": "Microsoft.CodeSigning/codeSigningAccounts", + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/MyResourceGroup/providers/Microsoft.CodeSigning/codeSigningAccounts/MyAccount", + "location": "westcentralus", + "properties": { + "provisioningState": "Succeeded", + "sku": { + "name": "Basic" + } + }, + "tags": { + "key1": "value1" + } + } + ] + } + } + }, + "operationId": "CodeSigningAccounts_ListByResourceGroup", + "title": "Lists trusted signing accounts within a resource group." +} diff --git a/specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-09-30-preview/examples/CodeSigningAccounts_ListBySubscription.json b/specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-09-30-preview/examples/CodeSigningAccounts_ListBySubscription.json new file mode 100644 index 000000000000..2e353f1cd3fd --- /dev/null +++ b/specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-09-30-preview/examples/CodeSigningAccounts_ListBySubscription.json @@ -0,0 +1,31 @@ +{ + "parameters": { + "api-version": "2024-02-05-preview", + "subscriptionId": "00000000-1111-2222-3333-444444444444" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "alpha", + "type": "Microsoft.CodeSigning/codeSigningAccounts", + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/MyResourceGroup/providers/Microsoft.CodeSigning/codeSigningAccounts/MyAccount", + "location": "westus", + "properties": { + "provisioningState": "Succeeded", + "sku": { + "name": "Basic" + } + }, + "tags": { + "key1": "value1" + } + } + ] + } + } + }, + "operationId": "CodeSigningAccounts_ListBySubscription", + "title": "Lists trusted signing accounts within a subscription." +} diff --git a/specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-09-30-preview/examples/CodeSigningAccounts_Update.json b/specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-09-30-preview/examples/CodeSigningAccounts_Update.json new file mode 100644 index 000000000000..6467eb884019 --- /dev/null +++ b/specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-09-30-preview/examples/CodeSigningAccounts_Update.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "accountName": "MyAccount", + "api-version": "2024-02-05-preview", + "properties": { + "tags": { + "key1": "value1" + } + }, + "resourceGroupName": "MyResourceGroup", + "subscriptionId": "00000000-1111-2222-3333-444444444444" + }, + "responses": { + "200": { + "body": { + "name": "MyAccount", + "type": "Microsoft.CodeSigning/codeSigningAccounts", + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/MyResourceGroup/providers/Microsoft.CodeSigning/codeSigningAccounts/MyAccount", + "location": "westus", + "properties": { + "provisioningState": "Succeeded", + "sku": { + "name": "Basic" + } + }, + "tags": { + "key1": "value1" + } + } + }, + "202": { + "headers": { + "azure-asyncoperation": "http://azure.async.operation/status", + "location": "http://azure.async.operation/status" + } + } + }, + "operationId": "CodeSigningAccounts_Update", + "title": "Update a trusted signing account." +} diff --git a/specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-09-30-preview/examples/Operations_List.json b/specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-09-30-preview/examples/Operations_List.json new file mode 100644 index 000000000000..0fd92abc89e2 --- /dev/null +++ b/specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-09-30-preview/examples/Operations_List.json @@ -0,0 +1,44 @@ +{ + "parameters": { + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "resourceGroupName": "MyResourceGroup", + "api-version": "2024-02-05-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "Microsoft.CodeSigning/codeSigningAccounts/write", + "display": { + "provider": "Microsoft.CodeSigning", + "resource": "codeSigningAccounts", + "operation": "Create CodeSigningAccount", + "description": "Create any CodeSigningAccount" + } + }, + { + "name": "Microsoft.CodeSigning/codeSigningAccounts/read", + "display": { + "provider": "Microsoft.CodeSigning", + "resource": "codeSigningAccounts", + "operation": "Get CodeSigningAccount", + "description": "Get any CodeSigningAccount" + } + }, + { + "name": "Microsoft.CodeSigning/codeSigningAccounts/delete", + "display": { + "provider": "Microsoft.CodeSigning", + "resource": "codeSigningAccounts", + "operation": "Delete CodeSigningAccount", + "description": "Delete any CodeSigningAccount" + } + } + ] + } + } + }, + "operationId": "Operations_List", + "title": "List trusted signing account operations." +} From 08788e43c6873bf27665fe266781a527e7036902 Mon Sep 17 00:00:00 2001 From: "Manish Patil (from Dev Box)" Date: Mon, 23 Sep 2024 20:32:51 +0530 Subject: [PATCH 2/4] added 2024-09-30 api version --- .../CertificateProfiles_Create.json | 68 +++++++++++++++++++ .../CertificateProfiles_Delete.json | 23 +++++++ .../CertificateProfiles_Get.json | 42 ++++++++++++ ...cateProfiles_ListByCodeSigningAccount.json | 45 ++++++++++++ ...CertificateProfiles_RevokeCertificate.json | 21 ++++++ ...SigningAccounts_CheckNameAvailability.json | 18 +++++ .../CodeSigningAccounts_Create.json | 48 +++++++++++++ .../CodeSigningAccounts_Delete.json | 24 +++++++ .../CodeSigningAccounts_Get.json | 29 ++++++++ ...deSigningAccounts_ListByResourceGroup.json | 32 +++++++++ ...odeSigningAccounts_ListBySubscription.json | 31 +++++++++ .../CodeSigningAccounts_Update.json | 40 +++++++++++ .../2024-09-30-preview/Operations_List.json | 44 ++++++++++++ .../CodeSigning.Management/main.tsp | 2 + .../CodeSigning.Management/models.tsp | 30 +++++++- .../codeSigningAccount.json | 66 +++++------------- .../examples/CertificateProfiles_Create.json | 25 ++----- .../examples/CertificateProfiles_Delete.json | 2 +- .../examples/CertificateProfiles_Get.json | 15 ++-- ...cateProfiles_ListByCodeSigningAccount.json | 15 ++-- ...CertificateProfiles_RevokeCertificate.json | 2 +- ...SigningAccounts_CheckNameAvailability.json | 2 +- .../examples/CodeSigningAccounts_Create.json | 2 +- .../examples/CodeSigningAccounts_Delete.json | 2 +- .../examples/CodeSigningAccounts_Get.json | 2 +- ...deSigningAccounts_ListByResourceGroup.json | 2 +- ...odeSigningAccounts_ListBySubscription.json | 2 +- .../examples/CodeSigningAccounts_Update.json | 2 +- .../examples/Operations_List.json | 2 +- .../codesigning/resource-manager/readme.md | 11 ++- .../resource-manager/readme.python.md | 2 +- 31 files changed, 546 insertions(+), 105 deletions(-) create mode 100644 specification/codesigning/CodeSigning.Management/examples/2024-09-30-preview/CertificateProfiles_Create.json create mode 100644 specification/codesigning/CodeSigning.Management/examples/2024-09-30-preview/CertificateProfiles_Delete.json create mode 100644 specification/codesigning/CodeSigning.Management/examples/2024-09-30-preview/CertificateProfiles_Get.json create mode 100644 specification/codesigning/CodeSigning.Management/examples/2024-09-30-preview/CertificateProfiles_ListByCodeSigningAccount.json create mode 100644 specification/codesigning/CodeSigning.Management/examples/2024-09-30-preview/CertificateProfiles_RevokeCertificate.json create mode 100644 specification/codesigning/CodeSigning.Management/examples/2024-09-30-preview/CodeSigningAccounts_CheckNameAvailability.json create mode 100644 specification/codesigning/CodeSigning.Management/examples/2024-09-30-preview/CodeSigningAccounts_Create.json create mode 100644 specification/codesigning/CodeSigning.Management/examples/2024-09-30-preview/CodeSigningAccounts_Delete.json create mode 100644 specification/codesigning/CodeSigning.Management/examples/2024-09-30-preview/CodeSigningAccounts_Get.json create mode 100644 specification/codesigning/CodeSigning.Management/examples/2024-09-30-preview/CodeSigningAccounts_ListByResourceGroup.json create mode 100644 specification/codesigning/CodeSigning.Management/examples/2024-09-30-preview/CodeSigningAccounts_ListBySubscription.json create mode 100644 specification/codesigning/CodeSigning.Management/examples/2024-09-30-preview/CodeSigningAccounts_Update.json create mode 100644 specification/codesigning/CodeSigning.Management/examples/2024-09-30-preview/Operations_List.json diff --git a/specification/codesigning/CodeSigning.Management/examples/2024-09-30-preview/CertificateProfiles_Create.json b/specification/codesigning/CodeSigning.Management/examples/2024-09-30-preview/CertificateProfiles_Create.json new file mode 100644 index 000000000000..540c10ad00eb --- /dev/null +++ b/specification/codesigning/CodeSigning.Management/examples/2024-09-30-preview/CertificateProfiles_Create.json @@ -0,0 +1,68 @@ +{ + "parameters": { + "accountName": "MyAccount", + "api-version": "2024-09-30-preview", + "resource": { + "properties": { + "profileType": "PublicTrust", + "identityValidationId": "00000000-1234-5678-3333-444444444444", + "includePostalCode": true, + "includeStreetAddress": false + } + }, + "profileName": "profileA", + "resourceGroupName": "MyResourceGroup", + "subscriptionId": "00000000-1111-2222-3333-444444444444" + }, + "responses": { + "200": { + "body": { + "name": "profileA", + "type": "Microsoft.CodeSigning/codeSigningAccounts/certificateProfiles", + "id": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/MyResourceGroup/providers/Microsoft.CodeSigning/codeSigningAccounts/MyAccount/certificateProfiles/profileA", + "properties": { + "certificates": [ + { + "createdDate": "3/14/2023 5:27:49 PM", + "expiryDate": "3/17/2023 5:27:49 PM", + "enhancedKeyUsage": "1.3.6.1.4.1.311.yy.xxxxxxxx.xxxxxxxx.xxxxxxxxx.xxxxxxxx", + "serialNumber": "xxxxxxxxxxxxxxxxxx", + "status": "Active", + "subjectName": "CN=Contoso Inc, O=Contoso Inc, L=New York, S=New York, C=US", + "thumbprint": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" + } + ], + "identityValidationId": "00000000-1234-5678-3333-444444444444", + "includeCity": false, + "includeCountry": false, + "includePostalCode": true, + "includeState": false, + "includeStreetAddress": false, + "profileType": "PublicTrust", + "provisioningState": "Succeeded", + "status": "Active" + } + } + }, + "201": { + "body": { + "name": "profileA", + "type": "Microsoft.CodeSigning/codeSigningAccounts/certificateProfiles", + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/MyResourceGroup/providers/Microsoft.CodeSigning/codeSigningAccounts/MyAccount/certificateProfiles/profileA", + "properties": { + "certificates": [], + "identityValidationId": "00000000-1234-5678-3333-444444444444", + "includeCity": false, + "includeCountry": false, + "includePostalCode": true, + "includeState": false, + "includeStreetAddress": false, + "profileType": "PublicTrust", + "provisioningState": "Succeeded" + } + } + } + }, + "operationId": "CertificateProfiles_Create", + "title": "Create a certificate profile." +} diff --git a/specification/codesigning/CodeSigning.Management/examples/2024-09-30-preview/CertificateProfiles_Delete.json b/specification/codesigning/CodeSigning.Management/examples/2024-09-30-preview/CertificateProfiles_Delete.json new file mode 100644 index 000000000000..e0a743a2cc25 --- /dev/null +++ b/specification/codesigning/CodeSigning.Management/examples/2024-09-30-preview/CertificateProfiles_Delete.json @@ -0,0 +1,23 @@ +{ + "parameters": { + "accountName": "MyAccount", + "api-version": "2024-09-30-preview", + "profileName": "profileA", + "resourceGroupName": "MyResourceGroup", + "subscriptionId": "00000000-1111-2222-3333-444444444444" + }, + "responses": { + "202": { + "headers": { + "azure-asyncoperation": "http://azure.async.operation/status" + } + }, + "204": { + "headers": { + "azure-asyncoperation": "http://azure.async.operation/status" + } + } + }, + "operationId": "CertificateProfiles_Delete", + "title": "Delete a certificate profile." +} diff --git a/specification/codesigning/CodeSigning.Management/examples/2024-09-30-preview/CertificateProfiles_Get.json b/specification/codesigning/CodeSigning.Management/examples/2024-09-30-preview/CertificateProfiles_Get.json new file mode 100644 index 000000000000..d339fbc1cd0d --- /dev/null +++ b/specification/codesigning/CodeSigning.Management/examples/2024-09-30-preview/CertificateProfiles_Get.json @@ -0,0 +1,42 @@ +{ + "parameters": { + "accountName": "MyAccount", + "api-version": "2024-09-30-preview", + "profileName": "profileA", + "resourceGroupName": "MyResourceGroup", + "subscriptionId": "00000000-1111-2222-3333-444444444444" + }, + "responses": { + "200": { + "body": { + "name": "profileA", + "type": "Microsoft.CodeSigning/codeSigningAccounts/certificateProfiles", + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/MyResourceGroup/providers/Microsoft.CodeSigning/codeSigningAccounts/MyAccount/certificateProfiles/profileA", + "properties": { + "certificates": [ + { + "createdDate": "3/14/2023 5:27:49 PM", + "expiryDate": "3/17/2023 5:27:49 PM", + "enhancedKeyUsage": "1.3.6.1.4.1.311.yy.xxxxxxxx.xxxxxxxx.xxxxxxxxx.xxxxxxxx", + "serialNumber": "xxxxxxxxxxxxxxxxxx", + "status": "Active", + "subjectName": "CN=Contoso Inc, O=Contoso Inc, L=New York, S=New York, C=US", + "thumbprint": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" + } + ], + "identityValidationId": "123456", + "includeCity": false, + "includeCountry": false, + "includePostalCode": true, + "includeState": false, + "includeStreetAddress": false, + "profileType": "PublicTrust", + "provisioningState": "Succeeded", + "status": "Active" + } + } + } + }, + "operationId": "CertificateProfiles_Get", + "title": "Get details of a certificate profile." +} diff --git a/specification/codesigning/CodeSigning.Management/examples/2024-09-30-preview/CertificateProfiles_ListByCodeSigningAccount.json b/specification/codesigning/CodeSigning.Management/examples/2024-09-30-preview/CertificateProfiles_ListByCodeSigningAccount.json new file mode 100644 index 000000000000..4db849c8f6d0 --- /dev/null +++ b/specification/codesigning/CodeSigning.Management/examples/2024-09-30-preview/CertificateProfiles_ListByCodeSigningAccount.json @@ -0,0 +1,45 @@ +{ + "parameters": { + "accountName": "MyAccount", + "api-version": "2024-09-30-preview", + "resourceGroupName": "MyResourceGroup", + "subscriptionId": "00000000-1111-2222-3333-444444444444" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "profileA", + "type": "Microsoft.CodeSigning/codeSigningAccounts/certificateProfiles", + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/MyResourceGroup/providers/Microsoft.CodeSigning/codeSigningAccounts/profileA", + "properties": { + "certificates": [ + { + "createdDate": "3/14/2023 5:27:49 PM", + "expiryDate": "3/17/2023 5:27:49 PM", + "enhancedKeyUsage": "1.3.6.1.4.1.311.yy.xxxxxxxx.xxxxxxxx.xxxxxxxxx.xxxxxxxx", + "serialNumber": "xxxxxxxxxxxxxxxxxx", + "status": "Active", + "subjectName": "CN=Contoso Inc, O=Contoso Inc, L=New York, S=New York, C=US", + "thumbprint": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" + } + ], + "identityValidationId": "123456", + "includeCity": false, + "includeCountry": false, + "includePostalCode": true, + "includeState": false, + "includeStreetAddress": false, + "profileType": "PublicTrust", + "provisioningState": "Succeeded", + "status": "Active" + } + } + ] + } + } + }, + "operationId": "CertificateProfiles_ListByCodeSigningAccount", + "title": "List certificate profiles under a trusted signing account." +} diff --git a/specification/codesigning/CodeSigning.Management/examples/2024-09-30-preview/CertificateProfiles_RevokeCertificate.json b/specification/codesigning/CodeSigning.Management/examples/2024-09-30-preview/CertificateProfiles_RevokeCertificate.json new file mode 100644 index 000000000000..17e9e7baa606 --- /dev/null +++ b/specification/codesigning/CodeSigning.Management/examples/2024-09-30-preview/CertificateProfiles_RevokeCertificate.json @@ -0,0 +1,21 @@ +{ + "parameters": { + "accountName": "MyAccount", + "api-version": "2024-09-30-preview", + "profileName": "profileA", + "resourceGroupName": "MyResourceGroup", + "body": { + "effectiveAt": "2023-11-12T23:40:25+00:00", + "reason": "KeyCompromised", + "remarks": "test", + "serialNumber": "xxxxxxxxxxxxxxxxxx", + "thumbprint": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" + }, + "subscriptionId": "00000000-1111-2222-3333-444444444444" + }, + "responses": { + "204": {} + }, + "operationId": "CertificateProfiles_RevokeCertificate", + "title": "Revoke a certificate under a certificate profile." +} diff --git a/specification/codesigning/CodeSigning.Management/examples/2024-09-30-preview/CodeSigningAccounts_CheckNameAvailability.json b/specification/codesigning/CodeSigning.Management/examples/2024-09-30-preview/CodeSigningAccounts_CheckNameAvailability.json new file mode 100644 index 000000000000..ae1cfb811407 --- /dev/null +++ b/specification/codesigning/CodeSigning.Management/examples/2024-09-30-preview/CodeSigningAccounts_CheckNameAvailability.json @@ -0,0 +1,18 @@ +{ + "parameters": { + "body": { + "name": "sample-account" + }, + "api-version": "2024-09-30-preview", + "subscriptionId": "00000000-1111-2222-3333-444444444444" + }, + "responses": { + "200": { + "body": { + "nameAvailable": true + } + } + }, + "operationId": "CodeSigningAccounts_CheckNameAvailability", + "title": "Checks that the trusted signing account name is available." +} diff --git a/specification/codesigning/CodeSigning.Management/examples/2024-09-30-preview/CodeSigningAccounts_Create.json b/specification/codesigning/CodeSigning.Management/examples/2024-09-30-preview/CodeSigningAccounts_Create.json new file mode 100644 index 000000000000..214d8e3aa374 --- /dev/null +++ b/specification/codesigning/CodeSigning.Management/examples/2024-09-30-preview/CodeSigningAccounts_Create.json @@ -0,0 +1,48 @@ +{ + "parameters": { + "accountName": "MyAccount", + "api-version": "2024-09-30-preview", + "resource": { + "location": "westus", + "properties": { + "sku": { + "name": "Basic" + } + } + }, + "resourceGroupName": "MyResourceGroup", + "subscriptionId": "00000000-1111-2222-3333-444444444444" + }, + "responses": { + "200": { + "body": { + "name": "MyAccount", + "type": "Microsoft.CodeSigning/codeSigningAccounts", + "id": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/MyResourceGroup/providers/Microsoft.CodeSigning/codeSigningAccounts/MyAccount", + "location": "westus", + "properties": { + "provisioningState": "Succeeded", + "sku": { + "name": "Basic" + } + } + } + }, + "201": { + "body": { + "name": "MyAccount", + "type": "Microsoft.CodeSigning/codeSigningAccounts", + "id": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/MyResourceGroup/providers/Microsoft.CodeSigning/codeSigningAccounts/MyAccount", + "location": "westus", + "properties": { + "provisioningState": "Accepted", + "sku": { + "name": "Basic" + } + } + } + } + }, + "operationId": "CodeSigningAccounts_Create", + "title": "Create a trusted Signing Account." +} diff --git a/specification/codesigning/CodeSigning.Management/examples/2024-09-30-preview/CodeSigningAccounts_Delete.json b/specification/codesigning/CodeSigning.Management/examples/2024-09-30-preview/CodeSigningAccounts_Delete.json new file mode 100644 index 000000000000..062f0fda1600 --- /dev/null +++ b/specification/codesigning/CodeSigning.Management/examples/2024-09-30-preview/CodeSigningAccounts_Delete.json @@ -0,0 +1,24 @@ +{ + "parameters": { + "accountName": "MyAccount", + "api-version": "2024-09-30-preview", + "resourceGroupName": "MyResourceGroup", + "subscriptionId": "00000000-1111-2222-3333-444444444444" + }, + "responses": { + "202": { + "headers": { + "azure-asyncoperation": "http://azure.async.operation/status", + "location": "http://azure.async.operation/status" + } + }, + "204": { + "headers": { + "azure-asyncoperation": "http://azure.async.operation/status", + "location": "http://azure.async.operation/status" + } + } + }, + "operationId": "CodeSigningAccounts_Delete", + "title": "Delete a trusted signing account." +} diff --git a/specification/codesigning/CodeSigning.Management/examples/2024-09-30-preview/CodeSigningAccounts_Get.json b/specification/codesigning/CodeSigning.Management/examples/2024-09-30-preview/CodeSigningAccounts_Get.json new file mode 100644 index 000000000000..f5d4e090907c --- /dev/null +++ b/specification/codesigning/CodeSigning.Management/examples/2024-09-30-preview/CodeSigningAccounts_Get.json @@ -0,0 +1,29 @@ +{ + "parameters": { + "accountName": "MyAccount", + "api-version": "2024-09-30-preview", + "resourceGroupName": "MyResourceGroup", + "subscriptionId": "00000000-1111-2222-3333-444444444444" + }, + "responses": { + "200": { + "body": { + "name": "MyAccount", + "type": "Microsoft.CodeSigning/codeSigningAccounts", + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/MyResourceGroup/providers/Microsoft.CodeSigning/codeSigningAccounts/MyAccount", + "location": "westus", + "properties": { + "provisioningState": "Succeeded", + "sku": { + "name": "Basic" + } + }, + "tags": { + "key1": "value1" + } + } + } + }, + "operationId": "CodeSigningAccounts_Get", + "title": "Get a Trusted Signing Account" +} diff --git a/specification/codesigning/CodeSigning.Management/examples/2024-09-30-preview/CodeSigningAccounts_ListByResourceGroup.json b/specification/codesigning/CodeSigning.Management/examples/2024-09-30-preview/CodeSigningAccounts_ListByResourceGroup.json new file mode 100644 index 000000000000..50fd72f56334 --- /dev/null +++ b/specification/codesigning/CodeSigning.Management/examples/2024-09-30-preview/CodeSigningAccounts_ListByResourceGroup.json @@ -0,0 +1,32 @@ +{ + "parameters": { + "api-version": "2024-09-30-preview", + "resourceGroupName": "MyResourceGroup", + "subscriptionId": "00000000-1111-2222-3333-444444444444" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "alpha", + "type": "Microsoft.CodeSigning/codeSigningAccounts", + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/MyResourceGroup/providers/Microsoft.CodeSigning/codeSigningAccounts/MyAccount", + "location": "westcentralus", + "properties": { + "provisioningState": "Succeeded", + "sku": { + "name": "Basic" + } + }, + "tags": { + "key1": "value1" + } + } + ] + } + } + }, + "operationId": "CodeSigningAccounts_ListByResourceGroup", + "title": "Lists trusted signing accounts within a resource group." +} diff --git a/specification/codesigning/CodeSigning.Management/examples/2024-09-30-preview/CodeSigningAccounts_ListBySubscription.json b/specification/codesigning/CodeSigning.Management/examples/2024-09-30-preview/CodeSigningAccounts_ListBySubscription.json new file mode 100644 index 000000000000..5c14b6bc07bd --- /dev/null +++ b/specification/codesigning/CodeSigning.Management/examples/2024-09-30-preview/CodeSigningAccounts_ListBySubscription.json @@ -0,0 +1,31 @@ +{ + "parameters": { + "api-version": "2024-09-30-preview", + "subscriptionId": "00000000-1111-2222-3333-444444444444" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "alpha", + "type": "Microsoft.CodeSigning/codeSigningAccounts", + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/MyResourceGroup/providers/Microsoft.CodeSigning/codeSigningAccounts/MyAccount", + "location": "westus", + "properties": { + "provisioningState": "Succeeded", + "sku": { + "name": "Basic" + } + }, + "tags": { + "key1": "value1" + } + } + ] + } + } + }, + "operationId": "CodeSigningAccounts_ListBySubscription", + "title": "Lists trusted signing accounts within a subscription." +} diff --git a/specification/codesigning/CodeSigning.Management/examples/2024-09-30-preview/CodeSigningAccounts_Update.json b/specification/codesigning/CodeSigning.Management/examples/2024-09-30-preview/CodeSigningAccounts_Update.json new file mode 100644 index 000000000000..1ed4f660a665 --- /dev/null +++ b/specification/codesigning/CodeSigning.Management/examples/2024-09-30-preview/CodeSigningAccounts_Update.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "accountName": "MyAccount", + "api-version": "2024-09-30-preview", + "properties": { + "tags": { + "key1": "value1" + } + }, + "resourceGroupName": "MyResourceGroup", + "subscriptionId": "00000000-1111-2222-3333-444444444444" + }, + "responses": { + "200": { + "body": { + "name": "MyAccount", + "type": "Microsoft.CodeSigning/codeSigningAccounts", + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/MyResourceGroup/providers/Microsoft.CodeSigning/codeSigningAccounts/MyAccount", + "location": "westus", + "properties": { + "provisioningState": "Succeeded", + "sku": { + "name": "Basic" + } + }, + "tags": { + "key1": "value1" + } + } + }, + "202": { + "headers": { + "azure-asyncoperation": "http://azure.async.operation/status", + "location": "http://azure.async.operation/status" + } + } + }, + "operationId": "CodeSigningAccounts_Update", + "title": "Update a trusted signing account." +} diff --git a/specification/codesigning/CodeSigning.Management/examples/2024-09-30-preview/Operations_List.json b/specification/codesigning/CodeSigning.Management/examples/2024-09-30-preview/Operations_List.json new file mode 100644 index 000000000000..e5f631eac339 --- /dev/null +++ b/specification/codesigning/CodeSigning.Management/examples/2024-09-30-preview/Operations_List.json @@ -0,0 +1,44 @@ +{ + "parameters": { + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "resourceGroupName": "MyResourceGroup", + "api-version": "2024-09-30-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "Microsoft.CodeSigning/codeSigningAccounts/write", + "display": { + "provider": "Microsoft.CodeSigning", + "resource": "codeSigningAccounts", + "operation": "Create CodeSigningAccount", + "description": "Create any CodeSigningAccount" + } + }, + { + "name": "Microsoft.CodeSigning/codeSigningAccounts/read", + "display": { + "provider": "Microsoft.CodeSigning", + "resource": "codeSigningAccounts", + "operation": "Get CodeSigningAccount", + "description": "Get any CodeSigningAccount" + } + }, + { + "name": "Microsoft.CodeSigning/codeSigningAccounts/delete", + "display": { + "provider": "Microsoft.CodeSigning", + "resource": "codeSigningAccounts", + "operation": "Delete CodeSigningAccount", + "description": "Delete any CodeSigningAccount" + } + } + ] + } + } + }, + "operationId": "Operations_List", + "title": "List trusted signing account operations." +} diff --git a/specification/codesigning/CodeSigning.Management/main.tsp b/specification/codesigning/CodeSigning.Management/main.tsp index 54a7a1eed540..12a7314db219 100644 --- a/specification/codesigning/CodeSigning.Management/main.tsp +++ b/specification/codesigning/CodeSigning.Management/main.tsp @@ -28,4 +28,6 @@ enum Versions { @useDependency(Azure.ResourceManager.Versions.v1_0_Preview_1) @useDependency(Azure.Core.Versions.v1_0_Preview_1) v2024_02_05_preview: "2024-02-05-preview", + + v2024_09_30_preview: "2024-09-30-preview", } diff --git a/specification/codesigning/CodeSigning.Management/models.tsp b/specification/codesigning/CodeSigning.Management/models.tsp index bb8b69ae8130..c2bf122939a5 100644 --- a/specification/codesigning/CodeSigning.Management/models.tsp +++ b/specification/codesigning/CodeSigning.Management/models.tsp @@ -4,6 +4,7 @@ import "@azure-tools/typespec-azure-core"; import "@typespec/openapi"; import "@azure-tools/typespec-azure-resource-manager"; import "@azure-tools/typespec-client-generator-core"; +import "@typespec/versioning"; using TypeSpec.Rest; using TypeSpec.Http; @@ -11,6 +12,7 @@ using Azure.Core; using TypeSpec.OpenAPI; using Azure.ResourceManager; using Azure.ResourceManager.Foundations; +using TypeSpec.Versioning; namespace Microsoft.CodeSigning; @@ -158,7 +160,15 @@ model CodeSigningAccountPatch { @doc("Properties of the trusted signing account.") model CodeSigningAccountPatchProperties { @doc("SKU of the trusted signing account.") - sku?: AccountSku; + @typeChangedFrom(Versions.v2024_09_30_preview, AccountSku) + sku?: AccountSkuPatch; +} + +@doc("SKU of the trusted signing account.") +@added(Versions.v2024_09_30_preview) +model AccountSkuPatch { + @doc("Name of the SKU.") + name?: SkuName; } @doc("Properties of the certificate profile.") @@ -166,18 +176,22 @@ model CertificateProfileProperties { @doc("Profile type of the certificate.") profileType: ProfileType; + @removed(Versions.v2024_09_30_preview) @doc("Used as CN in the certificate subject name.") - @visibility("read") + @visibility("read") commonName?: string; + @removed(Versions.v2024_09_30_preview) @doc("Used as O in the certificate subject name.") @visibility("read") organization?: string; + @removed(Versions.v2024_09_30_preview) @doc("Used as OU in the private trust certificate subject name.") @visibility("read") organizationUnit?: string; + @removed(Versions.v2024_09_30_preview) @doc("Used as STREET in the certificate subject name.") @visibility("read") streetAddress?: string; @@ -185,6 +199,7 @@ model CertificateProfileProperties { @doc("Whether to include STREET in the certificate subject name.") includeStreetAddress?: boolean = false; + @removed(Versions.v2024_09_30_preview) @doc("Used as L in the certificate subject name.") @visibility("read") city?: string; @@ -192,6 +207,7 @@ model CertificateProfileProperties { @doc("Whether to include L in the certificate subject name. Applicable only for private trust, private trust ci profile types") includeCity?: boolean = false; + @removed(Versions.v2024_09_30_preview) @doc("Used as S in the certificate subject name.") @visibility("read") state?: string; @@ -199,6 +215,7 @@ model CertificateProfileProperties { @doc("Whether to include S in the certificate subject name. Applicable only for private trust, private trust ci profile types") includeState?: boolean = false; + @removed(Versions.v2024_09_30_preview) @doc("Used as C in the certificate subject name.") @visibility("read") country?: string; @@ -206,6 +223,7 @@ model CertificateProfileProperties { @doc("Whether to include C in the certificate subject name. Applicable only for private trust, private trust ci profile types") includeCountry?: boolean = false; + @removed(Versions.v2024_09_30_preview) @doc("Used as PC in the certificate subject name.") @visibility("read") postalCode?: string; @@ -213,12 +231,14 @@ model CertificateProfileProperties { @doc("Whether to include PC in the certificate subject name.") includePostalCode?: boolean = false; + @removed(Versions.v2024_09_30_preview) @doc("Enhanced key usage of the certificate.") @visibility("read") enhancedKeyUsage?: string; @doc("Identity validation id used for the certificate subject name.") - identityValidationId?: string; + @madeRequired(Versions.v2024_09_30_preview) + identityValidationId: string; @doc("Status of the current operation on certificate profile.") @visibility("read") @@ -241,6 +261,10 @@ model Certificate { @doc("Serial number of the certificate.") serialNumber?: string; + @doc("Enhanced key usage of the certificate.") + @added(Versions.v2024_09_30_preview) + enhancedKeyUsage?: string; + @doc("Subject name of the certificate.") subjectName?: string; diff --git a/specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-09-30-preview/codeSigningAccount.json b/specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-09-30-preview/codeSigningAccount.json index 123faa923f38..1aa1997bdac2 100644 --- a/specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-09-30-preview/codeSigningAccount.json +++ b/specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-09-30-preview/codeSigningAccount.json @@ -2,7 +2,7 @@ "swagger": "2.0", "info": { "title": "CodeSigningManagementClient", - "version": "2024-02-05-preview", + "version": "2024-09-30-preview", "description": "Code Signing resource provider api.", "x-typespec-generated": [ { @@ -790,6 +790,16 @@ "name" ] }, + "AccountSkuPatch": { + "type": "object", + "description": "SKU of the trusted signing account.", + "properties": { + "name": { + "$ref": "#/definitions/SkuName", + "description": "Name of the SKU." + } + } + }, "Certificate": { "type": "object", "description": "Properties of the certificate.", @@ -798,6 +808,10 @@ "type": "string", "description": "Serial number of the certificate." }, + "enhancedKeyUsage": { + "type": "string", + "description": "Enhanced key usage of the certificate." + }, "subjectName": { "type": "string", "description": "Subject name of the certificate." @@ -870,76 +884,31 @@ "$ref": "#/definitions/ProfileType", "description": "Profile type of the certificate." }, - "commonName": { - "type": "string", - "description": "Used as CN in the certificate subject name.", - "readOnly": true - }, - "organization": { - "type": "string", - "description": "Used as O in the certificate subject name.", - "readOnly": true - }, - "organizationUnit": { - "type": "string", - "description": "Used as OU in the private trust certificate subject name.", - "readOnly": true - }, - "streetAddress": { - "type": "string", - "description": "Used as STREET in the certificate subject name.", - "readOnly": true - }, "includeStreetAddress": { "type": "boolean", "description": "Whether to include STREET in the certificate subject name.", "default": false }, - "city": { - "type": "string", - "description": "Used as L in the certificate subject name.", - "readOnly": true - }, "includeCity": { "type": "boolean", "description": "Whether to include L in the certificate subject name. Applicable only for private trust, private trust ci profile types", "default": false }, - "state": { - "type": "string", - "description": "Used as S in the certificate subject name.", - "readOnly": true - }, "includeState": { "type": "boolean", "description": "Whether to include S in the certificate subject name. Applicable only for private trust, private trust ci profile types", "default": false }, - "country": { - "type": "string", - "description": "Used as C in the certificate subject name.", - "readOnly": true - }, "includeCountry": { "type": "boolean", "description": "Whether to include C in the certificate subject name. Applicable only for private trust, private trust ci profile types", "default": false }, - "postalCode": { - "type": "string", - "description": "Used as PC in the certificate subject name.", - "readOnly": true - }, "includePostalCode": { "type": "boolean", "description": "Whether to include PC in the certificate subject name.", "default": false }, - "enhancedKeyUsage": { - "type": "string", - "description": "Enhanced key usage of the certificate.", - "readOnly": true - }, "identityValidationId": { "type": "string", "description": "Identity validation id used for the certificate subject name." @@ -966,7 +935,8 @@ } }, "required": [ - "profileType" + "profileType", + "identityValidationId" ] }, "CertificateProfileStatus": { @@ -1123,7 +1093,7 @@ "description": "Properties of the trusted signing account.", "properties": { "sku": { - "$ref": "#/definitions/AccountSku", + "$ref": "#/definitions/AccountSkuPatch", "description": "SKU of the trusted signing account." } } diff --git a/specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-09-30-preview/examples/CertificateProfiles_Create.json b/specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-09-30-preview/examples/CertificateProfiles_Create.json index 30edf36c2465..540c10ad00eb 100644 --- a/specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-09-30-preview/examples/CertificateProfiles_Create.json +++ b/specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-09-30-preview/examples/CertificateProfiles_Create.json @@ -1,7 +1,7 @@ { "parameters": { "accountName": "MyAccount", - "api-version": "2024-02-05-preview", + "api-version": "2024-09-30-preview", "resource": { "properties": { "profileType": "PublicTrust", @@ -25,29 +25,22 @@ { "createdDate": "3/14/2023 5:27:49 PM", "expiryDate": "3/17/2023 5:27:49 PM", + "enhancedKeyUsage": "1.3.6.1.4.1.311.yy.xxxxxxxx.xxxxxxxx.xxxxxxxxx.xxxxxxxx", "serialNumber": "xxxxxxxxxxxxxxxxxx", "status": "Active", "subjectName": "CN=Contoso Inc, O=Contoso Inc, L=New York, S=New York, C=US", "thumbprint": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" } - ], - "city": "Dallas", - "commonName": "Contoso Inc", - "country": "US", - "enhancedKeyUsage": "1.3.6.1.4.1.311.yy.xxxxxxxx.xxxxxxxx.xxxxxxxxx.xxxxxxxx", + ], "identityValidationId": "00000000-1234-5678-3333-444444444444", "includeCity": false, "includeCountry": false, "includePostalCode": true, "includeState": false, "includeStreetAddress": false, - "organization": "Contoso Inc", - "postalCode": "560090", "profileType": "PublicTrust", "provisioningState": "Succeeded", - "state": "Texas", - "status": "Active", - "streetAddress": "123 Bluebonnet" + "status": "Active" } } }, @@ -58,22 +51,14 @@ "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/MyResourceGroup/providers/Microsoft.CodeSigning/codeSigningAccounts/MyAccount/certificateProfiles/profileA", "properties": { "certificates": [], - "city": "Dallas", - "commonName": "Contoso Inc", - "country": "US", - "enhancedKeyUsage": "1.3.6.1.4.1.311.yy.xxxxxxxx.xxxxxxxx.xxxxxxxxx.xxxxxxxx", "identityValidationId": "00000000-1234-5678-3333-444444444444", "includeCity": false, "includeCountry": false, "includePostalCode": true, "includeState": false, "includeStreetAddress": false, - "organization": "Contoso Inc", - "postalCode": "560090", "profileType": "PublicTrust", - "provisioningState": "Succeeded", - "state": "Texas", - "streetAddress": "123 Bluebonnet" + "provisioningState": "Succeeded" } } } diff --git a/specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-09-30-preview/examples/CertificateProfiles_Delete.json b/specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-09-30-preview/examples/CertificateProfiles_Delete.json index 8b09ffa8d8d3..e0a743a2cc25 100644 --- a/specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-09-30-preview/examples/CertificateProfiles_Delete.json +++ b/specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-09-30-preview/examples/CertificateProfiles_Delete.json @@ -1,7 +1,7 @@ { "parameters": { "accountName": "MyAccount", - "api-version": "2024-02-05-preview", + "api-version": "2024-09-30-preview", "profileName": "profileA", "resourceGroupName": "MyResourceGroup", "subscriptionId": "00000000-1111-2222-3333-444444444444" diff --git a/specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-09-30-preview/examples/CertificateProfiles_Get.json b/specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-09-30-preview/examples/CertificateProfiles_Get.json index 5391450cc833..d339fbc1cd0d 100644 --- a/specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-09-30-preview/examples/CertificateProfiles_Get.json +++ b/specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-09-30-preview/examples/CertificateProfiles_Get.json @@ -1,7 +1,7 @@ { "parameters": { "accountName": "MyAccount", - "api-version": "2024-02-05-preview", + "api-version": "2024-09-30-preview", "profileName": "profileA", "resourceGroupName": "MyResourceGroup", "subscriptionId": "00000000-1111-2222-3333-444444444444" @@ -17,29 +17,22 @@ { "createdDate": "3/14/2023 5:27:49 PM", "expiryDate": "3/17/2023 5:27:49 PM", + "enhancedKeyUsage": "1.3.6.1.4.1.311.yy.xxxxxxxx.xxxxxxxx.xxxxxxxxx.xxxxxxxx", "serialNumber": "xxxxxxxxxxxxxxxxxx", "status": "Active", "subjectName": "CN=Contoso Inc, O=Contoso Inc, L=New York, S=New York, C=US", "thumbprint": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" } - ], - "city": "Dallas", - "commonName": "Contoso Inc", - "country": "US", - "enhancedKeyUsage": "1.3.6.1.4.1.311.yy.xxxxxxxx.xxxxxxxx.xxxxxxxxx.xxxxxxxx", + ], "identityValidationId": "123456", "includeCity": false, "includeCountry": false, "includePostalCode": true, "includeState": false, "includeStreetAddress": false, - "organization": "Contoso Inc", - "postalCode": "560090", "profileType": "PublicTrust", "provisioningState": "Succeeded", - "state": "Texas", - "status": "Active", - "streetAddress": "123 Bluebonnet" + "status": "Active" } } } diff --git a/specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-09-30-preview/examples/CertificateProfiles_ListByCodeSigningAccount.json b/specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-09-30-preview/examples/CertificateProfiles_ListByCodeSigningAccount.json index 7931599b357f..4db849c8f6d0 100644 --- a/specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-09-30-preview/examples/CertificateProfiles_ListByCodeSigningAccount.json +++ b/specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-09-30-preview/examples/CertificateProfiles_ListByCodeSigningAccount.json @@ -1,7 +1,7 @@ { "parameters": { "accountName": "MyAccount", - "api-version": "2024-02-05-preview", + "api-version": "2024-09-30-preview", "resourceGroupName": "MyResourceGroup", "subscriptionId": "00000000-1111-2222-3333-444444444444" }, @@ -18,29 +18,22 @@ { "createdDate": "3/14/2023 5:27:49 PM", "expiryDate": "3/17/2023 5:27:49 PM", + "enhancedKeyUsage": "1.3.6.1.4.1.311.yy.xxxxxxxx.xxxxxxxx.xxxxxxxxx.xxxxxxxx", "serialNumber": "xxxxxxxxxxxxxxxxxx", "status": "Active", "subjectName": "CN=Contoso Inc, O=Contoso Inc, L=New York, S=New York, C=US", "thumbprint": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" } - ], - "city": "Dallas", - "commonName": "Microsoft Corporation", - "country": "US", - "enhancedKeyUsage": "1.3.6.1.4.1.311.yy.xxxxxxxx.xxxxxxxx.xxxxxxxxx.xxxxxxxx", + ], "identityValidationId": "123456", "includeCity": false, "includeCountry": false, "includePostalCode": true, "includeState": false, "includeStreetAddress": false, - "organization": "Microsoft Corporation", - "postalCode": "560090", "profileType": "PublicTrust", "provisioningState": "Succeeded", - "state": "Texas", - "status": "Active", - "streetAddress": "123 Bluebonnet" + "status": "Active" } } ] diff --git a/specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-09-30-preview/examples/CertificateProfiles_RevokeCertificate.json b/specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-09-30-preview/examples/CertificateProfiles_RevokeCertificate.json index a9abb4a5f0eb..17e9e7baa606 100644 --- a/specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-09-30-preview/examples/CertificateProfiles_RevokeCertificate.json +++ b/specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-09-30-preview/examples/CertificateProfiles_RevokeCertificate.json @@ -1,7 +1,7 @@ { "parameters": { "accountName": "MyAccount", - "api-version": "2024-02-05-preview", + "api-version": "2024-09-30-preview", "profileName": "profileA", "resourceGroupName": "MyResourceGroup", "body": { diff --git a/specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-09-30-preview/examples/CodeSigningAccounts_CheckNameAvailability.json b/specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-09-30-preview/examples/CodeSigningAccounts_CheckNameAvailability.json index 54f2cadf208d..ae1cfb811407 100644 --- a/specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-09-30-preview/examples/CodeSigningAccounts_CheckNameAvailability.json +++ b/specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-09-30-preview/examples/CodeSigningAccounts_CheckNameAvailability.json @@ -3,7 +3,7 @@ "body": { "name": "sample-account" }, - "api-version": "2024-02-05-preview", + "api-version": "2024-09-30-preview", "subscriptionId": "00000000-1111-2222-3333-444444444444" }, "responses": { diff --git a/specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-09-30-preview/examples/CodeSigningAccounts_Create.json b/specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-09-30-preview/examples/CodeSigningAccounts_Create.json index 7655810f8b6a..214d8e3aa374 100644 --- a/specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-09-30-preview/examples/CodeSigningAccounts_Create.json +++ b/specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-09-30-preview/examples/CodeSigningAccounts_Create.json @@ -1,7 +1,7 @@ { "parameters": { "accountName": "MyAccount", - "api-version": "2024-02-05-preview", + "api-version": "2024-09-30-preview", "resource": { "location": "westus", "properties": { diff --git a/specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-09-30-preview/examples/CodeSigningAccounts_Delete.json b/specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-09-30-preview/examples/CodeSigningAccounts_Delete.json index b05c9faf4f76..062f0fda1600 100644 --- a/specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-09-30-preview/examples/CodeSigningAccounts_Delete.json +++ b/specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-09-30-preview/examples/CodeSigningAccounts_Delete.json @@ -1,7 +1,7 @@ { "parameters": { "accountName": "MyAccount", - "api-version": "2024-02-05-preview", + "api-version": "2024-09-30-preview", "resourceGroupName": "MyResourceGroup", "subscriptionId": "00000000-1111-2222-3333-444444444444" }, diff --git a/specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-09-30-preview/examples/CodeSigningAccounts_Get.json b/specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-09-30-preview/examples/CodeSigningAccounts_Get.json index ce34d9bebbee..f5d4e090907c 100644 --- a/specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-09-30-preview/examples/CodeSigningAccounts_Get.json +++ b/specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-09-30-preview/examples/CodeSigningAccounts_Get.json @@ -1,7 +1,7 @@ { "parameters": { "accountName": "MyAccount", - "api-version": "2024-02-05-preview", + "api-version": "2024-09-30-preview", "resourceGroupName": "MyResourceGroup", "subscriptionId": "00000000-1111-2222-3333-444444444444" }, diff --git a/specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-09-30-preview/examples/CodeSigningAccounts_ListByResourceGroup.json b/specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-09-30-preview/examples/CodeSigningAccounts_ListByResourceGroup.json index 3fd3b9a6aa57..50fd72f56334 100644 --- a/specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-09-30-preview/examples/CodeSigningAccounts_ListByResourceGroup.json +++ b/specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-09-30-preview/examples/CodeSigningAccounts_ListByResourceGroup.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2024-02-05-preview", + "api-version": "2024-09-30-preview", "resourceGroupName": "MyResourceGroup", "subscriptionId": "00000000-1111-2222-3333-444444444444" }, diff --git a/specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-09-30-preview/examples/CodeSigningAccounts_ListBySubscription.json b/specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-09-30-preview/examples/CodeSigningAccounts_ListBySubscription.json index 2e353f1cd3fd..5c14b6bc07bd 100644 --- a/specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-09-30-preview/examples/CodeSigningAccounts_ListBySubscription.json +++ b/specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-09-30-preview/examples/CodeSigningAccounts_ListBySubscription.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2024-02-05-preview", + "api-version": "2024-09-30-preview", "subscriptionId": "00000000-1111-2222-3333-444444444444" }, "responses": { diff --git a/specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-09-30-preview/examples/CodeSigningAccounts_Update.json b/specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-09-30-preview/examples/CodeSigningAccounts_Update.json index 6467eb884019..1ed4f660a665 100644 --- a/specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-09-30-preview/examples/CodeSigningAccounts_Update.json +++ b/specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-09-30-preview/examples/CodeSigningAccounts_Update.json @@ -1,7 +1,7 @@ { "parameters": { "accountName": "MyAccount", - "api-version": "2024-02-05-preview", + "api-version": "2024-09-30-preview", "properties": { "tags": { "key1": "value1" diff --git a/specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-09-30-preview/examples/Operations_List.json b/specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-09-30-preview/examples/Operations_List.json index 0fd92abc89e2..e5f631eac339 100644 --- a/specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-09-30-preview/examples/Operations_List.json +++ b/specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-09-30-preview/examples/Operations_List.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "00000000-1111-2222-3333-444444444444", "resourceGroupName": "MyResourceGroup", - "api-version": "2024-02-05-preview" + "api-version": "2024-09-30-preview" }, "responses": { "200": { diff --git a/specification/codesigning/resource-manager/readme.md b/specification/codesigning/resource-manager/readme.md index e546f51a3f5d..cf10e999a1d8 100644 --- a/specification/codesigning/resource-manager/readme.md +++ b/specification/codesigning/resource-manager/readme.md @@ -26,7 +26,16 @@ These are the global settings for the CodeSigning API. ```yaml openapi-type: arm openapi-subtype: rpaas -tag: package-2024-02-05-preview +tag: package-2024-09-30-preview +``` + +### Tag: package-2024-09-30-preview + +These settings apply only when `--tag=package-2024-09-30-preview` is specified on the command line. + +```yaml $(tag) == 'package-2024-09-30-preview' +input-file: +- Microsoft.CodeSigning/preview/2024-09-30-preview/codeSigningAccount.json ``` ### Tag: package-2024-02-05-preview diff --git a/specification/codesigning/resource-manager/readme.python.md b/specification/codesigning/resource-manager/readme.python.md index f095e0bf7e39..7a142f8ff5c7 100644 --- a/specification/codesigning/resource-manager/readme.python.md +++ b/specification/codesigning/resource-manager/readme.python.md @@ -8,7 +8,7 @@ azure-arm: true license-header: MICROSOFT_MIT_NO_VERSION package-name: azure-mgmt-trustedsigning namespace: azure.mgmt.trustedsigning -package-version: 1.0.0b1 +package-version: 1.0.0b2 clear-output-folder: true ``` From 565e6796d487167924626ed20e6ff64cc06b2da0 Mon Sep 17 00:00:00 2001 From: "Manish Patil (from Dev Box)" Date: Mon, 23 Sep 2024 20:41:50 +0530 Subject: [PATCH 3/4] fixed tsv validation --- specification/codesigning/CodeSigning.Management/models.tsp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/codesigning/CodeSigning.Management/models.tsp b/specification/codesigning/CodeSigning.Management/models.tsp index c2bf122939a5..9e0a56c48d02 100644 --- a/specification/codesigning/CodeSigning.Management/models.tsp +++ b/specification/codesigning/CodeSigning.Management/models.tsp @@ -178,7 +178,7 @@ model CertificateProfileProperties { @removed(Versions.v2024_09_30_preview) @doc("Used as CN in the certificate subject name.") - @visibility("read") + @visibility("read") commonName?: string; @removed(Versions.v2024_09_30_preview) From 544ce606ecc25506dfa1e33188e5af8703bca69c Mon Sep 17 00:00:00 2001 From: "Manish Patil (from Dev Box)" Date: Mon, 23 Sep 2024 21:55:44 +0530 Subject: [PATCH 4/4] fixed prettier failures --- .../examples/2024-09-30-preview/CertificateProfiles_Create.json | 2 +- .../examples/2024-09-30-preview/CertificateProfiles_Get.json | 2 +- .../CertificateProfiles_ListByCodeSigningAccount.json | 2 +- .../2024-09-30-preview/examples/CertificateProfiles_Create.json | 2 +- .../2024-09-30-preview/examples/CertificateProfiles_Get.json | 2 +- .../examples/CertificateProfiles_ListByCodeSigningAccount.json | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/specification/codesigning/CodeSigning.Management/examples/2024-09-30-preview/CertificateProfiles_Create.json b/specification/codesigning/CodeSigning.Management/examples/2024-09-30-preview/CertificateProfiles_Create.json index 540c10ad00eb..8d6b159c024a 100644 --- a/specification/codesigning/CodeSigning.Management/examples/2024-09-30-preview/CertificateProfiles_Create.json +++ b/specification/codesigning/CodeSigning.Management/examples/2024-09-30-preview/CertificateProfiles_Create.json @@ -31,7 +31,7 @@ "subjectName": "CN=Contoso Inc, O=Contoso Inc, L=New York, S=New York, C=US", "thumbprint": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" } - ], + ], "identityValidationId": "00000000-1234-5678-3333-444444444444", "includeCity": false, "includeCountry": false, diff --git a/specification/codesigning/CodeSigning.Management/examples/2024-09-30-preview/CertificateProfiles_Get.json b/specification/codesigning/CodeSigning.Management/examples/2024-09-30-preview/CertificateProfiles_Get.json index d339fbc1cd0d..be65a4ceddde 100644 --- a/specification/codesigning/CodeSigning.Management/examples/2024-09-30-preview/CertificateProfiles_Get.json +++ b/specification/codesigning/CodeSigning.Management/examples/2024-09-30-preview/CertificateProfiles_Get.json @@ -23,7 +23,7 @@ "subjectName": "CN=Contoso Inc, O=Contoso Inc, L=New York, S=New York, C=US", "thumbprint": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" } - ], + ], "identityValidationId": "123456", "includeCity": false, "includeCountry": false, diff --git a/specification/codesigning/CodeSigning.Management/examples/2024-09-30-preview/CertificateProfiles_ListByCodeSigningAccount.json b/specification/codesigning/CodeSigning.Management/examples/2024-09-30-preview/CertificateProfiles_ListByCodeSigningAccount.json index 4db849c8f6d0..ba0db472226c 100644 --- a/specification/codesigning/CodeSigning.Management/examples/2024-09-30-preview/CertificateProfiles_ListByCodeSigningAccount.json +++ b/specification/codesigning/CodeSigning.Management/examples/2024-09-30-preview/CertificateProfiles_ListByCodeSigningAccount.json @@ -24,7 +24,7 @@ "subjectName": "CN=Contoso Inc, O=Contoso Inc, L=New York, S=New York, C=US", "thumbprint": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" } - ], + ], "identityValidationId": "123456", "includeCity": false, "includeCountry": false, diff --git a/specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-09-30-preview/examples/CertificateProfiles_Create.json b/specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-09-30-preview/examples/CertificateProfiles_Create.json index 540c10ad00eb..8d6b159c024a 100644 --- a/specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-09-30-preview/examples/CertificateProfiles_Create.json +++ b/specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-09-30-preview/examples/CertificateProfiles_Create.json @@ -31,7 +31,7 @@ "subjectName": "CN=Contoso Inc, O=Contoso Inc, L=New York, S=New York, C=US", "thumbprint": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" } - ], + ], "identityValidationId": "00000000-1234-5678-3333-444444444444", "includeCity": false, "includeCountry": false, diff --git a/specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-09-30-preview/examples/CertificateProfiles_Get.json b/specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-09-30-preview/examples/CertificateProfiles_Get.json index d339fbc1cd0d..be65a4ceddde 100644 --- a/specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-09-30-preview/examples/CertificateProfiles_Get.json +++ b/specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-09-30-preview/examples/CertificateProfiles_Get.json @@ -23,7 +23,7 @@ "subjectName": "CN=Contoso Inc, O=Contoso Inc, L=New York, S=New York, C=US", "thumbprint": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" } - ], + ], "identityValidationId": "123456", "includeCity": false, "includeCountry": false, diff --git a/specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-09-30-preview/examples/CertificateProfiles_ListByCodeSigningAccount.json b/specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-09-30-preview/examples/CertificateProfiles_ListByCodeSigningAccount.json index 4db849c8f6d0..ba0db472226c 100644 --- a/specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-09-30-preview/examples/CertificateProfiles_ListByCodeSigningAccount.json +++ b/specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-09-30-preview/examples/CertificateProfiles_ListByCodeSigningAccount.json @@ -24,7 +24,7 @@ "subjectName": "CN=Contoso Inc, O=Contoso Inc, L=New York, S=New York, C=US", "thumbprint": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" } - ], + ], "identityValidationId": "123456", "includeCity": false, "includeCountry": false,