credentials

package
v0.20240222.1121651 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2024 License: MPL-2.0 Imports: 10 Imported by: 1

README

github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/credentials Documentation

The credentials SDK allows for interaction with the Azure Resource Manager Service datafactory (API Version 2018-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-sdk/resource-manager/datafactory/2018-06-01/credentials"

Client Initialization

client := credentials.NewCredentialsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: CredentialsClient.CredentialOperationsCreateOrUpdate

ctx := context.TODO()
id := credentials.NewCredentialID("12345678-1234-9876-4563-123456789012", "example-resource-group", "factoryValue", "credentialValue")

payload := credentials.ManagedIdentityCredentialResource{
	// ...
}


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

Example Usage: CredentialsClient.CredentialOperationsDelete

ctx := context.TODO()
id := credentials.NewCredentialID("12345678-1234-9876-4563-123456789012", "example-resource-group", "factoryValue", "credentialValue")

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

Example Usage: CredentialsClient.CredentialOperationsGet

ctx := context.TODO()
id := credentials.NewCredentialID("12345678-1234-9876-4563-123456789012", "example-resource-group", "factoryValue", "credentialValue")

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

Example Usage: CredentialsClient.CredentialOperationsListByFactory

ctx := context.TODO()
id := credentials.NewFactoryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "factoryValue")

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

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

ValidateCredentialID checks that 'input' can be parsed as a Credential ID

func ValidateFactoryID

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

ValidateFactoryID checks that 'input' can be parsed as a Factory ID

Types

type Credential

type Credential interface {
}

type CredentialId

type CredentialId struct {
	SubscriptionId    string
	ResourceGroupName string
	FactoryName       string
	CredentialName    string
}

CredentialId is a struct representing the Resource ID for a Credential

func NewCredentialID

func NewCredentialID(subscriptionId string, resourceGroupName string, factoryName string, credentialName string) CredentialId

NewCredentialID returns a new CredentialId struct

func ParseCredentialID

func ParseCredentialID(input string) (*CredentialId, error)

ParseCredentialID parses 'input' into a CredentialId

func ParseCredentialIDInsensitively

func ParseCredentialIDInsensitively(input string) (*CredentialId, error)

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

func (*CredentialId) FromParseResult

func (id *CredentialId) FromParseResult(input resourceids.ParseResult) error

func (CredentialId) ID

func (id CredentialId) ID() string

ID returns the formatted Credential ID

func (CredentialId) Segments

func (id CredentialId) Segments() []resourceids.Segment

Segments returns a slice of Resource ID Segments which comprise this Credential ID

func (CredentialId) String

func (id CredentialId) String() string

String returns a human-readable description of this Credential ID

type CredentialOperationsCreateOrUpdateOperationOptions

type CredentialOperationsCreateOrUpdateOperationOptions struct {
	IfMatch *string
}

func DefaultCredentialOperationsCreateOrUpdateOperationOptions

func DefaultCredentialOperationsCreateOrUpdateOperationOptions() CredentialOperationsCreateOrUpdateOperationOptions

func (CredentialOperationsCreateOrUpdateOperationOptions) ToHeaders

func (CredentialOperationsCreateOrUpdateOperationOptions) ToOData

func (CredentialOperationsCreateOrUpdateOperationOptions) ToQuery

type CredentialOperationsCreateOrUpdateOperationResponse

type CredentialOperationsCreateOrUpdateOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *ManagedIdentityCredentialResource
}

type CredentialOperationsDeleteOperationResponse

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

type CredentialOperationsGetOperationOptions

type CredentialOperationsGetOperationOptions struct {
	IfNoneMatch *string
}

func DefaultCredentialOperationsGetOperationOptions

func DefaultCredentialOperationsGetOperationOptions() CredentialOperationsGetOperationOptions

func (CredentialOperationsGetOperationOptions) ToHeaders

func (CredentialOperationsGetOperationOptions) ToOData

func (CredentialOperationsGetOperationOptions) ToQuery

type CredentialOperationsGetOperationResponse

type CredentialOperationsGetOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *ManagedIdentityCredentialResource
}

type CredentialOperationsListByFactoryCompleteResult

type CredentialOperationsListByFactoryCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []ManagedIdentityCredentialResource
}

