Skip to content

Commit

Permalink
Powershell changes for EnabledFilteringCriteria in NetworkWatcher Flo…
Browse files Browse the repository at this point in the history
…wlogs (#25709)

* Powershell code changes to support new field in flowlogs

* adding unit tests

* Help generation

* Generated flowlogs related files

* Revert "Generated flowlogs related files"

This reverts commit 4e7c8c0.

* add changeLog.md

* Reapply "Generated flowlogs related files"

This reverts commit 0b7db60.

* Adding session records

* Revert "Reapply "Generated flowlogs related files""

This reverts commit b17598d.

* Modified  TestVnetFlowLogWithEmptyFilteringCondition and TestVnetFlowLogWithFiltering

* Help files

* Model generated flowlogs files

* Commit added to ReadMe file against 2024-03-01

* Checking in all the generated files

---------

Co-authored-by: Mansi Verma <manverm@microsoft.com>
  • Loading branch information
mansi-verma-1510 and Mansi Verma authored Aug 6, 2024
1 parent e51b5ff commit 0dec092
Show file tree
Hide file tree
Showing 168 changed files with 5,894 additions and 963 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ internal AdminRuleCollectionsOperations (NetworkManagementClient client)
}
}

string apiVersion = "2024-01-01";
string apiVersion = "2024-03-01";
// Tracing
bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
string _invocationId = null;
Expand Down Expand Up @@ -358,7 +358,7 @@ internal AdminRuleCollectionsOperations (NetworkManagementClient client)
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "ruleCollectionName");
}

string apiVersion = "2024-01-01";
string apiVersion = "2024-03-01";
// Tracing
bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
string _invocationId = null;
Expand Down Expand Up @@ -596,7 +596,7 @@ internal AdminRuleCollectionsOperations (NetworkManagementClient client)
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "ruleCollectionName");
}

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


string apiVersion = "2024-01-01";
string apiVersion = "2024-03-01";
// Tracing
bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
string _invocationId = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ internal AdminRulesOperations (NetworkManagementClient client)
}
}

string apiVersion = "2024-01-01";
string apiVersion = "2024-03-01";
// Tracing
bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
string _invocationId = null;
Expand Down Expand Up @@ -375,7 +375,7 @@ internal AdminRulesOperations (NetworkManagementClient client)
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "ruleName");
}

string apiVersion = "2024-01-01";
string apiVersion = "2024-03-01";
// Tracing
bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
string _invocationId = null;
Expand Down Expand Up @@ -623,7 +623,7 @@ internal AdminRulesOperations (NetworkManagementClient client)
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "ruleName");
}

string apiVersion = "2024-01-01";
string apiVersion = "2024-03-01";
// Tracing
bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
string _invocationId = null;
Expand Down Expand Up @@ -927,7 +927,7 @@ internal AdminRulesOperations (NetworkManagementClient client)
}


string apiVersion = "2024-01-01";
string apiVersion = "2024-03-01";
// Tracing
bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
string _invocationId = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ internal ApplicationGatewayPrivateEndpointConnectionsOperations (NetworkManageme
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}

string apiVersion = "2024-01-01";
string apiVersion = "2024-03-01";
// Tracing
bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
string _invocationId = null;
Expand Down Expand Up @@ -363,7 +363,7 @@ internal ApplicationGatewayPrivateEndpointConnectionsOperations (NetworkManageme
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}

string apiVersion = "2024-01-01";
string apiVersion = "2024-03-01";
// Tracing
bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
string _invocationId = null;
Expand Down Expand Up @@ -578,7 +578,7 @@ internal ApplicationGatewayPrivateEndpointConnectionsOperations (NetworkManageme
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}

string apiVersion = "2024-01-01";
string apiVersion = "2024-03-01";
// Tracing
bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
string _invocationId = null;
Expand Down Expand Up @@ -789,7 +789,7 @@ internal ApplicationGatewayPrivateEndpointConnectionsOperations (NetworkManageme
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}

string apiVersion = "2024-01-01";
string apiVersion = "2024-03-01";
// Tracing
bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
string _invocationId = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ internal ApplicationGatewayPrivateLinkResourcesOperations (NetworkManagementClie
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}

