listtenantconfigurationviolationsoperations

package
v0.20241009.1142232 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2024 License: MPL-2.0 Imports: 7 Imported by: 1

README

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

The listtenantconfigurationviolationsoperations SDK allows for interaction with Azure Resource Manager 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/listtenantconfigurationviolationsoperations"

Client Initialization

client := listtenantconfigurationviolationsoperations.NewListTenantConfigurationViolationsOperationsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: ListTenantConfigurationViolationsOperationsClient.ListTenantConfigurationViolationsList

ctx := context.TODO()


// alternatively `client.ListTenantConfigurationViolationsList(ctx)` can be used to do batched pagination
items, err := client.ListTenantConfigurationViolationsListComplete(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 ListTenantConfigurationViolationsListCompleteResult

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

type ListTenantConfigurationViolationsListCustomPager

type ListTenantConfigurationViolationsListCustomPager struct {
	NextLink *odata.Link `json:"nextLink"`
}

type ListTenantConfigurationViolationsListOperationResponse

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

type ListTenantConfigurationViolationsOperationsClient

type ListTenantConfigurationViolationsOperationsClient struct {
	Client *resourcemanager.Client
}

func NewListTenantConfigurationViolationsOperationsClientWithBaseURI

func NewListTenantConfigurationViolationsOperationsClientWithBaseURI(sdkApi sdkEnv.Api) (*ListTenantConfigurationViolationsOperationsClient, error)

func (ListTenantConfigurationViolationsOperationsClient) ListTenantConfigurationViolationsList

ListTenantConfigurationViolationsList ...

func (ListTenantConfigurationViolationsOperationsClient) ListTenantConfigurationViolationsListComplete

ListTenantConfigurationViolationsListComplete retrieves all the results into a single object

func (ListTenantConfigurationViolationsOperationsClient) ListTenantConfigurationViolationsListCompleteMatchingPredicate

func (c ListTenantConfigurationViolationsOperationsClient) ListTenantConfigurationViolationsListCompleteMatchingPredicate(ctx context.Context, predicate ViolationOperationPredicate) (result ListTenantConfigurationViolationsListCompleteResult, err error)

ListTenantConfigurationViolationsListCompleteMatchingPredicate 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