listtenantconfigurationviolations

package
v0.20240304.1112406 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 4, 2024 License: MPL-2.0 Imports: 7 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/resource-manager/portal/2020-09-01-preview/listtenantconfigurationviolations Documentation

The listtenantconfigurationviolations SDK allows for interaction with the Azure Resource Manager Service portal (API Version 2020-09-01-preview).

This readme covers example usages, but further information on using this SDK can be found in the project root.

Import Path

import "github.com/hashicorp/go-azure-sdk/resource-manager/portal/2020-09-01-preview/listtenantconfigurationviolations"

Client Initialization

client := listtenantconfigurationviolations.NewListTenantConfigurationViolationsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: ListTenantConfigurationViolationsClient.List

ctx := context.TODO()


// alternatively `client.List(ctx)` can be used to do batched pagination
items, err := client.ListComplete(ctx)
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ListCompleteResult

type ListCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []Violation
}

type ListOperationResponse

type ListOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]Violation
}

type ListTenantConfigurationViolationsClient

type ListTenantConfigurationViolationsClient struct {
	Client *resourcemanager.Client
}

func NewListTenantConfigurationViolationsClientWithBaseURI

func NewListTenantConfigurationViolationsClientWithBaseURI(sdkApi sdkEnv.Api) (*ListTenantConfigurationViolationsClient, error)

func (ListTenantConfigurationViolationsClient) List

List ...

func (ListTenantConfigurationViolationsClient) ListComplete

ListComplete retrieves all the results into a single object

func (ListTenantConfigurationViolationsClient) ListCompleteMatchingPredicate

func (c ListTenantConfigurationViolationsClient) ListCompleteMatchingPredicate(ctx context.Context, predicate ViolationOperationPredicate) (result ListCompleteResult, err error)

ListCompleteMatchingPredicate retrieves all the results and then applies the predicate

type Violation

type Violation struct {
	ErrorMessage *string `json:"errorMessage,omitempty"`
	Id           *string `json:"id,omitempty"`
	UserId       *string `json:"userId,omitempty"`
}

type ViolationOperationPredicate

type ViolationOperationPredicate struct {
	ErrorMessage *string
	Id           *string
	UserId       *string
}

func (ViolationOperationPredicate) Matches

func (p ViolationOperationPredicate) Matches(input Violation) bool

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL