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
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
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
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
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 Copyright (c) HashiCorp, Inc. SPDX-License-Identifier: MPL-2.0
Copyright (c) HashiCorp, Inc. SPDX-License-Identifier: MPL-2.0
Index ¶
- Variables
- func BillingAccountLoggingExclusionIdParseFunc(d *schema.ResourceData, _ *transport_tpg.Config) error
- func DataSourceGoogleLoggingFolderSettings() *schema.Resource
- func DataSourceGoogleLoggingOrganizationSettings() *schema.Resource
- func DataSourceGoogleLoggingProjectCmekSettings() *schema.Resource
- func DataSourceGoogleLoggingProjectSettings() *schema.Resource
- func DataSourceGoogleLoggingSink() *schema.Resource
- func FolderLoggingExclusionIdParseFunc(d *schema.ResourceData, _ *transport_tpg.Config) error
- func LoggingLogViewIamUpdaterProducer(d tpgresource.TerraformResourceData, config *transport_tpg.Config) (tpgiamresource.ResourceIamUpdater, error)
- func LoggingLogViewIdParseFunc(d *schema.ResourceData, config *transport_tpg.Config) error
- func LoggingOperationWaitTime(config *transport_tpg.Config, op map[string]interface{}, ...) error
- func LoggingOperationWaitTimeWithResponse(config *transport_tpg.Config, op map[string]interface{}, ...) error
- func OptionalPrefixSuppress(prefix string) schema.SchemaDiffSuppressFunc
- func OptionalSurroundingSpacesSuppress(k, old, new string, d *schema.ResourceData) bool
- func OrganizationLoggingExclusionIdParseFunc(d *schema.ResourceData, _ *transport_tpg.Config) error
- func ProjectLoggingExclusionIdParseFunc(d *schema.ResourceData, config *transport_tpg.Config) error
- func ResourceLoggingBillingAccountBucketConfig() *schema.Resource
- func ResourceLoggingBillingAccountSink() *schema.Resource
- func ResourceLoggingBucketConfig(parentType string, parentSpecificSchema map[string]*schema.Schema, ...) *schema.Resource
- func ResourceLoggingExclusion(parentSpecificSchema map[string]*schema.Schema, ...) *schema.Resource
- func ResourceLoggingFolderBucketConfig() *schema.Resource
- func ResourceLoggingFolderSettings() *schema.Resource
- func ResourceLoggingFolderSink() *schema.Resource
- func ResourceLoggingLinkedDataset() *schema.Resource
- func ResourceLoggingLogScope() *schema.Resource
- func ResourceLoggingLogView() *schema.Resource
- func ResourceLoggingMetric() *schema.Resource
- func ResourceLoggingOrganizationBucketConfig() *schema.Resource
- func ResourceLoggingOrganizationSettings() *schema.Resource
- func ResourceLoggingOrganizationSink() *schema.Resource
- func ResourceLoggingProjectBucketConfig() *schema.Resource
- func ResourceLoggingProjectSink() *schema.Resource
- type BillingAccountLoggingExclusionUpdater
- func (u *BillingAccountLoggingExclusionUpdater) CreateLoggingExclusion(parent string, exclusion *logging.LogExclusion) error
- func (u *BillingAccountLoggingExclusionUpdater) DeleteLoggingExclusion(id string) error
- func (u *BillingAccountLoggingExclusionUpdater) DescribeResource() string
- func (u *BillingAccountLoggingExclusionUpdater) GetResourceId() string
- func (u *BillingAccountLoggingExclusionUpdater) GetResourceType() string
- func (u *BillingAccountLoggingExclusionUpdater) ReadLoggingExclusion(id string) (*logging.LogExclusion, error)
- func (u *BillingAccountLoggingExclusionUpdater) UpdateLoggingExclusion(id string, exclusion *logging.LogExclusion, updateMask string) error
- type FolderLoggingExclusionUpdater
- func (u *FolderLoggingExclusionUpdater) CreateLoggingExclusion(parent string, exclusion *logging.LogExclusion) error
- func (u *FolderLoggingExclusionUpdater) DeleteLoggingExclusion(id string) error
- func (u *FolderLoggingExclusionUpdater) DescribeResource() string
- func (u *FolderLoggingExclusionUpdater) GetResourceId() string
- func (u *FolderLoggingExclusionUpdater) GetResourceType() string
- func (u *FolderLoggingExclusionUpdater) ReadLoggingExclusion(id string) (*logging.LogExclusion, error)
- func (u *FolderLoggingExclusionUpdater) UpdateLoggingExclusion(id string, exclusion *logging.LogExclusion, updateMask string) error
- type LoggingExclusionId
- type LoggingLogViewIamUpdater
- func (u *LoggingLogViewIamUpdater) DescribeResource() string
- func (u *LoggingLogViewIamUpdater) GetMutexKey() string
- func (u *LoggingLogViewIamUpdater) GetResourceIamPolicy() (*cloudresourcemanager.Policy, error)
- func (u *LoggingLogViewIamUpdater) GetResourceId() string
- func (u *LoggingLogViewIamUpdater) SetResourceIamPolicy(policy *cloudresourcemanager.Policy) error
- type LoggingOperationWaiter
- type LoggingSinkId
- type OrganizationLoggingExclusionUpdater
- func (u *OrganizationLoggingExclusionUpdater) CreateLoggingExclusion(parent string, exclusion *logging.LogExclusion) error
- func (u *OrganizationLoggingExclusionUpdater) DeleteLoggingExclusion(id string) error
- func (u *OrganizationLoggingExclusionUpdater) DescribeResource() string
- func (u *OrganizationLoggingExclusionUpdater) GetResourceId() string
- func (u *OrganizationLoggingExclusionUpdater) GetResourceType() string
- func (u *OrganizationLoggingExclusionUpdater) ReadLoggingExclusion(id string) (*logging.LogExclusion, error)
- func (u *OrganizationLoggingExclusionUpdater) UpdateLoggingExclusion(id string, exclusion *logging.LogExclusion, updateMask string) error
- type ProjectLoggingExclusionUpdater
- func (u *ProjectLoggingExclusionUpdater) CreateLoggingExclusion(parent string, exclusion *logging.LogExclusion) error
- func (u *ProjectLoggingExclusionUpdater) DeleteLoggingExclusion(id string) error
- func (u *ProjectLoggingExclusionUpdater) DescribeResource() string
- func (u *ProjectLoggingExclusionUpdater) GetResourceId() string
- func (u *ProjectLoggingExclusionUpdater) GetResourceType() string
- func (u *ProjectLoggingExclusionUpdater) ReadLoggingExclusion(id string) (*logging.LogExclusion, error)
- func (u *ProjectLoggingExclusionUpdater) UpdateLoggingExclusion(id string, exclusion *logging.LogExclusion, updateMask string) error
- type ResourceLoggingExclusionUpdater
- func NewBillingAccountLoggingExclusionUpdater(d *schema.ResourceData, config *transport_tpg.Config) (ResourceLoggingExclusionUpdater, error)
- func NewFolderLoggingExclusionUpdater(d *schema.ResourceData, config *transport_tpg.Config) (ResourceLoggingExclusionUpdater, error)
- func NewOrganizationLoggingExclusionUpdater(d *schema.ResourceData, config *transport_tpg.Config) (ResourceLoggingExclusionUpdater, error)
- func NewProjectLoggingExclusionUpdater(d *schema.ResourceData, config *transport_tpg.Config) (ResourceLoggingExclusionUpdater, error)
Constants ¶
This section is empty.
Variables ¶
var BillingAccountLoggingExclusionSchema = map[string]*schema.Schema{ "billing_account": { Type: schema.TypeString, Required: true, ForceNew: true, }, }
var FolderLoggingExclusionSchema = map[string]*schema.Schema{ "folder": { Type: schema.TypeString, Required: true, ForceNew: true, DiffSuppressFunc: OptionalPrefixSuppress("folders/"), }, }
var LoggingExclusionBaseSchema = map[string]*schema.Schema{ "filter": { Type: schema.TypeString, Required: true, Description: `The filter to apply when excluding logs. Only log entries that match the filter are excluded.`, }, "name": { Type: schema.TypeString, Required: true, ForceNew: true, Description: `The name of the logging exclusion.`, }, "description": { Type: schema.TypeString, Optional: true, Description: `A human-readable description.`, }, "disabled": { Type: schema.TypeBool, Optional: true, Description: `Whether this exclusion rule should be disabled or not. This defaults to false.`, }, }
var LoggingLogViewIamSchema = map[string]*schema.Schema{ "parent": { Type: schema.TypeString, Required: true, ForceNew: true, }, "location": { Type: schema.TypeString, Computed: true, Optional: true, ForceNew: true, }, "bucket": { Type: schema.TypeString, Required: true, ForceNew: true, }, "name": { Type: schema.TypeString, Required: true, ForceNew: true, DiffSuppressFunc: tpgresource.CompareSelfLinkOrResourceName, }, }
var LoggingSinkResourceTypes = []string{
"billingAccounts",
"folders",
"organizations",
"projects",
}
LoggingSinkResourceTypes contains all the possible Stackdriver Logging resource types. Used to parse ids safely.
var OrganizationLoggingExclusionSchema = map[string]*schema.Schema{ "org_id": { Type: schema.TypeString, Required: true, ForceNew: true, }, }
var ProjectLoggingExclusionSchema = map[string]*schema.Schema{ "project": { Type: schema.TypeString, Optional: true, Computed: true, ForceNew: true, }, }
Functions ¶
func BillingAccountLoggingExclusionIdParseFunc ¶
func BillingAccountLoggingExclusionIdParseFunc(d *schema.ResourceData, _ *transport_tpg.Config) error
func FolderLoggingExclusionIdParseFunc ¶
func FolderLoggingExclusionIdParseFunc(d *schema.ResourceData, _ *transport_tpg.Config) error
func LoggingLogViewIamUpdaterProducer ¶
func LoggingLogViewIamUpdaterProducer(d tpgresource.TerraformResourceData, config *transport_tpg.Config) (tpgiamresource.ResourceIamUpdater, error)
func LoggingLogViewIdParseFunc ¶
func LoggingLogViewIdParseFunc(d *schema.ResourceData, config *transport_tpg.Config) error
func LoggingOperationWaitTimeWithResponse ¶
func LoggingOperationWaitTimeWithResponse(config *transport_tpg.Config, op map[string]interface{}, response *map[string]interface{}, activity, userAgent string, timeout time.Duration) error
nolint: deadcode,unused
func OptionalPrefixSuppress ¶
func OptionalPrefixSuppress(prefix string) schema.SchemaDiffSuppressFunc
func OptionalSurroundingSpacesSuppress ¶
func OptionalSurroundingSpacesSuppress(k, old, new string, d *schema.ResourceData) bool
func OrganizationLoggingExclusionIdParseFunc ¶
func OrganizationLoggingExclusionIdParseFunc(d *schema.ResourceData, _ *transport_tpg.Config) error
func ProjectLoggingExclusionIdParseFunc ¶
func ProjectLoggingExclusionIdParseFunc(d *schema.ResourceData, config *transport_tpg.Config) error
func ResourceLoggingBillingAccountBucketConfig ¶
Create Logging Bucket config
func ResourceLoggingBucketConfig ¶
func ResourceLoggingBucketConfig(parentType string, parentSpecificSchema map[string]*schema.Schema, iDFunc loggingBucketConfigIDFunc) *schema.Resource
ResourceLoggingBucketConfig creates a resource definition by merging a unique field (eg: folder) to a generic logging bucket config resource. In practice the only difference between these resources is the url location.
func ResourceLoggingExclusion ¶
func ResourceLoggingExclusion(parentSpecificSchema map[string]*schema.Schema, newUpdaterFunc newResourceLoggingExclusionUpdaterFunc, resourceIdParser tpgiamresource.ResourceIdParserFunc) *schema.Resource
func ResourceLoggingFolderBucketConfig ¶
Create Logging Bucket config
func ResourceLoggingLogScope ¶
func ResourceLoggingLogView ¶
func ResourceLoggingMetric ¶
func ResourceLoggingOrganizationBucketConfig ¶
Create Logging Bucket config
func ResourceLoggingProjectBucketConfig ¶
Create Logging Bucket config
Types ¶
type BillingAccountLoggingExclusionUpdater ¶
type BillingAccountLoggingExclusionUpdater struct { Config *transport_tpg.Config // contains filtered or unexported fields }
func (*BillingAccountLoggingExclusionUpdater) CreateLoggingExclusion ¶
func (u *BillingAccountLoggingExclusionUpdater) CreateLoggingExclusion(parent string, exclusion *logging.LogExclusion) error
func (*BillingAccountLoggingExclusionUpdater) DeleteLoggingExclusion ¶
func (u *BillingAccountLoggingExclusionUpdater) DeleteLoggingExclusion(id string) error
func (*BillingAccountLoggingExclusionUpdater) DescribeResource ¶
func (u *BillingAccountLoggingExclusionUpdater) DescribeResource() string
func (*BillingAccountLoggingExclusionUpdater) GetResourceId ¶
func (u *BillingAccountLoggingExclusionUpdater) GetResourceId() string
func (*BillingAccountLoggingExclusionUpdater) GetResourceType ¶
func (u *BillingAccountLoggingExclusionUpdater) GetResourceType() string
func (*BillingAccountLoggingExclusionUpdater) ReadLoggingExclusion ¶
func (u *BillingAccountLoggingExclusionUpdater) ReadLoggingExclusion(id string) (*logging.LogExclusion, error)
func (*BillingAccountLoggingExclusionUpdater) UpdateLoggingExclusion ¶
func (u *BillingAccountLoggingExclusionUpdater) UpdateLoggingExclusion(id string, exclusion *logging.LogExclusion, updateMask string) error
type FolderLoggingExclusionUpdater ¶
type FolderLoggingExclusionUpdater struct { Config *transport_tpg.Config // contains filtered or unexported fields }
func (*FolderLoggingExclusionUpdater) CreateLoggingExclusion ¶
func (u *FolderLoggingExclusionUpdater) CreateLoggingExclusion(parent string, exclusion *logging.LogExclusion) error
func (*FolderLoggingExclusionUpdater) DeleteLoggingExclusion ¶
func (u *FolderLoggingExclusionUpdater) DeleteLoggingExclusion(id string) error
func (*FolderLoggingExclusionUpdater) DescribeResource ¶
func (u *FolderLoggingExclusionUpdater) DescribeResource() string
func (*FolderLoggingExclusionUpdater) GetResourceId ¶
func (u *FolderLoggingExclusionUpdater) GetResourceId() string
func (*FolderLoggingExclusionUpdater) GetResourceType ¶
func (u *FolderLoggingExclusionUpdater) GetResourceType() string
func (*FolderLoggingExclusionUpdater) ReadLoggingExclusion ¶
func (u *FolderLoggingExclusionUpdater) ReadLoggingExclusion(id string) (*logging.LogExclusion, error)
func (*FolderLoggingExclusionUpdater) UpdateLoggingExclusion ¶
func (u *FolderLoggingExclusionUpdater) UpdateLoggingExclusion(id string, exclusion *logging.LogExclusion, updateMask string) error
type LoggingExclusionId ¶
type LoggingExclusionId struct { ResourceId string // contains filtered or unexported fields }
LoggingExclusionId represents the parts that make up the canonical id used within terraform for a logging resource.
func ParseLoggingExclusionId ¶
func ParseLoggingExclusionId(id string) (*LoggingExclusionId, error)
ParseLoggingExclusionId parses a canonical id into a LoggingExclusionId, or returns an error on failure.
type LoggingLogViewIamUpdater ¶
type LoggingLogViewIamUpdater struct { Config *transport_tpg.Config // contains filtered or unexported fields }
func (*LoggingLogViewIamUpdater) DescribeResource ¶
func (u *LoggingLogViewIamUpdater) DescribeResource() string
func (*LoggingLogViewIamUpdater) GetMutexKey ¶
func (u *LoggingLogViewIamUpdater) GetMutexKey() string
func (*LoggingLogViewIamUpdater) GetResourceIamPolicy ¶
func (u *LoggingLogViewIamUpdater) GetResourceIamPolicy() (*cloudresourcemanager.Policy, error)
func (*LoggingLogViewIamUpdater) GetResourceId ¶
func (u *LoggingLogViewIamUpdater) GetResourceId() string
func (*LoggingLogViewIamUpdater) SetResourceIamPolicy ¶
func (u *LoggingLogViewIamUpdater) SetResourceIamPolicy(policy *cloudresourcemanager.Policy) error
type LoggingOperationWaiter ¶
type LoggingOperationWaiter struct { Config *transport_tpg.Config UserAgent string tpgresource.CommonOperationWaiter }
func (*LoggingOperationWaiter) QueryOp ¶
func (w *LoggingOperationWaiter) QueryOp() (interface{}, error)
type LoggingSinkId ¶
type LoggingSinkId struct {
// contains filtered or unexported fields
}
LoggingSinkId represents the parts that make up the canonical id used within terraform for a logging resource.
func ParseLoggingSinkId ¶
func ParseLoggingSinkId(id string) (*LoggingSinkId, error)
ParseLoggingSinkId parses a canonical id into a LoggingSinkId, or returns an error on failure.
type OrganizationLoggingExclusionUpdater ¶
type OrganizationLoggingExclusionUpdater struct { Config *transport_tpg.Config // contains filtered or unexported fields }
func (*OrganizationLoggingExclusionUpdater) CreateLoggingExclusion ¶
func (u *OrganizationLoggingExclusionUpdater) CreateLoggingExclusion(parent string, exclusion *logging.LogExclusion) error
func (*OrganizationLoggingExclusionUpdater) DeleteLoggingExclusion ¶
func (u *OrganizationLoggingExclusionUpdater) DeleteLoggingExclusion(id string) error
func (*OrganizationLoggingExclusionUpdater) DescribeResource ¶
func (u *OrganizationLoggingExclusionUpdater) DescribeResource() string
func (*OrganizationLoggingExclusionUpdater) GetResourceId ¶
func (u *OrganizationLoggingExclusionUpdater) GetResourceId() string
func (*OrganizationLoggingExclusionUpdater) GetResourceType ¶
func (u *OrganizationLoggingExclusionUpdater) GetResourceType() string
func (*OrganizationLoggingExclusionUpdater) ReadLoggingExclusion ¶
func (u *OrganizationLoggingExclusionUpdater) ReadLoggingExclusion(id string) (*logging.LogExclusion, error)
func (*OrganizationLoggingExclusionUpdater) UpdateLoggingExclusion ¶
func (u *OrganizationLoggingExclusionUpdater) UpdateLoggingExclusion(id string, exclusion *logging.LogExclusion, updateMask string) error
type ProjectLoggingExclusionUpdater ¶
type ProjectLoggingExclusionUpdater struct { Config *transport_tpg.Config // contains filtered or unexported fields }
func (*ProjectLoggingExclusionUpdater) CreateLoggingExclusion ¶
func (u *ProjectLoggingExclusionUpdater) CreateLoggingExclusion(parent string, exclusion *logging.LogExclusion) error
func (*ProjectLoggingExclusionUpdater) DeleteLoggingExclusion ¶
func (u *ProjectLoggingExclusionUpdater) DeleteLoggingExclusion(id string) error
func (*ProjectLoggingExclusionUpdater) DescribeResource ¶
func (u *ProjectLoggingExclusionUpdater) DescribeResource() string
func (*ProjectLoggingExclusionUpdater) GetResourceId ¶
func (u *ProjectLoggingExclusionUpdater) GetResourceId() string
func (*ProjectLoggingExclusionUpdater) GetResourceType ¶
func (u *ProjectLoggingExclusionUpdater) GetResourceType() string
func (*ProjectLoggingExclusionUpdater) ReadLoggingExclusion ¶
func (u *ProjectLoggingExclusionUpdater) ReadLoggingExclusion(id string) (*logging.LogExclusion, error)
func (*ProjectLoggingExclusionUpdater) UpdateLoggingExclusion ¶
func (u *ProjectLoggingExclusionUpdater) UpdateLoggingExclusion(id string, exclusion *logging.LogExclusion, updateMask string) error
type ResourceLoggingExclusionUpdater ¶
type ResourceLoggingExclusionUpdater interface { CreateLoggingExclusion(parent string, exclusion *logging.LogExclusion) error ReadLoggingExclusion(id string) (*logging.LogExclusion, error) UpdateLoggingExclusion(id string, exclusion *logging.LogExclusion, updateMask string) error DeleteLoggingExclusion(id string) error GetResourceType() string // Returns the unique resource identifier. GetResourceId() string // Textual description of this resource to be used in error message. // The description should include the unique resource identifier. DescribeResource() string }
The ResourceLoggingExclusionUpdater interface is implemented for each GCP resource supporting log exclusions.
Implementations should keep track of the resource identifier.
func NewBillingAccountLoggingExclusionUpdater ¶
func NewBillingAccountLoggingExclusionUpdater(d *schema.ResourceData, config *transport_tpg.Config) (ResourceLoggingExclusionUpdater, error)
func NewFolderLoggingExclusionUpdater ¶
func NewFolderLoggingExclusionUpdater(d *schema.ResourceData, config *transport_tpg.Config) (ResourceLoggingExclusionUpdater, error)
func NewOrganizationLoggingExclusionUpdater ¶
func NewOrganizationLoggingExclusionUpdater(d *schema.ResourceData, config *transport_tpg.Config) (ResourceLoggingExclusionUpdater, error)
func NewProjectLoggingExclusionUpdater ¶
func NewProjectLoggingExclusionUpdater(d *schema.ResourceData, config *transport_tpg.Config) (ResourceLoggingExclusionUpdater, error)
Source Files
¶
- data_source_google_logging_folder_settings.go
- data_source_google_logging_organization_settings.go
- data_source_google_logging_project_cmek_settings.go
- data_source_google_logging_project_settings.go
- data_source_google_logging_sink.go
- iam_logging_log_view.go
- logging_exclusion_billing_account.go
- logging_exclusion_folder.go
- logging_exclusion_organization.go
- logging_exclusion_project.go
- logging_operation.go
- logging_utils.go
- resource_logging_billing_account_bucket_config.go
- resource_logging_billing_account_sink.go
- resource_logging_bucket_config.go
- resource_logging_exclusion.go
- resource_logging_folder_bucket_config.go
- resource_logging_folder_settings.go
- resource_logging_folder_sink.go
- resource_logging_linked_dataset.go
- resource_logging_log_scope.go
- resource_logging_log_view.go
- resource_logging_metric.go
- resource_logging_metric_sweeper.go
- resource_logging_organization_bucket_config.go
- resource_logging_organization_settings.go
- resource_logging_organization_sink.go
- resource_logging_project_bucket_config.go
- resource_logging_project_sink.go
- resource_logging_sink.go