@gitbeaker/core 39.32.0 → 39.33.0
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 +1 -0
- package/dist/index.d.mts +820 -142
- package/dist/index.d.ts +820 -142
- package/dist/index.js +603 -603
- package/dist/index.mjs +603 -603
- package/dist/map.json +575 -575
- package/package.json +3 -3
package/dist/index.mjs
CHANGED
|
@@ -377,6 +377,19 @@ var ApplicationPlanLimits = class extends BaseResource {
|
|
|
377
377
|
});
|
|
378
378
|
}
|
|
379
379
|
};
|
|
380
|
+
var ApplicationSettings = class extends BaseResource {
|
|
381
|
+
show(options) {
|
|
382
|
+
return RequestHelper.get()(this, "application/settings", options);
|
|
383
|
+
}
|
|
384
|
+
edit(options) {
|
|
385
|
+
return RequestHelper.put()(this, "application/settings", options);
|
|
386
|
+
}
|
|
387
|
+
};
|
|
388
|
+
var ApplicationStatistics = class extends BaseResource {
|
|
389
|
+
show(options) {
|
|
390
|
+
return RequestHelper.get()(this, "application/statistics", options);
|
|
391
|
+
}
|
|
392
|
+
};
|
|
380
393
|
var Applications = class extends BaseResource {
|
|
381
394
|
all(options) {
|
|
382
395
|
return RequestHelper.get()(this, "applications", options);
|
|
@@ -393,19 +406,6 @@ var Applications = class extends BaseResource {
|
|
|
393
406
|
return RequestHelper.del()(this, `applications/${applicationId}`, options);
|
|
394
407
|
}
|
|
395
408
|
};
|
|
396
|
-
var ApplicationSettings = class extends BaseResource {
|
|
397
|
-
show(options) {
|
|
398
|
-
return RequestHelper.get()(this, "application/settings", options);
|
|
399
|
-
}
|
|
400
|
-
edit(options) {
|
|
401
|
-
return RequestHelper.put()(this, "application/settings", options);
|
|
402
|
-
}
|
|
403
|
-
};
|
|
404
|
-
var ApplicationStatistics = class extends BaseResource {
|
|
405
|
-
show(options) {
|
|
406
|
-
return RequestHelper.get()(this, "application/statistics", options);
|
|
407
|
-
}
|
|
408
|
-
};
|
|
409
409
|
function url({
|
|
410
410
|
projectId,
|
|
411
411
|
groupId
|
|
@@ -1899,17 +1899,17 @@ var GeoSites = class extends BaseResource {
|
|
|
1899
1899
|
}
|
|
1900
1900
|
};
|
|
1901
1901
|
|
|
1902
|
-
// src/resources/
|
|
1903
|
-
var
|
|
1902
|
+
// src/resources/GitLabCIYMLTemplates.ts
|
|
1903
|
+
var GitLabCIYMLTemplates = class extends ResourceTemplates {
|
|
1904
1904
|
constructor(options) {
|
|
1905
|
-
super("
|
|
1905
|
+
super("gitlab_ci_ymls", options);
|
|
1906
1906
|
}
|
|
1907
1907
|
};
|
|
1908
1908
|
|
|
1909
|
-
// src/resources/
|
|
1910
|
-
var
|
|
1909
|
+
// src/resources/GitignoreTemplates.ts
|
|
1910
|
+
var GitignoreTemplates = class extends ResourceTemplates {
|
|
1911
1911
|
constructor(options) {
|
|
1912
|
-
super("
|
|
1912
|
+
super("gitignores", options);
|
|
1913
1913
|
}
|
|
1914
1914
|
};
|
|
1915
1915
|
var Import = class extends BaseResource {
|
|
@@ -2101,51 +2101,7 @@ var Migrations = class extends BaseResource {
|
|
|
2101
2101
|
);
|
|
2102
2102
|
}
|
|
2103
2103
|
};
|
|
2104
|
-
|
|
2105
|
-
all(options) {
|
|
2106
|
-
return RequestHelper.get()(this, "namespaces", options);
|
|
2107
|
-
}
|
|
2108
|
-
exists(namespaceId, options) {
|
|
2109
|
-
return RequestHelper.get()(
|
|
2110
|
-
this,
|
|
2111
|
-
endpoint`namespaces/${namespaceId}/exists`,
|
|
2112
|
-
options
|
|
2113
|
-
);
|
|
2114
|
-
}
|
|
2115
|
-
show(namespaceId, options) {
|
|
2116
|
-
return RequestHelper.get()(this, endpoint`namespaces/${namespaceId}`, options);
|
|
2117
|
-
}
|
|
2118
|
-
};
|
|
2119
|
-
function url6({
|
|
2120
|
-
projectId,
|
|
2121
|
-
groupId
|
|
2122
|
-
} = {}) {
|
|
2123
|
-
let prefix = "";
|
|
2124
|
-
if (projectId)
|
|
2125
|
-
prefix = endpoint`projects/${projectId}/`;
|
|
2126
|
-
if (groupId)
|
|
2127
|
-
prefix = endpoint`groups/${groupId}/`;
|
|
2128
|
-
return `${prefix}notification_settings`;
|
|
2129
|
-
}
|
|
2130
|
-
var NotificationSettings = class extends BaseResource {
|
|
2131
|
-
edit({
|
|
2132
|
-
groupId,
|
|
2133
|
-
projectId,
|
|
2134
|
-
...options
|
|
2135
|
-
} = {}) {
|
|
2136
|
-
const uri = url6({ groupId, projectId });
|
|
2137
|
-
return RequestHelper.put()(this, uri, options);
|
|
2138
|
-
}
|
|
2139
|
-
show({
|
|
2140
|
-
groupId,
|
|
2141
|
-
projectId,
|
|
2142
|
-
...options
|
|
2143
|
-
} = {}) {
|
|
2144
|
-
const uri = url6({ groupId, projectId });
|
|
2145
|
-
return RequestHelper.get()(this, uri, options);
|
|
2146
|
-
}
|
|
2147
|
-
};
|
|
2148
|
-
function url7(projectId) {
|
|
2104
|
+
function url6(projectId) {
|
|
2149
2105
|
return projectId ? endpoint`/projects/${projectId}/packages/npm` : "packages/npm";
|
|
2150
2106
|
}
|
|
2151
2107
|
var NPM = class extends BaseResource {
|
|
@@ -2157,7 +2113,7 @@ var NPM = class extends BaseResource {
|
|
|
2157
2113
|
);
|
|
2158
2114
|
}
|
|
2159
2115
|
removeDistTag(packageName, tag, options) {
|
|
2160
|
-
const prefix =
|
|
2116
|
+
const prefix = url6(options?.projectId);
|
|
2161
2117
|
return RequestHelper.del()(
|
|
2162
2118
|
this,
|
|
2163
2119
|
`${prefix}/-/package/${packageName}/dist-tags/${tag}`,
|
|
@@ -2165,7 +2121,7 @@ var NPM = class extends BaseResource {
|
|
|
2165
2121
|
);
|
|
2166
2122
|
}
|
|
2167
2123
|
setDistTag(packageName, tag, options) {
|
|
2168
|
-
const prefix =
|
|
2124
|
+
const prefix = url6(options?.projectId);
|
|
2169
2125
|
return RequestHelper.put()(
|
|
2170
2126
|
this,
|
|
2171
2127
|
`${prefix}/-/package/${packageName}/dist-tags/${tag}`,
|
|
@@ -2173,7 +2129,7 @@ var NPM = class extends BaseResource {
|
|
|
2173
2129
|
);
|
|
2174
2130
|
}
|
|
2175
2131
|
showDistTags(packageName, options) {
|
|
2176
|
-
const prefix =
|
|
2132
|
+
const prefix = url6(options?.projectId);
|
|
2177
2133
|
return RequestHelper.get()(
|
|
2178
2134
|
this,
|
|
2179
2135
|
`${prefix}/-/package/${packageName}/dist-tags`,
|
|
@@ -2181,7 +2137,7 @@ var NPM = class extends BaseResource {
|
|
|
2181
2137
|
);
|
|
2182
2138
|
}
|
|
2183
2139
|
showMetadata(packageName, options) {
|
|
2184
|
-
const prefix =
|
|
2140
|
+
const prefix = url6(options?.projectId);
|
|
2185
2141
|
return RequestHelper.get()(this, `${prefix}/${packageName}`, options);
|
|
2186
2142
|
}
|
|
2187
2143
|
uploadPackageFile(projectId, packageName, versions, metadata, options) {
|
|
@@ -2196,6 +2152,50 @@ var NPM = class extends BaseResource {
|
|
|
2196
2152
|
);
|
|
2197
2153
|
}
|
|
2198
2154
|
};
|
|
2155
|
+
var Namespaces = class extends BaseResource {
|
|
2156
|
+
all(options) {
|
|
2157
|
+
return RequestHelper.get()(this, "namespaces", options);
|
|
2158
|
+
}
|
|
2159
|
+
exists(namespaceId, options) {
|
|
2160
|
+
return RequestHelper.get()(
|
|
2161
|
+
this,
|
|
2162
|
+
endpoint`namespaces/${namespaceId}/exists`,
|
|
2163
|
+
options
|
|
2164
|
+
);
|
|
2165
|
+
}
|
|
2166
|
+
show(namespaceId, options) {
|
|
2167
|
+
return RequestHelper.get()(this, endpoint`namespaces/${namespaceId}`, options);
|
|
2168
|
+
}
|
|
2169
|
+
};
|
|
2170
|
+
function url7({
|
|
2171
|
+
projectId,
|
|
2172
|
+
groupId
|
|
2173
|
+
} = {}) {
|
|
2174
|
+
let prefix = "";
|
|
2175
|
+
if (projectId)
|
|
2176
|
+
prefix = endpoint`projects/${projectId}/`;
|
|
2177
|
+
if (groupId)
|
|
2178
|
+
prefix = endpoint`groups/${groupId}/`;
|
|
2179
|
+
return `${prefix}notification_settings`;
|
|
2180
|
+
}
|
|
2181
|
+
var NotificationSettings = class extends BaseResource {
|
|
2182
|
+
edit({
|
|
2183
|
+
groupId,
|
|
2184
|
+
projectId,
|
|
2185
|
+
...options
|
|
2186
|
+
} = {}) {
|
|
2187
|
+
const uri = url7({ groupId, projectId });
|
|
2188
|
+
return RequestHelper.put()(this, uri, options);
|
|
2189
|
+
}
|
|
2190
|
+
show({
|
|
2191
|
+
groupId,
|
|
2192
|
+
projectId,
|
|
2193
|
+
...options
|
|
2194
|
+
} = {}) {
|
|
2195
|
+
const uri = url7({ groupId, projectId });
|
|
2196
|
+
return RequestHelper.get()(this, uri, options);
|
|
2197
|
+
}
|
|
2198
|
+
};
|
|
2199
2199
|
function url8({
|
|
2200
2200
|
projectId,
|
|
2201
2201
|
groupId
|
|
@@ -3082,84 +3082,84 @@ var ExternalStatusChecks = class extends BaseResource {
|
|
|
3082
3082
|
);
|
|
3083
3083
|
}
|
|
3084
3084
|
};
|
|
3085
|
-
var
|
|
3085
|
+
var FeatureFlagUserLists = class extends BaseResource {
|
|
3086
3086
|
all(projectId, options) {
|
|
3087
3087
|
return RequestHelper.get()(
|
|
3088
3088
|
this,
|
|
3089
|
-
endpoint`projects/${projectId}/
|
|
3089
|
+
endpoint`projects/${projectId}/feature_flags_user_lists`,
|
|
3090
3090
|
options
|
|
3091
3091
|
);
|
|
3092
3092
|
}
|
|
3093
|
-
create(projectId,
|
|
3093
|
+
create(projectId, name, userXids, options) {
|
|
3094
3094
|
return RequestHelper.post()(
|
|
3095
3095
|
this,
|
|
3096
|
-
endpoint`projects/${projectId}/
|
|
3096
|
+
endpoint`projects/${projectId}/feature_flags_user_lists`,
|
|
3097
3097
|
{
|
|
3098
|
-
name
|
|
3099
|
-
|
|
3098
|
+
name,
|
|
3099
|
+
userXids,
|
|
3100
3100
|
...options
|
|
3101
3101
|
}
|
|
3102
3102
|
);
|
|
3103
3103
|
}
|
|
3104
|
-
edit(projectId,
|
|
3104
|
+
edit(projectId, featureFlagUserListIId, options) {
|
|
3105
3105
|
return RequestHelper.put()(
|
|
3106
3106
|
this,
|
|
3107
|
-
endpoint`projects/${projectId}/
|
|
3107
|
+
endpoint`projects/${projectId}/feature_flags_user_lists/${featureFlagUserListIId}`,
|
|
3108
3108
|
options
|
|
3109
3109
|
);
|
|
3110
3110
|
}
|
|
3111
|
-
remove(projectId,
|
|
3111
|
+
remove(projectId, featureFlagUserListIId, options) {
|
|
3112
3112
|
return RequestHelper.del()(
|
|
3113
3113
|
this,
|
|
3114
|
-
endpoint`projects/${projectId}/
|
|
3114
|
+
endpoint`projects/${projectId}/feature_flags_user_lists/${featureFlagUserListIId}`,
|
|
3115
3115
|
options
|
|
3116
3116
|
);
|
|
3117
3117
|
}
|
|
3118
|
-
show(projectId,
|
|
3118
|
+
show(projectId, featureFlagUserListIId, options) {
|
|
3119
3119
|
return RequestHelper.get()(
|
|
3120
3120
|
this,
|
|
3121
|
-
endpoint`projects/${projectId}/
|
|
3121
|
+
endpoint`projects/${projectId}/feature_flags_user_lists/${featureFlagUserListIId}`,
|
|
3122
3122
|
options
|
|
3123
3123
|
);
|
|
3124
3124
|
}
|
|
3125
3125
|
};
|
|
3126
|
-
var
|
|
3126
|
+
var FeatureFlags = class extends BaseResource {
|
|
3127
3127
|
all(projectId, options) {
|
|
3128
3128
|
return RequestHelper.get()(
|
|
3129
3129
|
this,
|
|
3130
|
-
endpoint`projects/${projectId}/
|
|
3130
|
+
endpoint`projects/${projectId}/feature_flags`,
|
|
3131
3131
|
options
|
|
3132
3132
|
);
|
|
3133
3133
|
}
|
|
3134
|
-
create(projectId,
|
|
3134
|
+
create(projectId, flagName, version, options) {
|
|
3135
3135
|
return RequestHelper.post()(
|
|
3136
3136
|
this,
|
|
3137
|
-
endpoint`projects/${projectId}/
|
|
3137
|
+
endpoint`projects/${projectId}/feature_flags`,
|
|
3138
3138
|
{
|
|
3139
|
-
name,
|
|
3140
|
-
|
|
3139
|
+
name: flagName,
|
|
3140
|
+
version,
|
|
3141
3141
|
...options
|
|
3142
3142
|
}
|
|
3143
3143
|
);
|
|
3144
3144
|
}
|
|
3145
|
-
edit(projectId,
|
|
3145
|
+
edit(projectId, featureFlagName, options) {
|
|
3146
3146
|
return RequestHelper.put()(
|
|
3147
3147
|
this,
|
|
3148
|
-
endpoint`projects/${projectId}/
|
|
3148
|
+
endpoint`projects/${projectId}/feature_flags/${featureFlagName}`,
|
|
3149
3149
|
options
|
|
3150
3150
|
);
|
|
3151
3151
|
}
|
|
3152
|
-
remove(projectId,
|
|
3152
|
+
remove(projectId, flagName, options) {
|
|
3153
3153
|
return RequestHelper.del()(
|
|
3154
3154
|
this,
|
|
3155
|
-
endpoint`projects/${projectId}/
|
|
3155
|
+
endpoint`projects/${projectId}/feature_flags/${flagName}`,
|
|
3156
3156
|
options
|
|
3157
3157
|
);
|
|
3158
3158
|
}
|
|
3159
|
-
show(projectId,
|
|
3159
|
+
show(projectId, flagName, options) {
|
|
3160
3160
|
return RequestHelper.get()(
|
|
3161
3161
|
this,
|
|
3162
|
-
endpoint`projects/${projectId}/
|
|
3162
|
+
endpoint`projects/${projectId}/feature_flags/${flagName}`,
|
|
3163
3163
|
options
|
|
3164
3164
|
);
|
|
3165
3165
|
}
|
|
@@ -3373,6 +3373,20 @@ var IssueNotes = class extends ResourceNotes {
|
|
|
3373
3373
|
super("projects", "issues", options);
|
|
3374
3374
|
}
|
|
3375
3375
|
};
|
|
3376
|
+
|
|
3377
|
+
// src/resources/IssueStateEvents.ts
|
|
3378
|
+
var IssueStateEvents = class extends ResourceStateEvents {
|
|
3379
|
+
constructor(options) {
|
|
3380
|
+
super("projects", "issues", options);
|
|
3381
|
+
}
|
|
3382
|
+
};
|
|
3383
|
+
|
|
3384
|
+
// src/resources/IssueWeightEvents.ts
|
|
3385
|
+
var IssueWeightEvents = class extends ResourceStateEvents {
|
|
3386
|
+
constructor(options) {
|
|
3387
|
+
super("projects", "issues", options);
|
|
3388
|
+
}
|
|
3389
|
+
};
|
|
3376
3390
|
var Issues = class extends BaseResource {
|
|
3377
3391
|
addSpentTime(projectId, issueIId, duration, options) {
|
|
3378
3392
|
return RequestHelper.post()(
|
|
@@ -3588,20 +3602,6 @@ var IssuesStatistics = class extends BaseResource {
|
|
|
3588
3602
|
return RequestHelper.get()(this, url12, options);
|
|
3589
3603
|
}
|
|
3590
3604
|
};
|
|
3591
|
-
|
|
3592
|
-
// src/resources/IssueStateEvents.ts
|
|
3593
|
-
var IssueStateEvents = class extends ResourceStateEvents {
|
|
3594
|
-
constructor(options) {
|
|
3595
|
-
super("projects", "issues", options);
|
|
3596
|
-
}
|
|
3597
|
-
};
|
|
3598
|
-
|
|
3599
|
-
// src/resources/IssueWeightEvents.ts
|
|
3600
|
-
var IssueWeightEvents = class extends ResourceStateEvents {
|
|
3601
|
-
constructor(options) {
|
|
3602
|
-
super("projects", "issues", options);
|
|
3603
|
-
}
|
|
3604
|
-
};
|
|
3605
3605
|
function generateDownloadPathForJob(projectId, jobId, artifactPath) {
|
|
3606
3606
|
let url12 = endpoint`projects/${projectId}/jobs/${jobId}/artifacts`;
|
|
3607
3607
|
if (artifactPath)
|
|
@@ -3859,20 +3859,6 @@ var MergeRequestDiscussions = class extends ResourceDiscussions {
|
|
|
3859
3859
|
);
|
|
3860
3860
|
}
|
|
3861
3861
|
};
|
|
3862
|
-
|
|
3863
|
-
// src/resources/MergeRequestLabelEvents.ts
|
|
3864
|
-
var MergeRequestLabelEvents = class extends ResourceLabelEvents {
|
|
3865
|
-
constructor(options) {
|
|
3866
|
-
super("projects", "merge_requests", options);
|
|
3867
|
-
}
|
|
3868
|
-
};
|
|
3869
|
-
|
|
3870
|
-
// src/resources/MergeRequestMilestoneEvents.ts
|
|
3871
|
-
var MergeRequestMilestoneEvents = class extends ResourceMilestoneEvents {
|
|
3872
|
-
constructor(options) {
|
|
3873
|
-
super("projects", "merge_requests", options);
|
|
3874
|
-
}
|
|
3875
|
-
};
|
|
3876
3862
|
var MergeRequestDraftNotes = class extends BaseResource {
|
|
3877
3863
|
all(projectId, mergerequestIId, options) {
|
|
3878
3864
|
return RequestHelper.get()(
|
|
@@ -3928,8 +3914,15 @@ var MergeRequestDraftNotes = class extends BaseResource {
|
|
|
3928
3914
|
}
|
|
3929
3915
|
};
|
|
3930
3916
|
|
|
3931
|
-
// src/resources/
|
|
3932
|
-
var
|
|
3917
|
+
// src/resources/MergeRequestLabelEvents.ts
|
|
3918
|
+
var MergeRequestLabelEvents = class extends ResourceLabelEvents {
|
|
3919
|
+
constructor(options) {
|
|
3920
|
+
super("projects", "merge_requests", options);
|
|
3921
|
+
}
|
|
3922
|
+
};
|
|
3923
|
+
|
|
3924
|
+
// src/resources/MergeRequestMilestoneEvents.ts
|
|
3925
|
+
var MergeRequestMilestoneEvents = class extends ResourceMilestoneEvents {
|
|
3933
3926
|
constructor(options) {
|
|
3934
3927
|
super("projects", "merge_requests", options);
|
|
3935
3928
|
}
|
|
@@ -3941,6 +3934,13 @@ var MergeRequestNoteAwardEmojis = class extends ResourceNoteAwardEmojis {
|
|
|
3941
3934
|
super("merge_requests", options);
|
|
3942
3935
|
}
|
|
3943
3936
|
};
|
|
3937
|
+
|
|
3938
|
+
// src/resources/MergeRequestNotes.ts
|
|
3939
|
+
var MergeRequestNotes = class extends ResourceNotes {
|
|
3940
|
+
constructor(options) {
|
|
3941
|
+
super("projects", "merge_requests", options);
|
|
3942
|
+
}
|
|
3943
|
+
};
|
|
3944
3944
|
var MergeRequests = class extends BaseResource {
|
|
3945
3945
|
// convenience method
|
|
3946
3946
|
accept(projectId, mergerequestIId, options) {
|
|
@@ -4283,70 +4283,39 @@ var PagesDomains = class extends BaseResource {
|
|
|
4283
4283
|
);
|
|
4284
4284
|
}
|
|
4285
4285
|
};
|
|
4286
|
-
var
|
|
4287
|
-
all(projectId, options) {
|
|
4288
|
-
return RequestHelper.get()(
|
|
4289
|
-
this,
|
|
4290
|
-
endpoint`projects/${projectId}/pipelines`,
|
|
4291
|
-
options
|
|
4292
|
-
);
|
|
4293
|
-
}
|
|
4294
|
-
allVariables(projectId, pipelineId, options) {
|
|
4286
|
+
var PipelineScheduleVariables = class extends BaseResource {
|
|
4287
|
+
all(projectId, pipelineScheduleId, options) {
|
|
4295
4288
|
return RequestHelper.get()(
|
|
4296
4289
|
this,
|
|
4297
|
-
endpoint`projects/${projectId}/
|
|
4290
|
+
endpoint`projects/${projectId}/pipeline_schedules/${pipelineScheduleId}/variables`,
|
|
4298
4291
|
options
|
|
4299
4292
|
);
|
|
4300
4293
|
}
|
|
4301
|
-
|
|
4294
|
+
create(projectId, pipelineScheduleId, key, value, options) {
|
|
4302
4295
|
return RequestHelper.post()(
|
|
4303
4296
|
this,
|
|
4304
|
-
endpoint`projects/${projectId}/
|
|
4305
|
-
|
|
4297
|
+
endpoint`projects/${projectId}/pipeline_schedules/${pipelineScheduleId}/variables`,
|
|
4298
|
+
{
|
|
4299
|
+
...options,
|
|
4300
|
+
key,
|
|
4301
|
+
value
|
|
4302
|
+
}
|
|
4306
4303
|
);
|
|
4307
4304
|
}
|
|
4308
|
-
|
|
4309
|
-
return RequestHelper.
|
|
4305
|
+
edit(projectId, pipelineScheduleId, key, value, options) {
|
|
4306
|
+
return RequestHelper.put()(
|
|
4310
4307
|
this,
|
|
4311
|
-
endpoint`projects/${projectId}/
|
|
4308
|
+
endpoint`projects/${projectId}/pipeline_schedules/${pipelineScheduleId}/variables/${key}`,
|
|
4312
4309
|
{
|
|
4313
|
-
|
|
4314
|
-
|
|
4310
|
+
...options,
|
|
4311
|
+
value
|
|
4315
4312
|
}
|
|
4316
4313
|
);
|
|
4317
4314
|
}
|
|
4318
|
-
remove(projectId,
|
|
4315
|
+
remove(projectId, pipelineScheduleId, key, options) {
|
|
4319
4316
|
return RequestHelper.del()(
|
|
4320
4317
|
this,
|
|
4321
|
-
endpoint`projects/${projectId}/
|
|
4322
|
-
options
|
|
4323
|
-
);
|
|
4324
|
-
}
|
|
4325
|
-
retry(projectId, pipelineId, options) {
|
|
4326
|
-
return RequestHelper.post()(
|
|
4327
|
-
this,
|
|
4328
|
-
endpoint`projects/${projectId}/pipelines/${pipelineId}/retry`,
|
|
4329
|
-
options
|
|
4330
|
-
);
|
|
4331
|
-
}
|
|
4332
|
-
show(projectId, pipelineId, options) {
|
|
4333
|
-
return RequestHelper.get()(
|
|
4334
|
-
this,
|
|
4335
|
-
endpoint`projects/${projectId}/pipelines/${pipelineId}`,
|
|
4336
|
-
options
|
|
4337
|
-
);
|
|
4338
|
-
}
|
|
4339
|
-
showTestReport(projectId, pipelineId, options) {
|
|
4340
|
-
return RequestHelper.get()(
|
|
4341
|
-
this,
|
|
4342
|
-
endpoint`projects/${projectId}/pipelines/${pipelineId}/test_report`,
|
|
4343
|
-
options
|
|
4344
|
-
);
|
|
4345
|
-
}
|
|
4346
|
-
showTestReportSummary(projectId, pipelineId, options) {
|
|
4347
|
-
return RequestHelper.get()(
|
|
4348
|
-
this,
|
|
4349
|
-
endpoint`projects/${projectId}/pipelines/${pipelineId}/test_report_summary`,
|
|
4318
|
+
endpoint`projects/${projectId}/pipeline_schedules/${pipelineScheduleId}/variables/${key}`,
|
|
4350
4319
|
options
|
|
4351
4320
|
);
|
|
4352
4321
|
}
|
|
@@ -4414,43 +4383,6 @@ var PipelineSchedules = class extends BaseResource {
|
|
|
4414
4383
|
);
|
|
4415
4384
|
}
|
|
4416
4385
|
};
|
|
4417
|
-
var PipelineScheduleVariables = class extends BaseResource {
|
|
4418
|
-
all(projectId, pipelineScheduleId, options) {
|
|
4419
|
-
return RequestHelper.get()(
|
|
4420
|
-
this,
|
|
4421
|
-
endpoint`projects/${projectId}/pipeline_schedules/${pipelineScheduleId}/variables`,
|
|
4422
|
-
options
|
|
4423
|
-
);
|
|
4424
|
-
}
|
|
4425
|
-
create(projectId, pipelineScheduleId, key, value, options) {
|
|
4426
|
-
return RequestHelper.post()(
|
|
4427
|
-
this,
|
|
4428
|
-
endpoint`projects/${projectId}/pipeline_schedules/${pipelineScheduleId}/variables`,
|
|
4429
|
-
{
|
|
4430
|
-
...options,
|
|
4431
|
-
key,
|
|
4432
|
-
value
|
|
4433
|
-
}
|
|
4434
|
-
);
|
|
4435
|
-
}
|
|
4436
|
-
edit(projectId, pipelineScheduleId, key, value, options) {
|
|
4437
|
-
return RequestHelper.put()(
|
|
4438
|
-
this,
|
|
4439
|
-
endpoint`projects/${projectId}/pipeline_schedules/${pipelineScheduleId}/variables/${key}`,
|
|
4440
|
-
{
|
|
4441
|
-
...options,
|
|
4442
|
-
value
|
|
4443
|
-
}
|
|
4444
|
-
);
|
|
4445
|
-
}
|
|
4446
|
-
remove(projectId, pipelineScheduleId, key, options) {
|
|
4447
|
-
return RequestHelper.del()(
|
|
4448
|
-
this,
|
|
4449
|
-
endpoint`projects/${projectId}/pipeline_schedules/${pipelineScheduleId}/variables/${key}`,
|
|
4450
|
-
options
|
|
4451
|
-
);
|
|
4452
|
-
}
|
|
4453
|
-
};
|
|
4454
4386
|
var PipelineTriggerTokens = class extends BaseResource {
|
|
4455
4387
|
all(projectId, options) {
|
|
4456
4388
|
return RequestHelper.get()(
|
|
@@ -4509,6 +4441,74 @@ var PipelineTriggerTokens = class extends BaseResource {
|
|
|
4509
4441
|
);
|
|
4510
4442
|
}
|
|
4511
4443
|
};
|
|
4444
|
+
var Pipelines = class extends BaseResource {
|
|
4445
|
+
all(projectId, options) {
|
|
4446
|
+
return RequestHelper.get()(
|
|
4447
|
+
this,
|
|
4448
|
+
endpoint`projects/${projectId}/pipelines`,
|
|
4449
|
+
options
|
|
4450
|
+
);
|
|
4451
|
+
}
|
|
4452
|
+
allVariables(projectId, pipelineId, options) {
|
|
4453
|
+
return RequestHelper.get()(
|
|
4454
|
+
this,
|
|
4455
|
+
endpoint`projects/${projectId}/pipelines/${pipelineId}/variables`,
|
|
4456
|
+
options
|
|
4457
|
+
);
|
|
4458
|
+
}
|
|
4459
|
+
cancel(projectId, pipelineId, options) {
|
|
4460
|
+
return RequestHelper.post()(
|
|
4461
|
+
this,
|
|
4462
|
+
endpoint`projects/${projectId}/pipelines/${pipelineId}/cancel`,
|
|
4463
|
+
options
|
|
4464
|
+
);
|
|
4465
|
+
}
|
|
4466
|
+
create(projectId, ref, options) {
|
|
4467
|
+
return RequestHelper.post()(
|
|
4468
|
+
this,
|
|
4469
|
+
endpoint`projects/${projectId}/pipeline`,
|
|
4470
|
+
{
|
|
4471
|
+
ref,
|
|
4472
|
+
...options
|
|
4473
|
+
}
|
|
4474
|
+
);
|
|
4475
|
+
}
|
|
4476
|
+
remove(projectId, pipelineId, options) {
|
|
4477
|
+
return RequestHelper.del()(
|
|
4478
|
+
this,
|
|
4479
|
+
endpoint`projects/${projectId}/pipelines/${pipelineId}`,
|
|
4480
|
+
options
|
|
4481
|
+
);
|
|
4482
|
+
}
|
|
4483
|
+
retry(projectId, pipelineId, options) {
|
|
4484
|
+
return RequestHelper.post()(
|
|
4485
|
+
this,
|
|
4486
|
+
endpoint`projects/${projectId}/pipelines/${pipelineId}/retry`,
|
|
4487
|
+
options
|
|
4488
|
+
);
|
|
4489
|
+
}
|
|
4490
|
+
show(projectId, pipelineId, options) {
|
|
4491
|
+
return RequestHelper.get()(
|
|
4492
|
+
this,
|
|
4493
|
+
endpoint`projects/${projectId}/pipelines/${pipelineId}`,
|
|
4494
|
+
options
|
|
4495
|
+
);
|
|
4496
|
+
}
|
|
4497
|
+
showTestReport(projectId, pipelineId, options) {
|
|
4498
|
+
return RequestHelper.get()(
|
|
4499
|
+
this,
|
|
4500
|
+
endpoint`projects/${projectId}/pipelines/${pipelineId}/test_report`,
|
|
4501
|
+
options
|
|
4502
|
+
);
|
|
4503
|
+
}
|
|
4504
|
+
showTestReportSummary(projectId, pipelineId, options) {
|
|
4505
|
+
return RequestHelper.get()(
|
|
4506
|
+
this,
|
|
4507
|
+
endpoint`projects/${projectId}/pipelines/${pipelineId}/test_report_summary`,
|
|
4508
|
+
options
|
|
4509
|
+
);
|
|
4510
|
+
}
|
|
4511
|
+
};
|
|
4512
4512
|
var ProductAnalytics = class extends BaseResource {
|
|
4513
4513
|
allFunnels(projectId, options) {
|
|
4514
4514
|
return RequestHelper.get()(
|
|
@@ -4866,104 +4866,246 @@ var ProjectRepositoryStorageMoves = class extends ResourceRepositoryStorageMoves
|
|
|
4866
4866
|
super("projects", options);
|
|
4867
4867
|
}
|
|
4868
4868
|
};
|
|
4869
|
-
|
|
4870
|
-
|
|
4871
|
-
|
|
4872
|
-
|
|
4873
|
-
|
|
4874
|
-
} = {}) {
|
|
4875
|
-
let uri;
|
|
4876
|
-
if (userId && starredOnly)
|
|
4877
|
-
uri = endpoint`users/${userId}/starred_projects`;
|
|
4878
|
-
else if (userId)
|
|
4879
|
-
uri = endpoint`users/${userId}/projects`;
|
|
4880
|
-
else
|
|
4881
|
-
uri = "projects";
|
|
4882
|
-
return RequestHelper.get()(this, uri, options);
|
|
4869
|
+
|
|
4870
|
+
// src/resources/ProjectSnippetAwardEmojis.ts
|
|
4871
|
+
var ProjectSnippetAwardEmojis = class extends ResourceAwardEmojis {
|
|
4872
|
+
constructor(options) {
|
|
4873
|
+
super("projects", "snippets", options);
|
|
4883
4874
|
}
|
|
4884
|
-
|
|
4875
|
+
};
|
|
4876
|
+
|
|
4877
|
+
// src/resources/ProjectSnippetDiscussions.ts
|
|
4878
|
+
var ProjectSnippetDiscussions = class extends ResourceDiscussions {
|
|
4879
|
+
constructor(options) {
|
|
4880
|
+
super("projects", "snippets", options);
|
|
4881
|
+
}
|
|
4882
|
+
};
|
|
4883
|
+
|
|
4884
|
+
// src/resources/ProjectSnippetNotes.ts
|
|
4885
|
+
var ProjectSnippetNotes = class extends ResourceNotes {
|
|
4886
|
+
constructor(options) {
|
|
4887
|
+
super("projects", "snippets", options);
|
|
4888
|
+
}
|
|
4889
|
+
};
|
|
4890
|
+
var ProjectSnippets = class extends BaseResource {
|
|
4891
|
+
all(projectId, options) {
|
|
4885
4892
|
return RequestHelper.get()(
|
|
4886
4893
|
this,
|
|
4887
|
-
endpoint`projects/${projectId}/
|
|
4894
|
+
endpoint`projects/${projectId}/snippets`,
|
|
4888
4895
|
options
|
|
4889
4896
|
);
|
|
4890
4897
|
}
|
|
4891
|
-
|
|
4892
|
-
return RequestHelper.
|
|
4898
|
+
create(projectId, title, options) {
|
|
4899
|
+
return RequestHelper.post()(
|
|
4893
4900
|
this,
|
|
4894
|
-
endpoint`projects/${projectId}/
|
|
4901
|
+
endpoint`projects/${projectId}/snippets`,
|
|
4902
|
+
{
|
|
4903
|
+
title,
|
|
4904
|
+
...options
|
|
4905
|
+
}
|
|
4906
|
+
);
|
|
4907
|
+
}
|
|
4908
|
+
edit(projectId, snippetId, options) {
|
|
4909
|
+
return RequestHelper.put()(
|
|
4910
|
+
this,
|
|
4911
|
+
endpoint`projects/${projectId}/snippets/${snippetId}`,
|
|
4895
4912
|
options
|
|
4896
4913
|
);
|
|
4897
4914
|
}
|
|
4898
|
-
|
|
4899
|
-
return RequestHelper.
|
|
4915
|
+
remove(projectId, snippetId, options) {
|
|
4916
|
+
return RequestHelper.del()(
|
|
4900
4917
|
this,
|
|
4901
|
-
endpoint`projects/${projectId}/
|
|
4918
|
+
endpoint`projects/${projectId}/snippets/${snippetId}`,
|
|
4902
4919
|
options
|
|
4903
4920
|
);
|
|
4904
4921
|
}
|
|
4905
|
-
|
|
4922
|
+
show(projectId, snippetId, options) {
|
|
4906
4923
|
return RequestHelper.get()(
|
|
4907
4924
|
this,
|
|
4908
|
-
endpoint`projects/${projectId}/
|
|
4925
|
+
endpoint`projects/${projectId}/snippets/${snippetId}`,
|
|
4909
4926
|
options
|
|
4910
4927
|
);
|
|
4911
4928
|
}
|
|
4912
|
-
|
|
4929
|
+
showContent(projectId, snippetId, options) {
|
|
4913
4930
|
return RequestHelper.get()(
|
|
4914
4931
|
this,
|
|
4915
|
-
endpoint`projects/${projectId}/
|
|
4932
|
+
endpoint`projects/${projectId}/snippets/${snippetId}/raw`,
|
|
4916
4933
|
options
|
|
4917
4934
|
);
|
|
4918
4935
|
}
|
|
4919
|
-
|
|
4936
|
+
showRepositoryFileContent(projectId, snippetId, ref, filePath, options) {
|
|
4920
4937
|
return RequestHelper.get()(
|
|
4921
4938
|
this,
|
|
4922
|
-
endpoint`projects/${projectId}/
|
|
4939
|
+
endpoint`projects/${projectId}/snippets/${snippetId}/files/${ref}/${filePath}/raw`,
|
|
4923
4940
|
options
|
|
4924
4941
|
);
|
|
4925
4942
|
}
|
|
4926
|
-
|
|
4943
|
+
showUserAgentDetails(projectId, snippetId, options) {
|
|
4927
4944
|
return RequestHelper.get()(
|
|
4928
4945
|
this,
|
|
4929
|
-
endpoint`projects/${projectId}/
|
|
4946
|
+
endpoint`projects/${projectId}/snippets/${snippetId}/user_agent_detail`,
|
|
4930
4947
|
options
|
|
4931
4948
|
);
|
|
4932
4949
|
}
|
|
4933
|
-
|
|
4934
|
-
|
|
4950
|
+
};
|
|
4951
|
+
var ProjectStatistics = class extends BaseResource {
|
|
4952
|
+
show(projectId, options) {
|
|
4953
|
+
return RequestHelper.get()(
|
|
4935
4954
|
this,
|
|
4936
|
-
endpoint`projects/${projectId}/
|
|
4955
|
+
endpoint`projects/${projectId}/statistics`,
|
|
4937
4956
|
options
|
|
4938
4957
|
);
|
|
4939
4958
|
}
|
|
4940
|
-
|
|
4941
|
-
|
|
4942
|
-
|
|
4943
|
-
|
|
4944
|
-
} = {}) {
|
|
4945
|
-
const url12 = userId ? `projects/user/${userId}` : "projects";
|
|
4946
|
-
if (avatar) {
|
|
4947
|
-
return RequestHelper.post()(this, url12, {
|
|
4948
|
-
...options,
|
|
4949
|
-
isForm: true,
|
|
4950
|
-
avatar: [avatar.content, avatar.filename]
|
|
4951
|
-
});
|
|
4952
|
-
}
|
|
4953
|
-
return RequestHelper.post()(this, url12, { ...options, avatar });
|
|
4954
|
-
}
|
|
4955
|
-
createForkRelationship(projectId, forkedFromId, options) {
|
|
4956
|
-
return RequestHelper.post()(
|
|
4959
|
+
};
|
|
4960
|
+
var ProjectTemplates = class extends BaseResource {
|
|
4961
|
+
all(projectId, type, options) {
|
|
4962
|
+
return RequestHelper.get()(
|
|
4957
4963
|
this,
|
|
4958
|
-
endpoint`projects/${projectId}/
|
|
4964
|
+
endpoint`projects/${projectId}/templates/${type}`,
|
|
4959
4965
|
options
|
|
4960
4966
|
);
|
|
4961
4967
|
}
|
|
4962
|
-
|
|
4963
|
-
|
|
4964
|
-
return RequestHelper.post()(
|
|
4968
|
+
show(projectId, type, name, options) {
|
|
4969
|
+
return RequestHelper.get()(
|
|
4965
4970
|
this,
|
|
4966
|
-
endpoint`projects/${projectId}/
|
|
4971
|
+
endpoint`projects/${projectId}/templates/${type}/${name}`,
|
|
4972
|
+
options
|
|
4973
|
+
);
|
|
4974
|
+
}
|
|
4975
|
+
};
|
|
4976
|
+
|
|
4977
|
+
// src/resources/ProjectVariables.ts
|
|
4978
|
+
var ProjectVariables = class extends ResourceVariables {
|
|
4979
|
+
constructor(options) {
|
|
4980
|
+
super("projects", options);
|
|
4981
|
+
}
|
|
4982
|
+
};
|
|
4983
|
+
var ProjectVulnerabilities = class extends BaseResource {
|
|
4984
|
+
all(projectId, options) {
|
|
4985
|
+
return RequestHelper.get()(
|
|
4986
|
+
this,
|
|
4987
|
+
endpoint`projects/${projectId}/vulnerabilities`,
|
|
4988
|
+
options
|
|
4989
|
+
);
|
|
4990
|
+
}
|
|
4991
|
+
create(projectId, findingId, options) {
|
|
4992
|
+
return RequestHelper.post()(
|
|
4993
|
+
this,
|
|
4994
|
+
endpoint`projects/${projectId}/vulnerabilities`,
|
|
4995
|
+
{
|
|
4996
|
+
...options,
|
|
4997
|
+
searchParams: {
|
|
4998
|
+
findingId
|
|
4999
|
+
}
|
|
5000
|
+
}
|
|
5001
|
+
);
|
|
5002
|
+
}
|
|
5003
|
+
};
|
|
5004
|
+
|
|
5005
|
+
// src/resources/ProjectWikis.ts
|
|
5006
|
+
var ProjectWikis = class extends ResourceWikis {
|
|
5007
|
+
constructor(options) {
|
|
5008
|
+
super("projects", options);
|
|
5009
|
+
}
|
|
5010
|
+
};
|
|
5011
|
+
var Projects = class extends BaseResource {
|
|
5012
|
+
all({
|
|
5013
|
+
userId,
|
|
5014
|
+
starredOnly,
|
|
5015
|
+
...options
|
|
5016
|
+
} = {}) {
|
|
5017
|
+
let uri;
|
|
5018
|
+
if (userId && starredOnly)
|
|
5019
|
+
uri = endpoint`users/${userId}/starred_projects`;
|
|
5020
|
+
else if (userId)
|
|
5021
|
+
uri = endpoint`users/${userId}/projects`;
|
|
5022
|
+
else
|
|
5023
|
+
uri = "projects";
|
|
5024
|
+
return RequestHelper.get()(this, uri, options);
|
|
5025
|
+
}
|
|
5026
|
+
allTransferLocations(projectId, options) {
|
|
5027
|
+
return RequestHelper.get()(
|
|
5028
|
+
this,
|
|
5029
|
+
endpoint`projects/${projectId}/transfer_locations`,
|
|
5030
|
+
options
|
|
5031
|
+
);
|
|
5032
|
+
}
|
|
5033
|
+
allUsers(projectId, options) {
|
|
5034
|
+
return RequestHelper.get()(
|
|
5035
|
+
this,
|
|
5036
|
+
endpoint`projects/${projectId}/users`,
|
|
5037
|
+
options
|
|
5038
|
+
);
|
|
5039
|
+
}
|
|
5040
|
+
allGroups(projectId, options) {
|
|
5041
|
+
return RequestHelper.get()(
|
|
5042
|
+
this,
|
|
5043
|
+
endpoint`projects/${projectId}/groups`,
|
|
5044
|
+
options
|
|
5045
|
+
);
|
|
5046
|
+
}
|
|
5047
|
+
allSharableGroups(projectId, options) {
|
|
5048
|
+
return RequestHelper.get()(
|
|
5049
|
+
this,
|
|
5050
|
+
endpoint`projects/${projectId}/share_locations`,
|
|
5051
|
+
options
|
|
5052
|
+
);
|
|
5053
|
+
}
|
|
5054
|
+
allForks(projectId, options) {
|
|
5055
|
+
return RequestHelper.get()(
|
|
5056
|
+
this,
|
|
5057
|
+
endpoint`projects/${projectId}/forks`,
|
|
5058
|
+
options
|
|
5059
|
+
);
|
|
5060
|
+
}
|
|
5061
|
+
allStarrers(projectId, options) {
|
|
5062
|
+
return RequestHelper.get()(
|
|
5063
|
+
this,
|
|
5064
|
+
endpoint`projects/${projectId}/starrers`,
|
|
5065
|
+
options
|
|
5066
|
+
);
|
|
5067
|
+
}
|
|
5068
|
+
allStoragePaths(projectId, options) {
|
|
5069
|
+
return RequestHelper.get()(
|
|
5070
|
+
this,
|
|
5071
|
+
endpoint`projects/${projectId}/storage`,
|
|
5072
|
+
options
|
|
5073
|
+
);
|
|
5074
|
+
}
|
|
5075
|
+
archive(projectId, options) {
|
|
5076
|
+
return RequestHelper.post()(
|
|
5077
|
+
this,
|
|
5078
|
+
endpoint`projects/${projectId}/archive`,
|
|
5079
|
+
options
|
|
5080
|
+
);
|
|
5081
|
+
}
|
|
5082
|
+
create({
|
|
5083
|
+
userId,
|
|
5084
|
+
avatar,
|
|
5085
|
+
...options
|
|
5086
|
+
} = {}) {
|
|
5087
|
+
const url12 = userId ? `projects/user/${userId}` : "projects";
|
|
5088
|
+
if (avatar) {
|
|
5089
|
+
return RequestHelper.post()(this, url12, {
|
|
5090
|
+
...options,
|
|
5091
|
+
isForm: true,
|
|
5092
|
+
avatar: [avatar.content, avatar.filename]
|
|
5093
|
+
});
|
|
5094
|
+
}
|
|
5095
|
+
return RequestHelper.post()(this, url12, { ...options, avatar });
|
|
5096
|
+
}
|
|
5097
|
+
createForkRelationship(projectId, forkedFromId, options) {
|
|
5098
|
+
return RequestHelper.post()(
|
|
5099
|
+
this,
|
|
5100
|
+
endpoint`projects/${projectId}/fork/${forkedFromId}`,
|
|
5101
|
+
options
|
|
5102
|
+
);
|
|
5103
|
+
}
|
|
5104
|
+
// Helper method - Duplicated from ProjectRemoteMirrors
|
|
5105
|
+
createPullMirror(projectId, url12, mirror, options) {
|
|
5106
|
+
return RequestHelper.post()(
|
|
5107
|
+
this,
|
|
5108
|
+
endpoint`projects/${projectId}/mirror/pull`,
|
|
4967
5109
|
{
|
|
4968
5110
|
importUrl: url12,
|
|
4969
5111
|
mirror,
|
|
@@ -5091,148 +5233,6 @@ var Projects = class extends BaseResource {
|
|
|
5091
5233
|
});
|
|
5092
5234
|
}
|
|
5093
5235
|
};
|
|
5094
|
-
|
|
5095
|
-
// src/resources/ProjectSnippetAwardEmojis.ts
|
|
5096
|
-
var ProjectSnippetAwardEmojis = class extends ResourceAwardEmojis {
|
|
5097
|
-
constructor(options) {
|
|
5098
|
-
super("projects", "snippets", options);
|
|
5099
|
-
}
|
|
5100
|
-
};
|
|
5101
|
-
|
|
5102
|
-
// src/resources/ProjectSnippetDiscussions.ts
|
|
5103
|
-
var ProjectSnippetDiscussions = class extends ResourceDiscussions {
|
|
5104
|
-
constructor(options) {
|
|
5105
|
-
super("projects", "snippets", options);
|
|
5106
|
-
}
|
|
5107
|
-
};
|
|
5108
|
-
|
|
5109
|
-
// src/resources/ProjectSnippetNotes.ts
|
|
5110
|
-
var ProjectSnippetNotes = class extends ResourceNotes {
|
|
5111
|
-
constructor(options) {
|
|
5112
|
-
super("projects", "snippets", options);
|
|
5113
|
-
}
|
|
5114
|
-
};
|
|
5115
|
-
var ProjectSnippets = class extends BaseResource {
|
|
5116
|
-
all(projectId, options) {
|
|
5117
|
-
return RequestHelper.get()(
|
|
5118
|
-
this,
|
|
5119
|
-
endpoint`projects/${projectId}/snippets`,
|
|
5120
|
-
options
|
|
5121
|
-
);
|
|
5122
|
-
}
|
|
5123
|
-
create(projectId, title, options) {
|
|
5124
|
-
return RequestHelper.post()(
|
|
5125
|
-
this,
|
|
5126
|
-
endpoint`projects/${projectId}/snippets`,
|
|
5127
|
-
{
|
|
5128
|
-
title,
|
|
5129
|
-
...options
|
|
5130
|
-
}
|
|
5131
|
-
);
|
|
5132
|
-
}
|
|
5133
|
-
edit(projectId, snippetId, options) {
|
|
5134
|
-
return RequestHelper.put()(
|
|
5135
|
-
this,
|
|
5136
|
-
endpoint`projects/${projectId}/snippets/${snippetId}`,
|
|
5137
|
-
options
|
|
5138
|
-
);
|
|
5139
|
-
}
|
|
5140
|
-
remove(projectId, snippetId, options) {
|
|
5141
|
-
return RequestHelper.del()(
|
|
5142
|
-
this,
|
|
5143
|
-
endpoint`projects/${projectId}/snippets/${snippetId}`,
|
|
5144
|
-
options
|
|
5145
|
-
);
|
|
5146
|
-
}
|
|
5147
|
-
show(projectId, snippetId, options) {
|
|
5148
|
-
return RequestHelper.get()(
|
|
5149
|
-
this,
|
|
5150
|
-
endpoint`projects/${projectId}/snippets/${snippetId}`,
|
|
5151
|
-
options
|
|
5152
|
-
);
|
|
5153
|
-
}
|
|
5154
|
-
showContent(projectId, snippetId, options) {
|
|
5155
|
-
return RequestHelper.get()(
|
|
5156
|
-
this,
|
|
5157
|
-
endpoint`projects/${projectId}/snippets/${snippetId}/raw`,
|
|
5158
|
-
options
|
|
5159
|
-
);
|
|
5160
|
-
}
|
|
5161
|
-
showRepositoryFileContent(projectId, snippetId, ref, filePath, options) {
|
|
5162
|
-
return RequestHelper.get()(
|
|
5163
|
-
this,
|
|
5164
|
-
endpoint`projects/${projectId}/snippets/${snippetId}/files/${ref}/${filePath}/raw`,
|
|
5165
|
-
options
|
|
5166
|
-
);
|
|
5167
|
-
}
|
|
5168
|
-
showUserAgentDetails(projectId, snippetId, options) {
|
|
5169
|
-
return RequestHelper.get()(
|
|
5170
|
-
this,
|
|
5171
|
-
endpoint`projects/${projectId}/snippets/${snippetId}/user_agent_detail`,
|
|
5172
|
-
options
|
|
5173
|
-
);
|
|
5174
|
-
}
|
|
5175
|
-
};
|
|
5176
|
-
var ProjectStatistics = class extends BaseResource {
|
|
5177
|
-
show(projectId, options) {
|
|
5178
|
-
return RequestHelper.get()(
|
|
5179
|
-
this,
|
|
5180
|
-
endpoint`projects/${projectId}/statistics`,
|
|
5181
|
-
options
|
|
5182
|
-
);
|
|
5183
|
-
}
|
|
5184
|
-
};
|
|
5185
|
-
var ProjectTemplates = class extends BaseResource {
|
|
5186
|
-
all(projectId, type, options) {
|
|
5187
|
-
return RequestHelper.get()(
|
|
5188
|
-
this,
|
|
5189
|
-
endpoint`projects/${projectId}/templates/${type}`,
|
|
5190
|
-
options
|
|
5191
|
-
);
|
|
5192
|
-
}
|
|
5193
|
-
show(projectId, type, name, options) {
|
|
5194
|
-
return RequestHelper.get()(
|
|
5195
|
-
this,
|
|
5196
|
-
endpoint`projects/${projectId}/templates/${type}/${name}`,
|
|
5197
|
-
options
|
|
5198
|
-
);
|
|
5199
|
-
}
|
|
5200
|
-
};
|
|
5201
|
-
|
|
5202
|
-
// src/resources/ProjectVariables.ts
|
|
5203
|
-
var ProjectVariables = class extends ResourceVariables {
|
|
5204
|
-
constructor(options) {
|
|
5205
|
-
super("projects", options);
|
|
5206
|
-
}
|
|
5207
|
-
};
|
|
5208
|
-
var ProjectVulnerabilities = class extends BaseResource {
|
|
5209
|
-
all(projectId, options) {
|
|
5210
|
-
return RequestHelper.get()(
|
|
5211
|
-
this,
|
|
5212
|
-
endpoint`projects/${projectId}/vulnerabilities`,
|
|
5213
|
-
options
|
|
5214
|
-
);
|
|
5215
|
-
}
|
|
5216
|
-
create(projectId, findingId, options) {
|
|
5217
|
-
return RequestHelper.post()(
|
|
5218
|
-
this,
|
|
5219
|
-
endpoint`projects/${projectId}/vulnerabilities`,
|
|
5220
|
-
{
|
|
5221
|
-
...options,
|
|
5222
|
-
searchParams: {
|
|
5223
|
-
findingId
|
|
5224
|
-
}
|
|
5225
|
-
}
|
|
5226
|
-
);
|
|
5227
|
-
}
|
|
5228
|
-
};
|
|
5229
|
-
|
|
5230
|
-
// src/resources/ProjectWikis.ts
|
|
5231
|
-
var ProjectWikis = class extends ResourceWikis {
|
|
5232
|
-
constructor(options) {
|
|
5233
|
-
super("projects", options);
|
|
5234
|
-
}
|
|
5235
|
-
};
|
|
5236
5236
|
var ProtectedBranches = class extends BaseResource {
|
|
5237
5237
|
all(projectId, options) {
|
|
5238
5238
|
return RequestHelper.get()(
|
|
@@ -6030,13 +6030,6 @@ var GroupIterations = class extends ResourceIterations {
|
|
|
6030
6030
|
super("groups", options);
|
|
6031
6031
|
}
|
|
6032
6032
|
};
|
|
6033
|
-
|
|
6034
|
-
// src/resources/GroupLabels.ts
|
|
6035
|
-
var GroupLabels = class extends ResourceLabels {
|
|
6036
|
-
constructor(options) {
|
|
6037
|
-
super("groups", options);
|
|
6038
|
-
}
|
|
6039
|
-
};
|
|
6040
6033
|
var GroupLDAPLinks = class extends BaseResource {
|
|
6041
6034
|
add(groupId, groupAccess, provider, options) {
|
|
6042
6035
|
return RequestHelper.post()(this, endpoint`groups/${groupId}/ldap_group_links`, {
|
|
@@ -6063,6 +6056,35 @@ var GroupLDAPLinks = class extends BaseResource {
|
|
|
6063
6056
|
}
|
|
6064
6057
|
};
|
|
6065
6058
|
|
|
6059
|
+
// src/resources/GroupLabels.ts
|
|
6060
|
+
var GroupLabels = class extends ResourceLabels {
|
|
6061
|
+
constructor(options) {
|
|
6062
|
+
super("groups", options);
|
|
6063
|
+
}
|
|
6064
|
+
};
|
|
6065
|
+
var GroupMemberRoles = class extends BaseResource {
|
|
6066
|
+
add(groupId, baseAccessLevel, options) {
|
|
6067
|
+
return RequestHelper.post()(this, endpoint`groups/${groupId}/members`, {
|
|
6068
|
+
baseAccessLevel,
|
|
6069
|
+
...options
|
|
6070
|
+
});
|
|
6071
|
+
}
|
|
6072
|
+
all(groupId, options) {
|
|
6073
|
+
return RequestHelper.get()(
|
|
6074
|
+
this,
|
|
6075
|
+
endpoint`groups/${groupId}/member_roles`,
|
|
6076
|
+
options
|
|
6077
|
+
);
|
|
6078
|
+
}
|
|
6079
|
+
remove(groupId, memberRoleId, options) {
|
|
6080
|
+
return RequestHelper.del()(
|
|
6081
|
+
this,
|
|
6082
|
+
endpoint`groups/${groupId}/member_roles/${memberRoleId}`,
|
|
6083
|
+
options
|
|
6084
|
+
);
|
|
6085
|
+
}
|
|
6086
|
+
};
|
|
6087
|
+
|
|
6066
6088
|
// src/resources/GroupMembers.ts
|
|
6067
6089
|
var GroupMembers = class extends ResourceMembers {
|
|
6068
6090
|
constructor(options) {
|
|
@@ -6112,88 +6134,169 @@ var GroupMembers = class extends ResourceMembers {
|
|
|
6112
6134
|
setOverrideFlag(groupId, userId, options) {
|
|
6113
6135
|
return RequestHelper.post()(
|
|
6114
6136
|
this,
|
|
6115
|
-
endpoint`${groupId}/members/${userId}/override`,
|
|
6137
|
+
endpoint`${groupId}/members/${userId}/override`,
|
|
6138
|
+
options
|
|
6139
|
+
);
|
|
6140
|
+
}
|
|
6141
|
+
};
|
|
6142
|
+
|
|
6143
|
+
// src/resources/GroupMilestones.ts
|
|
6144
|
+
var GroupMilestones = class extends ResourceMilestones {
|
|
6145
|
+
constructor(options) {
|
|
6146
|
+
super("groups", options);
|
|
6147
|
+
}
|
|
6148
|
+
};
|
|
6149
|
+
|
|
6150
|
+
// src/resources/GroupProtectedEnvironments.ts
|
|
6151
|
+
var GroupProtectedEnvironments = class extends ResourceProtectedEnvironments {
|
|
6152
|
+
constructor(options) {
|
|
6153
|
+
super("groups", options);
|
|
6154
|
+
}
|
|
6155
|
+
};
|
|
6156
|
+
|
|
6157
|
+
// src/resources/GroupPushRules.ts
|
|
6158
|
+
var GroupPushRules = class extends ResourcePushRules {
|
|
6159
|
+
constructor(options) {
|
|
6160
|
+
super("groups", options);
|
|
6161
|
+
}
|
|
6162
|
+
};
|
|
6163
|
+
var GroupRelationExports = class extends BaseResource {
|
|
6164
|
+
download(groupId, relation, options) {
|
|
6165
|
+
return RequestHelper.get()(this, endpoint`groups/${groupId}/export_relations/download`, {
|
|
6166
|
+
searchParams: { relation },
|
|
6167
|
+
...options
|
|
6168
|
+
});
|
|
6169
|
+
}
|
|
6170
|
+
exportStatus(groupId, options) {
|
|
6171
|
+
return RequestHelper.get()(
|
|
6172
|
+
this,
|
|
6173
|
+
endpoint`groups/${groupId}/export_relations`,
|
|
6174
|
+
options
|
|
6175
|
+
);
|
|
6176
|
+
}
|
|
6177
|
+
scheduleExport(groupId, options) {
|
|
6178
|
+
return RequestHelper.post()(
|
|
6179
|
+
this,
|
|
6180
|
+
endpoint`groups/${groupId}/export_relations`,
|
|
6181
|
+
options
|
|
6182
|
+
);
|
|
6183
|
+
}
|
|
6184
|
+
};
|
|
6185
|
+
var GroupReleases = class extends BaseResource {
|
|
6186
|
+
all(groupId, options) {
|
|
6187
|
+
return RequestHelper.get()(
|
|
6188
|
+
this,
|
|
6189
|
+
endpoint`groups/${groupId}/releases`,
|
|
6190
|
+
options
|
|
6191
|
+
);
|
|
6192
|
+
}
|
|
6193
|
+
};
|
|
6194
|
+
|
|
6195
|
+
// src/resources/GroupRepositoryStorageMoves.ts
|
|
6196
|
+
var GroupRepositoryStorageMoves = class extends ResourceRepositoryStorageMoves {
|
|
6197
|
+
constructor(options) {
|
|
6198
|
+
super("groups", options);
|
|
6199
|
+
}
|
|
6200
|
+
};
|
|
6201
|
+
var GroupSAMLIdentities = class extends BaseResource {
|
|
6202
|
+
all(groupId, options) {
|
|
6203
|
+
return RequestHelper.get()(
|
|
6204
|
+
this,
|
|
6205
|
+
endpoint`groups/${groupId}/saml/identities`,
|
|
6206
|
+
options
|
|
6207
|
+
);
|
|
6208
|
+
}
|
|
6209
|
+
edit(groupId, identityId, options) {
|
|
6210
|
+
return RequestHelper.patch()(
|
|
6211
|
+
this,
|
|
6212
|
+
endpoint`groups/${groupId}/saml/${identityId}`,
|
|
6213
|
+
options
|
|
6214
|
+
);
|
|
6215
|
+
}
|
|
6216
|
+
};
|
|
6217
|
+
var GroupSAMLLinks = class extends BaseResource {
|
|
6218
|
+
all(groupId, options) {
|
|
6219
|
+
return RequestHelper.get()(
|
|
6220
|
+
this,
|
|
6221
|
+
endpoint`groups/${groupId}/saml_group_links`,
|
|
6222
|
+
options
|
|
6223
|
+
);
|
|
6224
|
+
}
|
|
6225
|
+
create(groupId, samlGroupName, accessLevel, options) {
|
|
6226
|
+
return RequestHelper.post()(
|
|
6227
|
+
this,
|
|
6228
|
+
endpoint`groups/${groupId}/saml_group_links`,
|
|
6229
|
+
{
|
|
6230
|
+
accessLevel,
|
|
6231
|
+
samlGroupName,
|
|
6232
|
+
...options
|
|
6233
|
+
}
|
|
6234
|
+
);
|
|
6235
|
+
}
|
|
6236
|
+
remove(groupId, samlGroupName, options) {
|
|
6237
|
+
return RequestHelper.del()(
|
|
6238
|
+
this,
|
|
6239
|
+
endpoint`groups/${groupId}/saml_group_links/${samlGroupName}`,
|
|
6240
|
+
options
|
|
6241
|
+
);
|
|
6242
|
+
}
|
|
6243
|
+
show(groupId, samlGroupName, options) {
|
|
6244
|
+
return RequestHelper.get()(
|
|
6245
|
+
this,
|
|
6246
|
+
endpoint`groups/${groupId}/saml_group_links/${samlGroupName}`,
|
|
6116
6247
|
options
|
|
6117
6248
|
);
|
|
6118
6249
|
}
|
|
6119
6250
|
};
|
|
6120
|
-
var
|
|
6121
|
-
add(groupId, baseAccessLevel, options) {
|
|
6122
|
-
return RequestHelper.post()(this, endpoint`groups/${groupId}/members`, {
|
|
6123
|
-
baseAccessLevel,
|
|
6124
|
-
...options
|
|
6125
|
-
});
|
|
6126
|
-
}
|
|
6251
|
+
var GroupSCIMIdentities = class extends BaseResource {
|
|
6127
6252
|
all(groupId, options) {
|
|
6128
6253
|
return RequestHelper.get()(
|
|
6129
6254
|
this,
|
|
6130
|
-
endpoint`groups/${groupId}/
|
|
6255
|
+
endpoint`groups/${groupId}/scim/identities`,
|
|
6131
6256
|
options
|
|
6132
6257
|
);
|
|
6133
6258
|
}
|
|
6134
|
-
|
|
6135
|
-
return RequestHelper.
|
|
6259
|
+
edit(groupId, identityId, options) {
|
|
6260
|
+
return RequestHelper.patch()(
|
|
6136
6261
|
this,
|
|
6137
|
-
endpoint`groups/${groupId}/
|
|
6262
|
+
endpoint`groups/${groupId}/scim/${identityId}`,
|
|
6138
6263
|
options
|
|
6139
6264
|
);
|
|
6140
6265
|
}
|
|
6141
6266
|
};
|
|
6142
|
-
|
|
6143
|
-
|
|
6144
|
-
|
|
6145
|
-
constructor(options) {
|
|
6146
|
-
super("groups", options);
|
|
6147
|
-
}
|
|
6148
|
-
};
|
|
6149
|
-
|
|
6150
|
-
// src/resources/GroupProtectedEnvironments.ts
|
|
6151
|
-
var GroupProtectedEnvironments = class extends ResourceProtectedEnvironments {
|
|
6152
|
-
constructor(options) {
|
|
6153
|
-
super("groups", options);
|
|
6154
|
-
}
|
|
6155
|
-
};
|
|
6156
|
-
|
|
6157
|
-
// src/resources/GroupPushRules.ts
|
|
6158
|
-
var GroupPushRules = class extends ResourcePushRules {
|
|
6159
|
-
constructor(options) {
|
|
6160
|
-
super("groups", options);
|
|
6161
|
-
}
|
|
6162
|
-
};
|
|
6163
|
-
var GroupRelationExports = class extends BaseResource {
|
|
6164
|
-
download(groupId, relation, options) {
|
|
6165
|
-
return RequestHelper.get()(this, endpoint`groups/${groupId}/export_relations/download`, {
|
|
6166
|
-
searchParams: { relation },
|
|
6167
|
-
...options
|
|
6168
|
-
});
|
|
6169
|
-
}
|
|
6170
|
-
exportStatus(groupId, options) {
|
|
6171
|
-
return RequestHelper.get()(
|
|
6267
|
+
var GroupServiceAccounts = class extends BaseResource {
|
|
6268
|
+
create(groupId, options) {
|
|
6269
|
+
return RequestHelper.post()(
|
|
6172
6270
|
this,
|
|
6173
|
-
endpoint`groups/${groupId}/
|
|
6271
|
+
endpoint`groups/${groupId}/service_accounts`,
|
|
6174
6272
|
options
|
|
6175
6273
|
);
|
|
6176
6274
|
}
|
|
6177
|
-
|
|
6275
|
+
addPersonalAccessToken(groupId, serviceAccountId, options) {
|
|
6178
6276
|
return RequestHelper.post()(
|
|
6179
6277
|
this,
|
|
6180
|
-
endpoint`groups/${groupId}/
|
|
6278
|
+
endpoint`groups/${groupId}/service_accounts/${serviceAccountId}`,
|
|
6181
6279
|
options
|
|
6182
6280
|
);
|
|
6183
6281
|
}
|
|
6184
|
-
|
|
6185
|
-
|
|
6186
|
-
all(groupId, options) {
|
|
6187
|
-
return RequestHelper.get()(
|
|
6282
|
+
rotatePersonalAccessToken(groupId, serviceAccountId, tokenId, options) {
|
|
6283
|
+
return RequestHelper.post()(
|
|
6188
6284
|
this,
|
|
6189
|
-
endpoint`groups/${groupId}/
|
|
6285
|
+
endpoint`groups/${groupId}/service_accounts/${serviceAccountId}/personal_access_tokens/${tokenId}/rotate`,
|
|
6190
6286
|
options
|
|
6191
6287
|
);
|
|
6192
6288
|
}
|
|
6193
6289
|
};
|
|
6194
6290
|
|
|
6195
|
-
// src/resources/
|
|
6196
|
-
var
|
|
6291
|
+
// src/resources/GroupVariables.ts
|
|
6292
|
+
var GroupVariables = class extends ResourceVariables {
|
|
6293
|
+
constructor(options) {
|
|
6294
|
+
super("groups", options);
|
|
6295
|
+
}
|
|
6296
|
+
};
|
|
6297
|
+
|
|
6298
|
+
// src/resources/GroupWikis.ts
|
|
6299
|
+
var GroupWikis = class extends ResourceWikis {
|
|
6197
6300
|
constructor(options) {
|
|
6198
6301
|
super("groups", options);
|
|
6199
6302
|
}
|
|
@@ -6314,109 +6417,6 @@ var Groups = class extends BaseResource {
|
|
|
6314
6417
|
});
|
|
6315
6418
|
}
|
|
6316
6419
|
};
|
|
6317
|
-
var GroupSAMLIdentities = class extends BaseResource {
|
|
6318
|
-
all(groupId, options) {
|
|
6319
|
-
return RequestHelper.get()(
|
|
6320
|
-
this,
|
|
6321
|
-
endpoint`groups/${groupId}/saml/identities`,
|
|
6322
|
-
options
|
|
6323
|
-
);
|
|
6324
|
-
}
|
|
6325
|
-
edit(groupId, identityId, options) {
|
|
6326
|
-
return RequestHelper.patch()(
|
|
6327
|
-
this,
|
|
6328
|
-
endpoint`groups/${groupId}/saml/${identityId}`,
|
|
6329
|
-
options
|
|
6330
|
-
);
|
|
6331
|
-
}
|
|
6332
|
-
};
|
|
6333
|
-
var GroupSAMLLinks = class extends BaseResource {
|
|
6334
|
-
all(groupId, options) {
|
|
6335
|
-
return RequestHelper.get()(
|
|
6336
|
-
this,
|
|
6337
|
-
endpoint`groups/${groupId}/saml_group_links`,
|
|
6338
|
-
options
|
|
6339
|
-
);
|
|
6340
|
-
}
|
|
6341
|
-
create(groupId, samlGroupName, accessLevel, options) {
|
|
6342
|
-
return RequestHelper.post()(
|
|
6343
|
-
this,
|
|
6344
|
-
endpoint`groups/${groupId}/saml_group_links`,
|
|
6345
|
-
{
|
|
6346
|
-
accessLevel,
|
|
6347
|
-
samlGroupName,
|
|
6348
|
-
...options
|
|
6349
|
-
}
|
|
6350
|
-
);
|
|
6351
|
-
}
|
|
6352
|
-
remove(groupId, samlGroupName, options) {
|
|
6353
|
-
return RequestHelper.del()(
|
|
6354
|
-
this,
|
|
6355
|
-
endpoint`groups/${groupId}/saml_group_links/${samlGroupName}`,
|
|
6356
|
-
options
|
|
6357
|
-
);
|
|
6358
|
-
}
|
|
6359
|
-
show(groupId, samlGroupName, options) {
|
|
6360
|
-
return RequestHelper.get()(
|
|
6361
|
-
this,
|
|
6362
|
-
endpoint`groups/${groupId}/saml_group_links/${samlGroupName}`,
|
|
6363
|
-
options
|
|
6364
|
-
);
|
|
6365
|
-
}
|
|
6366
|
-
};
|
|
6367
|
-
var GroupSCIMIdentities = class extends BaseResource {
|
|
6368
|
-
all(groupId, options) {
|
|
6369
|
-
return RequestHelper.get()(
|
|
6370
|
-
this,
|
|
6371
|
-
endpoint`groups/${groupId}/scim/identities`,
|
|
6372
|
-
options
|
|
6373
|
-
);
|
|
6374
|
-
}
|
|
6375
|
-
edit(groupId, identityId, options) {
|
|
6376
|
-
return RequestHelper.patch()(
|
|
6377
|
-
this,
|
|
6378
|
-
endpoint`groups/${groupId}/scim/${identityId}`,
|
|
6379
|
-
options
|
|
6380
|
-
);
|
|
6381
|
-
}
|
|
6382
|
-
};
|
|
6383
|
-
var GroupServiceAccounts = class extends BaseResource {
|
|
6384
|
-
create(groupId, options) {
|
|
6385
|
-
return RequestHelper.post()(
|
|
6386
|
-
this,
|
|
6387
|
-
endpoint`groups/${groupId}/service_accounts`,
|
|
6388
|
-
options
|
|
6389
|
-
);
|
|
6390
|
-
}
|
|
6391
|
-
addPersonalAccessToken(groupId, serviceAccountId, options) {
|
|
6392
|
-
return RequestHelper.post()(
|
|
6393
|
-
this,
|
|
6394
|
-
endpoint`groups/${groupId}/service_accounts/${serviceAccountId}`,
|
|
6395
|
-
options
|
|
6396
|
-
);
|
|
6397
|
-
}
|
|
6398
|
-
rotatePersonalAccessToken(groupId, serviceAccountId, tokenId, options) {
|
|
6399
|
-
return RequestHelper.post()(
|
|
6400
|
-
this,
|
|
6401
|
-
endpoint`groups/${groupId}/service_accounts/${serviceAccountId}/personal_access_tokens/${tokenId}/rotate`,
|
|
6402
|
-
options
|
|
6403
|
-
);
|
|
6404
|
-
}
|
|
6405
|
-
};
|
|
6406
|
-
|
|
6407
|
-
// src/resources/GroupVariables.ts
|
|
6408
|
-
var GroupVariables = class extends ResourceVariables {
|
|
6409
|
-
constructor(options) {
|
|
6410
|
-
super("groups", options);
|
|
6411
|
-
}
|
|
6412
|
-
};
|
|
6413
|
-
|
|
6414
|
-
// src/resources/GroupWikis.ts
|
|
6415
|
-
var GroupWikis = class extends ResourceWikis {
|
|
6416
|
-
constructor(options) {
|
|
6417
|
-
super("groups", options);
|
|
6418
|
-
}
|
|
6419
|
-
};
|
|
6420
6420
|
var LinkedEpics = class extends BaseResource {
|
|
6421
6421
|
all(groupId, epicIId, options) {
|
|
6422
6422
|
return RequestHelper.get()(
|
|
@@ -6548,6 +6548,43 @@ var UserImpersonationTokens = class extends BaseResource {
|
|
|
6548
6548
|
return this.remove(userId, tokenId, options);
|
|
6549
6549
|
}
|
|
6550
6550
|
};
|
|
6551
|
+
var url11 = (userId) => userId ? `users/${userId}/keys` : "user/keys";
|
|
6552
|
+
var UserSSHKeys = class extends BaseResource {
|
|
6553
|
+
// Convienence method for create
|
|
6554
|
+
add(title, key, options) {
|
|
6555
|
+
return this.create(title, key, options);
|
|
6556
|
+
}
|
|
6557
|
+
all({
|
|
6558
|
+
userId,
|
|
6559
|
+
...options
|
|
6560
|
+
} = {}) {
|
|
6561
|
+
return RequestHelper.get()(
|
|
6562
|
+
this,
|
|
6563
|
+
url11(userId),
|
|
6564
|
+
options
|
|
6565
|
+
);
|
|
6566
|
+
}
|
|
6567
|
+
create(title, key, {
|
|
6568
|
+
userId,
|
|
6569
|
+
...options
|
|
6570
|
+
} = {}) {
|
|
6571
|
+
return RequestHelper.post()(this, url11(userId), {
|
|
6572
|
+
title,
|
|
6573
|
+
key,
|
|
6574
|
+
...options
|
|
6575
|
+
});
|
|
6576
|
+
}
|
|
6577
|
+
show(keyId, { userId, ...options } = {}) {
|
|
6578
|
+
return RequestHelper.get()(
|
|
6579
|
+
this,
|
|
6580
|
+
`${url11(userId)}/${keyId}`,
|
|
6581
|
+
options
|
|
6582
|
+
);
|
|
6583
|
+
}
|
|
6584
|
+
remove(keyId, { userId, ...options } = {}) {
|
|
6585
|
+
return RequestHelper.del()(this, `${url11(userId)}/${keyId}`, options);
|
|
6586
|
+
}
|
|
6587
|
+
};
|
|
6551
6588
|
var Users = class extends BaseResource {
|
|
6552
6589
|
activate(userId, options) {
|
|
6553
6590
|
return RequestHelper.post()(this, endpoint`users/${userId}/activate`, options);
|
|
@@ -6703,43 +6740,6 @@ var Users = class extends BaseResource {
|
|
|
6703
6740
|
return RequestHelper.post()(this, endpoint`users/${userId}/unfollow`, options);
|
|
6704
6741
|
}
|
|
6705
6742
|
};
|
|
6706
|
-
var url11 = (userId) => userId ? `users/${userId}/keys` : "user/keys";
|
|
6707
|
-
var UserSSHKeys = class extends BaseResource {
|
|
6708
|
-
// Convienence method for create
|
|
6709
|
-
add(title, key, options) {
|
|
6710
|
-
return this.create(title, key, options);
|
|
6711
|
-
}
|
|
6712
|
-
all({
|
|
6713
|
-
userId,
|
|
6714
|
-
...options
|
|
6715
|
-
} = {}) {
|
|
6716
|
-
return RequestHelper.get()(
|
|
6717
|
-
this,
|
|
6718
|
-
url11(userId),
|
|
6719
|
-
options
|
|
6720
|
-
);
|
|
6721
|
-
}
|
|
6722
|
-
create(title, key, {
|
|
6723
|
-
userId,
|
|
6724
|
-
...options
|
|
6725
|
-
} = {}) {
|
|
6726
|
-
return RequestHelper.post()(this, url11(userId), {
|
|
6727
|
-
title,
|
|
6728
|
-
key,
|
|
6729
|
-
...options
|
|
6730
|
-
});
|
|
6731
|
-
}
|
|
6732
|
-
show(keyId, { userId, ...options } = {}) {
|
|
6733
|
-
return RequestHelper.get()(
|
|
6734
|
-
this,
|
|
6735
|
-
`${url11(userId)}/${keyId}`,
|
|
6736
|
-
options
|
|
6737
|
-
);
|
|
6738
|
-
}
|
|
6739
|
-
remove(keyId, { userId, ...options } = {}) {
|
|
6740
|
-
return RequestHelper.del()(this, `${url11(userId)}/${keyId}`, options);
|
|
6741
|
-
}
|
|
6742
|
-
};
|
|
6743
6743
|
var resources = {
|
|
6744
6744
|
Agents,
|
|
6745
6745
|
AlertManagement,
|