tfconfig

package
v0.0.0-...-1160ede Latest Latest
Warning

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

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

Documentation

Overview

Package tfconfig provides utilities to parse terraform resource configurations. This is a temporary package and will be merged back into the parent config package once deployment manager has been deprecated.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Access

type Access struct {
	Role         string `json:"role"`
	UserByEmail  string `json:"user_by_email,omitempty"`
	GroupByEmail string `json:"group_by_email,omitempty"`
	Domain       string `json:"domain,omitempty"`

	// Unsupported roles.
	SpecialGroup string      `json:"special_group,omitempty"`
	View         interface{} `json:"view,omitempty"`
}

Access defines a dataset access. Only one non-role field should be set.

type AuditLogConfig

type AuditLogConfig struct {
	LogType string `json:"log_type"`
}

AuditLogConfig represents a terraform audit log config.

type BigqueryDataset

type BigqueryDataset struct {
	DatasetID string `json:"dataset_id"`
	Project   string `json:"project"`
	Location  string `json:"location"`

	// Note: accesses are authoritative, meaning they will overwrite any existing access.
	// We can support non-authoritative access after https://github.com/terraform-providers/terraform-provider-google/issues/3990 is fixed.
	// TODO: set access on the dataset by default so it overrides the default which
	// grants the running user owners permission.
	Accesses []*Access `json:"access,omitempty"`
	// contains filtered or unexported fields
}

BigqueryDataset represents a bigquery dataset.

func (*BigqueryDataset) ID

func (d *BigqueryDataset) ID() string

ID returns the resource unique identifier.

func (*BigqueryDataset) ImportID

func (d *BigqueryDataset) ImportID(runner.Runner) (string, error)

ImportID returns the ID to use for terraform imports.

func (*BigqueryDataset) Init

func (d *BigqueryDataset) Init(projectID string) error

Init initializes the resource.

func (*BigqueryDataset) MarshalJSON

func (d *BigqueryDataset) MarshalJSON() ([]byte, error)

MarshalJSON provides a custom JSON marshaller. It is used to merge the original (raw) user JSON definition with the struct.

func (*BigqueryDataset) ResourceType

func (d *BigqueryDataset) ResourceType() string

ResourceType returns the resource terraform provider type.

func (*BigqueryDataset) UnmarshalJSON

func (d *BigqueryDataset) UnmarshalJSON(data []byte) error

UnmarshalJSON provides a custom JSON unmarshaller. It is used to store the original (raw) user JSON definition, which can have more fields than what is defined in this struct.

type CloudBuildTrigger

type CloudBuildTrigger struct {
	Name          string                 `json:"name"`
	Project       string                 `json:"project"`
	GitHub        *GitHub                `json:"github"`
	Description   string                 `json:"description,omitempty"`
	Disabled      bool                   `json:"disabled,omitempty"`
	Substitutions map[string]interface{} `json:"substitutions,omitempty"`
	Filename      string                 `json:"filename,omitempty"`
	IgnoredFiles  []string               `json:"ignored_files,omitempty"`
	IncludedFiles []string               `json:"included_files,omitempty"`
	// contains filtered or unexported fields
}

CloudBuildTrigger represents a Terraform Cloudbuild Trigger.

func (*CloudBuildTrigger) ID

func (t *CloudBuildTrigger) ID() string

ID returns the resource unique identifier.

func (*CloudBuildTrigger) Init

func (t *CloudBuildTrigger) Init(projectID string) error

Init initializes the resource.

func (*CloudBuildTrigger) MarshalJSON

func (t *CloudBuildTrigger) MarshalJSON() ([]byte, error)

MarshalJSON provides a custom JSON marshaller. It is used to merge the original (raw) user JSON definition with the struct.

func (*CloudBuildTrigger) ResourceType

func (t *CloudBuildTrigger) ResourceType() string

ResourceType returns the resource terraform provider type.

func (*CloudBuildTrigger) UnmarshalJSON

func (t *CloudBuildTrigger) UnmarshalJSON(data []byte) error

UnmarshalJSON provides a custom JSON unmarshaller. It is used to store the original (raw) user JSON definition, which can have more fields than what is defined in this struct.

type ComputeFirewall

type ComputeFirewall struct {
	Name    string `json:"name"`
	Project string `json:"project"`
	// contains filtered or unexported fields
}

ComputeFirewall represents a Terraform GCE firewall.

func (*ComputeFirewall) ID

func (f *ComputeFirewall) ID() string

ID returns the resource unique identifier.

func (*ComputeFirewall) ImportID

func (f *ComputeFirewall) ImportID(runner.Runner) (string, error)

ImportID returns the ID to use for terraform imports.

func (*ComputeFirewall) Init

func (f *ComputeFirewall) Init(projectID string) error

Init initializes the resource.

func (*ComputeFirewall) MarshalJSON

func (f *ComputeFirewall) MarshalJSON() ([]byte, error)

MarshalJSON provides a custom JSON marshaller. It is used to merge the original (raw) user JSON definition with the struct.

func (*ComputeFirewall) ResourceType

func (*ComputeFirewall) ResourceType() string

ResourceType returns the resource terraform provider type.

func (*ComputeFirewall) UnmarshalJSON

func (f *ComputeFirewall) UnmarshalJSON(data []byte) error

UnmarshalJSON provides a custom JSON unmarshaller. It is used to store the original (raw) user JSON definition, which can have more fields than what is defined in this struct.

type ComputeImage

type ComputeImage struct {
	Name    string `json:"name"`
	Project string `json:"project"`
	// contains filtered or unexported fields
}

ComputeImage represents a Terraform GCE compute image.

func (*ComputeImage) ID

func (i *ComputeImage) ID() string

ID returns the resource unique identifier.

func (*ComputeImage) ImportID

func (i *ComputeImage) ImportID(runner.Runner) (string, error)

ImportID returns the ID to use for terraform imports.

func (*ComputeImage) Init

func (i *ComputeImage) Init(projectID string) error

Init initializes the resource.

func (*ComputeImage) MarshalJSON

func (i *ComputeImage) MarshalJSON() ([]byte, error)

MarshalJSON provides a custom JSON marshaller. It is used to merge the original (raw) user JSON definition with the struct.

func (*ComputeImage) ResourceType

func (i *ComputeImage) ResourceType() string

ResourceType returns the resource terraform provider type.

func (*ComputeImage) UnmarshalJSON

