google_apikeys_key

package
v0.0.0-...-4deecce Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Args

type Args struct {
	// DisplayName: string, optional
	DisplayName terra.StringValue `hcl:"display_name,attr"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// Project: string, optional
	Project terra.StringValue `hcl:"project,attr"`
	// Restrictions: optional
	Restrictions *Restrictions `hcl:"restrictions,block"`
	// Timeouts: optional
	Timeouts *Timeouts `hcl:"timeouts,block"`
}

Args contains the configurations for google_apikeys_key.

type Resource

type Resource struct {
	Name string
	Args Args

	DependsOn terra.Dependencies
	Lifecycle *terra.Lifecycle
	// contains filtered or unexported fields
}

Resource represents the Terraform resource google_apikeys_key.

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (gak *Resource) Attributes() googleApikeysKeyAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

func (gak *Resource) Configuration() interface{}

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

func (gak *Resource) DependOn() terra.Reference

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

func (gak *Resource) Dependencies() terra.Dependencies

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

func (gak *Resource) ImportState(state io.Reader) error

ImportState imports the given attribute values into Resource's state.

func (*Resource) LifecycleManagement

func (gak *Resource) LifecycleManagement() *terra.Lifecycle

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (gak *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (gak *Resource) State() (*googleApikeysKeyState, bool)

State returns the state and a bool indicating if Resource has state.

func (*Resource) StateMust

func (gak *Resource) StateMust() *googleApikeysKeyState

StateMust returns the state for Resource. Panics if the state is nil.

func (*Resource) Type

func (gak *Resource) Type() string

Type returns the Terraform object type for Resource.

type Restrictions

type Restrictions struct {
	// RestrictionsAndroidKeyRestrictions: optional
	AndroidKeyRestrictions *RestrictionsAndroidKeyRestrictions `hcl:"android_key_restrictions,block"`
	// RestrictionsApiTargets: min=0
	ApiTargets []RestrictionsApiTargets `hcl:"api_targets,block" validate:"min=0"`
	// RestrictionsBrowserKeyRestrictions: optional
	BrowserKeyRestrictions *RestrictionsBrowserKeyRestrictions `hcl:"browser_key_restrictions,block"`
	// RestrictionsIosKeyRestrictions: optional
	IosKeyRestrictions *RestrictionsIosKeyRestrictions `hcl:"ios_key_restrictions,block"`
	// RestrictionsServerKeyRestrictions: optional
	ServerKeyRestrictions *RestrictionsServerKeyRestrictions `hcl:"server_key_restrictions,block"`
}

type RestrictionsAndroidKeyRestrictions

type RestrictionsAndroidKeyRestrictions struct {
	// RestrictionsAndroidKeyRestrictionsAllowedApplications: min=1
	AllowedApplications []RestrictionsAndroidKeyRestrictionsAllowedApplications `hcl:"allowed_applications,block" validate:"min=1"`
}

type RestrictionsAndroidKeyRestrictionsAllowedApplications

type RestrictionsAndroidKeyRestrictionsAllowedApplications struct {
	// PackageName: string, required
	PackageName terra.StringValue `hcl:"package_name,attr" validate:"required"`
	// Sha1Fingerprint: string, required
	Sha1Fingerprint terra.StringValue `hcl:"sha1_fingerprint,attr" validate:"required"`
}

type RestrictionsAndroidKeyRestrictionsAllowedApplicationsAttributes

type RestrictionsAndroidKeyRestrictionsAllowedApplicationsAttributes struct {
	// contains filtered or unexported fields
}

func (RestrictionsAndroidKeyRestrictionsAllowedApplicationsAttributes) InternalRef

func (RestrictionsAndroidKeyRestrictionsAllowedApplicationsAttributes) InternalTokens

func (RestrictionsAndroidKeyRestrictionsAllowedApplicationsAttributes) InternalWithRef

func (RestrictionsAndroidKeyRestrictionsAllowedApplicationsAttributes) PackageName

func (RestrictionsAndroidKeyRestrictionsAllowedApplicationsAttributes) Sha1Fingerprint

type RestrictionsAndroidKeyRestrictionsAllowedApplicationsState

type RestrictionsAndroidKeyRestrictionsAllowedApplicationsState struct {
	PackageName     string `json:"package_name"`
	Sha1Fingerprint string `json:"sha1_fingerprint"`
}

type RestrictionsAndroidKeyRestrictionsAttributes

type RestrictionsAndroidKeyRestrictionsAttributes struct {
	// contains filtered or unexported fields
}

func (RestrictionsAndroidKeyRestrictionsAttributes) InternalRef

func (RestrictionsAndroidKeyRestrictionsAttributes) InternalTokens

func (RestrictionsAndroidKeyRestrictionsAttributes) InternalWithRef

type RestrictionsAndroidKeyRestrictionsState

type RestrictionsAndroidKeyRestrictionsState struct {
	AllowedApplications []RestrictionsAndroidKeyRestrictionsAllowedApplicationsState `json:"allowed_applications"`
}

type RestrictionsApiTargets

type RestrictionsApiTargets struct {
	// Methods: list of string, optional
	Methods terra.ListValue[terra.StringValue] `hcl:"methods,attr"`
	// Service: string, required
	Service terra.StringValue `hcl:"service,attr" validate:"required"`
}

type RestrictionsApiTargetsAttributes

type RestrictionsApiTargetsAttributes struct {
	// contains filtered or unexported fields
}

func (RestrictionsApiTargetsAttributes) InternalRef

func (RestrictionsApiTargetsAttributes) InternalTokens

func (at RestrictionsApiTargetsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (RestrictionsApiTargetsAttributes) InternalWithRef

func (RestrictionsApiTargetsAttributes) Methods

func (RestrictionsApiTargetsAttributes) Service

type RestrictionsApiTargetsState

type RestrictionsApiTargetsState struct {
	Methods []string `json:"methods"`
	Service string   `json:"service"`
}

type RestrictionsAttributes

type RestrictionsAttributes struct {
	// contains filtered or unexported fields
}

func (RestrictionsAttributes) AndroidKeyRestrictions

func (RestrictionsAttributes) ApiTargets

func (RestrictionsAttributes) BrowserKeyRestrictions

func (RestrictionsAttributes) InternalRef

func (r RestrictionsAttributes) InternalRef() (terra.Reference, error)

func (RestrictionsAttributes) InternalTokens

func (r RestrictionsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (RestrictionsAttributes) InternalWithRef

func (RestrictionsAttributes) IosKeyRestrictions

func (RestrictionsAttributes) ServerKeyRestrictions

type RestrictionsBrowserKeyRestrictions

type RestrictionsBrowserKeyRestrictions struct {
	// AllowedReferrers: list of string, required
	AllowedReferrers terra.ListValue[terra.StringValue] `hcl:"allowed_referrers,attr" validate:"required"`
}

type RestrictionsBrowserKeyRestrictionsAttributes

type RestrictionsBrowserKeyRestrictionsAttributes struct {
	// contains filtered or unexported fields
}

func (RestrictionsBrowserKeyRestrictionsAttributes) AllowedReferrers

func (RestrictionsBrowserKeyRestrictionsAttributes) InternalRef

func (RestrictionsBrowserKeyRestrictionsAttributes) InternalTokens

func (RestrictionsBrowserKeyRestrictionsAttributes) InternalWithRef

type RestrictionsBrowserKeyRestrictionsState

type RestrictionsBrowserKeyRestrictionsState struct {
	AllowedReferrers []string `json:"allowed_referrers"`
}

type RestrictionsIosKeyRestrictions

type RestrictionsIosKeyRestrictions struct {
	// AllowedBundleIds: list of string, required
	AllowedBundleIds terra.ListValue[terra.StringValue] `hcl:"allowed_bundle_ids,attr" validate:"required"`
}

type RestrictionsIosKeyRestrictionsAttributes

type RestrictionsIosKeyRestrictionsAttributes struct {
	// contains filtered or unexported fields
}

func (RestrictionsIosKeyRestrictionsAttributes) AllowedBundleIds

func (RestrictionsIosKeyRestrictionsAttributes) InternalRef

func (RestrictionsIosKeyRestrictionsAttributes) InternalTokens

func (RestrictionsIosKeyRestrictionsAttributes) InternalWithRef

type RestrictionsIosKeyRestrictionsState

type RestrictionsIosKeyRestrictionsState struct {
	AllowedBundleIds []string `json:"allowed_bundle_ids"`
}

type RestrictionsServerKeyRestrictions

type RestrictionsServerKeyRestrictions struct {
	// AllowedIps: list of string, required
	AllowedIps terra.ListValue[terra.StringValue] `hcl:"allowed_ips,attr" validate:"required"`
}

type RestrictionsServerKeyRestrictionsAttributes

type RestrictionsServerKeyRestrictionsAttributes struct {
	// contains filtered or unexported fields
}

func (RestrictionsServerKeyRestrictionsAttributes) AllowedIps

func (RestrictionsServerKeyRestrictionsAttributes) InternalRef

func (RestrictionsServerKeyRestrictionsAttributes) InternalTokens

func (RestrictionsServerKeyRestrictionsAttributes) InternalWithRef

type RestrictionsServerKeyRestrictionsState

type RestrictionsServerKeyRestrictionsState struct {
	AllowedIps []string `json:"allowed_ips"`
}

type RestrictionsState

type RestrictionsState struct {
	AndroidKeyRestrictions []RestrictionsAndroidKeyRestrictionsState `json:"android_key_restrictions"`
	ApiTargets             []RestrictionsApiTargetsState             `json:"api_targets"`
	BrowserKeyRestrictions []RestrictionsBrowserKeyRestrictionsState `json:"browser_key_restrictions"`
	IosKeyRestrictions     []RestrictionsIosKeyRestrictionsState     `json:"ios_key_restrictions"`
	ServerKeyRestrictions  []RestrictionsServerKeyRestrictionsState  `json:"server_key_restrictions"`
}

type Timeouts

type Timeouts struct {
	// Create: string, optional
	Create terra.StringValue `hcl:"create,attr"`
	// Delete: string, optional
	Delete terra.StringValue `hcl:"delete,attr"`
	// Update: string, optional
	Update terra.StringValue `hcl:"update,attr"`
}

type TimeoutsAttributes

type TimeoutsAttributes struct {
	// contains filtered or unexported fields
}

func (TimeoutsAttributes) Create

func (TimeoutsAttributes) Delete

func (TimeoutsAttributes) InternalRef

func (t TimeoutsAttributes) InternalRef() (terra.Reference, error)

func (TimeoutsAttributes) InternalTokens

func (t TimeoutsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (TimeoutsAttributes) InternalWithRef

func (t TimeoutsAttributes) InternalWithRef(ref terra.Reference) TimeoutsAttributes

func (TimeoutsAttributes) Update

type TimeoutsState

type TimeoutsState struct {
	Create string `json:"create"`
	Delete string `json:"delete"`
	Update string `json:"update"`
}

Jump to

Keyboard shortcuts

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