agreements

package
v0.20230315.1105537 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2023 License: MPL-2.0 Imports: 10 Imported by: 1

README

github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/agreements Documentation

The agreements SDK allows for interaction with the Azure Resource Manager Service 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/agreements"

Client Initialization

client := agreements.NewAgreementsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: AgreementsClient.MarketplaceAgreementsCreateOrUpdate

ctx := context.TODO()
id := agreements.NewSubscriptionID("12345678-1234-9876-4563-123456789012")

payload := agreements.DatadogAgreementResource{
	// ...
}


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

Example Usage: AgreementsClient.MarketplaceAgreementsList

ctx := context.TODO()
id := agreements.NewSubscriptionID("12345678-1234-9876-4563-123456789012")

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

This section is empty.

Types

type AgreementsClient

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

func NewAgreementsClientWithBaseURI

func NewAgreementsClientWithBaseURI(endpoint string) AgreementsClient

func (AgreementsClient) MarketplaceAgreementsCreateOrUpdate

MarketplaceAgreementsCreateOrUpdate ...

func (AgreementsClient) MarketplaceAgreementsList

MarketplaceAgreementsList ...

func (AgreementsClient) MarketplaceAgreementsListComplete

MarketplaceAgreementsListComplete retrieves all of the results into a single object

func (AgreementsClient) MarketplaceAgreementsListCompleteMatchingPredicate

func (c AgreementsClient) MarketplaceAgreementsListCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate DatadogAgreementResourceOperationPredicate) (resp MarketplaceAgreementsListCompleteResult, err error)

MarketplaceAgreementsListCompleteMatchingPredicate retrieves all of the results and then applied the predicate

type DatadogAgreementProperties

type DatadogAgreementProperties struct {
	Accepted          *bool   `json:"accepted,omitempty"`
	LicenseTextLink   *string `json:"licenseTextLink,omitempty"`
	Plan              *string `json:"plan,omitempty"`
	PrivacyPolicyLink *string `json:"privacyPolicyLink,omitempty"`
	Product           *string `json:"product,omitempty"`
	Publisher         *string `json:"publisher,omitempty"`
	RetrieveDatetime  *string `json:"retrieveDatetime,omitempty"`
	Signature         *string `json:"signature,omitempty"`
}

func (*DatadogAgreementProperties) GetRetrieveDatetimeAsTime

func (o *DatadogAgreementProperties) GetRetrieveDatetimeAsTime() (*time.Time, error)

func (*DatadogAgreementProperties) SetRetrieveDatetimeAsTime

func (o *DatadogAgreementProperties) SetRetrieveDatetimeAsTime(input time.Time)

type DatadogAgreementResource

type DatadogAgreementResource struct {
	Id         *string                     `json:"id,omitempty"`
	Name       *string                     `json:"name,omitempty"`
	Properties *DatadogAgreementProperties `json:"properties,omitempty"`
	SystemData *systemdata.SystemData      `json:"systemData,omitempty"`
	Type       *string                     `json:"type,omitempty"`
}

type DatadogAgreementResourceOperationPredicate

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

func (DatadogAgreementResourceOperationPredicate) Matches

type MarketplaceAgreementsCreateOrUpdateOperationResponse

type MarketplaceAgreementsCreateOrUpdateOperationResponse struct {
	HttpResponse *http.Response
	Model        *DatadogAgreementResource
}

type MarketplaceAgreementsListCompleteResult

type MarketplaceAgreementsListCompleteResult struct {
	Items []DatadogAgreementResource
}

type MarketplaceAgreementsListOperationResponse

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

func (MarketplaceAgreementsListOperationResponse) HasMore

func (MarketplaceAgreementsListOperationResponse) LoadMore

Jump to

Keyboard shortcuts

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