@rork8s/ror-resources 1.15.8 → 1.15.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -14,6 +14,169 @@ export declare enum ResourceTagProperties {
14
14
  }
15
15
  export interface ResourceUnknown {
16
16
  }
17
+ export interface MachineCondition {
18
+ type?: string;
19
+ status?: string;
20
+ lastTransitionTime: Time;
21
+ reason?: string;
22
+ message?: string;
23
+ }
24
+ export interface NetworkInterfaceStatus {
25
+ name?: string;
26
+ macAddress?: string;
27
+ ipAddresses?: string[];
28
+ ipv6Addresses?: string[];
29
+ state?: string;
30
+ mtu?: number;
31
+ type?: string;
32
+ }
33
+ export interface MachineStatusDisk {
34
+ name?: string;
35
+ size?: number;
36
+ type?: string;
37
+ mountPoint?: string;
38
+ pvcName?: string;
39
+ volumeMode?: string;
40
+ accessModes?: string[];
41
+ filesystemType?: string;
42
+ uuid?: string;
43
+ label?: string;
44
+ serialNumber?: string;
45
+ device?: string;
46
+ usedBytes?: number;
47
+ availableBytes?: number;
48
+ usagePercent?: string;
49
+ }
50
+ export interface MachineStatus {
51
+ phase?: string;
52
+ message?: string;
53
+ providerID?: string;
54
+ machineID?: string;
55
+ state?: string;
56
+ lastUpdated: Time;
57
+ provider?: string;
58
+ region?: string;
59
+ zone?: string;
60
+ ipAddresses?: string[];
61
+ ipv6Addresses?: string[];
62
+ publicIPAddresses?: string[];
63
+ privateIPAddresses?: string[];
64
+ hostname?: string;
65
+ architecture?: string;
66
+ operatingSystem?: string;
67
+ operatingSystemVersion?: string;
68
+ kernelVersion?: string;
69
+ cpus?: number;
70
+ memory?: number;
71
+ disks?: MachineStatusDisk[];
72
+ networkInterfaces?: NetworkInterfaceStatus[];
73
+ conditions?: MachineCondition[];
74
+ bootTime?: Time;
75
+ creationTime?: Time;
76
+ failureReason?: string;
77
+ failureMessage?: string;
78
+ }
79
+ export interface CloudInitConfigMapRef {
80
+ name: string;
81
+ key?: string;
82
+ }
83
+ export interface CloudInitSecretRef {
84
+ name: string;
85
+ key?: string;
86
+ }
87
+ export interface CloudInitConfig {
88
+ type?: string;
89
+ userData?: string;
90
+ userDataBase64?: string;
91
+ networkData?: string;
92
+ networkDataBase64?: string;
93
+ userDataSecretRef?: CloudInitSecretRef;
94
+ networkDataSecretRef?: CloudInitSecretRef;
95
+ userDataConfigMapRef?: CloudInitConfigMapRef;
96
+ networkDataConfigMapRef?: CloudInitConfigMapRef;
97
+ }
98
+ export interface MachineBackup {
99
+ enabled?: boolean;
100
+ schedule?: string;
101
+ retentionDays?: number;
102
+ }
103
+ export interface CredentialsReference {
104
+ secretName?: string;
105
+ namespace?: string;
106
+ }
107
+ export interface CloudProviderConfig {
108
+ name?: string;
109
+ region?: string;
110
+ zone?: string;
111
+ config?: {
112
+ [key: string]: string;
113
+ };
114
+ credentialsRef?: CredentialsReference;
115
+ }
116
+ export interface MachineOS {
117
+ family?: string;
118
+ distribution?: string;
119
+ version?: string;
120
+ architecture?: string;
121
+ imageID?: string;
122
+ isoUri?: string;
123
+ imageFamily?: string;
124
+ }
125
+ export interface NetworkInterface {
126
+ name?: string;
127
+ subnet?: string;
128
+ securityGroups?: string[];
129
+ primary?: boolean;
130
+ }
131
+ export interface MachineNetwork {
132
+ networkNamespaceName?: string;
133
+ vpc?: string;
134
+ subnet?: string;
135
+ assignPublicIP?: boolean;
136
+ privateIP?: string;
137
+ publicIP?: string;
138
+ interfaces?: NetworkInterface[];
139
+ }
140
+ export interface MachineSpecDisk {
141
+ name?: string;
142
+ sizeGB?: number;
143
+ type?: string;
144
+ boot?: boolean;
145
+ device?: string;
146
+ encrypted?: boolean;
147
+ iops?: number;
148
+ throughput?: number;
149
+ }
150
+ export interface MachineCPU {
151
+ cores?: number;
152
+ threadsPerCore?: number;
153
+ sockets?: number;
154
+ }
155
+ export interface MachineSpec {
156
+ name?: string;
157
+ machineClass?: string;
158
+ machineType?: string;
159
+ cpu: MachineCPU;
160
+ memory?: number;
161
+ disks?: MachineSpecDisk[];
162
+ network: MachineNetwork;
163
+ os: MachineOS;
164
+ provider: string;
165
+ providerConfig: CloudProviderConfig;
166
+ sshKeys?: string[];
167
+ userData?: string;
168
+ tags?: {
169
+ [key: string]: string;
170
+ };
171
+ securityGroups?: string[];
172
+ monitoring?: boolean;
173
+ backup: MachineBackup;
174
+ cloudInit?: CloudInitConfig;
175
+ }
176
+ export interface ResourceMachine {
177
+ spec: MachineSpec;
178
+ status: MachineStatus;
179
+ }
17
180
  export interface ResourceBackupRunSpec {
18
181
  delete: boolean;
19
182
  }
