resource_org_apitoken

package
v0.2.10 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OrgApitokenResourceSchema

func OrgApitokenResourceSchema(ctx context.Context) schema.Schema

Types

type OrgApitokenModel

type OrgApitokenModel struct {
	CreatedBy  types.String `tfsdk:"created_by"`
	Id         types.String `tfsdk:"id"`
	Key        types.String `tfsdk:"key"`
	Name       types.String `tfsdk:"name"`
	OrgId      types.String `tfsdk:"org_id"`
	Privileges types.List   `tfsdk:"privileges"`
	SrcIps     types.List   `tfsdk:"src_ips"`
}

func SdkToTerraform

func SdkToTerraform(ctx context.Context, data models.OrgApitoken, previous_state *OrgApitokenModel) (OrgApitokenModel, diag.Diagnostics)

type PrivilegesType

type PrivilegesType struct {
	basetypes.ObjectType
}

func (PrivilegesType) Equal

func (t PrivilegesType) Equal(o attr.Type) bool

func (PrivilegesType) String

func (t PrivilegesType) String() string

func (PrivilegesType) ValueFromObject

func (PrivilegesType) ValueFromTerraform

func (t PrivilegesType) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)

func (PrivilegesType) ValueType

func (t PrivilegesType) ValueType(ctx context.Context) attr.Value

type PrivilegesValue

type PrivilegesValue struct {
	Role        basetypes.StringValue `tfsdk:"role"`
	Scope       basetypes.StringValue `tfsdk:"scope"`
	SiteId      basetypes.StringValue `tfsdk:"site_id"`
	SitegroupId basetypes.StringValue `tfsdk:"sitegroup_id"`
	// contains filtered or unexported fields
}

func NewPrivilegesValue

func NewPrivilegesValue(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) (PrivilegesValue, diag.Diagnostics)

func NewPrivilegesValueMust

func NewPrivilegesValueMust(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) PrivilegesValue

func NewPrivilegesValueNull

func NewPrivilegesValueNull() PrivilegesValue

func NewPrivilegesValueUnknown

func NewPrivilegesValueUnknown() PrivilegesValue

func (PrivilegesValue) AttributeTypes

func (v PrivilegesValue) AttributeTypes(ctx context.Context) map[string]attr.Type

func (PrivilegesValue) Equal

func (v PrivilegesValue) Equal(o attr.Value) bool

func (PrivilegesValue) IsNull

func (v PrivilegesValue) IsNull() bool

func (PrivilegesValue) IsUnknown

func (v PrivilegesValue) IsUnknown() bool

func (PrivilegesValue) String

func (v PrivilegesValue) String() string

func (PrivilegesValue) ToObjectValue

func (PrivilegesValue) ToTerraformValue

func (v PrivilegesValue) ToTerraformValue(ctx context.Context) (tftypes.Value, error)

func (PrivilegesValue) Type

func (v PrivilegesValue) Type(ctx context.Context) attr.Type

Jump to

Keyboard shortcuts

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