resubscribe

package
v0.20241023.1122425 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2024 License: MPL-2.0 Imports: 16 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/resource-manager/newrelic/2024-10-01/resubscribe Documentation

The resubscribe SDK allows for interaction with Azure Resource Manager newrelic (API Version 2024-10-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/newrelic/2024-10-01/resubscribe"

Client Initialization

client := resubscribe.NewResubscribeClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: ResubscribeClient.MonitorsResubscribe

ctx := context.TODO()
id := resubscribe.NewMonitorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "monitorName")

payload := resubscribe.ResubscribeProperties{
	// ...
}


if err := client.MonitorsResubscribeThenPoll(ctx, id, payload); err != nil {
	// handle the error
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PossibleValuesForAccountCreationSource

func PossibleValuesForAccountCreationSource() []string

func PossibleValuesForLiftrResourceCategories

func PossibleValuesForLiftrResourceCategories() []string

func PossibleValuesForMarketplaceSubscriptionStatus

func PossibleValuesForMarketplaceSubscriptionStatus() []string

func PossibleValuesForMonitoringStatus

func PossibleValuesForMonitoringStatus() []string

func PossibleValuesForOrgCreationSource

func PossibleValuesForOrgCreationSource() []string

func PossibleValuesForProvisioningState

func PossibleValuesForProvisioningState() []string

func PossibleValuesForSingleSignOnStates

func PossibleValuesForSingleSignOnStates() []string

func PossibleValuesForUsageType

func PossibleValuesForUsageType() []string

func ValidateMonitorID

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

ValidateMonitorID checks that 'input' can be parsed as a Monitor ID

Types

type AccountCreationSource

type AccountCreationSource string
const (
	AccountCreationSourceLIFTR    AccountCreationSource = "LIFTR"
	AccountCreationSourceNEWRELIC AccountCreationSource = "NEWRELIC"
)

func (*AccountCreationSource) UnmarshalJSON

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

type AccountInfo

type AccountInfo struct {
	AccountId    *string `json:"accountId,omitempty"`
	IngestionKey *string `json:"ingestionKey,omitempty"`
	Region       *string `json:"region,omitempty"`
}

type LiftrResourceCategories

type LiftrResourceCategories string
const (
	LiftrResourceCategoriesMonitorLogs LiftrResourceCategories = "MonitorLogs"
	LiftrResourceCategoriesUnknown     LiftrResourceCategories = "Unknown"
)

func (*LiftrResourceCategories) UnmarshalJSON

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

type MarketplaceSubscriptionStatus

type MarketplaceSubscriptionStatus string
const (
	MarketplaceSubscriptionStatusActive    MarketplaceSubscriptionStatus = "Active"
	MarketplaceSubscriptionStatusSuspended MarketplaceSubscriptionStatus = "Suspended"
)

func (*MarketplaceSubscriptionStatus) UnmarshalJSON

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

type MonitorId

type MonitorId struct {
	SubscriptionId    string
	ResourceGroupName string
	MonitorName       string
}

MonitorId is a struct representing the Resource ID for a Monitor

func NewMonitorID

func NewMonitorID(subscriptionId string, resourceGroupName string, monitorName string) MonitorId

NewMonitorID returns a new MonitorId struct

func ParseMonitorID

func ParseMonitorID(input string) (*MonitorId, error)

ParseMonitorID parses 'input' into a MonitorId

func ParseMonitorIDInsensitively

func ParseMonitorIDInsensitively(input string) (*MonitorId, error)

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

func (id MonitorId) ID() string

ID returns the formatted Monitor ID

func (MonitorId) Segments

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

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

func (MonitorId) String

func (id MonitorId) String() string

String returns a human-readable description of this Monitor ID

type MonitorProperties

type MonitorProperties struct {
	AccountCreationSource         *AccountCreationSource         `json:"accountCreationSource,omitempty"`
	LiftrResourceCategory         *LiftrResourceCategories       `json:"liftrResourceCategory,omitempty"`
	LiftrResourcePreference       *int64                         `json:"liftrResourcePreference,omitempty"`
	MarketplaceSubscriptionId     *string                        `json:"marketplaceSubscriptionId,omitempty"`
	MarketplaceSubscriptionStatus *MarketplaceSubscriptionStatus `json:"marketplaceSubscriptionStatus,omitempty"`
	MonitoringStatus              *MonitoringStatus              `json:"monitoringStatus,omitempty"`
	NewRelicAccountProperties     *NewRelicAccountProperties     `json:"newRelicAccountProperties,omitempty"`
	OrgCreationSource             *OrgCreationSource             `json:"orgCreationSource,omitempty"`
	PlanData                      *PlanData                      `json:"planData,omitempty"`
	ProvisioningState             *ProvisioningState             `json:"provisioningState,omitempty"`
	SaaSAzureSubscriptionStatus   *string                        `json:"saaSAzureSubscriptionStatus,omitempty"`
	SubscriptionState             *string                        `json:"subscriptionState,omitempty"`
	UserInfo                      *UserInfo                      `json:"userInfo,omitempty"`
}

type MonitoringStatus

type MonitoringStatus string
const (
	MonitoringStatusDisabled MonitoringStatus = "Disabled"
	MonitoringStatusEnabled  MonitoringStatus = "Enabled"
)

func (*MonitoringStatus) UnmarshalJSON

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

type MonitorsResubscribeOperationResponse

type MonitorsResubscribeOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *NewRelicMonitorResource
}

