-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
hc-github-team-tf-azure
committed
Feb 26, 2024
1 parent
a0da4e2
commit ab253a4
Showing
1,045 changed files
with
14,023 additions
and
9,440 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 0 additions & 10 deletions
10
resource-manager/apimanagement/2022-08-01/apioperationpolicy/model_policycollection.go
This file was deleted.
Oops, something went wrong.
27 changes: 27 additions & 0 deletions
27
resource-manager/apimanagement/2022-08-01/apioperationpolicy/predicates.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package apioperationpolicy | ||
|
||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. See NOTICE.txt in the project root for license information. | ||
|
||
type PolicyContractOperationPredicate struct { | ||
Id *string | ||
Name *string | ||
Type *string | ||
} | ||
|
||
func (p PolicyContractOperationPredicate) Matches(input PolicyContract) bool { | ||
|
||
if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { | ||
return false | ||
} | ||
|
||
if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { | ||
return false | ||
} | ||
|
||
if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { | ||
return false | ||
} | ||
|
||
return true | ||
} |
Oops, something went wrong.