resources

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateAttributesKey

func CreateAttributesKey(attributes_map map[string]interface{}) []string

CreateAttributesKey creates attributeskey_slice from attributes_map

func CreateMap

func CreateMap(attributes_map map[string]interface{}, name string) map[string]string

CreateMap creates Parameter map ex)Label,Metadata

func CreateNumberFromKey

func CreateNumberFromKey(key string, index int) string

func CreateStringSlice

func CreateStringSlice(attributes_map map[string]interface{}, attributesKey []string, name string) []string

CreateStringSlice creates slice ex)Users,Ports,SourceRanges

func CreateTf

func CreateTf(tfstate_struct Tfstate) error

CreateTf creates tf file

func GetResourceName

func GetResourceName(tfstate_struct Tfstate) []string

GetResourceName gets all resourceNames from Tfstate

func InsertTfstateIntoBuffer

func InsertTfstateIntoBuffer(s string, resourceData map[string]interface{}, buf *bytes.Buffer, funcMap template.FuncMap) error

InsertTfstateIntoBuffer templateのデータをバッファに書き込み

func InterfaceToStrings

func InterfaceToStrings(i interface{}) []string

InterfaceToStrings converts Interface{} to []string

func MapToStruct

func MapToStruct(m map[string]interface{}, val interface{}) error

MapToStruct map -> struct

func Newgoogle_compute_autoscaler

func Newgoogle_compute_autoscaler(resourceData map[string]interface{}, resourceName string) *google_compute_autoscaler

func Newgoogle_compute_backend_bucket

func Newgoogle_compute_backend_bucket(resourceData map[string]interface{}, resourceName string) *google_compute_backend_bucket

func Newgoogle_compute_backend_service

func Newgoogle_compute_backend_service(resourceData map[string]interface{}, resourceName string) *google_compute_backend_service

func Newgoogle_compute_disk

func Newgoogle_compute_disk(resourceData map[string]interface{}, resourceName string) *google_compute_disk

func Newgoogle_compute_firewall

func Newgoogle_compute_firewall(resourceData map[string]interface{}, resourceName string) *google_compute_firewall

func Newgoogle_compute_forwarding_rule

func Newgoogle_compute_forwarding_rule(resourceData map[string]interface{}, resourceName string) *google_compute_forwarding_rule

func Newgoogle_compute_global_forwarding_rule

func Newgoogle_compute_global_forwarding_rule(resourceData map[string]interface{}, resourceName string) *google_compute_global_forwarding_rule

func Newgoogle_compute_health_check

func Newgoogle_compute_health_check(resourceData map[string]interface{}, resourceName string) *google_compute_health_check

func Newgoogle_compute_http_health_check

func Newgoogle_compute_http_health_check(resourceData map[string]interface{}, resourceName string) *google_compute_http_health_check

func Newgoogle_compute_image

func Newgoogle_compute_image(resourceData map[string]interface{}, resourceName string) *google_compute_image

func Newgoogle_compute_instance

func Newgoogle_compute_instance(resourceData map[string]interface{}, resourceName string) *google_compute_instance

func Newgoogle_compute_instance_group

func Newgoogle_compute_instance_group(resourceData map[string]interface{}, resourceName string) *google_compute_instance_group

func Newgoogle_compute_instance_group_manager

func Newgoogle_compute_instance_group_manager(resourceData map[string]interface{}, resourceName string) *google_compute_instance_group_manager

func Newgoogle_compute_instance_template

func Newgoogle_compute_instance_template(resourceData map[string]interface{}, resourceName string) *google_compute_instance_template

func Newgoogle_compute_network

func Newgoogle_compute_network(resourceData map[string]interface{}, resourceName string) *google_compute_network

func Newgoogle_compute_route

func Newgoogle_compute_route(resourceData map[string]interface{}, resourceName string) *google_compute_route

func Newgoogle_compute_snapshot

func Newgoogle_compute_snapshot(resourceData map[string]interface{}, resourceName string) *google_compute_snapshot

func Newgoogle_compute_ssl_certificate

func Newgoogle_compute_ssl_certificate(resourceData map[string]interface{}, resourceName string) *google_compute_ssl_certificate

func Newgoogle_compute_subnetwork

func Newgoogle_compute_subnetwork(resourceData map[string]interface{}, resourceName string) *google_compute_subnetwork

func Newgoogle_compute_target_http_proxy

func Newgoogle_compute_target_http_proxy(resourceData map[string]interface{}, resourceName string) *google_compute_target_http_proxy

func Newgoogle_compute_target_https_proxy

func Newgoogle_compute_target_https_proxy(resourceData map[string]interface{}, resourceName string) *google_compute_target_https_proxy

func Newgoogle_compute_target_pool

func Newgoogle_compute_target_pool(resourceData map[string]interface{}, resourceName string) *google_compute_target_pool

func Newgoogle_compute_url_map

func Newgoogle_compute_url_map(resourceData map[string]interface{}, resourceName string) *google_compute_url_map

func Newgoogle_container_cluster

func Newgoogle_container_cluster(resourceData map[string]interface{}, resourceName string) *google_container_cluster

func Newgoogle_dns_managed_zone

func Newgoogle_dns_managed_zone(resourceData map[string]interface{}, resourceName string) *google_dns_managed_zone

func Newgoogle_dns_policy

func Newgoogle_dns_policy(resourceData map[string]interface{}, resourceName string) *google_dns_policy

func Newgoogle_kms_crypto_key

func Newgoogle_kms_crypto_key(resourceData map[string]interface{}, resourceName string) *google_kms_crypto_key

func Newgoogle_kms_key_ring

func Newgoogle_kms_key_ring(resourceData map[string]interface{}, resourceName string) *google_kms_key_ring

func Newgoogle_project

func Newgoogle_project(resourceData map[string]interface{}, resourceName string) *google_project

func Newgoogle_pubsub_subscription

func Newgoogle_pubsub_subscription(resourceData map[string]interface{}, resourceName string) *google_pubsub_subscription

func Newgoogle_pubsub_topic

func Newgoogle_pubsub_topic(resourceData map[string]interface{}, resourceName string) *google_pubsub_topic

func Newgoogle_service_account

func Newgoogle_service_account(resourceData map[string]interface{}, resourceName string) *google_service_account

func Newgoogle_sql_database_instance

func Newgoogle_sql_database_instance(resourceData map[string]interface{}, resourceName string) *google_sql_database_instance

func Newgoogle_storage_bucket

func Newgoogle_storage_bucket(resourceData map[string]interface{}, resourceName string) *google_storage_bucket

func ReadTfstateFile

func ReadTfstateFile(sourcefile string) ([]byte, error)

ReadTfstateFile reads tfstatefile and return []byte

Types

type Action

type Action struct {
	Number       string
	StorageClass string `json:"storage_class"`
	Type         string `json:"type"`
}