string apiVersion = "2024-01-01";
string apiVersion = "2024-03-01";
// Tracing
bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
string _invocationId = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ internal ApplicationGatewayWafDynamicManifestsDefaultOperations (NetworkManageme
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}

string apiVersion = "2024-01-01";
string apiVersion = "2024-03-01";
// Tracing
bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
string _invocationId = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ internal ApplicationGatewayWafDynamicManifestsOperations (NetworkManagementClien
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}

string apiVersion = "2024-01-01";
string apiVersion = "2024-03-01";
// Tracing
bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
string _invocationId = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ internal ApplicationGatewaysOperations (NetworkManagementClient client)
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}

string apiVersion = "2024-01-01";
string apiVersion = "2024-03-01";
// Tracing
bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
string _invocationId = null;
Expand Down Expand Up @@ -353,7 +353,7 @@ internal ApplicationGatewaysOperations (NetworkManagementClient client)
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}

string apiVersion = "2024-01-01";
string apiVersion = "2024-03-01";
// Tracing
bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
string _invocationId = null;
Expand Down Expand Up @@ -562,7 +562,7 @@ internal ApplicationGatewaysOperations (NetworkManagementClient client)
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}

string apiVersion = "2024-01-01";
string apiVersion = "2024-03-01";
// Tracing
bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
string _invocationId = null;
Expand Down Expand Up @@ -754,7 +754,7 @@ internal ApplicationGatewaysOperations (NetworkManagementClient client)
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}

string apiVersion = "2024-01-01";
string apiVersion = "2024-03-01";
// Tracing
bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
string _invocationId = null;
Expand Down Expand Up @@ -1045,7 +1045,7 @@ internal ApplicationGatewaysOperations (NetworkManagementClient client)
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}

string apiVersion = "2024-01-01";
string apiVersion = "2024-03-01";
// Tracing
bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
string _invocationId = null;
Expand Down Expand Up @@ -1230,7 +1230,7 @@ internal ApplicationGatewaysOperations (NetworkManagementClient client)
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}

string apiVersion = "2024-01-01";
string apiVersion = "2024-03-01";
// Tracing
bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
string _invocationId = null;
Expand Down Expand Up @@ -1415,7 +1415,7 @@ internal ApplicationGatewaysOperations (NetworkManagementClient client)
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}

string apiVersion = "2024-01-01";
string apiVersion = "2024-03-01";
// Tracing
bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
string _invocationId = null;
Expand Down Expand Up @@ -1600,7 +1600,7 @@ internal ApplicationGatewaysOperations (NetworkManagementClient client)
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}

string apiVersion = "2024-01-01";
string apiVersion = "2024-03-01";
// Tracing
bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
string _invocationId = null;
Expand Down Expand Up @@ -1790,7 +1790,7 @@ internal ApplicationGatewaysOperations (NetworkManagementClient client)
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}

string apiVersion = "2024-01-01";
string apiVersion = "2024-03-01";
// Tracing
bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
string _invocationId = null;
Expand Down Expand Up @@ -1980,7 +1980,7 @@ internal ApplicationGatewaysOperations (NetworkManagementClient client)
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}

string apiVersion = "2024-01-01";
string apiVersion = "2024-03-01";
// Tracing
bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
string _invocationId = null;
Expand Down Expand Up @@ -2178,7 +2178,7 @@ internal ApplicationGatewaysOperations (NetworkManagementClient client)
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "predefinedPolicyName");
}

string apiVersion = "2024-01-01";
string apiVersion = "2024-03-01";
// Tracing
bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
string _invocationId = null;
Expand Down Expand Up @@ -2383,7 +2383,7 @@ internal ApplicationGatewaysOperations (NetworkManagementClient client)
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}

string apiVersion = "2024-01-01";
string apiVersion = "2024-03-01";
// Tracing
bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
string _invocationId = null;
Expand Down Expand Up @@ -2586,7 +2586,7 @@ internal ApplicationGatewaysOperations (NetworkManagementClient client)
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}

