google

package
v5.5.1 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2023 License: Apache-2.0 Imports: 63 Imported by: 1

Documentation

Overview

----------------------------------------------------------------------------

***     AUTO GENERATED CODE    ***    Type: MMv1     ***

----------------------------------------------------------------------------

This file is automatically generated by Magic Modules and manual
changes will be clobbered when the file is regenerated.

Please read more about how to change this file in
.github/CONTRIBUTING.md.

----------------------------------------------------------------------------

----------------------------------------------------------------------------

This file is copied here by Magic Modules. The code for building up a
sql database instance object is copied from the manually implemented
provider file:
third_party/terraform/resources/resource_sql_database_instance.go.erb.go

----------------------------------------------------------------------------

----------------------------------------------------------------------------

This file is copied here by Magic Modules. The code for building up a
storage bucket object is copied from the manually implemented
provider file:
third_party/terraform/resources/resource_storage_bucket.go

----------------------------------------------------------------------------

Index

Constants

View Source
const BigQueryTableAssetType string = "bigquery.googleapis.com/Table"
View Source
const CloudFunctionsCloudFunctionAssetType string = "cloudfunctions.googleapis.com/CloudFunction"
View Source
const ComputeSecurityPolicyAssetType string = "compute.googleapis.com/SecurityPolicy"
View Source
const ContainerClusterAssetType string = "container.googleapis.com/Cluster"
View Source
const ContainerNodePoolAssetType string = "container.googleapis.com/NodePool"
View Source
const OrganizationIAMCustomRoleAssetType string = "iam.googleapis.com/Role"
View Source
const ProjectIAMCustomRoleAssetType string = "iam.googleapis.com/Role"
View Source
const SQLDatabaseInstanceAssetType string = "sqladmin.googleapis.com/Instance"
View Source
const ServiceAccountAssetType string = "iam.googleapis.com/ServiceAccount"
View Source
const ServiceUsageAssetType string = "serviceusage.googleapis.com/Service"
View Source
const StorageBucketAssetType string = "storage.googleapis.com/Bucket"
View Source
const StorageBucketIAMAssetType string = "storage.googleapis.com/Bucket"

Provide a separate asset type constant so we don't have to worry about name conflicts between IAM and non-IAM converter files

Variables

View Source
var ErrEmptyIdentityField = cai.ErrEmptyIdentityField

ErrEmptyIdentityField can be returned when fetching a resource is not possible due to the identity field of that resource returning empty.

View Source
var ErrNoConversion = cai.ErrNoConversion

because of the current state of the system. Example: The conversion requires that the resource has already been created and is now being updated).

View Source
var ErrResourceInaccessible = cai.ErrResourceInaccessible

ErrResourceInaccessible can be returned when fetching an IAM resource on a project that has not yet been created or if the service account lacks sufficient permissions

View Source
var StorageBucketIamSchema = map[string]*schema.Schema{
	"bucket": {
		Type:             schema.TypeString,
		Required:         true,
		ForceNew:         true,
		DiffSuppressFunc: StorageBucketDiffSuppress,
	},
}

Functions

func AssetName

func AssetName(d tpgresource.TerraformResourceData, config *transport_tpg.Config, linkTmpl string) (string, error)

AssetName templates an asset.name by looking up and replacing all instances of {{field}}. In the case where a field would resolve to an empty string, a generated unique string will be used: "placeholder-" + randomString(). This is done to preserve uniqueness of asset.name for a given asset.asset_type.

func CanonicalOrgPolicyConstraint

func CanonicalOrgPolicyConstraint(constraint string) string

func FetchKmsCryptoKeyIamPolicy

func FetchKmsCryptoKeyIamPolicy(d tpgresource.TerraformResourceData, config *transport_tpg.Config) (cai.Asset, error)

func FetchKmsKeyRingIamPolicy

