officeconsents

package
v0.20230720.1190320 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2023 License: MPL-2.0 Imports: 9 Imported by: 1

README

github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/officeconsents Documentation

The officeconsents SDK allows for interaction with the Azure Resource Manager Service securityinsights (API Version 2022-10-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/securityinsights/2022-10-01-preview/officeconsents"

Client Initialization

client := officeconsents.NewOfficeConsentsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: OfficeConsentsClient.OfficeConsentsDelete

ctx := context.TODO()
id := officeconsents.NewOfficeConsentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "consentIdValue")

read, err := client.OfficeConsentsDelete(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: OfficeConsentsClient.OfficeConsentsGet

ctx := context.TODO()
id := officeconsents.NewOfficeConsentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "consentIdValue")

read, err := client.OfficeConsentsGet(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: OfficeConsentsClient.OfficeConsentsList

ctx := context.TODO()
id := officeconsents.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue")

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

func ValidateOfficeConsentID

func ValidateOfficeConsentID(input interface{}, key string) (warnings []string, errors []error)

ValidateOfficeConsentID checks that 'input' can be parsed as a Office Consent ID

func ValidateWorkspaceID

func ValidateWorkspaceID(input interface{}, key string) (warnings []string, errors []error)

ValidateWorkspaceID checks that 'input' can be parsed as a Workspace ID

Types

type OfficeConsent

type OfficeConsent struct {
	Id         *string                  `json:"id,omitempty"`
	Name       *string                  `json:"name,omitempty"`
	Properties *OfficeConsentProperties `json:"properties,omitempty"`
	SystemData *systemdata.SystemData   `json:"systemData,omitempty"`
	Type       *string                  `json:"type,omitempty"`
}

type OfficeConsentId

type OfficeConsentId struct {
	SubscriptionId    string
	ResourceGroupName string
	WorkspaceName     string
	ConsentId         string
}

OfficeConsentId is a struct representing the Resource ID for a Office Consent

func NewOfficeConsentID

func NewOfficeConsentID(subscriptionId string, resourceGroupName string, workspaceName string, consentId string) OfficeConsentId

NewOfficeConsentID returns a new OfficeConsentId struct

func ParseOfficeConsentID

func ParseOfficeConsentID(input string) (*OfficeConsentId, error)

ParseOfficeConsentID parses 'input' into a OfficeConsentId

func ParseOfficeConsentIDInsensitively

func ParseOfficeConsentIDInsensitively(input string) (*OfficeConsentId, error)

ParseOfficeConsentIDInsensitively parses 'input' case-insensitively into a OfficeConsentId note: this method should only be used for API response data and not user input

func (OfficeConsentId) ID

func (id OfficeConsentId) ID() string

ID returns the formatted Office Consent ID

func (OfficeConsentId) Segments

func (id OfficeConsentId) Segments() []resourceids.Segment

Segments returns a slice of Resource ID Segments which comprise this Office Consent ID

func (OfficeConsentId) String

func (id OfficeConsentId) String() string

String returns a human-readable description of this Office Consent ID

type OfficeConsentOperationPredicate

type OfficeConsentOperationPredicate struct {
	Id   *string
	Name *string
	Type *string
}

func (OfficeConsentOperationPredicate) Matches

type OfficeConsentProperties

type OfficeConsentProperties struct {
	ConsentId *string `json:"consentId,omitempty"`
	TenantId  *string `json:"tenantId,omitempty"`
}

type OfficeConsentsClient

type OfficeConsentsClient struct {
	Client autorest.Client
	// contains filtered or unexported fields
}

func NewOfficeConsentsClientWithBaseURI

func NewOfficeConsentsClientWithBaseURI(endpoint string) OfficeConsentsClient

func (OfficeConsentsClient) OfficeConsentsDelete

OfficeConsentsDelete ...

func (OfficeConsentsClient) OfficeConsentsGet

OfficeConsentsGet ...

func (OfficeConsentsClient) OfficeConsentsList

OfficeConsentsList ...

func (OfficeConsentsClient) OfficeConsentsListComplete

func (c OfficeConsentsClient) OfficeConsentsListComplete(ctx context.Context, id WorkspaceId) (OfficeConsentsListCompleteResult, error)

OfficeConsentsListComplete retrieves all of the results into a single object

func (OfficeConsentsClient) OfficeConsentsListCompleteMatchingPredicate

func (c OfficeConsentsClient) OfficeConsentsListCompleteMatchingPredicate(ctx context.Context, id WorkspaceId, predicate OfficeConsentOperationPredicate) (resp OfficeConsentsListCompleteResult, err error)

OfficeConsentsListCompleteMatchingPredicate retrieves all of the results and then applied the predicate

type OfficeConsentsDeleteOperationResponse

type OfficeConsentsDeleteOperationResponse struct {
	HttpResponse *http.Response
}

type OfficeConsentsGetOperationResponse

type OfficeConsentsGetOperationResponse struct {
	HttpResponse *http.Response
	Model        *OfficeConsent
}

type OfficeConsentsListCompleteResult

type OfficeConsentsListCompleteResult struct {
	Items []OfficeConsent
}

type OfficeConsentsListOperationResponse

type OfficeConsentsListOperationResponse struct {
	HttpResponse *http.Response
	Model        *[]OfficeConsent
	// contains filtered or unexported fields
}

func (OfficeConsentsListOperationResponse) HasMore

func (OfficeConsentsListOperationResponse) LoadMore

type WorkspaceId

type WorkspaceId struct {
	SubscriptionId    string
	ResourceGroupName string
	WorkspaceName     string
}

WorkspaceId is a struct representing the Resource ID for a Workspace

func NewWorkspaceID

func NewWorkspaceID(subscriptionId string, resourceGroupName string, workspaceName string) WorkspaceId

NewWorkspaceID returns a new WorkspaceId struct

func ParseWorkspaceID

func ParseWorkspaceID(input string) (*WorkspaceId, error)

ParseWorkspaceID parses 'input' into a WorkspaceId

func ParseWorkspaceIDInsensitively

func ParseWorkspaceIDInsensitively(input string) (*WorkspaceId, error)

ParseWorkspaceIDInsensitively parses 'input' case-insensitively into a WorkspaceId note: this method should only be used for API response data and not user input

func (WorkspaceId) ID

func (id WorkspaceId) ID() string

ID returns the formatted Workspace ID

func (WorkspaceId) Segments

func (id WorkspaceId) Segments() []resourceids.Segment

Segments returns a slice of Resource ID Segments which comprise this Workspace ID

func (WorkspaceId) String

func (id WorkspaceId) String() string

String returns a human-readable description of this Workspace ID

Jump to

Keyboard shortcuts

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