Skip to content

Commit b0882ed

Browse files
azure-sdkmsyyc
andauthored
[AutoRelease] t2-security-2024-05-10-50449(can only be merged by SDK owner) (#35574)
* code and test * Update CHANGELOG.md --------- Co-authored-by: azure-sdk <PythonSdkPipelines> Co-authored-by: Yuchao Yan <[email protected]>
1 parent e44fa9a commit b0882ed

File tree

597 files changed

+49808
-10502
lines changed

Some content is hidden

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

597 files changed

+49808
-10502
lines changed

sdk/security/azure-mgmt-security/CHANGELOG.md

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,54 @@
11
# Release History
22

3+
## 7.0.0 (2024-05-20)
4+
5+
### Features Added
6+
7+
- Added operation HealthReportsOperations.get
8+
- Added operation PricingsOperations.delete
9+
- Added operation group AzureDevOpsOrgsOperations
10+
- Added operation group AzureDevOpsProjectsOperations
11+
- Added operation group AzureDevOpsReposOperations
12+
- Added operation group DevOpsConfigurationsOperations
13+
- Added operation group DevOpsOperationResultsOperations
14+
- Added operation group GitHubOwnersOperations
15+
- Added operation group GitHubReposOperations
16+
- Added operation group GitLabGroupsOperations
17+
- Added operation group GitLabProjectsOperations
18+
- Added operation group GitLabSubgroupsOperations
19+
- Added operation group SensitivitySettingsOperations
20+
- Added operation group ServerVulnerabilityAssessmentsSettingsOperations
21+
- Model AwsEnvironmentData has a new parameter scan_interval
22+
- Model DefenderCspmAwsOffering has a new parameter ciem
23+
- Model DefenderCspmAwsOffering has a new parameter mdc_containers_agentless_discovery_k8_s
24+
- Model DefenderCspmAwsOffering has a new parameter mdc_containers_image_assessment
25+
- Model DefenderCspmGcpOffering has a new parameter ciem_discovery
26+
- Model DefenderCspmGcpOffering has a new parameter data_sensitivity_discovery
27+
- Model DefenderCspmGcpOffering has a new parameter mdc_containers_agentless_discovery_k8_s
28+
- Model DefenderCspmGcpOffering has a new parameter mdc_containers_image_assessment
29+
- Model DefenderCspmGcpOffering has a new parameter vm_scanners
30+
- Model DefenderForContainersAwsOffering has a new parameter mdc_containers_agentless_discovery_k8_s
31+
- Model DefenderForContainersAwsOffering has a new parameter mdc_containers_image_assessment
32+
- Model DefenderForContainersGcpOffering has a new parameter mdc_containers_agentless_discovery_k8_s
33+
- Model DefenderForContainersGcpOffering has a new parameter mdc_containers_image_assessment
34+
- Model GcpProjectEnvironmentData has a new parameter scan_interval
35+
- Model HealthReport has a new parameter affected_defenders_sub_plans
36+
- Model HealthReport has a new parameter report_additional_data
37+
- Model Pricing has a new parameter enforce
38+
- Model Pricing has a new parameter inherited
39+
- Model Pricing has a new parameter inherited_from
40+
- Model Pricing has a new parameter resources_coverage_status
41+
- Model Status has a new parameter last_scanned_date
42+
- Model Status has a new parameter reason
43+
- Operation PricingsOperations.list has a new optional parameter filter
44+
45+
### Breaking Changes
46+
47+
- Operation PricingsOperations.get has a new required parameter scope_id
48+
- Operation PricingsOperations.list has a new required parameter scope_id
49+
- Operation PricingsOperations.update has a new required parameter scope_id
50+
- Removed operation group IngestionSettingsOperations
51+
352
## 6.0.0 (2024-01-19)
453

554
### Features Added

sdk/security/azure-mgmt-security/_meta.json

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
2-
"commit": "0e456cbdec1f37472feca34fbdc69d62439bbd31",
2+
"commit": "5485fc4eb11debd9cc8d92ec156b573998aae977",
33
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
4-
"autorest": "3.9.7",
4+
"autorest": "3.10.2",
55
"use": [
6-
"@autorest/python@6.7.1",
7-
"@autorest/modelerfour@4.26.2"
6+
"@autorest/python@6.13.16",
7+
"@autorest/modelerfour@4.27.0"
88
],
9-
"autorest_command": "autorest specification/security/resource-manager/readme.md --generate-sample=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --use=@autorest/python@6.7.1 --use=@autorest/modelerfour@4.26.2 --version=3.9.7 --version-tolerant=False",
9+
"autorest_command": "autorest specification/security/resource-manager/readme.md --generate-sample=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --use=@autorest/python@6.13.16 --use=@autorest/modelerfour@4.27.0 --version=3.10.2 --version-tolerant=False",
1010
"readme": "specification/security/resource-manager/readme.md",
1111
"package-2023-11-15": "2023-09-12 12:04:57 -0700 32c178f2467f792a322f56174be244135d2c907f Microsoft.Security/stable/2023-11-15/apiCollections.json",
1212
"package-preview-2023-03-only": "2023-03-23 11:34:42 +0200 2db2beee2fed67b08d273fdac7a51aba02ac2f80 Microsoft.Security/preview/2023-03-01-preview/securityConnectors.json",
@@ -37,5 +37,12 @@
3737
"package-2018-06-only": "2022-04-13 06:23:26 +0300 880394b28e0f4e7925f4ecb3edc46b651ab58129 Microsoft.Security/stable/2018-06-01/pricings.json",
3838
"package-2017-08-only": "2022-04-13 06:23:26 +0300 880394b28e0f4e7925f4ecb3edc46b651ab58129 Microsoft.Security/stable/2017-08-01/complianceResults.json",
3939
"package-2017-08-preview-python-only": "2022-04-13 06:23:26 +0300 880394b28e0f4e7925f4ecb3edc46b651ab58129 Microsoft.Security/preview/2017-08-01-preview/securityContacts.json",
40-
"package-2015-06-preview-python-only": "2022-04-13 06:23:26 +0300 880394b28e0f4e7925f4ecb3edc46b651ab58129 Microsoft.Security/preview/2015-06-01-preview/tasks.json"
40+
"package-2015-06-preview-python-only": "2022-04-13 06:23:26 +0300 880394b28e0f4e7925f4ecb3edc46b651ab58129 Microsoft.Security/preview/2015-06-01-preview/tasks.json",
41+
"package-2024-04": "fatal: invalid object name 'from'. from: securityConnectorsDevOps.json",
42+
"package-2024-01": "2023-12-13 05:43:47 +0200 b52464f520b77222ac8b0bdeb80a030c0fdf5b1b Microsoft.Security/stable/2024-01-01/pricings.json",
43+
"package-preview-2023-10": "2023-10-27 04:43:14 +0300 2eb036ae2fcf0dab9bbc49f3aeadb7847c953f9a Microsoft.Security/preview/2023-10-01-preview/securityConnectors.json",
44+
"package-preview-2023-09": "fatal: invalid object name 'from'. from: securityConnectorsDevOps.json",
45+
"package-2023-05": "2023-06-07 22:07:01 -0700 483cdd30332340a14e3d09eafdc1a18f3ba4324c Microsoft.Security/stable/2023-05-01/ServerVulnerabilityAssessmentsSettings.json",
46+
"package-preview-2023-05": "2023-05-29 05:03:56 +0300 be02493774ad6450166fa3383c109027658567b4 Microsoft.Security/preview/2023-05-01-preview/healthReports.json",
47+
"package-preview-2023-02-15-only": "2024-03-29 06:00:35 +0300 7fa04c618c9a280dba63303b0034fa9f0aabab1f Microsoft.Security/preview/2023-02-15-preview/sensitivitySettings.json"
4148
}

