Documentation ¶
Overview ¶
Copyright (c) HashiCorp, Inc. SPDX-License-Identifier: MPL-2.0
Copyright (c) HashiCorp, Inc. SPDX-License-Identifier: MPL-2.0
Copyright (c) HashiCorp, Inc. SPDX-License-Identifier: MPL-2.0
Copyright (c) HashiCorp, Inc. SPDX-License-Identifier: MPL-2.0
Index ¶
- Constants
- Variables
- func DataSourceGooglePubsubSubscription() *schema.Resource
- func DataSourceGooglePubsubTopic() *schema.Resource
- func GetComputedSubscriptionName(project, subscription string) string
- func GetComputedTopicName(project, topic string) string
- func NewPubsubSubscriptionIamUpdater(d tpgresource.TerraformResourceData, config *transport_tpg.Config) (tpgiamresource.ResourceIamUpdater, error)
- func PubsubSubscriptionIdParseFunc(d *schema.ResourceData, _ *transport_tpg.Config) error
- func PubsubTopicIamUpdaterProducer(d tpgresource.TerraformResourceData, config *transport_tpg.Config) (tpgiamresource.ResourceIamUpdater, error)
- func PubsubTopicIdParseFunc(d *schema.ResourceData, config *transport_tpg.Config) error
- func ResourcePubsubSchema() *schema.Resource
- func ResourcePubsubSubscription() *schema.Resource
- func ResourcePubsubTopic() *schema.Resource
- type PubsubSubscriptionIamUpdater
- func (u *PubsubSubscriptionIamUpdater) DescribeResource() string
- func (u *PubsubSubscriptionIamUpdater) GetMutexKey() string
- func (u *PubsubSubscriptionIamUpdater) GetResourceIamPolicy() (*cloudresourcemanager.Policy, error)
- func (u *PubsubSubscriptionIamUpdater) GetResourceId() string
- func (u *PubsubSubscriptionIamUpdater) SetResourceIamPolicy(policy *cloudresourcemanager.Policy) error
- type PubsubTopicIamUpdater
- func (u *PubsubTopicIamUpdater) DescribeResource() string
- func (u *PubsubTopicIamUpdater) GetMutexKey() string
- func (u *PubsubTopicIamUpdater) GetResourceIamPolicy() (*cloudresourcemanager.Policy, error)
- func (u *PubsubTopicIamUpdater) GetResourceId() string
- func (u *PubsubTopicIamUpdater) SetResourceIamPolicy(policy *cloudresourcemanager.Policy) error
Constants ¶
View Source
const PubsubTopicRegex = "projects\\/.*\\/topics\\/.*"
Variables ¶
View Source
var IamPubsubSubscriptionSchema = map[string]*schema.Schema{ "subscription": { Type: schema.TypeString, Required: true, ForceNew: true, DiffSuppressFunc: tpgresource.CompareSelfLinkOrResourceName, }, "project": { Type: schema.TypeString, Optional: true, Computed: true, ForceNew: true, }, }
View Source
var PubsubTopicIamSchema = map[string]*schema.Schema{ "project": { Type: schema.TypeString, Computed: true, Optional: true, ForceNew: true, }, "topic": { Type: schema.TypeString, Required: true, ForceNew: true, DiffSuppressFunc: tpgresource.CompareSelfLinkOrResourceName, }, }
Functions ¶
func GetComputedTopicName ¶
func NewPubsubSubscriptionIamUpdater ¶
func NewPubsubSubscriptionIamUpdater(d tpgresource.TerraformResourceData, config *transport_tpg.Config) (tpgiamresource.ResourceIamUpdater, error)
func PubsubSubscriptionIdParseFunc ¶
func PubsubSubscriptionIdParseFunc(d *schema.ResourceData, _ *transport_tpg.Config) error
func PubsubTopicIamUpdaterProducer ¶
func PubsubTopicIamUpdaterProducer(d tpgresource.TerraformResourceData, config *transport_tpg.Config) (tpgiamresource.ResourceIamUpdater, error)
func PubsubTopicIdParseFunc ¶
func PubsubTopicIdParseFunc(d *schema.ResourceData, config *transport_tpg.Config) error
func ResourcePubsubSchema ¶
func ResourcePubsubTopic ¶
Types ¶
type PubsubSubscriptionIamUpdater ¶
type PubsubSubscriptionIamUpdater struct { Config *transport_tpg.Config // contains filtered or unexported fields }
func (*PubsubSubscriptionIamUpdater) DescribeResource ¶
func (u *PubsubSubscriptionIamUpdater) DescribeResource() string
func (*PubsubSubscriptionIamUpdater) GetMutexKey ¶
func (u *PubsubSubscriptionIamUpdater) GetMutexKey() string
func (*PubsubSubscriptionIamUpdater) GetResourceIamPolicy ¶
func (u *PubsubSubscriptionIamUpdater) GetResourceIamPolicy() (*cloudresourcemanager.Policy, error)
func (*PubsubSubscriptionIamUpdater) GetResourceId ¶
func (u *PubsubSubscriptionIamUpdater) GetResourceId() string
func (*PubsubSubscriptionIamUpdater) SetResourceIamPolicy ¶
func (u *PubsubSubscriptionIamUpdater) SetResourceIamPolicy(policy *cloudresourcemanager.Policy) error
type PubsubTopicIamUpdater ¶
type PubsubTopicIamUpdater struct { Config *transport_tpg.Config // contains filtered or unexported fields }
func (*PubsubTopicIamUpdater) DescribeResource ¶
func (u *PubsubTopicIamUpdater) DescribeResource() string
func (*PubsubTopicIamUpdater) GetMutexKey ¶
func (u *PubsubTopicIamUpdater) GetMutexKey() string
func (*PubsubTopicIamUpdater) GetResourceIamPolicy ¶
func (u *PubsubTopicIamUpdater) GetResourceIamPolicy() (*cloudresourcemanager.Policy, error)
func (*PubsubTopicIamUpdater) GetResourceId ¶
func (u *PubsubTopicIamUpdater) GetResourceId() string
func (*PubsubTopicIamUpdater) SetResourceIamPolicy ¶
func (u *PubsubTopicIamUpdater) SetResourceIamPolicy(policy *cloudresourcemanager.Policy) error
Source Files ¶
- data_source_pubsub_subscription.go
- data_source_pubsub_topic.go
- iam_pubsub_subscription.go
- iam_pubsub_topic.go
- pubsub_utils.go
- resource_pubsub_schema.go
- resource_pubsub_schema_sweeper.go
- resource_pubsub_subscription.go
- resource_pubsub_subscription_sweeper.go
- resource_pubsub_topic.go
- resource_pubsub_topic_sweeper.go
Click to show internal directories.
Click to hide internal directories.