diagnostic

package
v0.20241029.1112340 Latest Latest
Warning

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

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

README

github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2024-05-01/diagnostic Documentation

The diagnostic SDK allows for interaction with Azure Resource Manager apimanagement (API Version 2024-05-01).

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/apimanagement/2024-05-01/diagnostic"

Client Initialization

client := diagnostic.NewDiagnosticClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: DiagnosticClient.CreateOrUpdate

ctx := context.TODO()
id := diagnostic.NewDiagnosticID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "diagnosticId")

payload := diagnostic.DiagnosticContract{
	// ...
}


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

Example Usage: DiagnosticClient.Delete

ctx := context.TODO()
id := diagnostic.NewDiagnosticID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "diagnosticId")

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

Example Usage: DiagnosticClient.Get

ctx := context.TODO()
id := diagnostic.NewDiagnosticID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "diagnosticId")

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: DiagnosticClient.GetEntityTag

ctx := context.TODO()
id := diagnostic.NewDiagnosticID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "diagnosticId")

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

Example Usage: DiagnosticClient.ListByService

ctx := context.TODO()
id := diagnostic.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName")

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

Example Usage: DiagnosticClient.Update

ctx := context.TODO()
id := diagnostic.NewDiagnosticID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "diagnosticId")

payload := diagnostic.DiagnosticContract{
	// ...
}


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

Example Usage: DiagnosticClient.WorkspaceDiagnosticCreateOrUpdate

ctx := context.TODO()
id := diagnostic.NewWorkspaceDiagnosticID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "workspaceId", "diagnosticId")

payload := diagnostic.DiagnosticContract{
	// ...
}


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

Example Usage: DiagnosticClient.WorkspaceDiagnosticDelete

ctx := context.TODO()
id := diagnostic.NewWorkspaceDiagnosticID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "workspaceId", "diagnosticId")

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

Example Usage: DiagnosticClient.WorkspaceDiagnosticGet

ctx := context.TODO()
id := diagnostic.NewWorkspaceDiagnosticID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "workspaceId", "diagnosticId")

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

Example Usage: DiagnosticClient.WorkspaceDiagnosticGetEntityTag

ctx := context.TODO()
id := diagnostic.NewWorkspaceDiagnosticID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "workspaceId", "diagnosticId")

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

Example Usage: DiagnosticClient.WorkspaceDiagnosticListByWorkspace

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

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

Example Usage: DiagnosticClient.WorkspaceDiagnosticUpdate

ctx := context.TODO()
id := diagnostic.NewWorkspaceDiagnosticID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "workspaceId", "diagnosticId")

payload := diagnostic.DiagnosticUpdateContract{
	// ...
}


read, err := client.WorkspaceDiagnosticUpdate(ctx, id, payload, diagnostic.DefaultWorkspaceDiagnosticUpdateOperationOptions())
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 PossibleValuesForAlwaysLog

func PossibleValuesForAlwaysLog() []string

func PossibleValuesForDataMaskingMode

func PossibleValuesForDataMaskingMode() []string

func PossibleValuesForHTTPCorrelationProtocol

func PossibleValuesForHTTPCorrelationProtocol() []string

func PossibleValuesForOperationNameFormat

func PossibleValuesForOperationNameFormat() []string

func PossibleValuesForSamplingType

func PossibleValuesForSamplingType() []string

func PossibleValuesForVerbosity

func PossibleValuesForVerbosity() []string

func ValidateDiagnosticID

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

ValidateDiagnosticID checks that 'input' can be parsed as a Diagnostic ID

func ValidateServiceID

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

ValidateServiceID checks that 'input' can be parsed as a Service ID

func ValidateWorkspaceDiagnosticID

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

ValidateWorkspaceDiagnosticID checks that 'input' can be parsed as a Workspace Diagnostic 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 AlwaysLog

type AlwaysLog string
const (
	AlwaysLogAllErrors AlwaysLog = "allErrors"
)

func (*AlwaysLog) UnmarshalJSON

func (s *AlwaysLog) UnmarshalJSON(bytes []byte) error

type BodyDiagnosticSettings

type BodyDiagnosticSettings struct {
	Bytes *int64 `json:"bytes,omitempty"`
}

type CreateOrUpdateOperationOptions

type CreateOrUpdateOperationOptions struct {
	IfMatch *string
}

func DefaultCreateOrUpdateOperationOptions

