google

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

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

Go to latest
Published: Jun 18, 2019 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Overview

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

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

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

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

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

This section is empty.

Variables

View Source
var ErrNoConversion = errors.New("no conversion")

ErrNoConversion can be returned if a conversion is unable to be returned because of the current state of the system. Example: The conversion requires that the resource has already been created and is now being updated).

Functions

func GetComputeInstanceApiObject

func GetComputeInstanceApiObject(d TerraformResourceData, config *Config) (map[string]interface{}, error)

func GetProjectApiObject

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

func GetProjectBillingInfoApiObject

func GetProjectBillingInfoApiObject(d TerraformResourceData, config *Config) (map[string]interface{}, error)

func GetSQLDatabaseInstanceApiObject

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

func GetStorageBucketApiObject

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

Types

type Asset

type Asset struct {
	// The name, in a peculiar format: `\\<api>.googleapis.com/<self_link>`
	Name string `json:"name"`
	// The type name in `google.<api>.<resourcename>` format.
	Type      string         `json:"asset_type"`
	Resource  *AssetResource `json:"resource,omitempty"`
	IAMPolicy *IAMPolicy     `json:"iam_policy,omitempty"`
}

Asset is the CAI representation of a resource.

func GetComputeInstanceCaiObject

func GetComputeInstanceCaiObject(d TerraformResourceData, config *Config) (Asset, error)

func GetFolderIamBindingCaiObject

func GetFolderIamBindingCaiObject(d TerraformResourceData, config *Config) (Asset, error)

func GetFolderIamMemberCaiObject

func GetFolderIamMemberCaiObject(d TerraformResourceData, config *Config) (Asset, error)

func GetFolderIamPolicyCaiObject

func GetFolderIamPolicyCaiObject(d TerraformResourceData, config *Config) (Asset, error)

func GetOrganizationIamBindingCaiObject

func GetOrganizationIamBindingCaiObject(d TerraformResourceData, config *Config) (Asset, error)

func GetOrganizationIamMemberCaiObject

func GetOrganizationIamMemberCaiObject(d TerraformResourceData, config *Config) (Asset, error)

func GetOrganizationIamPolicyCaiObject

func GetOrganizationIamPolicyCaiObject(d TerraformResourceData, config *Config) (Asset, error)

func GetProjectBillingInfoCaiObject

func GetProjectBillingInfoCaiObject(d TerraformResourceData, config *Config) (Asset, error)

func GetProjectCaiObject

func GetProjectCaiObject(d TerraformResourceData, config *Config) (Asset, error)

func GetProjectIamBindingCaiObject

func GetProjectIamBindingCaiObject(d TerraformResourceData, config *Config) (Asset, error)

func GetProjectIamMemberCaiObject

func GetProjectIamMemberCaiObject(d TerraformResourceData, config *Config) (Asset, error)

func GetProjectIamPolicyCaiObject

func GetProjectIamPolicyCaiObject(d TerraformResourceData, config *Config) (Asset, error)

func GetSQLDatabaseInstanceCaiObject

func GetSQLDatabaseInstanceCaiObject(d TerraformResourceData, config *Config) (Asset, error)

func GetStorageBucketCaiObject

func GetStorageBucketCaiObject(d TerraformResourceData, config *Config) (Asset, error)

func MergeFolderIamBinding

func MergeFolderIamBinding(existing, incoming Asset) Asset

func MergeFolderIamMember

func MergeFolderIamMember(existing, incoming Asset) Asset

func MergeFolderIamPolicy

func MergeFolderIamPolicy(existing, incoming Asset) Asset

func MergeOrganizationIamBinding

func MergeOrganizationIamBinding(existing, incoming Asset) Asset

func MergeOrganizationIamMember

func MergeOrganizationIamMember(existing, incoming Asset) Asset

func MergeOrganizationIamPolicy

func MergeOrganizationIamPolicy(existing, incoming Asset) Asset

func MergeProjectIamBinding

func MergeProjectIamBinding(existing, incoming Asset) Asset

func MergeProjectIamMember

func MergeProjectIamMember(existing, incoming Asset) Asset

func MergeProjectIamPolicy

func MergeProjectIamPolicy(existing, incoming Asset) Asset

type AssetResource

type AssetResource struct {
	// Api version
	Version string `json:"version"`
	// URI including scheme for the discovery doc - assembled from
	// product name and version.
	DiscoveryDocumentURI string `json:"discovery_document_uri"`
	// Resource name.
	DiscoveryName string `json:"discovery_name"`
	// Actual resource state as per Terraform.  Note that this does
	// not necessarily correspond perfectly with the CAI representation
	// as there are occasional deviations between CAI and API responses.
	// This returns the API response values instead.
	Data map[string]interface{} `json:"data,omitempty"`
}

AssetResource is the Asset's Resource field.

type IAMBinding

type IAMBinding struct {
	Role    string   `json:"role"`
	Members []string `json:"members"`
}

type IAMPolicy

type IAMPolicy struct {
	Bindings []IAMBinding `json:"bindings"`
}

Jump to

Keyboard shortcuts

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