func FetchKmsKeyRingIamPolicy(d tpgresource.TerraformResourceData, config *transport_tpg.Config) (cai.Asset, error)

func FetchStorageBucketIamPolicy

func FetchStorageBucketIamPolicy(d tpgresource.TerraformResourceData, config *transport_tpg.Config) (cai.Asset, error)

func GetBigQueryTableApiObject

func GetBigQueryTableApiObject(d tpgresource.TerraformResourceData, config *transport_tpg.Config) (map[string]interface{}, error)

func GetBigQueryTableCaiObject

func GetBigQueryTableCaiObject(d tpgresource.TerraformResourceData, config *transport_tpg.Config) ([]cai.Asset, error)

func GetBigtableClusterApiObjects

func GetBigtableClusterApiObjects(d tpgresource.TerraformResourceData, config *transport_tpg.Config) ([]map[string]interface{}, error)

func GetBigtableClusterCaiObject

func GetBigtableClusterCaiObject(d tpgresource.TerraformResourceData, config *transport_tpg.Config) ([]cai.Asset, error)

func GetBigtableInstanceApiObject

func GetBigtableInstanceApiObject(d tpgresource.TerraformResourceData, config *transport_tpg.Config) (map[string]interface{}, error)

func GetBigtableInstanceCaiObject

func GetBigtableInstanceCaiObject(d tpgresource.TerraformResourceData, config *transport_tpg.Config) ([]cai.Asset, error)

func GetCloudFunctionsCloudFunctionApiObject

func GetCloudFunctionsCloudFunctionApiObject(d tpgresource.TerraformResourceData, config *transport_tpg.Config) (map[string]interface{}, error)

func GetCloudFunctionsCloudFunctionCaiObject

func GetCloudFunctionsCloudFunctionCaiObject(d tpgresource.TerraformResourceData, config *transport_tpg.Config) ([]cai.Asset, error)

func GetCloudFunctionsFunctionApiObject

func GetCloudFunctionsFunctionApiObject(d tpgresource.TerraformResourceData, config *transport_tpg.Config) (map[string]interface{}, error)

func GetCloudFunctionsFunctionCaiObject

func GetCloudFunctionsFunctionCaiObject(d tpgresource.TerraformResourceData, config *transport_tpg.Config) ([]cai.Asset, error)

func GetComputeSecurityPolicyApiObject

func GetComputeSecurityPolicyApiObject(d tpgresource.TerraformResourceData, config *transport_tpg.Config) (map[string]interface{}, error)

func GetComputeSecurityPolicyCaiObject

func GetComputeSecurityPolicyCaiObject(d tpgresource.TerraformResourceData, config *transport_tpg.Config) ([]cai.Asset, error)

func GetContainerClusterApiObject

func GetContainerClusterApiObject(d tpgresource.TerraformResourceData, config *transport_tpg.Config) (map[string]interface{}, error)

func GetContainerClusterCaiObject

func GetContainerClusterCaiObject(d tpgresource.TerraformResourceData, config *transport_tpg.Config) ([]cai.Asset, error)

func GetContainerNodePoolApiObject

func GetContainerNodePoolApiObject(d tpgresource.TerraformResourceData, config *transport_tpg.Config) (map[string]interface{}, error)

func GetContainerNodePoolCaiObject

func GetContainerNodePoolCaiObject(d tpgresource.TerraformResourceData, config *transport_tpg.Config) ([]cai.Asset, error)

func GetFolderApiObject

func GetFolderApiObject(d tpgresource.TerraformResourceData, config *transport_tpg.Config) (map[string]interface{}, error)

func GetFolderCaiObject

func GetFolderCaiObject(d tpgresource.TerraformResourceData, config *transport_tpg.Config) ([]cai.Asset, error)

func GetFolderOrgPolicyCaiObject

func GetFolderOrgPolicyCaiObject(d tpgresource.TerraformResourceData, config *transport_tpg.Config) ([]cai.Asset, error)

