@azure/arm-logic 8.0.0-beta.1 → 8.0.0

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.
Files changed (145) hide show
  1. package/CHANGELOG.md +7 -10
  2. package/README.md +4 -0
  3. package/dist/index.js +195 -215
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.min.js +1 -1
  6. package/dist/index.min.js.map +1 -1
  7. package/dist-esm/src/index.d.ts +0 -1
  8. package/dist-esm/src/index.d.ts.map +1 -1
  9. package/dist-esm/src/index.js +0 -1
  10. package/dist-esm/src/index.js.map +1 -1
  11. package/dist-esm/src/logicManagementClient.d.ts +5 -2
  12. package/dist-esm/src/logicManagementClient.d.ts.map +1 -1
  13. package/dist-esm/src/logicManagementClient.js +32 -3
  14. package/dist-esm/src/logicManagementClient.js.map +1 -1
  15. package/dist-esm/src/models/index.d.ts +80 -80
  16. package/dist-esm/src/models/index.d.ts.map +1 -1
  17. package/dist-esm/src/models/mappers.d.ts +9 -9
  18. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  19. package/dist-esm/src/models/mappers.js +182 -182
  20. package/dist-esm/src/models/mappers.js.map +1 -1
  21. package/dist-esm/src/operations/integrationAccountAgreements.d.ts +2 -2
  22. package/dist-esm/src/operations/integrationAccountAgreements.d.ts.map +1 -1
  23. package/dist-esm/src/operations/integrationAccountAgreements.js.map +1 -1
  24. package/dist-esm/src/operations/integrationAccountAssemblies.d.ts +2 -2
  25. package/dist-esm/src/operations/integrationAccountAssemblies.d.ts.map +1 -1
  26. package/dist-esm/src/operations/integrationAccountAssemblies.js.map +1 -1
  27. package/dist-esm/src/operations/integrationAccountBatchConfigurations.d.ts +2 -2
  28. package/dist-esm/src/operations/integrationAccountBatchConfigurations.d.ts.map +1 -1
  29. package/dist-esm/src/operations/integrationAccountBatchConfigurations.js.map +1 -1
  30. package/dist-esm/src/operations/integrationAccountCertificates.d.ts +2 -2
  31. package/dist-esm/src/operations/integrationAccountCertificates.d.ts.map +1 -1
  32. package/dist-esm/src/operations/integrationAccountCertificates.js.map +1 -1
  33. package/dist-esm/src/operations/integrationAccountMaps.d.ts +2 -2
  34. package/dist-esm/src/operations/integrationAccountMaps.d.ts.map +1 -1
  35. package/dist-esm/src/operations/integrationAccountMaps.js.map +1 -1
  36. package/dist-esm/src/operations/integrationAccountPartners.d.ts +2 -2
  37. package/dist-esm/src/operations/integrationAccountPartners.d.ts.map +1 -1
  38. package/dist-esm/src/operations/integrationAccountPartners.js.map +1 -1
  39. package/dist-esm/src/operations/integrationAccountSchemas.d.ts +2 -2
  40. package/dist-esm/src/operations/integrationAccountSchemas.d.ts.map +1 -1
  41. package/dist-esm/src/operations/integrationAccountSchemas.js.map +1 -1
  42. package/dist-esm/src/operations/integrationAccountSessions.d.ts +2 -2
  43. package/dist-esm/src/operations/integrationAccountSessions.d.ts.map +1 -1
  44. package/dist-esm/src/operations/integrationAccountSessions.js.map +1 -1
  45. package/dist-esm/src/operations/integrationAccounts.d.ts +2 -2
  46. package/dist-esm/src/operations/integrationAccounts.d.ts.map +1 -1
  47. package/dist-esm/src/operations/integrationAccounts.js.map +1 -1
  48. package/dist-esm/src/operations/integrationServiceEnvironmentManagedApiOperations.d.ts +2 -2
  49. package/dist-esm/src/operations/integrationServiceEnvironmentManagedApiOperations.d.ts.map +1 -1
  50. package/dist-esm/src/operations/integrationServiceEnvironmentManagedApiOperations.js.map +1 -1
  51. package/dist-esm/src/operations/integrationServiceEnvironmentManagedApis.d.ts +2 -2
  52. package/dist-esm/src/operations/integrationServiceEnvironmentManagedApis.d.ts.map +1 -1
  53. package/dist-esm/src/operations/integrationServiceEnvironmentManagedApis.js.map +1 -1
  54. package/dist-esm/src/operations/integrationServiceEnvironmentNetworkHealth.d.ts +2 -2
  55. package/dist-esm/src/operations/integrationServiceEnvironmentNetworkHealth.d.ts.map +1 -1
  56. package/dist-esm/src/operations/integrationServiceEnvironmentNetworkHealth.js.map +1 -1
  57. package/dist-esm/src/operations/integrationServiceEnvironmentSkus.d.ts +2 -2
  58. package/dist-esm/src/operations/integrationServiceEnvironmentSkus.d.ts.map +1 -1
  59. package/dist-esm/src/operations/integrationServiceEnvironmentSkus.js.map +1 -1
  60. package/dist-esm/src/operations/integrationServiceEnvironments.d.ts +2 -2
  61. package/dist-esm/src/operations/integrationServiceEnvironments.d.ts.map +1 -1
  62. package/dist-esm/src/operations/integrationServiceEnvironments.js.map +1 -1
  63. package/dist-esm/src/operations/operations.d.ts +2 -2
  64. package/dist-esm/src/operations/operations.d.ts.map +1 -1
  65. package/dist-esm/src/operations/operations.js.map +1 -1
  66. package/dist-esm/src/operations/workflowRunActionRepetitions.d.ts +2 -2
  67. package/dist-esm/src/operations/workflowRunActionRepetitions.d.ts.map +1 -1
  68. package/dist-esm/src/operations/workflowRunActionRepetitions.js.map +1 -1
  69. package/dist-esm/src/operations/workflowRunActionRepetitionsRequestHistories.d.ts +2 -2
  70. package/dist-esm/src/operations/workflowRunActionRepetitionsRequestHistories.d.ts.map +1 -1
  71. package/dist-esm/src/operations/workflowRunActionRepetitionsRequestHistories.js.map +1 -1
  72. package/dist-esm/src/operations/workflowRunActionRequestHistories.d.ts +2 -2
  73. package/dist-esm/src/operations/workflowRunActionRequestHistories.d.ts.map +1 -1
  74. package/dist-esm/src/operations/workflowRunActionRequestHistories.js.map +1 -1
  75. package/dist-esm/src/operations/workflowRunActionScopeRepetitions.d.ts +2 -2
  76. package/dist-esm/src/operations/workflowRunActionScopeRepetitions.d.ts.map +1 -1
  77. package/dist-esm/src/operations/workflowRunActionScopeRepetitions.js.map +1 -1
  78. package/dist-esm/src/operations/workflowRunActions.d.ts +2 -2
  79. package/dist-esm/src/operations/workflowRunActions.d.ts.map +1 -1
  80. package/dist-esm/src/operations/workflowRunActions.js.map +1 -1
  81. package/dist-esm/src/operations/workflowRunOperations.d.ts +2 -2
  82. package/dist-esm/src/operations/workflowRunOperations.d.ts.map +1 -1
  83. package/dist-esm/src/operations/workflowRunOperations.js.map +1 -1
  84. package/dist-esm/src/operations/workflowRuns.d.ts +2 -2
  85. package/dist-esm/src/operations/workflowRuns.d.ts.map +1 -1
  86. package/dist-esm/src/operations/workflowRuns.js.map +1 -1
  87. package/dist-esm/src/operations/workflowTriggerHistories.d.ts +2 -2
  88. package/dist-esm/src/operations/workflowTriggerHistories.d.ts.map +1 -1
  89. package/dist-esm/src/operations/workflowTriggerHistories.js.map +1 -1
  90. package/dist-esm/src/operations/workflowTriggers.d.ts +2 -2
  91. package/dist-esm/src/operations/workflowTriggers.d.ts.map +1 -1
  92. package/dist-esm/src/operations/workflowTriggers.js.map +1 -1
  93. package/dist-esm/src/operations/workflowVersionTriggers.d.ts +2 -2
  94. package/dist-esm/src/operations/workflowVersionTriggers.d.ts.map +1 -1
  95. package/dist-esm/src/operations/workflowVersionTriggers.js.map +1 -1
  96. package/dist-esm/src/operations/workflowVersions.d.ts +2 -2
  97. package/dist-esm/src/operations/workflowVersions.d.ts.map +1 -1
  98. package/dist-esm/src/operations/workflowVersions.js.map +1 -1
  99. package/dist-esm/src/operations/workflows.d.ts +2 -2
  100. package/dist-esm/src/operations/workflows.d.ts.map +1 -1
  101. package/dist-esm/src/operations/workflows.js.map +1 -1
  102. package/dist-esm/test/logic_examples.d.ts +3 -1
  103. package/dist-esm/test/logic_examples.d.ts.map +1 -1
  104. package/dist-esm/test/logic_examples.js +4 -1
  105. package/dist-esm/test/logic_examples.js.map +1 -1
  106. package/package.json +8 -8
  107. package/review/arm-logic.api.md +17 -20
  108. package/src/index.ts +0 -1
  109. package/src/logicManagementClient.ts +46 -3
  110. package/src/models/index.ts +87 -87
  111. package/src/models/mappers.ts +211 -211
  112. package/src/operations/integrationAccountAgreements.ts +3 -3
  113. package/src/operations/integrationAccountAssemblies.ts +3 -3
  114. package/src/operations/integrationAccountBatchConfigurations.ts +3 -3
  115. package/src/operations/integrationAccountCertificates.ts +3 -3
  116. package/src/operations/integrationAccountMaps.ts +3 -3
  117. package/src/operations/integrationAccountPartners.ts +3 -3
  118. package/src/operations/integrationAccountSchemas.ts +3 -3
  119. package/src/operations/integrationAccountSessions.ts +3 -3
  120. package/src/operations/integrationAccounts.ts +3 -3
  121. package/src/operations/integrationServiceEnvironmentManagedApiOperations.ts +3 -3
  122. package/src/operations/integrationServiceEnvironmentManagedApis.ts +3 -3
  123. package/src/operations/integrationServiceEnvironmentNetworkHealth.ts +3 -3
  124. package/src/operations/integrationServiceEnvironmentSkus.ts +3 -3
  125. package/src/operations/integrationServiceEnvironments.ts +3 -3
  126. package/src/operations/operations.ts +3 -3
  127. package/src/operations/workflowRunActionRepetitions.ts +3 -3
  128. package/src/operations/workflowRunActionRepetitionsRequestHistories.ts +3 -3
  129. package/src/operations/workflowRunActionRequestHistories.ts +3 -3
  130. package/src/operations/workflowRunActionScopeRepetitions.ts +3 -3
  131. package/src/operations/workflowRunActions.ts +3 -3
  132. package/src/operations/workflowRunOperations.ts +3 -3
  133. package/src/operations/workflowRuns.ts +3 -3
  134. package/src/operations/workflowTriggerHistories.ts +3 -3
  135. package/src/operations/workflowTriggers.ts +3 -3
  136. package/src/operations/workflowVersionTriggers.ts +3 -3
  137. package/src/operations/workflowVersions.ts +3 -3
  138. package/src/operations/workflows.ts +3 -3
  139. package/types/arm-logic.d.ts +14 -21
  140. package/types/tsdoc-metadata.json +1 -1
  141. package/dist-esm/src/logicManagementClientContext.d.ts +0 -16
  142. package/dist-esm/src/logicManagementClientContext.d.ts.map +0 -1
  143. package/dist-esm/src/logicManagementClientContext.js +0 -49
  144. package/dist-esm/src/logicManagementClientContext.js.map +0 -1
  145. package/src/logicManagementClientContext.ts +0 -70
