@azure/arm-datadog 3.0.3-alpha.20231023.1 → 3.1.0-alpha.20231025.3

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 (175) hide show
  1. package/CHANGELOG.md +35 -11
  2. package/LICENSE +1 -1
  3. package/dist/index.js +929 -183
  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/samples-dev/creationSupportedGetSample.d.ts +2 -0
  8. package/dist-esm/samples-dev/creationSupportedGetSample.d.ts.map +1 -0
  9. package/dist-esm/samples-dev/creationSupportedGetSample.js +38 -0
  10. package/dist-esm/samples-dev/creationSupportedGetSample.js.map +1 -0
  11. package/dist-esm/samples-dev/creationSupportedListSample.d.ts +2 -0
  12. package/dist-esm/samples-dev/creationSupportedListSample.d.ts.map +1 -0
  13. package/dist-esm/samples-dev/creationSupportedListSample.js +54 -0
  14. package/dist-esm/samples-dev/creationSupportedListSample.js.map +1 -0
  15. package/dist-esm/samples-dev/marketplaceAgreementsCreateOrUpdateSample.js +11 -3
  16. package/dist-esm/samples-dev/marketplaceAgreementsCreateOrUpdateSample.js.map +1 -1
  17. package/dist-esm/samples-dev/marketplaceAgreementsListSample.js +11 -3
  18. package/dist-esm/samples-dev/marketplaceAgreementsListSample.js.map +1 -1
  19. package/dist-esm/samples-dev/monitoredSubscriptionsCreateorUpdateSample.d.ts +2 -0
  20. package/dist-esm/samples-dev/monitoredSubscriptionsCreateorUpdateSample.d.ts.map +1 -0
  21. package/dist-esm/samples-dev/monitoredSubscriptionsCreateorUpdateSample.js +40 -0
  22. package/dist-esm/samples-dev/monitoredSubscriptionsCreateorUpdateSample.js.map +1 -0
  23. package/dist-esm/samples-dev/monitoredSubscriptionsDeleteSample.d.ts +2 -0
  24. package/dist-esm/samples-dev/monitoredSubscriptionsDeleteSample.d.ts.map +1 -0
  25. package/dist-esm/samples-dev/monitoredSubscriptionsDeleteSample.js +40 -0
  26. package/dist-esm/samples-dev/monitoredSubscriptionsDeleteSample.js.map +1 -0
  27. package/dist-esm/samples-dev/monitoredSubscriptionsGetSample.d.ts +2 -0
  28. package/dist-esm/samples-dev/monitoredSubscriptionsGetSample.d.ts.map +1 -0
  29. package/dist-esm/samples-dev/monitoredSubscriptionsGetSample.js +40 -0
  30. package/dist-esm/samples-dev/monitoredSubscriptionsGetSample.js.map +1 -0
  31. package/dist-esm/samples-dev/monitoredSubscriptionsListSample.d.ts +2 -0
  32. package/dist-esm/samples-dev/monitoredSubscriptionsListSample.d.ts.map +1 -0
  33. package/dist-esm/samples-dev/monitoredSubscriptionsListSample.js +55 -0
  34. package/dist-esm/samples-dev/monitoredSubscriptionsListSample.js.map +1 -0
  35. package/dist-esm/samples-dev/monitoredSubscriptionsUpdateSample.d.ts +2 -0
  36. package/dist-esm/samples-dev/monitoredSubscriptionsUpdateSample.d.ts.map +1 -0
  37. package/dist-esm/samples-dev/monitoredSubscriptionsUpdateSample.js +40 -0
  38. package/dist-esm/samples-dev/monitoredSubscriptionsUpdateSample.js.map +1 -0
  39. package/dist-esm/samples-dev/monitorsCreateSample.js +12 -4
  40. package/dist-esm/samples-dev/monitorsCreateSample.js.map +1 -1
  41. package/dist-esm/samples-dev/monitorsDeleteSample.js +12 -4
  42. package/dist-esm/samples-dev/monitorsDeleteSample.js.map +1 -1
  43. package/dist-esm/samples-dev/monitorsGetDefaultKeySample.js +12 -4
  44. package/dist-esm/samples-dev/monitorsGetDefaultKeySample.js.map +1 -1
  45. package/dist-esm/samples-dev/monitorsGetSample.js +12 -4
  46. package/dist-esm/samples-dev/monitorsGetSample.js.map +1 -1
  47. package/dist-esm/samples-dev/monitorsListApiKeysSample.js +12 -4
  48. package/dist-esm/samples-dev/monitorsListApiKeysSample.js.map +1 -1
  49. package/dist-esm/samples-dev/monitorsListByResourceGroupSample.js +12 -4
  50. package/dist-esm/samples-dev/monitorsListByResourceGroupSample.js.map +1 -1
  51. package/dist-esm/samples-dev/monitorsListHostsSample.js +12 -4
  52. package/dist-esm/samples-dev/monitorsListHostsSample.js.map +1 -1
  53. package/dist-esm/samples-dev/monitorsListLinkedResourcesSample.js +12 -4
  54. package/dist-esm/samples-dev/monitorsListLinkedResourcesSample.js.map +1 -1
  55. package/dist-esm/samples-dev/monitorsListMonitoredResourcesSample.js +12 -4
  56. package/dist-esm/samples-dev/monitorsListMonitoredResourcesSample.js.map +1 -1
  57. package/dist-esm/samples-dev/monitorsListSample.js +11 -3
  58. package/dist-esm/samples-dev/monitorsListSample.js.map +1 -1
  59. package/dist-esm/samples-dev/monitorsRefreshSetPasswordLinkSample.js +12 -4
  60. package/dist-esm/samples-dev/monitorsRefreshSetPasswordLinkSample.js.map +1 -1
  61. package/dist-esm/samples-dev/monitorsSetDefaultKeySample.js +12 -4
  62. package/dist-esm/samples-dev/monitorsSetDefaultKeySample.js.map +1 -1
  63. package/dist-esm/samples-dev/monitorsUpdateSample.js +12 -4
  64. package/dist-esm/samples-dev/monitorsUpdateSample.js.map +1 -1
  65. package/dist-esm/samples-dev/operationsListSample.js +13 -5
  66. package/dist-esm/samples-dev/operationsListSample.js.map +1 -1
  67. package/dist-esm/samples-dev/singleSignOnConfigurationsCreateOrUpdateSample.js +12 -4
  68. package/dist-esm/samples-dev/singleSignOnConfigurationsCreateOrUpdateSample.js.map +1 -1
  69. package/dist-esm/samples-dev/singleSignOnConfigurationsGetSample.js +12 -4
  70. package/dist-esm/samples-dev/singleSignOnConfigurationsGetSample.js.map +1 -1
  71. package/dist-esm/samples-dev/singleSignOnConfigurationsListSample.js +12 -4
  72. package/dist-esm/samples-dev/singleSignOnConfigurationsListSample.js.map +1 -1
  73. package/dist-esm/samples-dev/tagRulesCreateOrUpdateSample.js +12 -4
  74. package/dist-esm/samples-dev/tagRulesCreateOrUpdateSample.js.map +1 -1
  75. package/dist-esm/samples-dev/tagRulesGetSample.js +12 -4
  76. package/dist-esm/samples-dev/tagRulesGetSample.js.map +1 -1
  77. package/dist-esm/samples-dev/tagRulesListSample.js +12 -4
  78. package/dist-esm/samples-dev/tagRulesListSample.js.map +1 -1
  79. package/dist-esm/src/lroImpl.d.ts +6 -11
  80. package/dist-esm/src/lroImpl.d.ts.map +1 -1
  81. package/dist-esm/src/lroImpl.js +12 -20
  82. package/dist-esm/src/lroImpl.js.map +1 -1
  83. package/dist-esm/src/microsoftDatadogClient.d.ts +3 -1
  84. package/dist-esm/src/microsoftDatadogClient.d.ts.map +1 -1
  85. package/dist-esm/src/microsoftDatadogClient.js +5 -3
  86. package/dist-esm/src/microsoftDatadogClient.js.map +1 -1
  87. package/dist-esm/src/models/index.d.ts +177 -19
  88. package/dist-esm/src/models/index.d.ts.map +1 -1
  89. package/dist-esm/src/models/index.js +26 -0
  90. package/dist-esm/src/models/index.js.map +1 -1
  91. package/dist-esm/src/models/mappers.d.ts +7 -0
  92. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  93. package/dist-esm/src/models/mappers.js +190 -2
  94. package/dist-esm/src/models/mappers.js.map +1 -1
  95. package/dist-esm/src/models/parameters.d.ts +2 -0
  96. package/dist-esm/src/models/parameters.d.ts.map +1 -1
  97. package/dist-esm/src/models/parameters.js +16 -2
  98. package/dist-esm/src/models/parameters.js.map +1 -1
  99. package/dist-esm/src/operations/creationSupported.d.ts +34 -0
  100. package/dist-esm/src/operations/creationSupported.d.ts.map +1 -0
  101. package/dist-esm/src/operations/creationSupported.js +122 -0
  102. package/dist-esm/src/operations/creationSupported.js.map +1 -0
  103. package/dist-esm/src/operations/index.d.ts +2 -0
  104. package/dist-esm/src/operations/index.d.ts.map +1 -1
  105. package/dist-esm/src/operations/index.js +2 -0
  106. package/dist-esm/src/operations/index.js.map +1 -1
  107. package/dist-esm/src/operations/marketplaceAgreements.js +0 -1
  108. package/dist-esm/src/operations/marketplaceAgreements.js.map +1 -1
  109. package/dist-esm/src/operations/monitoredSubscriptions.d.ts +87 -0
  110. package/dist-esm/src/operations/monitoredSubscriptions.d.ts.map +1 -0
  111. package/dist-esm/src/operations/monitoredSubscriptions.js +399 -0
  112. package/dist-esm/src/operations/monitoredSubscriptions.js.map +1 -0
  113. package/dist-esm/src/operations/monitors.d.ts +4 -4
  114. package/dist-esm/src/operations/monitors.d.ts.map +1 -1
  115. package/dist-esm/src/operations/monitors.js +27 -21
  116. package/dist-esm/src/operations/monitors.js.map +1 -1
  117. package/dist-esm/src/operations/operations.d.ts +2 -2
  118. package/dist-esm/src/operations/operations.js +2 -3
  119. package/dist-esm/src/operations/operations.js.map +1 -1
  120. package/dist-esm/src/operations/singleSignOnConfigurations.d.ts +2 -2
  121. package/dist-esm/src/operations/singleSignOnConfigurations.d.ts.map +1 -1
  122. package/dist-esm/src/operations/singleSignOnConfigurations.js +11 -8
  123. package/dist-esm/src/operations/singleSignOnConfigurations.js.map +1 -1
  124. package/dist-esm/src/operations/tagRules.js +0 -1
  125. package/dist-esm/src/operations/tagRules.js.map +1 -1
  126. package/dist-esm/src/operationsInterfaces/creationSupported.d.ts +18 -0
  127. package/dist-esm/src/operationsInterfaces/creationSupported.d.ts.map +1 -0
  128. package/dist-esm/src/operationsInterfaces/creationSupported.js +9 -0
  129. package/dist-esm/src/operationsInterfaces/creationSupported.js.map +1 -0
  130. package/dist-esm/src/operationsInterfaces/index.d.ts +2 -0
  131. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
  132. package/dist-esm/src/operationsInterfaces/index.js +2 -0
  133. package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
  134. package/dist-esm/src/operationsInterfaces/monitoredSubscriptions.d.ts +70 -0
  135. package/dist-esm/src/operationsInterfaces/monitoredSubscriptions.d.ts.map +1 -0
  136. package/dist-esm/src/operationsInterfaces/monitoredSubscriptions.js +9 -0
  137. package/dist-esm/src/operationsInterfaces/monitoredSubscriptions.js.map +1 -0
  138. package/dist-esm/src/operationsInterfaces/monitors.d.ts +4 -4
  139. package/dist-esm/src/operationsInterfaces/monitors.d.ts.map +1 -1
  140. package/dist-esm/src/operationsInterfaces/operations.d.ts +1 -1
  141. package/dist-esm/src/operationsInterfaces/singleSignOnConfigurations.d.ts +2 -2
  142. package/dist-esm/src/operationsInterfaces/singleSignOnConfigurations.d.ts.map +1 -1
  143. package/dist-esm/src/pagingHelper.d.ts +4 -4
  144. package/dist-esm/src/pagingHelper.js +4 -4
  145. package/dist-esm/test/datadog_operations_test.spec.d.ts +4 -0
  146. package/dist-esm/test/datadog_operations_test.spec.d.ts.map +1 -0
  147. package/dist-esm/test/datadog_operations_test.spec.js +73 -0
  148. package/dist-esm/test/datadog_operations_test.spec.js.map +1 -0
  149. package/package.json +8 -7
  150. package/review/arm-datadog.api.md +155 -8
  151. package/src/lroImpl.ts +31 -23
  152. package/src/microsoftDatadogClient.ts +12 -4
  153. package/src/models/index.ts +204 -19
  154. package/src/models/mappers.ts +197 -2
  155. package/src/models/parameters.ts +19 -2
  156. package/src/operations/creationSupported.ts +150 -0
  157. package/src/operations/index.ts +2 -0
  158. package/src/operations/marketplaceAgreements.ts +0 -1
  159. package/src/operations/monitoredSubscriptions.ts +557 -0
  160. package/src/operations/monitors.ts +42 -38
  161. package/src/operations/operations.ts +2 -3
  162. package/src/operations/singleSignOnConfigurations.ts +20 -14
  163. package/src/operations/tagRules.ts +0 -1
  164. package/src/operationsInterfaces/creationSupported.ts +38 -0
  165. package/src/operationsInterfaces/index.ts +2 -0
  166. package/src/operationsInterfaces/monitoredSubscriptions.ts +138 -0
  167. package/src/operationsInterfaces/monitors.ts +6 -6
  168. package/src/operationsInterfaces/operations.ts +1 -1
  169. package/src/operationsInterfaces/singleSignOnConfigurations.ts +3 -3
  170. package/src/pagingHelper.ts +4 -4
  171. package/types/arm-datadog.d.ts +297 -30
  172. package/dist-esm/test/sampleTest.d.ts +0 -2
  173. package/dist-esm/test/sampleTest.d.ts.map +0 -1
  174. package/dist-esm/test/sampleTest.js +0 -38
  175. package/dist-esm/test/sampleTest.js.map +0 -1
