@azure/arm-automation 11.0.0-alpha.20250925.1 → 11.0.0-alpha.20250929.1
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 +7 -1
- package/dist/browser/automationClient.js +1 -1
- package/dist/browser/automationClient.js.map +1 -1
- package/dist/commonjs/automationClient.js +1 -1
- package/dist/commonjs/automationClient.js.map +1 -1
- package/dist/esm/automationClient.js +1 -1
- package/dist/esm/automationClient.js.map +1 -1
- package/dist/react-native/automationClient.js +1 -1
- package/dist/react-native/automationClient.js.map +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Release History
|
|
2
2
|
|
|
3
|
-
## 11.0.0-beta.
|
|
3
|
+
## 11.0.0-beta.6 (Unreleased)
|
|
4
4
|
|
|
5
5
|
### Features Added
|
|
6
6
|
|
|
@@ -10,6 +10,12 @@
|
|
|
10
10
|
|
|
11
11
|
### Other Changes
|
|
12
12
|
|
|
13
|
+
## 11.0.0-beta.5 (2025-08-22)
|
|
14
|
+
|
|
15
|
+
### Other Changes
|
|
16
|
+
|
|
17
|
+
- Other fixes
|
|
18
|
+
|
|
13
19
|
## 11.0.0-beta.4 (2023-01-11)
|
|
14
20
|
|
|
15
21
|
The package of @azure/arm-automation is using our next generation design principles since version 11.0.0-beta.4, which contains breaking changes.
|
|
@@ -35,7 +35,7 @@ export class AutomationClient extends coreClient.ServiceClient {
|
|
|
35
35
|
requestContentType: "application/json; charset=utf-8",
|
|
36
36
|
credential: credentials
|
|
37
37
|
};
|
|
38
|
-
const packageDetails = `azsdk-js-arm-automation/11.0.0-beta.
|
|
38
|
+
const packageDetails = `azsdk-js-arm-automation/11.0.0-beta.6`;
|
|
39
39
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
40
40
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
41
41
|
: `${packageDetails}`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"automationClient.js","sourceRoot":"","sources":["../../src/automationClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAE9D,OAAO,EACL,8BAA8B,EAC9B,wBAAwB,EACxB,kBAAkB,EAClB,gCAAgC,EAChC,qBAAqB,EACrB,eAAe,EACf,kCAAkC,EAClC,+BAA+B,EAC/B,2BAA2B,EAC3B,wBAAwB,EACxB,2BAA2B,EAC3B,kCAAkC,EAClC,+BAA+B,EAC/B,+BAA+B,EAC/B,wBAAwB,EACxB,UAAU,EACV,QAAQ,EACR,yBAAyB,EACzB,wBAAwB,EACxB,4BAA4B,EAC5B,wBAAwB,EACxB,yBAAyB,EACzB,6BAA6B,EAC7B,sBAAsB,EACtB,oBAAoB,EACpB,mBAAmB,EACnB,UAAU,EACV,sBAAsB,EACtB,sBAAsB,EACtB,qBAAqB,EACrB,8BAA8B,EAC9B,iBAAiB,EACjB,uBAAuB,EACvB,cAAc,EACd,gCAAgC,EAChC,mCAAmC,EACnC,0CAA0C,EAC1C,0BAA0B,EAC1B,qBAAqB,EACrB,kBAAkB,EAClB,qBAAqB,EACrB,qBAAqB,EACrB,wBAAwB,EACxB,6BAA6B,EAC7B,sCAAsC,EACvC,MAAM,uBAAuB,CAAC;AAgD/B,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;AACrD,OAAO,KAAK,OAAO,MAAM,qBAAqB,CAAC;AAQ/C,MAAM,OAAO,gBAAiB,SAAQ,UAAU,CAAC,aAAa;IAC5D,KAAK,CAAS;IACd,cAAc,CAAS;IAEvB;;;;;;OAMG;IACH,YACE,WAAqC,EACrC,cAAsB,EACtB,OAAwC;QAExC,IAAI,WAAW,KAAK,SAAS,EAAE,CAAC;YAC9B,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAA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yBAAyB,CAA4B;IACrD,kCAAkC,CAAqC;CACxE;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,uCAAuC,GAA6B;IACxE,IAAI,EACF,yKAAyK;IAC3K,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,uBAAuB;SAC5C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,WAAW,EAAE,UAAU,CAAC,YAAY;IACpC,eAAe,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC;IACzC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,qBAAqB;KACjC;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport {\n PrivateEndpointConnectionsImpl,\n PrivateLinkResourcesImpl,\n Python2PackageImpl,\n AgentRegistrationInformationImpl,\n DscNodeOperationsImpl,\n NodeReportsImpl,\n DscNodeConfigurationOperationsImpl,\n DscCompilationJobOperationsImpl,\n DscCompilationJobStreamImpl,\n NodeCountInformationImpl,\n SourceControlOperationsImpl,\n SourceControlSyncJobOperationsImpl,\n SourceControlSyncJobStreamsImpl,\n AutomationAccountOperationsImpl,\n StatisticsOperationsImpl,\n UsagesImpl,\n KeysImpl,\n CertificateOperationsImpl,\n ConnectionOperationsImpl,\n ConnectionTypeOperationsImpl,\n CredentialOperationsImpl,\n JobScheduleOperationsImpl,\n LinkedWorkspaceOperationsImpl,\n ActivityOperationsImpl,\n ModuleOperationsImpl,\n ObjectDataTypesImpl,\n FieldsImpl,\n ScheduleOperationsImpl,\n VariableOperationsImpl,\n WatcherOperationsImpl,\n DscConfigurationOperationsImpl,\n JobOperationsImpl,\n JobStreamOperationsImpl,\n OperationsImpl,\n SoftwareUpdateConfigurationsImpl,\n SoftwareUpdateConfigurationRunsImpl,\n SoftwareUpdateConfigurationMachineRunsImpl,\n RunbookDraftOperationsImpl,\n RunbookOperationsImpl,\n TestJobStreamsImpl,\n TestJobOperationsImpl,\n WebhookOperationsImpl,\n HybridRunbookWorkersImpl,\n DeletedAutomationAccountsImpl,\n HybridRunbookWorkerGroupOperationsImpl\n} from \"./operations/index.js\";\nimport {\n PrivateEndpointConnections,\n PrivateLinkResources,\n Python2Package,\n AgentRegistrationInformation,\n DscNodeOperations,\n NodeReports,\n DscNodeConfigurationOperations,\n DscCompilationJobOperations,\n DscCompilationJobStream,\n NodeCountInformation,\n SourceControlOperations,\n SourceControlSyncJobOperations,\n SourceControlSyncJobStreams,\n AutomationAccountOperations,\n StatisticsOperations,\n Usages,\n Keys,\n CertificateOperations,\n ConnectionOperations,\n ConnectionTypeOperations,\n CredentialOperations,\n JobScheduleOperations,\n LinkedWorkspaceOperations,\n ActivityOperations,\n ModuleOperations,\n ObjectDataTypes,\n Fields,\n ScheduleOperations,\n VariableOperations,\n WatcherOperations,\n DscConfigurationOperations,\n JobOperations,\n JobStreamOperations,\n Operations,\n SoftwareUpdateConfigurations,\n SoftwareUpdateConfigurationRuns,\n SoftwareUpdateConfigurationMachineRuns,\n RunbookDraftOperations,\n RunbookOperations,\n TestJobStreams,\n TestJobOperations,\n WebhookOperations,\n HybridRunbookWorkers,\n DeletedAutomationAccounts,\n HybridRunbookWorkerGroupOperations\n} from \"./operationsInterfaces/index.js\";\nimport * as Parameters from \"./models/parameters.js\";\nimport * as Mappers from \"./models/mappers.js\";\nimport {\n AutomationClientOptionalParams,\n GraphicalRunbookContent,\n ConvertGraphRunbookContentOptionalParams,\n ConvertGraphRunbookContentResponse\n} from \"./models/index.js\";\n\nexport class AutomationClient extends coreClient.ServiceClient {\n $host: string;\n subscriptionId: string;\n\n /**\n * Initializes a new instance of the AutomationClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId Gets subscription credentials which uniquely identify Microsoft Azure\n * subscription. The subscription ID forms part of the URI for every service call.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: AutomationClientOptionalParams\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n if (subscriptionId === undefined) {\n throw new Error(\"'subscriptionId' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: AutomationClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials\n };\n\n const packageDetails = `azsdk-js-arm-automation/11.0.0-beta.5`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix\n },\n endpoint:\n options.endpoint ?? options.baseUri ?? \"https://management.azure.com\"\n };\n super(optionsWithDefaults);\n\n let bearerTokenAuthenticationPolicyFound: boolean = false;\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies();\n bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name ===\n coreRestPipeline.bearerTokenAuthenticationPolicyName\n );\n }\n if (\n !options ||\n !options.pipeline ||\n options.pipeline.getOrderedPolicies().length == 0 ||\n !bearerTokenAuthenticationPolicyFound\n ) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n credential: credentials,\n scopes:\n optionsWithDefaults.credentialScopes ??\n `${optionsWithDefaults.endpoint}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge:\n coreClient.authorizeRequestOnClaimChallenge\n }\n })\n );\n }\n // Parameter assignments\n this.subscriptionId = subscriptionId;\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this);\n this.privateLinkResources = new PrivateLinkResourcesImpl(this);\n this.python2Package = new Python2PackageImpl(this);\n this.agentRegistrationInformation = new AgentRegistrationInformationImpl(\n this\n );\n this.dscNodeOperations = new DscNodeOperationsImpl(this);\n this.nodeReports = new NodeReportsImpl(this);\n this.dscNodeConfigurationOperations = new DscNodeConfigurationOperationsImpl(\n this\n );\n this.dscCompilationJobOperations = new DscCompilationJobOperationsImpl(\n this\n );\n this.dscCompilationJobStream = new DscCompilationJobStreamImpl(this);\n this.nodeCountInformation = new NodeCountInformationImpl(this);\n this.sourceControlOperations = new SourceControlOperationsImpl(this);\n this.sourceControlSyncJobOperations = new SourceControlSyncJobOperationsImpl(\n this\n );\n this.sourceControlSyncJobStreams = new SourceControlSyncJobStreamsImpl(\n this\n );\n this.automationAccountOperations = new AutomationAccountOperationsImpl(\n this\n );\n this.statisticsOperations = new StatisticsOperationsImpl(this);\n this.usages = new UsagesImpl(this);\n this.keys = new KeysImpl(this);\n this.certificateOperations = new CertificateOperationsImpl(this);\n this.connectionOperations = new ConnectionOperationsImpl(this);\n this.connectionTypeOperations = new ConnectionTypeOperationsImpl(this);\n this.credentialOperations = new CredentialOperationsImpl(this);\n this.jobScheduleOperations = new JobScheduleOperationsImpl(this);\n this.linkedWorkspaceOperations = new LinkedWorkspaceOperationsImpl(this);\n this.activityOperations = new ActivityOperationsImpl(this);\n this.moduleOperations = new ModuleOperationsImpl(this);\n this.objectDataTypes = new ObjectDataTypesImpl(this);\n this.fields = new FieldsImpl(this);\n this.scheduleOperations = new ScheduleOperationsImpl(this);\n this.variableOperations = new VariableOperationsImpl(this);\n this.watcherOperations = new WatcherOperationsImpl(this);\n this.dscConfigurationOperations = new DscConfigurationOperationsImpl(this);\n this.jobOperations = new JobOperationsImpl(this);\n this.jobStreamOperations = new JobStreamOperationsImpl(this);\n this.operations = new OperationsImpl(this);\n this.softwareUpdateConfigurations = new SoftwareUpdateConfigurationsImpl(\n this\n );\n this.softwareUpdateConfigurationRuns = new SoftwareUpdateConfigurationRunsImpl(\n this\n );\n this.softwareUpdateConfigurationMachineRuns = new SoftwareUpdateConfigurationMachineRunsImpl(\n this\n );\n this.runbookDraftOperations = new RunbookDraftOperationsImpl(this);\n this.runbookOperations = new RunbookOperationsImpl(this);\n this.testJobStreams = new TestJobStreamsImpl(this);\n this.testJobOperations = new TestJobOperationsImpl(this);\n this.webhookOperations = new WebhookOperationsImpl(this);\n this.hybridRunbookWorkers = new HybridRunbookWorkersImpl(this);\n this.deletedAutomationAccounts = new DeletedAutomationAccountsImpl(this);\n this.hybridRunbookWorkerGroupOperations = new HybridRunbookWorkerGroupOperationsImpl(\n this\n );\n }\n\n /**\n * Post operation to serialize or deserialize GraphRunbookContent\n * @param resourceGroupName Name of an Azure Resource group.\n * @param automationAccountName The name of the automation account.\n * @param parameters Input data describing the graphical runbook.\n * @param options The options parameters.\n */\n convertGraphRunbookContent(\n resourceGroupName: string,\n automationAccountName: string,\n parameters: GraphicalRunbookContent,\n options?: ConvertGraphRunbookContentOptionalParams\n ): Promise<ConvertGraphRunbookContentResponse> {\n return this.sendOperationRequest(\n { resourceGroupName, automationAccountName, parameters, options },\n convertGraphRunbookContentOperationSpec\n );\n }\n\n privateEndpointConnections: PrivateEndpointConnections;\n privateLinkResources: PrivateLinkResources;\n python2Package: Python2Package;\n agentRegistrationInformation: AgentRegistrationInformation;\n dscNodeOperations: DscNodeOperations;\n nodeReports: NodeReports;\n dscNodeConfigurationOperations: DscNodeConfigurationOperations;\n dscCompilationJobOperations: DscCompilationJobOperations;\n dscCompilationJobStream: DscCompilationJobStream;\n nodeCountInformation: NodeCountInformation;\n sourceControlOperations: SourceControlOperations;\n sourceControlSyncJobOperations: SourceControlSyncJobOperations;\n sourceControlSyncJobStreams: SourceControlSyncJobStreams;\n automationAccountOperations: AutomationAccountOperations;\n statisticsOperations: StatisticsOperations;\n usages: Usages;\n keys: Keys;\n certificateOperations: CertificateOperations;\n connectionOperations: ConnectionOperations;\n connectionTypeOperations: ConnectionTypeOperations;\n credentialOperations: CredentialOperations;\n jobScheduleOperations: JobScheduleOperations;\n linkedWorkspaceOperations: LinkedWorkspaceOperations;\n activityOperations: ActivityOperations;\n moduleOperations: ModuleOperations;\n objectDataTypes: ObjectDataTypes;\n fields: Fields;\n scheduleOperations: ScheduleOperations;\n variableOperations: VariableOperations;\n watcherOperations: WatcherOperations;\n dscConfigurationOperations: DscConfigurationOperations;\n jobOperations: JobOperations;\n jobStreamOperations: JobStreamOperations;\n operations: Operations;\n softwareUpdateConfigurations: SoftwareUpdateConfigurations;\n softwareUpdateConfigurationRuns: SoftwareUpdateConfigurationRuns;\n softwareUpdateConfigurationMachineRuns: SoftwareUpdateConfigurationMachineRuns;\n runbookDraftOperations: RunbookDraftOperations;\n runbookOperations: RunbookOperations;\n testJobStreams: TestJobStreams;\n testJobOperations: TestJobOperations;\n webhookOperations: WebhookOperations;\n hybridRunbookWorkers: HybridRunbookWorkers;\n deletedAutomationAccounts: DeletedAutomationAccounts;\n hybridRunbookWorkerGroupOperations: HybridRunbookWorkerGroupOperations;\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst convertGraphRunbookContentOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/convertGraphRunbookContent\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.GraphicalRunbookContent\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.parameters32,\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.automationAccountName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\n"]}
|
|
1
|
+
{"version":3,"file":"automationClient.js","sourceRoot":"","sources":["../../src/automationClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAE9D,OAAO,EACL,8BAA8B,EAC9B,wBAAwB,EACxB,kBAAkB,EAClB,gCAAgC,EAChC,qBAAqB,EACrB,eAAe,EACf,kCAAkC,EAClC,+BAA+B,EAC/B,2BAA2B,EAC3B,wBAAwB,EACxB,2BAA2B,EAC3B,kCAAkC,EAClC,+BAA+B,EAC/B,+BAA+B,EAC/B,wBAAwB,EACxB,UAAU,EACV,QAAQ,EACR,yBAAyB,EACzB,wBAAwB,EACxB,4BAA4B,EAC5B,wBAAwB,EACxB,yBAAyB,EACzB,6BAA6B,EAC7B,sBAAsB,EACtB,oBAAoB,EACpB,mBAAmB,EACnB,UAAU,EACV,sBAAsB,EACtB,sBAAsB,EACtB,qBAAqB,EACrB,8BAA8B,EAC9B,iBAAiB,EACjB,uBAAuB,EACvB,cAAc,EACd,gCAAgC,EAChC,mCAAmC,EACnC,0CAA0C,EAC1C,0BAA0B,EAC1B,qBAAqB,EACrB,kBAAkB,EAClB,qBAAqB,EACrB,qBAAqB,EACrB,wBAAwB,EACxB,6BAA6B,EAC7B,sCAAsC,EACvC,MAAM,uBAAuB,CAAC;AAgD/B,OA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kB,CAAqB;IACvC,iBAAiB,CAAoB;IACrC,0BAA0B,CAA6B;IACvD,aAAa,CAAgB;IAC7B,mBAAmB,CAAsB;IACzC,UAAU,CAAa;IACvB,4BAA4B,CAA+B;IAC3D,+BAA+B,CAAkC;IACjE,sCAAsC,CAAyC;IAC/E,sBAAsB,CAAyB;IAC/C,iBAAiB,CAAoB;IACrC,cAAc,CAAiB;IAC/B,iBAAiB,CAAoB;IACrC,iBAAiB,CAAoB;IACrC,oBAAoB,CAAuB;IAC3C,yBAAyB,CAA4B;IACrD,kCAAkC,CAAqC;CACxE;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,uCAAuC,GAA6B;IACxE,IAAI,EACF,yKAAyK;IAC3K,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,uBAAuB;SAC5C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,WAAW,EAAE,UAAU,CAAC,YAAY;IACpC,eAAe,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC;IACzC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,qBAAqB;KACjC;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport {\n PrivateEndpointConnectionsImpl,\n PrivateLinkResourcesImpl,\n Python2PackageImpl,\n AgentRegistrationInformationImpl,\n DscNodeOperationsImpl,\n NodeReportsImpl,\n DscNodeConfigurationOperationsImpl,\n DscCompilationJobOperationsImpl,\n DscCompilationJobStreamImpl,\n NodeCountInformationImpl,\n SourceControlOperationsImpl,\n SourceControlSyncJobOperationsImpl,\n SourceControlSyncJobStreamsImpl,\n AutomationAccountOperationsImpl,\n StatisticsOperationsImpl,\n UsagesImpl,\n KeysImpl,\n CertificateOperationsImpl,\n ConnectionOperationsImpl,\n ConnectionTypeOperationsImpl,\n CredentialOperationsImpl,\n JobScheduleOperationsImpl,\n LinkedWorkspaceOperationsImpl,\n ActivityOperationsImpl,\n ModuleOperationsImpl,\n ObjectDataTypesImpl,\n FieldsImpl,\n ScheduleOperationsImpl,\n VariableOperationsImpl,\n WatcherOperationsImpl,\n DscConfigurationOperationsImpl,\n JobOperationsImpl,\n JobStreamOperationsImpl,\n OperationsImpl,\n SoftwareUpdateConfigurationsImpl,\n SoftwareUpdateConfigurationRunsImpl,\n SoftwareUpdateConfigurationMachineRunsImpl,\n RunbookDraftOperationsImpl,\n RunbookOperationsImpl,\n TestJobStreamsImpl,\n TestJobOperationsImpl,\n WebhookOperationsImpl,\n HybridRunbookWorkersImpl,\n DeletedAutomationAccountsImpl,\n HybridRunbookWorkerGroupOperationsImpl\n} from \"./operations/index.js\";\nimport {\n PrivateEndpointConnections,\n PrivateLinkResources,\n Python2Package,\n AgentRegistrationInformation,\n DscNodeOperations,\n NodeReports,\n DscNodeConfigurationOperations,\n DscCompilationJobOperations,\n DscCompilationJobStream,\n NodeCountInformation,\n SourceControlOperations,\n SourceControlSyncJobOperations,\n SourceControlSyncJobStreams,\n AutomationAccountOperations,\n StatisticsOperations,\n Usages,\n Keys,\n CertificateOperations,\n ConnectionOperations,\n ConnectionTypeOperations,\n CredentialOperations,\n JobScheduleOperations,\n LinkedWorkspaceOperations,\n ActivityOperations,\n ModuleOperations,\n ObjectDataTypes,\n Fields,\n ScheduleOperations,\n VariableOperations,\n WatcherOperations,\n DscConfigurationOperations,\n JobOperations,\n JobStreamOperations,\n Operations,\n SoftwareUpdateConfigurations,\n SoftwareUpdateConfigurationRuns,\n SoftwareUpdateConfigurationMachineRuns,\n RunbookDraftOperations,\n RunbookOperations,\n TestJobStreams,\n TestJobOperations,\n WebhookOperations,\n HybridRunbookWorkers,\n DeletedAutomationAccounts,\n HybridRunbookWorkerGroupOperations\n} from \"./operationsInterfaces/index.js\";\nimport * as Parameters from \"./models/parameters.js\";\nimport * as Mappers from \"./models/mappers.js\";\nimport {\n AutomationClientOptionalParams,\n GraphicalRunbookContent,\n ConvertGraphRunbookContentOptionalParams,\n ConvertGraphRunbookContentResponse\n} from \"./models/index.js\";\n\nexport class AutomationClient extends coreClient.ServiceClient {\n $host: string;\n subscriptionId: string;\n\n /**\n * Initializes a new instance of the AutomationClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId Gets subscription credentials which uniquely identify Microsoft Azure\n * subscription. The subscription ID forms part of the URI for every service call.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: AutomationClientOptionalParams\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n if (subscriptionId === undefined) {\n throw new Error(\"'subscriptionId' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: AutomationClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials\n };\n\n const packageDetails = `azsdk-js-arm-automation/11.0.0-beta.6`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix\n },\n endpoint:\n options.endpoint ?? options.baseUri ?? \"https://management.azure.com\"\n };\n super(optionsWithDefaults);\n\n let bearerTokenAuthenticationPolicyFound: boolean = false;\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies();\n bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name ===\n coreRestPipeline.bearerTokenAuthenticationPolicyName\n );\n }\n if (\n !options ||\n !options.pipeline ||\n options.pipeline.getOrderedPolicies().length == 0 ||\n !bearerTokenAuthenticationPolicyFound\n ) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n credential: credentials,\n scopes:\n optionsWithDefaults.credentialScopes ??\n `${optionsWithDefaults.endpoint}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge:\n coreClient.authorizeRequestOnClaimChallenge\n }\n })\n );\n }\n // Parameter assignments\n this.subscriptionId = subscriptionId;\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this);\n this.privateLinkResources = new PrivateLinkResourcesImpl(this);\n this.python2Package = new Python2PackageImpl(this);\n this.agentRegistrationInformation = new AgentRegistrationInformationImpl(\n this\n );\n this.dscNodeOperations = new DscNodeOperationsImpl(this);\n this.nodeReports = new NodeReportsImpl(this);\n this.dscNodeConfigurationOperations = new DscNodeConfigurationOperationsImpl(\n this\n );\n this.dscCompilationJobOperations = new DscCompilationJobOperationsImpl(\n this\n );\n this.dscCompilationJobStream = new DscCompilationJobStreamImpl(this);\n this.nodeCountInformation = new NodeCountInformationImpl(this);\n this.sourceControlOperations = new SourceControlOperationsImpl(this);\n this.sourceControlSyncJobOperations = new SourceControlSyncJobOperationsImpl(\n this\n );\n this.sourceControlSyncJobStreams = new SourceControlSyncJobStreamsImpl(\n this\n );\n this.automationAccountOperations = new AutomationAccountOperationsImpl(\n this\n );\n this.statisticsOperations = new StatisticsOperationsImpl(this);\n this.usages = new UsagesImpl(this);\n this.keys = new KeysImpl(this);\n this.certificateOperations = new CertificateOperationsImpl(this);\n this.connectionOperations = new ConnectionOperationsImpl(this);\n this.connectionTypeOperations = new ConnectionTypeOperationsImpl(this);\n this.credentialOperations = new CredentialOperationsImpl(this);\n this.jobScheduleOperations = new JobScheduleOperationsImpl(this);\n this.linkedWorkspaceOperations = new LinkedWorkspaceOperationsImpl(this);\n this.activityOperations = new ActivityOperationsImpl(this);\n this.moduleOperations = new ModuleOperationsImpl(this);\n this.objectDataTypes = new ObjectDataTypesImpl(this);\n this.fields = new FieldsImpl(this);\n this.scheduleOperations = new ScheduleOperationsImpl(this);\n this.variableOperations = new VariableOperationsImpl(this);\n this.watcherOperations = new WatcherOperationsImpl(this);\n this.dscConfigurationOperations = new DscConfigurationOperationsImpl(this);\n this.jobOperations = new JobOperationsImpl(this);\n this.jobStreamOperations = new JobStreamOperationsImpl(this);\n this.operations = new OperationsImpl(this);\n this.softwareUpdateConfigurations = new SoftwareUpdateConfigurationsImpl(\n this\n );\n this.softwareUpdateConfigurationRuns = new SoftwareUpdateConfigurationRunsImpl(\n this\n );\n this.softwareUpdateConfigurationMachineRuns = new SoftwareUpdateConfigurationMachineRunsImpl(\n this\n );\n this.runbookDraftOperations = new RunbookDraftOperationsImpl(this);\n this.runbookOperations = new RunbookOperationsImpl(this);\n this.testJobStreams = new TestJobStreamsImpl(this);\n this.testJobOperations = new TestJobOperationsImpl(this);\n this.webhookOperations = new WebhookOperationsImpl(this);\n this.hybridRunbookWorkers = new HybridRunbookWorkersImpl(this);\n this.deletedAutomationAccounts = new DeletedAutomationAccountsImpl(this);\n this.hybridRunbookWorkerGroupOperations = new HybridRunbookWorkerGroupOperationsImpl(\n this\n );\n }\n\n /**\n * Post operation to serialize or deserialize GraphRunbookContent\n * @param resourceGroupName Name of an Azure Resource group.\n * @param automationAccountName The name of the automation account.\n * @param parameters Input data describing the graphical runbook.\n * @param options The options parameters.\n */\n convertGraphRunbookContent(\n resourceGroupName: string,\n automationAccountName: string,\n parameters: GraphicalRunbookContent,\n options?: ConvertGraphRunbookContentOptionalParams\n ): Promise<ConvertGraphRunbookContentResponse> {\n return this.sendOperationRequest(\n { resourceGroupName, automationAccountName, parameters, options },\n convertGraphRunbookContentOperationSpec\n );\n }\n\n privateEndpointConnections: PrivateEndpointConnections;\n privateLinkResources: PrivateLinkResources;\n python2Package: Python2Package;\n agentRegistrationInformation: AgentRegistrationInformation;\n dscNodeOperations: DscNodeOperations;\n nodeReports: NodeReports;\n dscNodeConfigurationOperations: DscNodeConfigurationOperations;\n dscCompilationJobOperations: DscCompilationJobOperations;\n dscCompilationJobStream: DscCompilationJobStream;\n nodeCountInformation: NodeCountInformation;\n sourceControlOperations: SourceControlOperations;\n sourceControlSyncJobOperations: SourceControlSyncJobOperations;\n sourceControlSyncJobStreams: SourceControlSyncJobStreams;\n automationAccountOperations: AutomationAccountOperations;\n statisticsOperations: StatisticsOperations;\n usages: Usages;\n keys: Keys;\n certificateOperations: CertificateOperations;\n connectionOperations: ConnectionOperations;\n connectionTypeOperations: ConnectionTypeOperations;\n credentialOperations: CredentialOperations;\n jobScheduleOperations: JobScheduleOperations;\n linkedWorkspaceOperations: LinkedWorkspaceOperations;\n activityOperations: ActivityOperations;\n moduleOperations: ModuleOperations;\n objectDataTypes: ObjectDataTypes;\n fields: Fields;\n scheduleOperations: ScheduleOperations;\n variableOperations: VariableOperations;\n watcherOperations: WatcherOperations;\n dscConfigurationOperations: DscConfigurationOperations;\n jobOperations: JobOperations;\n jobStreamOperations: JobStreamOperations;\n operations: Operations;\n softwareUpdateConfigurations: SoftwareUpdateConfigurations;\n softwareUpdateConfigurationRuns: SoftwareUpdateConfigurationRuns;\n softwareUpdateConfigurationMachineRuns: SoftwareUpdateConfigurationMachineRuns;\n runbookDraftOperations: RunbookDraftOperations;\n runbookOperations: RunbookOperations;\n testJobStreams: TestJobStreams;\n testJobOperations: TestJobOperations;\n webhookOperations: WebhookOperations;\n hybridRunbookWorkers: HybridRunbookWorkers;\n deletedAutomationAccounts: DeletedAutomationAccounts;\n hybridRunbookWorkerGroupOperations: HybridRunbookWorkerGroupOperations;\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst convertGraphRunbookContentOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/convertGraphRunbookContent\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.GraphicalRunbookContent\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.parameters32,\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.automationAccountName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\n"]}
|
|
@@ -39,7 +39,7 @@ class AutomationClient extends coreClient.ServiceClient {
|
|
|
39
39
|
requestContentType: "application/json; charset=utf-8",
|
|
40
40
|
credential: credentials
|
|
41
41
|
};
|
|
42
|
-
const packageDetails = `azsdk-js-arm-automation/11.0.0-beta.
|
|
42
|
+
const packageDetails = `azsdk-js-arm-automation/11.0.0-beta.6`;
|
|
43
43
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
44
44
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
45
45
|
: `${packageDetails}`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"automationClient.js","sourceRoot":"","sources":["../../src/automationClient.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAEH,uEAAiD;AACjD,oFAA8D;AAE9D,oDA8C+B;AAgD/B,2EAAqD;AACrD,qEAA+C;AAQ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mB,CAAsB;IACzC,UAAU,CAAa;IACvB,4BAA4B,CAA+B;IAC3D,+BAA+B,CAAkC;IACjE,sCAAsC,CAAyC;IAC/E,sBAAsB,CAAyB;IAC/C,iBAAiB,CAAoB;IACrC,cAAc,CAAiB;IAC/B,iBAAiB,CAAoB;IACrC,iBAAiB,CAAoB;IACrC,oBAAoB,CAAuB;IAC3C,yBAAyB,CAA4B;IACrD,kCAAkC,CAAqC;CACxE;AAxND,4CAwNC;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,uCAAuC,GAA6B;IACxE,IAAI,EACF,yKAAyK;IAC3K,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,uBAAuB;SAC5C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,WAAW,EAAE,UAAU,CAAC,YAAY;IACpC,eAAe,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC;IACzC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,qBAAqB;KACjC;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport {\n PrivateEndpointConnectionsImpl,\n PrivateLinkResourcesImpl,\n Python2PackageImpl,\n AgentRegistrationInformationImpl,\n DscNodeOperationsImpl,\n NodeReportsImpl,\n DscNodeConfigurationOperationsImpl,\n DscCompilationJobOperationsImpl,\n DscCompilationJobStreamImpl,\n NodeCountInformationImpl,\n SourceControlOperationsImpl,\n SourceControlSyncJobOperationsImpl,\n SourceControlSyncJobStreamsImpl,\n AutomationAccountOperationsImpl,\n StatisticsOperationsImpl,\n UsagesImpl,\n KeysImpl,\n CertificateOperationsImpl,\n ConnectionOperationsImpl,\n ConnectionTypeOperationsImpl,\n CredentialOperationsImpl,\n JobScheduleOperationsImpl,\n LinkedWorkspaceOperationsImpl,\n ActivityOperationsImpl,\n ModuleOperationsImpl,\n ObjectDataTypesImpl,\n FieldsImpl,\n ScheduleOperationsImpl,\n VariableOperationsImpl,\n WatcherOperationsImpl,\n DscConfigurationOperationsImpl,\n JobOperationsImpl,\n JobStreamOperationsImpl,\n OperationsImpl,\n SoftwareUpdateConfigurationsImpl,\n SoftwareUpdateConfigurationRunsImpl,\n SoftwareUpdateConfigurationMachineRunsImpl,\n RunbookDraftOperationsImpl,\n RunbookOperationsImpl,\n TestJobStreamsImpl,\n TestJobOperationsImpl,\n WebhookOperationsImpl,\n HybridRunbookWorkersImpl,\n DeletedAutomationAccountsImpl,\n HybridRunbookWorkerGroupOperationsImpl\n} from \"./operations/index.js\";\nimport {\n PrivateEndpointConnections,\n PrivateLinkResources,\n Python2Package,\n AgentRegistrationInformation,\n DscNodeOperations,\n NodeReports,\n DscNodeConfigurationOperations,\n DscCompilationJobOperations,\n DscCompilationJobStream,\n NodeCountInformation,\n SourceControlOperations,\n SourceControlSyncJobOperations,\n SourceControlSyncJobStreams,\n AutomationAccountOperations,\n StatisticsOperations,\n Usages,\n Keys,\n CertificateOperations,\n ConnectionOperations,\n ConnectionTypeOperations,\n CredentialOperations,\n JobScheduleOperations,\n LinkedWorkspaceOperations,\n ActivityOperations,\n ModuleOperations,\n ObjectDataTypes,\n Fields,\n ScheduleOperations,\n VariableOperations,\n WatcherOperations,\n DscConfigurationOperations,\n JobOperations,\n JobStreamOperations,\n Operations,\n SoftwareUpdateConfigurations,\n SoftwareUpdateConfigurationRuns,\n SoftwareUpdateConfigurationMachineRuns,\n RunbookDraftOperations,\n RunbookOperations,\n TestJobStreams,\n TestJobOperations,\n WebhookOperations,\n HybridRunbookWorkers,\n DeletedAutomationAccounts,\n HybridRunbookWorkerGroupOperations\n} from \"./operationsInterfaces/index.js\";\nimport * as Parameters from \"./models/parameters.js\";\nimport * as Mappers from \"./models/mappers.js\";\nimport {\n AutomationClientOptionalParams,\n GraphicalRunbookContent,\n ConvertGraphRunbookContentOptionalParams,\n ConvertGraphRunbookContentResponse\n} from \"./models/index.js\";\n\nexport class AutomationClient extends coreClient.ServiceClient {\n $host: string;\n subscriptionId: string;\n\n /**\n * Initializes a new instance of the AutomationClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId Gets subscription credentials which uniquely identify Microsoft Azure\n * subscription. The subscription ID forms part of the URI for every service call.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: AutomationClientOptionalParams\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n if (subscriptionId === undefined) {\n throw new Error(\"'subscriptionId' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: AutomationClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials\n };\n\n const packageDetails = `azsdk-js-arm-automation/11.0.0-beta.5`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix\n },\n endpoint:\n options.endpoint ?? options.baseUri ?? \"https://management.azure.com\"\n };\n super(optionsWithDefaults);\n\n let bearerTokenAuthenticationPolicyFound: boolean = false;\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies();\n bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name ===\n coreRestPipeline.bearerTokenAuthenticationPolicyName\n );\n }\n if (\n !options ||\n !options.pipeline ||\n options.pipeline.getOrderedPolicies().length == 0 ||\n !bearerTokenAuthenticationPolicyFound\n ) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n credential: credentials,\n scopes:\n optionsWithDefaults.credentialScopes ??\n `${optionsWithDefaults.endpoint}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge:\n coreClient.authorizeRequestOnClaimChallenge\n }\n })\n );\n }\n // Parameter assignments\n this.subscriptionId = subscriptionId;\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this);\n this.privateLinkResources = new PrivateLinkResourcesImpl(this);\n this.python2Package = new Python2PackageImpl(this);\n this.agentRegistrationInformation = new AgentRegistrationInformationImpl(\n this\n );\n this.dscNodeOperations = new DscNodeOperationsImpl(this);\n this.nodeReports = new NodeReportsImpl(this);\n this.dscNodeConfigurationOperations = new DscNodeConfigurationOperationsImpl(\n this\n );\n this.dscCompilationJobOperations = new DscCompilationJobOperationsImpl(\n this\n );\n this.dscCompilationJobStream = new DscCompilationJobStreamImpl(this);\n this.nodeCountInformation = new NodeCountInformationImpl(this);\n this.sourceControlOperations = new SourceControlOperationsImpl(this);\n this.sourceControlSyncJobOperations = new SourceControlSyncJobOperationsImpl(\n this\n );\n this.sourceControlSyncJobStreams = new SourceControlSyncJobStreamsImpl(\n this\n );\n this.automationAccountOperations = new AutomationAccountOperationsImpl(\n this\n );\n this.statisticsOperations = new StatisticsOperationsImpl(this);\n this.usages = new UsagesImpl(this);\n this.keys = new KeysImpl(this);\n this.certificateOperations = new CertificateOperationsImpl(this);\n this.connectionOperations = new ConnectionOperationsImpl(this);\n this.connectionTypeOperations = new ConnectionTypeOperationsImpl(this);\n this.credentialOperations = new CredentialOperationsImpl(this);\n this.jobScheduleOperations = new JobScheduleOperationsImpl(this);\n this.linkedWorkspaceOperations = new LinkedWorkspaceOperationsImpl(this);\n this.activityOperations = new ActivityOperationsImpl(this);\n this.moduleOperations = new ModuleOperationsImpl(this);\n this.objectDataTypes = new ObjectDataTypesImpl(this);\n this.fields = new FieldsImpl(this);\n this.scheduleOperations = new ScheduleOperationsImpl(this);\n this.variableOperations = new VariableOperationsImpl(this);\n this.watcherOperations = new WatcherOperationsImpl(this);\n this.dscConfigurationOperations = new DscConfigurationOperationsImpl(this);\n this.jobOperations = new JobOperationsImpl(this);\n this.jobStreamOperations = new JobStreamOperationsImpl(this);\n this.operations = new OperationsImpl(this);\n this.softwareUpdateConfigurations = new SoftwareUpdateConfigurationsImpl(\n this\n );\n this.softwareUpdateConfigurationRuns = new SoftwareUpdateConfigurationRunsImpl(\n this\n );\n this.softwareUpdateConfigurationMachineRuns = new SoftwareUpdateConfigurationMachineRunsImpl(\n this\n );\n this.runbookDraftOperations = new RunbookDraftOperationsImpl(this);\n this.runbookOperations = new RunbookOperationsImpl(this);\n this.testJobStreams = new TestJobStreamsImpl(this);\n this.testJobOperations = new TestJobOperationsImpl(this);\n this.webhookOperations = new WebhookOperationsImpl(this);\n this.hybridRunbookWorkers = new HybridRunbookWorkersImpl(this);\n this.deletedAutomationAccounts = new DeletedAutomationAccountsImpl(this);\n this.hybridRunbookWorkerGroupOperations = new HybridRunbookWorkerGroupOperationsImpl(\n this\n );\n }\n\n /**\n * Post operation to serialize or deserialize GraphRunbookContent\n * @param resourceGroupName Name of an Azure Resource group.\n * @param automationAccountName The name of the automation account.\n * @param parameters Input data describing the graphical runbook.\n * @param options The options parameters.\n */\n convertGraphRunbookContent(\n resourceGroupName: string,\n automationAccountName: string,\n parameters: GraphicalRunbookContent,\n options?: ConvertGraphRunbookContentOptionalParams\n ): Promise<ConvertGraphRunbookContentResponse> {\n return this.sendOperationRequest(\n { resourceGroupName, automationAccountName, parameters, options },\n convertGraphRunbookContentOperationSpec\n );\n }\n\n privateEndpointConnections: PrivateEndpointConnections;\n privateLinkResources: PrivateLinkResources;\n python2Package: Python2Package;\n agentRegistrationInformation: AgentRegistrationInformation;\n dscNodeOperations: DscNodeOperations;\n nodeReports: NodeReports;\n dscNodeConfigurationOperations: DscNodeConfigurationOperations;\n dscCompilationJobOperations: DscCompilationJobOperations;\n dscCompilationJobStream: DscCompilationJobStream;\n nodeCountInformation: NodeCountInformation;\n sourceControlOperations: SourceControlOperations;\n sourceControlSyncJobOperations: SourceControlSyncJobOperations;\n sourceControlSyncJobStreams: SourceControlSyncJobStreams;\n automationAccountOperations: AutomationAccountOperations;\n statisticsOperations: StatisticsOperations;\n usages: Usages;\n keys: Keys;\n certificateOperations: CertificateOperations;\n connectionOperations: ConnectionOperations;\n connectionTypeOperations: ConnectionTypeOperations;\n credentialOperations: CredentialOperations;\n jobScheduleOperations: JobScheduleOperations;\n linkedWorkspaceOperations: LinkedWorkspaceOperations;\n activityOperations: ActivityOperations;\n moduleOperations: ModuleOperations;\n objectDataTypes: ObjectDataTypes;\n fields: Fields;\n scheduleOperations: ScheduleOperations;\n variableOperations: VariableOperations;\n watcherOperations: WatcherOperations;\n dscConfigurationOperations: DscConfigurationOperations;\n jobOperations: JobOperations;\n jobStreamOperations: JobStreamOperations;\n operations: Operations;\n softwareUpdateConfigurations: SoftwareUpdateConfigurations;\n softwareUpdateConfigurationRuns: SoftwareUpdateConfigurationRuns;\n softwareUpdateConfigurationMachineRuns: SoftwareUpdateConfigurationMachineRuns;\n runbookDraftOperations: RunbookDraftOperations;\n runbookOperations: RunbookOperations;\n testJobStreams: TestJobStreams;\n testJobOperations: TestJobOperations;\n webhookOperations: WebhookOperations;\n hybridRunbookWorkers: HybridRunbookWorkers;\n deletedAutomationAccounts: DeletedAutomationAccounts;\n hybridRunbookWorkerGroupOperations: HybridRunbookWorkerGroupOperations;\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst convertGraphRunbookContentOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/convertGraphRunbookContent\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.GraphicalRunbookContent\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.parameters32,\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.automationAccountName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\n"]}
|
|
1
|
+
{"version":3,"file":"automationClient.js","sourceRoot":"","sources":["../../src/automationClient.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAEH,uEAAiD;AACjD,oFAA8D;AAE9D,oDA8C+B;AAgD/B,2EAAqD;AACrD,qEAA+C;AAQ/C,MAAa,gBAAiB,SAAQ,UAAU,CAAC,aAAa;IAC5D,KAAK,CAAS;IACd,cAAc,CAAS;IAEvB;;;;;;OAMG;IACH,YACE,WAAqC,EACrC,cAAsB,EACtB,OAAwC;QAExC,IAAI,WAAW,KAAK,SAAS,EAAE,CAAC;YAC9B,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;QAClD,CAAC;QACD,IAAI,cAAc,KAAK,SAAS,EAAE,CAAC;YACjC,MAAM,IAAI,KAAK,CAAC,iCAAiC,CAAC,CAAC;QACrD,CAAC;QAED,0CAA0C;QAC1C,IAAI,CAAC,OAAO,EAAE,CAAC;YACb,OAAO,GAAG,EAAE,CAAC;QACf,CAAC;QACD,MAAM,QA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C3K,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,uBAAuB;SAC5C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,WAAW,EAAE,UAAU,CAAC,YAAY;IACpC,eAAe,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC;IACzC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,qBAAqB;KACjC;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport {\n PrivateEndpointConnectionsImpl,\n PrivateLinkResourcesImpl,\n Python2PackageImpl,\n AgentRegistrationInformationImpl,\n DscNodeOperationsImpl,\n NodeReportsImpl,\n DscNodeConfigurationOperationsImpl,\n DscCompilationJobOperationsImpl,\n DscCompilationJobStreamImpl,\n NodeCountInformationImpl,\n SourceControlOperationsImpl,\n SourceControlSyncJobOperationsImpl,\n SourceControlSyncJobStreamsImpl,\n AutomationAccountOperationsImpl,\n StatisticsOperationsImpl,\n UsagesImpl,\n KeysImpl,\n CertificateOperationsImpl,\n ConnectionOperationsImpl,\n ConnectionTypeOperationsImpl,\n CredentialOperationsImpl,\n JobScheduleOperationsImpl,\n LinkedWorkspaceOperationsImpl,\n ActivityOperationsImpl,\n ModuleOperationsImpl,\n ObjectDataTypesImpl,\n FieldsImpl,\n ScheduleOperationsImpl,\n VariableOperationsImpl,\n WatcherOperationsImpl,\n DscConfigurationOperationsImpl,\n JobOperationsImpl,\n JobStreamOperationsImpl,\n OperationsImpl,\n SoftwareUpdateConfigurationsImpl,\n SoftwareUpdateConfigurationRunsImpl,\n SoftwareUpdateConfigurationMachineRunsImpl,\n RunbookDraftOperationsImpl,\n RunbookOperationsImpl,\n TestJobStreamsImpl,\n TestJobOperationsImpl,\n WebhookOperationsImpl,\n HybridRunbookWorkersImpl,\n DeletedAutomationAccountsImpl,\n HybridRunbookWorkerGroupOperationsImpl\n} from \"./operations/index.js\";\nimport {\n PrivateEndpointConnections,\n PrivateLinkResources,\n Python2Package,\n AgentRegistrationInformation,\n DscNodeOperations,\n NodeReports,\n DscNodeConfigurationOperations,\n DscCompilationJobOperations,\n DscCompilationJobStream,\n NodeCountInformation,\n SourceControlOperations,\n SourceControlSyncJobOperations,\n SourceControlSyncJobStreams,\n AutomationAccountOperations,\n StatisticsOperations,\n Usages,\n Keys,\n CertificateOperations,\n ConnectionOperations,\n ConnectionTypeOperations,\n CredentialOperations,\n JobScheduleOperations,\n LinkedWorkspaceOperations,\n ActivityOperations,\n ModuleOperations,\n ObjectDataTypes,\n Fields,\n ScheduleOperations,\n VariableOperations,\n WatcherOperations,\n DscConfigurationOperations,\n JobOperations,\n JobStreamOperations,\n Operations,\n SoftwareUpdateConfigurations,\n SoftwareUpdateConfigurationRuns,\n SoftwareUpdateConfigurationMachineRuns,\n RunbookDraftOperations,\n RunbookOperations,\n TestJobStreams,\n TestJobOperations,\n WebhookOperations,\n HybridRunbookWorkers,\n DeletedAutomationAccounts,\n HybridRunbookWorkerGroupOperations\n} from \"./operationsInterfaces/index.js\";\nimport * as Parameters from \"./models/parameters.js\";\nimport * as Mappers from \"./models/mappers.js\";\nimport {\n AutomationClientOptionalParams,\n GraphicalRunbookContent,\n ConvertGraphRunbookContentOptionalParams,\n ConvertGraphRunbookContentResponse\n} from \"./models/index.js\";\n\nexport class AutomationClient extends coreClient.ServiceClient {\n $host: string;\n subscriptionId: string;\n\n /**\n * Initializes a new instance of the AutomationClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId Gets subscription credentials which uniquely identify Microsoft Azure\n * subscription. The subscription ID forms part of the URI for every service call.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: AutomationClientOptionalParams\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n if (subscriptionId === undefined) {\n throw new Error(\"'subscriptionId' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: AutomationClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials\n };\n\n const packageDetails = `azsdk-js-arm-automation/11.0.0-beta.6`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix\n },\n endpoint:\n options.endpoint ?? options.baseUri ?? \"https://management.azure.com\"\n };\n super(optionsWithDefaults);\n\n let bearerTokenAuthenticationPolicyFound: boolean = false;\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies();\n bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name ===\n coreRestPipeline.bearerTokenAuthenticationPolicyName\n );\n }\n if (\n !options ||\n !options.pipeline ||\n options.pipeline.getOrderedPolicies().length == 0 ||\n !bearerTokenAuthenticationPolicyFound\n ) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n credential: credentials,\n scopes:\n optionsWithDefaults.credentialScopes ??\n `${optionsWithDefaults.endpoint}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge:\n coreClient.authorizeRequestOnClaimChallenge\n }\n })\n );\n }\n // Parameter assignments\n this.subscriptionId = subscriptionId;\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this);\n this.privateLinkResources = new PrivateLinkResourcesImpl(this);\n this.python2Package = new Python2PackageImpl(this);\n this.agentRegistrationInformation = new AgentRegistrationInformationImpl(\n this\n );\n this.dscNodeOperations = new DscNodeOperationsImpl(this);\n this.nodeReports = new NodeReportsImpl(this);\n this.dscNodeConfigurationOperations = new DscNodeConfigurationOperationsImpl(\n this\n );\n this.dscCompilationJobOperations = new DscCompilationJobOperationsImpl(\n this\n );\n this.dscCompilationJobStream = new DscCompilationJobStreamImpl(this);\n this.nodeCountInformation = new NodeCountInformationImpl(this);\n this.sourceControlOperations = new SourceControlOperationsImpl(this);\n this.sourceControlSyncJobOperations = new SourceControlSyncJobOperationsImpl(\n this\n );\n this.sourceControlSyncJobStreams = new SourceControlSyncJobStreamsImpl(\n this\n );\n this.automationAccountOperations = new AutomationAccountOperationsImpl(\n this\n );\n this.statisticsOperations = new StatisticsOperationsImpl(this);\n this.usages = new UsagesImpl(this);\n this.keys = new KeysImpl(this);\n this.certificateOperations = new CertificateOperationsImpl(this);\n this.connectionOperations = new ConnectionOperationsImpl(this);\n this.connectionTypeOperations = new ConnectionTypeOperationsImpl(this);\n this.credentialOperations = new CredentialOperationsImpl(this);\n this.jobScheduleOperations = new JobScheduleOperationsImpl(this);\n this.linkedWorkspaceOperations = new LinkedWorkspaceOperationsImpl(this);\n this.activityOperations = new ActivityOperationsImpl(this);\n this.moduleOperations = new ModuleOperationsImpl(this);\n this.objectDataTypes = new ObjectDataTypesImpl(this);\n this.fields = new FieldsImpl(this);\n this.scheduleOperations = new ScheduleOperationsImpl(this);\n this.variableOperations = new VariableOperationsImpl(this);\n this.watcherOperations = new WatcherOperationsImpl(this);\n this.dscConfigurationOperations = new DscConfigurationOperationsImpl(this);\n this.jobOperations = new JobOperationsImpl(this);\n this.jobStreamOperations = new JobStreamOperationsImpl(this);\n this.operations = new OperationsImpl(this);\n this.softwareUpdateConfigurations = new SoftwareUpdateConfigurationsImpl(\n this\n );\n this.softwareUpdateConfigurationRuns = new SoftwareUpdateConfigurationRunsImpl(\n this\n );\n this.softwareUpdateConfigurationMachineRuns = new SoftwareUpdateConfigurationMachineRunsImpl(\n this\n );\n this.runbookDraftOperations = new RunbookDraftOperationsImpl(this);\n this.runbookOperations = new RunbookOperationsImpl(this);\n this.testJobStreams = new TestJobStreamsImpl(this);\n this.testJobOperations = new TestJobOperationsImpl(this);\n this.webhookOperations = new WebhookOperationsImpl(this);\n this.hybridRunbookWorkers = new HybridRunbookWorkersImpl(this);\n this.deletedAutomationAccounts = new DeletedAutomationAccountsImpl(this);\n this.hybridRunbookWorkerGroupOperations = new HybridRunbookWorkerGroupOperationsImpl(\n this\n );\n }\n\n /**\n * Post operation to serialize or deserialize GraphRunbookContent\n * @param resourceGroupName Name of an Azure Resource group.\n * @param automationAccountName The name of the automation account.\n * @param parameters Input data describing the graphical runbook.\n * @param options The options parameters.\n */\n convertGraphRunbookContent(\n resourceGroupName: string,\n automationAccountName: string,\n parameters: GraphicalRunbookContent,\n options?: ConvertGraphRunbookContentOptionalParams\n ): Promise<ConvertGraphRunbookContentResponse> {\n return this.sendOperationRequest(\n { resourceGroupName, automationAccountName, parameters, options },\n convertGraphRunbookContentOperationSpec\n );\n }\n\n privateEndpointConnections: PrivateEndpointConnections;\n privateLinkResources: PrivateLinkResources;\n python2Package: Python2Package;\n agentRegistrationInformation: AgentRegistrationInformation;\n dscNodeOperations: DscNodeOperations;\n nodeReports: NodeReports;\n dscNodeConfigurationOperations: DscNodeConfigurationOperations;\n dscCompilationJobOperations: DscCompilationJobOperations;\n dscCompilationJobStream: DscCompilationJobStream;\n nodeCountInformation: NodeCountInformation;\n sourceControlOperations: SourceControlOperations;\n sourceControlSyncJobOperations: SourceControlSyncJobOperations;\n sourceControlSyncJobStreams: SourceControlSyncJobStreams;\n automationAccountOperations: AutomationAccountOperations;\n statisticsOperations: StatisticsOperations;\n usages: Usages;\n keys: Keys;\n certificateOperations: CertificateOperations;\n connectionOperations: ConnectionOperations;\n connectionTypeOperations: ConnectionTypeOperations;\n credentialOperations: CredentialOperations;\n jobScheduleOperations: JobScheduleOperations;\n linkedWorkspaceOperations: LinkedWorkspaceOperations;\n activityOperations: ActivityOperations;\n moduleOperations: ModuleOperations;\n objectDataTypes: ObjectDataTypes;\n fields: Fields;\n scheduleOperations: ScheduleOperations;\n variableOperations: VariableOperations;\n watcherOperations: WatcherOperations;\n dscConfigurationOperations: DscConfigurationOperations;\n jobOperations: JobOperations;\n jobStreamOperations: JobStreamOperations;\n operations: Operations;\n softwareUpdateConfigurations: SoftwareUpdateConfigurations;\n softwareUpdateConfigurationRuns: SoftwareUpdateConfigurationRuns;\n softwareUpdateConfigurationMachineRuns: SoftwareUpdateConfigurationMachineRuns;\n runbookDraftOperations: RunbookDraftOperations;\n runbookOperations: RunbookOperations;\n testJobStreams: TestJobStreams;\n testJobOperations: TestJobOperations;\n webhookOperations: WebhookOperations;\n hybridRunbookWorkers: HybridRunbookWorkers;\n deletedAutomationAccounts: DeletedAutomationAccounts;\n hybridRunbookWorkerGroupOperations: HybridRunbookWorkerGroupOperations;\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst convertGraphRunbookContentOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/convertGraphRunbookContent\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.GraphicalRunbookContent\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.parameters32,\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.automationAccountName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\n"]}
|
|
@@ -35,7 +35,7 @@ export class AutomationClient extends coreClient.ServiceClient {
|
|
|
35
35
|
requestContentType: "application/json; charset=utf-8",
|
|
36
36
|
credential: credentials
|
|
37
37
|
};
|
|
38
|
-
const packageDetails = `azsdk-js-arm-automation/11.0.0-beta.
|
|
38
|
+
const packageDetails = `azsdk-js-arm-automation/11.0.0-beta.6`;
|
|
39
39
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
40
40
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
41
41
|
: `${packageDetails}`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"automationClient.js","sourceRoot":"","sources":["../../src/automationClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAE9D,OAAO,EACL,8BAA8B,EAC9B,wBAAwB,EACxB,kBAAkB,EAClB,gCAAgC,EAChC,qBAAqB,EACrB,eAAe,EACf,kCAAkC,EAClC,+BAA+B,EAC/B,2BAA2B,EAC3B,wBAAwB,EACxB,2BAA2B,EAC3B,kCAAkC,EAClC,+BAA+B,EAC/B,+BAA+B,EAC/B,wBAAwB,EACxB,UAAU,EACV,QAAQ,EACR,yBAAyB,EACzB,wBAAwB,EACxB,4BAA4B,EAC5B,wBAAwB,EACxB,yBAAyB,EACzB,6BAA6B,EAC7B,sBAAsB,EACtB,oBAAoB,EACpB,mBAAmB,EACnB,UAAU,EACV,sBAAsB,EACtB,sBAAsB,EACtB,qBAAqB,EACrB,8BAA8B,EAC9B,iBAAiB,EACjB,uBAAuB,EACvB,cAAc,EACd,gCAAgC,EAChC,m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ation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport {\n PrivateEndpointConnectionsImpl,\n PrivateLinkResourcesImpl,\n Python2PackageImpl,\n AgentRegistrationInformationImpl,\n DscNodeOperationsImpl,\n NodeReportsImpl,\n DscNodeConfigurationOperationsImpl,\n DscCompilationJobOperationsImpl,\n DscCompilationJobStreamImpl,\n NodeCountInformationImpl,\n SourceControlOperationsImpl,\n SourceControlSyncJobOperationsImpl,\n SourceControlSyncJobStreamsImpl,\n AutomationAccountOperationsImpl,\n StatisticsOperationsImpl,\n UsagesImpl,\n KeysImpl,\n CertificateOperationsImpl,\n ConnectionOperationsImpl,\n ConnectionTypeOperationsImpl,\n CredentialOperationsImpl,\n JobScheduleOperationsImpl,\n LinkedWorkspaceOperationsImpl,\n ActivityOperationsImpl,\n ModuleOperationsImpl,\n ObjectDataTypesImpl,\n FieldsImpl,\n ScheduleOperationsImpl,\n VariableOperationsImpl,\n WatcherOperationsImpl,\n DscConfigurationOperationsImpl,\n JobOperationsImpl,\n JobStreamOperationsImpl,\n OperationsImpl,\n SoftwareUpdateConfigurationsImpl,\n SoftwareUpdateConfigurationRunsImpl,\n SoftwareUpdateConfigurationMachineRunsImpl,\n RunbookDraftOperationsImpl,\n RunbookOperationsImpl,\n TestJobStreamsImpl,\n TestJobOperationsImpl,\n WebhookOperationsImpl,\n HybridRunbookWorkersImpl,\n DeletedAutomationAccountsImpl,\n HybridRunbookWorkerGroupOperationsImpl\n} from \"./operations/index.js\";\nimport {\n PrivateEndpointConnections,\n PrivateLinkResources,\n Python2Package,\n AgentRegistrationInformation,\n DscNodeOperations,\n NodeReports,\n DscNodeConfigurationOperations,\n DscCompilationJobOperations,\n DscCompilationJobStream,\n NodeCountInformation,\n SourceControlOperations,\n SourceControlSyncJobOperations,\n SourceControlSyncJobStreams,\n AutomationAccountOperations,\n StatisticsOperations,\n Usages,\n Keys,\n CertificateOperations,\n ConnectionOperations,\n ConnectionTypeOperations,\n CredentialOperations,\n JobScheduleOperations,\n LinkedWorkspaceOperations,\n ActivityOperations,\n ModuleOperations,\n ObjectDataTypes,\n Fields,\n ScheduleOperations,\n VariableOperations,\n WatcherOperations,\n DscConfigurationOperations,\n JobOperations,\n JobStreamOperations,\n Operations,\n SoftwareUpdateConfigurations,\n SoftwareUpdateConfigurationRuns,\n SoftwareUpdateConfigurationMachineRuns,\n RunbookDraftOperations,\n RunbookOperations,\n TestJobStreams,\n TestJobOperations,\n WebhookOperations,\n HybridRunbookWorkers,\n DeletedAutomationAccounts,\n HybridRunbookWorkerGroupOperations\n} from \"./operationsInterfaces/index.js\";\nimport * as Parameters from \"./models/parameters.js\";\nimport * as Mappers from \"./models/mappers.js\";\nimport {\n AutomationClientOptionalParams,\n GraphicalRunbookContent,\n ConvertGraphRunbookContentOptionalParams,\n ConvertGraphRunbookContentResponse\n} from \"./models/index.js\";\n\nexport class AutomationClient extends coreClient.ServiceClient {\n $host: string;\n subscriptionId: string;\n\n /**\n * Initializes a new instance of the AutomationClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId Gets subscription credentials which uniquely identify Microsoft Azure\n * subscription. The subscription ID forms part of the URI for every service call.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: AutomationClientOptionalParams\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n if (subscriptionId === undefined) {\n throw new Error(\"'subscriptionId' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: AutomationClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials\n };\n\n const packageDetails = `azsdk-js-arm-automation/11.0.0-beta.5`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix\n },\n endpoint:\n options.endpoint ?? options.baseUri ?? \"https://management.azure.com\"\n };\n super(optionsWithDefaults);\n\n let bearerTokenAuthenticationPolicyFound: boolean = false;\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies();\n bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name ===\n coreRestPipeline.bearerTokenAuthenticationPolicyName\n );\n }\n if (\n !options ||\n !options.pipeline ||\n options.pipeline.getOrderedPolicies().length == 0 ||\n !bearerTokenAuthenticationPolicyFound\n ) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n credential: credentials,\n scopes:\n optionsWithDefaults.credentialScopes ??\n `${optionsWithDefaults.endpoint}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge:\n coreClient.authorizeRequestOnClaimChallenge\n }\n })\n );\n }\n // Parameter assignments\n this.subscriptionId = subscriptionId;\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this);\n this.privateLinkResources = new PrivateLinkResourcesImpl(this);\n this.python2Package = new Python2PackageImpl(this);\n this.agentRegistrationInformation = new AgentRegistrationInformationImpl(\n this\n );\n this.dscNodeOperations = new DscNodeOperationsImpl(this);\n this.nodeReports = new NodeReportsImpl(this);\n this.dscNodeConfigurationOperations = new DscNodeConfigurationOperationsImpl(\n this\n );\n this.dscCompilationJobOperations = new DscCompilationJobOperationsImpl(\n this\n );\n this.dscCompilationJobStream = new DscCompilationJobStreamImpl(this);\n this.nodeCountInformation = new NodeCountInformationImpl(this);\n this.sourceControlOperations = new SourceControlOperationsImpl(this);\n this.sourceControlSyncJobOperations = new SourceControlSyncJobOperationsImpl(\n this\n );\n this.sourceControlSyncJobStreams = new SourceControlSyncJobStreamsImpl(\n this\n );\n this.automationAccountOperations = new AutomationAccountOperationsImpl(\n this\n );\n this.statisticsOperations = new StatisticsOperationsImpl(this);\n this.usages = new UsagesImpl(this);\n this.keys = new KeysImpl(this);\n this.certificateOperations = new CertificateOperationsImpl(this);\n this.connectionOperations = new ConnectionOperationsImpl(this);\n this.connectionTypeOperations = new ConnectionTypeOperationsImpl(this);\n this.credentialOperations = new CredentialOperationsImpl(this);\n this.jobScheduleOperations = new JobScheduleOperationsImpl(this);\n this.linkedWorkspaceOperations = new LinkedWorkspaceOperationsImpl(this);\n this.activityOperations = new ActivityOperationsImpl(this);\n this.moduleOperations = new ModuleOperationsImpl(this);\n this.objectDataTypes = new ObjectDataTypesImpl(this);\n this.fields = new FieldsImpl(this);\n this.scheduleOperations = new ScheduleOperationsImpl(this);\n this.variableOperations = new VariableOperationsImpl(this);\n this.watcherOperations = new WatcherOperationsImpl(this);\n this.dscConfigurationOperations = new DscConfigurationOperationsImpl(this);\n this.jobOperations = new JobOperationsImpl(this);\n this.jobStreamOperations = new JobStreamOperationsImpl(this);\n this.operations = new OperationsImpl(this);\n this.softwareUpdateConfigurations = new SoftwareUpdateConfigurationsImpl(\n this\n );\n this.softwareUpdateConfigurationRuns = new SoftwareUpdateConfigurationRunsImpl(\n this\n );\n this.softwareUpdateConfigurationMachineRuns = new SoftwareUpdateConfigurationMachineRunsImpl(\n this\n );\n this.runbookDraftOperations = new RunbookDraftOperationsImpl(this);\n this.runbookOperations = new RunbookOperationsImpl(this);\n this.testJobStreams = new TestJobStreamsImpl(this);\n this.testJobOperations = new TestJobOperationsImpl(this);\n this.webhookOperations = new WebhookOperationsImpl(this);\n this.hybridRunbookWorkers = new HybridRunbookWorkersImpl(this);\n this.deletedAutomationAccounts = new DeletedAutomationAccountsImpl(this);\n this.hybridRunbookWorkerGroupOperations = new HybridRunbookWorkerGroupOperationsImpl(\n this\n );\n }\n\n /**\n * Post operation to serialize or deserialize GraphRunbookContent\n * @param resourceGroupName Name of an Azure Resource group.\n * @param automationAccountName The name of the automation account.\n * @param parameters Input data describing the graphical runbook.\n * @param options The options parameters.\n */\n convertGraphRunbookContent(\n resourceGroupName: string,\n automationAccountName: string,\n parameters: GraphicalRunbookContent,\n options?: ConvertGraphRunbookContentOptionalParams\n ): Promise<ConvertGraphRunbookContentResponse> {\n return this.sendOperationRequest(\n { resourceGroupName, automationAccountName, parameters, options },\n convertGraphRunbookContentOperationSpec\n );\n }\n\n privateEndpointConnections: PrivateEndpointConnections;\n privateLinkResources: PrivateLinkResources;\n python2Package: Python2Package;\n agentRegistrationInformation: AgentRegistrationInformation;\n dscNodeOperations: DscNodeOperations;\n nodeReports: NodeReports;\n dscNodeConfigurationOperations: DscNodeConfigurationOperations;\n dscCompilationJobOperations: DscCompilationJobOperations;\n dscCompilationJobStream: DscCompilationJobStream;\n nodeCountInformation: NodeCountInformation;\n sourceControlOperations: SourceControlOperations;\n sourceControlSyncJobOperations: SourceControlSyncJobOperations;\n sourceControlSyncJobStreams: SourceControlSyncJobStreams;\n automationAccountOperations: AutomationAccountOperations;\n statisticsOperations: StatisticsOperations;\n usages: Usages;\n keys: Keys;\n certificateOperations: CertificateOperations;\n connectionOperations: ConnectionOperations;\n connectionTypeOperations: ConnectionTypeOperations;\n credentialOperations: CredentialOperations;\n jobScheduleOperations: JobScheduleOperations;\n linkedWorkspaceOperations: LinkedWorkspaceOperations;\n activityOperations: ActivityOperations;\n moduleOperations: ModuleOperations;\n objectDataTypes: ObjectDataTypes;\n fields: Fields;\n scheduleOperations: ScheduleOperations;\n variableOperations: VariableOperations;\n watcherOperations: WatcherOperations;\n dscConfigurationOperations: DscConfigurationOperations;\n jobOperations: JobOperations;\n jobStreamOperations: JobStreamOperations;\n operations: Operations;\n softwareUpdateConfigurations: SoftwareUpdateConfigurations;\n softwareUpdateConfigurationRuns: SoftwareUpdateConfigurationRuns;\n softwareUpdateConfigurationMachineRuns: SoftwareUpdateConfigurationMachineRuns;\n runbookDraftOperations: RunbookDraftOperations;\n runbookOperations: RunbookOperations;\n testJobStreams: TestJobStreams;\n testJobOperations: TestJobOperations;\n webhookOperations: WebhookOperations;\n hybridRunbookWorkers: HybridRunbookWorkers;\n deletedAutomationAccounts: DeletedAutomationAccounts;\n hybridRunbookWorkerGroupOperations: HybridRunbookWorkerGroupOperations;\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst convertGraphRunbookContentOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/convertGraphRunbookContent\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.GraphicalRunbookContent\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.parameters32,\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.automationAccountName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\n"]}
|
|
1
|
+
{"version":3,"file":"automationClient.js","sourceRoot":"","sources":["../../src/automationClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAE9D,OAAO,EACL,8BAA8B,EAC9B,wBAAwB,EACxB,kBAAkB,EAClB,gCAAgC,EAChC,qBAAqB,EACrB,eAAe,EACf,kCAAkC,EAClC,+BAA+B,EAC/B,2BAA2B,EAC3B,wBAAwB,EACxB,2BAA2B,EAC3B,kCAAkC,EAClC,+BAA+B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e,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC;IACzC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,qBAAqB;KACjC;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport {\n PrivateEndpointConnectionsImpl,\n PrivateLinkResourcesImpl,\n Python2PackageImpl,\n AgentRegistrationInformationImpl,\n DscNodeOperationsImpl,\n NodeReportsImpl,\n DscNodeConfigurationOperationsImpl,\n DscCompilationJobOperationsImpl,\n DscCompilationJobStreamImpl,\n NodeCountInformationImpl,\n SourceControlOperationsImpl,\n SourceControlSyncJobOperationsImpl,\n SourceControlSyncJobStreamsImpl,\n AutomationAccountOperationsImpl,\n StatisticsOperationsImpl,\n UsagesImpl,\n KeysImpl,\n CertificateOperationsImpl,\n ConnectionOperationsImpl,\n ConnectionTypeOperationsImpl,\n CredentialOperationsImpl,\n JobScheduleOperationsImpl,\n LinkedWorkspaceOperationsImpl,\n ActivityOperationsImpl,\n ModuleOperationsImpl,\n ObjectDataTypesImpl,\n FieldsImpl,\n ScheduleOperationsImpl,\n VariableOperationsImpl,\n WatcherOperationsImpl,\n DscConfigurationOperationsImpl,\n JobOperationsImpl,\n JobStreamOperationsImpl,\n OperationsImpl,\n SoftwareUpdateConfigurationsImpl,\n SoftwareUpdateConfigurationRunsImpl,\n SoftwareUpdateConfigurationMachineRunsImpl,\n RunbookDraftOperationsImpl,\n RunbookOperationsImpl,\n TestJobStreamsImpl,\n TestJobOperationsImpl,\n WebhookOperationsImpl,\n HybridRunbookWorkersImpl,\n DeletedAutomationAccountsImpl,\n HybridRunbookWorkerGroupOperationsImpl\n} from \"./operations/index.js\";\nimport {\n PrivateEndpointConnections,\n PrivateLinkResources,\n Python2Package,\n AgentRegistrationInformation,\n DscNodeOperations,\n NodeReports,\n DscNodeConfigurationOperations,\n DscCompilationJobOperations,\n DscCompilationJobStream,\n NodeCountInformation,\n SourceControlOperations,\n SourceControlSyncJobOperations,\n SourceControlSyncJobStreams,\n AutomationAccountOperations,\n StatisticsOperations,\n Usages,\n Keys,\n CertificateOperations,\n ConnectionOperations,\n ConnectionTypeOperations,\n CredentialOperations,\n JobScheduleOperations,\n LinkedWorkspaceOperations,\n ActivityOperations,\n ModuleOperations,\n ObjectDataTypes,\n Fields,\n ScheduleOperations,\n VariableOperations,\n WatcherOperations,\n DscConfigurationOperations,\n JobOperations,\n JobStreamOperations,\n Operations,\n SoftwareUpdateConfigurations,\n SoftwareUpdateConfigurationRuns,\n SoftwareUpdateConfigurationMachineRuns,\n RunbookDraftOperations,\n RunbookOperations,\n TestJobStreams,\n TestJobOperations,\n WebhookOperations,\n HybridRunbookWorkers,\n DeletedAutomationAccounts,\n HybridRunbookWorkerGroupOperations\n} from \"./operationsInterfaces/index.js\";\nimport * as Parameters from \"./models/parameters.js\";\nimport * as Mappers from \"./models/mappers.js\";\nimport {\n AutomationClientOptionalParams,\n GraphicalRunbookContent,\n ConvertGraphRunbookContentOptionalParams,\n ConvertGraphRunbookContentResponse\n} from \"./models/index.js\";\n\nexport class AutomationClient extends coreClient.ServiceClient {\n $host: string;\n subscriptionId: string;\n\n /**\n * Initializes a new instance of the AutomationClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId Gets subscription credentials which uniquely identify Microsoft Azure\n * subscription. The subscription ID forms part of the URI for every service call.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: AutomationClientOptionalParams\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n if (subscriptionId === undefined) {\n throw new Error(\"'subscriptionId' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: AutomationClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials\n };\n\n const packageDetails = `azsdk-js-arm-automation/11.0.0-beta.6`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix\n },\n endpoint:\n options.endpoint ?? options.baseUri ?? \"https://management.azure.com\"\n };\n super(optionsWithDefaults);\n\n let bearerTokenAuthenticationPolicyFound: boolean = false;\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies();\n bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name ===\n coreRestPipeline.bearerTokenAuthenticationPolicyName\n );\n }\n if (\n !options ||\n !options.pipeline ||\n options.pipeline.getOrderedPolicies().length == 0 ||\n !bearerTokenAuthenticationPolicyFound\n ) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n credential: credentials,\n scopes:\n optionsWithDefaults.credentialScopes ??\n `${optionsWithDefaults.endpoint}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge:\n coreClient.authorizeRequestOnClaimChallenge\n }\n })\n );\n }\n // Parameter assignments\n this.subscriptionId = subscriptionId;\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this);\n this.privateLinkResources = new PrivateLinkResourcesImpl(this);\n this.python2Package = new Python2PackageImpl(this);\n this.agentRegistrationInformation = new AgentRegistrationInformationImpl(\n this\n );\n this.dscNodeOperations = new DscNodeOperationsImpl(this);\n this.nodeReports = new NodeReportsImpl(this);\n this.dscNodeConfigurationOperations = new DscNodeConfigurationOperationsImpl(\n this\n );\n this.dscCompilationJobOperations = new DscCompilationJobOperationsImpl(\n this\n );\n this.dscCompilationJobStream = new DscCompilationJobStreamImpl(this);\n this.nodeCountInformation = new NodeCountInformationImpl(this);\n this.sourceControlOperations = new SourceControlOperationsImpl(this);\n this.sourceControlSyncJobOperations = new SourceControlSyncJobOperationsImpl(\n this\n );\n this.sourceControlSyncJobStreams = new SourceControlSyncJobStreamsImpl(\n this\n );\n this.automationAccountOperations = new AutomationAccountOperationsImpl(\n this\n );\n this.statisticsOperations = new StatisticsOperationsImpl(this);\n this.usages = new UsagesImpl(this);\n this.keys = new KeysImpl(this);\n this.certificateOperations = new CertificateOperationsImpl(this);\n this.connectionOperations = new ConnectionOperationsImpl(this);\n this.connectionTypeOperations = new ConnectionTypeOperationsImpl(this);\n this.credentialOperations = new CredentialOperationsImpl(this);\n this.jobScheduleOperations = new JobScheduleOperationsImpl(this);\n this.linkedWorkspaceOperations = new LinkedWorkspaceOperationsImpl(this);\n this.activityOperations = new ActivityOperationsImpl(this);\n this.moduleOperations = new ModuleOperationsImpl(this);\n this.objectDataTypes = new ObjectDataTypesImpl(this);\n this.fields = new FieldsImpl(this);\n this.scheduleOperations = new ScheduleOperationsImpl(this);\n this.variableOperations = new VariableOperationsImpl(this);\n this.watcherOperations = new WatcherOperationsImpl(this);\n this.dscConfigurationOperations = new DscConfigurationOperationsImpl(this);\n this.jobOperations = new JobOperationsImpl(this);\n this.jobStreamOperations = new JobStreamOperationsImpl(this);\n this.operations = new OperationsImpl(this);\n this.softwareUpdateConfigurations = new SoftwareUpdateConfigurationsImpl(\n this\n );\n this.softwareUpdateConfigurationRuns = new SoftwareUpdateConfigurationRunsImpl(\n this\n );\n this.softwareUpdateConfigurationMachineRuns = new SoftwareUpdateConfigurationMachineRunsImpl(\n this\n );\n this.runbookDraftOperations = new RunbookDraftOperationsImpl(this);\n this.runbookOperations = new RunbookOperationsImpl(this);\n this.testJobStreams = new TestJobStreamsImpl(this);\n this.testJobOperations = new TestJobOperationsImpl(this);\n this.webhookOperations = new WebhookOperationsImpl(this);\n this.hybridRunbookWorkers = new HybridRunbookWorkersImpl(this);\n this.deletedAutomationAccounts = new DeletedAutomationAccountsImpl(this);\n this.hybridRunbookWorkerGroupOperations = new HybridRunbookWorkerGroupOperationsImpl(\n this\n );\n }\n\n /**\n * Post operation to serialize or deserialize GraphRunbookContent\n * @param resourceGroupName Name of an Azure Resource group.\n * @param automationAccountName The name of the automation account.\n * @param parameters Input data describing the graphical runbook.\n * @param options The options parameters.\n */\n convertGraphRunbookContent(\n resourceGroupName: string,\n automationAccountName: string,\n parameters: GraphicalRunbookContent,\n options?: ConvertGraphRunbookContentOptionalParams\n ): Promise<ConvertGraphRunbookContentResponse> {\n return this.sendOperationRequest(\n { resourceGroupName, automationAccountName, parameters, options },\n convertGraphRunbookContentOperationSpec\n );\n }\n\n privateEndpointConnections: PrivateEndpointConnections;\n privateLinkResources: PrivateLinkResources;\n python2Package: Python2Package;\n agentRegistrationInformation: AgentRegistrationInformation;\n dscNodeOperations: DscNodeOperations;\n nodeReports: NodeReports;\n dscNodeConfigurationOperations: DscNodeConfigurationOperations;\n dscCompilationJobOperations: DscCompilationJobOperations;\n dscCompilationJobStream: DscCompilationJobStream;\n nodeCountInformation: NodeCountInformation;\n sourceControlOperations: SourceControlOperations;\n sourceControlSyncJobOperations: SourceControlSyncJobOperations;\n sourceControlSyncJobStreams: SourceControlSyncJobStreams;\n automationAccountOperations: AutomationAccountOperations;\n statisticsOperations: StatisticsOperations;\n usages: Usages;\n keys: Keys;\n certificateOperations: CertificateOperations;\n connectionOperations: ConnectionOperations;\n connectionTypeOperations: ConnectionTypeOperations;\n credentialOperations: CredentialOperations;\n jobScheduleOperations: JobScheduleOperations;\n linkedWorkspaceOperations: LinkedWorkspaceOperations;\n activityOperations: ActivityOperations;\n moduleOperations: ModuleOperations;\n objectDataTypes: ObjectDataTypes;\n fields: Fields;\n scheduleOperations: ScheduleOperations;\n variableOperations: VariableOperations;\n watcherOperations: WatcherOperations;\n dscConfigurationOperations: DscConfigurationOperations;\n jobOperations: JobOperations;\n jobStreamOperations: JobStreamOperations;\n operations: Operations;\n softwareUpdateConfigurations: SoftwareUpdateConfigurations;\n softwareUpdateConfigurationRuns: SoftwareUpdateConfigurationRuns;\n softwareUpdateConfigurationMachineRuns: SoftwareUpdateConfigurationMachineRuns;\n runbookDraftOperations: RunbookDraftOperations;\n runbookOperations: RunbookOperations;\n testJobStreams: TestJobStreams;\n testJobOperations: TestJobOperations;\n webhookOperations: WebhookOperations;\n hybridRunbookWorkers: HybridRunbookWorkers;\n deletedAutomationAccounts: DeletedAutomationAccounts;\n hybridRunbookWorkerGroupOperations: HybridRunbookWorkerGroupOperations;\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst convertGraphRunbookContentOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/convertGraphRunbookContent\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.GraphicalRunbookContent\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.parameters32,\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.automationAccountName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\n"]}
|
|
@@ -35,7 +35,7 @@ export class AutomationClient extends coreClient.ServiceClient {
|
|
|
35
35
|
requestContentType: "application/json; charset=utf-8",
|
|
36
36
|
credential: credentials
|
|
37
37
|
};
|
|
38
|
-
const packageDetails = `azsdk-js-arm-automation/11.0.0-beta.
|
|
38
|
+
const packageDetails = `azsdk-js-arm-automation/11.0.0-beta.6`;
|
|
39
39
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
40
40
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
41
41
|
: `${packageDetails}`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"automationClient.js","sourceRoot":"","sources":["../../src/automationClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAE9D,OAAO,EACL,8BAA8B,EAC9B,wBAAwB,EACxB,kBAAkB,EAClB,gCAAgC,EAChC,qBAAqB,EACrB,eAAe,EACf,kCAAkC,EAClC,+BAA+B,EAC/B,2BAA2B,EAC3B,wBAAwB,EACxB,2BAA2B,EAC3B,kCAAkC,EAClC,+BAA+B,EAC/B,+BAA+B,EAC/B,wBAAwB,EACxB,UAAU,EACV,QAAQ,EACR,yBAAyB,EACzB,wBAAwB,EACxB,4BAA4B,EAC5B,wBAAwB,EACxB,yBAAyB,EACzB,6BAA6B,EAC7B,sBAAsB,EACtB,oBAAoB,EACpB,mBAAmB,EACnB,UAAU,EACV,sBAAsB,EACtB,sBAAsB,EACtB,qBAAqB,EACrB,8BAA8B,EAC9B,iBAAiB,EACjB,uBAAuB,EACvB,cAAc,EACd,gCAAgC,EAChC,mCAAmC,EACnC,0CAA0C,EAC1C,0BAA0B,EAC1B,qBAAqB,EACrB,kBAAkB,EAClB,qBAAqB,EACrB,qBAAqB,EACrB,wBAAwB,EACxB,6BAA6B,EAC7B,sCAAsC,EACvC,MAAM,uBAAuB,CAAC;AAgD/B,OAAO,KAAK,UAAU,MAAM,wBAAwB,C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;IACrC,0BAA0B,CAA6B;IACvD,aAAa,CAAgB;IAC7B,mBAAmB,CAAsB;IACzC,UAAU,CAAa;IACvB,4BAA4B,CAA+B;IAC3D,+BAA+B,CAAkC;IACjE,sCAAsC,CAAyC;IAC/E,sBAAsB,CAAyB;IAC/C,iBAAiB,CAAoB;IACrC,cAAc,CAAiB;IAC/B,iBAAiB,CAAoB;IACrC,iBAAiB,CAAoB;IACrC,oBAAoB,CAAuB;IAC3C,yBAAyB,CAA4B;IACrD,kCAAkC,CAAqC;CACxE;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,uCAAuC,GAA6B;IACxE,IAAI,EACF,yKAAyK;IAC3K,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,uBAAuB;SAC5C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,WAAW,EAAE,UAAU,CAAC,YAAY;IACpC,eAAe,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC;IACzC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,qBAAqB;KACjC;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport {\n PrivateEndpointConnectionsImpl,\n PrivateLinkResourcesImpl,\n Python2PackageImpl,\n AgentRegistrationInformationImpl,\n DscNodeOperationsImpl,\n NodeReportsImpl,\n DscNodeConfigurationOperationsImpl,\n DscCompilationJobOperationsImpl,\n DscCompilationJobStreamImpl,\n NodeCountInformationImpl,\n SourceControlOperationsImpl,\n SourceControlSyncJobOperationsImpl,\n SourceControlSyncJobStreamsImpl,\n AutomationAccountOperationsImpl,\n StatisticsOperationsImpl,\n UsagesImpl,\n KeysImpl,\n CertificateOperationsImpl,\n ConnectionOperationsImpl,\n ConnectionTypeOperationsImpl,\n CredentialOperationsImpl,\n JobScheduleOperationsImpl,\n LinkedWorkspaceOperationsImpl,\n ActivityOperationsImpl,\n ModuleOperationsImpl,\n ObjectDataTypesImpl,\n FieldsImpl,\n ScheduleOperationsImpl,\n VariableOperationsImpl,\n WatcherOperationsImpl,\n DscConfigurationOperationsImpl,\n JobOperationsImpl,\n JobStreamOperationsImpl,\n OperationsImpl,\n SoftwareUpdateConfigurationsImpl,\n SoftwareUpdateConfigurationRunsImpl,\n SoftwareUpdateConfigurationMachineRunsImpl,\n RunbookDraftOperationsImpl,\n RunbookOperationsImpl,\n TestJobStreamsImpl,\n TestJobOperationsImpl,\n WebhookOperationsImpl,\n HybridRunbookWorkersImpl,\n DeletedAutomationAccountsImpl,\n HybridRunbookWorkerGroupOperationsImpl\n} from \"./operations/index.js\";\nimport {\n PrivateEndpointConnections,\n PrivateLinkResources,\n Python2Package,\n AgentRegistrationInformation,\n DscNodeOperations,\n NodeReports,\n DscNodeConfigurationOperations,\n DscCompilationJobOperations,\n DscCompilationJobStream,\n NodeCountInformation,\n SourceControlOperations,\n SourceControlSyncJobOperations,\n SourceControlSyncJobStreams,\n AutomationAccountOperations,\n StatisticsOperations,\n Usages,\n Keys,\n CertificateOperations,\n ConnectionOperations,\n ConnectionTypeOperations,\n CredentialOperations,\n JobScheduleOperations,\n LinkedWorkspaceOperations,\n ActivityOperations,\n ModuleOperations,\n ObjectDataTypes,\n Fields,\n ScheduleOperations,\n VariableOperations,\n WatcherOperations,\n DscConfigurationOperations,\n JobOperations,\n JobStreamOperations,\n Operations,\n SoftwareUpdateConfigurations,\n SoftwareUpdateConfigurationRuns,\n SoftwareUpdateConfigurationMachineRuns,\n RunbookDraftOperations,\n RunbookOperations,\n TestJobStreams,\n TestJobOperations,\n WebhookOperations,\n HybridRunbookWorkers,\n DeletedAutomationAccounts,\n HybridRunbookWorkerGroupOperations\n} from \"./operationsInterfaces/index.js\";\nimport * as Parameters from \"./models/parameters.js\";\nimport * as Mappers from \"./models/mappers.js\";\nimport {\n AutomationClientOptionalParams,\n GraphicalRunbookContent,\n ConvertGraphRunbookContentOptionalParams,\n ConvertGraphRunbookContentResponse\n} from \"./models/index.js\";\n\nexport class AutomationClient extends coreClient.ServiceClient {\n $host: string;\n subscriptionId: string;\n\n /**\n * Initializes a new instance of the AutomationClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId Gets subscription credentials which uniquely identify Microsoft Azure\n * subscription. The subscription ID forms part of the URI for every service call.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: AutomationClientOptionalParams\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n if (subscriptionId === undefined) {\n throw new Error(\"'subscriptionId' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: AutomationClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials\n };\n\n const packageDetails = `azsdk-js-arm-automation/11.0.0-beta.5`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix\n },\n endpoint:\n options.endpoint ?? options.baseUri ?? \"https://management.azure.com\"\n };\n super(optionsWithDefaults);\n\n let bearerTokenAuthenticationPolicyFound: boolean = false;\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies();\n bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name ===\n coreRestPipeline.bearerTokenAuthenticationPolicyName\n );\n }\n if (\n !options ||\n !options.pipeline ||\n options.pipeline.getOrderedPolicies().length == 0 ||\n !bearerTokenAuthenticationPolicyFound\n ) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n credential: credentials,\n scopes:\n optionsWithDefaults.credentialScopes ??\n `${optionsWithDefaults.endpoint}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge:\n coreClient.authorizeRequestOnClaimChallenge\n }\n })\n );\n }\n // Parameter assignments\n this.subscriptionId = subscriptionId;\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this);\n this.privateLinkResources = new PrivateLinkResourcesImpl(this);\n this.python2Package = new Python2PackageImpl(this);\n this.agentRegistrationInformation = new AgentRegistrationInformationImpl(\n this\n );\n this.dscNodeOperations = new DscNodeOperationsImpl(this);\n this.nodeReports = new NodeReportsImpl(this);\n this.dscNodeConfigurationOperations = new DscNodeConfigurationOperationsImpl(\n this\n );\n this.dscCompilationJobOperations = new DscCompilationJobOperationsImpl(\n this\n );\n this.dscCompilationJobStream = new DscCompilationJobStreamImpl(this);\n this.nodeCountInformation = new NodeCountInformationImpl(this);\n this.sourceControlOperations = new SourceControlOperationsImpl(this);\n this.sourceControlSyncJobOperations = new SourceControlSyncJobOperationsImpl(\n this\n );\n this.sourceControlSyncJobStreams = new SourceControlSyncJobStreamsImpl(\n this\n );\n this.automationAccountOperations = new AutomationAccountOperationsImpl(\n this\n );\n this.statisticsOperations = new StatisticsOperationsImpl(this);\n this.usages = new UsagesImpl(this);\n this.keys = new KeysImpl(this);\n this.certificateOperations = new CertificateOperationsImpl(this);\n this.connectionOperations = new ConnectionOperationsImpl(this);\n this.connectionTypeOperations = new ConnectionTypeOperationsImpl(this);\n this.credentialOperations = new CredentialOperationsImpl(this);\n this.jobScheduleOperations = new JobScheduleOperationsImpl(this);\n this.linkedWorkspaceOperations = new LinkedWorkspaceOperationsImpl(this);\n this.activityOperations = new ActivityOperationsImpl(this);\n this.moduleOperations = new ModuleOperationsImpl(this);\n this.objectDataTypes = new ObjectDataTypesImpl(this);\n this.fields = new FieldsImpl(this);\n this.scheduleOperations = new ScheduleOperationsImpl(this);\n this.variableOperations = new VariableOperationsImpl(this);\n this.watcherOperations = new WatcherOperationsImpl(this);\n this.dscConfigurationOperations = new DscConfigurationOperationsImpl(this);\n this.jobOperations = new JobOperationsImpl(this);\n this.jobStreamOperations = new JobStreamOperationsImpl(this);\n this.operations = new OperationsImpl(this);\n this.softwareUpdateConfigurations = new SoftwareUpdateConfigurationsImpl(\n this\n );\n this.softwareUpdateConfigurationRuns = new SoftwareUpdateConfigurationRunsImpl(\n this\n );\n this.softwareUpdateConfigurationMachineRuns = new SoftwareUpdateConfigurationMachineRunsImpl(\n this\n );\n this.runbookDraftOperations = new RunbookDraftOperationsImpl(this);\n this.runbookOperations = new RunbookOperationsImpl(this);\n this.testJobStreams = new TestJobStreamsImpl(this);\n this.testJobOperations = new TestJobOperationsImpl(this);\n this.webhookOperations = new WebhookOperationsImpl(this);\n this.hybridRunbookWorkers = new HybridRunbookWorkersImpl(this);\n this.deletedAutomationAccounts = new DeletedAutomationAccountsImpl(this);\n this.hybridRunbookWorkerGroupOperations = new HybridRunbookWorkerGroupOperationsImpl(\n this\n );\n }\n\n /**\n * Post operation to serialize or deserialize GraphRunbookContent\n * @param resourceGroupName Name of an Azure Resource group.\n * @param automationAccountName The name of the automation account.\n * @param parameters Input data describing the graphical runbook.\n * @param options The options parameters.\n */\n convertGraphRunbookContent(\n resourceGroupName: string,\n automationAccountName: string,\n parameters: GraphicalRunbookContent,\n options?: ConvertGraphRunbookContentOptionalParams\n ): Promise<ConvertGraphRunbookContentResponse> {\n return this.sendOperationRequest(\n { resourceGroupName, automationAccountName, parameters, options },\n convertGraphRunbookContentOperationSpec\n );\n }\n\n privateEndpointConnections: PrivateEndpointConnections;\n privateLinkResources: PrivateLinkResources;\n python2Package: Python2Package;\n agentRegistrationInformation: AgentRegistrationInformation;\n dscNodeOperations: DscNodeOperations;\n nodeReports: NodeReports;\n dscNodeConfigurationOperations: DscNodeConfigurationOperations;\n dscCompilationJobOperations: DscCompilationJobOperations;\n dscCompilationJobStream: DscCompilationJobStream;\n nodeCountInformation: NodeCountInformation;\n sourceControlOperations: SourceControlOperations;\n sourceControlSyncJobOperations: SourceControlSyncJobOperations;\n sourceControlSyncJobStreams: SourceControlSyncJobStreams;\n automationAccountOperations: AutomationAccountOperations;\n statisticsOperations: StatisticsOperations;\n usages: Usages;\n keys: Keys;\n certificateOperations: CertificateOperations;\n connectionOperations: ConnectionOperations;\n connectionTypeOperations: ConnectionTypeOperations;\n credentialOperations: CredentialOperations;\n jobScheduleOperations: JobScheduleOperations;\n linkedWorkspaceOperations: LinkedWorkspaceOperations;\n activityOperations: ActivityOperations;\n moduleOperations: ModuleOperations;\n objectDataTypes: ObjectDataTypes;\n fields: Fields;\n scheduleOperations: ScheduleOperations;\n variableOperations: VariableOperations;\n watcherOperations: WatcherOperations;\n dscConfigurationOperations: DscConfigurationOperations;\n jobOperations: JobOperations;\n jobStreamOperations: JobStreamOperations;\n operations: Operations;\n softwareUpdateConfigurations: SoftwareUpdateConfigurations;\n softwareUpdateConfigurationRuns: SoftwareUpdateConfigurationRuns;\n softwareUpdateConfigurationMachineRuns: SoftwareUpdateConfigurationMachineRuns;\n runbookDraftOperations: RunbookDraftOperations;\n runbookOperations: RunbookOperations;\n testJobStreams: TestJobStreams;\n testJobOperations: TestJobOperations;\n webhookOperations: WebhookOperations;\n hybridRunbookWorkers: HybridRunbookWorkers;\n deletedAutomationAccounts: DeletedAutomationAccounts;\n hybridRunbookWorkerGroupOperations: HybridRunbookWorkerGroupOperations;\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst convertGraphRunbookContentOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/convertGraphRunbookContent\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.GraphicalRunbookContent\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.parameters32,\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.automationAccountName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\n"]}
|
|
1
|
+
{"version":3,"file":"automationClient.js","sourceRoot":"","sources":["../../src/automationClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAE9D,OAAO,EACL,8BAA8B,EAC9B,wBAAwB,EACxB,kBAAkB,EAClB,gCAAgC,EAChC,qBAAqB,EACrB,eAAe,EACf,kCAAkC,EAClC,+BAA+B,EAC/B,2BAA2B,EAC3B,wBAAwB,EACxB,2BAA2B,EAC3B,kCAAkC,EAClC,+BAA+B,EAC/B,+BAA+B,EAC/B,wBAAwB,EACxB,UAAU,EACV,QAAQ,EACR,yBAAyB,EACzB,wBAAwB,EACxB,4BAA4B,EAC5B,wBAAwB,EACxB,yBAAyB,EACzB,6BAA6B,EAC7B,sBAAsB,EACtB,oBAAoB,EACpB,mBAAmB,EACnB,UAAU,EACV,sBAA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AE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport {\n PrivateEndpointConnectionsImpl,\n PrivateLinkResourcesImpl,\n Python2PackageImpl,\n AgentRegistrationInformationImpl,\n DscNodeOperationsImpl,\n NodeReportsImpl,\n DscNodeConfigurationOperationsImpl,\n DscCompilationJobOperationsImpl,\n DscCompilationJobStreamImpl,\n NodeCountInformationImpl,\n SourceControlOperationsImpl,\n SourceControlSyncJobOperationsImpl,\n SourceControlSyncJobStreamsImpl,\n AutomationAccountOperationsImpl,\n StatisticsOperationsImpl,\n UsagesImpl,\n KeysImpl,\n CertificateOperationsImpl,\n ConnectionOperationsImpl,\n ConnectionTypeOperationsImpl,\n CredentialOperationsImpl,\n JobScheduleOperationsImpl,\n LinkedWorkspaceOperationsImpl,\n ActivityOperationsImpl,\n ModuleOperationsImpl,\n ObjectDataTypesImpl,\n FieldsImpl,\n ScheduleOperationsImpl,\n VariableOperationsImpl,\n WatcherOperationsImpl,\n DscConfigurationOperationsImpl,\n JobOperationsImpl,\n JobStreamOperationsImpl,\n OperationsImpl,\n SoftwareUpdateConfigurationsImpl,\n SoftwareUpdateConfigurationRunsImpl,\n SoftwareUpdateConfigurationMachineRunsImpl,\n RunbookDraftOperationsImpl,\n RunbookOperationsImpl,\n TestJobStreamsImpl,\n TestJobOperationsImpl,\n WebhookOperationsImpl,\n HybridRunbookWorkersImpl,\n DeletedAutomationAccountsImpl,\n HybridRunbookWorkerGroupOperationsImpl\n} from \"./operations/index.js\";\nimport {\n PrivateEndpointConnections,\n PrivateLinkResources,\n Python2Package,\n AgentRegistrationInformation,\n DscNodeOperations,\n NodeReports,\n DscNodeConfigurationOperations,\n DscCompilationJobOperations,\n DscCompilationJobStream,\n NodeCountInformation,\n SourceControlOperations,\n SourceControlSyncJobOperations,\n SourceControlSyncJobStreams,\n AutomationAccountOperations,\n StatisticsOperations,\n Usages,\n Keys,\n CertificateOperations,\n ConnectionOperations,\n ConnectionTypeOperations,\n CredentialOperations,\n JobScheduleOperations,\n LinkedWorkspaceOperations,\n ActivityOperations,\n ModuleOperations,\n ObjectDataTypes,\n Fields,\n ScheduleOperations,\n VariableOperations,\n WatcherOperations,\n DscConfigurationOperations,\n JobOperations,\n JobStreamOperations,\n Operations,\n SoftwareUpdateConfigurations,\n SoftwareUpdateConfigurationRuns,\n SoftwareUpdateConfigurationMachineRuns,\n RunbookDraftOperations,\n RunbookOperations,\n TestJobStreams,\n TestJobOperations,\n WebhookOperations,\n HybridRunbookWorkers,\n DeletedAutomationAccounts,\n HybridRunbookWorkerGroupOperations\n} from \"./operationsInterfaces/index.js\";\nimport * as Parameters from \"./models/parameters.js\";\nimport * as Mappers from \"./models/mappers.js\";\nimport {\n AutomationClientOptionalParams,\n GraphicalRunbookContent,\n ConvertGraphRunbookContentOptionalParams,\n ConvertGraphRunbookContentResponse\n} from \"./models/index.js\";\n\nexport class AutomationClient extends coreClient.ServiceClient {\n $host: string;\n subscriptionId: string;\n\n /**\n * Initializes a new instance of the AutomationClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId Gets subscription credentials which uniquely identify Microsoft Azure\n * subscription. The subscription ID forms part of the URI for every service call.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: AutomationClientOptionalParams\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n if (subscriptionId === undefined) {\n throw new Error(\"'subscriptionId' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: AutomationClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials\n };\n\n const packageDetails = `azsdk-js-arm-automation/11.0.0-beta.6`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix\n },\n endpoint:\n options.endpoint ?? options.baseUri ?? \"https://management.azure.com\"\n };\n super(optionsWithDefaults);\n\n let bearerTokenAuthenticationPolicyFound: boolean = false;\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies();\n bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name ===\n coreRestPipeline.bearerTokenAuthenticationPolicyName\n );\n }\n if (\n !options ||\n !options.pipeline ||\n options.pipeline.getOrderedPolicies().length == 0 ||\n !bearerTokenAuthenticationPolicyFound\n ) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n credential: credentials,\n scopes:\n optionsWithDefaults.credentialScopes ??\n `${optionsWithDefaults.endpoint}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge:\n coreClient.authorizeRequestOnClaimChallenge\n }\n })\n );\n }\n // Parameter assignments\n this.subscriptionId = subscriptionId;\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this);\n this.privateLinkResources = new PrivateLinkResourcesImpl(this);\n this.python2Package = new Python2PackageImpl(this);\n this.agentRegistrationInformation = new AgentRegistrationInformationImpl(\n this\n );\n this.dscNodeOperations = new DscNodeOperationsImpl(this);\n this.nodeReports = new NodeReportsImpl(this);\n this.dscNodeConfigurationOperations = new DscNodeConfigurationOperationsImpl(\n this\n );\n this.dscCompilationJobOperations = new DscCompilationJobOperationsImpl(\n this\n );\n this.dscCompilationJobStream = new DscCompilationJobStreamImpl(this);\n this.nodeCountInformation = new NodeCountInformationImpl(this);\n this.sourceControlOperations = new SourceControlOperationsImpl(this);\n this.sourceControlSyncJobOperations = new SourceControlSyncJobOperationsImpl(\n this\n );\n this.sourceControlSyncJobStreams = new SourceControlSyncJobStreamsImpl(\n this\n );\n this.automationAccountOperations = new AutomationAccountOperationsImpl(\n this\n );\n this.statisticsOperations = new StatisticsOperationsImpl(this);\n this.usages = new UsagesImpl(this);\n this.keys = new KeysImpl(this);\n this.certificateOperations = new CertificateOperationsImpl(this);\n this.connectionOperations = new ConnectionOperationsImpl(this);\n this.connectionTypeOperations = new ConnectionTypeOperationsImpl(this);\n this.credentialOperations = new CredentialOperationsImpl(this);\n this.jobScheduleOperations = new JobScheduleOperationsImpl(this);\n this.linkedWorkspaceOperations = new LinkedWorkspaceOperationsImpl(this);\n this.activityOperations = new ActivityOperationsImpl(this);\n this.moduleOperations = new ModuleOperationsImpl(this);\n this.objectDataTypes = new ObjectDataTypesImpl(this);\n this.fields = new FieldsImpl(this);\n this.scheduleOperations = new ScheduleOperationsImpl(this);\n this.variableOperations = new VariableOperationsImpl(this);\n this.watcherOperations = new WatcherOperationsImpl(this);\n this.dscConfigurationOperations = new DscConfigurationOperationsImpl(this);\n this.jobOperations = new JobOperationsImpl(this);\n this.jobStreamOperations = new JobStreamOperationsImpl(this);\n this.operations = new OperationsImpl(this);\n this.softwareUpdateConfigurations = new SoftwareUpdateConfigurationsImpl(\n this\n );\n this.softwareUpdateConfigurationRuns = new SoftwareUpdateConfigurationRunsImpl(\n this\n );\n this.softwareUpdateConfigurationMachineRuns = new SoftwareUpdateConfigurationMachineRunsImpl(\n this\n );\n this.runbookDraftOperations = new RunbookDraftOperationsImpl(this);\n this.runbookOperations = new RunbookOperationsImpl(this);\n this.testJobStreams = new TestJobStreamsImpl(this);\n this.testJobOperations = new TestJobOperationsImpl(this);\n this.webhookOperations = new WebhookOperationsImpl(this);\n this.hybridRunbookWorkers = new HybridRunbookWorkersImpl(this);\n this.deletedAutomationAccounts = new DeletedAutomationAccountsImpl(this);\n this.hybridRunbookWorkerGroupOperations = new HybridRunbookWorkerGroupOperationsImpl(\n this\n );\n }\n\n /**\n * Post operation to serialize or deserialize GraphRunbookContent\n * @param resourceGroupName Name of an Azure Resource group.\n * @param automationAccountName The name of the automation account.\n * @param parameters Input data describing the graphical runbook.\n * @param options The options parameters.\n */\n convertGraphRunbookContent(\n resourceGroupName: string,\n automationAccountName: string,\n parameters: GraphicalRunbookContent,\n options?: ConvertGraphRunbookContentOptionalParams\n ): Promise<ConvertGraphRunbookContentResponse> {\n return this.sendOperationRequest(\n { resourceGroupName, automationAccountName, parameters, options },\n convertGraphRunbookContentOperationSpec\n );\n }\n\n privateEndpointConnections: PrivateEndpointConnections;\n privateLinkResources: PrivateLinkResources;\n python2Package: Python2Package;\n agentRegistrationInformation: AgentRegistrationInformation;\n dscNodeOperations: DscNodeOperations;\n nodeReports: NodeReports;\n dscNodeConfigurationOperations: DscNodeConfigurationOperations;\n dscCompilationJobOperations: DscCompilationJobOperations;\n dscCompilationJobStream: DscCompilationJobStream;\n nodeCountInformation: NodeCountInformation;\n sourceControlOperations: SourceControlOperations;\n sourceControlSyncJobOperations: SourceControlSyncJobOperations;\n sourceControlSyncJobStreams: SourceControlSyncJobStreams;\n automationAccountOperations: AutomationAccountOperations;\n statisticsOperations: StatisticsOperations;\n usages: Usages;\n keys: Keys;\n certificateOperations: CertificateOperations;\n connectionOperations: ConnectionOperations;\n connectionTypeOperations: ConnectionTypeOperations;\n credentialOperations: CredentialOperations;\n jobScheduleOperations: JobScheduleOperations;\n linkedWorkspaceOperations: LinkedWorkspaceOperations;\n activityOperations: ActivityOperations;\n moduleOperations: ModuleOperations;\n objectDataTypes: ObjectDataTypes;\n fields: Fields;\n scheduleOperations: ScheduleOperations;\n variableOperations: VariableOperations;\n watcherOperations: WatcherOperations;\n dscConfigurationOperations: DscConfigurationOperations;\n jobOperations: JobOperations;\n jobStreamOperations: JobStreamOperations;\n operations: Operations;\n softwareUpdateConfigurations: SoftwareUpdateConfigurations;\n softwareUpdateConfigurationRuns: SoftwareUpdateConfigurationRuns;\n softwareUpdateConfigurationMachineRuns: SoftwareUpdateConfigurationMachineRuns;\n runbookDraftOperations: RunbookDraftOperations;\n runbookOperations: RunbookOperations;\n testJobStreams: TestJobStreams;\n testJobOperations: TestJobOperations;\n webhookOperations: WebhookOperations;\n hybridRunbookWorkers: HybridRunbookWorkers;\n deletedAutomationAccounts: DeletedAutomationAccounts;\n hybridRunbookWorkerGroupOperations: HybridRunbookWorkerGroupOperations;\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst convertGraphRunbookContentOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/convertGraphRunbookContent\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.GraphicalRunbookContent\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.parameters32,\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.automationAccountName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\n"]}
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"sdk-type": "mgmt",
|
|
4
4
|
"author": "Microsoft Corporation",
|
|
5
5
|
"description": "A generated SDK for AutomationClient.",
|
|
6
|
-
"version": "11.0.0-alpha.
|
|
6
|
+
"version": "11.0.0-alpha.20250929.1",
|
|
7
7
|
"engines": {
|
|
8
8
|
"node": ">=20.0.0"
|
|
9
9
|
},
|
|
@@ -39,8 +39,8 @@
|
|
|
39
39
|
"typescript": "~5.8.3",
|
|
40
40
|
"vitest": "^3.2.3",
|
|
41
41
|
"@azure-tools/test-credential": "^2.1.2",
|
|
42
|
-
"@azure-tools/test-recorder": "^4.1.1",
|
|
43
42
|
"@azure-tools/test-utils-vitest": "^2.0.1",
|
|
43
|
+
"@azure-tools/test-recorder": "^4.1.1",
|
|
44
44
|
"@azure/dev-tool": "^1.0.0"
|
|
45
45
|
},
|
|
46
46
|
"repository": "github:Azure/azure-sdk-for-js",
|