type CredentialOperationsListByFactoryOperationResponse

type CredentialOperationsListByFactoryOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]ManagedIdentityCredentialResource
}

type CredentialsClient

type CredentialsClient struct {
	Client *resourcemanager.Client
}

func NewCredentialsClientWithBaseURI

func NewCredentialsClientWithBaseURI(sdkApi sdkEnv.Api) (*CredentialsClient, error)

func (CredentialsClient) CredentialOperationsCreateOrUpdate

CredentialOperationsCreateOrUpdate ...

func (CredentialsClient) CredentialOperationsDelete

func (c CredentialsClient) CredentialOperationsDelete(ctx context.Context, id CredentialId) (result CredentialOperationsDeleteOperationResponse, err error)

CredentialOperationsDelete ...

func (CredentialsClient) CredentialOperationsGet

CredentialOperationsGet ...

func (CredentialsClient) CredentialOperationsListByFactory

func (c CredentialsClient) CredentialOperationsListByFactory(ctx context.Context, id FactoryId) (result CredentialOperationsListByFactoryOperationResponse, err error)

CredentialOperationsListByFactory ...

func (CredentialsClient) CredentialOperationsListByFactoryComplete

func (c CredentialsClient) CredentialOperationsListByFactoryComplete(ctx context.Context, id FactoryId) (CredentialOperationsListByFactoryCompleteResult, error)

CredentialOperationsListByFactoryComplete retrieves all the results into a single object

func (CredentialsClient) CredentialOperationsListByFactoryCompleteMatchingPredicate

func (c CredentialsClient) CredentialOperationsListByFactoryCompleteMatchingPredicate(ctx context.Context, id FactoryId, predicate ManagedIdentityCredentialResourceOperationPredicate) (result CredentialOperationsListByFactoryCompleteResult, err error)

CredentialOperationsListByFactoryCompleteMatchingPredicate retrieves all the results and then applies the predicate

type FactoryId

type FactoryId struct {
	SubscriptionId    string
	ResourceGroupName string
	FactoryName       string
}

FactoryId is a struct representing the Resource ID for a Factory

func NewFactoryID

func NewFactoryID(subscriptionId string, resourceGroupName string, factoryName string) FactoryId

NewFactoryID returns a new FactoryId struct

func ParseFactoryID

func ParseFactoryID(input string) (*FactoryId, error)

ParseFactoryID parses 'input' into a FactoryId

func ParseFactoryIDInsensitively

func ParseFactoryIDInsensitively(input string) (*FactoryId, error)

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

func (*FactoryId) FromParseResult

func (id *FactoryId) FromParseResult(input resourceids.ParseResult) error

func (FactoryId) ID

func (id FactoryId) ID() string

ID returns the formatted Factory ID

func (FactoryId) Segments

func (id FactoryId) Segments() []resourceids.Segment

Segments returns a slice of Resource ID Segments which comprise this Factory ID

func (FactoryId) String

func (id FactoryId) String() string

String returns a human-readable description of this Factory ID

type ManagedIdentityCredential

type ManagedIdentityCredential struct {
	TypeProperties *ManagedIdentityTypeProperties `json:"typeProperties,omitempty"`

	// Fields inherited from Credential
	Annotations *[]interface{} `json:"annotations,omitempty"`
	Description *string        `json:"description,omitempty"`
}

func (ManagedIdentityCredential) MarshalJSON

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

type ManagedIdentityCredentialResource

type ManagedIdentityCredentialResource struct {
	Etag       *string                   `json:"etag,omitempty"`
	Id         *string                   `json:"id,omitempty"`
	Name       *string                   `json:"name,omitempty"`
	Properties ManagedIdentityCredential `json:"properties"`
	Type       *string                   `json:"type,omitempty"`
}

type ManagedIdentityCredentialResourceOperationPredicate

type ManagedIdentityCredentialResourceOperationPredicate struct {
	Etag *string
	Id   *string
	Name *string
	Type *string
}

func (ManagedIdentityCredentialResourceOperationPredicate) Matches

type ManagedIdentityTypeProperties

type ManagedIdentityTypeProperties struct {
	ResourceId *string `json:"resourceId,omitempty"`
}

type RawCredentialImpl

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

RawCredentialImpl 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).

Jump to

Keyboard shortcuts

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