func (*Action) GetNumber

func (d *Action) GetNumber() string

func (*Action) SetNumber

func (d *Action) SetNumber(num string)

func (*Action) SetParameter

func (d *Action) SetParameter(key, value string, attributes_map map[string]interface{}, attributesKey []string)

type AddonsConfig

type AddonsConfig struct {
	Number                   string
	HorizontalPodAutoscaling []Params `json:"horizontal_pod_autoscaling"`
	HTTPLoadBalancing        []Params `json:"http_load_balancing"`
	KubernetesDashboard      []Params `json:"kubernetes_dashboard"`
	NetworkPolicyConfig      []Params `json:"network_policy_config"`
}

func (*AddonsConfig) GetNumber

func (d *AddonsConfig) GetNumber() string

func (*AddonsConfig) SetNumber

func (d *AddonsConfig) SetNumber(num string)

func (*AddonsConfig) SetParameter

func (d *AddonsConfig) SetParameter(key, value string, attributes_map map[string]interface{}, attributesKey []string)

type AllowOrDeny

type AllowOrDeny struct {
	Number   string
	Protocol string
	Ports    []string
}

func (*AllowOrDeny) GetNumber

func (d *AllowOrDeny) GetNumber() string

func (*AllowOrDeny) SetNumber

func (d *AllowOrDeny) SetNumber(num string)

func (*AllowOrDeny) SetParameter

func (d *AllowOrDeny) SetParameter(key, value string, attributes_map map[string]interface{}, attributesKey []string)

type AlternativeNameServerConfig

type AlternativeNameServerConfig struct {
	Number            string
	TargetNameServers []string `json:"target_name_servers"`
}

func (*AlternativeNameServerConfig) GetNumber

func (d *AlternativeNameServerConfig) GetNumber() string

func (*AlternativeNameServerConfig) SetNumber

func (d *AlternativeNameServerConfig) SetNumber(num string)

func (*AlternativeNameServerConfig) SetParameter

func (d *AlternativeNameServerConfig) SetParameter(key, value string, attributes_map map[string]interface{}, attributesKey []string)

type AttachedDisk

type AttachedDisk struct {
	Number              string
	DeviceName          string `json:"device_name"`
	EncryptionKeyRaw    string `json:"disk_encryption_key_raw"`
	EncryptionKeySha256 string `json:"disk_encryption_key_sha256"`
	Mode                string `json:"mode"`
	Source              string `json:"source"`
}

func (*AttachedDisk) GetNumber

func (d *AttachedDisk) GetNumber() string

func (*AttachedDisk) SetNumber

func (d *AttachedDisk) SetNumber(num string)

func (*AttachedDisk) SetParameter

func (d *AttachedDisk) SetParameter(key, value string, attributes_map map[string]interface{}, attributesKey []string)

type AuthorizedNetworks

type AuthorizedNetworks struct {
	Number         string
	ExpirationTime string `json:"expiration_time"`
	Name           string `json:"name"`
	Value          string `json:"value"`
}

func (*AuthorizedNetworks) GetNumber

func (d *AuthorizedNetworks) GetNumber() string

func (*AuthorizedNetworks) SetNumber

func (d *AuthorizedNetworks) SetNumber(num string)

func (*AuthorizedNetworks) SetParameter

func (d *AuthorizedNetworks) SetParameter(key, value string, attributes_map map[string]interface{}, attributesKey []string)

type Autoscaling

type Autoscaling struct {
	Number       string
	MaxNodeCount string `json:"max_node_count"`
	MinNodeCount string `json:"min_node_count"`
}

func (*Autoscaling) GetNumber

func (d *Autoscaling) GetNumber() string

func (*Autoscaling) SetNumber

func (d *Autoscaling) SetNumber(num string)

func (*Autoscaling) SetParameter

func (d *Autoscaling) SetParameter(key, value string, attributes_map map[string]interface{}, attributesKey []string)

type AutoscalingPolicy

type AutoscalingPolicy struct {
	Number              string
	CooldownPeriod      string   `json:"cooldown_period"`
	CPUTarget           string   `json:"cpu_target"`
	LoadBalancingTarget string   `json:"load_balancing_target"`
	MaxReplica          string   `json:"max_replica"`
	MinReplica          string   `json:"min_replica"`
	Metric              []Params `json:"metric"`
}

func (*AutoscalingPolicy) GetNumber

func (d *AutoscalingPolicy) GetNumber() string

func (*AutoscalingPolicy) SetNumber

func (d *AutoscalingPolicy) SetNumber(num string)

func (*AutoscalingPolicy) SetParameter

func (d *AutoscalingPolicy) SetParameter(key, value string, attributes_map map[string]interface{}, attributesKey []string)

type Backend

type Backend struct {
	Number                    string
	BalancingMode             string `json:"balancing_mode"`
	CapacityScaler            string `json:"capacity_scaler"`
	Description               string `json:"description"`
	Group                     string `json:"group"`
	MaxConnections            string `json:"max_connections"`
	MaxConnectionsPerInstance string `json:"max_connections_per_instance"`
	MaxRate                   string `json:"max_rate"`
	MaxRatePerInstance        string `json:"max_rate_per_instance"`
	MaxUtilization            string `json:"max_utilization"`
}

func (*Backend) GetNumber

func (d *Backend) GetNumber() string

func (*Backend) SetNumber

func (d *Backend) SetNumber(num string)

func (*Backend) SetParameter

func (d *Backend) SetParameter(key, value string, attributes_map map[string]interface{}, attributesKey []string)

type BackupConfiguration

type BackupConfiguration struct {
	Number           string
	BinaryLogEnabled string `json:"binary_log_enabled"`
	Enabled          string `json:"enabled"`
	StartTime        string `json:"start_time"`
}

func (*BackupConfiguration) GetNumber

func (d *BackupConfiguration) GetNumber() string

func (*BackupConfiguration) SetNumber

func (d *BackupConfiguration) SetNumber(num string)

func (*BackupConfiguration) SetParameter

func (d *BackupConfiguration) SetParameter(key, value string, attributes_map map[string]interface{}, attributesKey []string)

type CacheKeyPolicy

type CacheKeyPolicy struct {
	Number               string
	IncludHost           string `json:"include_host"`
	IncludProtocol       string `json:"include_protocol"`
	IncludQueryString    string `json:"include_query_string"`
	QueryStringBlackList string `json:"query_string_blacklist"`
	QueryStringWhiteList string `json:"query_string_whitelist"`
}

func (*CacheKeyPolicy) GetNumber

func (d *CacheKeyPolicy) GetNumber() string

func (*CacheKeyPolicy) SetNumber

func (d *CacheKeyPolicy) SetNumber(num string)

func (*CacheKeyPolicy) SetParameter

func (d *CacheKeyPolicy) SetParameter(key, value string, attributes_map map[string]interface{}, attributesKey []string)

type CdnPolicy

