autoprovisioningsettings

package
v0.20230918.1102428 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2023 License: MPL-2.0 Imports: 9 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/resource-manager/security/2017-08-01-preview/autoprovisioningsettings Documentation

The autoprovisioningsettings SDK allows for interaction with the Azure Resource Manager Service security (API Version 2017-08-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/security/2017-08-01-preview/autoprovisioningsettings"

Client Initialization

client := autoprovisioningsettings.NewAutoProvisioningSettingsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: AutoProvisioningSettingsClient.Create

ctx := context.TODO()
id := autoprovisioningsettings.NewAutoProvisioningSettingID("12345678-1234-9876-4563-123456789012", "autoProvisioningSettingValue")

payload := autoprovisioningsettings.AutoProvisioningSetting{
	// ...
}


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

Example Usage: AutoProvisioningSettingsClient.Get

ctx := context.TODO()
id := autoprovisioningsettings.NewAutoProvisioningSettingID("12345678-1234-9876-4563-123456789012", "autoProvisioningSettingValue")

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

Example Usage: AutoProvisioningSettingsClient.List

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

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

func PossibleValuesForAutoProvision

func PossibleValuesForAutoProvision() []string

func ValidateAutoProvisioningSettingID

func ValidateAutoProvisioningSettingID(input interface{}, key string) (warnings []string, errors []error)

ValidateAutoProvisioningSettingID checks that 'input' can be parsed as a Auto Provisioning Setting ID

Types

type AutoProvision

type AutoProvision string
const (
	AutoProvisionOff AutoProvision = "Off"
	AutoProvisionOn  AutoProvision = "On"
)

type AutoProvisioningSetting

type AutoProvisioningSetting struct {
	Id         *string                            `json:"id,omitempty"`
	Name       *string                            `json:"name,omitempty"`
	Properties *AutoProvisioningSettingProperties `json:"properties,omitempty"`
	Type       *string                            `json:"type,omitempty"`
}

type AutoProvisioningSettingId

type AutoProvisioningSettingId struct {
	SubscriptionId              string
	AutoProvisioningSettingName string
}

AutoProvisioningSettingId is a struct representing the Resource ID for a Auto Provisioning Setting

func NewAutoProvisioningSettingID

func NewAutoProvisioningSettingID(subscriptionId string, autoProvisioningSettingName string) AutoProvisioningSettingId

NewAutoProvisioningSettingID returns a new AutoProvisioningSettingId struct

func ParseAutoProvisioningSettingID

func ParseAutoProvisioningSettingID(input string) (*AutoProvisioningSettingId, error)

ParseAutoProvisioningSettingID parses 'input' into a AutoProvisioningSettingId

func ParseAutoProvisioningSettingIDInsensitively

func ParseAutoProvisioningSettingIDInsensitively(input string) (*AutoProvisioningSettingId, error)

ParseAutoProvisioningSettingIDInsensitively parses 'input' case-insensitively into a AutoProvisioningSettingId note: this method should only be used for API response data and not user input

func (AutoProvisioningSettingId) ID

ID returns the formatted Auto Provisioning Setting ID

func (AutoProvisioningSettingId) Segments

Segments returns a slice of Resource ID Segments which comprise this Auto Provisioning Setting ID

func (AutoProvisioningSettingId) String

func (id AutoProvisioningSettingId) String() string

String returns a human-readable description of this Auto Provisioning Setting ID

type AutoProvisioningSettingOperationPredicate

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

func (AutoProvisioningSettingOperationPredicate) Matches

type AutoProvisioningSettingProperties

type AutoProvisioningSettingProperties struct {
	AutoProvision AutoProvision `json:"autoProvision"`
}

type AutoProvisioningSettingsClient

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

func NewAutoProvisioningSettingsClientWithBaseURI

func NewAutoProvisioningSettingsClientWithBaseURI(endpoint string) AutoProvisioningSettingsClient

func (AutoProvisioningSettingsClient) Create

Create ...

func (AutoProvisioningSettingsClient) Get

Get ...

func (AutoProvisioningSettingsClient) List

List ...

func (AutoProvisioningSettingsClient) ListComplete

ListComplete retrieves all of the results into a single object

func (AutoProvisioningSettingsClient) ListCompleteMatchingPredicate

ListCompleteMatchingPredicate retrieves all of the results and then applied the predicate

type CreateOperationResponse

type CreateOperationResponse struct {
	HttpResponse *http.Response
	Model        *AutoProvisioningSetting
}

type GetOperationResponse

type GetOperationResponse struct {
	HttpResponse *http.Response
	Model        *AutoProvisioningSetting
}

type ListCompleteResult

type ListCompleteResult struct {
	Items []AutoProvisioningSetting
}

type ListOperationResponse

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

func (ListOperationResponse) HasMore

func (r ListOperationResponse) HasMore() bool

func (ListOperationResponse) LoadMore

func (r ListOperationResponse) LoadMore(ctx context.Context) (resp ListOperationResponse, err error)

Jump to

Keyboard shortcuts

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