Skip to content

Commit f333b89

Browse files
Security: Pricing: pump pricing to 2023-01-01 (#22861)
* Security: Update pricing readme * Update pricing * Pricing 2023 1 1 * Add change log * Return removed code * Update extension documentation and added tests * Fix example * Update other modules tests * Remove bad test from security contacts * Update Set-AzSecurityPricing.md * Create ExampleIssues.csv --------- Co-authored-by: Yabo Hu <[email protected]>
1 parent 6b7b48b commit f333b89

File tree

45 files changed

+858
-408
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+858
-408
lines changed

src/Security/Security.Management.Sdk/Generated/IPricingsOperations.cs

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -73,17 +73,8 @@ public partial interface IPricingsOperations
7373
/// <param name='pricingName'>
7474
/// name of the pricing configuration
7575
/// </param>
76-
/// <param name='pricingTier'>
77-
/// The pricing tier value. Microsoft Defender for Cloud is provided in
78-
/// two pricing tiers: free and standard, with the standard tier
79-
/// available with a trial period. The standard tier offers advanced
80-
/// security capabilities, while the free tier offers basic security
81-
/// features. Possible values include: 'Free', 'Standard'
82-
/// </param>
83-
/// <param name='subPlan'>
84-
/// The sub-plan selected for a Standard pricing configuration, when
85-
/// more than one sub-plan is available. Each sub-plan enables a set of
86-
/// security features. When not specified, full plan is applied.
76+
/// <param name='pricing'>
77+
/// Pricing object
8778
/// </param>
8879
/// <param name='customHeaders'>
8980
/// The headers that will be added to request.
@@ -100,6 +91,6 @@ public partial interface IPricingsOperations
10091
/// <exception cref="Microsoft.Rest.ValidationException">
10192
/// Thrown when a required parameter is null
10293
/// </exception>
103-
Task<AzureOperationResponse<Pricing>> UpdateWithHttpMessagesAsync(string pricingName, string pricingTier, string subPlan = default(string), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
94+
Task<AzureOperationResponse<Pricing>> UpdateWithHttpMessagesAsync(string pricingName, Pricing pricing, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
10495
}
10596
}

src/Security/Security.Management.Sdk/Generated/ISecurityContactsOperations.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public partial interface ISecurityContactsOperations
4141
/// <exception cref="Microsoft.Rest.ValidationException">
4242
/// Thrown when a required parameter is null
4343
/// </exception>
44-
Task<AzureOperationResponse<IList<SecurityContact>>> ListWithHttpMessagesAsync(Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
44+
Task<AzureOperationResponse<IPage<SecurityContact>>> ListWithHttpMessagesAsync(Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
4545
/// <summary>
4646
/// Get Default Security contact configurations for the subscription
4747
/// </summary>

src/Security/Security.Management.Sdk/Generated/Models/Alert.cs

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,9 @@ public Alert()
8484
/// <param name="timeGeneratedUtc">The UTC time the alert was generated
8585
/// in ISO8601 format.</param>
8686
/// <param name="productName">The name of the product which published
87-
/// this alert (Azure Security Center, Azure ATP, Microsoft Defender
88-
/// ATP, O365 ATP, MCAS, and so on).</param>
87+
/// this alert (Microsoft Sentinel, Microsoft Defender for Identity,
88+
/// Microsoft Defender for Endpoint, Microsoft Defender for Office,
89+
/// Microsoft Defender for Cloud Apps, and so on).</param>
8990
/// <param name="processingEndTimeUtc">The UTC processing end time of
9091
/// the alert in ISO8601 format.</param>
9192
/// <param name="entities">A list of entities related to the
@@ -264,9 +265,10 @@ public Alert()
264265
public System.DateTime? TimeGeneratedUtc { get; private set; }
265266

266267
/// <summary>
267-
/// Gets the name of the product which published this alert (Azure
268-
/// Security Center, Azure ATP, Microsoft Defender ATP, O365 ATP, MCAS,
269-
/// and so on).
268+
/// Gets the name of the product which published this alert (Microsoft
269+
/// Sentinel, Microsoft Defender for Identity, Microsoft Defender for
270+
/// Endpoint, Microsoft Defender for Office, Microsoft Defender for
271+
/// Cloud Apps, and so on).
270272
/// </summary>
271273
[JsonProperty(PropertyName = "properties.productName")]
272274
public string ProductName { get; private set; }
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
// <auto-generated>
2+
// Copyright (c) Microsoft Corporation. All rights reserved.
3+
// Licensed under the MIT License. See License.txt in the project root for
4+
// license information.
5+
//
6+
// Code generated by Microsoft (R) AutoRest Code Generator.
7+
// Changes may cause incorrect behavior and will be lost if the code is
8+
// regenerated.
9+
// </auto-generated>
10+
11+
namespace Microsoft.Azure.Management.Security.Models
12+
{
13+
14+
/// <summary>
15+
/// Defines values for Code.
16+
/// </summary>
17+
public static class Code
18+
{
19+
/// <summary>
20+
/// Extension was created/updated successfully.
21+
/// </summary>
22+
public const string Succeeded = "Succeeded";
23+
/// <summary>
24+
/// Extension was not created/updated successfully. See operation
25+
/// status message for more details.
26+
/// </summary>
27+
public const string Failed = "Failed";
28+
}
29+
}
Lines changed: 141 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,141 @@
1+
// <auto-generated>
2+
// Copyright (c) Microsoft Corporation. All rights reserved.
3+
// Licensed under the MIT License. See License.txt in the project root for
4+
// license information.
5+
//
6+
// Code generated by Microsoft (R) AutoRest Code Generator.
7+
// Changes may cause incorrect behavior and will be lost if the code is
8+
// regenerated.
9+
// </auto-generated>
10+
11+
namespace Microsoft.Azure.Management.Security.Models
12+
{
13+
using Microsoft.Rest;
14+
using Newtonsoft.Json;
15+
using System.Collections;
16+
using System.Collections.Generic;
17+
using System.Linq;
18+
19+
/// <summary>
20+
/// A plan's extension properties
21+
/// </summary>
22+
public partial class Extension
23+
{
24+
/// <summary>
25+
/// Initializes a new instance of the Extension class.
26+
/// </summary>
27+
public Extension()
28+
{
29+
CustomInit();
30+
}
31+
32+
/// <summary>
33+
/// Initializes a new instance of the Extension class.
34+
/// </summary>
35+
/// <param name="name">The extension name. Supported values are:
36+
/// &lt;br&gt;&lt;br&gt;**AgentlessDiscoveryForKubernetes** - API-based
37+
/// discovery of information about Kubernetes cluster architecture,
38+
/// workload objects, and setup. Required for Kubernetes inventory,
39+
/// identity and network exposure detection, attack path analysis and
40+
/// risk hunting as part of the cloud security explorer.
41+
/// Available for CloudPosture
42+
/// plan.&lt;br&gt;&lt;br&gt;**OnUploadMalwareScanning** - Limits the
43+
/// GB to be scanned per month for each storage account within the
44+
/// subscription. Once this limit reached on a given storage account,
45+
/// Blobs won't be scanned during current calendar month.
46+
/// Available for StorageAccounts
47+
/// plan.&lt;br&gt;&lt;br&gt;**SensitiveDataDiscovery** - Sensitive
48+
/// data discovery identifies Blob storage container with sensitive
49+
/// data such as credentials, credit cards, and more, to help
50+
/// prioritize and investigate security events.
51+
/// Available for StorageAccounts and CloudPosture
52+
/// plans.&lt;br&gt;&lt;br&gt;**ContainerRegistriesVulnerabilityAssessments**
53+
/// - Provides vulnerability management for images stored in your
54+
/// container registries.
55+
/// Available for CloudPosture and Containers plans.</param>
56+
/// <param name="isEnabled">Indicates whether the extension is enabled.
57+
/// Possible values include: 'True', 'False'</param>
58+
/// <param name="additionalExtensionProperties">Property values
59+
/// associated with the extension.</param>
60+
/// <param name="operationStatus">Optional. A status describing the
61+
/// success/failure of the extension's enablement/disablement
62+
/// operation.</param>
63+
public Extension(string name, string isEnabled, IDictionary<string, object> additionalExtensionProperties = default(IDictionary<string, object>), OperationStatus operationStatus = default(OperationStatus))
64+
{
65+
Name = name;
66+
IsEnabled = isEnabled;
67+
AdditionalExtensionProperties = additionalExtensionProperties;
68+
OperationStatus = operationStatus;
69+
CustomInit();
70+
}
71+
72+
/// <summary>
73+
/// An initialization method that performs custom operations like setting defaults
74+
/// </summary>
75+
partial void CustomInit();
76+
77+
/// <summary>
78+
/// Gets or sets the extension name. Supported values are:
79+
/// &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;**AgentlessDiscoveryForKubernetes**
80+
/// - API-based discovery of information about Kubernetes cluster
81+
/// architecture, workload objects, and setup. Required for Kubernetes
82+
/// inventory, identity and network exposure detection, attack path
83+
/// analysis and risk hunting as part of the cloud security explorer.
84+
/// Available for CloudPosture
85+
/// plan.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;**OnUploadMalwareScanning**
86+
/// - Limits the GB to be scanned per month for each storage account
87+
/// within the subscription. Once this limit reached on a given storage
88+
/// account, Blobs won't be scanned during current calendar month.
89+
/// Available for StorageAccounts
90+
/// plan.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;**SensitiveDataDiscovery**
91+
/// - Sensitive data discovery identifies Blob storage container with
92+
/// sensitive data such as credentials, credit cards, and more, to help
93+
/// prioritize and investigate security events.
94+
/// Available for StorageAccounts and CloudPosture
95+
/// plans.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;**ContainerRegistriesVulnerabilityAssessments**
96+
/// - Provides vulnerability management for images stored in your
97+
/// container registries.
98+
/// Available for CloudPosture and Containers plans.
99+
/// </summary>
100+
[JsonProperty(PropertyName = "name")]
101+
public string Name { get; set; }
102+
103+
/// <summary>
104+
/// Gets or sets indicates whether the extension is enabled. Possible
105+
/// values include: 'True', 'False'
106+
/// </summary>
107+
[JsonProperty(PropertyName = "isEnabled")]
108+
public string IsEnabled { get; set; }
109+
110+
/// <summary>
111+
/// Gets or sets property values associated with the extension.
112+
/// </summary>
113+
[JsonProperty(PropertyName = "additionalExtensionProperties")]
114+
public IDictionary<string, object> AdditionalExtensionProperties { get; set; }
115+
116+
/// <summary>
117+
/// Gets optional. A status describing the success/failure of the
118+
/// extension's enablement/disablement operation.
119+
/// </summary>
120+
[JsonProperty(PropertyName = "operationStatus")]
121+
public OperationStatus OperationStatus { get; private set; }
122+
123+
/// <summary>
124+
/// Validate the object.
125+
/// </summary>
126+
/// <exception cref="ValidationException">
127+
/// Thrown if validation fails
128+
/// </exception>
129+
public virtual void Validate()
130+
{
131+
if (Name == null)
132+
{
133+
throw new ValidationException(ValidationRules.CannotBeNull, "Name");
134+
}
135+
if (IsEnabled == null)
136+
{
137+
throw new ValidationException(ValidationRules.CannotBeNull, "IsEnabled");
138+
}
139+
}
140+
}
141+
}
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
// <auto-generated>
2+
// Copyright (c) Microsoft Corporation. All rights reserved.
3+
// Licensed under the MIT License. See License.txt in the project root for
4+
// license information.
5+
//
6+
// Code generated by Microsoft (R) AutoRest Code Generator.
7+
// Changes may cause incorrect behavior and will be lost if the code is
8+
// regenerated.
9+
// </auto-generated>
10+
11+
namespace Microsoft.Azure.Management.Security.Models
12+
{
13+
14+
/// <summary>
15+
/// Defines values for IsEnabled.
16+
/// </summary>
17+
public static class IsEnabled
18+
{
19+
/// <summary>
20+
/// Indicates the extension is enabled
21+
/// </summary>
22+
public const string True = "True";
23+
/// <summary>
24+
/// Indicates the extension is disabled
25+
/// </summary>
26+
public const string False = "False";
27+
}
28+
}
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
// <auto-generated>
2+
// Copyright (c) Microsoft Corporation. All rights reserved.
3+
// Licensed under the MIT License. See License.txt in the project root for
4+
// license information.
5+
//
6+
// Code generated by Microsoft (R) AutoRest Code Generator.
7+
// Changes may cause incorrect behavior and will be lost if the code is
8+
// regenerated.
9+
// </auto-generated>
10+
11+
namespace Microsoft.Azure.Management.Security.Models
12+
{
13+
using Newtonsoft.Json;
14+
using System.Linq;
15+
16+
/// <summary>
17+
/// A status describing the success/failure of the extension's
18+
/// enablement/disablement operation.
19+
/// </summary>
20+
public partial class OperationStatus
21+
{
22+
/// <summary>
23+
/// Initializes a new instance of the OperationStatus class.
24+
/// </summary>
25+
public OperationStatus()
26+
{
27+
CustomInit();
28+
}
29+
30+
/// <summary>
31+
/// Initializes a new instance of the OperationStatus class.
32+
/// </summary>
33+
/// <param name="code">The operation status code. Possible values
34+
/// include: 'Succeeded', 'Failed'</param>
35+
/// <param name="message">Additional information regarding the
36+
/// success/failure of the operation.</param>
37+
public OperationStatus(string code = default(string), string message = default(string))
38+
{
39+
Code = code;
40+
Message = message;
41+
CustomInit();
42+
}
43+
44+
/// <summary>
45+
/// An initialization method that performs custom operations like setting defaults
46+
/// </summary>
47+
partial void CustomInit();
48+
49+
/// <summary>
50+
/// Gets or sets the operation status code. Possible values include:
51+
/// 'Succeeded', 'Failed'
52+
/// </summary>
53+
[JsonProperty(PropertyName = "code")]
54+
public string Code { get; set; }
55+
56+
/// <summary>
57+
/// Gets or sets additional information regarding the success/failure
58+
/// of the operation.
59+
/// </summary>
60+
[JsonProperty(PropertyName = "message")]
61+
public string Message { get; set; }
62+
63+
}
64+
}

0 commit comments

Comments
 (0)