@azure/arm-datadog 3.0.3-alpha.20231016.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 +955 -259
  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 +14 -11
  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 +15 -12
  48. package/dist-esm/samples-dev/monitorsListApiKeysSample.js.map +1 -1
  49. package/dist-esm/samples-dev/monitorsListByResourceGroupSample.js +15 -12
  50. package/dist-esm/samples-dev/monitorsListByResourceGroupSample.js.map +1 -1
  51. package/dist-esm/samples-dev/monitorsListHostsSample.js +15 -12
  52. package/dist-esm/samples-dev/monitorsListHostsSample.js.map +1 -1
  53. package/dist-esm/samples-dev/monitorsListLinkedResourcesSample.js +15 -12
  54. package/dist-esm/samples-dev/monitorsListLinkedResourcesSample.js.map +1 -1
  55. package/dist-esm/samples-dev/monitorsListMonitoredResourcesSample.js +15 -12
  56. package/dist-esm/samples-dev/monitorsListMonitoredResourcesSample.js.map +1 -1
  57. package/dist-esm/samples-dev/monitorsListSample.js +14 -11
  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 +16 -13
  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 +15 -12
  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 +15 -12
  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 +3 -9
  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 +45 -69
  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 +5 -11
  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 +14 -16
  123. package/dist-esm/src/operations/singleSignOnConfigurations.js.map +1 -1
  124. package/dist-esm/src/operations/tagRules.js +3 -9
  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 +9 -8
  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
@@ -126,6 +126,30 @@ export interface ErrorAdditionalInfo {
126
126
  readonly info?: Record<string, unknown>;
127
127
  }
128
128
 
129
+ export interface CreateResourceSupportedResponseList {
130
+ value?: CreateResourceSupportedResponse[];
131
+ }
132
+
133
+ /** Datadog resource can be created or not. */
134
+ export interface CreateResourceSupportedResponse {
135
+ /** Represents the properties of the resource. */
136
+ properties?: CreateResourceSupportedProperties;
137
+ }
138
+
139
+ /** Datadog resource can be created or not properties. */
140
+ export interface CreateResourceSupportedProperties {
141
+ /**
142
+ * The ARM id of the subscription.
143
+ * NOTE: This property will not be serialized. It can only be populated by the server.
144
+ */
145
+ readonly name?: string;
146
+ /**
147
+ * Indicates if selected subscription supports Datadog resource creation, if not it is already being monitored for the selected organization via multi subscription feature.
148
+ * NOTE: This property will not be serialized. It can only be populated by the server.
149
+ */
150
+ readonly creationSupported?: boolean;
151
+ }
152
+
129
153
  /** Response of a list operation. */