type CdnPolicy struct {
	Number                  string
	CacheKeyPolicy          []Params `json:"cache_key_policy"`
	SignedUrlCacheMaxAgeSec string   `json:"signed_url_cache_max_age_sec"`
}

func (*CdnPolicy) GetNumber

func (d *CdnPolicy) GetNumber() string

func (*CdnPolicy) SetNumber

func (d *CdnPolicy) SetNumber(num string)

func (*CdnPolicy) SetParameter

func (d *CdnPolicy) SetParameter(key, value string, attributes_map map[string]interface{}, attributesKey []string)

type CidrBlocks

type CidrBlocks struct {
	Number      string
	CidrBlock   string `json:"cidr_block"`
	DisplayName string `json:"display_name"`
}

func (*CidrBlocks) GetNumber

func (d *CidrBlocks) GetNumber() string

func (*CidrBlocks) SetNumber

func (d *CidrBlocks) SetNumber(num string)

func (*CidrBlocks) SetParameter

func (d *CidrBlocks) SetParameter(key, value string, attributes_map map[string]interface{}, attributesKey []string)

type ClientCertificateConfig

type ClientCertificateConfig struct {
	//TODO fill
	Number string
}

type ClusterAutoscaling

type ClusterAutoscaling struct {
	Number         string
	Enabled        string   `json:"enabled"`
	ResourceLimits []Params `json:"resource_limits"`
}

func (*ClusterAutoscaling) GetNumber

func (d *ClusterAutoscaling) GetNumber() string

func (*ClusterAutoscaling) SetNumber

func (d *ClusterAutoscaling) SetNumber(num string)

func (*ClusterAutoscaling) SetParameter

func (d *ClusterAutoscaling) SetParameter(key, value string, attributes_map map[string]interface{}, attributesKey []string)

type Condition

type Condition struct {
	Number              string
	Age                 string   `json:"age"`
	CreatedBefore       string   `json:"created_before"`
	IsLive              string   `json:"is_live"`
	MatchesStorageClass []string `json:"matches_storage_class"`
	NumNewerVersions    string   `json:"num_newer_versions"`
	WithState           string   `json:"with_state"`
}

func (*Condition) GetNumber

func (d *Condition) GetNumber() string

func (*Condition) SetNumber

func (d *Condition) SetNumber(num string)

func (*Condition) SetParameter

func (d *Condition) SetParameter(key, value string, attributes_map map[string]interface{}, attributesKey []string)

type Cors

type Cors struct {
	Number         string
	MaxAgeSeconds  string   `json:"max_age_seconds"`
	Method         []string `json:"method"`
	Origin         []string `json:"origin"`
	ResponseHeader []string `json:"response_header"`
}

func (*Cors) GetNumber

func (d *Cors) GetNumber() string

func (*Cors) SetNumber

func (d *Cors) SetNumber(num string)

func (*Cors) SetParameter

func (d *Cors) SetParameter(key, value string, attributes_map map[string]interface{}, attributesKey []string)

type DailyMaintenanceWindow

type DailyMaintenanceWindow struct {
	Number    string
	Duration  string `json:"duration"`
	StartTime string `json:"start_time"`
}

func (*DailyMaintenanceWindow) GetNumber

func (d *DailyMaintenanceWindow) GetNumber() string

func (*DailyMaintenanceWindow) SetNumber

func (d *DailyMaintenanceWindow) SetNumber(num string)

func (*DailyMaintenanceWindow) SetParameter

func (d *DailyMaintenanceWindow) SetParameter(key, value string, attributes_map map[string]interface{}, attributesKey []string)

type DatabaseFlags

type DatabaseFlags struct {
	Number string
	Name   string `json:"name"`
	Value  string `json:"value"`
}

func (*DatabaseFlags) GetNumber

func (d *DatabaseFlags) GetNumber() string

func (*DatabaseFlags) SetNumber

func (d *DatabaseFlags) SetNumber(num string)

func (*DatabaseFlags) SetParameter

func (d *DatabaseFlags) SetParameter(key, value string, attributes_map map[string]interface{}, attributesKey []string)

type Disk

type Disk struct {
	Number                string
	DiskAutoDelete        string           `json:"disk.auto_delete"`
	DiskBoot              string           `json:"disk.boot"`
	DiskDeviceName        string           `json:"disk.device_name"`
	DiskDiskEncryptionKey []*EncryptionKey `json:"disk.disk_encryption_key.#"`
	DiskDiskName          string           `json:"disk.disk_name"`
	DiskDiskSizeGb        string           `json:"disk.disk_size_gb"`
	DiskDiskType          string           `json:"disk.disk_type"`
	DiskInterface         string           `json:"disk.interface"`
	DiskMode              string           `json:"disk.mode"`
	DiskSource            string           `json:"disk.source"`
	DiskSourceImage       string           `json:"disk.source_image"`
	DiskType              string           `json:"disk.type"`
}

func (*Disk) GetNumber

func (d *Disk) GetNumber() string

func (*Disk) SetNumber

func (d *Disk) SetNumber(num string)

func (*Disk) SetParameter

func (d *Disk) SetParameter(key, value string, attributes_map map[string]interface{}, attributesKey []string)

type Encryption

type Encryption struct {
	Number            string
	DefaultKmsKeyName string `json:"default_kms_key_name"`
}

func (*Encryption) GetNumber

func (d *Encryption) GetNumber() string

func (*Encryption) SetNumber

func (d *Encryption) SetNumber(num string)

func (*Encryption) SetParameter

func (d *Encryption) SetParameter(key, value string, attributes_map map[string]interface{}, attributesKey []string)

type EncryptionKey

type EncryptionKey struct {
	Number         string
	KmsKeySelfLink string
	RawKey         string
	Sha256         string
}

func NewDiskEncryptionKeyforDisk

func NewDiskEncryptionKeyforDisk(v string) *EncryptionKey

bimyou

func (*EncryptionKey) GetNumber

func (d *EncryptionKey) GetNumber() string

func (*EncryptionKey) SetNumber

func (d *EncryptionKey) SetNumber(num string)

func (*EncryptionKey) SetParameter

func (d *EncryptionKey) SetParameter(key, value string, attributes_map map[string]interface{}, attributesKey []string)

type ExpirationPolicy

type ExpirationPolicy struct {
	Number string
	TTL    string `json:"ttl"`
}

func (*ExpirationPolicy) GetNumber

func (d *ExpirationPolicy) GetNumber() string

func (*ExpirationPolicy) SetNumber

func (d *ExpirationPolicy) SetNumber(num string)

func (*ExpirationPolicy) SetParameter

func (d *ExpirationPolicy) SetParameter(key, value string, attributes_map map[string]interface{}, attributesKey []string)

type ForwardingConfig

type ForwardingConfig struct {
	Number            string
	TargetNameServers []Params `json:"target_name_servers"`
}

