diff --git a/sdk/appplatform/arm-appplatform/CHANGELOG.md b/sdk/appplatform/arm-appplatform/CHANGELOG.md index c53e83a4c38a..668aa9f61cd7 100644 --- a/sdk/appplatform/arm-appplatform/CHANGELOG.md +++ b/sdk/appplatform/arm-appplatform/CHANGELOG.md @@ -1,18 +1,8 @@ # Release History + +## 2.0.0-beta.3 (2022-01-27) -## 2.0.0-beta.3 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed - -### Other Changes - -## 2.0.0-beta.2 (2021-12-13) - -The package of @azure/arm-appplatform is using our next generation design principles since version 2.0.0-beta.2, which contains breaking changes. +The package of @azure/arm-appplatform is using our next generation design principles since version 2.0.0-beta.3, which contains breaking changes. To understand the detail of the change, please refer to [Changelog](https://aka.ms/js-track2-changelog). diff --git a/sdk/appplatform/arm-appplatform/LICENSE b/sdk/appplatform/arm-appplatform/LICENSE index ccb63b166732..5d1d36e0af80 100644 --- a/sdk/appplatform/arm-appplatform/LICENSE +++ b/sdk/appplatform/arm-appplatform/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2021 Microsoft +Copyright (c) 2022 Microsoft Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/sdk/appplatform/arm-appplatform/_meta.json b/sdk/appplatform/arm-appplatform/_meta.json index 81e35ae583d2..92c5166658aa 100644 --- a/sdk/appplatform/arm-appplatform/_meta.json +++ b/sdk/appplatform/arm-appplatform/_meta.json @@ -1,7 +1,7 @@ { - "commit": "b8cae07c799a07f2e779a9e301f639e9b85124b1", + "commit": "07ac005d78aeb663baf16325ae3fac90aac51752", "readme": "specification/appplatform/resource-manager/readme.md", - "autorest_command": "autorest --version=3.1.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\mydev\\azure-sdk-for-js ../azure-rest-api-specs/specification/appplatform/resource-manager/readme.md --use=@autorest/typescript@6.0.0-alpha.16.20211207.1", + "autorest_command": "autorest --version=3.7.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/appplatform/resource-manager/readme.md --use=@autorest/typescript@6.0.0-alpha.16.20220105.1", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "use": "@autorest/typescript@6.0.0-alpha.16.20211207.1" + "use": "@autorest/typescript@6.0.0-alpha.16.20220105.1" } \ No newline at end of file diff --git a/sdk/appplatform/arm-appplatform/api-extractor.json b/sdk/appplatform/arm-appplatform/api-extractor.json index 793f39015ecc..4236ccd79b9d 100644 --- a/sdk/appplatform/arm-appplatform/api-extractor.json +++ b/sdk/appplatform/arm-appplatform/api-extractor.json @@ -1,18 +1,31 @@ { "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", "mainEntryPointFilePath": "./dist-esm/src/index.d.ts", - "docModel": { "enabled": true }, - "apiReport": { "enabled": true, "reportFolder": "./review" }, + "docModel": { + "enabled": true + }, + "apiReport": { + "enabled": true, + "reportFolder": "./review" + }, "dtsRollup": { "enabled": true, "untrimmedFilePath": "", "publicTrimmedFilePath": "./types/arm-appplatform.d.ts" }, "messages": { - "tsdocMessageReporting": { "default": { "logLevel": "none" } }, + "tsdocMessageReporting": { + "default": { + "logLevel": "none" + } + }, "extractorMessageReporting": { - "ae-missing-release-tag": { "logLevel": "none" }, - "ae-unresolved-link": { "logLevel": "none" } + "ae-missing-release-tag": { + "logLevel": "none" + }, + "ae-unresolved-link": { + "logLevel": "none" + } } } -} +} \ No newline at end of file diff --git a/sdk/appplatform/arm-appplatform/package.json b/sdk/appplatform/arm-appplatform/package.json index f39484e95337..5a637e531e0d 100644 --- a/sdk/appplatform/arm-appplatform/package.json +++ b/sdk/appplatform/arm-appplatform/package.json @@ -99,4 +99,4 @@ }, "sideEffects": false, "autoPublish": true -} +} \ No newline at end of file diff --git a/sdk/appplatform/arm-appplatform/review/arm-appplatform.api.md b/sdk/appplatform/arm-appplatform/review/arm-appplatform.api.md index 79920c4b4c1c..c9af9f724440 100644 --- a/sdk/appplatform/arm-appplatform/review/arm-appplatform.api.md +++ b/sdk/appplatform/arm-appplatform/review/arm-appplatform.api.md @@ -10,6 +10,170 @@ import { PagedAsyncIterableIterator } from '@azure/core-paging'; import { PollerLike } from '@azure/core-lro'; import { PollOperationState } from '@azure/core-lro'; +// @public +export type ActionType = string; + +// @public +export interface ActiveDeploymentCollection { + activeDeploymentNames?: string[]; +} + +// @public +export interface ApiPortalCustomDomainProperties { + thumbprint?: string; +} + +// @public +export type ApiPortalCustomDomainResource = ProxyResource & { + properties?: ApiPortalCustomDomainProperties; +}; + +// @public +export interface ApiPortalCustomDomainResourceCollection { + nextLink?: string; + value?: ApiPortalCustomDomainResource[]; +} + +// @public +export interface ApiPortalCustomDomains { + beginCreateOrUpdate(resourceGroupName: string, serviceName: string, apiPortalName: string, domainName: string, apiPortalCustomDomainResource: ApiPortalCustomDomainResource, options?: ApiPortalCustomDomainsCreateOrUpdateOptionalParams): Promise, ApiPortalCustomDomainsCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, serviceName: string, apiPortalName: string, domainName: string, apiPortalCustomDomainResource: ApiPortalCustomDomainResource, options?: ApiPortalCustomDomainsCreateOrUpdateOptionalParams): Promise; + beginDelete(resourceGroupName: string, serviceName: string, apiPortalName: string, domainName: string, options?: ApiPortalCustomDomainsDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(resourceGroupName: string, serviceName: string, apiPortalName: string, domainName: string, options?: ApiPortalCustomDomainsDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, apiPortalName: string, domainName: string, options?: ApiPortalCustomDomainsGetOptionalParams): Promise; + list(resourceGroupName: string, serviceName: string, apiPortalName: string, options?: ApiPortalCustomDomainsListOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface ApiPortalCustomDomainsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type ApiPortalCustomDomainsCreateOrUpdateResponse = ApiPortalCustomDomainResource; + +// @public +export interface ApiPortalCustomDomainsDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export interface ApiPortalCustomDomainsGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ApiPortalCustomDomainsGetResponse = ApiPortalCustomDomainResource; + +// @public +export interface ApiPortalCustomDomainsListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ApiPortalCustomDomainsListNextResponse = ApiPortalCustomDomainResourceCollection; + +// @public +export interface ApiPortalCustomDomainsListOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ApiPortalCustomDomainsListResponse = ApiPortalCustomDomainResourceCollection; + +// @public +export interface ApiPortalInstance { + readonly name?: string; + readonly status?: string; +} + +// @public +export interface ApiPortalProperties { + gatewayIds?: string[]; + httpsOnly?: boolean; + readonly instances?: ApiPortalInstance[]; + readonly provisioningState?: ApiPortalProvisioningState; + public?: boolean; + readonly resourceRequests?: ApiPortalResourceRequests; + sourceUrls?: string[]; + ssoProperties?: SsoProperties; + readonly url?: string; +} + +// @public +export type ApiPortalProvisioningState = string; + +// @public +export type ApiPortalResource = ProxyResource & { + properties?: ApiPortalProperties; + sku?: Sku; +}; + +// @public +export interface ApiPortalResourceCollection { + nextLink?: string; + value?: ApiPortalResource[]; +} + +// @public +export interface ApiPortalResourceRequests { + readonly cpu?: string; + readonly memory?: string; +} + +// @public +export interface ApiPortals { + beginCreateOrUpdate(resourceGroupName: string, serviceName: string, apiPortalName: string, apiPortalResource: ApiPortalResource, options?: ApiPortalsCreateOrUpdateOptionalParams): Promise, ApiPortalsCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, serviceName: string, apiPortalName: string, apiPortalResource: ApiPortalResource, options?: ApiPortalsCreateOrUpdateOptionalParams): Promise; + beginDelete(resourceGroupName: string, serviceName: string, apiPortalName: string, options?: ApiPortalsDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(resourceGroupName: string, serviceName: string, apiPortalName: string, options?: ApiPortalsDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, apiPortalName: string, options?: ApiPortalsGetOptionalParams): Promise; + list(resourceGroupName: string, serviceName: string, options?: ApiPortalsListOptionalParams): PagedAsyncIterableIterator; + validateDomain(resourceGroupName: string, serviceName: string, apiPortalName: string, validatePayload: CustomDomainValidatePayload, options?: ApiPortalsValidateDomainOptionalParams): Promise; +} + +// @public +export interface ApiPortalsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type ApiPortalsCreateOrUpdateResponse = ApiPortalResource; + +// @public +export interface ApiPortalsDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export interface ApiPortalsGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ApiPortalsGetResponse = ApiPortalResource; + +// @public +export interface ApiPortalsListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ApiPortalsListNextResponse = ApiPortalResourceCollection; + +// @public +export interface ApiPortalsListOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ApiPortalsListResponse = ApiPortalResourceCollection; + +// @public +export interface ApiPortalsValidateDomainOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ApiPortalsValidateDomainResponse = CustomDomainValidateResult; + // @public export interface ApplicationInsightsAgentVersions { readonly java?: string; @@ -21,26 +185,48 @@ export class AppPlatformManagementClient extends coreClient.ServiceClient { $host: string; constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: AppPlatformManagementClientOptionalParams); // (undocumented) + apiPortalCustomDomains: ApiPortalCustomDomains; + // (undocumented) + apiPortals: ApiPortals; + // (undocumented) apiVersion: string; // (undocumented) apps: Apps; // (undocumented) bindings: Bindings; // (undocumented) + buildpackBinding: BuildpackBinding; + // (undocumented) + buildServiceAgentPool: BuildServiceAgentPool; + // (undocumented) + buildServiceBuilder: BuildServiceBuilder; + // (undocumented) + buildServiceOperations: BuildServiceOperations; + // (undocumented) certificates: Certificates; // (undocumented) configServers: ConfigServers; // (undocumented) + configurationServices: ConfigurationServices; + // (undocumented) customDomains: CustomDomains; // (undocumented) deployments: Deployments; // (undocumented) + gatewayCustomDomains: GatewayCustomDomains; + // (undocumented) + gatewayRouteConfigs: GatewayRouteConfigs; + // (undocumented) + gateways: Gateways; + // (undocumented) monitoringSettings: MonitoringSettings; // (undocumented) operations: Operations; // (undocumented) runtimeVersions: RuntimeVersions; // (undocumented) + serviceRegistries: ServiceRegistries; + // (undocumented) services: Services; // (undocumented) skus: Skus; @@ -72,8 +258,11 @@ export interface AppResourceCollection { // @public export interface AppResourceProperties { - activeDeploymentName?: string; - readonly createdTime?: Date; + addonConfigs?: { + [propertyName: string]: { + [propertyName: string]: Record; + }; + }; customPersistentDisks?: CustomPersistentDiskResource[]; enableEndToEndTLS?: boolean; fqdn?: string; @@ -95,6 +284,8 @@ export interface Apps { beginCreateOrUpdateAndWait(resourceGroupName: string, serviceName: string, appName: string, appResource: AppResource, options?: AppsCreateOrUpdateOptionalParams): Promise; beginDelete(resourceGroupName: string, serviceName: string, appName: string, options?: AppsDeleteOptionalParams): Promise, void>>; beginDeleteAndWait(resourceGroupName: string, serviceName: string, appName: string, options?: AppsDeleteOptionalParams): Promise; + beginSetActiveDeployments(resourceGroupName: string, serviceName: string, appName: string, activeDeploymentCollection: ActiveDeploymentCollection, options?: AppsSetActiveDeploymentsOptionalParams): Promise, AppsSetActiveDeploymentsResponse>>; + beginSetActiveDeploymentsAndWait(resourceGroupName: string, serviceName: string, appName: string, activeDeploymentCollection: ActiveDeploymentCollection, options?: AppsSetActiveDeploymentsOptionalParams): Promise; beginUpdate(resourceGroupName: string, serviceName: string, appName: string, appResource: AppResource, options?: AppsUpdateOptionalParams): Promise, AppsUpdateResponse>>; beginUpdateAndWait(resourceGroupName: string, serviceName: string, appName: string, appResource: AppResource, options?: AppsUpdateOptionalParams): Promise; get(resourceGroupName: string, serviceName: string, appName: string, options?: AppsGetOptionalParams): Promise; @@ -147,6 +338,15 @@ export interface AppsListOptionalParams extends coreClient.OperationOptions { // @public export type AppsListResponse = AppResourceCollection; +// @public +export interface AppsSetActiveDeploymentsOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type AppsSetActiveDeploymentsResponse = AppResource; + // @public export interface AppsUpdateOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; @@ -263,195 +463,772 @@ export interface BindingsUpdateOptionalParams extends coreClient.OperationOption export type BindingsUpdateResponse = BindingResource; // @public -export interface CertificateProperties { - readonly activateDate?: string; - readonly dnsNames?: string[]; - readonly expirationDate?: string; - readonly issuedDate?: string; - readonly issuer?: string; - readonly subjectName?: string; - readonly thumbprint?: string; - type: "KeyVaultCertificate" | "ContentCertificate"; +export type BindingType = string; + +// @public +export type Build = ProxyResource & { + properties?: BuildProperties; +}; + +// @public +export interface BuildCollection { + nextLink?: string; + value?: Build[]; } -// @public (undocumented) -export type CertificatePropertiesUnion = CertificateProperties | KeyVaultCertificateProperties | ContentCertificateProperties; +// @public +export interface BuilderProperties { + buildpackGroups?: BuildpacksGroupProperties[]; + readonly provisioningState?: BuilderProvisioningState; + stack?: StackProperties; +} // @public -export type CertificateResource = ProxyResource & { - properties?: CertificatePropertiesUnion; +export type BuilderProvisioningState = string; + +// @public +export type BuilderResource = ProxyResource & { + properties?: BuilderProperties; }; // @public -export interface CertificateResourceCollection { +export interface BuilderResourceCollection { nextLink?: string; - value?: CertificateResource[]; + value?: BuilderResource[]; } // @public -export interface Certificates { - beginCreateOrUpdate(resourceGroupName: string, serviceName: string, certificateName: string, certificateResource: CertificateResource, options?: CertificatesCreateOrUpdateOptionalParams): Promise, CertificatesCreateOrUpdateResponse>>; - beginCreateOrUpdateAndWait(resourceGroupName: string, serviceName: string, certificateName: string, certificateResource: CertificateResource, options?: CertificatesCreateOrUpdateOptionalParams): Promise; - beginDelete(resourceGroupName: string, serviceName: string, certificateName: string, options?: CertificatesDeleteOptionalParams): Promise, void>>; - beginDeleteAndWait(resourceGroupName: string, serviceName: string, certificateName: string, options?: CertificatesDeleteOptionalParams): Promise; - get(resourceGroupName: string, serviceName: string, certificateName: string, options?: CertificatesGetOptionalParams): Promise; - list(resourceGroupName: string, serviceName: string, options?: CertificatesListOptionalParams): PagedAsyncIterableIterator; +export interface BuildpackBinding { + beginCreateOrUpdate(resourceGroupName: string, serviceName: string, buildServiceName: string, builderName: string, buildpackBindingName: string, buildpackBinding: BuildpackBindingResource, options?: BuildpackBindingCreateOrUpdateOptionalParams): Promise, BuildpackBindingCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, serviceName: string, buildServiceName: string, builderName: string, buildpackBindingName: string, buildpackBinding: BuildpackBindingResource, options?: BuildpackBindingCreateOrUpdateOptionalParams): Promise; + beginDelete(resourceGroupName: string, serviceName: string, buildServiceName: string, builderName: string, buildpackBindingName: string, options?: BuildpackBindingDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(resourceGroupName: string, serviceName: string, buildServiceName: string, builderName: string, buildpackBindingName: string, options?: BuildpackBindingDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, buildServiceName: string, builderName: string, buildpackBindingName: string, options?: BuildpackBindingGetOptionalParams): Promise; + list(resourceGroupName: string, serviceName: string, buildServiceName: string, builderName: string, options?: BuildpackBindingListOptionalParams): PagedAsyncIterableIterator; } // @public -export interface CertificatesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +export interface BuildpackBindingCreateOrUpdateOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; updateIntervalInMs?: number; } // @public -export type CertificatesCreateOrUpdateResponse = CertificateResource; +export type BuildpackBindingCreateOrUpdateResponse = BuildpackBindingResource; // @public -export interface CertificatesDeleteOptionalParams extends coreClient.OperationOptions { +export interface BuildpackBindingDeleteOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; updateIntervalInMs?: number; } // @public -export interface CertificatesGetOptionalParams extends coreClient.OperationOptions { +export interface BuildpackBindingGetOptionalParams extends coreClient.OperationOptions { } // @public -export type CertificatesGetResponse = CertificateResource; +export type BuildpackBindingGetResponse = BuildpackBindingResource; // @public -export interface CertificatesListNextOptionalParams extends coreClient.OperationOptions { +export interface BuildpackBindingLaunchProperties { + properties?: { + [propertyName: string]: string; + }; + secrets?: { + [propertyName: string]: string; + }; } // @public -export type CertificatesListNextResponse = CertificateResourceCollection; +export interface BuildpackBindingListNextOptionalParams extends coreClient.OperationOptions { +} // @public -export interface CertificatesListOptionalParams extends coreClient.OperationOptions { +export type BuildpackBindingListNextResponse = BuildpackBindingResourceCollection; + +// @public +export interface BuildpackBindingListOptionalParams extends coreClient.OperationOptions { } // @public -export type CertificatesListResponse = CertificateResourceCollection; +export type BuildpackBindingListResponse = BuildpackBindingResourceCollection; // @public -export interface CloudError { - error?: CloudErrorBody; +export interface BuildpackBindingProperties { + bindingType?: BindingType; + launchProperties?: BuildpackBindingLaunchProperties; + readonly provisioningState?: BuildpackBindingProvisioningState; } // @public -export interface CloudErrorBody { - code?: string; - details?: CloudErrorBody[]; - message?: string; - target?: string; +export type BuildpackBindingProvisioningState = string; + +// @public +export type BuildpackBindingResource = ProxyResource & { + properties?: BuildpackBindingProperties; +}; + +// @public +export interface BuildpackBindingResourceCollection { + nextLink?: string; + value?: BuildpackBindingResource[]; } // @public -export interface ClusterResourceProperties { - networkProfile?: NetworkProfile; - readonly powerState?: PowerState; - readonly provisioningState?: ProvisioningState; - readonly serviceId?: string; - readonly version?: number; +export interface BuildpackProperties { + id?: string; } // @public -export interface ConfigServerGitProperty { - hostKey?: string; - hostKeyAlgorithm?: string; - label?: string; - password?: string; - privateKey?: string; - repositories?: GitPatternRepository[]; - searchPaths?: string[]; - strictHostKeyChecking?: boolean; - uri: string; - username?: string; +export interface BuildpacksGroupProperties { + buildpacks?: BuildpackProperties[]; + name?: string; } // @public -export interface ConfigServerProperties { - configServer?: ConfigServerSettings; - error?: ErrorModel; - readonly provisioningState?: ConfigServerState; +export interface BuildProperties { + agentPool?: string; + builder?: string; + env?: { + [propertyName: string]: string; + }; + readonly provisioningState?: BuildProvisioningState; + relativePath?: string; + readonly triggeredBuildResult?: TriggeredBuildResult; } // @public -export type ConfigServerResource = ProxyResource & { - properties?: ConfigServerProperties; +export type BuildProvisioningState = string; + +// @public +export type BuildResult = ProxyResource & { + properties?: BuildResultProperties; }; // @public -export interface ConfigServers { - beginUpdatePatch(resourceGroupName: string, serviceName: string, configServerResource: ConfigServerResource, options?: ConfigServersUpdatePatchOptionalParams): Promise, ConfigServersUpdatePatchResponse>>; - beginUpdatePatchAndWait(resourceGroupName: string, serviceName: string, configServerResource: ConfigServerResource, options?: ConfigServersUpdatePatchOptionalParams): Promise; - beginUpdatePut(resourceGroupName: string, serviceName: string, configServerResource: ConfigServerResource, options?: ConfigServersUpdatePutOptionalParams): Promise, ConfigServersUpdatePutResponse>>; - beginUpdatePutAndWait(resourceGroupName: string, serviceName: string, configServerResource: ConfigServerResource, options?: ConfigServersUpdatePutOptionalParams): Promise; - beginValidate(resourceGroupName: string, serviceName: string, configServerSettings: ConfigServerSettings, options?: ConfigServersValidateOptionalParams): Promise, ConfigServersValidateResponse>>; - beginValidateAndWait(resourceGroupName: string, serviceName: string, configServerSettings: ConfigServerSettings, options?: ConfigServersValidateOptionalParams): Promise; - get(resourceGroupName: string, serviceName: string, options?: ConfigServersGetOptionalParams): Promise; +export interface BuildResultCollection { + nextLink?: string; + value?: BuildResult[]; } // @public -export interface ConfigServerSettings { - gitProperty?: ConfigServerGitProperty; +export interface BuildResultLog { + blobUrl?: string; } // @public -export interface ConfigServerSettingsErrorRecord { - messages?: string[]; +export interface BuildResultProperties { + buildPodName?: string; + readonly buildStages?: BuildStageProperties[]; name?: string; - uri?: string; + readonly provisioningState?: BuildResultProvisioningState; } // @public -export interface ConfigServerSettingsValidateResult { - details?: ConfigServerSettingsErrorRecord[]; - isValid?: boolean; -} +export type BuildResultProvisioningState = string; // @public -export interface ConfigServersGetOptionalParams extends coreClient.OperationOptions { -} +export type BuildResultUserSourceInfo = UserSourceInfo & { + type: "BuildResult"; + buildResultId?: string; +}; // @public -export type ConfigServersGetResponse = ConfigServerResource; +export type BuildService = ProxyResource & { + properties?: BuildServiceProperties; +}; // @public -export type ConfigServerState = string; +export interface BuildServiceAgentPool { + beginUpdatePut(resourceGroupName: string, serviceName: string, buildServiceName: string, agentPoolName: string, agentPoolResource: BuildServiceAgentPoolResource, options?: BuildServiceAgentPoolUpdatePutOptionalParams): Promise, BuildServiceAgentPoolUpdatePutResponse>>; + beginUpdatePutAndWait(resourceGroupName: string, serviceName: string, buildServiceName: string, agentPoolName: string, agentPoolResource: BuildServiceAgentPoolResource, options?: BuildServiceAgentPoolUpdatePutOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, buildServiceName: string, agentPoolName: string, options?: BuildServiceAgentPoolGetOptionalParams): Promise; + list(resourceGroupName: string, serviceName: string, buildServiceName: string, options?: BuildServiceAgentPoolListOptionalParams): PagedAsyncIterableIterator; +} // @public -export interface ConfigServersUpdatePatchOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; +export interface BuildServiceAgentPoolGetOptionalParams extends coreClient.OperationOptions { } // @public -export type ConfigServersUpdatePatchResponse = ConfigServerResource; +export type BuildServiceAgentPoolGetResponse = BuildServiceAgentPoolResource; // @public -export interface ConfigServersUpdatePutOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; +export interface BuildServiceAgentPoolListNextOptionalParams extends coreClient.OperationOptions { } // @public -export type ConfigServersUpdatePutResponse = ConfigServerResource; +export type BuildServiceAgentPoolListNextResponse = BuildServiceAgentPoolResourceCollection; // @public -export interface ConfigServersValidateOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; +export interface BuildServiceAgentPoolListOptionalParams extends coreClient.OperationOptions { } // @public -export type ConfigServersValidateResponse = ConfigServerSettingsValidateResult; +export type BuildServiceAgentPoolListResponse = BuildServiceAgentPoolResourceCollection; // @public -export type ContentCertificateProperties = CertificateProperties & { - type: "ContentCertificate"; - content: string; +export interface BuildServiceAgentPoolProperties { + poolSize?: BuildServiceAgentPoolSizeProperties; + readonly provisioningState?: string; +} + +// @public +export type BuildServiceAgentPoolResource = ProxyResource & { + properties?: BuildServiceAgentPoolProperties; +}; + +// @public +export interface BuildServiceAgentPoolResourceCollection { + nextLink?: string; + value?: BuildServiceAgentPoolResource[]; +} + +// @public +export interface BuildServiceAgentPoolSizeProperties { + readonly cpu?: string; + readonly memory?: string; + name?: string; +} + +// @public +export interface BuildServiceAgentPoolUpdatePutOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type BuildServiceAgentPoolUpdatePutResponse = BuildServiceAgentPoolResource; + +// @public +export interface BuildServiceBuilder { + beginCreateOrUpdate(resourceGroupName: string, serviceName: string, buildServiceName: string, builderName: string, builderResource: BuilderResource, options?: BuildServiceBuilderCreateOrUpdateOptionalParams): Promise, BuildServiceBuilderCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, serviceName: string, buildServiceName: string, builderName: string, builderResource: BuilderResource, options?: BuildServiceBuilderCreateOrUpdateOptionalParams): Promise; + beginDelete(resourceGroupName: string, serviceName: string, buildServiceName: string, builderName: string, options?: BuildServiceBuilderDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(resourceGroupName: string, serviceName: string, buildServiceName: string, builderName: string, options?: BuildServiceBuilderDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, buildServiceName: string, builderName: string, options?: BuildServiceBuilderGetOptionalParams): Promise; + list(resourceGroupName: string, serviceName: string, buildServiceName: string, options?: BuildServiceBuilderListOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface BuildServiceBuilderCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type BuildServiceBuilderCreateOrUpdateResponse = BuilderResource; + +// @public +export interface BuildServiceBuilderDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export interface BuildServiceBuilderGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type BuildServiceBuilderGetResponse = BuilderResource; + +// @public +export interface BuildServiceBuilderListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type BuildServiceBuilderListNextResponse = BuilderResourceCollection; + +// @public +export interface BuildServiceBuilderListOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type BuildServiceBuilderListResponse = BuilderResourceCollection; + +// @public +export interface BuildServiceCollection { + nextLink?: string; + value?: BuildService[]; +} + +// @public +export interface BuildServiceCreateOrUpdateBuildOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type BuildServiceCreateOrUpdateBuildResponse = Build; + +// @public +export interface BuildServiceGetBuildOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type BuildServiceGetBuildResponse = Build; + +// @public +export interface BuildServiceGetBuildResultLogOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type BuildServiceGetBuildResultLogResponse = BuildResultLog; + +// @public +export interface BuildServiceGetBuildResultOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type BuildServiceGetBuildResultResponse = BuildResult; + +// @public +export interface BuildServiceGetBuildServiceOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type BuildServiceGetBuildServiceResponse = BuildService; + +// @public +export interface BuildServiceGetResourceUploadUrlOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type BuildServiceGetResourceUploadUrlResponse = ResourceUploadDefinition; + +// @public +export interface BuildServiceGetSupportedBuildpackOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type BuildServiceGetSupportedBuildpackResponse = SupportedBuildpackResource; + +// @public +export interface BuildServiceGetSupportedStackOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type BuildServiceGetSupportedStackResponse = SupportedStackResource; + +// @public +export interface BuildServiceListBuildResultsNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type BuildServiceListBuildResultsNextResponse = BuildResultCollection; + +// @public +export interface BuildServiceListBuildResultsOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type BuildServiceListBuildResultsResponse = BuildResultCollection; + +// @public +export interface BuildServiceListBuildServicesNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type BuildServiceListBuildServicesNextResponse = BuildServiceCollection; + +// @public +export interface BuildServiceListBuildServicesOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type BuildServiceListBuildServicesResponse = BuildServiceCollection; + +// @public +export interface BuildServiceListBuildsNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type BuildServiceListBuildsNextResponse = BuildCollection; + +// @public +export interface BuildServiceListBuildsOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type BuildServiceListBuildsResponse = BuildCollection; + +// @public +export interface BuildServiceListSupportedBuildpacksOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type BuildServiceListSupportedBuildpacksResponse = SupportedBuildpacksCollection; + +// @public +export interface BuildServiceListSupportedStacksOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type BuildServiceListSupportedStacksResponse = SupportedStacksCollection; + +// @public +export interface BuildServiceOperations { + createOrUpdateBuild(resourceGroupName: string, serviceName: string, buildServiceName: string, buildName: string, build: Build, options?: BuildServiceCreateOrUpdateBuildOptionalParams): Promise; + getBuild(resourceGroupName: string, serviceName: string, buildServiceName: string, buildName: string, options?: BuildServiceGetBuildOptionalParams): Promise; + getBuildResult(resourceGroupName: string, serviceName: string, buildServiceName: string, buildName: string, buildResultName: string, options?: BuildServiceGetBuildResultOptionalParams): Promise; + getBuildResultLog(resourceGroupName: string, serviceName: string, buildServiceName: string, buildName: string, buildResultName: string, options?: BuildServiceGetBuildResultLogOptionalParams): Promise; + getBuildService(resourceGroupName: string, serviceName: string, buildServiceName: string, options?: BuildServiceGetBuildServiceOptionalParams): Promise; + getResourceUploadUrl(resourceGroupName: string, serviceName: string, buildServiceName: string, options?: BuildServiceGetResourceUploadUrlOptionalParams): Promise; + getSupportedBuildpack(resourceGroupName: string, serviceName: string, buildServiceName: string, buildpackName: string, options?: BuildServiceGetSupportedBuildpackOptionalParams): Promise; + getSupportedStack(resourceGroupName: string, serviceName: string, buildServiceName: string, stackName: string, options?: BuildServiceGetSupportedStackOptionalParams): Promise; + listBuildResults(resourceGroupName: string, serviceName: string, buildServiceName: string, buildName: string, options?: BuildServiceListBuildResultsOptionalParams): PagedAsyncIterableIterator; + listBuilds(resourceGroupName: string, serviceName: string, buildServiceName: string, options?: BuildServiceListBuildsOptionalParams): PagedAsyncIterableIterator; + listBuildServices(resourceGroupName: string, serviceName: string, options?: BuildServiceListBuildServicesOptionalParams): PagedAsyncIterableIterator; + listSupportedBuildpacks(resourceGroupName: string, serviceName: string, buildServiceName: string, options?: BuildServiceListSupportedBuildpacksOptionalParams): Promise; + listSupportedStacks(resourceGroupName: string, serviceName: string, buildServiceName: string, options?: BuildServiceListSupportedStacksOptionalParams): Promise; +} + +// @public +export interface BuildServiceProperties { + kPackVersion?: string; + readonly provisioningState?: BuildServiceProvisioningState; + resourceRequests?: BuildServicePropertiesResourceRequests; +} + +// @public +export interface BuildServicePropertiesResourceRequests { + readonly cpu?: string; + readonly memory?: string; +} + +// @public +export type BuildServiceProvisioningState = string; + +// @public +export interface BuildStageProperties { + readonly name?: string; + readonly status?: KPackBuildStageProvisioningState; +} + +// @public +export interface CertificateProperties { + readonly activateDate?: string; + readonly dnsNames?: string[]; + readonly expirationDate?: string; + readonly issuedDate?: string; + readonly issuer?: string; + readonly subjectName?: string; + readonly thumbprint?: string; + type: "KeyVaultCertificate" | "ContentCertificate"; +} + +// @public (undocumented) +export type CertificatePropertiesUnion = CertificateProperties | KeyVaultCertificateProperties | ContentCertificateProperties; + +// @public +export type CertificateResource = ProxyResource & { + properties?: CertificatePropertiesUnion; +}; + +// @public +export interface CertificateResourceCollection { + nextLink?: string; + value?: CertificateResource[]; +} + +// @public +export interface Certificates { + beginCreateOrUpdate(resourceGroupName: string, serviceName: string, certificateName: string, certificateResource: CertificateResource, options?: CertificatesCreateOrUpdateOptionalParams): Promise, CertificatesCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, serviceName: string, certificateName: string, certificateResource: CertificateResource, options?: CertificatesCreateOrUpdateOptionalParams): Promise; + beginDelete(resourceGroupName: string, serviceName: string, certificateName: string, options?: CertificatesDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(resourceGroupName: string, serviceName: string, certificateName: string, options?: CertificatesDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, certificateName: string, options?: CertificatesGetOptionalParams): Promise; + list(resourceGroupName: string, serviceName: string, options?: CertificatesListOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface CertificatesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type CertificatesCreateOrUpdateResponse = CertificateResource; + +// @public +export interface CertificatesDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export interface CertificatesGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type CertificatesGetResponse = CertificateResource; + +// @public +export interface CertificatesListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type CertificatesListNextResponse = CertificateResourceCollection; + +// @public +export interface CertificatesListOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type CertificatesListResponse = CertificateResourceCollection; + +// @public +export interface CloudError { + error?: CloudErrorBody; +} + +// @public +export interface CloudErrorBody { + code?: string; + details?: CloudErrorBody[]; + message?: string; + target?: string; +} + +// @public +export interface ClusterResourceProperties { + readonly fqdn?: string; + networkProfile?: NetworkProfile; + readonly powerState?: PowerState; + readonly provisioningState?: ProvisioningState; + readonly serviceId?: string; + readonly version?: number; + // (undocumented) + zoneRedundant?: boolean; +} + +// @public +export interface ConfigServerGitProperty { + hostKey?: string; + hostKeyAlgorithm?: string; + label?: string; + password?: string; + privateKey?: string; + repositories?: GitPatternRepository[]; + searchPaths?: string[]; + strictHostKeyChecking?: boolean; + uri: string; + username?: string; +} + +// @public +export interface ConfigServerProperties { + configServer?: ConfigServerSettings; + error?: ErrorModel; + readonly provisioningState?: ConfigServerState; +} + +// @public +export type ConfigServerResource = ProxyResource & { + properties?: ConfigServerProperties; +}; + +// @public +export interface ConfigServers { + beginUpdatePatch(resourceGroupName: string, serviceName: string, configServerResource: ConfigServerResource, options?: ConfigServersUpdatePatchOptionalParams): Promise, ConfigServersUpdatePatchResponse>>; + beginUpdatePatchAndWait(resourceGroupName: string, serviceName: string, configServerResource: ConfigServerResource, options?: ConfigServersUpdatePatchOptionalParams): Promise; + beginUpdatePut(resourceGroupName: string, serviceName: string, configServerResource: ConfigServerResource, options?: ConfigServersUpdatePutOptionalParams): Promise, ConfigServersUpdatePutResponse>>; + beginUpdatePutAndWait(resourceGroupName: string, serviceName: string, configServerResource: ConfigServerResource, options?: ConfigServersUpdatePutOptionalParams): Promise; + beginValidate(resourceGroupName: string, serviceName: string, configServerSettings: ConfigServerSettings, options?: ConfigServersValidateOptionalParams): Promise, ConfigServersValidateResponse>>; + beginValidateAndWait(resourceGroupName: string, serviceName: string, configServerSettings: ConfigServerSettings, options?: ConfigServersValidateOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, options?: ConfigServersGetOptionalParams): Promise; +} + +// @public +export interface ConfigServerSettings { + gitProperty?: ConfigServerGitProperty; +} + +// @public +export interface ConfigServerSettingsErrorRecord { + messages?: string[]; + name?: string; + uri?: string; +} + +// @public +export interface ConfigServerSettingsValidateResult { + details?: ConfigServerSettingsErrorRecord[]; + isValid?: boolean; +} + +// @public +export interface ConfigServersGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ConfigServersGetResponse = ConfigServerResource; + +// @public +export type ConfigServerState = string; + +// @public +export interface ConfigServersUpdatePatchOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type ConfigServersUpdatePatchResponse = ConfigServerResource; + +// @public +export interface ConfigServersUpdatePutOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type ConfigServersUpdatePutResponse = ConfigServerResource; + +// @public +export interface ConfigServersValidateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type ConfigServersValidateResponse = ConfigServerSettingsValidateResult; + +// @public +export interface ConfigurationServiceGitProperty { + repositories?: ConfigurationServiceGitRepository[]; +} + +// @public +export interface ConfigurationServiceGitPropertyValidateResult { + gitReposValidationResult?: ValidationMessages[]; + isValid?: boolean; +} + +// @public +export interface ConfigurationServiceGitRepository { + hostKey?: string; + hostKeyAlgorithm?: string; + label: string; + name: string; + password?: string; + patterns: string[]; + privateKey?: string; + searchPaths?: string[]; + strictHostKeyChecking?: boolean; + uri: string; + username?: string; +} + +// @public +export interface ConfigurationServiceInstance { + readonly name?: string; + readonly status?: string; +} + +// @public +export interface ConfigurationServiceProperties { + readonly instances?: ConfigurationServiceInstance[]; + readonly provisioningState?: ConfigurationServiceProvisioningState; + readonly resourceRequests?: ConfigurationServiceResourceRequests; + settings?: ConfigurationServiceSettings; +} + +// @public +export type ConfigurationServiceProvisioningState = string; + +// @public +export type ConfigurationServiceResource = ProxyResource & { + properties?: ConfigurationServiceProperties; +}; + +// @public +export interface ConfigurationServiceResourceCollection { + nextLink?: string; + value?: ConfigurationServiceResource[]; +} + +// @public +export interface ConfigurationServiceResourceRequests { + readonly cpu?: string; + readonly instanceCount?: number; + readonly memory?: string; +} + +// @public +export interface ConfigurationServices { + beginCreateOrUpdate(resourceGroupName: string, serviceName: string, configurationServiceName: string, configurationServiceResource: ConfigurationServiceResource, options?: ConfigurationServicesCreateOrUpdateOptionalParams): Promise, ConfigurationServicesCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, serviceName: string, configurationServiceName: string, configurationServiceResource: ConfigurationServiceResource, options?: ConfigurationServicesCreateOrUpdateOptionalParams): Promise; + beginDelete(resourceGroupName: string, serviceName: string, configurationServiceName: string, options?: ConfigurationServicesDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(resourceGroupName: string, serviceName: string, configurationServiceName: string, options?: ConfigurationServicesDeleteOptionalParams): Promise; + beginValidate(resourceGroupName: string, serviceName: string, configurationServiceName: string, settings: ConfigurationServiceSettings, options?: ConfigurationServicesValidateOptionalParams): Promise, ConfigurationServicesValidateResponse>>; + beginValidateAndWait(resourceGroupName: string, serviceName: string, configurationServiceName: string, settings: ConfigurationServiceSettings, options?: ConfigurationServicesValidateOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, configurationServiceName: string, options?: ConfigurationServicesGetOptionalParams): Promise; + list(resourceGroupName: string, serviceName: string, options?: ConfigurationServicesListOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface ConfigurationServicesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type ConfigurationServicesCreateOrUpdateResponse = ConfigurationServiceResource; + +// @public +export interface ConfigurationServicesDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export interface ConfigurationServiceSettings { + gitProperty?: ConfigurationServiceGitProperty; +} + +// @public +export interface ConfigurationServiceSettingsValidateResult { + gitPropertyValidationResult?: ConfigurationServiceGitPropertyValidateResult; +} + +// @public +export interface ConfigurationServicesGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ConfigurationServicesGetResponse = ConfigurationServiceResource; + +// @public +export interface ConfigurationServicesListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ConfigurationServicesListNextResponse = ConfigurationServiceResourceCollection; + +// @public +export interface ConfigurationServicesListOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ConfigurationServicesListResponse = ConfigurationServiceResourceCollection; + +// @public +export interface ConfigurationServicesValidateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type ConfigurationServicesValidateResponse = ConfigurationServiceSettingsValidateResult; + +// @public +export interface ContainerProbeSettings { + disableProbe?: boolean; +} + +// @public +export type ContentCertificateProperties = CertificateProperties & { + type: "ContentCertificate"; + content?: string; }; // @public @@ -466,6 +1243,12 @@ export interface CustomContainer { server?: string; } +// @public +export type CustomContainerUserSourceInfo = UserSourceInfo & { + type: "Container"; + customContainer?: CustomContainer; +}; + // @public export interface CustomDomainProperties { readonly appName?: string; @@ -576,6 +1359,7 @@ export interface DeploymentInstance { readonly reason?: string; readonly startTime?: string; readonly status?: string; + readonly zone?: string; } // @public @@ -592,13 +1376,11 @@ export interface DeploymentResourceCollection { // @public export interface DeploymentResourceProperties { - readonly active?: boolean; - readonly appName?: string; - readonly createdTime?: Date; + active?: boolean; deploymentSettings?: DeploymentSettings; readonly instances?: DeploymentInstance[]; readonly provisioningState?: DeploymentResourceProvisioningState; - source?: UserSourceInfo; + source?: UserSourceInfoUnion; readonly status?: DeploymentResourceStatus; } @@ -651,21 +1433,16 @@ export interface DeploymentsDeleteOptionalParams extends coreClient.OperationOpt // @public export interface DeploymentSettings { - containerProbeSettings?: DeploymentSettingsContainerProbeSettings; - cpu?: number; + addonConfigs?: { + [propertyName: string]: { + [propertyName: string]: Record; + }; + }; + containerProbeSettings?: ContainerProbeSettings; environmentVariables?: { [propertyName: string]: string; }; - jvmOptions?: string; - memoryInGB?: number; - netCoreMainEntryPath?: string; resourceRequests?: ResourceRequests; - runtimeVersion?: RuntimeVersion; -} - -// @public -export interface DeploymentSettingsContainerProbeSettings { - disableProbe?: boolean; } // @public @@ -757,56 +1534,437 @@ export interface DeploymentsUpdateOptionalParams extends coreClient.OperationOpt } // @public -export type DeploymentsUpdateResponse = DeploymentResource; +export type DeploymentsUpdateResponse = DeploymentResource; + +// @public +export interface DiagnosticParameters { + appInstance?: string; + duration?: string; + filePath?: string; +} + +// @public +export interface ErrorModel { + code?: string; + message?: string; +} + +// @public +export interface GatewayApiMetadataProperties { + description?: string; + documentation?: string; + serverUrl?: string; + title?: string; + version?: string; +} + +// @public +export interface GatewayApiRoute { + description?: string; + filters?: string[]; + order?: number; + predicates?: string[]; + ssoEnabled?: boolean; + tags?: string[]; + title?: string; + tokenRelay?: boolean; + uri?: string; +} + +// @public +export interface GatewayCorsProperties { + allowCredentials?: boolean; + allowedHeaders?: string[]; + allowedMethods?: string[]; + allowedOrigins?: string[]; + exposedHeaders?: string[]; + maxAge?: number; +} + +// @public +export interface GatewayCustomDomainProperties { + thumbprint?: string; +} + +// @public +export type GatewayCustomDomainResource = ProxyResource & { + properties?: GatewayCustomDomainProperties; +}; + +// @public +export interface GatewayCustomDomainResourceCollection { + nextLink?: string; + value?: GatewayCustomDomainResource[]; +} + +// @public +export interface GatewayCustomDomains { + beginCreateOrUpdate(resourceGroupName: string, serviceName: string, gatewayName: string, domainName: string, gatewayCustomDomainResource: GatewayCustomDomainResource, options?: GatewayCustomDomainsCreateOrUpdateOptionalParams): Promise, GatewayCustomDomainsCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, serviceName: string, gatewayName: string, domainName: string, gatewayCustomDomainResource: GatewayCustomDomainResource, options?: GatewayCustomDomainsCreateOrUpdateOptionalParams): Promise; + beginDelete(resourceGroupName: string, serviceName: string, gatewayName: string, domainName: string, options?: GatewayCustomDomainsDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(resourceGroupName: string, serviceName: string, gatewayName: string, domainName: string, options?: GatewayCustomDomainsDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, gatewayName: string, domainName: string, options?: GatewayCustomDomainsGetOptionalParams): Promise; + list(resourceGroupName: string, serviceName: string, gatewayName: string, options?: GatewayCustomDomainsListOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface GatewayCustomDomainsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type GatewayCustomDomainsCreateOrUpdateResponse = GatewayCustomDomainResource; + +// @public +export interface GatewayCustomDomainsDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export interface GatewayCustomDomainsGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type GatewayCustomDomainsGetResponse = GatewayCustomDomainResource; + +// @public +export interface GatewayCustomDomainsListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type GatewayCustomDomainsListNextResponse = GatewayCustomDomainResourceCollection; + +// @public +export interface GatewayCustomDomainsListOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type GatewayCustomDomainsListResponse = GatewayCustomDomainResourceCollection; + +// @public +export interface GatewayInstance { + readonly name?: string; + readonly status?: string; +} + +// @public +export interface GatewayOperatorProperties { + readonly instances?: GatewayInstance[]; + readonly resourceRequests?: GatewayOperatorResourceRequests; +} + +// @public +export interface GatewayOperatorResourceRequests { + readonly cpu?: string; + readonly instanceCount?: number; + readonly memory?: string; +} + +// @public +export interface GatewayProperties { + apiMetadataProperties?: GatewayApiMetadataProperties; + corsProperties?: GatewayCorsProperties; + httpsOnly?: boolean; + readonly instances?: GatewayInstance[]; + readonly operatorProperties?: GatewayOperatorProperties; + readonly provisioningState?: GatewayProvisioningState; + public?: boolean; + resourceRequests?: GatewayResourceRequests; + ssoProperties?: SsoProperties; + readonly url?: string; +} + +// @public +export type GatewayProvisioningState = string; + +// @public +export type GatewayResource = ProxyResource & { + properties?: GatewayProperties; + sku?: Sku; +}; + +// @public +export interface GatewayResourceCollection { + nextLink?: string; + value?: GatewayResource[]; +} + +// @public +export interface GatewayResourceRequests { + cpu?: string; + memory?: string; +} + +// @public +export interface GatewayRouteConfigProperties { + appResourceId?: string; + readonly provisioningState?: GatewayProvisioningState; + routes?: GatewayApiRoute[]; +} + +// @public +export type GatewayRouteConfigResource = ProxyResource & { + properties?: GatewayRouteConfigProperties; +}; + +// @public +export interface GatewayRouteConfigResourceCollection { + nextLink?: string; + value?: GatewayRouteConfigResource[]; +} + +// @public +export interface GatewayRouteConfigs { + beginCreateOrUpdate(resourceGroupName: string, serviceName: string, gatewayName: string, routeConfigName: string, gatewayRouteConfigResource: GatewayRouteConfigResource, options?: GatewayRouteConfigsCreateOrUpdateOptionalParams): Promise, GatewayRouteConfigsCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, serviceName: string, gatewayName: string, routeConfigName: string, gatewayRouteConfigResource: GatewayRouteConfigResource, options?: GatewayRouteConfigsCreateOrUpdateOptionalParams): Promise; + beginDelete(resourceGroupName: string, serviceName: string, gatewayName: string, routeConfigName: string, options?: GatewayRouteConfigsDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(resourceGroupName: string, serviceName: string, gatewayName: string, routeConfigName: string, options?: GatewayRouteConfigsDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, gatewayName: string, routeConfigName: string, options?: GatewayRouteConfigsGetOptionalParams): Promise; + list(resourceGroupName: string, serviceName: string, gatewayName: string, options?: GatewayRouteConfigsListOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface GatewayRouteConfigsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type GatewayRouteConfigsCreateOrUpdateResponse = GatewayRouteConfigResource; + +// @public +export interface GatewayRouteConfigsDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export interface GatewayRouteConfigsGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type GatewayRouteConfigsGetResponse = GatewayRouteConfigResource; + +// @public +export interface GatewayRouteConfigsListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type GatewayRouteConfigsListNextResponse = GatewayRouteConfigResourceCollection; + +// @public +export interface GatewayRouteConfigsListOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type GatewayRouteConfigsListResponse = GatewayRouteConfigResourceCollection; + +// @public +export interface Gateways { + beginCreateOrUpdate(resourceGroupName: string, serviceName: string, gatewayName: string, gatewayResource: GatewayResource, options?: GatewaysCreateOrUpdateOptionalParams): Promise, GatewaysCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, serviceName: string, gatewayName: string, gatewayResource: GatewayResource, options?: GatewaysCreateOrUpdateOptionalParams): Promise; + beginDelete(resourceGroupName: string, serviceName: string, gatewayName: string, options?: GatewaysDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(resourceGroupName: string, serviceName: string, gatewayName: string, options?: GatewaysDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, gatewayName: string, options?: GatewaysGetOptionalParams): Promise; + list(resourceGroupName: string, serviceName: string, options?: GatewaysListOptionalParams): PagedAsyncIterableIterator; + validateDomain(resourceGroupName: string, serviceName: string, gatewayName: string, validatePayload: CustomDomainValidatePayload, options?: GatewaysValidateDomainOptionalParams): Promise; +} + +// @public +export interface GatewaysCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type GatewaysCreateOrUpdateResponse = GatewayResource; + +// @public +export interface GatewaysDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export interface GatewaysGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type GatewaysGetResponse = GatewayResource; + +// @public +export interface GatewaysListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type GatewaysListNextResponse = GatewayResourceCollection; + +// @public +export interface GatewaysListOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type GatewaysListResponse = GatewayResourceCollection; + +// @public +export interface GatewaysValidateDomainOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type GatewaysValidateDomainResponse = CustomDomainValidateResult; + +// @public +export interface GitPatternRepository { + hostKey?: string; + hostKeyAlgorithm?: string; + label?: string; + name: string; + password?: string; + pattern?: string[]; + privateKey?: string; + searchPaths?: string[]; + strictHostKeyChecking?: boolean; + uri: string; + username?: string; +} + +// @public +export interface ImageRegistryCredential { + password?: string; + username?: string; +} + +// @public +export type JarUploadedUserSourceInfo = UploadedUserSourceInfo & { + type: "Jar"; + runtimeVersion?: string; + jvmOptions?: string; +}; + +// @public +export type KeyVaultCertificateProperties = CertificateProperties & { + type: "KeyVaultCertificate"; + vaultUri: string; + keyVaultCertName: string; + certVersion?: string; + excludePrivateKey?: boolean; +}; + +// @public +export enum KnownActionType { + // (undocumented) + Internal = "Internal" +} + +// @public +export enum KnownApiPortalProvisioningState { + // (undocumented) + Creating = "Creating", + // (undocumented) + Deleting = "Deleting", + // (undocumented) + Failed = "Failed", + // (undocumented) + Succeeded = "Succeeded", + // (undocumented) + Updating = "Updating" +} + +// @public +export enum KnownAppResourceProvisioningState { + // (undocumented) + Creating = "Creating", + // (undocumented) + Deleting = "Deleting", + // (undocumented) + Failed = "Failed", + // (undocumented) + Succeeded = "Succeeded", + // (undocumented) + Updating = "Updating" +} // @public -export interface DiagnosticParameters { - appInstance?: string; - duration?: string; - filePath?: string; +export enum KnownBindingType { + // (undocumented) + ApacheSkyWalking = "ApacheSkyWalking", + // (undocumented) + AppDynamics = "AppDynamics", + // (undocumented) + ApplicationInsights = "ApplicationInsights", + // (undocumented) + Dynatrace = "Dynatrace", + // (undocumented) + ElasticAPM = "ElasticAPM", + // (undocumented) + NewRelic = "NewRelic" } // @public -export interface ErrorModel { - code?: string; - message?: string; +export enum KnownBuilderProvisioningState { + // (undocumented) + Creating = "Creating", + // (undocumented) + Deleting = "Deleting", + // (undocumented) + Failed = "Failed", + // (undocumented) + Succeeded = "Succeeded", + // (undocumented) + Updating = "Updating" } // @public -export interface GitPatternRepository { - hostKey?: string; - hostKeyAlgorithm?: string; - label?: string; - name: string; - password?: string; - pattern?: string[]; - privateKey?: string; - searchPaths?: string[]; - strictHostKeyChecking?: boolean; - uri: string; - username?: string; +export enum KnownBuildpackBindingProvisioningState { + // (undocumented) + Creating = "Creating", + // (undocumented) + Deleting = "Deleting", + // (undocumented) + Failed = "Failed", + // (undocumented) + Succeeded = "Succeeded", + // (undocumented) + Updating = "Updating" } // @public -export interface ImageRegistryCredential { - password?: string; - username?: string; +export enum KnownBuildProvisioningState { + // (undocumented) + Creating = "Creating", + // (undocumented) + Deleting = "Deleting", + // (undocumented) + Failed = "Failed", + // (undocumented) + Succeeded = "Succeeded", + // (undocumented) + Updating = "Updating" } // @public -export type KeyVaultCertificateProperties = CertificateProperties & { - type: "KeyVaultCertificate"; - vaultUri: string; - keyVaultCertName: string; - certVersion?: string; - excludePrivateKey?: boolean; -}; +export enum KnownBuildResultProvisioningState { + // (undocumented) + Building = "Building", + // (undocumented) + Deleting = "Deleting", + // (undocumented) + Failed = "Failed", + // (undocumented) + Queuing = "Queuing", + // (undocumented) + Succeeded = "Succeeded" +} // @public -export enum KnownAppResourceProvisioningState { +export enum KnownBuildServiceProvisioningState { // (undocumented) Creating = "Creating", // (undocumented) + Deleting = "Deleting", + // (undocumented) Failed = "Failed", // (undocumented) Succeeded = "Succeeded", @@ -828,6 +1986,20 @@ export enum KnownConfigServerState { Updating = "Updating" } +// @public +export enum KnownConfigurationServiceProvisioningState { + // (undocumented) + Creating = "Creating", + // (undocumented) + Deleting = "Deleting", + // (undocumented) + Failed = "Failed", + // (undocumented) + Succeeded = "Succeeded", + // (undocumented) + Updating = "Updating" +} + // @public export enum KnownCreatedByType { // (undocumented) @@ -855,19 +2027,47 @@ export enum KnownDeploymentResourceProvisioningState { // @public export enum KnownDeploymentResourceStatus { // (undocumented) - Allocating = "Allocating", + Running = "Running", + // (undocumented) + Stopped = "Stopped" +} + +// @public +export enum KnownGatewayProvisioningState { + // (undocumented) + Creating = "Creating", + // (undocumented) + Deleting = "Deleting", + // (undocumented) + Failed = "Failed", + // (undocumented) + Succeeded = "Succeeded", // (undocumented) - Compiling = "Compiling", + Updating = "Updating" +} + +// @public +export enum KnownKPackBuildStageProvisioningState { // (undocumented) Failed = "Failed", // (undocumented) + NotStarted = "NotStarted", + // (undocumented) Running = "Running", // (undocumented) - Stopped = "Stopped", + Succeeded = "Succeeded" +} + +// @public +export enum KnownLastModifiedByType { + // (undocumented) + Application = "Application", + // (undocumented) + Key = "Key", // (undocumented) - Unknown = "Unknown", + ManagedIdentity = "ManagedIdentity", // (undocumented) - Upgrading = "Upgrading" + User = "User" } // @public @@ -941,13 +2141,17 @@ export enum KnownResourceSkuRestrictionsType { } // @public -export enum KnownRuntimeVersion { +export enum KnownServiceRegistryProvisioningState { // (undocumented) - Java11 = "Java_11", + Creating = "Creating", // (undocumented) - Java8 = "Java_8", + Deleting = "Deleting", // (undocumented) - NetCore31 = "NetCore_31" + Failed = "Failed", + // (undocumented) + Succeeded = "Succeeded", + // (undocumented) + Updating = "Updating" } // @public @@ -973,6 +2177,8 @@ export enum KnownSupportedRuntimeValue { // (undocumented) Java11 = "Java_11", // (undocumented) + Java17 = "Java_17", + // (undocumented) Java8 = "Java_8", // (undocumented) NetCore31 = "NetCore_31" @@ -995,16 +2201,10 @@ export enum KnownTrafficDirection { } // @public -export enum KnownUserSourceType { - // (undocumented) - Container = "Container", - // (undocumented) - Jar = "Jar", - // (undocumented) - NetCoreZip = "NetCoreZip", - // (undocumented) - Source = "Source" -} +export type KPackBuildStageProvisioningState = string; + +// @public +export type LastModifiedByType = string; // @public export interface LoadedCertificate { @@ -1121,6 +2321,13 @@ export interface NameAvailabilityParameters { type: string; } +// @public +export type NetCoreZipUploadedUserSourceInfo = UploadedUserSourceInfo & { + type: "NetCoreZip"; + netCoreMainEntryPath?: string; + runtimeVersion?: string; +}; + // @public export interface NetworkProfile { appNetworkResourceGroup?: string; @@ -1139,6 +2346,7 @@ export interface NetworkProfileOutboundIPs { // @public export interface OperationDetail { + readonly actionType?: ActionType; display?: OperationDisplay; isDataAction?: boolean; name?: string; @@ -1212,6 +2420,7 @@ export interface RequiredTraffic { export interface Resource { readonly id?: string; readonly name?: string; + readonly systemData?: SystemData; readonly type?: string; } @@ -1283,9 +2492,6 @@ export interface ResourceUploadDefinition { uploadUrl?: string; } -// @public -export type RuntimeVersion = string; - // @public export interface RuntimeVersions { listRuntimeVersions(options?: RuntimeVersionsListRuntimeVersionsOptionalParams): Promise; @@ -1298,6 +2504,86 @@ export interface RuntimeVersionsListRuntimeVersionsOptionalParams extends coreCl // @public export type RuntimeVersionsListRuntimeVersionsResponse = AvailableRuntimeVersions; +// @public +export interface ServiceRegistries { + beginCreateOrUpdate(resourceGroupName: string, serviceName: string, serviceRegistryName: string, options?: ServiceRegistriesCreateOrUpdateOptionalParams): Promise, ServiceRegistriesCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, serviceName: string, serviceRegistryName: string, options?: ServiceRegistriesCreateOrUpdateOptionalParams): Promise; + beginDelete(resourceGroupName: string, serviceName: string, serviceRegistryName: string, options?: ServiceRegistriesDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(resourceGroupName: string, serviceName: string, serviceRegistryName: string, options?: ServiceRegistriesDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, serviceRegistryName: string, options?: ServiceRegistriesGetOptionalParams): Promise; + list(resourceGroupName: string, serviceName: string, options?: ServiceRegistriesListOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface ServiceRegistriesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type ServiceRegistriesCreateOrUpdateResponse = ServiceRegistryResource; + +// @public +export interface ServiceRegistriesDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export interface ServiceRegistriesGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ServiceRegistriesGetResponse = ServiceRegistryResource; + +// @public +export interface ServiceRegistriesListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ServiceRegistriesListNextResponse = ServiceRegistryResourceCollection; + +// @public +export interface ServiceRegistriesListOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ServiceRegistriesListResponse = ServiceRegistryResourceCollection; + +// @public +export interface ServiceRegistryInstance { + readonly name?: string; + readonly status?: string; +} + +// @public +export interface ServiceRegistryProperties { + readonly instances?: ServiceRegistryInstance[]; + readonly provisioningState?: ServiceRegistryProvisioningState; + readonly resourceRequests?: ServiceRegistryResourceRequests; +} + +// @public +export type ServiceRegistryProvisioningState = string; + +// @public +export type ServiceRegistryResource = ProxyResource & { + properties?: ServiceRegistryProperties; +}; + +// @public +export interface ServiceRegistryResourceCollection { + nextLink?: string; + value?: ServiceRegistryResource[]; +} + +// @public +export interface ServiceRegistryResourceRequests { + readonly cpu?: string; + readonly instanceCount?: number; + readonly memory?: string; +} + // @public export type ServiceResource = TrackedResource & { properties?: ClusterResourceProperties; @@ -1478,6 +2764,27 @@ export interface SkusListOptionalParams extends coreClient.OperationOptions { // @public export type SkusListResponse = ResourceSkuCollection; +// @public +export type SourceUploadedUserSourceInfo = UploadedUserSourceInfo & { + type: "Source"; + artifactSelector?: string; + runtimeVersion?: string; +}; + +// @public +export interface SsoProperties { + clientId?: string; + clientSecret?: string; + issuerUri?: string; + scope?: string[]; +} + +// @public +export interface StackProperties { + id?: string; + version?: string; +} + // @public export type StorageAccount = StorageProperties & { storageType: "StorageAccount"; @@ -1496,7 +2803,6 @@ export type StoragePropertiesUnion = StorageProperties | StorageAccount; // @public export type StorageResource = ProxyResource & { properties?: StoragePropertiesUnion; - readonly systemData?: SystemData; }; // @public @@ -1551,6 +2857,22 @@ export interface StoragesListOptionalParams extends coreClient.OperationOptions // @public export type StoragesListResponse = StorageResourceCollection; +// @public +export type SupportedBuildpackResource = ProxyResource & { + properties?: SupportedBuildpackResourceProperties; +}; + +// @public +export interface SupportedBuildpackResourceProperties { + buildpackId?: string; +} + +// @public +export interface SupportedBuildpacksCollection { + nextLink?: string; + value?: SupportedBuildpackResource[]; +} + // @public export type SupportedRuntimePlatform = string; @@ -1564,6 +2886,23 @@ export interface SupportedRuntimeVersion { version?: string; } +// @public +export type SupportedStackResource = ProxyResource & { + properties?: SupportedStackResourceProperties; +}; + +// @public +export interface SupportedStackResourceProperties { + stackId?: string; + version?: string; +} + +// @public +export interface SupportedStacksCollection { + nextLink?: string; + value?: SupportedStackResource[]; +} + // @public export interface SystemData { createdAt?: Date; @@ -1571,7 +2910,7 @@ export interface SystemData { createdByType?: CreatedByType; lastModifiedAt?: Date; lastModifiedBy?: string; - lastModifiedByType?: CreatedByType; + lastModifiedByType?: LastModifiedByType; } // @public @@ -1604,16 +2943,33 @@ export type TrackedResource = Resource & { export type TrafficDirection = string; // @public -export interface UserSourceInfo { - artifactSelector?: string; - customContainer?: CustomContainer; +export interface TriggeredBuildResult { + id?: string; +} + +// @public +export type UploadedUserSourceInfo = UserSourceInfo & { + type: "UploadedUserSourceInfo" | "Jar" | "Source" | "NetCoreZip"; relativePath?: string; - type?: UserSourceType; +}; + +// @public (undocumented) +export type UploadedUserSourceInfoUnion = UploadedUserSourceInfo | JarUploadedUserSourceInfo | SourceUploadedUserSourceInfo | NetCoreZipUploadedUserSourceInfo; + +// @public +export interface UserSourceInfo { + type: "UploadedUserSourceInfo" | "Jar" | "Source" | "NetCoreZip" | "BuildResult" | "Container"; version?: string; } +// @public (undocumented) +export type UserSourceInfoUnion = UserSourceInfo | UploadedUserSourceInfoUnion | BuildResultUserSourceInfo | CustomContainerUserSourceInfo; + // @public -export type UserSourceType = string; +export interface ValidationMessages { + messages?: string[]; + name?: string; +} // (No @packageDocumentation comment for this package) diff --git a/sdk/appplatform/arm-appplatform/src/appPlatformManagementClient.ts b/sdk/appplatform/arm-appplatform/src/appPlatformManagementClient.ts index cf41b6699838..eb0194ddefe0 100644 --- a/sdk/appplatform/arm-appplatform/src/appPlatformManagementClient.ts +++ b/sdk/appplatform/arm-appplatform/src/appPlatformManagementClient.ts @@ -11,6 +11,12 @@ import * as coreAuth from "@azure/core-auth"; import { ServicesImpl, ConfigServersImpl, + ConfigurationServicesImpl, + ServiceRegistriesImpl, + BuildServiceOperationsImpl, + BuildpackBindingImpl, + BuildServiceBuilderImpl, + BuildServiceAgentPoolImpl, MonitoringSettingsImpl, AppsImpl, BindingsImpl, @@ -20,11 +26,22 @@ import { DeploymentsImpl, OperationsImpl, RuntimeVersionsImpl, - SkusImpl + SkusImpl, + GatewaysImpl, + GatewayRouteConfigsImpl, + GatewayCustomDomainsImpl, + ApiPortalsImpl, + ApiPortalCustomDomainsImpl } from "./operations"; import { Services, ConfigServers, + ConfigurationServices, + ServiceRegistries, + BuildServiceOperations, + BuildpackBinding, + BuildServiceBuilder, + BuildServiceAgentPool, MonitoringSettings, Apps, Bindings, @@ -34,7 +51,12 @@ import { Deployments, Operations, RuntimeVersions, - Skus + Skus, + Gateways, + GatewayRouteConfigs, + GatewayCustomDomains, + ApiPortals, + ApiPortalCustomDomains } from "./operationsInterfaces"; import { AppPlatformManagementClientOptionalParams } from "./models"; @@ -71,7 +93,7 @@ export class AppPlatformManagementClient extends coreClient.ServiceClient { credential: credentials }; - const packageDetails = `azsdk-js-arm-appplatform/2.0.0-beta.2`; + const packageDetails = `azsdk-js-arm-appplatform/2.0.0-beta.3`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -94,9 +116,15 @@ export class AppPlatformManagementClient extends coreClient.ServiceClient { // Assigning values to Constant parameters this.$host = options.$host || "https://management.azure.com"; - this.apiVersion = options.apiVersion || "2021-09-01-preview"; + this.apiVersion = options.apiVersion || "2022-01-01-preview"; this.services = new ServicesImpl(this); this.configServers = new ConfigServersImpl(this); + this.configurationServices = new ConfigurationServicesImpl(this); + this.serviceRegistries = new ServiceRegistriesImpl(this); + this.buildServiceOperations = new BuildServiceOperationsImpl(this); + this.buildpackBinding = new BuildpackBindingImpl(this); + this.buildServiceBuilder = new BuildServiceBuilderImpl(this); + this.buildServiceAgentPool = new BuildServiceAgentPoolImpl(this); this.monitoringSettings = new MonitoringSettingsImpl(this); this.apps = new AppsImpl(this); this.bindings = new BindingsImpl(this); @@ -107,10 +135,21 @@ export class AppPlatformManagementClient extends coreClient.ServiceClient { this.operations = new OperationsImpl(this); this.runtimeVersions = new RuntimeVersionsImpl(this); this.skus = new SkusImpl(this); + this.gateways = new GatewaysImpl(this); + this.gatewayRouteConfigs = new GatewayRouteConfigsImpl(this); + this.gatewayCustomDomains = new GatewayCustomDomainsImpl(this); + this.apiPortals = new ApiPortalsImpl(this); + this.apiPortalCustomDomains = new ApiPortalCustomDomainsImpl(this); } services: Services; configServers: ConfigServers; + configurationServices: ConfigurationServices; + serviceRegistries: ServiceRegistries; + buildServiceOperations: BuildServiceOperations; + buildpackBinding: BuildpackBinding; + buildServiceBuilder: BuildServiceBuilder; + buildServiceAgentPool: BuildServiceAgentPool; monitoringSettings: MonitoringSettings; apps: Apps; bindings: Bindings; @@ -121,4 +160,9 @@ export class AppPlatformManagementClient extends coreClient.ServiceClient { operations: Operations; runtimeVersions: RuntimeVersions; skus: Skus; + gateways: Gateways; + gatewayRouteConfigs: GatewayRouteConfigs; + gatewayCustomDomains: GatewayCustomDomains; + apiPortals: ApiPortals; + apiPortalCustomDomains: ApiPortalCustomDomains; } diff --git a/sdk/appplatform/arm-appplatform/src/models/index.ts b/sdk/appplatform/arm-appplatform/src/models/index.ts index 69d6450412ce..13578d641f38 100644 --- a/sdk/appplatform/arm-appplatform/src/models/index.ts +++ b/sdk/appplatform/arm-appplatform/src/models/index.ts @@ -16,6 +16,16 @@ export type CertificatePropertiesUnion = | CertificateProperties | KeyVaultCertificateProperties | ContentCertificateProperties; +export type UserSourceInfoUnion = + | UserSourceInfo + | UploadedUserSourceInfoUnion + | BuildResultUserSourceInfo + | CustomContainerUserSourceInfo; +export type UploadedUserSourceInfoUnion = + | UploadedUserSourceInfo + | JarUploadedUserSourceInfo + | SourceUploadedUserSourceInfo + | NetCoreZipUploadedUserSourceInfo; /** Service properties payload */ export interface ClusterResourceProperties { @@ -41,6 +51,12 @@ export interface ClusterResourceProperties { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly powerState?: PowerState; + zoneRedundant?: boolean; + /** + * Fully qualified dns name of the service instance + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly fqdn?: string; } /** Service network profile payload */ @@ -132,6 +148,27 @@ export interface Resource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly type?: string; + /** + * Metadata pertaining to creation and last modification of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly systemData?: SystemData; +} + +/** Metadata pertaining to creation and last modification of the resource. */ +export interface SystemData { + /** The identity that created the resource. */ + createdBy?: string; + /** The type of identity that created the resource. */ + createdByType?: CreatedByType; + /** The timestamp of resource creation (UTC). */ + createdAt?: Date; + /** The identity that last modified the resource. */ + lastModifiedBy?: string; + /** The type of identity that last modified the resource. */ + lastModifiedByType?: LastModifiedByType; + /** The timestamp of resource modification (UTC). */ + lastModifiedAt?: Date; } /** An error response from the service. */ @@ -223,7 +260,7 @@ export interface ConfigServerGitProperty { strictHostKeyChecking?: boolean; } -/** Git repository property payload */ +/** Git repository property payload for config server */ export interface GitPatternRepository { /** Name of the repository */ name: string; @@ -267,134 +304,102 @@ export interface ConfigServerSettingsErrorRecord { messages?: string[]; } -/** Monitoring Setting properties payload */ -export interface MonitoringSettingProperties { +/** Application Configuration Service properties payload */ +export interface ConfigurationServiceProperties { /** - * State of the Monitoring Setting. + * State of the Application Configuration Service. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly provisioningState?: MonitoringSettingState; - /** Error when apply Monitoring Setting changes. */ - error?: ErrorModel; - /** Indicates whether enable the trace functionality, which will be deprecated since api version 2020-11-01-preview. Please leverage appInsightsInstrumentationKey to indicate if monitoringSettings enabled or not */ - traceEnabled?: boolean; - /** Target application insight instrumentation key, null or whitespace include empty will disable monitoringSettings */ - appInsightsInstrumentationKey?: string; - /** Indicates the sampling rate of application insight agent, should be in range [0.0, 100.0] */ - appInsightsSamplingRate?: number; - /** Indicates the versions of application insight agent */ - appInsightsAgentVersions?: ApplicationInsightsAgentVersions; -} - -/** Application Insights agent versions properties payload */ -export interface ApplicationInsightsAgentVersions { + readonly provisioningState?: ConfigurationServiceProvisioningState; /** - * Indicates the version of application insight java agent + * The requested resource quantity for required CPU and Memory. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly java?: string; + readonly resourceRequests?: ConfigurationServiceResourceRequests; + /** + * Collection of instances belong to Application Configuration Service. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly instances?: ConfigurationServiceInstance[]; + /** The settings of Application Configuration Service. */ + settings?: ConfigurationServiceSettings; } -/** App resource properties payload */ -export interface AppResourceProperties { - /** Indicates whether the App exposes public endpoint */ - public?: boolean; +/** Resource request payload of Application Configuration Service */ +export interface ConfigurationServiceResourceRequests { /** - * URL of the App + * Cpu allocated to each Application Configuration Service instance * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly url?: string; + readonly cpu?: string; /** - * Provisioning state of the App + * Memory allocated to each Application Configuration Service instance * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly provisioningState?: AppResourceProvisioningState; - /** Name of the active deployment of the App */ - activeDeploymentName?: string; - /** Fully qualified dns Name. */ - fqdn?: string; - /** Indicate if only https is allowed. */ - httpsOnly?: boolean; + readonly memory?: string; /** - * Date time when the resource is created + * Instance count of the Application Configuration Service * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly createdTime?: Date; - /** Temporary disk settings */ - temporaryDisk?: TemporaryDisk; - /** Persistent disk settings */ - persistentDisk?: PersistentDisk; - /** List of custom persistent disks */ - customPersistentDisks?: CustomPersistentDiskResource[]; - /** Indicate if end to end TLS is enabled. */ - enableEndToEndTLS?: boolean; - /** Collection of loaded certificates */ - loadedCertificates?: LoadedCertificate[]; -} - -/** Temporary disk payload */ -export interface TemporaryDisk { - /** Size of the temporary disk in GB */ - sizeInGB?: number; - /** Mount path of the temporary disk */ - mountPath?: string; + readonly instanceCount?: number; } -/** Persistent disk payload */ -export interface PersistentDisk { - /** Size of the persistent disk in GB */ - sizeInGB?: number; +/** Collection of instances belong to the Application Configuration Service */ +export interface ConfigurationServiceInstance { /** - * Size of the used persistent disk in GB + * Name of the Application Configuration Service instance * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly usedInGB?: number; - /** Mount path of the persistent disk */ - mountPath?: string; -} - -/** Custom persistent disk resource payload. */ -export interface CustomPersistentDiskResource { - /** Properties of the custom persistent disk resource payload. */ - customPersistentDiskProperties?: CustomPersistentDiskPropertiesUnion; - /** The resource id of Azure Spring Cloud Storage resource. */ - storageId: string; + readonly name?: string; + /** + * Status of the Application Configuration Service instance + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly status?: string; } -/** Custom persistent disk resource payload. */ -export interface CustomPersistentDiskProperties { - /** Polymorphic discriminator, which specifies the different types this object can be */ - type: "AzureFileVolume"; - /** The mount path of the persistent disk. */ - mountPath: string; - /** Indicates whether the persistent disk is a readOnly one. */ - readOnly?: boolean; - /** These are the mount options for a persistent disk. */ - mountOptions?: string[]; +/** The settings of Application Configuration Service. */ +export interface ConfigurationServiceSettings { + /** Property of git environment. */ + gitProperty?: ConfigurationServiceGitProperty; } -/** Loaded certificate payload */ -export interface LoadedCertificate { - /** Resource Id of loaded certificate */ - resourceId: string; - /** Indicate whether the certificate will be loaded into default trust store, only work for Java runtime. */ - loadTrustStore?: boolean; +/** Property of git environment. */ +export interface ConfigurationServiceGitProperty { + /** Repositories of Application Configuration Service git property. */ + repositories?: ConfigurationServiceGitRepository[]; } -/** Managed identity properties retrieved from ARM request headers. */ -export interface ManagedIdentityProperties { - /** Type of the managed identity */ - type?: ManagedIdentityType; - /** Principal Id */ - principalId?: string; - /** Tenant Id */ - tenantId?: string; +/** Git repository property payload for Application Configuration Service */ +export interface ConfigurationServiceGitRepository { + /** Name of the repository */ + name: string; + /** Collection of patterns of the repository */ + patterns: string[]; + /** URI of the repository */ + uri: string; + /** Label of the repository */ + label: string; + /** Searching path of the repository */ + searchPaths?: string[]; + /** Username of git repository basic auth. */ + username?: string; + /** Password of git repository basic auth. */ + password?: string; + /** Public sshKey of git repository. */ + hostKey?: string; + /** SshKey algorithm of git repository. */ + hostKeyAlgorithm?: string; + /** Private sshKey algorithm of git repository. */ + privateKey?: string; + /** Strict host key checking or not. */ + strictHostKeyChecking?: boolean; } -/** Object that includes an array of App resources and a possible link for next set */ -export interface AppResourceCollection { - /** Collection of App resources */ - value?: AppResource[]; +/** Object that includes an array of configuration service resources and a possible link for next set */ +export interface ConfigurationServiceResourceCollection { + /** Collection of configuration service resources */ + value?: ConfigurationServiceResource[]; /** * URL client should use to fetch the next page (per server side paging). * It's null for now, added for future use. @@ -402,53 +407,84 @@ export interface AppResourceCollection { nextLink?: string; } -/** Resource upload definition payload */ -export interface ResourceUploadDefinition { - /** Source relative path */ - relativePath?: string; - /** Upload URL */ - uploadUrl?: string; +/** Validation result for configuration service settings */ +export interface ConfigurationServiceSettingsValidateResult { + /** Validation result for configuration service settings */ + gitPropertyValidationResult?: ConfigurationServiceGitPropertyValidateResult; } -/** Binding resource properties payload */ -export interface BindingResourceProperties { +/** Validation result for configuration service settings */ +export interface ConfigurationServiceGitPropertyValidateResult { + /** Indicate if the configuration service settings are valid */ + isValid?: boolean; + /** The detail validation results */ + gitReposValidationResult?: ValidationMessages[]; +} + +/** Validate messages of the configuration service git repositories */ +export interface ValidationMessages { + /** The name of the configuration service git repository. */ + name?: string; + /** Detailed validation messages. */ + messages?: string[]; +} + +/** Service Registry properties payload */ +export interface ServiceRegistryProperties { /** - * The name of the bound resource + * State of the Service Registry. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly resourceName?: string; + readonly provisioningState?: ServiceRegistryProvisioningState; /** - * The standard Azure resource type of the bound resource + * The requested resource quantity for required CPU and Memory. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly resourceType?: string; - /** The Azure resource id of the bound resource */ - resourceId?: string; - /** The key of the bound resource */ - key?: string; - /** Binding parameters of the Binding resource */ - bindingParameters?: { [propertyName: string]: Record }; + readonly resourceRequests?: ServiceRegistryResourceRequests; /** - * The generated Spring Boot property file for this binding. The secret will be deducted. + * Collection of instances belong to Service Registry. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly generatedProperties?: string; + readonly instances?: ServiceRegistryInstance[]; +} + +/** Resource request payload of Service Registry */ +export interface ServiceRegistryResourceRequests { /** - * Creation time of the Binding resource + * Cpu allocated to each Service Registry instance * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly createdAt?: string; + readonly cpu?: string; /** - * Update time of the Binding resource + * Memory allocated to each Service Registry instance * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly updatedAt?: string; + readonly memory?: string; + /** + * Instance count of the Service Registry + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly instanceCount?: number; } -/** Object that includes an array of Binding resources and a possible link for next set */ -export interface BindingResourceCollection { - /** Collection of Binding resources */ - value?: BindingResource[]; +/** Collection of instances belong to the Service Registry */ +export interface ServiceRegistryInstance { + /** + * Name of the Service Registry instance + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly name?: string; + /** + * Status of the Service Registry instance + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly status?: string; +} + +/** Object that includes an array of Service Registry resources and a possible link for next set */ +export interface ServiceRegistryResourceCollection { + /** Collection of Service Registry resources */ + value?: ServiceRegistryResource[]; /** * URL client should use to fetch the next page (per server side paging). * It's null for now, added for future use. @@ -456,282 +492,239 @@ export interface BindingResourceCollection { nextLink?: string; } -/** Storage resource payload. */ -export interface StorageProperties { - /** Polymorphic discriminator, which specifies the different types this object can be */ - storageType: "StorageAccount"; -} - -/** Metadata pertaining to creation and last modification of the resource. */ -export interface SystemData { - /** The identity that created the resource. */ - createdBy?: string; - /** The type of identity that created the resource. */ - createdByType?: CreatedByType; - /** The timestamp of resource creation (UTC). */ - createdAt?: Date; - /** The identity that last modified the resource. */ - lastModifiedBy?: string; - /** The type of identity that last modified the resource. */ - lastModifiedByType?: CreatedByType; - /** The timestamp of resource last modification (UTC) */ - lastModifiedAt?: Date; -} - -/** Collection compose of storage resources list and a possible link for next page. */ -export interface StorageResourceCollection { - /** The storage resources list. */ - value?: StorageResource[]; - /** The link to next page of storage list. */ +/** Object that includes an array of Build service resources and a possible link for next set */ +export interface BuildServiceCollection { + /** Collection of Build service resources */ + value?: BuildService[]; + /** + * URL client should use to fetch the next page (per server side paging). + * It's null for now, added for future use. + */ nextLink?: string; } -/** Certificate resource payload. */ -export interface CertificateProperties { - /** Polymorphic discriminator, which specifies the different types this object can be */ - type: "KeyVaultCertificate" | "ContentCertificate"; +/** Build service resource properties payload */ +export interface BuildServiceProperties { + /** The installed KPack version in this build service. */ + kPackVersion?: string; /** - * The thumbprint of certificate. + * Provisioning state of the KPack build result * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly thumbprint?: string; + readonly provisioningState?: BuildServiceProvisioningState; + /** The runtime resource configuration of this build service. */ + resourceRequests?: BuildServicePropertiesResourceRequests; +} + +/** The runtime resource configuration of this build service. */ +export interface BuildServicePropertiesResourceRequests { /** - * The issuer of certificate. + * vCPU allocated to the entire build service node pool. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly issuer?: string; + readonly cpu?: string; /** - * The issue date of certificate. + * Memory allocated to the entire build service node pool. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly issuedDate?: string; + readonly memory?: string; +} + +/** Object that includes an array of Build resources and a possible link for next set */ +export interface BuildCollection { + /** Collection of Build resources */ + value?: Build[]; /** - * The expiration date of certificate. - * NOTE: This property will not be serialized. It can only be populated by the server. + * URL client should use to fetch the next page (per server side paging). + * It's null for now, added for future use. */ - readonly expirationDate?: string; + nextLink?: string; +} + +/** Build resource properties payload */ +export interface BuildProperties { + /** The relative path of source code */ + relativePath?: string; + /** The resource id of builder to build the source code */ + builder?: string; + /** The resource id of agent pool */ + agentPool?: string; /** - * The activate date of certificate. + * Provisioning state of the KPack build result * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly activateDate?: string; + readonly provisioningState?: BuildProvisioningState; + /** The environment variables for this build */ + env?: { [propertyName: string]: string }; /** - * The subject name of certificate. + * The build result triggered by this build * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly subjectName?: string; + readonly triggeredBuildResult?: TriggeredBuildResult; +} + +/** The build result triggered by a build */ +export interface TriggeredBuildResult { + /** The unique build id of this build result */ + id?: string; +} + +/** Properties of a buildpack binding */ +export interface BuildpackBindingProperties { + /** Buildpack Binding Type */ + bindingType?: BindingType; /** - * The domain list of certificate. + * State of the Buildpack Binding. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly dnsNames?: string[]; -} - -/** Collection compose of certificate resources list and a possible link for next page. */ -export interface CertificateResourceCollection { - /** The certificate resources list. */ - value?: CertificateResource[]; - /** The link to next page of certificate list. */ - nextLink?: string; -} - -/** Name availability parameters payload */ -export interface NameAvailabilityParameters { - /** Type of the resource to check name availability */ - type: string; - /** Name to be checked */ - name: string; + readonly provisioningState?: BuildpackBindingProvisioningState; + /** The object describes the buildpack binding launch properties */ + launchProperties?: BuildpackBindingLaunchProperties; } -/** Name availability result payload */ -export interface NameAvailability { - /** Indicates whether the name is available */ - nameAvailable?: boolean; - /** Reason why the name is not available */ - reason?: string; - /** Message why the name is not available */ - message?: string; +/** Buildpack Binding Launch Properties */ +export interface BuildpackBindingLaunchProperties { + /** Non-sensitive properties for launchProperties */ + properties?: { [propertyName: string]: string }; + /** Sensitive properties for launchProperties */ + secrets?: { [propertyName: string]: string }; } -/** Custom domain of app resource payload. */ -export interface CustomDomainProperties { - /** The thumbprint of bound certificate. */ - thumbprint?: string; +/** Object that includes an array of BuildpackBinding resources and a possible link for next set */ +export interface BuildpackBindingResourceCollection { + /** Collection of BuildpackBinding resources */ + value?: BuildpackBindingResource[]; /** - * The app name of domain. - * NOTE: This property will not be serialized. It can only be populated by the server. + * URL client should use to fetch the next page (per server side paging). + * It's null for now, added for future use. */ - readonly appName?: string; - /** The bound certificate name of domain. */ - certName?: string; -} - -/** Collection compose of a custom domain resources list and a possible link for next page. */ -export interface CustomDomainResourceCollection { - /** The custom domain resources list. */ - value?: CustomDomainResource[]; - /** The link to next page of custom domain list. */ nextLink?: string; } -/** Custom domain validate payload. */ -export interface CustomDomainValidatePayload { - /** Name to be validated */ - name: string; -} - -/** Validation result for custom domain. */ -export interface CustomDomainValidateResult { - /** Indicates if domain name is valid. */ - isValid?: boolean; - /** Message of why domain name is invalid. */ - message?: string; -} - -/** Deployment resource properties payload */ -export interface DeploymentResourceProperties { - /** Uploaded source information of the deployment. */ - source?: UserSourceInfo; - /** - * App name of the deployment - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly appName?: string; - /** Deployment settings of the Deployment */ - deploymentSettings?: DeploymentSettings; +/** Object that includes an array of Build result resources and a possible link for next set */ +export interface BuildResultCollection { + /** Collection of Build result resources */ + value?: BuildResult[]; /** - * Provisioning state of the Deployment - * NOTE: This property will not be serialized. It can only be populated by the server. + * URL client should use to fetch the next page (per server side paging). + * It's null for now, added for future use. */ - readonly provisioningState?: DeploymentResourceProvisioningState; + nextLink?: string; +} + +/** Build result resource properties payload */ +export interface BuildResultProperties { + /** The name of this build result */ + name?: string; /** - * Status of the Deployment + * Provisioning state of the KPack build result * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly status?: DeploymentResourceStatus; + readonly provisioningState?: BuildResultProvisioningState; + /** The build pod name which can be used to get the build log streaming. */ + buildPodName?: string; /** - * Indicates whether the Deployment is active + * All of the build stage (init-container and container) resources in build pod. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly active?: boolean; + readonly buildStages?: BuildStageProperties[]; +} + +/** The build stage (init-container and container) resources in build pod. */ +export interface BuildStageProperties { /** - * Date time when the resource is created + * The name of this build stage resource. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly createdTime?: Date; + readonly name?: string; /** - * Collection of instances belong to the Deployment + * The provisioning state of this build stage resource. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly instances?: DeploymentInstance[]; + readonly status?: KPackBuildStageProvisioningState; } -/** Source information for a deployment */ -export interface UserSourceInfo { - /** Type of the source uploaded */ - type?: UserSourceType; - /** Relative path of the storage which stores the source */ - relativePath?: string; - /** Version of the source */ - version?: string; - /** - * Selector for the artifact to be used for the deployment for multi-module projects. This should be - * the relative path to the target module/project. - */ - artifactSelector?: string; - /** Custom container payload */ - customContainer?: CustomContainer; +/** Build result log resource properties payload */ +export interface BuildResultLog { + /** The public download URL of this build result log */ + blobUrl?: string; } -/** Custom container payload */ -export interface CustomContainer { - /** The name of the registry that contains the container image */ - server?: string; - /** Container image of the custom container. This should be in the form of : without the server name of the registry */ - containerImage?: string; - /** Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. */ - command?: string[]; - /** Arguments to the entrypoint. The docker image's CMD is used if this is not provided. */ - args?: string[]; - /** Credential of the image registry */ - imageRegistryCredential?: ImageRegistryCredential; +/** KPack Builder properties payload */ +export interface BuilderProperties { + /** + * Builder provision status. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: BuilderProvisioningState; + /** Builder cluster stack property. */ + stack?: StackProperties; + /** Builder buildpack groups. */ + buildpackGroups?: BuildpacksGroupProperties[]; +} + +/** KPack ClusterStack properties payload */ +export interface StackProperties { + /** Id of the ClusterStack. */ + id?: string; + /** Version of the ClusterStack */ + version?: string; } -/** Credential of the image registry */ -export interface ImageRegistryCredential { - /** The username of the image registry credential */ - username?: string; - /** The password of the image registry credential */ - password?: string; +/** Buildpack group properties of the Builder */ +export interface BuildpacksGroupProperties { + /** Buildpack group name */ + name?: string; + /** Buildpacks in the buildpack group */ + buildpacks?: BuildpackProperties[]; } -/** Deployment settings payload */ -export interface DeploymentSettings { - /** Required CPU. This should be 1 for Basic tier, and in range [1, 4] for Standard tier. This is deprecated starting from API version 2021-09-01-preview. Please use the resourceRequests field to set the CPU size. */ - cpu?: number; - /** Required Memory size in GB. This should be in range [1, 2] for Basic tier, and in range [1, 8] for Standard tier. This is deprecated starting from API version 2021-09-01-preview. Please use the resourceRequests field to set the the memory size. */ - memoryInGB?: number; - /** The requested resource quantity for required CPU and Memory. It is recommended that using this field to represent the required CPU and Memory, the old field cpu and memoryInGB will be deprecated later. */ - resourceRequests?: ResourceRequests; - /** JVM parameter */ - jvmOptions?: string; - /** The path to the .NET executable relative to zip root */ - netCoreMainEntryPath?: string; - /** Collection of environment variables */ - environmentVariables?: { [propertyName: string]: string }; - /** Runtime version */ - runtimeVersion?: RuntimeVersion; - /** Container liveness and readiness probe settings */ - containerProbeSettings?: DeploymentSettingsContainerProbeSettings; +/** Buildpack properties payload */ +export interface BuildpackProperties { + /** Id of the buildpack */ + id?: string; } -/** Deployment resource request payload */ -export interface ResourceRequests { - /** Required CPU. 1 core can be represented by 1 or 1000m. This should be 500m or 1 for Basic tier, and {500m, 1, 2, 3, 4} for Standard tier. */ - cpu?: string; - /** Required memory. 1 GB can be represented by 1Gi or 1024Mi. This should be {512Mi, 1Gi, 2Gi} for Basic tier, and {512Mi, 1Gi, 2Gi, ..., 8Gi} for Standard tier. */ - memory?: string; +/** Object that includes an array of Builder resources and a possible link for next set */ +export interface BuilderResourceCollection { + /** Collection of Builder resources */ + value?: BuilderResource[]; + /** + * URL client should use to fetch the next page (per server side paging). + * It's null for now, added for future use. + */ + nextLink?: string; } -/** Container liveness and readiness probe settings */ -export interface DeploymentSettingsContainerProbeSettings { - /** Indicates whether disable the liveness and readiness probe */ - disableProbe?: boolean; +/** Resource upload definition payload */ +export interface ResourceUploadDefinition { + /** Source relative path */ + relativePath?: string; + /** Upload URL */ + uploadUrl?: string; } -/** Deployment instance payload */ -export interface DeploymentInstance { - /** - * Name of the deployment instance - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly name?: string; - /** - * Status of the deployment instance - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly status?: string; - /** - * Failed reason of the deployment instance - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly reason?: string; - /** - * Discovery status of the deployment instance - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly discoveryStatus?: string; +/** Object that includes an array of supported buildpacks resources and a possible link for next set */ +export interface SupportedBuildpacksCollection { + /** Collection of supported buildpacks resources */ + value?: SupportedBuildpackResource[]; /** - * Start time of the deployment instance - * NOTE: This property will not be serialized. It can only be populated by the server. + * URL client should use to fetch the next page (per server side paging). + * It's null for now, added for future use. */ - readonly startTime?: string; + nextLink?: string; } -/** Object that includes an array of App resources and a possible link for next set */ -export interface DeploymentResourceCollection { - /** Collection of Deployment resources */ - value?: DeploymentResource[]; +/** Supported buildpack resource properties */ +export interface SupportedBuildpackResourceProperties { + /** The id of supported buildpack */ + buildpackId?: string; +} + +/** Object that includes an array of supported stacks resources and a possible link for next set */ +export interface SupportedStacksCollection { + /** Collection of supported stacks resources */ + value?: SupportedStackResource[]; /** * URL client should use to fetch the next page (per server side paging). * It's null for now, added for future use. @@ -739,26 +732,18 @@ export interface DeploymentResourceCollection { nextLink?: string; } -/** Log file URL payload */ -export interface LogFileUrlResponse { - /** URL of the log file */ - url: string; -} - -/** Diagnostic parameters of diagnostic operations */ -export interface DiagnosticParameters { - /** App instance name */ - appInstance?: string; - /** Your target file path in your own BYOS */ - filePath?: string; - /** Duration of your JFR. 1 min can be represented by 1m or 60s. */ - duration?: string; +/** Supported stack resource properties */ +export interface SupportedStackResourceProperties { + /** The id of supported stack */ + stackId?: string; + /** The version of supported stack */ + version?: string; } -/** Object that includes an array of Service resources and a possible link for next set */ -export interface ServiceResourceList { - /** Collection of Service resources */ - value?: ServiceResource[]; +/** Object that includes an array of build service agent pool resources and a possible link for next set */ +export interface BuildServiceAgentPoolResourceCollection { + /** Collection of build service agent pool resource */ + value?: BuildServiceAgentPoolResource[]; /** * URL client should use to fetch the next page (per server side paging). * It's null for now, added for future use. @@ -766,45 +751,516 @@ export interface ServiceResourceList { nextLink?: string; } -/** Available operations of the service */ -export interface AvailableOperations { - /** Collection of available operation details */ - value?: OperationDetail[]; +/** Build service agent pool properties */ +export interface BuildServiceAgentPoolProperties { /** - * URL client should use to fetch the next page (per server side paging). - * It's null for now, added for future use. + * Provisioning state of the build service agent pool + * NOTE: This property will not be serialized. It can only be populated by the server. */ - nextLink?: string; + readonly provisioningState?: string; + /** build service agent pool size properties */ + poolSize?: BuildServiceAgentPoolSizeProperties; } -/** Operation detail payload */ -export interface OperationDetail { - /** Name of the operation */ +/** Build service agent pool size properties */ +export interface BuildServiceAgentPoolSizeProperties { + /** The name of build service agent pool size */ name?: string; - /** Indicates whether the operation is a data action */ - isDataAction?: boolean; - /** Display of the operation */ - display?: OperationDisplay; - /** Origin of the operation */ - origin?: string; - /** Properties of the operation */ - properties?: OperationProperties; + /** + * The cpu property of build service agent pool size + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly cpu?: string; + /** + * The memory property of build service agent pool size + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly memory?: string; } -/** Operation display payload */ -export interface OperationDisplay { - /** Resource provider of the operation */ - provider?: string; - /** Resource of the operation */ - resource?: string; - /** Localized friendly name for the operation */ - operation?: string; - /** Localized friendly description for the operation */ - description?: string; +/** Monitoring Setting properties payload */ +export interface MonitoringSettingProperties { + /** + * State of the Monitoring Setting. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: MonitoringSettingState; + /** Error when apply Monitoring Setting changes. */ + error?: ErrorModel; + /** Indicates whether enable the trace functionality, which will be deprecated since api version 2020-11-01-preview. Please leverage appInsightsInstrumentationKey to indicate if monitoringSettings enabled or not */ + traceEnabled?: boolean; + /** Target application insight instrumentation key, null or whitespace include empty will disable monitoringSettings */ + appInsightsInstrumentationKey?: string; + /** Indicates the sampling rate of application insight agent, should be in range [0.0, 100.0] */ + appInsightsSamplingRate?: number; + /** Indicates the versions of application insight agent */ + appInsightsAgentVersions?: ApplicationInsightsAgentVersions; } -/** Extra Operation properties */ -export interface OperationProperties { +/** Application Insights agent versions properties payload */ +export interface ApplicationInsightsAgentVersions { + /** + * Indicates the version of application insight java agent + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly java?: string; +} + +/** App resource properties payload */ +export interface AppResourceProperties { + /** Indicates whether the App exposes public endpoint */ + public?: boolean; + /** + * URL of the App + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly url?: string; + /** Collection of addons */ + addonConfigs?: { + [propertyName: string]: { [propertyName: string]: Record }; + }; + /** + * Provisioning state of the App + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: AppResourceProvisioningState; + /** Fully qualified dns Name. */ + fqdn?: string; + /** Indicate if only https is allowed. */ + httpsOnly?: boolean; + /** Temporary disk settings */ + temporaryDisk?: TemporaryDisk; + /** Persistent disk settings */ + persistentDisk?: PersistentDisk; + /** List of custom persistent disks */ + customPersistentDisks?: CustomPersistentDiskResource[]; + /** Indicate if end to end TLS is enabled. */ + enableEndToEndTLS?: boolean; + /** Collection of loaded certificates */ + loadedCertificates?: LoadedCertificate[]; +} + +/** Temporary disk payload */ +export interface TemporaryDisk { + /** Size of the temporary disk in GB */ + sizeInGB?: number; + /** Mount path of the temporary disk */ + mountPath?: string; +} + +/** Persistent disk payload */ +export interface PersistentDisk { + /** Size of the persistent disk in GB */ + sizeInGB?: number; + /** + * Size of the used persistent disk in GB + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly usedInGB?: number; + /** Mount path of the persistent disk */ + mountPath?: string; +} + +/** Custom persistent disk resource payload. */ +export interface CustomPersistentDiskResource { + /** Properties of the custom persistent disk resource payload. */ + customPersistentDiskProperties?: CustomPersistentDiskPropertiesUnion; + /** The resource id of Azure Spring Cloud Storage resource. */ + storageId: string; +} + +/** Custom persistent disk resource payload. */ +export interface CustomPersistentDiskProperties { + /** Polymorphic discriminator, which specifies the different types this object can be */ + type: "AzureFileVolume"; + /** The mount path of the persistent disk. */ + mountPath: string; + /** Indicates whether the persistent disk is a readOnly one. */ + readOnly?: boolean; + /** These are the mount options for a persistent disk. */ + mountOptions?: string[]; +} + +/** Loaded certificate payload */ +export interface LoadedCertificate { + /** Resource Id of loaded certificate */ + resourceId: string; + /** Indicate whether the certificate will be loaded into default trust store, only work for Java runtime. */ + loadTrustStore?: boolean; +} + +/** Managed identity properties retrieved from ARM request headers. */ +export interface ManagedIdentityProperties { + /** Type of the managed identity */ + type?: ManagedIdentityType; + /** Principal Id */ + principalId?: string; + /** Tenant Id */ + tenantId?: string; +} + +/** Object that includes an array of App resources and a possible link for next set */ +export interface AppResourceCollection { + /** Collection of App resources */ + value?: AppResource[]; + /** + * URL client should use to fetch the next page (per server side paging). + * It's null for now, added for future use. + */ + nextLink?: string; +} + +/** Object that includes an array of Deployment resource name and set them as active. */ +export interface ActiveDeploymentCollection { + /** Collection of Deployment name. */ + activeDeploymentNames?: string[]; +} + +/** Binding resource properties payload */ +export interface BindingResourceProperties { + /** + * The name of the bound resource + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly resourceName?: string; + /** + * The standard Azure resource type of the bound resource + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly resourceType?: string; + /** The Azure resource id of the bound resource */ + resourceId?: string; + /** The key of the bound resource */ + key?: string; + /** Binding parameters of the Binding resource */ + bindingParameters?: { [propertyName: string]: Record }; + /** + * The generated Spring Boot property file for this binding. The secret will be deducted. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly generatedProperties?: string; + /** + * Creation time of the Binding resource + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly createdAt?: string; + /** + * Update time of the Binding resource + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly updatedAt?: string; +} + +/** Object that includes an array of Binding resources and a possible link for next set */ +export interface BindingResourceCollection { + /** Collection of Binding resources */ + value?: BindingResource[]; + /** + * URL client should use to fetch the next page (per server side paging). + * It's null for now, added for future use. + */ + nextLink?: string; +} + +/** Storage resource payload. */ +export interface StorageProperties { + /** Polymorphic discriminator, which specifies the different types this object can be */ + storageType: "StorageAccount"; +} + +/** Collection compose of storage resources list and a possible link for next page. */ +export interface StorageResourceCollection { + /** The storage resources list. */ + value?: StorageResource[]; + /** The link to next page of storage list. */ + nextLink?: string; +} + +/** Certificate resource payload. */ +export interface CertificateProperties { + /** Polymorphic discriminator, which specifies the different types this object can be */ + type: "KeyVaultCertificate" | "ContentCertificate"; + /** + * The thumbprint of certificate. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly thumbprint?: string; + /** + * The issuer of certificate. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly issuer?: string; + /** + * The issue date of certificate. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly issuedDate?: string; + /** + * The expiration date of certificate. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly expirationDate?: string; + /** + * The activate date of certificate. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly activateDate?: string; + /** + * The subject name of certificate. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly subjectName?: string; + /** + * The domain list of certificate. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly dnsNames?: string[]; +} + +/** Collection compose of certificate resources list and a possible link for next page. */ +export interface CertificateResourceCollection { + /** The certificate resources list. */ + value?: CertificateResource[]; + /** The link to next page of certificate list. */ + nextLink?: string; +} + +/** Name availability parameters payload */ +export interface NameAvailabilityParameters { + /** Type of the resource to check name availability */ + type: string; + /** Name to be checked */ + name: string; +} + +/** Name availability result payload */ +export interface NameAvailability { + /** Indicates whether the name is available */ + nameAvailable?: boolean; + /** Reason why the name is not available */ + reason?: string; + /** Message why the name is not available */ + message?: string; +} + +/** Custom domain of app resource payload. */ +export interface CustomDomainProperties { + /** The thumbprint of bound certificate. */ + thumbprint?: string; + /** + * The app name of domain. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly appName?: string; + /** The bound certificate name of domain. */ + certName?: string; +} + +/** Collection compose of a custom domain resources list and a possible link for next page. */ +export interface CustomDomainResourceCollection { + /** The custom domain resources list. */ + value?: CustomDomainResource[]; + /** The link to next page of custom domain list. */ + nextLink?: string; +} + +/** Custom domain validate payload. */ +export interface CustomDomainValidatePayload { + /** Name to be validated */ + name: string; +} + +/** Validation result for custom domain. */ +export interface CustomDomainValidateResult { + /** Indicates if domain name is valid. */ + isValid?: boolean; + /** Message of why domain name is invalid. */ + message?: string; +} + +/** Deployment resource properties payload */ +export interface DeploymentResourceProperties { + /** Uploaded source information of the deployment. */ + source?: UserSourceInfoUnion; + /** Deployment settings of the Deployment */ + deploymentSettings?: DeploymentSettings; + /** + * Provisioning state of the Deployment + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: DeploymentResourceProvisioningState; + /** + * Status of the Deployment + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly status?: DeploymentResourceStatus; + /** Indicates whether the Deployment is active */ + active?: boolean; + /** + * Collection of instances belong to the Deployment + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly instances?: DeploymentInstance[]; +} + +/** Source information for a deployment */ +export interface UserSourceInfo { + /** Polymorphic discriminator, which specifies the different types this object can be */ + type: + | "UploadedUserSourceInfo" + | "Jar" + | "Source" + | "NetCoreZip" + | "BuildResult" + | "Container"; + /** Version of the source */ + version?: string; +} + +/** Deployment settings payload */ +export interface DeploymentSettings { + /** The requested resource quantity for required CPU and Memory. It is recommended that using this field to represent the required CPU and Memory, the old field cpu and memoryInGB will be deprecated later. */ + resourceRequests?: ResourceRequests; + /** Collection of environment variables */ + environmentVariables?: { [propertyName: string]: string }; + /** Collection of addons */ + addonConfigs?: { + [propertyName: string]: { [propertyName: string]: Record }; + }; + /** Container liveness and readiness probe settings */ + containerProbeSettings?: ContainerProbeSettings; +} + +/** Deployment resource request payload */ +export interface ResourceRequests { + /** Required CPU. 1 core can be represented by 1 or 1000m. This should be 500m or 1 for Basic tier, and {500m, 1, 2, 3, 4} for Standard tier. */ + cpu?: string; + /** Required memory. 1 GB can be represented by 1Gi or 1024Mi. This should be {512Mi, 1Gi, 2Gi} for Basic tier, and {512Mi, 1Gi, 2Gi, ..., 8Gi} for Standard tier. */ + memory?: string; +} + +/** Container liveness and readiness probe settings */ +export interface ContainerProbeSettings { + /** Indicates whether disable the liveness and readiness probe */ + disableProbe?: boolean; +} + +/** Deployment instance payload */ +export interface DeploymentInstance { + /** + * Name of the deployment instance + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly name?: string; + /** + * Status of the deployment instance + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly status?: string; + /** + * Failed reason of the deployment instance + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly reason?: string; + /** + * Discovery status of the deployment instance + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly discoveryStatus?: string; + /** + * Start time of the deployment instance + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly startTime?: string; + /** + * Availability zone information of the deployment instance + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly zone?: string; +} + +/** Object that includes an array of App resources and a possible link for next set */ +export interface DeploymentResourceCollection { + /** Collection of Deployment resources */ + value?: DeploymentResource[]; + /** + * URL client should use to fetch the next page (per server side paging). + * It's null for now, added for future use. + */ + nextLink?: string; +} + +/** Log file URL payload */ +export interface LogFileUrlResponse { + /** URL of the log file */ + url: string; +} + +/** Diagnostic parameters of diagnostic operations */ +export interface DiagnosticParameters { + /** App instance name */ + appInstance?: string; + /** Your target file path in your own BYOS */ + filePath?: string; + /** Duration of your JFR. 1 min can be represented by 1m or 60s. */ + duration?: string; +} + +/** Object that includes an array of Service resources and a possible link for next set */ +export interface ServiceResourceList { + /** Collection of Service resources */ + value?: ServiceResource[]; + /** + * URL client should use to fetch the next page (per server side paging). + * It's null for now, added for future use. + */ + nextLink?: string; +} + +/** Available operations of the service */ +export interface AvailableOperations { + /** Collection of available operation details */ + value?: OperationDetail[]; + /** + * URL client should use to fetch the next page (per server side paging). + * It's null for now, added for future use. + */ + nextLink?: string; +} + +/** Operation detail payload */ +export interface OperationDetail { + /** Name of the operation */ + name?: string; + /** Indicates whether the operation is a data action */ + isDataAction?: boolean; + /** Display of the operation */ + display?: OperationDisplay; + /** + * Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly actionType?: ActionType; + /** Origin of the operation */ + origin?: string; + /** Properties of the operation */ + properties?: OperationProperties; +} + +/** Operation display payload */ +export interface OperationDisplay { + /** Resource provider of the operation */ + provider?: string; + /** Resource of the operation */ + resource?: string; + /** Localized friendly name for the operation */ + operation?: string; + /** Localized friendly description for the operation */ + description?: string; +} + +/** Extra Operation properties */ +export interface OperationProperties { /** Service specifications of the operation */ serviceSpecification?: ServiceSpecification; } @@ -979,6 +1435,325 @@ export interface ResourceSkuRestrictionInfo { zones?: string[]; } +/** Spring Cloud Gateway properties payload */ +export interface GatewayProperties { + /** + * State of the Spring Cloud Gateway. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: GatewayProvisioningState; + /** Indicates whether the Spring Cloud Gateway exposes endpoint. */ + public?: boolean; + /** + * URL of the Spring Cloud Gateway, exposed when 'public' is true. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly url?: string; + /** Indicate if only https is allowed. */ + httpsOnly?: boolean; + /** Single sign-on related configuration */ + ssoProperties?: SsoProperties; + /** API metadata property for Spring Cloud Gateway */ + apiMetadataProperties?: GatewayApiMetadataProperties; + /** Cross-Origin Resource Sharing property */ + corsProperties?: GatewayCorsProperties; + /** The requested resource quantity for required CPU and Memory. */ + resourceRequests?: GatewayResourceRequests; + /** + * Collection of instances belong to Spring Cloud Gateway. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly instances?: GatewayInstance[]; + /** + * Properties of the Spring Cloud Gateway Operator. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly operatorProperties?: GatewayOperatorProperties; +} + +/** Single sign-on related configuration */ +export interface SsoProperties { + /** It defines the specific actions applications can be allowed to do on a user's behalf */ + scope?: string[]; + /** The public identifier for the application */ + clientId?: string; + /** The secret known only to the application and the authorization server */ + clientSecret?: string; + /** The URI of Issuer Identifier */ + issuerUri?: string; +} + +/** API metadata property for Spring Cloud Gateway */ +export interface GatewayApiMetadataProperties { + /** Title describing the context of the APIs available on the Gateway instance (default: `Spring Cloud Gateway for K8S`) */ + title?: string; + /** Detailed description of the APIs available on the Gateway instance (default: `Generated OpenAPI 3 document that describes the API routes configured.`) */ + description?: string; + /** Location of additional documentation for the APIs available on the Gateway instance */ + documentation?: string; + /** Version of APIs available on this Gateway instance (default: `unspecified`). */ + version?: string; + /** Base URL that API consumers will use to access APIs on the Gateway instance. */ + serverUrl?: string; +} + +/** Cross-Origin Resource Sharing property */ +export interface GatewayCorsProperties { + /** Allowed origins to make cross-site requests. The special value `*` allows all domains. */ + allowedOrigins?: string[]; + /** Allowed HTTP methods on cross-site requests. The special value `*` allows all methods. If not set, `GET` and `HEAD` are allowed by default. */ + allowedMethods?: string[]; + /** Allowed headers in cross-site requests. The special value `*` allows actual requests to send any header. */ + allowedHeaders?: string[]; + /** How long, in seconds, the response from a pre-flight request can be cached by clients. */ + maxAge?: number; + /** Whether user credentials are supported on cross-site requests. Valid values: `true`, `false`. */ + allowCredentials?: boolean; + /** HTTP response headers to expose for cross-site requests. */ + exposedHeaders?: string[]; +} + +/** Resource request payload of Spring Cloud Gateway. */ +export interface GatewayResourceRequests { + /** Cpu allocated to each Spring Cloud Gateway instance. */ + cpu?: string; + /** Memory allocated to each Spring Cloud Gateway instance. */ + memory?: string; +} + +/** Collection of instances belong to the Spring Cloud Gateway */ +export interface GatewayInstance { + /** + * Name of the Spring Cloud Gateway instance + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly name?: string; + /** + * Status of the Spring Cloud Gateway instance + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly status?: string; +} + +/** Properties of the Spring Cloud Gateway Operator. */ +export interface GatewayOperatorProperties { + /** + * The requested resource quantity for required CPU and Memory. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly resourceRequests?: GatewayOperatorResourceRequests; + /** + * Collection of instances belong to Spring Cloud Gateway operator. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly instances?: GatewayInstance[]; +} + +/** Properties of the Spring Cloud Gateway Operator. */ +export interface GatewayOperatorResourceRequests { + /** + * Cpu allocated to each Spring Cloud Gateway Operator instance. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly cpu?: string; + /** + * Memory allocated to each Spring Cloud Gateway Operator instance. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly memory?: string; + /** + * Instance count of the Spring Cloud Gateway Operator. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly instanceCount?: number; +} + +/** Object that includes an array of gateway resources and a possible link for next set */ +export interface GatewayResourceCollection { + /** Collection of gateway resources */ + value?: GatewayResource[]; + /** + * URL client should use to fetch the next page (per server side paging). + * It's null for now, added for future use. + */ + nextLink?: string; +} + +/** API route config of the Spring Cloud Gateway */ +export interface GatewayRouteConfigProperties { + /** + * State of the Spring Cloud Gateway route config. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: GatewayProvisioningState; + /** The resource Id of the Azure Spring Cloud app, required unless route defines `uri`. */ + appResourceId?: string; + /** Array of API routes, each route contains properties such as `title`, `uri`, `ssoEnabled`, `predicates`, `filters`. */ + routes?: GatewayApiRoute[]; +} + +/** API route config of the Spring Cloud Gateway */ +export interface GatewayApiRoute { + /** A title, will be applied to methods in the generated OpenAPI documentation. */ + title?: string; + /** A description, will be applied to methods in the generated OpenAPI documentation. */ + description?: string; + /** Full uri, will override `appName`. */ + uri?: string; + /** Enable sso validation. */ + ssoEnabled?: boolean; + /** Pass currently-authenticated user's identity token to application service, default is 'false' */ + tokenRelay?: boolean; + /** A number of conditions to evaluate a route for each request. Each predicate may be evaluated against request headers and parameter values. All of the predicates associated with a route must evaluate to true for the route to be matched to the request. */ + predicates?: string[]; + /** To modify the request before sending it to the target endpoint, or the received response. */ + filters?: string[]; + /** Route processing order. */ + order?: number; + /** Classification tags, will be applied to methods in the generated OpenAPI documentation. */ + tags?: string[]; +} + +/** Object that includes an array of Spring Cloud Gateway route config resources and a possible link for next set */ +export interface GatewayRouteConfigResourceCollection { + /** Collection of Spring Cloud Gateway route config resources */ + value?: GatewayRouteConfigResource[]; + /** + * URL client should use to fetch the next page (per server side paging). + * It's null for now, added for future use. + */ + nextLink?: string; +} + +/** The properties of custom domain for Spring Cloud Gateway */ +export interface GatewayCustomDomainProperties { + /** The thumbprint of bound certificate. */ + thumbprint?: string; +} + +/** Object that includes an array of Spring Cloud Gateway custom domain resources and a possible link for next set */ +export interface GatewayCustomDomainResourceCollection { + /** Collection of Spring Cloud Gateway custom domain resources */ + value?: GatewayCustomDomainResource[]; + /** + * URL client should use to fetch the next page (per server side paging). + * It's null for now, added for future use. + */ + nextLink?: string; +} + +/** API portal properties payload */ +export interface ApiPortalProperties { + /** + * State of the API portal. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: ApiPortalProvisioningState; + /** Indicates whether the API portal exposes endpoint. */ + public?: boolean; + /** + * URL of the API portal, exposed when 'public' is true. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly url?: string; + /** Indicate if only https is allowed. */ + httpsOnly?: boolean; + /** The array of resource Ids of gateway to integrate with API portal. */ + gatewayIds?: string[]; + /** Collection of OpenAPI source URL locations. */ + sourceUrls?: string[]; + /** Single sign-on related configuration */ + ssoProperties?: SsoProperties; + /** + * The requested resource quantity for required CPU and Memory. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly resourceRequests?: ApiPortalResourceRequests; + /** + * Collection of instances belong to API portal. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly instances?: ApiPortalInstance[]; +} + +/** Resource requests of the API portal */ +export interface ApiPortalResourceRequests { + /** + * Cpu allocated to each API portal instance + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly cpu?: string; + /** + * Memory allocated to each API portal instance + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly memory?: string; +} + +/** Collection of instances belong to the API portal */ +export interface ApiPortalInstance { + /** + * Name of the API portal instance + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly name?: string; + /** + * Status of the API portal instance + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly status?: string; +} + +/** Object that includes an array of API portal resources and a possible link for next set */ +export interface ApiPortalResourceCollection { + /** Collection of API portal resources */ + value?: ApiPortalResource[]; + /** + * URL client should use to fetch the next page (per server side paging). + * It's null for now, added for future use. + */ + nextLink?: string; +} + +/** The properties of custom domain for API portal */ +export interface ApiPortalCustomDomainProperties { + /** The thumbprint of bound certificate. */ + thumbprint?: string; +} + +/** Object that includes an array of API portal custom domain resources and a possible link for next set */ +export interface ApiPortalCustomDomainResourceCollection { + /** Collection of API portal custom domain resources */ + value?: ApiPortalCustomDomainResource[]; + /** + * URL client should use to fetch the next page (per server side paging). + * It's null for now, added for future use. + */ + nextLink?: string; +} + +/** Custom container payload */ +export interface CustomContainer { + /** The name of the registry that contains the container image */ + server?: string; + /** Container image of the custom container. This should be in the form of : without the server name of the registry */ + containerImage?: string; + /** Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. */ + command?: string[]; + /** Arguments to the entrypoint. The docker image's CMD is used if this is not provided. */ + args?: string[]; + /** Credential of the image registry */ + imageRegistryCredential?: ImageRegistryCredential; +} + +/** Credential of the image registry */ +export interface ImageRegistryCredential { + /** The username of the image registry credential */ + username?: string; + /** The password of the image registry credential */ + password?: string; +} + /** The resource model definition for a ARM tracked top level resource. */ export type TrackedResource = Resource & { /** The GEO location of the resource. */ @@ -1027,7 +1802,31 @@ export type ContentCertificateProperties = CertificateProperties & { /** Polymorphic discriminator, which specifies the different types this object can be */ type: "ContentCertificate"; /** The content of uploaded certificate. */ - content: string; + content?: string; +}; + +/** Source with uploaded location */ +export type UploadedUserSourceInfo = UserSourceInfo & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + type: "UploadedUserSourceInfo" | "Jar" | "Source" | "NetCoreZip"; + /** Relative path of the storage which stores the source */ + relativePath?: string; +}; + +/** Reference to a build result */ +export type BuildResultUserSourceInfo = UserSourceInfo & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + type: "BuildResult"; + /** Resource id of an existing succeeded build result under the same Spring instance. */ + buildResultId?: string; +}; + +/** Custom container user source info */ +export type CustomContainerUserSourceInfo = UserSourceInfo & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + type: "Container"; + /** Custom container payload */ + customContainer?: CustomContainer; }; /** Service resource */ @@ -1044,6 +1843,66 @@ export type ConfigServerResource = ProxyResource & { properties?: ConfigServerProperties; }; +/** Application Configuration Service resource */ +export type ConfigurationServiceResource = ProxyResource & { + /** Application Configuration Service properties payload */ + properties?: ConfigurationServiceProperties; +}; + +/** Service Registry resource */ +export type ServiceRegistryResource = ProxyResource & { + /** Service Registry properties payload */ + properties?: ServiceRegistryProperties; +}; + +/** Build service resource payload */ +export type BuildService = ProxyResource & { + /** Properties of the build resource */ + properties?: BuildServiceProperties; +}; + +/** Build resource payload */ +export type Build = ProxyResource & { + /** Properties of the build resource */ + properties?: BuildProperties; +}; + +/** Buildpack Binding Resource object */ +export type BuildpackBindingResource = ProxyResource & { + /** Properties of a buildpack binding */ + properties?: BuildpackBindingProperties; +}; + +/** Build result resource payload */ +export type BuildResult = ProxyResource & { + /** Properties of the build result resource */ + properties?: BuildResultProperties; +}; + +/** KPack Builder resource */ +export type BuilderResource = ProxyResource & { + /** Property of the Builder resource. */ + properties?: BuilderProperties; +}; + +/** Supported buildpack resource payload */ +export type SupportedBuildpackResource = ProxyResource & { + /** Supported buildpack resource properties */ + properties?: SupportedBuildpackResourceProperties; +}; + +/** Supported stack resource payload */ +export type SupportedStackResource = ProxyResource & { + /** Supported stack resource properties */ + properties?: SupportedStackResourceProperties; +}; + +/** The build service agent pool resource */ +export type BuildServiceAgentPoolResource = ProxyResource & { + /** build service agent pool properties */ + properties?: BuildServiceAgentPoolProperties; +}; + /** Monitoring Setting resource */ export type MonitoringSettingResource = ProxyResource & { /** Properties of the Monitoring Setting resource */ @@ -1070,11 +1929,6 @@ export type BindingResource = ProxyResource & { export type StorageResource = ProxyResource & { /** Properties of the storage resource payload. */ properties?: StoragePropertiesUnion; - /** - * Metadata pertaining to creation and last modification of the resource. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly systemData?: SystemData; }; /** Certificate resource payload. */ @@ -1089,12 +1943,79 @@ export type CustomDomainResource = ProxyResource & { properties?: CustomDomainProperties; }; -/** Deployment resource payload */ -export type DeploymentResource = ProxyResource & { - /** Properties of the Deployment resource */ - properties?: DeploymentResourceProperties; - /** Sku of the Deployment resource */ - sku?: Sku; +/** Deployment resource payload */ +export type DeploymentResource = ProxyResource & { + /** Properties of the Deployment resource */ + properties?: DeploymentResourceProperties; + /** Sku of the Deployment resource */ + sku?: Sku; +}; + +/** Spring Cloud Gateway resource */ +export type GatewayResource = ProxyResource & { + /** Spring Cloud Gateway properties payload */ + properties?: GatewayProperties; + /** Sku of the Spring Cloud Gateway resource */ + sku?: Sku; +}; + +/** Spring Cloud Gateway route config resource */ +export type GatewayRouteConfigResource = ProxyResource & { + /** API route config of the Spring Cloud Gateway */ + properties?: GatewayRouteConfigProperties; +}; + +/** Custom domain of the Spring Cloud Gateway */ +export type GatewayCustomDomainResource = ProxyResource & { + /** The properties of custom domain for Spring Cloud Gateway */ + properties?: GatewayCustomDomainProperties; +}; + +/** API portal resource */ +export type ApiPortalResource = ProxyResource & { + /** API portal properties payload */ + properties?: ApiPortalProperties; + /** Sku of the API portal resource */ + sku?: Sku; +}; + +/** Custom domain of the API portal */ +export type ApiPortalCustomDomainResource = ProxyResource & { + /** The properties of custom domain for API portal */ + properties?: ApiPortalCustomDomainProperties; +}; + +/** Uploaded Jar binary for a deployment */ +export type JarUploadedUserSourceInfo = UploadedUserSourceInfo & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + type: "Jar"; + /** Runtime version of the Jar file */ + runtimeVersion?: string; + /** JVM parameter */ + jvmOptions?: string; +}; + +/** Uploaded Java source code binary for a deployment */ +export type SourceUploadedUserSourceInfo = UploadedUserSourceInfo & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + type: "Source"; + /** + * Selector for the artifact to be used for the deployment for multi-module projects. This should be + * the relative path to the target module/project. + */ + artifactSelector?: string; + /** Runtime version of the source file */ + runtimeVersion?: string; +}; + +/** Uploaded Jar binary for a deployment */ +export type NetCoreZipUploadedUserSourceInfo = UploadedUserSourceInfo & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + type: "NetCoreZip"; + /** The path to the .NET executable relative to zip root */ + netCoreMainEntryPath?: string; + /** Runtime version of the .Net file */ + runtimeVersion?: string; }; /** Known values of {@link ProvisioningState} that the service accepts. */ @@ -1159,6 +2080,46 @@ export enum KnownPowerState { */ export type PowerState = string; +/** Known values of {@link CreatedByType} that the service accepts. */ +export enum KnownCreatedByType { + User = "User", + Application = "Application", + ManagedIdentity = "ManagedIdentity", + Key = "Key" +} + +/** + * Defines values for CreatedByType. \ + * {@link KnownCreatedByType} can be used interchangeably with CreatedByType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **User** \ + * **Application** \ + * **ManagedIdentity** \ + * **Key** + */ +export type CreatedByType = string; + +/** Known values of {@link LastModifiedByType} that the service accepts. */ +export enum KnownLastModifiedByType { + User = "User", + Application = "Application", + ManagedIdentity = "ManagedIdentity", + Key = "Key" +} + +/** + * Defines values for LastModifiedByType. \ + * {@link KnownLastModifiedByType} can be used interchangeably with LastModifiedByType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **User** \ + * **Application** \ + * **ManagedIdentity** \ + * **Key** + */ +export type LastModifiedByType = string; + /** Known values of {@link TestKeyType} that the service accepts. */ export enum KnownTestKeyType { Primary = "Primary", @@ -1197,6 +2158,204 @@ export enum KnownConfigServerState { */ export type ConfigServerState = string; +/** Known values of {@link ConfigurationServiceProvisioningState} that the service accepts. */ +export enum KnownConfigurationServiceProvisioningState { + Creating = "Creating", + Updating = "Updating", + Succeeded = "Succeeded", + Failed = "Failed", + Deleting = "Deleting" +} + +/** + * Defines values for ConfigurationServiceProvisioningState. \ + * {@link KnownConfigurationServiceProvisioningState} can be used interchangeably with ConfigurationServiceProvisioningState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Creating** \ + * **Updating** \ + * **Succeeded** \ + * **Failed** \ + * **Deleting** + */ +export type ConfigurationServiceProvisioningState = string; + +/** Known values of {@link ServiceRegistryProvisioningState} that the service accepts. */ +export enum KnownServiceRegistryProvisioningState { + Creating = "Creating", + Updating = "Updating", + Succeeded = "Succeeded", + Failed = "Failed", + Deleting = "Deleting" +} + +/** + * Defines values for ServiceRegistryProvisioningState. \ + * {@link KnownServiceRegistryProvisioningState} can be used interchangeably with ServiceRegistryProvisioningState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Creating** \ + * **Updating** \ + * **Succeeded** \ + * **Failed** \ + * **Deleting** + */ +export type ServiceRegistryProvisioningState = string; + +/** Known values of {@link BuildServiceProvisioningState} that the service accepts. */ +export enum KnownBuildServiceProvisioningState { + Creating = "Creating", + Updating = "Updating", + Succeeded = "Succeeded", + Failed = "Failed", + Deleting = "Deleting" +} + +/** + * Defines values for BuildServiceProvisioningState. \ + * {@link KnownBuildServiceProvisioningState} can be used interchangeably with BuildServiceProvisioningState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Creating** \ + * **Updating** \ + * **Succeeded** \ + * **Failed** \ + * **Deleting** + */ +export type BuildServiceProvisioningState = string; + +/** Known values of {@link BuildProvisioningState} that the service accepts. */ +export enum KnownBuildProvisioningState { + Creating = "Creating", + Updating = "Updating", + Succeeded = "Succeeded", + Failed = "Failed", + Deleting = "Deleting" +} + +/** + * Defines values for BuildProvisioningState. \ + * {@link KnownBuildProvisioningState} can be used interchangeably with BuildProvisioningState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Creating** \ + * **Updating** \ + * **Succeeded** \ + * **Failed** \ + * **Deleting** + */ +export type BuildProvisioningState = string; + +/** Known values of {@link BindingType} that the service accepts. */ +export enum KnownBindingType { + ApplicationInsights = "ApplicationInsights", + ApacheSkyWalking = "ApacheSkyWalking", + AppDynamics = "AppDynamics", + Dynatrace = "Dynatrace", + NewRelic = "NewRelic", + ElasticAPM = "ElasticAPM" +} + +/** + * Defines values for BindingType. \ + * {@link KnownBindingType} can be used interchangeably with BindingType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **ApplicationInsights** \ + * **ApacheSkyWalking** \ + * **AppDynamics** \ + * **Dynatrace** \ + * **NewRelic** \ + * **ElasticAPM** + */ +export type BindingType = string; + +/** Known values of {@link BuildpackBindingProvisioningState} that the service accepts. */ +export enum KnownBuildpackBindingProvisioningState { + Creating = "Creating", + Updating = "Updating", + Succeeded = "Succeeded", + Failed = "Failed", + Deleting = "Deleting" +} + +/** + * Defines values for BuildpackBindingProvisioningState. \ + * {@link KnownBuildpackBindingProvisioningState} can be used interchangeably with BuildpackBindingProvisioningState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Creating** \ + * **Updating** \ + * **Succeeded** \ + * **Failed** \ + * **Deleting** + */ +export type BuildpackBindingProvisioningState = string; + +/** Known values of {@link BuildResultProvisioningState} that the service accepts. */ +export enum KnownBuildResultProvisioningState { + Queuing = "Queuing", + Building = "Building", + Succeeded = "Succeeded", + Failed = "Failed", + Deleting = "Deleting" +} + +/** + * Defines values for BuildResultProvisioningState. \ + * {@link KnownBuildResultProvisioningState} can be used interchangeably with BuildResultProvisioningState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Queuing** \ + * **Building** \ + * **Succeeded** \ + * **Failed** \ + * **Deleting** + */ +export type BuildResultProvisioningState = string; + +/** Known values of {@link KPackBuildStageProvisioningState} that the service accepts. */ +export enum KnownKPackBuildStageProvisioningState { + NotStarted = "NotStarted", + Running = "Running", + Succeeded = "Succeeded", + Failed = "Failed" +} + +/** + * Defines values for KPackBuildStageProvisioningState. \ + * {@link KnownKPackBuildStageProvisioningState} can be used interchangeably with KPackBuildStageProvisioningState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **NotStarted** \ + * **Running** \ + * **Succeeded** \ + * **Failed** + */ +export type KPackBuildStageProvisioningState = string; + +/** Known values of {@link BuilderProvisioningState} that the service accepts. */ +export enum KnownBuilderProvisioningState { + Creating = "Creating", + Updating = "Updating", + Succeeded = "Succeeded", + Failed = "Failed", + Deleting = "Deleting" +} + +/** + * Defines values for BuilderProvisioningState. \ + * {@link KnownBuilderProvisioningState} can be used interchangeably with BuilderProvisioningState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Creating** \ + * **Updating** \ + * **Succeeded** \ + * **Failed** \ + * **Deleting** + */ +export type BuilderProvisioningState = string; + /** Known values of {@link MonitoringSettingState} that the service accepts. */ export enum KnownMonitoringSettingState { NotAvailable = "NotAvailable", @@ -1222,7 +2381,8 @@ export enum KnownAppResourceProvisioningState { Succeeded = "Succeeded", Failed = "Failed", Creating = "Creating", - Updating = "Updating" + Updating = "Updating", + Deleting = "Deleting" } /** @@ -1233,7 +2393,8 @@ export enum KnownAppResourceProvisioningState { * **Succeeded** \ * **Failed** \ * **Creating** \ - * **Updating** + * **Updating** \ + * **Deleting** */ export type AppResourceProvisioningState = string; @@ -1257,64 +2418,6 @@ export enum KnownManagedIdentityType { */ export type ManagedIdentityType = string; -/** Known values of {@link CreatedByType} that the service accepts. */ -export enum KnownCreatedByType { - User = "User", - Application = "Application", - ManagedIdentity = "ManagedIdentity", - Key = "Key" -} - -/** - * Defines values for CreatedByType. \ - * {@link KnownCreatedByType} can be used interchangeably with CreatedByType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **User** \ - * **Application** \ - * **ManagedIdentity** \ - * **Key** - */ -export type CreatedByType = string; - -/** Known values of {@link UserSourceType} that the service accepts. */ -export enum KnownUserSourceType { - Jar = "Jar", - NetCoreZip = "NetCoreZip", - Source = "Source", - Container = "Container" -} - -/** - * Defines values for UserSourceType. \ - * {@link KnownUserSourceType} can be used interchangeably with UserSourceType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Jar** \ - * **NetCoreZip** \ - * **Source** \ - * **Container** - */ -export type UserSourceType = string; - -/** Known values of {@link RuntimeVersion} that the service accepts. */ -export enum KnownRuntimeVersion { - Java8 = "Java_8", - Java11 = "Java_11", - NetCore31 = "NetCore_31" -} - -/** - * Defines values for RuntimeVersion. \ - * {@link KnownRuntimeVersion} can be used interchangeably with RuntimeVersion, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Java_8** \ - * **Java_11** \ - * **NetCore_31** - */ -export type RuntimeVersion = string; - /** Known values of {@link DeploymentResourceProvisioningState} that the service accepts. */ export enum KnownDeploymentResourceProvisioningState { Creating = "Creating", @@ -1337,13 +2440,8 @@ export type DeploymentResourceProvisioningState = string; /** Known values of {@link DeploymentResourceStatus} that the service accepts. */ export enum KnownDeploymentResourceStatus { - Unknown = "Unknown", Stopped = "Stopped", - Running = "Running", - Failed = "Failed", - Allocating = "Allocating", - Upgrading = "Upgrading", - Compiling = "Compiling" + Running = "Running" } /** @@ -1351,20 +2449,30 @@ export enum KnownDeploymentResourceStatus { * {@link KnownDeploymentResourceStatus} can be used interchangeably with DeploymentResourceStatus, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Unknown** \ * **Stopped** \ - * **Running** \ - * **Failed** \ - * **Allocating** \ - * **Upgrading** \ - * **Compiling** + * **Running** */ export type DeploymentResourceStatus = string; +/** Known values of {@link ActionType} that the service accepts. */ +export enum KnownActionType { + Internal = "Internal" +} + +/** + * Defines values for ActionType. \ + * {@link KnownActionType} can be used interchangeably with ActionType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Internal** + */ +export type ActionType = string; + /** Known values of {@link SupportedRuntimeValue} that the service accepts. */ export enum KnownSupportedRuntimeValue { Java8 = "Java_8", Java11 = "Java_11", + Java17 = "Java_17", NetCore31 = "NetCore_31" } @@ -1375,6 +2483,7 @@ export enum KnownSupportedRuntimeValue { * ### Known values supported by the service * **Java_8** \ * **Java_11** \ + * **Java_17** \ * **NetCore_31** */ export type SupportedRuntimeValue = string; @@ -1436,14 +2545,58 @@ export enum KnownResourceSkuRestrictionsReasonCode { } /** - * Defines values for ResourceSkuRestrictionsReasonCode. \ - * {@link KnownResourceSkuRestrictionsReasonCode} can be used interchangeably with ResourceSkuRestrictionsReasonCode, + * Defines values for ResourceSkuRestrictionsReasonCode. \ + * {@link KnownResourceSkuRestrictionsReasonCode} can be used interchangeably with ResourceSkuRestrictionsReasonCode, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **QuotaId** \ + * **NotAvailableForSubscription** + */ +export type ResourceSkuRestrictionsReasonCode = string; + +/** Known values of {@link GatewayProvisioningState} that the service accepts. */ +export enum KnownGatewayProvisioningState { + Creating = "Creating", + Updating = "Updating", + Succeeded = "Succeeded", + Failed = "Failed", + Deleting = "Deleting" +} + +/** + * Defines values for GatewayProvisioningState. \ + * {@link KnownGatewayProvisioningState} can be used interchangeably with GatewayProvisioningState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Creating** \ + * **Updating** \ + * **Succeeded** \ + * **Failed** \ + * **Deleting** + */ +export type GatewayProvisioningState = string; + +/** Known values of {@link ApiPortalProvisioningState} that the service accepts. */ +export enum KnownApiPortalProvisioningState { + Creating = "Creating", + Updating = "Updating", + Succeeded = "Succeeded", + Failed = "Failed", + Deleting = "Deleting" +} + +/** + * Defines values for ApiPortalProvisioningState. \ + * {@link KnownApiPortalProvisioningState} can be used interchangeably with ApiPortalProvisioningState, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **QuotaId** \ - * **NotAvailableForSubscription** + * **Creating** \ + * **Updating** \ + * **Succeeded** \ + * **Failed** \ + * **Deleting** */ -export type ResourceSkuRestrictionsReasonCode = string; +export type ApiPortalProvisioningState = string; /** Optional parameters. */ export interface ServicesGetOptionalParams @@ -1500,18 +2653,329 @@ export interface ServicesRegenerateTestKeyOptionalParams export type ServicesRegenerateTestKeyResponse = TestKeys; /** Optional parameters. */ -export interface ServicesDisableTestEndpointOptionalParams +export interface ServicesDisableTestEndpointOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface ServicesEnableTestEndpointOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the enableTestEndpoint operation. */ +export type ServicesEnableTestEndpointResponse = TestKeys; + +/** Optional parameters. */ +export interface ServicesStopOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Optional parameters. */ +export interface ServicesStartOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Optional parameters. */ +export interface ServicesCheckNameAvailabilityOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the checkNameAvailability operation. */ +export type ServicesCheckNameAvailabilityResponse = NameAvailability; + +/** Optional parameters. */ +export interface ServicesListBySubscriptionOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listBySubscription operation. */ +export type ServicesListBySubscriptionResponse = ServiceResourceList; + +/** Optional parameters. */ +export interface ServicesListOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type ServicesListResponse = ServiceResourceList; + +/** Optional parameters. */ +export interface ServicesListBySubscriptionNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listBySubscriptionNext operation. */ +export type ServicesListBySubscriptionNextResponse = ServiceResourceList; + +/** Optional parameters. */ +export interface ServicesListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type ServicesListNextResponse = ServiceResourceList; + +/** Optional parameters. */ +export interface ConfigServersGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type ConfigServersGetResponse = ConfigServerResource; + +/** Optional parameters. */ +export interface ConfigServersUpdatePutOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the updatePut operation. */ +export type ConfigServersUpdatePutResponse = ConfigServerResource; + +/** Optional parameters. */ +export interface ConfigServersUpdatePatchOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the updatePatch operation. */ +export type ConfigServersUpdatePatchResponse = ConfigServerResource; + +/** Optional parameters. */ +export interface ConfigServersValidateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the validate operation. */ +export type ConfigServersValidateResponse = ConfigServerSettingsValidateResult; + +/** Optional parameters. */ +export interface ConfigurationServicesGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type ConfigurationServicesGetResponse = ConfigurationServiceResource; + +/** Optional parameters. */ +export interface ConfigurationServicesCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type ConfigurationServicesCreateOrUpdateResponse = ConfigurationServiceResource; + +/** Optional parameters. */ +export interface ConfigurationServicesDeleteOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Optional parameters. */ +export interface ConfigurationServicesListOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type ConfigurationServicesListResponse = ConfigurationServiceResourceCollection; + +/** Optional parameters. */ +export interface ConfigurationServicesValidateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the validate operation. */ +export type ConfigurationServicesValidateResponse = ConfigurationServiceSettingsValidateResult; + +/** Optional parameters. */ +export interface ConfigurationServicesListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type ConfigurationServicesListNextResponse = ConfigurationServiceResourceCollection; + +/** Optional parameters. */ +export interface ServiceRegistriesGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type ServiceRegistriesGetResponse = ServiceRegistryResource; + +/** Optional parameters. */ +export interface ServiceRegistriesCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type ServiceRegistriesCreateOrUpdateResponse = ServiceRegistryResource; + +/** Optional parameters. */ +export interface ServiceRegistriesDeleteOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Optional parameters. */ +export interface ServiceRegistriesListOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type ServiceRegistriesListResponse = ServiceRegistryResourceCollection; + +/** Optional parameters. */ +export interface ServiceRegistriesListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type ServiceRegistriesListNextResponse = ServiceRegistryResourceCollection; + +/** Optional parameters. */ +export interface BuildServiceListBuildServicesOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listBuildServices operation. */ +export type BuildServiceListBuildServicesResponse = BuildServiceCollection; + +/** Optional parameters. */ +export interface BuildServiceGetBuildServiceOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getBuildService operation. */ +export type BuildServiceGetBuildServiceResponse = BuildService; + +/** Optional parameters. */ +export interface BuildServiceListBuildsOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listBuilds operation. */ +export type BuildServiceListBuildsResponse = BuildCollection; + +/** Optional parameters. */ +export interface BuildServiceGetBuildOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getBuild operation. */ +export type BuildServiceGetBuildResponse = Build; + +/** Optional parameters. */ +export interface BuildServiceCreateOrUpdateBuildOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the createOrUpdateBuild operation. */ +export type BuildServiceCreateOrUpdateBuildResponse = Build; + +/** Optional parameters. */ +export interface BuildServiceListBuildResultsOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listBuildResults operation. */ +export type BuildServiceListBuildResultsResponse = BuildResultCollection; + +/** Optional parameters. */ +export interface BuildServiceGetBuildResultOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getBuildResult operation. */ +export type BuildServiceGetBuildResultResponse = BuildResult; + +/** Optional parameters. */ +export interface BuildServiceGetBuildResultLogOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getBuildResultLog operation. */ +export type BuildServiceGetBuildResultLogResponse = BuildResultLog; + +/** Optional parameters. */ +export interface BuildServiceGetResourceUploadUrlOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getResourceUploadUrl operation. */ +export type BuildServiceGetResourceUploadUrlResponse = ResourceUploadDefinition; + +/** Optional parameters. */ +export interface BuildServiceListSupportedBuildpacksOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listSupportedBuildpacks operation. */ +export type BuildServiceListSupportedBuildpacksResponse = SupportedBuildpacksCollection; + +/** Optional parameters. */ +export interface BuildServiceGetSupportedBuildpackOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getSupportedBuildpack operation. */ +export type BuildServiceGetSupportedBuildpackResponse = SupportedBuildpackResource; + +/** Optional parameters. */ +export interface BuildServiceListSupportedStacksOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listSupportedStacks operation. */ +export type BuildServiceListSupportedStacksResponse = SupportedStacksCollection; + +/** Optional parameters. */ +export interface BuildServiceGetSupportedStackOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getSupportedStack operation. */ +export type BuildServiceGetSupportedStackResponse = SupportedStackResource; + +/** Optional parameters. */ +export interface BuildServiceListBuildServicesNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listBuildServicesNext operation. */ +export type BuildServiceListBuildServicesNextResponse = BuildServiceCollection; + +/** Optional parameters. */ +export interface BuildServiceListBuildsNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listBuildsNext operation. */ +export type BuildServiceListBuildsNextResponse = BuildCollection; + +/** Optional parameters. */ +export interface BuildServiceListBuildResultsNextOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listBuildResultsNext operation. */ +export type BuildServiceListBuildResultsNextResponse = BuildResultCollection; + /** Optional parameters. */ -export interface ServicesEnableTestEndpointOptionalParams +export interface BuildpackBindingGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the enableTestEndpoint operation. */ -export type ServicesEnableTestEndpointResponse = TestKeys; +/** Contains response data for the get operation. */ +export type BuildpackBindingGetResponse = BuildpackBindingResource; /** Optional parameters. */ -export interface ServicesStopOptionalParams +export interface BuildpackBindingCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -1519,8 +2983,11 @@ export interface ServicesStopOptionalParams resumeFrom?: string; } +/** Contains response data for the createOrUpdate operation. */ +export type BuildpackBindingCreateOrUpdateResponse = BuildpackBindingResource; + /** Optional parameters. */ -export interface ServicesStartOptionalParams +export interface BuildpackBindingDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -1529,49 +2996,28 @@ export interface ServicesStartOptionalParams } /** Optional parameters. */ -export interface ServicesCheckNameAvailabilityOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the checkNameAvailability operation. */ -export type ServicesCheckNameAvailabilityResponse = NameAvailability; - -/** Optional parameters. */ -export interface ServicesListBySubscriptionOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listBySubscription operation. */ -export type ServicesListBySubscriptionResponse = ServiceResourceList; - -/** Optional parameters. */ -export interface ServicesListOptionalParams +export interface BuildpackBindingListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type ServicesListResponse = ServiceResourceList; - -/** Optional parameters. */ -export interface ServicesListBySubscriptionNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listBySubscriptionNext operation. */ -export type ServicesListBySubscriptionNextResponse = ServiceResourceList; +export type BuildpackBindingListResponse = BuildpackBindingResourceCollection; /** Optional parameters. */ -export interface ServicesListNextOptionalParams +export interface BuildpackBindingListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type ServicesListNextResponse = ServiceResourceList; +export type BuildpackBindingListNextResponse = BuildpackBindingResourceCollection; /** Optional parameters. */ -export interface ConfigServersGetOptionalParams +export interface BuildServiceBuilderGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ConfigServersGetResponse = ConfigServerResource; +export type BuildServiceBuilderGetResponse = BuilderResource; /** Optional parameters. */ -export interface ConfigServersUpdatePutOptionalParams +export interface BuildServiceBuilderCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -1579,11 +3025,11 @@ export interface ConfigServersUpdatePutOptionalParams resumeFrom?: string; } -/** Contains response data for the updatePut operation. */ -export type ConfigServersUpdatePutResponse = ConfigServerResource; +/** Contains response data for the createOrUpdate operation. */ +export type BuildServiceBuilderCreateOrUpdateResponse = BuilderResource; /** Optional parameters. */ -export interface ConfigServersUpdatePatchOptionalParams +export interface BuildServiceBuilderDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -1591,11 +3037,36 @@ export interface ConfigServersUpdatePatchOptionalParams resumeFrom?: string; } -/** Contains response data for the updatePatch operation. */ -export type ConfigServersUpdatePatchResponse = ConfigServerResource; +/** Optional parameters. */ +export interface BuildServiceBuilderListOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type BuildServiceBuilderListResponse = BuilderResourceCollection; /** Optional parameters. */ -export interface ConfigServersValidateOptionalParams +export interface BuildServiceBuilderListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type BuildServiceBuilderListNextResponse = BuilderResourceCollection; + +/** Optional parameters. */ +export interface BuildServiceAgentPoolListOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type BuildServiceAgentPoolListResponse = BuildServiceAgentPoolResourceCollection; + +/** Optional parameters. */ +export interface BuildServiceAgentPoolGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type BuildServiceAgentPoolGetResponse = BuildServiceAgentPoolResource; + +/** Optional parameters. */ +export interface BuildServiceAgentPoolUpdatePutOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -1603,8 +3074,15 @@ export interface ConfigServersValidateOptionalParams resumeFrom?: string; } -/** Contains response data for the validate operation. */ -export type ConfigServersValidateResponse = ConfigServerSettingsValidateResult; +/** Contains response data for the updatePut operation. */ +export type BuildServiceAgentPoolUpdatePutResponse = BuildServiceAgentPoolResource; + +/** Optional parameters. */ +export interface BuildServiceAgentPoolListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type BuildServiceAgentPoolListNextResponse = BuildServiceAgentPoolResourceCollection; /** Optional parameters. */ export interface MonitoringSettingsGetOptionalParams @@ -1690,6 +3168,18 @@ export interface AppsGetResourceUploadUrlOptionalParams /** Contains response data for the getResourceUploadUrl operation. */ export type AppsGetResourceUploadUrlResponse = ResourceUploadDefinition; +/** Optional parameters. */ +export interface AppsSetActiveDeploymentsOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the setActiveDeployments operation. */ +export type AppsSetActiveDeploymentsResponse = AppResource; + /** Optional parameters. */ export interface AppsValidateDomainOptionalParams extends coreClient.OperationOptions {} @@ -2071,6 +3561,230 @@ export interface SkusListNextOptionalParams /** Contains response data for the listNext operation. */ export type SkusListNextResponse = ResourceSkuCollection; +/** Optional parameters. */ +export interface GatewaysGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type GatewaysGetResponse = GatewayResource; + +/** Optional parameters. */ +export interface GatewaysCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type GatewaysCreateOrUpdateResponse = GatewayResource; + +/** Optional parameters. */ +export interface GatewaysDeleteOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Optional parameters. */ +export interface GatewaysListOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type GatewaysListResponse = GatewayResourceCollection; + +/** Optional parameters. */ +export interface GatewaysValidateDomainOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the validateDomain operation. */ +export type GatewaysValidateDomainResponse = CustomDomainValidateResult; + +/** Optional parameters. */ +export interface GatewaysListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type GatewaysListNextResponse = GatewayResourceCollection; + +/** Optional parameters. */ +export interface GatewayRouteConfigsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type GatewayRouteConfigsGetResponse = GatewayRouteConfigResource; + +/** Optional parameters. */ +export interface GatewayRouteConfigsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type GatewayRouteConfigsCreateOrUpdateResponse = GatewayRouteConfigResource; + +/** Optional parameters. */ +export interface GatewayRouteConfigsDeleteOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Optional parameters. */ +export interface GatewayRouteConfigsListOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type GatewayRouteConfigsListResponse = GatewayRouteConfigResourceCollection; + +/** Optional parameters. */ +export interface GatewayRouteConfigsListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type GatewayRouteConfigsListNextResponse = GatewayRouteConfigResourceCollection; + +/** Optional parameters. */ +export interface GatewayCustomDomainsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type GatewayCustomDomainsGetResponse = GatewayCustomDomainResource; + +/** Optional parameters. */ +export interface GatewayCustomDomainsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type GatewayCustomDomainsCreateOrUpdateResponse = GatewayCustomDomainResource; + +/** Optional parameters. */ +export interface GatewayCustomDomainsDeleteOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Optional parameters. */ +export interface GatewayCustomDomainsListOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type GatewayCustomDomainsListResponse = GatewayCustomDomainResourceCollection; + +/** Optional parameters. */ +export interface GatewayCustomDomainsListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type GatewayCustomDomainsListNextResponse = GatewayCustomDomainResourceCollection; + +/** Optional parameters. */ +export interface ApiPortalsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type ApiPortalsGetResponse = ApiPortalResource; + +/** Optional parameters. */ +export interface ApiPortalsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type ApiPortalsCreateOrUpdateResponse = ApiPortalResource; + +/** Optional parameters. */ +export interface ApiPortalsDeleteOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Optional parameters. */ +export interface ApiPortalsListOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type ApiPortalsListResponse = ApiPortalResourceCollection; + +/** Optional parameters. */ +export interface ApiPortalsValidateDomainOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the validateDomain operation. */ +export type ApiPortalsValidateDomainResponse = CustomDomainValidateResult; + +/** Optional parameters. */ +export interface ApiPortalsListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type ApiPortalsListNextResponse = ApiPortalResourceCollection; + +/** Optional parameters. */ +export interface ApiPortalCustomDomainsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type ApiPortalCustomDomainsGetResponse = ApiPortalCustomDomainResource; + +/** Optional parameters. */ +export interface ApiPortalCustomDomainsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type ApiPortalCustomDomainsCreateOrUpdateResponse = ApiPortalCustomDomainResource; + +/** Optional parameters. */ +export interface ApiPortalCustomDomainsDeleteOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Optional parameters. */ +export interface ApiPortalCustomDomainsListOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type ApiPortalCustomDomainsListResponse = ApiPortalCustomDomainResourceCollection; + +/** Optional parameters. */ +export interface ApiPortalCustomDomainsListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type ApiPortalCustomDomainsListNextResponse = ApiPortalCustomDomainResourceCollection; + /** Optional parameters. */ export interface AppPlatformManagementClientOptionalParams extends coreClient.ServiceClientOptions { diff --git a/sdk/appplatform/arm-appplatform/src/models/mappers.ts b/sdk/appplatform/arm-appplatform/src/models/mappers.ts index a5abacfd5a88..2c14ffc1da45 100644 --- a/sdk/appplatform/arm-appplatform/src/models/mappers.ts +++ b/sdk/appplatform/arm-appplatform/src/models/mappers.ts @@ -47,6 +47,20 @@ export const ClusterResourceProperties: coreClient.CompositeMapper = { type: { name: "String" } + }, + zoneRedundant: { + defaultValue: false, + serializedName: "zoneRedundant", + type: { + name: "Boolean" + } + }, + fqdn: { + serializedName: "fqdn", + readOnly: true, + type: { + name: "String" + } } } } @@ -240,6 +254,58 @@ export const Resource: coreClient.CompositeMapper = { type: { name: "String" } + }, + systemData: { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + } + } + } +}; + +export const SystemData: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SystemData", + modelProperties: { + createdBy: { + serializedName: "createdBy", + type: { + name: "String" + } + }, + createdByType: { + serializedName: "createdByType", + type: { + name: "String" + } + }, + createdAt: { + serializedName: "createdAt", + type: { + name: "DateTime" + } + }, + lastModifiedBy: { + serializedName: "lastModifiedBy", + type: { + name: "String" + } + }, + lastModifiedByType: { + serializedName: "lastModifiedByType", + type: { + name: "String" + } + }, + lastModifiedAt: { + serializedName: "lastModifiedAt", + type: { + name: "DateTime" + } } } } @@ -649,10 +715,10 @@ export const ConfigServerSettingsErrorRecord: coreClient.CompositeMapper = { } }; -export const MonitoringSettingProperties: coreClient.CompositeMapper = { +export const ConfigurationServiceProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MonitoringSettingProperties", + className: "ConfigurationServiceProperties", modelProperties: { provisioningState: { serializedName: "provisioningState", @@ -661,53 +727,81 @@ export const MonitoringSettingProperties: coreClient.CompositeMapper = { name: "String" } }, - error: { - serializedName: "error", + resourceRequests: { + serializedName: "resourceRequests", type: { name: "Composite", - className: "ErrorModel" + className: "ConfigurationServiceResourceRequests" } }, - traceEnabled: { - serializedName: "traceEnabled", + instances: { + serializedName: "instances", + readOnly: true, type: { - name: "Boolean" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ConfigurationServiceInstance" + } + } } }, - appInsightsInstrumentationKey: { - serializedName: "appInsightsInstrumentationKey", + settings: { + serializedName: "settings", + type: { + name: "Composite", + className: "ConfigurationServiceSettings" + } + } + } + } +}; + +export const ConfigurationServiceResourceRequests: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ConfigurationServiceResourceRequests", + modelProperties: { + cpu: { + serializedName: "cpu", + readOnly: true, type: { name: "String" } }, - appInsightsSamplingRate: { - constraints: { - InclusiveMaximum: 100, - InclusiveMinimum: 0 - }, - serializedName: "appInsightsSamplingRate", + memory: { + serializedName: "memory", + readOnly: true, type: { - name: "Number" + name: "String" } }, - appInsightsAgentVersions: { - serializedName: "appInsightsAgentVersions", + instanceCount: { + serializedName: "instanceCount", + readOnly: true, type: { - name: "Composite", - className: "ApplicationInsightsAgentVersions" + name: "Number" } } } } }; -export const ApplicationInsightsAgentVersions: coreClient.CompositeMapper = { +export const ConfigurationServiceInstance: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ApplicationInsightsAgentVersions", + className: "ConfigurationServiceInstance", modelProperties: { - java: { - serializedName: "java", + name: { + serializedName: "name", + readOnly: true, + type: { + name: "String" + } + }, + status: { + serializedName: "status", readOnly: true, type: { name: "String" @@ -717,124 +811,151 @@ export const ApplicationInsightsAgentVersions: coreClient.CompositeMapper = { } }; -export const AppResourceProperties: coreClient.CompositeMapper = { +export const ConfigurationServiceSettings: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AppResourceProperties", + className: "ConfigurationServiceSettings", modelProperties: { - public: { - serializedName: "public", + gitProperty: { + serializedName: "gitProperty", type: { - name: "Boolean" + name: "Composite", + className: "ConfigurationServiceGitProperty" } - }, - url: { - serializedName: "url", - readOnly: true, + } + } + } +}; + +export const ConfigurationServiceGitProperty: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ConfigurationServiceGitProperty", + modelProperties: { + repositories: { + serializedName: "repositories", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ConfigurationServiceGitRepository" + } + } + } + } + } + } +}; + +export const ConfigurationServiceGitRepository: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ConfigurationServiceGitRepository", + modelProperties: { + name: { + serializedName: "name", + required: true, type: { name: "String" } }, - provisioningState: { - serializedName: "provisioningState", - readOnly: true, + patterns: { + serializedName: "patterns", + required: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - activeDeploymentName: { - serializedName: "activeDeploymentName", + uri: { + serializedName: "uri", + required: true, type: { name: "String" } }, - fqdn: { - serializedName: "fqdn", + label: { + serializedName: "label", + required: true, type: { name: "String" } }, - httpsOnly: { - defaultValue: false, - serializedName: "httpsOnly", + searchPaths: { + serializedName: "searchPaths", type: { - name: "Boolean" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - createdTime: { - serializedName: "createdTime", - readOnly: true, + username: { + serializedName: "username", type: { - name: "DateTime" + name: "String" } }, - temporaryDisk: { - serializedName: "temporaryDisk", + password: { + serializedName: "password", type: { - name: "Composite", - className: "TemporaryDisk" + name: "String" } }, - persistentDisk: { - serializedName: "persistentDisk", + hostKey: { + serializedName: "hostKey", type: { - name: "Composite", - className: "PersistentDisk" + name: "String" } }, - customPersistentDisks: { - serializedName: "customPersistentDisks", + hostKeyAlgorithm: { + serializedName: "hostKeyAlgorithm", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "CustomPersistentDiskResource" - } - } + name: "String" } }, - enableEndToEndTLS: { - defaultValue: false, - serializedName: "enableEndToEndTLS", + privateKey: { + serializedName: "privateKey", type: { - name: "Boolean" + name: "String" } }, - loadedCertificates: { - serializedName: "loadedCertificates", + strictHostKeyChecking: { + serializedName: "strictHostKeyChecking", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "LoadedCertificate" - } - } + name: "Boolean" } } } } }; -export const TemporaryDisk: coreClient.CompositeMapper = { +export const ConfigurationServiceResourceCollection: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TemporaryDisk", + className: "ConfigurationServiceResourceCollection", modelProperties: { - sizeInGB: { - constraints: { - InclusiveMaximum: 5, - InclusiveMinimum: 0 - }, - serializedName: "sizeInGB", + value: { + serializedName: "value", type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ConfigurationServiceResource" + } + } } }, - mountPath: { - defaultValue: "/tmp", - serializedName: "mountPath", + nextLink: { + serializedName: "nextLink", type: { name: "String" } @@ -843,103 +964,103 @@ export const TemporaryDisk: coreClient.CompositeMapper = { } }; -export const PersistentDisk: coreClient.CompositeMapper = { +export const ConfigurationServiceSettingsValidateResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PersistentDisk", + className: "ConfigurationServiceSettingsValidateResult", modelProperties: { - sizeInGB: { - constraints: { - InclusiveMaximum: 50, - InclusiveMinimum: 0 - }, - serializedName: "sizeInGB", + gitPropertyValidationResult: { + serializedName: "gitPropertyValidationResult", type: { - name: "Number" + name: "Composite", + className: "ConfigurationServiceGitPropertyValidateResult" } - }, - usedInGB: { - constraints: { - InclusiveMaximum: 50, - InclusiveMinimum: 0 - }, - serializedName: "usedInGB", - readOnly: true, + } + } + } +}; + +export const ConfigurationServiceGitPropertyValidateResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ConfigurationServiceGitPropertyValidateResult", + modelProperties: { + isValid: { + serializedName: "isValid", type: { - name: "Number" + name: "Boolean" } }, - mountPath: { - serializedName: "mountPath", + gitReposValidationResult: { + serializedName: "gitReposValidationResult", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ValidationMessages" + } + } } } } } }; -export const CustomPersistentDiskResource: coreClient.CompositeMapper = { +export const ValidationMessages: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CustomPersistentDiskResource", + className: "ValidationMessages", modelProperties: { - customPersistentDiskProperties: { - serializedName: "customPersistentDiskProperties", + name: { + serializedName: "name", type: { - name: "Composite", - className: "CustomPersistentDiskProperties" + name: "String" } }, - storageId: { - serializedName: "storageId", - required: true, + messages: { + serializedName: "messages", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } } } } }; -export const CustomPersistentDiskProperties: coreClient.CompositeMapper = { +export const ServiceRegistryProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CustomPersistentDiskProperties", - uberParent: "CustomPersistentDiskProperties", - polymorphicDiscriminator: { - serializedName: "type", - clientName: "type" - }, + className: "ServiceRegistryProperties", modelProperties: { - type: { - defaultValue: "AzureFileVolume", - isConstant: true, - serializedName: "type", - type: { - name: "String" - } - }, - mountPath: { - serializedName: "mountPath", - required: true, + provisioningState: { + serializedName: "provisioningState", + readOnly: true, type: { name: "String" } }, - readOnly: { - serializedName: "readOnly", + resourceRequests: { + serializedName: "resourceRequests", type: { - name: "Boolean" + name: "Composite", + className: "ServiceRegistryResourceRequests" } }, - mountOptions: { - serializedName: "mountOptions", + instances: { + serializedName: "instances", + readOnly: true, type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "ServiceRegistryInstance" } } } @@ -948,48 +1069,51 @@ export const CustomPersistentDiskProperties: coreClient.CompositeMapper = { } }; -export const LoadedCertificate: coreClient.CompositeMapper = { +export const ServiceRegistryResourceRequests: coreClient.CompositeMapper = { type: { name: "Composite", - className: "LoadedCertificate", + className: "ServiceRegistryResourceRequests", modelProperties: { - resourceId: { - serializedName: "resourceId", - required: true, + cpu: { + serializedName: "cpu", + readOnly: true, type: { name: "String" } }, - loadTrustStore: { - defaultValue: false, - serializedName: "loadTrustStore", + memory: { + serializedName: "memory", + readOnly: true, type: { - name: "Boolean" + name: "String" + } + }, + instanceCount: { + serializedName: "instanceCount", + readOnly: true, + type: { + name: "Number" } } } } }; -export const ManagedIdentityProperties: coreClient.CompositeMapper = { +export const ServiceRegistryInstance: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedIdentityProperties", + className: "ServiceRegistryInstance", modelProperties: { - type: { - serializedName: "type", - type: { - name: "String" - } - }, - principalId: { - serializedName: "principalId", + name: { + serializedName: "name", + readOnly: true, type: { name: "String" } }, - tenantId: { - serializedName: "tenantId", + status: { + serializedName: "status", + readOnly: true, type: { name: "String" } @@ -998,10 +1122,10 @@ export const ManagedIdentityProperties: coreClient.CompositeMapper = { } }; -export const AppResourceCollection: coreClient.CompositeMapper = { +export const ServiceRegistryResourceCollection: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AppResourceCollection", + className: "ServiceRegistryResourceCollection", modelProperties: { value: { serializedName: "value", @@ -1010,7 +1134,7 @@ export const AppResourceCollection: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "AppResource" + className: "ServiceRegistryResource" } } } @@ -1025,19 +1149,25 @@ export const AppResourceCollection: coreClient.CompositeMapper = { } }; -export const ResourceUploadDefinition: coreClient.CompositeMapper = { +export const BuildServiceCollection: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ResourceUploadDefinition", + className: "BuildServiceCollection", modelProperties: { - relativePath: { - serializedName: "relativePath", + value: { + serializedName: "value", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "BuildService" + } + } } }, - uploadUrl: { - serializedName: "uploadUrl", + nextLink: { + serializedName: "nextLink", type: { name: "String" } @@ -1046,62 +1176,49 @@ export const ResourceUploadDefinition: coreClient.CompositeMapper = { } }; -export const BindingResourceProperties: coreClient.CompositeMapper = { +export const BuildServiceProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BindingResourceProperties", + className: "BuildServiceProperties", modelProperties: { - resourceName: { - serializedName: "resourceName", - readOnly: true, + kPackVersion: { + serializedName: "kPackVersion", type: { name: "String" } }, - resourceType: { - serializedName: "resourceType", + provisioningState: { + serializedName: "provisioningState", readOnly: true, type: { name: "String" } }, - resourceId: { - serializedName: "resourceId", - type: { - name: "String" - } - }, - key: { - serializedName: "key", - type: { - name: "String" - } - }, - bindingParameters: { - serializedName: "bindingParameters", - type: { - name: "Dictionary", - value: { - type: { name: "Dictionary", value: { type: { name: "any" } } } - } - } - }, - generatedProperties: { - serializedName: "generatedProperties", - readOnly: true, + resourceRequests: { + serializedName: "resourceRequests", type: { - name: "String" + name: "Composite", + className: "BuildServicePropertiesResourceRequests" } - }, - createdAt: { - serializedName: "createdAt", + } + } + } +}; + +export const BuildServicePropertiesResourceRequests: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "BuildServicePropertiesResourceRequests", + modelProperties: { + cpu: { + serializedName: "cpu", readOnly: true, type: { name: "String" } }, - updatedAt: { - serializedName: "updatedAt", + memory: { + serializedName: "memory", readOnly: true, type: { name: "String" @@ -1111,10 +1228,10 @@ export const BindingResourceProperties: coreClient.CompositeMapper = { } }; -export const BindingResourceCollection: coreClient.CompositeMapper = { +export const BuildCollection: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BindingResourceCollection", + className: "BuildCollection", modelProperties: { value: { serializedName: "value", @@ -1123,7 +1240,7 @@ export const BindingResourceCollection: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "BindingResource" + className: "Build" } } } @@ -1138,77 +1255,125 @@ export const BindingResourceCollection: coreClient.CompositeMapper = { } }; -export const StorageProperties: coreClient.CompositeMapper = { +export const BuildProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "StorageProperties", - uberParent: "StorageProperties", - polymorphicDiscriminator: { - serializedName: "storageType", - clientName: "storageType" - }, + className: "BuildProperties", modelProperties: { - storageType: { - defaultValue: "StorageAccount", - isConstant: true, - serializedName: "storageType", + relativePath: { + serializedName: "relativePath", type: { name: "String" } - } - } - } -}; - -export const SystemData: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SystemData", - modelProperties: { - createdBy: { - serializedName: "createdBy", + }, + builder: { + serializedName: "builder", type: { name: "String" } }, - createdByType: { - serializedName: "createdByType", + agentPool: { + serializedName: "agentPool", type: { name: "String" } }, - createdAt: { - serializedName: "createdAt", + provisioningState: { + serializedName: "provisioningState", + readOnly: true, type: { - name: "DateTime" + name: "String" } }, - lastModifiedBy: { - serializedName: "lastModifiedBy", + env: { + serializedName: "env", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + triggeredBuildResult: { + serializedName: "triggeredBuildResult", + type: { + name: "Composite", + className: "TriggeredBuildResult" + } + } + } + } +}; + +export const TriggeredBuildResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "TriggeredBuildResult", + modelProperties: { + id: { + serializedName: "id", + type: { + name: "String" + } + } + } + } +}; + +export const BuildpackBindingProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "BuildpackBindingProperties", + modelProperties: { + bindingType: { + serializedName: "bindingType", type: { name: "String" } }, - lastModifiedByType: { - serializedName: "lastModifiedByType", + provisioningState: { + serializedName: "provisioningState", + readOnly: true, type: { name: "String" } }, - lastModifiedAt: { - serializedName: "lastModifiedAt", + launchProperties: { + serializedName: "launchProperties", type: { - name: "DateTime" + name: "Composite", + className: "BuildpackBindingLaunchProperties" } } } } }; -export const StorageResourceCollection: coreClient.CompositeMapper = { +export const BuildpackBindingLaunchProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "StorageResourceCollection", + className: "BuildpackBindingLaunchProperties", + modelProperties: { + properties: { + serializedName: "properties", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + secrets: { + serializedName: "secrets", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + } + } + } +}; + +export const BuildpackBindingResourceCollection: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "BuildpackBindingResourceCollection", modelProperties: { value: { serializedName: "value", @@ -1217,7 +1382,7 @@ export const StorageResourceCollection: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "StorageResource" + className: "BuildpackBindingResource" } } } @@ -1232,73 +1397,66 @@ export const StorageResourceCollection: coreClient.CompositeMapper = { } }; -export const CertificateProperties: coreClient.CompositeMapper = { +export const BuildResultCollection: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CertificateProperties", - uberParent: "CertificateProperties", - polymorphicDiscriminator: { - serializedName: "type", - clientName: "type" - }, + className: "BuildResultCollection", modelProperties: { - type: { - serializedName: "type", - required: true, - type: { - name: "String" - } - }, - thumbprint: { - serializedName: "thumbprint", - readOnly: true, - type: { - name: "String" - } - }, - issuer: { - serializedName: "issuer", - readOnly: true, + value: { + serializedName: "value", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "BuildResult" + } + } } }, - issuedDate: { - serializedName: "issuedDate", - readOnly: true, + nextLink: { + serializedName: "nextLink", type: { name: "String" } - }, - expirationDate: { - serializedName: "expirationDate", - readOnly: true, + } + } + } +}; + +export const BuildResultProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "BuildResultProperties", + modelProperties: { + name: { + serializedName: "name", type: { name: "String" } }, - activateDate: { - serializedName: "activateDate", + provisioningState: { + serializedName: "provisioningState", readOnly: true, type: { name: "String" } }, - subjectName: { - serializedName: "subjectName", - readOnly: true, + buildPodName: { + serializedName: "buildPodName", type: { name: "String" } }, - dnsNames: { - serializedName: "dnsNames", + buildStages: { + serializedName: "buildStages", readOnly: true, type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "BuildStageProperties" } } } @@ -1307,25 +1465,21 @@ export const CertificateProperties: coreClient.CompositeMapper = { } }; -export const CertificateResourceCollection: coreClient.CompositeMapper = { +export const BuildStageProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CertificateResourceCollection", + className: "BuildStageProperties", modelProperties: { - value: { - serializedName: "value", + name: { + serializedName: "name", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "CertificateResource" - } - } + name: "String" } }, - nextLink: { - serializedName: "nextLink", + status: { + serializedName: "status", + readOnly: true, type: { name: "String" } @@ -1334,21 +1488,13 @@ export const CertificateResourceCollection: coreClient.CompositeMapper = { } }; -export const NameAvailabilityParameters: coreClient.CompositeMapper = { +export const BuildResultLog: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NameAvailabilityParameters", + className: "BuildResultLog", modelProperties: { - type: { - serializedName: "type", - required: true, - type: { - name: "String" - } - }, - name: { - serializedName: "name", - required: true, + blobUrl: { + serializedName: "blobUrl", type: { name: "String" } @@ -1357,53 +1503,54 @@ export const NameAvailabilityParameters: coreClient.CompositeMapper = { } }; -export const NameAvailability: coreClient.CompositeMapper = { +export const BuilderProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NameAvailability", + className: "BuilderProperties", modelProperties: { - nameAvailable: { - serializedName: "nameAvailable", + provisioningState: { + serializedName: "provisioningState", + readOnly: true, type: { - name: "Boolean" + name: "String" } }, - reason: { - serializedName: "reason", + stack: { + serializedName: "stack", type: { - name: "String" + name: "Composite", + className: "StackProperties" } }, - message: { - serializedName: "message", + buildpackGroups: { + serializedName: "buildpackGroups", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "BuildpacksGroupProperties" + } + } } } } } }; -export const CustomDomainProperties: coreClient.CompositeMapper = { +export const StackProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CustomDomainProperties", + className: "StackProperties", modelProperties: { - thumbprint: { - serializedName: "thumbprint", - type: { - name: "String" - } - }, - appName: { - serializedName: "appName", - readOnly: true, + id: { + serializedName: "id", type: { name: "String" } }, - certName: { - serializedName: "certName", + version: { + serializedName: "version", type: { name: "String" } @@ -1412,41 +1559,40 @@ export const CustomDomainProperties: coreClient.CompositeMapper = { } }; -export const CustomDomainResourceCollection: coreClient.CompositeMapper = { +export const BuildpacksGroupProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CustomDomainResourceCollection", + className: "BuildpacksGroupProperties", modelProperties: { - value: { - serializedName: "value", + name: { + serializedName: "name", + type: { + name: "String" + } + }, + buildpacks: { + serializedName: "buildpacks", type: { name: "Sequence", element: { type: { name: "Composite", - className: "CustomDomainResource" + className: "BuildpackProperties" } } } - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } } } } }; -export const CustomDomainValidatePayload: coreClient.CompositeMapper = { +export const BuildpackProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CustomDomainValidatePayload", + className: "BuildpackProperties", modelProperties: { - name: { - serializedName: "name", - required: true, + id: { + serializedName: "id", type: { name: "String" } @@ -1455,19 +1601,25 @@ export const CustomDomainValidatePayload: coreClient.CompositeMapper = { } }; -export const CustomDomainValidateResult: coreClient.CompositeMapper = { +export const BuilderResourceCollection: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CustomDomainValidateResult", + className: "BuilderResourceCollection", modelProperties: { - isValid: { - serializedName: "isValid", + value: { + serializedName: "value", type: { - name: "Boolean" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "BuilderResource" + } + } } }, - message: { - serializedName: "message", + nextLink: { + serializedName: "nextLink", type: { name: "String" } @@ -1476,90 +1628,103 @@ export const CustomDomainValidateResult: coreClient.CompositeMapper = { } }; -export const DeploymentResourceProperties: coreClient.CompositeMapper = { +export const ResourceUploadDefinition: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DeploymentResourceProperties", + className: "ResourceUploadDefinition", modelProperties: { - source: { - serializedName: "source", + relativePath: { + serializedName: "relativePath", type: { - name: "Composite", - className: "UserSourceInfo" + name: "String" } }, - appName: { - serializedName: "appName", - readOnly: true, + uploadUrl: { + serializedName: "uploadUrl", type: { name: "String" } - }, - deploymentSettings: { - serializedName: "deploymentSettings", + } + } + } +}; + +export const SupportedBuildpacksCollection: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SupportedBuildpacksCollection", + modelProperties: { + value: { + serializedName: "value", type: { - name: "Composite", - className: "DeploymentSettings" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SupportedBuildpackResource" + } + } } }, - provisioningState: { - serializedName: "provisioningState", - readOnly: true, + nextLink: { + serializedName: "nextLink", type: { name: "String" } - }, - status: { - serializedName: "status", - readOnly: true, + } + } + } +}; + +export const SupportedBuildpackResourceProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SupportedBuildpackResourceProperties", + modelProperties: { + buildpackId: { + serializedName: "buildpackId", type: { name: "String" } - }, - active: { - serializedName: "active", - readOnly: true, - type: { - name: "Boolean" - } - }, - createdTime: { - serializedName: "createdTime", - readOnly: true, - type: { - name: "DateTime" - } - }, - instances: { - serializedName: "instances", - readOnly: true, + } + } + } +}; + +export const SupportedStacksCollection: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SupportedStacksCollection", + modelProperties: { + value: { + serializedName: "value", type: { name: "Sequence", element: { type: { name: "Composite", - className: "DeploymentInstance" + className: "SupportedStackResource" } } } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } } } } }; -export const UserSourceInfo: coreClient.CompositeMapper = { +export const SupportedStackResourceProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "UserSourceInfo", + className: "SupportedStackResourceProperties", modelProperties: { - type: { - serializedName: "type", - type: { - name: "String" - } - }, - relativePath: { - serializedName: "relativePath", + stackId: { + serializedName: "stackId", type: { name: "String" } @@ -1569,171 +1734,150 @@ export const UserSourceInfo: coreClient.CompositeMapper = { type: { name: "String" } - }, - artifactSelector: { - serializedName: "artifactSelector", - type: { - name: "String" - } - }, - customContainer: { - serializedName: "customContainer", - type: { - name: "Composite", - className: "CustomContainer" - } } } } }; -export const CustomContainer: coreClient.CompositeMapper = { +export const BuildServiceAgentPoolResourceCollection: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CustomContainer", + className: "BuildServiceAgentPoolResourceCollection", modelProperties: { - server: { - serializedName: "server", - type: { - name: "String" - } - }, - containerImage: { - serializedName: "containerImage", - type: { - name: "String" - } - }, - command: { - serializedName: "command", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - args: { - serializedName: "args", + value: { + serializedName: "value", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "BuildServiceAgentPoolResource" } } } }, - imageRegistryCredential: { - serializedName: "imageRegistryCredential", + nextLink: { + serializedName: "nextLink", type: { - name: "Composite", - className: "ImageRegistryCredential" + name: "String" } } } } }; -export const ImageRegistryCredential: coreClient.CompositeMapper = { +export const BuildServiceAgentPoolProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ImageRegistryCredential", + className: "BuildServiceAgentPoolProperties", modelProperties: { - username: { - serializedName: "username", + provisioningState: { + serializedName: "provisioningState", + readOnly: true, type: { name: "String" } }, - password: { - serializedName: "password", + poolSize: { + serializedName: "poolSize", type: { - name: "String" + name: "Composite", + className: "BuildServiceAgentPoolSizeProperties" } } } } }; -export const DeploymentSettings: coreClient.CompositeMapper = { +export const BuildServiceAgentPoolSizeProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DeploymentSettings", + className: "BuildServiceAgentPoolSizeProperties", modelProperties: { - cpu: { - defaultValue: 1, - serializedName: "cpu", + name: { + serializedName: "name", type: { - name: "Number" + name: "String" } }, - memoryInGB: { - defaultValue: 1, - serializedName: "memoryInGB", + cpu: { + serializedName: "cpu", + readOnly: true, type: { - name: "Number" + name: "String" } }, - resourceRequests: { - serializedName: "resourceRequests", + memory: { + serializedName: "memory", + readOnly: true, type: { - name: "Composite", - className: "ResourceRequests" + name: "String" } - }, - jvmOptions: { - serializedName: "jvmOptions", + } + } + } +}; + +export const MonitoringSettingProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "MonitoringSettingProperties", + modelProperties: { + provisioningState: { + serializedName: "provisioningState", + readOnly: true, type: { name: "String" } }, - netCoreMainEntryPath: { - serializedName: "netCoreMainEntryPath", + error: { + serializedName: "error", type: { - name: "String" + name: "Composite", + className: "ErrorModel" } }, - environmentVariables: { - serializedName: "environmentVariables", + traceEnabled: { + serializedName: "traceEnabled", type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "Boolean" } }, - runtimeVersion: { - defaultValue: "Java_8", - serializedName: "runtimeVersion", + appInsightsInstrumentationKey: { + serializedName: "appInsightsInstrumentationKey", type: { name: "String" } }, - containerProbeSettings: { - serializedName: "containerProbeSettings", + appInsightsSamplingRate: { + constraints: { + InclusiveMaximum: 100, + InclusiveMinimum: 0 + }, + serializedName: "appInsightsSamplingRate", + type: { + name: "Number" + } + }, + appInsightsAgentVersions: { + serializedName: "appInsightsAgentVersions", type: { name: "Composite", - className: "DeploymentSettingsContainerProbeSettings" + className: "ApplicationInsightsAgentVersions" } } } } }; -export const ResourceRequests: coreClient.CompositeMapper = { +export const ApplicationInsightsAgentVersions: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ResourceRequests", + className: "ApplicationInsightsAgentVersions", modelProperties: { - cpu: { - serializedName: "cpu", - type: { - name: "String" - } - }, - memory: { - serializedName: "memory", + java: { + serializedName: "java", + readOnly: true, type: { name: "String" } @@ -1742,100 +1886,125 @@ export const ResourceRequests: coreClient.CompositeMapper = { } }; -export const DeploymentSettingsContainerProbeSettings: coreClient.CompositeMapper = { +export const AppResourceProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DeploymentSettingsContainerProbeSettings", + className: "AppResourceProperties", modelProperties: { - disableProbe: { - serializedName: "disableProbe", + public: { + serializedName: "public", type: { name: "Boolean" } - } - } - } -}; - -export const DeploymentInstance: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DeploymentInstance", - modelProperties: { - name: { - serializedName: "name", + }, + url: { + serializedName: "url", readOnly: true, type: { name: "String" } }, - status: { - serializedName: "status", - readOnly: true, + addonConfigs: { + serializedName: "addonConfigs", type: { - name: "String" + name: "Dictionary", + value: { + type: { + name: "Dictionary", + value: { + type: { name: "Dictionary", value: { type: { name: "any" } } } + } + } + } } }, - reason: { - serializedName: "reason", + provisioningState: { + serializedName: "provisioningState", readOnly: true, type: { name: "String" } }, - discoveryStatus: { - serializedName: "discoveryStatus", - readOnly: true, + fqdn: { + serializedName: "fqdn", type: { name: "String" } }, - startTime: { - serializedName: "startTime", - readOnly: true, + httpsOnly: { + defaultValue: false, + serializedName: "httpsOnly", type: { - name: "String" + name: "Boolean" } - } - } - } -}; - -export const DeploymentResourceCollection: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DeploymentResourceCollection", - modelProperties: { - value: { - serializedName: "value", + }, + temporaryDisk: { + serializedName: "temporaryDisk", + type: { + name: "Composite", + className: "TemporaryDisk" + } + }, + persistentDisk: { + serializedName: "persistentDisk", + type: { + name: "Composite", + className: "PersistentDisk" + } + }, + customPersistentDisks: { + serializedName: "customPersistentDisks", type: { name: "Sequence", element: { type: { name: "Composite", - className: "DeploymentResource" + className: "CustomPersistentDiskResource" } } } }, - nextLink: { - serializedName: "nextLink", + enableEndToEndTLS: { + defaultValue: false, + serializedName: "enableEndToEndTLS", type: { - name: "String" + name: "Boolean" + } + }, + loadedCertificates: { + serializedName: "loadedCertificates", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "LoadedCertificate" + } + } } } } } }; -export const LogFileUrlResponse: coreClient.CompositeMapper = { +export const TemporaryDisk: coreClient.CompositeMapper = { type: { name: "Composite", - className: "LogFileUrlResponse", + className: "TemporaryDisk", modelProperties: { - url: { - serializedName: "url", - required: true, + sizeInGB: { + constraints: { + InclusiveMaximum: 5, + InclusiveMinimum: 0 + }, + serializedName: "sizeInGB", + type: { + name: "Number" + } + }, + mountPath: { + defaultValue: "/tmp", + serializedName: "mountPath", type: { name: "String" } @@ -1844,25 +2013,34 @@ export const LogFileUrlResponse: coreClient.CompositeMapper = { } }; -export const DiagnosticParameters: coreClient.CompositeMapper = { +export const PersistentDisk: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DiagnosticParameters", + className: "PersistentDisk", modelProperties: { - appInstance: { - serializedName: "appInstance", + sizeInGB: { + constraints: { + InclusiveMaximum: 50, + InclusiveMinimum: 0 + }, + serializedName: "sizeInGB", type: { - name: "String" + name: "Number" } }, - filePath: { - serializedName: "filePath", + usedInGB: { + constraints: { + InclusiveMaximum: 50, + InclusiveMinimum: 0 + }, + serializedName: "usedInGB", + readOnly: true, type: { - name: "String" + name: "Number" } }, - duration: { - serializedName: "duration", + mountPath: { + serializedName: "mountPath", type: { name: "String" } @@ -1871,25 +2049,21 @@ export const DiagnosticParameters: coreClient.CompositeMapper = { } }; -export const ServiceResourceList: coreClient.CompositeMapper = { +export const CustomPersistentDiskResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServiceResourceList", + className: "CustomPersistentDiskResource", modelProperties: { - value: { - serializedName: "value", + customPersistentDiskProperties: { + serializedName: "customPersistentDiskProperties", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ServiceResource" - } - } + name: "Composite", + className: "CustomPersistentDiskProperties" } }, - nextLink: { - serializedName: "nextLink", + storageId: { + serializedName: "storageId", + required: true, type: { name: "String" } @@ -1898,99 +2072,94 @@ export const ServiceResourceList: coreClient.CompositeMapper = { } }; -export const AvailableOperations: coreClient.CompositeMapper = { +export const CustomPersistentDiskProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AvailableOperations", + className: "CustomPersistentDiskProperties", + uberParent: "CustomPersistentDiskProperties", + polymorphicDiscriminator: { + serializedName: "type", + clientName: "type" + }, modelProperties: { - value: { - serializedName: "value", + type: { + defaultValue: "AzureFileVolume", + isConstant: true, + serializedName: "type", + type: { + name: "String" + } + }, + mountPath: { + serializedName: "mountPath", + required: true, + type: { + name: "String" + } + }, + readOnly: { + serializedName: "readOnly", + type: { + name: "Boolean" + } + }, + mountOptions: { + serializedName: "mountOptions", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "OperationDetail" + name: "String" } } } - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } } } } }; -export const OperationDetail: coreClient.CompositeMapper = { +export const LoadedCertificate: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OperationDetail", + className: "LoadedCertificate", modelProperties: { - name: { - serializedName: "name", + resourceId: { + serializedName: "resourceId", + required: true, type: { name: "String" } }, - isDataAction: { - serializedName: "isDataAction", + loadTrustStore: { + defaultValue: false, + serializedName: "loadTrustStore", type: { name: "Boolean" } - }, - display: { - serializedName: "display", - type: { - name: "Composite", - className: "OperationDisplay" - } - }, - origin: { - serializedName: "origin", - type: { - name: "String" - } - }, - properties: { - serializedName: "properties", - type: { - name: "Composite", - className: "OperationProperties" - } } } } }; -export const OperationDisplay: coreClient.CompositeMapper = { +export const ManagedIdentityProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OperationDisplay", + className: "ManagedIdentityProperties", modelProperties: { - provider: { - serializedName: "provider", - type: { - name: "String" - } - }, - resource: { - serializedName: "resource", + type: { + serializedName: "type", type: { name: "String" } }, - operation: { - serializedName: "operation", + principalId: { + serializedName: "principalId", type: { name: "String" } }, - description: { - serializedName: "description", + tenantId: { + serializedName: "tenantId", type: { name: "String" } @@ -1999,165 +2168,137 @@ export const OperationDisplay: coreClient.CompositeMapper = { } }; -export const OperationProperties: coreClient.CompositeMapper = { +export const AppResourceCollection: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OperationProperties", + className: "AppResourceCollection", modelProperties: { - serviceSpecification: { - serializedName: "serviceSpecification", - type: { - name: "Composite", - className: "ServiceSpecification" - } - } - } - } -}; - -export const ServiceSpecification: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ServiceSpecification", - modelProperties: { - logSpecifications: { - serializedName: "logSpecifications", + value: { + serializedName: "value", type: { name: "Sequence", element: { type: { name: "Composite", - className: "LogSpecification" + className: "AppResource" } } } }, - metricSpecifications: { - serializedName: "metricSpecifications", + nextLink: { + serializedName: "nextLink", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "MetricSpecification" - } - } + name: "String" } } } } }; -export const LogSpecification: coreClient.CompositeMapper = { +export const ActiveDeploymentCollection: coreClient.CompositeMapper = { type: { name: "Composite", - className: "LogSpecification", + className: "ActiveDeploymentCollection", modelProperties: { - name: { - serializedName: "name", - type: { - name: "String" - } - }, - displayName: { - serializedName: "displayName", - type: { - name: "String" - } - }, - blobDuration: { - serializedName: "blobDuration", + activeDeploymentNames: { + serializedName: "activeDeploymentNames", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } } } } }; -export const MetricSpecification: coreClient.CompositeMapper = { +export const BindingResourceProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MetricSpecification", + className: "BindingResourceProperties", modelProperties: { - name: { - serializedName: "name", + resourceName: { + serializedName: "resourceName", + readOnly: true, type: { name: "String" } }, - displayName: { - serializedName: "displayName", + resourceType: { + serializedName: "resourceType", + readOnly: true, type: { name: "String" } }, - displayDescription: { - serializedName: "displayDescription", + resourceId: { + serializedName: "resourceId", type: { name: "String" } }, - unit: { - serializedName: "unit", + key: { + serializedName: "key", type: { name: "String" } }, - category: { - serializedName: "category", + bindingParameters: { + serializedName: "bindingParameters", type: { - name: "String" + name: "Dictionary", + value: { + type: { name: "Dictionary", value: { type: { name: "any" } } } + } } }, - aggregationType: { - serializedName: "aggregationType", + generatedProperties: { + serializedName: "generatedProperties", + readOnly: true, type: { name: "String" } }, - supportedAggregationTypes: { - serializedName: "supportedAggregationTypes", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - supportedTimeGrainTypes: { - serializedName: "supportedTimeGrainTypes", + createdAt: { + serializedName: "createdAt", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } }, - fillGapWithZero: { - serializedName: "fillGapWithZero", + updatedAt: { + serializedName: "updatedAt", + readOnly: true, type: { - name: "Boolean" + name: "String" } - }, - dimensions: { - serializedName: "dimensions", + } + } + } +}; + +export const BindingResourceCollection: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "BindingResourceCollection", + modelProperties: { + value: { + serializedName: "value", type: { name: "Sequence", element: { type: { name: "Composite", - className: "MetricDimension" + className: "BindingResource" } } } }, - sourceMdmNamespace: { - serializedName: "sourceMdmNamespace", + nextLink: { + serializedName: "nextLink", type: { name: "String" } @@ -2166,86 +2307,134 @@ export const MetricSpecification: coreClient.CompositeMapper = { } }; -export const MetricDimension: coreClient.CompositeMapper = { +export const StorageProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MetricDimension", + className: "StorageProperties", + uberParent: "StorageProperties", + polymorphicDiscriminator: { + serializedName: "storageType", + clientName: "storageType" + }, modelProperties: { - name: { - serializedName: "name", - type: { - name: "String" - } - }, - displayName: { - serializedName: "displayName", + storageType: { + defaultValue: "StorageAccount", + isConstant: true, + serializedName: "storageType", type: { name: "String" } - }, - toBeExportedForShoebox: { - serializedName: "toBeExportedForShoebox", - type: { - name: "Boolean" - } } } } }; -export const AvailableRuntimeVersions: coreClient.CompositeMapper = { +export const StorageResourceCollection: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AvailableRuntimeVersions", + className: "StorageResourceCollection", modelProperties: { value: { serializedName: "value", - readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "SupportedRuntimeVersion" + className: "StorageResource" } } } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } } } } }; -export const SupportedRuntimeVersion: coreClient.CompositeMapper = { +export const CertificateProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SupportedRuntimeVersion", + className: "CertificateProperties", + uberParent: "CertificateProperties", + polymorphicDiscriminator: { + serializedName: "type", + clientName: "type" + }, modelProperties: { - value: { - serializedName: "value", + type: { + serializedName: "type", + required: true, type: { name: "String" } }, - platform: { - serializedName: "platform", + thumbprint: { + serializedName: "thumbprint", + readOnly: true, type: { name: "String" } }, - version: { - serializedName: "version", + issuer: { + serializedName: "issuer", + readOnly: true, + type: { + name: "String" + } + }, + issuedDate: { + serializedName: "issuedDate", + readOnly: true, + type: { + name: "String" + } + }, + expirationDate: { + serializedName: "expirationDate", + readOnly: true, + type: { + name: "String" + } + }, + activateDate: { + serializedName: "activateDate", + readOnly: true, + type: { + name: "String" + } + }, + subjectName: { + serializedName: "subjectName", + readOnly: true, type: { name: "String" } + }, + dnsNames: { + serializedName: "dnsNames", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } } } } }; -export const ResourceSkuCollection: coreClient.CompositeMapper = { +export const CertificateResourceCollection: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ResourceSkuCollection", + className: "CertificateResourceCollection", modelProperties: { value: { serializedName: "value", @@ -2254,7 +2443,7 @@ export const ResourceSkuCollection: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ResourceSku" + className: "CertificateResource" } } } @@ -2269,101 +2458,48 @@ export const ResourceSkuCollection: coreClient.CompositeMapper = { } }; -export const ResourceSku: coreClient.CompositeMapper = { +export const NameAvailabilityParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ResourceSku", + className: "NameAvailabilityParameters", modelProperties: { - resourceType: { - serializedName: "resourceType", + type: { + serializedName: "type", + required: true, type: { name: "String" } }, name: { serializedName: "name", + required: true, type: { name: "String" } - }, - tier: { - serializedName: "tier", - type: { - name: "String" - } - }, - capacity: { - serializedName: "capacity", - type: { - name: "Composite", - className: "SkuCapacity" - } - }, - locations: { - serializedName: "locations", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - locationInfo: { - serializedName: "locationInfo", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ResourceSkuLocationInfo" - } - } - } - }, - restrictions: { - serializedName: "restrictions", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ResourceSkuRestrictions" - } - } - } } } } }; -export const SkuCapacity: coreClient.CompositeMapper = { +export const NameAvailability: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SkuCapacity", + className: "NameAvailability", modelProperties: { - minimum: { - serializedName: "minimum", - required: true, - type: { - name: "Number" - } - }, - maximum: { - serializedName: "maximum", + nameAvailable: { + serializedName: "nameAvailable", type: { - name: "Number" + name: "Boolean" } }, - default: { - serializedName: "default", + reason: { + serializedName: "reason", type: { - name: "Number" + name: "String" } }, - scaleType: { - serializedName: "scaleType", + message: { + serializedName: "message", type: { name: "String" } @@ -2372,89 +2508,90 @@ export const SkuCapacity: coreClient.CompositeMapper = { } }; -export const ResourceSkuLocationInfo: coreClient.CompositeMapper = { +export const CustomDomainProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ResourceSkuLocationInfo", + className: "CustomDomainProperties", modelProperties: { - location: { - serializedName: "location", + thumbprint: { + serializedName: "thumbprint", type: { name: "String" } }, - zones: { - serializedName: "zones", + appName: { + serializedName: "appName", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } }, - zoneDetails: { - serializedName: "zoneDetails", + certName: { + serializedName: "certName", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ResourceSkuZoneDetails" - } - } + name: "String" } } } } }; -export const ResourceSkuZoneDetails: coreClient.CompositeMapper = { +export const CustomDomainResourceCollection: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ResourceSkuZoneDetails", + className: "CustomDomainResourceCollection", modelProperties: { - name: { - serializedName: "name", + value: { + serializedName: "value", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "CustomDomainResource" } } } }, - capabilities: { - serializedName: "capabilities", + nextLink: { + serializedName: "nextLink", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ResourceSkuCapabilities" - } - } + name: "String" } } } } }; -export const ResourceSkuCapabilities: coreClient.CompositeMapper = { +export const CustomDomainValidatePayload: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ResourceSkuCapabilities", + className: "CustomDomainValidatePayload", modelProperties: { name: { serializedName: "name", + required: true, type: { name: "String" } + } + } + } +}; + +export const CustomDomainValidateResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CustomDomainValidateResult", + modelProperties: { + isValid: { + serializedName: "isValid", + type: { + name: "Boolean" + } }, - value: { - serializedName: "value", + message: { + serializedName: "message", type: { name: "String" } @@ -2463,68 +2600,54 @@ export const ResourceSkuCapabilities: coreClient.CompositeMapper = { } }; -export const ResourceSkuRestrictions: coreClient.CompositeMapper = { +export const DeploymentResourceProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ResourceSkuRestrictions", + className: "DeploymentResourceProperties", modelProperties: { - type: { - serializedName: "type", + source: { + serializedName: "source", type: { - name: "String" + name: "Composite", + className: "UserSourceInfo" } }, - values: { - serializedName: "values", + deploymentSettings: { + serializedName: "deploymentSettings", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Composite", + className: "DeploymentSettings" } }, - restrictionInfo: { - serializedName: "restrictionInfo", + provisioningState: { + serializedName: "provisioningState", + readOnly: true, type: { - name: "Composite", - className: "ResourceSkuRestrictionInfo" + name: "String" } }, - reasonCode: { - serializedName: "reasonCode", + status: { + serializedName: "status", + readOnly: true, type: { name: "String" } - } - } - } -}; - -export const ResourceSkuRestrictionInfo: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ResourceSkuRestrictionInfo", - modelProperties: { - locations: { - serializedName: "locations", + }, + active: { + serializedName: "active", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Boolean" } }, - zones: { - serializedName: "zones", + instances: { + serializedName: "instances", + readOnly: true, type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "DeploymentInstance" } } } @@ -2533,184 +2656,2117 @@ export const ResourceSkuRestrictionInfo: coreClient.CompositeMapper = { } }; -export const TrackedResource: coreClient.CompositeMapper = { +export const UserSourceInfo: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TrackedResource", + className: "UserSourceInfo", + uberParent: "UserSourceInfo", + polymorphicDiscriminator: { + serializedName: "type", + clientName: "type" + }, modelProperties: { - ...Resource.type.modelProperties, - location: { - serializedName: "location", + type: { + serializedName: "type", + required: true, type: { name: "String" } }, - tags: { - serializedName: "tags", + version: { + serializedName: "version", type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "String" } } } } }; -export const ProxyResource: coreClient.CompositeMapper = { +export const DeploymentSettings: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ProxyResource", + className: "DeploymentSettings", modelProperties: { - ...Resource.type.modelProperties + resourceRequests: { + serializedName: "resourceRequests", + type: { + name: "Composite", + className: "ResourceRequests" + } + }, + environmentVariables: { + serializedName: "environmentVariables", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + addonConfigs: { + serializedName: "addonConfigs", + type: { + name: "Dictionary", + value: { + type: { + name: "Dictionary", + value: { + type: { name: "Dictionary", value: { type: { name: "any" } } } + } + } + } + } + }, + containerProbeSettings: { + serializedName: "containerProbeSettings", + type: { + name: "Composite", + className: "ContainerProbeSettings" + } + } + } + } +}; + +export const ResourceRequests: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ResourceRequests", + modelProperties: { + cpu: { + serializedName: "cpu", + type: { + name: "String" + } + }, + memory: { + serializedName: "memory", + type: { + name: "String" + } + } + } + } +}; + +export const ContainerProbeSettings: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ContainerProbeSettings", + modelProperties: { + disableProbe: { + serializedName: "disableProbe", + type: { + name: "Boolean" + } + } + } + } +}; + +export const DeploymentInstance: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DeploymentInstance", + modelProperties: { + name: { + serializedName: "name", + readOnly: true, + type: { + name: "String" + } + }, + status: { + serializedName: "status", + readOnly: true, + type: { + name: "String" + } + }, + reason: { + serializedName: "reason", + readOnly: true, + type: { + name: "String" + } + }, + discoveryStatus: { + serializedName: "discoveryStatus", + readOnly: true, + type: { + name: "String" + } + }, + startTime: { + serializedName: "startTime", + readOnly: true, + type: { + name: "String" + } + }, + zone: { + serializedName: "zone", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const DeploymentResourceCollection: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DeploymentResourceCollection", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DeploymentResource" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const LogFileUrlResponse: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "LogFileUrlResponse", + modelProperties: { + url: { + serializedName: "url", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const DiagnosticParameters: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DiagnosticParameters", + modelProperties: { + appInstance: { + serializedName: "appInstance", + type: { + name: "String" + } + }, + filePath: { + serializedName: "filePath", + type: { + name: "String" + } + }, + duration: { + serializedName: "duration", + type: { + name: "String" + } + } + } + } +}; + +export const ServiceResourceList: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ServiceResourceList", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ServiceResource" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const AvailableOperations: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AvailableOperations", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "OperationDetail" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const OperationDetail: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OperationDetail", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + isDataAction: { + serializedName: "isDataAction", + type: { + name: "Boolean" + } + }, + display: { + serializedName: "display", + type: { + name: "Composite", + className: "OperationDisplay" + } + }, + actionType: { + serializedName: "actionType", + readOnly: true, + type: { + name: "String" + } + }, + origin: { + serializedName: "origin", + type: { + name: "String" + } + }, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "OperationProperties" + } + } + } + } +}; + +export const OperationDisplay: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OperationDisplay", + modelProperties: { + provider: { + serializedName: "provider", + type: { + name: "String" + } + }, + resource: { + serializedName: "resource", + type: { + name: "String" + } + }, + operation: { + serializedName: "operation", + type: { + name: "String" + } + }, + description: { + serializedName: "description", + type: { + name: "String" + } + } + } + } +}; + +export const OperationProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OperationProperties", + modelProperties: { + serviceSpecification: { + serializedName: "serviceSpecification", + type: { + name: "Composite", + className: "ServiceSpecification" + } + } + } + } +}; + +export const ServiceSpecification: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ServiceSpecification", + modelProperties: { + logSpecifications: { + serializedName: "logSpecifications", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "LogSpecification" + } + } + } + }, + metricSpecifications: { + serializedName: "metricSpecifications", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "MetricSpecification" + } + } + } + } + } + } +}; + +export const LogSpecification: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "LogSpecification", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + displayName: { + serializedName: "displayName", + type: { + name: "String" + } + }, + blobDuration: { + serializedName: "blobDuration", + type: { + name: "String" + } + } + } + } +}; + +export const MetricSpecification: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "MetricSpecification", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + displayName: { + serializedName: "displayName", + type: { + name: "String" + } + }, + displayDescription: { + serializedName: "displayDescription", + type: { + name: "String" + } + }, + unit: { + serializedName: "unit", + type: { + name: "String" + } + }, + category: { + serializedName: "category", + type: { + name: "String" + } + }, + aggregationType: { + serializedName: "aggregationType", + type: { + name: "String" + } + }, + supportedAggregationTypes: { + serializedName: "supportedAggregationTypes", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + supportedTimeGrainTypes: { + serializedName: "supportedTimeGrainTypes", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + fillGapWithZero: { + serializedName: "fillGapWithZero", + type: { + name: "Boolean" + } + }, + dimensions: { + serializedName: "dimensions", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "MetricDimension" + } + } + } + }, + sourceMdmNamespace: { + serializedName: "sourceMdmNamespace", + type: { + name: "String" + } + } + } + } +}; + +export const MetricDimension: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "MetricDimension", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + displayName: { + serializedName: "displayName", + type: { + name: "String" + } + }, + toBeExportedForShoebox: { + serializedName: "toBeExportedForShoebox", + type: { + name: "Boolean" + } + } + } + } +}; + +export const AvailableRuntimeVersions: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AvailableRuntimeVersions", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SupportedRuntimeVersion" + } + } + } + } + } + } +}; + +export const SupportedRuntimeVersion: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SupportedRuntimeVersion", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "String" + } + }, + platform: { + serializedName: "platform", + type: { + name: "String" + } + }, + version: { + serializedName: "version", + type: { + name: "String" + } + } + } + } +}; + +export const ResourceSkuCollection: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ResourceSkuCollection", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ResourceSku" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const ResourceSku: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ResourceSku", + modelProperties: { + resourceType: { + serializedName: "resourceType", + type: { + name: "String" + } + }, + name: { + serializedName: "name", + type: { + name: "String" + } + }, + tier: { + serializedName: "tier", + type: { + name: "String" + } + }, + capacity: { + serializedName: "capacity", + type: { + name: "Composite", + className: "SkuCapacity" + } + }, + locations: { + serializedName: "locations", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + locationInfo: { + serializedName: "locationInfo", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ResourceSkuLocationInfo" + } + } + } + }, + restrictions: { + serializedName: "restrictions", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ResourceSkuRestrictions" + } + } + } + } + } + } +}; + +export const SkuCapacity: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SkuCapacity", + modelProperties: { + minimum: { + serializedName: "minimum", + required: true, + type: { + name: "Number" + } + }, + maximum: { + serializedName: "maximum", + type: { + name: "Number" + } + }, + default: { + serializedName: "default", + type: { + name: "Number" + } + }, + scaleType: { + serializedName: "scaleType", + type: { + name: "String" + } + } + } + } +}; + +export const ResourceSkuLocationInfo: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ResourceSkuLocationInfo", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String" + } + }, + zones: { + serializedName: "zones", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + zoneDetails: { + serializedName: "zoneDetails", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ResourceSkuZoneDetails" + } + } + } + } + } + } +}; + +export const ResourceSkuZoneDetails: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ResourceSkuZoneDetails", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + capabilities: { + serializedName: "capabilities", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ResourceSkuCapabilities" + } + } + } + } + } + } +}; + +export const ResourceSkuCapabilities: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ResourceSkuCapabilities", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + value: { + serializedName: "value", + type: { + name: "String" + } + } + } + } +}; + +export const ResourceSkuRestrictions: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ResourceSkuRestrictions", + modelProperties: { + type: { + serializedName: "type", + type: { + name: "String" + } + }, + values: { + serializedName: "values", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + restrictionInfo: { + serializedName: "restrictionInfo", + type: { + name: "Composite", + className: "ResourceSkuRestrictionInfo" + } + }, + reasonCode: { + serializedName: "reasonCode", + type: { + name: "String" + } + } + } + } +}; + +export const ResourceSkuRestrictionInfo: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ResourceSkuRestrictionInfo", + modelProperties: { + locations: { + serializedName: "locations", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + zones: { + serializedName: "zones", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const GatewayProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "GatewayProperties", + modelProperties: { + provisioningState: { + serializedName: "provisioningState", + readOnly: true, + type: { + name: "String" + } + }, + public: { + serializedName: "public", + type: { + name: "Boolean" + } + }, + url: { + serializedName: "url", + readOnly: true, + type: { + name: "String" + } + }, + httpsOnly: { + serializedName: "httpsOnly", + type: { + name: "Boolean" + } + }, + ssoProperties: { + serializedName: "ssoProperties", + type: { + name: "Composite", + className: "SsoProperties" + } + }, + apiMetadataProperties: { + serializedName: "apiMetadataProperties", + type: { + name: "Composite", + className: "GatewayApiMetadataProperties" + } + }, + corsProperties: { + serializedName: "corsProperties", + type: { + name: "Composite", + className: "GatewayCorsProperties" + } + }, + resourceRequests: { + serializedName: "resourceRequests", + type: { + name: "Composite", + className: "GatewayResourceRequests" + } + }, + instances: { + serializedName: "instances", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "GatewayInstance" + } + } + } + }, + operatorProperties: { + serializedName: "operatorProperties", + type: { + name: "Composite", + className: "GatewayOperatorProperties" + } + } + } + } +}; + +export const SsoProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SsoProperties", + modelProperties: { + scope: { + serializedName: "scope", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + clientId: { + serializedName: "clientId", + type: { + name: "String" + } + }, + clientSecret: { + serializedName: "clientSecret", + type: { + name: "String" + } + }, + issuerUri: { + serializedName: "issuerUri", + type: { + name: "String" + } + } + } + } +}; + +export const GatewayApiMetadataProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "GatewayApiMetadataProperties", + modelProperties: { + title: { + serializedName: "title", + type: { + name: "String" + } + }, + description: { + serializedName: "description", + type: { + name: "String" + } + }, + documentation: { + serializedName: "documentation", + type: { + name: "String" + } + }, + version: { + serializedName: "version", + type: { + name: "String" + } + }, + serverUrl: { + serializedName: "serverUrl", + type: { + name: "String" + } + } + } + } +}; + +export const GatewayCorsProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "GatewayCorsProperties", + modelProperties: { + allowedOrigins: { + serializedName: "allowedOrigins", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + allowedMethods: { + serializedName: "allowedMethods", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + allowedHeaders: { + serializedName: "allowedHeaders", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + maxAge: { + serializedName: "maxAge", + type: { + name: "Number" + } + }, + allowCredentials: { + serializedName: "allowCredentials", + type: { + name: "Boolean" + } + }, + exposedHeaders: { + serializedName: "exposedHeaders", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const GatewayResourceRequests: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "GatewayResourceRequests", + modelProperties: { + cpu: { + serializedName: "cpu", + type: { + name: "String" + } + }, + memory: { + serializedName: "memory", + type: { + name: "String" + } + } + } + } +}; + +export const GatewayInstance: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "GatewayInstance", + modelProperties: { + name: { + serializedName: "name", + readOnly: true, + type: { + name: "String" + } + }, + status: { + serializedName: "status", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const GatewayOperatorProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "GatewayOperatorProperties", + modelProperties: { + resourceRequests: { + serializedName: "resourceRequests", + type: { + name: "Composite", + className: "GatewayOperatorResourceRequests" + } + }, + instances: { + serializedName: "instances", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "GatewayInstance" + } + } + } + } + } + } +}; + +export const GatewayOperatorResourceRequests: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "GatewayOperatorResourceRequests", + modelProperties: { + cpu: { + serializedName: "cpu", + readOnly: true, + type: { + name: "String" + } + }, + memory: { + serializedName: "memory", + readOnly: true, + type: { + name: "String" + } + }, + instanceCount: { + serializedName: "instanceCount", + readOnly: true, + type: { + name: "Number" + } + } + } + } +}; + +export const GatewayResourceCollection: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "GatewayResourceCollection", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "GatewayResource" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const GatewayRouteConfigProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "GatewayRouteConfigProperties", + modelProperties: { + provisioningState: { + serializedName: "provisioningState", + readOnly: true, + type: { + name: "String" + } + }, + appResourceId: { + serializedName: "appResourceId", + type: { + name: "String" + } + }, + routes: { + serializedName: "routes", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "GatewayApiRoute" + } + } + } + } + } + } +}; + +export const GatewayApiRoute: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "GatewayApiRoute", + modelProperties: { + title: { + serializedName: "title", + type: { + name: "String" + } + }, + description: { + serializedName: "description", + type: { + name: "String" + } + }, + uri: { + serializedName: "uri", + type: { + name: "String" + } + }, + ssoEnabled: { + serializedName: "ssoEnabled", + type: { + name: "Boolean" + } + }, + tokenRelay: { + serializedName: "tokenRelay", + type: { + name: "Boolean" + } + }, + predicates: { + serializedName: "predicates", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + filters: { + serializedName: "filters", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + order: { + serializedName: "order", + type: { + name: "Number" + } + }, + tags: { + serializedName: "tags", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const GatewayRouteConfigResourceCollection: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "GatewayRouteConfigResourceCollection", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "GatewayRouteConfigResource" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const GatewayCustomDomainProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "GatewayCustomDomainProperties", + modelProperties: { + thumbprint: { + serializedName: "thumbprint", + type: { + name: "String" + } + } + } + } +}; + +export const GatewayCustomDomainResourceCollection: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "GatewayCustomDomainResourceCollection", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "GatewayCustomDomainResource" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const ApiPortalProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ApiPortalProperties", + modelProperties: { + provisioningState: { + serializedName: "provisioningState", + readOnly: true, + type: { + name: "String" + } + }, + public: { + serializedName: "public", + type: { + name: "Boolean" + } + }, + url: { + serializedName: "url", + readOnly: true, + type: { + name: "String" + } + }, + httpsOnly: { + serializedName: "httpsOnly", + type: { + name: "Boolean" + } + }, + gatewayIds: { + serializedName: "gatewayIds", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + sourceUrls: { + serializedName: "sourceUrls", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + ssoProperties: { + serializedName: "ssoProperties", + type: { + name: "Composite", + className: "SsoProperties" + } + }, + resourceRequests: { + serializedName: "resourceRequests", + type: { + name: "Composite", + className: "ApiPortalResourceRequests" + } + }, + instances: { + serializedName: "instances", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ApiPortalInstance" + } + } + } + } + } + } +}; + +export const ApiPortalResourceRequests: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ApiPortalResourceRequests", + modelProperties: { + cpu: { + serializedName: "cpu", + readOnly: true, + type: { + name: "String" + } + }, + memory: { + serializedName: "memory", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const ApiPortalInstance: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ApiPortalInstance", + modelProperties: { + name: { + serializedName: "name", + readOnly: true, + type: { + name: "String" + } + }, + status: { + serializedName: "status", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const ApiPortalResourceCollection: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ApiPortalResourceCollection", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ApiPortalResource" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const ApiPortalCustomDomainProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ApiPortalCustomDomainProperties", + modelProperties: { + thumbprint: { + serializedName: "thumbprint", + type: { + name: "String" + } + } + } + } +}; + +export const ApiPortalCustomDomainResourceCollection: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ApiPortalCustomDomainResourceCollection", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ApiPortalCustomDomainResource" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const CustomContainer: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CustomContainer", + modelProperties: { + server: { + serializedName: "server", + type: { + name: "String" + } + }, + containerImage: { + serializedName: "containerImage", + type: { + name: "String" + } + }, + command: { + serializedName: "command", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + args: { + serializedName: "args", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + imageRegistryCredential: { + serializedName: "imageRegistryCredential", + type: { + name: "Composite", + className: "ImageRegistryCredential" + } + } + } + } +}; + +export const ImageRegistryCredential: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ImageRegistryCredential", + modelProperties: { + username: { + serializedName: "username", + type: { + name: "String" + } + }, + password: { + serializedName: "password", + type: { + name: "String" + } + } + } + } +}; + +export const TrackedResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "TrackedResource", + modelProperties: { + ...Resource.type.modelProperties, + location: { + serializedName: "location", + type: { + name: "String" + } + }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + } + } + } +}; + +export const ProxyResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ProxyResource", + modelProperties: { + ...Resource.type.modelProperties + } + } +}; + +export const AzureFileVolume: coreClient.CompositeMapper = { + serializedName: "AzureFileVolume", + type: { + name: "Composite", + className: "AzureFileVolume", + uberParent: "CustomPersistentDiskProperties", + polymorphicDiscriminator: + CustomPersistentDiskProperties.type.polymorphicDiscriminator, + modelProperties: { + ...CustomPersistentDiskProperties.type.modelProperties, + shareName: { + serializedName: "shareName", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const StorageAccount: coreClient.CompositeMapper = { + serializedName: "StorageAccount", + type: { + name: "Composite", + className: "StorageAccount", + uberParent: "StorageProperties", + polymorphicDiscriminator: StorageProperties.type.polymorphicDiscriminator, + modelProperties: { + ...StorageProperties.type.modelProperties, + accountName: { + serializedName: "accountName", + required: true, + type: { + name: "String" + } + }, + accountKey: { + serializedName: "accountKey", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const KeyVaultCertificateProperties: coreClient.CompositeMapper = { + serializedName: "KeyVaultCertificate", + type: { + name: "Composite", + className: "KeyVaultCertificateProperties", + uberParent: "CertificateProperties", + polymorphicDiscriminator: + CertificateProperties.type.polymorphicDiscriminator, + modelProperties: { + ...CertificateProperties.type.modelProperties, + vaultUri: { + serializedName: "vaultUri", + required: true, + type: { + name: "String" + } + }, + keyVaultCertName: { + serializedName: "keyVaultCertName", + required: true, + type: { + name: "String" + } + }, + certVersion: { + serializedName: "certVersion", + type: { + name: "String" + } + }, + excludePrivateKey: { + defaultValue: false, + serializedName: "excludePrivateKey", + type: { + name: "Boolean" + } + } + } + } +}; + +export const ContentCertificateProperties: coreClient.CompositeMapper = { + serializedName: "ContentCertificate", + type: { + name: "Composite", + className: "ContentCertificateProperties", + uberParent: "CertificateProperties", + polymorphicDiscriminator: + CertificateProperties.type.polymorphicDiscriminator, + modelProperties: { + ...CertificateProperties.type.modelProperties, + content: { + serializedName: "content", + type: { + name: "String" + } + } + } + } +}; + +export const UploadedUserSourceInfo: coreClient.CompositeMapper = { + serializedName: "UploadedUserSourceInfo", + type: { + name: "Composite", + className: "UploadedUserSourceInfo", + uberParent: "UserSourceInfo", + polymorphicDiscriminator: { + serializedName: "type", + clientName: "type" + }, + modelProperties: { + ...UserSourceInfo.type.modelProperties, + relativePath: { + serializedName: "relativePath", + type: { + name: "String" + } + } + } + } +}; + +export const BuildResultUserSourceInfo: coreClient.CompositeMapper = { + serializedName: "BuildResult", + type: { + name: "Composite", + className: "BuildResultUserSourceInfo", + uberParent: "UserSourceInfo", + polymorphicDiscriminator: UserSourceInfo.type.polymorphicDiscriminator, + modelProperties: { + ...UserSourceInfo.type.modelProperties, + buildResultId: { + serializedName: "buildResultId", + type: { + name: "String" + } + } + } + } +}; + +export const CustomContainerUserSourceInfo: coreClient.CompositeMapper = { + serializedName: "Container", + type: { + name: "Composite", + className: "CustomContainerUserSourceInfo", + uberParent: "UserSourceInfo", + polymorphicDiscriminator: UserSourceInfo.type.polymorphicDiscriminator, + modelProperties: { + ...UserSourceInfo.type.modelProperties, + customContainer: { + serializedName: "customContainer", + type: { + name: "Composite", + className: "CustomContainer" + } + } + } + } +}; + +export const ServiceResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ServiceResource", + modelProperties: { + ...TrackedResource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "ClusterResourceProperties" + } + }, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "Sku" + } + } + } + } +}; + +export const ConfigServerResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ConfigServerResource", + modelProperties: { + ...ProxyResource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "ConfigServerProperties" + } + } + } + } +}; + +export const ConfigurationServiceResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ConfigurationServiceResource", + modelProperties: { + ...ProxyResource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "ConfigurationServiceProperties" + } + } + } + } +}; + +export const ServiceRegistryResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ServiceRegistryResource", + modelProperties: { + ...ProxyResource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "ServiceRegistryProperties" + } + } + } + } +}; + +export const BuildService: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "BuildService", + modelProperties: { + ...ProxyResource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "BuildServiceProperties" + } + } + } + } +}; + +export const Build: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Build", + modelProperties: { + ...ProxyResource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "BuildProperties" + } + } } } }; -export const AzureFileVolume: coreClient.CompositeMapper = { - serializedName: "AzureFileVolume", +export const BuildpackBindingResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AzureFileVolume", - uberParent: "CustomPersistentDiskProperties", - polymorphicDiscriminator: - CustomPersistentDiskProperties.type.polymorphicDiscriminator, + className: "BuildpackBindingResource", modelProperties: { - ...CustomPersistentDiskProperties.type.modelProperties, - shareName: { - serializedName: "shareName", - required: true, + ...ProxyResource.type.modelProperties, + properties: { + serializedName: "properties", type: { - name: "String" + name: "Composite", + className: "BuildpackBindingProperties" } } } } }; -export const StorageAccount: coreClient.CompositeMapper = { - serializedName: "StorageAccount", +export const BuildResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "StorageAccount", - uberParent: "StorageProperties", - polymorphicDiscriminator: StorageProperties.type.polymorphicDiscriminator, + className: "BuildResult", modelProperties: { - ...StorageProperties.type.modelProperties, - accountName: { - serializedName: "accountName", - required: true, - type: { - name: "String" - } - }, - accountKey: { - serializedName: "accountKey", - required: true, + ...ProxyResource.type.modelProperties, + properties: { + serializedName: "properties", type: { - name: "String" + name: "Composite", + className: "BuildResultProperties" } } } } }; -export const KeyVaultCertificateProperties: coreClient.CompositeMapper = { - serializedName: "KeyVaultCertificate", +export const BuilderResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "KeyVaultCertificateProperties", - uberParent: "CertificateProperties", - polymorphicDiscriminator: - CertificateProperties.type.polymorphicDiscriminator, + className: "BuilderResource", modelProperties: { - ...CertificateProperties.type.modelProperties, - vaultUri: { - serializedName: "vaultUri", - required: true, - type: { - name: "String" - } - }, - keyVaultCertName: { - serializedName: "keyVaultCertName", - required: true, - type: { - name: "String" - } - }, - certVersion: { - serializedName: "certVersion", - type: { - name: "String" - } - }, - excludePrivateKey: { - defaultValue: false, - serializedName: "excludePrivateKey", + ...ProxyResource.type.modelProperties, + properties: { + serializedName: "properties", type: { - name: "Boolean" + name: "Composite", + className: "BuilderProperties" } } } } }; -export const ContentCertificateProperties: coreClient.CompositeMapper = { - serializedName: "ContentCertificate", +export const SupportedBuildpackResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ContentCertificateProperties", - uberParent: "CertificateProperties", - polymorphicDiscriminator: - CertificateProperties.type.polymorphicDiscriminator, + className: "SupportedBuildpackResource", modelProperties: { - ...CertificateProperties.type.modelProperties, - content: { - serializedName: "content", - required: true, + ...ProxyResource.type.modelProperties, + properties: { + serializedName: "properties", type: { - name: "String" + name: "Composite", + className: "SupportedBuildpackResourceProperties" } } } } }; -export const ServiceResource: coreClient.CompositeMapper = { +export const SupportedStackResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServiceResource", + className: "SupportedStackResource", modelProperties: { - ...TrackedResource.type.modelProperties, + ...ProxyResource.type.modelProperties, properties: { serializedName: "properties", type: { name: "Composite", - className: "ClusterResourceProperties" - } - }, - sku: { - serializedName: "sku", - type: { - name: "Composite", - className: "Sku" + className: "SupportedStackResourceProperties" } } } } }; -export const ConfigServerResource: coreClient.CompositeMapper = { +export const BuildServiceAgentPoolResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ConfigServerResource", + className: "BuildServiceAgentPoolResource", modelProperties: { ...ProxyResource.type.modelProperties, properties: { serializedName: "properties", type: { name: "Composite", - className: "ConfigServerProperties" + className: "BuildServiceAgentPoolProperties" } } } @@ -2793,13 +4849,6 @@ export const StorageResource: coreClient.CompositeMapper = { name: "Composite", className: "StorageProperties" } - }, - systemData: { - serializedName: "systemData", - type: { - name: "Composite", - className: "SystemData" - } } } } @@ -2863,12 +4912,193 @@ export const DeploymentResource: coreClient.CompositeMapper = { } }; +export const GatewayResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "GatewayResource", + modelProperties: { + ...ProxyResource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "GatewayProperties" + } + }, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "Sku" + } + } + } + } +}; + +export const GatewayRouteConfigResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "GatewayRouteConfigResource", + modelProperties: { + ...ProxyResource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "GatewayRouteConfigProperties" + } + } + } + } +}; + +export const GatewayCustomDomainResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "GatewayCustomDomainResource", + modelProperties: { + ...ProxyResource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "GatewayCustomDomainProperties" + } + } + } + } +}; + +export const ApiPortalResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ApiPortalResource", + modelProperties: { + ...ProxyResource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "ApiPortalProperties" + } + }, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "Sku" + } + } + } + } +}; + +export const ApiPortalCustomDomainResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ApiPortalCustomDomainResource", + modelProperties: { + ...ProxyResource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "ApiPortalCustomDomainProperties" + } + } + } + } +}; + +export const JarUploadedUserSourceInfo: coreClient.CompositeMapper = { + serializedName: "Jar", + type: { + name: "Composite", + className: "JarUploadedUserSourceInfo", + uberParent: "UserSourceInfo", + polymorphicDiscriminator: UserSourceInfo.type.polymorphicDiscriminator, + modelProperties: { + ...UploadedUserSourceInfo.type.modelProperties, + runtimeVersion: { + serializedName: "runtimeVersion", + type: { + name: "String" + } + }, + jvmOptions: { + serializedName: "jvmOptions", + type: { + name: "String" + } + } + } + } +}; + +export const SourceUploadedUserSourceInfo: coreClient.CompositeMapper = { + serializedName: "Source", + type: { + name: "Composite", + className: "SourceUploadedUserSourceInfo", + uberParent: "UserSourceInfo", + polymorphicDiscriminator: UserSourceInfo.type.polymorphicDiscriminator, + modelProperties: { + ...UploadedUserSourceInfo.type.modelProperties, + artifactSelector: { + serializedName: "artifactSelector", + type: { + name: "String" + } + }, + runtimeVersion: { + serializedName: "runtimeVersion", + type: { + name: "String" + } + } + } + } +}; + +export const NetCoreZipUploadedUserSourceInfo: coreClient.CompositeMapper = { + serializedName: "NetCoreZip", + type: { + name: "Composite", + className: "NetCoreZipUploadedUserSourceInfo", + uberParent: "UserSourceInfo", + polymorphicDiscriminator: UserSourceInfo.type.polymorphicDiscriminator, + modelProperties: { + ...UploadedUserSourceInfo.type.modelProperties, + netCoreMainEntryPath: { + serializedName: "netCoreMainEntryPath", + type: { + name: "String" + } + }, + runtimeVersion: { + serializedName: "runtimeVersion", + type: { + name: "String" + } + } + } + } +}; + export let discriminators = { CustomPersistentDiskProperties: CustomPersistentDiskProperties, StorageProperties: StorageProperties, CertificateProperties: CertificateProperties, + UserSourceInfo: UserSourceInfo, "CustomPersistentDiskProperties.AzureFileVolume": AzureFileVolume, "StorageProperties.StorageAccount": StorageAccount, "CertificateProperties.KeyVaultCertificate": KeyVaultCertificateProperties, - "CertificateProperties.ContentCertificate": ContentCertificateProperties + "CertificateProperties.ContentCertificate": ContentCertificateProperties, + "UserSourceInfo.UploadedUserSourceInfo": UploadedUserSourceInfo, + "UserSourceInfo.BuildResult": BuildResultUserSourceInfo, + "UserSourceInfo.Container": CustomContainerUserSourceInfo, + "UserSourceInfo.Jar": JarUploadedUserSourceInfo, + "UserSourceInfo.Source": SourceUploadedUserSourceInfo, + "UserSourceInfo.NetCoreZip": NetCoreZipUploadedUserSourceInfo }; diff --git a/sdk/appplatform/arm-appplatform/src/models/parameters.ts b/sdk/appplatform/arm-appplatform/src/models/parameters.ts index 7fd525653a04..7f6461c5a744 100644 --- a/sdk/appplatform/arm-appplatform/src/models/parameters.ts +++ b/sdk/appplatform/arm-appplatform/src/models/parameters.ts @@ -17,15 +17,27 @@ import { NameAvailabilityParameters as NameAvailabilityParametersMapper, ConfigServerResource as ConfigServerResourceMapper, ConfigServerSettings as ConfigServerSettingsMapper, + ConfigurationServiceResource as ConfigurationServiceResourceMapper, + ConfigurationServiceSettings as ConfigurationServiceSettingsMapper, + Build as BuildMapper, + BuildpackBindingResource as BuildpackBindingResourceMapper, + BuilderResource as BuilderResourceMapper, + BuildServiceAgentPoolResource as BuildServiceAgentPoolResourceMapper, MonitoringSettingResource as MonitoringSettingResourceMapper, AppResource as AppResourceMapper, + ActiveDeploymentCollection as ActiveDeploymentCollectionMapper, CustomDomainValidatePayload as CustomDomainValidatePayloadMapper, BindingResource as BindingResourceMapper, StorageResource as StorageResourceMapper, CertificateResource as CertificateResourceMapper, CustomDomainResource as CustomDomainResourceMapper, DeploymentResource as DeploymentResourceMapper, - DiagnosticParameters as DiagnosticParametersMapper + DiagnosticParameters as DiagnosticParametersMapper, + GatewayResource as GatewayResourceMapper, + GatewayRouteConfigResource as GatewayRouteConfigResourceMapper, + GatewayCustomDomainResource as GatewayCustomDomainResourceMapper, + ApiPortalResource as ApiPortalResourceMapper, + ApiPortalCustomDomainResource as ApiPortalCustomDomainResourceMapper } from "../models/mappers"; export const accept: OperationParameter = { @@ -55,7 +67,7 @@ export const $host: OperationURLParameter = { export const apiVersion: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2021-09-01-preview", + defaultValue: "2022-01-01-preview", isConstant: true, serializedName: "api-version", type: { @@ -157,6 +169,146 @@ export const configServerSettings: OperationParameter = { mapper: ConfigServerSettingsMapper }; +export const configurationServiceName: OperationURLParameter = { + parameterPath: "configurationServiceName", + mapper: { + serializedName: "configurationServiceName", + required: true, + type: { + name: "String" + } + } +}; + +export const configurationServiceResource: OperationParameter = { + parameterPath: "configurationServiceResource", + mapper: ConfigurationServiceResourceMapper +}; + +export const settings: OperationParameter = { + parameterPath: "settings", + mapper: ConfigurationServiceSettingsMapper +}; + +export const serviceRegistryName: OperationURLParameter = { + parameterPath: "serviceRegistryName", + mapper: { + serializedName: "serviceRegistryName", + required: true, + type: { + name: "String" + } + } +}; + +export const buildServiceName: OperationURLParameter = { + parameterPath: "buildServiceName", + mapper: { + serializedName: "buildServiceName", + required: true, + type: { + name: "String" + } + } +}; + +export const buildName: OperationURLParameter = { + parameterPath: "buildName", + mapper: { + serializedName: "buildName", + required: true, + type: { + name: "String" + } + } +}; + +export const build: OperationParameter = { + parameterPath: "build", + mapper: BuildMapper +}; + +export const buildResultName: OperationURLParameter = { + parameterPath: "buildResultName", + mapper: { + serializedName: "buildResultName", + required: true, + type: { + name: "String" + } + } +}; + +export const buildpackName: OperationURLParameter = { + parameterPath: "buildpackName", + mapper: { + serializedName: "buildpackName", + required: true, + type: { + name: "String" + } + } +}; + +export const stackName: OperationURLParameter = { + parameterPath: "stackName", + mapper: { + serializedName: "stackName", + required: true, + type: { + name: "String" + } + } +}; + +export const builderName: OperationURLParameter = { + parameterPath: "builderName", + mapper: { + serializedName: "builderName", + required: true, + type: { + name: "String" + } + } +}; + +export const buildpackBindingName: OperationURLParameter = { + parameterPath: "buildpackBindingName", + mapper: { + serializedName: "buildpackBindingName", + required: true, + type: { + name: "String" + } + } +}; + +export const buildpackBinding: OperationParameter = { + parameterPath: "buildpackBinding", + mapper: BuildpackBindingResourceMapper +}; + +export const builderResource: OperationParameter = { + parameterPath: "builderResource", + mapper: BuilderResourceMapper +}; + +export const agentPoolName: OperationURLParameter = { + parameterPath: "agentPoolName", + mapper: { + serializedName: "agentPoolName", + required: true, + type: { + name: "String" + } + } +}; + +export const agentPoolResource: OperationParameter = { + parameterPath: "agentPoolResource", + mapper: BuildServiceAgentPoolResourceMapper +}; + export const monitoringSettingResource: OperationParameter = { parameterPath: "monitoringSettingResource", mapper: MonitoringSettingResourceMapper @@ -188,6 +340,11 @@ export const appResource: OperationParameter = { mapper: AppResourceMapper }; +export const activeDeploymentCollection: OperationParameter = { + parameterPath: "activeDeploymentCollection", + mapper: ActiveDeploymentCollectionMapper +}; + export const validatePayload: OperationParameter = { parameterPath: "validatePayload", mapper: CustomDomainValidatePayloadMapper @@ -293,3 +450,61 @@ export const diagnosticParameters: OperationParameter = { parameterPath: "diagnosticParameters", mapper: DiagnosticParametersMapper }; + +export const gatewayName: OperationURLParameter = { + parameterPath: "gatewayName", + mapper: { + serializedName: "gatewayName", + required: true, + type: { + name: "String" + } + } +}; + +export const gatewayResource: OperationParameter = { + parameterPath: "gatewayResource", + mapper: GatewayResourceMapper +}; + +export const routeConfigName: OperationURLParameter = { + parameterPath: "routeConfigName", + mapper: { + serializedName: "routeConfigName", + required: true, + type: { + name: "String" + } + } +}; + +export const gatewayRouteConfigResource: OperationParameter = { + parameterPath: "gatewayRouteConfigResource", + mapper: GatewayRouteConfigResourceMapper +}; + +export const gatewayCustomDomainResource: OperationParameter = { + parameterPath: "gatewayCustomDomainResource", + mapper: GatewayCustomDomainResourceMapper +}; + +export const apiPortalName: OperationURLParameter = { + parameterPath: "apiPortalName", + mapper: { + serializedName: "apiPortalName", + required: true, + type: { + name: "String" + } + } +}; + +export const apiPortalResource: OperationParameter = { + parameterPath: "apiPortalResource", + mapper: ApiPortalResourceMapper +}; + +export const apiPortalCustomDomainResource: OperationParameter = { + parameterPath: "apiPortalCustomDomainResource", + mapper: ApiPortalCustomDomainResourceMapper +}; diff --git a/sdk/appplatform/arm-appplatform/src/operations/apiPortalCustomDomains.ts b/sdk/appplatform/arm-appplatform/src/operations/apiPortalCustomDomains.ts new file mode 100644 index 000000000000..27f8edeb7b64 --- /dev/null +++ b/sdk/appplatform/arm-appplatform/src/operations/apiPortalCustomDomains.ts @@ -0,0 +1,523 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { ApiPortalCustomDomains } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { AppPlatformManagementClient } from "../appPlatformManagementClient"; +import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; +import { LroImpl } from "../lroImpl"; +import { + ApiPortalCustomDomainResource, + ApiPortalCustomDomainsListNextOptionalParams, + ApiPortalCustomDomainsListOptionalParams, + ApiPortalCustomDomainsGetOptionalParams, + ApiPortalCustomDomainsGetResponse, + ApiPortalCustomDomainsCreateOrUpdateOptionalParams, + ApiPortalCustomDomainsCreateOrUpdateResponse, + ApiPortalCustomDomainsDeleteOptionalParams, + ApiPortalCustomDomainsListResponse, + ApiPortalCustomDomainsListNextResponse +} from "../models"; + +/// +/** Class containing ApiPortalCustomDomains operations. */ +export class ApiPortalCustomDomainsImpl implements ApiPortalCustomDomains { + private readonly client: AppPlatformManagementClient; + + /** + * Initialize a new instance of the class ApiPortalCustomDomains class. + * @param client Reference to the service client + */ + constructor(client: AppPlatformManagementClient) { + this.client = client; + } + + /** + * Handle requests to list all API portal custom domains. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param apiPortalName The name of API portal. + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + serviceName: string, + apiPortalName: string, + options?: ApiPortalCustomDomainsListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll( + resourceGroupName, + serviceName, + apiPortalName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listPagingPage( + resourceGroupName, + serviceName, + apiPortalName, + options + ); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + serviceName: string, + apiPortalName: string, + options?: ApiPortalCustomDomainsListOptionalParams + ): AsyncIterableIterator { + let result = await this._list( + resourceGroupName, + serviceName, + apiPortalName, + options + ); + yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + serviceName, + apiPortalName, + continuationToken, + options + ); + continuationToken = result.nextLink; + yield result.value || []; + } + } + + private async *listPagingAll( + resourceGroupName: string, + serviceName: string, + apiPortalName: string, + options?: ApiPortalCustomDomainsListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + serviceName, + apiPortalName, + options + )) { + yield* page; + } + } + + /** + * Get the API portal custom domain. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param apiPortalName The name of API portal. + * @param domainName The name of the API portal custom domain. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + apiPortalName: string, + domainName: string, + options?: ApiPortalCustomDomainsGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, apiPortalName, domainName, options }, + getOperationSpec + ); + } + + /** + * Create or update the API portal custom domain. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param apiPortalName The name of API portal. + * @param domainName The name of the API portal custom domain. + * @param apiPortalCustomDomainResource The API portal custom domain for the create or update operation + * @param options The options parameters. + */ + async beginCreateOrUpdate( + resourceGroupName: string, + serviceName: string, + apiPortalName: string, + domainName: string, + apiPortalCustomDomainResource: ApiPortalCustomDomainResource, + options?: ApiPortalCustomDomainsCreateOrUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + ApiPortalCustomDomainsCreateOrUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, + { + resourceGroupName, + serviceName, + apiPortalName, + domainName, + apiPortalCustomDomainResource, + options + }, + createOrUpdateOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + lroResourceLocationConfig: "azure-async-operation" + }); + } + + /** + * Create or update the API portal custom domain. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param apiPortalName The name of API portal. + * @param domainName The name of the API portal custom domain. + * @param apiPortalCustomDomainResource The API portal custom domain for the create or update operation + * @param options The options parameters. + */ + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + serviceName: string, + apiPortalName: string, + domainName: string, + apiPortalCustomDomainResource: ApiPortalCustomDomainResource, + options?: ApiPortalCustomDomainsCreateOrUpdateOptionalParams + ): Promise { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + serviceName, + apiPortalName, + domainName, + apiPortalCustomDomainResource, + options + ); + return poller.pollUntilDone(); + } + + /** + * Delete the API portal custom domain. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param apiPortalName The name of API portal. + * @param domainName The name of the API portal custom domain. + * @param options The options parameters. + */ + async beginDelete( + resourceGroupName: string, + serviceName: string, + apiPortalName: string, + domainName: string, + options?: ApiPortalCustomDomainsDeleteOptionalParams + ): Promise, void>> { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, + { resourceGroupName, serviceName, apiPortalName, domainName, options }, + deleteOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + lroResourceLocationConfig: "azure-async-operation" + }); + } + + /** + * Delete the API portal custom domain. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param apiPortalName The name of API portal. + * @param domainName The name of the API portal custom domain. + * @param options The options parameters. + */ + async beginDeleteAndWait( + resourceGroupName: string, + serviceName: string, + apiPortalName: string, + domainName: string, + options?: ApiPortalCustomDomainsDeleteOptionalParams + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + serviceName, + apiPortalName, + domainName, + options + ); + return poller.pollUntilDone(); + } + + /** + * Handle requests to list all API portal custom domains. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param apiPortalName The name of API portal. + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + serviceName: string, + apiPortalName: string, + options?: ApiPortalCustomDomainsListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, apiPortalName, options }, + listOperationSpec + ); + } + + /** + * ListNext + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param apiPortalName The name of API portal. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + serviceName: string, + apiPortalName: string, + nextLink: string, + options?: ApiPortalCustomDomainsListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, apiPortalName, nextLink, options }, + listNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals/{apiPortalName}/domains/{domainName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ApiPortalCustomDomainResource + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.domainName, + Parameters.apiPortalName + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals/{apiPortalName}/domains/{domainName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.ApiPortalCustomDomainResource + }, + 201: { + bodyMapper: Mappers.ApiPortalCustomDomainResource + }, + 202: { + bodyMapper: Mappers.ApiPortalCustomDomainResource + }, + 204: { + bodyMapper: Mappers.ApiPortalCustomDomainResource + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + requestBody: Parameters.apiPortalCustomDomainResource, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.domainName, + Parameters.apiPortalName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals/{apiPortalName}/domains/{domainName}", + httpMethod: "DELETE", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.domainName, + Parameters.apiPortalName + ], + headerParameters: [Parameters.accept], + serializer +}; +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals/{apiPortalName}/domains", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ApiPortalCustomDomainResourceCollection + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.apiPortalName + ], + headerParameters: [Parameters.accept], + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ApiPortalCustomDomainResourceCollection + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.nextLink, + Parameters.apiPortalName + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/appplatform/arm-appplatform/src/operations/apiPortals.ts b/sdk/appplatform/arm-appplatform/src/operations/apiPortals.ts new file mode 100644 index 000000000000..e4eeee457872 --- /dev/null +++ b/sdk/appplatform/arm-appplatform/src/operations/apiPortals.ts @@ -0,0 +1,536 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { ApiPortals } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { AppPlatformManagementClient } from "../appPlatformManagementClient"; +import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; +import { LroImpl } from "../lroImpl"; +import { + ApiPortalResource, + ApiPortalsListNextOptionalParams, + ApiPortalsListOptionalParams, + ApiPortalsGetOptionalParams, + ApiPortalsGetResponse, + ApiPortalsCreateOrUpdateOptionalParams, + ApiPortalsCreateOrUpdateResponse, + ApiPortalsDeleteOptionalParams, + ApiPortalsListResponse, + CustomDomainValidatePayload, + ApiPortalsValidateDomainOptionalParams, + ApiPortalsValidateDomainResponse, + ApiPortalsListNextResponse +} from "../models"; + +/// +/** Class containing ApiPortals operations. */ +export class ApiPortalsImpl implements ApiPortals { + private readonly client: AppPlatformManagementClient; + + /** + * Initialize a new instance of the class ApiPortals class. + * @param client Reference to the service client + */ + constructor(client: AppPlatformManagementClient) { + this.client = client; + } + + /** + * Handles requests to list all resources in a Service. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + serviceName: string, + options?: ApiPortalsListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll(resourceGroupName, serviceName, options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listPagingPage(resourceGroupName, serviceName, options); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + serviceName: string, + options?: ApiPortalsListOptionalParams + ): AsyncIterableIterator { + let result = await this._list(resourceGroupName, serviceName, options); + yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + serviceName, + continuationToken, + options + ); + continuationToken = result.nextLink; + yield result.value || []; + } + } + + private async *listPagingAll( + resourceGroupName: string, + serviceName: string, + options?: ApiPortalsListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + serviceName, + options + )) { + yield* page; + } + } + + /** + * Get the API portal and its properties. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param apiPortalName The name of API portal. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + apiPortalName: string, + options?: ApiPortalsGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, apiPortalName, options }, + getOperationSpec + ); + } + + /** + * Create the default API portal or update the existing API portal. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param apiPortalName The name of API portal. + * @param apiPortalResource The API portal for the create or update operation + * @param options The options parameters. + */ + async beginCreateOrUpdate( + resourceGroupName: string, + serviceName: string, + apiPortalName: string, + apiPortalResource: ApiPortalResource, + options?: ApiPortalsCreateOrUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + ApiPortalsCreateOrUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, + { + resourceGroupName, + serviceName, + apiPortalName, + apiPortalResource, + options + }, + createOrUpdateOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + lroResourceLocationConfig: "azure-async-operation" + }); + } + + /** + * Create the default API portal or update the existing API portal. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param apiPortalName The name of API portal. + * @param apiPortalResource The API portal for the create or update operation + * @param options The options parameters. + */ + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + serviceName: string, + apiPortalName: string, + apiPortalResource: ApiPortalResource, + options?: ApiPortalsCreateOrUpdateOptionalParams + ): Promise { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + serviceName, + apiPortalName, + apiPortalResource, + options + ); + return poller.pollUntilDone(); + } + + /** + * Delete the default API portal. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param apiPortalName The name of API portal. + * @param options The options parameters. + */ + async beginDelete( + resourceGroupName: string, + serviceName: string, + apiPortalName: string, + options?: ApiPortalsDeleteOptionalParams + ): Promise, void>> { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, + { resourceGroupName, serviceName, apiPortalName, options }, + deleteOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + lroResourceLocationConfig: "azure-async-operation" + }); + } + + /** + * Delete the default API portal. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param apiPortalName The name of API portal. + * @param options The options parameters. + */ + async beginDeleteAndWait( + resourceGroupName: string, + serviceName: string, + apiPortalName: string, + options?: ApiPortalsDeleteOptionalParams + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + serviceName, + apiPortalName, + options + ); + return poller.pollUntilDone(); + } + + /** + * Handles requests to list all resources in a Service. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + serviceName: string, + options?: ApiPortalsListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, options }, + listOperationSpec + ); + } + + /** + * Check the domains are valid as well as not in use. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param apiPortalName The name of API portal. + * @param validatePayload Custom domain payload to be validated + * @param options The options parameters. + */ + validateDomain( + resourceGroupName: string, + serviceName: string, + apiPortalName: string, + validatePayload: CustomDomainValidatePayload, + options?: ApiPortalsValidateDomainOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + apiPortalName, + validatePayload, + options + }, + validateDomainOperationSpec + ); + } + + /** + * ListNext + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + serviceName: string, + nextLink: string, + options?: ApiPortalsListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, nextLink, options }, + listNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals/{apiPortalName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ApiPortalResource + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.apiPortalName + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals/{apiPortalName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.ApiPortalResource + }, + 201: { + bodyMapper: Mappers.ApiPortalResource + }, + 202: { + bodyMapper: Mappers.ApiPortalResource + }, + 204: { + bodyMapper: Mappers.ApiPortalResource + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + requestBody: Parameters.apiPortalResource, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.apiPortalName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals/{apiPortalName}", + httpMethod: "DELETE", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.apiPortalName + ], + headerParameters: [Parameters.accept], + serializer +}; +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ApiPortalResourceCollection + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serviceName + ], + headerParameters: [Parameters.accept], + serializer +}; +const validateDomainOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals/{apiPortalName}/validateDomain", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.CustomDomainValidateResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + requestBody: Parameters.validatePayload, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.apiPortalName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ApiPortalResourceCollection + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.nextLink + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/appplatform/arm-appplatform/src/operations/apps.ts b/sdk/appplatform/arm-appplatform/src/operations/apps.ts index 11e18b9e334f..55a2d0342519 100644 --- a/sdk/appplatform/arm-appplatform/src/operations/apps.ts +++ b/sdk/appplatform/arm-appplatform/src/operations/apps.ts @@ -28,6 +28,9 @@ import { AppsListResponse, AppsGetResourceUploadUrlOptionalParams, AppsGetResourceUploadUrlResponse, + ActiveDeploymentCollection, + AppsSetActiveDeploymentsOptionalParams, + AppsSetActiveDeploymentsResponse, CustomDomainValidatePayload, AppsValidateDomainOptionalParams, AppsValidateDomainResponse, @@ -446,6 +449,110 @@ export class AppsImpl implements Apps { ); } + /** + * Set existing Deployment under the app as active + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param appName The name of the App resource. + * @param activeDeploymentCollection A list of Deployment name to be active. + * @param options The options parameters. + */ + async beginSetActiveDeployments( + resourceGroupName: string, + serviceName: string, + appName: string, + activeDeploymentCollection: ActiveDeploymentCollection, + options?: AppsSetActiveDeploymentsOptionalParams + ): Promise< + PollerLike< + PollOperationState, + AppsSetActiveDeploymentsResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, + { + resourceGroupName, + serviceName, + appName, + activeDeploymentCollection, + options + }, + setActiveDeploymentsOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + lroResourceLocationConfig: "azure-async-operation" + }); + } + + /** + * Set existing Deployment under the app as active + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param appName The name of the App resource. + * @param activeDeploymentCollection A list of Deployment name to be active. + * @param options The options parameters. + */ + async beginSetActiveDeploymentsAndWait( + resourceGroupName: string, + serviceName: string, + appName: string, + activeDeploymentCollection: ActiveDeploymentCollection, + options?: AppsSetActiveDeploymentsOptionalParams + ): Promise { + const poller = await this.beginSetActiveDeployments( + resourceGroupName, + serviceName, + appName, + activeDeploymentCollection, + options + ); + return poller.pollUntilDone(); + } + /** * Check the resource name is valid as well as not in use. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -651,6 +758,40 @@ const getResourceUploadUrlOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer }; +const setActiveDeploymentsOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/setActiveDeployments", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.AppResource + }, + 201: { + bodyMapper: Mappers.AppResource + }, + 202: { + bodyMapper: Mappers.AppResource + }, + 204: { + bodyMapper: Mappers.AppResource + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + requestBody: Parameters.activeDeploymentCollection, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.appName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; const validateDomainOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/validateDomain", diff --git a/sdk/appplatform/arm-appplatform/src/operations/buildServiceAgentPool.ts b/sdk/appplatform/arm-appplatform/src/operations/buildServiceAgentPool.ts new file mode 100644 index 000000000000..0fe72331a7d4 --- /dev/null +++ b/sdk/appplatform/arm-appplatform/src/operations/buildServiceAgentPool.ts @@ -0,0 +1,410 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { BuildServiceAgentPool } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { AppPlatformManagementClient } from "../appPlatformManagementClient"; +import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; +import { LroImpl } from "../lroImpl"; +import { + BuildServiceAgentPoolResource, + BuildServiceAgentPoolListNextOptionalParams, + BuildServiceAgentPoolListOptionalParams, + BuildServiceAgentPoolListResponse, + BuildServiceAgentPoolGetOptionalParams, + BuildServiceAgentPoolGetResponse, + BuildServiceAgentPoolUpdatePutOptionalParams, + BuildServiceAgentPoolUpdatePutResponse, + BuildServiceAgentPoolListNextResponse +} from "../models"; + +/// +/** Class containing BuildServiceAgentPool operations. */ +export class BuildServiceAgentPoolImpl implements BuildServiceAgentPool { + private readonly client: AppPlatformManagementClient; + + /** + * Initialize a new instance of the class BuildServiceAgentPool class. + * @param client Reference to the service client + */ + constructor(client: AppPlatformManagementClient) { + this.client = client; + } + + /** + * List build service agent pool. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param buildServiceName The name of the build service resource. + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + serviceName: string, + buildServiceName: string, + options?: BuildServiceAgentPoolListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll( + resourceGroupName, + serviceName, + buildServiceName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listPagingPage( + resourceGroupName, + serviceName, + buildServiceName, + options + ); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + serviceName: string, + buildServiceName: string, + options?: BuildServiceAgentPoolListOptionalParams + ): AsyncIterableIterator { + let result = await this._list( + resourceGroupName, + serviceName, + buildServiceName, + options + ); + yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + serviceName, + buildServiceName, + continuationToken, + options + ); + continuationToken = result.nextLink; + yield result.value || []; + } + } + + private async *listPagingAll( + resourceGroupName: string, + serviceName: string, + buildServiceName: string, + options?: BuildServiceAgentPoolListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + serviceName, + buildServiceName, + options + )) { + yield* page; + } + } + + /** + * List build service agent pool. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param buildServiceName The name of the build service resource. + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + serviceName: string, + buildServiceName: string, + options?: BuildServiceAgentPoolListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, buildServiceName, options }, + listOperationSpec + ); + } + + /** + * Get build service agent pool. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param buildServiceName The name of the build service resource. + * @param agentPoolName The name of the build service agent pool resource. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + buildServiceName: string, + agentPoolName: string, + options?: BuildServiceAgentPoolGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + buildServiceName, + agentPoolName, + options + }, + getOperationSpec + ); + } + + /** + * Create or update build service agent pool. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param buildServiceName The name of the build service resource. + * @param agentPoolName The name of the build service agent pool resource. + * @param agentPoolResource Parameters for the update operation + * @param options The options parameters. + */ + async beginUpdatePut( + resourceGroupName: string, + serviceName: string, + buildServiceName: string, + agentPoolName: string, + agentPoolResource: BuildServiceAgentPoolResource, + options?: BuildServiceAgentPoolUpdatePutOptionalParams + ): Promise< + PollerLike< + PollOperationState, + BuildServiceAgentPoolUpdatePutResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, + { + resourceGroupName, + serviceName, + buildServiceName, + agentPoolName, + agentPoolResource, + options + }, + updatePutOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + lroResourceLocationConfig: "azure-async-operation" + }); + } + + /** + * Create or update build service agent pool. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param buildServiceName The name of the build service resource. + * @param agentPoolName The name of the build service agent pool resource. + * @param agentPoolResource Parameters for the update operation + * @param options The options parameters. + */ + async beginUpdatePutAndWait( + resourceGroupName: string, + serviceName: string, + buildServiceName: string, + agentPoolName: string, + agentPoolResource: BuildServiceAgentPoolResource, + options?: BuildServiceAgentPoolUpdatePutOptionalParams + ): Promise { + const poller = await this.beginUpdatePut( + resourceGroupName, + serviceName, + buildServiceName, + agentPoolName, + agentPoolResource, + options + ); + return poller.pollUntilDone(); + } + + /** + * ListNext + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param buildServiceName The name of the build service resource. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + serviceName: string, + buildServiceName: string, + nextLink: string, + options?: BuildServiceAgentPoolListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, buildServiceName, nextLink, options }, + listNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/agentPools", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.BuildServiceAgentPoolResourceCollection + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.buildServiceName + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/agentPools/{agentPoolName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.BuildServiceAgentPoolResource + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.buildServiceName, + Parameters.agentPoolName + ], + headerParameters: [Parameters.accept], + serializer +}; +const updatePutOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/agentPools/{agentPoolName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.BuildServiceAgentPoolResource + }, + 201: { + bodyMapper: Mappers.BuildServiceAgentPoolResource + }, + 202: { + bodyMapper: Mappers.BuildServiceAgentPoolResource + }, + 204: { + bodyMapper: Mappers.BuildServiceAgentPoolResource + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + requestBody: Parameters.agentPoolResource, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.buildServiceName, + Parameters.agentPoolName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.BuildServiceAgentPoolResourceCollection + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.nextLink, + Parameters.buildServiceName + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/appplatform/arm-appplatform/src/operations/buildServiceBuilder.ts b/sdk/appplatform/arm-appplatform/src/operations/buildServiceBuilder.ts new file mode 100644 index 000000000000..76475039c564 --- /dev/null +++ b/sdk/appplatform/arm-appplatform/src/operations/buildServiceBuilder.ts @@ -0,0 +1,535 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { BuildServiceBuilder } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { AppPlatformManagementClient } from "../appPlatformManagementClient"; +import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; +import { LroImpl } from "../lroImpl"; +import { + BuilderResource, + BuildServiceBuilderListNextOptionalParams, + BuildServiceBuilderListOptionalParams, + BuildServiceBuilderGetOptionalParams, + BuildServiceBuilderGetResponse, + BuildServiceBuilderCreateOrUpdateOptionalParams, + BuildServiceBuilderCreateOrUpdateResponse, + BuildServiceBuilderDeleteOptionalParams, + BuildServiceBuilderListResponse, + BuildServiceBuilderListNextResponse +} from "../models"; + +/// +/** Class containing BuildServiceBuilder operations. */ +export class BuildServiceBuilderImpl implements BuildServiceBuilder { + private readonly client: AppPlatformManagementClient; + + /** + * Initialize a new instance of the class BuildServiceBuilder class. + * @param client Reference to the service client + */ + constructor(client: AppPlatformManagementClient) { + this.client = client; + } + + /** + * List KPack builders result. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param buildServiceName The name of the build service resource. + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + serviceName: string, + buildServiceName: string, + options?: BuildServiceBuilderListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll( + resourceGroupName, + serviceName, + buildServiceName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listPagingPage( + resourceGroupName, + serviceName, + buildServiceName, + options + ); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + serviceName: string, + buildServiceName: string, + options?: BuildServiceBuilderListOptionalParams + ): AsyncIterableIterator { + let result = await this._list( + resourceGroupName, + serviceName, + buildServiceName, + options + ); + yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + serviceName, + buildServiceName, + continuationToken, + options + ); + continuationToken = result.nextLink; + yield result.value || []; + } + } + + private async *listPagingAll( + resourceGroupName: string, + serviceName: string, + buildServiceName: string, + options?: BuildServiceBuilderListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + serviceName, + buildServiceName, + options + )) { + yield* page; + } + } + + /** + * Get a KPack builder. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param buildServiceName The name of the build service resource. + * @param builderName The name of the builder resource. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + buildServiceName: string, + builderName: string, + options?: BuildServiceBuilderGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + buildServiceName, + builderName, + options + }, + getOperationSpec + ); + } + + /** + * Create or update a KPack builder. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param buildServiceName The name of the build service resource. + * @param builderName The name of the builder resource. + * @param builderResource The target builder for the create or update operation + * @param options The options parameters. + */ + async beginCreateOrUpdate( + resourceGroupName: string, + serviceName: string, + buildServiceName: string, + builderName: string, + builderResource: BuilderResource, + options?: BuildServiceBuilderCreateOrUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + BuildServiceBuilderCreateOrUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, + { + resourceGroupName, + serviceName, + buildServiceName, + builderName, + builderResource, + options + }, + createOrUpdateOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + lroResourceLocationConfig: "azure-async-operation" + }); + } + + /** + * Create or update a KPack builder. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param buildServiceName The name of the build service resource. + * @param builderName The name of the builder resource. + * @param builderResource The target builder for the create or update operation + * @param options The options parameters. + */ + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + serviceName: string, + buildServiceName: string, + builderName: string, + builderResource: BuilderResource, + options?: BuildServiceBuilderCreateOrUpdateOptionalParams + ): Promise { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + serviceName, + buildServiceName, + builderName, + builderResource, + options + ); + return poller.pollUntilDone(); + } + + /** + * Delete a KPack builder. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param buildServiceName The name of the build service resource. + * @param builderName The name of the builder resource. + * @param options The options parameters. + */ + async beginDelete( + resourceGroupName: string, + serviceName: string, + buildServiceName: string, + builderName: string, + options?: BuildServiceBuilderDeleteOptionalParams + ): Promise, void>> { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, + { + resourceGroupName, + serviceName, + buildServiceName, + builderName, + options + }, + deleteOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + lroResourceLocationConfig: "azure-async-operation" + }); + } + + /** + * Delete a KPack builder. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param buildServiceName The name of the build service resource. + * @param builderName The name of the builder resource. + * @param options The options parameters. + */ + async beginDeleteAndWait( + resourceGroupName: string, + serviceName: string, + buildServiceName: string, + builderName: string, + options?: BuildServiceBuilderDeleteOptionalParams + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + serviceName, + buildServiceName, + builderName, + options + ); + return poller.pollUntilDone(); + } + + /** + * List KPack builders result. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param buildServiceName The name of the build service resource. + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + serviceName: string, + buildServiceName: string, + options?: BuildServiceBuilderListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, buildServiceName, options }, + listOperationSpec + ); + } + + /** + * ListNext + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param buildServiceName The name of the build service resource. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + serviceName: string, + buildServiceName: string, + nextLink: string, + options?: BuildServiceBuilderListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, buildServiceName, nextLink, options }, + listNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.BuilderResource + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.buildServiceName, + Parameters.builderName + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.BuilderResource + }, + 201: { + bodyMapper: Mappers.BuilderResource + }, + 202: { + bodyMapper: Mappers.BuilderResource + }, + 204: { + bodyMapper: Mappers.BuilderResource + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + requestBody: Parameters.builderResource, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.buildServiceName, + Parameters.builderName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}", + httpMethod: "DELETE", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.buildServiceName, + Parameters.builderName + ], + headerParameters: [Parameters.accept], + serializer +}; +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.BuilderResourceCollection + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.buildServiceName + ], + headerParameters: [Parameters.accept], + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.BuilderResourceCollection + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.nextLink, + Parameters.buildServiceName + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/appplatform/arm-appplatform/src/operations/buildServiceOperations.ts b/sdk/appplatform/arm-appplatform/src/operations/buildServiceOperations.ts new file mode 100644 index 000000000000..3a0d1fe2539c --- /dev/null +++ b/sdk/appplatform/arm-appplatform/src/operations/buildServiceOperations.ts @@ -0,0 +1,1070 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { BuildServiceOperations } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { AppPlatformManagementClient } from "../appPlatformManagementClient"; +import { + BuildService, + BuildServiceListBuildServicesNextOptionalParams, + BuildServiceListBuildServicesOptionalParams, + Build, + BuildServiceListBuildsNextOptionalParams, + BuildServiceListBuildsOptionalParams, + BuildResult, + BuildServiceListBuildResultsNextOptionalParams, + BuildServiceListBuildResultsOptionalParams, + BuildServiceListBuildServicesResponse, + BuildServiceGetBuildServiceOptionalParams, + BuildServiceGetBuildServiceResponse, + BuildServiceListBuildsResponse, + BuildServiceGetBuildOptionalParams, + BuildServiceGetBuildResponse, + BuildServiceCreateOrUpdateBuildOptionalParams, + BuildServiceCreateOrUpdateBuildResponse, + BuildServiceListBuildResultsResponse, + BuildServiceGetBuildResultOptionalParams, + BuildServiceGetBuildResultResponse, + BuildServiceGetBuildResultLogOptionalParams, + BuildServiceGetBuildResultLogResponse, + BuildServiceGetResourceUploadUrlOptionalParams, + BuildServiceGetResourceUploadUrlResponse, + BuildServiceListSupportedBuildpacksOptionalParams, + BuildServiceListSupportedBuildpacksResponse, + BuildServiceGetSupportedBuildpackOptionalParams, + BuildServiceGetSupportedBuildpackResponse, + BuildServiceListSupportedStacksOptionalParams, + BuildServiceListSupportedStacksResponse, + BuildServiceGetSupportedStackOptionalParams, + BuildServiceGetSupportedStackResponse, + BuildServiceListBuildServicesNextResponse, + BuildServiceListBuildsNextResponse, + BuildServiceListBuildResultsNextResponse +} from "../models"; + +/// +/** Class containing BuildServiceOperations operations. */ +export class BuildServiceOperationsImpl implements BuildServiceOperations { + private readonly client: AppPlatformManagementClient; + + /** + * Initialize a new instance of the class BuildServiceOperations class. + * @param client Reference to the service client + */ + constructor(client: AppPlatformManagementClient) { + this.client = client; + } + + /** + * List build services resource. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param options The options parameters. + */ + public listBuildServices( + resourceGroupName: string, + serviceName: string, + options?: BuildServiceListBuildServicesOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listBuildServicesPagingAll( + resourceGroupName, + serviceName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listBuildServicesPagingPage( + resourceGroupName, + serviceName, + options + ); + } + }; + } + + private async *listBuildServicesPagingPage( + resourceGroupName: string, + serviceName: string, + options?: BuildServiceListBuildServicesOptionalParams + ): AsyncIterableIterator { + let result = await this._listBuildServices( + resourceGroupName, + serviceName, + options + ); + yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listBuildServicesNext( + resourceGroupName, + serviceName, + continuationToken, + options + ); + continuationToken = result.nextLink; + yield result.value || []; + } + } + + private async *listBuildServicesPagingAll( + resourceGroupName: string, + serviceName: string, + options?: BuildServiceListBuildServicesOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listBuildServicesPagingPage( + resourceGroupName, + serviceName, + options + )) { + yield* page; + } + } + + /** + * List KPack builds. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param buildServiceName The name of the build service resource. + * @param options The options parameters. + */ + public listBuilds( + resourceGroupName: string, + serviceName: string, + buildServiceName: string, + options?: BuildServiceListBuildsOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listBuildsPagingAll( + resourceGroupName, + serviceName, + buildServiceName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listBuildsPagingPage( + resourceGroupName, + serviceName, + buildServiceName, + options + ); + } + }; + } + + private async *listBuildsPagingPage( + resourceGroupName: string, + serviceName: string, + buildServiceName: string, + options?: BuildServiceListBuildsOptionalParams + ): AsyncIterableIterator { + let result = await this._listBuilds( + resourceGroupName, + serviceName, + buildServiceName, + options + ); + yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listBuildsNext( + resourceGroupName, + serviceName, + buildServiceName, + continuationToken, + options + ); + continuationToken = result.nextLink; + yield result.value || []; + } + } + + private async *listBuildsPagingAll( + resourceGroupName: string, + serviceName: string, + buildServiceName: string, + options?: BuildServiceListBuildsOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listBuildsPagingPage( + resourceGroupName, + serviceName, + buildServiceName, + options + )) { + yield* page; + } + } + + /** + * List KPack build results. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param buildServiceName The name of the build service resource. + * @param buildName The name of the build resource. + * @param options The options parameters. + */ + public listBuildResults( + resourceGroupName: string, + serviceName: string, + buildServiceName: string, + buildName: string, + options?: BuildServiceListBuildResultsOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listBuildResultsPagingAll( + resourceGroupName, + serviceName, + buildServiceName, + buildName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listBuildResultsPagingPage( + resourceGroupName, + serviceName, + buildServiceName, + buildName, + options + ); + } + }; + } + + private async *listBuildResultsPagingPage( + resourceGroupName: string, + serviceName: string, + buildServiceName: string, + buildName: string, + options?: BuildServiceListBuildResultsOptionalParams + ): AsyncIterableIterator { + let result = await this._listBuildResults( + resourceGroupName, + serviceName, + buildServiceName, + buildName, + options + ); + yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listBuildResultsNext( + resourceGroupName, + serviceName, + buildServiceName, + buildName, + continuationToken, + options + ); + continuationToken = result.nextLink; + yield result.value || []; + } + } + + private async *listBuildResultsPagingAll( + resourceGroupName: string, + serviceName: string, + buildServiceName: string, + buildName: string, + options?: BuildServiceListBuildResultsOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listBuildResultsPagingPage( + resourceGroupName, + serviceName, + buildServiceName, + buildName, + options + )) { + yield* page; + } + } + + /** + * List build services resource. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param options The options parameters. + */ + private _listBuildServices( + resourceGroupName: string, + serviceName: string, + options?: BuildServiceListBuildServicesOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, options }, + listBuildServicesOperationSpec + ); + } + + /** + * Get a build service resource. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param buildServiceName The name of the build service resource. + * @param options The options parameters. + */ + getBuildService( + resourceGroupName: string, + serviceName: string, + buildServiceName: string, + options?: BuildServiceGetBuildServiceOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, buildServiceName, options }, + getBuildServiceOperationSpec + ); + } + + /** + * List KPack builds. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param buildServiceName The name of the build service resource. + * @param options The options parameters. + */ + private _listBuilds( + resourceGroupName: string, + serviceName: string, + buildServiceName: string, + options?: BuildServiceListBuildsOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, buildServiceName, options }, + listBuildsOperationSpec + ); + } + + /** + * Get a KPack build. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param buildServiceName The name of the build service resource. + * @param buildName The name of the build resource. + * @param options The options parameters. + */ + getBuild( + resourceGroupName: string, + serviceName: string, + buildServiceName: string, + buildName: string, + options?: BuildServiceGetBuildOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, buildServiceName, buildName, options }, + getBuildOperationSpec + ); + } + + /** + * Create or update a KPack build. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param buildServiceName The name of the build service resource. + * @param buildName The name of the build resource. + * @param build Parameters for the create or update operation + * @param options The options parameters. + */ + createOrUpdateBuild( + resourceGroupName: string, + serviceName: string, + buildServiceName: string, + buildName: string, + build: Build, + options?: BuildServiceCreateOrUpdateBuildOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + buildServiceName, + buildName, + build, + options + }, + createOrUpdateBuildOperationSpec + ); + } + + /** + * List KPack build results. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param buildServiceName The name of the build service resource. + * @param buildName The name of the build resource. + * @param options The options parameters. + */ + private _listBuildResults( + resourceGroupName: string, + serviceName: string, + buildServiceName: string, + buildName: string, + options?: BuildServiceListBuildResultsOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, buildServiceName, buildName, options }, + listBuildResultsOperationSpec + ); + } + + /** + * Get a KPack build result. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param buildServiceName The name of the build service resource. + * @param buildName The name of the build resource. + * @param buildResultName The name of the build result resource. + * @param options The options parameters. + */ + getBuildResult( + resourceGroupName: string, + serviceName: string, + buildServiceName: string, + buildName: string, + buildResultName: string, + options?: BuildServiceGetBuildResultOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + buildServiceName, + buildName, + buildResultName, + options + }, + getBuildResultOperationSpec + ); + } + + /** + * Get a KPack build result log download URL. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param buildServiceName The name of the build service resource. + * @param buildName The name of the build resource. + * @param buildResultName The name of the build result resource. + * @param options The options parameters. + */ + getBuildResultLog( + resourceGroupName: string, + serviceName: string, + buildServiceName: string, + buildName: string, + buildResultName: string, + options?: BuildServiceGetBuildResultLogOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + buildServiceName, + buildName, + buildResultName, + options + }, + getBuildResultLogOperationSpec + ); + } + + /** + * Get an resource upload URL for build service, which may be artifacts or source archive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param buildServiceName The name of the build service resource. + * @param options The options parameters. + */ + getResourceUploadUrl( + resourceGroupName: string, + serviceName: string, + buildServiceName: string, + options?: BuildServiceGetResourceUploadUrlOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, buildServiceName, options }, + getResourceUploadUrlOperationSpec + ); + } + + /** + * Get all supported buildpacks. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param buildServiceName The name of the build service resource. + * @param options The options parameters. + */ + listSupportedBuildpacks( + resourceGroupName: string, + serviceName: string, + buildServiceName: string, + options?: BuildServiceListSupportedBuildpacksOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, buildServiceName, options }, + listSupportedBuildpacksOperationSpec + ); + } + + /** + * Get the supported buildpack resource. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param buildServiceName The name of the build service resource. + * @param buildpackName The name of the buildpack resource. + * @param options The options parameters. + */ + getSupportedBuildpack( + resourceGroupName: string, + serviceName: string, + buildServiceName: string, + buildpackName: string, + options?: BuildServiceGetSupportedBuildpackOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + buildServiceName, + buildpackName, + options + }, + getSupportedBuildpackOperationSpec + ); + } + + /** + * Get all supported stacks. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param buildServiceName The name of the build service resource. + * @param options The options parameters. + */ + listSupportedStacks( + resourceGroupName: string, + serviceName: string, + buildServiceName: string, + options?: BuildServiceListSupportedStacksOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, buildServiceName, options }, + listSupportedStacksOperationSpec + ); + } + + /** + * Get the supported stack resource. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param buildServiceName The name of the build service resource. + * @param stackName The name of the stack resource. + * @param options The options parameters. + */ + getSupportedStack( + resourceGroupName: string, + serviceName: string, + buildServiceName: string, + stackName: string, + options?: BuildServiceGetSupportedStackOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, buildServiceName, stackName, options }, + getSupportedStackOperationSpec + ); + } + + /** + * ListBuildServicesNext + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param nextLink The nextLink from the previous successful call to the ListBuildServices method. + * @param options The options parameters. + */ + private _listBuildServicesNext( + resourceGroupName: string, + serviceName: string, + nextLink: string, + options?: BuildServiceListBuildServicesNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, nextLink, options }, + listBuildServicesNextOperationSpec + ); + } + + /** + * ListBuildsNext + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param buildServiceName The name of the build service resource. + * @param nextLink The nextLink from the previous successful call to the ListBuilds method. + * @param options The options parameters. + */ + private _listBuildsNext( + resourceGroupName: string, + serviceName: string, + buildServiceName: string, + nextLink: string, + options?: BuildServiceListBuildsNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, buildServiceName, nextLink, options }, + listBuildsNextOperationSpec + ); + } + + /** + * ListBuildResultsNext + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param buildServiceName The name of the build service resource. + * @param buildName The name of the build resource. + * @param nextLink The nextLink from the previous successful call to the ListBuildResults method. + * @param options The options parameters. + */ + private _listBuildResultsNext( + resourceGroupName: string, + serviceName: string, + buildServiceName: string, + buildName: string, + nextLink: string, + options?: BuildServiceListBuildResultsNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + buildServiceName, + buildName, + nextLink, + options + }, + listBuildResultsNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listBuildServicesOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.BuildServiceCollection + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serviceName + ], + headerParameters: [Parameters.accept], + serializer +}; +const getBuildServiceOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.BuildService + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.buildServiceName + ], + headerParameters: [Parameters.accept], + serializer +}; +const listBuildsOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builds", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.BuildCollection + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.buildServiceName + ], + headerParameters: [Parameters.accept], + serializer +}; +const getBuildOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builds/{buildName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.Build + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.buildServiceName, + Parameters.buildName + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateBuildOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builds/{buildName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.Build + }, + 201: { + bodyMapper: Mappers.Build + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + requestBody: Parameters.build, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.buildServiceName, + Parameters.buildName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const listBuildResultsOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builds/{buildName}/results", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.BuildResultCollection + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.buildServiceName, + Parameters.buildName + ], + headerParameters: [Parameters.accept], + serializer +}; +const getBuildResultOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builds/{buildName}/results/{buildResultName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.BuildResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.buildServiceName, + Parameters.buildName, + Parameters.buildResultName + ], + headerParameters: [Parameters.accept], + serializer +}; +const getBuildResultLogOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builds/{buildName}/results/{buildResultName}/getLogFileUrl", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.BuildResultLog + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.buildServiceName, + Parameters.buildName, + Parameters.buildResultName + ], + headerParameters: [Parameters.accept], + serializer +}; +const getResourceUploadUrlOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/getResourceUploadUrl", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.ResourceUploadDefinition + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.buildServiceName + ], + headerParameters: [Parameters.accept], + serializer +}; +const listSupportedBuildpacksOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/supportedBuildpacks", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.SupportedBuildpacksCollection + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.buildServiceName + ], + headerParameters: [Parameters.accept], + serializer +}; +const getSupportedBuildpackOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/supportedBuildpacks/{buildpackName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.SupportedBuildpackResource + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.buildServiceName, + Parameters.buildpackName + ], + headerParameters: [Parameters.accept], + serializer +}; +const listSupportedStacksOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/supportedStacks", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.SupportedStacksCollection + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.buildServiceName + ], + headerParameters: [Parameters.accept], + serializer +}; +const getSupportedStackOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/supportedStacks/{stackName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.SupportedStackResource + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.buildServiceName, + Parameters.stackName + ], + headerParameters: [Parameters.accept], + serializer +}; +const listBuildServicesNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.BuildServiceCollection + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.nextLink + ], + headerParameters: [Parameters.accept], + serializer +}; +const listBuildsNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.BuildCollection + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.nextLink, + Parameters.buildServiceName + ], + headerParameters: [Parameters.accept], + serializer +}; +const listBuildResultsNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.BuildResultCollection + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.nextLink, + Parameters.buildServiceName, + Parameters.buildName + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/appplatform/arm-appplatform/src/operations/buildpackBinding.ts b/sdk/appplatform/arm-appplatform/src/operations/buildpackBinding.ts new file mode 100644 index 000000000000..d4bab48e6fd6 --- /dev/null +++ b/sdk/appplatform/arm-appplatform/src/operations/buildpackBinding.ts @@ -0,0 +1,581 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { BuildpackBinding } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { AppPlatformManagementClient } from "../appPlatformManagementClient"; +import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; +import { LroImpl } from "../lroImpl"; +import { + BuildpackBindingResource, + BuildpackBindingListNextOptionalParams, + BuildpackBindingListOptionalParams, + BuildpackBindingGetOptionalParams, + BuildpackBindingGetResponse, + BuildpackBindingCreateOrUpdateOptionalParams, + BuildpackBindingCreateOrUpdateResponse, + BuildpackBindingDeleteOptionalParams, + BuildpackBindingListResponse, + BuildpackBindingListNextResponse +} from "../models"; + +/// +/** Class containing BuildpackBinding operations. */ +export class BuildpackBindingImpl implements BuildpackBinding { + private readonly client: AppPlatformManagementClient; + + /** + * Initialize a new instance of the class BuildpackBinding class. + * @param client Reference to the service client + */ + constructor(client: AppPlatformManagementClient) { + this.client = client; + } + + /** + * Handles requests to list all buildpack bindings in a builder. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param buildServiceName The name of the build service resource. + * @param builderName The name of the builder resource. + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + serviceName: string, + buildServiceName: string, + builderName: string, + options?: BuildpackBindingListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll( + resourceGroupName, + serviceName, + buildServiceName, + builderName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listPagingPage( + resourceGroupName, + serviceName, + buildServiceName, + builderName, + options + ); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + serviceName: string, + buildServiceName: string, + builderName: string, + options?: BuildpackBindingListOptionalParams + ): AsyncIterableIterator { + let result = await this._list( + resourceGroupName, + serviceName, + buildServiceName, + builderName, + options + ); + yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + serviceName, + buildServiceName, + builderName, + continuationToken, + options + ); + continuationToken = result.nextLink; + yield result.value || []; + } + } + + private async *listPagingAll( + resourceGroupName: string, + serviceName: string, + buildServiceName: string, + builderName: string, + options?: BuildpackBindingListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + serviceName, + buildServiceName, + builderName, + options + )) { + yield* page; + } + } + + /** + * Get a buildpack binding by name. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param buildServiceName The name of the build service resource. + * @param builderName The name of the builder resource. + * @param buildpackBindingName The name of the Buildpack Binding Name + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + buildServiceName: string, + builderName: string, + buildpackBindingName: string, + options?: BuildpackBindingGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + buildServiceName, + builderName, + buildpackBindingName, + options + }, + getOperationSpec + ); + } + + /** + * Create or update a buildpack binding. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param buildServiceName The name of the build service resource. + * @param builderName The name of the builder resource. + * @param buildpackBindingName The name of the Buildpack Binding Name + * @param buildpackBinding The target buildpack binding for the create or update operation + * @param options The options parameters. + */ + async beginCreateOrUpdate( + resourceGroupName: string, + serviceName: string, + buildServiceName: string, + builderName: string, + buildpackBindingName: string, + buildpackBinding: BuildpackBindingResource, + options?: BuildpackBindingCreateOrUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + BuildpackBindingCreateOrUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, + { + resourceGroupName, + serviceName, + buildServiceName, + builderName, + buildpackBindingName, + buildpackBinding, + options + }, + createOrUpdateOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + lroResourceLocationConfig: "azure-async-operation" + }); + } + + /** + * Create or update a buildpack binding. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param buildServiceName The name of the build service resource. + * @param builderName The name of the builder resource. + * @param buildpackBindingName The name of the Buildpack Binding Name + * @param buildpackBinding The target buildpack binding for the create or update operation + * @param options The options parameters. + */ + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + serviceName: string, + buildServiceName: string, + builderName: string, + buildpackBindingName: string, + buildpackBinding: BuildpackBindingResource, + options?: BuildpackBindingCreateOrUpdateOptionalParams + ): Promise { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + serviceName, + buildServiceName, + builderName, + buildpackBindingName, + buildpackBinding, + options + ); + return poller.pollUntilDone(); + } + + /** + * Operation to delete a Buildpack Binding + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param buildServiceName The name of the build service resource. + * @param builderName The name of the builder resource. + * @param buildpackBindingName The name of the Buildpack Binding Name + * @param options The options parameters. + */ + async beginDelete( + resourceGroupName: string, + serviceName: string, + buildServiceName: string, + builderName: string, + buildpackBindingName: string, + options?: BuildpackBindingDeleteOptionalParams + ): Promise, void>> { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, + { + resourceGroupName, + serviceName, + buildServiceName, + builderName, + buildpackBindingName, + options + }, + deleteOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + lroResourceLocationConfig: "azure-async-operation" + }); + } + + /** + * Operation to delete a Buildpack Binding + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param buildServiceName The name of the build service resource. + * @param builderName The name of the builder resource. + * @param buildpackBindingName The name of the Buildpack Binding Name + * @param options The options parameters. + */ + async beginDeleteAndWait( + resourceGroupName: string, + serviceName: string, + buildServiceName: string, + builderName: string, + buildpackBindingName: string, + options?: BuildpackBindingDeleteOptionalParams + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + serviceName, + buildServiceName, + builderName, + buildpackBindingName, + options + ); + return poller.pollUntilDone(); + } + + /** + * Handles requests to list all buildpack bindings in a builder. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param buildServiceName The name of the build service resource. + * @param builderName The name of the builder resource. + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + serviceName: string, + buildServiceName: string, + builderName: string, + options?: BuildpackBindingListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + buildServiceName, + builderName, + options + }, + listOperationSpec + ); + } + + /** + * ListNext + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param buildServiceName The name of the build service resource. + * @param builderName The name of the builder resource. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + serviceName: string, + buildServiceName: string, + builderName: string, + nextLink: string, + options?: BuildpackBindingListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + buildServiceName, + builderName, + nextLink, + options + }, + listNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}/buildpackBindings/{buildpackBindingName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.BuildpackBindingResource + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.buildServiceName, + Parameters.builderName, + Parameters.buildpackBindingName + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}/buildpackBindings/{buildpackBindingName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.BuildpackBindingResource + }, + 201: { + bodyMapper: Mappers.BuildpackBindingResource + }, + 202: { + bodyMapper: Mappers.BuildpackBindingResource + }, + 204: { + bodyMapper: Mappers.BuildpackBindingResource + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + requestBody: Parameters.buildpackBinding, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.buildServiceName, + Parameters.builderName, + Parameters.buildpackBindingName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}/buildpackBindings/{buildpackBindingName}", + httpMethod: "DELETE", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.buildServiceName, + Parameters.builderName, + Parameters.buildpackBindingName + ], + headerParameters: [Parameters.accept], + serializer +}; +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}/buildpackBindings", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.BuildpackBindingResourceCollection + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.buildServiceName, + Parameters.builderName + ], + headerParameters: [Parameters.accept], + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.BuildpackBindingResourceCollection + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.nextLink, + Parameters.buildServiceName, + Parameters.builderName + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/appplatform/arm-appplatform/src/operations/configurationServices.ts b/sdk/appplatform/arm-appplatform/src/operations/configurationServices.ts new file mode 100644 index 000000000000..66190d549a02 --- /dev/null +++ b/sdk/appplatform/arm-appplatform/src/operations/configurationServices.ts @@ -0,0 +1,623 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { ConfigurationServices } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { AppPlatformManagementClient } from "../appPlatformManagementClient"; +import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; +import { LroImpl } from "../lroImpl"; +import { + ConfigurationServiceResource, + ConfigurationServicesListNextOptionalParams, + ConfigurationServicesListOptionalParams, + ConfigurationServicesGetOptionalParams, + ConfigurationServicesGetResponse, + ConfigurationServicesCreateOrUpdateOptionalParams, + ConfigurationServicesCreateOrUpdateResponse, + ConfigurationServicesDeleteOptionalParams, + ConfigurationServicesListResponse, + ConfigurationServiceSettings, + ConfigurationServicesValidateOptionalParams, + ConfigurationServicesValidateResponse, + ConfigurationServicesListNextResponse +} from "../models"; + +/// +/** Class containing ConfigurationServices operations. */ +export class ConfigurationServicesImpl implements ConfigurationServices { + private readonly client: AppPlatformManagementClient; + + /** + * Initialize a new instance of the class ConfigurationServices class. + * @param client Reference to the service client + */ + constructor(client: AppPlatformManagementClient) { + this.client = client; + } + + /** + * Handles requests to list all resources in a Service. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + serviceName: string, + options?: ConfigurationServicesListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll(resourceGroupName, serviceName, options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listPagingPage(resourceGroupName, serviceName, options); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + serviceName: string, + options?: ConfigurationServicesListOptionalParams + ): AsyncIterableIterator { + let result = await this._list(resourceGroupName, serviceName, options); + yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + serviceName, + continuationToken, + options + ); + continuationToken = result.nextLink; + yield result.value || []; + } + } + + private async *listPagingAll( + resourceGroupName: string, + serviceName: string, + options?: ConfigurationServicesListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + serviceName, + options + )) { + yield* page; + } + } + + /** + * Get the Application Configuration Service and its properties. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param configurationServiceName The name of Application Configuration Service. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + configurationServiceName: string, + options?: ConfigurationServicesGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, configurationServiceName, options }, + getOperationSpec + ); + } + + /** + * Create the default Application Configuration Service or update the existing Application + * Configuration Service. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param configurationServiceName The name of Application Configuration Service. + * @param configurationServiceResource Parameters for the update operation + * @param options The options parameters. + */ + async beginCreateOrUpdate( + resourceGroupName: string, + serviceName: string, + configurationServiceName: string, + configurationServiceResource: ConfigurationServiceResource, + options?: ConfigurationServicesCreateOrUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + ConfigurationServicesCreateOrUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, + { + resourceGroupName, + serviceName, + configurationServiceName, + configurationServiceResource, + options + }, + createOrUpdateOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + lroResourceLocationConfig: "azure-async-operation" + }); + } + + /** + * Create the default Application Configuration Service or update the existing Application + * Configuration Service. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param configurationServiceName The name of Application Configuration Service. + * @param configurationServiceResource Parameters for the update operation + * @param options The options parameters. + */ + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + serviceName: string, + configurationServiceName: string, + configurationServiceResource: ConfigurationServiceResource, + options?: ConfigurationServicesCreateOrUpdateOptionalParams + ): Promise { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + serviceName, + configurationServiceName, + configurationServiceResource, + options + ); + return poller.pollUntilDone(); + } + + /** + * Disable the default Application Configuration Service. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param configurationServiceName The name of Application Configuration Service. + * @param options The options parameters. + */ + async beginDelete( + resourceGroupName: string, + serviceName: string, + configurationServiceName: string, + options?: ConfigurationServicesDeleteOptionalParams + ): Promise, void>> { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, + { resourceGroupName, serviceName, configurationServiceName, options }, + deleteOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + lroResourceLocationConfig: "azure-async-operation" + }); + } + + /** + * Disable the default Application Configuration Service. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param configurationServiceName The name of Application Configuration Service. + * @param options The options parameters. + */ + async beginDeleteAndWait( + resourceGroupName: string, + serviceName: string, + configurationServiceName: string, + options?: ConfigurationServicesDeleteOptionalParams + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + serviceName, + configurationServiceName, + options + ); + return poller.pollUntilDone(); + } + + /** + * Handles requests to list all resources in a Service. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + serviceName: string, + options?: ConfigurationServicesListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, options }, + listOperationSpec + ); + } + + /** + * Check if the Application Configuration Service settings are valid. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param configurationServiceName The name of Application Configuration Service. + * @param settings Application Configuration Service settings to be validated + * @param options The options parameters. + */ + async beginValidate( + resourceGroupName: string, + serviceName: string, + configurationServiceName: string, + settings: ConfigurationServiceSettings, + options?: ConfigurationServicesValidateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + ConfigurationServicesValidateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, + { + resourceGroupName, + serviceName, + configurationServiceName, + settings, + options + }, + validateOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + lroResourceLocationConfig: "location" + }); + } + + /** + * Check if the Application Configuration Service settings are valid. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param configurationServiceName The name of Application Configuration Service. + * @param settings Application Configuration Service settings to be validated + * @param options The options parameters. + */ + async beginValidateAndWait( + resourceGroupName: string, + serviceName: string, + configurationServiceName: string, + settings: ConfigurationServiceSettings, + options?: ConfigurationServicesValidateOptionalParams + ): Promise { + const poller = await this.beginValidate( + resourceGroupName, + serviceName, + configurationServiceName, + settings, + options + ); + return poller.pollUntilDone(); + } + + /** + * ListNext + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + serviceName: string, + nextLink: string, + options?: ConfigurationServicesListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, nextLink, options }, + listNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configurationServices/{configurationServiceName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ConfigurationServiceResource + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.configurationServiceName + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configurationServices/{configurationServiceName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.ConfigurationServiceResource + }, + 201: { + bodyMapper: Mappers.ConfigurationServiceResource + }, + 202: { + bodyMapper: Mappers.ConfigurationServiceResource + }, + 204: { + bodyMapper: Mappers.ConfigurationServiceResource + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + requestBody: Parameters.configurationServiceResource, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.configurationServiceName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configurationServices/{configurationServiceName}", + httpMethod: "DELETE", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.configurationServiceName + ], + headerParameters: [Parameters.accept], + serializer +}; +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configurationServices", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ConfigurationServiceResourceCollection + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serviceName + ], + headerParameters: [Parameters.accept], + serializer +}; +const validateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configurationServices/{configurationServiceName}/validate", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.ConfigurationServiceSettingsValidateResult + }, + 201: { + bodyMapper: Mappers.ConfigurationServiceSettingsValidateResult + }, + 202: { + bodyMapper: Mappers.ConfigurationServiceSettingsValidateResult + }, + 204: { + bodyMapper: Mappers.ConfigurationServiceSettingsValidateResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + requestBody: Parameters.settings, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.configurationServiceName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ConfigurationServiceResourceCollection + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.nextLink + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/appplatform/arm-appplatform/src/operations/deployments.ts b/sdk/appplatform/arm-appplatform/src/operations/deployments.ts index 44b157a13939..19544655ed53 100644 --- a/sdk/appplatform/arm-appplatform/src/operations/deployments.ts +++ b/sdk/appplatform/arm-appplatform/src/operations/deployments.ts @@ -1562,7 +1562,7 @@ const generateThreadDumpOperationSpec: coreClient.OperationSpec = { }; const startJFROperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/StartJFR", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/startJFR", httpMethod: "POST", responses: { 200: {}, diff --git a/sdk/appplatform/arm-appplatform/src/operations/gatewayCustomDomains.ts b/sdk/appplatform/arm-appplatform/src/operations/gatewayCustomDomains.ts new file mode 100644 index 000000000000..caae600abbfe --- /dev/null +++ b/sdk/appplatform/arm-appplatform/src/operations/gatewayCustomDomains.ts @@ -0,0 +1,525 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { GatewayCustomDomains } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { AppPlatformManagementClient } from "../appPlatformManagementClient"; +import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; +import { LroImpl } from "../lroImpl"; +import { + GatewayCustomDomainResource, + GatewayCustomDomainsListNextOptionalParams, + GatewayCustomDomainsListOptionalParams, + GatewayCustomDomainsGetOptionalParams, + GatewayCustomDomainsGetResponse, + GatewayCustomDomainsCreateOrUpdateOptionalParams, + GatewayCustomDomainsCreateOrUpdateResponse, + GatewayCustomDomainsDeleteOptionalParams, + GatewayCustomDomainsListResponse, + GatewayCustomDomainsListNextResponse +} from "../models"; + +/// +/** Class containing GatewayCustomDomains operations. */ +export class GatewayCustomDomainsImpl implements GatewayCustomDomains { + private readonly client: AppPlatformManagementClient; + + /** + * Initialize a new instance of the class GatewayCustomDomains class. + * @param client Reference to the service client + */ + constructor(client: AppPlatformManagementClient) { + this.client = client; + } + + /** + * Handle requests to list all Spring Cloud Gateway custom domains. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param gatewayName The name of Spring Cloud Gateway. + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + serviceName: string, + gatewayName: string, + options?: GatewayCustomDomainsListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll( + resourceGroupName, + serviceName, + gatewayName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listPagingPage( + resourceGroupName, + serviceName, + gatewayName, + options + ); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + serviceName: string, + gatewayName: string, + options?: GatewayCustomDomainsListOptionalParams + ): AsyncIterableIterator { + let result = await this._list( + resourceGroupName, + serviceName, + gatewayName, + options + ); + yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + serviceName, + gatewayName, + continuationToken, + options + ); + continuationToken = result.nextLink; + yield result.value || []; + } + } + + private async *listPagingAll( + resourceGroupName: string, + serviceName: string, + gatewayName: string, + options?: GatewayCustomDomainsListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + serviceName, + gatewayName, + options + )) { + yield* page; + } + } + + /** + * Get the Spring Cloud Gateway custom domain. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param gatewayName The name of Spring Cloud Gateway. + * @param domainName The name of the Spring Cloud Gateway custom domain. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + gatewayName: string, + domainName: string, + options?: GatewayCustomDomainsGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, gatewayName, domainName, options }, + getOperationSpec + ); + } + + /** + * Create or update the Spring Cloud Gateway custom domain. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param gatewayName The name of Spring Cloud Gateway. + * @param domainName The name of the Spring Cloud Gateway custom domain. + * @param gatewayCustomDomainResource The gateway custom domain resource for the create or update + * operation + * @param options The options parameters. + */ + async beginCreateOrUpdate( + resourceGroupName: string, + serviceName: string, + gatewayName: string, + domainName: string, + gatewayCustomDomainResource: GatewayCustomDomainResource, + options?: GatewayCustomDomainsCreateOrUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + GatewayCustomDomainsCreateOrUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, + { + resourceGroupName, + serviceName, + gatewayName, + domainName, + gatewayCustomDomainResource, + options + }, + createOrUpdateOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + lroResourceLocationConfig: "azure-async-operation" + }); + } + + /** + * Create or update the Spring Cloud Gateway custom domain. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param gatewayName The name of Spring Cloud Gateway. + * @param domainName The name of the Spring Cloud Gateway custom domain. + * @param gatewayCustomDomainResource The gateway custom domain resource for the create or update + * operation + * @param options The options parameters. + */ + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + serviceName: string, + gatewayName: string, + domainName: string, + gatewayCustomDomainResource: GatewayCustomDomainResource, + options?: GatewayCustomDomainsCreateOrUpdateOptionalParams + ): Promise { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + serviceName, + gatewayName, + domainName, + gatewayCustomDomainResource, + options + ); + return poller.pollUntilDone(); + } + + /** + * Delete the Spring Cloud Gateway custom domain. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param gatewayName The name of Spring Cloud Gateway. + * @param domainName The name of the Spring Cloud Gateway custom domain. + * @param options The options parameters. + */ + async beginDelete( + resourceGroupName: string, + serviceName: string, + gatewayName: string, + domainName: string, + options?: GatewayCustomDomainsDeleteOptionalParams + ): Promise, void>> { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, + { resourceGroupName, serviceName, gatewayName, domainName, options }, + deleteOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + lroResourceLocationConfig: "azure-async-operation" + }); + } + + /** + * Delete the Spring Cloud Gateway custom domain. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param gatewayName The name of Spring Cloud Gateway. + * @param domainName The name of the Spring Cloud Gateway custom domain. + * @param options The options parameters. + */ + async beginDeleteAndWait( + resourceGroupName: string, + serviceName: string, + gatewayName: string, + domainName: string, + options?: GatewayCustomDomainsDeleteOptionalParams + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + serviceName, + gatewayName, + domainName, + options + ); + return poller.pollUntilDone(); + } + + /** + * Handle requests to list all Spring Cloud Gateway custom domains. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param gatewayName The name of Spring Cloud Gateway. + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + serviceName: string, + gatewayName: string, + options?: GatewayCustomDomainsListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, gatewayName, options }, + listOperationSpec + ); + } + + /** + * ListNext + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param gatewayName The name of Spring Cloud Gateway. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + serviceName: string, + gatewayName: string, + nextLink: string, + options?: GatewayCustomDomainsListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, gatewayName, nextLink, options }, + listNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/domains/{domainName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.GatewayCustomDomainResource + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.domainName, + Parameters.gatewayName + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/domains/{domainName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.GatewayCustomDomainResource + }, + 201: { + bodyMapper: Mappers.GatewayCustomDomainResource + }, + 202: { + bodyMapper: Mappers.GatewayCustomDomainResource + }, + 204: { + bodyMapper: Mappers.GatewayCustomDomainResource + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + requestBody: Parameters.gatewayCustomDomainResource, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.domainName, + Parameters.gatewayName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/domains/{domainName}", + httpMethod: "DELETE", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.domainName, + Parameters.gatewayName + ], + headerParameters: [Parameters.accept], + serializer +}; +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/domains", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.GatewayCustomDomainResourceCollection + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.gatewayName + ], + headerParameters: [Parameters.accept], + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.GatewayCustomDomainResourceCollection + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.nextLink, + Parameters.gatewayName + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/appplatform/arm-appplatform/src/operations/gatewayRouteConfigs.ts b/sdk/appplatform/arm-appplatform/src/operations/gatewayRouteConfigs.ts new file mode 100644 index 000000000000..4ac023476244 --- /dev/null +++ b/sdk/appplatform/arm-appplatform/src/operations/gatewayRouteConfigs.ts @@ -0,0 +1,527 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { GatewayRouteConfigs } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { AppPlatformManagementClient } from "../appPlatformManagementClient"; +import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; +import { LroImpl } from "../lroImpl"; +import { + GatewayRouteConfigResource, + GatewayRouteConfigsListNextOptionalParams, + GatewayRouteConfigsListOptionalParams, + GatewayRouteConfigsGetOptionalParams, + GatewayRouteConfigsGetResponse, + GatewayRouteConfigsCreateOrUpdateOptionalParams, + GatewayRouteConfigsCreateOrUpdateResponse, + GatewayRouteConfigsDeleteOptionalParams, + GatewayRouteConfigsListResponse, + GatewayRouteConfigsListNextResponse +} from "../models"; + +/// +/** Class containing GatewayRouteConfigs operations. */ +export class GatewayRouteConfigsImpl implements GatewayRouteConfigs { + private readonly client: AppPlatformManagementClient; + + /** + * Initialize a new instance of the class GatewayRouteConfigs class. + * @param client Reference to the service client + */ + constructor(client: AppPlatformManagementClient) { + this.client = client; + } + + /** + * Handle requests to list all Spring Cloud Gateway route configs. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param gatewayName The name of Spring Cloud Gateway. + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + serviceName: string, + gatewayName: string, + options?: GatewayRouteConfigsListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll( + resourceGroupName, + serviceName, + gatewayName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listPagingPage( + resourceGroupName, + serviceName, + gatewayName, + options + ); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + serviceName: string, + gatewayName: string, + options?: GatewayRouteConfigsListOptionalParams + ): AsyncIterableIterator { + let result = await this._list( + resourceGroupName, + serviceName, + gatewayName, + options + ); + yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + serviceName, + gatewayName, + continuationToken, + options + ); + continuationToken = result.nextLink; + yield result.value || []; + } + } + + private async *listPagingAll( + resourceGroupName: string, + serviceName: string, + gatewayName: string, + options?: GatewayRouteConfigsListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + serviceName, + gatewayName, + options + )) { + yield* page; + } + } + + /** + * Get the Spring Cloud Gateway route configs. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param gatewayName The name of Spring Cloud Gateway. + * @param routeConfigName The name of the Spring Cloud Gateway route config. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + gatewayName: string, + routeConfigName: string, + options?: GatewayRouteConfigsGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, gatewayName, routeConfigName, options }, + getOperationSpec + ); + } + + /** + * Create the default Spring Cloud Gateway route configs or update the existing Spring Cloud Gateway + * route configs. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param gatewayName The name of Spring Cloud Gateway. + * @param routeConfigName The name of the Spring Cloud Gateway route config. + * @param gatewayRouteConfigResource The Spring Cloud Gateway route config for the create or update + * operation + * @param options The options parameters. + */ + async beginCreateOrUpdate( + resourceGroupName: string, + serviceName: string, + gatewayName: string, + routeConfigName: string, + gatewayRouteConfigResource: GatewayRouteConfigResource, + options?: GatewayRouteConfigsCreateOrUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + GatewayRouteConfigsCreateOrUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, + { + resourceGroupName, + serviceName, + gatewayName, + routeConfigName, + gatewayRouteConfigResource, + options + }, + createOrUpdateOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + lroResourceLocationConfig: "azure-async-operation" + }); + } + + /** + * Create the default Spring Cloud Gateway route configs or update the existing Spring Cloud Gateway + * route configs. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param gatewayName The name of Spring Cloud Gateway. + * @param routeConfigName The name of the Spring Cloud Gateway route config. + * @param gatewayRouteConfigResource The Spring Cloud Gateway route config for the create or update + * operation + * @param options The options parameters. + */ + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + serviceName: string, + gatewayName: string, + routeConfigName: string, + gatewayRouteConfigResource: GatewayRouteConfigResource, + options?: GatewayRouteConfigsCreateOrUpdateOptionalParams + ): Promise { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + serviceName, + gatewayName, + routeConfigName, + gatewayRouteConfigResource, + options + ); + return poller.pollUntilDone(); + } + + /** + * Delete the Spring Cloud Gateway route config. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param gatewayName The name of Spring Cloud Gateway. + * @param routeConfigName The name of the Spring Cloud Gateway route config. + * @param options The options parameters. + */ + async beginDelete( + resourceGroupName: string, + serviceName: string, + gatewayName: string, + routeConfigName: string, + options?: GatewayRouteConfigsDeleteOptionalParams + ): Promise, void>> { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, + { resourceGroupName, serviceName, gatewayName, routeConfigName, options }, + deleteOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + lroResourceLocationConfig: "azure-async-operation" + }); + } + + /** + * Delete the Spring Cloud Gateway route config. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param gatewayName The name of Spring Cloud Gateway. + * @param routeConfigName The name of the Spring Cloud Gateway route config. + * @param options The options parameters. + */ + async beginDeleteAndWait( + resourceGroupName: string, + serviceName: string, + gatewayName: string, + routeConfigName: string, + options?: GatewayRouteConfigsDeleteOptionalParams + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + serviceName, + gatewayName, + routeConfigName, + options + ); + return poller.pollUntilDone(); + } + + /** + * Handle requests to list all Spring Cloud Gateway route configs. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param gatewayName The name of Spring Cloud Gateway. + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + serviceName: string, + gatewayName: string, + options?: GatewayRouteConfigsListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, gatewayName, options }, + listOperationSpec + ); + } + + /** + * ListNext + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param gatewayName The name of Spring Cloud Gateway. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + serviceName: string, + gatewayName: string, + nextLink: string, + options?: GatewayRouteConfigsListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, gatewayName, nextLink, options }, + listNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/routeConfigs/{routeConfigName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.GatewayRouteConfigResource + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.gatewayName, + Parameters.routeConfigName + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/routeConfigs/{routeConfigName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.GatewayRouteConfigResource + }, + 201: { + bodyMapper: Mappers.GatewayRouteConfigResource + }, + 202: { + bodyMapper: Mappers.GatewayRouteConfigResource + }, + 204: { + bodyMapper: Mappers.GatewayRouteConfigResource + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + requestBody: Parameters.gatewayRouteConfigResource, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.gatewayName, + Parameters.routeConfigName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/routeConfigs/{routeConfigName}", + httpMethod: "DELETE", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.gatewayName, + Parameters.routeConfigName + ], + headerParameters: [Parameters.accept], + serializer +}; +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/routeConfigs", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.GatewayRouteConfigResourceCollection + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.gatewayName + ], + headerParameters: [Parameters.accept], + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.GatewayRouteConfigResourceCollection + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.nextLink, + Parameters.gatewayName + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/appplatform/arm-appplatform/src/operations/gateways.ts b/sdk/appplatform/arm-appplatform/src/operations/gateways.ts new file mode 100644 index 000000000000..7f042a23a434 --- /dev/null +++ b/sdk/appplatform/arm-appplatform/src/operations/gateways.ts @@ -0,0 +1,524 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { Gateways } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { AppPlatformManagementClient } from "../appPlatformManagementClient"; +import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; +import { LroImpl } from "../lroImpl"; +import { + GatewayResource, + GatewaysListNextOptionalParams, + GatewaysListOptionalParams, + GatewaysGetOptionalParams, + GatewaysGetResponse, + GatewaysCreateOrUpdateOptionalParams, + GatewaysCreateOrUpdateResponse, + GatewaysDeleteOptionalParams, + GatewaysListResponse, + CustomDomainValidatePayload, + GatewaysValidateDomainOptionalParams, + GatewaysValidateDomainResponse, + GatewaysListNextResponse +} from "../models"; + +/// +/** Class containing Gateways operations. */ +export class GatewaysImpl implements Gateways { + private readonly client: AppPlatformManagementClient; + + /** + * Initialize a new instance of the class Gateways class. + * @param client Reference to the service client + */ + constructor(client: AppPlatformManagementClient) { + this.client = client; + } + + /** + * Handles requests to list all resources in a Service. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + serviceName: string, + options?: GatewaysListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll(resourceGroupName, serviceName, options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listPagingPage(resourceGroupName, serviceName, options); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + serviceName: string, + options?: GatewaysListOptionalParams + ): AsyncIterableIterator { + let result = await this._list(resourceGroupName, serviceName, options); + yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + serviceName, + continuationToken, + options + ); + continuationToken = result.nextLink; + yield result.value || []; + } + } + + private async *listPagingAll( + resourceGroupName: string, + serviceName: string, + options?: GatewaysListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + serviceName, + options + )) { + yield* page; + } + } + + /** + * Get the Spring Cloud Gateway and its properties. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param gatewayName The name of Spring Cloud Gateway. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + gatewayName: string, + options?: GatewaysGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, gatewayName, options }, + getOperationSpec + ); + } + + /** + * Create the default Spring Cloud Gateway or update the existing Spring Cloud Gateway. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param gatewayName The name of Spring Cloud Gateway. + * @param gatewayResource The gateway for the create or update operation + * @param options The options parameters. + */ + async beginCreateOrUpdate( + resourceGroupName: string, + serviceName: string, + gatewayName: string, + gatewayResource: GatewayResource, + options?: GatewaysCreateOrUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + GatewaysCreateOrUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, + { resourceGroupName, serviceName, gatewayName, gatewayResource, options }, + createOrUpdateOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + lroResourceLocationConfig: "azure-async-operation" + }); + } + + /** + * Create the default Spring Cloud Gateway or update the existing Spring Cloud Gateway. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param gatewayName The name of Spring Cloud Gateway. + * @param gatewayResource The gateway for the create or update operation + * @param options The options parameters. + */ + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + serviceName: string, + gatewayName: string, + gatewayResource: GatewayResource, + options?: GatewaysCreateOrUpdateOptionalParams + ): Promise { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + serviceName, + gatewayName, + gatewayResource, + options + ); + return poller.pollUntilDone(); + } + + /** + * Disable the default Spring Cloud Gateway. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param gatewayName The name of Spring Cloud Gateway. + * @param options The options parameters. + */ + async beginDelete( + resourceGroupName: string, + serviceName: string, + gatewayName: string, + options?: GatewaysDeleteOptionalParams + ): Promise, void>> { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, + { resourceGroupName, serviceName, gatewayName, options }, + deleteOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + lroResourceLocationConfig: "azure-async-operation" + }); + } + + /** + * Disable the default Spring Cloud Gateway. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param gatewayName The name of Spring Cloud Gateway. + * @param options The options parameters. + */ + async beginDeleteAndWait( + resourceGroupName: string, + serviceName: string, + gatewayName: string, + options?: GatewaysDeleteOptionalParams + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + serviceName, + gatewayName, + options + ); + return poller.pollUntilDone(); + } + + /** + * Handles requests to list all resources in a Service. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + serviceName: string, + options?: GatewaysListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, options }, + listOperationSpec + ); + } + + /** + * Check the domains are valid as well as not in use. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param gatewayName The name of Spring Cloud Gateway. + * @param validatePayload Custom domain payload to be validated + * @param options The options parameters. + */ + validateDomain( + resourceGroupName: string, + serviceName: string, + gatewayName: string, + validatePayload: CustomDomainValidatePayload, + options?: GatewaysValidateDomainOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, gatewayName, validatePayload, options }, + validateDomainOperationSpec + ); + } + + /** + * ListNext + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + serviceName: string, + nextLink: string, + options?: GatewaysListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, nextLink, options }, + listNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.GatewayResource + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.gatewayName + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.GatewayResource + }, + 201: { + bodyMapper: Mappers.GatewayResource + }, + 202: { + bodyMapper: Mappers.GatewayResource + }, + 204: { + bodyMapper: Mappers.GatewayResource + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + requestBody: Parameters.gatewayResource, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.gatewayName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}", + httpMethod: "DELETE", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.gatewayName + ], + headerParameters: [Parameters.accept], + serializer +}; +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.GatewayResourceCollection + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serviceName + ], + headerParameters: [Parameters.accept], + serializer +}; +const validateDomainOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/validateDomain", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.CustomDomainValidateResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + requestBody: Parameters.validatePayload, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.gatewayName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.GatewayResourceCollection + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.nextLink + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/appplatform/arm-appplatform/src/operations/index.ts b/sdk/appplatform/arm-appplatform/src/operations/index.ts index 188a178c5aa1..74a7d0c1f6fa 100644 --- a/sdk/appplatform/arm-appplatform/src/operations/index.ts +++ b/sdk/appplatform/arm-appplatform/src/operations/index.ts @@ -8,6 +8,12 @@ export * from "./services"; export * from "./configServers"; +export * from "./configurationServices"; +export * from "./serviceRegistries"; +export * from "./buildServiceOperations"; +export * from "./buildpackBinding"; +export * from "./buildServiceBuilder"; +export * from "./buildServiceAgentPool"; export * from "./monitoringSettings"; export * from "./apps"; export * from "./bindings"; @@ -18,3 +24,8 @@ export * from "./deployments"; export * from "./operations"; export * from "./runtimeVersions"; export * from "./skus"; +export * from "./gateways"; +export * from "./gatewayRouteConfigs"; +export * from "./gatewayCustomDomains"; +export * from "./apiPortals"; +export * from "./apiPortalCustomDomains"; diff --git a/sdk/appplatform/arm-appplatform/src/operations/serviceRegistries.ts b/sdk/appplatform/arm-appplatform/src/operations/serviceRegistries.ts new file mode 100644 index 000000000000..b9dec83fcb40 --- /dev/null +++ b/sdk/appplatform/arm-appplatform/src/operations/serviceRegistries.ts @@ -0,0 +1,467 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { ServiceRegistries } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { AppPlatformManagementClient } from "../appPlatformManagementClient"; +import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; +import { LroImpl } from "../lroImpl"; +import { + ServiceRegistryResource, + ServiceRegistriesListNextOptionalParams, + ServiceRegistriesListOptionalParams, + ServiceRegistriesGetOptionalParams, + ServiceRegistriesGetResponse, + ServiceRegistriesCreateOrUpdateOptionalParams, + ServiceRegistriesCreateOrUpdateResponse, + ServiceRegistriesDeleteOptionalParams, + ServiceRegistriesListResponse, + ServiceRegistriesListNextResponse +} from "../models"; + +/// +/** Class containing ServiceRegistries operations. */ +export class ServiceRegistriesImpl implements ServiceRegistries { + private readonly client: AppPlatformManagementClient; + + /** + * Initialize a new instance of the class ServiceRegistries class. + * @param client Reference to the service client + */ + constructor(client: AppPlatformManagementClient) { + this.client = client; + } + + /** + * Handles requests to list all resources in a Service. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + serviceName: string, + options?: ServiceRegistriesListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll(resourceGroupName, serviceName, options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listPagingPage(resourceGroupName, serviceName, options); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + serviceName: string, + options?: ServiceRegistriesListOptionalParams + ): AsyncIterableIterator { + let result = await this._list(resourceGroupName, serviceName, options); + yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + serviceName, + continuationToken, + options + ); + continuationToken = result.nextLink; + yield result.value || []; + } + } + + private async *listPagingAll( + resourceGroupName: string, + serviceName: string, + options?: ServiceRegistriesListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + serviceName, + options + )) { + yield* page; + } + } + + /** + * Get the Service Registry and its properties. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param serviceRegistryName The name of Service Registry. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + serviceRegistryName: string, + options?: ServiceRegistriesGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, serviceRegistryName, options }, + getOperationSpec + ); + } + + /** + * Create the default Service Registry or update the existing Service Registry. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param serviceRegistryName The name of Service Registry. + * @param options The options parameters. + */ + async beginCreateOrUpdate( + resourceGroupName: string, + serviceName: string, + serviceRegistryName: string, + options?: ServiceRegistriesCreateOrUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + ServiceRegistriesCreateOrUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, + { resourceGroupName, serviceName, serviceRegistryName, options }, + createOrUpdateOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + lroResourceLocationConfig: "azure-async-operation" + }); + } + + /** + * Create the default Service Registry or update the existing Service Registry. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param serviceRegistryName The name of Service Registry. + * @param options The options parameters. + */ + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + serviceName: string, + serviceRegistryName: string, + options?: ServiceRegistriesCreateOrUpdateOptionalParams + ): Promise { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + serviceName, + serviceRegistryName, + options + ); + return poller.pollUntilDone(); + } + + /** + * Disable the default Service Registry. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param serviceRegistryName The name of Service Registry. + * @param options The options parameters. + */ + async beginDelete( + resourceGroupName: string, + serviceName: string, + serviceRegistryName: string, + options?: ServiceRegistriesDeleteOptionalParams + ): Promise, void>> { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, + { resourceGroupName, serviceName, serviceRegistryName, options }, + deleteOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + lroResourceLocationConfig: "azure-async-operation" + }); + } + + /** + * Disable the default Service Registry. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param serviceRegistryName The name of Service Registry. + * @param options The options parameters. + */ + async beginDeleteAndWait( + resourceGroupName: string, + serviceName: string, + serviceRegistryName: string, + options?: ServiceRegistriesDeleteOptionalParams + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + serviceName, + serviceRegistryName, + options + ); + return poller.pollUntilDone(); + } + + /** + * Handles requests to list all resources in a Service. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + serviceName: string, + options?: ServiceRegistriesListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, options }, + listOperationSpec + ); + } + + /** + * ListNext + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + serviceName: string, + nextLink: string, + options?: ServiceRegistriesListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, nextLink, options }, + listNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/serviceRegistries/{serviceRegistryName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ServiceRegistryResource + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.serviceRegistryName + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/serviceRegistries/{serviceRegistryName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.ServiceRegistryResource + }, + 201: { + bodyMapper: Mappers.ServiceRegistryResource + }, + 202: { + bodyMapper: Mappers.ServiceRegistryResource + }, + 204: { + bodyMapper: Mappers.ServiceRegistryResource + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.serviceRegistryName + ], + headerParameters: [Parameters.accept], + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/serviceRegistries/{serviceRegistryName}", + httpMethod: "DELETE", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.serviceRegistryName + ], + headerParameters: [Parameters.accept], + serializer +}; +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/serviceRegistries", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ServiceRegistryResourceCollection + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serviceName + ], + headerParameters: [Parameters.accept], + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ServiceRegistryResourceCollection + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.nextLink + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/apiPortalCustomDomains.ts b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/apiPortalCustomDomains.ts new file mode 100644 index 000000000000..28a46086f61a --- /dev/null +++ b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/apiPortalCustomDomains.ts @@ -0,0 +1,127 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { + ApiPortalCustomDomainResource, + ApiPortalCustomDomainsListOptionalParams, + ApiPortalCustomDomainsGetOptionalParams, + ApiPortalCustomDomainsGetResponse, + ApiPortalCustomDomainsCreateOrUpdateOptionalParams, + ApiPortalCustomDomainsCreateOrUpdateResponse, + ApiPortalCustomDomainsDeleteOptionalParams +} from "../models"; + +/// +/** Interface representing a ApiPortalCustomDomains. */ +export interface ApiPortalCustomDomains { + /** + * Handle requests to list all API portal custom domains. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param apiPortalName The name of API portal. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + serviceName: string, + apiPortalName: string, + options?: ApiPortalCustomDomainsListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Get the API portal custom domain. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param apiPortalName The name of API portal. + * @param domainName The name of the API portal custom domain. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + apiPortalName: string, + domainName: string, + options?: ApiPortalCustomDomainsGetOptionalParams + ): Promise; + /** + * Create or update the API portal custom domain. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param apiPortalName The name of API portal. + * @param domainName The name of the API portal custom domain. + * @param apiPortalCustomDomainResource The API portal custom domain for the create or update operation + * @param options The options parameters. + */ + beginCreateOrUpdate( + resourceGroupName: string, + serviceName: string, + apiPortalName: string, + domainName: string, + apiPortalCustomDomainResource: ApiPortalCustomDomainResource, + options?: ApiPortalCustomDomainsCreateOrUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + ApiPortalCustomDomainsCreateOrUpdateResponse + > + >; + /** + * Create or update the API portal custom domain. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param apiPortalName The name of API portal. + * @param domainName The name of the API portal custom domain. + * @param apiPortalCustomDomainResource The API portal custom domain for the create or update operation + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + serviceName: string, + apiPortalName: string, + domainName: string, + apiPortalCustomDomainResource: ApiPortalCustomDomainResource, + options?: ApiPortalCustomDomainsCreateOrUpdateOptionalParams + ): Promise; + /** + * Delete the API portal custom domain. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param apiPortalName The name of API portal. + * @param domainName The name of the API portal custom domain. + * @param options The options parameters. + */ + beginDelete( + resourceGroupName: string, + serviceName: string, + apiPortalName: string, + domainName: string, + options?: ApiPortalCustomDomainsDeleteOptionalParams + ): Promise, void>>; + /** + * Delete the API portal custom domain. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param apiPortalName The name of API portal. + * @param domainName The name of the API portal custom domain. + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + serviceName: string, + apiPortalName: string, + domainName: string, + options?: ApiPortalCustomDomainsDeleteOptionalParams + ): Promise; +} diff --git a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/apiPortals.ts b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/apiPortals.ts new file mode 100644 index 000000000000..0f5edd60121f --- /dev/null +++ b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/apiPortals.ts @@ -0,0 +1,134 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { + ApiPortalResource, + ApiPortalsListOptionalParams, + ApiPortalsGetOptionalParams, + ApiPortalsGetResponse, + ApiPortalsCreateOrUpdateOptionalParams, + ApiPortalsCreateOrUpdateResponse, + ApiPortalsDeleteOptionalParams, + CustomDomainValidatePayload, + ApiPortalsValidateDomainOptionalParams, + ApiPortalsValidateDomainResponse +} from "../models"; + +/// +/** Interface representing a ApiPortals. */ +export interface ApiPortals { + /** + * Handles requests to list all resources in a Service. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + serviceName: string, + options?: ApiPortalsListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Get the API portal and its properties. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param apiPortalName The name of API portal. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + apiPortalName: string, + options?: ApiPortalsGetOptionalParams + ): Promise; + /** + * Create the default API portal or update the existing API portal. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param apiPortalName The name of API portal. + * @param apiPortalResource The API portal for the create or update operation + * @param options The options parameters. + */ + beginCreateOrUpdate( + resourceGroupName: string, + serviceName: string, + apiPortalName: string, + apiPortalResource: ApiPortalResource, + options?: ApiPortalsCreateOrUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + ApiPortalsCreateOrUpdateResponse + > + >; + /** + * Create the default API portal or update the existing API portal. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param apiPortalName The name of API portal. + * @param apiPortalResource The API portal for the create or update operation + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + serviceName: string, + apiPortalName: string, + apiPortalResource: ApiPortalResource, + options?: ApiPortalsCreateOrUpdateOptionalParams + ): Promise; + /** + * Delete the default API portal. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param apiPortalName The name of API portal. + * @param options The options parameters. + */ + beginDelete( + resourceGroupName: string, + serviceName: string, + apiPortalName: string, + options?: ApiPortalsDeleteOptionalParams + ): Promise, void>>; + /** + * Delete the default API portal. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param apiPortalName The name of API portal. + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + serviceName: string, + apiPortalName: string, + options?: ApiPortalsDeleteOptionalParams + ): Promise; + /** + * Check the domains are valid as well as not in use. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param apiPortalName The name of API portal. + * @param validatePayload Custom domain payload to be validated + * @param options The options parameters. + */ + validateDomain( + resourceGroupName: string, + serviceName: string, + apiPortalName: string, + validatePayload: CustomDomainValidatePayload, + options?: ApiPortalsValidateDomainOptionalParams + ): Promise; +} diff --git a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/apps.ts b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/apps.ts index 2e0ffa117e65..cc4e22f5b84e 100644 --- a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/apps.ts +++ b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/apps.ts @@ -20,6 +20,9 @@ import { AppsUpdateResponse, AppsGetResourceUploadUrlOptionalParams, AppsGetResourceUploadUrlResponse, + ActiveDeploymentCollection, + AppsSetActiveDeploymentsOptionalParams, + AppsSetActiveDeploymentsResponse, CustomDomainValidatePayload, AppsValidateDomainOptionalParams, AppsValidateDomainResponse @@ -167,6 +170,43 @@ export interface Apps { appName: string, options?: AppsGetResourceUploadUrlOptionalParams ): Promise; + /** + * Set existing Deployment under the app as active + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param appName The name of the App resource. + * @param activeDeploymentCollection A list of Deployment name to be active. + * @param options The options parameters. + */ + beginSetActiveDeployments( + resourceGroupName: string, + serviceName: string, + appName: string, + activeDeploymentCollection: ActiveDeploymentCollection, + options?: AppsSetActiveDeploymentsOptionalParams + ): Promise< + PollerLike< + PollOperationState, + AppsSetActiveDeploymentsResponse + > + >; + /** + * Set existing Deployment under the app as active + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param appName The name of the App resource. + * @param activeDeploymentCollection A list of Deployment name to be active. + * @param options The options parameters. + */ + beginSetActiveDeploymentsAndWait( + resourceGroupName: string, + serviceName: string, + appName: string, + activeDeploymentCollection: ActiveDeploymentCollection, + options?: AppsSetActiveDeploymentsOptionalParams + ): Promise; /** * Check the resource name is valid as well as not in use. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain diff --git a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/buildServiceAgentPool.ts b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/buildServiceAgentPool.ts new file mode 100644 index 000000000000..afd6bc929efc --- /dev/null +++ b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/buildServiceAgentPool.ts @@ -0,0 +1,94 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { + BuildServiceAgentPoolResource, + BuildServiceAgentPoolListOptionalParams, + BuildServiceAgentPoolGetOptionalParams, + BuildServiceAgentPoolGetResponse, + BuildServiceAgentPoolUpdatePutOptionalParams, + BuildServiceAgentPoolUpdatePutResponse +} from "../models"; + +/// +/** Interface representing a BuildServiceAgentPool. */ +export interface BuildServiceAgentPool { + /** + * List build service agent pool. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param buildServiceName The name of the build service resource. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + serviceName: string, + buildServiceName: string, + options?: BuildServiceAgentPoolListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Get build service agent pool. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param buildServiceName The name of the build service resource. + * @param agentPoolName The name of the build service agent pool resource. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + buildServiceName: string, + agentPoolName: string, + options?: BuildServiceAgentPoolGetOptionalParams + ): Promise; + /** + * Create or update build service agent pool. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param buildServiceName The name of the build service resource. + * @param agentPoolName The name of the build service agent pool resource. + * @param agentPoolResource Parameters for the update operation + * @param options The options parameters. + */ + beginUpdatePut( + resourceGroupName: string, + serviceName: string, + buildServiceName: string, + agentPoolName: string, + agentPoolResource: BuildServiceAgentPoolResource, + options?: BuildServiceAgentPoolUpdatePutOptionalParams + ): Promise< + PollerLike< + PollOperationState, + BuildServiceAgentPoolUpdatePutResponse + > + >; + /** + * Create or update build service agent pool. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param buildServiceName The name of the build service resource. + * @param agentPoolName The name of the build service agent pool resource. + * @param agentPoolResource Parameters for the update operation + * @param options The options parameters. + */ + beginUpdatePutAndWait( + resourceGroupName: string, + serviceName: string, + buildServiceName: string, + agentPoolName: string, + agentPoolResource: BuildServiceAgentPoolResource, + options?: BuildServiceAgentPoolUpdatePutOptionalParams + ): Promise; +} diff --git a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/buildServiceBuilder.ts b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/buildServiceBuilder.ts new file mode 100644 index 000000000000..b5dac3a6acb2 --- /dev/null +++ b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/buildServiceBuilder.ts @@ -0,0 +1,127 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { + BuilderResource, + BuildServiceBuilderListOptionalParams, + BuildServiceBuilderGetOptionalParams, + BuildServiceBuilderGetResponse, + BuildServiceBuilderCreateOrUpdateOptionalParams, + BuildServiceBuilderCreateOrUpdateResponse, + BuildServiceBuilderDeleteOptionalParams +} from "../models"; + +/// +/** Interface representing a BuildServiceBuilder. */ +export interface BuildServiceBuilder { + /** + * List KPack builders result. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param buildServiceName The name of the build service resource. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + serviceName: string, + buildServiceName: string, + options?: BuildServiceBuilderListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Get a KPack builder. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param buildServiceName The name of the build service resource. + * @param builderName The name of the builder resource. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + buildServiceName: string, + builderName: string, + options?: BuildServiceBuilderGetOptionalParams + ): Promise; + /** + * Create or update a KPack builder. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param buildServiceName The name of the build service resource. + * @param builderName The name of the builder resource. + * @param builderResource The target builder for the create or update operation + * @param options The options parameters. + */ + beginCreateOrUpdate( + resourceGroupName: string, + serviceName: string, + buildServiceName: string, + builderName: string, + builderResource: BuilderResource, + options?: BuildServiceBuilderCreateOrUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + BuildServiceBuilderCreateOrUpdateResponse + > + >; + /** + * Create or update a KPack builder. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param buildServiceName The name of the build service resource. + * @param builderName The name of the builder resource. + * @param builderResource The target builder for the create or update operation + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + serviceName: string, + buildServiceName: string, + builderName: string, + builderResource: BuilderResource, + options?: BuildServiceBuilderCreateOrUpdateOptionalParams + ): Promise; + /** + * Delete a KPack builder. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param buildServiceName The name of the build service resource. + * @param builderName The name of the builder resource. + * @param options The options parameters. + */ + beginDelete( + resourceGroupName: string, + serviceName: string, + buildServiceName: string, + builderName: string, + options?: BuildServiceBuilderDeleteOptionalParams + ): Promise, void>>; + /** + * Delete a KPack builder. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param buildServiceName The name of the build service resource. + * @param builderName The name of the builder resource. + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + serviceName: string, + buildServiceName: string, + builderName: string, + options?: BuildServiceBuilderDeleteOptionalParams + ): Promise; +} diff --git a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/buildServiceOperations.ts b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/buildServiceOperations.ts new file mode 100644 index 000000000000..190b4a5d14ba --- /dev/null +++ b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/buildServiceOperations.ts @@ -0,0 +1,242 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + BuildService, + BuildServiceListBuildServicesOptionalParams, + Build, + BuildServiceListBuildsOptionalParams, + BuildResult, + BuildServiceListBuildResultsOptionalParams, + BuildServiceGetBuildServiceOptionalParams, + BuildServiceGetBuildServiceResponse, + BuildServiceGetBuildOptionalParams, + BuildServiceGetBuildResponse, + BuildServiceCreateOrUpdateBuildOptionalParams, + BuildServiceCreateOrUpdateBuildResponse, + BuildServiceGetBuildResultOptionalParams, + BuildServiceGetBuildResultResponse, + BuildServiceGetBuildResultLogOptionalParams, + BuildServiceGetBuildResultLogResponse, + BuildServiceGetResourceUploadUrlOptionalParams, + BuildServiceGetResourceUploadUrlResponse, + BuildServiceListSupportedBuildpacksOptionalParams, + BuildServiceListSupportedBuildpacksResponse, + BuildServiceGetSupportedBuildpackOptionalParams, + BuildServiceGetSupportedBuildpackResponse, + BuildServiceListSupportedStacksOptionalParams, + BuildServiceListSupportedStacksResponse, + BuildServiceGetSupportedStackOptionalParams, + BuildServiceGetSupportedStackResponse +} from "../models"; + +/// +/** Interface representing a BuildServiceOperations. */ +export interface BuildServiceOperations { + /** + * List build services resource. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param options The options parameters. + */ + listBuildServices( + resourceGroupName: string, + serviceName: string, + options?: BuildServiceListBuildServicesOptionalParams + ): PagedAsyncIterableIterator; + /** + * List KPack builds. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param buildServiceName The name of the build service resource. + * @param options The options parameters. + */ + listBuilds( + resourceGroupName: string, + serviceName: string, + buildServiceName: string, + options?: BuildServiceListBuildsOptionalParams + ): PagedAsyncIterableIterator; + /** + * List KPack build results. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param buildServiceName The name of the build service resource. + * @param buildName The name of the build resource. + * @param options The options parameters. + */ + listBuildResults( + resourceGroupName: string, + serviceName: string, + buildServiceName: string, + buildName: string, + options?: BuildServiceListBuildResultsOptionalParams + ): PagedAsyncIterableIterator; + /** + * Get a build service resource. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param buildServiceName The name of the build service resource. + * @param options The options parameters. + */ + getBuildService( + resourceGroupName: string, + serviceName: string, + buildServiceName: string, + options?: BuildServiceGetBuildServiceOptionalParams + ): Promise; + /** + * Get a KPack build. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param buildServiceName The name of the build service resource. + * @param buildName The name of the build resource. + * @param options The options parameters. + */ + getBuild( + resourceGroupName: string, + serviceName: string, + buildServiceName: string, + buildName: string, + options?: BuildServiceGetBuildOptionalParams + ): Promise; + /** + * Create or update a KPack build. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param buildServiceName The name of the build service resource. + * @param buildName The name of the build resource. + * @param build Parameters for the create or update operation + * @param options The options parameters. + */ + createOrUpdateBuild( + resourceGroupName: string, + serviceName: string, + buildServiceName: string, + buildName: string, + build: Build, + options?: BuildServiceCreateOrUpdateBuildOptionalParams + ): Promise; + /** + * Get a KPack build result. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param buildServiceName The name of the build service resource. + * @param buildName The name of the build resource. + * @param buildResultName The name of the build result resource. + * @param options The options parameters. + */ + getBuildResult( + resourceGroupName: string, + serviceName: string, + buildServiceName: string, + buildName: string, + buildResultName: string, + options?: BuildServiceGetBuildResultOptionalParams + ): Promise; + /** + * Get a KPack build result log download URL. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param buildServiceName The name of the build service resource. + * @param buildName The name of the build resource. + * @param buildResultName The name of the build result resource. + * @param options The options parameters. + */ + getBuildResultLog( + resourceGroupName: string, + serviceName: string, + buildServiceName: string, + buildName: string, + buildResultName: string, + options?: BuildServiceGetBuildResultLogOptionalParams + ): Promise; + /** + * Get an resource upload URL for build service, which may be artifacts or source archive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param buildServiceName The name of the build service resource. + * @param options The options parameters. + */ + getResourceUploadUrl( + resourceGroupName: string, + serviceName: string, + buildServiceName: string, + options?: BuildServiceGetResourceUploadUrlOptionalParams + ): Promise; + /** + * Get all supported buildpacks. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param buildServiceName The name of the build service resource. + * @param options The options parameters. + */ + listSupportedBuildpacks( + resourceGroupName: string, + serviceName: string, + buildServiceName: string, + options?: BuildServiceListSupportedBuildpacksOptionalParams + ): Promise; + /** + * Get the supported buildpack resource. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param buildServiceName The name of the build service resource. + * @param buildpackName The name of the buildpack resource. + * @param options The options parameters. + */ + getSupportedBuildpack( + resourceGroupName: string, + serviceName: string, + buildServiceName: string, + buildpackName: string, + options?: BuildServiceGetSupportedBuildpackOptionalParams + ): Promise; + /** + * Get all supported stacks. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param buildServiceName The name of the build service resource. + * @param options The options parameters. + */ + listSupportedStacks( + resourceGroupName: string, + serviceName: string, + buildServiceName: string, + options?: BuildServiceListSupportedStacksOptionalParams + ): Promise; + /** + * Get the supported stack resource. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param buildServiceName The name of the build service resource. + * @param stackName The name of the stack resource. + * @param options The options parameters. + */ + getSupportedStack( + resourceGroupName: string, + serviceName: string, + buildServiceName: string, + stackName: string, + options?: BuildServiceGetSupportedStackOptionalParams + ): Promise; +} diff --git a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/buildpackBinding.ts b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/buildpackBinding.ts new file mode 100644 index 000000000000..315328b4ad19 --- /dev/null +++ b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/buildpackBinding.ts @@ -0,0 +1,139 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { + BuildpackBindingResource, + BuildpackBindingListOptionalParams, + BuildpackBindingGetOptionalParams, + BuildpackBindingGetResponse, + BuildpackBindingCreateOrUpdateOptionalParams, + BuildpackBindingCreateOrUpdateResponse, + BuildpackBindingDeleteOptionalParams +} from "../models"; + +/// +/** Interface representing a BuildpackBinding. */ +export interface BuildpackBinding { + /** + * Handles requests to list all buildpack bindings in a builder. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param buildServiceName The name of the build service resource. + * @param builderName The name of the builder resource. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + serviceName: string, + buildServiceName: string, + builderName: string, + options?: BuildpackBindingListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Get a buildpack binding by name. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param buildServiceName The name of the build service resource. + * @param builderName The name of the builder resource. + * @param buildpackBindingName The name of the Buildpack Binding Name + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + buildServiceName: string, + builderName: string, + buildpackBindingName: string, + options?: BuildpackBindingGetOptionalParams + ): Promise; + /** + * Create or update a buildpack binding. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param buildServiceName The name of the build service resource. + * @param builderName The name of the builder resource. + * @param buildpackBindingName The name of the Buildpack Binding Name + * @param buildpackBinding The target buildpack binding for the create or update operation + * @param options The options parameters. + */ + beginCreateOrUpdate( + resourceGroupName: string, + serviceName: string, + buildServiceName: string, + builderName: string, + buildpackBindingName: string, + buildpackBinding: BuildpackBindingResource, + options?: BuildpackBindingCreateOrUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + BuildpackBindingCreateOrUpdateResponse + > + >; + /** + * Create or update a buildpack binding. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param buildServiceName The name of the build service resource. + * @param builderName The name of the builder resource. + * @param buildpackBindingName The name of the Buildpack Binding Name + * @param buildpackBinding The target buildpack binding for the create or update operation + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + serviceName: string, + buildServiceName: string, + builderName: string, + buildpackBindingName: string, + buildpackBinding: BuildpackBindingResource, + options?: BuildpackBindingCreateOrUpdateOptionalParams + ): Promise; + /** + * Operation to delete a Buildpack Binding + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param buildServiceName The name of the build service resource. + * @param builderName The name of the builder resource. + * @param buildpackBindingName The name of the Buildpack Binding Name + * @param options The options parameters. + */ + beginDelete( + resourceGroupName: string, + serviceName: string, + buildServiceName: string, + builderName: string, + buildpackBindingName: string, + options?: BuildpackBindingDeleteOptionalParams + ): Promise, void>>; + /** + * Operation to delete a Buildpack Binding + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param buildServiceName The name of the build service resource. + * @param builderName The name of the builder resource. + * @param buildpackBindingName The name of the Buildpack Binding Name + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + serviceName: string, + buildServiceName: string, + builderName: string, + buildpackBindingName: string, + options?: BuildpackBindingDeleteOptionalParams + ): Promise; +} diff --git a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/configurationServices.ts b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/configurationServices.ts new file mode 100644 index 000000000000..efa5850cc5b4 --- /dev/null +++ b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/configurationServices.ts @@ -0,0 +1,157 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { + ConfigurationServiceResource, + ConfigurationServicesListOptionalParams, + ConfigurationServicesGetOptionalParams, + ConfigurationServicesGetResponse, + ConfigurationServicesCreateOrUpdateOptionalParams, + ConfigurationServicesCreateOrUpdateResponse, + ConfigurationServicesDeleteOptionalParams, + ConfigurationServiceSettings, + ConfigurationServicesValidateOptionalParams, + ConfigurationServicesValidateResponse +} from "../models"; + +/// +/** Interface representing a ConfigurationServices. */ +export interface ConfigurationServices { + /** + * Handles requests to list all resources in a Service. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + serviceName: string, + options?: ConfigurationServicesListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Get the Application Configuration Service and its properties. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param configurationServiceName The name of Application Configuration Service. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + configurationServiceName: string, + options?: ConfigurationServicesGetOptionalParams + ): Promise; + /** + * Create the default Application Configuration Service or update the existing Application + * Configuration Service. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param configurationServiceName The name of Application Configuration Service. + * @param configurationServiceResource Parameters for the update operation + * @param options The options parameters. + */ + beginCreateOrUpdate( + resourceGroupName: string, + serviceName: string, + configurationServiceName: string, + configurationServiceResource: ConfigurationServiceResource, + options?: ConfigurationServicesCreateOrUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + ConfigurationServicesCreateOrUpdateResponse + > + >; + /** + * Create the default Application Configuration Service or update the existing Application + * Configuration Service. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param configurationServiceName The name of Application Configuration Service. + * @param configurationServiceResource Parameters for the update operation + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + serviceName: string, + configurationServiceName: string, + configurationServiceResource: ConfigurationServiceResource, + options?: ConfigurationServicesCreateOrUpdateOptionalParams + ): Promise; + /** + * Disable the default Application Configuration Service. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param configurationServiceName The name of Application Configuration Service. + * @param options The options parameters. + */ + beginDelete( + resourceGroupName: string, + serviceName: string, + configurationServiceName: string, + options?: ConfigurationServicesDeleteOptionalParams + ): Promise, void>>; + /** + * Disable the default Application Configuration Service. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param configurationServiceName The name of Application Configuration Service. + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + serviceName: string, + configurationServiceName: string, + options?: ConfigurationServicesDeleteOptionalParams + ): Promise; + /** + * Check if the Application Configuration Service settings are valid. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param configurationServiceName The name of Application Configuration Service. + * @param settings Application Configuration Service settings to be validated + * @param options The options parameters. + */ + beginValidate( + resourceGroupName: string, + serviceName: string, + configurationServiceName: string, + settings: ConfigurationServiceSettings, + options?: ConfigurationServicesValidateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + ConfigurationServicesValidateResponse + > + >; + /** + * Check if the Application Configuration Service settings are valid. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param configurationServiceName The name of Application Configuration Service. + * @param settings Application Configuration Service settings to be validated + * @param options The options parameters. + */ + beginValidateAndWait( + resourceGroupName: string, + serviceName: string, + configurationServiceName: string, + settings: ConfigurationServiceSettings, + options?: ConfigurationServicesValidateOptionalParams + ): Promise; +} diff --git a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/gatewayCustomDomains.ts b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/gatewayCustomDomains.ts new file mode 100644 index 000000000000..fd8cfb52a05f --- /dev/null +++ b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/gatewayCustomDomains.ts @@ -0,0 +1,129 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { + GatewayCustomDomainResource, + GatewayCustomDomainsListOptionalParams, + GatewayCustomDomainsGetOptionalParams, + GatewayCustomDomainsGetResponse, + GatewayCustomDomainsCreateOrUpdateOptionalParams, + GatewayCustomDomainsCreateOrUpdateResponse, + GatewayCustomDomainsDeleteOptionalParams +} from "../models"; + +/// +/** Interface representing a GatewayCustomDomains. */ +export interface GatewayCustomDomains { + /** + * Handle requests to list all Spring Cloud Gateway custom domains. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param gatewayName The name of Spring Cloud Gateway. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + serviceName: string, + gatewayName: string, + options?: GatewayCustomDomainsListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Get the Spring Cloud Gateway custom domain. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param gatewayName The name of Spring Cloud Gateway. + * @param domainName The name of the Spring Cloud Gateway custom domain. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + gatewayName: string, + domainName: string, + options?: GatewayCustomDomainsGetOptionalParams + ): Promise; + /** + * Create or update the Spring Cloud Gateway custom domain. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param gatewayName The name of Spring Cloud Gateway. + * @param domainName The name of the Spring Cloud Gateway custom domain. + * @param gatewayCustomDomainResource The gateway custom domain resource for the create or update + * operation + * @param options The options parameters. + */ + beginCreateOrUpdate( + resourceGroupName: string, + serviceName: string, + gatewayName: string, + domainName: string, + gatewayCustomDomainResource: GatewayCustomDomainResource, + options?: GatewayCustomDomainsCreateOrUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + GatewayCustomDomainsCreateOrUpdateResponse + > + >; + /** + * Create or update the Spring Cloud Gateway custom domain. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param gatewayName The name of Spring Cloud Gateway. + * @param domainName The name of the Spring Cloud Gateway custom domain. + * @param gatewayCustomDomainResource The gateway custom domain resource for the create or update + * operation + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + serviceName: string, + gatewayName: string, + domainName: string, + gatewayCustomDomainResource: GatewayCustomDomainResource, + options?: GatewayCustomDomainsCreateOrUpdateOptionalParams + ): Promise; + /** + * Delete the Spring Cloud Gateway custom domain. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param gatewayName The name of Spring Cloud Gateway. + * @param domainName The name of the Spring Cloud Gateway custom domain. + * @param options The options parameters. + */ + beginDelete( + resourceGroupName: string, + serviceName: string, + gatewayName: string, + domainName: string, + options?: GatewayCustomDomainsDeleteOptionalParams + ): Promise, void>>; + /** + * Delete the Spring Cloud Gateway custom domain. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param gatewayName The name of Spring Cloud Gateway. + * @param domainName The name of the Spring Cloud Gateway custom domain. + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + serviceName: string, + gatewayName: string, + domainName: string, + options?: GatewayCustomDomainsDeleteOptionalParams + ): Promise; +} diff --git a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/gatewayRouteConfigs.ts b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/gatewayRouteConfigs.ts new file mode 100644 index 000000000000..a687db447dd2 --- /dev/null +++ b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/gatewayRouteConfigs.ts @@ -0,0 +1,131 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { + GatewayRouteConfigResource, + GatewayRouteConfigsListOptionalParams, + GatewayRouteConfigsGetOptionalParams, + GatewayRouteConfigsGetResponse, + GatewayRouteConfigsCreateOrUpdateOptionalParams, + GatewayRouteConfigsCreateOrUpdateResponse, + GatewayRouteConfigsDeleteOptionalParams +} from "../models"; + +/// +/** Interface representing a GatewayRouteConfigs. */ +export interface GatewayRouteConfigs { + /** + * Handle requests to list all Spring Cloud Gateway route configs. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param gatewayName The name of Spring Cloud Gateway. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + serviceName: string, + gatewayName: string, + options?: GatewayRouteConfigsListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Get the Spring Cloud Gateway route configs. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param gatewayName The name of Spring Cloud Gateway. + * @param routeConfigName The name of the Spring Cloud Gateway route config. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + gatewayName: string, + routeConfigName: string, + options?: GatewayRouteConfigsGetOptionalParams + ): Promise; + /** + * Create the default Spring Cloud Gateway route configs or update the existing Spring Cloud Gateway + * route configs. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param gatewayName The name of Spring Cloud Gateway. + * @param routeConfigName The name of the Spring Cloud Gateway route config. + * @param gatewayRouteConfigResource The Spring Cloud Gateway route config for the create or update + * operation + * @param options The options parameters. + */ + beginCreateOrUpdate( + resourceGroupName: string, + serviceName: string, + gatewayName: string, + routeConfigName: string, + gatewayRouteConfigResource: GatewayRouteConfigResource, + options?: GatewayRouteConfigsCreateOrUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + GatewayRouteConfigsCreateOrUpdateResponse + > + >; + /** + * Create the default Spring Cloud Gateway route configs or update the existing Spring Cloud Gateway + * route configs. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param gatewayName The name of Spring Cloud Gateway. + * @param routeConfigName The name of the Spring Cloud Gateway route config. + * @param gatewayRouteConfigResource The Spring Cloud Gateway route config for the create or update + * operation + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + serviceName: string, + gatewayName: string, + routeConfigName: string, + gatewayRouteConfigResource: GatewayRouteConfigResource, + options?: GatewayRouteConfigsCreateOrUpdateOptionalParams + ): Promise; + /** + * Delete the Spring Cloud Gateway route config. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param gatewayName The name of Spring Cloud Gateway. + * @param routeConfigName The name of the Spring Cloud Gateway route config. + * @param options The options parameters. + */ + beginDelete( + resourceGroupName: string, + serviceName: string, + gatewayName: string, + routeConfigName: string, + options?: GatewayRouteConfigsDeleteOptionalParams + ): Promise, void>>; + /** + * Delete the Spring Cloud Gateway route config. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param gatewayName The name of Spring Cloud Gateway. + * @param routeConfigName The name of the Spring Cloud Gateway route config. + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + serviceName: string, + gatewayName: string, + routeConfigName: string, + options?: GatewayRouteConfigsDeleteOptionalParams + ): Promise; +} diff --git a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/gateways.ts b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/gateways.ts new file mode 100644 index 000000000000..9f95eea1bc7a --- /dev/null +++ b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/gateways.ts @@ -0,0 +1,134 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { + GatewayResource, + GatewaysListOptionalParams, + GatewaysGetOptionalParams, + GatewaysGetResponse, + GatewaysCreateOrUpdateOptionalParams, + GatewaysCreateOrUpdateResponse, + GatewaysDeleteOptionalParams, + CustomDomainValidatePayload, + GatewaysValidateDomainOptionalParams, + GatewaysValidateDomainResponse +} from "../models"; + +/// +/** Interface representing a Gateways. */ +export interface Gateways { + /** + * Handles requests to list all resources in a Service. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + serviceName: string, + options?: GatewaysListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Get the Spring Cloud Gateway and its properties. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param gatewayName The name of Spring Cloud Gateway. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + gatewayName: string, + options?: GatewaysGetOptionalParams + ): Promise; + /** + * Create the default Spring Cloud Gateway or update the existing Spring Cloud Gateway. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param gatewayName The name of Spring Cloud Gateway. + * @param gatewayResource The gateway for the create or update operation + * @param options The options parameters. + */ + beginCreateOrUpdate( + resourceGroupName: string, + serviceName: string, + gatewayName: string, + gatewayResource: GatewayResource, + options?: GatewaysCreateOrUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + GatewaysCreateOrUpdateResponse + > + >; + /** + * Create the default Spring Cloud Gateway or update the existing Spring Cloud Gateway. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param gatewayName The name of Spring Cloud Gateway. + * @param gatewayResource The gateway for the create or update operation + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + serviceName: string, + gatewayName: string, + gatewayResource: GatewayResource, + options?: GatewaysCreateOrUpdateOptionalParams + ): Promise; + /** + * Disable the default Spring Cloud Gateway. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param gatewayName The name of Spring Cloud Gateway. + * @param options The options parameters. + */ + beginDelete( + resourceGroupName: string, + serviceName: string, + gatewayName: string, + options?: GatewaysDeleteOptionalParams + ): Promise, void>>; + /** + * Disable the default Spring Cloud Gateway. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param gatewayName The name of Spring Cloud Gateway. + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + serviceName: string, + gatewayName: string, + options?: GatewaysDeleteOptionalParams + ): Promise; + /** + * Check the domains are valid as well as not in use. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param gatewayName The name of Spring Cloud Gateway. + * @param validatePayload Custom domain payload to be validated + * @param options The options parameters. + */ + validateDomain( + resourceGroupName: string, + serviceName: string, + gatewayName: string, + validatePayload: CustomDomainValidatePayload, + options?: GatewaysValidateDomainOptionalParams + ): Promise; +} diff --git a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/index.ts b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/index.ts index 188a178c5aa1..74a7d0c1f6fa 100644 --- a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/index.ts +++ b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/index.ts @@ -8,6 +8,12 @@ export * from "./services"; export * from "./configServers"; +export * from "./configurationServices"; +export * from "./serviceRegistries"; +export * from "./buildServiceOperations"; +export * from "./buildpackBinding"; +export * from "./buildServiceBuilder"; +export * from "./buildServiceAgentPool"; export * from "./monitoringSettings"; export * from "./apps"; export * from "./bindings"; @@ -18,3 +24,8 @@ export * from "./deployments"; export * from "./operations"; export * from "./runtimeVersions"; export * from "./skus"; +export * from "./gateways"; +export * from "./gatewayRouteConfigs"; +export * from "./gatewayCustomDomains"; +export * from "./apiPortals"; +export * from "./apiPortalCustomDomains"; diff --git a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/serviceRegistries.ts b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/serviceRegistries.ts new file mode 100644 index 000000000000..80530d77793b --- /dev/null +++ b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/serviceRegistries.ts @@ -0,0 +1,111 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { + ServiceRegistryResource, + ServiceRegistriesListOptionalParams, + ServiceRegistriesGetOptionalParams, + ServiceRegistriesGetResponse, + ServiceRegistriesCreateOrUpdateOptionalParams, + ServiceRegistriesCreateOrUpdateResponse, + ServiceRegistriesDeleteOptionalParams +} from "../models"; + +/// +/** Interface representing a ServiceRegistries. */ +export interface ServiceRegistries { + /** + * Handles requests to list all resources in a Service. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + serviceName: string, + options?: ServiceRegistriesListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Get the Service Registry and its properties. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param serviceRegistryName The name of Service Registry. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + serviceRegistryName: string, + options?: ServiceRegistriesGetOptionalParams + ): Promise; + /** + * Create the default Service Registry or update the existing Service Registry. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param serviceRegistryName The name of Service Registry. + * @param options The options parameters. + */ + beginCreateOrUpdate( + resourceGroupName: string, + serviceName: string, + serviceRegistryName: string, + options?: ServiceRegistriesCreateOrUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + ServiceRegistriesCreateOrUpdateResponse + > + >; + /** + * Create the default Service Registry or update the existing Service Registry. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param serviceRegistryName The name of Service Registry. + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + serviceName: string, + serviceRegistryName: string, + options?: ServiceRegistriesCreateOrUpdateOptionalParams + ): Promise; + /** + * Disable the default Service Registry. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param serviceRegistryName The name of Service Registry. + * @param options The options parameters. + */ + beginDelete( + resourceGroupName: string, + serviceName: string, + serviceRegistryName: string, + options?: ServiceRegistriesDeleteOptionalParams + ): Promise, void>>; + /** + * Disable the default Service Registry. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param serviceRegistryName The name of Service Registry. + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + serviceName: string, + serviceRegistryName: string, + options?: ServiceRegistriesDeleteOptionalParams + ): Promise; +} diff --git a/sdk/appplatform/arm-appplatform/test/sampleTest.ts b/sdk/appplatform/arm-appplatform/test/sampleTest.ts new file mode 100644 index 000000000000..7ed89b043e1b --- /dev/null +++ b/sdk/appplatform/arm-appplatform/test/sampleTest.ts @@ -0,0 +1,48 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { + env, + record, + RecorderEnvironmentSetup, + Recorder +} from "@azure-tools/test-recorder"; +import * as assert from "assert"; + +const recorderEnvSetup: RecorderEnvironmentSetup = { + replaceableVariables: { + AZURE_CLIENT_ID: "azure_client_id", + AZURE_CLIENT_SECRET: "azure_client_secret", + AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888", + SUBSCRIPTION_ID: "azure_subscription_id" + }, + customizationsOnRecordings: [ + (recording: any): any => + recording.replace( + /"access_token":"[^"]*"/g, + `"access_token":"access_token"` + ) + ], + queryParametersToSkip: [] +}; + +describe("My test", () => { + let recorder: Recorder; + + beforeEach(async function() { + recorder = record(this, recorderEnvSetup); + }); + + afterEach(async function() { + await recorder.stop(); + }); + + it("sample test", async function() { + console.log("Hi, I'm a test!"); + }); +}); diff --git a/sdk/appplatform/arm-appplatform/tsconfig.json b/sdk/appplatform/arm-appplatform/tsconfig.json index 6e3251194117..3e6ae96443f3 100644 --- a/sdk/appplatform/arm-appplatform/tsconfig.json +++ b/sdk/appplatform/arm-appplatform/tsconfig.json @@ -9,11 +9,19 @@ "esModuleInterop": true, "allowSyntheticDefaultImports": true, "forceConsistentCasingInFileNames": true, - "lib": ["es6", "dom"], + "lib": [ + "es6", + "dom" + ], "declaration": true, "outDir": "./dist-esm", "importHelpers": true }, - "include": ["./src/**/*.ts", "./test/**/*.ts"], - "exclude": ["node_modules"] -} + "include": [ + "./src/**/*.ts", + "./test/**/*.ts" + ], + "exclude": [ + "node_modules" + ] +} \ No newline at end of file