settings

package
v0.20231023.1075029 Latest Latest
Warning

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

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

README

github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2023-08-01/settings Documentation

The settings SDK allows for interaction with the Azure Resource Manager Service costmanagement (API Version 2023-08-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/costmanagement/2023-08-01/settings"

Client Initialization

client := settings.NewSettingsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: SettingsClient.CreateOrUpdateByScope

ctx := context.TODO()
id := settings.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group")

payload := settings.Setting{
	// ...
}


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

Example Usage: SettingsClient.DeleteByScope

ctx := context.TODO()
id := settings.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group")

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

Example Usage: SettingsClient.GetByScope

ctx := context.TODO()
id := settings.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group")

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

Example Usage: SettingsClient.List

ctx := context.TODO()
id := settings.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group")

read, err := client.List(ctx, id)
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 PossibleValuesForSettingsKind

func PossibleValuesForSettingsKind() []string

Types

type CreateOrUpdateByScopeOperationResponse

type CreateOrUpdateByScopeOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *Setting
}

type DeleteByScopeOperationResponse

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

type GetByScopeOperationResponse

type GetByScopeOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *Setting
}

type ListOperationResponse

type ListOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *SettingsListResult
}

type RawSettingImpl

type RawSettingImpl struct {
	Type   string
	Values map[string]interface{}
}

RawSettingImpl is returned when the Discriminated Value doesn't match any of the defined types NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) and is used only for Deserialization (e.g. this cannot be used as a Request Payload).

type Setting

type Setting interface {
}

type SettingsClient

type SettingsClient struct {
	Client *resourcemanager.Client
}

func NewSettingsClientWithBaseURI

func NewSettingsClientWithBaseURI(sdkApi sdkEnv.Api) (*SettingsClient, error)

func (SettingsClient) CreateOrUpdateByScope

func (c SettingsClient) CreateOrUpdateByScope(ctx context.Context, id commonids.ScopeId, input Setting) (result CreateOrUpdateByScopeOperationResponse, err error)

CreateOrUpdateByScope ...

func (SettingsClient) DeleteByScope

func (c SettingsClient) DeleteByScope(ctx context.Context, id commonids.ScopeId) (result DeleteByScopeOperationResponse, err error)

DeleteByScope ...

func (SettingsClient) GetByScope

func (c SettingsClient) GetByScope(ctx context.Context, id commonids.ScopeId) (result GetByScopeOperationResponse, err error)

GetByScope ...

func (SettingsClient) List

List ...

type SettingsKind

type SettingsKind string
const (
	SettingsKindTaginheritance SettingsKind = "taginheritance"
)

func (*SettingsKind) UnmarshalJSON

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

type SettingsListResult

type SettingsListResult struct {
	Value *[]Setting `json:"value,omitempty"`
}

func (*SettingsListResult) UnmarshalJSON

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

type TagInheritanceProperties

type TagInheritanceProperties struct {
	PreferContainerTags bool `json:"preferContainerTags"`
}

type TagInheritanceSetting

type TagInheritanceSetting struct {
	Properties *TagInheritanceProperties `json:"properties,omitempty"`

	// Fields inherited from Setting
	Id   *string `json:"id,omitempty"`
	Name *string `json:"name,omitempty"`
	Type *string `json:"type,omitempty"`
}

func (TagInheritanceSetting) MarshalJSON

func (s TagInheritanceSetting) MarshalJSON() ([]byte, error)

Jump to

Keyboard shortcuts

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