Skip to content

Commit

Permalink
Pre GA readiness changes (Azure#30685)
Browse files Browse the repository at this point in the history
* base commit

* added 2024-09-30 api version

* fixed tsv validation

* fixed prettier failures

---------

Co-authored-by: Manish Patil (from Dev Box) <mapatil@microsoft.com>
  • Loading branch information
2 people authored and Shakha Ismatullaeva committed Oct 8, 2024
1 parent 9a1180d commit a7f22b7
Show file tree
Hide file tree
Showing 31 changed files with 2,327 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -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."
}
Original file line number Diff line number Diff line change
@@ -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."
}
Original file line number Diff line number Diff line change
@@ -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."
}
Original file line number Diff line number Diff line change
@@ -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."
}
Original file line number Diff line number Diff line change
@@ -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."
}
Original file line number Diff line number Diff line change
@@ -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."
}
Original file line number Diff line number Diff line change
@@ -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."
}
Original file line number Diff line number Diff line change
@@ -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."
}
Original file line number Diff line number Diff line change
@@ -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"
}
Original file line number Diff line number Diff line change
@@ -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."
}
Original file line number Diff line number Diff line change
@@ -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."
}
Loading

0 comments on commit a7f22b7

Please sign in to comment.