func (*ForwardingConfig) GetNumber

func (d *ForwardingConfig) GetNumber() string

func (*ForwardingConfig) SetNumber

func (d *ForwardingConfig) SetNumber(num string)

func (*ForwardingConfig) SetParameter

func (d *ForwardingConfig) SetParameter(key, value string, attributes_map map[string]interface{}, attributesKey []string)

type GuestAccelerator

type GuestAccelerator struct {
	Number string
	Type   string `json:"type"`
	Count  string `json:"count"`
}

func (*GuestAccelerator) GetNumber

func (d *GuestAccelerator) GetNumber() string

func (*GuestAccelerator) SetNumber

func (d *GuestAccelerator) SetNumber(num string)

func (*GuestAccelerator) SetParameter

func (d *GuestAccelerator) SetParameter(key, value string, attributes_map map[string]interface{}, attributesKey []string)

type HTTPLoadBalancing

type HTTPLoadBalancing struct {
	Number   string
	Disabled string `json:"disabled"`
}

func (*HTTPLoadBalancing) GetNumber

func (d *HTTPLoadBalancing) GetNumber() string

func (*HTTPLoadBalancing) SetNumber

func (d *HTTPLoadBalancing) SetNumber(num string)

func (*HTTPLoadBalancing) SetParameter

func (d *HTTPLoadBalancing) SetParameter(key, value string, attributes_map map[string]interface{}, attributesKey []string)

type HealthCheck

type HealthCheck struct {
	Number      string
	Port        string `json:"port"`
	ProxyHeader string `json:"proxy_header"`
	RequestPath string `json:"request_path"`
	Response    string `json:"response"`
	Host        string `json:"host"`
	Request     string `json:"request_path"`
}

func (*HealthCheck) GetNumber

func (d *HealthCheck) GetNumber() string

func (*HealthCheck) SetNumber

func (d *HealthCheck) SetNumber(num string)

func (*HealthCheck) SetParameter

func (d *HealthCheck) SetParameter(key, value string, attributes_map map[string]interface{}, attributesKey []string)

type HorizontalPodAutoscaling

type HorizontalPodAutoscaling struct {
	Number   string
	Disabled string `json:"disabled"`
}

func (*HorizontalPodAutoscaling) GetNumber

func (d *HorizontalPodAutoscaling) GetNumber() string

func (*HorizontalPodAutoscaling) SetNumber

func (d *HorizontalPodAutoscaling) SetNumber(num string)

func (*HorizontalPodAutoscaling) SetParameter

func (d *HorizontalPodAutoscaling) SetParameter(key, value string, attributes_map map[string]interface{}, attributesKey []string)

type HostRule

type HostRule struct {
	Number      string
	Description string   `json:"description"`
	Hosts       []string `json:"hosts"`
	PathMatcher string   `json:"path_matcher"`
}

func (*HostRule) GetNumber

func (d *HostRule) GetNumber() string

func (*HostRule) SetNumber

func (d *HostRule) SetNumber(num string)

func (*HostRule) SetParameter

func (d *HostRule) SetParameter(key, value string, attributes_map map[string]interface{}, attributesKey []string)

type IPAddress

type IPAddress struct {
	Number       string
	IPAddress    string `json:"ip_address"`
	TimeToRetire string `json:"time_to_retire"`
	Type         string `json:"type"`
}

func (*IPAddress) GetNumber

func (d *IPAddress) GetNumber() string

func (*IPAddress) SetNumber

func (d *IPAddress) SetNumber(num string)

func (*IPAddress) SetParameter

func (d *IPAddress) SetParameter(key, value string, attributes_map map[string]interface{}, attributesKey []string)

type IPAllocationPolicy

type IPAllocationPolicy struct {
	Number                     string
	ClusterIpv4CidrBlock       string `json:"cluster_ipv4_cidr_block"`
	ClusterSecondaryRangeName  string `json:"cluster_secondary_range_name"`
	CreateSubnetwork           string `json:"create_subnetwork"`
	NodeIpv4CidrBlock          string `json:"node_ipv4_cidr_block"`
	ServicesIpv4CidrBlock      string `json:"services_ipv4_cidr_block"`
	ServicesSecondaryRangeName string `json:"services_secondary_range_name"`
	SubnetworkName             string `json:"subnetwork_name"`
	UseIPAliases               string `json:"use_ip_aliases"`
}

func (*IPAllocationPolicy) GetNumber

func (d *IPAllocationPolicy) GetNumber() string

func (*IPAllocationPolicy) SetNumber

func (d *IPAllocationPolicy) SetNumber(num string)

func (*IPAllocationPolicy) SetParameter

func (d *IPAllocationPolicy) SetParameter(key, value string, attributes_map map[string]interface{}, attributesKey []string)

type IPConfiguration

type IPConfiguration struct {
	Number             string
	AuthorizedNetworks []Params `json:"authorized_networks"`
	Ipv4Enabled        string   `json:"ipv4_enabled"`
	PrivateNetwork     string   `json:"private_network"`
	RequireSsl         string   `json:"require_ssl"`
}

func (*IPConfiguration) GetNumber

func (d *IPConfiguration) GetNumber() string

func (*IPConfiguration) SetNumber

func (d *IPConfiguration) SetNumber(num string)

func (*IPConfiguration) SetParameter

func (d *IPConfiguration) SetParameter(key, value string, attributes_map map[string]interface{}, attributesKey []string)

type Iap

type Iap struct {
	Number                   string
	Oauth2ClientId           string `json:"oauth2_client_id"`
	Oauth2ClientSecret       string `json:"oauth2_client_secret"`
	Oauth2ClientSecretSha256 string `json:"oauth2_client_secret_sha256"`
}

func (*Iap) GetNumber

func (d *Iap) GetNumber() string

func (*Iap) SetNumber

func (d *Iap) SetNumber(num string)

func (*Iap) SetParameter

func (d *Iap) SetParameter(key, value string, attributes_map map[string]interface{}, attributesKey []string)

type KubernetesDashboard

type KubernetesDashboard struct {
	Number   string
	Disabled string `json:"disabled"`
}

func (*KubernetesDashboard) GetNumber

func (d *KubernetesDashboard) GetNumber() string

func (*KubernetesDashboard) SetNumber

func (d *KubernetesDashboard) SetNumber(num string)

func (*KubernetesDashboard) SetParameter

func (d *KubernetesDashboard) SetParameter(key, value string, attributes_map map[string]interface{}, attributesKey []string)

type LifecycleRule

type LifecycleRule struct {
	Number    string
	Action    []Params `json:"lifecycle_rule.action"`
	Condition []Params `json:"lifecycle_rule.condition"`
}

func (*LifecycleRule) GetNumber

func (d *LifecycleRule) GetNumber() string

func (*LifecycleRule) SetNumber

func (d *LifecycleRule) SetNumber(num string)