func DefaultCreateOrUpdateOperationOptions() CreateOrUpdateOperationOptions

func (CreateOrUpdateOperationOptions) ToHeaders

func (CreateOrUpdateOperationOptions) ToOData

func (CreateOrUpdateOperationOptions) ToQuery

type CreateOrUpdateOperationResponse

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

type DataMasking

type DataMasking struct {
	Headers     *[]DataMaskingEntity `json:"headers,omitempty"`
	QueryParams *[]DataMaskingEntity `json:"queryParams,omitempty"`
}

type DataMaskingEntity

type DataMaskingEntity struct {
	Mode  *DataMaskingMode `json:"mode,omitempty"`
	Value *string          `json:"value,omitempty"`
}

type DataMaskingMode

type DataMaskingMode string
const (
	DataMaskingModeHide DataMaskingMode = "Hide"
	DataMaskingModeMask DataMaskingMode = "Mask"
)

func (*DataMaskingMode) UnmarshalJSON

func (s *DataMaskingMode) UnmarshalJSON(bytes []byte) error

type DeleteOperationOptions

type DeleteOperationOptions struct {
	IfMatch *string
}

func DefaultDeleteOperationOptions

func DefaultDeleteOperationOptions() DeleteOperationOptions

func (DeleteOperationOptions) ToHeaders

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

func (DeleteOperationOptions) ToOData

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

func (DeleteOperationOptions) ToQuery

type DeleteOperationResponse

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

type DiagnosticClient

type DiagnosticClient struct {
	Client *resourcemanager.Client
}

func NewDiagnosticClientWithBaseURI

func NewDiagnosticClientWithBaseURI(sdkApi sdkEnv.Api) (*DiagnosticClient, error)

func (DiagnosticClient) CreateOrUpdate

CreateOrUpdate ...

func (DiagnosticClient) Delete

Delete ...

func (DiagnosticClient) Get

Get ...

func (DiagnosticClient) GetEntityTag

func (c DiagnosticClient) GetEntityTag(ctx context.Context, id DiagnosticId) (result GetEntityTagOperationResponse, err error)

GetEntityTag ...

func (DiagnosticClient) ListByService

ListByService ...

func (DiagnosticClient) ListByServiceComplete

ListByServiceComplete retrieves all the results into a single object

func (DiagnosticClient) ListByServiceCompleteMatchingPredicate

func (c DiagnosticClient) ListByServiceCompleteMatchingPredicate(ctx context.Context, id ServiceId, options ListByServiceOperationOptions, predicate DiagnosticContractOperationPredicate) (result ListByServiceCompleteResult, err error)

ListByServiceCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (DiagnosticClient) Update

Update ...

func (DiagnosticClient) WorkspaceDiagnosticCreateOrUpdate

WorkspaceDiagnosticCreateOrUpdate ...

func (DiagnosticClient) WorkspaceDiagnosticDelete

WorkspaceDiagnosticDelete ...

func (DiagnosticClient) WorkspaceDiagnosticGet

WorkspaceDiagnosticGet ...

func (DiagnosticClient) WorkspaceDiagnosticGetEntityTag

func (c DiagnosticClient) WorkspaceDiagnosticGetEntityTag(ctx context.Context, id WorkspaceDiagnosticId) (result WorkspaceDiagnosticGetEntityTagOperationResponse, err error)

WorkspaceDiagnosticGetEntityTag ...

func (DiagnosticClient) WorkspaceDiagnosticListByWorkspace

WorkspaceDiagnosticListByWorkspace ...

func (DiagnosticClient) WorkspaceDiagnosticListByWorkspaceComplete

WorkspaceDiagnosticListByWorkspaceComplete retrieves all the results into a single object

func (DiagnosticClient) WorkspaceDiagnosticListByWorkspaceCompleteMatchingPredicate

func (c DiagnosticClient) WorkspaceDiagnosticListByWorkspaceCompleteMatchingPredicate(ctx context.Context, id WorkspaceId, options WorkspaceDiagnosticListByWorkspaceOperationOptions, predicate DiagnosticContractOperationPredicate) (result WorkspaceDiagnosticListByWorkspaceCompleteResult, err error)

WorkspaceDiagnosticListByWorkspaceCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (DiagnosticClient) WorkspaceDiagnosticUpdate

WorkspaceDiagnosticUpdate ...

type DiagnosticContract

