@azure/arm-appcontainers 2.0.0-alpha.20230725.1 → 2.0.0-alpha.20230821.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +329 -506
- package/README.md +1 -1
- package/dist/index.js +2559 -2012
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist-esm/samples-dev/availableWorkloadProfilesGetSample.js +1 -1
- package/dist-esm/samples-dev/billingMetersGetSample.js +1 -1
- package/dist-esm/samples-dev/certificatesCreateOrUpdateSample.js +1 -1
- package/dist-esm/samples-dev/certificatesDeleteSample.js +1 -1
- package/dist-esm/samples-dev/certificatesGetSample.js +1 -1
- package/dist-esm/samples-dev/certificatesListSample.js +1 -1
- package/dist-esm/samples-dev/certificatesUpdateSample.js +1 -1
- package/dist-esm/samples-dev/connectedEnvironmentsCertificatesCreateOrUpdateSample.js +1 -1
- package/dist-esm/samples-dev/connectedEnvironmentsCertificatesDeleteSample.js +1 -1
- package/dist-esm/samples-dev/connectedEnvironmentsCertificatesGetSample.js +1 -1
- package/dist-esm/samples-dev/connectedEnvironmentsCertificatesListSample.js +1 -1
- package/dist-esm/samples-dev/connectedEnvironmentsCertificatesUpdateSample.js +1 -1
- package/dist-esm/samples-dev/connectedEnvironmentsCheckNameAvailabilitySample.js +1 -1
- package/dist-esm/samples-dev/connectedEnvironmentsCreateOrUpdateSample.js +1 -1
- package/dist-esm/samples-dev/connectedEnvironmentsDaprComponentsCreateOrUpdateSample.js +1 -1
- package/dist-esm/samples-dev/connectedEnvironmentsDaprComponentsDeleteSample.js +1 -1
- package/dist-esm/samples-dev/connectedEnvironmentsDaprComponentsGetSample.js +1 -1
- package/dist-esm/samples-dev/connectedEnvironmentsDaprComponentsListSample.js +1 -1
- package/dist-esm/samples-dev/connectedEnvironmentsDaprComponentsListSecretsSample.js +1 -1
- package/dist-esm/samples-dev/connectedEnvironmentsDeleteSample.js +1 -1
- package/dist-esm/samples-dev/connectedEnvironmentsGetSample.js +1 -1
- package/dist-esm/samples-dev/connectedEnvironmentsListByResourceGroupSample.js +1 -1
- package/dist-esm/samples-dev/connectedEnvironmentsListBySubscriptionSample.js +1 -1
- package/dist-esm/samples-dev/connectedEnvironmentsStoragesCreateOrUpdateSample.js +1 -1
- package/dist-esm/samples-dev/connectedEnvironmentsStoragesDeleteSample.js +1 -1
- package/dist-esm/samples-dev/connectedEnvironmentsStoragesGetSample.js +1 -1
- package/dist-esm/samples-dev/connectedEnvironmentsStoragesListSample.js +1 -1
- package/dist-esm/samples-dev/connectedEnvironmentsUpdateSample.js +1 -1
- package/dist-esm/samples-dev/containerAppsAuthConfigsCreateOrUpdateSample.js +1 -1
- package/dist-esm/samples-dev/containerAppsAuthConfigsDeleteSample.js +1 -1
- package/dist-esm/samples-dev/containerAppsAuthConfigsGetSample.js +1 -1
- package/dist-esm/samples-dev/containerAppsAuthConfigsListByContainerAppSample.js +1 -1
- package/dist-esm/samples-dev/containerAppsCreateOrUpdateSample.js +12 -5
- package/dist-esm/samples-dev/containerAppsCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/containerAppsDeleteSample.js +1 -1
- package/dist-esm/samples-dev/containerAppsDiagnosticsGetDetectorSample.js +1 -1
- package/dist-esm/samples-dev/containerAppsDiagnosticsGetRevisionSample.js +1 -1
- package/dist-esm/samples-dev/containerAppsDiagnosticsGetRootSample.js +1 -1
- package/dist-esm/samples-dev/containerAppsDiagnosticsListDetectorsSample.js +1 -1
- package/dist-esm/samples-dev/containerAppsDiagnosticsListRevisionsSample.js +1 -1
- package/dist-esm/samples-dev/containerAppsGetAuthTokenSample.js +1 -1
- package/dist-esm/samples-dev/containerAppsGetSample.js +1 -1
- package/dist-esm/samples-dev/containerAppsListByResourceGroupSample.js +1 -1
- package/dist-esm/samples-dev/containerAppsListBySubscriptionSample.js +1 -1
- package/dist-esm/samples-dev/containerAppsListCustomHostNameAnalysisSample.js +1 -1
- package/dist-esm/samples-dev/containerAppsListSecretsSample.js +1 -1
- package/dist-esm/samples-dev/containerAppsRevisionReplicasGetReplicaSample.js +1 -1
- package/dist-esm/samples-dev/containerAppsRevisionReplicasListReplicasSample.js +1 -1
- package/dist-esm/samples-dev/containerAppsRevisionsActivateRevisionSample.js +1 -1
- package/dist-esm/samples-dev/containerAppsRevisionsDeactivateRevisionSample.js +1 -1
- package/dist-esm/samples-dev/containerAppsRevisionsGetRevisionSample.js +1 -1
- package/dist-esm/samples-dev/containerAppsRevisionsListRevisionsSample.js +1 -1
- package/dist-esm/samples-dev/containerAppsRevisionsRestartRevisionSample.js +1 -1
- package/dist-esm/samples-dev/containerAppsSourceControlsCreateOrUpdateSample.js +5 -3
- package/dist-esm/samples-dev/containerAppsSourceControlsCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/containerAppsSourceControlsDeleteSample.js +1 -1
- package/dist-esm/samples-dev/containerAppsSourceControlsGetSample.js +1 -1
- package/dist-esm/samples-dev/containerAppsSourceControlsListByContainerAppSample.js +1 -1
- package/dist-esm/samples-dev/containerAppsStartSample.d.ts +2 -0
- package/dist-esm/samples-dev/containerAppsStartSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/containerAppsStartSample.js +39 -0
- package/dist-esm/samples-dev/containerAppsStartSample.js.map +1 -0
- package/dist-esm/samples-dev/containerAppsStopSample.d.ts +2 -0
- package/dist-esm/samples-dev/containerAppsStopSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/containerAppsStopSample.js +39 -0
- package/dist-esm/samples-dev/containerAppsStopSample.js.map +1 -0
- package/dist-esm/samples-dev/containerAppsUpdateSample.js +10 -3
- package/dist-esm/samples-dev/containerAppsUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/daprComponentsCreateOrUpdateSample.js +2 -2
- package/dist-esm/samples-dev/daprComponentsDeleteSample.js +1 -1
- package/dist-esm/samples-dev/daprComponentsGetSample.js +2 -2
- package/dist-esm/samples-dev/daprComponentsListSample.js +1 -1
- package/dist-esm/samples-dev/daprComponentsListSecretsSample.js +1 -1
- package/dist-esm/samples-dev/jobExecutionSample.d.ts +2 -0
- package/dist-esm/samples-dev/jobExecutionSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/jobExecutionSample.js +40 -0
- package/dist-esm/samples-dev/jobExecutionSample.js.map +1 -0
- package/dist-esm/samples-dev/jobsCreateOrUpdateSample.js +62 -1
- package/dist-esm/samples-dev/jobsCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/jobsDeleteSample.js +1 -1
- package/dist-esm/samples-dev/jobsExecutionsListSample.js +1 -1
- package/dist-esm/samples-dev/jobsGetSample.js +1 -1
- package/dist-esm/samples-dev/jobsListByResourceGroupSample.js +1 -1
- package/dist-esm/samples-dev/jobsListBySubscriptionSample.js +1 -1
- package/dist-esm/samples-dev/jobsListSecretsSample.js +1 -1
- package/dist-esm/samples-dev/jobsStartSample.js +3 -2
- package/dist-esm/samples-dev/jobsStartSample.js.map +1 -1
- package/dist-esm/samples-dev/jobsStopExecutionSample.js +1 -1
- package/dist-esm/samples-dev/jobsStopMultipleExecutionsSample.js +2 -9
- package/dist-esm/samples-dev/jobsStopMultipleExecutionsSample.js.map +1 -1
- package/dist-esm/samples-dev/jobsUpdateSample.js +1 -1
- package/dist-esm/samples-dev/managedCertificatesCreateOrUpdateSample.js +1 -1
- package/dist-esm/samples-dev/managedCertificatesDeleteSample.js +1 -1
- package/dist-esm/samples-dev/managedCertificatesGetSample.js +1 -1
- package/dist-esm/samples-dev/managedCertificatesListSample.js +1 -1
- package/dist-esm/samples-dev/managedCertificatesUpdateSample.js +1 -1
- package/dist-esm/samples-dev/managedEnvironmentDiagnosticsGetDetectorSample.js +1 -1
- package/dist-esm/samples-dev/managedEnvironmentDiagnosticsListDetectorsSample.js +1 -1
- package/dist-esm/samples-dev/managedEnvironmentsCreateOrUpdateSample.js +3 -2
- package/dist-esm/samples-dev/managedEnvironmentsCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/managedEnvironmentsDeleteSample.js +1 -1
- package/dist-esm/samples-dev/managedEnvironmentsDiagnosticsGetRootSample.js +1 -1
- package/dist-esm/samples-dev/managedEnvironmentsGetAuthTokenSample.js +1 -1
- package/dist-esm/samples-dev/managedEnvironmentsGetSample.js +1 -1
- package/dist-esm/samples-dev/managedEnvironmentsListByResourceGroupSample.js +1 -1
- package/dist-esm/samples-dev/managedEnvironmentsListBySubscriptionSample.js +1 -1
- package/dist-esm/samples-dev/managedEnvironmentsListWorkloadProfileStatesSample.js +1 -1
- package/dist-esm/samples-dev/managedEnvironmentsStoragesCreateOrUpdateSample.js +1 -1
- package/dist-esm/samples-dev/managedEnvironmentsStoragesDeleteSample.js +1 -1
- package/dist-esm/samples-dev/managedEnvironmentsStoragesGetSample.js +1 -1
- package/dist-esm/samples-dev/managedEnvironmentsStoragesListSample.js +1 -1
- package/dist-esm/samples-dev/managedEnvironmentsUpdateSample.js +1 -1
- package/dist-esm/samples-dev/namespacesCheckNameAvailabilitySample.js +2 -2
- package/dist-esm/samples-dev/operationsListSample.js +1 -1
- package/dist-esm/src/containerAppsAPIClient.d.ts +12 -4
- package/dist-esm/src/containerAppsAPIClient.d.ts.map +1 -1
- package/dist-esm/src/containerAppsAPIClient.js +41 -5
- package/dist-esm/src/containerAppsAPIClient.js.map +1 -1
- package/dist-esm/src/models/index.d.ts +578 -378
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +78 -42
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts +24 -15
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +937 -634
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/models/parameters.d.ts +6 -7
- package/dist-esm/src/models/parameters.d.ts.map +1 -1
- package/dist-esm/src/models/parameters.js +43 -44
- package/dist-esm/src/models/parameters.js.map +1 -1
- package/dist-esm/src/operations/containerApps.d.ts +29 -1
- package/dist-esm/src/operations/containerApps.d.ts.map +1 -1
- package/dist-esm/src/operations/containerApps.js +172 -0
- package/dist-esm/src/operations/containerApps.js.map +1 -1
- package/dist-esm/src/operations/index.d.ts +2 -2
- package/dist-esm/src/operations/index.d.ts.map +1 -1
- package/dist-esm/src/operations/index.js +2 -2
- package/dist-esm/src/operations/index.js.map +1 -1
- package/dist-esm/src/operations/jobs.d.ts +19 -23
- package/dist-esm/src/operations/jobs.d.ts.map +1 -1
- package/dist-esm/src/operations/jobs.js +26 -32
- package/dist-esm/src/operations/jobs.js.map +1 -1
- package/dist-esm/src/operations/jobsExecutions.d.ts +3 -3
- package/dist-esm/src/operations/jobsExecutions.js +3 -3
- package/dist-esm/src/operationsInterfaces/containerApps.d.ts +29 -1
- package/dist-esm/src/operationsInterfaces/containerApps.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/index.d.ts +2 -2
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/index.js +2 -2
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/jobs.d.ts +19 -23
- package/dist-esm/src/operationsInterfaces/jobs.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/jobsExecutions.d.ts +1 -1
- package/package.json +2 -2
- package/review/arm-appcontainers.api.md +140 -5
- package/src/containerAppsAPIClient.ts +62 -11
- package/src/models/index.ts +643 -420
- package/src/models/mappers.ts +947 -630
- package/src/models/parameters.ts +47 -50
- package/src/operations/containerApps.ts +248 -0
- package/src/operations/index.ts +2 -2
- package/src/operations/jobs.ts +21 -39
- package/src/operations/jobsExecutions.ts +3 -3
- package/src/operationsInterfaces/containerApps.ts +59 -1
- package/src/operationsInterfaces/index.ts +2 -2
- package/src/operationsInterfaces/jobs.ts +14 -24
- package/src/operationsInterfaces/jobsExecutions.ts +1 -1
- package/types/arm-appcontainers.d.ts +288 -35
- package/types/tsdoc-metadata.json +1 -1
package/package.json
CHANGED
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
"sdk-type": "mgmt",
|
|
4
4
|
"author": "Microsoft Corporation",
|
|
5
5
|
"description": "A generated SDK for ContainerAppsAPIClient.",
|
|
6
|
-
"version": "2.0.0-alpha.
|
|
6
|
+
"version": "2.0.0-alpha.20230821.2",
|
|
7
7
|
"engines": {
|
|
8
8
|
"node": ">=14.0.0"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@azure/core-lro": "^2.5.
|
|
11
|
+
"@azure/core-lro": "^2.5.3",
|
|
12
12
|
"@azure/abort-controller": "^1.0.0",
|
|
13
13
|
"@azure/core-paging": "^1.2.0",
|
|
14
14
|
"@azure/core-client": "^1.7.0",
|
|
@@ -167,6 +167,7 @@ export interface AzureActiveDirectoryValidation {
|
|
|
167
167
|
export interface AzureCredentials {
|
|
168
168
|
clientId?: string;
|
|
169
169
|
clientSecret?: string;
|
|
170
|
+
kind?: string;
|
|
170
171
|
subscriptionId?: string;
|
|
171
172
|
tenantId?: string;
|
|
172
173
|
}
|
|
@@ -349,6 +350,7 @@ export interface Configuration {
|
|
|
349
350
|
maxInactiveRevisions?: number;
|
|
350
351
|
registries?: RegistryCredentials[];
|
|
351
352
|
secrets?: Secret[];
|
|
353
|
+
service?: Service;
|
|
352
354
|
}
|
|
353
355
|
|
|
354
356
|
// @public
|
|
@@ -635,6 +637,9 @@ export interface ContainerAppCollection {
|
|
|
635
637
|
value: ContainerApp[];
|
|
636
638
|
}
|
|
637
639
|
|
|
640
|
+
// @public
|
|
641
|
+
export type ContainerAppContainerRunningState = string;
|
|
642
|
+
|
|
638
643
|
// @public
|
|
639
644
|
export interface ContainerAppJobExecutions {
|
|
640
645
|
readonly nextLink?: string;
|
|
@@ -678,12 +683,19 @@ export interface ContainerAppProbeTcpSocket {
|
|
|
678
683
|
// @public
|
|
679
684
|
export type ContainerAppProvisioningState = string;
|
|
680
685
|
|
|
686
|
+
// @public
|
|
687
|
+
export type ContainerAppReplicaRunningState = string;
|
|
688
|
+
|
|
681
689
|
// @public
|
|
682
690
|
export interface ContainerApps {
|
|
683
691
|
beginCreateOrUpdate(resourceGroupName: string, containerAppName: string, containerAppEnvelope: ContainerApp, options?: ContainerAppsCreateOrUpdateOptionalParams): Promise<SimplePollerLike<OperationState<ContainerAppsCreateOrUpdateResponse>, ContainerAppsCreateOrUpdateResponse>>;
|
|
684
692
|
beginCreateOrUpdateAndWait(resourceGroupName: string, containerAppName: string, containerAppEnvelope: ContainerApp, options?: ContainerAppsCreateOrUpdateOptionalParams): Promise<ContainerAppsCreateOrUpdateResponse>;
|
|
685
693
|
beginDelete(resourceGroupName: string, containerAppName: string, options?: ContainerAppsDeleteOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
|
|
686
694
|
beginDeleteAndWait(resourceGroupName: string, containerAppName: string, options?: ContainerAppsDeleteOptionalParams): Promise<void>;
|
|
695
|
+
beginStart(resourceGroupName: string, containerAppName: string, options?: ContainerAppsStartOptionalParams): Promise<SimplePollerLike<OperationState<ContainerAppsStartResponse>, ContainerAppsStartResponse>>;
|
|
696
|
+
beginStartAndWait(resourceGroupName: string, containerAppName: string, options?: ContainerAppsStartOptionalParams): Promise<ContainerAppsStartResponse>;
|
|
697
|
+
beginStop(resourceGroupName: string, containerAppName: string, options?: ContainerAppsStopOptionalParams): Promise<SimplePollerLike<OperationState<ContainerAppsStopResponse>, ContainerAppsStopResponse>>;
|
|
698
|
+
beginStopAndWait(resourceGroupName: string, containerAppName: string, options?: ContainerAppsStopOptionalParams): Promise<ContainerAppsStopResponse>;
|
|
687
699
|
beginUpdate(resourceGroupName: string, containerAppName: string, containerAppEnvelope: ContainerApp, options?: ContainerAppsUpdateOptionalParams): Promise<SimplePollerLike<OperationState<ContainerAppsUpdateResponse>, ContainerAppsUpdateResponse>>;
|
|
688
700
|
beginUpdateAndWait(resourceGroupName: string, containerAppName: string, containerAppEnvelope: ContainerApp, options?: ContainerAppsUpdateOptionalParams): Promise<ContainerAppsUpdateResponse>;
|
|
689
701
|
get(resourceGroupName: string, containerAppName: string, options?: ContainerAppsGetOptionalParams): Promise<ContainerAppsGetResponse>;
|
|
@@ -729,6 +741,7 @@ export class ContainerAppsAPIClient extends coreClient.ServiceClient {
|
|
|
729
741
|
containerAppsSourceControls: ContainerAppsSourceControls;
|
|
730
742
|
// (undocumented)
|
|
731
743
|
daprComponents: DaprComponents;
|
|
744
|
+
jobExecution(resourceGroupName: string, jobName: string, jobExecutionName: string, options?: JobExecutionOptionalParams): Promise<JobExecutionResponse>;
|
|
732
745
|
// (undocumented)
|
|
733
746
|
jobs: Jobs;
|
|
734
747
|
// (undocumented)
|
|
@@ -1052,6 +1065,36 @@ export interface ContainerAppsSourceControlsListByContainerAppOptionalParams ext
|
|
|
1052
1065
|
// @public
|
|
1053
1066
|
export type ContainerAppsSourceControlsListByContainerAppResponse = SourceControlCollection;
|
|
1054
1067
|
|
|
1068
|
+
// @public
|
|
1069
|
+
export interface ContainerAppsStartHeaders {
|
|
1070
|
+
// (undocumented)
|
|
1071
|
+
location?: string;
|
|
1072
|
+
}
|
|
1073
|
+
|
|
1074
|
+
// @public
|
|
1075
|
+
export interface ContainerAppsStartOptionalParams extends coreClient.OperationOptions {
|
|
1076
|
+
resumeFrom?: string;
|
|
1077
|
+
updateIntervalInMs?: number;
|
|
1078
|
+
}
|
|
1079
|
+
|
|
1080
|
+
// @public
|
|
1081
|
+
export type ContainerAppsStartResponse = ContainerApp;
|
|
1082
|
+
|
|
1083
|
+
// @public
|
|
1084
|
+
export interface ContainerAppsStopHeaders {
|
|
1085
|
+
// (undocumented)
|
|
1086
|
+
location?: string;
|
|
1087
|
+
}
|
|
1088
|
+
|
|
1089
|
+
// @public
|
|
1090
|
+
export interface ContainerAppsStopOptionalParams extends coreClient.OperationOptions {
|
|
1091
|
+
resumeFrom?: string;
|
|
1092
|
+
updateIntervalInMs?: number;
|
|
1093
|
+
}
|
|
1094
|
+
|
|
1095
|
+
// @public
|
|
1096
|
+
export type ContainerAppsStopResponse = ContainerApp;
|
|
1097
|
+
|
|
1055
1098
|
// @public
|
|
1056
1099
|
export interface ContainerAppsUpdateHeaders {
|
|
1057
1100
|
// (undocumented)
|
|
@@ -1453,6 +1496,7 @@ export interface GitHub {
|
|
|
1453
1496
|
export interface GithubActionConfiguration {
|
|
1454
1497
|
azureCredentials?: AzureCredentials;
|
|
1455
1498
|
contextPath?: string;
|
|
1499
|
+
githubPersonalAccessToken?: string;
|
|
1456
1500
|
image?: string;
|
|
1457
1501
|
os?: string;
|
|
1458
1502
|
publishType?: string;
|
|
@@ -1563,6 +1607,7 @@ export interface Job extends TrackedResource {
|
|
|
1563
1607
|
|
|
1564
1608
|
// @public
|
|
1565
1609
|
export interface JobConfiguration {
|
|
1610
|
+
eventTriggerConfig?: JobConfigurationEventTriggerConfig;
|
|
1566
1611
|
manualTriggerConfig?: JobConfigurationManualTriggerConfig;
|
|
1567
1612
|
registries?: RegistryCredentials[];
|
|
1568
1613
|
replicaRetryLimit?: number;
|
|
@@ -1572,6 +1617,13 @@ export interface JobConfiguration {
|
|
|
1572
1617
|
triggerType: TriggerType;
|
|
1573
1618
|
}
|
|
1574
1619
|
|
|
1620
|
+
// @public
|
|
1621
|
+
export interface JobConfigurationEventTriggerConfig {
|
|
1622
|
+
parallelism?: number;
|
|
1623
|
+
replicaCompletionCount?: number;
|
|
1624
|
+
scale?: JobScale;
|
|
1625
|
+
}
|
|
1626
|
+
|
|
1575
1627
|
// @public
|
|
1576
1628
|
export interface JobConfigurationManualTriggerConfig {
|
|
1577
1629
|
parallelism?: number;
|
|
@@ -1617,6 +1669,13 @@ export interface JobExecutionNamesCollection {
|
|
|
1617
1669
|
value: JobExecutionBase[];
|
|
1618
1670
|
}
|
|
1619
1671
|
|
|
1672
|
+
// @public
|
|
1673
|
+
export interface JobExecutionOptionalParams extends coreClient.OperationOptions {
|
|
1674
|
+
}
|
|
1675
|
+
|
|
1676
|
+
// @public
|
|
1677
|
+
export type JobExecutionResponse = JobExecution;
|
|
1678
|
+
|
|
1620
1679
|
// @public
|
|
1621
1680
|
export type JobExecutionRunningState = string;
|
|
1622
1681
|
|
|
@@ -1654,12 +1713,12 @@ export interface Jobs {
|
|
|
1654
1713
|
beginCreateOrUpdateAndWait(resourceGroupName: string, jobName: string, jobEnvelope: Job, options?: JobsCreateOrUpdateOptionalParams): Promise<JobsCreateOrUpdateResponse>;
|
|
1655
1714
|
beginDelete(resourceGroupName: string, jobName: string, options?: JobsDeleteOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
|
|
1656
1715
|
beginDeleteAndWait(resourceGroupName: string, jobName: string, options?: JobsDeleteOptionalParams): Promise<void>;
|
|
1657
|
-
beginStart(resourceGroupName: string, jobName: string,
|
|
1658
|
-
beginStartAndWait(resourceGroupName: string, jobName: string,
|
|
1716
|
+
beginStart(resourceGroupName: string, jobName: string, options?: JobsStartOptionalParams): Promise<SimplePollerLike<OperationState<JobsStartResponse>, JobsStartResponse>>;
|
|
1717
|
+
beginStartAndWait(resourceGroupName: string, jobName: string, options?: JobsStartOptionalParams): Promise<JobsStartResponse>;
|
|
1659
1718
|
beginStopExecution(resourceGroupName: string, jobName: string, jobExecutionName: string, options?: JobsStopExecutionOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
|
|
1660
1719
|
beginStopExecutionAndWait(resourceGroupName: string, jobName: string, jobExecutionName: string, options?: JobsStopExecutionOptionalParams): Promise<void>;
|
|
1661
|
-
beginStopMultipleExecutions(resourceGroupName: string, jobName: string,
|
|
1662
|
-
beginStopMultipleExecutionsAndWait(resourceGroupName: string, jobName: string,
|
|
1720
|
+
beginStopMultipleExecutions(resourceGroupName: string, jobName: string, options?: JobsStopMultipleExecutionsOptionalParams): Promise<SimplePollerLike<OperationState<JobsStopMultipleExecutionsResponse>, JobsStopMultipleExecutionsResponse>>;
|
|
1721
|
+
beginStopMultipleExecutionsAndWait(resourceGroupName: string, jobName: string, options?: JobsStopMultipleExecutionsOptionalParams): Promise<JobsStopMultipleExecutionsResponse>;
|
|
1663
1722
|
beginUpdate(resourceGroupName: string, jobName: string, jobEnvelope: JobPatchProperties, options?: JobsUpdateOptionalParams): Promise<SimplePollerLike<OperationState<JobsUpdateResponse>, JobsUpdateResponse>>;
|
|
1664
1723
|
beginUpdateAndWait(resourceGroupName: string, jobName: string, jobEnvelope: JobPatchProperties, options?: JobsUpdateOptionalParams): Promise<JobsUpdateResponse>;
|
|
1665
1724
|
get(resourceGroupName: string, jobName: string, options?: JobsGetOptionalParams): Promise<JobsGetResponse>;
|
|
@@ -1668,6 +1727,22 @@ export interface Jobs {
|
|
|
1668
1727
|
listSecrets(resourceGroupName: string, jobName: string, options?: JobsListSecretsOptionalParams): Promise<JobsListSecretsResponse>;
|
|
1669
1728
|
}
|
|
1670
1729
|
|
|
1730
|
+
// @public
|
|
1731
|
+
export interface JobScale {
|
|
1732
|
+
maxExecutions?: number;
|
|
1733
|
+
minExecutions?: number;
|
|
1734
|
+
pollingInterval?: number;
|
|
1735
|
+
rules?: JobScaleRule[];
|
|
1736
|
+
}
|
|
1737
|
+
|
|
1738
|
+
// @public
|
|
1739
|
+
export interface JobScaleRule {
|
|
1740
|
+
auth?: ScaleRuleAuth[];
|
|
1741
|
+
metadata?: Record<string, unknown>;
|
|
1742
|
+
name?: string;
|
|
1743
|
+
type?: string;
|
|
1744
|
+
}
|
|
1745
|
+
|
|
1671
1746
|
// @public
|
|
1672
1747
|
export interface JobsCollection {
|
|
1673
1748
|
readonly nextLink?: string;
|
|
@@ -1771,6 +1846,7 @@ export interface JobsStartHeaders {
|
|
|
1771
1846
|
// @public
|
|
1772
1847
|
export interface JobsStartOptionalParams extends coreClient.OperationOptions {
|
|
1773
1848
|
resumeFrom?: string;
|
|
1849
|
+
template?: JobExecutionTemplate;
|
|
1774
1850
|
updateIntervalInMs?: number;
|
|
1775
1851
|
}
|
|
1776
1852
|
|
|
@@ -1906,6 +1982,13 @@ export enum KnownConnectedEnvironmentProvisioningState {
|
|
|
1906
1982
|
Waiting = "Waiting"
|
|
1907
1983
|
}
|
|
1908
1984
|
|
|
1985
|
+
// @public
|
|
1986
|
+
export enum KnownContainerAppContainerRunningState {
|
|
1987
|
+
Running = "Running",
|
|
1988
|
+
Terminated = "Terminated",
|
|
1989
|
+
Waiting = "Waiting"
|
|
1990
|
+
}
|
|
1991
|
+
|
|
1909
1992
|
// @public
|
|
1910
1993
|
export enum KnownContainerAppProvisioningState {
|
|
1911
1994
|
Canceled = "Canceled",
|
|
@@ -1915,6 +1998,13 @@ export enum KnownContainerAppProvisioningState {
|
|
|
1915
1998
|
Succeeded = "Succeeded"
|
|
1916
1999
|
}
|
|
1917
2000
|
|
|
2001
|
+
// @public
|
|
2002
|
+
export enum KnownContainerAppReplicaRunningState {
|
|
2003
|
+
NotRunning = "NotRunning",
|
|
2004
|
+
Running = "Running",
|
|
2005
|
+
Unknown = "Unknown"
|
|
2006
|
+
}
|
|
2007
|
+
|
|
1918
2008
|
// @public
|
|
1919
2009
|
export enum KnownCreatedByType {
|
|
1920
2010
|
Application = "Application",
|
|
@@ -2016,6 +2106,16 @@ export enum KnownRevisionProvisioningState {
|
|
|
2016
2106
|
Provisioning = "Provisioning"
|
|
2017
2107
|
}
|
|
2018
2108
|
|
|
2109
|
+
// @public
|
|
2110
|
+
export enum KnownRevisionRunningState {
|
|
2111
|
+
Degraded = "Degraded",
|
|
2112
|
+
Failed = "Failed",
|
|
2113
|
+
Processing = "Processing",
|
|
2114
|
+
Running = "Running",
|
|
2115
|
+
Stopped = "Stopped",
|
|
2116
|
+
Unknown = "Unknown"
|
|
2117
|
+
}
|
|
2118
|
+
|
|
2019
2119
|
// @public
|
|
2020
2120
|
export enum KnownScheme {
|
|
2021
2121
|
Http = "HTTP",
|
|
@@ -2041,7 +2141,7 @@ export enum KnownStorageType {
|
|
|
2041
2141
|
export enum KnownTriggerType {
|
|
2042
2142
|
Event = "Event",
|
|
2043
2143
|
Manual = "Manual",
|
|
2044
|
-
|
|
2144
|
+
Schedule = "Schedule"
|
|
2045
2145
|
}
|
|
2046
2146
|
|
|
2047
2147
|
// @public
|
|
@@ -2174,6 +2274,7 @@ export interface ManagedEnvironment extends TrackedResource {
|
|
|
2174
2274
|
infrastructureResourceGroup?: string;
|
|
2175
2275
|
kedaConfiguration?: KedaConfiguration;
|
|
2176
2276
|
kind?: string;
|
|
2277
|
+
peerAuthentication?: ManagedEnvironmentPropertiesPeerAuthentication;
|
|
2177
2278
|
readonly provisioningState?: EnvironmentProvisioningState;
|
|
2178
2279
|
readonly staticIp?: string;
|
|
2179
2280
|
vnetConfiguration?: VnetConfiguration;
|
|
@@ -2201,6 +2302,11 @@ export interface ManagedEnvironmentDiagnosticsListDetectorsOptionalParams extend
|
|
|
2201
2302
|
// @public
|
|
2202
2303
|
export type ManagedEnvironmentDiagnosticsListDetectorsResponse = DiagnosticsCollection;
|
|
2203
2304
|
|
|
2305
|
+
// @public
|
|
2306
|
+
export interface ManagedEnvironmentPropertiesPeerAuthentication {
|
|
2307
|
+
mtls?: Mtls;
|
|
2308
|
+
}
|
|
2309
|
+
|
|
2204
2310
|
// @public
|
|
2205
2311
|
export interface ManagedEnvironments {
|
|
2206
2312
|
beginCreateOrUpdate(resourceGroupName: string, environmentName: string, environmentEnvelope: ManagedEnvironment, options?: ManagedEnvironmentsCreateOrUpdateOptionalParams): Promise<SimplePollerLike<OperationState<ManagedEnvironmentsCreateOrUpdateResponse>, ManagedEnvironmentsCreateOrUpdateResponse>>;
|
|
@@ -2375,6 +2481,11 @@ export interface ManagedServiceIdentity {
|
|
|
2375
2481
|
// @public
|
|
2376
2482
|
export type ManagedServiceIdentityType = string;
|
|
2377
2483
|
|
|
2484
|
+
// @public
|
|
2485
|
+
export interface Mtls {
|
|
2486
|
+
enabled?: boolean;
|
|
2487
|
+
}
|
|
2488
|
+
|
|
2378
2489
|
// @public
|
|
2379
2490
|
export interface Namespaces {
|
|
2380
2491
|
checkNameAvailability(resourceGroupName: string, environmentName: string, checkNameAvailabilityRequest: CheckNameAvailabilityRequest, options?: NamespacesCheckNameAvailabilityOptionalParams): Promise<NamespacesCheckNameAvailabilityResponse>;
|
|
@@ -2486,6 +2597,9 @@ export interface RegistryInfo {
|
|
|
2486
2597
|
export interface Replica extends ProxyResource {
|
|
2487
2598
|
containers?: ReplicaContainer[];
|
|
2488
2599
|
readonly createdTime?: Date;
|
|
2600
|
+
initContainers?: ReplicaContainer[];
|
|
2601
|
+
readonly runningState?: ContainerAppReplicaRunningState;
|
|
2602
|
+
readonly runningStateDetails?: string;
|
|
2489
2603
|
}
|
|
2490
2604
|
|
|
2491
2605
|
// @public
|
|
@@ -2501,6 +2615,8 @@ export interface ReplicaContainer {
|
|
|
2501
2615
|
name?: string;
|
|
2502
2616
|
ready?: boolean;
|
|
2503
2617
|
restartCount?: number;
|
|
2618
|
+
readonly runningState?: ContainerAppContainerRunningState;
|
|
2619
|
+
readonly runningStateDetails?: string;
|
|
2504
2620
|
started?: boolean;
|
|
2505
2621
|
}
|
|
2506
2622
|
|
|
@@ -2522,6 +2638,7 @@ export interface Revision extends ProxyResource {
|
|
|
2522
2638
|
readonly provisioningError?: string;
|
|
2523
2639
|
readonly provisioningState?: RevisionProvisioningState;
|
|
2524
2640
|
readonly replicas?: number;
|
|
2641
|
+
readonly runningState?: RevisionRunningState;
|
|
2525
2642
|
readonly template?: Template;
|
|
2526
2643
|
readonly trafficWeight?: number;
|
|
2527
2644
|
}
|
|
@@ -2538,6 +2655,9 @@ export type RevisionHealthState = string;
|
|
|
2538
2655
|
// @public
|
|
2539
2656
|
export type RevisionProvisioningState = string;
|
|
2540
2657
|
|
|
2658
|
+
// @public
|
|
2659
|
+
export type RevisionRunningState = string;
|
|
2660
|
+
|
|
2541
2661
|
// @public
|
|
2542
2662
|
export interface Scale {
|
|
2543
2663
|
maxReplicas?: number;
|
|
@@ -2582,6 +2702,17 @@ export interface SecretVolumeItem {
|
|
|
2582
2702
|
secretRef?: string;
|
|
2583
2703
|
}
|
|
2584
2704
|
|
|
2705
|
+
// @public
|
|
2706
|
+
export interface Service {
|
|
2707
|
+
type: string;
|
|
2708
|
+
}
|
|
2709
|
+
|
|
2710
|
+
// @public
|
|
2711
|
+
export interface ServiceBind {
|
|
2712
|
+
name?: string;
|
|
2713
|
+
serviceId?: string;
|
|
2714
|
+
}
|
|
2715
|
+
|
|
2585
2716
|
// @public
|
|
2586
2717
|
export interface SourceControl extends ProxyResource {
|
|
2587
2718
|
branch?: string;
|
|
@@ -2626,6 +2757,8 @@ export interface Template {
|
|
|
2626
2757
|
initContainers?: InitContainer[];
|
|
2627
2758
|
revisionSuffix?: string;
|
|
2628
2759
|
scale?: Scale;
|
|
2760
|
+
serviceBinds?: ServiceBind[];
|
|
2761
|
+
terminationGracePeriodSeconds?: number;
|
|
2629
2762
|
volumes?: Volume[];
|
|
2630
2763
|
}
|
|
2631
2764
|
|
|
@@ -2683,6 +2816,7 @@ export interface VnetConfiguration {
|
|
|
2683
2816
|
|
|
2684
2817
|
// @public
|
|
2685
2818
|
export interface Volume {
|
|
2819
|
+
mountOptions?: string;
|
|
2686
2820
|
name?: string;
|
|
2687
2821
|
secrets?: SecretVolumeItem[];
|
|
2688
2822
|
storageName?: string;
|
|
@@ -2692,6 +2826,7 @@ export interface Volume {
|
|
|
2692
2826
|
// @public
|
|
2693
2827
|
export interface VolumeMount {
|
|
2694
2828
|
mountPath?: string;
|
|
2829
|
+
subPath?: string;
|
|
2695
2830
|
volumeName?: string;
|
|
2696
2831
|
}
|
|
2697
2832
|
|
|
@@ -23,14 +23,14 @@ import {
|
|
|
23
23
|
ConnectedEnvironmentsDaprComponentsImpl,
|
|
24
24
|
ConnectedEnvironmentsStoragesImpl,
|
|
25
25
|
ContainerAppsImpl,
|
|
26
|
-
JobsImpl,
|
|
27
|
-
JobsExecutionsImpl,
|
|
28
26
|
ContainerAppsRevisionsImpl,
|
|
29
27
|
ContainerAppsRevisionReplicasImpl,
|
|
30
28
|
ContainerAppsDiagnosticsImpl,
|
|
31
29
|
ManagedEnvironmentDiagnosticsImpl,
|
|
32
30
|
ManagedEnvironmentsDiagnosticsImpl,
|
|
33
31
|
OperationsImpl,
|
|
32
|
+
JobsImpl,
|
|
33
|
+
JobsExecutionsImpl,
|
|
34
34
|
ManagedEnvironmentsImpl,
|
|
35
35
|
CertificatesImpl,
|
|
36
36
|
ManagedCertificatesImpl,
|
|
@@ -48,14 +48,14 @@ import {
|
|
|
48
48
|
ConnectedEnvironmentsDaprComponents,
|
|
49
49
|
ConnectedEnvironmentsStorages,
|
|
50
50
|
ContainerApps,
|
|
51
|
-
Jobs,
|
|
52
|
-
JobsExecutions,
|
|
53
51
|
ContainerAppsRevisions,
|
|
54
52
|
ContainerAppsRevisionReplicas,
|
|
55
53
|
ContainerAppsDiagnostics,
|
|
56
54
|
ManagedEnvironmentDiagnostics,
|
|
57
55
|
ManagedEnvironmentsDiagnostics,
|
|
58
56
|
Operations,
|
|
57
|
+
Jobs,
|
|
58
|
+
JobsExecutions,
|
|
59
59
|
ManagedEnvironments,
|
|
60
60
|
Certificates,
|
|
61
61
|
ManagedCertificates,
|
|
@@ -64,7 +64,13 @@ import {
|
|
|
64
64
|
ManagedEnvironmentsStorages,
|
|
65
65
|
ContainerAppsSourceControls
|
|
66
66
|
} from "./operationsInterfaces";
|
|
67
|
-
import
|
|
67
|
+
import * as Parameters from "./models/parameters";
|
|
68
|
+
import * as Mappers from "./models/mappers";
|
|
69
|
+
import {
|
|
70
|
+
ContainerAppsAPIClientOptionalParams,
|
|
71
|
+
JobExecutionOptionalParams,
|
|
72
|
+
JobExecutionResponse
|
|
73
|
+
} from "./models";
|
|
68
74
|
|
|
69
75
|
export class ContainerAppsAPIClient extends coreClient.ServiceClient {
|
|
70
76
|
$host: string;
|
|
@@ -98,7 +104,7 @@ export class ContainerAppsAPIClient extends coreClient.ServiceClient {
|
|
|
98
104
|
credential: credentials
|
|
99
105
|
};
|
|
100
106
|
|
|
101
|
-
const packageDetails = `azsdk-js-arm-appcontainers/2.0.0
|
|
107
|
+
const packageDetails = `azsdk-js-arm-appcontainers/2.0.0`;
|
|
102
108
|
const userAgentPrefix =
|
|
103
109
|
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
104
110
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
@@ -151,7 +157,7 @@ export class ContainerAppsAPIClient extends coreClient.ServiceClient {
|
|
|
151
157
|
|
|
152
158
|
// Assigning values to Constant parameters
|
|
153
159
|
this.$host = options.$host || "https://management.azure.com";
|
|
154
|
-
this.apiVersion = options.apiVersion || "
|
|
160
|
+
this.apiVersion = options.apiVersion || "2023-05-01";
|
|
155
161
|
this.containerAppsAuthConfigs = new ContainerAppsAuthConfigsImpl(this);
|
|
156
162
|
this.availableWorkloadProfiles = new AvailableWorkloadProfilesImpl(this);
|
|
157
163
|
this.billingMeters = new BillingMetersImpl(this);
|
|
@@ -166,8 +172,6 @@ export class ContainerAppsAPIClient extends coreClient.ServiceClient {
|
|
|
166
172
|
this
|
|
167
173
|
);
|
|
168
174
|
this.containerApps = new ContainerAppsImpl(this);
|
|
169
|
-
this.jobs = new JobsImpl(this);
|
|
170
|
-
this.jobsExecutions = new JobsExecutionsImpl(this);
|
|
171
175
|
this.containerAppsRevisions = new ContainerAppsRevisionsImpl(this);
|
|
172
176
|
this.containerAppsRevisionReplicas = new ContainerAppsRevisionReplicasImpl(
|
|
173
177
|
this
|
|
@@ -180,6 +184,8 @@ export class ContainerAppsAPIClient extends coreClient.ServiceClient {
|
|
|
180
184
|
this
|
|
181
185
|
);
|
|
182
186
|
this.operations = new OperationsImpl(this);
|
|
187
|
+
this.jobs = new JobsImpl(this);
|
|
188
|
+
this.jobsExecutions = new JobsExecutionsImpl(this);
|
|
183
189
|
this.managedEnvironments = new ManagedEnvironmentsImpl(this);
|
|
184
190
|
this.certificates = new CertificatesImpl(this);
|
|
185
191
|
this.managedCertificates = new ManagedCertificatesImpl(this);
|
|
@@ -222,6 +228,25 @@ export class ContainerAppsAPIClient extends coreClient.ServiceClient {
|
|
|
222
228
|
this.pipeline.addPolicy(apiVersionPolicy);
|
|
223
229
|
}
|
|
224
230
|
|
|
231
|
+
/**
|
|
232
|
+
* Get details of a single job execution
|
|
233
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
234
|
+
* @param jobName Job Name
|
|
235
|
+
* @param jobExecutionName Job execution name.
|
|
236
|
+
* @param options The options parameters.
|
|
237
|
+
*/
|
|
238
|
+
jobExecution(
|
|
239
|
+
resourceGroupName: string,
|
|
240
|
+
jobName: string,
|
|
241
|
+
jobExecutionName: string,
|
|
242
|
+
options?: JobExecutionOptionalParams
|
|
243
|
+
): Promise<JobExecutionResponse> {
|
|
244
|
+
return this.sendOperationRequest(
|
|
245
|
+
{ resourceGroupName, jobName, jobExecutionName, options },
|
|
246
|
+
jobExecutionOperationSpec
|
|
247
|
+
);
|
|
248
|
+
}
|
|
249
|
+
|
|
225
250
|
containerAppsAuthConfigs: ContainerAppsAuthConfigs;
|
|
226
251
|
availableWorkloadProfiles: AvailableWorkloadProfiles;
|
|
227
252
|
billingMeters: BillingMeters;
|
|
@@ -230,14 +255,14 @@ export class ContainerAppsAPIClient extends coreClient.ServiceClient {
|
|
|
230
255
|
connectedEnvironmentsDaprComponents: ConnectedEnvironmentsDaprComponents;
|
|
231
256
|
connectedEnvironmentsStorages: ConnectedEnvironmentsStorages;
|
|
232
257
|
containerApps: ContainerApps;
|
|
233
|
-
jobs: Jobs;
|
|
234
|
-
jobsExecutions: JobsExecutions;
|
|
235
258
|
containerAppsRevisions: ContainerAppsRevisions;
|
|
236
259
|
containerAppsRevisionReplicas: ContainerAppsRevisionReplicas;
|
|
237
260
|
containerAppsDiagnostics: ContainerAppsDiagnostics;
|
|
238
261
|
managedEnvironmentDiagnostics: ManagedEnvironmentDiagnostics;
|
|
239
262
|
managedEnvironmentsDiagnostics: ManagedEnvironmentsDiagnostics;
|
|
240
263
|
operations: Operations;
|
|
264
|
+
jobs: Jobs;
|
|
265
|
+
jobsExecutions: JobsExecutions;
|
|
241
266
|
managedEnvironments: ManagedEnvironments;
|
|
242
267
|
certificates: Certificates;
|
|
243
268
|
managedCertificates: ManagedCertificates;
|
|
@@ -246,3 +271,29 @@ export class ContainerAppsAPIClient extends coreClient.ServiceClient {
|
|
|
246
271
|
managedEnvironmentsStorages: ManagedEnvironmentsStorages;
|
|
247
272
|
containerAppsSourceControls: ContainerAppsSourceControls;
|
|
248
273
|
}
|
|
274
|
+
// Operation Specifications
|
|
275
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
276
|
+
|
|
277
|
+
const jobExecutionOperationSpec: coreClient.OperationSpec = {
|
|
278
|
+
path:
|
|
279
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/jobs/{jobName}/executions/{jobExecutionName}",
|
|
280
|
+
httpMethod: "GET",
|
|
281
|
+
responses: {
|
|
282
|
+
200: {
|
|
283
|
+
bodyMapper: Mappers.JobExecution
|
|
284
|
+
},
|
|
285
|
+
default: {
|
|
286
|
+
bodyMapper: Mappers.DefaultErrorResponse
|
|
287
|
+
}
|
|
288
|
+
},
|
|
289
|
+
queryParameters: [Parameters.apiVersion],
|
|
290
|
+
urlParameters: [
|
|
291
|
+
Parameters.$host,
|
|
292
|
+
Parameters.subscriptionId,
|
|
293
|
+
Parameters.resourceGroupName,
|
|
294
|
+
Parameters.jobName,
|
|
295
|
+
Parameters.jobExecutionName
|
|
296
|
+
],
|
|
297
|
+
headerParameters: [Parameters.accept],
|
|
298
|
+
serializer
|
|
299
|
+
};
|