@@ -6,6 +6,7 @@
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
8
 
9
+ import * as coreClient from "@azure/core-client";
9
10
  import * as coreAuth from "@azure/core-auth";
10
11
  import {
11
12
  WorkflowsImpl,
@@ -65,10 +66,13 @@ import {
65
66
  IntegrationServiceEnvironmentManagedApiOperations,
66
67
  Operations
67
68
  } from "./operationsInterfaces";
68
- import { LogicManagementClientContext } from "./logicManagementClientContext";
69
69
  import { LogicManagementClientOptionalParams } from "./models";
70
70
 
71
- export class LogicManagementClient extends LogicManagementClientContext {
71
+ export class LogicManagementClient extends coreClient.ServiceClient {
72
+ $host: string;
73
+ subscriptionId: string;
74
+ apiVersion: string;
75
+
72
76
  /**
73
77
  * Initializes a new instance of the LogicManagementClient class.
74
78
  * @param credentials Subscription credentials which uniquely identify client subscription.
@@ -80,7 +84,46 @@ export class LogicManagementClient extends LogicManagementClientContext {
80
84
  subscriptionId: string,
81
85
  options?: LogicManagementClientOptionalParams
82
86
  ) {
83
- super(credentials, subscriptionId, options);
87
+ if (credentials === undefined) {
88
+ throw new Error("'credentials' cannot be null");
89
+ }
90
+ if (subscriptionId === undefined) {
91
+ throw new Error("'subscriptionId' cannot be null");
92
+ }
93
+
94
+ // Initializing default values for options
95
+ if (!options) {
96
+ options = {};
97
+ }
98
+ const defaults: LogicManagementClientOptionalParams = {
99
+ requestContentType: "application/json; charset=utf-8",
100
+ credential: credentials
101
+ };
102
+
103
+ const packageDetails = `azsdk-js-arm-logic/8.0.0`;
104
+ const userAgentPrefix =
105
+ options.userAgentOptions && options.userAgentOptions.userAgentPrefix
106
+ ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
107
+ : `${packageDetails}`;
108
+
109
+ if (!options.credentialScopes) {
110
+ options.credentialScopes = ["https://management.azure.com/.default"];
111
+ }
112
+ const optionsWithDefaults = {
113
+ ...defaults,
114
+ ...options,
115
+ userAgentOptions: {
116
+ userAgentPrefix
117
+ },
118
+ baseUri: options.endpoint || "https://management.azure.com"
119
+ };
120
+ super(optionsWithDefaults);
121
+ // Parameter assignments
122
+ this.subscriptionId = subscriptionId;
123
+
124
+ // Assigning values to Constant parameters
125
+ this.$host = options.$host || "https://management.azure.com";
126
+ this.apiVersion = options.apiVersion || "2019-05-01";
84
127
  this.workflows = new WorkflowsImpl(this);
85
128
  this.workflowVersions = new WorkflowVersionsImpl(this);
86
129
  this.workflowTriggers = new WorkflowTriggersImpl(this);
@@ -16,29 +16,6 @@ export interface WorkflowListResult {
16
16
  nextLink?: string;
17
17
  }
18
18
 
19
- /** The base resource type. */
20
- export interface Resource {
21
- /**
22
- * The resource id.
23
- * NOTE: This property will not be serialized. It can only be populated by the server.
24
- */
25
- readonly id?: string;
26
- /**
27
- * Gets the resource name.
28
- * NOTE: This property will not be serialized. It can only be populated by the server.
29
- */
30
- readonly name?: string;
31
- /**
32
- * Gets the resource type.
33
- * NOTE: This property will not be serialized. It can only be populated by the server.
34
- */
35
- readonly type?: string;
36
- /** The resource location. */
37
- location?: string;
38
- /** The resource tags. */
39
- tags?: { [propertyName: string]: string };
40
- }
41
-
42
19
  /** The endpoints configuration. */
43
20
  export interface FlowEndpointsConfiguration {
44
21
  /** The workflow endpoints. */
@@ -177,6 +154,29 @@ export interface UserAssignedIdentity {
177
154
  readonly clientId?: string;
178
155
  }
179
156
 
157
+ /** The base resource type. */
158
+ export interface Resource {
159
+ /**
160
+ * The resource id.
161
+ * NOTE: This property will not be serialized. It can only be populated by the server.
162
+ */
163
+ readonly id?: string;
164
+ /**
165
+ * Gets the resource name.
166
+ * NOTE: This property will not be serialized. It can only be populated by the server.
167
+ */
168
+ readonly name?: string;
169
+ /**
170
+ * Gets the resource type.
171
+ * NOTE: This property will not be serialized. It can only be populated by the server.
172
+ */
173
+ readonly type?: string;
174
+ /** The resource location. */
175
+ location?: string;
176
+ /** The resource tags. */
177
+ tags?: { [propertyName: string]: string };
178
+ }
179
+
180
180
  /** Error response indicates Logic service is not able to process the incoming request. The error property contains the error details. */
181
181
  export interface ErrorResponse {
182
182
  /** The error properties. */
@@ -269,15 +269,6 @@ export interface WorkflowTriggerListResult {
269
269
  nextLink?: string;
270
270
  }
271
271
 
272
- /** The sub resource type. */
273
- export interface SubResource {
274
- /**
275
- * The resource id.
276
- * NOTE: This property will not be serialized. It can only be populated by the server.
277
- */
278
- readonly id?: string;
279
- }
280
-
281
272
  /** The workflow trigger recurrence. */
282
273
  export interface WorkflowTriggerRecurrence {
283
274
  /** The frequency. */
@@ -316,6 +307,15 @@ export interface RecurrenceScheduleOccurrence {
316
307
  occurrence?: number;
317
308
  }
318
309
 
310
+ /** The sub resource type. */
311
+ export interface SubResource {
312
+ /**
313
+ * The resource id.
314
+ * NOTE: This property will not be serialized. It can only be populated by the server.
315
+ */
316
+ readonly id?: string;
317
+ }
318
+
319
319
  /** The JSON schema. */
320
320
  export interface JsonSchema {
321
321
  /** The JSON title. */
@@ -519,6 +519,14 @@ export interface WorkflowRunActionRepetitionDefinitionCollection {
519
519
  value?: WorkflowRunActionRepetitionDefinition[];
520
520
  }
521
521
 
522
+ /** The workflow run action repetition index. */
523
+ export interface RepetitionIndex {
524
+ /** The scope. */
525
+ scopeName?: string;
526
+ /** The index. */
527
+ itemIndex: number;
528
+ }
529
+
522
530
  /** The run operation result properties. */
523
531
  export interface OperationResultProperties {
524
532
  /** The start time of the workflow scope repetition. */
@@ -535,14 +543,6 @@ export interface OperationResultProperties {
535
543
  error?: any;
536
544
  }
537
545
 
538
- /** The workflow run action repetition index. */
539
- export interface RepetitionIndex {
540
- /** The scope. */
541
- scopeName?: string;
542
- /** The index. */
543
- itemIndex: number;
544
- }
545
-
546
546
  /** The list of workflow request histories. */
547
547
  export interface RequestHistoryListResult {
548
548
  /** A list of workflow request histories. */
@@ -1740,6 +1740,12 @@ export interface IntegrationServiceEnvironmentManagedApiListResult {
1740
1740
  nextLink?: string;
1741
1741
  }
1742
1742
 
1743
+ /** The integration service environment managed api deployment parameters. */
1744
+ export interface IntegrationServiceEnvironmentManagedApiDeploymentParameters {
1745
+ /** The integration service environment managed api content link for deployment. */
1746
+ contentLinkDefinition?: ContentLink;
1747
+ }
1748
+
1743
1749
  /** The API resource properties. */
1744
1750
  export interface ApiResourceProperties {
1745
1751
  /**
@@ -1900,12 +1906,6 @@ export interface ApiResourceDefinitions {
1900
1906
  modifiedSwaggerUrl?: string;
1901
1907
  }
1902
1908
 
1903
- /** The integration service environment managed api deployment parameters. */
1904
- export interface IntegrationServiceEnvironmentManagedApiDeploymentParameters {
1905
- /** The integration service environment managed api content link for deployment. */
1906
- contentLinkDefinition?: ContentLink;
1907
- }
1908
-
1909
1909
  /** The list of managed API operations. */
1910
1910
  export interface ApiOperationListResult {
1911
1911
  /** The api operation definitions for an API. */
@@ -2208,6 +2208,47 @@ export interface IntegrationAccountSessionFilter {
2208
2208
  changedTime: Date;
2209
2209
  }
2210
2210
 
2211
+ /** The workflow reference. */
2212
+ export type WorkflowReference = ResourceReference & {};
2213
+
2214
+ /** The workflow trigger reference. */
2215
+ export type WorkflowTriggerReference = ResourceReference & {
2216
+ /** The workflow name. */
2217
+ flowName?: string;
2218
+ /** The workflow trigger name. */
2219
+ triggerName?: string;
2220
+ };
2221
+
2222
+ /** The key vault reference. */
2223
+ export type KeyVaultReference = ResourceReference & {};
2224
+
2225
+ /** The Api reference. */
2226
+ export type ApiReference = ResourceReference & {
2227
+ /** The display name of the api. */
2228
+ displayName?: string;
2229
+ /** The description of the api. */
2230
+ description?: string;
2231
+ /** The icon uri of the api. */
2232
+ iconUri?: string;
2233
+ /** The swagger of the api. */
2234
+ swagger?: Record<string, unknown>;
2235
+ /** The brand color of the api. */
2236
+ brandColor?: string;
2237
+ /** The tier. */
2238
+ category?: ApiTier;
2239
+ /** The integration service environment reference. */
2240
+ integrationServiceEnvironment?: ResourceReference;
2241
+ };
2242
+
2243
+ /** The workflow output parameter. */
2244
+ export type WorkflowOutputParameter = WorkflowParameter & {
2245
+ /**
2246
+ * Gets the error.
2247
+ * NOTE: This property will not be serialized. It can only be populated by the server.
2248
+ */
2249
+ readonly error?: Record<string, unknown>;
2250
+ };
2251
+
2211
2252
  /** The workflow type. */
2212
2253
  export type Workflow = Resource & {
2213
2254
  /** Managed service identity properties. */
@@ -2621,47 +2662,6 @@ export type ManagedApi = Resource & {
2621
2662
  properties?: ApiResourceProperties;
2622
2663
  };
2623
2664
 
2624
- /** The workflow reference. */
2625
- export type WorkflowReference = ResourceReference & {};
2626
-
2627
- /** The workflow trigger reference. */
2628
- export type WorkflowTriggerReference = ResourceReference & {
2629
- /** The workflow name. */
2630
- flowName?: string;
2631
- /** The workflow trigger name. */
2632
- triggerName?: string;
2633
- };
2634
-
2635
- /** The key vault reference. */
2636
- export type KeyVaultReference = ResourceReference & {};
2637
-
2638
- /** The Api reference. */
2639
- export type ApiReference = ResourceReference & {
2640
- /** The display name of the api. */
2641
- displayName?: string;
2642
- /** The description of the api. */
2643
- description?: string;
2644
- /** The icon uri of the api. */
2645
- iconUri?: string;
2646
- /** The swagger of the api. */
2647
- swagger?: Record<string, unknown>;
2648
- /** The brand color of the api. */
2649
- brandColor?: string;
2650
- /** The tier. */
2651
- category?: ApiTier;
2652
- /** The integration service environment reference. */
2653
- integrationServiceEnvironment?: ResourceReference;
2654
- };
2655
-
2656
- /** The workflow output parameter. */
2657
- export type WorkflowOutputParameter = WorkflowParameter & {
2658
- /**
2659
- * Gets the error.
2660
- * NOTE: This property will not be serialized. It can only be populated by the server.
2661
- */
2662
- readonly error?: Record<string, unknown>;
2663
- };
2664
-
2665
2665
  /** The workflow trigger. */
2666
2666
  export type WorkflowTrigger = SubResource & {
2667
2667
  /**