type DiagnosticContract struct {
	Id         *string                       `json:"id,omitempty"`
	Name       *string                       `json:"name,omitempty"`
	Properties *DiagnosticContractProperties `json:"properties,omitempty"`
	Type       *string                       `json:"type,omitempty"`
}

type DiagnosticContractOperationPredicate

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

func (DiagnosticContractOperationPredicate) Matches

type DiagnosticContractProperties

type DiagnosticContractProperties struct {
	AlwaysLog               *AlwaysLog                  `json:"alwaysLog,omitempty"`
	Backend                 *PipelineDiagnosticSettings `json:"backend,omitempty"`
	Frontend                *PipelineDiagnosticSettings `json:"frontend,omitempty"`
	HTTPCorrelationProtocol *HTTPCorrelationProtocol    `json:"httpCorrelationProtocol,omitempty"`
	LogClientIP             *bool                       `json:"logClientIp,omitempty"`
	LoggerId                string                      `json:"loggerId"`
	Metrics                 *bool                       `json:"metrics,omitempty"`
	OperationNameFormat     *OperationNameFormat        `json:"operationNameFormat,omitempty"`
	Sampling                *SamplingSettings           `json:"sampling,omitempty"`
	Verbosity               *Verbosity                  `json:"verbosity,omitempty"`
}

type DiagnosticContractUpdateProperties

type DiagnosticContractUpdateProperties struct {
	AlwaysLog               *AlwaysLog                  `json:"alwaysLog,omitempty"`
	Backend                 *PipelineDiagnosticSettings `json:"backend,omitempty"`
	Frontend                *PipelineDiagnosticSettings `json:"frontend,omitempty"`
	HTTPCorrelationProtocol *HTTPCorrelationProtocol    `json:"httpCorrelationProtocol,omitempty"`
	LogClientIP             *bool                       `json:"logClientIp,omitempty"`
	LoggerId                *string                     `json:"loggerId,omitempty"`
	Metrics                 *bool                       `json:"metrics,omitempty"`
	OperationNameFormat     *OperationNameFormat        `json:"operationNameFormat,omitempty"`
	Sampling                *SamplingSettings           `json:"sampling,omitempty"`
	Verbosity               *Verbosity                  `json:"verbosity,omitempty"`
}

type DiagnosticId

type DiagnosticId struct {
	SubscriptionId    string
	ResourceGroupName string
	ServiceName       string
	DiagnosticId      string
}

DiagnosticId is a struct representing the Resource ID for a Diagnostic

func NewDiagnosticID

func NewDiagnosticID(subscriptionId string, resourceGroupName string, serviceName string, diagnosticId string) DiagnosticId

NewDiagnosticID returns a new DiagnosticId struct

func ParseDiagnosticID

func ParseDiagnosticID(input string) (*DiagnosticId, error)

ParseDiagnosticID parses 'input' into a DiagnosticId

func ParseDiagnosticIDInsensitively

func ParseDiagnosticIDInsensitively(input string) (*DiagnosticId, error)

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

func (*DiagnosticId) FromParseResult

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

func (DiagnosticId) ID

func (id DiagnosticId) ID() string

ID returns the formatted Diagnostic ID

func (DiagnosticId) Segments

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

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

func (DiagnosticId) String

func (id DiagnosticId) String() string

String returns a human-readable description of this Diagnostic ID

type DiagnosticUpdateContract

type DiagnosticUpdateContract struct {
	Id         *string                             `json:"id,omitempty"`
	Name       *string                             `json:"name,omitempty"`
	Properties *DiagnosticContractUpdateProperties `json:"properties,omitempty"`
	Type       *string                             `json:"type,omitempty"`
}

type GetEntityTagOperationResponse

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

type GetOperationResponse

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

type HTTPCorrelationProtocol

type HTTPCorrelationProtocol string
const (
	HTTPCorrelationProtocolLegacy  HTTPCorrelationProtocol = "Legacy"
	HTTPCorrelationProtocolNone    HTTPCorrelationProtocol = "None"
	HTTPCorrelationProtocolWThreeC HTTPCorrelationProtocol = "W3C"
)

func (*HTTPCorrelationProtocol) UnmarshalJSON

func (s *HTTPCorrelationProtocol) UnmarshalJSON(bytes []byte) error

type HTTPMessageDiagnostic

type HTTPMessageDiagnostic struct {
	Body        *BodyDiagnosticSettings `json:"body,omitempty"`
	DataMasking *DataMasking            `json:"dataMasking,omitempty"`
	Headers     *[]string               `json:"headers,omitempty"`
}