func (i *ComputeImage) UnmarshalJSON(data []byte) error

UnmarshalJSON provides a custom JSON unmarshaller. It is used to store the original (raw) user JSON definition, which can have more fields than what is defined in this struct.

type ComputeInstance

type ComputeInstance struct {
	Name    string `json:"name"`
	Project string `json:"project"`
	Zone    string `json:"zone"`
	// contains filtered or unexported fields
}

ComputeInstance represents a Terraform GCE compute instance.

func (*ComputeInstance) ID

func (i *ComputeInstance) ID() string

ID returns the resource unique identifier.

func (*ComputeInstance) ImportID

func (i *ComputeInstance) ImportID(runner.Runner) (string, error)

ImportID returns the ID to use for terraform imports.

func (*ComputeInstance) Init

func (i *ComputeInstance) Init(projectID string) error

Init initializes the resource.

func (*ComputeInstance) MarshalJSON

func (i *ComputeInstance) MarshalJSON() ([]byte, error)

MarshalJSON provides a custom JSON marshaller. It is used to merge the original (raw) user JSON definition with the struct.

func (*ComputeInstance) ResourceType

func (i *ComputeInstance) ResourceType() string

ResourceType returns the resource terraform provider type.

func (*ComputeInstance) UnmarshalJSON

func (i *ComputeInstance) UnmarshalJSON(data []byte) error

UnmarshalJSON provides a custom JSON unmarshaller. It is used to store the original (raw) user JSON definition, which can have more fields than what is defined in this struct.

type Condition

type Condition struct {
	DisplayName        string              `json:"display_name,omitempty"`
	ConditionThreshold *ConditionThreshold `json:"condition_threshold,omitempty"`
}

Condition is a condition for the policy. If the combined conditions evaluate to true, then an incident is created.

type ConditionThreshold

type ConditionThreshold struct {
	Filter     string `json:"filter,omitempty"`
	Comparison string `json:"comparison"`
	Duration   string `json:"duration"`
}

ConditionThreshold is a condition that compares a time series against a threshold.

type DataFusionInstance

type DataFusionInstance struct {
	Name    string `json:"name"`
	Project string `json:"project"`
	Type    string `json:"type"`
	Region  string `json:"region"`

	Provider                    string `json:"provider,omitempty"`
	EnableStackdriverLogging    *bool  `json:"enable_stackdriver_logging,omitempty"`
	EnableStackdriverMonitoring *bool  `json:"enable_stackdriver_monitoring,omitempty"`
	// contains filtered or unexported fields
}

DataFusionInstance represents a Terraform Data Fusion Instance.

func (*DataFusionInstance) ID

func (i *DataFusionInstance) ID() string

ID returns the resource unique identifier.

func (*DataFusionInstance) ImportID

func (i *DataFusionInstance) ImportID(runner.Runner) (string, error)

ImportID returns the ID to use for terraform imports.

func (*DataFusionInstance) Init

func (i *DataFusionInstance) Init(projectID string) error

Init initializes the resource.

func (*DataFusionInstance) MarshalJSON

func (i *DataFusionInstance) MarshalJSON() ([]byte, error)

MarshalJSON provides a custom JSON marshaller. It is used to merge the original (raw) user JSON definition with the struct.

func (*DataFusionInstance) ResourceType

func (i *DataFusionInstance) ResourceType() string

ResourceType returns the resource terraform provider type.

func (*DataFusionInstance) UnmarshalJSON

func (i *DataFusionInstance) UnmarshalJSON(data []byte) error

UnmarshalJSON provides a custom JSON unmarshaller. It is used to store the original (raw) user JSON definition, which can have more fields than what is defined in this struct.

type Documentation

type Documentation struct {
	Content  string `json:"content,omitempty"`
	MimeType string `json:"mime_type,omitempty"`
}

Documentation is a short name or phrase used to identify the policy in dashboards, notifications, and incidents.

type GitHub

type GitHub struct {
	Owner       string       `json:"owner"`
	Name        string       `json:"name"`
	PullRequest *PullRequest `json:"pull_request,omitempty"`
	Push        *Push        `json:"push,omitempty"`
}

GitHub represents a github block in Terraform Cloudbuild Trigger.

type HealthcareDICOMStore

type HealthcareDICOMStore struct {
	Name     string `json:"name"`
	Dataset  string `json:"dataset"`
	Provider string `json:"provider,omitempty"`

	IAMMembers []*HealthcareDICOMStoreIAMMember `json:"_iam_members"`
	// contains filtered or unexported fields
}

HealthcareDICOMStore represents a terraform DICOM store.

func (*HealthcareDICOMStore) DependentResources

func (s *HealthcareDICOMStore) DependentResources() []Resource

DependentResources returns the child resources of this resource.

func (*HealthcareDICOMStore) ID

func (s *HealthcareDICOMStore) ID() string

ID returns the resource unique identifier.

func (*HealthcareDICOMStore) Init

Init initializes the resource.

func (*HealthcareDICOMStore) MarshalJSON

func (s *HealthcareDICOMStore) MarshalJSON() ([]byte, error)

MarshalJSON provides a custom JSON marshaller. It is used to merge the original (raw) user JSON definition with the struct.

func (*HealthcareDICOMStore) ResourceType

func (*HealthcareDICOMStore) ResourceType() string

ResourceType returns the resource terraform provider type.

func (*HealthcareDICOMStore) UnmarshalJSON

func (s *HealthcareDICOMStore) UnmarshalJSON(data []byte) error

UnmarshalJSON provides a custom JSON unmarshaller. It is used to store the original (raw) user JSON definition, which can have more fields than what is defined in this struct.

type HealthcareDICOMStoreIAMMember

type HealthcareDICOMStoreIAMMember struct {
	Role     string `json:"role"`
	Member   string `json:"member"`
	Provider string `json:"provider,omitempty"`

	// ForEach is used to let a single iam member expand to reference multiple iam members
	// through the use of terraform's for_each iterator.
	ForEach map[string]*HealthcareDICOMStoreIAMMember `json:"for_each,omitempty"`

	// DICOMStoreID should be written as a terraform reference to a DICOM store to create an implicit dependency.
	DICOMStoreID string `json:"dicom_store_id,omitempty"`
	// contains filtered or unexported fields
}

HealthcareDICOMStoreIAMMember represents a terraform DICOM store IAM member.

func (*HealthcareDICOMStoreIAMMember) ID

ID returns the unique identifier.

