agreements

package
v0.20241021.1074254 Latest Latest
Warning

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

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

README

github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2022-06-01/agreements Documentation

The agreements SDK allows for interaction with Azure Resource Manager datadog (API Version 2022-06-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-helpers/resourcemanager/commonids"
import "github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2022-06-01/agreements"

Client Initialization

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

Example Usage: AgreementsClient.MarketplaceAgreementsCreateOrUpdate

ctx := context.TODO()
id := commonids.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 := commonids.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 *resourcemanager.Client
}

func NewAgreementsClientWithBaseURI

func NewAgreementsClientWithBaseURI(sdkApi sdkEnv.Api) (*AgreementsClient, error)

func (AgreementsClient) MarketplaceAgreementsCreateOrUpdate

MarketplaceAgreementsCreateOrUpdate ...

func (AgreementsClient) MarketplaceAgreementsList

MarketplaceAgreementsList ...

func (AgreementsClient) MarketplaceAgreementsListComplete

MarketplaceAgreementsListComplete retrieves all the results into a single object

func (AgreementsClient) MarketplaceAgreementsListCompleteMatchingPredicate

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

MarketplaceAgreementsListCompleteMatchingPredicate retrieves all the results and then applies 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
	OData        *odata.OData
	Model        *DatadogAgreementResource
}

type MarketplaceAgreementsListCompleteResult

type MarketplaceAgreementsListCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []DatadogAgreementResource
}

type MarketplaceAgreementsListCustomPager added in v0.20240628.1153531

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

type MarketplaceAgreementsListOperationResponse

type MarketplaceAgreementsListOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]DatadogAgreementResource
}

Jump to

Keyboard shortcuts

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