@rhoas/account-management-sdk
Advanced tools
Comparing version 0.0.2-dev to 0.0.3-dev
@@ -15,7 +15,7 @@ /** | ||
import { RequestArgs, BaseAPI } from '../base'; | ||
import { AccessReviewResponse } from '../model'; | ||
import { AccessTokenCfg } from '../model'; | ||
import { Account } from '../model'; | ||
import { QuotaCostList } from '../model'; | ||
import { SelfAccessReview } from '../model'; | ||
import { SelfTermsReview } from '../model'; | ||
import { TermsReviewResponse } from '../model'; | ||
/** | ||
@@ -53,8 +53,8 @@ * AppServicesApi - axios parameter creator | ||
* | ||
* @summary Review your ability to perform an action on a particular resource or resource type | ||
* @param {SelfAccessReview} selfAccessReview Self access review data | ||
* @summary Review your status of Terms | ||
* @param {SelfTermsReview} selfTermsReview Data to check self terms for | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
apiAuthorizationsV1SelfAccessReviewPost: (selfAccessReview: SelfAccessReview, options?: any) => Promise<RequestArgs>; | ||
apiAuthorizationsV1SelfTermsReviewPost: (selfTermsReview: SelfTermsReview, options?: any) => Promise<RequestArgs>; | ||
}; | ||
@@ -93,8 +93,8 @@ /** | ||
* | ||
* @summary Review your ability to perform an action on a particular resource or resource type | ||
* @param {SelfAccessReview} selfAccessReview Self access review data | ||
* @summary Review your status of Terms | ||
* @param {SelfTermsReview} selfTermsReview Data to check self terms for | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
apiAuthorizationsV1SelfAccessReviewPost(selfAccessReview: SelfAccessReview, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AccessReviewResponse>>; | ||
apiAuthorizationsV1SelfTermsReviewPost(selfTermsReview: SelfTermsReview, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TermsReviewResponse>>; | ||
}; | ||
@@ -133,8 +133,8 @@ /** | ||
* | ||
* @summary Review your ability to perform an action on a particular resource or resource type | ||
* @param {SelfAccessReview} selfAccessReview Self access review data | ||
* @summary Review your status of Terms | ||
* @param {SelfTermsReview} selfTermsReview Data to check self terms for | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
apiAuthorizationsV1SelfAccessReviewPost(selfAccessReview: SelfAccessReview, options?: any): AxiosPromise<AccessReviewResponse>; | ||
apiAuthorizationsV1SelfTermsReviewPost(selfTermsReview: SelfTermsReview, options?: any): AxiosPromise<TermsReviewResponse>; | ||
}; | ||
@@ -177,4 +177,4 @@ /** | ||
* | ||
* @summary Review your ability to perform an action on a particular resource or resource type | ||
* @param {SelfAccessReview} selfAccessReview Self access review data | ||
* @summary Review your status of Terms | ||
* @param {SelfTermsReview} selfTermsReview Data to check self terms for | ||
* @param {*} [options] Override http request option. | ||
@@ -184,3 +184,3 @@ * @throws {RequiredError} | ||
*/ | ||
apiAuthorizationsV1SelfAccessReviewPost(selfAccessReview: SelfAccessReview, options?: any): AxiosPromise<AccessReviewResponse>; | ||
apiAuthorizationsV1SelfTermsReviewPost(selfTermsReview: SelfTermsReview, options?: any): AxiosPromise<TermsReviewResponse>; | ||
} | ||
@@ -224,4 +224,4 @@ /** | ||
* | ||
* @summary Review your ability to perform an action on a particular resource or resource type | ||
* @param {SelfAccessReview} selfAccessReview Self access review data | ||
* @summary Review your status of Terms | ||
* @param {SelfTermsReview} selfTermsReview Data to check self terms for | ||
* @param {*} [options] Override http request option. | ||
@@ -231,3 +231,3 @@ * @throws {RequiredError} | ||
*/ | ||
apiAuthorizationsV1SelfAccessReviewPost(selfAccessReview: SelfAccessReview, options?: any): Promise<import("axios").AxiosResponse<AccessReviewResponse>>; | ||
apiAuthorizationsV1SelfTermsReviewPost(selfTermsReview: SelfTermsReview, options?: any): Promise<import("axios").AxiosResponse<TermsReviewResponse>>; | ||
} |
@@ -140,11 +140,11 @@ "use strict"; | ||
* | ||
* @summary Review your ability to perform an action on a particular resource or resource type | ||
* @param {SelfAccessReview} selfAccessReview Self access review data | ||
* @summary Review your status of Terms | ||
* @param {SelfTermsReview} selfTermsReview Data to check self terms for | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
apiAuthorizationsV1SelfAccessReviewPost: (selfAccessReview, options = {}) => __awaiter(this, void 0, void 0, function* () { | ||
// verify required parameter 'selfAccessReview' is not null or undefined | ||
common_1.assertParamExists('apiAuthorizationsV1SelfAccessReviewPost', 'selfAccessReview', selfAccessReview); | ||
const localVarPath = `/api/authorizations/v1/self_access_review`; | ||
apiAuthorizationsV1SelfTermsReviewPost: (selfTermsReview, options = {}) => __awaiter(this, void 0, void 0, function* () { | ||
// verify required parameter 'selfTermsReview' is not null or undefined | ||
common_1.assertParamExists('apiAuthorizationsV1SelfTermsReviewPost', 'selfTermsReview', selfTermsReview); | ||
const localVarPath = `/api/authorizations/v1/self_terms_review`; | ||
// use dummy base URL string because the URL constructor only accepts absolute URLs. | ||
@@ -166,3 +166,3 @@ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); | ||
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); | ||
localVarRequestOptions.data = common_1.serializeDataIfNeeded(selfAccessReview, localVarRequestOptions, configuration); | ||
localVarRequestOptions.data = common_1.serializeDataIfNeeded(selfTermsReview, localVarRequestOptions, configuration); | ||
return { | ||
@@ -225,10 +225,10 @@ url: common_1.toPathString(localVarUrlObj), | ||
* | ||
* @summary Review your ability to perform an action on a particular resource or resource type | ||
* @param {SelfAccessReview} selfAccessReview Self access review data | ||
* @summary Review your status of Terms | ||
* @param {SelfTermsReview} selfTermsReview Data to check self terms for | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
apiAuthorizationsV1SelfAccessReviewPost(selfAccessReview, options) { | ||
apiAuthorizationsV1SelfTermsReviewPost(selfTermsReview, options) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
const localVarAxiosArgs = yield localVarAxiosParamCreator.apiAuthorizationsV1SelfAccessReviewPost(selfAccessReview, options); | ||
const localVarAxiosArgs = yield localVarAxiosParamCreator.apiAuthorizationsV1SelfTermsReviewPost(selfTermsReview, options); | ||
return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration); | ||
@@ -280,9 +280,9 @@ }); | ||
* | ||
* @summary Review your ability to perform an action on a particular resource or resource type | ||
* @param {SelfAccessReview} selfAccessReview Self access review data | ||
* @summary Review your status of Terms | ||
* @param {SelfTermsReview} selfTermsReview Data to check self terms for | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
apiAuthorizationsV1SelfAccessReviewPost(selfAccessReview, options) { | ||
return localVarFp.apiAuthorizationsV1SelfAccessReviewPost(selfAccessReview, options).then((request) => request(axios, basePath)); | ||
apiAuthorizationsV1SelfTermsReviewPost(selfTermsReview, options) { | ||
return localVarFp.apiAuthorizationsV1SelfTermsReviewPost(selfTermsReview, options).then((request) => request(axios, basePath)); | ||
}, | ||
@@ -335,4 +335,4 @@ }; | ||
* | ||
* @summary Review your ability to perform an action on a particular resource or resource type | ||
* @param {SelfAccessReview} selfAccessReview Self access review data | ||
* @summary Review your status of Terms | ||
* @param {SelfTermsReview} selfTermsReview Data to check self terms for | ||
* @param {*} [options] Override http request option. | ||
@@ -342,6 +342,6 @@ * @throws {RequiredError} | ||
*/ | ||
apiAuthorizationsV1SelfAccessReviewPost(selfAccessReview, options) { | ||
return exports.AppServicesApiFp(this.configuration).apiAuthorizationsV1SelfAccessReviewPost(selfAccessReview, options).then((request) => request(this.axios, this.basePath)); | ||
apiAuthorizationsV1SelfTermsReviewPost(selfTermsReview, options) { | ||
return exports.AppServicesApiFp(this.configuration).apiAuthorizationsV1SelfTermsReviewPost(selfTermsReview, options).then((request) => request(this.axios, this.basePath)); | ||
} | ||
} | ||
exports.AppServicesApi = AppServicesApi; |
{ | ||
"name": "@rhoas/account-management-sdk", | ||
"version": "0.0.2-dev", | ||
"version": "0.0.3-dev", | ||
"description": "RHOAS Account Management SDK", | ||
@@ -5,0 +5,0 @@ "author": "Red Hat Developers", |
@@ -24,4 +24,2 @@ /* tslint:disable */ | ||
// @ts-ignore | ||
import { AccessReviewResponse } from '../model'; | ||
// @ts-ignore | ||
import { AccessTokenCfg } from '../model'; | ||
@@ -33,3 +31,5 @@ // @ts-ignore | ||
// @ts-ignore | ||
import { SelfAccessReview } from '../model'; | ||
import { SelfTermsReview } from '../model'; | ||
// @ts-ignore | ||
import { TermsReviewResponse } from '../model'; | ||
/** | ||
@@ -164,11 +164,11 @@ * AppServicesApi - axios parameter creator | ||
* | ||
* @summary Review your ability to perform an action on a particular resource or resource type | ||
* @param {SelfAccessReview} selfAccessReview Self access review data | ||
* @summary Review your status of Terms | ||
* @param {SelfTermsReview} selfTermsReview Data to check self terms for | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
apiAuthorizationsV1SelfAccessReviewPost: async (selfAccessReview: SelfAccessReview, options: any = {}): Promise<RequestArgs> => { | ||
// verify required parameter 'selfAccessReview' is not null or undefined | ||
assertParamExists('apiAuthorizationsV1SelfAccessReviewPost', 'selfAccessReview', selfAccessReview) | ||
const localVarPath = `/api/authorizations/v1/self_access_review`; | ||
apiAuthorizationsV1SelfTermsReviewPost: async (selfTermsReview: SelfTermsReview, options: any = {}): Promise<RequestArgs> => { | ||
// verify required parameter 'selfTermsReview' is not null or undefined | ||
assertParamExists('apiAuthorizationsV1SelfTermsReviewPost', 'selfTermsReview', selfTermsReview) | ||
const localVarPath = `/api/authorizations/v1/self_terms_review`; | ||
// use dummy base URL string because the URL constructor only accepts absolute URLs. | ||
@@ -196,3 +196,3 @@ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); | ||
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; | ||
localVarRequestOptions.data = serializeDataIfNeeded(selfAccessReview, localVarRequestOptions, configuration) | ||
localVarRequestOptions.data = serializeDataIfNeeded(selfTermsReview, localVarRequestOptions, configuration) | ||
@@ -250,9 +250,9 @@ return { | ||
* | ||
* @summary Review your ability to perform an action on a particular resource or resource type | ||
* @param {SelfAccessReview} selfAccessReview Self access review data | ||
* @summary Review your status of Terms | ||
* @param {SelfTermsReview} selfTermsReview Data to check self terms for | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
async apiAuthorizationsV1SelfAccessReviewPost(selfAccessReview: SelfAccessReview, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AccessReviewResponse>> { | ||
const localVarAxiosArgs = await localVarAxiosParamCreator.apiAuthorizationsV1SelfAccessReviewPost(selfAccessReview, options); | ||
async apiAuthorizationsV1SelfTermsReviewPost(selfTermsReview: SelfTermsReview, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TermsReviewResponse>> { | ||
const localVarAxiosArgs = await localVarAxiosParamCreator.apiAuthorizationsV1SelfTermsReviewPost(selfTermsReview, options); | ||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); | ||
@@ -303,9 +303,9 @@ }, | ||
* | ||
* @summary Review your ability to perform an action on a particular resource or resource type | ||
* @param {SelfAccessReview} selfAccessReview Self access review data | ||
* @summary Review your status of Terms | ||
* @param {SelfTermsReview} selfTermsReview Data to check self terms for | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
apiAuthorizationsV1SelfAccessReviewPost(selfAccessReview: SelfAccessReview, options?: any): AxiosPromise<AccessReviewResponse> { | ||
return localVarFp.apiAuthorizationsV1SelfAccessReviewPost(selfAccessReview, options).then((request) => request(axios, basePath)); | ||
apiAuthorizationsV1SelfTermsReviewPost(selfTermsReview: SelfTermsReview, options?: any): AxiosPromise<TermsReviewResponse> { | ||
return localVarFp.apiAuthorizationsV1SelfTermsReviewPost(selfTermsReview, options).then((request) => request(axios, basePath)); | ||
}, | ||
@@ -354,4 +354,4 @@ }; | ||
* | ||
* @summary Review your ability to perform an action on a particular resource or resource type | ||
* @param {SelfAccessReview} selfAccessReview Self access review data | ||
* @summary Review your status of Terms | ||
* @param {SelfTermsReview} selfTermsReview Data to check self terms for | ||
* @param {*} [options] Override http request option. | ||
@@ -361,3 +361,3 @@ * @throws {RequiredError} | ||
*/ | ||
apiAuthorizationsV1SelfAccessReviewPost(selfAccessReview: SelfAccessReview, options?: any): AxiosPromise<AccessReviewResponse>; | ||
apiAuthorizationsV1SelfTermsReviewPost(selfTermsReview: SelfTermsReview, options?: any): AxiosPromise<TermsReviewResponse>; | ||
@@ -412,4 +412,4 @@ } | ||
* | ||
* @summary Review your ability to perform an action on a particular resource or resource type | ||
* @param {SelfAccessReview} selfAccessReview Self access review data | ||
* @summary Review your status of Terms | ||
* @param {SelfTermsReview} selfTermsReview Data to check self terms for | ||
* @param {*} [options] Override http request option. | ||
@@ -419,5 +419,5 @@ * @throws {RequiredError} | ||
*/ | ||
public apiAuthorizationsV1SelfAccessReviewPost(selfAccessReview: SelfAccessReview, options?: any) { | ||
return AppServicesApiFp(this.configuration).apiAuthorizationsV1SelfAccessReviewPost(selfAccessReview, options).then((request) => request(this.axios, this.basePath)); | ||
public apiAuthorizationsV1SelfTermsReviewPost(selfTermsReview: SelfTermsReview, options?: any) { | ||
return AppServicesApiFp(this.configuration).apiAuthorizationsV1SelfTermsReviewPost(selfTermsReview, options).then((request) => request(this.axios, this.basePath)); | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
480025