func (*LifecycleRule) SetParameter

func (d *LifecycleRule) SetParameter(key, value string, attributes_map map[string]interface{}, attributesKey []string)

type LocationPreference

type LocationPreference struct {
	Number               string
	FollowGaeApplication string `json:"follow_gae_application"`
	Zone                 string `json:"zone"`
}

func (*LocationPreference) GetNumber

func (d *LocationPreference) GetNumber() string

func (*LocationPreference) SetNumber

func (d *LocationPreference) SetNumber(num string)

func (*LocationPreference) SetParameter

func (d *LocationPreference) SetParameter(key, value string, attributes_map map[string]interface{}, attributesKey []string)

type Logging

type Logging struct {
	Number          string
	LogBucket       string `json:"log_bucket"`
	LogObjectPrefix string `json:"log_object_prefix"`
}

func (*Logging) GetNumber

func (d *Logging) GetNumber() string

func (*Logging) SetNumber

func (d *Logging) SetNumber(num string)

func (*Logging) SetParameter

func (d *Logging) SetParameter(key, value string, attributes_map map[string]interface{}, attributesKey []string)

type MaintenancePolicy

type MaintenancePolicy struct {
	Number                 string
	DailyMaintenanceWindow []Params `json:"daily_maintenance_window"`
}

func (*MaintenancePolicy) GetNumber

func (d *MaintenancePolicy) GetNumber() string

func (*MaintenancePolicy) SetNumber

func (d *MaintenancePolicy) SetNumber(num string)

func (*MaintenancePolicy) SetParameter

func (d *MaintenancePolicy) SetParameter(key, value string, attributes_map map[string]interface{}, attributesKey []string)

type MaintenanceWindow

type MaintenanceWindow struct {
	Number      string
	Day         string `json:"day"`
	Hour        string `json:"hour"`
	UpdateTrack string `json:"update_track"`
}

func (*MaintenanceWindow) GetNumber

func (d *MaintenanceWindow) GetNumber() string

func (*MaintenanceWindow) SetNumber

func (d *MaintenanceWindow) SetNumber(num string)

func (*MaintenanceWindow) SetParameter

func (d *MaintenanceWindow) SetParameter(key, value string, attributes_map map[string]interface{}, attributesKey []string)

type Management

type Management struct {
	Number      string
	AutoRepair  string `json:"auto_repair"`
	AutoUpgrade string `json:"auto_upgrade"`
}

func (*Management) GetNumber

func (d *Management) GetNumber() string

func (*Management) SetNumber

func (d *Management) SetNumber(num string)

func (*Management) SetParameter

func (d *Management) SetParameter(key, value string, attributes_map map[string]interface{}, attributesKey []string)

type MasterAuth

type MasterAuth struct {
	Number                  string
	ClientCertificate       string   `json:"client_certificate"`
	ClientCertificateConfig []Params `json:"client_certificate_config"`
	ClientKey               string   `json:"client_key"`
	ClusterCaCertificate    string   `json:"cluster_ca_certificate"`
	Password                string   `json:"password"`
	Username                string   `json:"username"`
}

func (*MasterAuth) GetNumber

func (d *MasterAuth) GetNumber() string

func (*MasterAuth) SetNumber

func (d *MasterAuth) SetNumber(num string)

func (*MasterAuth) SetParameter

func (d *MasterAuth) SetParameter(key, value string, attributes_map map[string]interface{}, attributesKey []string)

type MasterAuthorizedNetworksConfig

type MasterAuthorizedNetworksConfig struct {
	Number     string
	CidrBlocks []Params `json:"cidr_blocks"`
}

func (*MasterAuthorizedNetworksConfig) GetNumber

func (d *MasterAuthorizedNetworksConfig) GetNumber() string

func (*MasterAuthorizedNetworksConfig) SetNumber

func (d *MasterAuthorizedNetworksConfig) SetNumber(num string)

func (*MasterAuthorizedNetworksConfig) SetParameter

func (d *MasterAuthorizedNetworksConfig) SetParameter(key, value string, attributes_map map[string]interface{}, attributesKey []string)

type Metric

type Metric struct {
	Number string
	Target string
	Name   string
	Type   string
}

func (*Metric) GetNumber

func (d *Metric) GetNumber() string

func (*Metric) SetNumber

func (d *Metric) SetNumber(num string)

func (*Metric) SetParameter

func (d *Metric) SetParameter(key, value string, attributes_map map[string]interface{}, attributesKey []string)

type Module

type Module struct {
	Path    []string `json:"path"`
	Outputs struct {
	} `json:"outputs"`
	Resources interface{} `json:"resources"`
	DependsOn []string    `json:"depends_on"`
}

Module Struct

type NamedPort

type NamedPort struct {
	Number string
	Name   string
	Port   string
}

func (*NamedPort) GetNumber

func (d *NamedPort) GetNumber() string

func (*NamedPort) SetNumber

func (d *NamedPort) SetNumber(num string)

func (*NamedPort) SetParameter

func (d *NamedPort) SetParameter(key, value string, attributes_map map[string]interface{}, attributesKey []string)

type NetworkInterface

type NetworkInterface struct {
	//paramsの2重構造は対応できないから、配列で持って要素で関連づけ
	Number                            string
	AccessConfigAssignedNatIP         []string `json:"assigned_nat_ip"`
	AccessConfigNatIP                 []string `json:"nat_ip"`
	AccessConfigNetworkTier           []string `json:"network_tier"`
	Address                           string   `json:"address"`
	AliasIPRangeIPCidrRange           []string `json:"alias_ip_range"`
	AliasIPRangeIPSubnetworkRangeName []string `json:"alias_ip_range.#"`
	Network                           string   `json:"network"`
	NetworkIP                         string   `json:"network_ip"`
	Subnetwork                        string   `json:"subnetwork"`
	SubnetworkProject                 string   `json:"subnetwork_project"`
}

func (*NetworkInterface) GetNumber

func (d *NetworkInterface) GetNumber() string

func (*NetworkInterface) SetNumber

func (d *NetworkInterface) SetNumber(num string)

func (*NetworkInterface) SetParameter

func (d *NetworkInterface) SetParameter(key, value string, attributes_map map[string]interface{}, attributesKey []string)

type NetworkInterfaceAliasIPRange

type NetworkInterfaceAliasIPRange struct {
	Number string
}

type NetworkPolicy

type NetworkPolicy struct {
	Number   string
	Enabled  string `json:"enabled"`
	Provider string `json:"provider"`
}

func (*NetworkPolicy) GetNumber

func (d *NetworkPolicy) GetNumber() string

func (*NetworkPolicy) SetNumber

func (d *NetworkPolicy) SetNumber(num string)

func (*NetworkPolicy) SetParameter

func (d *NetworkPolicy) SetParameter(key, value string, attributes_map map[string]interface{}, attributesKey []string)

type NetworkPolicyConfig