func (*HealthcareDICOMStoreIAMMember) Init

Init initializes the resource.

func (*HealthcareDICOMStoreIAMMember) ResourceType

func (m *HealthcareDICOMStoreIAMMember) ResourceType() string

ResourceType returns the terraform provider type.

type HealthcareDataset

type HealthcareDataset struct {
	Name     string `json:"name"`
	Project  string `json:"project"`
	Provider string `json:"provider,omitempty"`
	Location string `json:"location"`

	IAMMembers []*HealthcareDatasetIAMMember `json:"_iam_members"`

	DICOMStores []*HealthcareDICOMStore `json:"_dicom_stores"`
	FHIRStores  []*HealthcareFHIRStore  `json:"_fhir_stores"`
	HL7V2Stores []*HealthcareHL7V2Store `json:"_hl7_v2_stores"`
	// contains filtered or unexported fields
}

HealthcareDataset represents a terraform healthcare dataset.

func (*HealthcareDataset) DependentResources

func (d *HealthcareDataset) DependentResources() []Resource

DependentResources returns the child resources of this resource.

func (*HealthcareDataset) ID

func (d *HealthcareDataset) ID() string

ID returns the resource unique identifier.

func (*HealthcareDataset) ImportID

func (d *HealthcareDataset) ImportID(runner.Runner) (string, error)

ImportID returns the ID to use for terraform imports.

func (*HealthcareDataset) Init

func (d *HealthcareDataset) Init(projectID string) error

Init initializes the resource.

func (*HealthcareDataset) MarshalJSON

func (d *HealthcareDataset) MarshalJSON() ([]byte, error)

MarshalJSON provides a custom JSON marshaller. It is used to merge the original (raw) user JSON definition with the struct.

func (*HealthcareDataset) ResourceType

func (*HealthcareDataset) ResourceType() string

ResourceType returns the resource terraform provider type.

func (*HealthcareDataset) UnmarshalJSON

func (d *HealthcareDataset) UnmarshalJSON(data []byte) error

UnmarshalJSON provides a custom JSON unmarshaller. It is used to store the original (raw) user JSON definition, which can have more fields than what is defined in this struct.

type HealthcareDatasetIAMMember

type HealthcareDatasetIAMMember struct {
	Role     string `json:"role"`
	Member   string `json:"member"`
	Provider string `json:"provider,omitempty"`

	// ForEach is used to let a single iam member expand to reference multiple iam members
	// through the use of terraform's for_each iterator.
	ForEach map[string]*HealthcareDatasetIAMMember `json:"for_each,omitempty"`

	// DatsetID should be written as a terraform reference to a dataset to create an implicit dependency.
	DatasetID string `json:"dataset_id,omitempty"`
	// contains filtered or unexported fields
}

HealthcareDatasetIAMMember represents a Terraform GCS bucket IAM member.

func (*HealthcareDatasetIAMMember) ID

ID returns the unique identifier.

func (*HealthcareDatasetIAMMember) Init

Init initializes the resource.

func (*HealthcareDatasetIAMMember) ResourceType

func (m *HealthcareDatasetIAMMember) ResourceType() string

ResourceType returns the terraform provider type.

type HealthcareFHIRStore

type HealthcareFHIRStore struct {
	Name     string `json:"name"`
	Dataset  string `json:"dataset"`
	Provider string `json:"provider,omitempty"`

	IAMMembers []*HealthcareFHIRStoreIAMMember `json:"_iam_members"`
	// contains filtered or unexported fields
}

HealthcareFHIRStore represents a terraform FHIR store.

func (*HealthcareFHIRStore) DependentResources

func (s *HealthcareFHIRStore) DependentResources() []Resource

DependentResources returns the child resources of this resource.

func (*HealthcareFHIRStore) ID

func (s *HealthcareFHIRStore) ID() string

ID returns the resource unique identifier.

func (*HealthcareFHIRStore) Init

func (s *HealthcareFHIRStore) Init(string) error

Init initializes the resource.

func (*HealthcareFHIRStore) MarshalJSON

func (s *HealthcareFHIRStore) MarshalJSON() ([]byte, error)

MarshalJSON provides a custom JSON marshaller. It is used to merge the original (raw) user JSON definition with the struct.

func (*HealthcareFHIRStore) ResourceType

func (*HealthcareFHIRStore) ResourceType() string

ResourceType returns the resource terraform provider type.

func (*HealthcareFHIRStore) UnmarshalJSON

func (s *HealthcareFHIRStore) UnmarshalJSON(data []byte) error

UnmarshalJSON provides a custom JSON unmarshaller. It is used to store the original (raw) user JSON definition, which can have more fields than what is defined in this struct.

type HealthcareFHIRStoreIAMMember

type HealthcareFHIRStoreIAMMember struct {
	Role     string `json:"role"`
	Member   string `json:"member"`
	Provider string `json:"provider,omitempty"`

	// ForEach is used to let a single iam member expand to reference multiple iam members
	// through the use of terraform's for_each iterator.
	ForEach map[string]*HealthcareFHIRStoreIAMMember `json:"for_each,omitempty"`

	// FHIRStoreID should be written as a terraform reference to a FHIR store to create an implicit dependency.
	FHIRStoreID string `json:"fhir_store_id,omitempty"`
	// contains filtered or unexported fields
}

HealthcareFHIRStoreIAMMember represents a terraform FHIR store IAM member.

func (*HealthcareFHIRStoreIAMMember) ID

ID returns the unique identifier.

func (*HealthcareFHIRStoreIAMMember) Init

Init initializes the resource.

func (*HealthcareFHIRStoreIAMMember) ResourceType

func (m *HealthcareFHIRStoreIAMMember) ResourceType() string

ResourceType returns the terraform provider type.

type HealthcareHL7V2Store

type HealthcareHL7V2Store struct {
	Name     string `json:"name"`
	Dataset  string `json:"dataset"`
	Provider string `json:"provider,omitempty"`

	IAMMembers []*HealthcareHL7V2StoreIAMMember `json:"_iam_members"`
	// contains filtered or unexported fields
}

HealthcareHL7V2Store represents a terraform HL7V2 store.

func (*HealthcareHL7V2Store) DependentResources

func (s *HealthcareHL7V2Store) DependentResources() []Resource

DependentResources returns the child resources of this resource.

func (*HealthcareHL7V2Store) ID

func (s *HealthcareHL7V2Store) ID() string

