@nutanix-scratch/objects-js-client 4.0.1-alpha.2 → 4.0.1
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/LICENSE.txt +202 -49
- package/README.md +39 -27
- package/dist/Ntnx-Objects-js-client-prod.js +1 -1
- package/dist/Ntnx-Objects-js-client.js +227 -96
- package/dist/es/ApiClient.d.ts +8 -1
- package/dist/es/ApiClient.js +249 -189
- package/dist/es/Paginable.d.ts +1 -1
- package/dist/es/Paginable.js +9 -9
- package/dist/es/apis/objectstores-endpoints.d.ts +66 -95
- package/dist/es/apis/objectstores-endpoints.js +205 -170
- package/dist/es/apis/stats-endpoints.d.ts +69 -0
- package/dist/es/apis/stats-endpoints.js +154 -0
- package/dist/es/index.d.ts +43 -21
- package/dist/es/index.js +135 -47
- package/dist/es/models/common/v1/config/FQDN.d.ts +24 -20
- package/dist/es/models/common/v1/config/FQDN.js +56 -21
- package/dist/es/models/common/v1/config/Flag.d.ts +32 -26
- package/dist/es/models/common/v1/config/Flag.js +65 -21
- package/dist/es/models/common/v1/config/IPAddress.d.ts +42 -26
- package/dist/es/models/common/v1/config/IPAddress.js +53 -21
- package/dist/es/models/common/v1/config/IPv4Address.d.ts +40 -26
- package/dist/es/models/common/v1/config/IPv4Address.js +64 -23
- package/dist/es/models/common/v1/config/IPv6Address.d.ts +40 -26
- package/dist/es/models/common/v1/config/IPv6Address.js +64 -23
- package/dist/es/models/common/v1/config/KVPair.d.ts +35 -26
- package/dist/es/models/common/v1/config/KVPair.js +70 -24
- package/dist/es/models/common/v1/config/MapOfStringWrapper.d.ts +58 -0
- package/dist/es/models/common/v1/config/MapOfStringWrapper.js +275 -0
- package/dist/es/models/common/v1/config/Message.d.ts +41 -38
- package/dist/es/models/common/v1/config/Message.js +57 -25
- package/dist/es/models/common/v1/config/MessageSeverity.js +7 -7
- package/dist/es/models/common/v1/config/Metadata.d.ts +46 -44
- package/dist/es/models/common/v1/config/Metadata.js +65 -27
- package/dist/es/models/common/v1/config/TenantAwareModel.d.ts +22 -20
- package/dist/es/models/common/v1/config/TenantAwareModel.js +51 -19
- package/dist/es/models/common/v1/response/ApiLink.d.ts +28 -26
- package/dist/es/models/common/v1/response/ApiLink.js +53 -21
- package/dist/es/models/common/v1/response/ApiResponseMetadata.d.ts +79 -44
- package/dist/es/models/common/v1/response/ApiResponseMetadata.js +71 -27
- package/dist/es/models/common/v1/response/ExternalizableAbstractModel.d.ts +24 -18
- package/dist/es/models/common/v1/response/ExternalizableAbstractModel.js +71 -31
- package/dist/es/models/common/v1/stats/DownSamplingOperator.d.ts +19 -0
- package/dist/es/models/common/v1/stats/DownSamplingOperator.js +109 -0
- package/dist/es/models/common/v1/stats/TimeIntValuePair.d.ts +64 -0
- package/dist/es/models/common/v1/stats/TimeIntValuePair.js +313 -0
- package/dist/es/models/objects/v4/config/Certificate.d.ts +146 -0
- package/dist/es/models/objects/v4/{operations → config}/Certificate.js +184 -43
- package/dist/es/models/objects/v4/{operations → config}/CertificateProjection.d.ts +2 -1
- package/dist/{lib/models/objects/v4/operations → es/models/objects/v4/config}/CertificateProjection.js +41 -17
- package/dist/es/models/objects/v4/config/CreateCertificateApiResponse.d.ts +101 -0
- package/dist/es/models/objects/v4/config/CreateCertificateApiResponse.js +343 -0
- package/dist/es/models/objects/v4/config/CreateObjectstoreApiResponse.d.ts +99 -0
- package/dist/{lib/models/objects/v4/operations/TaskReferenceApiResponse.js → es/models/objects/v4/config/CreateObjectstoreApiResponse.js} +86 -54
- package/dist/es/models/objects/v4/config/DeleteObjectstoreApiResponse.d.ts +99 -0
- package/dist/es/models/objects/v4/config/DeleteObjectstoreApiResponse.js +343 -0
- package/dist/es/models/objects/v4/config/GetCaApiResponse.d.ts +98 -0
- package/dist/es/models/objects/v4/{operations/TaskReferenceApiResponse.js → config/GetCaApiResponse.js} +88 -57
- package/dist/es/models/objects/v4/config/GetCertificateApiResponse.d.ts +99 -0
- package/dist/es/models/objects/v4/{operations/CertificateApiResponse.js → config/GetCertificateApiResponse.js} +88 -56
- package/dist/es/models/objects/v4/config/GetObjectstoreApiResponse.d.ts +101 -0
- package/dist/{lib/models/objects/v4/operations/ObjectstoreApiResponse.js → es/models/objects/v4/config/GetObjectstoreApiResponse.js} +89 -57
- package/dist/es/models/objects/v4/config/ListCertificatesApiResponse.d.ts +100 -0
- package/dist/es/models/objects/v4/{operations/CertificateListApiResponse.js → config/ListCertificatesApiResponse.js} +89 -57
- package/dist/es/models/objects/v4/config/ListObjectstoresApiResponse.d.ts +100 -0
- package/dist/es/models/objects/v4/{operations/ObjectstoreListApiResponse.js → config/ListObjectstoresApiResponse.js} +92 -60
- package/dist/es/models/objects/v4/config/ObjectStore.d.ts +313 -0
- package/dist/es/models/objects/v4/{operations/Objectstore.js → config/ObjectStore.js} +213 -157
- package/dist/es/models/objects/v4/config/ObjectStoreProjection.d.ts +174 -0
- package/dist/{lib/models/objects/v4/operations/ObjectstoreProjection.js → es/models/objects/v4/config/ObjectStoreProjection.js} +211 -65
- package/dist/es/models/objects/v4/{operations/StateEnum.d.ts → config/State.d.ts} +6 -6
- package/dist/es/models/objects/v4/config/State.js +133 -0
- package/dist/es/models/objects/v4/config/UpdateObjectstoreApiResponse.d.ts +99 -0
- package/dist/es/models/objects/v4/config/UpdateObjectstoreApiResponse.js +343 -0
- package/dist/es/models/objects/v4/error/AppMessage.d.ts +57 -48
- package/dist/es/models/objects/v4/error/AppMessage.js +61 -29
- package/dist/es/models/objects/v4/error/ErrorResponse.d.ts +23 -19
- package/dist/es/models/objects/v4/error/ErrorResponse.js +62 -25
- package/dist/es/models/objects/v4/error/SchemaValidationError.d.ts +53 -43
- package/dist/es/models/objects/v4/error/SchemaValidationError.js +62 -29
- package/dist/es/models/objects/v4/error/SchemaValidationErrorMessage.d.ts +34 -32
- package/dist/es/models/objects/v4/error/SchemaValidationErrorMessage.js +55 -23
- package/dist/es/models/objects/v4/stats/GetObjectstoreStatsApiResponse.d.ts +99 -0
- package/dist/es/models/objects/v4/stats/GetObjectstoreStatsApiResponse.js +343 -0
- package/dist/es/models/objects/v4/stats/ObjectstoreStats.d.ts +423 -0
- package/dist/es/models/objects/v4/stats/ObjectstoreStats.js +1425 -0
- package/dist/es/models/objects/v4/stats/TimeFloatValuePair.d.ts +64 -0
- package/dist/es/models/objects/v4/stats/TimeFloatValuePair.js +313 -0
- package/dist/es/models/prism/v4/config/TaskReference.d.ts +22 -20
- package/dist/es/models/prism/v4/config/TaskReference.js +55 -20
- package/dist/es/models/validation/ValidationError.js +5 -5
- package/dist/es/utils/ValidationUtils.js +5 -5
- package/dist/lib/ApiClient.d.ts +8 -1
- package/dist/lib/ApiClient.js +249 -189
- package/dist/lib/Paginable.d.ts +1 -1
- package/dist/lib/Paginable.js +9 -9
- package/dist/lib/apis/objectstores-endpoints.d.ts +66 -95
- package/dist/lib/apis/objectstores-endpoints.js +205 -170
- package/dist/lib/apis/stats-endpoints.d.ts +69 -0
- package/dist/lib/apis/stats-endpoints.js +154 -0
- package/dist/lib/index.d.ts +43 -21
- package/dist/lib/index.js +135 -47
- package/dist/lib/models/common/v1/config/FQDN.d.ts +24 -20
- package/dist/lib/models/common/v1/config/FQDN.js +56 -21
- package/dist/lib/models/common/v1/config/Flag.d.ts +32 -26
- package/dist/lib/models/common/v1/config/Flag.js +65 -21
- package/dist/lib/models/common/v1/config/IPAddress.d.ts +42 -26
- package/dist/lib/models/common/v1/config/IPAddress.js +53 -21
- package/dist/lib/models/common/v1/config/IPv4Address.d.ts +40 -26
- package/dist/lib/models/common/v1/config/IPv4Address.js +64 -23
- package/dist/lib/models/common/v1/config/IPv6Address.d.ts +40 -26
- package/dist/lib/models/common/v1/config/IPv6Address.js +64 -23
- package/dist/lib/models/common/v1/config/KVPair.d.ts +35 -26
- package/dist/lib/models/common/v1/config/KVPair.js +70 -24
- package/dist/lib/models/common/v1/config/MapOfStringWrapper.d.ts +58 -0
- package/dist/lib/models/common/v1/config/MapOfStringWrapper.js +275 -0
- package/dist/lib/models/common/v1/config/Message.d.ts +41 -38
- package/dist/lib/models/common/v1/config/Message.js +57 -25
- package/dist/lib/models/common/v1/config/MessageSeverity.js +7 -7
- package/dist/lib/models/common/v1/config/Metadata.d.ts +46 -44
- package/dist/lib/models/common/v1/config/Metadata.js +65 -27
- package/dist/lib/models/common/v1/config/TenantAwareModel.d.ts +22 -20
- package/dist/lib/models/common/v1/config/TenantAwareModel.js +51 -19
- package/dist/lib/models/common/v1/response/ApiLink.d.ts +28 -26
- package/dist/lib/models/common/v1/response/ApiLink.js +53 -21
- package/dist/lib/models/common/v1/response/ApiResponseMetadata.d.ts +79 -44
- package/dist/lib/models/common/v1/response/ApiResponseMetadata.js +71 -27
- package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.d.ts +24 -18
- package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.js +71 -31
- package/dist/lib/models/common/v1/stats/DownSamplingOperator.d.ts +19 -0
- package/dist/lib/models/common/v1/stats/DownSamplingOperator.js +109 -0
- package/dist/lib/models/common/v1/stats/TimeIntValuePair.d.ts +64 -0
- package/dist/lib/models/common/v1/stats/TimeIntValuePair.js +313 -0
- package/dist/lib/models/objects/v4/config/Certificate.d.ts +146 -0
- package/dist/lib/models/objects/v4/{operations → config}/Certificate.js +184 -43
- package/dist/lib/models/objects/v4/{operations → config}/CertificateProjection.d.ts +2 -1
- package/dist/{es/models/objects/v4/operations → lib/models/objects/v4/config}/CertificateProjection.js +41 -17
- package/dist/lib/models/objects/v4/config/CreateCertificateApiResponse.d.ts +101 -0
- package/dist/lib/models/objects/v4/config/CreateCertificateApiResponse.js +343 -0
- package/dist/lib/models/objects/v4/config/CreateObjectstoreApiResponse.d.ts +99 -0
- package/dist/lib/models/objects/v4/config/CreateObjectstoreApiResponse.js +343 -0
- package/dist/lib/models/objects/v4/config/DeleteObjectstoreApiResponse.d.ts +99 -0
- package/dist/lib/models/objects/v4/config/DeleteObjectstoreApiResponse.js +343 -0
- package/dist/lib/models/objects/v4/config/GetCaApiResponse.d.ts +98 -0
- package/dist/lib/models/objects/v4/{operations/CertificateApiResponse.js → config/GetCaApiResponse.js} +88 -57
- package/dist/lib/models/objects/v4/config/GetCertificateApiResponse.d.ts +99 -0
- package/dist/lib/models/objects/v4/config/GetCertificateApiResponse.js +343 -0
- package/dist/lib/models/objects/v4/config/GetObjectstoreApiResponse.d.ts +101 -0
- package/dist/{es/models/objects/v4/operations/ObjectstoreApiResponse.js → lib/models/objects/v4/config/GetObjectstoreApiResponse.js} +89 -57
- package/dist/lib/models/objects/v4/config/ListCertificatesApiResponse.d.ts +100 -0
- package/dist/lib/models/objects/v4/{operations/CertificateListApiResponse.js → config/ListCertificatesApiResponse.js} +89 -57
- package/dist/lib/models/objects/v4/config/ListObjectstoresApiResponse.d.ts +100 -0
- package/dist/lib/models/objects/v4/{operations/ObjectstoreListApiResponse.js → config/ListObjectstoresApiResponse.js} +92 -60
- package/dist/lib/models/objects/v4/config/ObjectStore.d.ts +313 -0
- package/dist/lib/models/objects/v4/{operations/Objectstore.js → config/ObjectStore.js} +213 -157
- package/dist/lib/models/objects/v4/config/ObjectStoreProjection.d.ts +174 -0
- package/dist/{es/models/objects/v4/operations/ObjectstoreProjection.js → lib/models/objects/v4/config/ObjectStoreProjection.js} +211 -65
- package/dist/lib/models/objects/v4/{operations/StateEnum.d.ts → config/State.d.ts} +6 -6
- package/dist/lib/models/objects/v4/config/State.js +133 -0
- package/dist/lib/models/objects/v4/config/UpdateObjectstoreApiResponse.d.ts +99 -0
- package/dist/lib/models/objects/v4/config/UpdateObjectstoreApiResponse.js +343 -0
- package/dist/lib/models/objects/v4/error/AppMessage.d.ts +57 -48
- package/dist/lib/models/objects/v4/error/AppMessage.js +61 -29
- package/dist/lib/models/objects/v4/error/ErrorResponse.d.ts +23 -19
- package/dist/lib/models/objects/v4/error/ErrorResponse.js +62 -25
- package/dist/lib/models/objects/v4/error/SchemaValidationError.d.ts +53 -43
- package/dist/lib/models/objects/v4/error/SchemaValidationError.js +62 -29
- package/dist/lib/models/objects/v4/error/SchemaValidationErrorMessage.d.ts +34 -32
- package/dist/lib/models/objects/v4/error/SchemaValidationErrorMessage.js +55 -23
- package/dist/lib/models/objects/v4/stats/GetObjectstoreStatsApiResponse.d.ts +99 -0
- package/dist/lib/models/objects/v4/stats/GetObjectstoreStatsApiResponse.js +343 -0
- package/dist/lib/models/objects/v4/stats/ObjectstoreStats.d.ts +423 -0
- package/dist/lib/models/objects/v4/stats/ObjectstoreStats.js +1425 -0
- package/dist/lib/models/objects/v4/stats/TimeFloatValuePair.d.ts +64 -0
- package/dist/lib/models/objects/v4/stats/TimeFloatValuePair.js +313 -0
- package/dist/lib/models/prism/v4/config/TaskReference.d.ts +22 -20
- package/dist/lib/models/prism/v4/config/TaskReference.js +55 -20
- package/dist/lib/models/validation/ValidationError.js +5 -5
- package/dist/lib/utils/ValidationUtils.js +5 -5
- package/package.json +1 -1
- package/dist/es/models/objects/v4/operations/Certificate.d.ts +0 -78
- package/dist/es/models/objects/v4/operations/CertificateApiResponse.d.ts +0 -59
- package/dist/es/models/objects/v4/operations/CertificateListApiResponse.d.ts +0 -59
- package/dist/es/models/objects/v4/operations/Objectstore.d.ts +0 -242
- package/dist/es/models/objects/v4/operations/ObjectstoreApiResponse.d.ts +0 -59
- package/dist/es/models/objects/v4/operations/ObjectstoreListApiResponse.d.ts +0 -59
- package/dist/es/models/objects/v4/operations/ObjectstoreProjection.d.ts +0 -50
- package/dist/es/models/objects/v4/operations/StateEnum.js +0 -145
- package/dist/es/models/objects/v4/operations/TaskReferenceApiResponse.d.ts +0 -59
- package/dist/lib/models/objects/v4/operations/Certificate.d.ts +0 -78
- package/dist/lib/models/objects/v4/operations/CertificateApiResponse.d.ts +0 -59
- package/dist/lib/models/objects/v4/operations/CertificateListApiResponse.d.ts +0 -59
- package/dist/lib/models/objects/v4/operations/Objectstore.d.ts +0 -242
- package/dist/lib/models/objects/v4/operations/ObjectstoreApiResponse.d.ts +0 -59
- package/dist/lib/models/objects/v4/operations/ObjectstoreListApiResponse.d.ts +0 -59
- package/dist/lib/models/objects/v4/operations/ObjectstoreProjection.d.ts +0 -50
- package/dist/lib/models/objects/v4/operations/StateEnum.js +0 -145
- package/dist/lib/models/objects/v4/operations/TaskReferenceApiResponse.d.ts +0 -59
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The ObjectStoreProjection model module.
|
|
3
|
+
* @module Ntnx/ObjectStoreProjection
|
|
4
|
+
* @version 4.0.1
|
|
5
|
+
* @class ObjectStoreProjection
|
|
6
|
+
* @extends ObjectStore
|
|
7
|
+
*
|
|
8
|
+
* @param { string } name The name of the Object store.
|
|
9
|
+
*/
|
|
10
|
+
export default class ObjectStoreProjection extends ObjectStore {
|
|
11
|
+
/**
|
|
12
|
+
* @return {CertificateProjection[]}
|
|
13
|
+
*/
|
|
14
|
+
getCertificateProjection(): CertificateProjection[];
|
|
15
|
+
/**
|
|
16
|
+
* @param {CertificateProjection[]} certificateProjection
|
|
17
|
+
*/
|
|
18
|
+
setCertificateProjection(certificateProjection: CertificateProjection[]): void;
|
|
19
|
+
certificateProjection: CertificateProjection[];
|
|
20
|
+
toJson(forMutation: any): {
|
|
21
|
+
$reserved: any;
|
|
22
|
+
$objectType: string;
|
|
23
|
+
$unknownFields: any;
|
|
24
|
+
tenantId?: string;
|
|
25
|
+
links?: {
|
|
26
|
+
$reserved: any;
|
|
27
|
+
$objectType: string;
|
|
28
|
+
$unknownFields: any;
|
|
29
|
+
rel?: string;
|
|
30
|
+
href?: string;
|
|
31
|
+
}[];
|
|
32
|
+
extId?: string;
|
|
33
|
+
certificateExtIds?: string[];
|
|
34
|
+
state?: string;
|
|
35
|
+
totalCapacityGiB?: number;
|
|
36
|
+
publicNetworkIps?: {
|
|
37
|
+
$reserved: any;
|
|
38
|
+
$objectType: string;
|
|
39
|
+
$unknownFields: any;
|
|
40
|
+
ipv6?: {
|
|
41
|
+
$reserved: any;
|
|
42
|
+
$objectType: string;
|
|
43
|
+
$unknownFields: any;
|
|
44
|
+
prefixLength?: number;
|
|
45
|
+
value?: string;
|
|
46
|
+
};
|
|
47
|
+
ipv4?: {
|
|
48
|
+
$reserved: any;
|
|
49
|
+
$objectType: string;
|
|
50
|
+
$unknownFields: any;
|
|
51
|
+
prefixLength?: number;
|
|
52
|
+
value?: string;
|
|
53
|
+
};
|
|
54
|
+
}[];
|
|
55
|
+
publicNetworkReference?: string;
|
|
56
|
+
storageNetworkDnsIp?: {
|
|
57
|
+
$reserved: any;
|
|
58
|
+
$objectType: string;
|
|
59
|
+
$unknownFields: any;
|
|
60
|
+
ipv6?: {
|
|
61
|
+
$reserved: any;
|
|
62
|
+
$objectType: string;
|
|
63
|
+
$unknownFields: any;
|
|
64
|
+
prefixLength?: number;
|
|
65
|
+
value?: string;
|
|
66
|
+
};
|
|
67
|
+
ipv4?: {
|
|
68
|
+
$reserved: any;
|
|
69
|
+
$objectType: string;
|
|
70
|
+
$unknownFields: any;
|
|
71
|
+
prefixLength?: number;
|
|
72
|
+
value?: string;
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
storageNetworkVip?: {
|
|
76
|
+
$reserved: any;
|
|
77
|
+
$objectType: string;
|
|
78
|
+
$unknownFields: any;
|
|
79
|
+
ipv6?: {
|
|
80
|
+
$reserved: any;
|
|
81
|
+
$objectType: string;
|
|
82
|
+
$unknownFields: any;
|
|
83
|
+
prefixLength?: number;
|
|
84
|
+
value?: string;
|
|
85
|
+
};
|
|
86
|
+
ipv4?: {
|
|
87
|
+
$reserved: any;
|
|
88
|
+
$objectType: string;
|
|
89
|
+
$unknownFields: any;
|
|
90
|
+
prefixLength?: number;
|
|
91
|
+
value?: string;
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
storageNetworkReference?: string;
|
|
95
|
+
clusterExtId?: string;
|
|
96
|
+
numWorkerNodes?: number;
|
|
97
|
+
region?: string;
|
|
98
|
+
domain?: string;
|
|
99
|
+
deploymentVersion?: string;
|
|
100
|
+
description?: string;
|
|
101
|
+
lastUpdateTime?: any;
|
|
102
|
+
creationTime?: any;
|
|
103
|
+
name?: string;
|
|
104
|
+
metadata?: {
|
|
105
|
+
$reserved: any;
|
|
106
|
+
$objectType: string;
|
|
107
|
+
$unknownFields: any;
|
|
108
|
+
categoryIds?: string[];
|
|
109
|
+
projectName?: string;
|
|
110
|
+
projectReferenceId?: string;
|
|
111
|
+
ownerUserName?: string;
|
|
112
|
+
ownerReferenceId?: string;
|
|
113
|
+
};
|
|
114
|
+
certificateProjection?: {
|
|
115
|
+
$reserved: any;
|
|
116
|
+
$objectType: string;
|
|
117
|
+
$unknownFields: any;
|
|
118
|
+
tenantId?: string;
|
|
119
|
+
links?: {
|
|
120
|
+
$reserved: any;
|
|
121
|
+
$objectType: string;
|
|
122
|
+
$unknownFields: any;
|
|
123
|
+
rel?: string;
|
|
124
|
+
href?: string;
|
|
125
|
+
}[];
|
|
126
|
+
extId?: string;
|
|
127
|
+
alternateIps?: {
|
|
128
|
+
$reserved: any;
|
|
129
|
+
$objectType: string;
|
|
130
|
+
$unknownFields: any;
|
|
131
|
+
ipv6?: {
|
|
132
|
+
$reserved: any;
|
|
133
|
+
$objectType: string;
|
|
134
|
+
$unknownFields: any;
|
|
135
|
+
prefixLength?: number;
|
|
136
|
+
value?: string;
|
|
137
|
+
};
|
|
138
|
+
ipv4?: {
|
|
139
|
+
$reserved: any;
|
|
140
|
+
$objectType: string;
|
|
141
|
+
$unknownFields: any;
|
|
142
|
+
prefixLength?: number;
|
|
143
|
+
value?: string;
|
|
144
|
+
};
|
|
145
|
+
}[];
|
|
146
|
+
shouldGenerate?: boolean;
|
|
147
|
+
alternateFqdns?: {
|
|
148
|
+
$reserved: any;
|
|
149
|
+
/**
|
|
150
|
+
* @return {CertificateProjection[]}
|
|
151
|
+
*/
|
|
152
|
+
$objectType: string;
|
|
153
|
+
$unknownFields: any;
|
|
154
|
+
value?: string;
|
|
155
|
+
}[];
|
|
156
|
+
ca?: string;
|
|
157
|
+
privateKey?: string;
|
|
158
|
+
publicCert?: string;
|
|
159
|
+
metadata?: {
|
|
160
|
+
$reserved: any;
|
|
161
|
+
$objectType: string;
|
|
162
|
+
$unknownFields: any;
|
|
163
|
+
categoryIds?: string[];
|
|
164
|
+
projectName?: string;
|
|
165
|
+
projectReferenceId?: string;
|
|
166
|
+
ownerUserName?: string;
|
|
167
|
+
ownerReferenceId?: string;
|
|
168
|
+
};
|
|
169
|
+
}[];
|
|
170
|
+
};
|
|
171
|
+
#private;
|
|
172
|
+
}
|
|
173
|
+
import ObjectStore from "./ObjectStore";
|
|
174
|
+
import CertificateProjection from "./CertificateProjection";
|
|
@@ -6,105 +6,111 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports["default"] = void 0;
|
|
7
7
|
var _IPAddress = _interopRequireDefault(require("../../../common/v1/config/IPAddress"));
|
|
8
8
|
var _Metadata = _interopRequireDefault(require("../../../common/v1/config/Metadata"));
|
|
9
|
+
var _TenantAwareModel = _interopRequireDefault(require("../../../common/v1/config/TenantAwareModel"));
|
|
10
|
+
var _ExternalizableAbstractModel = _interopRequireDefault(require("../../../common/v1/response/ExternalizableAbstractModel"));
|
|
9
11
|
var _CertificateProjection = _interopRequireDefault(require("./CertificateProjection"));
|
|
10
|
-
var
|
|
11
|
-
var
|
|
12
|
+
var _ObjectStore2 = _interopRequireDefault(require("./ObjectStore"));
|
|
13
|
+
var _State = _interopRequireDefault(require("./State"));
|
|
12
14
|
var _ValidationScopes = _interopRequireDefault(require("../../../validation/ValidationScopes"));
|
|
13
15
|
var _ValidationUtils = _interopRequireDefault(require("../../../../utils/ValidationUtils"));
|
|
14
16
|
var _ValidationError = _interopRequireDefault(require("../../../validation/ValidationError"));
|
|
15
|
-
function _interopRequireDefault(
|
|
17
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
16
18
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
17
|
-
function _slicedToArray(
|
|
19
|
+
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
18
20
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
19
|
-
function _unsupportedIterableToArray(
|
|
20
|
-
function _arrayLikeToArray(
|
|
21
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
22
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
21
23
|
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
22
|
-
function _arrayWithHoles(
|
|
24
|
+
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
23
25
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
24
26
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
25
|
-
function _defineProperty(
|
|
26
|
-
function _classCallCheck(
|
|
27
|
-
function _defineProperties(
|
|
28
|
-
function _createClass(
|
|
27
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
28
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
29
|
+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
30
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
29
31
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
30
32
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
31
33
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
32
|
-
function _possibleConstructorReturn(
|
|
33
|
-
function _assertThisInitialized(
|
|
34
|
+
function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); }
|
|
35
|
+
function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
|
|
34
36
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
35
|
-
function _getPrototypeOf(
|
|
36
|
-
function _inherits(
|
|
37
|
-
function _setPrototypeOf(
|
|
38
|
-
function _classPrivateMethodInitSpec(
|
|
39
|
-
function _checkPrivateRedeclaration(
|
|
37
|
+
function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
|
|
38
|
+
function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
|
|
39
|
+
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
40
|
+
function _classPrivateMethodInitSpec(e, a) { _checkPrivateRedeclaration(e, a), a.add(e); }
|
|
41
|
+
function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); }
|
|
42
|
+
function _assertClassBrand(e, t, n) { if ("function" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n; throw new TypeError("Private element is not present on this object"); } /*
|
|
40
43
|
* Nutanix Objects Storage Management APIs
|
|
41
44
|
*
|
|
42
|
-
* OpenAPI spec version: 4.0.1
|
|
45
|
+
* OpenAPI spec version: 4.0.1
|
|
43
46
|
*
|
|
44
47
|
* NOTE: This class is auto generated by the Open API Dev Platform.
|
|
45
48
|
*
|
|
46
|
-
* Open API Dev Platform Codegen version: 16.
|
|
49
|
+
* Open API Dev Platform Codegen version: 16.9.1.8738-RELEASE
|
|
47
50
|
*
|
|
48
51
|
* Do not edit the class manually.
|
|
49
52
|
*
|
|
50
53
|
*/
|
|
51
54
|
/**
|
|
52
|
-
* The
|
|
53
|
-
* @module Ntnx/
|
|
54
|
-
* @version 4.0.1
|
|
55
|
-
* @class
|
|
55
|
+
* The ObjectStoreProjection model module.
|
|
56
|
+
* @module Ntnx/ObjectStoreProjection
|
|
57
|
+
* @version 4.0.1
|
|
58
|
+
* @class ObjectStoreProjection
|
|
59
|
+
* @extends ObjectStore
|
|
56
60
|
*
|
|
57
|
-
* @param {
|
|
61
|
+
* @param { string } name The name of the Object store.
|
|
58
62
|
*/
|
|
59
|
-
var
|
|
60
|
-
var
|
|
63
|
+
var _ObjectStoreProjection_brand = /*#__PURE__*/new WeakSet();
|
|
64
|
+
var ObjectStoreProjection = exports["default"] = /*#__PURE__*/function (_ObjectStore) {
|
|
61
65
|
/**
|
|
62
|
-
* Constructs a new <code>
|
|
63
|
-
* @alias module:Ntnx/
|
|
64
|
-
* @extends module:Ntnx/
|
|
66
|
+
* Constructs a new <code>ObjectStoreProjection</code>.
|
|
67
|
+
* @alias module:Ntnx/ObjectStoreProjection
|
|
68
|
+
* @extends module:Ntnx/ObjectStore
|
|
65
69
|
*
|
|
66
|
-
* @param {
|
|
70
|
+
* @param { string } name The name of the Object store.
|
|
67
71
|
*/
|
|
68
|
-
function
|
|
72
|
+
function ObjectStoreProjection(name) {
|
|
69
73
|
var _this;
|
|
70
|
-
_classCallCheck(this,
|
|
71
|
-
_this = _callSuper(this,
|
|
74
|
+
_classCallCheck(this, ObjectStoreProjection);
|
|
75
|
+
_this = _callSuper(this, ObjectStoreProjection, [name]);
|
|
72
76
|
/*
|
|
73
77
|
* toJson method for a map type which supports map with primitive keys and values of object types
|
|
74
78
|
* @param {Object} obj
|
|
75
79
|
* @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.
|
|
76
80
|
* Otherwise, just returns the input object.
|
|
77
81
|
*/
|
|
78
|
-
_classPrivateMethodInitSpec(_this,
|
|
79
|
-
_this.$objectType = "objects.v4.
|
|
82
|
+
_classPrivateMethodInitSpec(_this, _ObjectStoreProjection_brand);
|
|
83
|
+
_this.$objectType = "objects.v4.config.ObjectStoreProjection";
|
|
84
|
+
/** @type {object<string, any>} */
|
|
80
85
|
_this.$reserved = {
|
|
81
|
-
'$fv': "v4.r0
|
|
86
|
+
'$fv': "v4.r0"
|
|
82
87
|
};
|
|
88
|
+
/** @type {object<string, any>} */
|
|
83
89
|
_this.$unknownFields = {};
|
|
84
90
|
return _this;
|
|
85
91
|
}
|
|
86
92
|
|
|
87
93
|
/**
|
|
88
|
-
* Constructs a <code>
|
|
94
|
+
* Constructs a <code>ObjectStoreProjection</code> from a plain JavaScript object, optionally creating a new instance.
|
|
89
95
|
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
90
96
|
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
91
|
-
* @param {module:Ntnx/
|
|
97
|
+
* @param {module:Ntnx/ObjectStoreProjection} obj Optional instance to populate.
|
|
92
98
|
* @param callFromChild {Boolean} Flag to recognise calling instance
|
|
93
|
-
* @return {module:Ntnx/
|
|
99
|
+
* @return {module:Ntnx/ObjectStoreProjection} The populated <code>ObjectStoreProjection</code> instance.
|
|
94
100
|
*/
|
|
95
|
-
_inherits(
|
|
96
|
-
return _createClass(
|
|
101
|
+
_inherits(ObjectStoreProjection, _ObjectStore);
|
|
102
|
+
return _createClass(ObjectStoreProjection, [{
|
|
97
103
|
key: "getCertificateProjection",
|
|
98
104
|
value:
|
|
99
105
|
/**
|
|
100
|
-
* @return {}
|
|
106
|
+
* @return {CertificateProjection[]}
|
|
101
107
|
*/
|
|
102
108
|
function getCertificateProjection() {
|
|
103
109
|
return this.certificateProjection;
|
|
104
110
|
}
|
|
105
111
|
|
|
106
112
|
/**
|
|
107
|
-
* @param {} certificateProjection
|
|
113
|
+
* @param {CertificateProjection[]} certificateProjection
|
|
108
114
|
*/
|
|
109
115
|
}, {
|
|
110
116
|
key: "setCertificateProjection",
|
|
@@ -116,15 +122,17 @@ var ObjectstoreProjection = exports["default"] = /*#__PURE__*/function (_Objects
|
|
|
116
122
|
value: function toJson(forMutation) {
|
|
117
123
|
if (forMutation === false) {
|
|
118
124
|
return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getCertificateProjection() !== 'undefined' && this.getCertificateProjection() !== null ? {
|
|
119
|
-
'certificateProjection': this.getCertificateProjection().
|
|
125
|
+
'certificateProjection': this.getCertificateProjection().map(function (item) {
|
|
126
|
+
return item.toJson(false);
|
|
127
|
+
})
|
|
120
128
|
} : {}), typeof this.getMetadata() !== 'undefined' && this.getMetadata() !== null ? {
|
|
121
129
|
'metadata': this.getMetadata().toJson(false)
|
|
122
130
|
} : {}), typeof this.getName() !== 'undefined' && this.getName() !== null ? {
|
|
123
131
|
'name': this.getName()
|
|
124
132
|
} : {}), typeof this.getCreationTime() !== 'undefined' && this.getCreationTime() !== null ? {
|
|
125
|
-
'creationTime': this.getCreationTime()
|
|
133
|
+
'creationTime': _assertClassBrand(_ObjectStoreProjection_brand, this, _handleDateType).call(this, this.getCreationTime(), false)
|
|
126
134
|
} : {}), typeof this.getLastUpdateTime() !== 'undefined' && this.getLastUpdateTime() !== null ? {
|
|
127
|
-
'lastUpdateTime': this.getLastUpdateTime()
|
|
135
|
+
'lastUpdateTime': _assertClassBrand(_ObjectStoreProjection_brand, this, _handleDateType).call(this, this.getLastUpdateTime(), false)
|
|
128
136
|
} : {}), typeof this.getDescription() !== 'undefined' && this.getDescription() !== null ? {
|
|
129
137
|
'description': this.getDescription()
|
|
130
138
|
} : {}), typeof this.getDeploymentVersion() !== 'undefined' && this.getDeploymentVersion() !== null ? {
|
|
@@ -135,8 +143,8 @@ var ObjectstoreProjection = exports["default"] = /*#__PURE__*/function (_Objects
|
|
|
135
143
|
'region': this.getRegion()
|
|
136
144
|
} : {}), typeof this.getNumWorkerNodes() !== 'undefined' && this.getNumWorkerNodes() !== null ? {
|
|
137
145
|
'numWorkerNodes': this.getNumWorkerNodes()
|
|
138
|
-
} : {}), typeof this.
|
|
139
|
-
'
|
|
146
|
+
} : {}), typeof this.getClusterExtId() !== 'undefined' && this.getClusterExtId() !== null ? {
|
|
147
|
+
'clusterExtId': this.getClusterExtId()
|
|
140
148
|
} : {}), typeof this.getStorageNetworkReference() !== 'undefined' && this.getStorageNetworkReference() !== null ? {
|
|
141
149
|
'storageNetworkReference': this.getStorageNetworkReference()
|
|
142
150
|
} : {}), typeof this.getStorageNetworkVip() !== 'undefined' && this.getStorageNetworkVip() !== null ? {
|
|
@@ -153,8 +161,8 @@ var ObjectstoreProjection = exports["default"] = /*#__PURE__*/function (_Objects
|
|
|
153
161
|
'totalCapacityGiB': this.getTotalCapacityGiB()
|
|
154
162
|
} : {}), typeof this.getState() !== 'undefined' && this.getState() !== null ? {
|
|
155
163
|
'state': this.getState()
|
|
156
|
-
} : {}), typeof this.
|
|
157
|
-
'
|
|
164
|
+
} : {}), typeof this.getCertificateExtIds() !== 'undefined' && this.getCertificateExtIds() !== null ? {
|
|
165
|
+
'certificateExtIds': this.getCertificateExtIds()
|
|
158
166
|
} : {}), typeof this.getExtId() !== 'undefined' && this.getExtId() !== null ? {
|
|
159
167
|
'extId': this.getExtId()
|
|
160
168
|
} : {}), typeof this.getLinks() !== 'undefined' && this.getLinks() !== null ? {
|
|
@@ -169,8 +177,10 @@ var ObjectstoreProjection = exports["default"] = /*#__PURE__*/function (_Objects
|
|
|
169
177
|
'$unknownFields': this.get$UnknownFields()
|
|
170
178
|
});
|
|
171
179
|
}
|
|
172
|
-
return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(
|
|
173
|
-
'certificateProjection': this.getCertificateProjection().
|
|
180
|
+
return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getCertificateProjection() !== 'undefined' && this.getCertificateProjection() !== null ? {
|
|
181
|
+
'certificateProjection': this.getCertificateProjection().map(function (item) {
|
|
182
|
+
return item.toJson(false);
|
|
183
|
+
})
|
|
174
184
|
} : {}), typeof this.getMetadata() !== 'undefined' && this.getMetadata() !== null ? {
|
|
175
185
|
'metadata': this.getMetadata().toJson(false)
|
|
176
186
|
} : {}), typeof this.getName() !== 'undefined' && this.getName() !== null ? {
|
|
@@ -185,8 +195,8 @@ var ObjectstoreProjection = exports["default"] = /*#__PURE__*/function (_Objects
|
|
|
185
195
|
'region': this.getRegion()
|
|
186
196
|
} : {}), typeof this.getNumWorkerNodes() !== 'undefined' && this.getNumWorkerNodes() !== null ? {
|
|
187
197
|
'numWorkerNodes': this.getNumWorkerNodes()
|
|
188
|
-
} : {}), typeof this.
|
|
189
|
-
'
|
|
198
|
+
} : {}), typeof this.getClusterExtId() !== 'undefined' && this.getClusterExtId() !== null ? {
|
|
199
|
+
'clusterExtId': this.getClusterExtId()
|
|
190
200
|
} : {}), typeof this.getStorageNetworkReference() !== 'undefined' && this.getStorageNetworkReference() !== null ? {
|
|
191
201
|
'storageNetworkReference': this.getStorageNetworkReference()
|
|
192
202
|
} : {}), typeof this.getStorageNetworkVip() !== 'undefined' && this.getStorageNetworkVip() !== null ? {
|
|
@@ -203,8 +213,6 @@ var ObjectstoreProjection = exports["default"] = /*#__PURE__*/function (_Objects
|
|
|
203
213
|
'totalCapacityGiB': this.getTotalCapacityGiB()
|
|
204
214
|
} : {}), typeof this.getState() !== 'undefined' && this.getState() !== null ? {
|
|
205
215
|
'state': this.getState()
|
|
206
|
-
} : {}), typeof this.getExtId() !== 'undefined' && this.getExtId() !== null ? {
|
|
207
|
-
'extId': this.getExtId()
|
|
208
216
|
} : {}), {}, {
|
|
209
217
|
'$reserved': this.get$Reserved(),
|
|
210
218
|
'$objectType': this.get$ObjectType(),
|
|
@@ -255,19 +263,30 @@ var ObjectstoreProjection = exports["default"] = /*#__PURE__*/function (_Objects
|
|
|
255
263
|
}
|
|
256
264
|
}], [{
|
|
257
265
|
key: "constructFromObject",
|
|
258
|
-
value: function constructFromObject(data
|
|
266
|
+
value: function constructFromObject(data) {
|
|
267
|
+
var obj = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
|
|
259
268
|
var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
260
269
|
var items, item, i, itemArr, discriminator;
|
|
261
270
|
if (data) {
|
|
262
|
-
obj = obj || new
|
|
263
|
-
|
|
271
|
+
obj = obj || new ObjectStoreProjection();
|
|
272
|
+
_ObjectStore2["default"].constructFromObject(data, obj, true);
|
|
264
273
|
if (data.hasOwnProperty('certificateProjection') && data.certificateProjection !== null && data.certificateProjection !== undefined) {
|
|
265
|
-
|
|
274
|
+
itemArr = [];
|
|
275
|
+
items = data.certificateProjection;
|
|
276
|
+
for (i = 0; i < items.length; i++) {
|
|
277
|
+
item = _CertificateProjection["default"].constructFromObject(items[i], undefined);
|
|
278
|
+
itemArr.push(item);
|
|
279
|
+
}
|
|
280
|
+
obj.setCertificateProjection(itemArr);
|
|
266
281
|
}
|
|
267
282
|
if (!callFromChild) {
|
|
268
283
|
obj.$unknownFields = _objectSpread({}, data.$unknownFields);
|
|
269
284
|
for (var property in data) {
|
|
270
|
-
if
|
|
285
|
+
// Check if the `property` is not already present in `obj` keys, either in snake_case or camelCase,
|
|
286
|
+
// as the model's fields are generated in camelCase, but the server might return snake_case (e.g., due to standards like OIDC).
|
|
287
|
+
// Also, ensure the `property` does not start with '$' and end with 'ItemDiscriminator'.
|
|
288
|
+
// If all conditions are true, add the `property` from `data` to `obj.$unknownFields` as an unknown field.
|
|
289
|
+
if (!Object.keys(obj).includes(property) && !Object.keys(obj).includes(this.snakeToCamel(property)) && !(property[0] === "$" && property.endsWith("ItemDiscriminator"))) {
|
|
271
290
|
obj.$unknownFields[property] = data[property];
|
|
272
291
|
}
|
|
273
292
|
}
|
|
@@ -275,10 +294,23 @@ var ObjectstoreProjection = exports["default"] = /*#__PURE__*/function (_Objects
|
|
|
275
294
|
}
|
|
276
295
|
return obj;
|
|
277
296
|
}
|
|
297
|
+
|
|
298
|
+
/**
|
|
299
|
+
* Converts a given snake_case string to camelCase.
|
|
300
|
+
* @param {string} snakeStr - The input string in snake_case format.
|
|
301
|
+
* @returns {string} - The converted string in camelCase format.
|
|
302
|
+
*/
|
|
303
|
+
}, {
|
|
304
|
+
key: "snakeToCamel",
|
|
305
|
+
value: function snakeToCamel(snakeStr) {
|
|
306
|
+
return snakeStr.replace(/(_\w)/g, function (match) {
|
|
307
|
+
return match[1].toUpperCase();
|
|
308
|
+
});
|
|
309
|
+
}
|
|
278
310
|
}]);
|
|
279
|
-
}(
|
|
311
|
+
}(_ObjectStore2["default"]);
|
|
280
312
|
/**
|
|
281
|
-
* @memberof
|
|
313
|
+
* @memberof ObjectStoreProjection
|
|
282
314
|
*/
|
|
283
315
|
function _toJsonMapType(obj, forMutation) {
|
|
284
316
|
if (obj instanceof Map) {
|
|
@@ -295,4 +327,118 @@ function _toJsonMapType(obj, forMutation) {
|
|
|
295
327
|
}
|
|
296
328
|
return obj;
|
|
297
329
|
}
|
|
298
|
-
|
|
330
|
+
/*
|
|
331
|
+
* toJson method for a date type which serializes a Date object to proper Date or DateTime formatting
|
|
332
|
+
* @param {Object} obj Object to serialize
|
|
333
|
+
* @param {boolean} isDateOnly Boolean variable to identify Date or DateTime format for serialization
|
|
334
|
+
* @returns {Object|string} Returns serialized date object or original input object
|
|
335
|
+
*/
|
|
336
|
+
function _handleDateType(obj, isDateOnly) {
|
|
337
|
+
if (obj instanceof Date && isDateOnly !== undefined) {
|
|
338
|
+
return isDateOnly ? obj.toISOString().slice(0, 10) : obj.toISOString();
|
|
339
|
+
}
|
|
340
|
+
return obj;
|
|
341
|
+
}
|
|
342
|
+
ObjectStoreProjection.prototype.certificateProjection = undefined;
|
|
343
|
+
|
|
344
|
+
/**
|
|
345
|
+
* @memberof ObjectStoreProjection
|
|
346
|
+
*/
|
|
347
|
+
_ObjectStore2["default"].prototype.metadata = undefined;
|
|
348
|
+
/**
|
|
349
|
+
* The name of the Object store.
|
|
350
|
+
* @memberof ObjectStoreProjection
|
|
351
|
+
*/
|
|
352
|
+
_ObjectStore2["default"].prototype.name = undefined;
|
|
353
|
+
/**
|
|
354
|
+
* The time when the Object store was created.
|
|
355
|
+
* @memberof ObjectStoreProjection
|
|
356
|
+
*/
|
|
357
|
+
_ObjectStore2["default"].prototype.creationTime = undefined;
|
|
358
|
+
/**
|
|
359
|
+
* The time when the Object store was last updated.
|
|
360
|
+
* @memberof ObjectStoreProjection
|
|
361
|
+
*/
|
|
362
|
+
_ObjectStore2["default"].prototype.lastUpdateTime = undefined;
|
|
363
|
+
/**
|
|
364
|
+
* A brief description of the Object store.
|
|
365
|
+
* @memberof ObjectStoreProjection
|
|
366
|
+
*/
|
|
367
|
+
_ObjectStore2["default"].prototype.description = undefined;
|
|
368
|
+
/**
|
|
369
|
+
* Object store deployment version.
|
|
370
|
+
* @memberof ObjectStoreProjection
|
|
371
|
+
*/
|
|
372
|
+
_ObjectStore2["default"].prototype.deploymentVersion = undefined;
|
|
373
|
+
/**
|
|
374
|
+
* The DNS domain/subdomain the Object store belongs to. All the Object stores under one Prism Central must have the same domain name. The domain name must consist of at least 2 parts separated by a '.'. Each part can contain upper and lower case letters, digits, hyphens, or underscores. Each part can be up to 63 characters long. The domain must begin and end with an alphanumeric character. For example - 'objects-0.pc_nutanix.com'.
|
|
375
|
+
* @memberof ObjectStoreProjection
|
|
376
|
+
*/
|
|
377
|
+
_ObjectStore2["default"].prototype.domain = undefined;
|
|
378
|
+
/**
|
|
379
|
+
* The region in which the Object store is deployed.
|
|
380
|
+
* @memberof ObjectStoreProjection
|
|
381
|
+
*/
|
|
382
|
+
_ObjectStore2["default"].prototype.region = undefined;
|
|
383
|
+
/**
|
|
384
|
+
* The number of worker nodes (VMs) to be created for the Object store. Each worker node requires 10 vCPUs and 32 GiB of memory.
|
|
385
|
+
* @memberof ObjectStoreProjection
|
|
386
|
+
*/
|
|
387
|
+
_ObjectStore2["default"].prototype.numWorkerNodes = undefined;
|
|
388
|
+
/**
|
|
389
|
+
* UUID of the AHV or ESXi cluster.
|
|
390
|
+
* @memberof ObjectStoreProjection
|
|
391
|
+
*/
|
|
392
|
+
_ObjectStore2["default"].prototype.clusterExtId = undefined;
|
|
393
|
+
/**
|
|
394
|
+
* Reference to the Storage Network of the Object store. This is the subnet UUID for an AHV cluster or the IPAM name for an ESXi cluster.
|
|
395
|
+
* @memberof ObjectStoreProjection
|
|
396
|
+
*/
|
|
397
|
+
_ObjectStore2["default"].prototype.storageNetworkReference = undefined;
|
|
398
|
+
/**
|
|
399
|
+
* @memberof ObjectStoreProjection
|
|
400
|
+
*/
|
|
401
|
+
_ObjectStore2["default"].prototype.storageNetworkVip = undefined;
|
|
402
|
+
/**
|
|
403
|
+
* @memberof ObjectStoreProjection
|
|
404
|
+
*/
|
|
405
|
+
_ObjectStore2["default"].prototype.storageNetworkDnsIp = undefined;
|
|
406
|
+
/**
|
|
407
|
+
* Public network reference of the Object store. This is the subnet UUID for an AHV cluster or the IPAM name for an ESXi cluster.
|
|
408
|
+
* @memberof ObjectStoreProjection
|
|
409
|
+
*/
|
|
410
|
+
_ObjectStore2["default"].prototype.publicNetworkReference = undefined;
|
|
411
|
+
/**
|
|
412
|
+
* A list of static IP addresses used as public IPs to access the Object store.
|
|
413
|
+
* @memberof ObjectStoreProjection
|
|
414
|
+
*/
|
|
415
|
+
_ObjectStore2["default"].prototype.publicNetworkIps = undefined;
|
|
416
|
+
/**
|
|
417
|
+
* Size of the Object store in GiB.
|
|
418
|
+
* @memberof ObjectStoreProjection
|
|
419
|
+
*/
|
|
420
|
+
_ObjectStore2["default"].prototype.totalCapacityGiB = undefined;
|
|
421
|
+
/**
|
|
422
|
+
* @memberof ObjectStoreProjection
|
|
423
|
+
*/
|
|
424
|
+
_ObjectStore2["default"].prototype.state = undefined;
|
|
425
|
+
/**
|
|
426
|
+
* A list of the UUIDs of the certificates of an Object store.
|
|
427
|
+
* @memberof ObjectStoreProjection
|
|
428
|
+
*/
|
|
429
|
+
_ObjectStore2["default"].prototype.certificateExtIds = undefined;
|
|
430
|
+
/**
|
|
431
|
+
* A globally unique identifier of an instance that is suitable for external consumption.
|
|
432
|
+
* @memberof ObjectStoreProjection
|
|
433
|
+
*/
|
|
434
|
+
_ExternalizableAbstractModel["default"].prototype.extId = undefined;
|
|
435
|
+
/**
|
|
436
|
+
* A HATEOAS style link for the response. Each link contains a user-friendly name identifying the link and an address for retrieving the particular resource.
|
|
437
|
+
* @memberof ObjectStoreProjection
|
|
438
|
+
*/
|
|
439
|
+
_ExternalizableAbstractModel["default"].prototype.links = undefined;
|
|
440
|
+
/**
|
|
441
|
+
* A globally unique identifier that represents the tenant that owns this entity. The system automatically assigns it, and it and is immutable from an API consumer perspective (some use cases may cause this Id to change - For instance, a use case may require the transfer of ownership of the entity, but these cases are handled automatically on the server).
|
|
442
|
+
* @memberof ObjectStoreProjection
|
|
443
|
+
*/
|
|
444
|
+
_TenantAwareModel["default"].prototype.tenantId = undefined;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
export default
|
|
1
|
+
export default State;
|
|
2
2
|
/**
|
|
3
3
|
* *
|
|
4
4
|
*/
|
|
5
|
-
type
|
|
6
|
-
declare namespace
|
|
5
|
+
type State = string;
|
|
6
|
+
declare namespace State {
|
|
7
7
|
/**
|
|
8
|
-
* Returns a <code>
|
|
8
|
+
* Returns a <code>State</code> enum value from a JavaScript object name.
|
|
9
9
|
* @param {Object} obj The plain JavaScript object containing the name of the enum value.
|
|
10
|
-
* @return {
|
|
10
|
+
* @return {State} The enum <code>State</code> value.
|
|
11
11
|
*/
|
|
12
12
|
function constructFromObject(obj: any): string;
|
|
13
13
|
/**
|
|
14
|
-
* Validates <code>
|
|
14
|
+
* Validates <code>State</code> enum value.
|
|
15
15
|
* @param {Object} obj The plain JavaScript object containing the name of the enum value.
|
|
16
16
|
* @return {null} Throws error for invalid value.
|
|
17
17
|
*/
|