Skip to content

Commit

Permalink
Merge pull request #572 from hashicorp/auto-pr/acfa755d3
Browse files Browse the repository at this point in the history
Auto PR: Regenerating the Go SDK (26ad99c)
  • Loading branch information
tombuildsstuff authored Jul 28, 2023
2 parents 1cf308b + 26ad99c commit f4bfcf0
Show file tree
Hide file tree
Showing 2,175 changed files with 9,679 additions and 9,679 deletions.
10 changes: 5 additions & 5 deletions resource-manager/aad/2021-05-01/domainservices/predicates.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,23 +13,23 @@ type DomainServiceOperationPredicate struct {

func (p DomainServiceOperationPredicate) Matches(input DomainService) bool {

if p.Etag != nil && (input.Etag == nil && *p.Etag != *input.Etag) {
if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) {
return false
}

if p.Id != nil && (input.Id == nil && *p.Id != *input.Id) {
if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) {
return false
}

if p.Location != nil && (input.Location == nil && *p.Location != *input.Location) {
if p.Location != nil && (input.Location == nil || *p.Location != *input.Location) {
return false
}

if p.Name != nil && (input.Name == nil && *p.Name != *input.Name) {
if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) {
return false
}

if p.Type != nil && (input.Type == nil && *p.Type != *input.Type) {
if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) {
return false
}

Expand Down
10 changes: 5 additions & 5 deletions resource-manager/aad/2021-05-01/oucontainer/predicates.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,23 +13,23 @@ type OuContainerOperationPredicate struct {

func (p OuContainerOperationPredicate) Matches(input OuContainer) bool {

if p.Etag != nil && (input.Etag == nil && *p.Etag != *input.Etag) {
if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) {
return false
}

if p.Id != nil && (input.Id == nil && *p.Id != *input.Id) {
if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) {
return false
}

if p.Location != nil && (input.Location == nil && *p.Location != *input.Location) {
if p.Location != nil && (input.Location == nil || *p.Location != *input.Location) {
return false
}

if p.Name != nil && (input.Name == nil && *p.Name != *input.Name) {
if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) {
return false
}

if p.Type != nil && (input.Type == nil && *p.Type != *input.Type) {
if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) {
return false
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ type TenantOperationPredicate struct {

func (p TenantOperationPredicate) Matches(input Tenant) bool {

if p.Id != nil && (input.Id == nil && *p.Id != *input.Id) {
if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) {
return false
}

if p.Name != nil && (input.Name == nil && *p.Name != *input.Name) {
if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) {
return false
}

if p.Type != nil && (input.Type == nil && *p.Type != *input.Type) {
if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) {
return false
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ type ConfigDataOperationPredicate struct {

func (p ConfigDataOperationPredicate) Matches(input ConfigData) bool {

if p.Id != nil && (input.Id == nil && *p.Id != *input.Id) {
if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) {
return false
}

if p.Name != nil && (input.Name == nil && *p.Name != *input.Name) {
if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) {
return false
}

if p.Type != nil && (input.Type == nil && *p.Type != *input.Type) {
if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) {
return false
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ type ResourceRecommendationBaseOperationPredicate struct {

func (p ResourceRecommendationBaseOperationPredicate) Matches(input ResourceRecommendationBase) bool {

if p.Id != nil && (input.Id == nil && *p.Id != *input.Id) {
if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) {
return false
}

if p.Name != nil && (input.Name == nil && *p.Name != *input.Name) {
if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) {
return false
}

if p.Type != nil && (input.Type == nil && *p.Type != *input.Type) {
if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) {
return false
}

Expand Down
6 changes: 3 additions & 3 deletions resource-manager/advisor/2020-01-01/metadata/predicates.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ type MetadataEntityOperationPredicate struct {

func (p MetadataEntityOperationPredicate) Matches(input MetadataEntity) bool {

if p.Id != nil && (input.Id == nil && *p.Id != *input.Id) {
if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) {
return false
}

if p.Name != nil && (input.Name == nil && *p.Name != *input.Name) {
if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) {
return false
}

if p.Type != nil && (input.Type == nil && *p.Type != *input.Type) {
if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) {
return false
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ type SuppressionContractOperationPredicate struct {

func (p SuppressionContractOperationPredicate) Matches(input SuppressionContract) bool {

if p.Id != nil && (input.Id == nil && *p.Id != *input.Id) {
if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) {
return false
}

if p.Name != nil && (input.Name == nil && *p.Name != *input.Name) {
if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) {
return false
}

if p.Type != nil && (input.Type == nil && *p.Type != *input.Type) {
if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) {
return false
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ type ConfigDataOperationPredicate struct {

func (p ConfigDataOperationPredicate) Matches(input ConfigData) bool {

if p.Id != nil && (input.Id == nil && *p.Id != *input.Id) {
if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) {
return false
}

if p.Name != nil && (input.Name == nil && *p.Name != *input.Name) {
if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) {
return false
}

if p.Type != nil && (input.Type == nil && *p.Type != *input.Type) {
if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) {
return false
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ type ResourceRecommendationBaseOperationPredicate struct {

func (p ResourceRecommendationBaseOperationPredicate) Matches(input ResourceRecommendationBase) bool {

if p.Id != nil && (input.Id == nil && *p.Id != *input.Id) {
if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) {
return false
}

if p.Name != nil && (input.Name == nil && *p.Name != *input.Name) {
if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) {
return false
}

if p.Type != nil && (input.Type == nil && *p.Type != *input.Type) {
if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) {
return false
}

Expand Down
6 changes: 3 additions & 3 deletions resource-manager/advisor/2022-10-01/metadata/predicates.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ type MetadataEntityOperationPredicate struct {

func (p MetadataEntityOperationPredicate) Matches(input MetadataEntity) bool {

if p.Id != nil && (input.Id == nil && *p.Id != *input.Id) {
if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) {
return false
}

if p.Name != nil && (input.Name == nil && *p.Name != *input.Name) {
if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) {
return false
}

if p.Type != nil && (input.Type == nil && *p.Type != *input.Type) {
if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) {
return false
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ type SuppressionContractOperationPredicate struct {

func (p SuppressionContractOperationPredicate) Matches(input SuppressionContract) bool {

if p.Id != nil && (input.Id == nil && *p.Id != *input.Id) {
if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) {
return false
}

if p.Name != nil && (input.Name == nil && *p.Name != *input.Name) {
if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) {
return false
}

if p.Type != nil && (input.Type == nil && *p.Type != *input.Type) {
if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) {
return false
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ type ConfigDataOperationPredicate struct {

func (p ConfigDataOperationPredicate) Matches(input ConfigData) bool {

if p.Id != nil && (input.Id == nil && *p.Id != *input.Id) {
if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) {
return false
}

if p.Name != nil && (input.Name == nil && *p.Name != *input.Name) {
if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) {
return false
}

if p.Type != nil && (input.Type == nil && *p.Type != *input.Type) {
if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) {
return false
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ type ResourceRecommendationBaseOperationPredicate struct {

func (p ResourceRecommendationBaseOperationPredicate) Matches(input ResourceRecommendationBase) bool {

if p.Id != nil && (input.Id == nil && *p.Id != *input.Id) {
if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) {
return false
}

if p.Name != nil && (input.Name == nil && *p.Name != *input.Name) {
if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) {
return false
}

if p.Type != nil && (input.Type == nil && *p.Type != *input.Type) {
if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) {
return false
}

Expand Down
6 changes: 3 additions & 3 deletions resource-manager/advisor/2023-01-01/metadata/predicates.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ type MetadataEntityOperationPredicate struct {

func (p MetadataEntityOperationPredicate) Matches(input MetadataEntity) bool {

if p.Id != nil && (input.Id == nil && *p.Id != *input.Id) {
if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) {
return false
}

if p.Name != nil && (input.Name == nil && *p.Name != *input.Name) {
if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) {
return false
}

if p.Type != nil && (input.Type == nil && *p.Type != *input.Type) {
if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) {
return false
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ type SuppressionContractOperationPredicate struct {

func (p SuppressionContractOperationPredicate) Matches(input SuppressionContract) bool {

if p.Id != nil && (input.Id == nil && *p.Id != *input.Id) {
if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) {
return false
}

if p.Name != nil && (input.Name == nil && *p.Name != *input.Name) {
if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) {
return false
}

if p.Type != nil && (input.Type == nil && *p.Type != *input.Type) {
if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) {
return false
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,19 @@ type AlertProcessingRuleOperationPredicate struct {

func (p AlertProcessingRuleOperationPredicate) Matches(input AlertProcessingRule) bool {

if p.Id != nil && (input.Id == nil && *p.Id != *input.Id) {
if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) {
return false
}

if p.Location != nil && *p.Location != input.Location {
return false
}

if p.Name != nil && (input.Name == nil && *p.Name != *input.Name) {
if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) {
return false
}

if p.Type != nil && (input.Type == nil && *p.Type != *input.Type) {
if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) {
return false
}

Expand Down
6 changes: 3 additions & 3 deletions resource-manager/apimanagement/2021-08-01/api/predicates.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ type ApiContractOperationPredicate struct {

func (p ApiContractOperationPredicate) Matches(input ApiContract) bool {

if p.Id != nil && (input.Id == nil && *p.Id != *input.Id) {
if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) {
return false
}

if p.Name != nil && (input.Name == nil && *p.Name != *input.Name) {
if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) {
return false
}

if p.Type != nil && (input.Type == nil && *p.Type != *input.Type) {
if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) {
return false
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ type DiagnosticContractOperationPredicate struct {

func (p DiagnosticContractOperationPredicate) Matches(input DiagnosticContract) bool {

if p.Id != nil && (input.Id == nil && *p.Id != *input.Id) {
if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) {
return false
}

if p.Name != nil && (input.Name == nil && *p.Name != *input.Name) {
if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) {
return false
}

if p.Type != nil && (input.Type == nil && *p.Type != *input.Type) {
if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) {
return false
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ type IssueContractOperationPredicate struct {

func (p IssueContractOperationPredicate) Matches(input IssueContract) bool {

if p.Id != nil && (input.Id == nil && *p.Id != *input.Id) {
if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) {
return false
}

if p.Name != nil && (input.Name == nil && *p.Name != *input.Name) {
if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) {
return false
}

if p.Type != nil && (input.Type == nil && *p.Type != *input.Type) {
if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) {
return false
}

Expand Down
Loading

0 comments on commit f4bfcf0

Please sign in to comment.