Skip to content

Commit

Permalink
Suppress false positive cred scan (#26793)
Browse files Browse the repository at this point in the history
* [Network] - Add DefaultOutboundConnectivityEnabled property in PSNetworkInterface (#26512)

* [Network] - Add DefaultOutboundConnectivityEnabled property in PSNetworkInterface

* update changelog.md

* Azure Firewall Autoscale Configuration Support (#26257)

* Azure Firewall Autoscale Configuration Support

* Help files with new parameters

* add validation

* New cmdlets for IPAM, VnV, Vnet, and AVNM SA (#26345)

* new cmdlets

* Help docs for IPAM cmdlets

Update New-AzNetworkManagerIpamPoolStaticCidr.md

Update Set-AzNetworkManagerIpamPool.md

Update Remove-AzNetworkManagerIpamPoolStaticCidr.md

Update Remove-AzNetworkManagerIpamPool.md

Update New-AzNetworkManagerIpamPoolStaticCidr.md

Update New-AzNetworkManagerIpamPool.md

Update Get-AzNetworkManagerIpamPoolUsage.md

Update Get-AzNetworkManagerIpamPoolStaticCidr.md

Update Get-AzNetworkManagerIpamPool.md

Update Get-AzNetworkManagerIpamPoolUsage.md

Update Get-AzNetworkManagerIpamPool.md

update set ipam pool cmdlet help doc

updated help docs for new IPAM commands

update help docs for ipam remove cmdlets

update help docs for new Get cmdlets

fix new ipam pool static cidr requirement

* cmdlets for vnv

* adding UTs

* nomenclature fix

* debug

* mapping fix and inital help docs

* update some help docs

* NetworkManagerVerifierWorkspaceCRUD test

* add location

* update run crud

* Security admin config changes

* security rule update

* updating change log

* update for SA command

* Reachability Analysis Run Test

* all vnv tests working

* NetworkManagerVerifierWorkspaceCRUD test

* update run crud

* Security admin config changes

* security rule update

* updating change log

* update for SA command

* Reachability Analysis Run Test

* all vnv tests working

* Help Doc Update

nomenclature fix

mapping fix and inital help docs

add location

remaining help docs

fix change log

fix changelog pt 2

debug

update some help docs

* all SA and network manager tests running

* new commit to jumpstart the pipeline

* build issues

* add help doc online version links

* fix help doc header

* fix psd1 file

* updated scenario test for analysis result

* help doc fixes

* fixes for analyze plural param bug

* fix analyze example issue

* fix generated sdk bug

* add related links

* param rename for analyze job

* rerun build

* adding tag testing

* help doc update

* added list test coverage and combined all vnv crud into one run crud

* add and test tags for vnv

* update test file

* debug

* fix az

* add help documentation

* checking analysis result obj and added SA aggre prop to help doc

* adding all read only properties for run

* trying to get check running

* regenerated sdk and updated az.network

---------

Co-authored-by: Sonalli S Sharma <[email protected]>
Co-authored-by: sssharma24 <[email protected]>
Co-authored-by: NanxiangLiu <[email protected]>

* fix analysis run errors

* Ipam cmdlet bug fixes

* update help doc

* display error message to customer

* Adding resiliency model as an optional parameter on virtual network gateway for ExpressRoute (#26485)

* initial commit

* nit fixes

* nit fix

* Warning message updated

* updated help docs

---------

Co-authored-by: NanxiangLiu <[email protected]>

* Suppress false positive cred scan

---------

Co-authored-by: Vincent Dai <[email protected]>
Co-authored-by: phrazfipho <[email protected]>
Co-authored-by: Ben Eshed <[email protected]>
Co-authored-by: p-thompson <[email protected]>
Co-authored-by: Sonalli S Sharma <[email protected]>
Co-authored-by: sssharma24 <[email protected]>
Co-authored-by: NanxiangLiu <[email protected]>
Co-authored-by: p-thompson <[email protected]>
Co-authored-by: diagaval <[email protected]>
  • Loading branch information
10 people authored Dec 2, 2024
1 parent 2da2819 commit 6936a17
Show file tree
Hide file tree
Showing 634 changed files with 54,711 additions and 4,337 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,13 @@ internal AdminRuleCollectionsOperations (NetworkManagementClient client)
{
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "networkManagerName");
}

if (networkManagerName != null)
{
if (!System.Text.RegularExpressions.Regex.IsMatch(networkManagerName, "^[a-zA-Z0-9-]*$"))
{
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.Pattern, "networkManagerName", "^[a-zA-Z0-9-]*$");
}
}
if (configurationName == null)
{
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "configurationName");
Expand All @@ -120,7 +126,7 @@ internal AdminRuleCollectionsOperations (NetworkManagementClient client)
}
}

string apiVersion = "2024-03-01";
string apiVersion = "2024-05-01";
// Tracing
bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
string _invocationId = null;
Expand Down Expand Up @@ -221,14 +227,13 @@ internal AdminRuleCollectionsOperations (NetworkManagementClient client)

if ((int)_statusCode != 200)
{
var ex = new Microsoft.Rest.Azure.CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
var ex = new CommonErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
try
{
_responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
CloudError _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject<CloudError>(_responseContent, this.Client.DeserializationSettings);
CommonErrorResponse _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject<CommonErrorResponse>(_responseContent, this.Client.DeserializationSettings);
if (_errorBody != null)
{
ex = new Microsoft.Rest.Azure.CloudException(_errorBody.Message);
ex.Body = _errorBody;
}
}
Expand All @@ -238,10 +243,6 @@ internal AdminRuleCollectionsOperations (NetworkManagementClient client)
}
ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent);
ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent);
if (_httpResponse.Headers.Contains("x-ms-request-id"))
{
ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
}
if (_shouldTrace)
{
Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex);
Expand Down Expand Up @@ -347,7 +348,13 @@ internal AdminRuleCollectionsOperations (NetworkManagementClient client)
{
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "networkManagerName");
}

