entityrelations

package
v0.20220905.1123521 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2022 License: MPL-2.0 Imports: 9 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2021-09-01-preview/entityrelations Documentation

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

Client Initialization

client := entityrelations.NewEntityRelationsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: EntityRelationsClient.EntitiesRelationsList

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

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

Example Usage: EntityRelationsClient.GetRelation

ctx := context.TODO()
id := entityrelations.NewRelationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "entityIdValue", "relationValue")

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateEntitiesID

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

ValidateEntitiesID checks that 'input' can be parsed as a Entities ID

func ValidateRelationID

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

ValidateRelationID checks that 'input' can be parsed as a Relation ID

Types

type EntitiesId

type EntitiesId struct {
	SubscriptionId    string
	ResourceGroupName string
	WorkspaceName     string
	EntityId          string
}

EntitiesId is a struct representing the Resource ID for a Entities

func NewEntitiesID

func NewEntitiesID(subscriptionId string, resourceGroupName string, workspaceName string, entityId string) EntitiesId

NewEntitiesID returns a new EntitiesId struct

func ParseEntitiesID

func ParseEntitiesID(input string) (*EntitiesId, error)

ParseEntitiesID parses 'input' into a EntitiesId

func ParseEntitiesIDInsensitively

func ParseEntitiesIDInsensitively(input string) (*EntitiesId, error)

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

func (EntitiesId) ID

func (id EntitiesId) ID() string

ID returns the formatted Entities ID

func (EntitiesId) Segments

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

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

func (EntitiesId) String

func (id EntitiesId) String() string

String returns a human-readable description of this Entities ID

type EntitiesRelationsListCompleteResult

type EntitiesRelationsListCompleteResult struct {
	Items []Relation
}

type EntitiesRelationsListOperationOptions

type EntitiesRelationsListOperationOptions struct {
	Filter  *string
	Orderby *string
	Top     *int64
}

func DefaultEntitiesRelationsListOperationOptions

func DefaultEntitiesRelationsListOperationOptions() EntitiesRelationsListOperationOptions

type EntitiesRelationsListOperationResponse

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

func (EntitiesRelationsListOperationResponse) HasMore

func (EntitiesRelationsListOperationResponse) LoadMore

type EntityRelationsClient

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

func NewEntityRelationsClientWithBaseURI

func NewEntityRelationsClientWithBaseURI(endpoint string) EntityRelationsClient

func (EntityRelationsClient) EntitiesRelationsList

EntitiesRelationsList ...

func (EntityRelationsClient) EntitiesRelationsListComplete

EntitiesRelationsListComplete retrieves all of the results into a single object

func (EntityRelationsClient) EntitiesRelationsListCompleteMatchingPredicate

func (c EntityRelationsClient) EntitiesRelationsListCompleteMatchingPredicate(ctx context.Context, id EntitiesId, options EntitiesRelationsListOperationOptions, predicate RelationOperationPredicate) (resp EntitiesRelationsListCompleteResult, err error)

EntitiesRelationsListCompleteMatchingPredicate retrieves all of the results and then applied the predicate

func (EntityRelationsClient) GetRelation

GetRelation ...

type GetRelationOperationResponse

type GetRelationOperationResponse struct {
	HttpResponse *http.Response
	Model        *Relation
}

type Relation

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

type RelationId

type RelationId struct {
	SubscriptionId    string
	ResourceGroupName string
	WorkspaceName     string
	EntityId          string
	RelationName      string
}

RelationId is a struct representing the Resource ID for a Relation

func NewRelationID

func NewRelationID(subscriptionId string, resourceGroupName string, workspaceName string, entityId string, relationName string) RelationId

NewRelationID returns a new RelationId struct

func ParseRelationID

func ParseRelationID(input string) (*RelationId, error)

ParseRelationID parses 'input' into a RelationId

func ParseRelationIDInsensitively

func ParseRelationIDInsensitively(input string) (*RelationId, error)

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

func (RelationId) ID

func (id RelationId) ID() string

ID returns the formatted Relation ID

func (RelationId) Segments

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

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

func (RelationId) String

func (id RelationId) String() string

String returns a human-readable description of this Relation ID

type RelationOperationPredicate

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

func (RelationOperationPredicate) Matches

func (p RelationOperationPredicate) Matches(input Relation) bool

type RelationProperties

type RelationProperties struct {
	RelatedResourceId   string  `json:"relatedResourceId"`
	RelatedResourceKind *string `json:"relatedResourceKind,omitempty"`
	RelatedResourceName *string `json:"relatedResourceName,omitempty"`
	RelatedResourceType *string `json:"relatedResourceType,omitempty"`
}

Jump to

Keyboard shortcuts

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