type NewRelicAccountProperties

type NewRelicAccountProperties struct {
	AccountInfo            *AccountInfo                    `json:"accountInfo,omitempty"`
	OrganizationInfo       *OrganizationInfo               `json:"organizationInfo,omitempty"`
	SingleSignOnProperties *NewRelicSingleSignOnProperties `json:"singleSignOnProperties,omitempty"`
	UserId                 *string                         `json:"userId,omitempty"`
}

type NewRelicMonitorResource

type NewRelicMonitorResource struct {
	Id         *string                            `json:"id,omitempty"`
	Identity   *identity.SystemAndUserAssignedMap `json:"identity,omitempty"`
	Location   string                             `json:"location"`
	Name       *string                            `json:"name,omitempty"`
	Properties MonitorProperties                  `json:"properties"`
	SystemData *systemdata.SystemData             `json:"systemData,omitempty"`
	Tags       *map[string]string                 `json:"tags,omitempty"`
	Type       *string                            `json:"type,omitempty"`
}

type NewRelicSingleSignOnProperties

type NewRelicSingleSignOnProperties struct {
	EnterpriseAppId   *string             `json:"enterpriseAppId,omitempty"`
	ProvisioningState *ProvisioningState  `json:"provisioningState,omitempty"`
	SingleSignOnState *SingleSignOnStates `json:"singleSignOnState,omitempty"`
	SingleSignOnURL   *string             `json:"singleSignOnUrl,omitempty"`
}

type OrgCreationSource

type OrgCreationSource string
const (
	OrgCreationSourceLIFTR    OrgCreationSource = "LIFTR"
	OrgCreationSourceNEWRELIC OrgCreationSource = "NEWRELIC"
)

func (*OrgCreationSource) UnmarshalJSON

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

type OrganizationInfo

type OrganizationInfo struct {
	OrganizationId *string `json:"organizationId,omitempty"`
}

type PlanData

type PlanData struct {
	BillingCycle  *string    `json:"billingCycle,omitempty"`
	EffectiveDate *string    `json:"effectiveDate,omitempty"`
	PlanDetails   *string    `json:"planDetails,omitempty"`
	UsageType     *UsageType `json:"usageType,omitempty"`
}

func (*PlanData) GetEffectiveDateAsTime

func (o *PlanData) GetEffectiveDateAsTime() (*time.Time, error)

func (*PlanData) SetEffectiveDateAsTime

func (o *PlanData) SetEffectiveDateAsTime(input time.Time)

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 ResubscribeClient

type ResubscribeClient struct {
	Client *resourcemanager.Client
}

func NewResubscribeClientWithBaseURI

func NewResubscribeClientWithBaseURI(sdkApi sdkEnv.Api) (*ResubscribeClient, error)

func (ResubscribeClient) MonitorsResubscribe

MonitorsResubscribe ...

func (ResubscribeClient) MonitorsResubscribeThenPoll

func (c ResubscribeClient) MonitorsResubscribeThenPoll(ctx context.Context, id MonitorId, input ResubscribeProperties) error

MonitorsResubscribeThenPoll performs MonitorsResubscribe then polls until it's completed

type ResubscribeProperties

type ResubscribeProperties struct {
	OfferId        *string `json:"offerId,omitempty"`
	OrganizationId *string `json:"organizationId,omitempty"`
	PlanId         *string `json:"planId,omitempty"`
	PublisherId    *string `json:"publisherId,omitempty"`
	ResourceGroup  *string `json:"resourceGroup,omitempty"`
	SubscriptionId *string `json:"subscriptionId,omitempty"`
	TermId         *string `json:"termId,omitempty"`
}

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

type UsageType

type UsageType string
const (
	UsageTypeCOMMITTED UsageType = "COMMITTED"
	UsageTypePAYG      UsageType = "PAYG"
)

func (*UsageType) UnmarshalJSON

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

type UserInfo

type UserInfo struct {
	Country      *string `json:"country,omitempty"`
	EmailAddress *string `json:"emailAddress,omitempty"`
	FirstName    *string `json:"firstName,omitempty"`
	LastName     *string `json:"lastName,omitempty"`
	PhoneNumber  *string `json:"phoneNumber,omitempty"`
}

Jump to

Keyboard shortcuts

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