@@ -1497,6 +1660,7 @@ export interface Resource {
1497
1660
  datacenter?: ResourceDatacenter;
1498
1661
  backupjob?: ResourceBackupJob;
1499
1662
  backuprun?: ResourceBackupRun;
1663
+ machine?: ResourceMachine;
1500
1664
  unknown?: ResourceUnknown;
1501
1665
  }
1502
1666
  export interface ResourceSet {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "author": "ROR Team",
3
- "commit": "bccd082",
3
+ "commit": "96bffd2",
4
4
  "description": "ROR resource models",
5
5
  "devDependencies": {
6
6
  "prettier": "^3.4.2",
@@ -57,5 +57,5 @@
57
57
  }
58
58
  },
59
59
  "typings": "dist/index.d.ts",
60
- "version": "1.15.8"
60
+ "version": "1.15.9"
61
61
  }
Binary file
package/src/resources.ts CHANGED
@@ -15,6 +15,165 @@ export enum ResourceTagProperties {
15
15
  color = 'color',
16
16
  }
17
17
  export interface ResourceUnknown {}
18
+ export interface MachineCondition {
19
+ type?: string;
20
+ status?: string;
21
+ lastTransitionTime: Time;
22
+ reason?: string;
23
+ message?: string;
24
+ }
25
+ export interface NetworkInterfaceStatus {
26
+ name?: string;
27
+ macAddress?: string;
28
+ ipAddresses?: string[];
29
+ ipv6Addresses?: string[];
30
+ state?: string;
31
+ mtu?: number;
32
+ type?: string;
33
+ }
34
+ export interface MachineStatusDisk {
35
+ name?: string;
36
+ size?: number;
37
+ type?: string;
38
+ mountPoint?: string;
39
+ pvcName?: string;
40
+ volumeMode?: string;
41
+ accessModes?: string[];
42
+ filesystemType?: string;
43
+ uuid?: string;
44
+ label?: string;
45
+ serialNumber?: string;
46
+ device?: string;
47
+ usedBytes?: number;
48
+ availableBytes?: number;
49
+ usagePercent?: string;
50
+ }
51
+ export interface MachineStatus {
52
+ phase?: string;
53
+ message?: string;
54
+ providerID?: string;
55
+ machineID?: string;
56
+ state?: string;
57
+ lastUpdated: Time;
58
+ provider?: string;
59
+ region?: string;
60
+ zone?: string;
61
+ ipAddresses?: string[];
62
+ ipv6Addresses?: string[];
63
+ publicIPAddresses?: string[];
64
+ privateIPAddresses?: string[];
65
+ hostname?: string;
66
+ architecture?: string;
67
+ operatingSystem?: string;
68
+ operatingSystemVersion?: string;
69
+ kernelVersion?: string;
70
+ cpus?: number;
71
+ memory?: number;
72
+ disks?: MachineStatusDisk[];
73
+ networkInterfaces?: NetworkInterfaceStatus[];
74
+ conditions?: MachineCondition[];
75
+ bootTime?: Time;
76
+ creationTime?: Time;
77
+ failureReason?: string;
78
+ failureMessage?: string;
79
+ }
80
+ export interface CloudInitConfigMapRef {
81
+ name: string;
82
+ key?: string;
83
+ }
84
+ export interface CloudInitSecretRef {
85
+ name: string;
86
+ key?: string;
87
+ }
88
+ export interface CloudInitConfig {
89
+ type?: string;
90
+ userData?: string;
91
+ userDataBase64?: string;
92
+ networkData?: string;
93
+ networkDataBase64?: string;
94
+ userDataSecretRef?: CloudInitSecretRef;
95
+ networkDataSecretRef?: CloudInitSecretRef;
96
+ userDataConfigMapRef?: CloudInitConfigMapRef;
97
+ networkDataConfigMapRef?: CloudInitConfigMapRef;
98
+ }
99
+ export interface MachineBackup {
100
+ enabled?: boolean;
101
+ schedule?: string;
102
+ retentionDays?: number;
103
+ }
104
+ export interface CredentialsReference {
105
+ secretName?: string;
106
+ namespace?: string;
107
+ }
108
+ export interface CloudProviderConfig {
109
+ name?: string;
110
+ region?: string;
111
+ zone?: string;
112
+ config?: { [key: string]: string };
113
+ credentialsRef?: CredentialsReference;
114
+ }
115
+ export interface MachineOS {
116
+ family?: string;
117
+ distribution?: string;
118
+ version?: string;
119
+ architecture?: string;
120
+ imageID?: string;
121
+ isoUri?: string;
122
+ imageFamily?: string;
123
+ }
124
+ export interface NetworkInterface {
125
+ name?: string;
126
+ subnet?: string;
127
+ securityGroups?: string[];
128
+ primary?: boolean;
129
+ }
130
+ export interface MachineNetwork {
131
+ networkNamespaceName?: string;
132
+ vpc?: string;
133
+ subnet?: string;
134
+ assignPublicIP?: boolean;
135
+ privateIP?: string;
136
+ publicIP?: string;
137
+ interfaces?: NetworkInterface[];
138
+ }
139
+ export interface MachineSpecDisk {
140
+ name?: string;
141
+ sizeGB?: number;
142
+ type?: string;
143
+ boot?: boolean;
144
+ device?: string;
145
+ encrypted?: boolean;
146
+ iops?: number;
147
+ throughput?: number;
148
+ }
149
+ export interface MachineCPU {
150
+ cores?: number;
151
+ threadsPerCore?: number;
152
+ sockets?: number;
153
+ }
154
+ export interface MachineSpec {
155
+ name?: string;
156
+ machineClass?: string;
157
+ machineType?: string;
158
+ cpu: MachineCPU;
159
+ memory?: number;
160
+ disks?: MachineSpecDisk[];
161
+ network: MachineNetwork;
162
+ os: MachineOS;
163
+ provider: string;
164
+ providerConfig: CloudProviderConfig;
165
+ sshKeys?: string[];
166
+ userData?: string;
167
+ tags?: { [key: string]: string };
168
+ securityGroups?: string[];
169
+ monitoring?: boolean;
170
+ backup: MachineBackup;
171
+ cloudInit?: CloudInitConfig;
172
+ }
173
+ export interface ResourceMachine {
174
+ spec: MachineSpec;
175
+ status: MachineStatus;
176
+ }
18
177
  export interface ResourceBackupRunSpec {
19
178
  delete: boolean;
20
179
  }
@@ -1450,6 +1609,7 @@ export interface Resource {
1450
1609
  datacenter?: ResourceDatacenter;
1451
1610
  backupjob?: ResourceBackupJob;
1452
1611
  backuprun?: ResourceBackupRun;
1612
+ machine?: ResourceMachine;
1453
1613
  unknown?: ResourceUnknown;
1454
1614
  }
1455
1615
  export interface ResourceSet {
Binary file