Skip to content

Commit

Permalink
CodeGen from PR 32887 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge f88399f84e5b8303262031e3f5e1bbefc980f27f into c2afa6e1f7ced1b3c1fdd3518a9d49b44871d7a7
  • Loading branch information
SDKAuto committed Feb 27, 2025
1 parent 8f32d41 commit aea9e4d
Show file tree
Hide file tree
Showing 101 changed files with 4,307 additions and 4,930 deletions.
28 changes: 14 additions & 14 deletions common/config/rush/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

102 changes: 95 additions & 7 deletions sdk/trustedsigning/arm-trustedsigning/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,103 @@
# Release History

## 1.0.0-beta.3 (Unreleased)


## 1.0.0-beta.3 (2025-02-27)
Compared with version 1.0.0-beta.2

### Features Added

### Breaking Changes

### Bugs Fixed
- Added operation CertificateProfiles.beginCreate
- Added operation CertificateProfiles.beginCreateAndWait
- Added operation CertificateProfiles.beginDelete
- Added operation CertificateProfiles.beginDeleteAndWait
- Added operation CodeSigningAccounts.beginCreate
- Added operation CodeSigningAccounts.beginCreateAndWait
- Added operation CodeSigningAccounts.beginDelete
- Added operation CodeSigningAccounts.beginDeleteAndWait
- Added operation CodeSigningAccounts.beginUpdate
- Added operation CodeSigningAccounts.beginUpdateAndWait
- Added Interface AccountSkuPatch
- Added Interface CertificateProfileListResult
- Added Interface CertificateProfilesCreateHeaders
- Added Interface CertificateProfilesDeleteHeaders
- Added Interface CertificateProfilesListByCodeSigningAccountNextOptionalParams
- Added Interface CodeSigningAccountListResult
- Added Interface CodeSigningAccountsCreateHeaders
- Added Interface CodeSigningAccountsDeleteHeaders
- Added Interface CodeSigningAccountsListByResourceGroupNextOptionalParams
- Added Interface CodeSigningAccountsListBySubscriptionNextOptionalParams
- Added Interface CodeSigningAccountsUpdateHeaders
- Added Interface CodeSigningManagementClientOptionalParams
- Added Interface ErrorAdditionalInfo
- Added Interface ErrorDetail
- Added Interface ErrorResponse
- Added Interface OperationListResult
- Added Interface OperationsListNextOptionalParams
- Added Class CodeSigningManagementClient
- Added Type Alias CertificateProfilesCreateResponse
- Added Type Alias CertificateProfilesDeleteResponse
- Added Type Alias CertificateProfilesGetResponse
- Added Type Alias CertificateProfilesListByCodeSigningAccountNextResponse
- Added Type Alias CertificateProfilesListByCodeSigningAccountResponse
- Added Type Alias CodeSigningAccountsCheckNameAvailabilityResponse
- Added Type Alias CodeSigningAccountsCreateResponse
- Added Type Alias CodeSigningAccountsDeleteResponse
- Added Type Alias CodeSigningAccountsGetResponse
- Added Type Alias CodeSigningAccountsListByResourceGroupNextResponse
- Added Type Alias CodeSigningAccountsListByResourceGroupResponse
- Added Type Alias CodeSigningAccountsListBySubscriptionNextResponse
- Added Type Alias CodeSigningAccountsListBySubscriptionResponse
- Added Type Alias CodeSigningAccountsUpdateResponse
- Added Type Alias OperationsListNextResponse
- Added Type Alias OperationsListResponse
- Interface Certificate has a new optional parameter effectiveAt
- Interface Certificate has a new optional parameter enhancedKeyUsage
- Interface Certificate has a new optional parameter failureReason
- Interface Certificate has a new optional parameter reason
- Interface Certificate has a new optional parameter remarks
- Interface Certificate has a new optional parameter requestedAt
- Interface Certificate has a new optional parameter statusRevocationStatus
- Interface CertificateProfile has a new optional parameter certificates
- Interface CertificateProfile has a new optional parameter identityValidationId
- Interface CertificateProfile has a new optional parameter includeCity
- Interface CertificateProfile has a new optional parameter includeCountry
- Interface CertificateProfile has a new optional parameter includePostalCode
- Interface CertificateProfile has a new optional parameter includeState
- Interface CertificateProfile has a new optional parameter includeStreetAddress
- Interface CertificateProfile has a new optional parameter profileType
- Interface CertificateProfile has a new optional parameter provisioningState
- Interface CertificateProfile has a new optional parameter status
- Interface CertificateProfilesCreateOptionalParams has a new optional parameter resumeFrom
- Interface CertificateProfilesDeleteOptionalParams has a new optional parameter resumeFrom
- Interface CodeSigningAccount has a new optional parameter accountUri
- Interface CodeSigningAccount has a new optional parameter provisioningState
- Interface CodeSigningAccount has a new optional parameter sku
- Interface CodeSigningAccountPatch has a new optional parameter sku
- Interface CodeSigningAccountsCreateOptionalParams has a new optional parameter resumeFrom
- Interface CodeSigningAccountsDeleteOptionalParams has a new optional parameter resumeFrom
- Interface CodeSigningAccountsUpdateOptionalParams has a new optional parameter resumeFrom
- Added function getContinuationToken