ID returns the resource unique identifier.

func (*HealthcareHL7V2Store) Init

Init initializes the resource.

func (*HealthcareHL7V2Store) MarshalJSON

func (s *HealthcareHL7V2Store) MarshalJSON() ([]byte, error)

MarshalJSON provides a custom JSON marshaller. It is used to merge the original (raw) user JSON definition with the struct.

func (*HealthcareHL7V2Store) ResourceType

func (*HealthcareHL7V2Store) ResourceType() string

ResourceType returns the resource terraform provider type.

func (*HealthcareHL7V2Store) UnmarshalJSON

func (s *HealthcareHL7V2Store) UnmarshalJSON(data []byte) error

UnmarshalJSON provides a custom JSON unmarshaller. It is used to store the original (raw) user JSON definition, which can have more fields than what is defined in this struct.

type HealthcareHL7V2StoreIAMMember

type HealthcareHL7V2StoreIAMMember struct {
	Role     string `json:"role"`
	Member   string `json:"member"`
	Provider string `json:"provider,omitempty"`

	// ForEach is used to let a single iam member expand to reference multiple iam members
	// through the use of terraform's for_each iterator.
	ForEach map[string]*HealthcareHL7V2StoreIAMMember `json:"for_each,omitempty"`

	// HL7V2StoreID should be written as a terraform reference to a HL7V2 store to create an implicit dependency.
	HL7V2StoreID string `json:"hl7_v2_store_id,omitempty"`
	// contains filtered or unexported fields
}

HealthcareHL7V2StoreIAMMember represents a terraform HL7V2 store IAM member.

func (*HealthcareHL7V2StoreIAMMember) ID

ID returns the unique identifier.

func (*HealthcareHL7V2StoreIAMMember) Init

Init initializes the resource.

func (*HealthcareHL7V2StoreIAMMember) ResourceType

func (m *HealthcareHL7V2StoreIAMMember) ResourceType() string

ResourceType returns the terraform provider type.

type Label

type Label struct {
	Key         string `json:"key,omitempty"`
	ValueType   string `json:"value_type,omitempty"`
	Description string `json:"description,omitempty"`
}

Label can be used to describe a specific instance of this metric type.

type LifecycleRule

type LifecycleRule struct {
	Action    *action    `json:"action,omitempty"`
	Condition *condition `json:"condition,omitempty"`
	// contains filtered or unexported fields
}

LifecycleRule defines a partial bucket lifecycle rule implementation.

func (*LifecycleRule) MarshalJSON

func (r *LifecycleRule) MarshalJSON() ([]byte, error)

MarshalJSON provides a custom JSON marshaller. It is used to merge the original (raw) user JSON definition with the struct.

func (*LifecycleRule) UnmarshalJSON

func (r *LifecycleRule) UnmarshalJSON(data []byte) error

UnmarshalJSON provides a custom JSON unmarshaller. It is used to store the original (raw) user JSON definition, which can have more fields than what is defined in this struct.

type Logging

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

Logging is the bucket's Access & Storage Logs configuration.

type LoggingMetric

type LoggingMetric struct {
	Name             string            `json:"name"`
	Project          string            `json:"project"`
	Description      string            `json:"description"`
	Filter           string            `json:"filter,omitempty"`
	MetricDescriptor *MetricDescriptor `json:"metric_descriptor,omitempty"`
	ValueExtractor   string            `json:"value_extractor,omitempty"`
	LabelExtractors  map[string]string `json:"label_extractors,omitempty"`
}

LoggingMetric represents a Terraform logging metric.

func (*LoggingMetric) ID

func (m *LoggingMetric) ID() string

ID returns the resource unique identifier.

func (*LoggingMetric) ImportID

func (m *LoggingMetric) ImportID(runner.Runner) (string, error)

ImportID returns the ID to use for terraform imports

func (*LoggingMetric) Init

func (m *LoggingMetric) Init(projectID string) error

Init initializes the resource.

func (*LoggingMetric) ResourceType

func (m *LoggingMetric) ResourceType() string

ResourceType returns the resource terraform provider type.

type LoggingSink

type LoggingSink struct {
	Name                 string `json:"name"`
	Project              string `json:"project"`
	Destination          string `json:"destination"`
	Filter               string `json:"filter"`
	UniqueWriterIdentity bool   `json:"unique_writer_identity"`
}

LoggingSink represents a logging sink.

func (*LoggingSink) ID

func (s *LoggingSink) ID() string

ID returns the resource unique identifier.

func (*LoggingSink) ImportID

func (s *LoggingSink) ImportID(runner.Runner) (string, error)

ImportID returns the ID to use for terraform imports.

func (*LoggingSink) Init

func (s *LoggingSink) Init(projectID string) error

Init initializes the resource.

func (*LoggingSink) ResourceType

func (*LoggingSink) ResourceType() string

ResourceType returns the resource terraform provider type.

type MetricDescriptor

type MetricDescriptor struct {
	MetricKind string   `json:"metric_kind,omitempty"`
	ValueType  string   `json:"value_type,omitempty"`
	Labels     []*Label `json:"labels,omitempty"`
}

MetricDescriptor is the metric descriptor associated with the logs-based metric.

type MonitoringAlertPolicy

type MonitoringAlertPolicy struct {
	DisplayName          string         `json:"display_name"`
	Project              string         `json:"project"`
	Combiner             string         `json:"combiner"`
	Conditions           []*Condition   `json:"conditions,omitempty"`
	NotificationChannels []string       `json:"notification_channels,omitempty"`
	Documentation        *Documentation `json:"documentation,omitempty"`
	// contains filtered or unexported fields
}

MonitoringAlertPolicy represents a Terraform monitoring alert policy.

func (*MonitoringAlertPolicy) ID

func (p *MonitoringAlertPolicy) ID() string

ID returns the resource unique identifier.

func (*MonitoringAlertPolicy) ImportID

func (p *MonitoringAlertPolicy) ImportID(rn runner.Runner) (string, error)

ImportID returns the ID to use for terraform imports.

func (*MonitoringAlertPolicy) Init

func (p *MonitoringAlertPolicy) Init(projectID string) error

Init initializes the resource.

func (*MonitoringAlertPolicy) MarshalJSON

func (p *MonitoringAlertPolicy) MarshalJSON() ([]byte, error)

MarshalJSON provides a custom JSON marshaller. It is used to merge the original (raw) user JSON definition with the struct.

