Skip to content

Commit

Permalink
CodeSigning RP: updated readme files (#28346)
Browse files Browse the repository at this point in the history
* Add blockchain to latest profile

* Add additional types

* Updated readmes

* Updated the readme with trusted signing

---------

Co-authored-by: Mark Cowlishaw <[email protected]>
Co-authored-by: Amrita Shanbhag <amritas>
  • Loading branch information
amritas and markcowl authored Apr 11, 2024
1 parent 1f6e896 commit 9ce6dde
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 108 deletions.
38 changes: 5 additions & 33 deletions specification/codesigning/resource-manager/readme.az.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,40 +4,12 @@ These settings apply only when `--az` is specified on the command line.

``` yaml $(az)
az:
extensions: codesigning
namespace: azure.mgmt.codesigning
package-name: azure-mgmt-codesigning
extensions: trustedsigning
namespace: azure.mgmt.trustedsigning
package-name: azure-mgmt-trustedsigning
randomize-names: true
az-output-folder: $(azure-cli-extension-folder)/src/codesigning
python-sdk-output-folder: "$(az-output-folder)/azext_codesigning/vendored_sdks/codesigning"
az-output-folder: $(azure-cli-extension-folder)/src/trustedsigning
python-sdk-output-folder: "$(az-output-folder)/azext_trustedsigning/vendored_sdks/trustedsigning"
# add additional configuration here specific for Azure CLI
# refer to the faq.md for more details

directive:
- where:
group: codesigning code-signing-account
set:
group: codesigning

cli:
cli-directive:
- where:
group: Operations
hidden: true
- where:
group: CodeSigningAccount
param: accountName
name: name
alias:
- name
- n
- where:
group: CertificateProfile
param: profileName
name: name
alias:
- name
- n


```
12 changes: 2 additions & 10 deletions specification/codesigning/resource-manager/readme.csharp.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,6 @@ csharp:
payload-flattening-threshold: 1
clear-output-folder: true
client-side-validation: false
namespace: Microsoft.CodeSigning
output-folder: $(csharp-sdks-folder)/codeSigning/Microsoft.Azure.Management.CodeSigning/src/Generated
directive:
- reason: Altering the incorrect null check for required fields in an optional body in listClusterUserCredentials
where: $
transform: >
if( /AuthenticationDetails clientAuthenticationDetails/g.exec( $ ) ) {
$ = $.replace( /(if \(value == null\)[\s]+{[\s]+throw new ValidationException\(ValidationRules.CannotBeNull, "value"\);[\s]+}[\s]+)AuthenticationDetails/g, "AuthenticationDetails" );
}
namespace: Azure.ResourceManager.TrustedSigning
output-folder: $(csharp-sdks-folder)/trustedsigning/management/Azure.ResourceManager.TrustedSigning/GeneratedProtocol
```
29 changes: 3 additions & 26 deletions specification/codesigning/resource-manager/readme.go.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,33 +2,10 @@

These settings apply only when `--go` is specified on the command line.

```yaml $(go) && !$(track2)
go:
license-header: MICROSOFT_MIT_NO_VERSION
clear-output-folder: true
```
``` yaml $(go) && $(track2)
```yaml $(go) && $(track2)
azure-arm: true
license-header: MICROSOFT_MIT_NO_VERSION
module-name: sdk/resourcemanager/codesigning/armcodesigning
module-name: sdk/resourcemanager/trustedsigning/armtrustedsigning
module: github.com/Azure/azure-sdk-for-go/$(module-name)
output-folder: $(go-sdk-folder)/$(module-name)
azure-arm: true
```
### Go multi-api
``` yaml $(go) && $(multiapi)
batch:
- tag: package-2024-02-05-preview
```
### Tag: package-2024-02-05-preview and go
These settings apply only when `--tag=package-2024-02-05-preview --go` is specified on the command line.
Please also specify `--go-sdks-folder=<path to the root directory of your azure-sdk-for-go clone>`.

```yaml $(tag) == 'package-2024-02-05-preview' && $(go)
namespace: codesigning
output-folder: $(go-sdk-folder)/services/preview/$(namespace)/mgmt/2024-02-05-preview/$(namespace)
```
32 changes: 2 additions & 30 deletions specification/codesigning/resource-manager/readme.java.md
Original file line number Diff line number Diff line change
@@ -1,31 +1,3 @@
These settings apply only when `--java` is specified on the command line.
Please also specify `--azure-libraries-for-java-folder=<path to the root directory of your azure-libraries-for-java clone>`.
These settings apply only when --java is specified on the command line.

``` yaml $(java)
azure-arm: true
fluent: true
namespace: com.microsoft.azure.management.codesigning
license-header: MICROSOFT_MIT_NO_CODEGEN
payload-flattening-threshold: 1
output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-codesigning
```
### Java multi-api
``` yaml $(java) && $(multiapi)
batch:
- tag: package-2024-02-05-preview
```
### Tag: package-2024-02-05-preview and java
These settings apply only when `--tag=package-2024-02-05-preview` is specified on the command line.
Please also specify `--azure-libraries-for-java-folder=<path to the root directory of your azure-sdk-for-java clone>`.

``` yaml $(tag) == 'package-2024-02-05-preview' && $(java) && $(multiapi)
java:
namespace: com.microsoft.azure.management.codesigning.v2024_02_05_preview
output-folder: $(azure-libraries-for-java-folder)/codesigning/resource-manager/v2024_02_05_preview
regenerate-manager: true
generate-interface: true
```
service-name: Trusted Signing
2 changes: 1 addition & 1 deletion specification/codesigning/resource-manager/readme.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Code Signing
# Trusted Signing

> see https://aka.ms/autorest
Expand Down
13 changes: 7 additions & 6 deletions specification/codesigning/resource-manager/readme.python.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,21 @@
These settings apply only when `--python` is specified on the command line.
Please also specify `--python-sdks-folder=<path to the root directory of your azure-sdk-for-python clone>`.

```yaml $(python)
``` yaml $(python)
azure-arm: true
license-header: MICROSOFT_MIT_NO_VERSION
namespace: azure.mgmt.codesigning
package-name: azure-mgmt-codesigning
package-version: 0.1.0
package-name: azure-mgmt-trustedsigning
namespace: azure.mgmt.trustedsigning
package-version: 1.0.0b1
clear-output-folder: true
```
``` yaml $(python)
no-namespace-folders: true
output-folder: $(python-sdks-folder)/codesigning/azure-mgmt-codesigning/azure/mgmt/codesigning
output-folder: $(python-sdks-folder)/trustedsigning/azure-mgmt-trustedsigning/azure/mgmt/trustedsigning
```
``` yaml $(python)
flatten-models: false
modelerfour:
lenient-model-deduplication: true
```
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ Please also specify `--typescript-sdks-folder=<path to root folder of your azure
``` yaml $(typescript)
typescript:
azure-arm: true
package-name: "@azure/arm-codesigning"
output-folder: "$(typescript-sdks-folder)/sdk/codesigning/arm-codesigning"
package-name: "@azure/arm-trustedsigning"
output-folder: "$(typescript-sdks-folder)/sdk/trustedsigning/arm-trustedsigning"
payload-flattening-threshold: 1
clear-output-folder: true
generate-metadata: true
```

0 comments on commit 9ce6dde

Please sign in to comment.