listtenantconfigurationviolations

package
v0.20240226.1173038 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 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              []ViolationsList
}

type ListOperationResponse

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

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 ViolationsListOperationPredicate) (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 ViolationsList added in v0.20240226.1173038

type ViolationsList struct {
	NextLink *string      `json:"nextLink,omitempty"`
	Value    *[]Violation `json:"value,omitempty"`
}

type ViolationsListOperationPredicate added in v0.20240226.1173038

type ViolationsListOperationPredicate struct {
	NextLink *string
}

func (ViolationsListOperationPredicate) Matches added in v0.20240226.1173038

Jump to

Keyboard shortcuts

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