README ¶
github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/singlesignon
Documentation
The singlesignon
SDK allows for interaction with Azure Resource Manager datadog
(API Version 2021-03-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/datadog/2021-03-01/singlesignon"
Client Initialization
client := singlesignon.NewSingleSignOnClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer
Example Usage: SingleSignOnClient.ConfigurationsCreateOrUpdate
ctx := context.TODO()
id := singlesignon.NewSingleSignOnConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "monitorName", "configurationName")
payload := singlesignon.DatadogSingleSignOnResource{
// ...
}
if err := client.ConfigurationsCreateOrUpdateThenPoll(ctx, id, payload); err != nil {
// handle the error
}
Example Usage: SingleSignOnClient.ConfigurationsGet
ctx := context.TODO()
id := singlesignon.NewSingleSignOnConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "monitorName", "configurationName")
read, err := client.ConfigurationsGet(ctx, id)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: SingleSignOnClient.ConfigurationsList
ctx := context.TODO()
id := singlesignon.NewMonitorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "monitorName")
// alternatively `client.ConfigurationsList(ctx, id)` can be used to do batched pagination
items, err := client.ConfigurationsListComplete(ctx, id)
if err != nil {
// handle the error
}
for _, item := range items {
// do something
}
Documentation ¶
Index ¶
- func PossibleValuesForProvisioningState() []string
- func PossibleValuesForSingleSignOnStates() []string
- func ValidateMonitorID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateSingleSignOnConfigurationID(input interface{}, key string) (warnings []string, errors []error)
- type ConfigurationsCreateOrUpdateOperationResponse
- type ConfigurationsGetOperationResponse
- type ConfigurationsListCompleteResult
- type ConfigurationsListCustomPager
- type ConfigurationsListOperationResponse
- type DatadogSingleSignOnProperties
- type DatadogSingleSignOnResource
- type DatadogSingleSignOnResourceOperationPredicate
- type MonitorId
- type ProvisioningState
- type SingleSignOnClient
- func (c SingleSignOnClient) ConfigurationsCreateOrUpdate(ctx context.Context, id SingleSignOnConfigurationId, ...) (result ConfigurationsCreateOrUpdateOperationResponse, err error)
- func (c SingleSignOnClient) ConfigurationsCreateOrUpdateThenPoll(ctx context.Context, id SingleSignOnConfigurationId, ...) error
- func (c SingleSignOnClient) ConfigurationsGet(ctx context.Context, id SingleSignOnConfigurationId) (result ConfigurationsGetOperationResponse, err error)
- func (c SingleSignOnClient) ConfigurationsList(ctx context.Context, id MonitorId) (result ConfigurationsListOperationResponse, err error)
- func (c SingleSignOnClient) ConfigurationsListComplete(ctx context.Context, id MonitorId) (ConfigurationsListCompleteResult, error)
- func (c SingleSignOnClient) ConfigurationsListCompleteMatchingPredicate(ctx context.Context, id MonitorId, ...) (result ConfigurationsListCompleteResult, err error)
- type SingleSignOnConfigurationId
- func NewSingleSignOnConfigurationID(subscriptionId string, resourceGroupName string, monitorName string, ...) SingleSignOnConfigurationId
- func ParseSingleSignOnConfigurationID(input string) (*SingleSignOnConfigurationId, error)
- func ParseSingleSignOnConfigurationIDInsensitively(input string) (*SingleSignOnConfigurationId, error)
- type SingleSignOnStates
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForProvisioningState ¶
func PossibleValuesForProvisioningState() []string
func PossibleValuesForSingleSignOnStates ¶
func PossibleValuesForSingleSignOnStates() []string
func ValidateMonitorID ¶
ValidateMonitorID checks that 'input' can be parsed as a Monitor ID
func ValidateSingleSignOnConfigurationID ¶
func ValidateSingleSignOnConfigurationID(input interface{}, key string) (warnings []string, errors []error)
ValidateSingleSignOnConfigurationID checks that 'input' can be parsed as a Single Sign On Configuration ID
Types ¶
type ConfigurationsGetOperationResponse ¶
type ConfigurationsGetOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *DatadogSingleSignOnResource }
type ConfigurationsListCompleteResult ¶
type ConfigurationsListCompleteResult struct { LatestHttpResponse *http.Response Items []DatadogSingleSignOnResource }
type ConfigurationsListCustomPager ¶ added in v0.20240628.1153531
func (*ConfigurationsListCustomPager) NextPageLink ¶ added in v0.20240628.1153531
func (p *ConfigurationsListCustomPager) NextPageLink() *odata.Link
type ConfigurationsListOperationResponse ¶
type ConfigurationsListOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]DatadogSingleSignOnResource }
type DatadogSingleSignOnProperties ¶
type DatadogSingleSignOnProperties struct { EnterpriseAppId *string `json:"enterpriseAppId,omitempty"` ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` SingleSignOnState *SingleSignOnStates `json:"singleSignOnState,omitempty"` SingleSignOnUrl *string `json:"singleSignOnUrl,omitempty"` }
type DatadogSingleSignOnResource ¶
type DatadogSingleSignOnResource struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties *DatadogSingleSignOnProperties `json:"properties,omitempty"` SystemData *systemdata.SystemData `json:"systemData,omitempty"` Type *string `json:"type,omitempty"` }
type DatadogSingleSignOnResourceOperationPredicate ¶
func (DatadogSingleSignOnResourceOperationPredicate) Matches ¶
func (p DatadogSingleSignOnResourceOperationPredicate) Matches(input DatadogSingleSignOnResource) bool
type MonitorId ¶
MonitorId is a struct representing the Resource ID for a Monitor
func NewMonitorID ¶
NewMonitorID returns a new MonitorId struct
func ParseMonitorID ¶
ParseMonitorID parses 'input' into a MonitorId
func ParseMonitorIDInsensitively ¶
ParseMonitorIDInsensitively parses 'input' case-insensitively into a MonitorId note: this method should only be used for API response data and not user input
func (*MonitorId) FromParseResult ¶
func (id *MonitorId) FromParseResult(input resourceids.ParseResult) error
func (MonitorId) Segments ¶
func (id MonitorId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Monitor ID
type ProvisioningState ¶
type ProvisioningState string
const ( ProvisioningStateAccepted ProvisioningState = "Accepted" ProvisioningStateCanceled ProvisioningState = "Canceled" ProvisioningStateCreating ProvisioningState = "Creating" ProvisioningStateDeleted ProvisioningState = "Deleted" ProvisioningStateDeleting ProvisioningState = "Deleting" ProvisioningStateFailed ProvisioningState = "Failed" ProvisioningStateNotSpecified ProvisioningState = "NotSpecified" ProvisioningStateSucceeded ProvisioningState = "Succeeded" ProvisioningStateUpdating ProvisioningState = "Updating" )
func (*ProvisioningState) UnmarshalJSON ¶
func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error
type SingleSignOnClient ¶
type SingleSignOnClient struct {
Client *resourcemanager.Client
}
func NewSingleSignOnClientWithBaseURI ¶
func NewSingleSignOnClientWithBaseURI(sdkApi sdkEnv.Api) (*SingleSignOnClient, error)
func (SingleSignOnClient) ConfigurationsCreateOrUpdate ¶
func (c SingleSignOnClient) ConfigurationsCreateOrUpdate(ctx context.Context, id SingleSignOnConfigurationId, input DatadogSingleSignOnResource) (result ConfigurationsCreateOrUpdateOperationResponse, err error)
ConfigurationsCreateOrUpdate ...
func (SingleSignOnClient) ConfigurationsCreateOrUpdateThenPoll ¶
func (c SingleSignOnClient) ConfigurationsCreateOrUpdateThenPoll(ctx context.Context, id SingleSignOnConfigurationId, input DatadogSingleSignOnResource) error
ConfigurationsCreateOrUpdateThenPoll performs ConfigurationsCreateOrUpdate then polls until it's completed
func (SingleSignOnClient) ConfigurationsGet ¶
func (c SingleSignOnClient) ConfigurationsGet(ctx context.Context, id SingleSignOnConfigurationId) (result ConfigurationsGetOperationResponse, err error)
ConfigurationsGet ...
func (SingleSignOnClient) ConfigurationsList ¶
func (c SingleSignOnClient) ConfigurationsList(ctx context.Context, id MonitorId) (result ConfigurationsListOperationResponse, err error)
ConfigurationsList ...
func (SingleSignOnClient) ConfigurationsListComplete ¶
func (c SingleSignOnClient) ConfigurationsListComplete(ctx context.Context, id MonitorId) (ConfigurationsListCompleteResult, error)
ConfigurationsListComplete retrieves all the results into a single object
func (SingleSignOnClient) ConfigurationsListCompleteMatchingPredicate ¶
func (c SingleSignOnClient) ConfigurationsListCompleteMatchingPredicate(ctx context.Context, id MonitorId, predicate DatadogSingleSignOnResourceOperationPredicate) (result ConfigurationsListCompleteResult, err error)
ConfigurationsListCompleteMatchingPredicate retrieves all the results and then applies the predicate
type SingleSignOnConfigurationId ¶
type SingleSignOnConfigurationId struct { SubscriptionId string ResourceGroupName string MonitorName string SingleSignOnConfigurationName string }
SingleSignOnConfigurationId is a struct representing the Resource ID for a Single Sign On Configuration
func NewSingleSignOnConfigurationID ¶
func NewSingleSignOnConfigurationID(subscriptionId string, resourceGroupName string, monitorName string, singleSignOnConfigurationName string) SingleSignOnConfigurationId
NewSingleSignOnConfigurationID returns a new SingleSignOnConfigurationId struct
func ParseSingleSignOnConfigurationID ¶
func ParseSingleSignOnConfigurationID(input string) (*SingleSignOnConfigurationId, error)
ParseSingleSignOnConfigurationID parses 'input' into a SingleSignOnConfigurationId
func ParseSingleSignOnConfigurationIDInsensitively ¶
func ParseSingleSignOnConfigurationIDInsensitively(input string) (*SingleSignOnConfigurationId, error)
ParseSingleSignOnConfigurationIDInsensitively parses 'input' case-insensitively into a SingleSignOnConfigurationId note: this method should only be used for API response data and not user input
func (*SingleSignOnConfigurationId) FromParseResult ¶
func (id *SingleSignOnConfigurationId) FromParseResult(input resourceids.ParseResult) error
func (SingleSignOnConfigurationId) ID ¶
func (id SingleSignOnConfigurationId) ID() string
ID returns the formatted Single Sign On Configuration ID
func (SingleSignOnConfigurationId) Segments ¶
func (id SingleSignOnConfigurationId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Single Sign On Configuration ID
func (SingleSignOnConfigurationId) String ¶
func (id SingleSignOnConfigurationId) String() string
String returns a human-readable description of this Single Sign On Configuration ID
type SingleSignOnStates ¶
type SingleSignOnStates string
const ( SingleSignOnStatesDisable SingleSignOnStates = "Disable" SingleSignOnStatesEnable SingleSignOnStates = "Enable" SingleSignOnStatesExisting SingleSignOnStates = "Existing" SingleSignOnStatesInitial SingleSignOnStates = "Initial" )
func (*SingleSignOnStates) UnmarshalJSON ¶
func (s *SingleSignOnStates) UnmarshalJSON(bytes []byte) error