Skip to content

Commit 45b9184

Browse files
add metadata for node types
1 parent 822968b commit 45b9184

29 files changed

Lines changed: 493 additions & 20 deletions

engine/schema/src/main/resources/nimble/resource-types/account.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ description: >
2121
2222
node_types:
2323
Account:
24+
metadata:
25+
provisioning-api: createAccount
26+
rollback-api: deleteAccount
2427
properties:
2528
domain-id:
2629
type: string
@@ -42,6 +45,8 @@ node_types:
4245
type: string
4346
description: The ID of the role to be assigned to the account.
4447
required: true
48+
metadata:
49+
api-parameter: roleid
4550
password:
4651
type: string
4752
description: The password of the user.
@@ -54,10 +59,14 @@ node_types:
5459
type: string
5560
description: The first name of the user.
5661
required: true
62+
metadata:
63+
api-parameter: firstname
5764
last-name:
5865
type: string
5966
description: The last name of the user.
6067
required: true
68+
metadata:
69+
api-parameter: lastname
6170
timezone:
6271
type: string
6372
description: The timezone of the user.

engine/schema/src/main/resources/nimble/resource-types/affinity-group.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ description: >
2121
2222
node_types:
2323
AffinityGroup:
24+
metadata:
25+
provisioning-api: createAffinityGroup
26+
rollback-api: deleteAffinityGroup
2427
properties:
2528
name:
2629
type: string

engine/schema/src/main/resources/nimble/resource-types/auto-scaling-policy.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ description: >
2121
2222
node_types:
2323
AutoScalingPolicy:
24+
metadata:
25+
provisioning-api: createAutoScalePolicy
26+
rollback-api: deleteAutoScalePolicy
2427
properties:
2528
name:
2629
type: string
@@ -39,6 +42,8 @@ node_types:
3942
type: string
4043
description: The list of condition IDs that are evaluated on every interval.
4144
required: true
45+
metadata:
46+
api-parameter: conditionids
4247
duration:
4348
type: integer
4449
description: The duration in which the conditions must be met before the action is executed.
@@ -47,6 +52,8 @@ node_types:
4752
type: integer
4853
description: The cooldown period in which the policy should not be evaluated after the action has been taken.
4954
required: false
55+
metadata:
56+
api-parameter: quiettime
5057
attributes:
5158
id:
5259
type: string

engine/schema/src/main/resources/nimble/resource-types/auto-scaling-vm-group.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ description: >
2121
2222
node_types:
2323
AutoScalingVmGroup:
24+
metadata:
25+
provisioning-api: createAutoScaleVmGroup
26+
rollback-api: deleteAutoScaleVmGroup
2427
properties:
2528
name:
2629
type: string
@@ -30,30 +33,42 @@ node_types:
3033
type: string
3134
description: The auto scaling profile that contains information about the VMs in the VM group.
3235
required: true
36+
metadata:
37+
api-parameter: vmprofileid
3338
scale-up-policy-ids:
3439
type: list
3540
entry_schema:
3641
type: string
3742
description: List of scale up auto scaling policies.
3843
required: true
44+
metadata:
45+
api-parameter: scaleuppolicyids
3946
scale-down-policy-ids:
4047
type: list
4148
entry_schema:
4249
type: string
4350
description: List of scale down auto scaling policies.
4451
required: true
52+
metadata:
53+
api-parameter: scaledownpolicyids
4554
min-members:
4655
type: integer
4756
description: The minimum number of VMs in the VM group.
4857
required: true
58+
metadata:
59+
api-parameter: minmembers
4960
max-members:
5061
type: integer
5162
description: The maximum number of VMs in the VM group.
5263
required: true
64+
metadata:
65+
api-parameter: maxmembers
5366
load-balancer-id:
5467
type: string
5568
description: The ID of the load balancer that is associated with the VM group.
5669
required: true
70+
metadata:
71+
api-parameter: lbruleid
5772
interval:
5873
type: integer
5974
description: The interval in which the performance counters will be collected.

engine/schema/src/main/resources/nimble/resource-types/auto-scaling-vm-profile.yaml

Lines changed: 36 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ data_types:
3333

3434
node_types:
3535
AutoScalingVmProfile:
36+
metadata:
37+
provisioning-api: createAutoScaleVmProfile
38+
rollback-api: deleteAutoScaleVmProfile
3639
properties:
3740
zone-id:
3841
type: string
@@ -46,24 +49,26 @@ node_types:
4649
required: true
4750
metadata:
4851
api-parameter: serviceofferingid
52+
template-id:
53+
type: string
54+
description: The ID of the template from which the auto deployed VMs will be provisioned.
55+
required: true
56+
metadata:
57+
api-parameter: templateid
4958
other-deploy-params:
5059
type: list
5160
entry_schema:
5261
type: NameValueMapping
5362
description: Other deployment parameters.
5463
required: false
64+
metadata:
65+
api-parameter: otherdeployparams
5566
expunge-vm-grace-period:
5667
type: integer
5768
description: The time allowed for existing connections to get closed before a VM is expunged.
5869
required: false
59-
name:
60-
type: string
61-
description: The name of the auto scaling VM profile.
62-
required: false
63-
description:
64-
type: string
65-
description: The description of the auto scaling VM profile.
66-
required: false
70+
metadata:
71+
api-parameter: expungevmgraceperiod
6772
account:
6873
type: string
6974
description: "The name of the account associated with the auto scaling VM profile. It must be used with the 'domain-id' property."
@@ -84,18 +89,36 @@ node_types:
8489
type: string
8590
description: The ID of the user used to launch and destroy the VMs.
8691
required: false
87-
network-id:
88-
type: string
89-
description: The ID of the network in which the auto scaling VM profile will be launched.
90-
required: false
9192
metadata:
92-
api-parameter: kubernetesversionid
93+
api-parameter: autoscaleuserid
9394
counter-parameters:
9495
type: list
9596
entry_schema:
9697
type: NameValueMapping
9798
required: false
9899
description: Counter parameters list.
100+
metadata:
101+
api-parameter: counterparam
102+
user-data-id:
103+
type: string
104+
description: The ID of the user data.
105+
required: false
106+
metadata:
107+
api-parameter: userdataid
108+
user-data-details:
109+
type: map
110+
entry_schema:
111+
type: string
112+
description: User data details.
113+
required: false
114+
metadata:
115+
api-parameter: userdatadetails
116+
user-data:
117+
type: string
118+
description: User data.
119+
required: false
120+
metadata:
121+
api-parameter: userdata
99122
attributes:
100123
id:
101124
type: string

0 commit comments

Comments
 (0)