Skip to content

Commit

Permalink
Automated build 'Automated commit 'Merge pull request #1573 from sail…
Browse files Browse the repository at this point in the history
…point/khartzke/IDNARC-2203

IDNARC-2203 Add load entitlements to the beta api docs' by github action: 8193800734' typescript-axios sdk: 8193807659
  • Loading branch information
developer-relations-sp committed Mar 7, 2024
1 parent efdf484 commit 236ce40
Showing 1 changed file with 171 additions and 13 deletions.
184 changes: 171 additions & 13 deletions sdk-output/beta/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13269,6 +13269,19 @@ export interface IdentityWithNewAccessBeta {
*/
'accessRefs': Array<IdentityWithNewAccessAccessRefsInnerBeta>;
}
/**
*
* @export
* @interface ImportEntitlementCsvRequestBeta
*/
export interface ImportEntitlementCsvRequestBeta {
/**
*
* @type {any}
* @memberof ImportEntitlementCsvRequestBeta
*/
'data': any;
}
/**
*
* @export
Expand Down Expand Up @@ -13325,19 +13338,6 @@ export interface ImportFormDefinitions202ResponseErrorsInnerBeta {
*/
'text'?: string;
}
/**
*
* @export
* @interface ImportNonEmployeeRecordsInBulkRequestBeta
*/
export interface ImportNonEmployeeRecordsInBulkRequestBeta {
/**
*
* @type {any}
* @memberof ImportNonEmployeeRecordsInBulkRequestBeta
*/
'data': any;
}
/**
* Object created or updated by import.
* @export
Expand Down Expand Up @@ -14096,6 +14096,55 @@ export const ListWorkgroupMembers200ResponseInnerBetaTypeEnum = {

export type ListWorkgroupMembers200ResponseInnerBetaTypeEnum = typeof ListWorkgroupMembers200ResponseInnerBetaTypeEnum[keyof typeof ListWorkgroupMembers200ResponseInnerBetaTypeEnum];

/**
*
* @export
* @interface LoadEntitlementTaskBeta
*/
export interface LoadEntitlementTaskBeta {
/**
* System-generated unique ID of the task this taskStatus represents
* @type {string}
* @memberof LoadEntitlementTaskBeta
*/
'id'?: string;
/**
* Type of task this task represents
* @type {string}
* @memberof LoadEntitlementTaskBeta
*/
'type'?: string;
/**
* The name of the task
* @type {string}
* @memberof LoadEntitlementTaskBeta
*/
'uniqueName'?: string;
/**
* The description of the task
* @type {string}
* @memberof LoadEntitlementTaskBeta
*/
'description'?: string;
/**
* The user who initiated the task
* @type {string}
* @memberof LoadEntitlementTaskBeta
*/
'launcher'?: string;
/**
* The creation date of the task
* @type {string}
* @memberof LoadEntitlementTaskBeta
*/
'created'?: string;
/**
* Return values from the task
* @type {object}
* @memberof LoadEntitlementTaskBeta
*/
'returns'?: object;
}
/**
* An indicator of how the locale was selected. *DEFAULT* means the locale is the system default. *REQUEST* means the locale was selected from the request context (i.e., best match based on the *Accept-Language* header). Additional values may be added in the future without notice.
* @export
Expand Down Expand Up @@ -39493,6 +39542,59 @@ export const EntitlementsBetaApiAxiosParamCreator = function (configuration?: Co
axiosOptions: localVarRequestOptions,
};
},
/**
* Uploads a comma separated file (CSV) to a delimited file source and starts an entitlement aggregation on the source.
* @summary Import Entitlement CSV File
* @param {string} id Source Id
* @param {any} data
* @param {*} [axiosOptions] Override http request option.
* @throws {RequiredError}
*/
importEntitlementCsv: async (id: string, data: any, axiosOptions: AxiosRequestConfig = {}): Promise<RequestArgs> => {
// verify required parameter 'id' is not null or undefined
assertParamExists('importEntitlementCsv', 'id', id)
// verify required parameter 'data' is not null or undefined
assertParamExists('importEntitlementCsv', 'data', data)
const localVarPath = `/entitlements/aggregate/sources/{id}`
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
let baseOptions;
if (configuration) {
baseOptions = configuration.baseOptions;
}

const localVarRequestOptions = { method: 'POST', ...baseOptions, ...axiosOptions};
const localVarHeaderParameter = {} as any;
const localVarQueryParameter = {} as any;
const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();

// authentication UserContextAuth required
// oauth required
await setOAuthToObject(localVarHeaderParameter, "UserContextAuth", [], configuration)

// authentication UserContextAuth required
// oauth required
await setOAuthToObject(localVarHeaderParameter, "UserContextAuth", [], configuration)


if (data !== undefined) {
localVarFormParams.append('data', data as any);
}


localVarHeaderParameter['Content-Type'] = 'multipart/form-data';

setSearchParams(localVarUrlObj, localVarQueryParameter);
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers};
localVarRequestOptions.data = localVarFormParams;