if (networkManagerName != null)
{
if (!System.Text.RegularExpressions.Regex.IsMatch(networkManagerName, "^[a-zA-Z0-9-]*$"))
{
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.Pattern, "networkManagerName", "^[a-zA-Z0-9-]*$");
}
}
if (configurationName == null)
{
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "configurationName");
Expand All @@ -358,7 +365,7 @@ internal AdminRuleCollectionsOperations (NetworkManagementClient client)
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "ruleCollectionName");
}

string apiVersion = "2024-03-01";
string apiVersion = "2024-05-01";
// Tracing
bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
string _invocationId = null;
Expand Down Expand Up @@ -451,14 +458,13 @@ internal AdminRuleCollectionsOperations (NetworkManagementClient client)

if ((int)_statusCode != 200)
{
var ex = new Microsoft.Rest.Azure.CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
var ex = new CommonErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
try
{
_responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
CloudError _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject<CloudError>(_responseContent, this.Client.DeserializationSettings);
CommonErrorResponse _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject<CommonErrorResponse>(_responseContent, this.Client.DeserializationSettings);
if (_errorBody != null)
{
ex = new Microsoft.Rest.Azure.CloudException(_errorBody.Message);
ex.Body = _errorBody;
}
}
Expand All @@ -468,10 +474,6 @@ internal AdminRuleCollectionsOperations (NetworkManagementClient client)
}
ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent);
ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent);
if (_httpResponse.Headers.Contains("x-ms-request-id"))
{
ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
}
if (_shouldTrace)
{
Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex);
Expand Down Expand Up @@ -585,7 +587,13 @@ internal AdminRuleCollectionsOperations (NetworkManagementClient client)
{
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "networkManagerName");
}

if (networkManagerName != null)
{
if (!System.Text.RegularExpressions.Regex.IsMatch(networkManagerName, "^[a-zA-Z0-9-]*$"))
{
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.Pattern, "networkManagerName", "^[a-zA-Z0-9-]*$");
}
}
if (configurationName == null)
{
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "configurationName");
Expand All @@ -596,7 +604,7 @@ internal AdminRuleCollectionsOperations (NetworkManagementClient client)
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "ruleCollectionName");
}