func GetKmsCryptoKeyIamBindingCaiObject

func GetKmsCryptoKeyIamBindingCaiObject(d tpgresource.TerraformResourceData, config *transport_tpg.Config) ([]cai.Asset, error)

func GetKmsCryptoKeyIamMemberCaiObject

func GetKmsCryptoKeyIamMemberCaiObject(d tpgresource.TerraformResourceData, config *transport_tpg.Config) ([]cai.Asset, error)

func GetKmsCryptoKeyIamPolicyCaiObject

func GetKmsCryptoKeyIamPolicyCaiObject(d tpgresource.TerraformResourceData, config *transport_tpg.Config) ([]cai.Asset, error)

func GetKmsKeyRingIamBindingCaiObject

func GetKmsKeyRingIamBindingCaiObject(d tpgresource.TerraformResourceData, config *transport_tpg.Config) ([]cai.Asset, error)

func GetKmsKeyRingIamMemberCaiObject

func GetKmsKeyRingIamMemberCaiObject(d tpgresource.TerraformResourceData, config *transport_tpg.Config) ([]cai.Asset, error)

func GetKmsKeyRingIamPolicyCaiObject

func GetKmsKeyRingIamPolicyCaiObject(d tpgresource.TerraformResourceData, config *transport_tpg.Config) ([]cai.Asset, error)

func GetOrganizationIAMCustomRoleApiObject

func GetOrganizationIAMCustomRoleApiObject(d tpgresource.TerraformResourceData, config *transport_tpg.Config) (map[string]interface{}, error)

func GetOrganizationIAMCustomRoleCaiObject

func GetOrganizationIAMCustomRoleCaiObject(d tpgresource.TerraformResourceData, config *transport_tpg.Config) ([]cai.Asset, error)

func GetOrganizationPolicyCaiObject

func GetOrganizationPolicyCaiObject(d tpgresource.TerraformResourceData, config *transport_tpg.Config) ([]cai.Asset, error)

func GetProjectApiObject

func GetProjectApiObject(d tpgresource.TerraformResourceData, config *transport_tpg.Config) (map[string]interface{}, error)

func GetProjectBillingInfoApiObject

func GetProjectBillingInfoApiObject(d tpgresource.TerraformResourceData, project string) (map[string]interface{}, error)

func GetProjectBillingInfoCaiObject

func GetProjectBillingInfoCaiObject(d tpgresource.TerraformResourceData, config *transport_tpg.Config) ([]cai.Asset, error)

func GetProjectCaiObject

func GetProjectCaiObject(d tpgresource.TerraformResourceData, config *transport_tpg.Config) ([]cai.Asset, error)

func GetProjectIAMCustomRoleApiObject

func GetProjectIAMCustomRoleApiObject(d tpgresource.TerraformResourceData, config *transport_tpg.Config) (map[string]interface{}, error)

func GetProjectIAMCustomRoleCaiObject

func GetProjectIAMCustomRoleCaiObject(d tpgresource.TerraformResourceData, config *transport_tpg.Config) ([]cai.Asset, error)

func GetProjectOrgPolicyCaiObject

func GetProjectOrgPolicyCaiObject(d tpgresource.TerraformResourceData, config *transport_tpg.Config) ([]cai.Asset, error)

func GetSQLDatabaseInstanceApiObject

func GetSQLDatabaseInstanceApiObject(d tpgresource.TerraformResourceData, config *transport_tpg.Config) (map[string]interface{}, error)

func GetSQLDatabaseInstanceCaiObject

func GetSQLDatabaseInstanceCaiObject(d tpgresource.TerraformResourceData, config *transport_tpg.Config) ([]cai.Asset, error)

func GetServiceAccountApiObject

func GetServiceAccountApiObject(d tpgresource.TerraformResourceData, config *transport_tpg.Config) (map[string]interface{}, error)

func GetServiceAccountCaiObject