func (*MonitoringAlertPolicy) ResourceType

func (p *MonitoringAlertPolicy) ResourceType() string

ResourceType returns the resource terraform provider type.

func (*MonitoringAlertPolicy) UnmarshalJSON

func (p *MonitoringAlertPolicy) UnmarshalJSON(data []byte) error

UnmarshalJSON provides a custom JSON unmarshaller. It is used to store the original (raw) user JSON definition, which can have more fields than what is defined in this struct.

type MonitoringNotificationChannel

type MonitoringNotificationChannel struct {
	DisplayName string                 `json:"display_name"`
	Project     string                 `json:"project"`
	Type        string                 `json:"type,omitempty"`
	Labels      map[string]interface{} `json:"labels,omitempty"`

	Email string `json:"_email"`
	// contains filtered or unexported fields
}

MonitoringNotificationChannel represents a Terraform monitoring notification channel.

func (*MonitoringNotificationChannel) ID

ID returns the resource unique identifier.

func (*MonitoringNotificationChannel) ImportID

ImportID returns the ID to use for terraform imports.

func (*MonitoringNotificationChannel) Init

func (c *MonitoringNotificationChannel) Init(projectID string) error

Init initializes the resource.

func (*MonitoringNotificationChannel) MarshalJSON

func (c *MonitoringNotificationChannel) MarshalJSON() ([]byte, error)

MarshalJSON provides a custom JSON marshaller. It is used to merge the original (raw) user JSON definition with the struct.

func (*MonitoringNotificationChannel) ResourceType

func (c *MonitoringNotificationChannel) ResourceType() string

ResourceType returns the resource terraform provider type.

func (*MonitoringNotificationChannel) UnmarshalJSON

func (c *MonitoringNotificationChannel) UnmarshalJSON(data []byte) error

UnmarshalJSON provides a custom JSON unmarshaller. It is used to store the original (raw) user JSON definition, which can have more fields than what is defined in this struct.

type ProjectIAMAuditConfig

type ProjectIAMAuditConfig struct {
	Project         string            `json:"project"`
	Service         string            `json:"service"`
	AuditLogConfigs []*AuditLogConfig `json:"audit_log_config"`
}

ProjectIAMAuditConfig represents a terraform project iam audit config.

func (*ProjectIAMAuditConfig) ID

func (c *ProjectIAMAuditConfig) ID() string

ID returns the resource unique identifier. It is hardcoded to return "project" as there is at most one of this resource in a deployment.

func (*ProjectIAMAuditConfig) Init

func (c *ProjectIAMAuditConfig) Init(projectID string) error

Init initializes the resource.

func (*ProjectIAMAuditConfig) ResourceType

func (c *ProjectIAMAuditConfig) ResourceType() string

ResourceType returns the resource terraform provider type.

type ProjectIAMCustomRole

type ProjectIAMCustomRole struct {
	RoleID  string `json:"role_id"`
	Project string `json:"project"`
	// contains filtered or unexported fields
}

ProjectIAMCustomRole represents a terraform project iam custom role.

func (*ProjectIAMCustomRole) ID

func (r *ProjectIAMCustomRole) ID() string

ID returns the resource unique identifier. It is hardcoded to return "project" as there is at most one of this resource in a deployment.

func (*ProjectIAMCustomRole) ImportID

func (r *ProjectIAMCustomRole) ImportID(runner.Runner) (string, error)

ImportID returns the ID to use for terraform imports.

func (*ProjectIAMCustomRole) Init

func (r *ProjectIAMCustomRole) Init(projectID string) error

Init initializes the resource.

func (*ProjectIAMCustomRole) MarshalJSON

func (r *ProjectIAMCustomRole) MarshalJSON() ([]byte, error)

MarshalJSON provides a custom JSON marshaller. It is used to merge the original (raw) user JSON definition with the struct.

func (*ProjectIAMCustomRole) ResourceType

func (r *ProjectIAMCustomRole) ResourceType() string

ResourceType returns the resource terraform provider type.

func (*ProjectIAMCustomRole) UnmarshalJSON

func (r *ProjectIAMCustomRole) UnmarshalJSON(data []byte) error

UnmarshalJSON provides a custom JSON unmarshaller. It is used to store the original (raw) user JSON definition, which can have more fields than what is defined in this struct.

type ProjectIAMMember

type ProjectIAMMember struct {
	Role   string `json:"role"`
	Member string `json:"member"`

	// ForEach is used to let a single iam member expand to reference multiple iam members
	// through the use of terraform's for_each iterator.
	ForEach   map[string]*ProjectIAMMember `json:"for_each,omitempty"`
	Project   string                       `json:"project,omitempty"`
	DependsOn []string                     `json:"depends_on,omitempty"`
}

ProjectIAMMember represents a Terraform project IAM member.

type ProjectIAMMembers

type ProjectIAMMembers struct {
	Members   []*ProjectIAMMember
	DependsOn []string
	// contains filtered or unexported fields
}

ProjectIAMMembers represents multiple Terraform project IAM members. It is used to wrap and merge multiple IAM members into a single IAM member when being marshalled to JSON.

func (*ProjectIAMMembers) ID

func (ms *ProjectIAMMembers) ID() string

ID returns the resource unique identifier. It is hardcoded to return "project" as there is at most one of this resource in a deployment.

func (*ProjectIAMMembers) Init

func (ms *ProjectIAMMembers) Init(projectID string) error

Init initializes the resource.

func (*ProjectIAMMembers) MarshalJSON

func (ms *ProjectIAMMembers) MarshalJSON() ([]byte, error)

MarshalJSON marshals the list of members into a single member. The single member will set a for_each block to expand to multiple iam members in the terraform call.

func (*ProjectIAMMembers) ResourceType

func (ms *ProjectIAMMembers) ResourceType() string

ResourceType returns the resource terraform provider type.

func (*ProjectIAMMembers) UnmarshalJSON

func (ms *ProjectIAMMembers) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the bytes to a list of members.

type ProjectResource

type ProjectResource struct {
	ProjectID      string            `json:"project_id"`
	Name           string            `json:"name"`
	OrgID          string            `json:"org_id,omitempty"`
	FolderID       string            `json:"folder_id,omitempty"`
	BillingAccount string            `json:"billing_account"`
	Labels         map[string]string `json:"labels"`
}

ProjectResource represents a Terraform project resource. https://www.terraform.io/docs/providers/google/r/google_project.html