string apiVersion = "2024-01-01";
string apiVersion = "2024-03-01";
// Tracing
bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
string _invocationId = null;
Expand Down Expand Up @@ -2818,7 +2818,7 @@ internal ApplicationGatewaysOperations (NetworkManagementClient client)
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}

string apiVersion = "2024-01-01";
string apiVersion = "2024-03-01";
// Tracing
bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
string _invocationId = null;
Expand Down Expand Up @@ -3007,7 +3007,7 @@ internal ApplicationGatewaysOperations (NetworkManagementClient client)
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}

string apiVersion = "2024-01-01";
string apiVersion = "2024-03-01";
// Tracing
bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
string _invocationId = null;
Expand Down Expand Up @@ -3205,7 +3205,7 @@ internal ApplicationGatewaysOperations (NetworkManagementClient client)
}


string apiVersion = "2024-01-01";
string apiVersion = "2024-03-01";
// Tracing
bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
string _invocationId = null;
Expand Down Expand Up @@ -3434,7 +3434,7 @@ internal ApplicationGatewaysOperations (NetworkManagementClient client)
}


string apiVersion = "2024-01-01";
string apiVersion = "2024-03-01";
// Tracing
bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
string _invocationId = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ internal ApplicationSecurityGroupsOperations (NetworkManagementClient client)
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}

string apiVersion = "2024-01-01";
string apiVersion = "2024-03-01";
// Tracing
bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
string _invocationId = null;
Expand Down Expand Up @@ -354,7 +354,7 @@ internal ApplicationSecurityGroupsOperations (NetworkManagementClient client)
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}

string apiVersion = "2024-01-01";
string apiVersion = "2024-03-01";
// Tracing
bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
string _invocationId = null;
Expand Down Expand Up @@ -555,7 +555,7 @@ internal ApplicationSecurityGroupsOperations (NetworkManagementClient client)
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}

string apiVersion = "2024-01-01";
string apiVersion = "2024-03-01";
// Tracing
bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
string _invocationId = null;
Expand Down Expand Up @@ -753,7 +753,7 @@ internal ApplicationSecurityGroupsOperations (NetworkManagementClient client)
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}

string apiVersion = "2024-01-01";
string apiVersion = "2024-03-01";
// Tracing
bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
string _invocationId = null;
Expand Down Expand Up @@ -958,7 +958,7 @@ internal ApplicationSecurityGroupsOperations (NetworkManagementClient client)
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}

string apiVersion = "2024-01-01";
string apiVersion = "2024-03-01";
// Tracing
bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
string _invocationId = null;
Expand Down Expand Up @@ -1159,7 +1159,7 @@ internal ApplicationSecurityGroupsOperations (NetworkManagementClient client)
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}

string apiVersion = "2024-01-01";
string apiVersion = "2024-03-01";
// Tracing
bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
string _invocationId = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ internal AvailableDelegationsOperations (NetworkManagementClient client)
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}

string apiVersion = "2024-01-01";
string apiVersion = "2024-03-01";
// Tracing
bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
string _invocationId = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ internal AvailableEndpointServicesOperations (NetworkManagementClient client)
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}

string apiVersion = "2024-01-01";
string apiVersion = "2024-03-01";
// Tracing
bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
string _invocationId = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ internal AvailablePrivateEndpointTypesOperations (NetworkManagementClient client
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}

string apiVersion = "2024-01-01";
string apiVersion = "2024-03-01";
// Tracing
bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
string _invocationId = null;
Expand Down Expand Up @@ -291,7 +291,7 @@ internal AvailablePrivateEndpointTypesOperations (NetworkManagementClient client
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}

string apiVersion = "2024-01-01";
string apiVersion = "2024-03-01";
// Tracing
bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
string _invocationId = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ internal AvailableResourceGroupDelegationsOperations (NetworkManagementClient cl
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}

string apiVersion = "2024-01-01";
string apiVersion = "2024-03-01";
// Tracing
bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
string _invocationId = null;
Expand Down
Loading

0 comments on commit 0dec092

Please sign in to comment.