### Other Changes
### Breaking Changes

- Removed operation CertificateProfilesOperations.create
- Removed operation CertificateProfilesOperations.delete
- Removed operation CodeSigningAccountsOperations.create
- Removed operation CodeSigningAccountsOperations.delete
- Removed operation CodeSigningAccountsOperations.update
- Deleted Class CodeSigningClient
- Interface Certificate no longer has parameter revocation
- Interface CertificateProfile no longer has parameter properties
- Interface CodeSigningAccount no longer has parameter properties
- Interface CodeSigningAccountPatch no longer has parameter properties
- Type of parameter tags of interface CodeSigningAccountPatch is changed from Record<string, string> to {
[propertyName: string]: string;
}
- Type of parameter tags of interface TrackedResource is changed from Record<string, string> to {
[propertyName: string]: string;
}
- Removed function restorePoller


## 1.0.0-beta.2 (2024-11-04)

### Bugs Fixed
Expand Down
2 changes: 1 addition & 1 deletion sdk/trustedsigning/arm-trustedsigning/LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
SOFTWARE.
31 changes: 19 additions & 12 deletions sdk/trustedsigning/arm-trustedsigning/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@ This package contains an isomorphic SDK (runs both in Node.js and in browsers) f

Code Signing resource provider api.

[Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/trustedsigning/arm-trustedsigning) |
[Package (NPM)](https://www.npmjs.com/package/@azure/arm-trustedsigning) |
[API reference documentation](https://learn.microsoft.com/javascript/api/@azure/arm-trustedsigning?view=azure-node-preview) |
[Samples](https://github.com/Azure-Samples/azure-samples-js-management)

## Getting started

Expand All @@ -28,7 +30,7 @@ Install the Azure CodeSigningManagement client library for JavaScript with `npm`
npm install @azure/arm-trustedsigning
```

### Create and authenticate a `CodeSigningClient`
### Create and authenticate a `CodeSigningManagementClient`

To create a client object to access the Azure CodeSigningManagement API, you will need the `endpoint` of your Azure CodeSigningManagement resource and a `credential`. The Azure CodeSigningManagement client can use Azure Active Directory credentials to authenticate.
You can find the endpoint for your Azure CodeSigningManagement resource in the [Azure Portal][azure_portal].
Expand All @@ -42,43 +44,40 @@ npm install @azure/identity
```

You will also need to **register a new AAD application and grant access to Azure CodeSigningManagement** by assigning the suitable role to your service principal (note: roles such as `"Owner"` will not grant the necessary permissions).
Set the values of the client ID, tenant ID, and client secret of the AAD application as environment variables: `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, `AZURE_CLIENT_SECRET`.

For more information about how to create an Azure AD Application check out [this guide](https://learn.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal).

Using Node.js and Node-like environments, you can use the `DefaultAzureCredential` class to authenticate the client.

```ts snippet:ReadmeSampleCreateClient_Node
import { CodeSigningClient } from "@azure/arm-trustedsigning";
import { CodeSigningManagementClient } from "@azure/arm-trustedsigning";
import { DefaultAzureCredential } from "@azure/identity";

const subscriptionId = "00000000-0000-0000-0000-000000000000";
const client = new CodeSigningClient(new DefaultAzureCredential(), subscriptionId);
const client = new CodeSigningManagementClient(new DefaultAzureCredential(), subscriptionId);
```

For browser environments, use the `InteractiveBrowserCredential` from the `@azure/identity` package to authenticate.

```ts snippet:ReadmeSampleCreateClient_Browser
import { InteractiveBrowserCredential } from "@azure/identity";
import { CodeSigningClient } from "@azure/arm-trustedsigning";
import { CodeSigningManagementClient } from "@azure/arm-trustedsigning";

const subscriptionId = "00000000-0000-0000-0000-000000000000";
const credential = new InteractiveBrowserCredential({
tenantId: "<YOUR_TENANT_ID>",
clientId: "<YOUR_CLIENT_ID>",
});
const client = new CodeSigningClient(credential, subscriptionId);
clientId: "<YOUR_CLIENT_ID>"
});
const client = new CodeSigningManagementClient(credential, subscriptionId);
```

### JavaScript Bundle

To use this client library in the browser, first you need to use a bundler. For details on how to do this, please refer to our [bundling documentation](https://aka.ms/AzureSDKBundling).

## Key concepts

### CodeSigningClient
### CodeSigningManagementClient

`CodeSigningClient` is the primary interface for developers using the Azure CodeSigningManagement client library. Explore the methods on this client object to understand the different features of the Azure CodeSigningManagement service that you can access.
`CodeSigningManagementClient` is the primary interface for developers using the Azure CodeSigningManagement client library. Explore the methods on this client object to understand the different features of the Azure CodeSigningManagement service that you can access.

## Troubleshooting

Expand All @@ -94,6 +93,10 @@ setLogLevel("info");

For more detailed instructions on how to enable logs, you can look at the [@azure/logger package docs](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/core/logger).

## Next steps

Please take a look at the [samples](https://github.com/Azure-Samples/azure-samples-js-management) directory for detailed examples on how to use this library.

## Contributing

If you'd like to contribute to this library, please read the [contributing guide](https://github.com/Azure/azure-sdk-for-js/blob/main/CONTRIBUTING.md) to learn more about how to build and test the code.
Expand All @@ -102,6 +105,10 @@ If you'd like to contribute to this library, please read the [contributing guide

- [Microsoft Azure SDK for JavaScript](https://github.com/Azure/azure-sdk-for-js)

![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js%2Fsdk%2Ftrustedsigning%2Farm-trustedsigning%2FREADME.png)

[azure_cli]: https://learn.microsoft.com/cli/azure
[azure_sub]: https://azure.microsoft.com/free/
[azure_sub]: https://azure.microsoft.com/free/
[azure_portal]: https://portal.azure.com
[azure_identity]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/identity/identity
Expand Down
8 changes: 8 additions & 0 deletions sdk/trustedsigning/arm-trustedsigning/_meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"commit": "50b20fa14cff85f630fc3af8abc9f04518aff870",
"readme": "specification/codesigning/resource-manager/readme.md",
"autorest_command": "autorest --version=3.9.7 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/codesigning/resource-manager/readme.md --use=@autorest/typescript@^6.0.12",
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
"release_tool": "@azure-tools/js-sdk-release-tools@2.7.21",
"use": "@autorest/typescript@^6.0.12"
}
6 changes: 3 additions & 3 deletions sdk/trustedsigning/arm-trustedsigning/api-extractor.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
"mainEntryPointFilePath": "dist/esm/index.d.ts",
"mainEntryPointFilePath": "./dist-esm/src/index.d.ts",
"docModel": {
"enabled": true
},
Expand All @@ -11,7 +11,7 @@
"dtsRollup": {
"enabled": true,
"untrimmedFilePath": "",
"publicTrimmedFilePath": "dist/arm-trustedsigning.d.ts"
"publicTrimmedFilePath": "./types/arm-trustedsigning.d.ts"
},
"messages": {
"tsdocMessageReporting": {
Expand All @@ -28,4 +28,4 @@
}
}
}
}
}
6 changes: 0 additions & 6 deletions sdk/trustedsigning/arm-trustedsigning/assets.json

This file was deleted.

Loading

0 comments on commit aea9e4d

Please sign in to comment.