func (*ProjectResource) ID

func (*ProjectResource) ID() string

ID returns the resource unique identifier. It is hardcoded to return "project" as there is at most one of this resource in a deployment.

func (*ProjectResource) ImportID

func (p *ProjectResource) ImportID(runner.Runner) (string, error)

ImportID returns the ID to use for terraform imports.

func (*ProjectResource) Init

func (p *ProjectResource) Init(projectID string) error

Init initializes the resource.

func (*ProjectResource) ResourceType

func (p *ProjectResource) ResourceType() string

ResourceType returns the resource terraform provider type.

type ProjectService

type ProjectService struct {
	Service string `json:"service"`

	// ForEach is used to let a single iam member expand to reference multiple iam members
	// through the use of terraform's for_each iterator.
	ForEach map[string]bool `json:"for_each,omitempty"`
	Project string          `json:"project,omitempty"`
}

ProjectService represents a Terraform project service.

type ProjectServices

type ProjectServices struct {
	Services []*ProjectService
	// contains filtered or unexported fields
}

ProjectServices represents multiple Terraform project services. It is used to wrap and merge multiple services into a single service struct when being marshalled to JSON.

func (*ProjectServices) ID

func (*ProjectServices) ID() string

ID returns the resource unique identifier. It is hardcoded to return "project" as there is at most one of this resource in a deployment.

func (*ProjectServices) Init

func (s *ProjectServices) Init(projectID string) error

Init initializes the resource.

func (*ProjectServices) MarshalJSON

func (s *ProjectServices) MarshalJSON() ([]byte, error)

MarshalJSON marshals the list of members into a single member. The single member will set a for_each block to expand to multiple iam members in the terraform call.

func (*ProjectServices) ResourceType

func (*ProjectServices) ResourceType() string

ResourceType returns the resource terraform provider type.

func (*ProjectServices) UnmarshalJSON

func (s *ProjectServices) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the bytes to a list of members.

type PubsubSubscription

type PubsubSubscription struct {
	Name    string `json:"name"`
	Project string `json:"project"`
	Topic   string `json:"topic"`

	IAMMembers []*SubscriptionIAMMember `json:"_iam_members"`
	// contains filtered or unexported fields
}

PubsubSubscription represents a Terraform pubsub topic.

func (*PubsubSubscription) DependentResources

func (s *PubsubSubscription) DependentResources() []Resource

DependentResources returns the child resources of this resource (subscriptions).

func (*PubsubSubscription) ID

func (s *PubsubSubscription) ID() string

ID returns the resource unique identifier.

func (*PubsubSubscription) ImportID

func (s *PubsubSubscription) ImportID(runner.Runner) (string, error)

ImportID returns the ID to use for terraform imports.

func (*PubsubSubscription) Init

func (s *PubsubSubscription) Init(projectID string) error

Init initializes the resource.

func (*PubsubSubscription) MarshalJSON

func (s *PubsubSubscription) MarshalJSON() ([]byte, error)

MarshalJSON provides a custom JSON marshaller. It is used to merge the original (raw) user JSON definition with the struct.

func (*PubsubSubscription) ResourceType

func (s *PubsubSubscription) ResourceType() string

ResourceType returns the resource terraform provider type.

func (*PubsubSubscription) UnmarshalJSON

func (s *PubsubSubscription) UnmarshalJSON(data []byte) error

UnmarshalJSON provides a custom JSON unmarshaller. It is used to store the original (raw) user JSON definition, which can have more fields than what is defined in this struct.

type PubsubTopic

type PubsubTopic struct {
	Name    string `json:"name"`
	Project string `json:"project"`

	IAMMembers    []*TopicIAMMember     `json:"_iam_members"`
	Subscriptions []*PubsubSubscription `json:"_subscriptions"`
	// contains filtered or unexported fields
}

PubsubTopic represents a Terraform pubsub topic.

func (*PubsubTopic) DependentResources

func (t *PubsubTopic) DependentResources() []Resource

DependentResources returns the child resources of this resource (subscriptions).

func (*PubsubTopic) ID

func (t *PubsubTopic) ID() string

ID returns the resource unique identifier.

func (*PubsubTopic) ImportID

func (t *PubsubTopic) ImportID(runner.Runner) (string, error)

ImportID returns the ID to use for terraform imports.

func (*PubsubTopic) Init

func (t *PubsubTopic) Init(projectID string) error

Init initializes the resource.

func (*PubsubTopic) MarshalJSON

func (t *PubsubTopic) MarshalJSON() ([]byte, error)

MarshalJSON provides a custom JSON marshaller. It is used to merge the original (raw) user JSON definition with the struct.

func (*PubsubTopic) ResourceType

func (t *PubsubTopic) ResourceType() string

ResourceType returns the resource terraform provider type.

func (*PubsubTopic) UnmarshalJSON

func (t *PubsubTopic) UnmarshalJSON(data []byte) error

UnmarshalJSON provides a custom JSON unmarshaller. It is used to store the original (raw) user JSON definition, which can have more fields than what is defined in this struct.

type PullRequest

type PullRequest struct {
	Branch         string `json:"branch"`
	CommentControl string `json:"comment_control,omitempty"`
}

PullRequest represents a pull_request block in github block.

type Push

type Push struct {
	Branch string `json:"branch,omitempty"`
	Tag    string `json:"tag,omitempty"`
}

Push represents a push block used in github block.

type Resource

type Resource interface {
	Init(projectID string) error
	ID() string
	ResourceType() string
}

Resource is an interface that must be implemented by all concrete resource implementations.

type ResourceManagerLien

type ResourceManagerLien struct {
	Origin       string   `json:"origin"`
	Parent       string   `json:"parent"`
	Restrictions []string `json:"restrictions"`
	Reason       string   `json:"reason"`

	ProjectDeletion bool `json:"_project_deletion"`
}

ResourceManagerLien supports Terraform liens.

func (*ResourceManagerLien) ID

func (l *ResourceManagerLien) ID() string

ID returns the resource unique identifier.

func (*ResourceManagerLien) ImportID

func (l *ResourceManagerLien) ImportID(rn runner.Runner) (string, error)

ImportID returns the ID to use for terraform imports.

func (*ResourceManagerLien) Init

func (l *ResourceManagerLien) Init(projectID string) error

Init initializes the resource.

func (*ResourceManagerLien) MarshalJSON

func (l *ResourceManagerLien) MarshalJSON() ([]byte, error)