type ListByServiceCompleteResult

type ListByServiceCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []DiagnosticContract
}

type ListByServiceCustomPager

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

type ListByServiceOperationOptions

type ListByServiceOperationOptions struct {
	Filter *string
	Skip   *int64
	Top    *int64
}

func DefaultListByServiceOperationOptions

func DefaultListByServiceOperationOptions() ListByServiceOperationOptions

func (ListByServiceOperationOptions) ToHeaders

func (ListByServiceOperationOptions) ToOData

func (ListByServiceOperationOptions) ToQuery

type ListByServiceOperationResponse

type ListByServiceOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]DiagnosticContract
}

type OperationNameFormat

type OperationNameFormat string
const (
	OperationNameFormatName OperationNameFormat = "Name"
	OperationNameFormatURL  OperationNameFormat = "Url"
)

func (*OperationNameFormat) UnmarshalJSON

func (s *OperationNameFormat) UnmarshalJSON(bytes []byte) error

type PipelineDiagnosticSettings

type PipelineDiagnosticSettings struct {
	Request  *HTTPMessageDiagnostic `json:"request,omitempty"`
	Response *HTTPMessageDiagnostic `json:"response,omitempty"`
}

type SamplingSettings

type SamplingSettings struct {
	Percentage   *float64      `json:"percentage,omitempty"`
	SamplingType *SamplingType `json:"samplingType,omitempty"`
}

type SamplingType

type SamplingType string
const (
	SamplingTypeFixed SamplingType = "fixed"
)

func (*SamplingType) UnmarshalJSON

func (s *SamplingType) UnmarshalJSON(bytes []byte) error

type ServiceId

type ServiceId struct {
	SubscriptionId    string
	ResourceGroupName string
	ServiceName       string
}

ServiceId is a struct representing the Resource ID for a Service

func NewServiceID

func NewServiceID(subscriptionId string, resourceGroupName string, serviceName string) ServiceId

NewServiceID returns a new ServiceId struct

func ParseServiceID

func ParseServiceID(input string) (*ServiceId, error)

ParseServiceID parses 'input' into a ServiceId

func ParseServiceIDInsensitively

func ParseServiceIDInsensitively(input string) (*ServiceId, error)

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

func (*ServiceId) FromParseResult

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

func (ServiceId) ID

func (id ServiceId) ID() string

ID returns the formatted Service ID

func (ServiceId) Segments

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

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

func (ServiceId) String

func (id ServiceId) String() string

String returns a human-readable description of this Service ID

type UpdateOperationOptions

type UpdateOperationOptions struct {
	IfMatch *string
}

func DefaultUpdateOperationOptions

func DefaultUpdateOperationOptions() UpdateOperationOptions

func (UpdateOperationOptions) ToHeaders

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

func (UpdateOperationOptions) ToOData

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

func (UpdateOperationOptions) ToQuery

type UpdateOperationResponse

type UpdateOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *DiagnosticContract
}

type Verbosity

type Verbosity string
const (
	VerbosityError       Verbosity = "error"
	VerbosityInformation Verbosity = "information"
	VerbosityVerbose     Verbosity = "verbose"
)

func (*Verbosity) UnmarshalJSON

func (s *Verbosity) UnmarshalJSON(bytes []byte) error

type WorkspaceDiagnosticCreateOrUpdateOperationOptions

type WorkspaceDiagnosticCreateOrUpdateOperationOptions struct {
	IfMatch *string
}

func DefaultWorkspaceDiagnosticCreateOrUpdateOperationOptions

func DefaultWorkspaceDiagnosticCreateOrUpdateOperationOptions() WorkspaceDiagnosticCreateOrUpdateOperationOptions

func (WorkspaceDiagnosticCreateOrUpdateOperationOptions) ToHeaders

func (WorkspaceDiagnosticCreateOrUpdateOperationOptions) ToOData

func (WorkspaceDiagnosticCreateOrUpdateOperationOptions) ToQuery

type WorkspaceDiagnosticCreateOrUpdateOperationResponse

type WorkspaceDiagnosticCreateOrUpdateOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *DiagnosticContract
}

type WorkspaceDiagnosticDeleteOperationOptions

type WorkspaceDiagnosticDeleteOperationOptions struct {
	IfMatch *string
}

