Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Cloud TPU Nodes #494

Merged
merged 1 commit into from
Mar 5, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions google-beta/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ func ResourceMapWithErrors() (map[string]*schema.Resource, error) {
GeneratedSourceRepoResourcesMap,
GeneratedSpannerResourcesMap,
GeneratedStorageResourcesMap,
GeneratedTpuResourcesMap,
GeneratedMonitoringResourcesMap,
map[string]*schema.Resource{
"google_app_engine_application": resourceAppEngineApplication(),
Expand Down
21 changes: 21 additions & 0 deletions google-beta/provider_tpu_gen.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// ----------------------------------------------------------------------------
//
// *** AUTO GENERATED CODE *** AUTO GENERATED CODE ***
//
// ----------------------------------------------------------------------------
//
// 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.
//
// ----------------------------------------------------------------------------

package google

import "github.com/hashicorp/terraform/helper/schema"

var GeneratedTpuResourcesMap = map[string]*schema.Resource{
"google_tpu_node": resourceTpuNode(),
}
16 changes: 8 additions & 8 deletions google-beta/resource_dns_policy.go
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ func flattenDnsPolicyNetworksNetworkUrl(v interface{}, d *schema.ResourceData) i
return v
}

func expandDnsPolicyAlternativeNameServerConfig(v interface{}, d *schema.ResourceData, config *Config) (interface{}, error) {
func expandDnsPolicyAlternativeNameServerConfig(v interface{}, d TerraformResourceData, config *Config) (interface{}, error) {
l := v.([]interface{})
if len(l) == 0 || l[0] == nil {
return nil, nil
Expand All @@ -430,7 +430,7 @@ func expandDnsPolicyAlternativeNameServerConfig(v interface{}, d *schema.Resourc
return transformed, nil
}

func expandDnsPolicyAlternativeNameServerConfigTargetNameServers(v interface{}, d *schema.ResourceData, config *Config) (interface{}, error) {
func expandDnsPolicyAlternativeNameServerConfigTargetNameServers(v interface{}, d TerraformResourceData, config *Config) (interface{}, error) {
v = v.(*schema.Set).List()
l := v.([]interface{})
req := make([]interface{}, 0, len(l))
Expand All @@ -453,23 +453,23 @@ func expandDnsPolicyAlternativeNameServerConfigTargetNameServers(v interface{},
return req, nil
}

func expandDnsPolicyAlternativeNameServerConfigTargetNameServersIpv4Address(v interface{}, d *schema.ResourceData, config *Config) (interface{}, error) {
func expandDnsPolicyAlternativeNameServerConfigTargetNameServersIpv4Address(v interface{}, d TerraformResourceData, config *Config) (interface{}, error) {
return v, nil
}

func expandDnsPolicyDescription(v interface{}, d *schema.ResourceData, config *Config) (interface{}, error) {
func expandDnsPolicyDescription(v interface{}, d TerraformResourceData, config *Config) (interface{}, error) {
return v, nil
}

func expandDnsPolicyEnableInboundForwarding(v interface{}, d *schema.ResourceData, config *Config) (interface{}, error) {
func expandDnsPolicyEnableInboundForwarding(v interface{}, d TerraformResourceData, config *Config) (interface{}, error) {
return v, nil
}

func expandDnsPolicyName(v interface{}, d *schema.ResourceData, config *Config) (interface{}, error) {
func expandDnsPolicyName(v interface{}, d TerraformResourceData, config *Config) (interface{}, error) {
return v, nil
}

func expandDnsPolicyNetworks(v interface{}, d *schema.ResourceData, config *Config) (interface{}, error) {
func expandDnsPolicyNetworks(v interface{}, d TerraformResourceData, config *Config) (interface{}, error) {
v = v.(*schema.Set).List()
l := v.([]interface{})
req := make([]interface{}, 0, len(l))
Expand All @@ -492,6 +492,6 @@ func expandDnsPolicyNetworks(v interface{}, d *schema.ResourceData, config *Conf
return req, nil
}

func expandDnsPolicyNetworksNetworkUrl(v interface{}, d *schema.ResourceData, config *Config) (interface{}, error) {
func expandDnsPolicyNetworksNetworkUrl(v interface{}, d TerraformResourceData, config *Config) (interface{}, error) {
return v, nil
}
Loading