type NetworkPolicyConfig struct {
	Number   string
	Disabled string `json:"disabled"`
}

func (*NetworkPolicyConfig) GetNumber

func (d *NetworkPolicyConfig) GetNumber() string

func (*NetworkPolicyConfig) SetNumber

func (d *NetworkPolicyConfig) SetNumber(num string)

func (*NetworkPolicyConfig) SetParameter

func (d *NetworkPolicyConfig) SetParameter(key, value string, attributes_map map[string]interface{}, attributesKey []string)

type Networks

type Networks struct {
	Number     string
	NetworkURL string `json:"network_url"`
}

func (*Networks) GetNumber

func (d *Networks) GetNumber() string

func (*Networks) SetNumber

func (d *Networks) SetNumber(num string)

func (*Networks) SetParameter

func (d *Networks) SetParameter(key, value string, attributes_map map[string]interface{}, attributesKey []string)

type NodeConfig

type NodeConfig struct {
	Number                 string
	DiskSizeGb             string            `json:"disk_size_gb"`
	DiskType               string            `json:"disk_type"`
	GuestAccelerator       []Params          `json:"guest_accelerator"`
	ImageType              string            `json:"image_type"`
	Labels                 map[string]string `json:"labels"`
	MachineType            string            `json:"machine_type"`
	Metadata               map[string]string `json:"metadata"`
	OauthScopes            []string          `json:"oauth_scopes"`
	Preemptible            string            `json:"preemptible"`
	ServiceAccount         string            `json:"service_account"`
	Tags                   []string          `json:"tags"`
	Taint                  []Params          `json:"taint"`
	WorkloadMetadataConfig string            `json:"workload_metadata_config"`
}

func (*NodeConfig) GetNumber

func (d *NodeConfig) GetNumber() string

func (*NodeConfig) SetNumber

func (d *NodeConfig) SetNumber(num string)

func (*NodeConfig) SetParameter

func (d *NodeConfig) SetParameter(key, value string, attributes_map map[string]interface{}, attributesKey []string)

type NodePool

type NodePool struct {
	Number            string
	Autoscaling       []Params `json:"autoscaling"`
	InitialNodeCount  string   `json:"initial_node_count"`
	InstanceGroupUrls []string `json:"instance_group_urls"`
	Management        []Params `json:"management"`
	MaxPodsPerNode    string   `json:"max_pods_per_node"`
	Name              string   `json:"name"`
	NamePrefix        string   `json:"name_prefix"`
	NodeConfig        []Params `json:"node_config"`
	NodeCount         string   `json:"node_count"`
	Version           string   `json:"version"`
}

func (*NodePool) GetNumber

func (d *NodePool) GetNumber() string

func (*NodePool) SetNumber

func (d *NodePool) SetNumber(num string)

func (*NodePool) SetParameter

func (d *NodePool) SetParameter(key, value string, attributes_map map[string]interface{}, attributesKey []string)

type Params

type Params interface {
	SetParameter(string, string, map[string]interface{}, []string)
	SetNumber(string)
	GetNumber() string
}

Params interface for Parameters

func CreateStructSlice

func CreateStructSlice(attributes_map map[string]interface{}, attributesKey []string, name string, slicePoint int, fn func(string) Params) []Params

CreateStructSlice creates Parameter struct slice ex) Allow

func NewAction

func NewAction(num string) Params

func NewAddonsConfig

func NewAddonsConfig(num string) Params

func NewAllowOrDeny

func NewAllowOrDeny(num string) Params

func NewAlternativeNameServerConfig

func NewAlternativeNameServerConfig(num string) Params

func NewAttachedDisk

func NewAttachedDisk(num string) Params

func NewAuthorizedNetworks

func NewAuthorizedNetworks(num string) Params

func NewAutoscaling

func NewAutoscaling(num string) Params

func NewAutoscalingPolicy

func NewAutoscalingPolicy(num string) Params

func NewBackend

func NewBackend(num string) Params

func NewBackupConfiguration

func NewBackupConfiguration(num string) Params

func NewCacheKeyPolicy

func NewCacheKeyPolicy(num string) Params

func NewCdnPolicy

func NewCdnPolicy(num string) Params

func NewCidrBlocks

func NewCidrBlocks(num string) Params

func NewClusterAutoscaling

func NewClusterAutoscaling(num string) Params

func NewCondition

func NewCondition(num string) Params

func NewCors

func NewCors(num string) Params

func NewDailyMaintenanceWindow

func NewDailyMaintenanceWindow(num string) Params

func NewDatabaseFlags

func NewDatabaseFlags(num string) Params

func NewDisk

func NewDisk(num string) Params

func NewEncryption

func NewEncryption(num string) Params

func NewEncryptionKey

func NewEncryptionKey(num string) Params

func NewExpirationPolicy

func NewExpirationPolicy(num string) Params

func NewForwardingConfig

func NewForwardingConfig(num string) Params

func NewGuestAccelerator

func NewGuestAccelerator(num string) Params

func NewHTTPLoadBalancing

func NewHTTPLoadBalancing(num string) Params

func NewHealthCheck

func NewHealthCheck(num string) Params

func NewHorizontalPodAutoscaling

func NewHorizontalPodAutoscaling(num string) Params

func NewHostRule

func NewHostRule(num string) Params

func NewIPAddress

func NewIPAddress(num string) Params

func NewIPAllocationPolicy

func NewIPAllocationPolicy(num string) Params

func NewIPConfiguration

func NewIPConfiguration(num string) Params

func NewIap

func NewIap(num string) Params

func NewKubernetesDashboard

func NewKubernetesDashboard(num string) Params

func NewLifecycleRule

func NewLifecycleRule(num string) Params

func NewLocationPreference

func NewLocationPreference(num string) Params

func NewLogging

func NewLogging(num string) Params

func NewMaintenancePolicy

func NewMaintenancePolicy(num string) Params

func NewMaintenanceWindow

func NewMaintenanceWindow(num string) Params

func NewManagement

func NewManagement(num string) Params

func NewMasterAuth

func NewMasterAuth(num string) Params

func NewMasterAuthorizedNetworksConfig

func NewMasterAuthorizedNetworksConfig(num string) Params

func NewMetric

func NewMetric(num string) Params

func NewNamedPort

func NewNamedPort(num string) Params

func NewNetworkInterface

func NewNetworkInterface(num string) Params

func NewNetworkPolicy

func NewNetworkPolicy(num string) Params

func NewNetworkPolicyConfig

func NewNetworkPolicyConfig(num string) Params

func NewNetworks

func NewNetworks(num string) Params

func NewNodeConfig

func NewNodeConfig(num string) Params

func NewNodePool

func NewNodePool(num string) Params

func NewPathMatcher

func NewPathMatcher(num string) Params

func NewPathRule

func NewPathRule(num string) Params

func NewPeeringConfig