func DefaultWorkspaceDiagnosticDeleteOperationOptions

func DefaultWorkspaceDiagnosticDeleteOperationOptions() WorkspaceDiagnosticDeleteOperationOptions

func (WorkspaceDiagnosticDeleteOperationOptions) ToHeaders

func (WorkspaceDiagnosticDeleteOperationOptions) ToOData

func (WorkspaceDiagnosticDeleteOperationOptions) ToQuery

type WorkspaceDiagnosticDeleteOperationResponse

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

type WorkspaceDiagnosticGetEntityTagOperationResponse

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

type WorkspaceDiagnosticGetOperationResponse

type WorkspaceDiagnosticGetOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *DiagnosticContract
}

type WorkspaceDiagnosticId

type WorkspaceDiagnosticId struct {
	SubscriptionId    string
	ResourceGroupName string
	ServiceName       string
	WorkspaceId       string
	DiagnosticId      string
}

WorkspaceDiagnosticId is a struct representing the Resource ID for a Workspace Diagnostic

func NewWorkspaceDiagnosticID

func NewWorkspaceDiagnosticID(subscriptionId string, resourceGroupName string, serviceName string, workspaceId string, diagnosticId string) WorkspaceDiagnosticId

NewWorkspaceDiagnosticID returns a new WorkspaceDiagnosticId struct

func ParseWorkspaceDiagnosticID

func ParseWorkspaceDiagnosticID(input string) (*WorkspaceDiagnosticId, error)

ParseWorkspaceDiagnosticID parses 'input' into a WorkspaceDiagnosticId

func ParseWorkspaceDiagnosticIDInsensitively

func ParseWorkspaceDiagnosticIDInsensitively(input string) (*WorkspaceDiagnosticId, error)

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

func (*WorkspaceDiagnosticId) FromParseResult

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

func (WorkspaceDiagnosticId) ID

func (id WorkspaceDiagnosticId) ID() string

ID returns the formatted Workspace Diagnostic ID

func (WorkspaceDiagnosticId) Segments

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

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

func (WorkspaceDiagnosticId) String

func (id WorkspaceDiagnosticId) String() string

String returns a human-readable description of this Workspace Diagnostic ID

type WorkspaceDiagnosticListByWorkspaceCompleteResult

type WorkspaceDiagnosticListByWorkspaceCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []DiagnosticContract
}

type WorkspaceDiagnosticListByWorkspaceCustomPager

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

type WorkspaceDiagnosticListByWorkspaceOperationOptions

type WorkspaceDiagnosticListByWorkspaceOperationOptions struct {
	Filter *string
	Skip   *int64
	Top    *int64
}

func DefaultWorkspaceDiagnosticListByWorkspaceOperationOptions

func DefaultWorkspaceDiagnosticListByWorkspaceOperationOptions() WorkspaceDiagnosticListByWorkspaceOperationOptions

func (WorkspaceDiagnosticListByWorkspaceOperationOptions) ToHeaders

func (WorkspaceDiagnosticListByWorkspaceOperationOptions) ToOData

func (WorkspaceDiagnosticListByWorkspaceOperationOptions) ToQuery

type WorkspaceDiagnosticListByWorkspaceOperationResponse

type WorkspaceDiagnosticListByWorkspaceOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]DiagnosticContract
}

type WorkspaceDiagnosticUpdateOperationOptions

type WorkspaceDiagnosticUpdateOperationOptions struct {
	IfMatch *string
}

func DefaultWorkspaceDiagnosticUpdateOperationOptions

func DefaultWorkspaceDiagnosticUpdateOperationOptions() WorkspaceDiagnosticUpdateOperationOptions

func (WorkspaceDiagnosticUpdateOperationOptions) ToHeaders

func (WorkspaceDiagnosticUpdateOperationOptions) ToOData

func (WorkspaceDiagnosticUpdateOperationOptions) ToQuery

type WorkspaceDiagnosticUpdateOperationResponse

type WorkspaceDiagnosticUpdateOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *DiagnosticContract
}

type WorkspaceId

type WorkspaceId struct {
	SubscriptionId    string
	ResourceGroupName string
	ServiceName       string
	WorkspaceId       string
}

WorkspaceId is a struct representing the Resource ID for a Workspace

func NewWorkspaceID

func NewWorkspaceID(subscriptionId string, resourceGroupName string, serviceName string, workspaceId 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

Jump to

Keyboard shortcuts

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