string apiVersion = "2024-03-01";
string apiVersion = "2024-05-01";
// Tracing
bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
string _invocationId = null;
Expand Down Expand Up @@ -696,14 +704,13 @@ internal AdminRuleCollectionsOperations (NetworkManagementClient client)

if ((int)_statusCode != 200 && (int)_statusCode != 201)
{
var ex = new Microsoft.Rest.Azure.CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
var ex = new CommonErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
try
{
_responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
CloudError _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject<CloudError>(_responseContent, this.Client.DeserializationSettings);
CommonErrorResponse _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject<CommonErrorResponse>(_responseContent, this.Client.DeserializationSettings);
if (_errorBody != null)
{
ex = new Microsoft.Rest.Azure.CloudException(_errorBody.Message);
ex.Body = _errorBody;
}
}
Expand All @@ -713,10 +720,6 @@ internal AdminRuleCollectionsOperations (NetworkManagementClient client)
}
ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent);
ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent);
if (_httpResponse.Headers.Contains("x-ms-request-id"))
{
ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
}
if (_shouldTrace)
{
Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex);
Expand Down Expand Up @@ -875,7 +878,13 @@ internal AdminRuleCollectionsOperations (NetworkManagementClient client)
{
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "networkManagerName");
}

if (networkManagerName != null)
{
if (!System.Text.RegularExpressions.Regex.IsMatch(networkManagerName, "^[a-zA-Z0-9-]*$"))
{
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.Pattern, "networkManagerName", "^[a-zA-Z0-9-]*$");
}
}
if (configurationName == null)
{
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "configurationName");
Expand All @@ -887,7 +896,7 @@ internal AdminRuleCollectionsOperations (NetworkManagementClient client)
}


string apiVersion = "2024-03-01";
string apiVersion = "2024-05-01";
// Tracing
bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
string _invocationId = null;
Expand Down Expand Up @@ -985,14 +994,13 @@ internal AdminRuleCollectionsOperations (NetworkManagementClient client)

if ((int)_statusCode != 200 && (int)_statusCode != 202 && (int)_statusCode != 204)
{
var ex = new Microsoft.Rest.Azure.CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
var ex = new CommonErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
try
{
_responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
CloudError _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject<CloudError>(_responseContent, this.Client.DeserializationSettings);
CommonErrorResponse _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject<CommonErrorResponse>(_responseContent, this.Client.DeserializationSettings);
if (_errorBody != null)
{
ex = new Microsoft.Rest.Azure.CloudException(_errorBody.Message);
ex.Body = _errorBody;
}
}
Expand All @@ -1002,10 +1010,6 @@ internal AdminRuleCollectionsOperations (NetworkManagementClient client)
}
ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent);
ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent);
if (_httpResponse.Headers.Contains("x-ms-request-id"))
{
ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
}
if (_shouldTrace)
{
Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex);
Expand Down Expand Up @@ -1163,14 +1167,13 @@ internal AdminRuleCollectionsOperations (NetworkManagementClient client)

if ((int)_statusCode != 200)
{
var ex = new Microsoft.Rest.Azure.CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
var ex = new CommonErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
try
{
_responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
CloudError _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject<CloudError>(_responseContent, this.Client.DeserializationSettings);
CommonErrorResponse _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject<CommonErrorResponse>(_responseContent, this.Client.DeserializationSettings);
if (_errorBody != null)
{
ex = new Microsoft.Rest.Azure.CloudException(_errorBody.Message);
ex.Body = _errorBody;
}
}
Expand All @@ -1180,10 +1183,6 @@ internal AdminRuleCollectionsOperations (NetworkManagementClient client)
}
ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent);
ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent);
if (_httpResponse.Headers.Contains("x-ms-request-id"))
{
ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
}
if (_shouldTrace)
{
Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex);
Expand Down
Loading

0 comments on commit 6936a17

Please sign in to comment.