import { type Tenant } from '../../../../../models/update/shield/index.js'; import { type AdditionalDataHolder, type BaseRequestBuilder, type Parsable, type ParseNode, type RequestConfiguration, type RequestInformation, type RequestsMetadata, type SerializationWriter } from '@microsoft/kiota-abstractions'; /** * Creates a new instance of the appropriate class based on discriminator value * @param parseNode The parse node to use to read the discriminator value and create the object * @returns {WithTenantPatchRequestBody} */ export declare function createWithTenantPatchRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record void>); /** * The deserialization information for the current model * @param WithTenantPatchRequestBody The instance to deserialize into. * @returns {Record void>} */ export declare function deserializeIntoWithTenantPatchRequestBody(withTenantPatchRequestBody?: Partial | undefined): Record void>; /** * Serializes information the current object * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type. * @param WithTenantPatchRequestBody The instance to serialize from. * @param writer Serialization writer to use to serialize this model */ export declare function serializeWithTenantPatchRequestBody(writer: SerializationWriter, withTenantPatchRequestBody?: Partial | undefined | null, isSerializingDerivedType?: boolean): void; /** * Builds and executes requests for operations under /Api/Update/Shield/Tenant/{tenantId} */ export interface WithTenantItemRequestBuilder extends BaseRequestBuilder { /** * Deletes configuration for the specific tenant.This endpoint requires the `UpdateShield.ReadWrite.All` scope (permission). This endpoint is also only accessible from the `SHI Lab` tenant. End user access is restricted. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. */ delete(requestConfiguration?: RequestConfiguration | undefined): Promise; /** * Retrieves configuration for the specific tenant from the update service.This endpoint requires the `UpdateShield.ReadWrite.All` scope (permission). This endpoint is also only accessible from the `SHI Lab` tenant. End user access is restricted. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise} */ get(requestConfiguration?: RequestConfiguration | undefined): Promise; /** * Updates (or adds when missing) tenant configuration.This endpoint requires the `UpdateShield.ReadWrite.All` scope (permission). This endpoint is also only accessible from the `SHI Lab` tenant. End user access is restricted. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise} */ patch(body: WithTenantPatchRequestBody, requestConfiguration?: RequestConfiguration | undefined): Promise; /** * Deletes configuration for the specific tenant.This endpoint requires the `UpdateShield.ReadWrite.All` scope (permission). This endpoint is also only accessible from the `SHI Lab` tenant. End user access is restricted. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toDeleteRequestInformation(requestConfiguration?: RequestConfiguration | undefined): RequestInformation; /** * Retrieves configuration for the specific tenant from the update service.This endpoint requires the `UpdateShield.ReadWrite.All` scope (permission). This endpoint is also only accessible from the `SHI Lab` tenant. End user access is restricted. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined): RequestInformation; /** * Updates (or adds when missing) tenant configuration.This endpoint requires the `UpdateShield.ReadWrite.All` scope (permission). This endpoint is also only accessible from the `SHI Lab` tenant. End user access is restricted. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toPatchRequestInformation(body: WithTenantPatchRequestBody, requestConfiguration?: RequestConfiguration | undefined): RequestInformation; } export interface WithTenantPatchRequestBody extends AdditionalDataHolder, Parsable { /** * Flag that indicates if the current tenant is allowed to request alpha builds (`true`) or not (`false`). */ alphaEnabled?: boolean | null; /** * Name of the deploy channel. */ channel?: string | null; /** * Ring number that the client belongs to for the current channel. */ ring?: number | null; } /** * Uri template for the request builder. */ export declare const WithTenantItemRequestBuilderUriTemplate = "{+baseurl}/Api/Update/Shield/Tenant/{tenantId}"; /** * Metadata for all the requests in the request builder. */ export declare const WithTenantItemRequestBuilderRequestsMetadata: RequestsMetadata;