@rork8s/ror-resources 0.0.5 → 1.1.0-rc10
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.
- package/README.md +6 -1
- package/dist/index.d.ts +0 -5
- package/dist/index.js +1 -6
- package/dist/index.js.map +1 -1
- package/dist/resources.d.ts +240 -30
- package/dist/resources.js +4 -0
- package/dist/resources.js.map +1 -1
- package/package-backup.json +53 -0
- package/package.json +11 -9
- package/rork8s-ror-resources-1.1.0-rc10.tgz +0 -0
- package/src/resources.ts +123 -27
- package/LICENSE +0 -201
package/README.md
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Npm package for ROR (Release Operate Report) project: https://github.com/norskHelsenett/ror
|
|
4
4
|
|
|
5
|
+
## Prerequisite
|
|
6
|
+
|
|
7
|
+
Npm publish token in environment variables
|
|
8
|
+
|
|
5
9
|
## Build
|
|
6
10
|
|
|
7
11
|
```bash
|
|
@@ -23,12 +27,13 @@ To use in another `package.json`
|
|
|
23
27
|
Replace dependency url, while testing to example this:
|
|
24
28
|
|
|
25
29
|
```json
|
|
26
|
-
"@rork8s/ror-resources": "file:../../../ror-typescript-resource-models/rork8s-ror-resources-0.0.
|
|
30
|
+
"@rork8s/ror-resources": "file:../../../ror-typescript-resource-models/rork8s-ror-resources-0.0.6.tgz",
|
|
27
31
|
```
|
|
28
32
|
|
|
29
33
|
## Publish
|
|
30
34
|
|
|
31
35
|
- Update version number in `package.json`
|
|
36
|
+
- Remember to add npm token before publishing
|
|
32
37
|
- Run
|
|
33
38
|
|
|
34
39
|
```bash
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":""}
|
package/dist/resources.d.ts
CHANGED
|
@@ -9,6 +9,198 @@ export declare enum VulnerabilityDismissalReason {
|
|
|
9
9
|
FALSE_POSITIVE = 1,
|
|
10
10
|
NOT_APPLICABLE = 2
|
|
11
11
|
}
|
|
12
|
+
export declare enum ResourceTagProperties {
|
|
13
|
+
color = "color"
|
|
14
|
+
}
|
|
15
|
+
export interface ResourceBackupJobSpec {
|
|
16
|
+
name: string;
|
|
17
|
+
status: string;
|
|
18
|
+
sourceName: string;
|
|
19
|
+
sourceId: string;
|
|
20
|
+
policyId: string;
|
|
21
|
+
policyName: string;
|
|
22
|
+
activeTargets: ResourceBackupTarget[];
|
|
23
|
+
indirectBackupTargets: ResourceIndirectBackupTarget[];
|
|
24
|
+
backupDestinations: ResourceBackupDestination[];
|
|
25
|
+
startTime: Time;
|
|
26
|
+
endTime: Time;
|
|
27
|
+
expiryTime: Time;
|
|
28
|
+
}
|
|
29
|
+
export interface ResourceBackupStorage {
|
|
30
|
+
unit: string;
|
|
31
|
+
sourceSize: number;
|
|
32
|
+
logicalSize: number;
|
|
33
|
+
physicalSize: number;
|
|
34
|
+
}
|
|
35
|
+
export interface ResourceBackupRun {
|
|
36
|
+
backupTargets: ResourceBackupTarget[];
|
|
37
|
+
backupDestinations: ResourceBackupDestination[];
|
|
38
|
+
startTime: Time;
|
|
39
|
+
endTime: Time;
|
|
40
|
+
expiryTime: Time;
|
|
41
|
+
backupStorage: ResourceBackupStorage;
|
|
42
|
+
}
|
|
43
|
+
export interface ResourceBackupDestination {
|
|
44
|
+
name: string;
|
|
45
|
+
id: string;
|
|
46
|
+
type: string;
|
|
47
|
+
status: string;
|
|
48
|
+
expiryTime: Time;
|
|
49
|
+
}
|
|
50
|
+
export interface ResourceIndirectBackupTarget {
|
|
51
|
+
type: string;
|
|
52
|
+
ids: string[];
|
|
53
|
+
keyValues: {
|
|
54
|
+
[key: string]: string[];
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
export interface ResourceBackupTarget {
|
|
58
|
+
name: string;
|
|
59
|
+
id: string;
|
|
60
|
+
externalIds: {
|
|
61
|
+
[key: string]: string;
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
export interface ResourceBackupJobStatus {
|
|
65
|
+
name: string;
|
|
66
|
+
status: string;
|
|
67
|
+
sourceName: string;
|
|
68
|
+
sourceId: string;
|
|
69
|
+
policyId: string;
|
|
70
|
+
policyName: string;
|
|
71
|
+
activeTargets: ResourceBackupTarget[];
|
|
72
|
+
indirectBackupTargets: ResourceIndirectBackupTarget[];
|
|
73
|
+
backupDestinations: ResourceBackupDestination[];
|
|
74
|
+
startTime: Time;
|
|
75
|
+
endTime: Time;
|
|
76
|
+
expiryTime: Time;
|
|
77
|
+
runs: ResourceBackupRun[];
|
|
78
|
+
}
|
|
79
|
+
export interface ResourceBackupJob {
|
|
80
|
+
id: string;
|
|
81
|
+
provider: string;
|
|
82
|
+
status: ResourceBackupJobStatus;
|
|
83
|
+
spec: ResourceBackupJobSpec;
|
|
84
|
+
}
|
|
85
|
+
export interface DatacenterLocation {
|
|
86
|
+
id: string;
|
|
87
|
+
region: string;
|
|
88
|
+
country: string;
|
|
89
|
+
}
|
|
90
|
+
export interface Datacenter {
|
|
91
|
+
id: string;
|
|
92
|
+
name: string;
|
|
93
|
+
provider: string;
|
|
94
|
+
location: DatacenterLocation;
|
|
95
|
+
apiEndpoint: string;
|
|
96
|
+
}
|
|
97
|
+
export interface ResourceDatacenter {
|
|
98
|
+
spec: ResourceDaemonSetStatus;
|
|
99
|
+
legacy: Datacenter;
|
|
100
|
+
}
|
|
101
|
+
export interface ResourceNetworkPolicyCondition {
|
|
102
|
+
lastTransitionTime: string;
|
|
103
|
+
message: string;
|
|
104
|
+
observedGeneration: number;
|
|
105
|
+
reason: string;
|
|
106
|
+
status: string;
|
|
107
|
+
type: string;
|
|
108
|
+
}
|
|
109
|
+
export interface ResourceNetworkPolicyStatus {
|
|
110
|
+
conditions: ResourceNetworkPolicyCondition[];
|
|
111
|
+
}
|
|
112
|
+
export interface ResourceNetworkPolicyPodSelector {
|
|
113
|
+
matchLabels: {
|
|
114
|
+
[key: string]: string;
|
|
115
|
+
};
|
|
116
|
+
}
|
|
117
|
+
export interface ResourceNetworkPolicyIngressRule {
|
|
118
|
+
from: ResourceNetworkPolicyPeer[];
|
|
119
|
+
ports: ResourceNetworkPolicyPort[];
|
|
120
|
+
}
|
|
121
|
+
export interface ResourceNetworkPolicySelectorExpression {
|
|
122
|
+
key: string;
|
|
123
|
+
operator: string;
|
|
124
|
+
values: string[];
|
|
125
|
+
}
|
|
126
|
+
export interface ResourceNetworkPolicySelector {
|
|
127
|
+
matchExpressions: ResourceNetworkPolicySelectorExpression[];
|
|
128
|
+
matchLabels: {
|
|
129
|
+
[key: string]: string;
|
|
130
|
+
};
|
|
131
|
+
}
|
|
132
|
+
export interface ResourceNetworkPolicyIpBlock {
|
|
133
|
+
cidr: string;
|
|
134
|
+
except: string[];
|
|
135
|
+
}
|
|
136
|
+
export interface ResourceNetworkPolicyPeer {
|
|
137
|
+
ipBlock?: ResourceNetworkPolicyIpBlock;
|
|
138
|
+
namespaceSelector?: ResourceNetworkPolicySelector;
|
|
139
|
+
podSelector?: ResourceNetworkPolicySelector;
|
|
140
|
+
}
|
|
141
|
+
export interface ResourceNetworkPolicyPort {
|
|
142
|
+
endPort: number;
|
|
143
|
+
port: IntOrString;
|
|
144
|
+
protocol: string;
|
|
145
|
+
}
|
|
146
|
+
export interface ResourceNetworkPolicyEgressRule {
|
|
147
|
+
ports: ResourceNetworkPolicyPort[];
|
|
148
|
+
to: ResourceNetworkPolicyPeer[];
|
|
149
|
+
}
|
|
150
|
+
export interface ResourceNetworkPolicySpec {
|
|
151
|
+
egress: ResourceNetworkPolicyEgressRule[];
|
|
152
|
+
ingress: ResourceNetworkPolicyIngressRule[];
|
|
153
|
+
podSelector: ResourceNetworkPolicyPodSelector;
|
|
154
|
+
policyTypes: string[];
|
|
155
|
+
}
|
|
156
|
+
export interface ResourceNetworkPolicy {
|
|
157
|
+
spec: ResourceNetworkPolicySpec;
|
|
158
|
+
status: ResourceNetworkPolicyStatus;
|
|
159
|
+
}
|
|
160
|
+
export interface ResourceEndpointSpecSubsetsPorts {
|
|
161
|
+
appProtocol?: string;
|
|
162
|
+
name?: string;
|
|
163
|
+
port?: number;
|
|
164
|
+
protocol?: string;
|
|
165
|
+
}
|
|
166
|
+
export interface ResourceEndpointSpecSubsetsNotReadyAddressesTargetRef {
|
|
167
|
+
apiVersion?: string;
|
|
168
|
+
fieldPath?: string;
|
|
169
|
+
kind?: string;
|
|
170
|
+
name?: string;
|
|
171
|
+
namespace?: string;
|
|
172
|
+
resourceVersion?: string;
|
|
173
|
+
uid?: string;
|
|
174
|
+
}
|
|
175
|
+
export interface ResourceEndpointSpecSubsetsNotReadyAddresses {
|
|
176
|
+
hostname?: string;
|
|
177
|
+
ip?: string;
|
|
178
|
+
nodeName?: string;
|
|
179
|
+
targetRef?: ResourceEndpointSpecSubsetsNotReadyAddressesTargetRef;
|
|
180
|
+
}
|
|
181
|
+
export interface ResourceEndpointSpecSubsetsAddressesTargetRef {
|
|
182
|
+
apiVersion?: string;
|
|
183
|
+
fieldPath?: string;
|
|
184
|
+
kind?: string;
|
|
185
|
+
name?: string;
|
|
186
|
+
namespace?: string;
|
|
187
|
+
resourceVersion?: string;
|
|
188
|
+
uid?: string;
|
|
189
|
+
}
|
|
190
|
+
export interface ResourceEndpointSpecSubsetsAddresses {
|
|
191
|
+
hostname?: string;
|
|
192
|
+
ip?: string;
|
|
193
|
+
nodeName?: string;
|
|
194
|
+
targetRef?: ResourceEndpointSpecSubsetsAddressesTargetRef;
|
|
195
|
+
}
|
|
196
|
+
export interface ResourceEndpointSpecSubsets {
|
|
197
|
+
addresses?: ResourceEndpointSpecSubsetsAddresses[];
|
|
198
|
+
notReadyAddresses?: ResourceEndpointSpecSubsetsNotReadyAddresses[];
|
|
199
|
+
ports?: ResourceEndpointSpecSubsetsPorts[];
|
|
200
|
+
}
|
|
201
|
+
export interface ResourceEndpoints {
|
|
202
|
+
subsets?: ResourceEndpointSpecSubsets[];
|
|
203
|
+
}
|
|
12
204
|
export interface ResourceVirtualMachineOperatingSystemStatus {
|
|
13
205
|
id: string;
|
|
14
206
|
name: string;
|
|
@@ -20,69 +212,75 @@ export interface ResourceVirtualMachineOperatingSystemStatus {
|
|
|
20
212
|
}
|
|
21
213
|
export interface ResourceVirtualMachineNetworkStatus {
|
|
22
214
|
id: string;
|
|
215
|
+
dns: string;
|
|
216
|
+
ipv4: string;
|
|
217
|
+
ipv6: string;
|
|
218
|
+
mask: string;
|
|
219
|
+
gateway: string;
|
|
23
220
|
}
|
|
24
221
|
export interface ResourceVirtualMachineMemoryStatus {
|
|
25
|
-
|
|
26
|
-
usage:
|
|
222
|
+
unit: string;
|
|
223
|
+
usage: number;
|
|
224
|
+
sizeBytes: number;
|
|
27
225
|
}
|
|
28
226
|
export interface ResourceVirtualMachineDiskStatus {
|
|
227
|
+
usageBytes: string;
|
|
228
|
+
isMounted: boolean;
|
|
29
229
|
id: string;
|
|
30
|
-
|
|
230
|
+
name: string;
|
|
231
|
+
type: string;
|
|
232
|
+
sizeBytes: number;
|
|
233
|
+
}
|
|
234
|
+
export interface ResourceVirtualMachineState {
|
|
235
|
+
state: string;
|
|
236
|
+
reason: string;
|
|
237
|
+
time: string;
|
|
238
|
+
}
|
|
239
|
+
export interface ResourceVirtualMachineTag {
|
|
240
|
+
key: string;
|
|
241
|
+
value: string;
|
|
242
|
+
description: string;
|
|
31
243
|
}
|
|
32
244
|
export interface ResourceVirtualMachineCpuStatus {
|
|
33
|
-
|
|
34
|
-
usage:
|
|
245
|
+
unit: string;
|
|
246
|
+
usage: number;
|
|
247
|
+
sockets: number;
|
|
248
|
+
coresPerSocket: number;
|
|
35
249
|
}
|
|
36
250
|
export interface ResourceVirtualMachineStatus {
|
|
251
|
+
lastUpdated: Time;
|
|
37
252
|
cpu: ResourceVirtualMachineCpuStatus;
|
|
253
|
+
tags: ResourceVirtualMachineTag[];
|
|
254
|
+
state: ResourceVirtualMachineState;
|
|
38
255
|
disks: ResourceVirtualMachineDiskStatus[];
|
|
39
256
|
memory: ResourceVirtualMachineMemoryStatus;
|
|
40
257
|
networks: ResourceVirtualMachineNetworkStatus[];
|
|
41
258
|
operatingSystem: ResourceVirtualMachineOperatingSystemStatus;
|
|
42
259
|
}
|
|
43
|
-
export interface ResourceVirtualMachineOperatingSystemSpec {
|
|
44
|
-
id: string;
|
|
45
|
-
}
|
|
46
|
-
export interface ResourceVirtualMachineNetworkSpec {
|
|
47
|
-
id: string;
|
|
48
|
-
dns: string;
|
|
49
|
-
ipv4: string;
|
|
50
|
-
ipv6: string;
|
|
51
|
-
mask: string;
|
|
52
|
-
gateway: string;
|
|
53
|
-
}
|
|
54
260
|
export interface ResourceVirtualMachineMemorySpec {
|
|
55
|
-
|
|
56
|
-
size: number;
|
|
261
|
+
sizeBytes: number;
|
|
57
262
|
}
|
|
58
263
|
export interface ResourceVirtualMachineDiskSpec {
|
|
59
264
|
id: string;
|
|
60
|
-
size: number;
|
|
61
265
|
name: string;
|
|
62
266
|
type: string;
|
|
63
|
-
|
|
64
|
-
export interface ResourceVirtualMachineTagSpec {
|
|
65
|
-
key: string;
|
|
66
|
-
value: string;
|
|
67
|
-
description: string;
|
|
267
|
+
sizeBytes: number;
|
|
68
268
|
}
|
|
69
269
|
export interface ResourceVirtualMachineCpuSpec {
|
|
70
|
-
|
|
71
|
-
|
|
270
|
+
sockets: number;
|
|
271
|
+
coresPerSocket: number;
|
|
72
272
|
}
|
|
73
273
|
export interface ResourceVirtualMachineSpec {
|
|
74
274
|
cpu: ResourceVirtualMachineCpuSpec;
|
|
75
|
-
|
|
275
|
+
name: string;
|
|
76
276
|
disks: ResourceVirtualMachineDiskSpec[];
|
|
77
277
|
memory: ResourceVirtualMachineMemorySpec;
|
|
78
|
-
networks: ResourceVirtualMachineNetworkSpec[];
|
|
79
|
-
operatingSystem: ResourceVirtualMachineOperatingSystemSpec;
|
|
80
278
|
}
|
|
81
279
|
export interface ResourceVirtualMachine {
|
|
82
280
|
id: string;
|
|
83
|
-
name: string;
|
|
84
281
|
spec: ResourceVirtualMachineSpec;
|
|
85
282
|
status: ResourceVirtualMachineStatus;
|
|
283
|
+
provider: string;
|
|
86
284
|
}
|
|
87
285
|
export interface ResourceVulnerabilityEventSpec {
|
|
88
286
|
owner: RorResourceOwnerReference;
|
|
@@ -920,6 +1118,13 @@ export interface ResourceNode {
|
|
|
920
1118
|
}
|
|
921
1119
|
export interface ResourceNamespace {
|
|
922
1120
|
}
|
|
1121
|
+
export interface ResourceTag {
|
|
1122
|
+
key: string;
|
|
1123
|
+
value: string;
|
|
1124
|
+
properties: {
|
|
1125
|
+
[key: string]: string;
|
|
1126
|
+
};
|
|
1127
|
+
}
|
|
923
1128
|
export interface RorResourceOwnerReference {
|
|
924
1129
|
scope: string;
|
|
925
1130
|
subject: string;
|
|
@@ -931,6 +1136,7 @@ export interface ResourceRorMeta {
|
|
|
931
1136
|
hash?: string;
|
|
932
1137
|
ownerref?: RorResourceOwnerReference;
|
|
933
1138
|
action?: string;
|
|
1139
|
+
tags?: ResourceTag[];
|
|
934
1140
|
}
|
|
935
1141
|
export interface FieldsV1 {
|
|
936
1142
|
}
|
|
@@ -1013,6 +1219,10 @@ export interface Resource {
|
|
|
1013
1219
|
slackmessage?: ResourceSlackMessage;
|
|
1014
1220
|
vulnerabilityevent?: ResourceVulnerabilityEvent;
|
|
1015
1221
|
virtualmachine?: ResourceVirtualMachine;
|
|
1222
|
+
endpoints?: ResourceEndpoints;
|
|
1223
|
+
networkpolicy?: ResourceNetworkPolicy;
|
|
1224
|
+
datacenter?: ResourceDatacenter;
|
|
1225
|
+
backupjob?: ResourceBackupJob;
|
|
1016
1226
|
}
|
|
1017
1227
|
export interface ResourceSet {
|
|
1018
1228
|
resources?: Resource[];
|
package/dist/resources.js
CHANGED
|
@@ -12,4 +12,8 @@ export var VulnerabilityDismissalReason;
|
|
|
12
12
|
VulnerabilityDismissalReason[VulnerabilityDismissalReason["FALSE_POSITIVE"] = 1] = "FALSE_POSITIVE";
|
|
13
13
|
VulnerabilityDismissalReason[VulnerabilityDismissalReason["NOT_APPLICABLE"] = 2] = "NOT_APPLICABLE";
|
|
14
14
|
})(VulnerabilityDismissalReason || (VulnerabilityDismissalReason = {}));
|
|
15
|
+
export var ResourceTagProperties;
|
|
16
|
+
(function (ResourceTagProperties) {
|
|
17
|
+
ResourceTagProperties["color"] = "color";
|
|
18
|
+
})(ResourceTagProperties || (ResourceTagProperties = {}));
|
|
15
19
|
//# sourceMappingURL=resources.js.map
|
package/dist/resources.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resources.js","sourceRoot":"","sources":["../src/resources.ts"],"names":[],"mappings":"AAAA,+DAA+D;AAE/D,MAAM,CAAN,IAAY,mBAKX;AALD,WAAY,mBAAmB;IAC7B,6EAAgB,CAAA;IAChB,6EAAgB,CAAA;IAChB,uEAAa,CAAA;IACb,uEAAa,CAAA;AACf,CAAC,EALW,mBAAmB,KAAnB,mBAAmB,QAK9B;AACD,MAAM,CAAN,IAAY,4BAIX;AAJD,WAAY,4BAA4B;IACtC,qGAAmB,CAAA;IACnB,mGAAkB,CAAA;IAClB,mGAAkB,CAAA;AACpB,CAAC,EAJW,4BAA4B,KAA5B,4BAA4B,QAIvC"}
|
|
1
|
+
{"version":3,"file":"resources.js","sourceRoot":"","sources":["../src/resources.ts"],"names":[],"mappings":"AAAA,+DAA+D;AAE/D,MAAM,CAAN,IAAY,mBAKX;AALD,WAAY,mBAAmB;IAC7B,6EAAgB,CAAA;IAChB,6EAAgB,CAAA;IAChB,uEAAa,CAAA;IACb,uEAAa,CAAA;AACf,CAAC,EALW,mBAAmB,KAAnB,mBAAmB,QAK9B;AACD,MAAM,CAAN,IAAY,4BAIX;AAJD,WAAY,4BAA4B;IACtC,qGAAmB,CAAA;IACnB,mGAAkB,CAAA;IAClB,mGAAkB,CAAA;AACpB,CAAC,EAJW,4BAA4B,KAA5B,4BAA4B,QAIvC;AACD,MAAM,CAAN,IAAY,qBAEX;AAFD,WAAY,qBAAqB;IAC/B,wCAAe,CAAA;AACjB,CAAC,EAFW,qBAAqB,KAArB,qBAAqB,QAEhC"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
{
|
|
2
|
+
"author": "ROR Team",
|
|
3
|
+
"commit": "FFFFFF",
|
|
4
|
+
"description": "ROR resource models",
|
|
5
|
+
"devDependencies": {
|
|
6
|
+
"prettier": "^3.4.2",
|
|
7
|
+
"typescript": "^5.7.3"
|
|
8
|
+
},
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"default": "./dist/index.js",
|
|
12
|
+
"import": "./dist/index.js",
|
|
13
|
+
"node": "./dist/index.js",
|
|
14
|
+
"require": "./dist/index.js",
|
|
15
|
+
"types": "./dist/index.d.ts"
|
|
16
|
+
},
|
|
17
|
+
"./models": {
|
|
18
|
+
"default": "./dist/resources.js",
|
|
19
|
+
"import": "./dist/resources.js",
|
|
20
|
+
"node": "./dist/resources.js",
|
|
21
|
+
"require": "./dist/resources.js",
|
|
22
|
+
"types": "./dist/resources.d.ts"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"homepage": "https://rork8s.nhn.no",
|
|
26
|
+
"keywords": ["ROR", "resources", "models"],
|
|
27
|
+
"license": "Apache-2.0",
|
|
28
|
+
"main": "dist/index.js",
|
|
29
|
+
"name": "@rork8s/ror-resources",
|
|
30
|
+
"publishConfig": {
|
|
31
|
+
"access": "public",
|
|
32
|
+
"registry": "https://registry.npmjs.org/"
|
|
33
|
+
},
|
|
34
|
+
"repository": {
|
|
35
|
+
"type": "git",
|
|
36
|
+
"url": "git+https://github.com:NorskHelsenett/ror.git"
|
|
37
|
+
},
|
|
38
|
+
"scripts": {
|
|
39
|
+
"build": "tsc",
|
|
40
|
+
"format": "prettier --write .",
|
|
41
|
+
"prepack": "npm run format && npm run build"
|
|
42
|
+
},
|
|
43
|
+
"type": "module",
|
|
44
|
+
"types": "dist/index.d.ts",
|
|
45
|
+
"typesVersions": {
|
|
46
|
+
"*": {
|
|
47
|
+
".": ["dist/*"],
|
|
48
|
+
"models": ["dist/resources.d.ts"]
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
"typings": "dist/index.d.ts",
|
|
52
|
+
"version": "0.0.0"
|
|
53
|
+
}
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"author": "ROR Team",
|
|
3
|
-
"
|
|
3
|
+
"commit": "1761520",
|
|
4
|
+
"description": "ROR resource models",
|
|
4
5
|
"devDependencies": {
|
|
5
|
-
"prettier": "^3.4.
|
|
6
|
-
"
|
|
7
|
-
"typescript": "^5.7.2"
|
|
6
|
+
"prettier": "^3.4.2",
|
|
7
|
+
"typescript": "^5.7.3"
|
|
8
8
|
},
|
|
9
9
|
"exports": {
|
|
10
10
|
".": {
|
|
@@ -22,9 +22,11 @@
|
|
|
22
22
|
"types": "./dist/resources.d.ts"
|
|
23
23
|
}
|
|
24
24
|
},
|
|
25
|
+
"homepage": "https://rork8s.nhn.no",
|
|
25
26
|
"keywords": [
|
|
26
27
|
"ROR",
|
|
27
|
-
"
|
|
28
|
+
"resources",
|
|
29
|
+
"models"
|
|
28
30
|
],
|
|
29
31
|
"license": "Apache-2.0",
|
|
30
32
|
"main": "dist/index.js",
|
|
@@ -35,16 +37,15 @@
|
|
|
35
37
|
},
|
|
36
38
|
"repository": {
|
|
37
39
|
"type": "git",
|
|
38
|
-
"url": "git+https://github.com:NorskHelsenett/ror
|
|
40
|
+
"url": "git+https://github.com:NorskHelsenett/ror.git"
|
|
39
41
|
},
|
|
40
42
|
"scripts": {
|
|
41
43
|
"build": "tsc",
|
|
42
44
|
"format": "prettier --write .",
|
|
43
|
-
"
|
|
45
|
+
"prepack": "npm run format && npm run build"
|
|
44
46
|
},
|
|
45
47
|
"type": "module",
|
|
46
48
|
"types": "dist/index.d.ts",
|
|
47
|
-
"typings": "dist/index.d.ts",
|
|
48
49
|
"typesVersions": {
|
|
49
50
|
"*": {
|
|
50
51
|
".": [
|
|
@@ -55,5 +56,6 @@
|
|
|
55
56
|
]
|
|
56
57
|
}
|
|
57
58
|
},
|
|
58
|
-
"
|
|
59
|
+
"typings": "dist/index.d.ts",
|
|
60
|
+
"version": "1.1.0-rc10"
|
|
59
61
|
}
|
|
Binary file
|
package/src/resources.ts
CHANGED
|
@@ -11,6 +11,91 @@ export enum VulnerabilityDismissalReason {
|
|
|
11
11
|
FALSE_POSITIVE = 1,
|
|
12
12
|
NOT_APPLICABLE = 2,
|
|
13
13
|
}
|
|
14
|
+
export enum ResourceTagProperties {
|
|
15
|
+
color = 'color',
|
|
16
|
+
}
|
|
17
|
+
export interface ResourceBackupJobSpec {
|
|
18
|
+
name: string;
|
|
19
|
+
status: string;
|
|
20
|
+
sourceName: string;
|
|
21
|
+
sourceId: string;
|
|
22
|
+
policyId: string;
|
|
23
|
+
policyName: string;
|
|
24
|
+
activeTargets: ResourceBackupTarget[];
|
|
25
|
+
indirectBackupTargets: ResourceIndirectBackupTarget[];
|
|
26
|
+
backupDestinations: ResourceBackupDestination[];
|
|
27
|
+
startTime: Time;
|
|
28
|
+
endTime: Time;
|
|
29
|
+
expiryTime: Time;
|
|
30
|
+
}
|
|
31
|
+
export interface ResourceBackupStorage {
|
|
32
|
+
unit: string;
|
|
33
|
+
sourceSize: number;
|
|
34
|
+
logicalSize: number;
|
|
35
|
+
physicalSize: number;
|
|
36
|
+
}
|
|
37
|
+
export interface ResourceBackupRun {
|
|
38
|
+
backupTargets: ResourceBackupTarget[];
|
|
39
|
+
backupDestinations: ResourceBackupDestination[];
|
|
40
|
+
startTime: Time;
|
|
41
|
+
endTime: Time;
|
|
42
|
+
expiryTime: Time;
|
|
43
|
+
backupStorage: ResourceBackupStorage;
|
|
44
|
+
}
|
|
45
|
+
export interface ResourceBackupDestination {
|
|
46
|
+
name: string;
|
|
47
|
+
id: string;
|
|
48
|
+
type: string;
|
|
49
|
+
status: string;
|
|
50
|
+
expiryTime: Time;
|
|
51
|
+
}
|
|
52
|
+
export interface ResourceIndirectBackupTarget {
|
|
53
|
+
type: string;
|
|
54
|
+
ids: string[];
|
|
55
|
+
keyValues: { [key: string]: string[] };
|
|
56
|
+
}
|
|
57
|
+
export interface ResourceBackupTarget {
|
|
58
|
+
name: string;
|
|
59
|
+
id: string;
|
|
60
|
+
externalIds: { [key: string]: string };
|
|
61
|
+
}
|
|
62
|
+
export interface ResourceBackupJobStatus {
|
|
63
|
+
name: string;
|
|
64
|
+
status: string;
|
|
65
|
+
sourceName: string;
|
|
66
|
+
sourceId: string;
|
|
67
|
+
policyId: string;
|
|
68
|
+
policyName: string;
|
|
69
|
+
activeTargets: ResourceBackupTarget[];
|
|
70
|
+
indirectBackupTargets: ResourceIndirectBackupTarget[];
|
|
71
|
+
backupDestinations: ResourceBackupDestination[];
|
|
72
|
+
startTime: Time;
|
|
73
|
+
endTime: Time;
|
|
74
|
+
expiryTime: Time;
|
|
75
|
+
runs: ResourceBackupRun[];
|
|
76
|
+
}
|
|
77
|
+
export interface ResourceBackupJob {
|
|
78
|
+
id: string;
|
|
79
|
+
provider: string;
|
|
80
|
+
status: ResourceBackupJobStatus;
|
|
81
|
+
spec: ResourceBackupJobSpec;
|
|
82
|
+
}
|
|
83
|
+
export interface DatacenterLocation {
|
|
84
|
+
id: string;
|
|
85
|
+
region: string;
|
|
86
|
+
country: string;
|
|
87
|
+
}
|
|
88
|
+
export interface Datacenter {
|
|
89
|
+
id: string;
|
|
90
|
+
name: string;
|
|
91
|
+
provider: string;
|
|
92
|
+
location: DatacenterLocation;
|
|
93
|
+
apiEndpoint: string;
|
|
94
|
+
}
|
|
95
|
+
export interface ResourceDatacenter {
|
|
96
|
+
spec: ResourceDaemonSetStatus;
|
|
97
|
+
legacy: Datacenter;
|
|
98
|
+
}
|
|
14
99
|
export interface ResourceNetworkPolicyCondition {
|
|
15
100
|
lastTransitionTime: string;
|
|
16
101
|
message: string;
|
|
@@ -121,41 +206,52 @@ export interface ResourceVirtualMachineOperatingSystemStatus {
|
|
|
121
206
|
}
|
|
122
207
|
export interface ResourceVirtualMachineNetworkStatus {
|
|
123
208
|
id: string;
|
|
209
|
+
dns: string;
|
|
210
|
+
ipv4: string;
|
|
211
|
+
ipv6: string;
|
|
212
|
+
mask: string;
|
|
213
|
+
gateway: string;
|
|
124
214
|
}
|
|
125
215
|
export interface ResourceVirtualMachineMemoryStatus {
|
|
126
|
-
id: string;
|
|
127
216
|
unit: string;
|
|
128
|
-
usage:
|
|
217
|
+
usage: number;
|
|
218
|
+
sizeBytes: number;
|
|
129
219
|
}
|
|
130
220
|
export interface ResourceVirtualMachineDiskStatus {
|
|
131
|
-
id: string;
|
|
132
221
|
usageBytes: string;
|
|
222
|
+
isMounted: boolean;
|
|
223
|
+
id: string;
|
|
224
|
+
name: string;
|
|
225
|
+
type: string;
|
|
226
|
+
sizeBytes: number;
|
|
227
|
+
}
|
|
228
|
+
export interface ResourceVirtualMachineState {
|
|
229
|
+
state: string;
|
|
230
|
+
reason: string;
|
|
231
|
+
time: string;
|
|
232
|
+
}
|
|
233
|
+
export interface ResourceVirtualMachineTag {
|
|
234
|
+
key: string;
|
|
235
|
+
value: string;
|
|
236
|
+
description: string;
|
|
133
237
|
}
|
|
134
238
|
export interface ResourceVirtualMachineCpuStatus {
|
|
135
|
-
id: string;
|
|
136
239
|
unit: string;
|
|
137
|
-
usage:
|
|
240
|
+
usage: number;
|
|
241
|
+
sockets: number;
|
|
242
|
+
coresPerSocket: number;
|
|
138
243
|
}
|
|
139
244
|
export interface ResourceVirtualMachineStatus {
|
|
245
|
+
lastUpdated: Time;
|
|
140
246
|
cpu: ResourceVirtualMachineCpuStatus;
|
|
247
|
+
tags: ResourceVirtualMachineTag[];
|
|
248
|
+
state: ResourceVirtualMachineState;
|
|
141
249
|
disks: ResourceVirtualMachineDiskStatus[];
|
|
142
250
|
memory: ResourceVirtualMachineMemoryStatus;
|
|
143
251
|
networks: ResourceVirtualMachineNetworkStatus[];
|
|
144
252
|
operatingSystem: ResourceVirtualMachineOperatingSystemStatus;
|
|
145
253
|
}
|
|
146
|
-
export interface ResourceVirtualMachineOperatingSystemSpec {
|
|
147
|
-
id: string;
|
|
148
|
-
}
|
|
149
|
-
export interface ResourceVirtualMachineNetworkSpec {
|
|
150
|
-
id: string;
|
|
151
|
-
dns: string;
|
|
152
|
-
ipv4: string;
|
|
153
|
-
ipv6: string;
|
|
154
|
-
mask: string;
|
|
155
|
-
gateway: string;
|
|
156
|
-
}
|
|
157
254
|
export interface ResourceVirtualMachineMemorySpec {
|
|
158
|
-
id: string;
|
|
159
255
|
sizeBytes: number;
|
|
160
256
|
}
|
|
161
257
|
export interface ResourceVirtualMachineDiskSpec {
|
|
@@ -164,29 +260,21 @@ export interface ResourceVirtualMachineDiskSpec {
|
|
|
164
260
|
type: string;
|
|
165
261
|
sizeBytes: number;
|
|
166
262
|
}
|
|
167
|
-
export interface ResourceVirtualMachineTagSpec {
|
|
168
|
-
key: string;
|
|
169
|
-
value: string;
|
|
170
|
-
description: string;
|
|
171
|
-
}
|
|
172
263
|
export interface ResourceVirtualMachineCpuSpec {
|
|
173
|
-
id: string;
|
|
174
264
|
sockets: number;
|
|
175
265
|
coresPerSocket: number;
|
|
176
266
|
}
|
|
177
267
|
export interface ResourceVirtualMachineSpec {
|
|
178
268
|
cpu: ResourceVirtualMachineCpuSpec;
|
|
179
|
-
|
|
269
|
+
name: string;
|
|
180
270
|
disks: ResourceVirtualMachineDiskSpec[];
|
|
181
271
|
memory: ResourceVirtualMachineMemorySpec;
|
|
182
|
-
networks: ResourceVirtualMachineNetworkSpec[];
|
|
183
|
-
operatingSystem: ResourceVirtualMachineOperatingSystemSpec;
|
|
184
272
|
}
|
|
185
273
|
export interface ResourceVirtualMachine {
|
|
186
274
|
id: string;
|
|
187
|
-
name: string;
|
|
188
275
|
spec: ResourceVirtualMachineSpec;
|
|
189
276
|
status: ResourceVirtualMachineStatus;
|
|
277
|
+
provider: string;
|
|
190
278
|
}
|
|
191
279
|
export interface ResourceVulnerabilityEventSpec {
|
|
192
280
|
owner: RorResourceOwnerReference;
|
|
@@ -995,6 +1083,11 @@ export interface ResourceNode {
|
|
|
995
1083
|
status: ResourceNodeStatus;
|
|
996
1084
|
}
|
|
997
1085
|
export interface ResourceNamespace {}
|
|
1086
|
+
export interface ResourceTag {
|
|
1087
|
+
key: string;
|
|
1088
|
+
value: string;
|
|
1089
|
+
properties: { [key: string]: string };
|
|
1090
|
+
}
|
|
998
1091
|
export interface RorResourceOwnerReference {
|
|
999
1092
|
scope: string;
|
|
1000
1093
|
subject: string;
|
|
@@ -1006,6 +1099,7 @@ export interface ResourceRorMeta {
|
|
|
1006
1099
|
hash?: string;
|
|
1007
1100
|
ownerref?: RorResourceOwnerReference;
|
|
1008
1101
|
action?: string;
|
|
1102
|
+
tags?: ResourceTag[];
|
|
1009
1103
|
}
|
|
1010
1104
|
export interface FieldsV1 {}
|
|
1011
1105
|
export interface ManagedFieldsEntry {
|
|
@@ -1084,6 +1178,8 @@ export interface Resource {
|
|
|
1084
1178
|
virtualmachine?: ResourceVirtualMachine;
|
|
1085
1179
|
endpoints?: ResourceEndpoints;
|
|
1086
1180
|
networkpolicy?: ResourceNetworkPolicy;
|
|
1181
|
+
datacenter?: ResourceDatacenter;
|
|
1182
|
+
backupjob?: ResourceBackupJob;
|
|
1087
1183
|
}
|
|
1088
1184
|
export interface ResourceSet {
|
|
1089
1185
|
resources?: Resource[];
|
package/LICENSE
DELETED
|
@@ -1,201 +0,0 @@
|
|
|
1
|
-
Apache License
|
|
2
|
-
Version 2.0, January 2004
|
|
3
|
-
http://www.apache.org/licenses/
|
|
4
|
-
|
|
5
|
-
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
-
|
|
7
|
-
1. Definitions.
|
|
8
|
-
|
|
9
|
-
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
-
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
-
|
|
12
|
-
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
-
the copyright owner that is granting the License.
|
|
14
|
-
|
|
15
|
-
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
-
other entities that control, are controlled by, or are under common
|
|
17
|
-
control with that entity. For the purposes of this definition,
|
|
18
|
-
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
-
direction or management of such entity, whether by contract or
|
|
20
|
-
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
-
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
-
|
|
23
|
-
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
-
exercising permissions granted by this License.
|
|
25
|
-
|
|
26
|
-
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
-
including but not limited to software source code, documentation
|
|
28
|
-
source, and configuration files.
|
|
29
|
-
|
|
30
|
-
"Object" form shall mean any form resulting from mechanical
|
|
31
|
-
transformation or translation of a Source form, including but
|
|
32
|
-
not limited to compiled object code, generated documentation,
|
|
33
|
-
and conversions to other media types.
|
|
34
|
-
|
|
35
|
-
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
-
Object form, made available under the License, as indicated by a
|
|
37
|
-
copyright notice that is included in or attached to the work
|
|
38
|
-
(an example is provided in the Appendix below).
|
|
39
|
-
|
|
40
|
-
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
-
form, that is based on (or derived from) the Work and for which the
|
|
42
|
-
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
-
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
-
of this License, Derivative Works shall not include works that remain
|
|
45
|
-
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
-
the Work and Derivative Works thereof.
|
|
47
|
-
|
|
48
|
-
"Contribution" shall mean any work of authorship, including
|
|
49
|
-
the original version of the Work and any modifications or additions
|
|
50
|
-
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
-
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
-
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
-
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
-
means any form of electronic, verbal, or written communication sent
|
|
55
|
-
to the Licensor or its representatives, including but not limited to
|
|
56
|
-
communication on electronic mailing lists, source code control systems,
|
|
57
|
-
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
-
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
-
excluding communication that is conspicuously marked or otherwise
|
|
60
|
-
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
-
|
|
62
|
-
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
-
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
-
subsequently incorporated within the Work.
|
|
65
|
-
|
|
66
|
-
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
-
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
-
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
-
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
-
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
-
Work and such Derivative Works in Source or Object form.
|
|
72
|
-
|
|
73
|
-
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
-
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
-
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
-
(except as stated in this section) patent license to make, have made,
|
|
77
|
-
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
-
where such license applies only to those patent claims licensable
|
|
79
|
-
by such Contributor that are necessarily infringed by their
|
|
80
|
-
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
-
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
-
institute patent litigation against any entity (including a
|
|
83
|
-
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
-
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
-
or contributory patent infringement, then any patent licenses
|
|
86
|
-
granted to You under this License for that Work shall terminate
|
|
87
|
-
as of the date such litigation is filed.
|
|
88
|
-
|
|
89
|
-
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
-
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
-
modifications, and in Source or Object form, provided that You
|
|
92
|
-
meet the following conditions:
|
|
93
|
-
|
|
94
|
-
(a) You must give any other recipients of the Work or
|
|
95
|
-
Derivative Works a copy of this License; and
|
|
96
|
-
|
|
97
|
-
(b) You must cause any modified files to carry prominent notices
|
|
98
|
-
stating that You changed the files; and
|
|
99
|
-
|
|
100
|
-
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
-
that You distribute, all copyright, patent, trademark, and
|
|
102
|
-
attribution notices from the Source form of the Work,
|
|
103
|
-
excluding those notices that do not pertain to any part of
|
|
104
|
-
the Derivative Works; and
|
|
105
|
-
|
|
106
|
-
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
-
distribution, then any Derivative Works that You distribute must
|
|
108
|
-
include a readable copy of the attribution notices contained
|
|
109
|
-
within such NOTICE file, excluding those notices that do not
|
|
110
|
-
pertain to any part of the Derivative Works, in at least one
|
|
111
|
-
of the following places: within a NOTICE text file distributed
|
|
112
|
-
as part of the Derivative Works; within the Source form or
|
|
113
|
-
documentation, if provided along with the Derivative Works; or,
|
|
114
|
-
within a display generated by the Derivative Works, if and
|
|
115
|
-
wherever such third-party notices normally appear. The contents
|
|
116
|
-
of the NOTICE file are for informational purposes only and
|
|
117
|
-
do not modify the License. You may add Your own attribution
|
|
118
|
-
notices within Derivative Works that You distribute, alongside
|
|
119
|
-
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
-
that such additional attribution notices cannot be construed
|
|
121
|
-
as modifying the License.
|
|
122
|
-
|
|
123
|
-
You may add Your own copyright statement to Your modifications and
|
|
124
|
-
may provide additional or different license terms and conditions
|
|
125
|
-
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
-
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
-
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
-
the conditions stated in this License.
|
|
129
|
-
|
|
130
|
-
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
-
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
-
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
-
this License, without any additional terms or conditions.
|
|
134
|
-
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
-
the terms of any separate license agreement you may have executed
|
|
136
|
-
with Licensor regarding such Contributions.
|
|
137
|
-
|
|
138
|
-
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
-
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
-
except as required for reasonable and customary use in describing the
|
|
141
|
-
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
-
|
|
143
|
-
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
-
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
-
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
-
implied, including, without limitation, any warranties or conditions
|
|
148
|
-
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
-
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
-
appropriateness of using or redistributing the Work and assume any
|
|
151
|
-
risks associated with Your exercise of permissions under this License.
|
|
152
|
-
|
|
153
|
-
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
-
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
-
unless required by applicable law (such as deliberate and grossly
|
|
156
|
-
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
-
liable to You for damages, including any direct, indirect, special,
|
|
158
|
-
incidental, or consequential damages of any character arising as a
|
|
159
|
-
result of this License or out of the use or inability to use the
|
|
160
|
-
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
-
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
-
other commercial damages or losses), even if such Contributor
|
|
163
|
-
has been advised of the possibility of such damages.
|
|
164
|
-
|
|
165
|
-
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
-
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
-
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
-
or other liability obligations and/or rights consistent with this
|
|
169
|
-
License. However, in accepting such obligations, You may act only
|
|
170
|
-
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
-
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
-
defend, and hold each Contributor harmless for any liability
|
|
173
|
-
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
-
of your accepting any such warranty or additional liability.
|
|
175
|
-
|
|
176
|
-
END OF TERMS AND CONDITIONS
|
|
177
|
-
|
|
178
|
-
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
-
|
|
180
|
-
To apply the Apache License to your work, attach the following
|
|
181
|
-
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
-
replaced with your own identifying information. (Don't include
|
|
183
|
-
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
-
comment syntax for the file format. We also recommend that a
|
|
185
|
-
file or class name and description of purpose be included on the
|
|
186
|
-
same "printed page" as the copyright notice for easier
|
|
187
|
-
identification within third-party archives.
|
|
188
|
-
|
|
189
|
-
Copyright [yyyy] [name of copyright owner]
|
|
190
|
-
|
|
191
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
-
you may not use this file except in compliance with the License.
|
|
193
|
-
You may obtain a copy of the License at
|
|
194
|
-
|
|
195
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
-
|
|
197
|
-
Unless required by applicable law or agreed to in writing, software
|
|
198
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
-
See the License for the specific language governing permissions and
|
|
201
|
-
limitations under the License.
|