partnerbillingusageunbilled

package
v0.20241126.2320 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2024 License: MPL-2.0 Imports: 10 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/microsoft-graph/reports/stable/partnerbillingusageunbilled Documentation

The partnerbillingusageunbilled SDK allows for interaction with Microsoft Graph reports (API Version stable).

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/microsoft-graph/reports/stable/partnerbillingusageunbilled"

Client Initialization

client := partnerbillingusageunbilled.NewPartnerBillingUsageUnbilledClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: PartnerBillingUsageUnbilledClient.CreatePartnerBillingUsageUnbilledExport

ctx := context.TODO()

payload := partnerbillingusageunbilled.CreatePartnerBillingUsageUnbilledExportRequest{
	// ...
}


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

Example Usage: PartnerBillingUsageUnbilledClient.DeletePartnerBillingUsageUnbilled

ctx := context.TODO()


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

Example Usage: PartnerBillingUsageUnbilledClient.GetPartnerBillingUsageUnbilled

ctx := context.TODO()


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

Example Usage: PartnerBillingUsageUnbilledClient.UpdatePartnerBillingUsageUnbilled

ctx := context.TODO()

payload := partnerbillingusageunbilled.PartnersBillingUnbilledUsage{
	// ...
}


read, err := client.UpdatePartnerBillingUsageUnbilled(ctx, payload, partnerbillingusageunbilled.DefaultUpdatePartnerBillingUsageUnbilledOperationOptions())
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

This section is empty.

Types

type CreatePartnerBillingUsageUnbilledExportOperationOptions

type CreatePartnerBillingUsageUnbilledExportOperationOptions struct {
	Metadata  *odata.Metadata
	RetryFunc client.RequestRetryFunc
}

func (CreatePartnerBillingUsageUnbilledExportOperationOptions) ToHeaders

func (CreatePartnerBillingUsageUnbilledExportOperationOptions) ToOData

func (CreatePartnerBillingUsageUnbilledExportOperationOptions) ToQuery

type CreatePartnerBillingUsageUnbilledExportOperationResponse

type CreatePartnerBillingUsageUnbilledExportOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        stable.PartnersBillingOperation
}

type CreatePartnerBillingUsageUnbilledExportRequest

type CreatePartnerBillingUsageUnbilledExportRequest struct {
	AttributeSet  *stable.PartnersBillingAttributeSet  `json:"attributeSet,omitempty"`
	BillingPeriod *stable.PartnersBillingBillingPeriod `json:"billingPeriod,omitempty"`
	CurrencyCode  nullable.Type[string]                `json:"currencyCode,omitempty"`
}

type DeletePartnerBillingUsageUnbilledOperationOptions

type DeletePartnerBillingUsageUnbilledOperationOptions struct {
	IfMatch   *string
	Metadata  *odata.Metadata
	RetryFunc client.RequestRetryFunc
}

func DefaultDeletePartnerBillingUsageUnbilledOperationOptions

func DefaultDeletePartnerBillingUsageUnbilledOperationOptions() DeletePartnerBillingUsageUnbilledOperationOptions

func (DeletePartnerBillingUsageUnbilledOperationOptions) ToHeaders

func (DeletePartnerBillingUsageUnbilledOperationOptions) ToOData

func (DeletePartnerBillingUsageUnbilledOperationOptions) ToQuery

type DeletePartnerBillingUsageUnbilledOperationResponse

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

type GetPartnerBillingUsageUnbilledOperationOptions

type GetPartnerBillingUsageUnbilledOperationOptions struct {
	Expand    *odata.Expand
	Metadata  *odata.Metadata
	RetryFunc client.RequestRetryFunc
	Select    *[]string
}

func DefaultGetPartnerBillingUsageUnbilledOperationOptions

func DefaultGetPartnerBillingUsageUnbilledOperationOptions() GetPartnerBillingUsageUnbilledOperationOptions

func (GetPartnerBillingUsageUnbilledOperationOptions) ToHeaders

func (GetPartnerBillingUsageUnbilledOperationOptions) ToOData

func (GetPartnerBillingUsageUnbilledOperationOptions) ToQuery

type GetPartnerBillingUsageUnbilledOperationResponse

type GetPartnerBillingUsageUnbilledOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *stable.PartnersBillingUnbilledUsage
}

type PartnerBillingUsageUnbilledClient

type PartnerBillingUsageUnbilledClient struct {
	Client *msgraph.Client
}

func NewPartnerBillingUsageUnbilledClientWithBaseURI

func NewPartnerBillingUsageUnbilledClientWithBaseURI(sdkApi sdkEnv.Api) (*PartnerBillingUsageUnbilledClient, error)

func (PartnerBillingUsageUnbilledClient) CreatePartnerBillingUsageUnbilledExport

CreatePartnerBillingUsageUnbilledExport - Invoke action export. Export unbilled Azure usage data for a specific billing period and currency.

func (PartnerBillingUsageUnbilledClient) DeletePartnerBillingUsageUnbilled

DeletePartnerBillingUsageUnbilled - Delete navigation property unbilled for reports

func (PartnerBillingUsageUnbilledClient) GetPartnerBillingUsageUnbilled

GetPartnerBillingUsageUnbilled - Get unbilled from reports. Represents details for unbilled Azure usage data.

func (PartnerBillingUsageUnbilledClient) UpdatePartnerBillingUsageUnbilled

UpdatePartnerBillingUsageUnbilled - Update the navigation property unbilled in reports

type UpdatePartnerBillingUsageUnbilledOperationOptions

type UpdatePartnerBillingUsageUnbilledOperationOptions struct {
	Metadata  *odata.Metadata
	RetryFunc client.RequestRetryFunc
}

func DefaultUpdatePartnerBillingUsageUnbilledOperationOptions

func DefaultUpdatePartnerBillingUsageUnbilledOperationOptions() UpdatePartnerBillingUsageUnbilledOperationOptions

func (UpdatePartnerBillingUsageUnbilledOperationOptions) ToHeaders

func (UpdatePartnerBillingUsageUnbilledOperationOptions) ToOData

func (UpdatePartnerBillingUsageUnbilledOperationOptions) ToQuery

type UpdatePartnerBillingUsageUnbilledOperationResponse

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

Jump to

Keyboard shortcuts

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