Skip to content

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
Signed-off-by: Reshma Abdul Rahim <[email protected]>
  • Loading branch information
Reshrahim committed Nov 21, 2024
1 parent 065f635 commit f454e96
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions cli/2024-10-cli-udt.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,11 @@ Below is an illustrative example of how Deb would define and deploy the internal

plaid.yaml

```yaml
```
---
name: 'Mycompany.Messaging'
types:
'plaidService':
'plaidServices':
apiVersions:
2024-10-01:
schema:
Expand Down Expand Up @@ -83,7 +84,7 @@ Below is an illustrative example of how Deb would define and deploy the internal
```json
{
"name": "myplaid",
"type": "Mycompany.Messaging/plaidService",
"type": "Mycompany.Messaging/plaidServices",
"properties": {
"application": "myapp"
"environment": "dev"
Expand All @@ -97,7 +98,7 @@ Below is an illustrative example of how Deb would define and deploy the internal
```bash
rad resource create -f myplaid.json
```
The resource `myplaid` of type `Mycompany.Messaging/plaidService`is created and available for use.
The resource `myplaid` of type `Mycompany.Messaging/plaidServices`is created and available for use.
4. Deb lists the resource types available in Radius
Expand All @@ -106,7 +107,7 @@ Below is an illustrative example of how Deb would define and deploy the internal
```
The list of resource types under the resource provider `Mycompany.Messaging` are displayed.
5. Deb makes changes to the resource type definition of `Mycompany.Messaging/plaidService`
5. Deb makes changes to the resource type definition of `Mycompany.Messaging/plaidServices`
```bash
rad resource-type create -f plaid.yaml
Expand All @@ -116,15 +117,15 @@ Below is an illustrative example of how Deb would define and deploy the internal
6. Deb wants to know if the resource-type is created successfully
```bash
rad resource-type show Mycompany.Messaging/plaidService
rad resource-type show Mycompany.Messaging/plaidServices
```
The details of the resource type `Mycompany.Messaging` are displayed.
7. Deb deletes a resource-type Plaid from the resource provider Mycompany.Messaging
```bash
rad resource-type delete Mycompany.Messaging/plaidService
Warning: `myapp` application has resources of type `Mycompany.Messaging/plaidResource` provisioned and running. Are you sure you want to delete the resource type plaidResource from the resource provider Mycompany.Messaging? (yes/no)
rad resource-type delete Mycompany.Messaging/plaidServices
Warning: `myapp` application has resources of type `Mycompany.Messaging/plaidServices` provisioned and running. Are you sure you want to delete the resource type plaidServices from the resource provider Mycompany.Messaging? (yes/no)
```
The resource-type deletion errors out as there are resources provisioned and running under the resource type. The resource myplaid should be deleted before deleting the resource type.
Expand All @@ -150,24 +151,24 @@ Resource types are the entities that implement resource types such as 'Applicati
```bash
rad resource-type list
NAME TYPE STATE
plaidResource Mycompany.Messaging Succeeded
plaidServices Mycompany.Messaging Succeeded
resourceType2 Mycompany.Messaging Succeeded
```

#### 3. rad resource-type show
Resource types are the entities that implement resource types such as 'Applications.Core/containers'. Users can display the details of the resource types.

```bash
rad resource-type show Mycompany.Messaging/plaidResource
rad resource-type show Mycompany.Messaging/plaidServices
NAME TYPE STATE
plaidResource Mycompany.Messaging Succeeded
plaidServices Mycompany.Messaging Succeeded
```

#### 4. rad resource-type delete
Resource types are the entities that implement resource types such as 'Applications.Core/containers'. Users can delete a resource type.

```bash
rad resource-type delete Mycompany.Messaging/plaidResource
rad resource-type delete Mycompany.Messaging/plaidServices
```
We decided to prompt the user with a warning message if there are resources provisioned and running under the resource type. The resource-type deletion errors out as there are resources provisioned and running under the resource type. The resource myplaid should be deleted before deleting the resource type.

Expand Down

0 comments on commit f454e96

Please sign in to comment.