@@ -1,8 +1,8 @@
1
1
  import * as coreAuth from '@azure/core-auth';
2
2
  import * as coreClient from '@azure/core-client';
3
+ import { OperationState } from '@azure/core-lro';
3
4
  import { PagedAsyncIterableIterator } from '@azure/core-paging';
4
- import { PollerLike } from '@azure/core-lro';
5
- import { PollOperationState } from '@azure/core-lro';
5
+ import { SimplePollerLike } from '@azure/core-lro';
6
6
 
7
7
  /**
8
8
  * Defines values for CreatedByType. \
@@ -16,6 +16,60 @@ import { PollOperationState } from '@azure/core-lro';
16
16
  */
17
17
  export declare type CreatedByType = string;
18
18
 
19
+ /** Datadog resource can be created or not properties. */
20
+ export declare interface CreateResourceSupportedProperties {
21
+ /**
22
+ * The ARM id of the subscription.
23
+ * NOTE: This property will not be serialized. It can only be populated by the server.
24
+ */
25
+ readonly name?: string;
26
+ /**
27
+ * Indicates if selected subscription supports Datadog resource creation, if not it is already being monitored for the selected organization via multi subscription feature.
28
+ * NOTE: This property will not be serialized. It can only be populated by the server.
29
+ */
30
+ readonly creationSupported?: boolean;
31
+ }
32
+
33
+ /** Datadog resource can be created or not. */
34
+ export declare interface CreateResourceSupportedResponse {
35
+ /** Represents the properties of the resource. */
36
+ properties?: CreateResourceSupportedProperties;
37
+ }
38
+
39
+ export declare interface CreateResourceSupportedResponseList {
40
+ value?: CreateResourceSupportedResponse[];
41
+ }
42
+
43
+ /** Interface representing a CreationSupported. */
44
+ export declare interface CreationSupported {
45
+ /**
46
+ * Informs if the current subscription is being already monitored for selected Datadog organization.
47
+ * @param datadogOrganizationId Datadog Organization Id
48
+ * @param options The options parameters.
49
+ */
50
+ list(datadogOrganizationId: string, options?: CreationSupportedListOptionalParams): PagedAsyncIterableIterator<CreateResourceSupportedResponse>;
51
+ /**
52
+ * Informs if the current subscription is being already monitored for selected Datadog organization.
53
+ * @param datadogOrganizationId Datadog Organization Id
54
+ * @param options The options parameters.
55
+ */
56
+ get(datadogOrganizationId: string, options?: CreationSupportedGetOptionalParams): Promise<CreationSupportedGetResponse>;
57
+ }
58
+
59
+ /** Optional parameters. */
60
+ export declare interface CreationSupportedGetOptionalParams extends coreClient.OperationOptions {
61
+ }
62
+
63
+ /** Contains response data for the get operation. */
64
+ export declare type CreationSupportedGetResponse = CreateResourceSupportedResponse;
65
+
66
+ /** Optional parameters. */
67
+ export declare interface CreationSupportedListOptionalParams extends coreClient.OperationOptions {
68
+ }
69
+
70
+ /** Contains response data for the list operation. */
71
+ export declare type CreationSupportedListResponse = CreateResourceSupportedResponseList;
72
+
19
73
  /** Terms properties. */
