pubsub

package
v0.0.0-...-7c00c02 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2024 License: MPL-2.0 Imports: 19 Imported by: 0

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

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 PubsubSchemaIamSchema = map[string]*schema.Schema{
	"project": {
		Type:     schema.TypeString,
		Computed: true,
		Optional: true,
		ForceNew: true,
	},
	"schema": {
		Type:             schema.TypeString,
		Required:         true,
		ForceNew:         true,
		DiffSuppressFunc: tpgresource.CompareSelfLinkOrResourceName,
	},
}
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 DataSourceGooglePubsubSubscription

func DataSourceGooglePubsubSubscription() *schema.Resource

func DataSourceGooglePubsubTopic

func DataSourceGooglePubsubTopic() *schema.Resource

func GetComputedSubscriptionName

func GetComputedSubscriptionName(project, subscription string) string

func GetComputedTopicName

func GetComputedTopicName(project, topic string) string

func PubsubSchemaIdParseFunc

func PubsubSchemaIdParseFunc(d *schema.ResourceData, config *transport_tpg.Config) error

func PubsubSubscriptionIdParseFunc

func PubsubSubscriptionIdParseFunc(d *schema.ResourceData, _ *transport_tpg.Config) error

func PubsubTopicIdParseFunc

func PubsubTopicIdParseFunc(d *schema.ResourceData, config *transport_tpg.Config) error

func ResourcePubsubSchema

func ResourcePubsubSchema() *schema.Resource

func ResourcePubsubSubscription

func ResourcePubsubSubscription() *schema.Resource

func ResourcePubsubTopic

func ResourcePubsubTopic() *schema.Resource

Types

type PubsubSchemaIamUpdater

type PubsubSchemaIamUpdater struct {
	Config *transport_tpg.Config
	// contains filtered or unexported fields
}

func (*PubsubSchemaIamUpdater) DescribeResource

func (u *PubsubSchemaIamUpdater) DescribeResource() string

func (*PubsubSchemaIamUpdater) GetMutexKey

func (u *PubsubSchemaIamUpdater) GetMutexKey() string

func (*PubsubSchemaIamUpdater) GetResourceIamPolicy

func (u *PubsubSchemaIamUpdater) GetResourceIamPolicy() (*cloudresourcemanager.Policy, error)

func (*PubsubSchemaIamUpdater) GetResourceId

func (u *PubsubSchemaIamUpdater) GetResourceId() string

func (*PubsubSchemaIamUpdater) SetResourceIamPolicy

func (u *PubsubSchemaIamUpdater) SetResourceIamPolicy(policy *cloudresourcemanager.Policy) error

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

Jump to

Keyboard shortcuts

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