func NewPeeringConfig(num string) Params

func NewPrivateClusterConfig

func NewPrivateClusterConfig(num string) Params

func NewPrivateVisibilityConfig

func NewPrivateVisibilityConfig(num string) Params

func NewPushConfig

func NewPushConfig(num string) Params

func NewReplicaConfiguration

func NewReplicaConfiguration(num string) Params

func NewResourceLimits

func NewResourceLimits(num string) Params

func NewScheduling

func NewScheduling(num string) Params

func NewScratchDisk

func NewScratchDisk(num string) Params

func NewSecondaryIPRange

func NewSecondaryIPRange(num string) Params

func NewServerCaCert

func NewServerCaCert(num string) Params

func NewServiceAccount

func NewServiceAccount(num string) Params

func NewSettings

func NewSettings(num string) Params

func NewTaint

func NewTaint(num string) Params

func NewTargetNameServers

func NewTargetNameServers(num string) Params

func NewTargetNetwork

func NewTargetNetwork(num string) Params

func NewTest

func NewTest(num string) Params

func NewVersionTemplate

func NewVersionTemplate(num string) Params

func NewVersioning

func NewVersioning(num string) Params

type PathMatcher

type PathMatcher struct {
	Number         string
	DefaultService string `json:"default_service"`
	Description    string `json:"description"`
	Name           string `json:"name"`
	PathRule       []Params
}

func (*PathMatcher) GetNumber

func (d *PathMatcher) GetNumber() string

func (*PathMatcher) SetNumber

func (d *PathMatcher) SetNumber(num string)

func (*PathMatcher) SetParameter

func (d *PathMatcher) SetParameter(key, value string, attributes_map map[string]interface{}, attributesKey []string)

type PathRule

type PathRule struct {
	Number  string
	Paths   []string
	Service string `json:".path_rule.service"`
}

func (*PathRule) GetNumber

func (d *PathRule) GetNumber() string

func (*PathRule) SetNumber

func (d *PathRule) SetNumber(num string)

func (*PathRule) SetParameter

func (d *PathRule) SetParameter(key, value string, attributes_map map[string]interface{}, attributesKey []string)

type PeeringConfig

type PeeringConfig struct {
	Number        string
	TargetNetwork []Params `json:"target_network"`
}

func (*PeeringConfig) GetNumber

func (d *PeeringConfig) GetNumber() string

func (*PeeringConfig) SetNumber

func (d *PeeringConfig) SetNumber(num string)

func (*PeeringConfig) SetParameter

func (d *PeeringConfig) SetParameter(key, value string, attributes_map map[string]interface{}, attributesKey []string)

type PrivateClusterConfig

type PrivateClusterConfig struct {
	Number                string
	EnablePrivateEndpoint string `json:"enable_private_endpoint"`
	EnablePrivateNodes    string `json:"enable_private_nodes"`
	MasterIpv4CidrBlock   string `json:"master_ipv4_cidr_block"`
	PrivateEndpoint       string `json:"private_endpoint"`
	PublicEndpoint        string `json:"public_endpoint"`
}

func (*PrivateClusterConfig) GetNumber

func (d *PrivateClusterConfig) GetNumber() string

func (*PrivateClusterConfig) SetNumber

func (d *PrivateClusterConfig) SetNumber(num string)

func (*PrivateClusterConfig) SetParameter

func (d *PrivateClusterConfig) SetParameter(key, value string, attributes_map map[string]interface{}, attributesKey []string)

type PrivateVisibilityConfig

type PrivateVisibilityConfig struct {
	Number   string
	Networks []Params `json:"networks"`
}

func (*PrivateVisibilityConfig) GetNumber

func (d *PrivateVisibilityConfig) GetNumber() string

func (*PrivateVisibilityConfig) SetNumber

func (d *PrivateVisibilityConfig) SetNumber(num string)

func (*PrivateVisibilityConfig) SetParameter

func (d *PrivateVisibilityConfig) SetParameter(key, value string, attributes_map map[string]interface{}, attributesKey []string)

type PushConfig

type PushConfig struct {
	Number       string
	PushEndpoint string `json:"push_endpoint"`
	Attributes   string `json:"attributes"`
}

func (*PushConfig) GetNumber

func (d *PushConfig) GetNumber() string

func (*PushConfig) SetNumber

func (d *PushConfig) SetNumber(num string)

func (*PushConfig) SetParameter

func (d *PushConfig) SetParameter(key, value string, attributes_map map[string]interface{}, attributesKey []string)

type ReplicaConfiguration

type ReplicaConfiguration struct {
	Number                  string
	CaCertificate           string `json:"ca_certificate"`
	ClientCertificate       string `json:"client_certificate"`
	ClientKey               string `json:"client_key"`
	ConnectRetryInterval    string `json:"connect_retry_interval"`
	DumpFilePath            string `json:"dump_file_path"`
	FailoverTarget          string `json:"failover_target"`
	MasterHeartbeatPeriod   string `json:"master_heartbeat_period"`
	Password                string `json:"password"`
	SslCipher               string `json:"ssl_cipher"`
	Username                string `json:"username"`
	VerifyServerCertificate string `json:"verify_server_certificate"`
}

func (*ReplicaConfiguration) GetNumber

func (d *ReplicaConfiguration) GetNumber() string

func (*ReplicaConfiguration) SetNumber

func (d *ReplicaConfiguration) SetNumber(num string)

func (*ReplicaConfiguration) SetParameter

func (d *ReplicaConfiguration) SetParameter(key, value string, attributes_map map[string]interface{}, attributesKey []string)

type ResourceLimits

type ResourceLimits struct {
	Number       string
	ResourceType string `json:"resource_type"`
	Minimum      string `json:"minimum"`
	Maximum      string `json:"maximum"`
}

func (*ResourceLimits) GetNumber

func (d *ResourceLimits) GetNumber() string

func (*ResourceLimits) SetNumber

func (d *ResourceLimits) SetNumber(num string)

func (*ResourceLimits) SetParameter

func (d *ResourceLimits) SetParameter(key, value string, attributes_map map[string]interface{}, attributesKey []string)

type Scheduling

type Scheduling struct {
	Number            string
	AutomaticRestart  string `json:"automatic_restart"`
	OnHostMaintenance string `json:"on_host_maintenance"`
	Preemptible       string `json:"preemptible"`
}

func (*Scheduling) GetNumber

func (d *Scheduling) GetNumber() string

func (*Scheduling) SetNumber

func (d *Scheduling) SetNumber(num string)

func (*Scheduling) SetParameter

func (d *Scheduling) SetParameter(key, value string, attributes_map map[string]interface{}, attributesKey []string)

type ScratchDisk

type ScratchDisk struct {
	Number    string
	Interface string `json:"interface"`
}

func (*ScratchDisk) GetNumber

func (d *ScratchDisk) GetNumber() string