func GetServiceAccountCaiObject(d tpgresource.TerraformResourceData, config *transport_tpg.Config) ([]cai.Asset, error)

func GetServiceUsageApiObject

func GetServiceUsageApiObject(d tpgresource.TerraformResourceData, config *transport_tpg.Config) (map[string]interface{}, error)

func GetServiceUsageCaiObject

func GetServiceUsageCaiObject(d tpgresource.TerraformResourceData, config *transport_tpg.Config) ([]cai.Asset, error)

func GetStorageBucketApiObject

func GetStorageBucketApiObject(d tpgresource.TerraformResourceData, config *transport_tpg.Config) (map[string]interface{}, error)

func GetStorageBucketCaiObject

func GetStorageBucketCaiObject(d tpgresource.TerraformResourceData, config *transport_tpg.Config) ([]cai.Asset, error)

func GetStorageBucketIamBindingCaiObject

func GetStorageBucketIamBindingCaiObject(d tpgresource.TerraformResourceData, config *transport_tpg.Config) ([]cai.Asset, error)

func GetStorageBucketIamMemberCaiObject

func GetStorageBucketIamMemberCaiObject(d tpgresource.TerraformResourceData, config *transport_tpg.Config) ([]cai.Asset, error)

func GetStorageBucketIamPolicyCaiObject

func GetStorageBucketIamPolicyCaiObject(d tpgresource.TerraformResourceData, config *transport_tpg.Config) ([]cai.Asset, error)

func GetV2OrgPoliciesCaiObject

func GetV2OrgPoliciesCaiObject(d tpgresource.TerraformResourceData, config *transport_tpg.Config) ([]cai.Asset, error)

func MergeFolderOrgPolicy

func MergeFolderOrgPolicy(existing, incoming cai.Asset) cai.Asset

func MergeKmsCryptoKeyIamBinding

func MergeKmsCryptoKeyIamBinding(existing, incoming cai.Asset) cai.Asset

func MergeKmsCryptoKeyIamBindingDelete

func MergeKmsCryptoKeyIamBindingDelete(existing, incoming cai.Asset) cai.Asset

func MergeKmsCryptoKeyIamMember

func MergeKmsCryptoKeyIamMember(existing, incoming cai.Asset) cai.Asset

func MergeKmsCryptoKeyIamMemberDelete

func MergeKmsCryptoKeyIamMemberDelete(existing, incoming cai.Asset) cai.Asset

func MergeKmsCryptoKeyIamPolicy

func MergeKmsCryptoKeyIamPolicy(existing, incoming cai.Asset) cai.Asset

func MergeKmsKeyRingIamBinding

func MergeKmsKeyRingIamBinding(existing, incoming cai.Asset) cai.Asset

func MergeKmsKeyRingIamBindingDelete

func MergeKmsKeyRingIamBindingDelete(existing, incoming cai.Asset) cai.Asset

func MergeKmsKeyRingIamMember

func MergeKmsKeyRingIamMember(existing, incoming cai.Asset) cai.Asset

func MergeKmsKeyRingIamMemberDelete

func MergeKmsKeyRingIamMemberDelete(existing, incoming cai.Asset) cai.Asset

func MergeKmsKeyRingIamPolicy

func MergeKmsKeyRingIamPolicy(existing, incoming cai.Asset) cai.Asset

func MergeOrganizationPolicy

func MergeOrganizationPolicy(existing, incoming cai.Asset) cai.Asset

func MergeProject

func MergeProject(existing, incoming cai.Asset) cai.Asset

func MergeProjectOrgPolicy

func MergeProjectOrgPolicy(existing, incoming cai.Asset) cai.Asset

func MergeStorageBucketIamBinding

func MergeStorageBucketIamBinding(existing, incoming cai.Asset) cai.Asset

func MergeStorageBucketIamBindingDelete

func MergeStorageBucketIamBindingDelete(existing, incoming cai.Asset) cai.Asset