MarshalJSON provides a custom JSON marshaller. It is used to remove private fields from the struct.

func (*ResourceManagerLien) ResourceType

func (*ResourceManagerLien) ResourceType() string

ResourceType returns the resource terraform provider type.

type ServiceAccount

type ServiceAccount struct {
	AccountID   string                     `json:"account_id"`
	Project     string                     `json:"project"`
	DisplayName string                     `json:"display_name"`
	Description string                     `json:"description,omitempty"`
	IAMMembers  []*ServiceAccountIAMMember `json:"_iam_members"`
	// contains filtered or unexported fields
}

ServiceAccount represents a Terraform service account.

func (*ServiceAccount) DependentResources

func (a *ServiceAccount) DependentResources() []Resource

DependentResources returns the child resources of this resource.

func (*ServiceAccount) ID

func (a *ServiceAccount) ID() string

ID returns the resource unique identifier.

func (*ServiceAccount) ImportID

func (a *ServiceAccount) ImportID(runner.Runner) (string, error)

ImportID returns the ID to use for terraform imports.

func (*ServiceAccount) Init

func (a *ServiceAccount) Init(projectID string) error

Init initializes the resource.

func (*ServiceAccount) MarshalJSON

func (a *ServiceAccount) MarshalJSON() ([]byte, error)

MarshalJSON provides a custom JSON marshaller. It is used to merge the original (raw) user JSON definition with the struct.

func (*ServiceAccount) ResourceType

func (a *ServiceAccount) ResourceType() string

ResourceType returns the resource terraform provider type.

func (*ServiceAccount) UnmarshalJSON

func (a *ServiceAccount) UnmarshalJSON(data []byte) error

UnmarshalJSON provides a custom JSON unmarshaller. It is used to store the original (raw) user JSON definition, which can have more fields than what is defined in this struct.

type ServiceAccountIAMMember

type ServiceAccountIAMMember struct {
	Role   string `json:"role"`
	Member string `json:"member"`

	// ForEach is used to let a single iam member expand to reference multiple iam members
	// through the use of terraform's for_each iterator.
	ForEach map[string]*ServiceAccountIAMMember `json:"for_each,omitempty"`

	// Bucket should be written as a terraform reference to a bucket name so that it is created after the bucket.
	// e.g. ${google_ServiceAccount_bucket.foo_bucket.name}
	AccountID string `json:"service_account_id,omitempty"`
	// contains filtered or unexported fields
}

ServiceAccountIAMMember represents a Terraform GCS bucket IAM member.

func (*ServiceAccountIAMMember) ID

ID returns the unique identifier.

func (*ServiceAccountIAMMember) Init

Init initializes the resource.

func (*ServiceAccountIAMMember) ResourceType

func (m *ServiceAccountIAMMember) ResourceType() string

ResourceType returns the terraform provider type.

type SpannerDatabase

type SpannerDatabase struct {
	Name    string `json:"name"`
	Project string `json:"project"`

	Instance string `json:"instance"`

	IAMMembers []*SpannerDatabaseIAMMember `json:"_iam_members"`
	// contains filtered or unexported fields
}

SpannerDatabase represents a Terraform GCS bucket.

func (*SpannerDatabase) DependentResources

func (d *SpannerDatabase) DependentResources() []Resource

DependentResources returns the child resources of this resource.

func (*SpannerDatabase) ID

func (d *SpannerDatabase) ID() string

ID returns the resource unique identifier.

func (*SpannerDatabase) ImportID

func (d *SpannerDatabase) ImportID(runner.Runner) (string, error)

ImportID returns the ID to use for terraform imports.

func (*SpannerDatabase) Init

func (d *SpannerDatabase) Init(projectID string) error

Init initializes the resource.

func (*SpannerDatabase) MarshalJSON

func (d *SpannerDatabase) MarshalJSON() ([]byte, error)

MarshalJSON provides a custom JSON marshaller. It is used to merge the original (raw) user JSON definition with the struct.

func (*SpannerDatabase) ResourceType

func (*SpannerDatabase) ResourceType() string

ResourceType returns the resource terraform provider type.

func (*SpannerDatabase) UnmarshalJSON

func (d *SpannerDatabase) UnmarshalJSON(data []byte) error

UnmarshalJSON provides a custom JSON unmarshaller. It is used to store the original (raw) user JSON definition, which can have more fields than what is defined in this struct.

type SpannerDatabaseIAMMember

type SpannerDatabaseIAMMember struct {
	Role   string `json:"role"`
	Member string `json:"member"`

	// ForEach is used to let a single iam member expand to reference multiple iam members
	// through the use of terraform's for_each iterator.
	ForEach map[string]*SpannerDatabaseIAMMember `json:"for_each,omitempty"`

	// Database should be written as a terraform reference to an database name so that it is created after the database.
	// e.g. ${google_spanner_database.database.name}
	Database string `json:"database,omitempty"`

	// Instance should be a literal instance id.
	Instance string `json:"instance,omitempty"`
	// contains filtered or unexported fields
}

SpannerDatabaseIAMMember represents a Terraform spanner database iam member.

func (*SpannerDatabaseIAMMember) ID

ID returns the unique identifier.

func (*SpannerDatabaseIAMMember) Init

Init initializes the resource.

func (*SpannerDatabaseIAMMember) ResourceType

func (m *SpannerDatabaseIAMMember) ResourceType() string

ResourceType returns the terraform provider type.

type SpannerInstance

type SpannerInstance struct {
	Name    string `json:"name"`
	Project string `json:"project"`

	IAMMembers []*SpannerInstanceIAMMember `json:"_iam_members"`
	Databases  []*SpannerDatabase          `json:"_databases"`
	// contains filtered or unexported fields
}

SpannerInstance represents a Terraform spanner instance.

func (*SpannerInstance) DependentResources

func (i *SpannerInstance) DependentResources() []Resource

DependentResources returns the child resources of this resource.

func (*SpannerInstance) ID

func (i *SpannerInstance) ID() string

ID returns the resource unique identifier.

func (*SpannerInstance) ImportID

func (i *SpannerInstance) ImportID(runner.Runner) (string, error)

ImportID returns the ID to use for terraform imports.

func (*SpannerInstance) Init

func (i *SpannerInstance) Init(projectID string) error

Init initializes the resource.

func (*SpannerInstance) MarshalJSON

func (i *SpannerInstance) MarshalJSON() ([]byte, error)

