Skip to content

Commit

Permalink
Upgrade terraform-provider-google-beta to v4.51.0 (#983)
Browse files Browse the repository at this point in the history
* Upgrade terraform-provider-google-beta to v4.51.0

* .NET SDK

* Go SDK

* Java SDK

* Node SDK

* Python SDK
  • Loading branch information
lblackstone authored Feb 1, 2023
1 parent 40dbf2e commit d8be576
Show file tree
Hide file tree
Showing 1,722 changed files with 47,152 additions and 70,900 deletions.
3,625 changes: 2,759 additions & 866 deletions provider/cmd/pulumi-resource-gcp/schema.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion provider/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ require (

replace (
github.com/hashicorp/terraform-plugin-sdk/v2 => github.com/pulumi/terraform-plugin-sdk/v2 v2.0.0-20220824175045-450992f2f5b9
github.com/hashicorp/terraform-provider-google-beta => github.com/pulumi/terraform-provider-google-beta v0.0.0-20230124184134-2ee3abe07b0c
github.com/hashicorp/terraform-provider-google-beta => github.com/pulumi/terraform-provider-google-beta v0.0.0-20230131222603-7068d3cf5711
github.com/hashicorp/vault => github.com/hashicorp/vault v1.2.0
)

Expand Down
4 changes: 2 additions & 2 deletions provider/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -1555,8 +1555,8 @@ github.com/pulumi/terraform-diff-reader v0.0.0-20201211191010-ad4715e9285e h1:Di
github.com/pulumi/terraform-diff-reader v0.0.0-20201211191010-ad4715e9285e/go.mod h1:sZ9FUzGO+yM41hsQHs/yIcj/Y993qMdBxBU5mpDmAfQ=
github.com/pulumi/terraform-plugin-sdk/v2 v2.0.0-20220824175045-450992f2f5b9 h1:JMw+t5I+6E8Lna7JF+ghAoOLOl23UIbshJyRNP+K1HU=
github.com/pulumi/terraform-plugin-sdk/v2 v2.0.0-20220824175045-450992f2f5b9/go.mod h1:mYPs/uchNcBq7AclQv9QUtSf9iNcfp1Ag21jqTlDf2M=
github.com/pulumi/terraform-provider-google-beta v0.0.0-20230124184134-2ee3abe07b0c h1:tTNB8Nu/ZYSGCFTl+br1tjP+PETAXlVzgeV8hl0RyKs=
github.com/pulumi/terraform-provider-google-beta v0.0.0-20230124184134-2ee3abe07b0c/go.mod h1:Tr+M2PwsgVHLT2QQe13F/ZARUr+YxUcak4AOYalo+Eg=
github.com/pulumi/terraform-provider-google-beta v0.0.0-20230131222603-7068d3cf5711 h1:5Ysh5Be8Pb8xjKcE/Ql3L/sFbcqi1HgBhvTXFZss18o=
github.com/pulumi/terraform-provider-google-beta v0.0.0-20230131222603-7068d3cf5711/go.mod h1:LcpN8YCNx8yB54Hs54Flx34cNVWQys6FIU8ZeeGEU50=
github.com/rakyll/embedmd v0.0.0-20171029212350-c8060a0752a2/go.mod h1:7jOTMgqac46PZcF54q6l2hkLEG8op93fZu61KmxWDV4=
github.com/rcrowley/go-metrics v0.0.0-20181016184325-3113b8401b8a/go.mod h1:bCqnVzQkZxMG4s8nGwiZ5l3QUCyqpo9Y+/ZMZ9VjZe4=
github.com/rivo/uniseg v0.2.0 h1:S1pD9weZBuJdFmowNwbpi7BJ8TNftyUImj/0WQi72jY=
Expand Down
20 changes: 16 additions & 4 deletions provider/resources.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ const (
gcpCertificateManager = "CertificateManager" // CertificateManager resources
gcpCloudAsset = "CloudAsset" // CloudAsset resources
gcpCloudBuild = "CloudBuild" // CloudBuild resources
gcpCloudBuildV2 = "CloudBuildV2" // CloudBuild (2nd Gen) resources
gcpCloudDeploy = "CloudDeploy" // CloudDeploy resources
gcpCloudFunctions = "CloudFunctions" // CloudFunction resources
gcpCloudFunctionsV2 = "CloudFunctionsV2" // CloudFunction (2nd Gen) resources
Expand Down Expand Up @@ -124,6 +125,7 @@ const (
gcpVertex = "Vertex" // Vertex
gcpVpcAccess = "VpcAccess" // VPC Access
gcpWorkflows = "Workflows" // Workflows
gcpWorkstations = "Workstations" // Workstations
)

var namespaceMap = map[string]string{
Expand Down Expand Up @@ -627,6 +629,10 @@ func Provider() tfbridge.ProviderInfo {
},
"google_cloudbuild_worker_pool": {Tok: gcpResource(gcpCloudBuild, "WorkerPool")},

// Cloud Build V2
"google_cloudbuildv2_connection": {Tok: gcpResource(gcpCloudBuildV2, "Connection")},
"google_cloudbuildv2_repository": {Tok: gcpResource(gcpCloudBuildV2, "Repository")},

// Cloud Deploy
"google_clouddeploy_delivery_pipeline": {Tok: gcpResource(gcpCloudDeploy, "DeliveryPipeline")},
"google_clouddeploy_target": {Tok: gcpResource(gcpCloudDeploy, "Target")},
Expand Down Expand Up @@ -2574,6 +2580,7 @@ func Provider() tfbridge.ProviderInfo {
"google_iam_deny_policy": {Tok: gcpResource(gcpIAM, "DenyPolicy")},
"google_iam_workforce_pool": {Tok: gcpResource(gcpIAM, "WorkforcePool")},
"google_iam_workforce_pool_provider": {Tok: gcpResource(gcpIAM, "WorkforcePoolProvider")},
"google_iam_access_boundary_policy": {Tok: gcpResource(gcpIAM, "AccessBoundaryPolicy")},

// apigee
"google_apigee_organization": {Tok: gcpResource(gcpApigee, "Organization")},
Expand Down Expand Up @@ -2721,6 +2728,9 @@ func Provider() tfbridge.ProviderInfo {
// workflows
"google_workflows_workflow": {Tok: gcpResource(gcpWorkflows, "Workflow")},

// Workstations
"google_workstations_workstation_cluster": {Tok: gcpResource(gcpWorkstations, "WorkstationCluster")},

//eventarc
"google_eventarc_channel": {
Tok: gcpResource(gcpEventarc, "Channel"),
Expand Down Expand Up @@ -2791,9 +2801,10 @@ func Provider() tfbridge.ProviderInfo {
},

// tags
"google_tags_tag_key": {Tok: gcpResource(gcpTags, "TagKey")},
"google_tags_tag_value": {Tok: gcpResource(gcpTags, "TagValue")},
"google_tags_tag_binding": {Tok: gcpResource(gcpTags, "TagBinding")},
"google_tags_location_tag_binding": {Tok: gcpResource(gcpTags, "LocationTagBinding")},
"google_tags_tag_key": {Tok: gcpResource(gcpTags, "TagKey")},
"google_tags_tag_value": {Tok: gcpResource(gcpTags, "TagValue")},
"google_tags_tag_binding": {Tok: gcpResource(gcpTags, "TagBinding")},
"google_tags_tag_key_iam_binding": {
Tok: gcpResource(gcpTags, "TagKeyIamBinding"),
Docs: &tfbridge.DocInfo{
Expand Down Expand Up @@ -3413,7 +3424,8 @@ func Provider() tfbridge.ProviderInfo {
"google_iap_client": {Tok: gcpDataSource(gcpIAP, "getClient")},

// Secret Manager
"google_secret_manager_secret": {Tok: gcpDataSource(gcpSecretManager, "getSecret")},
"google_secret_manager_secret": {Tok: gcpDataSource(gcpSecretManager, "getSecret")},
"google_secret_manager_secret_version_access": {Tok: gcpDataSource(gcpSecretManager, "getSecretVersionAccess")},

// Tags
"google_tags_tag_key": {Tok: gcpDataSource(gcpTags, "getTagKey")},
Expand Down
88 changes: 0 additions & 88 deletions sdk/dotnet/AccessContextManager/AccessLevelCondition.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,94 +32,6 @@ namespace Pulumi.Gcp.AccessContextManager
/// `billing_project` you defined.
///
/// ## Example Usage
/// ### Access Context Manager Access Level Condition Basic
///
/// ```csharp
/// using System.Collections.Generic;
/// using Pulumi;
/// using Gcp = Pulumi.Gcp;
///
/// return await Deployment.RunAsync(() =>
/// {
/// var access_policy = new Gcp.AccessContextManager.AccessPolicy("access-policy", new()
/// {
/// Parent = "organizations/123456789",
/// Title = "my policy",
/// });
///
/// var access_level_service_account = new Gcp.AccessContextManager.AccessLevel("access-level-service-account", new()
/// {
/// Parent = access_policy.Name.Apply(name => $"accessPolicies/{name}"),
/// Title = "tf_test_chromeos_no_lock",
/// Basic = new Gcp.AccessContextManager.Inputs.AccessLevelBasicArgs
/// {
/// Conditions = new[]
/// {
/// new Gcp.AccessContextManager.Inputs.AccessLevelBasicConditionArgs
/// {
/// DevicePolicy = new Gcp.AccessContextManager.Inputs.AccessLevelBasicConditionDevicePolicyArgs
/// {
/// RequireScreenLock = true,
/// OsConstraints = new[]
/// {
/// new Gcp.AccessContextManager.Inputs.AccessLevelBasicConditionDevicePolicyOsConstraintArgs
/// {
/// OsType = "DESKTOP_CHROME_OS",
/// },
/// },
/// },
/// Regions = new[]
/// {
/// "CH",
/// "IT",
/// "US",
/// },
/// },
/// },
/// },
/// });
///
/// var created_later = new Gcp.ServiceAccount.Account("created-later", new()
/// {
/// AccountId = "tf-test",
/// });
///
/// var access_level_conditions = new Gcp.AccessContextManager.AccessLevelCondition("access-level-conditions", new()
/// {
/// AccessLevel = access_level_service_account.Name,
/// IpSubnetworks = new[]
/// {
/// "192.0.4.0/24",
/// },
/// Members = new[]
/// {
/// "user:[email protected]",
/// "user:[email protected]",
/// created_later.Email.Apply(email => $"serviceAccount:{email}"),
/// },
/// Negate = false,
/// DevicePolicy = new Gcp.AccessContextManager.Inputs.AccessLevelConditionDevicePolicyArgs
/// {
/// RequireScreenLock = false,
/// RequireAdminApproval = false,
/// RequireCorpOwned = true,
/// OsConstraints = new[]
/// {
/// new Gcp.AccessContextManager.Inputs.AccessLevelConditionDevicePolicyOsConstraintArgs
/// {
/// OsType = "DESKTOP_CHROME_OS",
/// },
/// },
/// },
/// Regions = new[]
/// {
/// "IT",
/// "US",
/// },
/// });
///
/// });
/// ```
///
/// ## Import
///
Expand Down
8 changes: 0 additions & 8 deletions sdk/dotnet/ApiGateway/Api.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,6 @@
namespace Pulumi.Gcp.ApiGateway
{
/// <summary>
/// A consumable API that can be used by multiple Gateways.
///
/// To get more information about Api, see:
///
/// * [API documentation](https://cloud.google.com/api-gateway/docs/reference/rest/v1beta/projects.locations.apis)
/// * How-to Guides
/// * [Official Documentation](https://cloud.google.com/api-gateway/docs/quickstart)
///
/// ## Example Usage
/// ### Apigateway Api Basic
///
Expand Down
8 changes: 0 additions & 8 deletions sdk/dotnet/ApiGateway/ApiConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,6 @@
namespace Pulumi.Gcp.ApiGateway
{
/// <summary>
/// An API Configuration is an association of an API Controller Config and a Gateway Config
///
/// To get more information about ApiConfig, see:
///
/// * [API documentation](https://cloud.google.com/api-gateway/docs/reference/rest/v1beta/projects.locations.apis.configs)
/// * How-to Guides
/// * [Official Documentation](https://cloud.google.com/api-gateway/docs/creating-api-config)
///
/// ## Example Usage
/// ### Apigateway Api Config Basic
///
Expand Down
96 changes: 0 additions & 96 deletions sdk/dotnet/ApiGateway/ApiConfigIamBinding.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,102 +10,6 @@
namespace Pulumi.Gcp.ApiGateway
{
/// <summary>
/// Three different resources help you manage your IAM policy for API Gateway ApiConfig. Each of these resources serves a different use case:
///
/// * `gcp.apigateway.ApiConfigIamPolicy`: Authoritative. Sets the IAM policy for the apiconfig and replaces any existing policy already attached.
/// * `gcp.apigateway.ApiConfigIamBinding`: Authoritative for a given role. Updates the IAM policy to grant a role to a list of members. Other roles within the IAM policy for the apiconfig are preserved.
/// * `gcp.apigateway.ApiConfigIamMember`: Non-authoritative. Updates the IAM policy to grant a role to a new member. Other members for the role for the apiconfig are preserved.
///
/// &gt; **Note:** `gcp.apigateway.ApiConfigIamPolicy` **cannot** be used in conjunction with `gcp.apigateway.ApiConfigIamBinding` and `gcp.apigateway.ApiConfigIamMember` or they will fight over what your policy should be.
///
/// &gt; **Note:** `gcp.apigateway.ApiConfigIamBinding` resources **can be** used in conjunction with `gcp.apigateway.ApiConfigIamMember` resources **only if** they do not grant privilege to the same role.
///
/// ## google\_api\_gateway\_api\_config\_iam\_policy
///
/// ```csharp
/// using System.Collections.Generic;
/// using Pulumi;
/// using Gcp = Pulumi.Gcp;
///
/// return await Deployment.RunAsync(() =&gt;
/// {
/// var admin = Gcp.Organizations.GetIAMPolicy.Invoke(new()
/// {
/// Bindings = new[]
/// {
/// new Gcp.Organizations.Inputs.GetIAMPolicyBindingInputArgs
/// {
/// Role = "roles/apigateway.viewer",
/// Members = new[]
/// {
/// "user:[email protected]",
/// },
/// },
/// },
/// });
///
/// var policy = new Gcp.ApiGateway.ApiConfigIamPolicy("policy", new()
/// {
/// Api = google_api_gateway_api_config.Api_cfg.Api,
/// ApiConfig = google_api_gateway_api_config.Api_cfg.Api_config_id,
/// PolicyData = admin.Apply(getIAMPolicyResult =&gt; getIAMPolicyResult.PolicyData),
/// }, new CustomResourceOptions
/// {
/// Provider = google_beta,
/// });
///
/// });
/// ```
///
/// ## google\_api\_gateway\_api\_config\_iam\_binding
///
/// ```csharp
/// using System.Collections.Generic;
/// using Pulumi;
/// using Gcp = Pulumi.Gcp;
///
/// return await Deployment.RunAsync(() =&gt;
/// {
/// var binding = new Gcp.ApiGateway.ApiConfigIamBinding("binding", new()
/// {
/// Api = google_api_gateway_api_config.Api_cfg.Api,
/// ApiConfig = google_api_gateway_api_config.Api_cfg.Api_config_id,
/// Role = "roles/apigateway.viewer",
/// Members = new[]
/// {
/// "user:[email protected]",
/// },
/// }, new CustomResourceOptions
/// {
/// Provider = google_beta,
/// });
///
/// });
/// ```
///
/// ## google\_api\_gateway\_api\_config\_iam\_member
///
/// ```csharp
/// using System.Collections.Generic;
/// using Pulumi;
/// using Gcp = Pulumi.Gcp;
///
/// return await Deployment.RunAsync(() =&gt;
/// {
/// var member = new Gcp.ApiGateway.ApiConfigIamMember("member", new()
/// {
/// Api = google_api_gateway_api_config.Api_cfg.Api,
/// ApiConfig = google_api_gateway_api_config.Api_cfg.Api_config_id,
/// Role = "roles/apigateway.viewer",
/// Member = "user:[email protected]",
/// }, new CustomResourceOptions
/// {
/// Provider = google_beta,
/// });
///
/// });
/// ```
///
/// ## Import
///
/// For all import syntaxes, the "resource in question" can take any of the following forms* projects/{{project}}/locations/global/apis/{{api}}/configs/{{api_config}} * {{project}}/{{api}}/{{api_config}} * {{api}}/{{api_config}} * {{api_config}} Any variables not passed in the import command will be taken from the provider configuration. API Gateway apiconfig IAM resources can be imported using the resource identifiers, role, and member. IAM member imports use space-delimited identifiersthe resource in question, the role, and the member identity, e.g.
Expand Down
Loading

0 comments on commit d8be576

Please sign in to comment.