func MergeStorageBucketIamMember

func MergeStorageBucketIamMember(existing, incoming cai.Asset) cai.Asset

func MergeStorageBucketIamMemberDelete

func MergeStorageBucketIamMemberDelete(existing, incoming cai.Asset) cai.Asset

func MergeStorageBucketIamPolicy

func MergeStorageBucketIamPolicy(existing, incoming cai.Asset) cai.Asset

func MergeV2OrgPolicies

func MergeV2OrgPolicies(existing, incoming cai.Asset) cai.Asset

func NewConfig

func NewConfig(ctx context.Context, project, zone, region string, offline bool, userAgent string, client *http.Client) (*transport_tpg.Config, error)

func RandString

func RandString(n int) string

func ResourceConverters

func ResourceConverters() map[string][]cai.ResourceConverter

ResourceConverter returns a map of terraform resource types (i.e. `google_project`) to a slice of ResourceConverters.

Modelling of relationships: terraform resources to CAI assets as []cai.ResourceConverter: 1:1 = [ResourceConverter{Convert: convertAbc}] (len=1) 1:N = [ResourceConverter{Convert: convertAbc}, ...] (len=N) N:1 = [ResourceConverter{Convert: convertAbc, merge: mergeAbc}] (len=1)

func StorageBucketDiffSuppress

func StorageBucketDiffSuppress(_, old, new string, _ *schema.ResourceData) bool

func StorageBucketIdParseFunc

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

Types

type Asset

type Asset = cai.Asset

Asset is the CAI representation of a resource.

type AssetResource

type AssetResource = cai.AssetResource

AssetResource is the Asset's Resource field.

type BooleanPolicy

type BooleanPolicy = cai.BooleanPolicy

type ConvertFunc

type ConvertFunc = cai.ConvertFunc

type Expr

type Expr = cai.Expr

type FetchFullResourceFunc

type FetchFullResourceFunc = cai.FetchFullResourceFunc

type Folder

type Folder = cai.Folder

type GetApiObjectFunc

type GetApiObjectFunc = cai.GetApiObjectFunc

type IAMBinding

type IAMBinding = cai.IAMBinding

type IAMPolicy

type IAMPolicy = cai.IAMPolicy

type ListPolicy

type ListPolicy = cai.ListPolicy

type ListPolicyAllValues

type ListPolicyAllValues = cai.ListPolicyAllValues

type MergeFunc

type MergeFunc = cai.MergeFunc

type OrgPolicy

type OrgPolicy = cai.OrgPolicy

type PolicyRule

type PolicyRule = cai.PolicyRule

type PolicySpec

type PolicySpec = cai.PolicySpec

Spec is the representation of Spec for V2OrgPolicy

type ResourceConverter

type ResourceConverter = cai.ResourceConverter

type RestoreDefault

type RestoreDefault = cai.RestoreDefault

type StorageBucketIamUpdater

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

func (*StorageBucketIamUpdater) DescribeResource

func (u *StorageBucketIamUpdater) DescribeResource() string

func (*StorageBucketIamUpdater) GetMutexKey

func (u *StorageBucketIamUpdater) GetMutexKey() string

func (*StorageBucketIamUpdater) GetResourceIamPolicy

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

func (*StorageBucketIamUpdater) GetResourceId

func (u *StorageBucketIamUpdater) GetResourceId() string

func (*StorageBucketIamUpdater) SetResourceIamPolicy

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

type StringValues

type StringValues = cai.StringValues

type Timestamp

type Timestamp = cai.Timestamp

type V2OrgPolicies

type V2OrgPolicies = cai.V2OrgPolicies

V2OrgPolicies is the represtation of V2OrgPolicies

Directories

Path Synopsis
services
compute
----------------------------------------------------------------------------
----------------------------------------------------------------------------
dns
iap
kms
sql
tpu

Jump to

Keyboard shortcuts

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