Skip to content

Commit af04104

Browse files
author
LaunchDarklyCI
committed
Version 5.0.3 automatically generated from ld-openapi@dffa29a.
1 parent ea00ffc commit af04104

File tree

3 files changed

+190
-102
lines changed

3 files changed

+190
-102
lines changed

api.ts

Lines changed: 136 additions & 75 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* LaunchDarkly REST API
33
* Build custom integrations with the LaunchDarkly REST API
44
*
5-
* OpenAPI spec version: 5.0.2
5+
* OpenAPI spec version: 5.0.3
66
* Contact: support@launchdarkly.com
77
*
88
* NOTE: This class is auto generated by the swagger code generator program.
@@ -148,7 +148,7 @@ export class ApprovalRequest {
148148
'requestorId'?: string;
149149
'reviewStatus'?: ApprovalRequestReviewStatus;
150150
/**
151-
* | Name | Description | | --------:| ----------- | | pending | the approval request has not been applied yet | | completed| the approval request has been applied successfully | | failed | the approval request has been applied but the changes were not applied successfully |
151+
* | Name | Description | | ---------:| ----------- | | pending | the approval request has not been applied yet | | completed | the approval request has been applied successfully | | scheduled | the approval request for a scheduled change has been applied successfully | | failed | the approval request has been applied but the changes were not applied successfully |
152152
*/
153153
'status'?: ApprovalRequest.StatusEnum;
154154
/**
@@ -162,6 +162,14 @@ export class ApprovalRequest {
162162
'allReviews'?: Array<ApprovalRequestReview>;
163163
'notifyMemberIds'?: Array<string>;
164164
'instructions'?: SemanticPatchInstruction;
165+
/**
166+
* Timestamp for when instructions will be executed
167+
*/
168+
'executionDate'?: number;
169+
/**
170+
* ID of scheduled change to edit or delete
171+
*/
172+
'operatingOnId'?: string;
165173

166174
static discriminator: string | undefined = undefined;
167175

@@ -220,6 +228,16 @@ export class ApprovalRequest {
220228
"name": "instructions",
221229
"baseName": "instructions",
222230
"type": "SemanticPatchInstruction"
231+
},
232+
{
233+
"name": "executionDate",
234+
"baseName": "executionDate",
235+
"type": "number"
236+
},
237+
{
238+
"name": "operatingOnId",
239+
"baseName": "operatingOnId",
240+
"type": "string"
223241
} ];
224242

