-
Notifications
You must be signed in to change notification settings - Fork 0
/
provider_gen_config.yml
140 lines (138 loc) · 3.27 KB
/
provider_gen_config.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
# https://developer.hashicorp.com/terraform/plugin/code-generation/openapi-generator
provider:
name: binarylane
schema:
attributes:
api_endpoint:
source: env
name: BINARYLANE_API_ENDPOINT
api_token:
source: env
name: BINARYLANE_API_TOKEN
sensitive: true
resources:
server:
create:
path: /servers
method: POST
read:
path: /servers/{server_id}
method: GET
delete:
path: /servers/{server_id}
method: DELETE
schema:
attributes:
aliases:
server_id: id
overrides:
backups:
description: >
If true this will enable two daily backups for the server. `options.daily_backups` will override this
value if provided. Setting this to false has no effect.
image:
description: The slug of the selected operating system.
ssh_keys:
description: >
This is a list of SSH key ids. If this is null or not provided, any SSH keys that have been marked as
default will be deployed (assuming the operating system supports SSH Keys). Submit an empty list to
disable deployment of default keys.
ignores:
- ipv6
- licenses
- links
- server
- options
- password
load_balancer:
create:
path: /load_balancers
method: POST
read:
path: /load_balancers/{load_balancer_id}
method: GET
update:
path: /load_balancers/{load_balancer_id}
method: PUT
delete:
path: /load_balancers/{load_balancer_id}
method: DELETE
schema:
attributes:
aliases:
load_balancer_id: id
ignores:
- links
- load_balancer
server_firewall_rules:
create:
path: /servers/{server_id}/actions#ChangeAdvancedFirewallRules
method: POST
read:
path: /servers/{server_id}/advanced_firewall_rules
method: GET
update:
path: /servers/{server_id}/actions#ChangeAdvancedFirewallRules
method: POST
delete:
path: /servers/{server_id}/actions#ChangeAdvancedFirewallRules
method: POST
schema:
ignores:
- type
- action
ssh_key:
create:
path: /account/keys
method: POST
read:
path: /account/keys/{key_id}
method: GET
delete:
path: /account/keys/{key_id}
method: DELETE
schema:
attributes:
aliases:
key_id: id
ignores:
- ssh_key
vpc:
create:
path: /vpcs
method: POST
read:
path: /vpcs/{vpc_id}
method: GET
update:
path: /vpcs/{vpc_id}
method: PATCH
delete:
path: /vpcs/{vpc_id}
method: DELETE
schema:
attributes:
aliases:
vpc_id: id
ignores:
- route_entries
- vpc
vpc_route_entries:
create:
path: /vpcs/{vpc_id}
method: PATCH
read:
path: /vpcs/{vpc_id}
method: GET
update:
path: /vpcs/{vpc_id}
method: PATCH
delete:
path: /vpcs/{vpc_id}
method: DELETE
schema:
ignores:
- name
- vpc
# data_sources:
# Currently, don't need to generate data sources as they use the same schema as resources