identity

package
v2.96.0 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2022 License: MPL-2.0 Imports: 6 Imported by: 0

README

Identity

This package is deprecated - please use the Identity Schema types in commonschema and the Expand/Flatten functions from the identity package.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExpandedConfig

type ExpandedConfig struct {
	// Type is the type of User Assigned Identity, either `None`, `SystemAssigned`, `UserAssigned`
	// or `SystemAssigned, UserAssigned`
	Type                    Type     `tfschema:"type"`
	PrincipalId             string   `tfschema:"principal_id"`
	TenantId                string   `tfschema:"tenant_id"`
	UserAssignedIdentityIds []string `tfschema:"identity_ids"`
}

type ExpandedConfigCaster

type ExpandedConfigCaster interface {
	ToExpandedConfig() ExpandedConfig
	FromExpandedConfig(ExpandedConfig)
}

type Identity

type Identity interface {
	Expand(input []interface{}) (*ExpandedConfig, error)
	Flatten(input *ExpandedConfig) []interface{}
	Schema() *pluginsdk.Schema
}

type SystemAssignedIdentity

type SystemAssignedIdentity struct {
	Type        Type    `json:"type,omitempty"`
	TenantId    *string `json:"tenantId,omitempty"`
	PrincipalId *string `json:"principalId,omitempty"`
}

func (*SystemAssignedIdentity) FromExpandedConfig

func (s *SystemAssignedIdentity) FromExpandedConfig(config ExpandedConfig)

func (*SystemAssignedIdentity) ToExpandedConfig

func (s *SystemAssignedIdentity) ToExpandedConfig() ExpandedConfig

type SystemAssignedUserAssigned

type SystemAssignedUserAssigned struct{}

func (SystemAssignedUserAssigned) Expand

func (s SystemAssignedUserAssigned) Expand(input []interface{}) (*ExpandedConfig, error)

func (SystemAssignedUserAssigned) Flatten

func (s SystemAssignedUserAssigned) Flatten(input *ExpandedConfig) []interface{}

func (SystemAssignedUserAssigned) Schema

func (SystemAssignedUserAssigned) SchemaDataSource

func (s SystemAssignedUserAssigned) SchemaDataSource() *pluginsdk.Schema

type SystemUserAssignedIdentityList

type SystemUserAssignedIdentityList struct {
	Type                   Type                    `json:"type,omitempty"`
	TenantId               *string                 `json:"tenantId,omitempty"`
	PrincipalId            *string                 `json:"principalId,omitempty"`
	UserAssignedIdentities *[]userAssignedIdentity `json:"userAssignedIdentities"`
}

func (*SystemUserAssignedIdentityList) FromExpandedConfig

func (s *SystemUserAssignedIdentityList) FromExpandedConfig(config ExpandedConfig)

func (*SystemUserAssignedIdentityList) ToExpandedConfig

func (s *SystemUserAssignedIdentityList) ToExpandedConfig() ExpandedConfig

type SystemUserAssignedIdentityMap

type SystemUserAssignedIdentityMap struct {
	Type                   Type                                 `json:"type,omitempty"`
	TenantId               *string                              `json:"tenantId,omitempty"`
	PrincipalId            *string                              `json:"principalId,omitempty"`
	UserAssignedIdentities map[string]*userAssignedIdentityInfo `json:"userAssignedIdentities"`
}

func (*SystemUserAssignedIdentityMap) FromExpandedConfig

func (s *SystemUserAssignedIdentityMap) FromExpandedConfig(config ExpandedConfig)

func (*SystemUserAssignedIdentityMap) ToExpandedConfig

func (s *SystemUserAssignedIdentityMap) ToExpandedConfig() ExpandedConfig

type Type

type Type string

type UserAssigned

type UserAssigned struct{}

func (UserAssigned) Expand

func (u UserAssigned) Expand(input []interface{}) (*ExpandedConfig, error)

func (UserAssigned) Flatten

func (u UserAssigned) Flatten(input *ExpandedConfig) []interface{}

func (UserAssigned) Schema

func (u UserAssigned) Schema() *pluginsdk.Schema

func (UserAssigned) SchemaDataSource

func (u UserAssigned) SchemaDataSource() *pluginsdk.Schema

type UserAssignedIdentityList

type UserAssignedIdentityList struct {
	Type                   Type                    `json:"type,omitempty"`
	UserAssignedIdentities *[]userAssignedIdentity `json:"userAssignedIdentities"`
}

func (*UserAssignedIdentityList) FromExpandedConfig

func (u *UserAssignedIdentityList) FromExpandedConfig(config ExpandedConfig)

func (*UserAssignedIdentityList) ToExpandedConfig

func (u *UserAssignedIdentityList) ToExpandedConfig() ExpandedConfig

type UserAssignedIdentityMap

type UserAssignedIdentityMap struct {
	Type                   Type                                 `json:"type,omitempty"`
	UserAssignedIdentities map[string]*userAssignedIdentityInfo `json:"userAssignedIdentities"`
}

func (*UserAssignedIdentityMap) FromExpandedConfig

func (u *UserAssignedIdentityMap) FromExpandedConfig(config ExpandedConfig)

func (*UserAssignedIdentityMap) ToExpandedConfig

func (u *UserAssignedIdentityMap) ToExpandedConfig() ExpandedConfig

Jump to

Keyboard shortcuts

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