225243
static getAttributeTypeMap() {
@@ -231,6 +249,7 @@ export namespace ApprovalRequest {
231249
export enum StatusEnum {
232250
Pending = <any> 'pending',
233251
Completed = <any> 'completed',
252+
Scheduled = <any> 'scheduled',
234253
Failed = <any> 'failed'
235254
}
236255
}
@@ -265,6 +284,14 @@ export class ApprovalRequestConfigBody {
265284
* comment will be included in audit log item for change.
266285
*/
267286
'comment'?: string;
287+
/**
288+
* Timestamp for when instructions will be executed
289+
*/
290+
'executionDate'?: number;
291+
/**
292+
* ID of scheduled change to edit or delete
293+
*/
294+
'operatingOnId'?: string;
268295

269296
static discriminator: string | undefined = undefined;
270297

@@ -288,6 +315,16 @@ export class ApprovalRequestConfigBody {
288315
"name": "comment",
289316
"baseName": "comment",
290317
"type": "string"
318+
},
319+
{
320+
"name": "executionDate",
321+
"baseName": "executionDate",
322+
"type": "number"
323+
},
324+
{
325+
"name": "operatingOnId",
326+
"baseName": "operatingOnId",
327+
"type": "string"
291328
} ];
292329

293330
static getAttributeTypeMap() {
@@ -542,6 +579,58 @@ export class AuditLogEntryTarget {
542579
}
543580
}
544581

582+
export class BigSegmentTargetChanges {
583+
/**
584+
* Users to add to this list of targets
585+
*/
586+
'add'?: Array<string>;
587+
/**
588+
* Users to remove from this list of targets
589+
*/
590+
'remove'?: Array<string>;
591+
592+
static discriminator: string | undefined = undefined;
593+
594+
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
595+
{
596+
"name": "add",
597+
"baseName": "add",
598+
"type": "Array<string>"
599+
},
600+
{
601+
"name": "remove",
602+
"baseName": "remove",
603+
"type": "Array<string>"
604+
} ];
605+
606+
static getAttributeTypeMap() {
607+
return BigSegmentTargetChanges.attributeTypeMap;
608+
}
609+
}
610+
611+
export class BigSegmentTargetsBody {
612+
'included'?: BigSegmentTargetChanges;
613+
'excluded'?: BigSegmentTargetChanges;
614+
615+
static discriminator: string | undefined = undefined;
616+
617+
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
618+
{
619+
"name": "included",
620+
"baseName": "included",
621+
"type": "BigSegmentTargetChanges"
622+
},
623+
{
624+
"name": "excluded",
625+
"baseName": "excluded",
626+
"type": "BigSegmentTargetChanges"
627+
} ];
628+
629+
static getAttributeTypeMap() {
630+
return BigSegmentTargetsBody.attributeTypeMap;
631+
}
632+
}
633+
545634
export class Clause {
546635
'id'?: string;
547636
'attribute'?: string;
@@ -1976,7 +2065,7 @@ export class FeatureFlagStatus {
19762065
'name'?: FeatureFlagStatus.NameEnum;
19772066
'lastRequested'?: string;
19782067
'_default'?: any;
1979-
'links'?: Links;
2068+
'links'?: FeatureFlagStatusLinks;
19802069

19812070
static discriminator: string | undefined = undefined;
19822071

@@ -1999,7 +2088,7 @@ export class FeatureFlagStatus {
19992088
{
20002089
"name": "links",
20012090
"baseName": "_links",
2002-
"type": "Links"
2091+
"type": "FeatureFlagStatusLinks"
20032092
} ];
20042093

20052094
static getAttributeTypeMap() {
@@ -2016,7 +2105,7 @@ export namespace FeatureFlagStatus {
20162105
}
20172106
}
20182107
export class FeatureFlagStatusAcrossEnvironments {
2019-
'links'?: Links;
2108+
'links'?: FeatureFlagStatusLinks;
20202109
'key'?: string;
20212110
'environments'?: { [key: string]: FeatureFlagStatusForQueriedEnvironment; };
20222111

@@ -2026,7 +2115,7 @@ export class FeatureFlagStatusAcrossEnvironments {
20262115
{
20272116
"name": "links",
20282117
"baseName": "_links",
2029-
"type": "Links"
2118+
"type": "FeatureFlagStatusLinks"
20302119
},
20312120
{
20322121
"name": "key",
@@ -2084,8 +2173,31 @@ export namespace FeatureFlagStatusForQueriedEnvironment {
20842173
Launched = <any> 'launched'
20852174
}
20862175
}
2176+
export class FeatureFlagStatusLinks {
2177+
'parent'?: Link;
2178+
'self'?: Link;
2179+
2180+
static discriminator: string | undefined = undefined;
2181+
2182+
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
2183+
{
2184+
"name": "parent",
2185+
"baseName": "parent",
2186+
"type": "Link"
2187+
},
2188+
{
2189+
"name": "self",
2190+
"baseName": "self",
2191+
"type": "Link"
2192+
} ];
2193+
2194+
static getAttributeTypeMap() {
2195+
return FeatureFlagStatusLinks.attributeTypeMap;
2196+
}
2197+
}
2198+
20872199
export class FeatureFlagStatuses {
2088-
'links'?: Links;
2200+
'links'?: FeatureFlagStatusLinks;
20892201
'items'?: Array<FeatureFlagStatus>;
20902202

20912203
static discriminator: string | undefined = undefined;
@@ -2094,7 +2206,7 @@ export class FeatureFlagStatuses {
20942206
{
20952207
"name": "links",
20962208
"baseName": "_links",
2097-
"type": "Links"
2209+
"type": "FeatureFlagStatusLinks"
20982210
},
20992211
{
21002212
"name": "items",
@@ -4001,58 +4113,6 @@ export class Tokens {
40014113
}
40024114
}
40034115

4004-
export class UnboundedSegmentTargetChanges {
4005-
/**
4006-
* Users to add to this list of targets
4007-
*/
4008-
'add'?: Array<string>;
4009-
/**
4010-
* Users to remove from this list of targets
4011-
*/
4012-
'remove'?: Array<string>;
4013-
4014-
static discriminator: string | undefined = undefined;
4015-
4016-
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
4017-
{
4018-
"name": "add",
4019-
"baseName": "add",
4020-
"type": "Array<string>"
4021-
},
4022-
{
4023-
"name": "remove",
4024-
"baseName": "remove",
4025-
"type": "Array<string>"
4026-
} ];
4027-
4028-
static getAttributeTypeMap() {
4029-
return UnboundedSegmentTargetChanges.attributeTypeMap;
4030-
}
4031-
}
4032-
4033-
export class UnboundedSegmentTargetsBody {
4034-
'included'?: UnboundedSegmentTargetChanges;
4035-
'excluded'?: UnboundedSegmentTargetChanges;
4036-
4037-
static discriminator: string | undefined = undefined;
4038-
4039-
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
4040-
{
4041-
"name": "included",
4042-
"baseName": "included",
4043-
"type": "UnboundedSegmentTargetChanges"
4044-
},
4045-
{
4046-
"name": "excluded",
4047-
"baseName": "excluded",
4048-
"type": "UnboundedSegmentTargetChanges"
4049-
} ];
4050-
4051-
static getAttributeTypeMap() {
4052-
return UnboundedSegmentTargetsBody.attributeTypeMap;
4053-
}
4054-
}
4055-
40564116
export class Usage {
40574117
'links'?: UsageLinks;
40584118
'series'?: Array<StreamUsageSeries>;
@@ -4335,7 +4395,7 @@ export class UserSegment {
43354395
*/
43364396
'rules'?: Array<UserSegmentRule>;
43374397
/**
4338-
* Controls whether this segment can support unlimited numbers of users. Requires the beta API and additional setup. Include/exclude lists in this payload are not used in unbounded segments.
4398+
* Controls whether this is considered a \"big segment\" which can support an unlimited numbers of users. Include/exclude lists sent with this payload are not used in big segments. Contact your account manager for early access to this feature.
43394399
*/
43404400
'unbounded'?: boolean;
43414401
'version'?: number;
@@ -4425,7 +4485,7 @@ export class UserSegmentBody {
44254485
*/
44264486
'description'?: string;
44274487
/**
4428-
* Controls whether this segment can support unlimited numbers of users. Requires the beta API and additional setup. Include/exclude lists in this payload are not used in unbounded segments.
4488+
* Controls whether this is considered a \"big segment\" which can support an unlimited numbers of users. Include/exclude lists sent with this payload are not used in big segments. Contact your account manager for early access to this feature.
44294489
*/
44304490
'unbounded'?: boolean;
44314491
/**
@@ -5028,6 +5088,8 @@ let typeMap: {[index: string]: any} = {
50285088
"AuditLogEntries": AuditLogEntries,
50295089
"AuditLogEntry": AuditLogEntry,
50305090
"AuditLogEntryTarget": AuditLogEntryTarget,
5091+
"BigSegmentTargetChanges": BigSegmentTargetChanges,
5092+
"BigSegmentTargetsBody": BigSegmentTargetsBody,
50315093
"Clause": Clause,
50325094
"ClientSideAvailability": ClientSideAvailability,
50335095
"CopyActions": CopyActions,
@@ -5062,6 +5124,7 @@ let typeMap: {[index: string]: any} = {
50625124
"FeatureFlagStatus": FeatureFlagStatus,
50635125
"FeatureFlagStatusAcrossEnvironments": FeatureFlagStatusAcrossEnvironments,
50645126
"FeatureFlagStatusForQueriedEnvironment": FeatureFlagStatusForQueriedEnvironment,
5127+
"FeatureFlagStatusLinks": FeatureFlagStatusLinks,
50655128
"FeatureFlagStatuses": FeatureFlagStatuses,
50665129
"FeatureFlags": FeatureFlags,
50675130
"FlagConfigScheduledChangesConflictsBody": FlagConfigScheduledChangesConflictsBody,
@@ -5120,8 +5183,6 @@ let typeMap: {[index: string]: any} = {
51205183
"Token": Token,
51215184
"TokenBody": TokenBody,
51225185
"Tokens": Tokens,
5123-
"UnboundedSegmentTargetChanges": UnboundedSegmentTargetChanges,
5124-
"UnboundedSegmentTargetsBody": UnboundedSegmentTargetsBody,
51255186
"Usage": Usage,
51265187
"UsageError": UsageError,
51275188
"UsageLinks": UsageLinks,
@@ -11503,15 +11564,15 @@ export class UserSegmentsApi {
1150311564
}
1150411565
/**
1150511566
*
11506-
* @summary Update targets included or excluded in an unbounded segment
11567+
* @summary Update targets included or excluded in a big segment
1150711568
* @param projectKey The project key, used to tie the flags together under one project so they can be managed together.
1150811569
* @param environmentKey The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
1150911570
* @param userSegmentKey The user segment&#39;s key. The key identifies the user segment in your code.
11510-
* @param unboundedSegmentTargetsBody Add or remove user targets to the included or excluded lists on an unbounded segment
11571+
* @param bigSegmentTargetsBody Add or remove user targets to the included or excluded lists on a big segment. Contact your account manager for early access to this feature.
1151111572
* @param {*} [options] Override http request options.
1151211573
*/
11513-
public updatedUnboundedSegmentTargets (projectKey: string, environmentKey: string, userSegmentKey: string, unboundedSegmentTargetsBody: UnboundedSegmentTargetsBody, options: any = {}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
11514-
const localVarPath = this.basePath + '/segments/{projectKey}/{environmentKey}/{userSegmentKey}/unbounded-users'
11574+
public updatedBigSegmentTargets (projectKey: string, environmentKey: string, userSegmentKey: string, bigSegmentTargetsBody: BigSegmentTargetsBody, options: any = {}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
11575+
const localVarPath = this.basePath + '/segments/{projectKey}/{environmentKey}/{userSegmentKey}/users'
1151511576
.replace('{' + 'projectKey' + '}', encodeURIComponent(String(projectKey)))
1151611577
.replace('{' + 'environmentKey' + '}', encodeURIComponent(String(environmentKey)))
1151711578
.replace('{' + 'userSegmentKey' + '}', encodeURIComponent(String(userSegmentKey)));
@@ -11521,22 +11582,22 @@ export class UserSegmentsApi {
1152111582

1152211583
// verify required parameter 'projectKey' is not null or undefined
1152311584
if (projectKey === null || projectKey === undefined) {
11524-
throw new Error('Required parameter projectKey was null or undefined when calling updatedUnboundedSegmentTargets.');
11585+
throw new Error('Required parameter projectKey was null or undefined when calling updatedBigSegmentTargets.');
1152511586
}
1152611587

1152711588
// verify required parameter 'environmentKey' is not null or undefined
1152811589
if (environmentKey === null || environmentKey === undefined) {
11529-
throw new Error('Required parameter environmentKey was null or undefined when calling updatedUnboundedSegmentTargets.');
11590+
throw new Error('Required parameter environmentKey was null or undefined when calling updatedBigSegmentTargets.');
1153011591
}
1153111592

1153211593
// verify required parameter 'userSegmentKey' is not null or undefined
1153311594
if (userSegmentKey === null || userSegmentKey === undefined) {
11534-
throw new Error('Required parameter userSegmentKey was null or undefined when calling updatedUnboundedSegmentTargets.');
11595+
throw new Error('Required parameter userSegmentKey was null or undefined when calling updatedBigSegmentTargets.');
1153511596
}
1153611597

11537-
// verify required parameter 'unboundedSegmentTargetsBody' is not null or undefined
11538-
if (unboundedSegmentTargetsBody === null || unboundedSegmentTargetsBody === undefined) {
11539-
throw new Error('Required parameter unboundedSegmentTargetsBody was null or undefined when calling updatedUnboundedSegmentTargets.');
11598+
// verify required parameter 'bigSegmentTargetsBody' is not null or undefined
11599+
if (bigSegmentTargetsBody === null || bigSegmentTargetsBody === undefined) {
11600+
throw new Error('Required parameter bigSegmentTargetsBody was null or undefined when calling updatedBigSegmentTargets.');
1154011601
}
1154111602

1154211603
(<any>Object).assign(localVarHeaderParams, options.headers);
@@ -11550,7 +11611,7 @@ export class UserSegmentsApi {
1155011611
uri: localVarPath,
1155111612
useQuerystring: this._useQuerystring,
1155211613
json: true,
11553-
body: ObjectSerializer.serialize(unboundedSegmentTargetsBody, "UnboundedSegmentTargetsBody")
11614+
body: ObjectSerializer.serialize(bigSegmentTargetsBody, "BigSegmentTargetsBody")
1155411615
};
1155511616

1155611617
this.authentications.Token.applyToRequest(localVarRequestOptions);

0 commit comments

Comments
 (0)