MarshalJSON provides a custom JSON marshaller. It is used to merge the original (raw) user JSON definition with the struct.

func (*SpannerInstance) ResourceType

func (*SpannerInstance) ResourceType() string

ResourceType returns the resource terraform provider type.

func (*SpannerInstance) UnmarshalJSON

func (i *SpannerInstance) UnmarshalJSON(data []byte) error

UnmarshalJSON provides a custom JSON unmarshaller. It is used to store the original (raw) user JSON definition, which can have more fields than what is defined in this struct.

type SpannerInstanceIAMMember

type SpannerInstanceIAMMember struct {
	Role   string `json:"role"`
	Member string `json:"member"`

	// ForEach is used to let a single iam member expand to reference multiple iam members
	// through the use of terraform's for_each iterator.
	ForEach map[string]*SpannerInstanceIAMMember `json:"for_each,omitempty"`

	// Instance should be written as a terraform reference to an instance name so that it is created after the instance.
	// e.g. ${google_spanner_instance.instance.name}
	Instance string `json:"instance,omitempty"`
	// contains filtered or unexported fields
}

SpannerInstanceIAMMember represents a Terraform spanner instance iam member.

func (*SpannerInstanceIAMMember) ID

ID returns the unique identifier.

func (*SpannerInstanceIAMMember) Init

Init initializes the resource.

func (*SpannerInstanceIAMMember) ResourceType

func (m *SpannerInstanceIAMMember) ResourceType() string

ResourceType returns the terraform provider type.

type StorageBucket

type StorageBucket struct {
	Name             string           `json:"name"`
	Project          string           `json:"project"`
	Location         string           `json:"location"`
	LifecycleRules   []*LifecycleRule `json:"lifecycle_rule,omitempty"`
	Logging          *Logging         `json:"logging,omitempty"`
	Versioning       versioning       `json:"versioning,omitempty"`
	BucketPolicyOnly *bool            `json:"uniform_bucket_level_access"`

	DependsOn []string `json:"depends_on,omitempty"`

	IAMMembers []*StorageIAMMember `json:"_iam_members"`
	TTLDays    int                 `json:"_ttl_days"`
	// contains filtered or unexported fields
}

StorageBucket represents a Terraform GCS bucket.

func (*StorageBucket) DependentResources

func (b *StorageBucket) DependentResources() []Resource

DependentResources returns the child resources of this resource.

func (*StorageBucket) ID

func (b *StorageBucket) ID() string

ID returns the resource unique identifier.

func (*StorageBucket) ImportID

func (b *StorageBucket) ImportID(runner.Runner) (string, error)

ImportID returns the ID to use for terraform imports.

func (*StorageBucket) Init

func (b *StorageBucket) Init(projectID string) error

Init initializes the resource.

func (*StorageBucket) MarshalJSON

func (b *StorageBucket) MarshalJSON() ([]byte, error)

MarshalJSON provides a custom JSON marshaller. It is used to merge the original (raw) user JSON definition with the struct.

func (*StorageBucket) ResourceType

func (b *StorageBucket) ResourceType() string

ResourceType returns the resource terraform provider type.

func (*StorageBucket) UnmarshalJSON

func (b *StorageBucket) UnmarshalJSON(data []byte) error

UnmarshalJSON provides a custom JSON unmarshaller. It is used to store the original (raw) user JSON definition, which can have more fields than what is defined in this struct.

type StorageIAMMember

type StorageIAMMember struct {
	Role   string `json:"role"`
	Member string `json:"member"`

	// ForEach is used to let a single iam member expand to reference multiple iam members
	// through the use of terraform's for_each iterator.
	ForEach map[string]*StorageIAMMember `json:"for_each,omitempty"`

	// Bucket should be written as a terraform reference to a bucket name so that it is created after the bucket.
	// e.g. ${google_storage_bucket.foo_bucket.name}
	Bucket string `json:"bucket,omitempty"`
	// contains filtered or unexported fields
}

StorageIAMMember represents a Terraform GCS bucket IAM member.

func (*StorageIAMMember) ID

func (m *StorageIAMMember) ID() string

ID returns the unique identifier.

func (*StorageIAMMember) Init

func (m *StorageIAMMember) Init(string) error

Init initializes the resource.

func (*StorageIAMMember) ResourceType

func (m *StorageIAMMember) ResourceType() string

ResourceType returns the terraform provider type.

type SubscriptionIAMMember

type SubscriptionIAMMember struct {
	Role   string `json:"role"`
	Member string `json:"member"`

	// ForEach is used to let a single iam member expand to reference multiple iam members
	// through the use of terraform's for_each iterator.
	ForEach map[string]*SubscriptionIAMMember `json:"for_each,omitempty"`

	// Subscription should be written as a terraform reference to a subscription name so that it is created after the subscription.
	// e.g. ${google_pubsub_subscription.foo_subscription.name}
	Subscription string `json:"subscription,omitempty"`
	// contains filtered or unexported fields
}

SubscriptionIAMMember represents a Terraform subscription IAM member.

func (*SubscriptionIAMMember) ID

func (m *SubscriptionIAMMember) ID() string

ID returns the unique identifier.

func (*SubscriptionIAMMember) Init

Init initializes the resource.

func (*SubscriptionIAMMember) ResourceType

func (m *SubscriptionIAMMember) ResourceType() string

ResourceType returns the terraform provider type.

type TopicIAMMember

type TopicIAMMember struct {
	Role   string `json:"role"`
	Member string `json:"member"`

	// ForEach is used to let a single iam member expand to reference multiple iam members
	// through the use of terraform's for_each iterator.
	ForEach map[string]*TopicIAMMember `json:"for_each,omitempty"`

	// Topic should be written as a terraform reference to a topic name so that it is created after the subscription.
	// e.g. ${google_pubsub_topic.foo_topic.name}
	Topic string `json:"topic,omitempty"`
	// contains filtered or unexported fields
}

TopicIAMMember represents a Terraform pubsub topic IAM member.

func (*TopicIAMMember) ID

func (m *TopicIAMMember) ID() string

ID returns the unique identifier.

func (*TopicIAMMember) Init

func (m *TopicIAMMember) Init(string) error

Init initializes the resource.

func (*TopicIAMMember) ResourceType

func (m *TopicIAMMember) ResourceType() string

ResourceType returns the terraform provider type.

Jump to

Keyboard shortcuts

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