workspacemanagermember

package
v0.20241209.1115630 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: MPL-2.0 Imports: 11 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2023-12-01-preview/workspacemanagermember Documentation

The workspacemanagermember SDK allows for interaction with Azure Resource Manager securityinsights (API Version 2023-12-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/2023-12-01-preview/workspacemanagermember"

Client Initialization

client := workspacemanagermember.NewWorkspaceManagerMemberClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: WorkspaceManagerMemberClient.CreateOrUpdate

ctx := context.TODO()
id := workspacemanagermember.NewWorkspaceManagerMemberID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName", "workspaceManagerMemberName")

payload := workspacemanagermember.WorkspaceManagerMember{
	// ...
}


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

Example Usage: WorkspaceManagerMemberClient.Delete

ctx := context.TODO()
id := workspacemanagermember.NewWorkspaceManagerMemberID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName", "workspaceManagerMemberName")

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

Example Usage: WorkspaceManagerMemberClient.Get

ctx := context.TODO()
id := workspacemanagermember.NewWorkspaceManagerMemberID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName", "workspaceManagerMemberName")

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

Example Usage: WorkspaceManagerMemberClient.List

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

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

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

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

func ValidateWorkspaceManagerMemberID

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

ValidateWorkspaceManagerMemberID checks that 'input' can be parsed as a Workspace Manager Member ID

Types

type CreateOrUpdateOperationResponse

type CreateOrUpdateOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *WorkspaceManagerMember
}

type DeleteOperationResponse

type DeleteOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
}

type GetOperationResponse

type GetOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *WorkspaceManagerMember
}

type ListCompleteResult

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

type ListCustomPager

type ListCustomPager struct {
	NextLink *odata.Link `json:"nextLink"`
}
func (p *ListCustomPager) NextPageLink() *odata.Link

type ListOperationOptions

type ListOperationOptions struct {
	Orderby *string
	Top     *int64
}

func DefaultListOperationOptions

func DefaultListOperationOptions() ListOperationOptions

func (ListOperationOptions) ToHeaders

func (o ListOperationOptions) ToHeaders() *client.Headers

func (ListOperationOptions) ToOData

func (o ListOperationOptions) ToOData() *odata.Query

func (ListOperationOptions) ToQuery

type ListOperationResponse

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

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) FromParseResult

func (id *WorkspaceId) FromParseResult(input resourceids.ParseResult) error

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

type WorkspaceManagerMember

type WorkspaceManagerMember struct {
	Etag       *string                           `json:"etag,omitempty"`
	Id         *string                           `json:"id,omitempty"`
	Name       *string                           `json:"name,omitempty"`
	Properties *WorkspaceManagerMemberProperties `json:"properties,omitempty"`
	SystemData *systemdata.SystemData            `json:"systemData,omitempty"`
	Type       *string                           `json:"type,omitempty"`
}

type WorkspaceManagerMemberClient

type WorkspaceManagerMemberClient struct {
	Client *resourcemanager.Client
}

func NewWorkspaceManagerMemberClientWithBaseURI

func NewWorkspaceManagerMemberClientWithBaseURI(sdkApi sdkEnv.Api) (*WorkspaceManagerMemberClient, error)

func (WorkspaceManagerMemberClient) CreateOrUpdate

CreateOrUpdate ...

func (WorkspaceManagerMemberClient) Delete

Delete ...

func (WorkspaceManagerMemberClient) Get

Get ...

func (WorkspaceManagerMemberClient) List

List ...

func (WorkspaceManagerMemberClient) ListComplete

ListComplete retrieves all the results into a single object

func (WorkspaceManagerMemberClient) ListCompleteMatchingPredicate

func (c WorkspaceManagerMemberClient) ListCompleteMatchingPredicate(ctx context.Context, id WorkspaceId, options ListOperationOptions, predicate WorkspaceManagerMemberOperationPredicate) (result ListCompleteResult, err error)

ListCompleteMatchingPredicate retrieves all the results and then applies the predicate

type WorkspaceManagerMemberId

type WorkspaceManagerMemberId struct {
	SubscriptionId             string
	ResourceGroupName          string
	WorkspaceName              string
	WorkspaceManagerMemberName string
}

WorkspaceManagerMemberId is a struct representing the Resource ID for a Workspace Manager Member

func NewWorkspaceManagerMemberID

func NewWorkspaceManagerMemberID(subscriptionId string, resourceGroupName string, workspaceName string, workspaceManagerMemberName string) WorkspaceManagerMemberId

NewWorkspaceManagerMemberID returns a new WorkspaceManagerMemberId struct

func ParseWorkspaceManagerMemberID

func ParseWorkspaceManagerMemberID(input string) (*WorkspaceManagerMemberId, error)

ParseWorkspaceManagerMemberID parses 'input' into a WorkspaceManagerMemberId

func ParseWorkspaceManagerMemberIDInsensitively

func ParseWorkspaceManagerMemberIDInsensitively(input string) (*WorkspaceManagerMemberId, error)

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

func (*WorkspaceManagerMemberId) FromParseResult

func (id *WorkspaceManagerMemberId) FromParseResult(input resourceids.ParseResult) error

func (WorkspaceManagerMemberId) ID

ID returns the formatted Workspace Manager Member ID

func (WorkspaceManagerMemberId) Segments

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

func (WorkspaceManagerMemberId) String

func (id WorkspaceManagerMemberId) String() string

String returns a human-readable description of this Workspace Manager Member ID

type WorkspaceManagerMemberOperationPredicate

type WorkspaceManagerMemberOperationPredicate struct {
	Etag *string
	Id   *string
	Name *string
	Type *string
}

func (WorkspaceManagerMemberOperationPredicate) Matches

type WorkspaceManagerMemberProperties

type WorkspaceManagerMemberProperties struct {
	TargetWorkspaceResourceId string `json:"targetWorkspaceResourceId"`
	TargetWorkspaceTenantId   string `json:"targetWorkspaceTenantId"`
}

Jump to

Keyboard shortcuts

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