address

package
v0.20240617.1095803 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2024 License: MPL-2.0 Imports: 9 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/resource-manager/billing/2019-10-01-preview/address Documentation

The address SDK allows for interaction with the Azure Resource Manager Service billing (API Version 2019-10-01-preview).

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/billing/2019-10-01-preview/address"

Client Initialization

client := address.NewAddressClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: AddressClient.Validate

ctx := context.TODO()

payload := address.AddressDetails{
	// ...
}


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

func PossibleValuesForAddressValidationStatus

func PossibleValuesForAddressValidationStatus() []string

Types

type AddressClient

type AddressClient struct {
	Client *resourcemanager.Client
}

func NewAddressClientWithBaseURI

func NewAddressClientWithBaseURI(sdkApi sdkEnv.Api) (*AddressClient, error)

func (AddressClient) Validate

func (c AddressClient) Validate(ctx context.Context, input AddressDetails) (result ValidateOperationResponse, err error)

Validate ...

type AddressDetails

type AddressDetails struct {
	AddressLine1 *string `json:"addressLine1,omitempty"`
	AddressLine2 *string `json:"addressLine2,omitempty"`
	AddressLine3 *string `json:"addressLine3,omitempty"`
	City         *string `json:"city,omitempty"`
	CompanyName  *string `json:"companyName,omitempty"`
	Country      *string `json:"country,omitempty"`
	FirstName    *string `json:"firstName,omitempty"`
	LastName     *string `json:"lastName,omitempty"`
	PostalCode   *string `json:"postalCode,omitempty"`
	Region       *string `json:"region,omitempty"`
}

type AddressValidationStatus

type AddressValidationStatus string
const (
	AddressValidationStatusInvalid AddressValidationStatus = "Invalid"
	AddressValidationStatusValid   AddressValidationStatus = "Valid"
)

func (*AddressValidationStatus) UnmarshalJSON

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

type ValidateAddressResponse

type ValidateAddressResponse struct {
	Status             *AddressValidationStatus `json:"status,omitempty"`
	SuggestedAddresses *[]AddressDetails        `json:"suggestedAddresses,omitempty"`
	ValidationMessage  *string                  `json:"validationMessage,omitempty"`
}

type ValidateOperationResponse

type ValidateOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *ValidateAddressResponse
}

Jump to

Keyboard shortcuts

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