sdk/security/azure-mgmt-security/azure/mgmt/security/_configuration.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
# --------------------------------------------------------------------------
1111
from typing import Any, TYPE_CHECKING
1212

13-
from azure.core.configuration import Configuration
1413
from azure.core.pipeline import policies
1514
from azure.mgmt.core.policies import ARMChallengeAuthenticationPolicy, ARMHttpLoggingPolicy
1615

@@ -20,15 +19,15 @@
2019
# pylint: disable=unused-import,ungrouped-imports
2120
from azure.core.credentials import TokenCredential
2221

23-
class SecurityCenterConfiguration(Configuration):
22+
class SecurityCenterConfiguration:
2423
"""Configuration for SecurityCenter.
2524
2625
Note that all parameters used to create this instance are saved as instance
2726
attributes.
2827
2928
:param credential: Credential needed for the client to connect to Azure. Required.
3029
:type credential: ~azure.core.credentials.TokenCredential
31-
:param subscription_id: The ID of the target subscription. The value must be an UUID. Required.
30+
:param subscription_id: The ID of the target subscription. Required.
3231
:type subscription_id: str
3332
"""
3433

@@ -42,12 +41,12 @@ def __init__(
4241
raise ValueError("Parameter 'credential' must not be None.")
4342
if subscription_id is None:
4443
raise ValueError("Parameter 'subscription_id' must not be None.")
45-
super(SecurityCenterConfiguration, self).__init__(**kwargs)
4644

4745
self.credential = credential
4846
self.subscription_id = subscription_id
4947
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
5048
kwargs.setdefault('sdk_moniker', 'azure-mgmt-security/{}'.format(VERSION))
49+
self.polling_interval = kwargs.get("polling_interval", 30)
5150
self._configure(**kwargs)
5251

5352
def _configure(

0 commit comments

Comments
 (0)