130
154
  export interface DatadogApiKeyListResponse {
131
155
  /** Results of a list operation. */
@@ -156,7 +180,7 @@ export interface DatadogHostListResponse {
156
180
  export interface DatadogHost {
157
181
  /** The name of the host. */
158
182
  name?: string;
159
- /** The aliases for the host. */
183
+ /** The aliases for the host installed via the Datadog agent. */
160
184
  aliases?: string[];
161
185
  /** The Datadog integrations reporting metrics for the host. */
162
186
  apps?: string[];
@@ -289,7 +313,7 @@ export interface DatadogMonitorResource {
289
313
  }
290
314
 
291
315
  export interface ResourceSku {
292
- /** Name of the SKU. */
316
+ /** Name of the SKU in {PlanId} format. For Terraform, the only allowed value is 'linking'. */
293
317
  name: string;
294
318
  }
295
319
 
@@ -304,9 +328,9 @@ export interface MonitorProperties {
304
328
  * NOTE: This property will not be serialized. It can only be populated by the server.
305
329
  */
306
330
  readonly marketplaceSubscriptionStatus?: MarketplaceSubscriptionStatus;
307
- /** Datadog organization properties */
331
+ /** Specify the Datadog organization name. In the case of linking to existing organizations, Id, ApiKey, and Applicationkey is required as well. */
308
332
  datadogOrganizationProperties?: DatadogOrganizationProperties;
309
- /** User info */
333
+ /** Includes name, email and optionally, phone number. User Information can't be null. */
310
334
  userInfo?: UserInfo;
311
335
  /** NOTE: This property will not be serialized. It can only be populated by the server. */
312
336
  readonly liftrResourceCategory?: LiftrResourceCategories;
@@ -317,23 +341,17 @@ export interface MonitorProperties {
317
341
  readonly liftrResourcePreference?: number;
318
342
  }
319
343
 
320
- /** Datadog organization properties */
344
+ /** Specify the Datadog organization name. In the case of linking to existing organizations, Id, ApiKey, and Applicationkey is required as well. */
321
345
  export interface DatadogOrganizationProperties {
322
- /**
323
- * Name of the Datadog organization.
324
- * NOTE: This property will not be serialized. It can only be populated by the server.
325
- */
326
- readonly name?: string;
327
- /**
328
- * Id of the Datadog organization.
329
- * NOTE: This property will not be serialized. It can only be populated by the server.
330
- */
331
- readonly id?: string;
332
- /** The auth code used to linking to an existing datadog organization. */
346
+ /** Name of the Datadog organization. */
347
+ name?: string;
348
+ /** Id of the Datadog organization. */
349
+ id?: string;
350
+ /** The auth code used to linking to an existing Datadog organization. */
333
351
  linkingAuthCode?: string;
334
352
  /** The client_id from an existing in exchange for an auth token to link organization. */
335
353
  linkingClientId?: string;
336
- /** The redirect uri for linking. */
354
+ /** The redirect URI for linking. */
337
355
  redirectUri?: string;
338
356
  /** Api key associated to the Datadog organization. */
339
357
  apiKey?: string;
@@ -341,9 +359,11 @@ export interface DatadogOrganizationProperties {
341
359
  applicationKey?: string;
342
360
  /** The Id of the Enterprise App used for Single sign on. */
343
361
  enterpriseAppId?: string;
362
+ /** 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. */
363
+ cspm?: boolean;
344
364
  }
345
365
 
346
- /** User info */
366
+ /** Includes name, email and optionally, phone number. User Information can't be null. */
347
367
  export interface UserInfo {
348
368
  /** Name of the user */
349
369
  name?: string;
@@ -364,7 +384,7 @@ export interface IdentityProperties {
364
384
  * NOTE: This property will not be serialized. It can only be populated by the server.
365
385
  */
366
386
  readonly tenantId?: string;
367
- /** Identity type */
387
+ /** Specifies the identity type of the Datadog Monitor. At this time the only allowed value is 'SystemAssigned'. */
368
388
  type?: ManagedIdentityTypes;
369
389
  }
370
390
 
@@ -381,6 +401,8 @@ export interface DatadogMonitorResourceUpdateParameters {
381
401
  export interface MonitorUpdateProperties {
382
402
  /** Flag specifying if the resource monitoring is enabled or disabled. */
383
403
  monitoringStatus?: MonitoringStatus;
404
+ /** 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. */
405
+ cspm?: boolean;
384
406
  }
385
407
 
386
408
  export interface DatadogSetPasswordLink {
@@ -429,6 +451,8 @@ export interface MonitoringTagRulesProperties {
429
451
  logRules?: LogRules;
430
452
  /** Set of rules for sending metrics for the Monitor resource. */
431
453
  metricRules?: MetricRules;
454
+ /** Configuration to enable/disable auto-muting flag */
455
+ automuting?: boolean;
432
456
  }
433
457
 
434
458
  /** Set of rules for sending logs for the Monitor resource. */
@@ -505,6 +529,51 @@ export interface DatadogSingleSignOnProperties {
505
529
  readonly singleSignOnUrl?: string;
506
530
  }
507
531
 
532
+ export interface MonitoredSubscriptionPropertiesList {
533
+ value?: MonitoredSubscriptionProperties[];
534
+ }
535
+
536
+ /** The request to update subscriptions needed to be monitored by the Datadog monitor resource. */
537
+ export interface MonitoredSubscriptionProperties {
538
+ /**
539
+ * Name of the monitored subscription resource.
540
+ * NOTE: This property will not be serialized. It can only be populated by the server.
541
+ */
542
+ readonly name?: string;
543
+ /**
544
+ * The id of the monitored subscription resource.
545
+ * NOTE: This property will not be serialized. It can only be populated by the server.
546
+ */
547
+ readonly id?: string;
548
+ /**
549
+ * The type of the monitored subscription resource.
550
+ * NOTE: This property will not be serialized. It can only be populated by the server.
551
+ */
552
+ readonly type?: string;
553
+ /** The request to update subscriptions needed to be monitored by the Datadog monitor resource. */
554
+ properties?: SubscriptionList;
555
+ }
556
+
557
+ /** The request to update subscriptions needed to be monitored by the Datadog monitor resource. */
558
+ export interface SubscriptionList {
559
+ /** The operation for the patch on the resource. */
560
+ operation?: Operation;
561
+ /** List of subscriptions and the state of the monitoring. */
562
+ monitoredSubscriptionList?: MonitoredSubscription[];
563
+ }
564
+
565
+ /** The list of subscriptions and it's monitoring status by current Datadog monitor. */
566
+ export interface MonitoredSubscription {
567
+ /** The subscriptionId to be monitored. */
568
+ subscriptionId?: string;
569
+ /** The state of monitoring. */
570
+ status?: Status;
571
+ /** The reason of not monitoring the subscription. */
572
+ error?: string;
573
+ /** Definition of the properties for a TagRules resource. */
574
+ tagRules?: MonitoringTagRulesProperties;
575
+ }
576
+
508
577
  /** Known values of {@link CreatedByType} that the service accepts. */
509
578
  export enum KnownCreatedByType {
510
579
  /** User */
@@ -688,6 +757,57 @@ export enum KnownSingleSignOnStates {
688
757
  */
689
758
  export type SingleSignOnStates = string;
690
759
 
760
+ /** Known values of {@link Operation} that the service accepts. */
761
+ export enum KnownOperation {
762
+ /** AddBegin */
763
+ AddBegin = "AddBegin",
764
+ /** AddComplete */
765
+ AddComplete = "AddComplete",
766
+ /** DeleteBegin */
767
+ DeleteBegin = "DeleteBegin",
768
+ /** DeleteComplete */
769
+ DeleteComplete = "DeleteComplete",
770
+ /** Active */
771
+ Active = "Active"
772
+ }
773
+
774
+ /**
775
+ * Defines values for Operation. \
776
+ * {@link KnownOperation} can be used interchangeably with Operation,
777
+ * this enum contains the known values that the service supports.
778
+ * ### Known values supported by the service
779
+ * **AddBegin** \
780
+ * **AddComplete** \
781
+ * **DeleteBegin** \
782
+ * **DeleteComplete** \
783
+ * **Active**
784
+ */
785
+ export type Operation = string;
786
+
787
+ /** Known values of {@link Status} that the service accepts. */
788
+ export enum KnownStatus {
789
+ /** InProgress */
790
+ InProgress = "InProgress",
791
+ /** Active */
792
+ Active = "Active",
793
+ /** Failed */
794
+ Failed = "Failed",
795
+ /** Deleting */
796
+ Deleting = "Deleting"
797
+ }
798
+
799
+ /**
800
+ * Defines values for Status. \
801
+ * {@link KnownStatus} can be used interchangeably with Status,
802
+ * this enum contains the known values that the service supports.
803
+ * ### Known values supported by the service
804
+ * **InProgress** \
805
+ * **Active** \
806
+ * **Failed** \
807
+ * **Deleting**
808
+ */
809
+ export type Status = string;
810
+
691
811
  /** Optional parameters. */
692
812
  export interface MarketplaceAgreementsListOptionalParams
693
813
  extends coreClient.OperationOptions {}
@@ -711,6 +831,20 @@ export interface MarketplaceAgreementsListNextOptionalParams
711
831
  /** Contains response data for the listNext operation. */
712
832
  export type MarketplaceAgreementsListNextResponse = DatadogAgreementResourceListResponse;
713
833
 
834
+ /** Optional parameters. */
835
+ export interface CreationSupportedListOptionalParams
836
+ extends coreClient.OperationOptions {}
837
+
838
+ /** Contains response data for the list operation. */
839
+ export type CreationSupportedListResponse = CreateResourceSupportedResponseList;
840
+
841
+ /** Optional parameters. */
842
+ export interface CreationSupportedGetOptionalParams
843
+ extends coreClient.OperationOptions {}
844
+
845
+ /** Contains response data for the get operation. */
846
+ export type CreationSupportedGetResponse = CreateResourceSupportedResponse;
847
+
714
848
  /** Optional parameters. */
715
849
  export interface MonitorsListApiKeysOptionalParams
716
850
  extends coreClient.OperationOptions {}
@@ -937,6 +1071,57 @@ export interface SingleSignOnConfigurationsListNextOptionalParams
937
1071
  /** Contains response data for the listNext operation. */
938
1072
  export type SingleSignOnConfigurationsListNextResponse = DatadogSingleSignOnResourceListResponse;
939
1073
 
1074
+ /** Optional parameters. */
1075
+ export interface MonitoredSubscriptionsListOptionalParams
1076
+ extends coreClient.OperationOptions {}
1077
+
1078
+ /** Contains response data for the list operation. */
1079
+ export type MonitoredSubscriptionsListResponse = MonitoredSubscriptionPropertiesList;
1080
+
1081
+ /** Optional parameters. */
1082
+ export interface MonitoredSubscriptionsGetOptionalParams
1083
+ extends coreClient.OperationOptions {}
1084
+
1085
+ /** Contains response data for the get operation. */
1086
+ export type MonitoredSubscriptionsGetResponse = MonitoredSubscriptionProperties;
1087
+
1088
+ /** Optional parameters. */
1089
+ export interface MonitoredSubscriptionsCreateorUpdateOptionalParams
1090
+ extends coreClient.OperationOptions {
1091
+ /** The request to update subscriptions needed to be monitored by the Datadog monitor resource. */
1092
+ body?: MonitoredSubscriptionProperties;
1093
+ /** Delay to wait until next poll, in milliseconds. */
1094
+ updateIntervalInMs?: number;
1095
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
1096
+ resumeFrom?: string;
1097
+ }
1098
+
1099
+ /** Contains response data for the createorUpdate operation. */
1100
+ export type MonitoredSubscriptionsCreateorUpdateResponse = MonitoredSubscriptionProperties;
1101
+
1102
+ /** Optional parameters. */
1103
+ export interface MonitoredSubscriptionsUpdateOptionalParams
1104
+ extends coreClient.OperationOptions {
1105
+ /** The request to update subscriptions needed to be monitored by the Datadog monitor resource. */
1106
+ body?: MonitoredSubscriptionProperties;
1107
+ /** Delay to wait until next poll, in milliseconds. */
1108
+ updateIntervalInMs?: number;
1109
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
1110
+ resumeFrom?: string;
1111
+ }
1112
+
1113
+ /** Contains response data for the update operation. */
1114
+ export type MonitoredSubscriptionsUpdateResponse = MonitoredSubscriptionProperties;
1115
+
1116
+ /** Optional parameters. */
1117
+ export interface MonitoredSubscriptionsDeleteOptionalParams
1118
+ extends coreClient.OperationOptions {
1119
+ /** Delay to wait until next poll, in milliseconds. */
1120
+ updateIntervalInMs?: number;
1121
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
1122
+ resumeFrom?: string;
1123
+ }
1124
+
940
1125
  /** Optional parameters. */
941
1126
  export interface MicrosoftDatadogClientOptionalParams
942
1127
  extends coreClient.ServiceClientOptions {
@@ -277,6 +277,66 @@ export const ErrorAdditionalInfo: coreClient.CompositeMapper = {
277
277
  }
278
278
  };
279
279
 
280
+ export const CreateResourceSupportedResponseList: coreClient.CompositeMapper = {
281
+ type: {
282
+ name: "Composite",
283
+ className: "CreateResourceSupportedResponseList",
284
+ modelProperties: {
285
+ value: {
286
+ serializedName: "value",
287
+ type: {
288
+ name: "Sequence",
289
+ element: {
290
+ type: {
291
+ name: "Composite",
292
+ className: "CreateResourceSupportedResponse"
293
+ }
294
+ }
295
+ }
296
+ }
297
+ }
298
+ }
299
+ };
300
+
301
+ export const CreateResourceSupportedResponse: coreClient.CompositeMapper = {
302
+ type: {
303
+ name: "Composite",
304
+ className: "CreateResourceSupportedResponse",
305
+ modelProperties: {
306
+ properties: {
307
+ serializedName: "properties",
308
+ type: {
309
+ name: "Composite",
310
+ className: "CreateResourceSupportedProperties"
311
+ }
312
+ }
313
+ }
314
+ }
315
+ };
316
+
317
+ export const CreateResourceSupportedProperties: coreClient.CompositeMapper = {
318
+ type: {
319
+ name: "Composite",
320
+ className: "CreateResourceSupportedProperties",
321
+ modelProperties: {
322
+ name: {
323
+ serializedName: "name",
324
+ readOnly: true,
325
+ type: {
326
+ name: "String"
327
+ }
328
+ },
329
+ creationSupported: {
330
+ serializedName: "creationSupported",
331
+ readOnly: true,
332
+ type: {
333
+ name: "Boolean"
334
+ }
335
+ }
336
+ }
337
+ }
338
+ };
339
+
280
340
  export const DatadogApiKeyListResponse: coreClient.CompositeMapper = {
281
341
  type: {
282
342
  name: "Composite",
@@ -856,14 +916,12 @@ export const DatadogOrganizationProperties: coreClient.CompositeMapper = {
856
916
  modelProperties: {
857
917
  name: {
858
918
  serializedName: "name",
859
- readOnly: true,
860
919
  type: {
861
920
  name: "String"
862
921
  }
863
922
  },
864
923
  id: {
865
924
  serializedName: "id",
866
- readOnly: true,
867
925
  type: {
868
926
  name: "String"
869
927
  }
@@ -903,6 +961,12 @@ export const DatadogOrganizationProperties: coreClient.CompositeMapper = {
903
961
  type: {
904
962
  name: "String"
905
963
  }
964
+ },
965
+ cspm: {
966
+ serializedName: "cspm",
967
+ type: {
968
+ name: "Boolean"
969
+ }
906
970
  }
907
971
  }
908
972
  }
@@ -1016,6 +1080,12 @@ export const MonitorUpdateProperties: coreClient.CompositeMapper = {
1016
1080
  type: {
1017
1081
  name: "String"
1018
1082
  }
1083
+ },
1084
+ cspm: {
1085
+ serializedName: "cspm",
1086
+ type: {
1087
+ name: "Boolean"
1088
+ }
1019
1089
  }
1020
1090
  }
1021
1091
  }
@@ -1132,6 +1202,12 @@ export const MonitoringTagRulesProperties: coreClient.CompositeMapper = {
1132
1202
  name: "Composite",
1133
1203
  className: "MetricRules"
1134
1204
  }
1205
+ },
1206
+ automuting: {
1207
+ serializedName: "automuting",
1208
+ type: {
1209
+ name: "Boolean"
1210
+ }
1135
1211
  }
1136
1212
  }
1137
1213
  }
@@ -1329,3 +1405,122 @@ export const DatadogSingleSignOnProperties: coreClient.CompositeMapper = {
1329
1405
  }
1330
1406
  }
1331
1407
  };
1408
+
1409
+ export const MonitoredSubscriptionPropertiesList: coreClient.CompositeMapper = {
1410
+ type: {
1411
+ name: "Composite",
1412
+ className: "MonitoredSubscriptionPropertiesList",
1413
+ modelProperties: {
1414
+ value: {
1415
+ serializedName: "value",
1416
+ type: {
1417
+ name: "Sequence",
1418
+ element: {
1419
+ type: {
1420
+ name: "Composite",
1421
+ className: "MonitoredSubscriptionProperties"
1422
+ }
1423
+ }
1424
+ }
1425
+ }
1426
+ }
1427
+ }
1428
+ };
1429
+
1430
+ export const MonitoredSubscriptionProperties: coreClient.CompositeMapper = {
1431
+ type: {
1432
+ name: "Composite",
1433
+ className: "MonitoredSubscriptionProperties",
1434
+ modelProperties: {
1435
+ name: {
1436
+ serializedName: "name",
1437
+ readOnly: true,
1438
+ type: {
1439
+ name: "String"
1440
+ }
1441
+ },
1442
+ id: {
1443
+ serializedName: "id",
1444
+ readOnly: true,
1445
+ type: {
1446
+ name: "String"
1447
+ }
1448
+ },
1449
+ type: {
1450
+ serializedName: "type",
1451
+ readOnly: true,
1452
+ type: {
1453
+ name: "String"
1454
+ }
1455
+ },
1456
+ properties: {
1457
+ serializedName: "properties",
1458
+ type: {
1459
+ name: "Composite",
1460
+ className: "SubscriptionList"
1461
+ }
1462
+ }
1463
+ }
1464
+ }
1465
+ };
1466
+
1467
+ export const SubscriptionList: coreClient.CompositeMapper = {
1468
+ type: {
1469
+ name: "Composite",
1470
+ className: "SubscriptionList",
1471
+ modelProperties: {
1472
+ operation: {
1473
+ serializedName: "operation",
1474
+ type: {
1475
+ name: "String"
1476
+ }
1477
+ },
1478
+ monitoredSubscriptionList: {
1479
+ serializedName: "monitoredSubscriptionList",
1480
+ type: {
1481
+ name: "Sequence",
1482
+ element: {
1483
+ type: {
1484
+ name: "Composite",
1485
+ className: "MonitoredSubscription"
1486
+ }
1487
+ }
1488
+ }
1489
+ }
1490
+ }
1491
+ }
1492
+ };
1493
+
1494
+ export const MonitoredSubscription: coreClient.CompositeMapper = {
1495
+ type: {
1496
+ name: "Composite",
1497
+ className: "MonitoredSubscription",
1498
+ modelProperties: {
1499
+ subscriptionId: {
1500
+ serializedName: "subscriptionId",
1501
+ type: {
1502
+ name: "String"
1503
+ }
1504
+ },
1505
+ status: {
1506
+ serializedName: "status",
1507
+ type: {
1508
+ name: "String"
1509
+ }
1510
+ },
1511
+ error: {
1512
+ serializedName: "error",
1513
+ type: {
1514
+ name: "String"
1515
+ }
1516
+ },
1517
+ tagRules: {
1518
+ serializedName: "tagRules",
1519
+ type: {
1520
+ name: "Composite",
1521
+ className: "MonitoringTagRulesProperties"
1522
+ }
1523
+ }
1524
+ }
1525
+ }
1526
+ };
@@ -17,7 +17,8 @@ import {
17
17
  DatadogMonitorResource as DatadogMonitorResourceMapper,
18
18
  DatadogMonitorResourceUpdateParameters as DatadogMonitorResourceUpdateParametersMapper,
19
19
  MonitoringTagRules as MonitoringTagRulesMapper,
20
- DatadogSingleSignOnResource as DatadogSingleSignOnResourceMapper
20
+ DatadogSingleSignOnResource as DatadogSingleSignOnResourceMapper,
21
+ MonitoredSubscriptionProperties as MonitoredSubscriptionPropertiesMapper
21
22
  } from "../models/mappers";
22
23
 
23
24
  export const accept: OperationParameter = {
@@ -61,7 +62,7 @@ export const subscriptionId: OperationURLParameter = {
61
62
  export const apiVersion: OperationQueryParameter = {
62
63
  parameterPath: "apiVersion",
63
64
  mapper: {
64
- defaultValue: "2021-03-01",
65
+ defaultValue: "2023-01-01",
65
66
  isConstant: true,
66
67
  serializedName: "api-version",
67
68
  type: {
@@ -99,6 +100,17 @@ export const nextLink: OperationURLParameter = {
99
100
  skipEncoding: true
100
101
  };
101
102
 
103
+ export const datadogOrganizationId: OperationQueryParameter = {
104
+ parameterPath: "datadogOrganizationId",
105
+ mapper: {
106
+ serializedName: "datadogOrganizationId",
107
+ required: true,
108
+ type: {
109
+ name: "String"
110
+ }
111
+ }
112
+ };
113
+
102
114
  export const resourceGroupName: OperationURLParameter = {
103
115
  parameterPath: "resourceGroupName",
104
116
  mapper: {
@@ -171,3 +183,8 @@ export const configurationName: OperationURLParameter = {
171
183
  }
172
184
  }
173
185
  };
186
+
187
+ export const body6: OperationParameter = {
188
+ parameterPath: ["options", "body"],
189
+ mapper: MonitoredSubscriptionPropertiesMapper
190
+ };