-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
197 additions
and
0 deletions.
There are no files selected for viewing
File renamed without changes.
16 changes: 16 additions & 0 deletions
16
pkg/ucp/api/v20231001preview/testdata/credentialresource-aws-irsa.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"id": "/planes/aws/aws/providers/System.AWS/credentials/default", | ||
"name": "default", | ||
"type": "System.AWS/credentials", | ||
"location": "west-us-2", | ||
"tags": { | ||
"env": "dev" | ||
}, | ||
"properties": { | ||
"roleARN": "arn:aws:iam::000000000000:role/role-name", | ||
"kind": "AccessKey", | ||
"storage": { | ||
"kind": "Internal" | ||
} | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
54 changes: 54 additions & 0 deletions
54
typespec/UCP/examples/2023-10-01-preview/AWSCredential_IRSA_CreateOrUpdate.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
{ | ||
"operationId": "AwsCredentials_CreateOrUpdate", | ||
"title": "Create or update an AWS credential", | ||
"parameters": { | ||
"api-version": "2023-10-01-preview", | ||
"planeType": "aws", | ||
"planeName": "aws", | ||
"credentialName": "default", | ||
"Credential": { | ||
"location": "us-west-2", | ||
"properties": { | ||
"kind": "IRSA", | ||
"roleARN": "enterRoleARN", | ||
"storage": { | ||
"kind": "Internal" | ||
} | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/planes/AWS/aws/providers/System.AWS/credentials/default", | ||
"name": "default", | ||
"type": "System.AWS/credentials", | ||
"location": "us-west-2", | ||
"properties": { | ||
"kind": "IRSA", | ||
"roleARN": "enterRoleARN", | ||
"storage": { | ||
"kind": "Internal", | ||
"secretName": "aws-awscloud-default" | ||
} | ||
} | ||
} | ||
}, | ||
"201": { | ||
"body": { | ||
"id": "/planes/AWS/aws/providers/System.AWS/credentials/default", | ||
"name": "default", | ||
"type": "System.AWS/credentials", | ||
"location": "us-west-2", | ||
"properties": { | ||
"kind": "IRSA", | ||
"roleARN": "enterRoleARN", | ||
"storage": { | ||
"kind": "Internal", | ||
"secretName": "aws-awscloud-default" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
typespec/UCP/examples/2023-10-01-preview/AWSCredential_IRSA_Delete.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"operationId": "AwsCredentials_Delete", | ||
"title": "Delete an AWS credential", | ||
"parameters": { | ||
"api-version": "2023-10-01-preview", | ||
"planeType": "aws", | ||
"planeName": "awscloud", | ||
"credentialName": "default" | ||
}, | ||
"responses": { | ||
"200": {}, | ||
"204": {} | ||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
typespec/UCP/examples/2023-10-01-preview/AWSCredential_IRSA_Get.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ | ||
"operationId": "AwsCredentials_Get", | ||
"title": "Get an AWS credential", | ||
"parameters": { | ||
"api-version": "2023-10-01-preview", | ||
"planeType": "aws", | ||
"planeName": "awscloud", | ||
"credentialName": "default" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/planes/AWS/aws/providers/System.AWS/credentials/default", | ||
"name": "default", | ||
"type": "System.AWS/credentials", | ||
"location": "us-west-2", | ||
"properties": { | ||
"kind": "IRSA", | ||
"roleArn": "enterRoleARN", | ||
"storage": { | ||
"kind": "Internal", | ||
"secretName": "aws-awscloud-default" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
31 changes: 31 additions & 0 deletions
31
typespec/UCP/examples/2023-10-01-preview/AWSCredential_IRSA_List.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ | ||
"operationId": "AwsCredentials_List", | ||
"title": "List AWS credentials", | ||
"parameters": { | ||
"api-version": "2023-10-01-preview", | ||
"planeType": "aws", | ||
"planeName": "awscloud" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"id": "/planes/AWS/aws/providers/System.AWS/credentials/default", | ||
"name": "default", | ||
"type": "System.AWS/credentials", | ||
"location": "us-west-2", | ||
"properties": { | ||
"kind": "IRSA", | ||
"roleArn": "enterRoleARN", | ||
"storage": { | ||
"kind": "Internal", | ||
"secretName": "aws-awscloud-default" | ||
} | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
54 changes: 54 additions & 0 deletions
54
typespec/UCP/examples/2023-10-01-preview/AWSCredential_IRSA_Update.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
{ | ||
"operationId": "AwsCredentials_Update", | ||
"title": "Update an AWS credential", | ||
"parameters": { | ||
"api-version": "2023-10-01-preview", | ||
"planeType": "aws", | ||
"planeName": "aws", | ||
"credentialName": "default", | ||
"Credential": { | ||
"location": "us-west-2", | ||
"properties": { | ||
"kind": "IRSA", | ||
"roleArn": "enterRoleARN", | ||
"storage": { | ||
"kind": "Internal" | ||
} | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/planes/AWS/aws/providers/System.AWS/credentials/default", | ||
"name": "default", | ||
"type": "System.AWS/credentials", | ||
"location": "us-west-2", | ||
"properties": { | ||
"kind": "IRSA", | ||
"roleArn": "enterRoleARN", | ||
"storage": { | ||
"kind": "Internal", | ||
"secretName": "aws-awscloud-default" | ||
} | ||
} | ||
} | ||
}, | ||
"201": { | ||
"body": { | ||
"id": "/planes/AWS/aws/providers/System.AWS/credentials/default", | ||
"name": "default", | ||
"type": "System.AWS/credentials", | ||
"location": "us-west-2", | ||
"properties": { | ||
"kind": "AccessKey", | ||
"roleArn": "enterRoleARN", | ||
"storage": { | ||
"kind": "Internal", | ||
"secretName": "aws-awscloud-default" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |