Skip to content

Commit 489eddf

Browse files
qiaozhaAutorestCI
andauthored
release for mgmt security (Azure#12006)
Co-authored-by: Azure SDK Bot <[email protected]>
1 parent 04c842a commit 489eddf

11 files changed

+42
-41
lines changed

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

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

3+
## 0.4.1 (2020-06-12)
4+
5+
**Bugfixes**
6+
7+
- skip url-encoding for resource id
8+
39
## 0.4.0 (2020-06-05)
410

511
**Features**
Lines changed: 11 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,21 @@
1-
## Microsoft Azure SDK for Python
1+
# Microsoft Azure SDK for Python
22

33
This is the Microsoft Azure Security Center Management Client Library.
4+
This package has been tested with Python 2.7, 3.5, 3.6, 3.7 and 3.8.
5+
For a more complete view of Azure libraries, see the [Github repo](https://github.com/Azure/azure-sdk-for-python/)
46

5-
Azure Resource Manager (ARM) is the next generation of management APIs
6-
that replace the old Azure Service Management (ASM).
77

8-
This package has been tested with Python 2.7, 3.5, 3.6 and 3.7.
8+
# Usage
99

10-
For the older Azure Service Management (ASM) libraries, see
11-
[azure-servicemanagement-legacy](https://pypi.python.org/pypi/azure-servicemanagement-legacy)
12-
library.
10+
For code examples, see [Security Center Management](https://docs.microsoft.com/python/api/overview/azure/)
11+
on docs.microsoft.com.
1312

14-
For a more complete set of Azure libraries, see the
15-
[azure](https://pypi.python.org/pypi/azure) bundle package.
1613

17-
## Usage
14+
# Provide Feedback
1815

19-
For code examples, see [Security Center
20-
Management](https://docs.microsoft.com/python/api/overview/azure/) on
21-
docs.microsoft.com.
22-
23-
## Provide Feedback
24-
25-
If you encounter any bugs or have suggestions, please file an issue in
26-
the [Issues](https://github.com/Azure/azure-sdk-for-python/issues)
16+
If you encounter any bugs or have suggestions, please file an issue in the
17+
[Issues](https://github.com/Azure/azure-sdk-for-python/issues)
2718
section of the project.
2819

29-
![image](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-python%2Fazure-mgmt-security%2FREADME.png)
20+
21+
![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-python%2Fazure-mgmt-security%2FREADME.png)

sdk/security/azure-mgmt-security/azure/mgmt/security/operations/_advanced_threat_protection_operations.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def get(
6262
# Construct URL
6363
url = self.get.metadata['url']
6464
path_format_arguments = {
65-
'resourceId': self._serialize.url("resource_id", resource_id, 'str'),
65+
'resourceId': self._serialize.url("resource_id", resource_id, 'str', skip_quote=True),
6666
'settingName': self._serialize.url("self.setting_name", self.setting_name, 'str')
6767
}
6868
url = self._client.format_url(url, **path_format_arguments)
@@ -127,7 +127,7 @@ def create(
127127
# Construct URL
128128
url = self.create.metadata['url']
129129
path_format_arguments = {
130-
'resourceId': self._serialize.url("resource_id", resource_id, 'str'),
130+
'resourceId': self._serialize.url("resource_id", resource_id, 'str', skip_quote=True),
131131
'settingName': self._serialize.url("self.setting_name", self.setting_name, 'str')
132132
}
133133
url = self._client.format_url(url, **path_format_arguments)

sdk/security/azure-mgmt-security/azure/mgmt/security/operations/_assessments_operations.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def prepare_request(next_link=None):
6262
# Construct URL
6363
url = self.list.metadata['url']
6464
path_format_arguments = {
65-
'scope': self._serialize.url("scope", scope, 'str')
65+
'scope': self._serialize.url("scope", scope, 'str', skip_quote=True)
6666
}
6767
url = self._client.format_url(url, **path_format_arguments)
6868

@@ -134,7 +134,7 @@ def get(
134134
# Construct URL
135135
url = self.get.metadata['url']
136136
path_format_arguments = {
137-
'resourceId': self._serialize.url("resource_id", resource_id, 'str'),
137+
'resourceId': self._serialize.url("resource_id", resource_id, 'str', skip_quote=True),
138138
'assessmentName': self._serialize.url("assessment_name", assessment_name, 'str')
139139
}
140140
url = self._client.format_url(url, **path_format_arguments)
@@ -202,7 +202,7 @@ def create_or_update(
202202
# Construct URL
203203
url = self.create_or_update.metadata['url']
204204
path_format_arguments = {
205-
'resourceId': self._serialize.url("resource_id", resource_id, 'str'),
205+
'resourceId': self._serialize.url("resource_id", resource_id, 'str', skip_quote=True),
206206
'assessmentName': self._serialize.url("assessment_name", assessment_name, 'str')
207207
}
208208
url = self._client.format_url(url, **path_format_arguments)
@@ -270,7 +270,7 @@ def delete(
270270
# Construct URL
271271
url = self.delete.metadata['url']
272272
path_format_arguments = {
273-
'resourceId': self._serialize.url("resource_id", resource_id, 'str'),
273+
'resourceId': self._serialize.url("resource_id", resource_id, 'str', skip_quote=True),
274274
'assessmentName': self._serialize.url("assessment_name", assessment_name, 'str')
275275
}
276276
url = self._client.format_url(url, **path_format_arguments)

sdk/security/azure-mgmt-security/azure/mgmt/security/operations/_compliance_results_operations.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def prepare_request(next_link=None):
6262
# Construct URL
6363
url = self.list.metadata['url']
6464
path_format_arguments = {
65-
'scope': self._serialize.url("scope", scope, 'str')
65+
'scope': self._serialize.url("scope", scope, 'str', skip_quote=True)
6666
}
6767
url = self._client.format_url(url, **path_format_arguments)
6868

@@ -131,7 +131,7 @@ def get(
131131
# Construct URL
132132
url = self.get.metadata['url']
133133
path_format_arguments = {
134-
'resourceId': self._serialize.url("resource_id", resource_id, 'str'),
134+
'resourceId': self._serialize.url("resource_id", resource_id, 'str', skip_quote=True),
135135
'complianceResultName': self._serialize.url("compliance_result_name", compliance_result_name, 'str')
136136
}
137137
url = self._client.format_url(url, **path_format_arguments)

sdk/security/azure-mgmt-security/azure/mgmt/security/operations/_compliances_operations.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def prepare_request(next_link=None):
6262
# Construct URL
6363
url = self.list.metadata['url']
6464
path_format_arguments = {
65-
'scope': self._serialize.url("scope", scope, 'str')
65+
'scope': self._serialize.url("scope", scope, 'str', skip_quote=True)
6666
}
6767
url = self._client.format_url(url, **path_format_arguments)
6868

@@ -132,7 +132,7 @@ def get(
132132
# Construct URL
133133
url = self.get.metadata['url']
134134
path_format_arguments = {
135-
'scope': self._serialize.url("scope", scope, 'str'),
135+
'scope': self._serialize.url("scope", scope, 'str', skip_quote=True),
136136
'complianceName': self._serialize.url("compliance_name", compliance_name, 'str')
137137
}
138138
url = self._client.format_url(url, **path_format_arguments)

sdk/security/azure-mgmt-security/azure/mgmt/security/operations/_device_security_groups_operations.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def prepare_request(next_link=None):
6161
# Construct URL
6262
url = self.list.metadata['url']
6363
path_format_arguments = {
64-
'resourceId': self._serialize.url("resource_id", resource_id, 'str')
64+
'resourceId': self._serialize.url("resource_id", resource_id, 'str', skip_quote=True)
6565
}
6666
url = self._client.format_url(url, **path_format_arguments)
6767

@@ -132,7 +132,7 @@ def get(
132132
# Construct URL
133133
url = self.get.metadata['url']
134134
path_format_arguments = {
135-
'resourceId': self._serialize.url("resource_id", resource_id, 'str'),
135+
'resourceId': self._serialize.url("resource_id", resource_id, 'str', skip_quote=True),
136136
'deviceSecurityGroupName': self._serialize.url("device_security_group_name", device_security_group_name, 'str')
137137
}
138138
url = self._client.format_url(url, **path_format_arguments)
@@ -198,7 +198,7 @@ def create_or_update(
198198
# Construct URL
199199
url = self.create_or_update.metadata['url']
200200
path_format_arguments = {
201-
'resourceId': self._serialize.url("resource_id", resource_id, 'str'),
201+
'resourceId': self._serialize.url("resource_id", resource_id, 'str', skip_quote=True),
202202
'deviceSecurityGroupName': self._serialize.url("device_security_group_name", device_security_group_name, 'str')
203203
}
204204
url = self._client.format_url(url, **path_format_arguments)
@@ -265,7 +265,7 @@ def delete(
265265
# Construct URL
266266
url = self.delete.metadata['url']
267267
path_format_arguments = {
268-
'resourceId': self._serialize.url("resource_id", resource_id, 'str'),
268+
'resourceId': self._serialize.url("resource_id", resource_id, 'str', skip_quote=True),
269269
'deviceSecurityGroupName': self._serialize.url("device_security_group_name", device_security_group_name, 'str')
270270
}
271271
url = self._client.format_url(url, **path_format_arguments)

sdk/security/azure-mgmt-security/azure/mgmt/security/operations/_information_protection_policies_operations.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def get(
6363
# Construct URL
6464
url = self.get.metadata['url']
6565
path_format_arguments = {
66-
'scope': self._serialize.url("scope", scope, 'str'),
66+
'scope': self._serialize.url("scope", scope, 'str', skip_quote=True),
6767
'informationProtectionPolicyName': self._serialize.url("information_protection_policy_name", information_protection_policy_name, 'str')
6868
}
6969
url = self._client.format_url(url, **path_format_arguments)
@@ -133,7 +133,7 @@ def create_or_update(
133133
# Construct URL
134134
url = self.create_or_update.metadata['url']
135135
path_format_arguments = {
136-
'scope': self._serialize.url("scope", scope, 'str'),
136+
'scope': self._serialize.url("scope", scope, 'str', skip_quote=True),
137137
'informationProtectionPolicyName': self._serialize.url("information_protection_policy_name", information_protection_policy_name, 'str')
138138
}
139139
url = self._client.format_url(url, **path_format_arguments)
@@ -201,7 +201,7 @@ def prepare_request(next_link=None):
201201
# Construct URL
202202
url = self.list.metadata['url']
203203
path_format_arguments = {
204-
'scope': self._serialize.url("scope", scope, 'str')
204+
'scope': self._serialize.url("scope", scope, 'str', skip_quote=True)
205205
}
206206
url = self._client.format_url(url, **path_format_arguments)
207207

sdk/security/azure-mgmt-security/azure/mgmt/security/operations/_sub_assessments_operations.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def prepare_request(next_link=None):
6363
# Construct URL
6464
url = self.list_all.metadata['url']
6565
path_format_arguments = {
66-
'scope': self._serialize.url("scope", scope, 'str')
66+
'scope': self._serialize.url("scope", scope, 'str', skip_quote=True)
6767
}
6868
url = self._client.format_url(url, **path_format_arguments)
6969

@@ -137,7 +137,7 @@ def prepare_request(next_link=None):
137137
# Construct URL
138138
url = self.list.metadata['url']
139139
path_format_arguments = {
140-
'scope': self._serialize.url("scope", scope, 'str'),
140+
'scope': self._serialize.url("scope", scope, 'str', skip_quote=True),
141141
'assessmentName': self._serialize.url("assessment_name", assessment_name, 'str')
142142
}
143143
url = self._client.format_url(url, **path_format_arguments)
@@ -212,7 +212,7 @@ def get(
212212
# Construct URL
213213
url = self.get.metadata['url']
214214
path_format_arguments = {
215-
'scope': self._serialize.url("scope", scope, 'str'),
215+
'scope': self._serialize.url("scope", scope, 'str', skip_quote=True),
216216
'assessmentName': self._serialize.url("assessment_name", assessment_name, 'str'),
217217
'subAssessmentName': self._serialize.url("sub_assessment_name", sub_assessment_name, 'str')
218218
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@
99
# regenerated.
1010
# --------------------------------------------------------------------------
1111

12-
VERSION = "0.4.0"
12+
VERSION = "0.4.1"
1313

0 commit comments

Comments
 (0)