func (*ScratchDisk) SetNumber

func (d *ScratchDisk) SetNumber(num string)

func (*ScratchDisk) SetParameter

func (d *ScratchDisk) SetParameter(key, value string, attributes_map map[string]interface{}, attributesKey []string)

type SecondaryIPRange

type SecondaryIPRange struct {
	Number        string
	Ip_cidr_range string
	Range_name    string
}

func (*SecondaryIPRange) GetNumber

func (d *SecondaryIPRange) GetNumber() string

func (*SecondaryIPRange) SetNumber

func (d *SecondaryIPRange) SetNumber(num string)

func (*SecondaryIPRange) SetParameter

func (d *SecondaryIPRange) SetParameter(key, value string, attributes_map map[string]interface{}, attributesKey []string)

type ServerCaCert

type ServerCaCert struct {
	Number          string
	Cert            string `json:"cert"`
	CommonName      string `json:"common_name"`
	CreateTime      string `json:"create_time"`
	ExpirationTime  string `json:"expiration_time"`
	Sha1Fingerprint string `json:"sha1_fingerprint"`
}

func (*ServerCaCert) GetNumber

func (d *ServerCaCert) GetNumber() string

func (*ServerCaCert) SetNumber

func (d *ServerCaCert) SetNumber(num string)

func (*ServerCaCert) SetParameter

func (d *ServerCaCert) SetParameter(key, value string, attributes_map map[string]interface{}, attributesKey []string)

type ServiceAccount

type ServiceAccount struct {
	Number string
	Email  string   `json:"service_account.email"`
	Scopes []string `json:"service_account.scopes"`
}

func (*ServiceAccount) GetNumber

func (d *ServiceAccount) GetNumber() string

func (*ServiceAccount) SetNumber

func (d *ServiceAccount) SetNumber(num string)

func (*ServiceAccount) SetParameter

func (d *ServiceAccount) SetParameter(key, value string, attributes_map map[string]interface{}, attributesKey []string)

type Settings

type Settings struct {
	Number                    string
	ActivationPolicy          string            `json:"activation_policy"`
	AuthorizedGaeApplications []string          `json:"authorized_gae_applications"`
	AvailabilityType          string            `json:"availability_type"`
	BackupConfiguration       []Params          `json:"backup_configuration"`
	CrashSafeReplication      string            `json:"crash_safe_replication"`
	DatabaseFlags             []Params          `json:"database_flags"`
	DiskAutoresize            string            `json:"disk_autoresize"`
	DiskSize                  string            `json:"disk_size"`
	DiskType                  string            `json:"disk_type"`
	IPConfiguration           []Params          `json:"ip_configuration"`
	LocationPreference        []Params          `json:"location_preference"`
	MaintenanceWindow         []Params          `json:"maintenance_window"`
	PricingPlan               string            `json:"pricing_plan"`
	ReplicationType           string            `json:"replication_type"`
	Tier                      string            `json:"tier"`
	UserLabels                map[string]string `json:"user_labels"`
	Version                   string            `json:"version"`
}

func (*Settings) GetNumber

func (d *Settings) GetNumber() string

func (*Settings) SetNumber

func (d *Settings) SetNumber(num string)

func (*Settings) SetParameter

func (d *Settings) SetParameter(key, value string, attributes_map map[string]interface{}, attributesKey []string)

type SnapshotEncryptionKey

type SnapshotEncryptionKey struct {
	Number string
	RawKey string
}

func NewSnapshotEncryptionKey

func NewSnapshotEncryptionKey(num string) *SnapshotEncryptionKey

func (*SnapshotEncryptionKey) SetRawKey

func (s *SnapshotEncryptionKey) SetRawKey(RawKey string)

type Taint

type Taint struct {
	Number string
	Key    string `json:"key"`
	Value  string `json:"value"`
	Effect string `json:"effect"`
}

func (*Taint) GetNumber

func (d *Taint) GetNumber() string

func (*Taint) SetNumber

func (d *Taint) SetNumber(num string)

func (*Taint) SetParameter

func (d *Taint) SetParameter(key, value string, attributes_map map[string]interface{}, attributesKey []string)

type TargetNameServers

type TargetNameServers struct {
	Number      string
	IPv4Address string `json:"ipv4_address"`
}

func (*TargetNameServers) GetNumber

func (d *TargetNameServers) GetNumber() string

func (*TargetNameServers) SetNumber

func (d *TargetNameServers) SetNumber(num string)

func (*TargetNameServers) SetParameter

func (d *TargetNameServers) SetParameter(key, value string, attributes_map map[string]interface{}, attributesKey []string)

type TargetNetwork

type TargetNetwork struct {
	Number     string
	NetworkURL string `json:"network_url"`
}

func (*TargetNetwork) GetNumber

func (d *TargetNetwork) GetNumber() string

func (*TargetNetwork) SetNumber

func (d *TargetNetwork) SetNumber(num string)

func (*TargetNetwork) SetParameter

func (d *TargetNetwork) SetParameter(key, value string, attributes_map map[string]interface{}, attributesKey []string)

type Test

type Test struct {
	Number      string
	Description string `json:"description"`
	Host        string `json:"host"`
	Path        string `json:"path"`
	Service     string `json:"service"`
}

func (*Test) GetNumber

func (d *Test) GetNumber() string

func (*Test) SetNumber

func (d *Test) SetNumber(num string)

func (*Test) SetParameter

func (d *Test) SetParameter(key, value string, attributes_map map[string]interface{}, attributesKey []string)

type Tfstate

type Tfstate struct {
	Version          int      `json:"version"`
	TerraformVersion string   `json:"terraform_version"`
	Serial           int      `json:"serial"`
	Lineage          string   `json:"lineage"`
	Modules          []Module `json:"modules"`
}

Tfstate Struct

func TfstateByteToStruct

func TfstateByteToStruct(bytes []byte) (Tfstate, error)

TfstateByteToStruct converts byte to struct

type VersionTemplate

type VersionTemplate struct {
	Number          string
	Algorithm       string `json:"algorithm"`
	ProtectionLevel string `json:"protection_level"`
}

func (*VersionTemplate) GetNumber

func (d *VersionTemplate) GetNumber() string

func (*VersionTemplate) SetNumber

func (d *VersionTemplate) SetNumber(num string)

func (*VersionTemplate) SetParameter

func (d *VersionTemplate) SetParameter(key, value string, attributes_map map[string]interface{}, attributesKey []string)

type Versioning

type Versioning struct {
	Number  string
	Enabled string `json:"enabled"`
}

func (*Versioning) GetNumber

func (d *Versioning) GetNumber() string

func (*Versioning) SetNumber

func (d *Versioning) SetNumber(num string)

func (*Versioning) SetParameter

func (d *Versioning) SetParameter(key, value string, attributes_map map[string]interface{}, attributesKey []string)

Jump to

Keyboard shortcuts

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