@scaleway/sdk 2.58.0 → 2.59.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/dist/api/audit_trail/v1alpha1/index.gen.d.ts +1 -1
- package/dist/api/audit_trail/v1alpha1/marshalling.gen.cjs +12 -0
- package/dist/api/audit_trail/v1alpha1/marshalling.gen.js +12 -0
- package/dist/api/audit_trail/v1alpha1/types.gen.d.ts +9 -0
- package/dist/api/iam/v1alpha1/api.gen.cjs +54 -0
- package/dist/api/iam/v1alpha1/api.gen.d.ts +26 -1
- package/dist/api/iam/v1alpha1/api.gen.js +55 -1
- package/dist/api/iam/v1alpha1/index.gen.d.ts +1 -1
- package/dist/api/iam/v1alpha1/marshalling.gen.cjs +23 -0
- package/dist/api/iam/v1alpha1/marshalling.gen.d.ts +4 -1
- package/dist/api/iam/v1alpha1/marshalling.gen.js +23 -0
- package/dist/api/iam/v1alpha1/types.gen.d.ts +29 -1
- package/dist/api/iam/v1alpha1/validation-rules.gen.cjs +8 -0
- package/dist/api/iam/v1alpha1/validation-rules.gen.d.ts +7 -0
- package/dist/api/iam/v1alpha1/validation-rules.gen.js +9 -1
- package/dist/api/marketplace/v2/types.gen.d.ts +5 -2
- package/dist/api/vpcgw/index.gen.cjs +2 -0
- package/dist/api/vpcgw/index.gen.d.ts +1 -0
- package/dist/api/vpcgw/index.gen.js +3 -1
- package/dist/api/vpcgw/v2/api.gen.cjs +517 -0
- package/dist/api/vpcgw/v2/api.gen.d.ts +267 -0
- package/dist/api/vpcgw/v2/api.gen.js +517 -0
- package/dist/api/vpcgw/v2/content.gen.cjs +15 -0
- package/dist/api/vpcgw/v2/content.gen.d.ts +5 -0
- package/dist/api/vpcgw/v2/content.gen.js +15 -0
- package/dist/api/vpcgw/v2/index.gen.cjs +7 -0
- package/dist/api/vpcgw/v2/index.gen.d.ts +3 -0
- package/dist/api/vpcgw/v2/index.gen.js +7 -0
- package/dist/api/vpcgw/v2/marshalling.gen.cjs +259 -0
- package/dist/api/vpcgw/v2/marshalling.gen.d.ts +22 -0
- package/dist/api/vpcgw/v2/marshalling.gen.js +259 -0
- package/dist/api/vpcgw/v2/types.gen.d.ts +450 -0
- package/dist/api/webhosting/v1/index.gen.d.ts +1 -1
- package/dist/api/webhosting/v1/marshalling.gen.cjs +14 -1
- package/dist/api/webhosting/v1/marshalling.gen.js +15 -2
- package/dist/api/webhosting/v1/types.gen.d.ts +20 -0
- package/dist/scw/constants.cjs +1 -1
- package/dist/scw/constants.d.ts +2 -2
- package/dist/scw/constants.js +1 -1
- package/package.json +2 -2
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { API } from './api.gen';
|
|
2
|
-
export type { Event, EventPrincipal, KubernetesACLInfo, KubernetesClusterInfo, KubernetesNodeInfo, KubernetesPoolInfo, ListEventsRequest, ListEventsRequestOrderBy, ListEventsResponse, ListProductsRequest, ListProductsResponse, Product, Resource, ResourceType, SecretManagerSecretInfo, SecretManagerSecretVersionInfo, } from './types.gen';
|
|
2
|
+
export type { Event, EventPrincipal, KubernetesACLInfo, KubernetesClusterInfo, KubernetesNodeInfo, KubernetesPoolInfo, ListEventsRequest, ListEventsRequestOrderBy, ListEventsResponse, ListProductsRequest, ListProductsResponse, Product, ProductService, Resource, ResourceType, SecretManagerSecretInfo, SecretManagerSecretVersionInfo, } from './types.gen';
|
|
3
3
|
export * as ValidationRules from './validation-rules.gen';
|
|
@@ -127,6 +127,17 @@ const unmarshalListEventsResponse = (data) => {
|
|
|
127
127
|
nextPageToken: data.next_page_token
|
|
128
128
|
};
|
|
129
129
|
};
|
|
130
|
+
const unmarshalProductService = (data) => {
|
|
131
|
+
if (!json.isJSONObject(data)) {
|
|
132
|
+
throw new TypeError(
|
|
133
|
+
`Unmarshalling the type 'ProductService' failed as data isn't a dictionary.`
|
|
134
|
+
);
|
|
135
|
+
}
|
|
136
|
+
return {
|
|
137
|
+
methods: data.methods,
|
|
138
|
+
name: data.name
|
|
139
|
+
};
|
|
140
|
+
};
|
|
130
141
|
const unmarshalProduct = (data) => {
|
|
131
142
|
if (!json.isJSONObject(data)) {
|
|
132
143
|
throw new TypeError(
|
|
@@ -135,6 +146,7 @@ const unmarshalProduct = (data) => {
|
|
|
135
146
|
}
|
|
136
147
|
return {
|
|
137
148
|
name: data.name,
|
|
149
|
+
services: marshalling.unmarshalArrayOfObject(data.services, unmarshalProductService),
|
|
138
150
|
title: data.title
|
|
139
151
|
};
|
|
140
152
|
};
|
|
@@ -125,6 +125,17 @@ const unmarshalListEventsResponse = (data) => {
|
|
|
125
125
|
nextPageToken: data.next_page_token
|
|
126
126
|
};
|
|
127
127
|
};
|
|
128
|
+
const unmarshalProductService = (data) => {
|
|
129
|
+
if (!isJSONObject(data)) {
|
|
130
|
+
throw new TypeError(
|
|
131
|
+
`Unmarshalling the type 'ProductService' failed as data isn't a dictionary.`
|
|
132
|
+
);
|
|
133
|
+
}
|
|
134
|
+
return {
|
|
135
|
+
methods: data.methods,
|
|
136
|
+
name: data.name
|
|
137
|
+
};
|
|
138
|
+
};
|
|
128
139
|
const unmarshalProduct = (data) => {
|
|
129
140
|
if (!isJSONObject(data)) {
|
|
130
141
|
throw new TypeError(
|
|
@@ -133,6 +144,7 @@ const unmarshalProduct = (data) => {
|
|
|
133
144
|
}
|
|
134
145
|
return {
|
|
135
146
|
name: data.name,
|
|
147
|
+
services: unmarshalArrayOfObject(data.services, unmarshalProductService),
|
|
136
148
|
title: data.title
|
|
137
149
|
};
|
|
138
150
|
};
|
|
@@ -66,6 +66,10 @@ export interface Resource {
|
|
|
66
66
|
*/
|
|
67
67
|
kubeAclInfo?: KubernetesACLInfo;
|
|
68
68
|
}
|
|
69
|
+
export interface ProductService {
|
|
70
|
+
name: string;
|
|
71
|
+
methods: string[];
|
|
72
|
+
}
|
|
69
73
|
export interface Event {
|
|
70
74
|
/** ID of the event. */
|
|
71
75
|
id: string;
|
|
@@ -103,6 +107,11 @@ export interface Product {
|
|
|
103
107
|
title: string;
|
|
104
108
|
/** Product name. */
|
|
105
109
|
name: string;
|
|
110
|
+
/**
|
|
111
|
+
* Specifies the API versions of the products integrated with Audit Trail.
|
|
112
|
+
* Each version defines the methods logged by Audit Trail.
|
|
113
|
+
*/
|
|
114
|
+
services: ProductService[];
|
|
106
115
|
}
|
|
107
116
|
export type ListEventsRequest = {
|
|
108
117
|
/**
|
|
@@ -196,6 +196,24 @@ class API extends api.API {
|
|
|
196
196
|
},
|
|
197
197
|
marshalling_gen.unmarshalUser
|
|
198
198
|
);
|
|
199
|
+
/**
|
|
200
|
+
* Update an user's username. Private Beta feature.. Update an user's
|
|
201
|
+
* username. Private Beta feature.
|
|
202
|
+
*
|
|
203
|
+
* @param request - The request {@link UpdateUserUsernameRequest}
|
|
204
|
+
* @returns A Promise of User
|
|
205
|
+
*/
|
|
206
|
+
updateUserUsername = (request) => this.client.fetch(
|
|
207
|
+
{
|
|
208
|
+
body: JSON.stringify(
|
|
209
|
+
marshalling_gen.marshalUpdateUserUsernameRequest(request, this.client.settings)
|
|
210
|
+
),
|
|
211
|
+
headers: jsonContentHeaders,
|
|
212
|
+
method: "POST",
|
|
213
|
+
path: `/iam/v1alpha1/users/${marshalling.validatePathParam("userId", request.userId)}/update-username`
|
|
214
|
+
},
|
|
215
|
+
marshalling_gen.unmarshalUser
|
|
216
|
+
);
|
|
199
217
|
/**
|
|
200
218
|
* Update an user's password. Private Beta feature.. Update an user's
|
|
201
219
|
* password. Private Beta feature.
|
|
@@ -1012,5 +1030,41 @@ class API extends api.API {
|
|
|
1012
1030
|
},
|
|
1013
1031
|
marshalling_gen.unmarshalLog
|
|
1014
1032
|
);
|
|
1033
|
+
/**
|
|
1034
|
+
* Get security settings of an Organization. Retrieve information about the
|
|
1035
|
+
* security settings of an Organization, specified by the `organization_id`
|
|
1036
|
+
* parameter.
|
|
1037
|
+
*
|
|
1038
|
+
* @param request - The request {@link GetOrganizationSecuritySettingsRequest}
|
|
1039
|
+
* @returns A Promise of OrganizationSecuritySettings
|
|
1040
|
+
*/
|
|
1041
|
+
getOrganizationSecuritySettings = (request = {}) => this.client.fetch(
|
|
1042
|
+
{
|
|
1043
|
+
method: "GET",
|
|
1044
|
+
path: `/iam/v1alpha1/organizations/${marshalling.validatePathParam("organizationId", request.organizationId ?? this.client.settings.defaultOrganizationId)}/security-settings`
|
|
1045
|
+
},
|
|
1046
|
+
marshalling_gen.unmarshalOrganizationSecuritySettings
|
|
1047
|
+
);
|
|
1048
|
+
/**
|
|
1049
|
+
* Update the security settings of an Organization.
|
|
1050
|
+
*
|
|
1051
|
+
* @param request - The request
|
|
1052
|
+
* {@link UpdateOrganizationSecuritySettingsRequest}
|
|
1053
|
+
* @returns A Promise of OrganizationSecuritySettings
|
|
1054
|
+
*/
|
|
1055
|
+
updateOrganizationSecuritySettings = (request = {}) => this.client.fetch(
|
|
1056
|
+
{
|
|
1057
|
+
body: JSON.stringify(
|
|
1058
|
+
marshalling_gen.marshalUpdateOrganizationSecuritySettingsRequest(
|
|
1059
|
+
request,
|
|
1060
|
+
this.client.settings
|
|
1061
|
+
)
|
|
1062
|
+
),
|
|
1063
|
+
headers: jsonContentHeaders,
|
|
1064
|
+
method: "PATCH",
|
|
1065
|
+
path: `/iam/v1alpha1/organizations/${marshalling.validatePathParam("organizationId", request.organizationId ?? this.client.settings.defaultOrganizationId)}/security-settings`
|
|
1066
|
+
},
|
|
1067
|
+
marshalling_gen.unmarshalOrganizationSecuritySettings
|
|
1068
|
+
);
|
|
1015
1069
|
}
|
|
1016
1070
|
exports.API = API;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { API as ParentAPI } from '../../../bridge';
|
|
2
|
-
import type { APIKey, AddGroupMemberRequest, AddGroupMembersRequest, Application, ClonePolicyRequest, CreateAPIKeyRequest, CreateApplicationRequest, CreateGroupRequest, CreateJWTRequest, CreatePolicyRequest, CreateSSHKeyRequest, CreateUserRequest, DeleteAPIKeyRequest, DeleteApplicationRequest, DeleteGroupRequest, DeleteJWTRequest, DeletePolicyRequest, DeleteSSHKeyRequest, DeleteUserRequest, EncodedJWT, GetAPIKeyRequest, GetApplicationRequest, GetGroupRequest, GetJWTRequest, GetLogRequest, GetPolicyRequest, GetQuotumRequest, GetSSHKeyRequest, GetUserRequest, Group, JWT, ListAPIKeysRequest, ListAPIKeysResponse, ListApplicationsRequest, ListApplicationsResponse, ListGracePeriodsRequest, ListGracePeriodsResponse, ListGroupsRequest, ListGroupsResponse, ListJWTsRequest, ListJWTsResponse, ListLogsRequest, ListLogsResponse, ListPermissionSetsRequest, ListPermissionSetsResponse, ListPoliciesRequest, ListPoliciesResponse, ListQuotaRequest, ListQuotaResponse, ListRulesRequest, ListRulesResponse, ListSSHKeysRequest, ListSSHKeysResponse, ListUsersRequest, ListUsersResponse, LockUserRequest, Log, Policy, Quotum, RemoveGroupMemberRequest, SSHKey, SetGroupMembersRequest, SetRulesRequest, SetRulesResponse, UnlockUserRequest, UpdateAPIKeyRequest, UpdateApplicationRequest, UpdateGroupRequest, UpdatePolicyRequest, UpdateSSHKeyRequest, UpdateUserPasswordRequest, UpdateUserRequest, User } from './types.gen';
|
|
2
|
+
import type { APIKey, AddGroupMemberRequest, AddGroupMembersRequest, Application, ClonePolicyRequest, CreateAPIKeyRequest, CreateApplicationRequest, CreateGroupRequest, CreateJWTRequest, CreatePolicyRequest, CreateSSHKeyRequest, CreateUserRequest, DeleteAPIKeyRequest, DeleteApplicationRequest, DeleteGroupRequest, DeleteJWTRequest, DeletePolicyRequest, DeleteSSHKeyRequest, DeleteUserRequest, EncodedJWT, GetAPIKeyRequest, GetApplicationRequest, GetGroupRequest, GetJWTRequest, GetLogRequest, GetOrganizationSecuritySettingsRequest, GetPolicyRequest, GetQuotumRequest, GetSSHKeyRequest, GetUserRequest, Group, JWT, ListAPIKeysRequest, ListAPIKeysResponse, ListApplicationsRequest, ListApplicationsResponse, ListGracePeriodsRequest, ListGracePeriodsResponse, ListGroupsRequest, ListGroupsResponse, ListJWTsRequest, ListJWTsResponse, ListLogsRequest, ListLogsResponse, ListPermissionSetsRequest, ListPermissionSetsResponse, ListPoliciesRequest, ListPoliciesResponse, ListQuotaRequest, ListQuotaResponse, ListRulesRequest, ListRulesResponse, ListSSHKeysRequest, ListSSHKeysResponse, ListUsersRequest, ListUsersResponse, LockUserRequest, Log, OrganizationSecuritySettings, Policy, Quotum, RemoveGroupMemberRequest, SSHKey, SetGroupMembersRequest, SetRulesRequest, SetRulesResponse, UnlockUserRequest, UpdateAPIKeyRequest, UpdateApplicationRequest, UpdateGroupRequest, UpdateOrganizationSecuritySettingsRequest, UpdatePolicyRequest, UpdateSSHKeyRequest, UpdateUserPasswordRequest, UpdateUserRequest, UpdateUserUsernameRequest, User } from './types.gen';
|
|
3
3
|
/**
|
|
4
4
|
* IAM API.
|
|
5
5
|
*
|
|
@@ -103,6 +103,14 @@ export declare class API extends ParentAPI {
|
|
|
103
103
|
* @returns A Promise of User
|
|
104
104
|
*/
|
|
105
105
|
createUser: (request?: Readonly<CreateUserRequest>) => Promise<User>;
|
|
106
|
+
/**
|
|
107
|
+
* Update an user's username. Private Beta feature.. Update an user's
|
|
108
|
+
* username. Private Beta feature.
|
|
109
|
+
*
|
|
110
|
+
* @param request - The request {@link UpdateUserUsernameRequest}
|
|
111
|
+
* @returns A Promise of User
|
|
112
|
+
*/
|
|
113
|
+
updateUserUsername: (request: Readonly<UpdateUserUsernameRequest>) => Promise<User>;
|
|
106
114
|
/**
|
|
107
115
|
* Update an user's password. Private Beta feature.. Update an user's
|
|
108
116
|
* password. Private Beta feature.
|
|
@@ -508,4 +516,21 @@ export declare class API extends ParentAPI {
|
|
|
508
516
|
* @returns A Promise of Log
|
|
509
517
|
*/
|
|
510
518
|
getLog: (request: Readonly<GetLogRequest>) => Promise<Log>;
|
|
519
|
+
/**
|
|
520
|
+
* Get security settings of an Organization. Retrieve information about the
|
|
521
|
+
* security settings of an Organization, specified by the `organization_id`
|
|
522
|
+
* parameter.
|
|
523
|
+
*
|
|
524
|
+
* @param request - The request {@link GetOrganizationSecuritySettingsRequest}
|
|
525
|
+
* @returns A Promise of OrganizationSecuritySettings
|
|
526
|
+
*/
|
|
527
|
+
getOrganizationSecuritySettings: (request?: Readonly<GetOrganizationSecuritySettingsRequest>) => Promise<OrganizationSecuritySettings>;
|
|
528
|
+
/**
|
|
529
|
+
* Update the security settings of an Organization.
|
|
530
|
+
*
|
|
531
|
+
* @param request - The request
|
|
532
|
+
* {@link UpdateOrganizationSecuritySettingsRequest}
|
|
533
|
+
* @returns A Promise of OrganizationSecuritySettings
|
|
534
|
+
*/
|
|
535
|
+
updateOrganizationSecuritySettings: (request?: Readonly<UpdateOrganizationSecuritySettingsRequest>) => Promise<OrganizationSecuritySettings>;
|
|
511
536
|
}
|
|
@@ -2,7 +2,7 @@ import { API as API$1 } from "../../../scw/api.js";
|
|
|
2
2
|
import { urlParams, validatePathParam, resolveOneOf } from "../../../helpers/marshalling.js";
|
|
3
3
|
import "../../../vendor/base64/index.js";
|
|
4
4
|
import { enrichForPagination } from "../../../scw/fetch/resource-paginator.js";
|
|
5
|
-
import { unmarshalListSSHKeysResponse, marshalCreateSSHKeyRequest, unmarshalSSHKey, marshalUpdateSSHKeyRequest, unmarshalListUsersResponse, unmarshalUser, marshalUpdateUserRequest, marshalCreateUserRequest, marshalUpdateUserPasswordRequest, unmarshalListGracePeriodsResponse, unmarshalListApplicationsResponse, marshalCreateApplicationRequest, unmarshalApplication, marshalUpdateApplicationRequest, unmarshalListGroupsResponse, marshalCreateGroupRequest, unmarshalGroup, marshalUpdateGroupRequest, marshalSetGroupMembersRequest, marshalAddGroupMemberRequest, marshalAddGroupMembersRequest, marshalRemoveGroupMemberRequest, unmarshalListPoliciesResponse, marshalCreatePolicyRequest, unmarshalPolicy, marshalUpdatePolicyRequest, marshalSetRulesRequest, unmarshalSetRulesResponse, unmarshalListRulesResponse, unmarshalListPermissionSetsResponse, unmarshalListAPIKeysResponse, marshalCreateAPIKeyRequest, unmarshalAPIKey, marshalUpdateAPIKeyRequest, unmarshalListQuotaResponse, unmarshalQuotum, unmarshalListJWTsResponse, marshalCreateJWTRequest, unmarshalEncodedJWT, unmarshalJWT, unmarshalListLogsResponse, unmarshalLog } from "./marshalling.gen.js";
|
|
5
|
+
import { unmarshalListSSHKeysResponse, marshalCreateSSHKeyRequest, unmarshalSSHKey, marshalUpdateSSHKeyRequest, unmarshalListUsersResponse, unmarshalUser, marshalUpdateUserRequest, marshalCreateUserRequest, marshalUpdateUserUsernameRequest, marshalUpdateUserPasswordRequest, unmarshalListGracePeriodsResponse, unmarshalListApplicationsResponse, marshalCreateApplicationRequest, unmarshalApplication, marshalUpdateApplicationRequest, unmarshalListGroupsResponse, marshalCreateGroupRequest, unmarshalGroup, marshalUpdateGroupRequest, marshalSetGroupMembersRequest, marshalAddGroupMemberRequest, marshalAddGroupMembersRequest, marshalRemoveGroupMemberRequest, unmarshalListPoliciesResponse, marshalCreatePolicyRequest, unmarshalPolicy, marshalUpdatePolicyRequest, marshalSetRulesRequest, unmarshalSetRulesResponse, unmarshalListRulesResponse, unmarshalListPermissionSetsResponse, unmarshalListAPIKeysResponse, marshalCreateAPIKeyRequest, unmarshalAPIKey, marshalUpdateAPIKeyRequest, unmarshalListQuotaResponse, unmarshalQuotum, unmarshalListJWTsResponse, marshalCreateJWTRequest, unmarshalEncodedJWT, unmarshalJWT, unmarshalListLogsResponse, unmarshalLog, unmarshalOrganizationSecuritySettings, marshalUpdateOrganizationSecuritySettingsRequest } from "./marshalling.gen.js";
|
|
6
6
|
const jsonContentHeaders = {
|
|
7
7
|
"Content-Type": "application/json; charset=utf-8"
|
|
8
8
|
};
|
|
@@ -194,6 +194,24 @@ class API extends API$1 {
|
|
|
194
194
|
},
|
|
195
195
|
unmarshalUser
|
|
196
196
|
);
|
|
197
|
+
/**
|
|
198
|
+
* Update an user's username. Private Beta feature.. Update an user's
|
|
199
|
+
* username. Private Beta feature.
|
|
200
|
+
*
|
|
201
|
+
* @param request - The request {@link UpdateUserUsernameRequest}
|
|
202
|
+
* @returns A Promise of User
|
|
203
|
+
*/
|
|
204
|
+
updateUserUsername = (request) => this.client.fetch(
|
|
205
|
+
{
|
|
206
|
+
body: JSON.stringify(
|
|
207
|
+
marshalUpdateUserUsernameRequest(request, this.client.settings)
|
|
208
|
+
),
|
|
209
|
+
headers: jsonContentHeaders,
|
|
210
|
+
method: "POST",
|
|
211
|
+
path: `/iam/v1alpha1/users/${validatePathParam("userId", request.userId)}/update-username`
|
|
212
|
+
},
|
|
213
|
+
unmarshalUser
|
|
214
|
+
);
|
|
197
215
|
/**
|
|
198
216
|
* Update an user's password. Private Beta feature.. Update an user's
|
|
199
217
|
* password. Private Beta feature.
|
|
@@ -1010,6 +1028,42 @@ class API extends API$1 {
|
|
|
1010
1028
|
},
|
|
1011
1029
|
unmarshalLog
|
|
1012
1030
|
);
|
|
1031
|
+
/**
|
|
1032
|
+
* Get security settings of an Organization. Retrieve information about the
|
|
1033
|
+
* security settings of an Organization, specified by the `organization_id`
|
|
1034
|
+
* parameter.
|
|
1035
|
+
*
|
|
1036
|
+
* @param request - The request {@link GetOrganizationSecuritySettingsRequest}
|
|
1037
|
+
* @returns A Promise of OrganizationSecuritySettings
|
|
1038
|
+
*/
|
|
1039
|
+
getOrganizationSecuritySettings = (request = {}) => this.client.fetch(
|
|
1040
|
+
{
|
|
1041
|
+
method: "GET",
|
|
1042
|
+
path: `/iam/v1alpha1/organizations/${validatePathParam("organizationId", request.organizationId ?? this.client.settings.defaultOrganizationId)}/security-settings`
|
|
1043
|
+
},
|
|
1044
|
+
unmarshalOrganizationSecuritySettings
|
|
1045
|
+
);
|
|
1046
|
+
/**
|
|
1047
|
+
* Update the security settings of an Organization.
|
|
1048
|
+
*
|
|
1049
|
+
* @param request - The request
|
|
1050
|
+
* {@link UpdateOrganizationSecuritySettingsRequest}
|
|
1051
|
+
* @returns A Promise of OrganizationSecuritySettings
|
|
1052
|
+
*/
|
|
1053
|
+
updateOrganizationSecuritySettings = (request = {}) => this.client.fetch(
|
|
1054
|
+
{
|
|
1055
|
+
body: JSON.stringify(
|
|
1056
|
+
marshalUpdateOrganizationSecuritySettingsRequest(
|
|
1057
|
+
request,
|
|
1058
|
+
this.client.settings
|
|
1059
|
+
)
|
|
1060
|
+
),
|
|
1061
|
+
headers: jsonContentHeaders,
|
|
1062
|
+
method: "PATCH",
|
|
1063
|
+
path: `/iam/v1alpha1/organizations/${validatePathParam("organizationId", request.organizationId ?? this.client.settings.defaultOrganizationId)}/security-settings`
|
|
1064
|
+
},
|
|
1065
|
+
unmarshalOrganizationSecuritySettings
|
|
1066
|
+
);
|
|
1013
1067
|
}
|
|
1014
1068
|
export {
|
|
1015
1069
|
API
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { API } from './api.gen';
|
|
2
|
-
export type { APIKey, AddGroupMemberRequest, AddGroupMembersRequest, Application, BearerType, ClonePolicyRequest, CreateAPIKeyRequest, CreateApplicationRequest, CreateGroupRequest, CreateJWTRequest, CreatePolicyRequest, CreateSSHKeyRequest, CreateUserRequest, CreateUserRequestMember, DeleteAPIKeyRequest, DeleteApplicationRequest, DeleteGroupRequest, DeleteJWTRequest, DeletePolicyRequest, DeleteSSHKeyRequest, DeleteUserRequest, EncodedJWT, GetAPIKeyRequest, GetApplicationRequest, GetGroupRequest, GetJWTRequest, GetLogRequest, GetPolicyRequest, GetQuotumRequest, GetSSHKeyRequest, GetUserRequest, GracePeriod, GracePeriodType, Group, JWT, ListAPIKeysRequest, ListAPIKeysRequestOrderBy, ListAPIKeysResponse, ListApplicationsRequest, ListApplicationsRequestOrderBy, ListApplicationsResponse, ListGracePeriodsRequest, ListGracePeriodsResponse, ListGroupsRequest, ListGroupsRequestOrderBy, ListGroupsResponse, ListJWTsRequest, ListJWTsRequestOrderBy, ListJWTsResponse, ListLogsRequest, ListLogsRequestOrderBy, ListLogsResponse, ListPermissionSetsRequest, ListPermissionSetsRequestOrderBy, ListPermissionSetsResponse, ListPoliciesRequest, ListPoliciesRequestOrderBy, ListPoliciesResponse, ListQuotaRequest, ListQuotaRequestOrderBy, ListQuotaResponse, ListRulesRequest, ListRulesResponse, ListSSHKeysRequest, ListSSHKeysRequestOrderBy, ListSSHKeysResponse, ListUsersRequest, ListUsersRequestOrderBy, ListUsersResponse, LockUserRequest, Log, LogAction, LogResourceType, PermissionSet, PermissionSetScopeType, Policy, Quotum, RemoveGroupMemberRequest, Rule, RuleSpecs, SSHKey, SetGroupMembersRequest, SetRulesRequest, SetRulesResponse, UnlockUserRequest, UpdateAPIKeyRequest, UpdateApplicationRequest, UpdateGroupRequest, UpdatePolicyRequest, UpdateSSHKeyRequest, UpdateUserPasswordRequest, UpdateUserRequest, User, UserStatus, UserType, } from './types.gen';
|
|
2
|
+
export type { APIKey, AddGroupMemberRequest, AddGroupMembersRequest, Application, BearerType, ClonePolicyRequest, CreateAPIKeyRequest, CreateApplicationRequest, CreateGroupRequest, CreateJWTRequest, CreatePolicyRequest, CreateSSHKeyRequest, CreateUserRequest, CreateUserRequestMember, DeleteAPIKeyRequest, DeleteApplicationRequest, DeleteGroupRequest, DeleteJWTRequest, DeletePolicyRequest, DeleteSSHKeyRequest, DeleteUserRequest, EncodedJWT, GetAPIKeyRequest, GetApplicationRequest, GetGroupRequest, GetJWTRequest, GetLogRequest, GetOrganizationSecuritySettingsRequest, GetPolicyRequest, GetQuotumRequest, GetSSHKeyRequest, GetUserRequest, GracePeriod, GracePeriodType, Group, JWT, ListAPIKeysRequest, ListAPIKeysRequestOrderBy, ListAPIKeysResponse, ListApplicationsRequest, ListApplicationsRequestOrderBy, ListApplicationsResponse, ListGracePeriodsRequest, ListGracePeriodsResponse, ListGroupsRequest, ListGroupsRequestOrderBy, ListGroupsResponse, ListJWTsRequest, ListJWTsRequestOrderBy, ListJWTsResponse, ListLogsRequest, ListLogsRequestOrderBy, ListLogsResponse, ListPermissionSetsRequest, ListPermissionSetsRequestOrderBy, ListPermissionSetsResponse, ListPoliciesRequest, ListPoliciesRequestOrderBy, ListPoliciesResponse, ListQuotaRequest, ListQuotaRequestOrderBy, ListQuotaResponse, ListRulesRequest, ListRulesResponse, ListSSHKeysRequest, ListSSHKeysRequestOrderBy, ListSSHKeysResponse, ListUsersRequest, ListUsersRequestOrderBy, ListUsersResponse, LockUserRequest, Log, LogAction, LogResourceType, OrganizationSecuritySettings, PermissionSet, PermissionSetScopeType, Policy, Quotum, RemoveGroupMemberRequest, Rule, RuleSpecs, SSHKey, SetGroupMembersRequest, SetRulesRequest, SetRulesResponse, UnlockUserRequest, UpdateAPIKeyRequest, UpdateApplicationRequest, UpdateGroupRequest, UpdateOrganizationSecuritySettingsRequest, UpdatePolicyRequest, UpdateSSHKeyRequest, UpdateUserPasswordRequest, UpdateUserRequest, UpdateUserUsernameRequest, User, UserStatus, UserType, } from './types.gen';
|
|
3
3
|
export * as ValidationRules from './validation-rules.gen';
|
|
@@ -379,6 +379,18 @@ const unmarshalListUsersResponse = (data) => {
|
|
|
379
379
|
users: marshalling.unmarshalArrayOfObject(data.users, unmarshalUser)
|
|
380
380
|
};
|
|
381
381
|
};
|
|
382
|
+
const unmarshalOrganizationSecuritySettings = (data) => {
|
|
383
|
+
if (!json.isJSONObject(data)) {
|
|
384
|
+
throw new TypeError(
|
|
385
|
+
`Unmarshalling the type 'OrganizationSecuritySettings' failed as data isn't a dictionary.`
|
|
386
|
+
);
|
|
387
|
+
}
|
|
388
|
+
return {
|
|
389
|
+
enforcePasswordRenewal: data.enforce_password_renewal,
|
|
390
|
+
gracePeriodDuration: data.grace_period_duration,
|
|
391
|
+
loginAttemptsBeforeLocked: data.login_attempts_before_locked
|
|
392
|
+
};
|
|
393
|
+
};
|
|
382
394
|
const unmarshalSetRulesResponse = (data) => {
|
|
383
395
|
if (!json.isJSONObject(data)) {
|
|
384
396
|
throw new TypeError(
|
|
@@ -496,6 +508,11 @@ const marshalUpdateGroupRequest = (request, defaults) => ({
|
|
|
496
508
|
name: request.name,
|
|
497
509
|
tags: request.tags
|
|
498
510
|
});
|
|
511
|
+
const marshalUpdateOrganizationSecuritySettingsRequest = (request, defaults) => ({
|
|
512
|
+
enforce_password_renewal: request.enforcePasswordRenewal,
|
|
513
|
+
grace_period_duration: request.gracePeriodDuration,
|
|
514
|
+
login_attempts_before_locked: request.loginAttemptsBeforeLocked
|
|
515
|
+
});
|
|
499
516
|
const marshalUpdatePolicyRequest = (request, defaults) => ({
|
|
500
517
|
description: request.description,
|
|
501
518
|
name: request.name,
|
|
@@ -519,6 +536,9 @@ const marshalUpdateUserRequest = (request, defaults) => ({
|
|
|
519
536
|
email: request.email,
|
|
520
537
|
tags: request.tags
|
|
521
538
|
});
|
|
539
|
+
const marshalUpdateUserUsernameRequest = (request, defaults) => ({
|
|
540
|
+
username: request.username
|
|
541
|
+
});
|
|
522
542
|
exports.marshalAddGroupMemberRequest = marshalAddGroupMemberRequest;
|
|
523
543
|
exports.marshalAddGroupMembersRequest = marshalAddGroupMembersRequest;
|
|
524
544
|
exports.marshalCreateAPIKeyRequest = marshalCreateAPIKeyRequest;
|
|
@@ -534,10 +554,12 @@ exports.marshalSetRulesRequest = marshalSetRulesRequest;
|
|
|
534
554
|
exports.marshalUpdateAPIKeyRequest = marshalUpdateAPIKeyRequest;
|
|
535
555
|
exports.marshalUpdateApplicationRequest = marshalUpdateApplicationRequest;
|
|
536
556
|
exports.marshalUpdateGroupRequest = marshalUpdateGroupRequest;
|
|
557
|
+
exports.marshalUpdateOrganizationSecuritySettingsRequest = marshalUpdateOrganizationSecuritySettingsRequest;
|
|
537
558
|
exports.marshalUpdatePolicyRequest = marshalUpdatePolicyRequest;
|
|
538
559
|
exports.marshalUpdateSSHKeyRequest = marshalUpdateSSHKeyRequest;
|
|
539
560
|
exports.marshalUpdateUserPasswordRequest = marshalUpdateUserPasswordRequest;
|
|
540
561
|
exports.marshalUpdateUserRequest = marshalUpdateUserRequest;
|
|
562
|
+
exports.marshalUpdateUserUsernameRequest = marshalUpdateUserUsernameRequest;
|
|
541
563
|
exports.unmarshalAPIKey = unmarshalAPIKey;
|
|
542
564
|
exports.unmarshalApplication = unmarshalApplication;
|
|
543
565
|
exports.unmarshalEncodedJWT = unmarshalEncodedJWT;
|
|
@@ -556,6 +578,7 @@ exports.unmarshalListRulesResponse = unmarshalListRulesResponse;
|
|
|
556
578
|
exports.unmarshalListSSHKeysResponse = unmarshalListSSHKeysResponse;
|
|
557
579
|
exports.unmarshalListUsersResponse = unmarshalListUsersResponse;
|
|
558
580
|
exports.unmarshalLog = unmarshalLog;
|
|
581
|
+
exports.unmarshalOrganizationSecuritySettings = unmarshalOrganizationSecuritySettings;
|
|
559
582
|
exports.unmarshalPolicy = unmarshalPolicy;
|
|
560
583
|
exports.unmarshalQuotum = unmarshalQuotum;
|
|
561
584
|
exports.unmarshalSSHKey = unmarshalSSHKey;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { DefaultValues } from '../../../bridge';
|
|
2
|
-
import type { APIKey, AddGroupMemberRequest, AddGroupMembersRequest, Application, CreateAPIKeyRequest, CreateApplicationRequest, CreateGroupRequest, CreateJWTRequest, CreatePolicyRequest, CreateSSHKeyRequest, CreateUserRequest, EncodedJWT, Group, JWT, ListAPIKeysResponse, ListApplicationsResponse, ListGracePeriodsResponse, ListGroupsResponse, ListJWTsResponse, ListLogsResponse, ListPermissionSetsResponse, ListPoliciesResponse, ListQuotaResponse, ListRulesResponse, ListSSHKeysResponse, ListUsersResponse, Log, Policy, Quotum, RemoveGroupMemberRequest, SSHKey, SetGroupMembersRequest, SetRulesRequest, SetRulesResponse, UpdateAPIKeyRequest, UpdateApplicationRequest, UpdateGroupRequest, UpdatePolicyRequest, UpdateSSHKeyRequest, UpdateUserPasswordRequest, UpdateUserRequest, User } from './types.gen';
|
|
2
|
+
import type { APIKey, AddGroupMemberRequest, AddGroupMembersRequest, Application, CreateAPIKeyRequest, CreateApplicationRequest, CreateGroupRequest, CreateJWTRequest, CreatePolicyRequest, CreateSSHKeyRequest, CreateUserRequest, EncodedJWT, Group, JWT, ListAPIKeysResponse, ListApplicationsResponse, ListGracePeriodsResponse, ListGroupsResponse, ListJWTsResponse, ListLogsResponse, ListPermissionSetsResponse, ListPoliciesResponse, ListQuotaResponse, ListRulesResponse, ListSSHKeysResponse, ListUsersResponse, Log, OrganizationSecuritySettings, Policy, Quotum, RemoveGroupMemberRequest, SSHKey, SetGroupMembersRequest, SetRulesRequest, SetRulesResponse, UpdateAPIKeyRequest, UpdateApplicationRequest, UpdateGroupRequest, UpdateOrganizationSecuritySettingsRequest, UpdatePolicyRequest, UpdateSSHKeyRequest, UpdateUserPasswordRequest, UpdateUserRequest, UpdateUserUsernameRequest, User } from './types.gen';
|
|
3
3
|
export declare const unmarshalJWT: (data: unknown) => JWT;
|
|
4
4
|
export declare const unmarshalAPIKey: (data: unknown) => APIKey;
|
|
5
5
|
export declare const unmarshalApplication: (data: unknown) => Application;
|
|
@@ -22,6 +22,7 @@ export declare const unmarshalListQuotaResponse: (data: unknown) => ListQuotaRes
|
|
|
22
22
|
export declare const unmarshalListRulesResponse: (data: unknown) => ListRulesResponse;
|
|
23
23
|
export declare const unmarshalListSSHKeysResponse: (data: unknown) => ListSSHKeysResponse;
|
|
24
24
|
export declare const unmarshalListUsersResponse: (data: unknown) => ListUsersResponse;
|
|
25
|
+
export declare const unmarshalOrganizationSecuritySettings: (data: unknown) => OrganizationSecuritySettings;
|
|
25
26
|
export declare const unmarshalSetRulesResponse: (data: unknown) => SetRulesResponse;
|
|
26
27
|
export declare const marshalAddGroupMemberRequest: (request: AddGroupMemberRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
27
28
|
export declare const marshalAddGroupMembersRequest: (request: AddGroupMembersRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
@@ -38,7 +39,9 @@ export declare const marshalSetRulesRequest: (request: SetRulesRequest, defaults
|
|
|
38
39
|
export declare const marshalUpdateAPIKeyRequest: (request: UpdateAPIKeyRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
39
40
|
export declare const marshalUpdateApplicationRequest: (request: UpdateApplicationRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
40
41
|
export declare const marshalUpdateGroupRequest: (request: UpdateGroupRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
42
|
+
export declare const marshalUpdateOrganizationSecuritySettingsRequest: (request: UpdateOrganizationSecuritySettingsRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
41
43
|
export declare const marshalUpdatePolicyRequest: (request: UpdatePolicyRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
42
44
|
export declare const marshalUpdateSSHKeyRequest: (request: UpdateSSHKeyRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
43
45
|
export declare const marshalUpdateUserPasswordRequest: (request: UpdateUserPasswordRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
44
46
|
export declare const marshalUpdateUserRequest: (request: UpdateUserRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
47
|
+
export declare const marshalUpdateUserUsernameRequest: (request: UpdateUserUsernameRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
@@ -377,6 +377,18 @@ const unmarshalListUsersResponse = (data) => {
|
|
|
377
377
|
users: unmarshalArrayOfObject(data.users, unmarshalUser)
|
|
378
378
|
};
|
|
379
379
|
};
|
|
380
|
+
const unmarshalOrganizationSecuritySettings = (data) => {
|
|
381
|
+
if (!isJSONObject(data)) {
|
|
382
|
+
throw new TypeError(
|
|
383
|
+
`Unmarshalling the type 'OrganizationSecuritySettings' failed as data isn't a dictionary.`
|
|
384
|
+
);
|
|
385
|
+
}
|
|
386
|
+
return {
|
|
387
|
+
enforcePasswordRenewal: data.enforce_password_renewal,
|
|
388
|
+
gracePeriodDuration: data.grace_period_duration,
|
|
389
|
+
loginAttemptsBeforeLocked: data.login_attempts_before_locked
|
|
390
|
+
};
|
|
391
|
+
};
|
|
380
392
|
const unmarshalSetRulesResponse = (data) => {
|
|
381
393
|
if (!isJSONObject(data)) {
|
|
382
394
|
throw new TypeError(
|
|
@@ -494,6 +506,11 @@ const marshalUpdateGroupRequest = (request, defaults) => ({
|
|
|
494
506
|
name: request.name,
|
|
495
507
|
tags: request.tags
|
|
496
508
|
});
|
|
509
|
+
const marshalUpdateOrganizationSecuritySettingsRequest = (request, defaults) => ({
|
|
510
|
+
enforce_password_renewal: request.enforcePasswordRenewal,
|
|
511
|
+
grace_period_duration: request.gracePeriodDuration,
|
|
512
|
+
login_attempts_before_locked: request.loginAttemptsBeforeLocked
|
|
513
|
+
});
|
|
497
514
|
const marshalUpdatePolicyRequest = (request, defaults) => ({
|
|
498
515
|
description: request.description,
|
|
499
516
|
name: request.name,
|
|
@@ -517,6 +534,9 @@ const marshalUpdateUserRequest = (request, defaults) => ({
|
|
|
517
534
|
email: request.email,
|
|
518
535
|
tags: request.tags
|
|
519
536
|
});
|
|
537
|
+
const marshalUpdateUserUsernameRequest = (request, defaults) => ({
|
|
538
|
+
username: request.username
|
|
539
|
+
});
|
|
520
540
|
export {
|
|
521
541
|
marshalAddGroupMemberRequest,
|
|
522
542
|
marshalAddGroupMembersRequest,
|
|
@@ -533,10 +553,12 @@ export {
|
|
|
533
553
|
marshalUpdateAPIKeyRequest,
|
|
534
554
|
marshalUpdateApplicationRequest,
|
|
535
555
|
marshalUpdateGroupRequest,
|
|
556
|
+
marshalUpdateOrganizationSecuritySettingsRequest,
|
|
536
557
|
marshalUpdatePolicyRequest,
|
|
537
558
|
marshalUpdateSSHKeyRequest,
|
|
538
559
|
marshalUpdateUserPasswordRequest,
|
|
539
560
|
marshalUpdateUserRequest,
|
|
561
|
+
marshalUpdateUserUsernameRequest,
|
|
540
562
|
unmarshalAPIKey,
|
|
541
563
|
unmarshalApplication,
|
|
542
564
|
unmarshalEncodedJWT,
|
|
@@ -555,6 +577,7 @@ export {
|
|
|
555
577
|
unmarshalListSSHKeysResponse,
|
|
556
578
|
unmarshalListUsersResponse,
|
|
557
579
|
unmarshalLog,
|
|
580
|
+
unmarshalOrganizationSecuritySettings,
|
|
558
581
|
unmarshalPolicy,
|
|
559
582
|
unmarshalQuotum,
|
|
560
583
|
unmarshalSSHKey,
|
|
@@ -9,7 +9,7 @@ export type ListPermissionSetsRequestOrderBy = 'name_asc' | 'name_desc' | 'creat
|
|
|
9
9
|
export type ListPoliciesRequestOrderBy = 'policy_name_asc' | 'policy_name_desc' | 'created_at_asc' | 'created_at_desc';
|
|
10
10
|
export type ListQuotaRequestOrderBy = 'name_asc' | 'name_desc';
|
|
11
11
|
export type ListSSHKeysRequestOrderBy = 'created_at_asc' | 'created_at_desc' | 'updated_at_asc' | 'updated_at_desc' | 'name_asc' | 'name_desc';
|
|
12
|
-
export type ListUsersRequestOrderBy = 'created_at_asc' | 'created_at_desc' | 'updated_at_asc' | 'updated_at_desc' | 'email_asc' | 'email_desc' | 'last_login_asc' | 'last_login_desc';
|
|
12
|
+
export type ListUsersRequestOrderBy = 'created_at_asc' | 'created_at_desc' | 'updated_at_asc' | 'updated_at_desc' | 'email_asc' | 'email_desc' | 'last_login_asc' | 'last_login_desc' | 'username_asc' | 'username_desc';
|
|
13
13
|
export type LogAction = 'unknown_action' | 'created' | 'updated' | 'deleted';
|
|
14
14
|
export type LogResourceType = 'unknown_resource_type' | 'api_key' | 'user' | 'application' | 'group' | 'policy';
|
|
15
15
|
export type PermissionSetScopeType = 'unknown_scope_type' | 'projects' | 'organization' | 'account_root_user';
|
|
@@ -555,6 +555,10 @@ export type GetLogRequest = {
|
|
|
555
555
|
/** ID of the log. */
|
|
556
556
|
logId: string;
|
|
557
557
|
};
|
|
558
|
+
export type GetOrganizationSecuritySettingsRequest = {
|
|
559
|
+
/** ID of the Organization. */
|
|
560
|
+
organizationId?: string;
|
|
561
|
+
};
|
|
558
562
|
export type GetPolicyRequest = {
|
|
559
563
|
/** Id of policy to search. */
|
|
560
564
|
policyId: string;
|
|
@@ -843,6 +847,14 @@ export type LockUserRequest = {
|
|
|
843
847
|
/** ID of the user to lock. */
|
|
844
848
|
userId: string;
|
|
845
849
|
};
|
|
850
|
+
export interface OrganizationSecuritySettings {
|
|
851
|
+
/** Defines whether password renewal is enforced during first login. */
|
|
852
|
+
enforcePasswordRenewal: boolean;
|
|
853
|
+
/** Duration of the grace period to renew password or enable MFA. */
|
|
854
|
+
gracePeriodDuration?: string;
|
|
855
|
+
/** Number of login attempts before the account is locked. */
|
|
856
|
+
loginAttemptsBeforeLocked: number;
|
|
857
|
+
}
|
|
846
858
|
export type RemoveGroupMemberRequest = {
|
|
847
859
|
/** ID of the group. */
|
|
848
860
|
groupId: string;
|
|
@@ -909,6 +921,16 @@ export type UpdateGroupRequest = {
|
|
|
909
921
|
/** New tags for the group (maximum of 10 tags). */
|
|
910
922
|
tags?: string[];
|
|
911
923
|
};
|
|
924
|
+
export type UpdateOrganizationSecuritySettingsRequest = {
|
|
925
|
+
/** ID of the Organization. */
|
|
926
|
+
organizationId?: string;
|
|
927
|
+
/** Defines whether password renewal is enforced during first login. */
|
|
928
|
+
enforcePasswordRenewal?: boolean;
|
|
929
|
+
/** Duration of the grace period to renew password or enable MFA. */
|
|
930
|
+
gracePeriodDuration?: string;
|
|
931
|
+
/** Number of login attempts before the account is locked. */
|
|
932
|
+
loginAttemptsBeforeLocked?: number;
|
|
933
|
+
};
|
|
912
934
|
export type UpdatePolicyRequest = {
|
|
913
935
|
/** Id of policy to update. */
|
|
914
936
|
policyId: string;
|
|
@@ -973,3 +995,9 @@ export type UpdateUserRequest = {
|
|
|
973
995
|
/** IAM member email. */
|
|
974
996
|
email?: string;
|
|
975
997
|
};
|
|
998
|
+
export type UpdateUserUsernameRequest = {
|
|
999
|
+
/** ID of the user to update. */
|
|
1000
|
+
userId: string;
|
|
1001
|
+
/** The new username. */
|
|
1002
|
+
username: string;
|
|
1003
|
+
};
|
|
@@ -236,6 +236,13 @@ const UpdateUserPasswordRequest = {
|
|
|
236
236
|
minLength: 1
|
|
237
237
|
}
|
|
238
238
|
};
|
|
239
|
+
const UpdateUserUsernameRequest = {
|
|
240
|
+
username: {
|
|
241
|
+
maxLength: 64,
|
|
242
|
+
minLength: 2,
|
|
243
|
+
pattern: /^[a-zA-Z0-9._-]+$/
|
|
244
|
+
}
|
|
245
|
+
};
|
|
239
246
|
exports.CreateAPIKeyRequest = CreateAPIKeyRequest;
|
|
240
247
|
exports.CreateApplicationRequest = CreateApplicationRequest;
|
|
241
248
|
exports.CreateGroupRequest = CreateGroupRequest;
|
|
@@ -261,3 +268,4 @@ exports.UpdateGroupRequest = UpdateGroupRequest;
|
|
|
261
268
|
exports.UpdatePolicyRequest = UpdatePolicyRequest;
|
|
262
269
|
exports.UpdateSSHKeyRequest = UpdateSSHKeyRequest;
|
|
263
270
|
exports.UpdateUserPasswordRequest = UpdateUserPasswordRequest;
|
|
271
|
+
exports.UpdateUserUsernameRequest = UpdateUserUsernameRequest;
|
|
@@ -234,6 +234,13 @@ const UpdateUserPasswordRequest = {
|
|
|
234
234
|
minLength: 1
|
|
235
235
|
}
|
|
236
236
|
};
|
|
237
|
+
const UpdateUserUsernameRequest = {
|
|
238
|
+
username: {
|
|
239
|
+
maxLength: 64,
|
|
240
|
+
minLength: 2,
|
|
241
|
+
pattern: /^[a-zA-Z0-9._-]+$/
|
|
242
|
+
}
|
|
243
|
+
};
|
|
237
244
|
export {
|
|
238
245
|
CreateAPIKeyRequest,
|
|
239
246
|
CreateApplicationRequest,
|
|
@@ -259,5 +266,6 @@ export {
|
|
|
259
266
|
UpdateGroupRequest,
|
|
260
267
|
UpdatePolicyRequest,
|
|
261
268
|
UpdateSSHKeyRequest,
|
|
262
|
-
UpdateUserPasswordRequest
|
|
269
|
+
UpdateUserPasswordRequest,
|
|
270
|
+
UpdateUserUsernameRequest
|
|
263
271
|
};
|
|
@@ -25,7 +25,10 @@ export interface Image {
|
|
|
25
25
|
updatedAt?: Date;
|
|
26
26
|
/** Expiration date of this image. */
|
|
27
27
|
validUntil?: Date;
|
|
28
|
-
/**
|
|
28
|
+
/**
|
|
29
|
+
* Typically an identifier for a distribution (ex. "ubuntu_focal"). This label
|
|
30
|
+
* can be used in the image field of the server creation request.
|
|
31
|
+
*/
|
|
29
32
|
label: string;
|
|
30
33
|
}
|
|
31
34
|
export interface LocalImage {
|
|
@@ -37,7 +40,7 @@ export interface LocalImage {
|
|
|
37
40
|
arch: string;
|
|
38
41
|
/** Availability Zone where this local image is available. */
|
|
39
42
|
zone: Zone;
|
|
40
|
-
/**
|
|
43
|
+
/** This label can be used in the image field of the server creation request. */
|
|
41
44
|
label: string;
|
|
42
45
|
/** Type of this local image. */
|
|
43
46
|
type: LocalImageType;
|