20
74
  export declare interface DatadogAgreementProperties {
21
75
  /** Publisher identifier string. */
@@ -91,7 +145,7 @@ export declare interface DatadogApiKeyListResponse {
91
145
  export declare interface DatadogHost {
92
146
  /** The name of the host. */
93
147
  name?: string;
94
- /** The aliases for the host. */
148
+ /** The aliases for the host installed via the Datadog agent. */
95
149
  aliases?: string[];
96
150
  /** The Datadog integrations reporting metrics for the host. */
97
151
  apps?: string[];
@@ -178,23 +232,17 @@ export declare interface DatadogMonitorResourceUpdateParameters {
178
232
  sku?: ResourceSku;
179
233
  }
180
234
 
181
- /** Datadog organization properties */
235
+ /** Specify the Datadog organization name. In the case of linking to existing organizations, Id, ApiKey, and Applicationkey is required as well. */
182
236
  export declare interface DatadogOrganizationProperties {
183
- /**
184
- * Name of the Datadog organization.
185
- * NOTE: This property will not be serialized. It can only be populated by the server.
186
- */
187
- readonly name?: string;
188
- /**
189
- * Id of the Datadog organization.
190
- * NOTE: This property will not be serialized. It can only be populated by the server.
191
- */
192
- readonly id?: string;
193
- /** The auth code used to linking to an existing datadog organization. */
237
+ /** Name of the Datadog organization. */
238
+ name?: string;
239
+ /** Id of the Datadog organization. */
240
+ id?: string;
241
+ /** The auth code used to linking to an existing Datadog organization. */
194
242
  linkingAuthCode?: string;
195
243
  /** The client_id from an existing in exchange for an auth token to link organization. */
196
244
  linkingClientId?: string;
197
- /** The redirect uri for linking. */
245
+ /** The redirect URI for linking. */
198
246
  redirectUri?: string;
199
247
  /** Api key associated to the Datadog organization. */
200
248
  apiKey?: string;
@@ -202,6 +250,8 @@ export declare interface DatadogOrganizationProperties {
202
250
  applicationKey?: string;
203
251
  /** The Id of the Enterprise App used for Single sign on. */
204
252
  enterpriseAppId?: string;
253
+ /** The configuration which describes the state of cloud security posture management. This collects configuration information for all resources in a subscription and track conformance to industry benchmarks. */
254
+ cspm?: boolean;
205
255
  }
206
256
 
207
257
  export declare interface DatadogSetPasswordLink {
@@ -314,11 +364,11 @@ export declare interface FilteringTag {
314
364
  }
315
365
 
316
366
  /**
317
- * Given a result page from a pageable operation, returns a
318
- * continuation token that can be used to begin paging from
367
+ * Given the last `.value` produced by the `byPage` iterator,
368
+ * returns a continuation token that can be used to begin paging from
319
369
  * that point later.
320
- * @param page A result object from calling .byPage() on a paged operation.
321
- * @returns The continuation token that can be passed into byPage().
370
+ * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.
371
+ * @returns The continuation token that can be passed into byPage() during future calls.
322
372
  */
323
373
  export declare function getContinuationToken(page: unknown): string | undefined;
324
374
 
@@ -333,7 +383,7 @@ export declare interface IdentityProperties {
333
383
  * NOTE: This property will not be serialized. It can only be populated by the server.
334
384
  */
335
385
  readonly tenantId?: string;
336
- /** Identity type */
386
+ /** Specifies the identity type of the Datadog Monitor. At this time the only allowed value is 'SystemAssigned'. */
337
387
  type?: ManagedIdentityTypes;
338
388
  }
339
389
 
@@ -385,6 +435,20 @@ export declare enum KnownMonitoringStatus {
385
435
  Disabled = "Disabled"
386
436
  }
387
437
 
438
+ /** Known values of {@link Operation} that the service accepts. */
439
+ export declare enum KnownOperation {
440
+ /** AddBegin */
441
+ AddBegin = "AddBegin",
442
+ /** AddComplete */
443
+ AddComplete = "AddComplete",
444
+ /** DeleteBegin */
445
+ DeleteBegin = "DeleteBegin",
446
+ /** DeleteComplete */
447
+ DeleteComplete = "DeleteComplete",
448
+ /** Active */
449
+ Active = "Active"
450
+ }
451
+
388
452
  /** Known values of {@link ProvisioningState} that the service accepts. */
389
453
  export declare enum KnownProvisioningState {
390
454
  /** Accepted */
@@ -419,6 +483,18 @@ export declare enum KnownSingleSignOnStates {
419
483
  Existing = "Existing"
420
484
  }
421
485
 
486
+ /** Known values of {@link Status} that the service accepts. */
487
+ export declare enum KnownStatus {
488
+ /** InProgress */
489
+ InProgress = "InProgress",
490
+ /** Active */
491
+ Active = "Active",
492
+ /** Failed */
493
+ Failed = "Failed",
494
+ /** Deleting */
495
+ Deleting = "Deleting"
496
+ }
497
+
422
498
  /** Known values of {@link TagAction} that the service accepts. */
423
499
  export declare enum KnownTagAction {
424
500
  /** Include */
@@ -541,10 +617,12 @@ export declare class MicrosoftDatadogClient extends coreClient.ServiceClient {
541
617
  /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
542
618
  private addCustomApiVersionPolicy;
543
619
  marketplaceAgreements: MarketplaceAgreements;
620
+ creationSupported: CreationSupported;
544
621
  monitors: Monitors;
545
622
  operations: Operations;
546
623
  tagRules: TagRules;
547
624
  singleSignOnConfigurations: SingleSignOnConfigurations;
625
+ monitoredSubscriptions: MonitoredSubscriptions;
548
626
  }
549
627
 
550
628
  /** Optional parameters. */
@@ -579,6 +657,158 @@ export declare interface MonitoredResourceListResponse {
579
657
  nextLink?: string;
580
658
  }
581
659
 
660
+ /** The list of subscriptions and it's monitoring status by current Datadog monitor. */
661
+ export declare interface MonitoredSubscription {
662
+ /** The subscriptionId to be monitored. */
663
+ subscriptionId?: string;
664
+ /** The state of monitoring. */
665
+ status?: Status;
666
+ /** The reason of not monitoring the subscription. */
667
+ error?: string;
668
+ /** Definition of the properties for a TagRules resource. */
669
+ tagRules?: MonitoringTagRulesProperties;
670
+ }
671
+
672
+ /** The request to update subscriptions needed to be monitored by the Datadog monitor resource. */
673
+ export declare interface MonitoredSubscriptionProperties {
674
+ /**
675
+ * Name of the monitored subscription resource.
676
+ * NOTE: This property will not be serialized. It can only be populated by the server.
677
+ */
678
+ readonly name?: string;
679
+ /**
680
+ * The id of the monitored subscription resource.
681
+ * NOTE: This property will not be serialized. It can only be populated by the server.
682
+ */
683
+ readonly id?: string;
684
+ /**
685
+ * The type of the monitored subscription resource.
686
+ * NOTE: This property will not be serialized. It can only be populated by the server.
687
+ */
688
+ readonly type?: string;
689
+ /** The request to update subscriptions needed to be monitored by the Datadog monitor resource. */
690
+ properties?: SubscriptionList;
691
+ }
692
+
693
+ export declare interface MonitoredSubscriptionPropertiesList {
694
+ value?: MonitoredSubscriptionProperties[];
695
+ }
696
+
697
+ /** Interface representing a MonitoredSubscriptions. */
698
+ export declare interface MonitoredSubscriptions {
699
+ /**
700
+ * List the subscriptions currently being monitored by the Datadog monitor resource.
701
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
702
+ * @param monitorName Monitor resource name
703
+ * @param options The options parameters.
704
+ */
705
+ list(resourceGroupName: string, monitorName: string, options?: MonitoredSubscriptionsListOptionalParams): PagedAsyncIterableIterator<MonitoredSubscriptionProperties>;
706
+ /**
707
+ * List the subscriptions currently being monitored by the Datadog monitor resource.
708
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
709
+ * @param monitorName Monitor resource name
710
+ * @param configurationName The configuration name. Only 'default' value is supported.
711
+ * @param options The options parameters.
712
+ */
713
+ get(resourceGroupName: string, monitorName: string, configurationName: string, options?: MonitoredSubscriptionsGetOptionalParams): Promise<MonitoredSubscriptionsGetResponse>;
714
+ /**
715
+ * Add the subscriptions that should be monitored by the Datadog monitor resource.
716
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
717
+ * @param monitorName Monitor resource name
718
+ * @param configurationName The configuration name. Only 'default' value is supported.
719
+ * @param options The options parameters.
720
+ */
721
+ beginCreateorUpdate(resourceGroupName: string, monitorName: string, configurationName: string, options?: MonitoredSubscriptionsCreateorUpdateOptionalParams): Promise<SimplePollerLike<OperationState<MonitoredSubscriptionsCreateorUpdateResponse>, MonitoredSubscriptionsCreateorUpdateResponse>>;
722
+ /**
723
+ * Add the subscriptions that should be monitored by the Datadog monitor resource.
724
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
725
+ * @param monitorName Monitor resource name
726
+ * @param configurationName The configuration name. Only 'default' value is supported.
727
+ * @param options The options parameters.
728
+ */
729
+ beginCreateorUpdateAndWait(resourceGroupName: string, monitorName: string, configurationName: string, options?: MonitoredSubscriptionsCreateorUpdateOptionalParams): Promise<MonitoredSubscriptionsCreateorUpdateResponse>;
730
+ /**
731
+ * Updates the subscriptions that are being monitored by the Datadog monitor resource
732
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
733
+ * @param monitorName Monitor resource name
734
+ * @param configurationName The configuration name. Only 'default' value is supported.
735
+ * @param options The options parameters.
736
+ */
737
+ beginUpdate(resourceGroupName: string, monitorName: string, configurationName: string, options?: MonitoredSubscriptionsUpdateOptionalParams): Promise<SimplePollerLike<OperationState<MonitoredSubscriptionsUpdateResponse>, MonitoredSubscriptionsUpdateResponse>>;
738
+ /**
739
+ * Updates the subscriptions that are being monitored by the Datadog monitor resource
740
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
741
+ * @param monitorName Monitor resource name
742
+ * @param configurationName The configuration name. Only 'default' value is supported.
743
+ * @param options The options parameters.
744
+ */
745
+ beginUpdateAndWait(resourceGroupName: string, monitorName: string, configurationName: string, options?: MonitoredSubscriptionsUpdateOptionalParams): Promise<MonitoredSubscriptionsUpdateResponse>;
746
+ /**
747
+ * Updates the subscriptions that are being monitored by the Datadog monitor resource
748
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
749
+ * @param monitorName Monitor resource name
750
+ * @param configurationName Configuration name
751
+ * @param options The options parameters.
752
+ */
753
+ beginDelete(resourceGroupName: string, monitorName: string, configurationName: string, options?: MonitoredSubscriptionsDeleteOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
754
+ /**
755
+ * Updates the subscriptions that are being monitored by the Datadog monitor resource
756
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
757
+ * @param monitorName Monitor resource name
758
+ * @param configurationName Configuration name
759
+ * @param options The options parameters.
760
+ */
761
+ beginDeleteAndWait(resourceGroupName: string, monitorName: string, configurationName: string, options?: MonitoredSubscriptionsDeleteOptionalParams): Promise<void>;
762
+ }
763
+
764
+ /** Optional parameters. */
765
+ export declare interface MonitoredSubscriptionsCreateorUpdateOptionalParams extends coreClient.OperationOptions {
766
+ /** The request to update subscriptions needed to be monitored by the Datadog monitor resource. */
767
+ body?: MonitoredSubscriptionProperties;
768
+ /** Delay to wait until next poll, in milliseconds. */
769
+ updateIntervalInMs?: number;
770
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
771
+ resumeFrom?: string;
772
+ }
773
+
774
+ /** Contains response data for the createorUpdate operation. */
775
+ export declare type MonitoredSubscriptionsCreateorUpdateResponse = MonitoredSubscriptionProperties;
776
+
777
+ /** Optional parameters. */
778
+ export declare interface MonitoredSubscriptionsDeleteOptionalParams extends coreClient.OperationOptions {
779
+ /** Delay to wait until next poll, in milliseconds. */
780
+ updateIntervalInMs?: number;
781
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
782
+ resumeFrom?: string;
783
+ }
784
+
785
+ /** Optional parameters. */
786
+ export declare interface MonitoredSubscriptionsGetOptionalParams extends coreClient.OperationOptions {
787
+ }
788
+
789
+ /** Contains response data for the get operation. */
790
+ export declare type MonitoredSubscriptionsGetResponse = MonitoredSubscriptionProperties;
791
+
792
+ /** Optional parameters. */
793
+ export declare interface MonitoredSubscriptionsListOptionalParams extends coreClient.OperationOptions {
794
+ }
795
+
796
+ /** Contains response data for the list operation. */
797
+ export declare type MonitoredSubscriptionsListResponse = MonitoredSubscriptionPropertiesList;
798
+
799
+ /** Optional parameters. */
800
+ export declare interface MonitoredSubscriptionsUpdateOptionalParams extends coreClient.OperationOptions {
801
+ /** The request to update subscriptions needed to be monitored by the Datadog monitor resource. */
802
+ body?: MonitoredSubscriptionProperties;
803
+ /** Delay to wait until next poll, in milliseconds. */
804
+ updateIntervalInMs?: number;
805
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
806
+ resumeFrom?: string;
807
+ }
808
+
809
+ /** Contains response data for the update operation. */
810
+ export declare type MonitoredSubscriptionsUpdateResponse = MonitoredSubscriptionProperties;
811
+
582
812
  /**
583
813
  * Defines values for MonitoringStatus. \
584
814
  * {@link KnownMonitoringStatus} can be used interchangeably with MonitoringStatus,
@@ -631,6 +861,8 @@ export declare interface MonitoringTagRulesProperties {
631
861
  logRules?: LogRules;
632
862
  /** Set of rules for sending metrics for the Monitor resource. */
633
863
  metricRules?: MetricRules;
864
+ /** Configuration to enable/disable auto-muting flag */
865
+ automuting?: boolean;
634
866
  }
635
867
 
636
868
  /** Properties specific to the monitor resource. */
@@ -644,9 +876,9 @@ export declare interface MonitorProperties {
644
876
  * NOTE: This property will not be serialized. It can only be populated by the server.
645
877
  */
646
878
  readonly marketplaceSubscriptionStatus?: MarketplaceSubscriptionStatus;
647
- /** Datadog organization properties */
879
+ /** Specify the Datadog organization name. In the case of linking to existing organizations, Id, ApiKey, and Applicationkey is required as well. */
648
880
  datadogOrganizationProperties?: DatadogOrganizationProperties;
649
- /** User info */
881
+ /** Includes name, email and optionally, phone number. User Information can't be null. */
650
882
  userInfo?: UserInfo;
651
883
  /** NOTE: This property will not be serialized. It can only be populated by the server. */
652
884
  readonly liftrResourceCategory?: LiftrResourceCategories;
@@ -725,7 +957,7 @@ export declare interface Monitors {
725
957
  * @param monitorName Monitor resource name
726
958
  * @param options The options parameters.
727
959
  */
728
- beginCreate(resourceGroupName: string, monitorName: string, options?: MonitorsCreateOptionalParams): Promise<PollerLike<PollOperationState<MonitorsCreateResponse>, MonitorsCreateResponse>>;
960
+ beginCreate(resourceGroupName: string, monitorName: string, options?: MonitorsCreateOptionalParams): Promise<SimplePollerLike<OperationState<MonitorsCreateResponse>, MonitorsCreateResponse>>;
729
961
  /**
730
962
  * Create a monitor resource.
731
963
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
@@ -739,7 +971,7 @@ export declare interface Monitors {
739
971
  * @param monitorName Monitor resource name
740
972
  * @param options The options parameters.
741
973
  */
742
- beginUpdate(resourceGroupName: string, monitorName: string, options?: MonitorsUpdateOptionalParams): Promise<PollerLike<PollOperationState<MonitorsUpdateResponse>, MonitorsUpdateResponse>>;
974
+ beginUpdate(resourceGroupName: string, monitorName: string, options?: MonitorsUpdateOptionalParams): Promise<SimplePollerLike<OperationState<MonitorsUpdateResponse>, MonitorsUpdateResponse>>;
743
975
  /**
744
976
  * Update a monitor resource.
745
977
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
@@ -753,7 +985,7 @@ export declare interface Monitors {
753
985
  * @param monitorName Monitor resource name
754
986
  * @param options The options parameters.
755
987
  */
756
- beginDelete(resourceGroupName: string, monitorName: string, options?: MonitorsDeleteOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
988
+ beginDelete(resourceGroupName: string, monitorName: string, options?: MonitorsDeleteOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
757
989
  /**
758
990
  * Delete a monitor resource.
759
991
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
@@ -917,8 +1149,23 @@ export declare type MonitorsUpdateResponse = DatadogMonitorResource;
917
1149
  export declare interface MonitorUpdateProperties {
918
1150
  /** Flag specifying if the resource monitoring is enabled or disabled. */
919
1151
  monitoringStatus?: MonitoringStatus;
1152
+ /** The new cloud security posture management value of the monitor resource. This collects configuration information for all resources in a subscription and track conformance to industry benchmarks. */
1153
+ cspm?: boolean;
920
1154
  }
921
1155
 
1156
+ /**
1157
+ * Defines values for Operation. \
1158
+ * {@link KnownOperation} can be used interchangeably with Operation,
1159
+ * this enum contains the known values that the service supports.
1160
+ * ### Known values supported by the service
1161
+ * **AddBegin** \
1162
+ * **AddComplete** \
1163
+ * **DeleteBegin** \
1164
+ * **DeleteComplete** \
1165
+ * **Active**
1166
+ */
1167
+ export declare type Operation = string;
1168
+
922
1169
  /** The object that represents the operation. */
923
1170
  export declare interface OperationDisplay {
924
1171
  /** Service provider, i.e., Microsoft.Datadog. */
@@ -952,7 +1199,7 @@ export declare interface OperationResult {
952
1199
  /** Interface representing a Operations. */
953
1200
  export declare interface Operations {
954
1201
  /**
955
- * List all operations provided by Microsoft.Datadog for the 2021-03-01 api version.
1202
+ * List all operations provided by Microsoft.Datadog for the 2023-01-01 api version.
956
1203
  * @param options The options parameters.
957
1204
  */
958
1205
  list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator<OperationResult>;
@@ -990,7 +1237,7 @@ export declare type OperationsListResponse = OperationListResult;
990
1237
  export declare type ProvisioningState = string;
991
1238
 
992
1239
  export declare interface ResourceSku {
993
- /** Name of the SKU. */
1240
+ /** Name of the SKU in {PlanId} format. For Terraform, the only allowed value is 'linking'. */
994
1241
  name: string;
995
1242
  }
996
1243
 
@@ -1010,7 +1257,7 @@ export declare interface SingleSignOnConfigurations {
1010
1257
  * @param configurationName Configuration name
1011
1258
  * @param options The options parameters.
1012
1259
  */
1013
- beginCreateOrUpdate(resourceGroupName: string, monitorName: string, configurationName: string, options?: SingleSignOnConfigurationsCreateOrUpdateOptionalParams): Promise<PollerLike<PollOperationState<SingleSignOnConfigurationsCreateOrUpdateResponse>, SingleSignOnConfigurationsCreateOrUpdateResponse>>;
1260
+ beginCreateOrUpdate(resourceGroupName: string, monitorName: string, configurationName: string, options?: SingleSignOnConfigurationsCreateOrUpdateOptionalParams): Promise<SimplePollerLike<OperationState<SingleSignOnConfigurationsCreateOrUpdateResponse>, SingleSignOnConfigurationsCreateOrUpdateResponse>>;
1014
1261
  /**
1015
1262
  * Configures single-sign-on for this resource.
1016
1263
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
@@ -1074,6 +1321,26 @@ export declare type SingleSignOnConfigurationsListResponse = DatadogSingleSignOn
1074
1321
  */
1075
1322
  export declare type SingleSignOnStates = string;
1076
1323
 
1324
+ /**
1325
+ * Defines values for Status. \
1326
+ * {@link KnownStatus} can be used interchangeably with Status,
1327
+ * this enum contains the known values that the service supports.
1328
+ * ### Known values supported by the service
1329
+ * **InProgress** \
1330
+ * **Active** \
1331
+ * **Failed** \
1332
+ * **Deleting**
1333
+ */
1334
+ export declare type Status = string;
1335
+
1336
+ /** The request to update subscriptions needed to be monitored by the Datadog monitor resource. */
1337
+ export declare interface SubscriptionList {
1338
+ /** The operation for the patch on the resource. */
1339
+ operation?: Operation;
1340
+ /** List of subscriptions and the state of the monitoring. */
1341
+ monitoredSubscriptionList?: MonitoredSubscription[];
1342
+ }
1343
+
1077
1344
  /** Metadata pertaining to creation and last modification of the resource. */
1078
1345
  export declare interface SystemData {
1079
1346
  /** The identity that created the resource. */
@@ -1157,7 +1424,7 @@ export declare interface TagRulesListOptionalParams extends coreClient.Operation
1157
1424
  /** Contains response data for the list operation. */
1158
1425
  export declare type TagRulesListResponse = MonitoringTagRulesListResponse;
1159
1426
 
1160
- /** User info */
1427
+ /** Includes name, email and optionally, phone number. User Information can't be null. */
1161
1428
  export declare interface UserInfo {
1162
1429
  /** Name of the user */
1163
1430
  name?: string;
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=sampleTest.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"sampleTest.d.ts","sourceRoot":"","sources":["../../test/sampleTest.ts"],"names":[],"mappings":""}
@@ -1,38 +0,0 @@
1
- /*
2
- * Copyright (c) Microsoft Corporation.
3
- * Licensed under the MIT License.
4
- *
5
- * Code generated by Microsoft (R) AutoRest Code Generator.
6
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
- */
8
- import { __awaiter } from "tslib";
9
- import { Recorder } from "@azure-tools/test-recorder";
10
- const replaceableVariables = {
11
- AZURE_CLIENT_ID: "azure_client_id",
12
- AZURE_CLIENT_SECRET: "azure_client_secret",
13
- AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888",
14
- SUBSCRIPTION_ID: "azure_subscription_id"
15
- };
16
- const recorderOptions = {
17
- envSetupForPlayback: replaceableVariables
18
- };
19
- describe("My test", () => {
20
- let recorder;
21
- beforeEach(function () {
22
- return __awaiter(this, void 0, void 0, function* () {
23
- recorder = new Recorder(this.currentTest);
24
- yield recorder.start(recorderOptions);
25
- });
26
- });
27
- afterEach(function () {
28
- return __awaiter(this, void 0, void 0, function* () {
29
- yield recorder.stop();
30
- });
31
- });
32
- it("sample test", function () {
33
- return __awaiter(this, void 0, void 0, function* () {
34
- console.log("Hi, I'm a test!");
35
- });
36
- });
37
- });
38
- //# sourceMappingURL=sampleTest.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"sampleTest.js","sourceRoot":"","sources":["../../test/sampleTest.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,OAAO,EACL,QAAQ,EAGT,MAAM,4BAA4B,CAAC;AAIpC,MAAM,oBAAoB,GAA2B;IACnD,eAAe,EAAE,iBAAiB;IAClC,mBAAmB,EAAE,qBAAqB;IAC1C,eAAe,EAAE,sCAAsC;IACvD,eAAe,EAAE,uBAAuB;CACzC,CAAC;AAEF,MAAM,eAAe,GAAyB;IAC5C,mBAAmB,EAAE,oBAAoB;CAC1C,CAAC;AAEF,QAAQ,CAAC,SAAS,EAAE,GAAG,EAAE;IACvB,IAAI,QAAkB,CAAC;IAEvB,UAAU,CAAC;;YACT,QAAQ,GAAG,IAAI,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;YAC1C,MAAM,QAAQ,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC;QACxC,CAAC;KAAA,CAAC,CAAC;IAEH,SAAS,CAAC;;YACR,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC;QACxB,CAAC;KAAA,CAAC,CAAC;IAEH,EAAE,CAAC,aAAa,EAAE;;YAChB,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC;QACjC,CAAC;KAAA,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}