@shi-corp/sdk-url-shortener
Version:
SDK client used to interface with the URL Shortener application.
39 lines (38 loc) • 2.62 kB
TypeScript
import { type BannedTerm } from '../../../models/redirect/index.js';
import { type BaseRequestBuilder, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
/**
* Builds and executes requests for operations under /Api/BannedName/{id}
*/
export interface BannedNameItemRequestBuilder extends BaseRequestBuilder<BannedNameItemRequestBuilder> {
/**
* Deletes the banned name record from the database.This endpoint requires an RBAC assignment and the `BanList.ReadWrite.All` or `Everything.ReadWrite.All` scope (permission).
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
*/
delete(requestConfiguration?: RequestConfiguration<object> | undefined): Promise<void>;
/**
* Retrieves all information from the database of the banned name record.This endpoint does not have implicit scope (permission) restrictions but includes an internal check on user's RBAC assignments to view the specific ban.
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {Promise<BannedTerm>}
*/
get(requestConfiguration?: RequestConfiguration<object> | undefined): Promise<BannedTerm | undefined>;
/**
* Deletes the banned name record from the database.This endpoint requires an RBAC assignment and the `BanList.ReadWrite.All` or `Everything.ReadWrite.All` scope (permission).
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {RequestInformation}
*/
toDeleteRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
/**
* Retrieves all information from the database of the banned name record.This endpoint does not have implicit scope (permission) restrictions but includes an internal check on user's RBAC assignments to view the specific ban.
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {RequestInformation}
*/
toGetRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
}
/**
* Uri template for the request builder.
*/
export declare const BannedNameItemRequestBuilderUriTemplate = "{+baseurl}/Api/BannedName/{id}";
/**
* Metadata for all the requests in the request builder.
*/
export declare const BannedNameItemRequestBuilderRequestsMetadata: RequestsMetadata;