@microsoft/msgraph-beta-sdk-organization
Version:
Organization fluent API for Microsoft Graph
116 lines • 8.06 kB
TypeScript
import { type OrganizationalBranding } from '@microsoft/msgraph-beta-sdk/models/index.js';
import { type BackgroundImageRequestBuilder } from './backgroundImage/index.js';
import { type BannerLogoRequestBuilder } from './bannerLogo/index.js';
import { type CustomCSSRequestBuilder } from './customCSS/index.js';
import { type FaviconRequestBuilder } from './favicon/index.js';
import { type HeaderLogoRequestBuilder } from './headerLogo/index.js';
import { type LocalizationsRequestBuilder } from './localizations/index.js';
import { type SquareLogoRequestBuilder } from './squareLogo/index.js';
import { type SquareLogoDarkRequestBuilder } from './squareLogoDark/index.js';
import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
/**
* Provides operations to manage the branding property of the microsoft.graph.organization entity.
*/
export interface BrandingRequestBuilder extends BaseRequestBuilder<BrandingRequestBuilder> {
/**
* Provides operations to manage the media for the organization entity.
*/
get backgroundImage(): BackgroundImageRequestBuilder;
/**
* Provides operations to manage the media for the organization entity.
*/
get bannerLogo(): BannerLogoRequestBuilder;
/**
* Provides operations to manage the media for the organization entity.
*/
get customCSS(): CustomCSSRequestBuilder;
/**
* Provides operations to manage the media for the organization entity.
*/
get favicon(): FaviconRequestBuilder;
/**
* Provides operations to manage the media for the organization entity.
*/
get headerLogo(): HeaderLogoRequestBuilder;
/**
* Provides operations to manage the localizations property of the microsoft.graph.organizationalBranding entity.
*/
get localizations(): LocalizationsRequestBuilder;
/**
* Provides operations to manage the media for the organization entity.
*/
get squareLogo(): SquareLogoRequestBuilder;
/**
* Provides operations to manage the media for the organization entity.
*/
get squareLogoDark(): SquareLogoDarkRequestBuilder;
/**
* Delete the default organizational branding object. To delete the organizationalBranding object, all images (Stream types) must first be removed from the object.
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
* @see {@link https://learn.microsoft.com/graph/api/organizationalbranding-delete?view=graph-rest-beta|Find more info here}
*/
delete(requestConfiguration?: RequestConfiguration<object> | undefined): Promise<void>;
/**
* Retrieve the default organizational branding object, if the Accept-Language header is set to 0 or default. If no default organizational branding object exists, this method returns a 404 Not Found error. If the Accept-Language header is set to an existing locale identified by the value of its id, this method retrieves the branding for the specified locale. This method retrieves only non-Stream properties, for example, usernameHintText and signInPageText. To retrieve Stream types of the default branding, for example, bannerLogo and backgroundImage, use the GET organizationalBrandingLocalization method.
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {Promise<OrganizationalBranding>}
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
* @see {@link https://learn.microsoft.com/graph/api/organizationalbranding-get?view=graph-rest-beta|Find more info here}
*/
get(requestConfiguration?: RequestConfiguration<BrandingRequestBuilderGetQueryParameters> | undefined): Promise<OrganizationalBranding | undefined>;
/**
* Update the properties of the default branding object specified by the organizationalBranding resource.
* @param body The request body
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {Promise<OrganizationalBranding>}
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
* @see {@link https://learn.microsoft.com/graph/api/organizationalbranding-update?view=graph-rest-beta|Find more info here}
*/
patch(body: OrganizationalBranding, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<OrganizationalBranding | undefined>;
/**
* Delete the default organizational branding object. To delete the organizationalBranding object, all images (Stream types) must first be removed from the object.
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {RequestInformation}
*/
toDeleteRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
/**
* Retrieve the default organizational branding object, if the Accept-Language header is set to 0 or default. If no default organizational branding object exists, this method returns a 404 Not Found error. If the Accept-Language header is set to an existing locale identified by the value of its id, this method retrieves the branding for the specified locale. This method retrieves only non-Stream properties, for example, usernameHintText and signInPageText. To retrieve Stream types of the default branding, for example, bannerLogo and backgroundImage, use the GET organizationalBrandingLocalization method.
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {RequestInformation}
*/
toGetRequestInformation(requestConfiguration?: RequestConfiguration<BrandingRequestBuilderGetQueryParameters> | undefined): RequestInformation;
/**
* Update the properties of the default branding object specified by the organizationalBranding resource.
* @param body The request body
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {RequestInformation}
*/
toPatchRequestInformation(body: OrganizationalBranding, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
}
/**
* Retrieve the default organizational branding object, if the Accept-Language header is set to 0 or default. If no default organizational branding object exists, this method returns a 404 Not Found error. If the Accept-Language header is set to an existing locale identified by the value of its id, this method retrieves the branding for the specified locale. This method retrieves only non-Stream properties, for example, usernameHintText and signInPageText. To retrieve Stream types of the default branding, for example, bannerLogo and backgroundImage, use the GET organizationalBrandingLocalization method.
*/
export interface BrandingRequestBuilderGetQueryParameters {
/**
* Expand related entities
*/
expand?: string[];
/**
* Select properties to be returned
*/
select?: string[];
}
/**
* Uri template for the request builder.
*/
export declare const BrandingRequestBuilderUriTemplate = "{+baseurl}/organization/{organization%2Did}/branding{?%24expand,%24select}";
/**
* Metadata for all the navigation properties in the request builder.
*/
export declare const BrandingRequestBuilderNavigationMetadata: Record<Exclude<keyof BrandingRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>;
/**
* Metadata for all the requests in the request builder.
*/
export declare const BrandingRequestBuilderRequestsMetadata: RequestsMetadata;
//# sourceMappingURL=index.d.ts.map