return {
url: toPathString(localVarUrlObj),
axiosOptions: localVarRequestOptions,
};
},
/**
* This API returns a list of all child entitlements of a given entitlement.
* @summary List of entitlements children
Expand Down Expand Up @@ -39880,6 +39982,18 @@ export const EntitlementsBetaApiFp = function(configuration?: Configuration) {
const localVarAxiosArgs = await localVarAxiosParamCreator.getEntitlementRequestConfig(id, axiosOptions);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
/**
* Uploads a comma separated file (CSV) to a delimited file source and starts an entitlement aggregation on the source.
* @summary Import Entitlement CSV File
* @param {string} id Source Id
* @param {any} data
* @param {*} [axiosOptions] Override http request option.
* @throws {RequiredError}
*/
async importEntitlementCsv(id: string, data: any, axiosOptions?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LoadEntitlementTaskBeta>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.importEntitlementCsv(id, data, axiosOptions);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
/**
* This API returns a list of all child entitlements of a given entitlement.
* @summary List of entitlements children
Expand Down Expand Up @@ -39996,6 +40110,17 @@ export const EntitlementsBetaApiFactory = function (configuration?: Configuratio
getEntitlementRequestConfig(id: string, axiosOptions?: any): AxiosPromise<EntitlementRequestConfigBeta> {
return localVarFp.getEntitlementRequestConfig(id, axiosOptions).then((request) => request(axios, basePath));
},
/**
* Uploads a comma separated file (CSV) to a delimited file source and starts an entitlement aggregation on the source.
* @summary Import Entitlement CSV File
* @param {string} id Source Id
* @param {any} data
* @param {*} [axiosOptions] Override http request option.
* @throws {RequiredError}
*/
importEntitlementCsv(id: string, data: any, axiosOptions?: any): AxiosPromise<LoadEntitlementTaskBeta> {
return localVarFp.importEntitlementCsv(id, data, axiosOptions).then((request) => request(axios, basePath));
},
/**
* This API returns a list of all child entitlements of a given entitlement.
* @summary List of entitlements children
Expand Down Expand Up @@ -40107,6 +40232,27 @@ export interface EntitlementsBetaApiGetEntitlementRequestConfigRequest {
readonly id: string
}

/**
* Request parameters for importEntitlementCsv operation in EntitlementsBetaApi.
* @export
* @interface EntitlementsBetaApiImportEntitlementCsvRequest
*/
export interface EntitlementsBetaApiImportEntitlementCsvRequest {
/**
* Source Id
* @type {string}
* @memberof EntitlementsBetaApiImportEntitlementCsv
*/
readonly id: string

/**
*
* @type {any}
* @memberof EntitlementsBetaApiImportEntitlementCsv
*/
readonly data: any
}

/**
* Request parameters for listEntitlementChildren operation in EntitlementsBetaApi.
* @export
Expand Down Expand Up @@ -40362,6 +40508,18 @@ export class EntitlementsBetaApi extends BaseAPI {
return EntitlementsBetaApiFp(this.configuration).getEntitlementRequestConfig(requestParameters.id, axiosOptions).then((request) => request(this.axios, this.basePath));
}

/**
* Uploads a comma separated file (CSV) to a delimited file source and starts an entitlement aggregation on the source.
* @summary Import Entitlement CSV File
* @param {EntitlementsBetaApiImportEntitlementCsvRequest} requestParameters Request parameters.
* @param {*} [axiosOptions] Override http request option.
* @throws {RequiredError}
* @memberof EntitlementsBetaApi
*/
public importEntitlementCsv(requestParameters: EntitlementsBetaApiImportEntitlementCsvRequest, axiosOptions?: AxiosRequestConfig) {
return EntitlementsBetaApiFp(this.configuration).importEntitlementCsv(requestParameters.id, requestParameters.data, axiosOptions).then((request) => request(this.axios, this.basePath));
}

/**
* This API returns a list of all child entitlements of a given entitlement.
* @summary List of entitlements children
Expand Down

0 comments on commit 236ce40

Please sign in to comment.