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
- Variables
- func AssetName(d tpgresource.TerraformResourceData, config *transport_tpg.Config, ...) (string, error)
- func CanonicalOrgPolicyConstraint(constraint string) string
- func FetchKmsCryptoKeyIamPolicy(d tpgresource.TerraformResourceData, config *transport_tpg.Config) (cai.Asset, error)
- func FetchKmsKeyRingIamPolicy(d tpgresource.TerraformResourceData, config *transport_tpg.Config) (cai.Asset, error)
- func FetchStorageBucketIamPolicy(d tpgresource.TerraformResourceData, config *transport_tpg.Config) (cai.Asset, error)
- func GetBigQueryTableApiObject(d tpgresource.TerraformResourceData, config *transport_tpg.Config) (map[string]interface{}, error)
- func GetBigQueryTableCaiObject(d tpgresource.TerraformResourceData, config *transport_tpg.Config) ([]cai.Asset, error)
- func GetBigtableClusterApiObjects(d tpgresource.TerraformResourceData, config *transport_tpg.Config) ([]map[string]interface{}, error)
- func GetBigtableClusterCaiObject(d tpgresource.TerraformResourceData, config *transport_tpg.Config) ([]cai.Asset, error)
- func GetBigtableInstanceApiObject(d tpgresource.TerraformResourceData, config *transport_tpg.Config) (map[string]interface{}, error)
- func GetBigtableInstanceCaiObject(d tpgresource.TerraformResourceData, config *transport_tpg.Config) ([]cai.Asset, error)
- func GetCloudFunctionsCloudFunctionApiObject(d tpgresource.TerraformResourceData, config *transport_tpg.Config) (map[string]interface{}, error)
- func GetCloudFunctionsCloudFunctionCaiObject(d tpgresource.TerraformResourceData, config *transport_tpg.Config) ([]cai.Asset, error)
- func GetCloudFunctionsFunctionApiObject(d tpgresource.TerraformResourceData, config *transport_tpg.Config) (map[string]interface{}, error)
- func GetCloudFunctionsFunctionCaiObject(d tpgresource.TerraformResourceData, config *transport_tpg.Config) ([]cai.Asset, error)
- func GetComputeSecurityPolicyApiObject(d tpgresource.TerraformResourceData, config *transport_tpg.Config) (map[string]interface{}, error)
- func GetComputeSecurityPolicyCaiObject(d tpgresource.TerraformResourceData, config *transport_tpg.Config) ([]cai.Asset, error)
- func GetContainerClusterApiObject(d tpgresource.TerraformResourceData, config *transport_tpg.Config) (map[string]interface{}, error)
- func GetContainerClusterCaiObject(d tpgresource.TerraformResourceData, config *transport_tpg.Config) ([]cai.Asset, error)
- func GetContainerNodePoolApiObject(d tpgresource.TerraformResourceData, config *transport_tpg.Config) (map[string]interface{}, error)
- func GetContainerNodePoolCaiObject(d tpgresource.TerraformResourceData, config *transport_tpg.Config) ([]cai.Asset, error)
- func GetFolderApiObject(d tpgresource.TerraformResourceData, config *transport_tpg.Config) (map[string]interface{}, error)
- func GetFolderCaiObject(d tpgresource.TerraformResourceData, config *transport_tpg.Config) ([]cai.Asset, error)
- func GetFolderOrgPolicyApiObject(d tpgresource.TerraformResourceData, config *transport_tpg.Config) (cai.OrgPolicy, error)
- func GetFolderOrgPolicyCaiObject(d tpgresource.TerraformResourceData, config *transport_tpg.Config) ([]cai.Asset, error)
- func GetKmsCryptoKeyIamBindingCaiObject(d tpgresource.TerraformResourceData, config *transport_tpg.Config) ([]cai.Asset, error)
- func GetKmsCryptoKeyIamMemberCaiObject(d tpgresource.TerraformResourceData, config *transport_tpg.Config) ([]cai.Asset, error)
- func GetKmsCryptoKeyIamPolicyCaiObject(d tpgresource.TerraformResourceData, config *transport_tpg.Config) ([]cai.Asset, error)
- func GetKmsKeyRingIamBindingCaiObject(d tpgresource.TerraformResourceData, config *transport_tpg.Config) ([]cai.Asset, error)
- func GetKmsKeyRingIamMemberCaiObject(d tpgresource.TerraformResourceData, config *transport_tpg.Config) ([]cai.Asset, error)
- func GetKmsKeyRingIamPolicyCaiObject(d tpgresource.TerraformResourceData, config *transport_tpg.Config) ([]cai.Asset, error)
- func GetOrganizationIAMCustomRoleApiObject(d tpgresource.TerraformResourceData, config *transport_tpg.Config) (map[string]interface{}, error)
- func GetOrganizationIAMCustomRoleCaiObject(d tpgresource.TerraformResourceData, config *transport_tpg.Config) ([]cai.Asset, error)
- func GetOrganizationPolicyApiObject(d tpgresource.TerraformResourceData, config *transport_tpg.Config) (cai.OrgPolicy, error)
- func GetOrganizationPolicyCaiObject(d tpgresource.TerraformResourceData, config *transport_tpg.Config) ([]cai.Asset, error)
- func GetProjectApiObject(d tpgresource.TerraformResourceData, config *transport_tpg.Config) (map[string]interface{}, error)
- func GetProjectBillingInfoApiObject(d tpgresource.TerraformResourceData, project string) (map[string]interface{}, error)
- func GetProjectBillingInfoCaiObject(d tpgresource.TerraformResourceData, config *transport_tpg.Config) ([]cai.Asset, error)
- func GetProjectCaiObject(d tpgresource.TerraformResourceData, config *transport_tpg.Config) ([]cai.Asset, error)
- func GetProjectIAMCustomRoleApiObject(d tpgresource.TerraformResourceData, config *transport_tpg.Config) (map[string]interface{}, error)
- func GetProjectIAMCustomRoleCaiObject(d tpgresource.TerraformResourceData, config *transport_tpg.Config) ([]cai.Asset, error)
- func GetProjectOrgPolicyApiObject(d tpgresource.TerraformResourceData, config *transport_tpg.Config) (cai.OrgPolicy, error)
- func GetProjectOrgPolicyCaiObject(d tpgresource.TerraformResourceData, config *transport_tpg.Config) ([]cai.Asset, error)
- func GetSQLDatabaseInstanceApiObject(d tpgresource.TerraformResourceData, config *transport_tpg.Config) (map[string]interface{}, error)
- func GetSQLDatabaseInstanceCaiObject(d tpgresource.TerraformResourceData, config *transport_tpg.Config) ([]cai.Asset, error)
- func GetServiceAccountApiObject(d tpgresource.TerraformResourceData, config *transport_tpg.Config) (map[string]interface{}, error)
- func GetServiceAccountCaiObject(d tpgresource.TerraformResourceData, config *transport_tpg.Config) ([]cai.Asset, error)
- func GetServiceUsageApiObject(d tpgresource.TerraformResourceData, config *transport_tpg.Config) (map[string]interface{}, error)
- func GetServiceUsageCaiObject(d tpgresource.TerraformResourceData, config *transport_tpg.Config) ([]cai.Asset, error)
- func GetStorageBucketApiObject(d tpgresource.TerraformResourceData, config *transport_tpg.Config) (map[string]interface{}, error)
- func GetStorageBucketCaiObject(d tpgresource.TerraformResourceData, config *transport_tpg.Config) ([]cai.Asset, error)
- func GetStorageBucketIamBindingCaiObject(d tpgresource.TerraformResourceData, config *transport_tpg.Config) ([]cai.Asset, error)
- func GetStorageBucketIamMemberCaiObject(d tpgresource.TerraformResourceData, config *transport_tpg.Config) ([]cai.Asset, error)
- func GetStorageBucketIamPolicyCaiObject(d tpgresource.TerraformResourceData, config *transport_tpg.Config) ([]cai.Asset, error)
- func GetV2OrgPoliciesApiObject(d tpgresource.TerraformResourceData, config *transport_tpg.Config) (cai.V2OrgPolicies, error)
- func GetV2OrgPoliciesCaiObject(d tpgresource.TerraformResourceData, config *transport_tpg.Config) ([]cai.Asset, error)
- func MergeFolderOrgPolicy(existing, incoming cai.Asset) cai.Asset
- func MergeKmsCryptoKeyIamBinding(existing, incoming cai.Asset) cai.Asset
- func MergeKmsCryptoKeyIamBindingDelete(existing, incoming cai.Asset) cai.Asset
- func MergeKmsCryptoKeyIamMember(existing, incoming cai.Asset) cai.Asset
- func MergeKmsCryptoKeyIamMemberDelete(existing, incoming cai.Asset) cai.Asset
- func MergeKmsCryptoKeyIamPolicy(existing, incoming cai.Asset) cai.Asset
- func MergeKmsKeyRingIamBinding(existing, incoming cai.Asset) cai.Asset
- func MergeKmsKeyRingIamBindingDelete(existing, incoming cai.Asset) cai.Asset
- func MergeKmsKeyRingIamMember(existing, incoming cai.Asset) cai.Asset
- func MergeKmsKeyRingIamMemberDelete(existing, incoming cai.Asset) cai.Asset
- func MergeKmsKeyRingIamPolicy(existing, incoming cai.Asset) cai.Asset
- func MergeOrganizationPolicy(existing, incoming cai.Asset) cai.Asset
- func MergeProject(existing, incoming cai.Asset) cai.Asset
- func MergeProjectOrgPolicy(existing, incoming cai.Asset) cai.Asset
- func MergeStorageBucketIamBinding(existing, incoming cai.Asset) cai.Asset
- func MergeStorageBucketIamBindingDelete(existing, incoming cai.Asset) cai.Asset
- func MergeStorageBucketIamMember(existing, incoming cai.Asset) cai.Asset
- func MergeStorageBucketIamMemberDelete(existing, incoming cai.Asset) cai.Asset
- func MergeStorageBucketIamPolicy(existing, incoming cai.Asset) cai.Asset
- func MergeV2OrgPolicies(existing, incoming cai.Asset) cai.Asset
- func NewConfig(ctx context.Context, project, zone, region string, offline bool, ...) (*transport_tpg.Config, error)
- func RandString(n int) string
- func ResourceConverters() map[string][]cai.ResourceConverter
- func StorageBucketDiffSuppress(_, old, new string, _ *schema.ResourceData) bool
- func StorageBucketIamUpdaterProducer(d tpgresource.TerraformResourceData, config *transport_tpg.Config) (tpgiamresource.ResourceIamUpdater, error)
- func StorageBucketIdParseFunc(d *schema.ResourceData, config *transport_tpg.Config) error
- type Asset
- type AssetResource
- type BooleanPolicy
- type ConvertFunc
- type Expr
- type FetchFullResourceFunc
- type Folder
- type GetApiObjectFunc
- type IAMBinding
- type IAMPolicy
- type ListPolicy
- type ListPolicyAllValues
- type MergeFunc
- type OrgPolicy
- type PolicyRule
- type PolicySpec
- type ResourceConverter
- type RestoreDefault
- type StorageBucketIamUpdater
- func (u *StorageBucketIamUpdater) DescribeResource() string
- func (u *StorageBucketIamUpdater) GetMutexKey() string
- func (u *StorageBucketIamUpdater) GetResourceIamPolicy() (*cloudresourcemanager.Policy, error)
- func (u *StorageBucketIamUpdater) GetResourceId() string
- func (u *StorageBucketIamUpdater) SetResourceIamPolicy(policy *cloudresourcemanager.Policy) error
- type StringValues
- type Timestamp
- type V2OrgPolicies
Constants ¶
const BigQueryTableAssetType string = "bigquery.googleapis.com/Table"
const CloudFunctionsCloudFunctionAssetType string = "cloudfunctions.googleapis.com/CloudFunction"
const ComputeSecurityPolicyAssetType string = "compute.googleapis.com/SecurityPolicy"
const ContainerClusterAssetType string = "container.googleapis.com/Cluster"
const ContainerNodePoolAssetType string = "container.googleapis.com/NodePool"
const OrganizationIAMCustomRoleAssetType string = "iam.googleapis.com/Role"
const ProjectIAMCustomRoleAssetType string = "iam.googleapis.com/Role"
const SQLDatabaseInstanceAssetType string = "sqladmin.googleapis.com/Instance"
const ServiceAccountAssetType string = "iam.googleapis.com/ServiceAccount"
const ServiceUsageAssetType string = "serviceusage.googleapis.com/Service"
const StorageBucketAssetType string = "storage.googleapis.com/Bucket"
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 ¶
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.
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).
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
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 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 GetFolderOrgPolicyApiObject ¶
func GetFolderOrgPolicyApiObject(d tpgresource.TerraformResourceData, config *transport_tpg.Config) (cai.OrgPolicy, 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 GetOrganizationPolicyApiObject ¶
func GetOrganizationPolicyApiObject(d tpgresource.TerraformResourceData, config *transport_tpg.Config) (cai.OrgPolicy, 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 GetProjectOrgPolicyApiObject ¶
func GetProjectOrgPolicyApiObject(d tpgresource.TerraformResourceData, config *transport_tpg.Config) (cai.OrgPolicy, 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 GetV2OrgPoliciesApiObject ¶
func GetV2OrgPoliciesApiObject(d tpgresource.TerraformResourceData, config *transport_tpg.Config) (cai.V2OrgPolicies, error)
func GetV2OrgPoliciesCaiObject ¶
func GetV2OrgPoliciesCaiObject(d tpgresource.TerraformResourceData, config *transport_tpg.Config) ([]cai.Asset, error)
func RandString ¶
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 StorageBucketIamUpdaterProducer ¶
func StorageBucketIamUpdaterProducer(d tpgresource.TerraformResourceData, config *transport_tpg.Config) (tpgiamresource.ResourceIamUpdater, error)
func StorageBucketIdParseFunc ¶
func StorageBucketIdParseFunc(d *schema.ResourceData, config *transport_tpg.Config) error
Types ¶
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 FetchFullResourceFunc ¶
type FetchFullResourceFunc = cai.FetchFullResourceFunc
type GetApiObjectFunc ¶
type GetApiObjectFunc = cai.GetApiObjectFunc
type IAMBinding ¶
type IAMBinding = cai.IAMBinding
type ListPolicy ¶
type ListPolicy = cai.ListPolicy
type ListPolicyAllValues ¶
type ListPolicyAllValues = cai.ListPolicyAllValues
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 V2OrgPolicies ¶
type V2OrgPolicies = cai.V2OrgPolicies
V2OrgPolicies is the represtation of V2OrgPolicies
Source Files ¶
- bigquery_table.go
- bigtable_cluster.go
- bigtable_instance.go
- cai.go
- cloudfunctions_cloud_function.go
- cloudfunctions_function.go
- compute_security_policy.go
- constants.go
- container.go
- folder.go
- folder_organization_policy.go
- getconfig.go
- iam_storage_bucket.go
- kms_crypto_key_iam.go
- kms_key_ring_iam.go
- org_policy_policy.go
- organization_iam_custom_role.go
- organization_policy.go
- project.go
- project_iam_custom_role.go
- project_organization_policy.go
- project_service.go
- resource_converters.go
- service_account.go
- sql_database_instance.go
- storage_bucket.go
- storage_bucket_iam.go