diff --git a/sdk/dotnet/AccessApproval/GetFolderServiceAccount.cs b/sdk/dotnet/AccessApproval/GetFolderServiceAccount.cs index b3131f46ea..e6d90e56bb 100644 --- a/sdk/dotnet/AccessApproval/GetFolderServiceAccount.cs +++ b/sdk/dotnet/AccessApproval/GetFolderServiceAccount.cs @@ -84,6 +84,43 @@ public static Task InvokeAsync(GetFolderServiceAc /// public static Output Invoke(GetFolderServiceAccountInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:accessapproval/getFolderServiceAccount:getFolderServiceAccount", args ?? new GetFolderServiceAccountInvokeArgs(), options.WithDefaults()); + + /// + /// Get the email address of a folder's Access Approval service account. + /// + /// Each Google Cloud folder has a unique service account used by Access Approval. + /// When using Access Approval with a + /// [custom signing key](https://cloud.google.com/cloud-provider-access-management/access-approval/docs/review-approve-access-requests-custom-keys), + /// this account needs to be granted the `cloudkms.signerVerifier` IAM role on the + /// Cloud KMS key used to sign approvals. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var serviceAccount = Gcp.AccessApproval.GetFolderServiceAccount.Invoke(new() + /// { + /// FolderId = "my-folder", + /// }); + /// + /// var iam = new Gcp.Kms.CryptoKeyIAMMember("iam", new() + /// { + /// CryptoKeyId = cryptoKey.Id, + /// Role = "roles/cloudkms.signerVerifier", + /// Member = $"serviceAccount:{serviceAccount.Apply(getFolderServiceAccountResult => getFolderServiceAccountResult.AccountEmail)}", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetFolderServiceAccountInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:accessapproval/getFolderServiceAccount:getFolderServiceAccount", args ?? new GetFolderServiceAccountInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/AccessApproval/GetOrganizationServiceAccount.cs b/sdk/dotnet/AccessApproval/GetOrganizationServiceAccount.cs index 860c1bf2c9..7ef10a6589 100644 --- a/sdk/dotnet/AccessApproval/GetOrganizationServiceAccount.cs +++ b/sdk/dotnet/AccessApproval/GetOrganizationServiceAccount.cs @@ -84,6 +84,43 @@ public static Task InvokeAsync(GetOrganizat /// public static Output Invoke(GetOrganizationServiceAccountInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:accessapproval/getOrganizationServiceAccount:getOrganizationServiceAccount", args ?? new GetOrganizationServiceAccountInvokeArgs(), options.WithDefaults()); + + /// + /// Get the email address of an organization's Access Approval service account. + /// + /// Each Google Cloud organization has a unique service account used by Access Approval. + /// When using Access Approval with a + /// [custom signing key](https://cloud.google.com/cloud-provider-access-management/access-approval/docs/review-approve-access-requests-custom-keys), + /// this account needs to be granted the `cloudkms.signerVerifier` IAM role on the + /// Cloud KMS key used to sign approvals. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var serviceAccount = Gcp.AccessApproval.GetOrganizationServiceAccount.Invoke(new() + /// { + /// OrganizationId = "my-organization", + /// }); + /// + /// var iam = new Gcp.Kms.CryptoKeyIAMMember("iam", new() + /// { + /// CryptoKeyId = cryptoKey.Id, + /// Role = "roles/cloudkms.signerVerifier", + /// Member = $"serviceAccount:{serviceAccount.Apply(getOrganizationServiceAccountResult => getOrganizationServiceAccountResult.AccountEmail)}", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetOrganizationServiceAccountInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:accessapproval/getOrganizationServiceAccount:getOrganizationServiceAccount", args ?? new GetOrganizationServiceAccountInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/AccessApproval/GetProjectServiceAccount.cs b/sdk/dotnet/AccessApproval/GetProjectServiceAccount.cs index 0da799c056..ee3460a025 100644 --- a/sdk/dotnet/AccessApproval/GetProjectServiceAccount.cs +++ b/sdk/dotnet/AccessApproval/GetProjectServiceAccount.cs @@ -84,6 +84,43 @@ public static Task InvokeAsync(GetProjectService /// public static Output Invoke(GetProjectServiceAccountInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:accessapproval/getProjectServiceAccount:getProjectServiceAccount", args ?? new GetProjectServiceAccountInvokeArgs(), options.WithDefaults()); + + /// + /// Get the email address of a project's Access Approval service account. + /// + /// Each Google Cloud project has a unique service account used by Access Approval. + /// When using Access Approval with a + /// [custom signing key](https://cloud.google.com/cloud-provider-access-management/access-approval/docs/review-approve-access-requests-custom-keys), + /// this account needs to be granted the `cloudkms.signerVerifier` IAM role on the + /// Cloud KMS key used to sign approvals. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var serviceAccount = Gcp.AccessApproval.GetProjectServiceAccount.Invoke(new() + /// { + /// ProjectId = "my-project", + /// }); + /// + /// var iam = new Gcp.Kms.CryptoKeyIAMMember("iam", new() + /// { + /// CryptoKeyId = cryptoKey.Id, + /// Role = "roles/cloudkms.signerVerifier", + /// Member = $"serviceAccount:{serviceAccount.Apply(getProjectServiceAccountResult => getProjectServiceAccountResult.AccountEmail)}", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetProjectServiceAccountInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:accessapproval/getProjectServiceAccount:getProjectServiceAccount", args ?? new GetProjectServiceAccountInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/AccessContextManager/GetAccessPolicy.cs b/sdk/dotnet/AccessContextManager/GetAccessPolicy.cs index e36508ad70..cfc13e5dd0 100644 --- a/sdk/dotnet/AccessContextManager/GetAccessPolicy.cs +++ b/sdk/dotnet/AccessContextManager/GetAccessPolicy.cs @@ -76,6 +76,39 @@ public static Task InvokeAsync(GetAccessPolicyArgs args, /// public static Output Invoke(GetAccessPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:accesscontextmanager/getAccessPolicy:getAccessPolicy", args ?? new GetAccessPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Get information about an Access Context Manager AccessPolicy. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy_org = Gcp.AccessContextManager.GetAccessPolicy.Invoke(new() + /// { + /// Parent = "organizations/1234567", + /// }); + /// + /// var policy_scoped = Gcp.AccessContextManager.GetAccessPolicy.Invoke(new() + /// { + /// Parent = "organizations/1234567", + /// Scopes = new[] + /// { + /// "projects/1234567", + /// }, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetAccessPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:accesscontextmanager/getAccessPolicy:getAccessPolicy", args ?? new GetAccessPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/AccessContextManager/GetAccessPolicyIamPolicy.cs b/sdk/dotnet/AccessContextManager/GetAccessPolicyIamPolicy.cs index c0e77807ba..477a5eb503 100644 --- a/sdk/dotnet/AccessContextManager/GetAccessPolicyIamPolicy.cs +++ b/sdk/dotnet/AccessContextManager/GetAccessPolicyIamPolicy.cs @@ -60,6 +60,31 @@ public static Task InvokeAsync(GetAccessPolicyIa /// public static Output Invoke(GetAccessPolicyIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:accesscontextmanager/getAccessPolicyIamPolicy:getAccessPolicyIamPolicy", args ?? new GetAccessPolicyIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for accesspolicy + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.AccessContextManager.GetAccessPolicyIamPolicy.Invoke(new() + /// { + /// Name = access_policy.Name, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetAccessPolicyIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:accesscontextmanager/getAccessPolicyIamPolicy:getAccessPolicyIamPolicy", args ?? new GetAccessPolicyIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Alloydb/GetLocations.cs b/sdk/dotnet/Alloydb/GetLocations.cs index 36b6222969..6c5f79eed0 100644 --- a/sdk/dotnet/Alloydb/GetLocations.cs +++ b/sdk/dotnet/Alloydb/GetLocations.cs @@ -52,6 +52,27 @@ public static Task InvokeAsync(GetLocationsArgs? args = null /// public static Output Invoke(GetLocationsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:alloydb/getLocations:getLocations", args ?? new GetLocationsInvokeArgs(), options.WithDefaults()); + + /// + /// Use this data source to get information about the available locations. For more details refer the [API docs](https://cloud.google.com/alloydb/docs/reference/rest/v1/projects.locations). + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var qa = Gcp.Alloydb.GetLocations.Invoke(); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetLocationsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:alloydb/getLocations:getLocations", args ?? new GetLocationsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Alloydb/GetSupportedDatabaseFlags.cs b/sdk/dotnet/Alloydb/GetSupportedDatabaseFlags.cs index 19ae57af6c..dc2dc03ac1 100644 --- a/sdk/dotnet/Alloydb/GetSupportedDatabaseFlags.cs +++ b/sdk/dotnet/Alloydb/GetSupportedDatabaseFlags.cs @@ -58,6 +58,30 @@ public static Task InvokeAsync(GetSupportedData /// public static Output Invoke(GetSupportedDatabaseFlagsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:alloydb/getSupportedDatabaseFlags:getSupportedDatabaseFlags", args ?? new GetSupportedDatabaseFlagsInvokeArgs(), options.WithDefaults()); + + /// + /// Use this data source to get information about the supported alloydb database flags in a location. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var qa = Gcp.Alloydb.GetSupportedDatabaseFlags.Invoke(new() + /// { + /// Location = "us-central1", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetSupportedDatabaseFlagsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:alloydb/getSupportedDatabaseFlags:getSupportedDatabaseFlags", args ?? new GetSupportedDatabaseFlagsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/ApiGateway/GetApiConfigIamPolicy.cs b/sdk/dotnet/ApiGateway/GetApiConfigIamPolicy.cs index 378154e804..3509d43493 100644 --- a/sdk/dotnet/ApiGateway/GetApiConfigIamPolicy.cs +++ b/sdk/dotnet/ApiGateway/GetApiConfigIamPolicy.cs @@ -16,6 +16,9 @@ public static Task InvokeAsync(GetApiConfigIamPolic public static Output Invoke(GetApiConfigIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:apigateway/getApiConfigIamPolicy:getApiConfigIamPolicy", args ?? new GetApiConfigIamPolicyInvokeArgs(), options.WithDefaults()); + + public static Output Invoke(GetApiConfigIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:apigateway/getApiConfigIamPolicy:getApiConfigIamPolicy", args ?? new GetApiConfigIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/ApiGateway/GetApiIamPolicy.cs b/sdk/dotnet/ApiGateway/GetApiIamPolicy.cs index c04139e99d..e4878ed8ef 100644 --- a/sdk/dotnet/ApiGateway/GetApiIamPolicy.cs +++ b/sdk/dotnet/ApiGateway/GetApiIamPolicy.cs @@ -16,6 +16,9 @@ public static Task InvokeAsync(GetApiIamPolicyArgs args, public static Output Invoke(GetApiIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:apigateway/getApiIamPolicy:getApiIamPolicy", args ?? new GetApiIamPolicyInvokeArgs(), options.WithDefaults()); + + public static Output Invoke(GetApiIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:apigateway/getApiIamPolicy:getApiIamPolicy", args ?? new GetApiIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/ApiGateway/GetGatewayIamPolicy.cs b/sdk/dotnet/ApiGateway/GetGatewayIamPolicy.cs index 9f90d1c21a..e28412664c 100644 --- a/sdk/dotnet/ApiGateway/GetGatewayIamPolicy.cs +++ b/sdk/dotnet/ApiGateway/GetGatewayIamPolicy.cs @@ -16,6 +16,9 @@ public static Task InvokeAsync(GetGatewayIamPolicyArg public static Output Invoke(GetGatewayIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:apigateway/getGatewayIamPolicy:getGatewayIamPolicy", args ?? new GetGatewayIamPolicyInvokeArgs(), options.WithDefaults()); + + public static Output Invoke(GetGatewayIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:apigateway/getGatewayIamPolicy:getGatewayIamPolicy", args ?? new GetGatewayIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Apigee/GetEnvironmentIamPolicy.cs b/sdk/dotnet/Apigee/GetEnvironmentIamPolicy.cs index f15fee30d3..171111e6e1 100644 --- a/sdk/dotnet/Apigee/GetEnvironmentIamPolicy.cs +++ b/sdk/dotnet/Apigee/GetEnvironmentIamPolicy.cs @@ -62,6 +62,32 @@ public static Task InvokeAsync(GetEnvironmentIamP /// public static Output Invoke(GetEnvironmentIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:apigee/getEnvironmentIamPolicy:getEnvironmentIamPolicy", args ?? new GetEnvironmentIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for environment + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.Apigee.GetEnvironmentIamPolicy.Invoke(new() + /// { + /// OrgId = apigeeEnvironment.OrgId, + /// EnvId = apigeeEnvironment.Name, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetEnvironmentIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:apigee/getEnvironmentIamPolicy:getEnvironmentIamPolicy", args ?? new GetEnvironmentIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/AppEngine/GetDefaultServiceAccount.cs b/sdk/dotnet/AppEngine/GetDefaultServiceAccount.cs index fc27050507..5f251082cc 100644 --- a/sdk/dotnet/AppEngine/GetDefaultServiceAccount.cs +++ b/sdk/dotnet/AppEngine/GetDefaultServiceAccount.cs @@ -60,6 +60,31 @@ public static Task InvokeAsync(GetDefaultService /// public static Output Invoke(GetDefaultServiceAccountInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:appengine/getDefaultServiceAccount:getDefaultServiceAccount", args ?? new GetDefaultServiceAccountInvokeArgs(), options.WithDefaults()); + + /// + /// Use this data source to retrieve the default App Engine service account for the specified project. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @default = Gcp.AppEngine.GetDefaultServiceAccount.Invoke(); + /// + /// return new Dictionary<string, object?> + /// { + /// ["defaultAccount"] = @default.Apply(@default => @default.Apply(getDefaultServiceAccountResult => getDefaultServiceAccountResult.Email)), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetDefaultServiceAccountInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:appengine/getDefaultServiceAccount:getDefaultServiceAccount", args ?? new GetDefaultServiceAccountInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Apphub/GetApplication.cs b/sdk/dotnet/Apphub/GetApplication.cs index 27a7ff34e7..913db8ea3d 100644 --- a/sdk/dotnet/Apphub/GetApplication.cs +++ b/sdk/dotnet/Apphub/GetApplication.cs @@ -64,6 +64,33 @@ public static Task InvokeAsync(GetApplicationArgs args, In /// public static Output Invoke(GetApplicationInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:apphub/getApplication:getApplication", args ?? new GetApplicationInvokeArgs(), options.WithDefaults()); + + /// + /// Application is a functional grouping of Services and Workloads that helps achieve a desired end-to-end business functionality. Services and Workloads are owned by the Application. + /// + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var application = Gcp.Apphub.GetApplication.Invoke(new() + /// { + /// Project = "project-id", + /// ApplicationId = "application", + /// Location = "location", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetApplicationInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:apphub/getApplication:getApplication", args ?? new GetApplicationInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Apphub/GetDiscoveredService.cs b/sdk/dotnet/Apphub/GetDiscoveredService.cs index 3abf3def0b..1ab307d095 100644 --- a/sdk/dotnet/Apphub/GetDiscoveredService.cs +++ b/sdk/dotnet/Apphub/GetDiscoveredService.cs @@ -62,6 +62,32 @@ public static Task InvokeAsync(GetDiscoveredServiceA /// public static Output Invoke(GetDiscoveredServiceInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:apphub/getDiscoveredService:getDiscoveredService", args ?? new GetDiscoveredServiceInvokeArgs(), options.WithDefaults()); + + /// + /// Get information about a discovered service from its uri. + /// + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var my_service = Gcp.Apphub.GetDiscoveredService.Invoke(new() + /// { + /// Location = "my-location", + /// ServiceUri = "my-service-uri", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetDiscoveredServiceInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:apphub/getDiscoveredService:getDiscoveredService", args ?? new GetDiscoveredServiceInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Apphub/GetDiscoveredWorkload.cs b/sdk/dotnet/Apphub/GetDiscoveredWorkload.cs index e56f77db5f..eac5e7010f 100644 --- a/sdk/dotnet/Apphub/GetDiscoveredWorkload.cs +++ b/sdk/dotnet/Apphub/GetDiscoveredWorkload.cs @@ -62,6 +62,32 @@ public static Task InvokeAsync(GetDiscoveredWorkloa /// public static Output Invoke(GetDiscoveredWorkloadInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:apphub/getDiscoveredWorkload:getDiscoveredWorkload", args ?? new GetDiscoveredWorkloadInvokeArgs(), options.WithDefaults()); + + /// + /// Get information about a discovered workload from its uri. + /// + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var my_workload = Gcp.Apphub.GetDiscoveredWorkload.Invoke(new() + /// { + /// Location = "us-central1", + /// WorkloadUri = "my-workload-uri", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetDiscoveredWorkloadInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:apphub/getDiscoveredWorkload:getDiscoveredWorkload", args ?? new GetDiscoveredWorkloadInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/ArtifactRegistry/GetDockerImage.cs b/sdk/dotnet/ArtifactRegistry/GetDockerImage.cs index b1a134f344..e87ceb003d 100644 --- a/sdk/dotnet/ArtifactRegistry/GetDockerImage.cs +++ b/sdk/dotnet/ArtifactRegistry/GetDockerImage.cs @@ -110,6 +110,56 @@ public static Task InvokeAsync(GetDockerImageArgs args, In /// public static Output Invoke(GetDockerImageInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:artifactregistry/getDockerImage:getDockerImage", args ?? new GetDockerImageInvokeArgs(), options.WithDefaults()); + + /// + /// This data source fetches information from a provided Artifact Registry repository, including the fully qualified name and URI for an image, based on a the latest version of image name and optional digest or tag. + /// + /// > **Note** + /// Requires one of the following OAuth scopes: `https://www.googleapis.com/auth/cloud-platform` or `https://www.googleapis.com/auth/cloud-platform.read-only`. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var myRepo = new Gcp.ArtifactRegistry.Repository("my_repo", new() + /// { + /// Location = "us-west1", + /// RepositoryId = "my-repository", + /// Format = "DOCKER", + /// }); + /// + /// var myImage = Gcp.ArtifactRegistry.GetDockerImage.Invoke(new() + /// { + /// Location = myRepo.Location, + /// RepositoryId = myRepo.RepositoryId, + /// ImageName = "my-image:my-tag", + /// }); + /// + /// var @default = new Gcp.CloudRunV2.Service("default", new() + /// { + /// Template = new Gcp.CloudRunV2.Inputs.ServiceTemplateArgs + /// { + /// Containers = new[] + /// { + /// new Gcp.CloudRunV2.Inputs.ServiceTemplateContainerArgs + /// { + /// Image = myImage.Apply(getDockerImageResult => getDockerImageResult.SelfLink), + /// }, + /// }, + /// }, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetDockerImageInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:artifactregistry/getDockerImage:getDockerImage", args ?? new GetDockerImageInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/ArtifactRegistry/GetLocations.cs b/sdk/dotnet/ArtifactRegistry/GetLocations.cs index a74e1f03c8..7e0dd607c8 100644 --- a/sdk/dotnet/ArtifactRegistry/GetLocations.cs +++ b/sdk/dotnet/ArtifactRegistry/GetLocations.cs @@ -124,6 +124,63 @@ public static Task InvokeAsync(GetLocationsArgs? args = null /// public static Output Invoke(GetLocationsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:artifactregistry/getLocations:getLocations", args ?? new GetLocationsInvokeArgs(), options.WithDefaults()); + + /// + /// Get Artifact Registry locations available for a project. + /// + /// To get more information about Artifact Registry, see: + /// + /// * [API documentation](https://cloud.google.com/artifact-registry/docs/reference/rest/v1/projects.locations/list) + /// * How-to Guides + /// * [Official Documentation](https://cloud.google.com/artifact-registry/docs/overview) + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var available = Gcp.ArtifactRegistry.GetLocations.Invoke(); + /// + /// }); + /// ``` + /// + /// + /// ### Multi-Regional Artifact Registry Deployment + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var available = Gcp.ArtifactRegistry.GetLocations.Invoke(); + /// + /// var repoOne = new Gcp.ArtifactRegistry.Repository("repo_one", new() + /// { + /// Location = available.Apply(getLocationsResult => getLocationsResult.Locations[0]), + /// RepositoryId = "repo-one", + /// Format = "apt", + /// }); + /// + /// var repoTwo = new Gcp.ArtifactRegistry.Repository("repo_two", new() + /// { + /// Location = available.Apply(getLocationsResult => getLocationsResult.Locations[1]), + /// RepositoryId = "repo-two", + /// Format = "apt", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetLocationsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:artifactregistry/getLocations:getLocations", args ?? new GetLocationsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/ArtifactRegistry/GetRepository.cs b/sdk/dotnet/ArtifactRegistry/GetRepository.cs index c6a64c39ad..18604268c7 100644 --- a/sdk/dotnet/ArtifactRegistry/GetRepository.cs +++ b/sdk/dotnet/ArtifactRegistry/GetRepository.cs @@ -64,6 +64,33 @@ public static Task InvokeAsync(GetRepositoryArgs args, Invo /// public static Output Invoke(GetRepositoryInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:artifactregistry/getRepository:getRepository", args ?? new GetRepositoryInvokeArgs(), options.WithDefaults()); + + /// + /// Get information about a Google Artifact Registry Repository. For more information see + /// the [official documentation](https://cloud.google.com/artifact-registry/docs/) + /// and [API](https://cloud.google.com/artifact-registry/docs/apis). + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var my_repo = Gcp.ArtifactRegistry.GetRepository.Invoke(new() + /// { + /// Location = "us-central1", + /// RepositoryId = "my-repository", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetRepositoryInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:artifactregistry/getRepository:getRepository", args ?? new GetRepositoryInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/ArtifactRegistry/GetRepositoryIamPolicy.cs b/sdk/dotnet/ArtifactRegistry/GetRepositoryIamPolicy.cs index 8110d7540c..cf665460ea 100644 --- a/sdk/dotnet/ArtifactRegistry/GetRepositoryIamPolicy.cs +++ b/sdk/dotnet/ArtifactRegistry/GetRepositoryIamPolicy.cs @@ -64,6 +64,33 @@ public static Task InvokeAsync(GetRepositoryIamPol /// public static Output Invoke(GetRepositoryIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:artifactregistry/getRepositoryIamPolicy:getRepositoryIamPolicy", args ?? new GetRepositoryIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for repository + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.ArtifactRegistry.GetRepositoryIamPolicy.Invoke(new() + /// { + /// Project = my_repo.Project, + /// Location = my_repo.Location, + /// Repository = my_repo.Name, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetRepositoryIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:artifactregistry/getRepositoryIamPolicy:getRepositoryIamPolicy", args ?? new GetRepositoryIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/BackupDisasterRecovery/GetBackup.cs b/sdk/dotnet/BackupDisasterRecovery/GetBackup.cs index a840c421aa..3fd03a88f6 100644 --- a/sdk/dotnet/BackupDisasterRecovery/GetBackup.cs +++ b/sdk/dotnet/BackupDisasterRecovery/GetBackup.cs @@ -16,6 +16,9 @@ public static Task InvokeAsync(GetBackupArgs args, InvokeOption public static Output Invoke(GetBackupInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:backupdisasterrecovery/getBackup:getBackup", args ?? new GetBackupInvokeArgs(), options.WithDefaults()); + + public static Output Invoke(GetBackupInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:backupdisasterrecovery/getBackup:getBackup", args ?? new GetBackupInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/BackupDisasterRecovery/GetBackupPlan.cs b/sdk/dotnet/BackupDisasterRecovery/GetBackupPlan.cs index 9b069da18f..8057bc92d0 100644 --- a/sdk/dotnet/BackupDisasterRecovery/GetBackupPlan.cs +++ b/sdk/dotnet/BackupDisasterRecovery/GetBackupPlan.cs @@ -16,6 +16,9 @@ public static Task InvokeAsync(GetBackupPlanArgs args, Invo public static Output Invoke(GetBackupPlanInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:backupdisasterrecovery/getBackupPlan:getBackupPlan", args ?? new GetBackupPlanInvokeArgs(), options.WithDefaults()); + + public static Output Invoke(GetBackupPlanInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:backupdisasterrecovery/getBackupPlan:getBackupPlan", args ?? new GetBackupPlanInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/BackupDisasterRecovery/GetBackupPlanAssociation.cs b/sdk/dotnet/BackupDisasterRecovery/GetBackupPlanAssociation.cs index 63b98206ee..a0eec53332 100644 --- a/sdk/dotnet/BackupDisasterRecovery/GetBackupPlanAssociation.cs +++ b/sdk/dotnet/BackupDisasterRecovery/GetBackupPlanAssociation.cs @@ -56,6 +56,29 @@ public static Task InvokeAsync(GetBackupPlanAsso /// public static Output Invoke(GetBackupPlanAssociationInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:backupdisasterrecovery/getBackupPlanAssociation:getBackupPlanAssociation", args ?? new GetBackupPlanAssociationInvokeArgs(), options.WithDefaults()); + + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var my_backupplan_association = Gcp.BackupDisasterRecovery.GetBackupPlanAssociation.Invoke(new() + /// { + /// Location = "us-central1", + /// BackupPlanAssociationId = "bpa-id", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetBackupPlanAssociationInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:backupdisasterrecovery/getBackupPlanAssociation:getBackupPlanAssociation", args ?? new GetBackupPlanAssociationInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/BackupDisasterRecovery/GetBackupVault.cs b/sdk/dotnet/BackupDisasterRecovery/GetBackupVault.cs index 2f874a8c75..855008acb1 100644 --- a/sdk/dotnet/BackupDisasterRecovery/GetBackupVault.cs +++ b/sdk/dotnet/BackupDisasterRecovery/GetBackupVault.cs @@ -60,6 +60,31 @@ public static Task InvokeAsync(GetBackupVaultArgs args, In /// public static Output Invoke(GetBackupVaultInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:backupdisasterrecovery/getBackupVault:getBackupVault", args ?? new GetBackupVaultInvokeArgs(), options.WithDefaults()); + + /// + /// A Backup and DRBackupVault. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var my_backup_vault = Gcp.BackupDisasterRecovery.GetBackupVault.Invoke(new() + /// { + /// Location = "us-central1", + /// BackupVaultId = "bv-1", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetBackupVaultInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:backupdisasterrecovery/getBackupVault:getBackupVault", args ?? new GetBackupVaultInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/BackupDisasterRecovery/GetDataSource.cs b/sdk/dotnet/BackupDisasterRecovery/GetDataSource.cs index 67c6b5e7fc..8b0cfe7dbd 100644 --- a/sdk/dotnet/BackupDisasterRecovery/GetDataSource.cs +++ b/sdk/dotnet/BackupDisasterRecovery/GetDataSource.cs @@ -16,6 +16,9 @@ public static Task InvokeAsync(GetDataSourceArgs args, Invo public static Output Invoke(GetDataSourceInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:backupdisasterrecovery/getDataSource:getDataSource", args ?? new GetDataSourceInvokeArgs(), options.WithDefaults()); + + public static Output Invoke(GetDataSourceInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:backupdisasterrecovery/getDataSource:getDataSource", args ?? new GetDataSourceInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/BackupDisasterRecovery/GetManagementServer.cs b/sdk/dotnet/BackupDisasterRecovery/GetManagementServer.cs index 0922ad0cb1..144ce7d855 100644 --- a/sdk/dotnet/BackupDisasterRecovery/GetManagementServer.cs +++ b/sdk/dotnet/BackupDisasterRecovery/GetManagementServer.cs @@ -54,6 +54,28 @@ public static Task InvokeAsync(GetManagementServerArg /// public static Output Invoke(GetManagementServerInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:backupdisasterrecovery/getManagementServer:getManagementServer", args ?? new GetManagementServerInvokeArgs(), options.WithDefaults()); + + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var my_backup_dr_management_server = Gcp.BackupDisasterRecovery.GetManagementServer.Invoke(new() + /// { + /// Location = "us-central1", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetManagementServerInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:backupdisasterrecovery/getManagementServer:getManagementServer", args ?? new GetManagementServerInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Beyondcorp/GetAppConnection.cs b/sdk/dotnet/Beyondcorp/GetAppConnection.cs index 7e773b0cf3..1c8a22d1d0 100644 --- a/sdk/dotnet/Beyondcorp/GetAppConnection.cs +++ b/sdk/dotnet/Beyondcorp/GetAppConnection.cs @@ -58,6 +58,30 @@ public static Task InvokeAsync(GetAppConnectionArgs args /// public static Output Invoke(GetAppConnectionInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:beyondcorp/getAppConnection:getAppConnection", args ?? new GetAppConnectionInvokeArgs(), options.WithDefaults()); + + /// + /// Get information about a Google BeyondCorp App Connection. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var my_beyondcorp_app_connection = Gcp.Beyondcorp.GetAppConnection.Invoke(new() + /// { + /// Name = "my-beyondcorp-app-connection", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetAppConnectionInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:beyondcorp/getAppConnection:getAppConnection", args ?? new GetAppConnectionInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Beyondcorp/GetAppConnector.cs b/sdk/dotnet/Beyondcorp/GetAppConnector.cs index c8ee63a6ab..1401d79638 100644 --- a/sdk/dotnet/Beyondcorp/GetAppConnector.cs +++ b/sdk/dotnet/Beyondcorp/GetAppConnector.cs @@ -58,6 +58,30 @@ public static Task InvokeAsync(GetAppConnectorArgs args, /// public static Output Invoke(GetAppConnectorInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:beyondcorp/getAppConnector:getAppConnector", args ?? new GetAppConnectorInvokeArgs(), options.WithDefaults()); + + /// + /// Get information about a Google BeyondCorp App Connector. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var my_beyondcorp_app_connector = Gcp.Beyondcorp.GetAppConnector.Invoke(new() + /// { + /// Name = "my-beyondcorp-app-connector", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetAppConnectorInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:beyondcorp/getAppConnector:getAppConnector", args ?? new GetAppConnectorInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Beyondcorp/GetAppGateway.cs b/sdk/dotnet/Beyondcorp/GetAppGateway.cs index a4385b2a48..27fcb0dd2d 100644 --- a/sdk/dotnet/Beyondcorp/GetAppGateway.cs +++ b/sdk/dotnet/Beyondcorp/GetAppGateway.cs @@ -58,6 +58,30 @@ public static Task InvokeAsync(GetAppGatewayArgs args, Invo /// public static Output Invoke(GetAppGatewayInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:beyondcorp/getAppGateway:getAppGateway", args ?? new GetAppGatewayInvokeArgs(), options.WithDefaults()); + + /// + /// Get information about a Google BeyondCorp App Gateway. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var my_beyondcorp_app_gateway = Gcp.Beyondcorp.GetAppGateway.Invoke(new() + /// { + /// Name = "my-beyondcorp-app-gateway", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetAppGatewayInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:beyondcorp/getAppGateway:getAppGateway", args ?? new GetAppGatewayInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/BigQuery/GetConnectionIamPolicy.cs b/sdk/dotnet/BigQuery/GetConnectionIamPolicy.cs index 7ad7a4d235..07eef381ea 100644 --- a/sdk/dotnet/BigQuery/GetConnectionIamPolicy.cs +++ b/sdk/dotnet/BigQuery/GetConnectionIamPolicy.cs @@ -64,6 +64,33 @@ public static Task InvokeAsync(GetConnectionIamPol /// public static Output Invoke(GetConnectionIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:bigquery/getConnectionIamPolicy:getConnectionIamPolicy", args ?? new GetConnectionIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for connection + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.BigQuery.GetConnectionIamPolicy.Invoke(new() + /// { + /// Project = connection.Project, + /// Location = connection.Location, + /// ConnectionId = connection.ConnectionId, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetConnectionIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:bigquery/getConnectionIamPolicy:getConnectionIamPolicy", args ?? new GetConnectionIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/BigQuery/GetDataset.cs b/sdk/dotnet/BigQuery/GetDataset.cs index 84f6af6008..206b1a3f26 100644 --- a/sdk/dotnet/BigQuery/GetDataset.cs +++ b/sdk/dotnet/BigQuery/GetDataset.cs @@ -64,6 +64,33 @@ public static Task InvokeAsync(GetDatasetArgs args, InvokeOpti /// public static Output Invoke(GetDatasetInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:bigquery/getDataset:getDataset", args ?? new GetDatasetInvokeArgs(), options.WithDefaults()); + + /// + /// Get information about a BigQuery dataset. For more information see + /// the [official documentation](https://cloud.google.com/bigquery/docs) + /// and [API](https://cloud.google.com/bigquery/docs/reference/rest/v2/datasets). + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var dataset = Gcp.BigQuery.GetDataset.Invoke(new() + /// { + /// DatasetId = "my-bq-dataset", + /// Project = "my-project", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetDatasetInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:bigquery/getDataset:getDataset", args ?? new GetDatasetInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/BigQuery/GetDatasetIamPolicy.cs b/sdk/dotnet/BigQuery/GetDatasetIamPolicy.cs index c320c4fdc7..8b37e637eb 100644 --- a/sdk/dotnet/BigQuery/GetDatasetIamPolicy.cs +++ b/sdk/dotnet/BigQuery/GetDatasetIamPolicy.cs @@ -58,6 +58,30 @@ public static Task InvokeAsync(GetDatasetIamPolicyArg /// public static Output Invoke(GetDatasetIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:bigquery/getDatasetIamPolicy:getDatasetIamPolicy", args ?? new GetDatasetIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for a BigQuery dataset. + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.BigQuery.GetDatasetIamPolicy.Invoke(new() + /// { + /// DatasetId = dataset.DatasetId, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetDatasetIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:bigquery/getDatasetIamPolicy:getDatasetIamPolicy", args ?? new GetDatasetIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/BigQuery/GetDefaultServiceAccount.cs b/sdk/dotnet/BigQuery/GetDefaultServiceAccount.cs index 03c9e0217b..33c3f00406 100644 --- a/sdk/dotnet/BigQuery/GetDefaultServiceAccount.cs +++ b/sdk/dotnet/BigQuery/GetDefaultServiceAccount.cs @@ -82,6 +82,42 @@ public static Task InvokeAsync(GetDefaultService /// public static Output Invoke(GetDefaultServiceAccountInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:bigquery/getDefaultServiceAccount:getDefaultServiceAccount", args ?? new GetDefaultServiceAccountInvokeArgs(), options.WithDefaults()); + + /// + /// Get the email address of a project's unique BigQuery service account. + /// + /// Each Google Cloud project has a unique service account used by BigQuery. When using + /// BigQuery with [customer-managed encryption keys](https://cloud.google.com/bigquery/docs/customer-managed-encryption), + /// this account needs to be granted the + /// `cloudkms.cryptoKeyEncrypterDecrypter` IAM role on the customer-managed Cloud KMS key used to protect the data. + /// + /// For more information see + /// [the API reference](https://cloud.google.com/bigquery/docs/reference/rest/v2/projects/getServiceAccount). + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var bqSa = Gcp.BigQuery.GetDefaultServiceAccount.Invoke(); + /// + /// var keySaUser = new Gcp.Kms.CryptoKeyIAMMember("key_sa_user", new() + /// { + /// CryptoKeyId = key.Id, + /// Role = "roles/cloudkms.cryptoKeyEncrypterDecrypter", + /// Member = $"serviceAccount:{bqSa.Apply(getDefaultServiceAccountResult => getDefaultServiceAccountResult.Email)}", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetDefaultServiceAccountInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:bigquery/getDefaultServiceAccount:getDefaultServiceAccount", args ?? new GetDefaultServiceAccountInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/BigQuery/GetTableIamPolicy.cs b/sdk/dotnet/BigQuery/GetTableIamPolicy.cs index cab69477b7..57064c8f20 100644 --- a/sdk/dotnet/BigQuery/GetTableIamPolicy.cs +++ b/sdk/dotnet/BigQuery/GetTableIamPolicy.cs @@ -64,6 +64,33 @@ public static Task InvokeAsync(GetTableIamPolicyArgs ar /// public static Output Invoke(GetTableIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:bigquery/getTableIamPolicy:getTableIamPolicy", args ?? new GetTableIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for table + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.BigQuery.GetTableIamPolicy.Invoke(new() + /// { + /// Project = test.Project, + /// DatasetId = test.DatasetId, + /// TableId = test.TableId, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetTableIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:bigquery/getTableIamPolicy:getTableIamPolicy", args ?? new GetTableIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/BigQuery/GetTables.cs b/sdk/dotnet/BigQuery/GetTables.cs index ce93e3a911..0524c3be46 100644 --- a/sdk/dotnet/BigQuery/GetTables.cs +++ b/sdk/dotnet/BigQuery/GetTables.cs @@ -64,6 +64,33 @@ public static Task InvokeAsync(GetTablesArgs args, InvokeOption /// public static Output Invoke(GetTablesInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:bigquery/getTables:getTables", args ?? new GetTablesInvokeArgs(), options.WithDefaults()); + + /// + /// Get a list of tables in a BigQuery dataset. For more information see + /// the [official documentation](https://cloud.google.com/bigquery/docs) + /// and [API](https://cloud.google.com/bigquery/docs/reference/rest/v2/tables). + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var tables = Gcp.BigQuery.GetTables.Invoke(new() + /// { + /// DatasetId = "my-bq-dataset", + /// Project = "my-project", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetTablesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:bigquery/getTables:getTables", args ?? new GetTablesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/BigQueryAnalyticsHub/GetDataExchangeIamPolicy.cs b/sdk/dotnet/BigQueryAnalyticsHub/GetDataExchangeIamPolicy.cs index b5a560c111..dda2eb4052 100644 --- a/sdk/dotnet/BigQueryAnalyticsHub/GetDataExchangeIamPolicy.cs +++ b/sdk/dotnet/BigQueryAnalyticsHub/GetDataExchangeIamPolicy.cs @@ -64,6 +64,33 @@ public static Task InvokeAsync(GetDataExchangeIa /// public static Output Invoke(GetDataExchangeIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:bigqueryanalyticshub/getDataExchangeIamPolicy:getDataExchangeIamPolicy", args ?? new GetDataExchangeIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for dataexchange + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.BigQueryAnalyticsHub.GetDataExchangeIamPolicy.Invoke(new() + /// { + /// Project = dataExchange.Project, + /// Location = dataExchange.Location, + /// DataExchangeId = dataExchange.DataExchangeId, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetDataExchangeIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:bigqueryanalyticshub/getDataExchangeIamPolicy:getDataExchangeIamPolicy", args ?? new GetDataExchangeIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/BigQueryAnalyticsHub/GetListingIamPolicy.cs b/sdk/dotnet/BigQueryAnalyticsHub/GetListingIamPolicy.cs index 24bdd574e2..d86f49ffee 100644 --- a/sdk/dotnet/BigQueryAnalyticsHub/GetListingIamPolicy.cs +++ b/sdk/dotnet/BigQueryAnalyticsHub/GetListingIamPolicy.cs @@ -66,6 +66,34 @@ public static Task InvokeAsync(GetListingIamPolicyArg /// public static Output Invoke(GetListingIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:bigqueryanalyticshub/getListingIamPolicy:getListingIamPolicy", args ?? new GetListingIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for listing + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.BigQueryAnalyticsHub.GetListingIamPolicy.Invoke(new() + /// { + /// Project = listing.Project, + /// Location = listing.Location, + /// DataExchangeId = listing.DataExchangeId, + /// ListingId = listing.ListingId, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetListingIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:bigqueryanalyticshub/getListingIamPolicy:getListingIamPolicy", args ?? new GetListingIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/BigQueryDataPolicy/GetIamPolicy.cs b/sdk/dotnet/BigQueryDataPolicy/GetIamPolicy.cs index d60fae3697..9740c03c61 100644 --- a/sdk/dotnet/BigQueryDataPolicy/GetIamPolicy.cs +++ b/sdk/dotnet/BigQueryDataPolicy/GetIamPolicy.cs @@ -64,6 +64,33 @@ public static Task InvokeAsync(GetIamPolicyArgs args, Invoke /// public static Output Invoke(GetIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:bigquerydatapolicy/getIamPolicy:getIamPolicy", args ?? new GetIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for datapolicy + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.BigQueryDataPolicy.GetIamPolicy.Invoke(new() + /// { + /// Project = dataPolicy.Project, + /// Location = dataPolicy.Location, + /// DataPolicyId = dataPolicy.DataPolicyId, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:bigquerydatapolicy/getIamPolicy:getIamPolicy", args ?? new GetIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/BigTable/GetInstanceIamPolicy.cs b/sdk/dotnet/BigTable/GetInstanceIamPolicy.cs index 34a6533176..04a2f9fa8b 100644 --- a/sdk/dotnet/BigTable/GetInstanceIamPolicy.cs +++ b/sdk/dotnet/BigTable/GetInstanceIamPolicy.cs @@ -58,6 +58,30 @@ public static Task InvokeAsync(GetInstanceIamPolicyA /// public static Output Invoke(GetInstanceIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:bigtable/getInstanceIamPolicy:getInstanceIamPolicy", args ?? new GetInstanceIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for a Bigtable instance. + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.BigTable.GetInstanceIamPolicy.Invoke(new() + /// { + /// Instance = instance.Name, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetInstanceIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:bigtable/getInstanceIamPolicy:getInstanceIamPolicy", args ?? new GetInstanceIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/BigTable/GetTableIamPolicy.cs b/sdk/dotnet/BigTable/GetTableIamPolicy.cs index 5f503af85d..c71b84d3c0 100644 --- a/sdk/dotnet/BigTable/GetTableIamPolicy.cs +++ b/sdk/dotnet/BigTable/GetTableIamPolicy.cs @@ -60,6 +60,31 @@ public static Task InvokeAsync(GetTableIamPolicyArgs ar /// public static Output Invoke(GetTableIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:bigtable/getTableIamPolicy:getTableIamPolicy", args ?? new GetTableIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for a Bigtable Table. + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.BigTable.GetTableIamPolicy.Invoke(new() + /// { + /// Instance = instance.Name, + /// Table = table.Name, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetTableIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:bigtable/getTableIamPolicy:getTableIamPolicy", args ?? new GetTableIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Billing/GetAccountIamPolicy.cs b/sdk/dotnet/Billing/GetAccountIamPolicy.cs index bbfe04cf3c..96e23c4298 100644 --- a/sdk/dotnet/Billing/GetAccountIamPolicy.cs +++ b/sdk/dotnet/Billing/GetAccountIamPolicy.cs @@ -58,6 +58,30 @@ public static Task InvokeAsync(GetAccountIamPolicyArg /// public static Output Invoke(GetAccountIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:billing/getAccountIamPolicy:getAccountIamPolicy", args ?? new GetAccountIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for a Billing Account. + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.Billing.GetAccountIamPolicy.Invoke(new() + /// { + /// BillingAccountId = "MEEP-MEEP-MEEP-MEEP-MEEP", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetAccountIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:billing/getAccountIamPolicy:getAccountIamPolicy", args ?? new GetAccountIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/BinaryAuthorization/GetAttestorIamPolicy.cs b/sdk/dotnet/BinaryAuthorization/GetAttestorIamPolicy.cs index 467fd3302c..32adfa1d3f 100644 --- a/sdk/dotnet/BinaryAuthorization/GetAttestorIamPolicy.cs +++ b/sdk/dotnet/BinaryAuthorization/GetAttestorIamPolicy.cs @@ -62,6 +62,32 @@ public static Task InvokeAsync(GetAttestorIamPolicyA /// public static Output Invoke(GetAttestorIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:binaryauthorization/getAttestorIamPolicy:getAttestorIamPolicy", args ?? new GetAttestorIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for attestor + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.BinaryAuthorization.GetAttestorIamPolicy.Invoke(new() + /// { + /// Project = attestor.Project, + /// Attestor = attestor.Name, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetAttestorIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:binaryauthorization/getAttestorIamPolicy:getAttestorIamPolicy", args ?? new GetAttestorIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/CertificateAuthority/GetAuthority.cs b/sdk/dotnet/CertificateAuthority/GetAuthority.cs index c54dbb15c7..b59bd796ae 100644 --- a/sdk/dotnet/CertificateAuthority/GetAuthority.cs +++ b/sdk/dotnet/CertificateAuthority/GetAuthority.cs @@ -70,6 +70,36 @@ public static Task InvokeAsync(GetAuthorityArgs? args = null /// public static Output Invoke(GetAuthorityInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:certificateauthority/getAuthority:getAuthority", args ?? new GetAuthorityInvokeArgs(), options.WithDefaults()); + + /// + /// Get info about a Google CAS Certificate Authority. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @default = Gcp.CertificateAuthority.GetAuthority.Invoke(new() + /// { + /// Location = "us-west1", + /// Pool = "pool-name", + /// CertificateAuthorityId = "ca-id", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["csr"] = @default.Apply(@default => @default.Apply(getAuthorityResult => getAuthorityResult.PemCsr)), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetAuthorityInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:certificateauthority/getAuthority:getAuthority", args ?? new GetAuthorityInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/CertificateAuthority/GetCaPoolIamPolicy.cs b/sdk/dotnet/CertificateAuthority/GetCaPoolIamPolicy.cs index 754befee33..8c0c44c338 100644 --- a/sdk/dotnet/CertificateAuthority/GetCaPoolIamPolicy.cs +++ b/sdk/dotnet/CertificateAuthority/GetCaPoolIamPolicy.cs @@ -60,6 +60,31 @@ public static Task InvokeAsync(GetCaPoolIamPolicyArgs /// public static Output Invoke(GetCaPoolIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:certificateauthority/getCaPoolIamPolicy:getCaPoolIamPolicy", args ?? new GetCaPoolIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for capool + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.CertificateAuthority.GetCaPoolIamPolicy.Invoke(new() + /// { + /// CaPool = @default.Id, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetCaPoolIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:certificateauthority/getCaPoolIamPolicy:getCaPoolIamPolicy", args ?? new GetCaPoolIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/CertificateAuthority/GetCertificateTemplateIamPolicy.cs b/sdk/dotnet/CertificateAuthority/GetCertificateTemplateIamPolicy.cs index f3e879283d..0082876a4a 100644 --- a/sdk/dotnet/CertificateAuthority/GetCertificateTemplateIamPolicy.cs +++ b/sdk/dotnet/CertificateAuthority/GetCertificateTemplateIamPolicy.cs @@ -60,6 +60,31 @@ public static Task InvokeAsync(GetCertifi /// public static Output Invoke(GetCertificateTemplateIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:certificateauthority/getCertificateTemplateIamPolicy:getCertificateTemplateIamPolicy", args ?? new GetCertificateTemplateIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for certificatetemplate + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.CertificateAuthority.GetCertificateTemplateIamPolicy.Invoke(new() + /// { + /// CertificateTemplate = @default.Id, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetCertificateTemplateIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:certificateauthority/getCertificateTemplateIamPolicy:getCertificateTemplateIamPolicy", args ?? new GetCertificateTemplateIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/CertificateManager/GetCertificateMap.cs b/sdk/dotnet/CertificateManager/GetCertificateMap.cs index 75c1b0612a..e899b5272f 100644 --- a/sdk/dotnet/CertificateManager/GetCertificateMap.cs +++ b/sdk/dotnet/CertificateManager/GetCertificateMap.cs @@ -58,6 +58,30 @@ public static Task InvokeAsync(GetCertificateMapArgs ar /// public static Output Invoke(GetCertificateMapInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:certificatemanager/getCertificateMap:getCertificateMap", args ?? new GetCertificateMapInvokeArgs(), options.WithDefaults()); + + /// + /// Get info about a Google Certificate Manager Certificate Map resource. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @default = Gcp.CertificateManager.GetCertificateMap.Invoke(new() + /// { + /// Name = "cert-map", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetCertificateMapInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:certificatemanager/getCertificateMap:getCertificateMap", args ?? new GetCertificateMapInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/CertificateManager/GetCertificates.cs b/sdk/dotnet/CertificateManager/GetCertificates.cs index 0eea79a5a7..a2ffce7bfe 100644 --- a/sdk/dotnet/CertificateManager/GetCertificates.cs +++ b/sdk/dotnet/CertificateManager/GetCertificates.cs @@ -88,6 +88,45 @@ public static Task InvokeAsync(GetCertificatesArgs? args /// public static Output Invoke(GetCertificatesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:certificatemanager/getCertificates:getCertificates", args ?? new GetCertificatesInvokeArgs(), options.WithDefaults()); + + /// + /// List all certificates within Google Certificate Manager for a given project, region or filter. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @default = Gcp.CertificateManager.GetCertificates.Invoke(); + /// + /// }); + /// ``` + /// + /// ### With A Filter + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @default = Gcp.CertificateManager.GetCertificates.Invoke(new() + /// { + /// Filter = "name:projects/PROJECT_ID/locations/REGION/certificates/certificate-name-*", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetCertificatesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:certificatemanager/getCertificates:getCertificates", args ?? new GetCertificatesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/CloudAsset/GetResourcesSearchAll.cs b/sdk/dotnet/CloudAsset/GetResourcesSearchAll.cs index 84c3df38c8..80c90002e3 100644 --- a/sdk/dotnet/CloudAsset/GetResourcesSearchAll.cs +++ b/sdk/dotnet/CloudAsset/GetResourcesSearchAll.cs @@ -156,6 +156,79 @@ public static Task InvokeAsync(GetResourcesSearchAl /// public static Output Invoke(GetResourcesSearchAllInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:cloudasset/getResourcesSearchAll:getResourcesSearchAll", args ?? new GetResourcesSearchAllInvokeArgs(), options.WithDefaults()); + + /// + /// ## Example Usage + /// + /// ### Searching For All Projects In An Org + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var projects = Gcp.CloudAsset.GetResourcesSearchAll.Invoke(new() + /// { + /// Scope = "organizations/0123456789", + /// AssetTypes = new[] + /// { + /// "cloudresourcemanager.googleapis.com/Project", + /// }, + /// }); + /// + /// }); + /// ``` + /// + /// ### Searching For All Projects With CloudBuild API Enabled + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var cloudBuildProjects = Gcp.CloudAsset.GetResourcesSearchAll.Invoke(new() + /// { + /// Scope = "organizations/0123456789", + /// AssetTypes = new[] + /// { + /// "serviceusage.googleapis.com/Service", + /// }, + /// Query = "displayName:cloudbuild.googleapis.com AND state:ENABLED", + /// }); + /// + /// }); + /// ``` + /// + /// ### Searching For All Service Accounts In A Project + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var projectServiceAccounts = Gcp.CloudAsset.GetResourcesSearchAll.Invoke(new() + /// { + /// Scope = "projects/my-project-id", + /// AssetTypes = new[] + /// { + /// "iam.googleapis.com/ServiceAccount", + /// }, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetResourcesSearchAllInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:cloudasset/getResourcesSearchAll:getResourcesSearchAll", args ?? new GetResourcesSearchAllInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/CloudAsset/GetSearchAllResources.cs b/sdk/dotnet/CloudAsset/GetSearchAllResources.cs index 958111c09c..d7b2e3e153 100644 --- a/sdk/dotnet/CloudAsset/GetSearchAllResources.cs +++ b/sdk/dotnet/CloudAsset/GetSearchAllResources.cs @@ -164,6 +164,83 @@ public static Task InvokeAsync(GetSearchAllResource /// public static Output Invoke(GetSearchAllResourcesInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:cloudasset/getSearchAllResources:getSearchAllResources", args ?? new GetSearchAllResourcesInvokeArgs(), options.WithDefaults()); + + /// + /// Searches all Google Cloud resources within the specified scope, such as a project, folder, or organization. See the + /// [REST API](https://cloud.google.com/asset-inventory/docs/reference/rest/v1/TopLevel/searchAllResources) + /// for more details. + /// + /// ## Example Usage + /// + /// ### Searching For All Projects In An Org + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var projects = Gcp.CloudAsset.GetSearchAllResources.Invoke(new() + /// { + /// Scope = "organizations/0123456789", + /// AssetTypes = new[] + /// { + /// "cloudresourcemanager.googleapis.com/Project", + /// }, + /// }); + /// + /// }); + /// ``` + /// + /// ### Searching For All Projects With CloudBuild API Enabled + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var cloudBuildProjects = Gcp.CloudAsset.GetSearchAllResources.Invoke(new() + /// { + /// Scope = "organizations/0123456789", + /// AssetTypes = new[] + /// { + /// "serviceusage.googleapis.com/Service", + /// }, + /// Query = "displayName:cloudbuild.googleapis.com AND state:ENABLED", + /// }); + /// + /// }); + /// ``` + /// + /// ### Searching For All Service Accounts In A Project + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var projectServiceAccounts = Gcp.CloudAsset.GetSearchAllResources.Invoke(new() + /// { + /// Scope = "projects/my-project-id", + /// AssetTypes = new[] + /// { + /// "iam.googleapis.com/ServiceAccount", + /// }, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetSearchAllResourcesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:cloudasset/getSearchAllResources:getSearchAllResources", args ?? new GetSearchAllResourcesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/CloudBuild/GetTrigger.cs b/sdk/dotnet/CloudBuild/GetTrigger.cs index 05e3a96a8f..8a31014740 100644 --- a/sdk/dotnet/CloudBuild/GetTrigger.cs +++ b/sdk/dotnet/CloudBuild/GetTrigger.cs @@ -70,6 +70,36 @@ public static Task InvokeAsync(GetTriggerArgs args, InvokeOpti /// public static Output Invoke(GetTriggerInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:cloudbuild/getTrigger:getTrigger", args ?? new GetTriggerInvokeArgs(), options.WithDefaults()); + + /// + /// To get more information about Cloudbuild Trigger, see: + /// + /// * [API documentation](https://cloud.google.com/build/docs/api/reference/rest/v1/projects.triggers) + /// * How-to Guides + /// * [Official Documentation](https://cloud.google.com/build/docs/automating-builds/create-manage-triggers) + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var name = Gcp.CloudBuild.GetTrigger.Invoke(new() + /// { + /// Project = "your-project-id", + /// TriggerId = filename_trigger.TriggerId, + /// Location = "location of trigger build", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetTriggerInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:cloudbuild/getTrigger:getTrigger", args ?? new GetTriggerInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/CloudBuildV2/GetConnectionIamPolicy.cs b/sdk/dotnet/CloudBuildV2/GetConnectionIamPolicy.cs index 1927d30978..3c10b9ffdd 100644 --- a/sdk/dotnet/CloudBuildV2/GetConnectionIamPolicy.cs +++ b/sdk/dotnet/CloudBuildV2/GetConnectionIamPolicy.cs @@ -64,6 +64,33 @@ public static Task InvokeAsync(GetConnectionIamPol /// public static Output Invoke(GetConnectionIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:cloudbuildv2/getConnectionIamPolicy:getConnectionIamPolicy", args ?? new GetConnectionIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for connection + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.CloudBuildV2.GetConnectionIamPolicy.Invoke(new() + /// { + /// Project = my_connection.Project, + /// Location = my_connection.Location, + /// Name = my_connection.Name, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetConnectionIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:cloudbuildv2/getConnectionIamPolicy:getConnectionIamPolicy", args ?? new GetConnectionIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/CloudDeploy/GetCustomTargetTypeIamPolicy.cs b/sdk/dotnet/CloudDeploy/GetCustomTargetTypeIamPolicy.cs index 4e67f390e2..7cc826209d 100644 --- a/sdk/dotnet/CloudDeploy/GetCustomTargetTypeIamPolicy.cs +++ b/sdk/dotnet/CloudDeploy/GetCustomTargetTypeIamPolicy.cs @@ -64,6 +64,33 @@ public static Task InvokeAsync(GetCustomTarg /// public static Output Invoke(GetCustomTargetTypeIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:clouddeploy/getCustomTargetTypeIamPolicy:getCustomTargetTypeIamPolicy", args ?? new GetCustomTargetTypeIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for customtargettype + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.CloudDeploy.GetCustomTargetTypeIamPolicy.Invoke(new() + /// { + /// Project = custom_target_type.Project, + /// Location = custom_target_type.Location, + /// Name = custom_target_type.Name, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetCustomTargetTypeIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:clouddeploy/getCustomTargetTypeIamPolicy:getCustomTargetTypeIamPolicy", args ?? new GetCustomTargetTypeIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/CloudDeploy/GetDeliveryPipelineIamPolicy.cs b/sdk/dotnet/CloudDeploy/GetDeliveryPipelineIamPolicy.cs index 4a3fd96de8..672aa26e85 100644 --- a/sdk/dotnet/CloudDeploy/GetDeliveryPipelineIamPolicy.cs +++ b/sdk/dotnet/CloudDeploy/GetDeliveryPipelineIamPolicy.cs @@ -64,6 +64,33 @@ public static Task InvokeAsync(GetDeliveryPi /// public static Output Invoke(GetDeliveryPipelineIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:clouddeploy/getDeliveryPipelineIamPolicy:getDeliveryPipelineIamPolicy", args ?? new GetDeliveryPipelineIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for deliverypipeline + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.CloudDeploy.GetDeliveryPipelineIamPolicy.Invoke(new() + /// { + /// Project = @default.Project, + /// Location = @default.Location, + /// Name = @default.Name, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetDeliveryPipelineIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:clouddeploy/getDeliveryPipelineIamPolicy:getDeliveryPipelineIamPolicy", args ?? new GetDeliveryPipelineIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/CloudDeploy/GetTargetIamPolicy.cs b/sdk/dotnet/CloudDeploy/GetTargetIamPolicy.cs index 140468b38b..71df0b0372 100644 --- a/sdk/dotnet/CloudDeploy/GetTargetIamPolicy.cs +++ b/sdk/dotnet/CloudDeploy/GetTargetIamPolicy.cs @@ -64,6 +64,33 @@ public static Task InvokeAsync(GetTargetIamPolicyArgs /// public static Output Invoke(GetTargetIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:clouddeploy/getTargetIamPolicy:getTargetIamPolicy", args ?? new GetTargetIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for target + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.CloudDeploy.GetTargetIamPolicy.Invoke(new() + /// { + /// Project = @default.Project, + /// Location = @default.Location, + /// Name = @default.Name, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetTargetIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:clouddeploy/getTargetIamPolicy:getTargetIamPolicy", args ?? new GetTargetIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/CloudFunctions/GetFunction.cs b/sdk/dotnet/CloudFunctions/GetFunction.cs index d7d5b11262..1d4992d385 100644 --- a/sdk/dotnet/CloudFunctions/GetFunction.cs +++ b/sdk/dotnet/CloudFunctions/GetFunction.cs @@ -62,6 +62,32 @@ public static Task InvokeAsync(GetFunctionArgs args, InvokeOp /// public static Output Invoke(GetFunctionInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:cloudfunctions/getFunction:getFunction", args ?? new GetFunctionInvokeArgs(), options.WithDefaults()); + + /// + /// Get information about a Google Cloud Function. For more information see + /// the [official documentation](https://cloud.google.com/functions/docs/) + /// and [API](https://cloud.google.com/functions/docs/apis). + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var my_function = Gcp.CloudFunctions.GetFunction.Invoke(new() + /// { + /// Name = "function", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetFunctionInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:cloudfunctions/getFunction:getFunction", args ?? new GetFunctionInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/CloudFunctions/GetFunctionIamPolicy.cs b/sdk/dotnet/CloudFunctions/GetFunctionIamPolicy.cs index bba63b3a42..3ba690674b 100644 --- a/sdk/dotnet/CloudFunctions/GetFunctionIamPolicy.cs +++ b/sdk/dotnet/CloudFunctions/GetFunctionIamPolicy.cs @@ -64,6 +64,33 @@ public static Task InvokeAsync(GetFunctionIamPolicyA /// public static Output Invoke(GetFunctionIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:cloudfunctions/getFunctionIamPolicy:getFunctionIamPolicy", args ?? new GetFunctionIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for cloudfunction + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.CloudFunctions.GetFunctionIamPolicy.Invoke(new() + /// { + /// Project = function.Project, + /// Region = function.Region, + /// CloudFunction = function.Name, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetFunctionIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:cloudfunctions/getFunctionIamPolicy:getFunctionIamPolicy", args ?? new GetFunctionIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/CloudFunctionsV2/GetFunction.cs b/sdk/dotnet/CloudFunctionsV2/GetFunction.cs index 2f97e03d37..e362688c8b 100644 --- a/sdk/dotnet/CloudFunctionsV2/GetFunction.cs +++ b/sdk/dotnet/CloudFunctionsV2/GetFunction.cs @@ -64,6 +64,33 @@ public static Task InvokeAsync(GetFunctionArgs args, InvokeOp /// public static Output Invoke(GetFunctionInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:cloudfunctionsv2/getFunction:getFunction", args ?? new GetFunctionInvokeArgs(), options.WithDefaults()); + + /// + /// Get information about a Google Cloud Function (2nd gen). For more information see: + /// + /// * [API documentation](https://cloud.google.com/functions/docs/reference/rest/v2beta/projects.locations.functions). + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var my_function = Gcp.CloudFunctionsV2.GetFunction.Invoke(new() + /// { + /// Name = "function", + /// Location = "us-central1", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetFunctionInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:cloudfunctionsv2/getFunction:getFunction", args ?? new GetFunctionInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/CloudFunctionsV2/GetFunctionIamPolicy.cs b/sdk/dotnet/CloudFunctionsV2/GetFunctionIamPolicy.cs index e40e672853..1dfee6cf39 100644 --- a/sdk/dotnet/CloudFunctionsV2/GetFunctionIamPolicy.cs +++ b/sdk/dotnet/CloudFunctionsV2/GetFunctionIamPolicy.cs @@ -64,6 +64,33 @@ public static Task InvokeAsync(GetFunctionIamPolicyA /// public static Output Invoke(GetFunctionIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:cloudfunctionsv2/getFunctionIamPolicy:getFunctionIamPolicy", args ?? new GetFunctionIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for function + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.CloudFunctionsV2.GetFunctionIamPolicy.Invoke(new() + /// { + /// Project = function.Project, + /// Location = function.Location, + /// CloudFunction = function.Name, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetFunctionIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:cloudfunctionsv2/getFunctionIamPolicy:getFunctionIamPolicy", args ?? new GetFunctionIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/CloudIdentity/GetGroupLookup.cs b/sdk/dotnet/CloudIdentity/GetGroupLookup.cs index bacdaca554..fe29f08e90 100644 --- a/sdk/dotnet/CloudIdentity/GetGroupLookup.cs +++ b/sdk/dotnet/CloudIdentity/GetGroupLookup.cs @@ -68,6 +68,35 @@ public static Task InvokeAsync(GetGroupLookupArgs args, In /// public static Output Invoke(GetGroupLookupInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:cloudidentity/getGroupLookup:getGroupLookup", args ?? new GetGroupLookupInvokeArgs(), options.WithDefaults()); + + /// + /// Use this data source to look up the resource name of a Cloud Identity Group by its [EntityKey](https://cloud.google.com/identity/docs/reference/rest/v1/EntityKey), i.e. the group's email. + /// + /// https://cloud.google.com/identity/docs/concepts/overview#groups + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @group = Gcp.CloudIdentity.GetGroupLookup.Invoke(new() + /// { + /// GroupKey = new Gcp.CloudIdentity.Inputs.GetGroupLookupGroupKeyInputArgs + /// { + /// Id = "my-group@example.com", + /// }, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetGroupLookupInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:cloudidentity/getGroupLookup:getGroupLookup", args ?? new GetGroupLookupInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/CloudIdentity/GetGroupMemberships.cs b/sdk/dotnet/CloudIdentity/GetGroupMemberships.cs index 03810d564d..5723c495d4 100644 --- a/sdk/dotnet/CloudIdentity/GetGroupMemberships.cs +++ b/sdk/dotnet/CloudIdentity/GetGroupMemberships.cs @@ -76,6 +76,39 @@ public static Task InvokeAsync(GetGroupMembershipsArg /// public static Output Invoke(GetGroupMembershipsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:cloudidentity/getGroupMemberships:getGroupMemberships", args ?? new GetGroupMembershipsInvokeArgs(), options.WithDefaults()); + + /// + /// Use this data source to get list of the Cloud Identity Group Memberships within a given Group. + /// + /// https://cloud.google.com/identity/docs/concepts/overview#memberships + /// + /// To get more information about GroupMembership, see: + /// + /// * [API documentation](https://cloud.google.com/identity/docs/reference/rest/v1/groups.memberships) + /// * How-to Guides + /// * [Official Documentation](https://cloud.google.com/identity/docs/how-to/memberships-google-groups) + /// + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var members = Gcp.CloudIdentity.GetGroupMemberships.Invoke(new() + /// { + /// Group = "groups/123eab45c6defghi", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetGroupMembershipsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:cloudidentity/getGroupMemberships:getGroupMemberships", args ?? new GetGroupMembershipsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/CloudIdentity/GetGroupTransitiveMemberships.cs b/sdk/dotnet/CloudIdentity/GetGroupTransitiveMemberships.cs index 212b05a17c..09bb942686 100644 --- a/sdk/dotnet/CloudIdentity/GetGroupTransitiveMemberships.cs +++ b/sdk/dotnet/CloudIdentity/GetGroupTransitiveMemberships.cs @@ -16,6 +16,9 @@ public static Task InvokeAsync(GetGroupTran public static Output Invoke(GetGroupTransitiveMembershipsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:cloudidentity/getGroupTransitiveMemberships:getGroupTransitiveMemberships", args ?? new GetGroupTransitiveMembershipsInvokeArgs(), options.WithDefaults()); + + public static Output Invoke(GetGroupTransitiveMembershipsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:cloudidentity/getGroupTransitiveMemberships:getGroupTransitiveMemberships", args ?? new GetGroupTransitiveMembershipsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/CloudIdentity/GetGroups.cs b/sdk/dotnet/CloudIdentity/GetGroups.cs index 02d3dc6558..1de665bf53 100644 --- a/sdk/dotnet/CloudIdentity/GetGroups.cs +++ b/sdk/dotnet/CloudIdentity/GetGroups.cs @@ -62,6 +62,32 @@ public static Task InvokeAsync(GetGroupsArgs args, InvokeOption /// public static Output Invoke(GetGroupsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:cloudidentity/getGroups:getGroups", args ?? new GetGroupsInvokeArgs(), options.WithDefaults()); + + /// + /// Use this data source to get list of the Cloud Identity Groups under a customer or namespace. + /// + /// https://cloud.google.com/identity/docs/concepts/overview#groups + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var groups = Gcp.CloudIdentity.GetGroups.Invoke(new() + /// { + /// Parent = "customers/A01b123xz", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetGroupsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:cloudidentity/getGroups:getGroups", args ?? new GetGroupsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/CloudQuota/GetSQuotaInfo.cs b/sdk/dotnet/CloudQuota/GetSQuotaInfo.cs index cfcde2a8f8..ea11524833 100644 --- a/sdk/dotnet/CloudQuota/GetSQuotaInfo.cs +++ b/sdk/dotnet/CloudQuota/GetSQuotaInfo.cs @@ -62,6 +62,32 @@ public static Task InvokeAsync(GetSQuotaInfoArgs args, Invo /// public static Output Invoke(GetSQuotaInfoInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:cloudquota/getSQuotaInfo:getSQuotaInfo", args ?? new GetSQuotaInfoInvokeArgs(), options.WithDefaults()); + + /// + /// Provides information about a particular quota for a given project, folder or organization. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var myQuotaInfo = Gcp.CloudQuota.GetSQuotaInfo.Invoke(new() + /// { + /// Parent = "projects/my-project", + /// Service = "compute.googleapis.com", + /// QuotaId = "CPUS-per-project-region", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetSQuotaInfoInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:cloudquota/getSQuotaInfo:getSQuotaInfo", args ?? new GetSQuotaInfoInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/CloudQuota/GetSQuotaInfos.cs b/sdk/dotnet/CloudQuota/GetSQuotaInfos.cs index 7f14b3fdfc..e533eef75a 100644 --- a/sdk/dotnet/CloudQuota/GetSQuotaInfos.cs +++ b/sdk/dotnet/CloudQuota/GetSQuotaInfos.cs @@ -60,6 +60,31 @@ public static Task InvokeAsync(GetSQuotaInfosArgs args, In /// public static Output Invoke(GetSQuotaInfosInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:cloudquota/getSQuotaInfos:getSQuotaInfos", args ?? new GetSQuotaInfosInvokeArgs(), options.WithDefaults()); + + /// + /// Provides information about all quotas for a given project, folder or organization. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var myQuotaInfos = Gcp.CloudQuota.GetSQuotaInfos.Invoke(new() + /// { + /// Parent = "projects/my-project", + /// Service = "compute.googleapis.com", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetSQuotaInfosInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:cloudquota/getSQuotaInfos:getSQuotaInfos", args ?? new GetSQuotaInfosInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/CloudRun/GetLocations.cs b/sdk/dotnet/CloudRun/GetLocations.cs index f47cbc0560..9b8f73728c 100644 --- a/sdk/dotnet/CloudRun/GetLocations.cs +++ b/sdk/dotnet/CloudRun/GetLocations.cs @@ -64,6 +64,33 @@ public static Task InvokeAsync(GetLocationsArgs? args = null /// public static Output Invoke(GetLocationsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:cloudrun/getLocations:getLocations", args ?? new GetLocationsInvokeArgs(), options.WithDefaults()); + + /// + /// Get Cloud Run locations available for a project. + /// + /// To get more information about Cloud Run, see: + /// + /// * [API documentation](https://cloud.google.com/run/docs/reference/rest/v1/projects.locations) + /// * How-to Guides + /// * [Official Documentation](https://cloud.google.com/run/docs/) + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var available = Gcp.CloudRun.GetLocations.Invoke(); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetLocationsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:cloudrun/getLocations:getLocations", args ?? new GetLocationsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/CloudRun/GetService.cs b/sdk/dotnet/CloudRun/GetService.cs index 3390d9c63f..40bcda5820 100644 --- a/sdk/dotnet/CloudRun/GetService.cs +++ b/sdk/dotnet/CloudRun/GetService.cs @@ -64,6 +64,33 @@ public static Task InvokeAsync(GetServiceArgs args, InvokeOpti /// public static Output Invoke(GetServiceInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:cloudrun/getService:getService", args ?? new GetServiceInvokeArgs(), options.WithDefaults()); + + /// + /// Get information about a Google Cloud Run Service. For more information see + /// the [official documentation](https://cloud.google.com/run/docs/) + /// and [API](https://cloud.google.com/run/docs/apis). + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var run_service = Gcp.CloudRun.GetService.Invoke(new() + /// { + /// Name = "my-service", + /// Location = "us-central1", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetServiceInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:cloudrun/getService:getService", args ?? new GetServiceInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/CloudRun/GetServiceIamPolicy.cs b/sdk/dotnet/CloudRun/GetServiceIamPolicy.cs index d74186f492..413ba0f6e0 100644 --- a/sdk/dotnet/CloudRun/GetServiceIamPolicy.cs +++ b/sdk/dotnet/CloudRun/GetServiceIamPolicy.cs @@ -64,6 +64,33 @@ public static Task InvokeAsync(GetServiceIamPolicyArg /// public static Output Invoke(GetServiceIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:cloudrun/getServiceIamPolicy:getServiceIamPolicy", args ?? new GetServiceIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for service + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.CloudRun.GetServiceIamPolicy.Invoke(new() + /// { + /// Location = @default.Location, + /// Project = @default.Project, + /// Service = @default.Name, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetServiceIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:cloudrun/getServiceIamPolicy:getServiceIamPolicy", args ?? new GetServiceIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/CloudRunV2/GetJob.cs b/sdk/dotnet/CloudRunV2/GetJob.cs index 6e3ad4db31..c6af0f7a84 100644 --- a/sdk/dotnet/CloudRunV2/GetJob.cs +++ b/sdk/dotnet/CloudRunV2/GetJob.cs @@ -64,6 +64,33 @@ public static Task InvokeAsync(GetJobArgs args, InvokeOptions? opt /// public static Output Invoke(GetJobInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:cloudrunv2/getJob:getJob", args ?? new GetJobInvokeArgs(), options.WithDefaults()); + + /// + /// Get information about a Google Cloud Run v2 Job. For more information see + /// the [official documentation](https://cloud.google.com/run/docs/) + /// and [API](https://cloud.google.com/run/docs/apis). + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var myJob = Gcp.CloudRunV2.GetJob.Invoke(new() + /// { + /// Name = "my-job", + /// Location = "us-central1", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetJobInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:cloudrunv2/getJob:getJob", args ?? new GetJobInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/CloudRunV2/GetJobIamPolicy.cs b/sdk/dotnet/CloudRunV2/GetJobIamPolicy.cs index ccedaf3b35..cb858974f8 100644 --- a/sdk/dotnet/CloudRunV2/GetJobIamPolicy.cs +++ b/sdk/dotnet/CloudRunV2/GetJobIamPolicy.cs @@ -64,6 +64,33 @@ public static Task InvokeAsync(GetJobIamPolicyArgs args, /// public static Output Invoke(GetJobIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:cloudrunv2/getJobIamPolicy:getJobIamPolicy", args ?? new GetJobIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for job + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.CloudRunV2.GetJobIamPolicy.Invoke(new() + /// { + /// Project = @default.Project, + /// Location = @default.Location, + /// Name = @default.Name, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetJobIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:cloudrunv2/getJobIamPolicy:getJobIamPolicy", args ?? new GetJobIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/CloudRunV2/GetService.cs b/sdk/dotnet/CloudRunV2/GetService.cs index 833ea96cdf..15076d1cbb 100644 --- a/sdk/dotnet/CloudRunV2/GetService.cs +++ b/sdk/dotnet/CloudRunV2/GetService.cs @@ -64,6 +64,33 @@ public static Task InvokeAsync(GetServiceArgs args, InvokeOpti /// public static Output Invoke(GetServiceInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:cloudrunv2/getService:getService", args ?? new GetServiceInvokeArgs(), options.WithDefaults()); + + /// + /// Get information about a Google Cloud Run v2 Service. For more information see + /// the [official documentation](https://cloud.google.com/run/docs/) + /// and [API](https://cloud.google.com/run/docs/apis). + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var myService = Gcp.CloudRunV2.GetService.Invoke(new() + /// { + /// Name = "my-service", + /// Location = "us-central1", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetServiceInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:cloudrunv2/getService:getService", args ?? new GetServiceInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/CloudRunV2/GetServiceIamPolicy.cs b/sdk/dotnet/CloudRunV2/GetServiceIamPolicy.cs index d7eb5aa393..765a6f45ee 100644 --- a/sdk/dotnet/CloudRunV2/GetServiceIamPolicy.cs +++ b/sdk/dotnet/CloudRunV2/GetServiceIamPolicy.cs @@ -64,6 +64,33 @@ public static Task InvokeAsync(GetServiceIamPolicyArg /// public static Output Invoke(GetServiceIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:cloudrunv2/getServiceIamPolicy:getServiceIamPolicy", args ?? new GetServiceIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for service + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.CloudRunV2.GetServiceIamPolicy.Invoke(new() + /// { + /// Project = @default.Project, + /// Location = @default.Location, + /// Name = @default.Name, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetServiceIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:cloudrunv2/getServiceIamPolicy:getServiceIamPolicy", args ?? new GetServiceIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/CloudTasks/GetQueueIamPolicy.cs b/sdk/dotnet/CloudTasks/GetQueueIamPolicy.cs index 37a5a3dfef..9cdf533921 100644 --- a/sdk/dotnet/CloudTasks/GetQueueIamPolicy.cs +++ b/sdk/dotnet/CloudTasks/GetQueueIamPolicy.cs @@ -64,6 +64,33 @@ public static Task InvokeAsync(GetQueueIamPolicyArgs ar /// public static Output Invoke(GetQueueIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:cloudtasks/getQueueIamPolicy:getQueueIamPolicy", args ?? new GetQueueIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for queue + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.CloudTasks.GetQueueIamPolicy.Invoke(new() + /// { + /// Project = @default.Project, + /// Location = @default.Location, + /// Name = @default.Name, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetQueueIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:cloudtasks/getQueueIamPolicy:getQueueIamPolicy", args ?? new GetQueueIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Composer/GetEnvironment.cs b/sdk/dotnet/Composer/GetEnvironment.cs index 8d23a9db80..cae3ce8406 100644 --- a/sdk/dotnet/Composer/GetEnvironment.cs +++ b/sdk/dotnet/Composer/GetEnvironment.cs @@ -76,6 +76,39 @@ public static Task InvokeAsync(GetEnvironmentArgs args, In /// public static Output Invoke(GetEnvironmentInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:composer/getEnvironment:getEnvironment", args ?? new GetEnvironmentInvokeArgs(), options.WithDefaults()); + + /// + /// Provides access to Cloud Composer environment configuration in a region for a given project. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var composerEnvEnvironment = new Gcp.Composer.Environment("composer_env", new() + /// { + /// Name = "composer-environment", + /// }); + /// + /// var composerEnv = Gcp.Composer.GetEnvironment.Invoke(new() + /// { + /// Name = test.Name, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["debug"] = composerEnv.Apply(getEnvironmentResult => getEnvironmentResult.Configs), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetEnvironmentInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:composer/getEnvironment:getEnvironment", args ?? new GetEnvironmentInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Composer/GetImageVersions.cs b/sdk/dotnet/Composer/GetImageVersions.cs index 577f212793..cf2d87b7d2 100644 --- a/sdk/dotnet/Composer/GetImageVersions.cs +++ b/sdk/dotnet/Composer/GetImageVersions.cs @@ -78,6 +78,40 @@ public static Task InvokeAsync(GetImageVersionsArgs? arg /// public static Output Invoke(GetImageVersionsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:composer/getImageVersions:getImageVersions", args ?? new GetImageVersionsInvokeArgs(), options.WithDefaults()); + + /// + /// Provides access to available Cloud Composer versions in a region for a given project. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var all = Gcp.Composer.GetImageVersions.Invoke(); + /// + /// var test = new Gcp.Composer.Environment("test", new() + /// { + /// Name = "test-env", + /// Region = "us-central1", + /// Config = new Gcp.Composer.Inputs.EnvironmentConfigArgs + /// { + /// SoftwareConfig = new Gcp.Composer.Inputs.EnvironmentConfigSoftwareConfigArgs + /// { + /// ImageVersion = all.Apply(getImageVersionsResult => getImageVersionsResult.ImageVersions[0]?.ImageVersionId), + /// }, + /// }, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetImageVersionsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:composer/getImageVersions:getImageVersions", args ?? new GetImageVersionsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Composer/GetUserWorkloadsConfigMap.cs b/sdk/dotnet/Composer/GetUserWorkloadsConfigMap.cs index 64796c76a4..190ebb8594 100644 --- a/sdk/dotnet/Composer/GetUserWorkloadsConfigMap.cs +++ b/sdk/dotnet/Composer/GetUserWorkloadsConfigMap.cs @@ -114,6 +114,58 @@ public static Task InvokeAsync(GetUserWorkloads /// public static Output Invoke(GetUserWorkloadsConfigMapInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:composer/getUserWorkloadsConfigMap:getUserWorkloadsConfigMap", args ?? new GetUserWorkloadsConfigMapInvokeArgs(), options.WithDefaults()); + + /// + /// Provides access to Kubernetes ConfigMap configuration for a given project, region and Composer Environment. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var exampleEnvironment = new Gcp.Composer.Environment("example", new() + /// { + /// Name = "example-environment", + /// Config = new Gcp.Composer.Inputs.EnvironmentConfigArgs + /// { + /// SoftwareConfig = new Gcp.Composer.Inputs.EnvironmentConfigSoftwareConfigArgs + /// { + /// ImageVersion = "composer-3-airflow-2", + /// }, + /// }, + /// }); + /// + /// var exampleUserWorkloadsConfigMap = new Gcp.Composer.UserWorkloadsConfigMap("example", new() + /// { + /// Environment = exampleEnvironment.Name, + /// Name = "example-config-map", + /// Data = + /// { + /// { "db_host", "dbhost:5432" }, + /// { "api_host", "apihost:443" }, + /// }, + /// }); + /// + /// var example = Gcp.Composer.GetUserWorkloadsConfigMap.Invoke(new() + /// { + /// Environment = exampleEnvironment.Name, + /// Name = googleComposerUserWorkloadsConfigMap.Example.Name, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["debug"] = example, + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetUserWorkloadsConfigMapInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:composer/getUserWorkloadsConfigMap:getUserWorkloadsConfigMap", args ?? new GetUserWorkloadsConfigMapInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Composer/GetUserWorkloadsSecret.cs b/sdk/dotnet/Composer/GetUserWorkloadsSecret.cs index 8ab8cbbf1d..834fe3ca72 100644 --- a/sdk/dotnet/Composer/GetUserWorkloadsSecret.cs +++ b/sdk/dotnet/Composer/GetUserWorkloadsSecret.cs @@ -128,6 +128,65 @@ public static Task InvokeAsync(GetUserWorkloadsSec /// public static Output Invoke(GetUserWorkloadsSecretInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:composer/getUserWorkloadsSecret:getUserWorkloadsSecret", args ?? new GetUserWorkloadsSecretInvokeArgs(), options.WithDefaults()); + + /// + /// Provides access to Kubernetes Secret configuration for a given project, region and Composer Environment. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// using Std = Pulumi.Std; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var exampleEnvironment = new Gcp.Composer.Environment("example", new() + /// { + /// Name = "example-environment", + /// Config = new Gcp.Composer.Inputs.EnvironmentConfigArgs + /// { + /// SoftwareConfig = new Gcp.Composer.Inputs.EnvironmentConfigSoftwareConfigArgs + /// { + /// ImageVersion = "composer-3-airflow-2", + /// }, + /// }, + /// }); + /// + /// var exampleUserWorkloadsSecret = new Gcp.Composer.UserWorkloadsSecret("example", new() + /// { + /// Environment = exampleEnvironment.Name, + /// Name = "example-secret", + /// Data = + /// { + /// { "username", Std.Base64encode.Invoke(new() + /// { + /// Input = "username", + /// }).Apply(invoke => invoke.Result) }, + /// { "password", Std.Base64encode.Invoke(new() + /// { + /// Input = "password", + /// }).Apply(invoke => invoke.Result) }, + /// }, + /// }); + /// + /// var example = Gcp.Composer.GetUserWorkloadsSecret.Invoke(new() + /// { + /// Environment = exampleEnvironment.Name, + /// Name = googleComposerUserWorkloadsSecret.Example.Name, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["debug"] = example, + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetUserWorkloadsSecretInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:composer/getUserWorkloadsSecret:getUserWorkloadsSecret", args ?? new GetUserWorkloadsSecretInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Compute/GetAddress.cs b/sdk/dotnet/Compute/GetAddress.cs index 68c130c1d6..a7b6c83834 100644 --- a/sdk/dotnet/Compute/GetAddress.cs +++ b/sdk/dotnet/Compute/GetAddress.cs @@ -96,6 +96,49 @@ public static Task InvokeAsync(GetAddressArgs args, InvokeOpti /// public static Output Invoke(GetAddressInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getAddress:getAddress", args ?? new GetAddressInvokeArgs(), options.WithDefaults()); + + /// + /// Get the IP address from a static address. For more information see + /// the official [API](https://cloud.google.com/compute/docs/reference/latest/addresses/get) documentation. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var myAddress = Gcp.Compute.GetAddress.Invoke(new() + /// { + /// Name = "foobar", + /// }); + /// + /// var prod = new Gcp.Dns.ManagedZone("prod", new() + /// { + /// Name = "prod-zone", + /// DnsName = "prod.mydomain.com.", + /// }); + /// + /// var frontend = new Gcp.Dns.RecordSet("frontend", new() + /// { + /// Name = prod.DnsName.Apply(dnsName => $"frontend.{dnsName}"), + /// Type = "A", + /// Ttl = 300, + /// ManagedZone = prod.Name, + /// Rrdatas = new[] + /// { + /// myAddress.Apply(getAddressResult => getAddressResult.Address), + /// }, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetAddressInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getAddress:getAddress", args ?? new GetAddressInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Compute/GetAddresses.cs b/sdk/dotnet/Compute/GetAddresses.cs index 1b20a858b9..f04da762e3 100644 --- a/sdk/dotnet/Compute/GetAddresses.cs +++ b/sdk/dotnet/Compute/GetAddresses.cs @@ -92,6 +92,47 @@ public static Task InvokeAsync(GetAddressesArgs? args = null /// public static Output Invoke(GetAddressesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getAddresses:getAddresses", args ?? new GetAddressesInvokeArgs(), options.WithDefaults()); + + /// + /// List IP addresses in a project. For more information see + /// the official API [list](https://cloud.google.com/compute/docs/reference/latest/addresses/list) and + /// [aggregated list](https://cloud.google.com/compute/docs/reference/rest/v1/addresses/aggregatedList) documentation. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var test = Gcp.Compute.GetAddresses.Invoke(new() + /// { + /// Filter = "name:test-*", + /// }); + /// + /// var prod = new Gcp.Dns.ManagedZone("prod", new() + /// { + /// Name = "prod-zone", + /// DnsName = "prod.mydomain.com.", + /// }); + /// + /// var frontend = new Gcp.Dns.RecordSet("frontend", new() + /// { + /// Name = prod.DnsName.Apply(dnsName => $"frontend.{dnsName}"), + /// Type = "A", + /// Ttl = 300, + /// ManagedZone = prod.Name, + /// Rrdatas = test.Apply(getAddressesResult => getAddressesResult.Addresses).Select(__item => __item.Address).ToList(), + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetAddressesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getAddresses:getAddresses", args ?? new GetAddressesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Compute/GetBackendBucket.cs b/sdk/dotnet/Compute/GetBackendBucket.cs index fa3e4e5a04..f59e68e7fd 100644 --- a/sdk/dotnet/Compute/GetBackendBucket.cs +++ b/sdk/dotnet/Compute/GetBackendBucket.cs @@ -58,6 +58,30 @@ public static Task InvokeAsync(GetBackendBucketArgs args /// public static Output Invoke(GetBackendBucketInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getBackendBucket:getBackendBucket", args ?? new GetBackendBucketInvokeArgs(), options.WithDefaults()); + + /// + /// Get information about a BackendBucket. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var my_backend_bucket = Gcp.Compute.GetBackendBucket.Invoke(new() + /// { + /// Name = "my-backend", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetBackendBucketInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getBackendBucket:getBackendBucket", args ?? new GetBackendBucketInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Compute/GetBackendBucketIamPolicy.cs b/sdk/dotnet/Compute/GetBackendBucketIamPolicy.cs index 04170367e9..2ac99eaeae 100644 --- a/sdk/dotnet/Compute/GetBackendBucketIamPolicy.cs +++ b/sdk/dotnet/Compute/GetBackendBucketIamPolicy.cs @@ -16,6 +16,9 @@ public static Task InvokeAsync(GetBackendBucket public static Output Invoke(GetBackendBucketIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getBackendBucketIamPolicy:getBackendBucketIamPolicy", args ?? new GetBackendBucketIamPolicyInvokeArgs(), options.WithDefaults()); + + public static Output Invoke(GetBackendBucketIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getBackendBucketIamPolicy:getBackendBucketIamPolicy", args ?? new GetBackendBucketIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Compute/GetBackendService.cs b/sdk/dotnet/Compute/GetBackendService.cs index 729f4fc00e..24a4b60d52 100644 --- a/sdk/dotnet/Compute/GetBackendService.cs +++ b/sdk/dotnet/Compute/GetBackendService.cs @@ -74,6 +74,38 @@ public static Task InvokeAsync(GetBackendServiceArgs ar /// public static Output Invoke(GetBackendServiceInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getBackendService:getBackendService", args ?? new GetBackendServiceInvokeArgs(), options.WithDefaults()); + + /// + /// Provide access to a Backend Service's attribute. For more information + /// see [the official documentation](https://cloud.google.com/compute/docs/load-balancing/http/backend-service) + /// and the [API](https://cloud.google.com/compute/docs/reference/latest/backendServices). + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var baz = Gcp.Compute.GetBackendService.Invoke(new() + /// { + /// Name = "foobar", + /// }); + /// + /// var @default = new Gcp.Compute.BackendService("default", new() + /// { + /// Name = "backend-service", + /// HealthChecks = baz.Apply(getBackendServiceResult => getBackendServiceResult.HealthChecks[0]), + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetBackendServiceInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getBackendService:getBackendService", args ?? new GetBackendServiceInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Compute/GetBackendServiceIamPolicy.cs b/sdk/dotnet/Compute/GetBackendServiceIamPolicy.cs index 9461a7e2b0..5c46b805b5 100644 --- a/sdk/dotnet/Compute/GetBackendServiceIamPolicy.cs +++ b/sdk/dotnet/Compute/GetBackendServiceIamPolicy.cs @@ -16,6 +16,9 @@ public static Task InvokeAsync(GetBackendServi public static Output Invoke(GetBackendServiceIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getBackendServiceIamPolicy:getBackendServiceIamPolicy", args ?? new GetBackendServiceIamPolicyInvokeArgs(), options.WithDefaults()); + + public static Output Invoke(GetBackendServiceIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getBackendServiceIamPolicy:getBackendServiceIamPolicy", args ?? new GetBackendServiceIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Compute/GetCertificate.cs b/sdk/dotnet/Compute/GetCertificate.cs index b14d72f947..61ad997203 100644 --- a/sdk/dotnet/Compute/GetCertificate.cs +++ b/sdk/dotnet/Compute/GetCertificate.cs @@ -70,6 +70,36 @@ public static Task InvokeAsync(GetCertificateArgs args, In /// public static Output Invoke(GetCertificateInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getCertificate:getCertificate", args ?? new GetCertificateInvokeArgs(), options.WithDefaults()); + + /// + /// Get info about a Google Compute SSL Certificate from its name. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var myCert = Gcp.Compute.GetCertificate.Invoke(new() + /// { + /// Name = "my-cert", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["certificate"] = myCert.Apply(getCertificateResult => getCertificateResult.Certificate), + /// ["certificateId"] = myCert.Apply(getCertificateResult => getCertificateResult.CertificateId), + /// ["selfLink"] = myCert.Apply(getCertificateResult => getCertificateResult.SelfLink), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetCertificateInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getCertificate:getCertificate", args ?? new GetCertificateInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Compute/GetDefaultServiceAccount.cs b/sdk/dotnet/Compute/GetDefaultServiceAccount.cs index 428a64680a..9b6e4337ba 100644 --- a/sdk/dotnet/Compute/GetDefaultServiceAccount.cs +++ b/sdk/dotnet/Compute/GetDefaultServiceAccount.cs @@ -60,6 +60,31 @@ public static Task InvokeAsync(GetDefaultService /// public static Output Invoke(GetDefaultServiceAccountInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getDefaultServiceAccount:getDefaultServiceAccount", args ?? new GetDefaultServiceAccountInvokeArgs(), options.WithDefaults()); + + /// + /// Use this data source to retrieve default service account for this project + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @default = Gcp.Compute.GetDefaultServiceAccount.Invoke(); + /// + /// return new Dictionary<string, object?> + /// { + /// ["defaultAccount"] = @default.Apply(@default => @default.Apply(getDefaultServiceAccountResult => getDefaultServiceAccountResult.Email)), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetDefaultServiceAccountInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getDefaultServiceAccount:getDefaultServiceAccount", args ?? new GetDefaultServiceAccountInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Compute/GetDisk.cs b/sdk/dotnet/Compute/GetDisk.cs index 0fe9500d47..7b9e6a35cb 100644 --- a/sdk/dotnet/Compute/GetDisk.cs +++ b/sdk/dotnet/Compute/GetDisk.cs @@ -82,6 +82,42 @@ public static Task InvokeAsync(GetDiskArgs args, InvokeOptions? o /// public static Output Invoke(GetDiskInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getDisk:getDisk", args ?? new GetDiskInvokeArgs(), options.WithDefaults()); + + /// + /// Get information about a Google Compute Persistent disks. + /// + /// [the official documentation](https://cloud.google.com/compute/docs/disks) and its [API](https://cloud.google.com/compute/docs/reference/latest/disks). + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var persistent_boot_disk = Gcp.Compute.GetDisk.Invoke(new() + /// { + /// Name = "persistent-boot-disk", + /// Project = "example", + /// }); + /// + /// var @default = new Gcp.Compute.Instance("default", new() + /// { + /// BootDisk = new Gcp.Compute.Inputs.InstanceBootDiskArgs + /// { + /// Source = persistent_boot_disk.Apply(persistent_boot_disk => persistent_boot_disk.Apply(getDiskResult => getDiskResult.SelfLink)), + /// AutoDelete = false, + /// }, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetDiskInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getDisk:getDisk", args ?? new GetDiskInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Compute/GetDiskIamPolicy.cs b/sdk/dotnet/Compute/GetDiskIamPolicy.cs index 708142a9f2..ac9b805b23 100644 --- a/sdk/dotnet/Compute/GetDiskIamPolicy.cs +++ b/sdk/dotnet/Compute/GetDiskIamPolicy.cs @@ -64,6 +64,33 @@ public static Task InvokeAsync(GetDiskIamPolicyArgs args /// public static Output Invoke(GetDiskIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getDiskIamPolicy:getDiskIamPolicy", args ?? new GetDiskIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for disk + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.Compute.GetDiskIamPolicy.Invoke(new() + /// { + /// Project = @default.Project, + /// Zone = @default.Zone, + /// Name = @default.Name, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetDiskIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getDiskIamPolicy:getDiskIamPolicy", args ?? new GetDiskIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Compute/GetForwardingRule.cs b/sdk/dotnet/Compute/GetForwardingRule.cs index 5446fb0241..453fed4626 100644 --- a/sdk/dotnet/Compute/GetForwardingRule.cs +++ b/sdk/dotnet/Compute/GetForwardingRule.cs @@ -58,6 +58,30 @@ public static Task InvokeAsync(GetForwardingRuleArgs ar /// public static Output Invoke(GetForwardingRuleInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getForwardingRule:getForwardingRule", args ?? new GetForwardingRuleInvokeArgs(), options.WithDefaults()); + + /// + /// Get a forwarding rule within GCE from its name. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var my_forwarding_rule = Gcp.Compute.GetForwardingRule.Invoke(new() + /// { + /// Name = "forwarding-rule-us-east1", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetForwardingRuleInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getForwardingRule:getForwardingRule", args ?? new GetForwardingRuleInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Compute/GetForwardingRules.cs b/sdk/dotnet/Compute/GetForwardingRules.cs index a05f48a956..674acdd504 100644 --- a/sdk/dotnet/Compute/GetForwardingRules.cs +++ b/sdk/dotnet/Compute/GetForwardingRules.cs @@ -60,6 +60,31 @@ public static Task InvokeAsync(GetForwardingRulesArgs? /// public static Output Invoke(GetForwardingRulesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getForwardingRules:getForwardingRules", args ?? new GetForwardingRulesInvokeArgs(), options.WithDefaults()); + + /// + /// List all networks in a specified Google Cloud project. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var my_forwarding_rules = Gcp.Compute.GetForwardingRules.Invoke(new() + /// { + /// Project = "my-cloud-project", + /// Region = "us-central1", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetForwardingRulesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getForwardingRules:getForwardingRules", args ?? new GetForwardingRulesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Compute/GetGlobalAddress.cs b/sdk/dotnet/Compute/GetGlobalAddress.cs index 36a3cb5221..1d55ee6369 100644 --- a/sdk/dotnet/Compute/GetGlobalAddress.cs +++ b/sdk/dotnet/Compute/GetGlobalAddress.cs @@ -96,6 +96,49 @@ public static Task InvokeAsync(GetGlobalAddressArgs args /// public static Output Invoke(GetGlobalAddressInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getGlobalAddress:getGlobalAddress", args ?? new GetGlobalAddressInvokeArgs(), options.WithDefaults()); + + /// + /// Get the IP address from a static address reserved for a Global Forwarding Rule which are only used for HTTP load balancing. For more information see + /// the official [API](https://cloud.google.com/compute/docs/reference/latest/globalAddresses) documentation. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var myAddress = Gcp.Compute.GetGlobalAddress.Invoke(new() + /// { + /// Name = "foobar", + /// }); + /// + /// var prod = new Gcp.Dns.ManagedZone("prod", new() + /// { + /// Name = "prod-zone", + /// DnsName = "prod.mydomain.com.", + /// }); + /// + /// var frontend = new Gcp.Dns.RecordSet("frontend", new() + /// { + /// Name = prod.DnsName.Apply(dnsName => $"lb.{dnsName}"), + /// Type = "A", + /// Ttl = 300, + /// ManagedZone = prod.Name, + /// Rrdatas = new[] + /// { + /// myAddress.Apply(getGlobalAddressResult => getGlobalAddressResult.Address), + /// }, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetGlobalAddressInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getGlobalAddress:getGlobalAddress", args ?? new GetGlobalAddressInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Compute/GetGlobalForwardingRule.cs b/sdk/dotnet/Compute/GetGlobalForwardingRule.cs index 1bbb967433..a5845faa36 100644 --- a/sdk/dotnet/Compute/GetGlobalForwardingRule.cs +++ b/sdk/dotnet/Compute/GetGlobalForwardingRule.cs @@ -58,6 +58,30 @@ public static Task InvokeAsync(GetGlobalForwardin /// public static Output Invoke(GetGlobalForwardingRuleInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getGlobalForwardingRule:getGlobalForwardingRule", args ?? new GetGlobalForwardingRuleInvokeArgs(), options.WithDefaults()); + + /// + /// Get a global forwarding rule within GCE from its name. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var my_forwarding_rule = Gcp.Compute.GetGlobalForwardingRule.Invoke(new() + /// { + /// Name = "forwarding-rule-global", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetGlobalForwardingRuleInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getGlobalForwardingRule:getGlobalForwardingRule", args ?? new GetGlobalForwardingRuleInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Compute/GetHcVpnGateway.cs b/sdk/dotnet/Compute/GetHcVpnGateway.cs index 464443080f..92f790c8bf 100644 --- a/sdk/dotnet/Compute/GetHcVpnGateway.cs +++ b/sdk/dotnet/Compute/GetHcVpnGateway.cs @@ -58,6 +58,30 @@ public static Task InvokeAsync(GetHcVpnGatewayArgs args, /// public static Output Invoke(GetHcVpnGatewayInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getHcVpnGateway:getHcVpnGateway", args ?? new GetHcVpnGatewayInvokeArgs(), options.WithDefaults()); + + /// + /// Get a HA VPN Gateway within GCE from its name. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var gateway = Gcp.Compute.GetHcVpnGateway.Invoke(new() + /// { + /// Name = "foobar", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetHcVpnGatewayInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getHcVpnGateway:getHcVpnGateway", args ?? new GetHcVpnGatewayInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Compute/GetHealthCheck.cs b/sdk/dotnet/Compute/GetHealthCheck.cs index 63531e43a3..495031d903 100644 --- a/sdk/dotnet/Compute/GetHealthCheck.cs +++ b/sdk/dotnet/Compute/GetHealthCheck.cs @@ -58,6 +58,30 @@ public static Task InvokeAsync(GetHealthCheckArgs args, In /// public static Output Invoke(GetHealthCheckInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getHealthCheck:getHealthCheck", args ?? new GetHealthCheckInvokeArgs(), options.WithDefaults()); + + /// + /// Get information about a HealthCheck. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var healthCheck = Gcp.Compute.GetHealthCheck.Invoke(new() + /// { + /// Name = "my-hc", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetHealthCheckInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getHealthCheck:getHealthCheck", args ?? new GetHealthCheckInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Compute/GetImage.cs b/sdk/dotnet/Compute/GetImage.cs index 62cac5c13a..5ff575f4d7 100644 --- a/sdk/dotnet/Compute/GetImage.cs +++ b/sdk/dotnet/Compute/GetImage.cs @@ -84,6 +84,43 @@ public static Task InvokeAsync(GetImageArgs? args = null, Invoke /// public static Output Invoke(GetImageInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getImage:getImage", args ?? new GetImageInvokeArgs(), options.WithDefaults()); + + /// + /// Get information about a Google Compute Image. Check that your service account has the `compute.imageUser` role if you want to share [custom images](https://cloud.google.com/compute/docs/images/sharing-images-across-projects) from another project. If you want to use [public images][pubimg], do not forget to specify the dedicated project. For more information see + /// [the official documentation](https://cloud.google.com/compute/docs/images) and its [API](https://cloud.google.com/compute/docs/reference/latest/images). + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var myImage = Gcp.Compute.GetImage.Invoke(new() + /// { + /// Family = "debian-11", + /// Project = "debian-cloud", + /// }); + /// + /// var @default = new Gcp.Compute.Instance("default", new() + /// { + /// BootDisk = new Gcp.Compute.Inputs.InstanceBootDiskArgs + /// { + /// InitializeParams = new Gcp.Compute.Inputs.InstanceBootDiskInitializeParamsArgs + /// { + /// Image = myImage.Apply(getImageResult => getImageResult.SelfLink), + /// }, + /// }, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetImageInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getImage:getImage", args ?? new GetImageInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Compute/GetImageIamPolicy.cs b/sdk/dotnet/Compute/GetImageIamPolicy.cs index 6d1225ddc6..e0616836dc 100644 --- a/sdk/dotnet/Compute/GetImageIamPolicy.cs +++ b/sdk/dotnet/Compute/GetImageIamPolicy.cs @@ -62,6 +62,32 @@ public static Task InvokeAsync(GetImageIamPolicyArgs ar /// public static Output Invoke(GetImageIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getImageIamPolicy:getImageIamPolicy", args ?? new GetImageIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for image + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.Compute.GetImageIamPolicy.Invoke(new() + /// { + /// Project = example.Project, + /// Image = example.Name, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetImageIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getImageIamPolicy:getImageIamPolicy", args ?? new GetImageIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Compute/GetInstance.cs b/sdk/dotnet/Compute/GetInstance.cs index de2e833e15..c967508348 100644 --- a/sdk/dotnet/Compute/GetInstance.cs +++ b/sdk/dotnet/Compute/GetInstance.cs @@ -66,6 +66,34 @@ public static Task InvokeAsync(GetInstanceArgs? args = null, /// public static Output Invoke(GetInstanceInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getInstance:getInstance", args ?? new GetInstanceInvokeArgs(), options.WithDefaults()); + + /// + /// Get information about a VM instance resource within GCE. For more information see + /// [the official documentation](https://cloud.google.com/compute/docs/instances) + /// and + /// [API](https://cloud.google.com/compute/docs/reference/latest/instances). + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var appserver = Gcp.Compute.GetInstance.Invoke(new() + /// { + /// Name = "primary-application-server", + /// Zone = "us-central1-a", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetInstanceInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getInstance:getInstance", args ?? new GetInstanceInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Compute/GetInstanceGroup.cs b/sdk/dotnet/Compute/GetInstanceGroup.cs index 2e828c2d87..2e09abe255 100644 --- a/sdk/dotnet/Compute/GetInstanceGroup.cs +++ b/sdk/dotnet/Compute/GetInstanceGroup.cs @@ -60,6 +60,31 @@ public static Task InvokeAsync(GetInstanceGroupArgs? arg /// public static Output Invoke(GetInstanceGroupInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getInstanceGroup:getInstanceGroup", args ?? new GetInstanceGroupInvokeArgs(), options.WithDefaults()); + + /// + /// Get a Compute Instance Group within GCE. + /// For more information, see [the official documentation](https://cloud.google.com/compute/docs/instance-groups/#unmanaged_instance_groups) + /// and [API](https://cloud.google.com/compute/docs/reference/latest/instanceGroups) + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var all = Gcp.Compute.GetInstanceGroup.Invoke(new() + /// { + /// Name = "instance-group-name", + /// Zone = "us-central1-a", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetInstanceGroupInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getInstanceGroup:getInstanceGroup", args ?? new GetInstanceGroupInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Compute/GetInstanceGroupManager.cs b/sdk/dotnet/Compute/GetInstanceGroupManager.cs index d37aa94d7d..f96ab7eb39 100644 --- a/sdk/dotnet/Compute/GetInstanceGroupManager.cs +++ b/sdk/dotnet/Compute/GetInstanceGroupManager.cs @@ -74,6 +74,38 @@ public static Task InvokeAsync(GetInstanceGroupMa /// public static Output Invoke(GetInstanceGroupManagerInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getInstanceGroupManager:getInstanceGroupManager", args ?? new GetInstanceGroupManagerInvokeArgs(), options.WithDefaults()); + + /// + /// Get a Compute Instance Group Manager within GCE. + /// For more information, see [the official documentation](https://cloud.google.com/compute/docs/instance-groups#managed_instance_groups) + /// and [API](https://cloud.google.com/compute/docs/reference/latest/instanceGroupManagers) + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var igm1 = Gcp.Compute.GetInstanceGroupManager.Invoke(new() + /// { + /// Name = "my-igm", + /// Zone = "us-central1-a", + /// }); + /// + /// var igm2 = Gcp.Compute.GetInstanceGroupManager.Invoke(new() + /// { + /// SelfLink = "https://www.googleapis.com/compute/v1/projects/myproject/zones/us-central1-a/instanceGroupManagers/my-igm", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetInstanceGroupManagerInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getInstanceGroupManager:getInstanceGroupManager", args ?? new GetInstanceGroupManagerInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Compute/GetInstanceGuestAttributes.cs b/sdk/dotnet/Compute/GetInstanceGuestAttributes.cs index 2b794b4031..f11465c75a 100644 --- a/sdk/dotnet/Compute/GetInstanceGuestAttributes.cs +++ b/sdk/dotnet/Compute/GetInstanceGuestAttributes.cs @@ -120,6 +120,61 @@ public static Task InvokeAsync(GetInstanceGues /// public static Output Invoke(GetInstanceGuestAttributesInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getInstanceGuestAttributes:getInstanceGuestAttributes", args ?? new GetInstanceGuestAttributesInvokeArgs(), options.WithDefaults()); + + /// + /// Get information about a VM instance resource within GCE. For more information see + /// [the official documentation](https://cloud.google.com/compute/docs/instances) + /// and + /// [API](https://cloud.google.com/compute/docs/reference/latest/instances). + /// + /// Get information about VM's guest attrubutes. For more information see [the official documentation](https://cloud.google.com/compute/docs/metadata/manage-guest-attributes) + /// and + /// [API](https://cloud.google.com/compute/docs/reference/rest/v1/instances/getGuestAttributes). + /// + /// ## Example Usage + /// + /// ### Get All Attributes From A Single Namespace + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var appserverGa = Gcp.Compute.GetInstanceGuestAttributes.Invoke(new() + /// { + /// Name = "primary-application-server", + /// Zone = "us-central1-a", + /// QueryPath = "variables/", + /// }); + /// + /// }); + /// ``` + /// + /// ### Get A Specific Variable + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var appserverGa = Gcp.Compute.GetInstanceGuestAttributes.Invoke(new() + /// { + /// Name = "primary-application-server", + /// Zone = "us-central1-a", + /// VariableKey = "variables/key1", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetInstanceGuestAttributesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getInstanceGuestAttributes:getInstanceGuestAttributes", args ?? new GetInstanceGuestAttributesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Compute/GetInstanceIamPolicy.cs b/sdk/dotnet/Compute/GetInstanceIamPolicy.cs index 6d9821fa76..b8a880f968 100644 --- a/sdk/dotnet/Compute/GetInstanceIamPolicy.cs +++ b/sdk/dotnet/Compute/GetInstanceIamPolicy.cs @@ -64,6 +64,33 @@ public static Task InvokeAsync(GetInstanceIamPolicyA /// public static Output Invoke(GetInstanceIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getInstanceIamPolicy:getInstanceIamPolicy", args ?? new GetInstanceIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for instance + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.Compute.GetInstanceIamPolicy.Invoke(new() + /// { + /// Project = @default.Project, + /// Zone = @default.Zone, + /// InstanceName = @default.Name, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetInstanceIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getInstanceIamPolicy:getInstanceIamPolicy", args ?? new GetInstanceIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Compute/GetInstanceSerialPort.cs b/sdk/dotnet/Compute/GetInstanceSerialPort.cs index b7126c1dcc..2e29cedf00 100644 --- a/sdk/dotnet/Compute/GetInstanceSerialPort.cs +++ b/sdk/dotnet/Compute/GetInstanceSerialPort.cs @@ -214,6 +214,108 @@ public static Task InvokeAsync(GetInstanceSerialPor /// public static Output Invoke(GetInstanceSerialPortInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getInstanceSerialPort:getInstanceSerialPort", args ?? new GetInstanceSerialPortInvokeArgs(), options.WithDefaults()); + + /// + /// Get the serial port output from a Compute Instance. For more information see + /// the official [API](https://cloud.google.com/compute/docs/instances/viewing-serial-port-output) documentation. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var serial = Gcp.Compute.GetInstanceSerialPort.Invoke(new() + /// { + /// Instance = "my-instance", + /// Zone = "us-central1-a", + /// Port = 1, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["serialOut"] = serial.Apply(getInstanceSerialPortResult => getInstanceSerialPortResult.Contents), + /// }; + /// }); + /// ``` + /// + /// Using the serial port output to generate a windows password, derived from the [official guide](https://cloud.google.com/compute/docs/instances/windows/automate-pw-generation): + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using System.Text.Json; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var windows = new Gcp.Compute.Instance("windows", new() + /// { + /// NetworkInterfaces = new[] + /// { + /// new Gcp.Compute.Inputs.InstanceNetworkInterfaceArgs + /// { + /// AccessConfigs = new[] + /// { + /// null, + /// }, + /// Network = "default", + /// }, + /// }, + /// Name = "windows-instance", + /// MachineType = "e2-medium", + /// Zone = "us-central1-a", + /// BootDisk = new Gcp.Compute.Inputs.InstanceBootDiskArgs + /// { + /// InitializeParams = new Gcp.Compute.Inputs.InstanceBootDiskInitializeParamsArgs + /// { + /// Image = "windows-cloud/windows-2019", + /// }, + /// }, + /// Metadata = + /// { + /// { "serial-port-logging-enable", "TRUE" }, + /// { "windows-keys", JsonSerializer.Serialize(new Dictionary<string, object?> + /// { + /// ["email"] = "example.user@example.com", + /// ["expireOn"] = "2020-04-14T01:37:19Z", + /// ["exponent"] = "AQAB", + /// ["modulus"] = "wgsquN4IBNPqIUnu+h/5Za1kujb2YRhX1vCQVQAkBwnWigcCqOBVfRa5JoZfx6KIvEXjWqa77jPvlsxM4WPqnDIM2qiK36up3SKkYwFjff6F2ni/ry8vrwXCX3sGZ1hbIHlK0O012HpA3ISeEswVZmX2X67naOvJXfY5v0hGPWqCADao+xVxrmxsZD4IWnKl1UaZzI5lhAzr8fw6utHwx1EZ/MSgsEki6tujcZfN+GUDRnmJGQSnPTXmsf7Q4DKreTZk49cuyB3prV91S0x3DYjCUpSXrkVy1Ha5XicGD/q+ystuFsJnrrhbNXJbpSjM6sjo/aduAkZJl4FmOt0R7Q==", + /// ["userName"] = "example-user", + /// }) }, + /// }, + /// ServiceAccount = new Gcp.Compute.Inputs.InstanceServiceAccountArgs + /// { + /// Scopes = new[] + /// { + /// "userinfo-email", + /// "compute-ro", + /// "storage-ro", + /// }, + /// }, + /// }); + /// + /// var serial = Gcp.Compute.GetInstanceSerialPort.Invoke(new() + /// { + /// Instance = windows.Name, + /// Zone = windows.Zone, + /// Port = 4, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["serialOut"] = serial.Apply(getInstanceSerialPortResult => getInstanceSerialPortResult.Contents), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetInstanceSerialPortInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getInstanceSerialPort:getInstanceSerialPort", args ?? new GetInstanceSerialPortInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Compute/GetInstanceTemplate.cs b/sdk/dotnet/Compute/GetInstanceTemplate.cs index c83df65e27..b97a82e00a 100644 --- a/sdk/dotnet/Compute/GetInstanceTemplate.cs +++ b/sdk/dotnet/Compute/GetInstanceTemplate.cs @@ -32,6 +32,17 @@ public static Task InvokeAsync(GetInstanceTemplateArg /// public static Output Invoke(GetInstanceTemplateInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getInstanceTemplate:getInstanceTemplate", args ?? new GetInstanceTemplateInvokeArgs(), options.WithDefaults()); + + /// + /// > **Note**: Global instance templates can be used in any region. To lower the impact of outages outside your region and gain data residency within your region, use google_compute_region_instance_template. + /// + /// Get information about a VM instance template resource within GCE. For more information see + /// [the official documentation](https://cloud.google.com/compute/docs/instance-templates) + /// and + /// [API](https://cloud.google.com/compute/docs/reference/rest/v1/instanceTemplates). + /// + public static Output Invoke(GetInstanceTemplateInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getInstanceTemplate:getInstanceTemplate", args ?? new GetInstanceTemplateInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Compute/GetLBIPRanges.cs b/sdk/dotnet/Compute/GetLBIPRanges.cs index 12cf62fae2..352bd38fd1 100644 --- a/sdk/dotnet/Compute/GetLBIPRanges.cs +++ b/sdk/dotnet/Compute/GetLBIPRanges.cs @@ -100,6 +100,51 @@ public static Task InvokeAsync(InvokeOptions? options = nul /// public static Output Invoke(InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getLBIPRanges:getLBIPRanges", InvokeArgs.Empty, options.WithDefaults()); + + /// + /// Use this data source to access IP ranges in your firewall rules. + /// + /// https://cloud.google.com/compute/docs/load-balancing/health-checks#health_check_source_ips_and_firewall_rules + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ranges = Gcp.Compute.GetLBIPRanges.Invoke(); + /// + /// var lb = new Gcp.Compute.Firewall("lb", new() + /// { + /// Name = "lb-firewall", + /// Network = main.Name, + /// Allows = new[] + /// { + /// new Gcp.Compute.Inputs.FirewallAllowArgs + /// { + /// Protocol = "tcp", + /// Ports = new[] + /// { + /// "80", + /// }, + /// }, + /// }, + /// SourceRanges = ranges.Apply(getLBIPRangesResult => getLBIPRangesResult.Networks), + /// TargetTags = new[] + /// { + /// "InstanceBehindLoadBalancer", + /// }, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getLBIPRanges:getLBIPRanges", InvokeArgs.Empty, options.WithDefaults()); } diff --git a/sdk/dotnet/Compute/GetMachineImageIamPolicy.cs b/sdk/dotnet/Compute/GetMachineImageIamPolicy.cs index e814590aa1..fc66b9d25d 100644 --- a/sdk/dotnet/Compute/GetMachineImageIamPolicy.cs +++ b/sdk/dotnet/Compute/GetMachineImageIamPolicy.cs @@ -16,6 +16,9 @@ public static Task InvokeAsync(GetMachineImageIa public static Output Invoke(GetMachineImageIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getMachineImageIamPolicy:getMachineImageIamPolicy", args ?? new GetMachineImageIamPolicyInvokeArgs(), options.WithDefaults()); + + public static Output Invoke(GetMachineImageIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getMachineImageIamPolicy:getMachineImageIamPolicy", args ?? new GetMachineImageIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Compute/GetMachineTypes.cs b/sdk/dotnet/Compute/GetMachineTypes.cs index cdab24c528..da8b0a8abf 100644 --- a/sdk/dotnet/Compute/GetMachineTypes.cs +++ b/sdk/dotnet/Compute/GetMachineTypes.cs @@ -38,6 +38,20 @@ public static Task InvokeAsync(GetMachineTypesArgs? args /// public static Output Invoke(GetMachineTypesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getMachineTypes:getMachineTypes", args ?? new GetMachineTypesInvokeArgs(), options.WithDefaults()); + + /// + /// Provides access to available Google Compute machine types in a zone for a given project. + /// See more about [machine type availability](https://cloud.google.com/compute/docs/regions-zones#available) in the upstream docs. + /// + /// To get more information about machine types, see: + /// + /// * [API Documentation](https://cloud.google.com/compute/docs/reference/rest/v1/machineTypes/list) + /// * [Comparison Guide](https://cloud.google.com/compute/docs/machine-resource) + /// + /// ## Example Usage + /// + public static Output Invoke(GetMachineTypesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getMachineTypes:getMachineTypes", args ?? new GetMachineTypesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Compute/GetNetblockIPRanges.cs b/sdk/dotnet/Compute/GetNetblockIPRanges.cs index d8896d07fe..082b644c02 100644 --- a/sdk/dotnet/Compute/GetNetblockIPRanges.cs +++ b/sdk/dotnet/Compute/GetNetblockIPRanges.cs @@ -150,6 +150,76 @@ public static Task InvokeAsync(GetNetblockIPRangesArg /// public static Output Invoke(GetNetblockIPRangesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getNetblockIPRanges:getNetblockIPRanges", args ?? new GetNetblockIPRangesInvokeArgs(), options.WithDefaults()); + + /// + /// Use this data source to get the IP addresses from different special IP ranges on Google Cloud Platform. + /// + /// ## Example Usage + /// + /// ### Cloud Ranges + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var netblock = Gcp.Compute.GetNetblockIPRanges.Invoke(); + /// + /// return new Dictionary<string, object?> + /// { + /// ["cidrBlocks"] = netblock.Apply(getNetblockIPRangesResult => getNetblockIPRangesResult.CidrBlocks), + /// ["cidrBlocksIpv4"] = netblock.Apply(getNetblockIPRangesResult => getNetblockIPRangesResult.CidrBlocksIpv4s), + /// ["cidrBlocksIpv6"] = netblock.Apply(getNetblockIPRangesResult => getNetblockIPRangesResult.CidrBlocksIpv6s), + /// }; + /// }); + /// ``` + /// + /// ### Allow Health Checks + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var legacy_hcs = Gcp.Compute.GetNetblockIPRanges.Invoke(new() + /// { + /// RangeType = "legacy-health-checkers", + /// }); + /// + /// var @default = new Gcp.Compute.Network("default", new() + /// { + /// Name = "test-network", + /// }); + /// + /// var allow_hcs = new Gcp.Compute.Firewall("allow-hcs", new() + /// { + /// Name = "allow-hcs", + /// Network = @default.Name, + /// Allows = new[] + /// { + /// new Gcp.Compute.Inputs.FirewallAllowArgs + /// { + /// Protocol = "tcp", + /// Ports = new[] + /// { + /// "80", + /// }, + /// }, + /// }, + /// SourceRanges = legacy_hcs.Apply(legacy_hcs => legacy_hcs.Apply(getNetblockIPRangesResult => getNetblockIPRangesResult.CidrBlocksIpv4s)), + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetNetblockIPRangesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getNetblockIPRanges:getNetblockIPRanges", args ?? new GetNetblockIPRangesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Compute/GetNetwork.cs b/sdk/dotnet/Compute/GetNetwork.cs index 1edaaacc73..5520a0dac5 100644 --- a/sdk/dotnet/Compute/GetNetwork.cs +++ b/sdk/dotnet/Compute/GetNetwork.cs @@ -58,6 +58,30 @@ public static Task InvokeAsync(GetNetworkArgs args, InvokeOpti /// public static Output Invoke(GetNetworkInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getNetwork:getNetwork", args ?? new GetNetworkInvokeArgs(), options.WithDefaults()); + + /// + /// Get a network within GCE from its name. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var my_network = Gcp.Compute.GetNetwork.Invoke(new() + /// { + /// Name = "default-us-east1", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetNetworkInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getNetwork:getNetwork", args ?? new GetNetworkInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Compute/GetNetworkEndpointGroup.cs b/sdk/dotnet/Compute/GetNetworkEndpointGroup.cs index 1d32a4f7e8..05817d370d 100644 --- a/sdk/dotnet/Compute/GetNetworkEndpointGroup.cs +++ b/sdk/dotnet/Compute/GetNetworkEndpointGroup.cs @@ -74,6 +74,38 @@ public static Task InvokeAsync(GetNetworkEndpoint /// public static Output Invoke(GetNetworkEndpointGroupInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getNetworkEndpointGroup:getNetworkEndpointGroup", args ?? new GetNetworkEndpointGroupInvokeArgs(), options.WithDefaults()); + + /// + /// Use this data source to access a Network Endpoint Group's attributes. + /// + /// The NEG may be found by providing either a `self_link`, or a `name` and a `zone`. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var neg1 = Gcp.Compute.GetNetworkEndpointGroup.Invoke(new() + /// { + /// Name = "k8s1-abcdef01-myns-mysvc-8080-4b6bac43", + /// Zone = "us-central1-a", + /// }); + /// + /// var neg2 = Gcp.Compute.GetNetworkEndpointGroup.Invoke(new() + /// { + /// SelfLink = "https://www.googleapis.com/compute/v1/projects/myproject/zones/us-central1-a/networkEndpointGroups/k8s1-abcdef01-myns-mysvc-8080-4b6bac43", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetNetworkEndpointGroupInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getNetworkEndpointGroup:getNetworkEndpointGroup", args ?? new GetNetworkEndpointGroupInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Compute/GetNetworkPeering.cs b/sdk/dotnet/Compute/GetNetworkPeering.cs index 895172115b..51633b51a3 100644 --- a/sdk/dotnet/Compute/GetNetworkPeering.cs +++ b/sdk/dotnet/Compute/GetNetworkPeering.cs @@ -118,6 +118,60 @@ public static Task InvokeAsync(GetNetworkPeeringArgs ar /// public static Output Invoke(GetNetworkPeeringInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getNetworkPeering:getNetworkPeering", args ?? new GetNetworkPeeringInvokeArgs(), options.WithDefaults()); + + /// + /// Get information of a specified compute network peering. For more information see + /// [the official documentation](https://cloud.google.com/compute/docs/vpc/vpc-peering) + /// and + /// [API](https://cloud.google.com/compute/docs/reference/latest/networks). + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @default = new Gcp.Compute.Network("default", new() + /// { + /// Name = "foobar", + /// AutoCreateSubnetworks = false, + /// }); + /// + /// var other = new Gcp.Compute.Network("other", new() + /// { + /// Name = "other", + /// AutoCreateSubnetworks = false, + /// }); + /// + /// var peering1 = new Gcp.Compute.NetworkPeering("peering1", new() + /// { + /// Name = "peering1", + /// Network = @default.SelfLink, + /// PeerNetwork = other.SelfLink, + /// }); + /// + /// var peering2 = new Gcp.Compute.NetworkPeering("peering2", new() + /// { + /// Name = "peering2", + /// Network = other.SelfLink, + /// PeerNetwork = @default.SelfLink, + /// }); + /// + /// var peering1Ds = Gcp.Compute.GetNetworkPeering.Invoke(new() + /// { + /// Name = peering1.Name, + /// Network = peering1.Network, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetNetworkPeeringInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getNetworkPeering:getNetworkPeering", args ?? new GetNetworkPeeringInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Compute/GetNetworks.cs b/sdk/dotnet/Compute/GetNetworks.cs index 36989403ea..fbf4dd03a1 100644 --- a/sdk/dotnet/Compute/GetNetworks.cs +++ b/sdk/dotnet/Compute/GetNetworks.cs @@ -58,6 +58,30 @@ public static Task InvokeAsync(GetNetworksArgs? args = null, /// public static Output Invoke(GetNetworksInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getNetworks:getNetworks", args ?? new GetNetworksInvokeArgs(), options.WithDefaults()); + + /// + /// List all networks in a specified Google Cloud project. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var my_networks = Gcp.Compute.GetNetworks.Invoke(new() + /// { + /// Project = "my-cloud-project", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetNetworksInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getNetworks:getNetworks", args ?? new GetNetworksInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Compute/GetNodeTypes.cs b/sdk/dotnet/Compute/GetNodeTypes.cs index fa6c0f4a5a..f962ff7b2c 100644 --- a/sdk/dotnet/Compute/GetNodeTypes.cs +++ b/sdk/dotnet/Compute/GetNodeTypes.cs @@ -74,6 +74,38 @@ public static Task InvokeAsync(GetNodeTypesArgs? args = null /// public static Output Invoke(GetNodeTypesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getNodeTypes:getNodeTypes", args ?? new GetNodeTypesInvokeArgs(), options.WithDefaults()); + + /// + /// Provides available node types for Compute Engine sole-tenant nodes in a zone + /// for a given project. For more information, see [the official documentation](https://cloud.google.com/compute/docs/nodes/#types) and [API](https://cloud.google.com/compute/docs/reference/rest/v1/nodeTypes). + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var central1b = Gcp.Compute.GetNodeTypes.Invoke(new() + /// { + /// Zone = "us-central1-b", + /// }); + /// + /// var tmpl = new Gcp.Compute.NodeTemplate("tmpl", new() + /// { + /// Name = "test-tmpl", + /// Region = "us-central1", + /// NodeType = types.Names[0], + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetNodeTypesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getNodeTypes:getNodeTypes", args ?? new GetNodeTypesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Compute/GetRegionBackendServiceIamPolicy.cs b/sdk/dotnet/Compute/GetRegionBackendServiceIamPolicy.cs index 453082bc4e..afb1a3fdfa 100644 --- a/sdk/dotnet/Compute/GetRegionBackendServiceIamPolicy.cs +++ b/sdk/dotnet/Compute/GetRegionBackendServiceIamPolicy.cs @@ -16,6 +16,9 @@ public static Task InvokeAsync(GetRegion public static Output Invoke(GetRegionBackendServiceIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getRegionBackendServiceIamPolicy:getRegionBackendServiceIamPolicy", args ?? new GetRegionBackendServiceIamPolicyInvokeArgs(), options.WithDefaults()); + + public static Output Invoke(GetRegionBackendServiceIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getRegionBackendServiceIamPolicy:getRegionBackendServiceIamPolicy", args ?? new GetRegionBackendServiceIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Compute/GetRegionDisk.cs b/sdk/dotnet/Compute/GetRegionDisk.cs index 2a6378ed88..ae99c82d79 100644 --- a/sdk/dotnet/Compute/GetRegionDisk.cs +++ b/sdk/dotnet/Compute/GetRegionDisk.cs @@ -26,6 +26,14 @@ public static Task InvokeAsync(GetRegionDiskArgs args, Invo /// public static Output Invoke(GetRegionDiskInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getRegionDisk:getRegionDisk", args ?? new GetRegionDiskInvokeArgs(), options.WithDefaults()); + + /// + /// Get information about a Google Compute Regional Persistent disks. + /// + /// [the official documentation](https://cloud.google.com/compute/docs/disks) and its [API](https://cloud.google.com/compute/docs/reference/rest/v1/regionDisks). + /// + public static Output Invoke(GetRegionDiskInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getRegionDisk:getRegionDisk", args ?? new GetRegionDiskInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Compute/GetRegionDiskIamPolicy.cs b/sdk/dotnet/Compute/GetRegionDiskIamPolicy.cs index 01edc7f6c8..d114547d58 100644 --- a/sdk/dotnet/Compute/GetRegionDiskIamPolicy.cs +++ b/sdk/dotnet/Compute/GetRegionDiskIamPolicy.cs @@ -64,6 +64,33 @@ public static Task InvokeAsync(GetRegionDiskIamPol /// public static Output Invoke(GetRegionDiskIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getRegionDiskIamPolicy:getRegionDiskIamPolicy", args ?? new GetRegionDiskIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for regiondisk + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.Compute.GetRegionDiskIamPolicy.Invoke(new() + /// { + /// Project = regiondisk.Project, + /// Region = regiondisk.Region, + /// Name = regiondisk.Name, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetRegionDiskIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getRegionDiskIamPolicy:getRegionDiskIamPolicy", args ?? new GetRegionDiskIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Compute/GetRegionInstanceGroup.cs b/sdk/dotnet/Compute/GetRegionInstanceGroup.cs index d4f9158042..f174b4d8e3 100644 --- a/sdk/dotnet/Compute/GetRegionInstanceGroup.cs +++ b/sdk/dotnet/Compute/GetRegionInstanceGroup.cs @@ -60,6 +60,31 @@ public static Task InvokeAsync(GetRegionInstanceGr /// public static Output Invoke(GetRegionInstanceGroupInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getRegionInstanceGroup:getRegionInstanceGroup", args ?? new GetRegionInstanceGroupInvokeArgs(), options.WithDefaults()); + + /// + /// Get a Compute Region Instance Group within GCE. + /// For more information, see [the official documentation](https://cloud.google.com/compute/docs/instance-groups/distributing-instances-with-regional-instance-groups) and [API](https://cloud.google.com/compute/docs/reference/latest/regionInstanceGroups). + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @group = Gcp.Compute.GetRegionInstanceGroup.Invoke(new() + /// { + /// Name = "instance-group-name", + /// }); + /// + /// }); + /// ``` + /// + /// The most common use of this datasource will be to fetch information about the instances inside regional managed instance groups, for instance: + /// + public static Output Invoke(GetRegionInstanceGroupInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getRegionInstanceGroup:getRegionInstanceGroup", args ?? new GetRegionInstanceGroupInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Compute/GetRegionInstanceGroupManager.cs b/sdk/dotnet/Compute/GetRegionInstanceGroupManager.cs index 14c80e286e..d4f7a3c56f 100644 --- a/sdk/dotnet/Compute/GetRegionInstanceGroupManager.cs +++ b/sdk/dotnet/Compute/GetRegionInstanceGroupManager.cs @@ -64,6 +64,33 @@ public static Task InvokeAsync(GetRegionIns /// public static Output Invoke(GetRegionInstanceGroupManagerInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getRegionInstanceGroupManager:getRegionInstanceGroupManager", args ?? new GetRegionInstanceGroupManagerInvokeArgs(), options.WithDefaults()); + + /// + /// Get a Compute Region Instance Group Manager within GCE. + /// For more information, see [the official documentation](https://cloud.google.com/compute/docs/instance-groups/distributing-instances-with-regional-instance-groups) + /// and [API](https://cloud.google.com/compute/docs/reference/rest/v1/regionInstanceGroupManagers) + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var rigm = Gcp.Compute.GetRegionInstanceGroupManager.Invoke(new() + /// { + /// Name = "my-igm", + /// Region = "us-central1", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetRegionInstanceGroupManagerInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getRegionInstanceGroupManager:getRegionInstanceGroupManager", args ?? new GetRegionInstanceGroupManagerInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Compute/GetRegionInstanceTemplate.cs b/sdk/dotnet/Compute/GetRegionInstanceTemplate.cs index effb527cfa..ce30afbee1 100644 --- a/sdk/dotnet/Compute/GetRegionInstanceTemplate.cs +++ b/sdk/dotnet/Compute/GetRegionInstanceTemplate.cs @@ -80,6 +80,41 @@ public static Task InvokeAsync(GetRegionInstanc /// public static Output Invoke(GetRegionInstanceTemplateInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getRegionInstanceTemplate:getRegionInstanceTemplate", args ?? new GetRegionInstanceTemplateInvokeArgs(), options.WithDefaults()); + + /// + /// Get information about a VM instance template resource within GCE. For more information see + /// [the official documentation](https://cloud.google.com/compute/docs/instance-templates) + /// and + /// [API](https://cloud.google.com/compute/docs/reference/rest/v1/regionInstanceTemplates). + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// // by name + /// var generic = Gcp.Compute.GetRegionInstanceTemplate.Invoke(new() + /// { + /// Name = "generic-tpl-20200107", + /// }); + /// + /// // using a filter + /// var generic_regex = Gcp.Compute.GetRegionInstanceTemplate.Invoke(new() + /// { + /// Filter = "name != generic-tpl-20200107", + /// MostRecent = true, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetRegionInstanceTemplateInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getRegionInstanceTemplate:getRegionInstanceTemplate", args ?? new GetRegionInstanceTemplateInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Compute/GetRegionNetworkEndpointGroup.cs b/sdk/dotnet/Compute/GetRegionNetworkEndpointGroup.cs index 0d53a35c0f..386dc14349 100644 --- a/sdk/dotnet/Compute/GetRegionNetworkEndpointGroup.cs +++ b/sdk/dotnet/Compute/GetRegionNetworkEndpointGroup.cs @@ -74,6 +74,38 @@ public static Task InvokeAsync(GetRegionNet /// public static Output Invoke(GetRegionNetworkEndpointGroupInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getRegionNetworkEndpointGroup:getRegionNetworkEndpointGroup", args ?? new GetRegionNetworkEndpointGroupInvokeArgs(), options.WithDefaults()); + + /// + /// Use this data source to access a Region Network Endpoint Group's attributes. + /// + /// The RNEG may be found by providing either a `self_link`, or a `name` and a `region`. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var rneg1 = Gcp.Compute.GetRegionNetworkEndpointGroup.Invoke(new() + /// { + /// Name = "k8s1-abcdef01-myns-mysvc-8080-4b6bac43", + /// Region = "us-central1", + /// }); + /// + /// var rneg2 = Gcp.Compute.GetRegionNetworkEndpointGroup.Invoke(new() + /// { + /// SelfLink = "https://www.googleapis.com/compute/v1/projects/myproject/regions/us-central1/networkEndpointGroups/k8s1-abcdef01-myns-mysvc-8080-4b6bac43", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetRegionNetworkEndpointGroupInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getRegionNetworkEndpointGroup:getRegionNetworkEndpointGroup", args ?? new GetRegionNetworkEndpointGroupInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Compute/GetRegionSslCertificate.cs b/sdk/dotnet/Compute/GetRegionSslCertificate.cs index 2a224466bc..1a60069d1a 100644 --- a/sdk/dotnet/Compute/GetRegionSslCertificate.cs +++ b/sdk/dotnet/Compute/GetRegionSslCertificate.cs @@ -70,6 +70,36 @@ public static Task InvokeAsync(GetRegionSslCertif /// public static Output Invoke(GetRegionSslCertificateInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getRegionSslCertificate:getRegionSslCertificate", args ?? new GetRegionSslCertificateInvokeArgs(), options.WithDefaults()); + + /// + /// Get info about a Region Google Compute SSL Certificate from its name. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var myCert = Gcp.Compute.GetRegionSslCertificate.Invoke(new() + /// { + /// Name = "my-cert", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["certificate"] = myCert.Apply(getRegionSslCertificateResult => getRegionSslCertificateResult.Certificate), + /// ["certificateId"] = myCert.Apply(getRegionSslCertificateResult => getRegionSslCertificateResult.CertificateId), + /// ["selfLink"] = myCert.Apply(getRegionSslCertificateResult => getRegionSslCertificateResult.SelfLink), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetRegionSslCertificateInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getRegionSslCertificate:getRegionSslCertificate", args ?? new GetRegionSslCertificateInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Compute/GetRegions.cs b/sdk/dotnet/Compute/GetRegions.cs index 2656c26691..37a0799062 100644 --- a/sdk/dotnet/Compute/GetRegions.cs +++ b/sdk/dotnet/Compute/GetRegions.cs @@ -76,6 +76,39 @@ public static Task InvokeAsync(GetRegionsArgs? args = null, In /// public static Output Invoke(GetRegionsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getRegions:getRegions", args ?? new GetRegionsInvokeArgs(), options.WithDefaults()); + + /// + /// Provides access to available Google Compute regions for a given project. + /// See more about [regions and zones](https://cloud.google.com/compute/docs/regions-zones/) in the upstream docs. + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using System.Threading.Tasks; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(async() => + /// { + /// var available = await Gcp.Compute.GetRegions.InvokeAsync(); + /// + /// var cluster = new List<Gcp.Compute.Subnetwork>(); + /// for (var rangeIndex = 0; rangeIndex < available.Names.Length; rangeIndex++) + /// { + /// var range = new { Value = rangeIndex }; + /// cluster.Add(new Gcp.Compute.Subnetwork($"cluster-{range.Value}", new() + /// { + /// Name = "my-network", + /// IpCidrRange = $"10.36.{range.Value}.0/24", + /// Network = "my-network", + /// Region = available.Names[range.Value], + /// })); + /// } + /// }); + /// ``` + /// + public static Output Invoke(GetRegionsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getRegions:getRegions", args ?? new GetRegionsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Compute/GetReservation.cs b/sdk/dotnet/Compute/GetReservation.cs index 6d2d877bb0..f52cc51ba1 100644 --- a/sdk/dotnet/Compute/GetReservation.cs +++ b/sdk/dotnet/Compute/GetReservation.cs @@ -58,6 +58,30 @@ public static Task InvokeAsync(GetReservationArgs args, In /// public static Output Invoke(GetReservationInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getReservation:getReservation", args ?? new GetReservationInvokeArgs(), options.WithDefaults()); + + /// + /// Provides access to available Google Compute Reservation Resources for a given project. + /// See more about [Reservations of Compute Engine resources](https://cloud.google.com/compute/docs/instances/reservations-overview) in the upstream docs. + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var reservation = Gcp.Compute.GetReservation.Invoke(new() + /// { + /// Name = "gce-reservation", + /// Zone = "us-central1-a", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetReservationInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getReservation:getReservation", args ?? new GetReservationInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Compute/GetResourcePolicy.cs b/sdk/dotnet/Compute/GetResourcePolicy.cs index 2bbcc100c3..288f30d0ba 100644 --- a/sdk/dotnet/Compute/GetResourcePolicy.cs +++ b/sdk/dotnet/Compute/GetResourcePolicy.cs @@ -56,6 +56,29 @@ public static Task InvokeAsync(GetResourcePolicyArgs ar /// public static Output Invoke(GetResourcePolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getResourcePolicy:getResourcePolicy", args ?? new GetResourcePolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Provide access to a Resource Policy's attributes. For more information see [the official documentation](https://cloud.google.com/compute/docs/disks/scheduled-snapshots) or the [API](https://cloud.google.com/compute/docs/reference/rest/beta/resourcePolicies). + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var daily = Gcp.Compute.GetResourcePolicy.Invoke(new() + /// { + /// Name = "daily", + /// Region = "us-central1", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetResourcePolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getResourcePolicy:getResourcePolicy", args ?? new GetResourcePolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Compute/GetRouter.cs b/sdk/dotnet/Compute/GetRouter.cs index 371b064fcf..36763746e1 100644 --- a/sdk/dotnet/Compute/GetRouter.cs +++ b/sdk/dotnet/Compute/GetRouter.cs @@ -60,6 +60,31 @@ public static Task InvokeAsync(GetRouterArgs args, InvokeOption /// public static Output Invoke(GetRouterInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getRouter:getRouter", args ?? new GetRouterInvokeArgs(), options.WithDefaults()); + + /// + /// Get a router within GCE from its name and VPC. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var my_router = Gcp.Compute.GetRouter.Invoke(new() + /// { + /// Name = "myrouter-us-east1", + /// Network = "my-network", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetRouterInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getRouter:getRouter", args ?? new GetRouterInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Compute/GetRouterNat.cs b/sdk/dotnet/Compute/GetRouterNat.cs index 32166e0e67..7bd60bb6d2 100644 --- a/sdk/dotnet/Compute/GetRouterNat.cs +++ b/sdk/dotnet/Compute/GetRouterNat.cs @@ -68,6 +68,35 @@ public static Task InvokeAsync(GetRouterNatArgs args, Invoke /// public static Output Invoke(GetRouterNatInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getRouterNat:getRouterNat", args ?? new GetRouterNatInvokeArgs(), options.WithDefaults()); + + /// + /// To get more information about Snapshot, see: + /// + /// * [API documentation](https://cloud.google.com/compute/docs/reference/rest/v1/routers) + /// * How-to Guides + /// * [Official Documentation](https://cloud.google.com/router/docs/) + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var foo = Gcp.Compute.GetRouterNat.Invoke(new() + /// { + /// Name = "my-nat", + /// Router = "my-router", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetRouterNatInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getRouterNat:getRouterNat", args ?? new GetRouterNatInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Compute/GetRouterStatus.cs b/sdk/dotnet/Compute/GetRouterStatus.cs index ab93d68e8b..9f46422230 100644 --- a/sdk/dotnet/Compute/GetRouterStatus.cs +++ b/sdk/dotnet/Compute/GetRouterStatus.cs @@ -68,6 +68,35 @@ public static Task InvokeAsync(GetRouterStatusArgs args, /// public static Output Invoke(GetRouterStatusInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getRouterStatus:getRouterStatus", args ?? new GetRouterStatusInvokeArgs(), options.WithDefaults()); + + /// + /// Get a Cloud Router's status within GCE from its name and region. This data source exposes the + /// routes learned by a Cloud Router via BGP peers. + /// + /// For more information see [the official documentation](https://cloud.google.com/network-connectivity/docs/router/how-to/viewing-router-details) + /// and + /// [API](https://cloud.google.com/compute/docs/reference/rest/v1/routers/getRouterStatus). + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var my_router = Gcp.Compute.GetRouterStatus.Invoke(new() + /// { + /// Name = "myrouter", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetRouterStatusInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getRouterStatus:getRouterStatus", args ?? new GetRouterStatusInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Compute/GetSSLPolicy.cs b/sdk/dotnet/Compute/GetSSLPolicy.cs index 8e366ebe95..0d199054b1 100644 --- a/sdk/dotnet/Compute/GetSSLPolicy.cs +++ b/sdk/dotnet/Compute/GetSSLPolicy.cs @@ -60,6 +60,31 @@ public static Task InvokeAsync(GetSSLPolicyArgs args, Invoke /// public static Output Invoke(GetSSLPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getSSLPolicy:getSSLPolicy", args ?? new GetSSLPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Gets an SSL Policy within GCE from its name, for use with Target HTTPS and Target SSL Proxies. + /// For more information see [the official documentation](https://cloud.google.com/compute/docs/load-balancing/ssl-policies). + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var my_ssl_policy = Gcp.Compute.GetSSLPolicy.Invoke(new() + /// { + /// Name = "production-ssl-policy", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetSSLPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getSSLPolicy:getSSLPolicy", args ?? new GetSSLPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Compute/GetSecurityPolicy.cs b/sdk/dotnet/Compute/GetSecurityPolicy.cs index 2fcfac191c..2102999c4a 100644 --- a/sdk/dotnet/Compute/GetSecurityPolicy.cs +++ b/sdk/dotnet/Compute/GetSecurityPolicy.cs @@ -78,6 +78,40 @@ public static Task InvokeAsync(GetSecurityPolicyArgs? a /// public static Output Invoke(GetSecurityPolicyInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getSecurityPolicy:getSecurityPolicy", args ?? new GetSecurityPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// To get more information about Google Compute Security Policy, see: + /// + /// * [API documentation](https://cloud.google.com/compute/docs/reference/rest/beta/securityPolicies) + /// * How-to Guides + /// * [Official Documentation](https://cloud.google.com/armor/docs/configure-security-policies) + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var sp1 = Gcp.Compute.GetSecurityPolicy.Invoke(new() + /// { + /// Name = "my-policy", + /// Project = "my-project", + /// }); + /// + /// var sp2 = Gcp.Compute.GetSecurityPolicy.Invoke(new() + /// { + /// SelfLink = "https://www.googleapis.com/compute/v1/projects/my-project/global/securityPolicies/my-policy", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetSecurityPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getSecurityPolicy:getSecurityPolicy", args ?? new GetSecurityPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Compute/GetSnapshot.cs b/sdk/dotnet/Compute/GetSnapshot.cs index 66d51f7ce0..e63a5e8ed6 100644 --- a/sdk/dotnet/Compute/GetSnapshot.cs +++ b/sdk/dotnet/Compute/GetSnapshot.cs @@ -82,6 +82,42 @@ public static Task InvokeAsync(GetSnapshotArgs? args = null, /// public static Output Invoke(GetSnapshotInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getSnapshot:getSnapshot", args ?? new GetSnapshotInvokeArgs(), options.WithDefaults()); + + /// + /// To get more information about Snapshot, see: + /// + /// * [API documentation](https://cloud.google.com/compute/docs/reference/rest/v1/snapshots) + /// * How-to Guides + /// * [Official Documentation](https://cloud.google.com/compute/docs/disks/create-snapshots) + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// //by name + /// var snapshot = Gcp.Compute.GetSnapshot.Invoke(new() + /// { + /// Name = "my-snapshot", + /// }); + /// + /// // using a filter + /// var latest_snapshot = Gcp.Compute.GetSnapshot.Invoke(new() + /// { + /// Filter = "name != my-snapshot", + /// MostRecent = true, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetSnapshotInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getSnapshot:getSnapshot", args ?? new GetSnapshotInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Compute/GetSnapshotIamPolicy.cs b/sdk/dotnet/Compute/GetSnapshotIamPolicy.cs index 39c86034d4..cfd8bb506c 100644 --- a/sdk/dotnet/Compute/GetSnapshotIamPolicy.cs +++ b/sdk/dotnet/Compute/GetSnapshotIamPolicy.cs @@ -62,6 +62,32 @@ public static Task InvokeAsync(GetSnapshotIamPolicyA /// public static Output Invoke(GetSnapshotIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getSnapshotIamPolicy:getSnapshotIamPolicy", args ?? new GetSnapshotIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for snapshot + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.Compute.GetSnapshotIamPolicy.Invoke(new() + /// { + /// Project = snapshot.Project, + /// Name = snapshot.Name, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetSnapshotIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getSnapshotIamPolicy:getSnapshotIamPolicy", args ?? new GetSnapshotIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Compute/GetSubnetwork.cs b/sdk/dotnet/Compute/GetSubnetwork.cs index 75c8b0f47d..c3796936de 100644 --- a/sdk/dotnet/Compute/GetSubnetwork.cs +++ b/sdk/dotnet/Compute/GetSubnetwork.cs @@ -60,6 +60,31 @@ public static Task InvokeAsync(GetSubnetworkArgs? args = nu /// public static Output Invoke(GetSubnetworkInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getSubnetwork:getSubnetwork", args ?? new GetSubnetworkInvokeArgs(), options.WithDefaults()); + + /// + /// Get a subnetwork within GCE from its name and region. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var my_subnetwork = Gcp.Compute.GetSubnetwork.Invoke(new() + /// { + /// Name = "default-us-east1", + /// Region = "us-east1", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetSubnetworkInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getSubnetwork:getSubnetwork", args ?? new GetSubnetworkInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Compute/GetSubnetworkIamPolicy.cs b/sdk/dotnet/Compute/GetSubnetworkIamPolicy.cs index 793f06d884..6f2c3f059d 100644 --- a/sdk/dotnet/Compute/GetSubnetworkIamPolicy.cs +++ b/sdk/dotnet/Compute/GetSubnetworkIamPolicy.cs @@ -64,6 +64,33 @@ public static Task InvokeAsync(GetSubnetworkIamPol /// public static Output Invoke(GetSubnetworkIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getSubnetworkIamPolicy:getSubnetworkIamPolicy", args ?? new GetSubnetworkIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for subnetwork + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.Compute.GetSubnetworkIamPolicy.Invoke(new() + /// { + /// Project = network_with_private_secondary_ip_ranges.Project, + /// Region = network_with_private_secondary_ip_ranges.Region, + /// Subnetwork = network_with_private_secondary_ip_ranges.Name, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetSubnetworkIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getSubnetworkIamPolicy:getSubnetworkIamPolicy", args ?? new GetSubnetworkIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Compute/GetSubnetworks.cs b/sdk/dotnet/Compute/GetSubnetworks.cs index 3c37da2b13..3f669ebaa9 100644 --- a/sdk/dotnet/Compute/GetSubnetworks.cs +++ b/sdk/dotnet/Compute/GetSubnetworks.cs @@ -66,6 +66,34 @@ public static Task InvokeAsync(GetSubnetworksArgs? args = /// public static Output Invoke(GetSubnetworksInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getSubnetworks:getSubnetworks", args ?? new GetSubnetworksInvokeArgs(), options.WithDefaults()); + + /// + /// Get subnetworks within GCE. + /// See [the official documentation](https://cloud.google.com/vpc/docs/subnets) + /// and [API](https://cloud.google.com/compute/docs/reference/rest/v1/subnetworks/list). + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var my_subnetworks = Gcp.Compute.GetSubnetworks.Invoke(new() + /// { + /// Filter = "ipCidrRange eq 192.168.178.0/24", + /// Project = "my-project", + /// Region = "us-east1", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetSubnetworksInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getSubnetworks:getSubnetworks", args ?? new GetSubnetworksInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Compute/GetVPNGateway.cs b/sdk/dotnet/Compute/GetVPNGateway.cs index 7d490df219..0fdba8937a 100644 --- a/sdk/dotnet/Compute/GetVPNGateway.cs +++ b/sdk/dotnet/Compute/GetVPNGateway.cs @@ -58,6 +58,30 @@ public static Task InvokeAsync(GetVPNGatewayArgs args, Invo /// public static Output Invoke(GetVPNGatewayInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getVPNGateway:getVPNGateway", args ?? new GetVPNGatewayInvokeArgs(), options.WithDefaults()); + + /// + /// Get a VPN gateway within GCE from its name. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var my_vpn_gateway = Gcp.Compute.GetVPNGateway.Invoke(new() + /// { + /// Name = "vpn-gateway-us-east1", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetVPNGatewayInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getVPNGateway:getVPNGateway", args ?? new GetVPNGatewayInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Compute/GetZones.cs b/sdk/dotnet/Compute/GetZones.cs index d568bb2e55..0abaa0d285 100644 --- a/sdk/dotnet/Compute/GetZones.cs +++ b/sdk/dotnet/Compute/GetZones.cs @@ -24,6 +24,13 @@ public static Task InvokeAsync(GetZonesArgs? args = null, Invoke /// public static Output Invoke(GetZonesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getZones:getZones", args ?? new GetZonesInvokeArgs(), options.WithDefaults()); + + /// + /// Provides access to available Google Compute zones in a region for a given project. + /// See more about [regions and zones](https://cloud.google.com/compute/docs/regions-zones/regions-zones) in the upstream docs. + /// + public static Output Invoke(GetZonesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getZones:getZones", args ?? new GetZonesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Compute/RouterStatus.cs b/sdk/dotnet/Compute/RouterStatus.cs index 537a4e5bdc..1ae1cce8c7 100644 --- a/sdk/dotnet/Compute/RouterStatus.cs +++ b/sdk/dotnet/Compute/RouterStatus.cs @@ -69,6 +69,35 @@ public static Task InvokeAsync(RouterStatusArgs args, Invoke /// public static Output Invoke(RouterStatusInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/routerStatus:RouterStatus", args ?? new RouterStatusInvokeArgs(), options.WithDefaults()); + + /// + /// Get a Cloud Router's status within GCE from its name and region. This data source exposes the + /// routes learned by a Cloud Router via BGP peers. + /// + /// For more information see [the official documentation](https://cloud.google.com/network-connectivity/docs/router/how-to/viewing-router-details) + /// and + /// [API](https://cloud.google.com/compute/docs/reference/rest/v1/routers/getRouterStatus). + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var my_router = Gcp.Compute.GetRouterStatus.Invoke(new() + /// { + /// Name = "myrouter", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(RouterStatusInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/routerStatus:RouterStatus", args ?? new RouterStatusInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Container/GetAttachedInstallManifest.cs b/sdk/dotnet/Container/GetAttachedInstallManifest.cs index 0233298b1a..52b4ba2684 100644 --- a/sdk/dotnet/Container/GetAttachedInstallManifest.cs +++ b/sdk/dotnet/Container/GetAttachedInstallManifest.cs @@ -72,6 +72,37 @@ public static Task InvokeAsync(GetAttachedInst /// public static Output Invoke(GetAttachedInstallManifestInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:container/getAttachedInstallManifest:getAttachedInstallManifest", args ?? new GetAttachedInstallManifestInvokeArgs(), options.WithDefaults()); + + /// + /// Provides access to available platform versions in a location for a given project. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var manifest = Gcp.Container.GetAttachedInstallManifest.Invoke(new() + /// { + /// Location = "us-west1", + /// Project = "my-project", + /// ClusterId = "test-cluster-1", + /// PlatformVersion = "1.25.0-gke.1", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["installManifest"] = manifest, + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetAttachedInstallManifestInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:container/getAttachedInstallManifest:getAttachedInstallManifest", args ?? new GetAttachedInstallManifestInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Container/GetAttachedVersions.cs b/sdk/dotnet/Container/GetAttachedVersions.cs index dccb02e9a6..e7db61f27d 100644 --- a/sdk/dotnet/Container/GetAttachedVersions.cs +++ b/sdk/dotnet/Container/GetAttachedVersions.cs @@ -68,6 +68,35 @@ public static Task InvokeAsync(GetAttachedVersionsArg /// public static Output Invoke(GetAttachedVersionsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:container/getAttachedVersions:getAttachedVersions", args ?? new GetAttachedVersionsInvokeArgs(), options.WithDefaults()); + + /// + /// Provides access to available platform versions in a location for a given project. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var uswest = Gcp.Container.GetAttachedVersions.Invoke(new() + /// { + /// Location = "us-west1", + /// Project = "my-project", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstAvailableVersion"] = versions.ValidVersions[0], + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetAttachedVersionsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:container/getAttachedVersions:getAttachedVersions", args ?? new GetAttachedVersionsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Container/GetAwsVersions.cs b/sdk/dotnet/Container/GetAwsVersions.cs index a1844c3fb9..04cebc1baa 100644 --- a/sdk/dotnet/Container/GetAwsVersions.cs +++ b/sdk/dotnet/Container/GetAwsVersions.cs @@ -68,6 +68,35 @@ public static Task InvokeAsync(GetAwsVersionsArgs? args = /// public static Output Invoke(GetAwsVersionsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:container/getAwsVersions:getAwsVersions", args ?? new GetAwsVersionsInvokeArgs(), options.WithDefaults()); + + /// + /// Provides access to available Kubernetes versions in a location for a given project. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var central1b = Gcp.Container.GetAwsVersions.Invoke(new() + /// { + /// Location = "us-west1", + /// Project = "my-project", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstAvailableVersion"] = versions.ValidVersions[0], + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetAwsVersionsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:container/getAwsVersions:getAwsVersions", args ?? new GetAwsVersionsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Container/GetAzureVersions.cs b/sdk/dotnet/Container/GetAzureVersions.cs index d0ab4e8897..21439f466c 100644 --- a/sdk/dotnet/Container/GetAzureVersions.cs +++ b/sdk/dotnet/Container/GetAzureVersions.cs @@ -68,6 +68,35 @@ public static Task InvokeAsync(GetAzureVersionsArgs? arg /// public static Output Invoke(GetAzureVersionsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:container/getAzureVersions:getAzureVersions", args ?? new GetAzureVersionsInvokeArgs(), options.WithDefaults()); + + /// + /// Provides access to available Kubernetes versions in a location for a given project. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var central1b = Gcp.Container.GetAzureVersions.Invoke(new() + /// { + /// Location = "us-west1", + /// Project = "my-project", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstAvailableVersion"] = versions.ValidVersions[0], + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetAzureVersionsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:container/getAzureVersions:getAzureVersions", args ?? new GetAzureVersionsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Container/GetCluster.cs b/sdk/dotnet/Container/GetCluster.cs index 1fd1e57f21..fdbb081523 100644 --- a/sdk/dotnet/Container/GetCluster.cs +++ b/sdk/dotnet/Container/GetCluster.cs @@ -74,6 +74,38 @@ public static Task InvokeAsync(GetClusterArgs args, InvokeOpti /// public static Output Invoke(GetClusterInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:container/getCluster:getCluster", args ?? new GetClusterInvokeArgs(), options.WithDefaults()); + + /// + /// Get info about a GKE cluster from its name and location. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var myCluster = Gcp.Container.GetCluster.Invoke(new() + /// { + /// Name = "my-cluster", + /// Location = "us-east1-a", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["endpoint"] = myCluster.Apply(getClusterResult => getClusterResult.Endpoint), + /// ["instanceGroupUrls"] = myCluster.Apply(getClusterResult => getClusterResult.NodePools[0]?.InstanceGroupUrls), + /// ["nodeConfig"] = myCluster.Apply(getClusterResult => getClusterResult.NodeConfigs), + /// ["nodePools"] = myCluster.Apply(getClusterResult => getClusterResult.NodePools), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetClusterInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:container/getCluster:getCluster", args ?? new GetClusterInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Container/GetEngineVersions.cs b/sdk/dotnet/Container/GetEngineVersions.cs index 8018841368..813d1e4ae1 100644 --- a/sdk/dotnet/Container/GetEngineVersions.cs +++ b/sdk/dotnet/Container/GetEngineVersions.cs @@ -104,6 +104,53 @@ public static Task InvokeAsync(GetEngineVersionsArgs? a /// public static Output Invoke(GetEngineVersionsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:container/getEngineVersions:getEngineVersions", args ?? new GetEngineVersionsInvokeArgs(), options.WithDefaults()); + + /// + /// Provides access to available Google Kubernetes Engine versions in a zone or region for a given project. + /// + /// To get more information about GKE versions, see: + /// * [The API reference](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations/getServerConfig) + /// + /// > If you are using the `gcp.container.getEngineVersions` datasource with a + /// regional cluster, ensure that you have provided a region as the `location` to + /// the datasource. A region can have a different set of supported versions than + /// its component zones, and not all zones in a region are guaranteed to + /// support the same version. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var central1b = Gcp.Container.GetEngineVersions.Invoke(new() + /// { + /// Location = "us-central1-b", + /// VersionPrefix = "1.12.", + /// }); + /// + /// var foo = new Gcp.Container.Cluster("foo", new() + /// { + /// Name = "test-cluster", + /// Location = "us-central1-b", + /// NodeVersion = central1b.Apply(getEngineVersionsResult => getEngineVersionsResult.LatestNodeVersion), + /// InitialNodeCount = 1, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["stableChannelDefaultVersion"] = central1b.Apply(getEngineVersionsResult => getEngineVersionsResult.ReleaseChannelDefaultVersion?.STABLE), + /// ["stableChannelLatestVersion"] = central1b.Apply(getEngineVersionsResult => getEngineVersionsResult.ReleaseChannelLatestVersion?.STABLE), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetEngineVersionsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:container/getEngineVersions:getEngineVersions", args ?? new GetEngineVersionsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Container/GetRegistryImage.cs b/sdk/dotnet/Container/GetRegistryImage.cs index a1b2d38d48..bd8164c98e 100644 --- a/sdk/dotnet/Container/GetRegistryImage.cs +++ b/sdk/dotnet/Container/GetRegistryImage.cs @@ -70,6 +70,36 @@ public static Task InvokeAsync(GetRegistryImageArgs args /// public static Output Invoke(GetRegistryImageInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:container/getRegistryImage:getRegistryImage", args ?? new GetRegistryImageInvokeArgs(), options.WithDefaults()); + + /// + /// This data source fetches the project name, and provides the appropriate URLs to use for container registry for this project. + /// + /// The URLs are computed entirely offline - as long as the project exists, they will be valid, but this data source does not contact Google Container Registry (GCR) at any point. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var debian = Gcp.Container.GetRegistryImage.Invoke(new() + /// { + /// Name = "debian", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["gcrLocation"] = debian.Apply(getRegistryImageResult => getRegistryImageResult.ImageUrl), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetRegistryImageInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:container/getRegistryImage:getRegistryImage", args ?? new GetRegistryImageInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Container/GetRegistryRepository.cs b/sdk/dotnet/Container/GetRegistryRepository.cs index f14573002d..06b3201dd9 100644 --- a/sdk/dotnet/Container/GetRegistryRepository.cs +++ b/sdk/dotnet/Container/GetRegistryRepository.cs @@ -64,6 +64,33 @@ public static Task InvokeAsync(GetRegistryRepositor /// public static Output Invoke(GetRegistryRepositoryInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:container/getRegistryRepository:getRegistryRepository", args ?? new GetRegistryRepositoryInvokeArgs(), options.WithDefaults()); + + /// + /// This data source fetches the project name, and provides the appropriate URLs to use for container registry for this project. + /// + /// The URLs are computed entirely offline - as long as the project exists, they will be valid, but this data source does not contact Google Container Registry (GCR) at any point. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var foo = Gcp.Container.GetRegistryRepository.Invoke(); + /// + /// return new Dictionary<string, object?> + /// { + /// ["gcrLocation"] = foo.Apply(getRegistryRepositoryResult => getRegistryRepositoryResult.RepositoryUrl), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetRegistryRepositoryInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:container/getRegistryRepository:getRegistryRepository", args ?? new GetRegistryRepositoryInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/ContainerAnalysis/GetNoteIamPolicy.cs b/sdk/dotnet/ContainerAnalysis/GetNoteIamPolicy.cs index cbf01c6f0b..90c0976d30 100644 --- a/sdk/dotnet/ContainerAnalysis/GetNoteIamPolicy.cs +++ b/sdk/dotnet/ContainerAnalysis/GetNoteIamPolicy.cs @@ -62,6 +62,32 @@ public static Task InvokeAsync(GetNoteIamPolicyArgs args /// public static Output Invoke(GetNoteIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:containeranalysis/getNoteIamPolicy:getNoteIamPolicy", args ?? new GetNoteIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for note + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.ContainerAnalysis.GetNoteIamPolicy.Invoke(new() + /// { + /// Project = note.Project, + /// Note = note.Name, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetNoteIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:containeranalysis/getNoteIamPolicy:getNoteIamPolicy", args ?? new GetNoteIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/DataCatalog/GetEntryGroupIamPolicy.cs b/sdk/dotnet/DataCatalog/GetEntryGroupIamPolicy.cs index 7ec3ca47ce..fecd6040bb 100644 --- a/sdk/dotnet/DataCatalog/GetEntryGroupIamPolicy.cs +++ b/sdk/dotnet/DataCatalog/GetEntryGroupIamPolicy.cs @@ -60,6 +60,31 @@ public static Task InvokeAsync(GetEntryGroupIamPol /// public static Output Invoke(GetEntryGroupIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:datacatalog/getEntryGroupIamPolicy:getEntryGroupIamPolicy", args ?? new GetEntryGroupIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for entrygroup + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.DataCatalog.GetEntryGroupIamPolicy.Invoke(new() + /// { + /// EntryGroup = basicEntryGroup.Name, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetEntryGroupIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:datacatalog/getEntryGroupIamPolicy:getEntryGroupIamPolicy", args ?? new GetEntryGroupIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/DataCatalog/GetPolicyTagIamPolicy.cs b/sdk/dotnet/DataCatalog/GetPolicyTagIamPolicy.cs index f925fa6b97..a67d1fff63 100644 --- a/sdk/dotnet/DataCatalog/GetPolicyTagIamPolicy.cs +++ b/sdk/dotnet/DataCatalog/GetPolicyTagIamPolicy.cs @@ -60,6 +60,31 @@ public static Task InvokeAsync(GetPolicyTagIamPolic /// public static Output Invoke(GetPolicyTagIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:datacatalog/getPolicyTagIamPolicy:getPolicyTagIamPolicy", args ?? new GetPolicyTagIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for policytag + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.DataCatalog.GetPolicyTagIamPolicy.Invoke(new() + /// { + /// PolicyTag = basicPolicyTag.Name, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetPolicyTagIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:datacatalog/getPolicyTagIamPolicy:getPolicyTagIamPolicy", args ?? new GetPolicyTagIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/DataCatalog/GetTagTemplateIamPolicy.cs b/sdk/dotnet/DataCatalog/GetTagTemplateIamPolicy.cs index 9d9d7985a1..e76b2f5ed7 100644 --- a/sdk/dotnet/DataCatalog/GetTagTemplateIamPolicy.cs +++ b/sdk/dotnet/DataCatalog/GetTagTemplateIamPolicy.cs @@ -60,6 +60,31 @@ public static Task InvokeAsync(GetTagTemplateIamP /// public static Output Invoke(GetTagTemplateIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:datacatalog/getTagTemplateIamPolicy:getTagTemplateIamPolicy", args ?? new GetTagTemplateIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for tagtemplate + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.DataCatalog.GetTagTemplateIamPolicy.Invoke(new() + /// { + /// TagTemplate = basicTagTemplate.Name, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetTagTemplateIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:datacatalog/getTagTemplateIamPolicy:getTagTemplateIamPolicy", args ?? new GetTagTemplateIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/DataCatalog/GetTaxonomyIamPolicy.cs b/sdk/dotnet/DataCatalog/GetTaxonomyIamPolicy.cs index 16fee7b2f4..dd7167a56d 100644 --- a/sdk/dotnet/DataCatalog/GetTaxonomyIamPolicy.cs +++ b/sdk/dotnet/DataCatalog/GetTaxonomyIamPolicy.cs @@ -60,6 +60,31 @@ public static Task InvokeAsync(GetTaxonomyIamPolicyA /// public static Output Invoke(GetTaxonomyIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:datacatalog/getTaxonomyIamPolicy:getTaxonomyIamPolicy", args ?? new GetTaxonomyIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for taxonomy + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.DataCatalog.GetTaxonomyIamPolicy.Invoke(new() + /// { + /// Taxonomy = basicTaxonomy.Name, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetTaxonomyIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:datacatalog/getTaxonomyIamPolicy:getTaxonomyIamPolicy", args ?? new GetTaxonomyIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/DataFusion/GetInstanceIamPolicy.cs b/sdk/dotnet/DataFusion/GetInstanceIamPolicy.cs index dc0549fc18..3f521e5b50 100644 --- a/sdk/dotnet/DataFusion/GetInstanceIamPolicy.cs +++ b/sdk/dotnet/DataFusion/GetInstanceIamPolicy.cs @@ -64,6 +64,33 @@ public static Task InvokeAsync(GetInstanceIamPolicyA /// public static Output Invoke(GetInstanceIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:datafusion/getInstanceIamPolicy:getInstanceIamPolicy", args ?? new GetInstanceIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for instance + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.DataFusion.GetInstanceIamPolicy.Invoke(new() + /// { + /// Project = basicInstance.Project, + /// Region = basicInstance.Region, + /// Name = basicInstance.Name, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetInstanceIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:datafusion/getInstanceIamPolicy:getInstanceIamPolicy", args ?? new GetInstanceIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/DataPlex/GetAspectTypeIamPolicy.cs b/sdk/dotnet/DataPlex/GetAspectTypeIamPolicy.cs index ae739501d3..891ed08afc 100644 --- a/sdk/dotnet/DataPlex/GetAspectTypeIamPolicy.cs +++ b/sdk/dotnet/DataPlex/GetAspectTypeIamPolicy.cs @@ -64,6 +64,33 @@ public static Task InvokeAsync(GetAspectTypeIamPol /// public static Output Invoke(GetAspectTypeIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:dataplex/getAspectTypeIamPolicy:getAspectTypeIamPolicy", args ?? new GetAspectTypeIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for aspecttype + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.DataPlex.GetAspectTypeIamPolicy.Invoke(new() + /// { + /// Project = testAspectTypeBasic.Project, + /// Location = testAspectTypeBasic.Location, + /// AspectTypeId = testAspectTypeBasic.AspectTypeId, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetAspectTypeIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:dataplex/getAspectTypeIamPolicy:getAspectTypeIamPolicy", args ?? new GetAspectTypeIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/DataPlex/GetAssetIamPolicy.cs b/sdk/dotnet/DataPlex/GetAssetIamPolicy.cs index b14dced733..dbde8a19d4 100644 --- a/sdk/dotnet/DataPlex/GetAssetIamPolicy.cs +++ b/sdk/dotnet/DataPlex/GetAssetIamPolicy.cs @@ -68,6 +68,35 @@ public static Task InvokeAsync(GetAssetIamPolicyArgs ar /// public static Output Invoke(GetAssetIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:dataplex/getAssetIamPolicy:getAssetIamPolicy", args ?? new GetAssetIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for asset + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.DataPlex.GetAssetIamPolicy.Invoke(new() + /// { + /// Project = example.Project, + /// Location = example.Location, + /// Lake = example.Lake, + /// DataplexZone = example.DataplexZone, + /// Asset = example.Name, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetAssetIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:dataplex/getAssetIamPolicy:getAssetIamPolicy", args ?? new GetAssetIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/DataPlex/GetDatascanIamPolicy.cs b/sdk/dotnet/DataPlex/GetDatascanIamPolicy.cs index c79df50999..9bba44c6dd 100644 --- a/sdk/dotnet/DataPlex/GetDatascanIamPolicy.cs +++ b/sdk/dotnet/DataPlex/GetDatascanIamPolicy.cs @@ -64,6 +64,33 @@ public static Task InvokeAsync(GetDatascanIamPolicyA /// public static Output Invoke(GetDatascanIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:dataplex/getDatascanIamPolicy:getDatascanIamPolicy", args ?? new GetDatascanIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for datascan + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.DataPlex.GetDatascanIamPolicy.Invoke(new() + /// { + /// Project = basicProfile.Project, + /// Location = basicProfile.Location, + /// DataScanId = basicProfile.DataScanId, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetDatascanIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:dataplex/getDatascanIamPolicy:getDatascanIamPolicy", args ?? new GetDatascanIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/DataPlex/GetEntryGroupIamPolicy.cs b/sdk/dotnet/DataPlex/GetEntryGroupIamPolicy.cs index 69f56e3fd0..7f6bacf395 100644 --- a/sdk/dotnet/DataPlex/GetEntryGroupIamPolicy.cs +++ b/sdk/dotnet/DataPlex/GetEntryGroupIamPolicy.cs @@ -64,6 +64,33 @@ public static Task InvokeAsync(GetEntryGroupIamPol /// public static Output Invoke(GetEntryGroupIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:dataplex/getEntryGroupIamPolicy:getEntryGroupIamPolicy", args ?? new GetEntryGroupIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for entrygroup + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.DataPlex.GetEntryGroupIamPolicy.Invoke(new() + /// { + /// Project = testEntryGroupBasic.Project, + /// Location = testEntryGroupBasic.Location, + /// EntryGroupId = testEntryGroupBasic.EntryGroupId, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetEntryGroupIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:dataplex/getEntryGroupIamPolicy:getEntryGroupIamPolicy", args ?? new GetEntryGroupIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/DataPlex/GetEntryTypeIamPolicy.cs b/sdk/dotnet/DataPlex/GetEntryTypeIamPolicy.cs index 6c319bc4a0..c557966cc2 100644 --- a/sdk/dotnet/DataPlex/GetEntryTypeIamPolicy.cs +++ b/sdk/dotnet/DataPlex/GetEntryTypeIamPolicy.cs @@ -64,6 +64,33 @@ public static Task InvokeAsync(GetEntryTypeIamPolic /// public static Output Invoke(GetEntryTypeIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:dataplex/getEntryTypeIamPolicy:getEntryTypeIamPolicy", args ?? new GetEntryTypeIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for entrytype + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.DataPlex.GetEntryTypeIamPolicy.Invoke(new() + /// { + /// Project = testEntryTypeBasic.Project, + /// Location = testEntryTypeBasic.Location, + /// EntryTypeId = testEntryTypeBasic.EntryTypeId, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetEntryTypeIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:dataplex/getEntryTypeIamPolicy:getEntryTypeIamPolicy", args ?? new GetEntryTypeIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/DataPlex/GetLakeIamPolicy.cs b/sdk/dotnet/DataPlex/GetLakeIamPolicy.cs index db0c8cc97c..9b5ae5c47a 100644 --- a/sdk/dotnet/DataPlex/GetLakeIamPolicy.cs +++ b/sdk/dotnet/DataPlex/GetLakeIamPolicy.cs @@ -64,6 +64,33 @@ public static Task InvokeAsync(GetLakeIamPolicyArgs args /// public static Output Invoke(GetLakeIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:dataplex/getLakeIamPolicy:getLakeIamPolicy", args ?? new GetLakeIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for lake + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.DataPlex.GetLakeIamPolicy.Invoke(new() + /// { + /// Project = example.Project, + /// Location = example.Location, + /// Lake = example.Name, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetLakeIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:dataplex/getLakeIamPolicy:getLakeIamPolicy", args ?? new GetLakeIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/DataPlex/GetTaskIamPolicy.cs b/sdk/dotnet/DataPlex/GetTaskIamPolicy.cs index 83fd7117c3..a8ba5a9b83 100644 --- a/sdk/dotnet/DataPlex/GetTaskIamPolicy.cs +++ b/sdk/dotnet/DataPlex/GetTaskIamPolicy.cs @@ -66,6 +66,34 @@ public static Task InvokeAsync(GetTaskIamPolicyArgs args /// public static Output Invoke(GetTaskIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:dataplex/getTaskIamPolicy:getTaskIamPolicy", args ?? new GetTaskIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for task + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.DataPlex.GetTaskIamPolicy.Invoke(new() + /// { + /// Project = example.Project, + /// Location = example.Location, + /// Lake = example.Lake, + /// TaskId = example.TaskId, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetTaskIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:dataplex/getTaskIamPolicy:getTaskIamPolicy", args ?? new GetTaskIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/DataPlex/GetZoneIamPolicy.cs b/sdk/dotnet/DataPlex/GetZoneIamPolicy.cs index 6471842877..a98fc9d7cd 100644 --- a/sdk/dotnet/DataPlex/GetZoneIamPolicy.cs +++ b/sdk/dotnet/DataPlex/GetZoneIamPolicy.cs @@ -66,6 +66,34 @@ public static Task InvokeAsync(GetZoneIamPolicyArgs args /// public static Output Invoke(GetZoneIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:dataplex/getZoneIamPolicy:getZoneIamPolicy", args ?? new GetZoneIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for zone + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.DataPlex.GetZoneIamPolicy.Invoke(new() + /// { + /// Project = example.Project, + /// Location = example.Location, + /// Lake = example.Lake, + /// DataplexZone = example.Name, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetZoneIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:dataplex/getZoneIamPolicy:getZoneIamPolicy", args ?? new GetZoneIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Dataform/GetRepositoryIamPolicy.cs b/sdk/dotnet/Dataform/GetRepositoryIamPolicy.cs index 6e35ef91c2..ac54690451 100644 --- a/sdk/dotnet/Dataform/GetRepositoryIamPolicy.cs +++ b/sdk/dotnet/Dataform/GetRepositoryIamPolicy.cs @@ -16,6 +16,9 @@ public static Task InvokeAsync(GetRepositoryIamPol public static Output Invoke(GetRepositoryIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:dataform/getRepositoryIamPolicy:getRepositoryIamPolicy", args ?? new GetRepositoryIamPolicyInvokeArgs(), options.WithDefaults()); + + public static Output Invoke(GetRepositoryIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:dataform/getRepositoryIamPolicy:getRepositoryIamPolicy", args ?? new GetRepositoryIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Dataproc/GetAutoscalingPolicyIamPolicy.cs b/sdk/dotnet/Dataproc/GetAutoscalingPolicyIamPolicy.cs index aee790da7b..d0cd703e89 100644 --- a/sdk/dotnet/Dataproc/GetAutoscalingPolicyIamPolicy.cs +++ b/sdk/dotnet/Dataproc/GetAutoscalingPolicyIamPolicy.cs @@ -64,6 +64,33 @@ public static Task InvokeAsync(GetAutoscali /// public static Output Invoke(GetAutoscalingPolicyIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:dataproc/getAutoscalingPolicyIamPolicy:getAutoscalingPolicyIamPolicy", args ?? new GetAutoscalingPolicyIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for autoscalingpolicy + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.Dataproc.GetAutoscalingPolicyIamPolicy.Invoke(new() + /// { + /// Project = basic.Project, + /// Location = basic.Location, + /// PolicyId = basic.PolicyId, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetAutoscalingPolicyIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:dataproc/getAutoscalingPolicyIamPolicy:getAutoscalingPolicyIamPolicy", args ?? new GetAutoscalingPolicyIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Dataproc/GetClusterIamPolicy.cs b/sdk/dotnet/Dataproc/GetClusterIamPolicy.cs index a51a2c02f9..10130239a8 100644 --- a/sdk/dotnet/Dataproc/GetClusterIamPolicy.cs +++ b/sdk/dotnet/Dataproc/GetClusterIamPolicy.cs @@ -60,6 +60,31 @@ public static Task InvokeAsync(GetClusterIamPolicyArg /// public static Output Invoke(GetClusterIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:dataproc/getClusterIamPolicy:getClusterIamPolicy", args ?? new GetClusterIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for a Dataproc cluster. + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.Dataproc.GetClusterIamPolicy.Invoke(new() + /// { + /// Cluster = cluster.Name, + /// Region = "us-central1", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetClusterIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:dataproc/getClusterIamPolicy:getClusterIamPolicy", args ?? new GetClusterIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Dataproc/GetJobIamPolicy.cs b/sdk/dotnet/Dataproc/GetJobIamPolicy.cs index 77bfdedcb7..e803e627d9 100644 --- a/sdk/dotnet/Dataproc/GetJobIamPolicy.cs +++ b/sdk/dotnet/Dataproc/GetJobIamPolicy.cs @@ -60,6 +60,31 @@ public static Task InvokeAsync(GetJobIamPolicyArgs args, /// public static Output Invoke(GetJobIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:dataproc/getJobIamPolicy:getJobIamPolicy", args ?? new GetJobIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for a Dataproc job. + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.Dataproc.GetJobIamPolicy.Invoke(new() + /// { + /// JobId = pyspark.Reference[0].JobId, + /// Region = "us-central1", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetJobIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:dataproc/getJobIamPolicy:getJobIamPolicy", args ?? new GetJobIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Dataproc/GetMetastoreFederationIamPolicy.cs b/sdk/dotnet/Dataproc/GetMetastoreFederationIamPolicy.cs index 57580fe481..3224ccff8b 100644 --- a/sdk/dotnet/Dataproc/GetMetastoreFederationIamPolicy.cs +++ b/sdk/dotnet/Dataproc/GetMetastoreFederationIamPolicy.cs @@ -64,6 +64,33 @@ public static Task InvokeAsync(GetMetasto /// public static Output Invoke(GetMetastoreFederationIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:dataproc/getMetastoreFederationIamPolicy:getMetastoreFederationIamPolicy", args ?? new GetMetastoreFederationIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for federation + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.Dataproc.GetMetastoreFederationIamPolicy.Invoke(new() + /// { + /// Project = @default.Project, + /// Location = @default.Location, + /// FederationId = @default.FederationId, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetMetastoreFederationIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:dataproc/getMetastoreFederationIamPolicy:getMetastoreFederationIamPolicy", args ?? new GetMetastoreFederationIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Dataproc/GetMetastoreService.cs b/sdk/dotnet/Dataproc/GetMetastoreService.cs index 992d72c03b..377527210d 100644 --- a/sdk/dotnet/Dataproc/GetMetastoreService.cs +++ b/sdk/dotnet/Dataproc/GetMetastoreService.cs @@ -60,6 +60,31 @@ public static Task InvokeAsync(GetMetastoreServiceArg /// public static Output Invoke(GetMetastoreServiceInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:dataproc/getMetastoreService:getMetastoreService", args ?? new GetMetastoreServiceInvokeArgs(), options.WithDefaults()); + + /// + /// Get a Dataproc Metastore service from Google Cloud by its id and location. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var foo = Gcp.Dataproc.GetMetastoreService.Invoke(new() + /// { + /// ServiceId = "foo-bar", + /// Location = "global", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetMetastoreServiceInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:dataproc/getMetastoreService:getMetastoreService", args ?? new GetMetastoreServiceInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Dataproc/GetMetastoreServiceIamPolicy.cs b/sdk/dotnet/Dataproc/GetMetastoreServiceIamPolicy.cs index 54588a5ab0..562fd56ca2 100644 --- a/sdk/dotnet/Dataproc/GetMetastoreServiceIamPolicy.cs +++ b/sdk/dotnet/Dataproc/GetMetastoreServiceIamPolicy.cs @@ -64,6 +64,33 @@ public static Task InvokeAsync(GetMetastoreS /// public static Output Invoke(GetMetastoreServiceIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:dataproc/getMetastoreServiceIamPolicy:getMetastoreServiceIamPolicy", args ?? new GetMetastoreServiceIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for service + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.Dataproc.GetMetastoreServiceIamPolicy.Invoke(new() + /// { + /// Project = @default.Project, + /// Location = @default.Location, + /// ServiceId = @default.ServiceId, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetMetastoreServiceIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:dataproc/getMetastoreServiceIamPolicy:getMetastoreServiceIamPolicy", args ?? new GetMetastoreServiceIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Datastream/GetStaticIps.cs b/sdk/dotnet/Datastream/GetStaticIps.cs index eb36d49aa5..029a94b5e5 100644 --- a/sdk/dotnet/Datastream/GetStaticIps.cs +++ b/sdk/dotnet/Datastream/GetStaticIps.cs @@ -70,6 +70,36 @@ public static Task InvokeAsync(GetStaticIpsArgs args, Invoke /// public static Output Invoke(GetStaticIpsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:datastream/getStaticIps:getStaticIps", args ?? new GetStaticIpsInvokeArgs(), options.WithDefaults()); + + /// + /// Returns the list of IP addresses that Datastream connects from. For more information see + /// the [official documentation](https://cloud.google.com/datastream/docs/ip-allowlists-and-regions). + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var datastreamIps = Gcp.Datastream.GetStaticIps.Invoke(new() + /// { + /// Location = "us-west1", + /// Project = "my-project", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["ipList"] = datastreamIps.Apply(getStaticIpsResult => getStaticIpsResult.StaticIps), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetStaticIpsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:datastream/getStaticIps:getStaticIps", args ?? new GetStaticIpsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Dns/GetKeys.cs b/sdk/dotnet/Dns/GetKeys.cs index 879467865e..d0e5d840dd 100644 --- a/sdk/dotnet/Dns/GetKeys.cs +++ b/sdk/dotnet/Dns/GetKeys.cs @@ -106,6 +106,54 @@ public static Task InvokeAsync(GetKeysArgs args, InvokeOptions? o /// public static Output Invoke(GetKeysInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:dns/getKeys:getKeys", args ?? new GetKeysInvokeArgs(), options.WithDefaults()); + + /// + /// Get the DNSKEY and DS records of DNSSEC-signed managed zones. + /// + /// For more information see the + /// [official documentation](https://cloud.google.com/dns/docs/dnskeys/) + /// and [API](https://cloud.google.com/dns/docs/reference/v1/dnsKeys). + /// + /// > A gcp.dns.ManagedZone resource must have DNSSEC enabled in order + /// to contain any DNSKEYs. Queries to managed zones without this setting + /// enabled will result in a 404 error as the collection of DNSKEYs does + /// not exist in the DNS API. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var foo = new Gcp.Dns.ManagedZone("foo", new() + /// { + /// Name = "foobar", + /// DnsName = "foo.bar.", + /// DnssecConfig = new Gcp.Dns.Inputs.ManagedZoneDnssecConfigArgs + /// { + /// State = "on", + /// NonExistence = "nsec3", + /// }, + /// }); + /// + /// var fooDnsKeys = Gcp.Dns.GetKeys.Invoke(new() + /// { + /// ManagedZone = foo.Id, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["fooDnsDsRecord"] = fooDnsKeys.Apply(getKeysResult => getKeysResult.KeySigningKeys[0]?.DsRecord), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetKeysInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:dns/getKeys:getKeys", args ?? new GetKeysInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Dns/GetManagedZone.cs b/sdk/dotnet/Dns/GetManagedZone.cs index 0bc1783661..531b6d825d 100644 --- a/sdk/dotnet/Dns/GetManagedZone.cs +++ b/sdk/dotnet/Dns/GetManagedZone.cs @@ -86,6 +86,44 @@ public static Task InvokeAsync(GetManagedZoneArgs args, In /// public static Output Invoke(GetManagedZoneInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:dns/getManagedZone:getManagedZone", args ?? new GetManagedZoneInvokeArgs(), options.WithDefaults()); + + /// + /// Provides access to a zone's attributes within Google Cloud DNS. + /// For more information see + /// [the official documentation](https://cloud.google.com/dns/zones/) + /// and + /// [API](https://cloud.google.com/dns/api/v1/managedZones). + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var envDnsZone = Gcp.Dns.GetManagedZone.Invoke(new() + /// { + /// Name = "qa-zone", + /// }); + /// + /// var dns = new Gcp.Dns.RecordSet("dns", new() + /// { + /// Name = $"my-address.{envDnsZone.Apply(getManagedZoneResult => getManagedZoneResult.DnsName)}", + /// Type = "TXT", + /// Ttl = 300, + /// ManagedZone = envDnsZone.Apply(getManagedZoneResult => getManagedZoneResult.Name), + /// Rrdatas = new[] + /// { + /// "test", + /// }, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetManagedZoneInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:dns/getManagedZone:getManagedZone", args ?? new GetManagedZoneInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Dns/GetManagedZoneIamPolicy.cs b/sdk/dotnet/Dns/GetManagedZoneIamPolicy.cs index 9fe95924bb..bdfb9e2859 100644 --- a/sdk/dotnet/Dns/GetManagedZoneIamPolicy.cs +++ b/sdk/dotnet/Dns/GetManagedZoneIamPolicy.cs @@ -62,6 +62,32 @@ public static Task InvokeAsync(GetManagedZoneIamP /// public static Output Invoke(GetManagedZoneIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:dns/getManagedZoneIamPolicy:getManagedZoneIamPolicy", args ?? new GetManagedZoneIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for managedzone + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.Dns.GetManagedZoneIamPolicy.Invoke(new() + /// { + /// Project = @default.Project, + /// ManagedZone = @default.Name, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetManagedZoneIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:dns/getManagedZoneIamPolicy:getManagedZoneIamPolicy", args ?? new GetManagedZoneIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Dns/GetManagedZones.cs b/sdk/dotnet/Dns/GetManagedZones.cs index d5df1cce9e..b196ec1ad4 100644 --- a/sdk/dotnet/Dns/GetManagedZones.cs +++ b/sdk/dotnet/Dns/GetManagedZones.cs @@ -62,6 +62,32 @@ public static Task InvokeAsync(GetManagedZonesArgs? args /// public static Output Invoke(GetManagedZonesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:dns/getManagedZones:getManagedZones", args ?? new GetManagedZonesInvokeArgs(), options.WithDefaults()); + + /// + /// Provides access to a list of zones within Google Cloud DNS. + /// For more information see + /// [the official documentation](https://cloud.google.com/dns/zones/) + /// and + /// [API](https://cloud.google.com/dns/api/v1/managedZones). + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var zones = Gcp.Dns.GetManagedZones.Invoke(new() + /// { + /// Project = "my-project-id", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetManagedZonesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:dns/getManagedZones:getManagedZones", args ?? new GetManagedZonesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Dns/GetRecordSet.cs b/sdk/dotnet/Dns/GetRecordSet.cs index f9794d86b0..d80d8ef47b 100644 --- a/sdk/dotnet/Dns/GetRecordSet.cs +++ b/sdk/dotnet/Dns/GetRecordSet.cs @@ -80,6 +80,41 @@ public static Task InvokeAsync(GetRecordSetArgs args, Invoke /// public static Output Invoke(GetRecordSetInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:dns/getRecordSet:getRecordSet", args ?? new GetRecordSetInvokeArgs(), options.WithDefaults()); + + /// + /// Get a DNS record set within Google Cloud DNS + /// For more information see + /// [the official documentation](https://cloud.google.com/dns/docs/records) + /// and + /// [API](https://cloud.google.com/dns/docs/reference/v1/resourceRecordSets) + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var sample = Gcp.Dns.GetManagedZone.Invoke(new() + /// { + /// Name = "sample-zone", + /// }); + /// + /// var rs = Gcp.Dns.GetRecordSet.Invoke(new() + /// { + /// ManagedZone = sample.Apply(getManagedZoneResult => getManagedZoneResult.Name), + /// Name = $"my-record.{sample.Apply(getManagedZoneResult => getManagedZoneResult.DnsName)}", + /// Type = "A", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetRecordSetInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:dns/getRecordSet:getRecordSet", args ?? new GetRecordSetInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Endpoints/GetServiceConsumersIamPolicy.cs b/sdk/dotnet/Endpoints/GetServiceConsumersIamPolicy.cs index 1723292406..9422c6b63d 100644 --- a/sdk/dotnet/Endpoints/GetServiceConsumersIamPolicy.cs +++ b/sdk/dotnet/Endpoints/GetServiceConsumersIamPolicy.cs @@ -22,6 +22,12 @@ public static Task InvokeAsync(GetServiceCon /// public static Output Invoke(GetServiceConsumersIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:endpoints/getServiceConsumersIamPolicy:getServiceConsumersIamPolicy", args ?? new GetServiceConsumersIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for serviceconsumers + /// + public static Output Invoke(GetServiceConsumersIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:endpoints/getServiceConsumersIamPolicy:getServiceConsumersIamPolicy", args ?? new GetServiceConsumersIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Endpoints/GetServiceIamPolicy.cs b/sdk/dotnet/Endpoints/GetServiceIamPolicy.cs index 4249bea0ef..cb5137dd4d 100644 --- a/sdk/dotnet/Endpoints/GetServiceIamPolicy.cs +++ b/sdk/dotnet/Endpoints/GetServiceIamPolicy.cs @@ -60,6 +60,31 @@ public static Task InvokeAsync(GetServiceIamPolicyArg /// public static Output Invoke(GetServiceIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:endpoints/getServiceIamPolicy:getServiceIamPolicy", args ?? new GetServiceIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for service + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.Endpoints.GetServiceIamPolicy.Invoke(new() + /// { + /// ServiceName = endpointsService.ServiceName, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetServiceIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:endpoints/getServiceIamPolicy:getServiceIamPolicy", args ?? new GetServiceIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Filestore/GetInstance.cs b/sdk/dotnet/Filestore/GetInstance.cs index cc435fab45..f9c45c5f04 100644 --- a/sdk/dotnet/Filestore/GetInstance.cs +++ b/sdk/dotnet/Filestore/GetInstance.cs @@ -70,6 +70,36 @@ public static Task InvokeAsync(GetInstanceArgs args, InvokeOp /// public static Output Invoke(GetInstanceInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:filestore/getInstance:getInstance", args ?? new GetInstanceInvokeArgs(), options.WithDefaults()); + + /// + /// Get info about a Google Cloud Filestore instance. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var myInstance = Gcp.Filestore.GetInstance.Invoke(new() + /// { + /// Name = "my-filestore-instance", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["instanceIpAddresses"] = myInstance.Apply(getInstanceResult => getInstanceResult.Networks?.IpAddresses), + /// ["instanceConnectMode"] = myInstance.Apply(getInstanceResult => getInstanceResult.Networks?.ConnectMode), + /// ["instanceFileShareName"] = myInstance.Apply(getInstanceResult => getInstanceResult.FileShares?.Name), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetInstanceInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:filestore/getInstance:getInstance", args ?? new GetInstanceInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Firebase/GetAndroidApp.cs b/sdk/dotnet/Firebase/GetAndroidApp.cs index 48136312b1..7cbb4d10f3 100644 --- a/sdk/dotnet/Firebase/GetAndroidApp.cs +++ b/sdk/dotnet/Firebase/GetAndroidApp.cs @@ -16,6 +16,9 @@ public static Task InvokeAsync(GetAndroidAppArgs args, Invo public static Output Invoke(GetAndroidAppInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:firebase/getAndroidApp:getAndroidApp", args ?? new GetAndroidAppInvokeArgs(), options.WithDefaults()); + + public static Output Invoke(GetAndroidAppInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:firebase/getAndroidApp:getAndroidApp", args ?? new GetAndroidAppInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Firebase/GetAndroidAppConfig.cs b/sdk/dotnet/Firebase/GetAndroidAppConfig.cs index 804fd4d0f7..bc8abe26d1 100644 --- a/sdk/dotnet/Firebase/GetAndroidAppConfig.cs +++ b/sdk/dotnet/Firebase/GetAndroidAppConfig.cs @@ -16,6 +16,9 @@ public static Task InvokeAsync(GetAndroidAppConfigArg public static Output Invoke(GetAndroidAppConfigInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:firebase/getAndroidAppConfig:getAndroidAppConfig", args ?? new GetAndroidAppConfigInvokeArgs(), options.WithDefaults()); + + public static Output Invoke(GetAndroidAppConfigInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:firebase/getAndroidAppConfig:getAndroidAppConfig", args ?? new GetAndroidAppConfigInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Firebase/GetAppleApp.cs b/sdk/dotnet/Firebase/GetAppleApp.cs index 614a4492d4..cb322d742c 100644 --- a/sdk/dotnet/Firebase/GetAppleApp.cs +++ b/sdk/dotnet/Firebase/GetAppleApp.cs @@ -16,6 +16,9 @@ public static Task InvokeAsync(GetAppleAppArgs args, InvokeOp public static Output Invoke(GetAppleAppInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:firebase/getAppleApp:getAppleApp", args ?? new GetAppleAppInvokeArgs(), options.WithDefaults()); + + public static Output Invoke(GetAppleAppInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:firebase/getAppleApp:getAppleApp", args ?? new GetAppleAppInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Firebase/GetAppleAppConfig.cs b/sdk/dotnet/Firebase/GetAppleAppConfig.cs index e8eaed2e7c..8c6994eccd 100644 --- a/sdk/dotnet/Firebase/GetAppleAppConfig.cs +++ b/sdk/dotnet/Firebase/GetAppleAppConfig.cs @@ -16,6 +16,9 @@ public static Task InvokeAsync(GetAppleAppConfigArgs ar public static Output Invoke(GetAppleAppConfigInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:firebase/getAppleAppConfig:getAppleAppConfig", args ?? new GetAppleAppConfigInvokeArgs(), options.WithDefaults()); + + public static Output Invoke(GetAppleAppConfigInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:firebase/getAppleAppConfig:getAppleAppConfig", args ?? new GetAppleAppConfigInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Firebase/GetHostingChannel.cs b/sdk/dotnet/Firebase/GetHostingChannel.cs index f9bf103bf0..957874c4fc 100644 --- a/sdk/dotnet/Firebase/GetHostingChannel.cs +++ b/sdk/dotnet/Firebase/GetHostingChannel.cs @@ -16,6 +16,9 @@ public static Task InvokeAsync(GetHostingChannelArgs ar public static Output Invoke(GetHostingChannelInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:firebase/getHostingChannel:getHostingChannel", args ?? new GetHostingChannelInvokeArgs(), options.WithDefaults()); + + public static Output Invoke(GetHostingChannelInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:firebase/getHostingChannel:getHostingChannel", args ?? new GetHostingChannelInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Firebase/GetWebApp.cs b/sdk/dotnet/Firebase/GetWebApp.cs index 2dbf3b64c3..eb11756dfb 100644 --- a/sdk/dotnet/Firebase/GetWebApp.cs +++ b/sdk/dotnet/Firebase/GetWebApp.cs @@ -22,6 +22,12 @@ public static Task InvokeAsync(GetWebAppArgs args, InvokeOption /// public static Output Invoke(GetWebAppInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:firebase/getWebApp:getWebApp", args ?? new GetWebAppInvokeArgs(), options.WithDefaults()); + + /// + /// A Google Cloud Firebase web application instance + /// + public static Output Invoke(GetWebAppInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:firebase/getWebApp:getWebApp", args ?? new GetWebAppInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Firebase/GetWebAppConfig.cs b/sdk/dotnet/Firebase/GetWebAppConfig.cs index 0974eaf96e..63081112e8 100644 --- a/sdk/dotnet/Firebase/GetWebAppConfig.cs +++ b/sdk/dotnet/Firebase/GetWebAppConfig.cs @@ -34,6 +34,18 @@ public static Task InvokeAsync(GetWebAppConfigArgs args, /// public static Output Invoke(GetWebAppConfigInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:firebase/getWebAppConfig:getWebAppConfig", args ?? new GetWebAppConfigInvokeArgs(), options.WithDefaults()); + + /// + /// A Google Cloud Firebase web application configuration + /// + /// To get more information about WebApp, see: + /// + /// * [API documentation](https://firebase.google.com/docs/projects/api/reference/rest/v1beta1/projects.webApps) + /// * How-to Guides + /// * [Official Documentation](https://firebase.google.com/) + /// + public static Output Invoke(GetWebAppConfigInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:firebase/getWebAppConfig:getWebAppConfig", args ?? new GetWebAppConfigInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Folder/GetIamPolicy.cs b/sdk/dotnet/Folder/GetIamPolicy.cs index 27a9f340cf..f3671de9b1 100644 --- a/sdk/dotnet/Folder/GetIamPolicy.cs +++ b/sdk/dotnet/Folder/GetIamPolicy.cs @@ -58,6 +58,30 @@ public static Task InvokeAsync(GetIamPolicyArgs args, Invoke /// public static Output Invoke(GetIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:folder/getIamPolicy:getIamPolicy", args ?? new GetIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for a folder. + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var test = Gcp.Folder.GetIamPolicy.Invoke(new() + /// { + /// Folder = permissiontest.Name, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:folder/getIamPolicy:getIamPolicy", args ?? new GetIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Folder/GetOrganizationPolicy.cs b/sdk/dotnet/Folder/GetOrganizationPolicy.cs index 1eba39923a..7e6868d476 100644 --- a/sdk/dotnet/Folder/GetOrganizationPolicy.cs +++ b/sdk/dotnet/Folder/GetOrganizationPolicy.cs @@ -72,6 +72,37 @@ public static Task InvokeAsync(GetOrganizationPolic /// public static Output Invoke(GetOrganizationPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:folder/getOrganizationPolicy:getOrganizationPolicy", args ?? new GetOrganizationPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Allows management of Organization policies for a Google Folder. For more information see + /// [the official + /// documentation](https://cloud.google.com/resource-manager/docs/organization-policy/overview) + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.Folder.GetOrganizationPolicy.Invoke(new() + /// { + /// Folder = "folders/folderid", + /// Constraint = "constraints/compute.trustedImageProjects", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["version"] = policy.Apply(getOrganizationPolicyResult => getOrganizationPolicyResult.Version), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetOrganizationPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:folder/getOrganizationPolicy:getOrganizationPolicy", args ?? new GetOrganizationPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Gemini/GetRepositoryGroupIamPolicy.cs b/sdk/dotnet/Gemini/GetRepositoryGroupIamPolicy.cs index c34de72104..cf75db492d 100644 --- a/sdk/dotnet/Gemini/GetRepositoryGroupIamPolicy.cs +++ b/sdk/dotnet/Gemini/GetRepositoryGroupIamPolicy.cs @@ -16,6 +16,9 @@ public static Task InvokeAsync(GetRepositoryG public static Output Invoke(GetRepositoryGroupIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:gemini/getRepositoryGroupIamPolicy:getRepositoryGroupIamPolicy", args ?? new GetRepositoryGroupIamPolicyInvokeArgs(), options.WithDefaults()); + + public static Output Invoke(GetRepositoryGroupIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:gemini/getRepositoryGroupIamPolicy:getRepositoryGroupIamPolicy", args ?? new GetRepositoryGroupIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GkeBackup/GetBackupPlanIamPolicy.cs b/sdk/dotnet/GkeBackup/GetBackupPlanIamPolicy.cs index eb902f56e2..df647e693a 100644 --- a/sdk/dotnet/GkeBackup/GetBackupPlanIamPolicy.cs +++ b/sdk/dotnet/GkeBackup/GetBackupPlanIamPolicy.cs @@ -64,6 +64,33 @@ public static Task InvokeAsync(GetBackupPlanIamPol /// public static Output Invoke(GetBackupPlanIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:gkebackup/getBackupPlanIamPolicy:getBackupPlanIamPolicy", args ?? new GetBackupPlanIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for backupplan + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.GkeBackup.GetBackupPlanIamPolicy.Invoke(new() + /// { + /// Project = basic.Project, + /// Location = basic.Location, + /// Name = basic.Name, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetBackupPlanIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:gkebackup/getBackupPlanIamPolicy:getBackupPlanIamPolicy", args ?? new GetBackupPlanIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GkeBackup/GetRestorePlanIamPolicy.cs b/sdk/dotnet/GkeBackup/GetRestorePlanIamPolicy.cs index 950c956385..5ff141fb4b 100644 --- a/sdk/dotnet/GkeBackup/GetRestorePlanIamPolicy.cs +++ b/sdk/dotnet/GkeBackup/GetRestorePlanIamPolicy.cs @@ -64,6 +64,33 @@ public static Task InvokeAsync(GetRestorePlanIamP /// public static Output Invoke(GetRestorePlanIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:gkebackup/getRestorePlanIamPolicy:getRestorePlanIamPolicy", args ?? new GetRestorePlanIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for restoreplan + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.GkeBackup.GetRestorePlanIamPolicy.Invoke(new() + /// { + /// Project = allNs.Project, + /// Location = allNs.Location, + /// Name = allNs.Name, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetRestorePlanIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:gkebackup/getRestorePlanIamPolicy:getRestorePlanIamPolicy", args ?? new GetRestorePlanIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GkeHub/GetFeatureIamPolicy.cs b/sdk/dotnet/GkeHub/GetFeatureIamPolicy.cs index 7d8873727f..f68dc3718a 100644 --- a/sdk/dotnet/GkeHub/GetFeatureIamPolicy.cs +++ b/sdk/dotnet/GkeHub/GetFeatureIamPolicy.cs @@ -64,6 +64,33 @@ public static Task InvokeAsync(GetFeatureIamPolicyArg /// public static Output Invoke(GetFeatureIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:gkehub/getFeatureIamPolicy:getFeatureIamPolicy", args ?? new GetFeatureIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for feature + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.GkeHub.GetFeatureIamPolicy.Invoke(new() + /// { + /// Project = feature.Project, + /// Location = feature.Location, + /// Name = feature.Name, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetFeatureIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:gkehub/getFeatureIamPolicy:getFeatureIamPolicy", args ?? new GetFeatureIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GkeHub/GetMembershipBinding.cs b/sdk/dotnet/GkeHub/GetMembershipBinding.cs index e7a8f75ceb..b46045d24c 100644 --- a/sdk/dotnet/GkeHub/GetMembershipBinding.cs +++ b/sdk/dotnet/GkeHub/GetMembershipBinding.cs @@ -16,6 +16,9 @@ public static Task InvokeAsync(GetMembershipBindingA public static Output Invoke(GetMembershipBindingInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:gkehub/getMembershipBinding:getMembershipBinding", args ?? new GetMembershipBindingInvokeArgs(), options.WithDefaults()); + + public static Output Invoke(GetMembershipBindingInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:gkehub/getMembershipBinding:getMembershipBinding", args ?? new GetMembershipBindingInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GkeHub/GetMembershipIamPolicy.cs b/sdk/dotnet/GkeHub/GetMembershipIamPolicy.cs index a788197f8c..86b3aad2da 100644 --- a/sdk/dotnet/GkeHub/GetMembershipIamPolicy.cs +++ b/sdk/dotnet/GkeHub/GetMembershipIamPolicy.cs @@ -64,6 +64,33 @@ public static Task InvokeAsync(GetMembershipIamPol /// public static Output Invoke(GetMembershipIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:gkehub/getMembershipIamPolicy:getMembershipIamPolicy", args ?? new GetMembershipIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for membership + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.GkeHub.GetMembershipIamPolicy.Invoke(new() + /// { + /// Project = membership.Project, + /// Location = membership.Location, + /// MembershipId = membership.MembershipId, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetMembershipIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:gkehub/getMembershipIamPolicy:getMembershipIamPolicy", args ?? new GetMembershipIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GkeHub/GetScopeIamPolicy.cs b/sdk/dotnet/GkeHub/GetScopeIamPolicy.cs index 9bd9293ced..3e98d8d0ed 100644 --- a/sdk/dotnet/GkeHub/GetScopeIamPolicy.cs +++ b/sdk/dotnet/GkeHub/GetScopeIamPolicy.cs @@ -62,6 +62,32 @@ public static Task InvokeAsync(GetScopeIamPolicyArgs ar /// public static Output Invoke(GetScopeIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:gkehub/getScopeIamPolicy:getScopeIamPolicy", args ?? new GetScopeIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for scope + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.GkeHub.GetScopeIamPolicy.Invoke(new() + /// { + /// Project = scope.Project, + /// ScopeId = scope.ScopeId, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetScopeIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:gkehub/getScopeIamPolicy:getScopeIamPolicy", args ?? new GetScopeIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Healthcare/GetConsentStoreIamPolicy.cs b/sdk/dotnet/Healthcare/GetConsentStoreIamPolicy.cs index eee25e6f24..88b35e709d 100644 --- a/sdk/dotnet/Healthcare/GetConsentStoreIamPolicy.cs +++ b/sdk/dotnet/Healthcare/GetConsentStoreIamPolicy.cs @@ -62,6 +62,32 @@ public static Task InvokeAsync(GetConsentStoreIa /// public static Output Invoke(GetConsentStoreIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:healthcare/getConsentStoreIamPolicy:getConsentStoreIamPolicy", args ?? new GetConsentStoreIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for consentstore + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.Healthcare.GetConsentStoreIamPolicy.Invoke(new() + /// { + /// Dataset = my_consent.Dataset, + /// ConsentStoreId = my_consent.Name, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetConsentStoreIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:healthcare/getConsentStoreIamPolicy:getConsentStoreIamPolicy", args ?? new GetConsentStoreIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Healthcare/GetDatasetIamPolicy.cs b/sdk/dotnet/Healthcare/GetDatasetIamPolicy.cs index e528985a4a..07b8bf4a42 100644 --- a/sdk/dotnet/Healthcare/GetDatasetIamPolicy.cs +++ b/sdk/dotnet/Healthcare/GetDatasetIamPolicy.cs @@ -58,6 +58,30 @@ public static Task InvokeAsync(GetDatasetIamPolicyArg /// public static Output Invoke(GetDatasetIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:healthcare/getDatasetIamPolicy:getDatasetIamPolicy", args ?? new GetDatasetIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for a Google Cloud Healthcare dataset. + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var foo = Gcp.Healthcare.GetDatasetIamPolicy.Invoke(new() + /// { + /// DatasetId = dataset.Id, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetDatasetIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:healthcare/getDatasetIamPolicy:getDatasetIamPolicy", args ?? new GetDatasetIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Healthcare/GetDicomStoreIamPolicy.cs b/sdk/dotnet/Healthcare/GetDicomStoreIamPolicy.cs index 29b0207b52..a0c167103b 100644 --- a/sdk/dotnet/Healthcare/GetDicomStoreIamPolicy.cs +++ b/sdk/dotnet/Healthcare/GetDicomStoreIamPolicy.cs @@ -58,6 +58,30 @@ public static Task InvokeAsync(GetDicomStoreIamPol /// public static Output Invoke(GetDicomStoreIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:healthcare/getDicomStoreIamPolicy:getDicomStoreIamPolicy", args ?? new GetDicomStoreIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for a Google Cloud Healthcare DICOM store. + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var foo = Gcp.Healthcare.GetDicomStoreIamPolicy.Invoke(new() + /// { + /// DicomStoreId = dicomStore.Id, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetDicomStoreIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:healthcare/getDicomStoreIamPolicy:getDicomStoreIamPolicy", args ?? new GetDicomStoreIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Healthcare/GetFhirStoreIamPolicy.cs b/sdk/dotnet/Healthcare/GetFhirStoreIamPolicy.cs index 7e4691e807..56fcf679e1 100644 --- a/sdk/dotnet/Healthcare/GetFhirStoreIamPolicy.cs +++ b/sdk/dotnet/Healthcare/GetFhirStoreIamPolicy.cs @@ -58,6 +58,30 @@ public static Task InvokeAsync(GetFhirStoreIamPolic /// public static Output Invoke(GetFhirStoreIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:healthcare/getFhirStoreIamPolicy:getFhirStoreIamPolicy", args ?? new GetFhirStoreIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for a Google Cloud Healthcare FHIR store. + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var foo = Gcp.Healthcare.GetFhirStoreIamPolicy.Invoke(new() + /// { + /// FhirStoreId = fhirStore.Id, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetFhirStoreIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:healthcare/getFhirStoreIamPolicy:getFhirStoreIamPolicy", args ?? new GetFhirStoreIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Healthcare/GetHl7V2StoreIamPolicy.cs b/sdk/dotnet/Healthcare/GetHl7V2StoreIamPolicy.cs index ff7b103947..f73bbafed5 100644 --- a/sdk/dotnet/Healthcare/GetHl7V2StoreIamPolicy.cs +++ b/sdk/dotnet/Healthcare/GetHl7V2StoreIamPolicy.cs @@ -58,6 +58,30 @@ public static Task InvokeAsync(GetHl7V2StoreIamPol /// public static Output Invoke(GetHl7V2StoreIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:healthcare/getHl7V2StoreIamPolicy:getHl7V2StoreIamPolicy", args ?? new GetHl7V2StoreIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for a Google Cloud Healthcare HL7v2 store. + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var foo = Gcp.Healthcare.GetHl7V2StoreIamPolicy.Invoke(new() + /// { + /// Hl7V2StoreId = hl7V2Store.Id, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetHl7V2StoreIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:healthcare/getHl7V2StoreIamPolicy:getHl7V2StoreIamPolicy", args ?? new GetHl7V2StoreIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Iam/GetRule.cs b/sdk/dotnet/Iam/GetRule.cs index 0856177b31..ad841983af 100644 --- a/sdk/dotnet/Iam/GetRule.cs +++ b/sdk/dotnet/Iam/GetRule.cs @@ -62,6 +62,32 @@ public static Task InvokeAsync(GetRuleArgs args, InvokeOptions? o /// public static Output Invoke(GetRuleInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:iam/getRule:getRule", args ?? new GetRuleInvokeArgs(), options.WithDefaults()); + + /// + /// Use this data source to get information about a Google IAM Role. + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var roleinfo = Gcp.Iam.GetRule.Invoke(new() + /// { + /// Name = "roles/compute.viewer", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["theRolePermissions"] = roleinfo.Apply(getRuleResult => getRuleResult.IncludedPermissions), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetRuleInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:iam/getRule:getRule", args ?? new GetRuleInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Iam/GetTestablePermissions.cs b/sdk/dotnet/Iam/GetTestablePermissions.cs index 037b44f94b..c88423de82 100644 --- a/sdk/dotnet/Iam/GetTestablePermissions.cs +++ b/sdk/dotnet/Iam/GetTestablePermissions.cs @@ -72,6 +72,37 @@ public static Task InvokeAsync(GetTestablePermissi /// public static Output Invoke(GetTestablePermissionsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:iam/getTestablePermissions:getTestablePermissions", args ?? new GetTestablePermissionsInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieve a list of testable permissions for a resource. Testable permissions mean the permissions that user can add or remove in a role at a given resource. The resource can be referenced either via the full resource name or via a URI. + /// + /// ## Example Usage + /// + /// Retrieve all the supported permissions able to be set on `my-project` that are in either GA or BETA. This is useful for dynamically constructing custom roles. + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var perms = Gcp.Iam.GetTestablePermissions.Invoke(new() + /// { + /// FullResourceName = "//cloudresourcemanager.googleapis.com/projects/my-project", + /// Stages = new[] + /// { + /// "GA", + /// "BETA", + /// }, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetTestablePermissionsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:iam/getTestablePermissions:getTestablePermissions", args ?? new GetTestablePermissionsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Iam/GetWorkloadIdentityPool.cs b/sdk/dotnet/Iam/GetWorkloadIdentityPool.cs index 9d2631dd1e..186644c0bc 100644 --- a/sdk/dotnet/Iam/GetWorkloadIdentityPool.cs +++ b/sdk/dotnet/Iam/GetWorkloadIdentityPool.cs @@ -58,6 +58,30 @@ public static Task InvokeAsync(GetWorkloadIdentit /// public static Output Invoke(GetWorkloadIdentityPoolInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:iam/getWorkloadIdentityPool:getWorkloadIdentityPool", args ?? new GetWorkloadIdentityPoolInvokeArgs(), options.WithDefaults()); + + /// + /// Get a IAM workload identity pool from Google Cloud by its id. + /// > **Note:** The following resource requires the Beta IAM role `roles/iam.workloadIdentityPoolAdmin` in order to succeed. `OWNER` and `EDITOR` roles do not include the necessary permissions. + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var foo = Gcp.Iam.GetWorkloadIdentityPool.Invoke(new() + /// { + /// WorkloadIdentityPoolId = "foo-pool", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetWorkloadIdentityPoolInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:iam/getWorkloadIdentityPool:getWorkloadIdentityPool", args ?? new GetWorkloadIdentityPoolInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Iam/GetWorkloadIdentityPoolProvider.cs b/sdk/dotnet/Iam/GetWorkloadIdentityPoolProvider.cs index 990d8e3900..6061711170 100644 --- a/sdk/dotnet/Iam/GetWorkloadIdentityPoolProvider.cs +++ b/sdk/dotnet/Iam/GetWorkloadIdentityPoolProvider.cs @@ -60,6 +60,31 @@ public static Task InvokeAsync(GetWorkloa /// public static Output Invoke(GetWorkloadIdentityPoolProviderInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:iam/getWorkloadIdentityPoolProvider:getWorkloadIdentityPoolProvider", args ?? new GetWorkloadIdentityPoolProviderInvokeArgs(), options.WithDefaults()); + + /// + /// Get a IAM workload identity provider from Google Cloud by its id. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var foo = Gcp.Iam.GetWorkloadIdentityPoolProvider.Invoke(new() + /// { + /// WorkloadIdentityPoolId = "foo-pool", + /// WorkloadIdentityPoolProviderId = "bar-provider", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetWorkloadIdentityPoolProviderInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:iam/getWorkloadIdentityPoolProvider:getWorkloadIdentityPoolProvider", args ?? new GetWorkloadIdentityPoolProviderInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Iap/GetAppEngineServiceIamPolicy.cs b/sdk/dotnet/Iap/GetAppEngineServiceIamPolicy.cs index bd9f2e35c5..f80f2a9292 100644 --- a/sdk/dotnet/Iap/GetAppEngineServiceIamPolicy.cs +++ b/sdk/dotnet/Iap/GetAppEngineServiceIamPolicy.cs @@ -64,6 +64,33 @@ public static Task InvokeAsync(GetAppEngineS /// public static Output Invoke(GetAppEngineServiceIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:iap/getAppEngineServiceIamPolicy:getAppEngineServiceIamPolicy", args ?? new GetAppEngineServiceIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for appengineservice + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.Iap.GetAppEngineServiceIamPolicy.Invoke(new() + /// { + /// Project = version.Project, + /// AppId = version.Project, + /// Service = version.Service, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetAppEngineServiceIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:iap/getAppEngineServiceIamPolicy:getAppEngineServiceIamPolicy", args ?? new GetAppEngineServiceIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Iap/GetAppEngineVersionIamPolicy.cs b/sdk/dotnet/Iap/GetAppEngineVersionIamPolicy.cs index 168583cddd..ca6768d4be 100644 --- a/sdk/dotnet/Iap/GetAppEngineVersionIamPolicy.cs +++ b/sdk/dotnet/Iap/GetAppEngineVersionIamPolicy.cs @@ -66,6 +66,34 @@ public static Task InvokeAsync(GetAppEngineV /// public static Output Invoke(GetAppEngineVersionIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:iap/getAppEngineVersionIamPolicy:getAppEngineVersionIamPolicy", args ?? new GetAppEngineVersionIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for appengineversion + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.Iap.GetAppEngineVersionIamPolicy.Invoke(new() + /// { + /// Project = version.Project, + /// AppId = version.Project, + /// Service = version.Service, + /// VersionId = version.VersionId, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetAppEngineVersionIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:iap/getAppEngineVersionIamPolicy:getAppEngineVersionIamPolicy", args ?? new GetAppEngineVersionIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Iap/GetClient.cs b/sdk/dotnet/Iap/GetClient.cs index f5edb83571..b2cce3ef62 100644 --- a/sdk/dotnet/Iap/GetClient.cs +++ b/sdk/dotnet/Iap/GetClient.cs @@ -70,6 +70,36 @@ public static Task InvokeAsync(GetClientArgs args, InvokeOption /// public static Output Invoke(GetClientInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:iap/getClient:getClient", args ?? new GetClientInvokeArgs(), options.WithDefaults()); + + /// + /// Get info about a Google Cloud IAP Client. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var project = Gcp.Organizations.GetProject.Invoke(new() + /// { + /// ProjectId = "foobar", + /// }); + /// + /// var projectClient = Gcp.Iap.GetClient.Invoke(new() + /// { + /// Brand = $"projects/{project.Apply(getProjectResult => getProjectResult.Number)}/brands/[BRAND_NUMBER]", + /// ClientId = apps.Googleusercontent.Com, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetClientInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:iap/getClient:getClient", args ?? new GetClientInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Iap/GetTunnelDestGroupIamPolicy.cs b/sdk/dotnet/Iap/GetTunnelDestGroupIamPolicy.cs index 592db401f2..89711b5530 100644 --- a/sdk/dotnet/Iap/GetTunnelDestGroupIamPolicy.cs +++ b/sdk/dotnet/Iap/GetTunnelDestGroupIamPolicy.cs @@ -64,6 +64,33 @@ public static Task InvokeAsync(GetTunnelDestG /// public static Output Invoke(GetTunnelDestGroupIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:iap/getTunnelDestGroupIamPolicy:getTunnelDestGroupIamPolicy", args ?? new GetTunnelDestGroupIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for tunneldestgroup + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.Iap.GetTunnelDestGroupIamPolicy.Invoke(new() + /// { + /// Project = destGroup.Project, + /// Region = destGroup.Region, + /// DestGroup = destGroup.GroupName, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetTunnelDestGroupIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:iap/getTunnelDestGroupIamPolicy:getTunnelDestGroupIamPolicy", args ?? new GetTunnelDestGroupIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Iap/GetTunnelIamPolicy.cs b/sdk/dotnet/Iap/GetTunnelIamPolicy.cs index 7a69a9c4c1..f40b71c64e 100644 --- a/sdk/dotnet/Iap/GetTunnelIamPolicy.cs +++ b/sdk/dotnet/Iap/GetTunnelIamPolicy.cs @@ -60,6 +60,31 @@ public static Task InvokeAsync(GetTunnelIamPolicyArgs? /// public static Output Invoke(GetTunnelIamPolicyInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:iap/getTunnelIamPolicy:getTunnelIamPolicy", args ?? new GetTunnelIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for tunnel + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.Iap.GetTunnelIamPolicy.Invoke(new() + /// { + /// Project = projectService.Project, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetTunnelIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:iap/getTunnelIamPolicy:getTunnelIamPolicy", args ?? new GetTunnelIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Iap/GetTunnelInstanceIamPolicy.cs b/sdk/dotnet/Iap/GetTunnelInstanceIamPolicy.cs index 705b92f41e..895a039775 100644 --- a/sdk/dotnet/Iap/GetTunnelInstanceIamPolicy.cs +++ b/sdk/dotnet/Iap/GetTunnelInstanceIamPolicy.cs @@ -64,6 +64,33 @@ public static Task InvokeAsync(GetTunnelInstan /// public static Output Invoke(GetTunnelInstanceIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:iap/getTunnelInstanceIamPolicy:getTunnelInstanceIamPolicy", args ?? new GetTunnelInstanceIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for tunnelinstance + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.Iap.GetTunnelInstanceIamPolicy.Invoke(new() + /// { + /// Project = tunnelvm.Project, + /// Zone = tunnelvm.Zone, + /// Instance = tunnelvm.Name, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetTunnelInstanceIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:iap/getTunnelInstanceIamPolicy:getTunnelInstanceIamPolicy", args ?? new GetTunnelInstanceIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Iap/GetWebBackendServiceIamPolicy.cs b/sdk/dotnet/Iap/GetWebBackendServiceIamPolicy.cs index a2828bbb38..cf0804cd6c 100644 --- a/sdk/dotnet/Iap/GetWebBackendServiceIamPolicy.cs +++ b/sdk/dotnet/Iap/GetWebBackendServiceIamPolicy.cs @@ -62,6 +62,32 @@ public static Task InvokeAsync(GetWebBacken /// public static Output Invoke(GetWebBackendServiceIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:iap/getWebBackendServiceIamPolicy:getWebBackendServiceIamPolicy", args ?? new GetWebBackendServiceIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for webbackendservice + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.Iap.GetWebBackendServiceIamPolicy.Invoke(new() + /// { + /// Project = @default.Project, + /// WebBackendService = @default.Name, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetWebBackendServiceIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:iap/getWebBackendServiceIamPolicy:getWebBackendServiceIamPolicy", args ?? new GetWebBackendServiceIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Iap/GetWebIamPolicy.cs b/sdk/dotnet/Iap/GetWebIamPolicy.cs index ef1a230143..e5f1be215e 100644 --- a/sdk/dotnet/Iap/GetWebIamPolicy.cs +++ b/sdk/dotnet/Iap/GetWebIamPolicy.cs @@ -60,6 +60,31 @@ public static Task InvokeAsync(GetWebIamPolicyArgs? args /// public static Output Invoke(GetWebIamPolicyInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:iap/getWebIamPolicy:getWebIamPolicy", args ?? new GetWebIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for web + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.Iap.GetWebIamPolicy.Invoke(new() + /// { + /// Project = projectService.Project, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetWebIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:iap/getWebIamPolicy:getWebIamPolicy", args ?? new GetWebIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Iap/GetWebRegionBackendServiceIamPolicy.cs b/sdk/dotnet/Iap/GetWebRegionBackendServiceIamPolicy.cs index ef91f406a4..25de58375e 100644 --- a/sdk/dotnet/Iap/GetWebRegionBackendServiceIamPolicy.cs +++ b/sdk/dotnet/Iap/GetWebRegionBackendServiceIamPolicy.cs @@ -64,6 +64,33 @@ public static Task InvokeAsync(GetWeb /// public static Output Invoke(GetWebRegionBackendServiceIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:iap/getWebRegionBackendServiceIamPolicy:getWebRegionBackendServiceIamPolicy", args ?? new GetWebRegionBackendServiceIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for webregionbackendservice + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.Iap.GetWebRegionBackendServiceIamPolicy.Invoke(new() + /// { + /// Project = @default.Project, + /// Region = @default.Region, + /// WebRegionBackendService = @default.Name, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetWebRegionBackendServiceIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:iap/getWebRegionBackendServiceIamPolicy:getWebRegionBackendServiceIamPolicy", args ?? new GetWebRegionBackendServiceIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Iap/GetWebTypeAppEngineIamPolicy.cs b/sdk/dotnet/Iap/GetWebTypeAppEngineIamPolicy.cs index 812c84339f..98bdc482b3 100644 --- a/sdk/dotnet/Iap/GetWebTypeAppEngineIamPolicy.cs +++ b/sdk/dotnet/Iap/GetWebTypeAppEngineIamPolicy.cs @@ -62,6 +62,32 @@ public static Task InvokeAsync(GetWebTypeApp /// public static Output Invoke(GetWebTypeAppEngineIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:iap/getWebTypeAppEngineIamPolicy:getWebTypeAppEngineIamPolicy", args ?? new GetWebTypeAppEngineIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for webtypeappengine + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.Iap.GetWebTypeAppEngineIamPolicy.Invoke(new() + /// { + /// Project = app.Project, + /// AppId = app.AppId, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetWebTypeAppEngineIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:iap/getWebTypeAppEngineIamPolicy:getWebTypeAppEngineIamPolicy", args ?? new GetWebTypeAppEngineIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Iap/GetWebTypeComputeIamPolicy.cs b/sdk/dotnet/Iap/GetWebTypeComputeIamPolicy.cs index 0b09dccb9b..e99211cbcf 100644 --- a/sdk/dotnet/Iap/GetWebTypeComputeIamPolicy.cs +++ b/sdk/dotnet/Iap/GetWebTypeComputeIamPolicy.cs @@ -60,6 +60,31 @@ public static Task InvokeAsync(GetWebTypeCompu /// public static Output Invoke(GetWebTypeComputeIamPolicyInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:iap/getWebTypeComputeIamPolicy:getWebTypeComputeIamPolicy", args ?? new GetWebTypeComputeIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for webtypecompute + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.Iap.GetWebTypeComputeIamPolicy.Invoke(new() + /// { + /// Project = projectService.Project, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetWebTypeComputeIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:iap/getWebTypeComputeIamPolicy:getWebTypeComputeIamPolicy", args ?? new GetWebTypeComputeIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Kms/GetCryptoKeyIamPolicy.cs b/sdk/dotnet/Kms/GetCryptoKeyIamPolicy.cs index 0986129d95..4045d1960b 100644 --- a/sdk/dotnet/Kms/GetCryptoKeyIamPolicy.cs +++ b/sdk/dotnet/Kms/GetCryptoKeyIamPolicy.cs @@ -58,6 +58,30 @@ public static Task InvokeAsync(GetCryptoKeyIamPolic /// public static Output Invoke(GetCryptoKeyIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:kms/getCryptoKeyIamPolicy:getCryptoKeyIamPolicy", args ?? new GetCryptoKeyIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for a Google Cloud KMS crypto key. + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var foo = Gcp.Kms.GetCryptoKeyIamPolicy.Invoke(new() + /// { + /// CryptoKeyId = cryptoKey.Id, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetCryptoKeyIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:kms/getCryptoKeyIamPolicy:getCryptoKeyIamPolicy", args ?? new GetCryptoKeyIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Kms/GetCryptoKeyLatestVersion.cs b/sdk/dotnet/Kms/GetCryptoKeyLatestVersion.cs index 0699a9e51b..c3a44239d4 100644 --- a/sdk/dotnet/Kms/GetCryptoKeyLatestVersion.cs +++ b/sdk/dotnet/Kms/GetCryptoKeyLatestVersion.cs @@ -88,6 +88,45 @@ public static Task InvokeAsync(GetCryptoKeyLate /// public static Output Invoke(GetCryptoKeyLatestVersionInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:kms/getCryptoKeyLatestVersion:getCryptoKeyLatestVersion", args ?? new GetCryptoKeyLatestVersionInvokeArgs(), options.WithDefaults()); + + /// + /// Provides access to the latest Google Cloud Platform KMS CryptoKeyVersion in a CryptoKey. For more information see + /// [the official documentation](https://cloud.google.com/kms/docs/object-hierarchy#key_version) + /// and + /// [API](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions). + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var myKeyRing = Gcp.Kms.GetKMSKeyRing.Invoke(new() + /// { + /// Name = "my-key-ring", + /// Location = "us-central1", + /// }); + /// + /// var myCryptoKey = Gcp.Kms.GetKMSCryptoKey.Invoke(new() + /// { + /// Name = "my-crypto-key", + /// KeyRing = myKeyRing.Apply(getKMSKeyRingResult => getKMSKeyRingResult.Id), + /// }); + /// + /// var myCryptoKeyLatestVersion = Gcp.Kms.GetCryptoKeyLatestVersion.Invoke(new() + /// { + /// CryptoKey = myKey.Id, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetCryptoKeyLatestVersionInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:kms/getCryptoKeyLatestVersion:getCryptoKeyLatestVersion", args ?? new GetCryptoKeyLatestVersionInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Kms/GetCryptoKeyVersions.cs b/sdk/dotnet/Kms/GetCryptoKeyVersions.cs index b01c60249c..a9b222eb39 100644 --- a/sdk/dotnet/Kms/GetCryptoKeyVersions.cs +++ b/sdk/dotnet/Kms/GetCryptoKeyVersions.cs @@ -90,6 +90,46 @@ public static Task InvokeAsync(GetCryptoKeyVersionsA /// public static Output Invoke(GetCryptoKeyVersionsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:kms/getCryptoKeyVersions:getCryptoKeyVersions", args ?? new GetCryptoKeyVersionsInvokeArgs(), options.WithDefaults()); + + /// + /// Provides access to Google Cloud Platform KMS CryptoKeyVersions. For more information see + /// [the official documentation](https://cloud.google.com/kms/docs/object-hierarchy#key_version) + /// and + /// [API](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions). + /// + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var myKeyRing = Gcp.Kms.GetKMSKeyRing.Invoke(new() + /// { + /// Name = "my-key-ring", + /// Location = "us-central1", + /// }); + /// + /// var myCryptoKey = Gcp.Kms.GetKMSCryptoKey.Invoke(new() + /// { + /// Name = "my-crypto-key", + /// KeyRing = myKeyRing.Apply(getKMSKeyRingResult => getKMSKeyRingResult.Id), + /// }); + /// + /// var myCryptoKeyVersions = Gcp.Kms.GetCryptoKeyVersions.Invoke(new() + /// { + /// CryptoKey = myKey.Id, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetCryptoKeyVersionsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:kms/getCryptoKeyVersions:getCryptoKeyVersions", args ?? new GetCryptoKeyVersionsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Kms/GetCryptoKeys.cs b/sdk/dotnet/Kms/GetCryptoKeys.cs index 39739d89ce..085f20f912 100644 --- a/sdk/dotnet/Kms/GetCryptoKeys.cs +++ b/sdk/dotnet/Kms/GetCryptoKeys.cs @@ -34,6 +34,18 @@ public static Task InvokeAsync(GetCryptoKeysArgs args, Invo /// public static Output Invoke(GetCryptoKeysInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:kms/getCryptoKeys:getCryptoKeys", args ?? new GetCryptoKeysInvokeArgs(), options.WithDefaults()); + + /// + /// Provides access to all Google Cloud Platform KMS CryptoKeys in a given KeyRing. For more information see + /// [the official documentation](https://cloud.google.com/kms/docs/object-hierarchy#key) + /// and + /// [API](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys). + /// + /// A CryptoKey is an interface to key material which can be used to encrypt and decrypt data. A CryptoKey belongs to a + /// Google Cloud KMS KeyRing. + /// + public static Output Invoke(GetCryptoKeysInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:kms/getCryptoKeys:getCryptoKeys", args ?? new GetCryptoKeysInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Kms/GetEkmConnectionIamPolicy.cs b/sdk/dotnet/Kms/GetEkmConnectionIamPolicy.cs index 60a23afe1f..5ebab35a63 100644 --- a/sdk/dotnet/Kms/GetEkmConnectionIamPolicy.cs +++ b/sdk/dotnet/Kms/GetEkmConnectionIamPolicy.cs @@ -64,6 +64,33 @@ public static Task InvokeAsync(GetEkmConnection /// public static Output Invoke(GetEkmConnectionIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:kms/getEkmConnectionIamPolicy:getEkmConnectionIamPolicy", args ?? new GetEkmConnectionIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for ekmconnection + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.Kms.GetEkmConnectionIamPolicy.Invoke(new() + /// { + /// Project = example_ekmconnection.Project, + /// Location = example_ekmconnection.Location, + /// Name = example_ekmconnection.Name, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetEkmConnectionIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:kms/getEkmConnectionIamPolicy:getEkmConnectionIamPolicy", args ?? new GetEkmConnectionIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Kms/GetKMSCryptoKey.cs b/sdk/dotnet/Kms/GetKMSCryptoKey.cs index dc7fcb8ac3..114f4158f3 100644 --- a/sdk/dotnet/Kms/GetKMSCryptoKey.cs +++ b/sdk/dotnet/Kms/GetKMSCryptoKey.cs @@ -84,6 +84,43 @@ public static Task InvokeAsync(GetKMSCryptoKeyArgs args, /// public static Output Invoke(GetKMSCryptoKeyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:kms/getKMSCryptoKey:getKMSCryptoKey", args ?? new GetKMSCryptoKeyInvokeArgs(), options.WithDefaults()); + + /// + /// Provides access to a Google Cloud Platform KMS CryptoKey. For more information see + /// [the official documentation](https://cloud.google.com/kms/docs/object-hierarchy#key) + /// and + /// [API](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys). + /// + /// A CryptoKey is an interface to key material which can be used to encrypt and decrypt data. A CryptoKey belongs to a + /// Google Cloud KMS KeyRing. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var myKeyRing = Gcp.Kms.GetKMSKeyRing.Invoke(new() + /// { + /// Name = "my-key-ring", + /// Location = "us-central1", + /// }); + /// + /// var myCryptoKey = Gcp.Kms.GetKMSCryptoKey.Invoke(new() + /// { + /// Name = "my-crypto-key", + /// KeyRing = myKeyRing.Apply(getKMSKeyRingResult => getKMSKeyRingResult.Id), + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetKMSCryptoKeyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:kms/getKMSCryptoKey:getKMSCryptoKey", args ?? new GetKMSCryptoKeyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Kms/GetKMSCryptoKeyVersion.cs b/sdk/dotnet/Kms/GetKMSCryptoKeyVersion.cs index d8689d024a..4daeea8882 100644 --- a/sdk/dotnet/Kms/GetKMSCryptoKeyVersion.cs +++ b/sdk/dotnet/Kms/GetKMSCryptoKeyVersion.cs @@ -92,6 +92,47 @@ public static Task InvokeAsync(GetKMSCryptoKeyVers /// public static Output Invoke(GetKMSCryptoKeyVersionInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:kms/getKMSCryptoKeyVersion:getKMSCryptoKeyVersion", args ?? new GetKMSCryptoKeyVersionInvokeArgs(), options.WithDefaults()); + + /// + /// Provides access to a Google Cloud Platform KMS CryptoKeyVersion. For more information see + /// [the official documentation](https://cloud.google.com/kms/docs/object-hierarchy#key_version) + /// and + /// [API](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions). + /// + /// A CryptoKeyVersion represents an individual cryptographic key, and the associated key material. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var myKeyRing = Gcp.Kms.GetKMSKeyRing.Invoke(new() + /// { + /// Name = "my-key-ring", + /// Location = "us-central1", + /// }); + /// + /// var myCryptoKey = Gcp.Kms.GetKMSCryptoKey.Invoke(new() + /// { + /// Name = "my-crypto-key", + /// KeyRing = myKeyRing.Apply(getKMSKeyRingResult => getKMSKeyRingResult.Id), + /// }); + /// + /// var myCryptoKeyVersion = Gcp.Kms.GetKMSCryptoKeyVersion.Invoke(new() + /// { + /// CryptoKey = myKey.Id, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetKMSCryptoKeyVersionInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:kms/getKMSCryptoKeyVersion:getKMSCryptoKeyVersion", args ?? new GetKMSCryptoKeyVersionInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Kms/GetKMSKeyRing.cs b/sdk/dotnet/Kms/GetKMSKeyRing.cs index 26dee88175..d70de3f273 100644 --- a/sdk/dotnet/Kms/GetKMSKeyRing.cs +++ b/sdk/dotnet/Kms/GetKMSKeyRing.cs @@ -72,6 +72,37 @@ public static Task InvokeAsync(GetKMSKeyRingArgs args, Invo /// public static Output Invoke(GetKMSKeyRingInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:kms/getKMSKeyRing:getKMSKeyRing", args ?? new GetKMSKeyRingInvokeArgs(), options.WithDefaults()); + + /// + /// Provides access to Google Cloud Platform KMS KeyRing. For more information see + /// [the official documentation](https://cloud.google.com/kms/docs/object-hierarchy#key_ring) + /// and + /// [API](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings). + /// + /// A KeyRing is a grouping of CryptoKeys for organizational purposes. A KeyRing belongs to a Google Cloud Platform Project + /// and resides in a specific location. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var myKeyRing = Gcp.Kms.GetKMSKeyRing.Invoke(new() + /// { + /// Name = "my-key-ring", + /// Location = "us-central1", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetKMSKeyRingInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:kms/getKMSKeyRing:getKMSKeyRing", args ?? new GetKMSKeyRingInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Kms/GetKMSSecret.cs b/sdk/dotnet/Kms/GetKMSSecret.cs index 53e93552ea..0edc506878 100644 --- a/sdk/dotnet/Kms/GetKMSSecret.cs +++ b/sdk/dotnet/Kms/GetKMSSecret.cs @@ -216,6 +216,109 @@ public static Task InvokeAsync(GetKMSSecretArgs args, Invoke /// public static Output Invoke(GetKMSSecretInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:kms/getKMSSecret:getKMSSecret", args ?? new GetKMSSecretInvokeArgs(), options.WithDefaults()); + + /// + /// This data source allows you to use data encrypted with Google Cloud KMS + /// within your resource definitions. + /// + /// For more information see + /// [the official documentation](https://cloud.google.com/kms/docs/encrypt-decrypt). + /// + /// > **NOTE:** Using this data provider will allow you to conceal secret data within your + /// resource definitions, but it does not take care of protecting that data in the + /// logging output, plan output, or state output. Please take care to secure your secret + /// data outside of resource definitions. + /// + /// ## Example Usage + /// + /// First, create a KMS KeyRing and CryptoKey using the resource definitions: + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var myKeyRing = new Gcp.Kms.KeyRing("my_key_ring", new() + /// { + /// Project = "my-project", + /// Name = "my-key-ring", + /// Location = "us-central1", + /// }); + /// + /// var myCryptoKey = new Gcp.Kms.CryptoKey("my_crypto_key", new() + /// { + /// Name = "my-crypto-key", + /// KeyRing = myKeyRing.Id, + /// }); + /// + /// }); + /// ``` + /// + /// Next, use the [Cloud SDK](https://cloud.google.com/sdk/gcloud/reference/kms/encrypt) to encrypt some + /// sensitive information: + /// + /// ```bash + /// $ echo -n my-secret-password | gcloud kms encrypt \ + /// > --project my-project \ + /// > --location us-central1 \ + /// > --keyring my-key-ring \ + /// > --key my-crypto-key \ + /// > --plaintext-file - \ + /// > --ciphertext-file - \ + /// > | base64 + /// CiQAqD+xX4SXOSziF4a8JYvq4spfAuWhhYSNul33H85HnVtNQW4SOgDu2UZ46dQCRFl5MF6ekabviN8xq+F+2035ZJ85B+xTYXqNf4mZs0RJitnWWuXlYQh6axnnJYu3kDU= + /// ``` + /// + /// Finally, reference the encrypted ciphertext in your resource definitions: + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// using Random = Pulumi.Random; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var sqlUserPassword = Gcp.Kms.GetKMSSecret.Invoke(new() + /// { + /// CryptoKey = myCryptoKey.Id, + /// Ciphertext = "CiQAqD+xX4SXOSziF4a8JYvq4spfAuWhhYSNul33H85HnVtNQW4SOgDu2UZ46dQCRFl5MF6ekabviN8xq+F+2035ZJ85B+xTYXqNf4mZs0RJitnWWuXlYQh6axnnJYu3kDU=", + /// }); + /// + /// var dbNameSuffix = new Random.RandomId("db_name_suffix", new() + /// { + /// ByteLength = 4, + /// }); + /// + /// var main = new Gcp.Sql.DatabaseInstance("main", new() + /// { + /// Name = dbNameSuffix.Hex.Apply(hex => $"main-instance-{hex}"), + /// DatabaseVersion = "MYSQL_5_7", + /// Settings = new Gcp.Sql.Inputs.DatabaseInstanceSettingsArgs + /// { + /// Tier = "db-f1-micro", + /// }, + /// }); + /// + /// var users = new Gcp.Sql.User("users", new() + /// { + /// Name = "me", + /// Instance = main.Name, + /// Host = "me.com", + /// Password = sqlUserPassword.Apply(getKMSSecretResult => getKMSSecretResult.Plaintext), + /// }); + /// + /// }); + /// ``` + /// + /// This will result in a Cloud SQL user being created with password `my-secret-password`. + /// + public static Output Invoke(GetKMSSecretInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:kms/getKMSSecret:getKMSSecret", args ?? new GetKMSSecretInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Kms/GetKMSSecretAsymmetric.cs b/sdk/dotnet/Kms/GetKMSSecretAsymmetric.cs index 0b55cff213..c4dfa3853b 100644 --- a/sdk/dotnet/Kms/GetKMSSecretAsymmetric.cs +++ b/sdk/dotnet/Kms/GetKMSSecretAsymmetric.cs @@ -294,6 +294,148 @@ public static Task InvokeAsync(GetKMSSecretAsymmet /// public static Output Invoke(GetKMSSecretAsymmetricInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:kms/getKMSSecretAsymmetric:getKMSSecretAsymmetric", args ?? new GetKMSSecretAsymmetricInvokeArgs(), options.WithDefaults()); + + /// + /// ## Example Usage + /// + /// First, create a KMS KeyRing and CryptoKey using the resource definitions: + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var myKeyRing = new Gcp.Kms.KeyRing("my_key_ring", new() + /// { + /// Project = "my-project", + /// Name = "my-key-ring", + /// Location = "us-central1", + /// }); + /// + /// var myCryptoKeyCryptoKey = new Gcp.Kms.CryptoKey("my_crypto_key", new() + /// { + /// Name = "my-crypto-key", + /// KeyRing = myKeyRing.Id, + /// Purpose = "ASYMMETRIC_DECRYPT", + /// VersionTemplate = new Gcp.Kms.Inputs.CryptoKeyVersionTemplateArgs + /// { + /// Algorithm = "RSA_DECRYPT_OAEP_4096_SHA256", + /// }, + /// }); + /// + /// var myCryptoKey = Gcp.Kms.GetKMSCryptoKeyVersion.Invoke(new() + /// { + /// CryptoKey = myCryptoKeyCryptoKey.Id, + /// }); + /// + /// }); + /// ``` + /// + /// Next, use the [Cloud SDK](https://cloud.google.com/kms/docs/encrypt-decrypt-rsa#kms-encrypt-asymmetric-cli) to encrypt + /// some sensitive information: + /// + /// ```bash + /// ## get the public key to encrypt the secret with + /// $ gcloud kms keys versions get-public-key 1 \ + /// --project my-project \ + /// --location us-central1 \ + /// --keyring my-key-ring \ + /// --key my-crypto-key \ + /// --output-file public-key.pem + /// + /// ## encrypt secret with the public key + /// $ echo -n my-secret-password | \ + /// openssl pkeyutl -in - \ + /// -encrypt \ + /// -pubin \ + /// -inkey public-key.pem \ + /// -pkeyopt rsa_padding_mode:oaep \ + /// -pkeyopt rsa_oaep_md:sha256 \ + /// -pkeyopt rsa_mgf1_md:sha256 > \ + /// my-secret-password.enc + /// + /// ## base64 encode the ciphertext + /// $ openssl base64 -in my-secret-password.enc + /// M7nUoba9EGVTu2LjNjBKGdGVBYjyS/i/AY+4yQMQF0Qf/RfUfX31Jw6+VO9OuThq + /// ylu/7ihX9XD4bM7yYdXnMv9p1OHQUlorSBSbb/J6n1W9UJhcp6um8Tw8/Isx4f75 + /// 4PskYS6f8Y2ItliGt1/A9iR5BTgGtJBwOxMlgoX2Ggq+Nh4E5SbdoaE5o6CO1nBx + /// eIPsPEebQ6qC4JehQM3IGuV/lrm58+hZhaXAqNzX1cEYyAt5GYqJIVCiI585SUYs + /// wRToGyTgaN+zthF0HP9IWlR4Am4LmJ/1OcePTnYw11CkU8wNRbDzVAzogwNH+rXr + /// LTmf7hxVjBm6bBSVSNFcBKAXFlllubSfIeZ5hgzGqn54OmSf6odO12L5JxllddHc + /// yAd54vWKs2kJtnsKV2V4ZdkI0w6y1TeI67baFZDNGo6qsCpFMPnvv7d46Pg2VOp1 + /// J6Ivner0NnNHE4MzNmpZRk8WXMwqq4P/gTiT7F/aCX6oFCUQ4AWPQhJYh2dkcOmL + /// IP+47Veb10aFn61F1CJwpmOOiGNXKdDT1vK8CMnnwhm825K0q/q9Zqpzc1+1ae1z + /// mSqol1zCoa88CuSN6nTLQlVnN/dzfrGbc0boJPaM0iGhHtSzHk4SWg84LhiJB1q9 + /// A9XFJmOVdkvRY9nnz/iVLAdd0Q3vFtLqCdUYsNN2yh4= + /// + /// ## optionally calculate the CRC32 of the ciphertext + /// $ go get github.com/binxio/crc32 + /// $ $GOPATH/bin/crc32 -polynomial castagnoli < my-secret-password.enc + /// 12c59e54 + /// ``` + /// + /// Finally, reference the encrypted ciphertext in your resource definitions: + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// using Random = Pulumi.Random; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var sqlUserPassword = Gcp.Kms.GetKMSSecretAsymmetric.Invoke(new() + /// { + /// CryptoKeyVersion = myCryptoKey.Id, + /// Crc32 = "12c59e54", + /// Ciphertext = @" M7nUoba9EGVTu2LjNjBKGdGVBYjyS/i/AY+4yQMQF0Qf/RfUfX31Jw6+VO9OuThq + /// ylu/7ihX9XD4bM7yYdXnMv9p1OHQUlorSBSbb/J6n1W9UJhcp6um8Tw8/Isx4f75 + /// 4PskYS6f8Y2ItliGt1/A9iR5BTgGtJBwOxMlgoX2Ggq+Nh4E5SbdoaE5o6CO1nBx + /// eIPsPEebQ6qC4JehQM3IGuV/lrm58+hZhaXAqNzX1cEYyAt5GYqJIVCiI585SUYs + /// wRToGyTgaN+zthF0HP9IWlR4Am4LmJ/1OcePTnYw11CkU8wNRbDzVAzogwNH+rXr + /// LTmf7hxVjBm6bBSVSNFcBKAXFlllubSfIeZ5hgzGqn54OmSf6odO12L5JxllddHc + /// yAd54vWKs2kJtnsKV2V4ZdkI0w6y1TeI67baFZDNGo6qsCpFMPnvv7d46Pg2VOp1 + /// J6Ivner0NnNHE4MzNmpZRk8WXMwqq4P/gTiT7F/aCX6oFCUQ4AWPQhJYh2dkcOmL + /// IP+47Veb10aFn61F1CJwpmOOiGNXKdDT1vK8CMnnwhm825K0q/q9Zqpzc1+1ae1z + /// mSqol1zCoa88CuSN6nTLQlVnN/dzfrGbc0boJPaM0iGhHtSzHk4SWg84LhiJB1q9 + /// A9XFJmOVdkvRY9nnz/iVLAdd0Q3vFtLqCdUYsNN2yh4= + /// ", + /// }); + /// + /// var dbNameSuffix = new Random.RandomId("db_name_suffix", new() + /// { + /// ByteLength = 4, + /// }); + /// + /// var main = new Gcp.Sql.DatabaseInstance("main", new() + /// { + /// Name = dbNameSuffix.Hex.Apply(hex => $"main-instance-{hex}"), + /// DatabaseVersion = "MYSQL_5_7", + /// Settings = new Gcp.Sql.Inputs.DatabaseInstanceSettingsArgs + /// { + /// Tier = "db-f1-micro", + /// }, + /// }); + /// + /// var users = new Gcp.Sql.User("users", new() + /// { + /// Name = "me", + /// Instance = main.Name, + /// Host = "me.com", + /// Password = sqlUserPasswordGoogleKmsSecret.Plaintext, + /// }); + /// + /// }); + /// ``` + /// + /// This will result in a Cloud SQL user being created with password `my-secret-password`. + /// + public static Output Invoke(GetKMSSecretAsymmetricInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:kms/getKMSSecretAsymmetric:getKMSSecretAsymmetric", args ?? new GetKMSSecretAsymmetricInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Kms/GetKMSSecretCiphertext.cs b/sdk/dotnet/Kms/GetKMSSecretCiphertext.cs index 269d60bcff..db731a3c89 100644 --- a/sdk/dotnet/Kms/GetKMSSecretCiphertext.cs +++ b/sdk/dotnet/Kms/GetKMSSecretCiphertext.cs @@ -226,6 +226,114 @@ public static Task InvokeAsync(GetKMSSecretCiphert /// public static Output Invoke(GetKMSSecretCiphertextInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:kms/getKMSSecretCiphertext:getKMSSecretCiphertext", args ?? new GetKMSSecretCiphertextInvokeArgs(), options.WithDefaults()); + + /// + /// !> **Warning:** This data source is deprecated. Use the `gcp.kms.SecretCiphertext` **resource** instead. + /// + /// This data source allows you to encrypt data with Google Cloud KMS and use the + /// ciphertext within your resource definitions. + /// + /// For more information see + /// [the official documentation](https://cloud.google.com/kms/docs/encrypt-decrypt). + /// + /// > **NOTE:** Using this data source will allow you to conceal secret data within your + /// resource definitions, but it does not take care of protecting that data in the + /// logging output, plan output, or state output. Please take care to secure your secret + /// data outside of resource definitions. + /// + /// ## Example Usage + /// + /// First, create a KMS KeyRing and CryptoKey using the resource definitions: + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var myKeyRing = new Gcp.Kms.KeyRing("my_key_ring", new() + /// { + /// Project = "my-project", + /// Name = "my-key-ring", + /// Location = "us-central1", + /// }); + /// + /// var myCryptoKey = new Gcp.Kms.CryptoKey("my_crypto_key", new() + /// { + /// Name = "my-crypto-key", + /// KeyRing = myKeyRing.Id, + /// }); + /// + /// }); + /// ``` + /// + /// Next, encrypt some sensitive information and use the encrypted data in your resource definitions: + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var myPassword = Gcp.Kms.GetKMSSecretCiphertext.Invoke(new() + /// { + /// CryptoKey = myCryptoKey.Id, + /// Plaintext = "my-secret-password", + /// }); + /// + /// var instance = new Gcp.Compute.Instance("instance", new() + /// { + /// NetworkInterfaces = new[] + /// { + /// new Gcp.Compute.Inputs.InstanceNetworkInterfaceArgs + /// { + /// AccessConfigs = new[] + /// { + /// null, + /// }, + /// Network = "default", + /// }, + /// }, + /// Name = "test", + /// MachineType = "e2-medium", + /// Zone = "us-central1-a", + /// BootDisk = new Gcp.Compute.Inputs.InstanceBootDiskArgs + /// { + /// InitializeParams = new Gcp.Compute.Inputs.InstanceBootDiskInitializeParamsArgs + /// { + /// Image = "debian-cloud/debian-11", + /// }, + /// }, + /// Metadata = + /// { + /// { "password", myPassword.Apply(getKMSSecretCiphertextResult => getKMSSecretCiphertextResult.Ciphertext) }, + /// }, + /// }); + /// + /// }); + /// ``` + /// + /// The resulting instance can then access the encrypted password from its metadata + /// and decrypt it, e.g. using the [Cloud SDK](https://cloud.google.com/sdk/gcloud/reference/kms/decrypt)): + /// + /// ```bash + /// $ curl -H "Metadata-Flavor: Google" http://metadata.google.internal/computeMetadata/v1/instance/attributes/password \ + /// > | base64 -d | gcloud kms decrypt \ + /// > --project my-project \ + /// > --location us-central1 \ + /// > --keyring my-key-ring \ + /// > --key my-crypto-key \ + /// > --plaintext-file - \ + /// > --ciphertext-file - \ + /// my-secret-password + /// ``` + /// + public static Output Invoke(GetKMSSecretCiphertextInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:kms/getKMSSecretCiphertext:getKMSSecretCiphertext", args ?? new GetKMSSecretCiphertextInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Kms/GetKeyRingIamPolicy.cs b/sdk/dotnet/Kms/GetKeyRingIamPolicy.cs index 7565faf73c..9b9e713c44 100644 --- a/sdk/dotnet/Kms/GetKeyRingIamPolicy.cs +++ b/sdk/dotnet/Kms/GetKeyRingIamPolicy.cs @@ -58,6 +58,30 @@ public static Task InvokeAsync(GetKeyRingIamPolicyArg /// public static Output Invoke(GetKeyRingIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:kms/getKeyRingIamPolicy:getKeyRingIamPolicy", args ?? new GetKeyRingIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for a Google Cloud KMS key ring. + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var testKeyRingIamPolicy = Gcp.Kms.GetKeyRingIamPolicy.Invoke(new() + /// { + /// KeyRingId = "{project_id}/{location_name}/{key_ring_name}", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetKeyRingIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:kms/getKeyRingIamPolicy:getKeyRingIamPolicy", args ?? new GetKeyRingIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Kms/GetKeyRings.cs b/sdk/dotnet/Kms/GetKeyRings.cs index f82a8d0fac..d60b79a518 100644 --- a/sdk/dotnet/Kms/GetKeyRings.cs +++ b/sdk/dotnet/Kms/GetKeyRings.cs @@ -16,6 +16,9 @@ public static Task InvokeAsync(GetKeyRingsArgs args, InvokeOp public static Output Invoke(GetKeyRingsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:kms/getKeyRings:getKeyRings", args ?? new GetKeyRingsInvokeArgs(), options.WithDefaults()); + + public static Output Invoke(GetKeyRingsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:kms/getKeyRings:getKeyRings", args ?? new GetKeyRingsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Logging/GetFolderSettings.cs b/sdk/dotnet/Logging/GetFolderSettings.cs index 8c742a951d..605e121af6 100644 --- a/sdk/dotnet/Logging/GetFolderSettings.cs +++ b/sdk/dotnet/Logging/GetFolderSettings.cs @@ -72,6 +72,37 @@ public static Task InvokeAsync(GetFolderSettingsArgs ar /// public static Output Invoke(GetFolderSettingsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:logging/getFolderSettings:getFolderSettings", args ?? new GetFolderSettingsInvokeArgs(), options.WithDefaults()); + + /// + /// Describes the settings associated with a folder. + /// + /// To get more information about LoggingFolderSettings, see: + /// + /// * [API documentation](https://cloud.google.com/logging/docs/reference/v2/rest/v2/folders/getSettings) + /// * [Configure default settings for organizations and folders](https://cloud.google.com/logging/docs/default-settings). + /// + /// ## Example Usage + /// + /// ### Logging Folder Settings Basic + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var settings = Gcp.Logging.GetFolderSettings.Invoke(new() + /// { + /// Folder = "my-folder-name", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetFolderSettingsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:logging/getFolderSettings:getFolderSettings", args ?? new GetFolderSettingsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Logging/GetLogViewIamPolicy.cs b/sdk/dotnet/Logging/GetLogViewIamPolicy.cs index eac4f8d9e2..cfe9dfcd13 100644 --- a/sdk/dotnet/Logging/GetLogViewIamPolicy.cs +++ b/sdk/dotnet/Logging/GetLogViewIamPolicy.cs @@ -66,6 +66,34 @@ public static Task InvokeAsync(GetLogViewIamPolicyArg /// public static Output Invoke(GetLogViewIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:logging/getLogViewIamPolicy:getLogViewIamPolicy", args ?? new GetLogViewIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for logview + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.Logging.GetLogViewIamPolicy.Invoke(new() + /// { + /// Parent = loggingLogView.Parent, + /// Location = loggingLogView.Location, + /// Bucket = loggingLogView.Bucket, + /// Name = loggingLogView.Name, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetLogViewIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:logging/getLogViewIamPolicy:getLogViewIamPolicy", args ?? new GetLogViewIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Logging/GetOrganizationSettings.cs b/sdk/dotnet/Logging/GetOrganizationSettings.cs index 0c275c90b7..808903339e 100644 --- a/sdk/dotnet/Logging/GetOrganizationSettings.cs +++ b/sdk/dotnet/Logging/GetOrganizationSettings.cs @@ -72,6 +72,37 @@ public static Task InvokeAsync(GetOrganizationSet /// public static Output Invoke(GetOrganizationSettingsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:logging/getOrganizationSettings:getOrganizationSettings", args ?? new GetOrganizationSettingsInvokeArgs(), options.WithDefaults()); + + /// + /// Describes the settings associated with a organization. + /// + /// To get more information about LoggingOrganizationSettings, see: + /// + /// * [API documentation](https://cloud.google.com/logging/docs/reference/v2/rest/v2/organizations/getSettings) + /// * [Configure default settings for organizations and folders](https://cloud.google.com/logging/docs/default-settings). + /// + /// ## Example Usage + /// + /// ### Logging Organization Settings Basic + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var settings = Gcp.Logging.GetOrganizationSettings.Invoke(new() + /// { + /// Organization = "my-organization-name", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetOrganizationSettingsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:logging/getOrganizationSettings:getOrganizationSettings", args ?? new GetOrganizationSettingsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Logging/GetProjectCmekSettings.cs b/sdk/dotnet/Logging/GetProjectCmekSettings.cs index 07d924a636..a22a77270c 100644 --- a/sdk/dotnet/Logging/GetProjectCmekSettings.cs +++ b/sdk/dotnet/Logging/GetProjectCmekSettings.cs @@ -74,6 +74,38 @@ public static Task InvokeAsync(GetProjectCmekSetti /// public static Output Invoke(GetProjectCmekSettingsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:logging/getProjectCmekSettings:getProjectCmekSettings", args ?? new GetProjectCmekSettingsInvokeArgs(), options.WithDefaults()); + + /// + /// Describes the customer-managed encryption key (CMEK) settings associated with a project. + /// + /// To get more information about Service, see: + /// + /// * [API documentation](https://cloud.google.com/logging/docs/reference/v2/rest/v2/projects/getCmekSettings) + /// * [Enable CMEK](https://cloud.google.com/logging/docs/routing/managed-encryption-storage#enable). + /// + /// ## Example Usage + /// + /// ### Logging Project Cmek Settings Basic + /// + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var cmekSettings = Gcp.Logging.GetProjectCmekSettings.Invoke(new() + /// { + /// Project = "my-project-name", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetProjectCmekSettingsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:logging/getProjectCmekSettings:getProjectCmekSettings", args ?? new GetProjectCmekSettingsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Logging/GetProjectSettings.cs b/sdk/dotnet/Logging/GetProjectSettings.cs index f5853c607a..251ae522aa 100644 --- a/sdk/dotnet/Logging/GetProjectSettings.cs +++ b/sdk/dotnet/Logging/GetProjectSettings.cs @@ -72,6 +72,37 @@ public static Task InvokeAsync(GetProjectSettingsArgs /// public static Output Invoke(GetProjectSettingsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:logging/getProjectSettings:getProjectSettings", args ?? new GetProjectSettingsInvokeArgs(), options.WithDefaults()); + + /// + /// Describes the settings associated with a project. + /// + /// To get more information about LoggingProjectSettings, see: + /// + /// * [API documentation](https://cloud.google.com/logging/docs/reference/v2/rest/v2/projects/getSettings) + /// * [Configure default settings for organizations and folders](https://cloud.google.com/logging/docs/default-settings). + /// + /// ## Example Usage + /// + /// ### Logging Project Settings Basic + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var settings = Gcp.Logging.GetProjectSettings.Invoke(new() + /// { + /// Project = "my-project-name", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetProjectSettingsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:logging/getProjectSettings:getProjectSettings", args ?? new GetProjectSettingsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Logging/GetSink.cs b/sdk/dotnet/Logging/GetSink.cs index 23eb696abb..fac7990c89 100644 --- a/sdk/dotnet/Logging/GetSink.cs +++ b/sdk/dotnet/Logging/GetSink.cs @@ -70,6 +70,36 @@ public static Task InvokeAsync(GetSinkArgs args, InvokeOptions? o /// public static Output Invoke(GetSinkInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:logging/getSink:getSink", args ?? new GetSinkInvokeArgs(), options.WithDefaults()); + + /// + /// Use this data source to get a project, folder, organization or billing account logging sink details. + /// To get more information about Service, see: + /// + /// [API documentation](https://cloud.google.com/logging/docs/reference/v2/rest/v2/sinks) + /// + /// ## Example Usage + /// + /// ### Retrieve Project Logging Sink Basic + /// + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var project_sink = Gcp.Logging.GetSink.Invoke(new() + /// { + /// Id = "projects/0123456789/sinks/my-sink-name", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetSinkInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:logging/getSink:getSink", args ?? new GetSinkInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Monitoring/GetAppEngineService.cs b/sdk/dotnet/Monitoring/GetAppEngineService.cs index 2f1c09ca45..9e4c97a998 100644 --- a/sdk/dotnet/Monitoring/GetAppEngineService.cs +++ b/sdk/dotnet/Monitoring/GetAppEngineService.cs @@ -174,6 +174,88 @@ public static Task InvokeAsync(GetAppEngineServiceArg /// public static Output Invoke(GetAppEngineServiceInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:monitoring/getAppEngineService:getAppEngineService", args ?? new GetAppEngineServiceInvokeArgs(), options.WithDefaults()); + + /// + /// A Monitoring Service is the root resource under which operational aspects of a + /// generic service are accessible. A service is some discrete, autonomous, and + /// network-accessible unit, designed to solve an individual concern + /// + /// An App Engine monitoring service is automatically created by GCP to monitor + /// App Engine services. + /// + /// + /// To get more information about Service, see: + /// + /// * [API documentation](https://cloud.google.com/monitoring/api/ref_v3/rest/v3/services) + /// * How-to Guides + /// * [Service Monitoring](https://cloud.google.com/monitoring/service-monitoring) + /// * [Monitoring API Documentation](https://cloud.google.com/monitoring/api/v3/) + /// + /// ## Example Usage + /// + /// ### Monitoring App Engine Service + /// + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var bucket = new Gcp.Storage.Bucket("bucket", new() + /// { + /// Name = "appengine-static-content", + /// Location = "US", + /// }); + /// + /// var @object = new Gcp.Storage.BucketObject("object", new() + /// { + /// Name = "hello-world.zip", + /// Bucket = bucket.Name, + /// Source = new FileAsset("./test-fixtures/hello-world.zip"), + /// }); + /// + /// var myapp = new Gcp.AppEngine.StandardAppVersion("myapp", new() + /// { + /// VersionId = "v1", + /// Service = "myapp", + /// Runtime = "nodejs20", + /// Entrypoint = new Gcp.AppEngine.Inputs.StandardAppVersionEntrypointArgs + /// { + /// Shell = "node ./app.js", + /// }, + /// Deployment = new Gcp.AppEngine.Inputs.StandardAppVersionDeploymentArgs + /// { + /// Zip = new Gcp.AppEngine.Inputs.StandardAppVersionDeploymentZipArgs + /// { + /// SourceUrl = Output.Tuple(bucket.Name, @object.Name).Apply(values => + /// { + /// var bucketName = values.Item1; + /// var objectName = values.Item2; + /// return $"https://storage.googleapis.com/{bucketName}/{objectName}"; + /// }), + /// }, + /// }, + /// EnvVariables = + /// { + /// { "port", "8080" }, + /// }, + /// DeleteServiceOnDestroy = false, + /// }); + /// + /// // Monitors the default AppEngine service + /// var srv = Gcp.Monitoring.GetAppEngineService.Invoke(new() + /// { + /// ModuleId = myapp.Service, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetAppEngineServiceInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:monitoring/getAppEngineService:getAppEngineService", args ?? new GetAppEngineServiceInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Monitoring/GetClusterIstioService.cs b/sdk/dotnet/Monitoring/GetClusterIstioService.cs index eeaf09f153..a7a6467faa 100644 --- a/sdk/dotnet/Monitoring/GetClusterIstioService.cs +++ b/sdk/dotnet/Monitoring/GetClusterIstioService.cs @@ -98,6 +98,50 @@ public static Task InvokeAsync(GetClusterIstioServ /// public static Output Invoke(GetClusterIstioServiceInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:monitoring/getClusterIstioService:getClusterIstioService", args ?? new GetClusterIstioServiceInvokeArgs(), options.WithDefaults()); + + /// + /// A Monitoring Service is the root resource under which operational aspects of a + /// generic service are accessible. A service is some discrete, autonomous, and + /// network-accessible unit, designed to solve an individual concern + /// + /// An Cluster Istio monitoring service is automatically created by GCP to monitor + /// Cluster Istio services. + /// + /// + /// To get more information about Service, see: + /// + /// * [API documentation](https://cloud.google.com/monitoring/api/ref_v3/rest/v3/services) + /// * How-to Guides + /// * [Service Monitoring](https://cloud.google.com/monitoring/service-monitoring) + /// * [Monitoring API Documentation](https://cloud.google.com/monitoring/api/v3/) + /// + /// ## Example Usage + /// + /// ### Monitoring Cluster Istio Service + /// + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// // Monitors the default ClusterIstio service + /// var @default = Gcp.Monitoring.GetClusterIstioService.Invoke(new() + /// { + /// Location = "us-west2-a", + /// ClusterName = "west", + /// ServiceNamespace = "istio-system", + /// ServiceName = "istio-policy", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetClusterIstioServiceInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:monitoring/getClusterIstioService:getClusterIstioService", args ?? new GetClusterIstioServiceInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Monitoring/GetIstioCanonicalService.cs b/sdk/dotnet/Monitoring/GetIstioCanonicalService.cs index fa809bad21..6daeb79e2e 100644 --- a/sdk/dotnet/Monitoring/GetIstioCanonicalService.cs +++ b/sdk/dotnet/Monitoring/GetIstioCanonicalService.cs @@ -96,6 +96,49 @@ public static Task InvokeAsync(GetIstioCanonical /// public static Output Invoke(GetIstioCanonicalServiceInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:monitoring/getIstioCanonicalService:getIstioCanonicalService", args ?? new GetIstioCanonicalServiceInvokeArgs(), options.WithDefaults()); + + /// + /// A Monitoring Service is the root resource under which operational aspects of a + /// generic service are accessible. A service is some discrete, autonomous, and + /// network-accessible unit, designed to solve an individual concern + /// + /// A monitoring Istio Canonical Service is automatically created by GCP to monitor + /// Istio Canonical Services. + /// + /// + /// To get more information about Service, see: + /// + /// * [API documentation](https://cloud.google.com/monitoring/api/ref_v3/rest/v3/services) + /// * How-to Guides + /// * [Service Monitoring](https://cloud.google.com/monitoring/service-monitoring) + /// * [Monitoring API Documentation](https://cloud.google.com/monitoring/api/v3/) + /// + /// ## Example Usage + /// + /// ### Monitoring Istio Canonical Service + /// + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// // Monitors the default MeshIstio service + /// var @default = Gcp.Monitoring.GetIstioCanonicalService.Invoke(new() + /// { + /// MeshUid = "proj-573164786102", + /// CanonicalServiceNamespace = "istio-system", + /// CanonicalService = "prometheus", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetIstioCanonicalServiceInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:monitoring/getIstioCanonicalService:getIstioCanonicalService", args ?? new GetIstioCanonicalServiceInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Monitoring/GetMeshIstioService.cs b/sdk/dotnet/Monitoring/GetMeshIstioService.cs index 364e7a7284..f48c9d4dcb 100644 --- a/sdk/dotnet/Monitoring/GetMeshIstioService.cs +++ b/sdk/dotnet/Monitoring/GetMeshIstioService.cs @@ -96,6 +96,49 @@ public static Task InvokeAsync(GetMeshIstioServiceArg /// public static Output Invoke(GetMeshIstioServiceInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:monitoring/getMeshIstioService:getMeshIstioService", args ?? new GetMeshIstioServiceInvokeArgs(), options.WithDefaults()); + + /// + /// A Monitoring Service is the root resource under which operational aspects of a + /// generic service are accessible. A service is some discrete, autonomous, and + /// network-accessible unit, designed to solve an individual concern + /// + /// An Mesh Istio monitoring service is automatically created by GCP to monitor + /// Mesh Istio services. + /// + /// + /// To get more information about Service, see: + /// + /// * [API documentation](https://cloud.google.com/monitoring/api/ref_v3/rest/v3/services) + /// * How-to Guides + /// * [Service Monitoring](https://cloud.google.com/monitoring/service-monitoring) + /// * [Monitoring API Documentation](https://cloud.google.com/monitoring/api/v3/) + /// + /// ## Example Usage + /// + /// ### Monitoring Mesh Istio Service + /// + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// // Monitors the default MeshIstio service + /// var @default = Gcp.Monitoring.GetMeshIstioService.Invoke(new() + /// { + /// MeshUid = "proj-573164786102", + /// ServiceNamespace = "istio-system", + /// ServiceName = "prometheus", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetMeshIstioServiceInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:monitoring/getMeshIstioService:getMeshIstioService", args ?? new GetMeshIstioServiceInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Monitoring/GetNotificationChannel.cs b/sdk/dotnet/Monitoring/GetNotificationChannel.cs index a556fcc2c2..899aee07ea 100644 --- a/sdk/dotnet/Monitoring/GetNotificationChannel.cs +++ b/sdk/dotnet/Monitoring/GetNotificationChannel.cs @@ -150,6 +150,76 @@ public static Task InvokeAsync(GetNotificationChan /// public static Output Invoke(GetNotificationChannelInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:monitoring/getNotificationChannel:getNotificationChannel", args ?? new GetNotificationChannelInvokeArgs(), options.WithDefaults()); + + /// + /// A NotificationChannel is a medium through which an alert is delivered + /// when a policy violation is detected. Examples of channels include email, SMS, + /// and third-party messaging applications. Fields containing sensitive information + /// like authentication tokens or contact info are only partially populated on retrieval. + /// + /// + /// To get more information about NotificationChannel, see: + /// + /// * [API documentation](https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.notificationChannels) + /// * How-to Guides + /// * [Notification Options](https://cloud.google.com/monitoring/support/notification-options) + /// * [Monitoring API Documentation](https://cloud.google.com/monitoring/api/v3/) + /// + /// + /// ## Example Usage + /// + /// ### Notification Channel Basic + /// + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var basic = Gcp.Monitoring.GetNotificationChannel.Invoke(new() + /// { + /// DisplayName = "Test Notification Channel", + /// }); + /// + /// var alertPolicy = new Gcp.Monitoring.AlertPolicy("alert_policy", new() + /// { + /// DisplayName = "My Alert Policy", + /// NotificationChannels = new[] + /// { + /// basic.Apply(getNotificationChannelResult => getNotificationChannelResult.Name), + /// }, + /// Combiner = "OR", + /// Conditions = new[] + /// { + /// new Gcp.Monitoring.Inputs.AlertPolicyConditionArgs + /// { + /// DisplayName = "test condition", + /// ConditionThreshold = new Gcp.Monitoring.Inputs.AlertPolicyConditionConditionThresholdArgs + /// { + /// Filter = "metric.type=\"compute.googleapis.com/instance/disk/write_bytes_count\" AND resource.type=\"gce_instance\"", + /// Duration = "60s", + /// Comparison = "COMPARISON_GT", + /// Aggregations = new[] + /// { + /// new Gcp.Monitoring.Inputs.AlertPolicyConditionConditionThresholdAggregationArgs + /// { + /// AlignmentPeriod = "60s", + /// PerSeriesAligner = "ALIGN_RATE", + /// }, + /// }, + /// }, + /// }, + /// }, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetNotificationChannelInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:monitoring/getNotificationChannel:getNotificationChannel", args ?? new GetNotificationChannelInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Monitoring/GetSecretVersion.cs b/sdk/dotnet/Monitoring/GetSecretVersion.cs index 730c5a4f20..3c695a9d6a 100644 --- a/sdk/dotnet/Monitoring/GetSecretVersion.cs +++ b/sdk/dotnet/Monitoring/GetSecretVersion.cs @@ -59,6 +59,30 @@ public static Task InvokeAsync(GetSecretVersionArgs args /// public static Output Invoke(GetSecretVersionInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:monitoring/getSecretVersion:getSecretVersion", args ?? new GetSecretVersionInvokeArgs(), options.WithDefaults()); + + /// + /// Get the value and metadata from a Secret Manager secret version. For more information see the [official documentation](https://cloud.google.com/secret-manager/docs/) and [API](https://cloud.google.com/secret-manager/docs/reference/rest/v1/projects.secrets.versions). If you don't need the metadata (i.e., if you want to use a more limited role to access the secret version only), see also the gcp.secretmanager.getSecretVersionAccess datasource. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var basic = Gcp.SecretManager.GetSecretVersion.Invoke(new() + /// { + /// Secret = "my-secret", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetSecretVersionInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:monitoring/getSecretVersion:getSecretVersion", args ?? new GetSecretVersionInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Monitoring/GetUptimeCheckIPs.cs b/sdk/dotnet/Monitoring/GetUptimeCheckIPs.cs index 6e423e42c7..5675b0125a 100644 --- a/sdk/dotnet/Monitoring/GetUptimeCheckIPs.cs +++ b/sdk/dotnet/Monitoring/GetUptimeCheckIPs.cs @@ -62,6 +62,32 @@ public static Task InvokeAsync(InvokeOptions? options = /// public static Output Invoke(InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:monitoring/getUptimeCheckIPs:getUptimeCheckIPs", InvokeArgs.Empty, options.WithDefaults()); + + /// + /// Returns the list of IP addresses that checkers run from. For more information see + /// the [official documentation](https://cloud.google.com/monitoring/uptime-checks#get-ips). + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ips = Gcp.Monitoring.GetUptimeCheckIPs.Invoke(); + /// + /// return new Dictionary<string, object?> + /// { + /// ["ipList"] = ips.Apply(getUptimeCheckIPsResult => getUptimeCheckIPsResult.UptimeCheckIps), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:monitoring/getUptimeCheckIPs:getUptimeCheckIPs", InvokeArgs.Empty, options.WithDefaults()); } diff --git a/sdk/dotnet/NetworkSecurity/GetAddressGroupIamPolicy.cs b/sdk/dotnet/NetworkSecurity/GetAddressGroupIamPolicy.cs index e4e1d8dfc8..c7da97798a 100644 --- a/sdk/dotnet/NetworkSecurity/GetAddressGroupIamPolicy.cs +++ b/sdk/dotnet/NetworkSecurity/GetAddressGroupIamPolicy.cs @@ -22,6 +22,12 @@ public static Task InvokeAsync(GetAddressGroupIa /// public static Output Invoke(GetAddressGroupIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:networksecurity/getAddressGroupIamPolicy:getAddressGroupIamPolicy", args ?? new GetAddressGroupIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for projectaddressgroup + /// + public static Output Invoke(GetAddressGroupIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:networksecurity/getAddressGroupIamPolicy:getAddressGroupIamPolicy", args ?? new GetAddressGroupIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Notebooks/GetInstanceIamPolicy.cs b/sdk/dotnet/Notebooks/GetInstanceIamPolicy.cs index e227b44cd9..19a637d935 100644 --- a/sdk/dotnet/Notebooks/GetInstanceIamPolicy.cs +++ b/sdk/dotnet/Notebooks/GetInstanceIamPolicy.cs @@ -64,6 +64,33 @@ public static Task InvokeAsync(GetInstanceIamPolicyA /// public static Output Invoke(GetInstanceIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:notebooks/getInstanceIamPolicy:getInstanceIamPolicy", args ?? new GetInstanceIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for instance + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.Notebooks.GetInstanceIamPolicy.Invoke(new() + /// { + /// Project = instance.Project, + /// Location = instance.Location, + /// InstanceName = instance.Name, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetInstanceIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:notebooks/getInstanceIamPolicy:getInstanceIamPolicy", args ?? new GetInstanceIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Notebooks/GetRuntimeIamPolicy.cs b/sdk/dotnet/Notebooks/GetRuntimeIamPolicy.cs index 2c57468dd3..a1970a1a05 100644 --- a/sdk/dotnet/Notebooks/GetRuntimeIamPolicy.cs +++ b/sdk/dotnet/Notebooks/GetRuntimeIamPolicy.cs @@ -64,6 +64,33 @@ public static Task InvokeAsync(GetRuntimeIamPolicyArg /// public static Output Invoke(GetRuntimeIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:notebooks/getRuntimeIamPolicy:getRuntimeIamPolicy", args ?? new GetRuntimeIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for runtime + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.Notebooks.GetRuntimeIamPolicy.Invoke(new() + /// { + /// Project = runtime.Project, + /// Location = runtime.Location, + /// RuntimeName = runtime.Name, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetRuntimeIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:notebooks/getRuntimeIamPolicy:getRuntimeIamPolicy", args ?? new GetRuntimeIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/OracleDatabase/GetAutonomousDatabase.cs b/sdk/dotnet/OracleDatabase/GetAutonomousDatabase.cs index 708f87b01f..e43ddd48f8 100644 --- a/sdk/dotnet/OracleDatabase/GetAutonomousDatabase.cs +++ b/sdk/dotnet/OracleDatabase/GetAutonomousDatabase.cs @@ -66,6 +66,34 @@ public static Task InvokeAsync(GetAutonomousDatabas /// public static Output Invoke(GetAutonomousDatabaseInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:oracledatabase/getAutonomousDatabase:getAutonomousDatabase", args ?? new GetAutonomousDatabaseInvokeArgs(), options.WithDefaults()); + + /// + /// Get information about an AutonomousDatabase. + /// + /// For more information see the + /// [API](https://cloud.google.com/oracle/database/docs/reference/rest/v1/projects.locations.autonomousDatabases). + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var my_instance = Gcp.OracleDatabase.GetAutonomousDatabase.Invoke(new() + /// { + /// Location = "us-east4", + /// AutonomousDatabaseId = "autonomous_database_id", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetAutonomousDatabaseInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:oracledatabase/getAutonomousDatabase:getAutonomousDatabase", args ?? new GetAutonomousDatabaseInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/OracleDatabase/GetAutonomousDatabases.cs b/sdk/dotnet/OracleDatabase/GetAutonomousDatabases.cs index 94ebef13d6..012e1fb34f 100644 --- a/sdk/dotnet/OracleDatabase/GetAutonomousDatabases.cs +++ b/sdk/dotnet/OracleDatabase/GetAutonomousDatabases.cs @@ -64,6 +64,33 @@ public static Task InvokeAsync(GetAutonomousDataba /// public static Output Invoke(GetAutonomousDatabasesInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:oracledatabase/getAutonomousDatabases:getAutonomousDatabases", args ?? new GetAutonomousDatabasesInvokeArgs(), options.WithDefaults()); + + /// + /// List all AutonomousDatabases. + /// + /// For more information see the + /// [API](https://cloud.google.com/oracle/database/docs/reference/rest/v1/projects.locations.autonomousDatabases). + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var my_adbs = Gcp.OracleDatabase.GetAutonomousDatabases.Invoke(new() + /// { + /// Location = "us-east4", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetAutonomousDatabasesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:oracledatabase/getAutonomousDatabases:getAutonomousDatabases", args ?? new GetAutonomousDatabasesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/OracleDatabase/GetCloudExadataInfrastructure.cs b/sdk/dotnet/OracleDatabase/GetCloudExadataInfrastructure.cs index 521c9b30e9..ac0ef8d95b 100644 --- a/sdk/dotnet/OracleDatabase/GetCloudExadataInfrastructure.cs +++ b/sdk/dotnet/OracleDatabase/GetCloudExadataInfrastructure.cs @@ -66,6 +66,34 @@ public static Task InvokeAsync(GetCloudExad /// public static Output Invoke(GetCloudExadataInfrastructureInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:oracledatabase/getCloudExadataInfrastructure:getCloudExadataInfrastructure", args ?? new GetCloudExadataInfrastructureInvokeArgs(), options.WithDefaults()); + + /// + /// Get information about an ExadataInfrastructure. + /// + /// For more information see the + /// [API](https://cloud.google.com/oracle/database/docs/reference/rest/v1/projects.locations.cloudExadataInfrastructures). + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var my_instance = Gcp.OracleDatabase.GetCloudExadataInfrastructure.Invoke(new() + /// { + /// Location = "us-east4", + /// CloudExadataInfrastructureId = "exadata-id", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetCloudExadataInfrastructureInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:oracledatabase/getCloudExadataInfrastructure:getCloudExadataInfrastructure", args ?? new GetCloudExadataInfrastructureInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/OracleDatabase/GetCloudExadataInfrastructures.cs b/sdk/dotnet/OracleDatabase/GetCloudExadataInfrastructures.cs index b67ad7ff81..0a84e4c7c2 100644 --- a/sdk/dotnet/OracleDatabase/GetCloudExadataInfrastructures.cs +++ b/sdk/dotnet/OracleDatabase/GetCloudExadataInfrastructures.cs @@ -64,6 +64,33 @@ public static Task InvokeAsync(GetCloudExa /// public static Output Invoke(GetCloudExadataInfrastructuresInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:oracledatabase/getCloudExadataInfrastructures:getCloudExadataInfrastructures", args ?? new GetCloudExadataInfrastructuresInvokeArgs(), options.WithDefaults()); + + /// + /// List all ExadataInfrastructures. + /// + /// For more information see the + /// [API](https://cloud.google.com/oracle/database/docs/reference/rest/v1/projects.locations.cloudExadataInfrastructures). + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var myExadatas = Gcp.OracleDatabase.GetCloudExadataInfrastructures.Invoke(new() + /// { + /// Location = "us-east4", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetCloudExadataInfrastructuresInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:oracledatabase/getCloudExadataInfrastructures:getCloudExadataInfrastructures", args ?? new GetCloudExadataInfrastructuresInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/OracleDatabase/GetCloudVmCluster.cs b/sdk/dotnet/OracleDatabase/GetCloudVmCluster.cs index c01c3b1973..a509e90700 100644 --- a/sdk/dotnet/OracleDatabase/GetCloudVmCluster.cs +++ b/sdk/dotnet/OracleDatabase/GetCloudVmCluster.cs @@ -66,6 +66,34 @@ public static Task InvokeAsync(GetCloudVmClusterArgs ar /// public static Output Invoke(GetCloudVmClusterInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:oracledatabase/getCloudVmCluster:getCloudVmCluster", args ?? new GetCloudVmClusterInvokeArgs(), options.WithDefaults()); + + /// + /// Get information about a CloudVmCluster. + /// + /// For more information see the + /// [API](https://cloud.google.com/oracle/database/docs/reference/rest/v1/projects.locations.cloudVmClusters). + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var my_vmcluster = Gcp.OracleDatabase.GetCloudVmCluster.Invoke(new() + /// { + /// Location = "us-east4", + /// CloudVmClusterId = "vmcluster-id", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetCloudVmClusterInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:oracledatabase/getCloudVmCluster:getCloudVmCluster", args ?? new GetCloudVmClusterInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/OracleDatabase/GetCloudVmClusters.cs b/sdk/dotnet/OracleDatabase/GetCloudVmClusters.cs index 5031242d01..503beaac57 100644 --- a/sdk/dotnet/OracleDatabase/GetCloudVmClusters.cs +++ b/sdk/dotnet/OracleDatabase/GetCloudVmClusters.cs @@ -64,6 +64,33 @@ public static Task InvokeAsync(GetCloudVmClustersArgs /// public static Output Invoke(GetCloudVmClustersInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:oracledatabase/getCloudVmClusters:getCloudVmClusters", args ?? new GetCloudVmClustersInvokeArgs(), options.WithDefaults()); + + /// + /// List all CloudVmClusters. + /// + /// For more information see the + /// [API](https://cloud.google.com/oracle/database/docs/reference/rest/v1/projects.locations.cloudVmClusters). + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var myVmclusters = Gcp.OracleDatabase.GetCloudVmClusters.Invoke(new() + /// { + /// Location = "us-east4", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetCloudVmClustersInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:oracledatabase/getCloudVmClusters:getCloudVmClusters", args ?? new GetCloudVmClustersInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/OracleDatabase/GetDbNodes.cs b/sdk/dotnet/OracleDatabase/GetDbNodes.cs index 54df9a0935..80b9bc2995 100644 --- a/sdk/dotnet/OracleDatabase/GetDbNodes.cs +++ b/sdk/dotnet/OracleDatabase/GetDbNodes.cs @@ -146,6 +146,74 @@ public static Task InvokeAsync(GetDbNodesArgs args, InvokeOpti /// public static Output Invoke(GetDbNodesInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:oracledatabase/getDbNodes:getDbNodes", args ?? new GetDbNodesInvokeArgs(), options.WithDefaults()); + + /// + /// List all DbNodes of a Cloud VmCluster. + /// + /// For more information see the + /// [API](https://cloud.google.com/oracle/database/docs/reference/rest/v1/projects.locations.cloudVmClusters.dbNodes). + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var myDbNodes = Gcp.OracleDatabase.GetDbNodes.Invoke(new() + /// { + /// Location = "us-east4", + /// CloudVmCluster = "vmcluster-id", + /// }); + /// + /// }); + /// ``` + /// + /// ## Attributes reference + /// + /// The following attributes are exported: + /// + /// * `db_nodes` - List of dbNodes. Structure is documented below. + /// + /// <a name="nested_dbnodes"></a> The `db_nodes` block supports: + /// + /// * `name` - The name of the database node resource in the following format: projects/{project}/locations/{location}/cloudVmClusters/{cloudVmCluster}/dbNodes/{db_node} + /// + /// * `properties` - Various properties of the database node. Structure is documented below. + /// + /// <a name="nested_properties"></a> The `properties` block supports: + /// + /// * `ocid`- OCID of database node. + /// + /// * `ocpu_count` - OCPU count per database node. + /// + /// * `memory_size_gb` - The allocated memory in GBs on the database node. + /// + /// * `db_node_storage_size_gb` - The allocated local node storage in GBs on the database node. + /// + /// * `db_server_ocid` - The OCID of the Database server associated with the database node. + /// + /// * `hostname` - The host name for the database node. + /// + /// * `state` - State of the database node. + /// <a name="nested_states"></a>Possible values for `state` are:<br> + /// `PROVISIONING` - Indicates that the resource is being provisioned.<br> + /// `AVAILABLE` - Indicates that the resource is available.<br> + /// `UPDATING` - Indicates that the resource is being updated.<br> + /// `STOPPING` - Indicates that the resource is being stopped.<br> + /// `STOPPED` - Indicates that the resource is stopped.<br> + /// `STARTING` - Indicates that the resource is being started.<br> + /// `TERMINATING` - Indicates that the resource is being terminated.<br> + /// `TERMINATED` - Indicates that the resource is terminated.<br> + /// `FAILED` - Indicates that the resource has failed.<br> + /// + /// * `total_cpu_core_count` - The total number of CPU cores reserved on the database node. + /// + public static Output Invoke(GetDbNodesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:oracledatabase/getDbNodes:getDbNodes", args ?? new GetDbNodesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/OracleDatabase/GetDbServers.cs b/sdk/dotnet/OracleDatabase/GetDbServers.cs index 1e12d0e946..ff6cf22663 100644 --- a/sdk/dotnet/OracleDatabase/GetDbServers.cs +++ b/sdk/dotnet/OracleDatabase/GetDbServers.cs @@ -146,6 +146,74 @@ public static Task InvokeAsync(GetDbServersArgs args, Invoke /// public static Output Invoke(GetDbServersInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:oracledatabase/getDbServers:getDbServers", args ?? new GetDbServersInvokeArgs(), options.WithDefaults()); + + /// + /// List all DbServers of a Cloud Exdata Infrastructure. + /// + /// For more information see the + /// [API](https://cloud.google.com/oracle/database/docs/reference/rest/v1/projects.locations.cloudExadataInfrastructures.dbServers). + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var myDbServers = Gcp.OracleDatabase.GetDbServers.Invoke(new() + /// { + /// Location = "us-east4", + /// CloudExadataInfrastructure = "exadata-id", + /// }); + /// + /// }); + /// ``` + /// + /// ## Attributes reference + /// + /// The following attributes are exported: + /// + /// * `db_servers` - List of dbServers. Structure is documented below. + /// + /// <a name="nested_dbservers"></a> The `db_servers` block supports: + /// + /// * `display_name` - User friendly name for the resource. + /// + /// * `properties` - Various properties of the databse server. Structure is documented below. + /// + /// <a name="nested_properties"></a> The `properties` block supports: + /// + /// * `ocid` - The OCID of database server. + /// + /// * `ocpu_count` - The OCPU count per database. + /// + /// * `max_ocpu_count` - The total number of CPU cores available. + /// + /// * `memory_size_gb` - The allocated memory in gigabytes on the database server. + /// + /// * `max_memory_size_gb` - The total memory available in gigabytes. + /// + /// * `db_node_storage_size_gb` - The local storage per VM. + /// + /// * `max_db_node_storage_size_gb` - The total local node storage available in GBs. + /// + /// * `vm_count` - The VM count per database. + /// + /// * `state` - The current state of the database server. + /// <a name="nested_states"></a>Allowed values for `state` are:<br> + /// `CREATING` - Indicates that the resource is being created.<br> + /// `AVAILABLE` - Indicates that the resource is available.<br> + /// `UNAVAILABLE` - Indicates that the resource is unavailable.<br> + /// `DELETING` - Indicates that the resource is being deleted.<br> + /// `DELETED` - Indicates that the resource has been deleted.<br> + /// + /// * `db_node_ids` - The OCID of database nodes associated with the database server. + /// + public static Output Invoke(GetDbServersInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:oracledatabase/getDbServers:getDbServers", args ?? new GetDbServersInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Organizations/GetActiveFolder.cs b/sdk/dotnet/Organizations/GetActiveFolder.cs index fd669f418b..571b014194 100644 --- a/sdk/dotnet/Organizations/GetActiveFolder.cs +++ b/sdk/dotnet/Organizations/GetActiveFolder.cs @@ -60,6 +60,31 @@ public static Task InvokeAsync(GetActiveFolderArgs args, /// public static Output Invoke(GetActiveFolderInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:organizations/getActiveFolder:getActiveFolder", args ?? new GetActiveFolderInvokeArgs(), options.WithDefaults()); + + /// + /// Get an active folder within GCP by `display_name` and `parent`. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var department1 = Gcp.Organizations.GetActiveFolder.Invoke(new() + /// { + /// DisplayName = "Department 1", + /// Parent = "organizations/1234567", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetActiveFolderInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:organizations/getActiveFolder:getActiveFolder", args ?? new GetActiveFolderInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Organizations/GetBillingAccount.cs b/sdk/dotnet/Organizations/GetBillingAccount.cs index 70b98032e4..21015a31ca 100644 --- a/sdk/dotnet/Organizations/GetBillingAccount.cs +++ b/sdk/dotnet/Organizations/GetBillingAccount.cs @@ -72,6 +72,37 @@ public static Task InvokeAsync(GetBillingAccountArgs? a /// public static Output Invoke(GetBillingAccountInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:organizations/getBillingAccount:getBillingAccount", args ?? new GetBillingAccountInvokeArgs(), options.WithDefaults()); + + /// + /// Use this data source to get information about a Google Billing Account. + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var acct = Gcp.Organizations.GetBillingAccount.Invoke(new() + /// { + /// DisplayName = "My Billing Account", + /// Open = true, + /// }); + /// + /// var myProject = new Gcp.Organizations.Project("my_project", new() + /// { + /// Name = "My Project", + /// ProjectId = "your-project-id", + /// OrgId = "1234567", + /// BillingAccount = acct.Apply(getBillingAccountResult => getBillingAccountResult.Id), + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetBillingAccountInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:organizations/getBillingAccount:getBillingAccount", args ?? new GetBillingAccountInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Organizations/GetClientConfig.cs b/sdk/dotnet/Organizations/GetClientConfig.cs index 8c51727286..1c2b5b2ca5 100644 --- a/sdk/dotnet/Organizations/GetClientConfig.cs +++ b/sdk/dotnet/Organizations/GetClientConfig.cs @@ -56,6 +56,29 @@ public static Task InvokeAsync(InvokeOptions? options = n /// public static Output Invoke(InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:organizations/getClientConfig:getClientConfig", InvokeArgs.Empty, options.WithDefaults()); + + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var current = Gcp.Organizations.GetClientConfig.Invoke(); + /// + /// return new Dictionary<string, object?> + /// { + /// ["project"] = current.Apply(getClientConfigResult => getClientConfigResult.Project), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:organizations/getClientConfig:getClientConfig", InvokeArgs.Empty, options.WithDefaults()); } diff --git a/sdk/dotnet/Organizations/GetClientOpenIdUserInfo.cs b/sdk/dotnet/Organizations/GetClientOpenIdUserInfo.cs index cbeb165ced..74ab818594 100644 --- a/sdk/dotnet/Organizations/GetClientOpenIdUserInfo.cs +++ b/sdk/dotnet/Organizations/GetClientOpenIdUserInfo.cs @@ -84,6 +84,43 @@ public static Task InvokeAsync(InvokeOptions? opt /// public static Output Invoke(InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:organizations/getClientOpenIdUserInfo:getClientOpenIdUserInfo", InvokeArgs.Empty, options.WithDefaults()); + + /// + /// Get OpenID userinfo about the credentials used with the Google provider, + /// specifically the email. + /// + /// This datasource enables you to export the email of the account you've + /// authenticated the provider with; this can be used alongside + /// `data.google_client_config`'s `access_token` to perform OpenID Connect + /// authentication with GKE and configure an RBAC role for the email used. + /// + /// > This resource will only work as expected if the provider is configured to + /// use the `https://www.googleapis.com/auth/userinfo.email` scope! You will + /// receive an error otherwise. The provider uses this scope by default. + /// + /// ## Example Usage + /// + /// ### Exporting An Email + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var me = Gcp.Organizations.GetClientOpenIdUserInfo.Invoke(); + /// + /// return new Dictionary<string, object?> + /// { + /// ["my-email"] = me.Apply(getClientOpenIdUserInfoResult => getClientOpenIdUserInfoResult.Email), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:organizations/getClientOpenIdUserInfo:getClientOpenIdUserInfo", InvokeArgs.Empty, options.WithDefaults()); } diff --git a/sdk/dotnet/Organizations/GetFolder.cs b/sdk/dotnet/Organizations/GetFolder.cs index ebbdefbbb6..e18a5baff3 100644 --- a/sdk/dotnet/Organizations/GetFolder.cs +++ b/sdk/dotnet/Organizations/GetFolder.cs @@ -76,6 +76,39 @@ public static Task InvokeAsync(GetFolderArgs args, InvokeOption /// public static Output Invoke(GetFolderInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:organizations/getFolder:getFolder", args ?? new GetFolderInvokeArgs(), options.WithDefaults()); + + /// + /// Use this data source to get information about a Google Cloud Folder. + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var myFolder1 = Gcp.Organizations.GetFolder.Invoke(new() + /// { + /// Folder = "folders/12345", + /// LookupOrganization = true, + /// }); + /// + /// var myFolder2 = Gcp.Organizations.GetFolder.Invoke(new() + /// { + /// Folder = "folders/23456", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["myFolder1Organization"] = myFolder1.Apply(getFolderResult => getFolderResult.Organization), + /// ["myFolder2Parent"] = myFolder2.Apply(getFolderResult => getFolderResult.Parent), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetFolderInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:organizations/getFolder:getFolder", args ?? new GetFolderInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Organizations/GetFolders.cs b/sdk/dotnet/Organizations/GetFolders.cs index c490091546..a854ec4922 100644 --- a/sdk/dotnet/Organizations/GetFolders.cs +++ b/sdk/dotnet/Organizations/GetFolders.cs @@ -76,6 +76,39 @@ public static Task InvokeAsync(GetFoldersArgs args, InvokeOpti /// public static Output Invoke(GetFoldersInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:organizations/getFolders:getFolders", args ?? new GetFoldersInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieve information about a set of folders based on a parent ID. See the + /// [REST API](https://cloud.google.com/resource-manager/reference/rest/v3/folders/list) + /// for more details. + /// + /// ## Example Usage + /// + /// ### Searching For Folders At The Root Of An Org + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var my_org_folders = Gcp.Organizations.GetFolders.Invoke(new() + /// { + /// ParentId = $"organizations/{organizationId}", + /// }); + /// + /// var first_folder = Gcp.Organizations.GetFolder.Invoke(new() + /// { + /// Folder = my_org_folders.Apply(getFoldersResult => getFoldersResult.Folders[0]?.Name), + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetFoldersInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:organizations/getFolders:getFolders", args ?? new GetFoldersInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Organizations/GetIAMPolicy.cs b/sdk/dotnet/Organizations/GetIAMPolicy.cs index 95d94d9769..46e41ea503 100644 --- a/sdk/dotnet/Organizations/GetIAMPolicy.cs +++ b/sdk/dotnet/Organizations/GetIAMPolicy.cs @@ -28,6 +28,15 @@ public static Task InvokeAsync(GetIAMPolicyArgs? args = null /// public static Output Invoke(GetIAMPolicyInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:organizations/getIAMPolicy:getIAMPolicy", args ?? new GetIAMPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Generates an IAM policy document that may be referenced by and applied to + /// other Google Cloud Platform IAM resources, such as the `gcp.projects.IAMPolicy` resource. + /// + /// **Note:** Please review the documentation of the resource that you will be using the datasource with. Some resources such as `gcp.projects.IAMPolicy` and others have limitations in their API methods which are noted on their respective page. + /// + public static Output Invoke(GetIAMPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:organizations/getIAMPolicy:getIAMPolicy", args ?? new GetIAMPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Organizations/GetOrganization.cs b/sdk/dotnet/Organizations/GetOrganization.cs index 467b30ba8e..5f5f0b1dcd 100644 --- a/sdk/dotnet/Organizations/GetOrganization.cs +++ b/sdk/dotnet/Organizations/GetOrganization.cs @@ -66,6 +66,34 @@ public static Task InvokeAsync(GetOrganizationArgs? args /// public static Output Invoke(GetOrganizationInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:organizations/getOrganization:getOrganization", args ?? new GetOrganizationInvokeArgs(), options.WithDefaults()); + + /// + /// Get information about a Google Cloud Organization. Note that you must have the `roles/resourcemanager.organizationViewer` role (or equivalent permissions) at the organization level to use this datasource. + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var org = Gcp.Organizations.GetOrganization.Invoke(new() + /// { + /// Domain = "example.com", + /// }); + /// + /// var sales = new Gcp.Organizations.Folder("sales", new() + /// { + /// DisplayName = "Sales", + /// Parent = org.Apply(getOrganizationResult => getOrganizationResult.Name), + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetOrganizationInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:organizations/getOrganization:getOrganization", args ?? new GetOrganizationInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Organizations/GetProject.cs b/sdk/dotnet/Organizations/GetProject.cs index 78687aa5cb..6f87f8bc2b 100644 --- a/sdk/dotnet/Organizations/GetProject.cs +++ b/sdk/dotnet/Organizations/GetProject.cs @@ -64,6 +64,33 @@ public static Task InvokeAsync(GetProjectArgs? args = null, In /// public static Output Invoke(GetProjectInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:organizations/getProject:getProject", args ?? new GetProjectInvokeArgs(), options.WithDefaults()); + + /// + /// Use this data source to get project details. + /// For more information see + /// [API](https://cloud.google.com/resource-manager/reference/rest/v1/projects#Project) + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var project = Gcp.Organizations.GetProject.Invoke(); + /// + /// return new Dictionary<string, object?> + /// { + /// ["projectNumber"] = project.Apply(getProjectResult => getProjectResult.Number), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetProjectInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:organizations/getProject:getProject", args ?? new GetProjectInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/PrivilegedAccessManager/GetEntitlement.cs b/sdk/dotnet/PrivilegedAccessManager/GetEntitlement.cs index 2dae6215b3..aa7c03e00b 100644 --- a/sdk/dotnet/PrivilegedAccessManager/GetEntitlement.cs +++ b/sdk/dotnet/PrivilegedAccessManager/GetEntitlement.cs @@ -74,6 +74,38 @@ public static Task InvokeAsync(GetEntitlementArgs? args = /// public static Output Invoke(GetEntitlementInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:privilegedaccessmanager/getEntitlement:getEntitlement", args ?? new GetEntitlementInvokeArgs(), options.WithDefaults()); + + /// + /// Use this data source to get information about a Google Cloud Privileged Access Manager Entitlement. + /// + /// To get more information about Privileged Access Manager, see: + /// + /// * [API Documentation](https://cloud.google.com/iam/docs/reference/pam/rest) + /// * How-to guides + /// * [Official documentation](https://cloud.google.com/iam/docs/pam-overview) + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var my_entitlement = Gcp.PrivilegedAccessManager.GetEntitlement.Invoke(new() + /// { + /// Parent = "projects/my-project", + /// Location = "global", + /// EntitlementId = "my-entitlement", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetEntitlementInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:privilegedaccessmanager/getEntitlement:getEntitlement", args ?? new GetEntitlementInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Projects/GetIamPolicy.cs b/sdk/dotnet/Projects/GetIamPolicy.cs index 8ec4533bec..885050674c 100644 --- a/sdk/dotnet/Projects/GetIamPolicy.cs +++ b/sdk/dotnet/Projects/GetIamPolicy.cs @@ -58,6 +58,30 @@ public static Task InvokeAsync(GetIamPolicyArgs args, Invoke /// public static Output Invoke(GetIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:projects/getIamPolicy:getIamPolicy", args ?? new GetIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for a project. + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.Projects.GetIamPolicy.Invoke(new() + /// { + /// Project = "myproject", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:projects/getIamPolicy:getIamPolicy", args ?? new GetIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Projects/GetOrganizationPolicy.cs b/sdk/dotnet/Projects/GetOrganizationPolicy.cs index dc80a9f6f5..07341b8a5f 100644 --- a/sdk/dotnet/Projects/GetOrganizationPolicy.cs +++ b/sdk/dotnet/Projects/GetOrganizationPolicy.cs @@ -72,6 +72,37 @@ public static Task InvokeAsync(GetOrganizationPolic /// public static Output Invoke(GetOrganizationPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:projects/getOrganizationPolicy:getOrganizationPolicy", args ?? new GetOrganizationPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Allows management of Organization policies for a Google Project. For more information see + /// [the official + /// documentation](https://cloud.google.com/resource-manager/docs/organization-policy/overview) + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.Projects.GetOrganizationPolicy.Invoke(new() + /// { + /// Project = "project-id", + /// Constraint = "constraints/serviceuser.services", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["version"] = policy.Apply(getOrganizationPolicyResult => getOrganizationPolicyResult.Version), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetOrganizationPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:projects/getOrganizationPolicy:getOrganizationPolicy", args ?? new GetOrganizationPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Projects/GetProject.cs b/sdk/dotnet/Projects/GetProject.cs index 4d01fb2e10..437c3f337a 100644 --- a/sdk/dotnet/Projects/GetProject.cs +++ b/sdk/dotnet/Projects/GetProject.cs @@ -76,6 +76,39 @@ public static Task InvokeAsync(GetProjectArgs args, InvokeOpti /// public static Output Invoke(GetProjectInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:projects/getProject:getProject", args ?? new GetProjectInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieve information about a set of projects based on a filter. See the + /// [REST API](https://cloud.google.com/resource-manager/reference/rest/v1/projects/list) + /// for more details. + /// + /// ## Example Usage + /// + /// ### Searching For Projects About To Be Deleted In An Org + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var my_org_projects = Gcp.Projects.GetProject.Invoke(new() + /// { + /// Filter = "parent.id:012345678910 lifecycleState:DELETE_REQUESTED", + /// }); + /// + /// var deletion_candidate = Gcp.Organizations.GetProject.Invoke(new() + /// { + /// ProjectId = my_org_projects.Apply(getProjectResult => getProjectResult.Projects[0]?.ProjectId), + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetProjectInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:projects/getProject:getProject", args ?? new GetProjectInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Projects/GetProjectService.cs b/sdk/dotnet/Projects/GetProjectService.cs index be1acaf53e..c91199c4f9 100644 --- a/sdk/dotnet/Projects/GetProjectService.cs +++ b/sdk/dotnet/Projects/GetProjectService.cs @@ -84,6 +84,43 @@ public static Task InvokeAsync(GetProjectServiceArgs ar /// public static Output Invoke(GetProjectServiceInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:projects/getProjectService:getProjectService", args ?? new GetProjectServiceInvokeArgs(), options.WithDefaults()); + + /// + /// Verify the API service for the Google Cloud Platform project to see if it is enabled or not. + /// + /// For a list of services available, visit the [API library page](https://console.cloud.google.com/apis/library) + /// or run `gcloud services list --available`. + /// + /// This datasource requires the [Service Usage API](https://console.cloud.google.com/apis/library/serviceusage.googleapis.com) + /// to use. + /// + /// + /// To get more information about `gcp.projects.Service`, see: + /// + /// * [API documentation](https://cloud.google.com/service-usage/docs/reference/rest/v1/services) + /// * How-to Guides + /// * [Enabling and Disabling Services](https://cloud.google.com/service-usage/docs/enable-disable) + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var my_project_service = Gcp.Projects.GetProjectService.Invoke(new() + /// { + /// Service = "my-project-service", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetProjectServiceInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:projects/getProjectService:getProjectService", args ?? new GetProjectServiceInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/PubSub/GetSchemaIamPolicy.cs b/sdk/dotnet/PubSub/GetSchemaIamPolicy.cs index d6c2eb4ebd..fa0969fa83 100644 --- a/sdk/dotnet/PubSub/GetSchemaIamPolicy.cs +++ b/sdk/dotnet/PubSub/GetSchemaIamPolicy.cs @@ -62,6 +62,32 @@ public static Task InvokeAsync(GetSchemaIamPolicyArgs /// public static Output Invoke(GetSchemaIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:pubsub/getSchemaIamPolicy:getSchemaIamPolicy", args ?? new GetSchemaIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for schema + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.PubSub.GetSchemaIamPolicy.Invoke(new() + /// { + /// Project = example.Project, + /// Schema = example.Name, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetSchemaIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:pubsub/getSchemaIamPolicy:getSchemaIamPolicy", args ?? new GetSchemaIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/PubSub/GetSubscription.cs b/sdk/dotnet/PubSub/GetSubscription.cs index d82ac1e6cf..3fb6a63145 100644 --- a/sdk/dotnet/PubSub/GetSubscription.cs +++ b/sdk/dotnet/PubSub/GetSubscription.cs @@ -62,6 +62,32 @@ public static Task InvokeAsync(GetSubscriptionArgs args, /// public static Output Invoke(GetSubscriptionInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:pubsub/getSubscription:getSubscription", args ?? new GetSubscriptionInvokeArgs(), options.WithDefaults()); + + /// + /// Get information about a Google Cloud Pub/Sub Subscription. For more information see + /// the [official documentation](https://cloud.google.com/pubsub/docs/) + /// and [API](https://cloud.google.com/pubsub/docs/apis). + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var my_pubsub_subscription = Gcp.PubSub.GetSubscription.Invoke(new() + /// { + /// Name = "my-pubsub-subscription", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetSubscriptionInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:pubsub/getSubscription:getSubscription", args ?? new GetSubscriptionInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/PubSub/GetSubscriptionIamPolicy.cs b/sdk/dotnet/PubSub/GetSubscriptionIamPolicy.cs index 3834edb81a..c9d4e61313 100644 --- a/sdk/dotnet/PubSub/GetSubscriptionIamPolicy.cs +++ b/sdk/dotnet/PubSub/GetSubscriptionIamPolicy.cs @@ -58,6 +58,30 @@ public static Task InvokeAsync(GetSubscriptionIa /// public static Output Invoke(GetSubscriptionIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:pubsub/getSubscriptionIamPolicy:getSubscriptionIamPolicy", args ?? new GetSubscriptionIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for a Pubsub subscription. + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.PubSub.GetSubscriptionIamPolicy.Invoke(new() + /// { + /// Subscription = subscription.Id, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetSubscriptionIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:pubsub/getSubscriptionIamPolicy:getSubscriptionIamPolicy", args ?? new GetSubscriptionIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/PubSub/GetTopic.cs b/sdk/dotnet/PubSub/GetTopic.cs index 13b75f5675..9b1504afa0 100644 --- a/sdk/dotnet/PubSub/GetTopic.cs +++ b/sdk/dotnet/PubSub/GetTopic.cs @@ -62,6 +62,32 @@ public static Task InvokeAsync(GetTopicArgs args, InvokeOptions? /// public static Output Invoke(GetTopicInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:pubsub/getTopic:getTopic", args ?? new GetTopicInvokeArgs(), options.WithDefaults()); + + /// + /// Get information about a Google Cloud Pub/Sub Topic. For more information see + /// the [official documentation](https://cloud.google.com/pubsub/docs/) + /// and [API](https://cloud.google.com/pubsub/docs/apis). + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var my_pubsub_topic = Gcp.PubSub.GetTopic.Invoke(new() + /// { + /// Name = "my-pubsub-topic", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetTopicInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:pubsub/getTopic:getTopic", args ?? new GetTopicInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/PubSub/GetTopicIamPolicy.cs b/sdk/dotnet/PubSub/GetTopicIamPolicy.cs index fe0c0f3dcc..ccbdcafa67 100644 --- a/sdk/dotnet/PubSub/GetTopicIamPolicy.cs +++ b/sdk/dotnet/PubSub/GetTopicIamPolicy.cs @@ -62,6 +62,32 @@ public static Task InvokeAsync(GetTopicIamPolicyArgs ar /// public static Output Invoke(GetTopicIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:pubsub/getTopicIamPolicy:getTopicIamPolicy", args ?? new GetTopicIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for topic + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.PubSub.GetTopicIamPolicy.Invoke(new() + /// { + /// Project = example.Project, + /// Topic = example.Name, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetTopicIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:pubsub/getTopicIamPolicy:getTopicIamPolicy", args ?? new GetTopicIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Redis/GetInstance.cs b/sdk/dotnet/Redis/GetInstance.cs index a141987215..1e9122c118 100644 --- a/sdk/dotnet/Redis/GetInstance.cs +++ b/sdk/dotnet/Redis/GetInstance.cs @@ -70,6 +70,36 @@ public static Task InvokeAsync(GetInstanceArgs args, InvokeOp /// public static Output Invoke(GetInstanceInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:redis/getInstance:getInstance", args ?? new GetInstanceInvokeArgs(), options.WithDefaults()); + + /// + /// Get info about a Google Cloud Redis instance. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var myInstance = Gcp.Redis.GetInstance.Invoke(new() + /// { + /// Name = "my-redis-instance", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["instanceMemorySizeGb"] = myInstance.Apply(getInstanceResult => getInstanceResult.MemorySizeGb), + /// ["instanceConnectMode"] = myInstance.Apply(getInstanceResult => getInstanceResult.ConnectMode), + /// ["instanceAuthorizedNetwork"] = myInstance.Apply(getInstanceResult => getInstanceResult.AuthorizedNetwork), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetInstanceInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:redis/getInstance:getInstance", args ?? new GetInstanceInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/RuntimeConfig/GetConfig.cs b/sdk/dotnet/RuntimeConfig/GetConfig.cs index 69ae95b535..5ff0e57c4a 100644 --- a/sdk/dotnet/RuntimeConfig/GetConfig.cs +++ b/sdk/dotnet/RuntimeConfig/GetConfig.cs @@ -54,6 +54,28 @@ public static Task InvokeAsync(GetConfigArgs args, InvokeOption /// public static Output Invoke(GetConfigInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:runtimeconfig/getConfig:getConfig", args ?? new GetConfigInvokeArgs(), options.WithDefaults()); + + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var run_service = Gcp.RuntimeConfig.GetConfig.Invoke(new() + /// { + /// Name = "my-service", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetConfigInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:runtimeconfig/getConfig:getConfig", args ?? new GetConfigInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/RuntimeConfig/GetConfigIamPolicy.cs b/sdk/dotnet/RuntimeConfig/GetConfigIamPolicy.cs index e97bb7ba3e..6eaa0faef7 100644 --- a/sdk/dotnet/RuntimeConfig/GetConfigIamPolicy.cs +++ b/sdk/dotnet/RuntimeConfig/GetConfigIamPolicy.cs @@ -16,6 +16,9 @@ public static Task InvokeAsync(GetConfigIamPolicyArgs public static Output Invoke(GetConfigIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:runtimeconfig/getConfigIamPolicy:getConfigIamPolicy", args ?? new GetConfigIamPolicyInvokeArgs(), options.WithDefaults()); + + public static Output Invoke(GetConfigIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:runtimeconfig/getConfigIamPolicy:getConfigIamPolicy", args ?? new GetConfigIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/RuntimeConfig/GetVariable.cs b/sdk/dotnet/RuntimeConfig/GetVariable.cs index 5bd67a1dcd..1a10783a02 100644 --- a/sdk/dotnet/RuntimeConfig/GetVariable.cs +++ b/sdk/dotnet/RuntimeConfig/GetVariable.cs @@ -56,6 +56,29 @@ public static Task InvokeAsync(GetVariableArgs args, InvokeOp /// public static Output Invoke(GetVariableInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:runtimeconfig/getVariable:getVariable", args ?? new GetVariableInvokeArgs(), options.WithDefaults()); + + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var run_service = Gcp.RuntimeConfig.GetVariable.Invoke(new() + /// { + /// Parent = "my-service", + /// Name = "prod-variables/hostname", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetVariableInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:runtimeconfig/getVariable:getVariable", args ?? new GetVariableInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/SecretManager/GetRegionalSecret.cs b/sdk/dotnet/SecretManager/GetRegionalSecret.cs index c064c4a6bd..30bd452633 100644 --- a/sdk/dotnet/SecretManager/GetRegionalSecret.cs +++ b/sdk/dotnet/SecretManager/GetRegionalSecret.cs @@ -60,6 +60,31 @@ public static Task InvokeAsync(GetRegionalSecretArgs ar /// public static Output Invoke(GetRegionalSecretInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:secretmanager/getRegionalSecret:getRegionalSecret", args ?? new GetRegionalSecretInvokeArgs(), options.WithDefaults()); + + /// + /// Use this data source to get information about a Secret Manager Regional Secret + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var secretDatasource = Gcp.SecretManager.GetRegionalSecret.Invoke(new() + /// { + /// SecretId = "secretname", + /// Location = "us-central1", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetRegionalSecretInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:secretmanager/getRegionalSecret:getRegionalSecret", args ?? new GetRegionalSecretInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/SecretManager/GetRegionalSecretIamPolicy.cs b/sdk/dotnet/SecretManager/GetRegionalSecretIamPolicy.cs index 7615937589..8d8d59191d 100644 --- a/sdk/dotnet/SecretManager/GetRegionalSecretIamPolicy.cs +++ b/sdk/dotnet/SecretManager/GetRegionalSecretIamPolicy.cs @@ -64,6 +64,33 @@ public static Task InvokeAsync(GetRegionalSecr /// public static Output Invoke(GetRegionalSecretIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:secretmanager/getRegionalSecretIamPolicy:getRegionalSecretIamPolicy", args ?? new GetRegionalSecretIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for regionalsecret + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.SecretManager.GetRegionalSecretIamPolicy.Invoke(new() + /// { + /// Project = regional_secret_basic.Project, + /// Location = regional_secret_basic.Location, + /// SecretId = regional_secret_basic.SecretId, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetRegionalSecretIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:secretmanager/getRegionalSecretIamPolicy:getRegionalSecretIamPolicy", args ?? new GetRegionalSecretIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/SecretManager/GetRegionalSecretVersion.cs b/sdk/dotnet/SecretManager/GetRegionalSecretVersion.cs index 3f1bc73fc0..7b055b5b12 100644 --- a/sdk/dotnet/SecretManager/GetRegionalSecretVersion.cs +++ b/sdk/dotnet/SecretManager/GetRegionalSecretVersion.cs @@ -60,6 +60,31 @@ public static Task InvokeAsync(GetRegionalSecret /// public static Output Invoke(GetRegionalSecretVersionInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:secretmanager/getRegionalSecretVersion:getRegionalSecretVersion", args ?? new GetRegionalSecretVersionInvokeArgs(), options.WithDefaults()); + + /// + /// Get the value and metadata from a Secret Manager regional secret version. For more information see the [official documentation](https://cloud.google.com/secret-manager/docs/regional-secrets-overview) and [API](https://cloud.google.com/secret-manager/docs/reference/rest/v1/projects.locations.secrets.versions). If you don't need the metadata (i.e., if you want to use a more limited role to access the regional secret version only), see also the gcp.secretmanager.getRegionalSecretVersionAccess datasource. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var basic = Gcp.SecretManager.GetRegionalSecretVersion.Invoke(new() + /// { + /// Secret = "my-secret", + /// Location = "us-central1", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetRegionalSecretVersionInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:secretmanager/getRegionalSecretVersion:getRegionalSecretVersion", args ?? new GetRegionalSecretVersionInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/SecretManager/GetRegionalSecretVersionAccess.cs b/sdk/dotnet/SecretManager/GetRegionalSecretVersionAccess.cs index beacd5d0e2..9e65f26c9e 100644 --- a/sdk/dotnet/SecretManager/GetRegionalSecretVersionAccess.cs +++ b/sdk/dotnet/SecretManager/GetRegionalSecretVersionAccess.cs @@ -60,6 +60,31 @@ public static Task InvokeAsync(GetRegional /// public static Output Invoke(GetRegionalSecretVersionAccessInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:secretmanager/getRegionalSecretVersionAccess:getRegionalSecretVersionAccess", args ?? new GetRegionalSecretVersionAccessInvokeArgs(), options.WithDefaults()); + + /// + /// Get the value from a Secret Manager regional secret version. This is similar to the gcp.secretmanager.RegionalSecretVersion datasource, but it only requires the [Secret Manager Secret Accessor](https://cloud.google.com/secret-manager/docs/access-control#secretmanager.secretAccessor) role. For more information see the [official documentation](https://cloud.google.com/secret-manager/docs/regional-secrets-overview) and [API](https://cloud.google.com/secret-manager/docs/reference/rest/v1/projects.locations.secrets.versions/access). + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var latest = Gcp.SecretManager.GetRegionalSecretVersionAccess.Invoke(new() + /// { + /// Secret = "my-secret", + /// Location = "us-central1", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetRegionalSecretVersionAccessInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:secretmanager/getRegionalSecretVersionAccess:getRegionalSecretVersionAccess", args ?? new GetRegionalSecretVersionAccessInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/SecretManager/GetRegionalSecrets.cs b/sdk/dotnet/SecretManager/GetRegionalSecrets.cs index 462b04fb6d..158538745f 100644 --- a/sdk/dotnet/SecretManager/GetRegionalSecrets.cs +++ b/sdk/dotnet/SecretManager/GetRegionalSecrets.cs @@ -58,6 +58,30 @@ public static Task InvokeAsync(GetRegionalSecretsArgs /// public static Output Invoke(GetRegionalSecretsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:secretmanager/getRegionalSecrets:getRegionalSecrets", args ?? new GetRegionalSecretsInvokeArgs(), options.WithDefaults()); + + /// + /// Use this data source to list the Secret Manager Regional Secrets. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var secrets = Gcp.SecretManager.GetRegionalSecrets.Invoke(new() + /// { + /// Location = "us-central1", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetRegionalSecretsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:secretmanager/getRegionalSecrets:getRegionalSecrets", args ?? new GetRegionalSecretsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/SecretManager/GetSecret.cs b/sdk/dotnet/SecretManager/GetSecret.cs index 1c86cce2b4..e4def2250c 100644 --- a/sdk/dotnet/SecretManager/GetSecret.cs +++ b/sdk/dotnet/SecretManager/GetSecret.cs @@ -58,6 +58,30 @@ public static Task InvokeAsync(GetSecretArgs args, InvokeOption /// public static Output Invoke(GetSecretInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:secretmanager/getSecret:getSecret", args ?? new GetSecretInvokeArgs(), options.WithDefaults()); + + /// + /// Use this data source to get information about a Secret Manager Secret + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var qa = Gcp.SecretManager.GetSecret.Invoke(new() + /// { + /// SecretId = "foobar", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetSecretInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:secretmanager/getSecret:getSecret", args ?? new GetSecretInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/SecretManager/GetSecretIamPolicy.cs b/sdk/dotnet/SecretManager/GetSecretIamPolicy.cs index 03f679d085..5f024f20fa 100644 --- a/sdk/dotnet/SecretManager/GetSecretIamPolicy.cs +++ b/sdk/dotnet/SecretManager/GetSecretIamPolicy.cs @@ -62,6 +62,32 @@ public static Task InvokeAsync(GetSecretIamPolicyArgs /// public static Output Invoke(GetSecretIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:secretmanager/getSecretIamPolicy:getSecretIamPolicy", args ?? new GetSecretIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for secret + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.SecretManager.GetSecretIamPolicy.Invoke(new() + /// { + /// Project = secret_basic.Project, + /// SecretId = secret_basic.SecretId, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetSecretIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:secretmanager/getSecretIamPolicy:getSecretIamPolicy", args ?? new GetSecretIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/SecretManager/GetSecretVersion.cs b/sdk/dotnet/SecretManager/GetSecretVersion.cs index 7f259f7afa..d004ed537d 100644 --- a/sdk/dotnet/SecretManager/GetSecretVersion.cs +++ b/sdk/dotnet/SecretManager/GetSecretVersion.cs @@ -58,6 +58,30 @@ public static Task InvokeAsync(GetSecretVersionArgs args /// public static Output Invoke(GetSecretVersionInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:secretmanager/getSecretVersion:getSecretVersion", args ?? new GetSecretVersionInvokeArgs(), options.WithDefaults()); + + /// + /// Get the value and metadata from a Secret Manager secret version. For more information see the [official documentation](https://cloud.google.com/secret-manager/docs/) and [API](https://cloud.google.com/secret-manager/docs/reference/rest/v1/projects.secrets.versions). If you don't need the metadata (i.e., if you want to use a more limited role to access the secret version only), see also the gcp.secretmanager.getSecretVersionAccess datasource. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var basic = Gcp.SecretManager.GetSecretVersion.Invoke(new() + /// { + /// Secret = "my-secret", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetSecretVersionInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:secretmanager/getSecretVersion:getSecretVersion", args ?? new GetSecretVersionInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/SecretManager/GetSecretVersionAccess.cs b/sdk/dotnet/SecretManager/GetSecretVersionAccess.cs index edfd9f9f8b..e222310f9f 100644 --- a/sdk/dotnet/SecretManager/GetSecretVersionAccess.cs +++ b/sdk/dotnet/SecretManager/GetSecretVersionAccess.cs @@ -58,6 +58,30 @@ public static Task InvokeAsync(GetSecretVersionAcc /// public static Output Invoke(GetSecretVersionAccessInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:secretmanager/getSecretVersionAccess:getSecretVersionAccess", args ?? new GetSecretVersionAccessInvokeArgs(), options.WithDefaults()); + + /// + /// Get the value from a Secret Manager secret version. This is similar to the gcp.secretmanager.SecretVersion datasource, but it only requires the [Secret Manager Secret Accessor](https://cloud.google.com/secret-manager/docs/access-control#secretmanager.secretAccessor) role. For more information see the [official documentation](https://cloud.google.com/secret-manager/docs/) and [API](https://cloud.google.com/secret-manager/docs/reference/rest/v1/projects.secrets.versions/access). + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var basic = Gcp.SecretManager.GetSecretVersionAccess.Invoke(new() + /// { + /// Secret = "my-secret", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetSecretVersionAccessInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:secretmanager/getSecretVersionAccess:getSecretVersionAccess", args ?? new GetSecretVersionAccessInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/SecretManager/GetSecrets.cs b/sdk/dotnet/SecretManager/GetSecrets.cs index 1281577e19..317e2d6e07 100644 --- a/sdk/dotnet/SecretManager/GetSecrets.cs +++ b/sdk/dotnet/SecretManager/GetSecrets.cs @@ -52,6 +52,27 @@ public static Task InvokeAsync(GetSecretsArgs? args = null, In /// public static Output Invoke(GetSecretsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:secretmanager/getSecrets:getSecrets", args ?? new GetSecretsInvokeArgs(), options.WithDefaults()); + + /// + /// Use this data source to list the Secret Manager Secrets + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var secrets = Gcp.SecretManager.GetSecrets.Invoke(); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetSecretsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:secretmanager/getSecrets:getSecrets", args ?? new GetSecretsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/SecureSourceManager/GetInstanceIamPolicy.cs b/sdk/dotnet/SecureSourceManager/GetInstanceIamPolicy.cs index a56595a91f..5724f07e94 100644 --- a/sdk/dotnet/SecureSourceManager/GetInstanceIamPolicy.cs +++ b/sdk/dotnet/SecureSourceManager/GetInstanceIamPolicy.cs @@ -64,6 +64,33 @@ public static Task InvokeAsync(GetInstanceIamPolicyA /// public static Output Invoke(GetInstanceIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:securesourcemanager/getInstanceIamPolicy:getInstanceIamPolicy", args ?? new GetInstanceIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for instance + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.SecureSourceManager.GetInstanceIamPolicy.Invoke(new() + /// { + /// Project = @default.Project, + /// Location = @default.Location, + /// InstanceId = @default.InstanceId, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetInstanceIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:securesourcemanager/getInstanceIamPolicy:getInstanceIamPolicy", args ?? new GetInstanceIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/SecureSourceManager/GetRepositoryIamPolicy.cs b/sdk/dotnet/SecureSourceManager/GetRepositoryIamPolicy.cs index 4919eac131..aa3e9ff2e1 100644 --- a/sdk/dotnet/SecureSourceManager/GetRepositoryIamPolicy.cs +++ b/sdk/dotnet/SecureSourceManager/GetRepositoryIamPolicy.cs @@ -64,6 +64,33 @@ public static Task InvokeAsync(GetRepositoryIamPol /// public static Output Invoke(GetRepositoryIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:securesourcemanager/getRepositoryIamPolicy:getRepositoryIamPolicy", args ?? new GetRepositoryIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for repository + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.SecureSourceManager.GetRepositoryIamPolicy.Invoke(new() + /// { + /// Project = @default.Project, + /// Location = @default.Location, + /// RepositoryId = @default.RepositoryId, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetRepositoryIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:securesourcemanager/getRepositoryIamPolicy:getRepositoryIamPolicy", args ?? new GetRepositoryIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/SecurityCenter/GetSourceIamPolicy.cs b/sdk/dotnet/SecurityCenter/GetSourceIamPolicy.cs index a24acd5484..7e41beeea2 100644 --- a/sdk/dotnet/SecurityCenter/GetSourceIamPolicy.cs +++ b/sdk/dotnet/SecurityCenter/GetSourceIamPolicy.cs @@ -60,6 +60,31 @@ public static Task InvokeAsync(GetSourceIamPolicyArgs /// public static Output Invoke(GetSourceIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:securitycenter/getSourceIamPolicy:getSourceIamPolicy", args ?? new GetSourceIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for source + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.SecurityCenter.GetSourceIamPolicy.Invoke(new() + /// { + /// Source = customSource.Name, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetSourceIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:securitycenter/getSourceIamPolicy:getSourceIamPolicy", args ?? new GetSourceIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/SecurityCenter/GetV2OrganizationSourceIamPolicy.cs b/sdk/dotnet/SecurityCenter/GetV2OrganizationSourceIamPolicy.cs index e8e2a664c0..a1ef17c905 100644 --- a/sdk/dotnet/SecurityCenter/GetV2OrganizationSourceIamPolicy.cs +++ b/sdk/dotnet/SecurityCenter/GetV2OrganizationSourceIamPolicy.cs @@ -60,6 +60,31 @@ public static Task InvokeAsync(GetV2Orga /// public static Output Invoke(GetV2OrganizationSourceIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:securitycenter/getV2OrganizationSourceIamPolicy:getV2OrganizationSourceIamPolicy", args ?? new GetV2OrganizationSourceIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for organizationsource + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.SecurityCenter.GetV2OrganizationSourceIamPolicy.Invoke(new() + /// { + /// Source = customSource.Name, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetV2OrganizationSourceIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:securitycenter/getV2OrganizationSourceIamPolicy:getV2OrganizationSourceIamPolicy", args ?? new GetV2OrganizationSourceIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/ServiceAccount/GetAccount.cs b/sdk/dotnet/ServiceAccount/GetAccount.cs index 350310e3f5..54133f4aaa 100644 --- a/sdk/dotnet/ServiceAccount/GetAccount.cs +++ b/sdk/dotnet/ServiceAccount/GetAccount.cs @@ -140,6 +140,71 @@ public static Task InvokeAsync(GetAccountArgs args, InvokeOpti /// public static Output Invoke(GetAccountInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:serviceaccount/getAccount:getAccount", args ?? new GetAccountInvokeArgs(), options.WithDefaults()); + + /// + /// Get the service account from a project. For more information see + /// the official [API](https://cloud.google.com/compute/docs/access/service-accounts) documentation. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var objectViewer = Gcp.ServiceAccount.GetAccount.Invoke(new() + /// { + /// AccountId = "object-viewer", + /// }); + /// + /// }); + /// ``` + /// + /// + /// ### Save Key In Kubernetes Secret + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// using Kubernetes = Pulumi.Kubernetes; + /// using Std = Pulumi.Std; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var myaccount = Gcp.ServiceAccount.GetAccount.Invoke(new() + /// { + /// AccountId = "myaccount-id", + /// }); + /// + /// var mykey = new Gcp.ServiceAccount.Key("mykey", new() + /// { + /// ServiceAccountId = myaccount.Apply(getAccountResult => getAccountResult.Name), + /// }); + /// + /// var google_application_credentials = new Kubernetes.Core.V1.Secret("google-application-credentials", new() + /// { + /// Metadata = new Kubernetes.Types.Inputs.Meta.V1.ObjectMetaArgs + /// { + /// Name = "google-application-credentials", + /// }, + /// Data = + /// { + /// { "json", Std.Base64decode.Invoke(new() + /// { + /// Input = mykey.PrivateKey, + /// }).Apply(invoke => invoke.Result) }, + /// }, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetAccountInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:serviceaccount/getAccount:getAccount", args ?? new GetAccountInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/ServiceAccount/GetAccountAccessToken.cs b/sdk/dotnet/ServiceAccount/GetAccountAccessToken.cs index 7d772519fd..5d859ee58a 100644 --- a/sdk/dotnet/ServiceAccount/GetAccountAccessToken.cs +++ b/sdk/dotnet/ServiceAccount/GetAccountAccessToken.cs @@ -154,6 +154,78 @@ public static Task InvokeAsync(GetAccountAccessToke /// public static Output Invoke(GetAccountAccessTokenInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:serviceaccount/getAccountAccessToken:getAccountAccessToken", args ?? new GetAccountAccessTokenInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides a google `oauth2` `access_token` for a different service account than the one initially running the script. + /// + /// For more information see + /// [the official documentation](https://cloud.google.com/iam/docs/creating-short-lived-service-account-credentials) as well as [iamcredentials.generateAccessToken()](https://cloud.google.com/iam/credentials/reference/rest/v1/projects.serviceAccounts/generateAccessToken) + /// + /// ## Example Usage + /// + /// To allow `service_A` to impersonate `service_B`, grant the [Service Account Token Creator](https://cloud.google.com/iam/docs/service-accounts#the_service_account_token_creator_role) on B to A. + /// + /// In the IAM policy below, `service_A` is given the Token Creator role impersonate `service_B` + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var token_creator_iam = new Gcp.ServiceAccount.IAMBinding("token-creator-iam", new() + /// { + /// ServiceAccountId = "projects/-/serviceAccounts/service_B@projectB.iam.gserviceaccount.com", + /// Role = "roles/iam.serviceAccountTokenCreator", + /// Members = new[] + /// { + /// "serviceAccount:service_A@projectA.iam.gserviceaccount.com", + /// }, + /// }); + /// + /// }); + /// ``` + /// + /// Once the IAM permissions are set, you can apply the new token to a provider bootstrapped with it. Any resources that references the aliased provider will run as the new identity. + /// + /// In the example below, `gcp.organizations.Project` will run as `service_B`. + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @default = Gcp.Organizations.GetClientConfig.Invoke(); + /// + /// var defaultGetAccountAccessToken = Gcp.ServiceAccount.GetAccountAccessToken.Invoke(new() + /// { + /// TargetServiceAccount = "service_B@projectB.iam.gserviceaccount.com", + /// Scopes = new[] + /// { + /// "userinfo-email", + /// "cloud-platform", + /// }, + /// Lifetime = "300s", + /// }); + /// + /// var me = Gcp.Organizations.GetClientOpenIdUserInfo.Invoke(); + /// + /// return new Dictionary<string, object?> + /// { + /// ["target-email"] = me.Apply(getClientOpenIdUserInfoResult => getClientOpenIdUserInfoResult.Email), + /// }; + /// }); + /// ``` + /// + /// > *Note*: the generated token is non-refreshable and can have a maximum `lifetime` of `3600` seconds. + /// + public static Output Invoke(GetAccountAccessTokenInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:serviceaccount/getAccountAccessToken:getAccountAccessToken", args ?? new GetAccountAccessTokenInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/ServiceAccount/GetAccountIdToken.cs b/sdk/dotnet/ServiceAccount/GetAccountIdToken.cs index 202b406a1c..08ab5a7e02 100644 --- a/sdk/dotnet/ServiceAccount/GetAccountIdToken.cs +++ b/sdk/dotnet/ServiceAccount/GetAccountIdToken.cs @@ -228,6 +228,115 @@ public static Task InvokeAsync(GetAccountIdTokenArgs ar /// public static Output Invoke(GetAccountIdTokenInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:serviceaccount/getAccountIdToken:getAccountIdToken", args ?? new GetAccountIdTokenInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides a Google OpenID Connect (`oidc`) `id_token`. Tokens issued from this data source are typically used to call external services that accept OIDC tokens for authentication (e.g. [Google Cloud Run](https://cloud.google.com/run/docs/authenticating/service-to-service)). + /// + /// For more information see + /// [OpenID Connect](https://openid.net/specs/openid-connect-core-1_0.html#IDToken). + /// + /// ## Example Usage + /// + /// ### ServiceAccount JSON Credential File. + /// `gcp.serviceaccount.getAccountIdToken` will use the configured provider credentials + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var oidc = Gcp.ServiceAccount.GetAccountIdToken.Invoke(new() + /// { + /// TargetAudience = "https://foo.bar/", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["oidcToken"] = oidc.Apply(getAccountIdTokenResult => getAccountIdTokenResult.IdToken), + /// }; + /// }); + /// ``` + /// + /// ### Service Account Impersonation. + /// `gcp.serviceaccount.getAccountIdToken` will use background impersonated credentials provided by `gcp.serviceaccount.getAccountAccessToken`. + /// + /// Note: to use the following, you must grant `target_service_account` the + /// `roles/iam.serviceAccountTokenCreator` role on itself. + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var impersonated = Gcp.ServiceAccount.GetAccountAccessToken.Invoke(new() + /// { + /// TargetServiceAccount = "impersonated-account@project.iam.gserviceaccount.com", + /// Delegates = new() { }, + /// Scopes = new[] + /// { + /// "userinfo-email", + /// "cloud-platform", + /// }, + /// Lifetime = "300s", + /// }); + /// + /// var oidc = Gcp.ServiceAccount.GetAccountIdToken.Invoke(new() + /// { + /// TargetServiceAccount = "impersonated-account@project.iam.gserviceaccount.com", + /// Delegates = new() { }, + /// IncludeEmail = true, + /// TargetAudience = "https://foo.bar/", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["oidcToken"] = oidc.Apply(getAccountIdTokenResult => getAccountIdTokenResult.IdToken), + /// }; + /// }); + /// ``` + /// + /// ### Invoking Cloud Run Endpoint + /// + /// The following configuration will invoke [Cloud Run](https://cloud.google.com/run/docs/authenticating/service-to-service) endpoint where the service account for the provider has been granted `roles/run.invoker` role previously. + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// using Http = Pulumi.Http; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var oidc = Gcp.ServiceAccount.GetAccountIdToken.Invoke(new() + /// { + /// TargetAudience = "https://your.cloud.run.app/", + /// }); + /// + /// var cloudrun = Http.GetHttp.Invoke(new() + /// { + /// Url = "https://your.cloud.run.app/", + /// RequestHeaders = + /// { + /// { "Authorization", $"Bearer {oidc.Apply(getAccountIdTokenResult => getAccountIdTokenResult.IdToken)}" }, + /// }, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["cloudRunResponse"] = cloudrun.Apply(getHttpResult => getHttpResult.Body), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetAccountIdTokenInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:serviceaccount/getAccountIdToken:getAccountIdToken", args ?? new GetAccountIdTokenInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/ServiceAccount/GetAccountJwt.cs b/sdk/dotnet/ServiceAccount/GetAccountJwt.cs index f5d3e3513e..836251227c 100644 --- a/sdk/dotnet/ServiceAccount/GetAccountJwt.cs +++ b/sdk/dotnet/ServiceAccount/GetAccountJwt.cs @@ -84,6 +84,43 @@ public static Task InvokeAsync(GetAccountJwtArgs args, Invo /// public static Output Invoke(GetAccountJwtInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:serviceaccount/getAccountJwt:getAccountJwt", args ?? new GetAccountJwtInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides a [self-signed JWT](https://cloud.google.com/iam/docs/create-short-lived-credentials-direct#sa-credentials-jwt). Tokens issued from this data source are typically used to call external services that accept JWTs for authentication. + /// + /// ## Example Usage + /// + /// Note: in order to use the following, the caller must have _at least_ `roles/iam.serviceAccountTokenCreator` on the `target_service_account`. + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using System.Text.Json; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var foo = Gcp.ServiceAccount.GetAccountJwt.Invoke(new() + /// { + /// TargetServiceAccount = "impersonated-account@project.iam.gserviceaccount.com", + /// Payload = JsonSerializer.Serialize(new Dictionary<string, object?> + /// { + /// ["foo"] = "bar", + /// ["sub"] = "subject", + /// }), + /// ExpiresIn = 60, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["jwt"] = foo.Apply(getAccountJwtResult => getAccountJwtResult.Jwt), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetAccountJwtInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:serviceaccount/getAccountJwt:getAccountJwt", args ?? new GetAccountJwtInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/ServiceAccount/GetAccountKey.cs b/sdk/dotnet/ServiceAccount/GetAccountKey.cs index 65d05b248b..09676608b6 100644 --- a/sdk/dotnet/ServiceAccount/GetAccountKey.cs +++ b/sdk/dotnet/ServiceAccount/GetAccountKey.cs @@ -80,6 +80,41 @@ public static Task InvokeAsync(GetAccountKeyArgs args, Invo /// public static Output Invoke(GetAccountKeyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:serviceaccount/getAccountKey:getAccountKey", args ?? new GetAccountKeyInvokeArgs(), options.WithDefaults()); + + /// + /// Get service account public key. For more information, see [the official documentation](https://cloud.google.com/iam/docs/creating-managing-service-account-keys) and [API](https://cloud.google.com/iam/reference/rest/v1/projects.serviceAccounts.keys/get). + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var myaccount = new Gcp.ServiceAccount.Account("myaccount", new() + /// { + /// AccountId = "dev-foo-account", + /// }); + /// + /// var mykeyKey = new Gcp.ServiceAccount.Key("mykey", new() + /// { + /// ServiceAccountId = myaccount.Name, + /// }); + /// + /// var mykey = Gcp.ServiceAccount.GetAccountKey.Invoke(new() + /// { + /// Name = mykeyKey.Name, + /// PublicKeyType = "TYPE_X509_PEM_FILE", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetAccountKeyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:serviceaccount/getAccountKey:getAccountKey", args ?? new GetAccountKeyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/ServiceAccount/GetIamPolicy.cs b/sdk/dotnet/ServiceAccount/GetIamPolicy.cs index 48c9b824fb..b6eecd60df 100644 --- a/sdk/dotnet/ServiceAccount/GetIamPolicy.cs +++ b/sdk/dotnet/ServiceAccount/GetIamPolicy.cs @@ -58,6 +58,30 @@ public static Task InvokeAsync(GetIamPolicyArgs args, Invoke /// public static Output Invoke(GetIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:serviceaccount/getIamPolicy:getIamPolicy", args ?? new GetIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for a service account. + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var foo = Gcp.ServiceAccount.GetIamPolicy.Invoke(new() + /// { + /// ServiceAccountId = testAccount.Name, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:serviceaccount/getIamPolicy:getIamPolicy", args ?? new GetIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/ServiceAccount/GetS.cs b/sdk/dotnet/ServiceAccount/GetS.cs index 414229336f..44f0b9d366 100644 --- a/sdk/dotnet/ServiceAccount/GetS.cs +++ b/sdk/dotnet/ServiceAccount/GetS.cs @@ -66,6 +66,34 @@ public static Task InvokeAsync(GetSArgs? args = null, InvokeOptions? /// public static Output Invoke(GetSInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:serviceaccount/getS:getS", args ?? new GetSInvokeArgs(), options.WithDefaults()); + + /// + /// Gets a list of all service accounts from a project. + /// See [the official documentation](https://cloud.google.com/iam/docs/service-account-overview) + /// and [API](https://cloud.google.com/iam/docs/reference/rest/v1/projects.serviceAccounts). + /// + /// ## Example Usage + /// + /// Example service accounts. + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = Gcp.ServiceAccount.GetS.Invoke(new() + /// { + /// Project = "example-project", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetSInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:serviceaccount/getS:getS", args ?? new GetSInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/ServiceDirectory/GetNamespaceIamPolicy.cs b/sdk/dotnet/ServiceDirectory/GetNamespaceIamPolicy.cs index 66f28a4612..00b82eb879 100644 --- a/sdk/dotnet/ServiceDirectory/GetNamespaceIamPolicy.cs +++ b/sdk/dotnet/ServiceDirectory/GetNamespaceIamPolicy.cs @@ -16,6 +16,9 @@ public static Task InvokeAsync(GetNamespaceIamPolic public static Output Invoke(GetNamespaceIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:servicedirectory/getNamespaceIamPolicy:getNamespaceIamPolicy", args ?? new GetNamespaceIamPolicyInvokeArgs(), options.WithDefaults()); + + public static Output Invoke(GetNamespaceIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:servicedirectory/getNamespaceIamPolicy:getNamespaceIamPolicy", args ?? new GetNamespaceIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/ServiceDirectory/GetServiceIamPolicy.cs b/sdk/dotnet/ServiceDirectory/GetServiceIamPolicy.cs index 3620d57571..4bbe660f72 100644 --- a/sdk/dotnet/ServiceDirectory/GetServiceIamPolicy.cs +++ b/sdk/dotnet/ServiceDirectory/GetServiceIamPolicy.cs @@ -16,6 +16,9 @@ public static Task InvokeAsync(GetServiceIamPolicyArg public static Output Invoke(GetServiceIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:servicedirectory/getServiceIamPolicy:getServiceIamPolicy", args ?? new GetServiceIamPolicyInvokeArgs(), options.WithDefaults()); + + public static Output Invoke(GetServiceIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:servicedirectory/getServiceIamPolicy:getServiceIamPolicy", args ?? new GetServiceIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/ServiceNetworking/GetPeeredDnsDomain.cs b/sdk/dotnet/ServiceNetworking/GetPeeredDnsDomain.cs index 9a8b0219dc..0fe57b4d0b 100644 --- a/sdk/dotnet/ServiceNetworking/GetPeeredDnsDomain.cs +++ b/sdk/dotnet/ServiceNetworking/GetPeeredDnsDomain.cs @@ -16,6 +16,9 @@ public static Task InvokeAsync(GetPeeredDnsDomainArgs public static Output Invoke(GetPeeredDnsDomainInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:servicenetworking/getPeeredDnsDomain:getPeeredDnsDomain", args ?? new GetPeeredDnsDomainInvokeArgs(), options.WithDefaults()); + + public static Output Invoke(GetPeeredDnsDomainInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:servicenetworking/getPeeredDnsDomain:getPeeredDnsDomain", args ?? new GetPeeredDnsDomainInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/SiteVerification/GetToken.cs b/sdk/dotnet/SiteVerification/GetToken.cs index f31d30d299..0518d9dcbc 100644 --- a/sdk/dotnet/SiteVerification/GetToken.cs +++ b/sdk/dotnet/SiteVerification/GetToken.cs @@ -122,6 +122,62 @@ public static Task InvokeAsync(GetTokenArgs args, InvokeOptions? /// public static Output Invoke(GetTokenInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:siteverification/getToken:getToken", args ?? new GetTokenInvokeArgs(), options.WithDefaults()); + + /// + /// A verification token is used to demonstrate ownership of a website or domain. + /// + /// + /// To get more information about Token, see: + /// + /// * [API documentation](https://developers.google.com/site-verification/v1) + /// * How-to Guides + /// * [Getting Started](https://developers.google.com/site-verification/v1/getting_started) + /// + /// + /// ## Example Usage + /// + /// ### Site Verification Via Site META Tag + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = Gcp.SiteVerification.GetToken.Invoke(new() + /// { + /// Type = "SITE", + /// Identifier = "https://www.example.com", + /// VerificationMethod = "META", + /// }); + /// + /// }); + /// ``` + /// + /// ### Site Verification Via DNS TXT Record + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = Gcp.SiteVerification.GetToken.Invoke(new() + /// { + /// Type = "INET_DOMAIN", + /// Identifier = "www.example.com", + /// VerificationMethod = "DNS_TXT", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetTokenInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:siteverification/getToken:getToken", args ?? new GetTokenInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/SourceRepo/GetRepository.cs b/sdk/dotnet/SourceRepo/GetRepository.cs index 410992df09..24ffde3f8b 100644 --- a/sdk/dotnet/SourceRepo/GetRepository.cs +++ b/sdk/dotnet/SourceRepo/GetRepository.cs @@ -66,6 +66,34 @@ public static Task InvokeAsync(GetRepositoryArgs args, Invo /// public static Output Invoke(GetRepositoryInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:sourcerepo/getRepository:getRepository", args ?? new GetRepositoryInvokeArgs(), options.WithDefaults()); + + /// + /// Get infomation about an existing Google Cloud Source Repository. + /// For more information see [the official documentation](https://cloud.google.com/source-repositories) + /// and + /// [API](https://cloud.google.com/source-repositories/docs/reference/rest/v1/projects.repos). + /// + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var my_repo = Gcp.SourceRepo.GetRepository.Invoke(new() + /// { + /// Name = "my-repository", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetRepositoryInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:sourcerepo/getRepository:getRepository", args ?? new GetRepositoryInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/SourceRepo/GetRepositoryIamPolicy.cs b/sdk/dotnet/SourceRepo/GetRepositoryIamPolicy.cs index 125f6fe3ce..47cea0ac9a 100644 --- a/sdk/dotnet/SourceRepo/GetRepositoryIamPolicy.cs +++ b/sdk/dotnet/SourceRepo/GetRepositoryIamPolicy.cs @@ -62,6 +62,32 @@ public static Task InvokeAsync(GetRepositoryIamPol /// public static Output Invoke(GetRepositoryIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:sourcerepo/getRepositoryIamPolicy:getRepositoryIamPolicy", args ?? new GetRepositoryIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for repository + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.SourceRepo.GetRepositoryIamPolicy.Invoke(new() + /// { + /// Project = my_repo.Project, + /// Repository = my_repo.Name, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetRepositoryIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:sourcerepo/getRepositoryIamPolicy:getRepositoryIamPolicy", args ?? new GetRepositoryIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Spanner/GetDatabase.cs b/sdk/dotnet/Spanner/GetDatabase.cs index 40398101d8..a5f1ac71b0 100644 --- a/sdk/dotnet/Spanner/GetDatabase.cs +++ b/sdk/dotnet/Spanner/GetDatabase.cs @@ -60,6 +60,31 @@ public static Task InvokeAsync(GetDatabaseArgs args, InvokeOp /// public static Output Invoke(GetDatabaseInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:spanner/getDatabase:getDatabase", args ?? new GetDatabaseInvokeArgs(), options.WithDefaults()); + + /// + /// Get a spanner database from Google Cloud by its name and instance name. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var foo = Gcp.Spanner.GetDatabase.Invoke(new() + /// { + /// Name = "foo", + /// Instance = instance.Name, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetDatabaseInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:spanner/getDatabase:getDatabase", args ?? new GetDatabaseInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Spanner/GetDatabaseIamPolicy.cs b/sdk/dotnet/Spanner/GetDatabaseIamPolicy.cs index 9e07d44255..3adcbf10b9 100644 --- a/sdk/dotnet/Spanner/GetDatabaseIamPolicy.cs +++ b/sdk/dotnet/Spanner/GetDatabaseIamPolicy.cs @@ -62,6 +62,32 @@ public static Task InvokeAsync(GetDatabaseIamPolicyA /// public static Output Invoke(GetDatabaseIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:spanner/getDatabaseIamPolicy:getDatabaseIamPolicy", args ?? new GetDatabaseIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for a Spanner database. + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var foo = Gcp.Spanner.GetDatabaseIamPolicy.Invoke(new() + /// { + /// Project = database.Project, + /// Database = database.Name, + /// Instance = database.Instance, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetDatabaseIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:spanner/getDatabaseIamPolicy:getDatabaseIamPolicy", args ?? new GetDatabaseIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Spanner/GetInstance.cs b/sdk/dotnet/Spanner/GetInstance.cs index 603e24495b..75b8a29400 100644 --- a/sdk/dotnet/Spanner/GetInstance.cs +++ b/sdk/dotnet/Spanner/GetInstance.cs @@ -58,6 +58,30 @@ public static Task InvokeAsync(GetInstanceArgs args, InvokeOp /// public static Output Invoke(GetInstanceInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:spanner/getInstance:getInstance", args ?? new GetInstanceInvokeArgs(), options.WithDefaults()); + + /// + /// Get a spanner instance from Google Cloud by its name. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var foo = Gcp.Spanner.GetInstance.Invoke(new() + /// { + /// Name = "bar", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetInstanceInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:spanner/getInstance:getInstance", args ?? new GetInstanceInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Spanner/GetInstanceIamPolicy.cs b/sdk/dotnet/Spanner/GetInstanceIamPolicy.cs index d9161e9baa..de56dc5e8b 100644 --- a/sdk/dotnet/Spanner/GetInstanceIamPolicy.cs +++ b/sdk/dotnet/Spanner/GetInstanceIamPolicy.cs @@ -60,6 +60,31 @@ public static Task InvokeAsync(GetInstanceIamPolicyA /// public static Output Invoke(GetInstanceIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:spanner/getInstanceIamPolicy:getInstanceIamPolicy", args ?? new GetInstanceIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for a Spanner instance. + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var foo = Gcp.Spanner.GetInstanceIamPolicy.Invoke(new() + /// { + /// Project = instance.Project, + /// Instance = instance.Name, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetInstanceIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:spanner/getInstanceIamPolicy:getInstanceIamPolicy", args ?? new GetInstanceIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Sql/GetBackupRun.cs b/sdk/dotnet/Sql/GetBackupRun.cs index 49c0d9dbca..1fdc2aab83 100644 --- a/sdk/dotnet/Sql/GetBackupRun.cs +++ b/sdk/dotnet/Sql/GetBackupRun.cs @@ -60,6 +60,31 @@ public static Task InvokeAsync(GetBackupRunArgs args, Invoke /// public static Output Invoke(GetBackupRunInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:sql/getBackupRun:getBackupRun", args ?? new GetBackupRunInvokeArgs(), options.WithDefaults()); + + /// + /// Use this data source to get information about a Cloud SQL instance backup run. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var backup = Gcp.Sql.GetBackupRun.Invoke(new() + /// { + /// Instance = main.Name, + /// MostRecent = true, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetBackupRunInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:sql/getBackupRun:getBackupRun", args ?? new GetBackupRunInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Sql/GetCaCerts.cs b/sdk/dotnet/Sql/GetCaCerts.cs index 86bbb9cca0..db8f11be3b 100644 --- a/sdk/dotnet/Sql/GetCaCerts.cs +++ b/sdk/dotnet/Sql/GetCaCerts.cs @@ -28,6 +28,15 @@ public static Task InvokeAsync(GetCaCertsArgs args, InvokeOpti /// public static Output Invoke(GetCaCertsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:sql/getCaCerts:getCaCerts", args ?? new GetCaCertsInvokeArgs(), options.WithDefaults()); + + /// + /// Get all of the trusted Certificate Authorities (CAs) for the specified SQL database instance. For more information see the + /// [official documentation](https://cloud.google.com/sql/) + /// and + /// [API](https://cloud.google.com/sql/docs/mysql/admin-api/rest/v1beta4/instances/listServerCas). + /// + public static Output Invoke(GetCaCertsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:sql/getCaCerts:getCaCerts", args ?? new GetCaCertsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Sql/GetDatabase.cs b/sdk/dotnet/Sql/GetDatabase.cs index fa1cb608b0..2f77d302b4 100644 --- a/sdk/dotnet/Sql/GetDatabase.cs +++ b/sdk/dotnet/Sql/GetDatabase.cs @@ -60,6 +60,31 @@ public static Task InvokeAsync(GetDatabaseArgs args, InvokeOp /// public static Output Invoke(GetDatabaseInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:sql/getDatabase:getDatabase", args ?? new GetDatabaseInvokeArgs(), options.WithDefaults()); + + /// + /// Use this data source to get information about a database in a Cloud SQL instance. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var qa = Gcp.Sql.GetDatabase.Invoke(new() + /// { + /// Name = "test-sql-database", + /// Instance = main.Name, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetDatabaseInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:sql/getDatabase:getDatabase", args ?? new GetDatabaseInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Sql/GetDatabaseInstance.cs b/sdk/dotnet/Sql/GetDatabaseInstance.cs index 1f4407802a..8c746bad49 100644 --- a/sdk/dotnet/Sql/GetDatabaseInstance.cs +++ b/sdk/dotnet/Sql/GetDatabaseInstance.cs @@ -58,6 +58,30 @@ public static Task InvokeAsync(GetDatabaseInstanceArg /// public static Output Invoke(GetDatabaseInstanceInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:sql/getDatabaseInstance:getDatabaseInstance", args ?? new GetDatabaseInstanceInvokeArgs(), options.WithDefaults()); + + /// + /// Use this data source to get information about a Cloud SQL instance. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var qa = Gcp.Sql.GetDatabaseInstance.Invoke(new() + /// { + /// Name = "test-sql-instance", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetDatabaseInstanceInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:sql/getDatabaseInstance:getDatabaseInstance", args ?? new GetDatabaseInstanceInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Sql/GetDatabaseInstanceLatestRecoveryTime.cs b/sdk/dotnet/Sql/GetDatabaseInstanceLatestRecoveryTime.cs index 5c559ff2c6..7e2c138042 100644 --- a/sdk/dotnet/Sql/GetDatabaseInstanceLatestRecoveryTime.cs +++ b/sdk/dotnet/Sql/GetDatabaseInstanceLatestRecoveryTime.cs @@ -74,6 +74,38 @@ public static Task InvokeAsync(GetD /// public static Output Invoke(GetDatabaseInstanceLatestRecoveryTimeInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:sql/getDatabaseInstanceLatestRecoveryTime:getDatabaseInstanceLatestRecoveryTime", args ?? new GetDatabaseInstanceLatestRecoveryTimeInvokeArgs(), options.WithDefaults()); + + /// + /// Get Latest Recovery Time for a given instance. For more information see the + /// [official documentation](https://cloud.google.com/sql/) + /// and + /// [API](https://cloud.google.com/sql/docs/postgres/backup-recovery/pitr#get-the-latest-recovery-time). + /// + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @default = Gcp.Sql.GetDatabaseInstanceLatestRecoveryTime.Invoke(new() + /// { + /// Instance = "sample-instance", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["latestRecoveryTime"] = @default, + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetDatabaseInstanceLatestRecoveryTimeInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:sql/getDatabaseInstanceLatestRecoveryTime:getDatabaseInstanceLatestRecoveryTime", args ?? new GetDatabaseInstanceLatestRecoveryTimeInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Sql/GetDatabaseInstances.cs b/sdk/dotnet/Sql/GetDatabaseInstances.cs index 0e1a64d2b6..a472cc0792 100644 --- a/sdk/dotnet/Sql/GetDatabaseInstances.cs +++ b/sdk/dotnet/Sql/GetDatabaseInstances.cs @@ -58,6 +58,30 @@ public static Task InvokeAsync(GetDatabaseInstancesA /// public static Output Invoke(GetDatabaseInstancesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:sql/getDatabaseInstances:getDatabaseInstances", args ?? new GetDatabaseInstancesInvokeArgs(), options.WithDefaults()); + + /// + /// Use this data source to get information about a list of Cloud SQL instances in a project. You can also apply some filters over this list to get a more filtered list of Cloud SQL instances. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var qa = Gcp.Sql.GetDatabaseInstances.Invoke(new() + /// { + /// Project = "test-project", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetDatabaseInstancesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:sql/getDatabaseInstances:getDatabaseInstances", args ?? new GetDatabaseInstancesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Sql/GetDatabases.cs b/sdk/dotnet/Sql/GetDatabases.cs index 365f756c41..13f4e15242 100644 --- a/sdk/dotnet/Sql/GetDatabases.cs +++ b/sdk/dotnet/Sql/GetDatabases.cs @@ -56,6 +56,29 @@ public static Task InvokeAsync(GetDatabasesArgs args, Invoke /// public static Output Invoke(GetDatabasesInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:sql/getDatabases:getDatabases", args ?? new GetDatabasesInvokeArgs(), options.WithDefaults()); + + /// + /// Use this data source to get information about a list of databases in a Cloud SQL instance. + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var qa = Gcp.Sql.GetDatabases.Invoke(new() + /// { + /// Instance = main.Name, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetDatabasesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:sql/getDatabases:getDatabases", args ?? new GetDatabasesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Sql/GetTiers.cs b/sdk/dotnet/Sql/GetTiers.cs index 4365f98f29..f4be50cbf9 100644 --- a/sdk/dotnet/Sql/GetTiers.cs +++ b/sdk/dotnet/Sql/GetTiers.cs @@ -84,6 +84,43 @@ public static Task InvokeAsync(GetTiersArgs? args = null, Invoke /// public static Output Invoke(GetTiersInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:sql/getTiers:getTiers", args ?? new GetTiersInvokeArgs(), options.WithDefaults()); + + /// + /// Get all available machine types (tiers) for a project, for example, db-custom-1-3840. For more information see the + /// [official documentation](https://cloud.google.com/sql/) + /// and + /// [API](https://cloud.google.com/sql/docs/mysql/admin-api/rest/v1beta4/tiers/list). + /// + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var tiers = Gcp.Sql.GetTiers.Invoke(new() + /// { + /// Project = "sample-project", + /// }); + /// + /// var allAvailableTiers = .Select(v => + /// { + /// return v.Tier; + /// }).ToList(); + /// + /// return new Dictionary<string, object?> + /// { + /// ["avaialbleTiers"] = allAvailableTiers, + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetTiersInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:sql/getTiers:getTiers", args ?? new GetTiersInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Storage/GetBucket.cs b/sdk/dotnet/Storage/GetBucket.cs index 9a749d1704..4bcf66ced9 100644 --- a/sdk/dotnet/Storage/GetBucket.cs +++ b/sdk/dotnet/Storage/GetBucket.cs @@ -66,6 +66,34 @@ public static Task InvokeAsync(GetBucketArgs args, InvokeOption /// public static Output Invoke(GetBucketInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:storage/getBucket:getBucket", args ?? new GetBucketInvokeArgs(), options.WithDefaults()); + + /// + /// Gets an existing bucket in Google Cloud Storage service (GCS). + /// See [the official documentation](https://cloud.google.com/storage/docs/key-terms#buckets) + /// and + /// [API](https://cloud.google.com/storage/docs/json_api/v1/buckets). + /// + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var my_bucket = Gcp.Storage.GetBucket.Invoke(new() + /// { + /// Name = "my-bucket", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetBucketInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:storage/getBucket:getBucket", args ?? new GetBucketInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Storage/GetBucketIamPolicy.cs b/sdk/dotnet/Storage/GetBucketIamPolicy.cs index be51141c68..5fe67d666b 100644 --- a/sdk/dotnet/Storage/GetBucketIamPolicy.cs +++ b/sdk/dotnet/Storage/GetBucketIamPolicy.cs @@ -60,6 +60,31 @@ public static Task InvokeAsync(GetBucketIamPolicyArgs /// public static Output Invoke(GetBucketIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:storage/getBucketIamPolicy:getBucketIamPolicy", args ?? new GetBucketIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for bucket + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.Storage.GetBucketIamPolicy.Invoke(new() + /// { + /// Bucket = @default.Name, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetBucketIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:storage/getBucketIamPolicy:getBucketIamPolicy", args ?? new GetBucketIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Storage/GetBucketObject.cs b/sdk/dotnet/Storage/GetBucketObject.cs index 20e141440b..b7474db807 100644 --- a/sdk/dotnet/Storage/GetBucketObject.cs +++ b/sdk/dotnet/Storage/GetBucketObject.cs @@ -72,6 +72,37 @@ public static Task InvokeAsync(GetBucketObjectArgs? args /// public static Output Invoke(GetBucketObjectInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:storage/getBucketObject:getBucketObject", args ?? new GetBucketObjectInvokeArgs(), options.WithDefaults()); + + /// + /// Gets an existing object inside an existing bucket in Google Cloud Storage service (GCS). + /// See [the official documentation](https://cloud.google.com/storage/docs/key-terms#objects) + /// and + /// [API](https://cloud.google.com/storage/docs/json_api/v1/objects). + /// + /// + /// ## Example Usage + /// + /// Example picture stored within a folder. + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var picture = Gcp.Storage.GetBucketObject.Invoke(new() + /// { + /// Name = "folder/butterfly01.jpg", + /// Bucket = "image-store", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetBucketObjectInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:storage/getBucketObject:getBucketObject", args ?? new GetBucketObjectInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Storage/GetBucketObjectContent.cs b/sdk/dotnet/Storage/GetBucketObjectContent.cs index a85fced06d..faed6246b0 100644 --- a/sdk/dotnet/Storage/GetBucketObjectContent.cs +++ b/sdk/dotnet/Storage/GetBucketObjectContent.cs @@ -82,6 +82,42 @@ public static Task InvokeAsync(GetBucketObjectCont /// public static Output Invoke(GetBucketObjectContentInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:storage/getBucketObjectContent:getBucketObjectContent", args ?? new GetBucketObjectContentInvokeArgs(), options.WithDefaults()); + + /// + /// Gets an existing object content inside an existing bucket in Google Cloud Storage service (GCS). + /// See [the official documentation](https://cloud.google.com/storage/docs/key-terms#objects) + /// and + /// [API](https://cloud.google.com/storage/docs/json_api/v1/objects). + /// + /// > **Warning:** The object content will be saved in the state, and visible to everyone who has access to the state file. + /// + /// ## Example Usage + /// + /// Example file object stored within a folder. + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var key = Gcp.Storage.GetBucketObjectContent.Invoke(new() + /// { + /// Name = "encryptedkey", + /// Bucket = "keystore", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["encrypted"] = key.Apply(getBucketObjectContentResult => getBucketObjectContentResult.Content), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetBucketObjectContentInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:storage/getBucketObjectContent:getBucketObjectContent", args ?? new GetBucketObjectContentInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Storage/GetBucketObjects.cs b/sdk/dotnet/Storage/GetBucketObjects.cs index 43d4b14fd0..697ca2589e 100644 --- a/sdk/dotnet/Storage/GetBucketObjects.cs +++ b/sdk/dotnet/Storage/GetBucketObjects.cs @@ -66,6 +66,34 @@ public static Task InvokeAsync(GetBucketObjectsArgs args /// public static Output Invoke(GetBucketObjectsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:storage/getBucketObjects:getBucketObjects", args ?? new GetBucketObjectsInvokeArgs(), options.WithDefaults()); + + /// + /// Gets existing objects inside an existing bucket in Google Cloud Storage service (GCS). + /// See [the official documentation](https://cloud.google.com/storage/docs/key-terms#objects) + /// and [API](https://cloud.google.com/storage/docs/json_api/v1/objects/list). + /// + /// ## Example Usage + /// + /// Example files stored within a bucket. + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var files = Gcp.Storage.GetBucketObjects.Invoke(new() + /// { + /// Bucket = "file-store", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetBucketObjectsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:storage/getBucketObjects:getBucketObjects", args ?? new GetBucketObjectsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Storage/GetBuckets.cs b/sdk/dotnet/Storage/GetBuckets.cs index 0db1db0cea..f286693472 100644 --- a/sdk/dotnet/Storage/GetBuckets.cs +++ b/sdk/dotnet/Storage/GetBuckets.cs @@ -66,6 +66,34 @@ public static Task InvokeAsync(GetBucketsArgs? args = null, In /// public static Output Invoke(GetBucketsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:storage/getBuckets:getBuckets", args ?? new GetBucketsInvokeArgs(), options.WithDefaults()); + + /// + /// Gets a list of existing GCS buckets. + /// See [the official documentation](https://cloud.google.com/storage/docs/introduction) + /// and [API](https://cloud.google.com/storage/docs/json_api/v1/buckets/list). + /// + /// ## Example Usage + /// + /// Example GCS buckets. + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = Gcp.Storage.GetBuckets.Invoke(new() + /// { + /// Project = "example-project", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetBucketsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:storage/getBuckets:getBuckets", args ?? new GetBucketsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Storage/GetManagedFolderIamPolicy.cs b/sdk/dotnet/Storage/GetManagedFolderIamPolicy.cs index 273880de90..046302508f 100644 --- a/sdk/dotnet/Storage/GetManagedFolderIamPolicy.cs +++ b/sdk/dotnet/Storage/GetManagedFolderIamPolicy.cs @@ -16,6 +16,9 @@ public static Task InvokeAsync(GetManagedFolder public static Output Invoke(GetManagedFolderIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:storage/getManagedFolderIamPolicy:getManagedFolderIamPolicy", args ?? new GetManagedFolderIamPolicyInvokeArgs(), options.WithDefaults()); + + public static Output Invoke(GetManagedFolderIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:storage/getManagedFolderIamPolicy:getManagedFolderIamPolicy", args ?? new GetManagedFolderIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Storage/GetObjectSignedUrl.cs b/sdk/dotnet/Storage/GetObjectSignedUrl.cs index 2b035de1fd..2b8650d14e 100644 --- a/sdk/dotnet/Storage/GetObjectSignedUrl.cs +++ b/sdk/dotnet/Storage/GetObjectSignedUrl.cs @@ -136,6 +136,69 @@ public static Task InvokeAsync(GetObjectSignedUrlArgs /// public static Output Invoke(GetObjectSignedUrlInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:storage/getObjectSignedUrl:getObjectSignedUrl", args ?? new GetObjectSignedUrlInvokeArgs(), options.WithDefaults()); + + /// + /// The Google Cloud storage signed URL data source generates a signed URL for a given storage object. Signed URLs provide a way to give time-limited read or write access to anyone in possession of the URL, regardless of whether they have a Google account. + /// + /// For more info about signed URL's is available [here](https://cloud.google.com/storage/docs/access-control/signed-urls). + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var artifact = Gcp.Storage.GetObjectSignedUrl.Invoke(new() + /// { + /// Bucket = "install_binaries", + /// Path = "path/to/install_file.bin", + /// }); + /// + /// var vm = new Gcp.Compute.Instance("vm", new() + /// { + /// Name = "vm", + /// }); + /// + /// }); + /// ``` + /// + /// ## Full Example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// using Std = Pulumi.Std; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var getUrl = Gcp.Storage.GetObjectSignedUrl.Invoke(new() + /// { + /// Bucket = "fried_chicken", + /// Path = "path/to/file", + /// ContentMd5 = "pRviqwS4c4OTJRTe03FD1w==", + /// ContentType = "text/plain", + /// Duration = "2d", + /// Credentials = Std.File.Invoke(new() + /// { + /// Input = "path/to/credentials.json", + /// }).Result, + /// ExtensionHeaders = + /// { + /// { "x-goog-if-generation-match", "1" }, + /// }, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetObjectSignedUrlInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:storage/getObjectSignedUrl:getObjectSignedUrl", args ?? new GetObjectSignedUrlInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Storage/GetProjectServiceAccount.cs b/sdk/dotnet/Storage/GetProjectServiceAccount.cs index 8fab5755e8..a7fac2dc3c 100644 --- a/sdk/dotnet/Storage/GetProjectServiceAccount.cs +++ b/sdk/dotnet/Storage/GetProjectServiceAccount.cs @@ -222,6 +222,112 @@ public static Task InvokeAsync(GetProjectService /// public static Output Invoke(GetProjectServiceAccountInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:storage/getProjectServiceAccount:getProjectServiceAccount", args ?? new GetProjectServiceAccountInvokeArgs(), options.WithDefaults()); + + /// + /// Get the email address of a project's unique [automatic Google Cloud Storage service account](https://cloud.google.com/storage/docs/projects#service-accounts). + /// + /// For each Google Cloud project, Google maintains a unique service account which + /// is used as the identity for various Google Cloud Storage operations, including + /// operations involving + /// [customer-managed encryption keys](https://cloud.google.com/storage/docs/encryption/customer-managed-keys) + /// and those involving + /// [storage notifications to pub/sub](https://cloud.google.com/storage/docs/gsutil/commands/notification). + /// This automatic Google service account requires access to the relevant Cloud KMS keys or pub/sub topics, respectively, in order for Cloud Storage to use + /// these customer-managed resources. + /// + /// The service account has a well-known, documented naming format which is parameterised on the numeric Google project ID. + /// However, as noted in [the docs](https://cloud.google.com/storage/docs/projects#service-accounts), it is only created when certain relevant actions occur which + /// presuppose its existence. + /// These actions include calling a [Cloud Storage API endpoint](https://cloud.google.com/storage/docs/json_api/v1/projects/serviceAccount/get) to yield the + /// service account's identity, or performing some operations in the UI which must use the service account's identity, such as attempting to list Cloud KMS keys + /// on the bucket creation page. + /// + /// Use of this data source calls the relevant API endpoint to obtain the service account's identity and thus ensures it exists prior to any API operations + /// which demand its existence, such as specifying it in Cloud IAM policy. + /// Always prefer to use this data source over interpolating the project ID into the well-known format for this service account, as the latter approach may cause + /// provider update errors in cases where the service account does not yet exist. + /// + /// > When you write provider code which uses features depending on this service account *and* your provider code adds the service account in IAM policy on other resources, + /// you must take care for race conditions between the establishment of the IAM policy and creation of the relevant Cloud Storage resource. + /// Cloud Storage APIs will require permissions on resources such as pub/sub topics or Cloud KMS keys to exist *before* the attempt to utilise them in a + /// bucket configuration, otherwise the API calls will fail. + /// You may need to use `depends_on` to create an explicit dependency between the IAM policy resource and the Cloud Storage resource which depends on it. + /// See the examples here and in the `gcp.storage.Notification` resource. + /// + /// For more information see + /// [the API reference](https://cloud.google.com/storage/docs/json_api/v1/projects/serviceAccount). + /// + /// ## Example Usage + /// + /// ### Pub/Sub Notifications + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var gcsAccount = Gcp.Storage.GetProjectServiceAccount.Invoke(); + /// + /// var binding = new Gcp.PubSub.TopicIAMBinding("binding", new() + /// { + /// Topic = topic.Name, + /// Role = "roles/pubsub.publisher", + /// Members = new[] + /// { + /// $"serviceAccount:{gcsAccount.Apply(getProjectServiceAccountResult => getProjectServiceAccountResult.EmailAddress)}", + /// }, + /// }); + /// + /// }); + /// ``` + /// + /// + /// ### Cloud KMS Keys + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var gcsAccount = Gcp.Storage.GetProjectServiceAccount.Invoke(); + /// + /// var binding = new Gcp.Kms.CryptoKeyIAMBinding("binding", new() + /// { + /// CryptoKeyId = "your-crypto-key-id", + /// Role = "roles/cloudkms.cryptoKeyEncrypterDecrypter", + /// Members = new[] + /// { + /// $"serviceAccount:{gcsAccount.Apply(getProjectServiceAccountResult => getProjectServiceAccountResult.EmailAddress)}", + /// }, + /// }); + /// + /// var bucket = new Gcp.Storage.Bucket("bucket", new() + /// { + /// Name = "kms-protected-bucket", + /// Location = "US", + /// Encryption = new Gcp.Storage.Inputs.BucketEncryptionArgs + /// { + /// DefaultKmsKeyName = "your-crypto-key-id", + /// }, + /// }, new CustomResourceOptions + /// { + /// DependsOn = + /// { + /// binding, + /// }, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetProjectServiceAccountInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:storage/getProjectServiceAccount:getProjectServiceAccount", args ?? new GetProjectServiceAccountInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Storage/GetTransferProjectServiceAccount.cs b/sdk/dotnet/Storage/GetTransferProjectServiceAccount.cs index f5aaf2fc56..084847ac9a 100644 --- a/sdk/dotnet/Storage/GetTransferProjectServiceAccount.cs +++ b/sdk/dotnet/Storage/GetTransferProjectServiceAccount.cs @@ -60,6 +60,31 @@ public static Task InvokeAsync(GetTransf /// public static Output Invoke(GetTransferProjectServiceAccountInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:storage/getTransferProjectServiceAccount:getTransferProjectServiceAccount", args ?? new GetTransferProjectServiceAccountInvokeArgs(), options.WithDefaults()); + + /// + /// Use this data source to retrieve Storage Transfer service account for this project + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @default = Gcp.Storage.GetTransferProjectServiceAccount.Invoke(); + /// + /// return new Dictionary<string, object?> + /// { + /// ["defaultAccount"] = @default.Apply(@default => @default.Apply(getTransferProjectServiceAccountResult => getTransferProjectServiceAccountResult.Email)), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetTransferProjectServiceAccountInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:storage/getTransferProjectServiceAccount:getTransferProjectServiceAccount", args ?? new GetTransferProjectServiceAccountInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Storage/GetTransferProjectServieAccount.cs b/sdk/dotnet/Storage/GetTransferProjectServieAccount.cs index 043641bc3b..b060412e11 100644 --- a/sdk/dotnet/Storage/GetTransferProjectServieAccount.cs +++ b/sdk/dotnet/Storage/GetTransferProjectServieAccount.cs @@ -61,6 +61,31 @@ public static Task InvokeAsync(GetTransfe /// public static Output Invoke(GetTransferProjectServieAccountInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:storage/getTransferProjectServieAccount:getTransferProjectServieAccount", args ?? new GetTransferProjectServieAccountInvokeArgs(), options.WithDefaults()); + + /// + /// Use this data source to retrieve Storage Transfer service account for this project + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @default = Gcp.Storage.GetTransferProjectServiceAccount.Invoke(); + /// + /// return new Dictionary<string, object?> + /// { + /// ["defaultAccount"] = @default.Apply(@default => @default.Apply(getTransferProjectServiceAccountResult => getTransferProjectServiceAccountResult.Email)), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetTransferProjectServieAccountInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:storage/getTransferProjectServieAccount:getTransferProjectServieAccount", args ?? new GetTransferProjectServieAccountInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Tags/GetTagKey.cs b/sdk/dotnet/Tags/GetTagKey.cs index 312758fe33..628e72bab7 100644 --- a/sdk/dotnet/Tags/GetTagKey.cs +++ b/sdk/dotnet/Tags/GetTagKey.cs @@ -92,6 +92,47 @@ public static Task InvokeAsync(GetTagKeyArgs args, InvokeOption /// public static Output Invoke(GetTagKeyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:tags/getTagKey:getTagKey", args ?? new GetTagKeyInvokeArgs(), options.WithDefaults()); + + /// + /// Get a tag key by org or project `parent` and `short_name`. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var environmentTagKey = Gcp.Tags.GetTagKey.Invoke(new() + /// { + /// Parent = "organizations/12345", + /// ShortName = "environment", + /// }); + /// + /// }); + /// ``` + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var environmentTagKey = Gcp.Tags.GetTagKey.Invoke(new() + /// { + /// Parent = "projects/abc", + /// ShortName = "environment", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetTagKeyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:tags/getTagKey:getTagKey", args ?? new GetTagKeyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Tags/GetTagKeyIamPolicy.cs b/sdk/dotnet/Tags/GetTagKeyIamPolicy.cs index 2c3443ca3d..d6646e13a7 100644 --- a/sdk/dotnet/Tags/GetTagKeyIamPolicy.cs +++ b/sdk/dotnet/Tags/GetTagKeyIamPolicy.cs @@ -60,6 +60,31 @@ public static Task InvokeAsync(GetTagKeyIamPolicyArgs /// public static Output Invoke(GetTagKeyIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:tags/getTagKeyIamPolicy:getTagKeyIamPolicy", args ?? new GetTagKeyIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for tagkey + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.Tags.GetTagKeyIamPolicy.Invoke(new() + /// { + /// TagKey = key.Name, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetTagKeyIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:tags/getTagKeyIamPolicy:getTagKeyIamPolicy", args ?? new GetTagKeyIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Tags/GetTagKeys.cs b/sdk/dotnet/Tags/GetTagKeys.cs index fe4338747a..26fa10b732 100644 --- a/sdk/dotnet/Tags/GetTagKeys.cs +++ b/sdk/dotnet/Tags/GetTagKeys.cs @@ -88,6 +88,45 @@ public static Task InvokeAsync(GetTagKeysArgs args, InvokeOpti /// public static Output Invoke(GetTagKeysInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:tags/getTagKeys:getTagKeys", args ?? new GetTagKeysInvokeArgs(), options.WithDefaults()); + + /// + /// Get tag keys by org or project `parent`. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var environmentTagKey = Gcp.Tags.GetTagKeys.Invoke(new() + /// { + /// Parent = "organizations/12345", + /// }); + /// + /// }); + /// ``` + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var environmentTagKey = Gcp.Tags.GetTagKeys.Invoke(new() + /// { + /// Parent = "projects/abc", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetTagKeysInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:tags/getTagKeys:getTagKeys", args ?? new GetTagKeysInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Tags/GetTagValue.cs b/sdk/dotnet/Tags/GetTagValue.cs index 7a2909dfff..29c389362b 100644 --- a/sdk/dotnet/Tags/GetTagValue.cs +++ b/sdk/dotnet/Tags/GetTagValue.cs @@ -60,6 +60,31 @@ public static Task InvokeAsync(GetTagValueArgs args, InvokeOp /// public static Output Invoke(GetTagValueInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:tags/getTagValue:getTagValue", args ?? new GetTagValueInvokeArgs(), options.WithDefaults()); + + /// + /// Get a tag value by `parent` key and `short_name`. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var environmentProdTagValue = Gcp.Tags.GetTagValue.Invoke(new() + /// { + /// Parent = "tagKeys/56789", + /// ShortName = "production", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetTagValueInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:tags/getTagValue:getTagValue", args ?? new GetTagValueInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Tags/GetTagValueIamPolicy.cs b/sdk/dotnet/Tags/GetTagValueIamPolicy.cs index 37040c4f09..8c27ec6b7d 100644 --- a/sdk/dotnet/Tags/GetTagValueIamPolicy.cs +++ b/sdk/dotnet/Tags/GetTagValueIamPolicy.cs @@ -60,6 +60,31 @@ public static Task InvokeAsync(GetTagValueIamPolicyA /// public static Output Invoke(GetTagValueIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:tags/getTagValueIamPolicy:getTagValueIamPolicy", args ?? new GetTagValueIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for tagvalue + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.Tags.GetTagValueIamPolicy.Invoke(new() + /// { + /// TagValue = @value.Name, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetTagValueIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:tags/getTagValueIamPolicy:getTagValueIamPolicy", args ?? new GetTagValueIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Tags/GetTagValues.cs b/sdk/dotnet/Tags/GetTagValues.cs index f8daf3d271..8c2af4b23b 100644 --- a/sdk/dotnet/Tags/GetTagValues.cs +++ b/sdk/dotnet/Tags/GetTagValues.cs @@ -58,6 +58,30 @@ public static Task InvokeAsync(GetTagValuesArgs args, Invoke /// public static Output Invoke(GetTagValuesInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:tags/getTagValues:getTagValues", args ?? new GetTagValuesInvokeArgs(), options.WithDefaults()); + + /// + /// Get tag values from a `parent` key. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var environmentTagValues = Gcp.Tags.GetTagValues.Invoke(new() + /// { + /// Parent = "tagKeys/56789", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetTagValuesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:tags/getTagValues:getTagValues", args ?? new GetTagValuesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Tpu/GetTensorflowVersions.cs b/sdk/dotnet/Tpu/GetTensorflowVersions.cs index e16c6fc304..754f102b87 100644 --- a/sdk/dotnet/Tpu/GetTensorflowVersions.cs +++ b/sdk/dotnet/Tpu/GetTensorflowVersions.cs @@ -102,6 +102,52 @@ public static Task InvokeAsync(GetTensorflowVersion /// public static Output Invoke(GetTensorflowVersionsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:tpu/getTensorflowVersions:getTensorflowVersions", args ?? new GetTensorflowVersionsInvokeArgs(), options.WithDefaults()); + + /// + /// Get TensorFlow versions available for a project. For more information see the [official documentation](https://cloud.google.com/tpu/docs/) and [API](https://cloud.google.com/tpu/docs/reference/rest/v1/projects.locations.tensorflowVersions). + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var available = Gcp.Tpu.GetTensorflowVersions.Invoke(); + /// + /// }); + /// ``` + /// + /// + /// ### Configure Basic TPU Node With Available Version + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var available = Gcp.Tpu.GetTensorflowVersions.Invoke(); + /// + /// var tpu = new Gcp.Tpu.Node("tpu", new() + /// { + /// Name = "test-tpu", + /// Zone = "us-central1-b", + /// AcceleratorType = "v3-8", + /// TensorflowVersion = available.Apply(getTensorflowVersionsResult => getTensorflowVersionsResult.Versions[0]), + /// CidrBlock = "10.2.0.0/29", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetTensorflowVersionsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:tpu/getTensorflowVersions:getTensorflowVersions", args ?? new GetTensorflowVersionsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Tpu/GetV2AcceleratorTypes.cs b/sdk/dotnet/Tpu/GetV2AcceleratorTypes.cs index f0e9876172..ba3a14072b 100644 --- a/sdk/dotnet/Tpu/GetV2AcceleratorTypes.cs +++ b/sdk/dotnet/Tpu/GetV2AcceleratorTypes.cs @@ -104,6 +104,53 @@ public static Task InvokeAsync(GetV2AcceleratorType /// public static Output Invoke(GetV2AcceleratorTypesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:tpu/getV2AcceleratorTypes:getV2AcceleratorTypes", args ?? new GetV2AcceleratorTypesInvokeArgs(), options.WithDefaults()); + + /// + /// Get accelerator types available for a project. For more information see the [official documentation](https://cloud.google.com/tpu/docs/) and [API](https://cloud.google.com/tpu/docs/reference/rest/v2/projects.locations.acceleratorTypes). + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var available = Gcp.Tpu.GetV2AcceleratorTypes.Invoke(); + /// + /// }); + /// ``` + /// + /// + /// ### Configure Basic TPU VM With Available Type + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var available = Gcp.Tpu.GetV2AcceleratorTypes.Invoke(); + /// + /// var availableGetV2RuntimeVersions = Gcp.Tpu.GetV2RuntimeVersions.Invoke(); + /// + /// var tpu = new Gcp.Tpu.V2Vm("tpu", new() + /// { + /// Name = "test-tpu", + /// Zone = "us-central1-b", + /// RuntimeVersion = availableGetV2RuntimeVersions.Apply(getV2RuntimeVersionsResult => getV2RuntimeVersionsResult.Versions[0]), + /// AcceleratorType = available.Apply(getV2AcceleratorTypesResult => getV2AcceleratorTypesResult.Types[0]), + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetV2AcceleratorTypesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:tpu/getV2AcceleratorTypes:getV2AcceleratorTypes", args ?? new GetV2AcceleratorTypesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Tpu/GetV2RuntimeVersions.cs b/sdk/dotnet/Tpu/GetV2RuntimeVersions.cs index a2280e4661..9842d6fb32 100644 --- a/sdk/dotnet/Tpu/GetV2RuntimeVersions.cs +++ b/sdk/dotnet/Tpu/GetV2RuntimeVersions.cs @@ -98,6 +98,50 @@ public static Task InvokeAsync(GetV2RuntimeVersionsA /// public static Output Invoke(GetV2RuntimeVersionsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:tpu/getV2RuntimeVersions:getV2RuntimeVersions", args ?? new GetV2RuntimeVersionsInvokeArgs(), options.WithDefaults()); + + /// + /// Get runtime versions available for a project. For more information see the [official documentation](https://cloud.google.com/tpu/docs/) and [API](https://cloud.google.com/tpu/docs/reference/rest/v2/projects.locations.runtimeVersions). + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var available = Gcp.Tpu.GetV2RuntimeVersions.Invoke(); + /// + /// }); + /// ``` + /// + /// + /// ### Configure Basic TPU VM With Available Version + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var available = Gcp.Tpu.GetV2RuntimeVersions.Invoke(); + /// + /// var tpu = new Gcp.Tpu.V2Vm("tpu", new() + /// { + /// Name = "test-tpu", + /// Zone = "us-central1-b", + /// RuntimeVersion = available.Apply(getV2RuntimeVersionsResult => getV2RuntimeVersionsResult.Versions[0]), + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetV2RuntimeVersionsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:tpu/getV2RuntimeVersions:getV2RuntimeVersions", args ?? new GetV2RuntimeVersionsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Utilities.cs b/sdk/dotnet/Utilities.cs index 8d0fe5675b..f6f694f429 100644 --- a/sdk/dotnet/Utilities.cs +++ b/sdk/dotnet/Utilities.cs @@ -56,6 +56,13 @@ static class Utilities return dst; } + public static global::Pulumi.InvokeOutputOptions WithDefaults(this global::Pulumi.InvokeOutputOptions? src) + { + var dst = src ?? new global::Pulumi.InvokeOutputOptions{}; + dst.Version = src?.Version ?? Version; + return dst; + } + private readonly static string version; public static string Version => version; diff --git a/sdk/dotnet/VMwareEngine/GetCluster.cs b/sdk/dotnet/VMwareEngine/GetCluster.cs index 35a2e9940c..9de2634cda 100644 --- a/sdk/dotnet/VMwareEngine/GetCluster.cs +++ b/sdk/dotnet/VMwareEngine/GetCluster.cs @@ -66,6 +66,34 @@ public static Task InvokeAsync(GetClusterArgs args, InvokeOpti /// public static Output Invoke(GetClusterInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:vmwareengine/getCluster:getCluster", args ?? new GetClusterInvokeArgs(), options.WithDefaults()); + + /// + /// Use this data source to get details about a cluster resource. + /// + /// To get more information about private cloud cluster, see: + /// * [API documentation](https://cloud.google.com/vmware-engine/docs/reference/rest/v1/projects.locations.privateClouds.clusters) + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var myCluster = Gcp.VMwareEngine.GetCluster.Invoke(new() + /// { + /// Name = "my-cluster", + /// Parent = "project/locations/us-west1-a/privateClouds/my-cloud", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetClusterInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:vmwareengine/getCluster:getCluster", args ?? new GetClusterInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/VMwareEngine/GetExternalAccessRule.cs b/sdk/dotnet/VMwareEngine/GetExternalAccessRule.cs index c84f7825e4..d6b9c3c39a 100644 --- a/sdk/dotnet/VMwareEngine/GetExternalAccessRule.cs +++ b/sdk/dotnet/VMwareEngine/GetExternalAccessRule.cs @@ -66,6 +66,34 @@ public static Task InvokeAsync(GetExternalAccessRul /// public static Output Invoke(GetExternalAccessRuleInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:vmwareengine/getExternalAccessRule:getExternalAccessRule", args ?? new GetExternalAccessRuleInvokeArgs(), options.WithDefaults()); + + /// + /// Use this data source to get details about a external access rule resource. + /// + /// To get more information about external address, see: + /// * [API documentation](https://cloud.google.com/vmware-engine/docs/reference/rest/v1/projects.locations.networkPolicies.externalAccessRules) + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var myExternalAccessRule = Gcp.VMwareEngine.GetExternalAccessRule.Invoke(new() + /// { + /// Name = "my-external-access-rule", + /// Parent = "project/my-project/locations/us-west1-a/networkPolicies/my-network-policy", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetExternalAccessRuleInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:vmwareengine/getExternalAccessRule:getExternalAccessRule", args ?? new GetExternalAccessRuleInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/VMwareEngine/GetExternalAddress.cs b/sdk/dotnet/VMwareEngine/GetExternalAddress.cs index 0f2f808469..07838fac62 100644 --- a/sdk/dotnet/VMwareEngine/GetExternalAddress.cs +++ b/sdk/dotnet/VMwareEngine/GetExternalAddress.cs @@ -66,6 +66,34 @@ public static Task InvokeAsync(GetExternalAddressArgs /// public static Output Invoke(GetExternalAddressInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:vmwareengine/getExternalAddress:getExternalAddress", args ?? new GetExternalAddressInvokeArgs(), options.WithDefaults()); + + /// + /// Use this data source to get details about a external address resource. + /// + /// To get more information about external address, see: + /// * [API documentation](https://cloud.google.com/vmware-engine/docs/reference/rest/v1/projects.locations.privateClouds.externalAddresses) + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var myExternalAddress = Gcp.VMwareEngine.GetExternalAddress.Invoke(new() + /// { + /// Name = "my-external-address", + /// Parent = "project/my-project/locations/us-west1-a/privateClouds/my-cloud", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetExternalAddressInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:vmwareengine/getExternalAddress:getExternalAddress", args ?? new GetExternalAddressInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/VMwareEngine/GetNetwork.cs b/sdk/dotnet/VMwareEngine/GetNetwork.cs index 37abee7328..ae731f47f8 100644 --- a/sdk/dotnet/VMwareEngine/GetNetwork.cs +++ b/sdk/dotnet/VMwareEngine/GetNetwork.cs @@ -66,6 +66,34 @@ public static Task InvokeAsync(GetNetworkArgs args, InvokeOpti /// public static Output Invoke(GetNetworkInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:vmwareengine/getNetwork:getNetwork", args ?? new GetNetworkInvokeArgs(), options.WithDefaults()); + + /// + /// Use this data source to get details about a VMwareEngine network resource. + /// + /// To get more information about VMwareEngine Network, see: + /// * [API documentation](https://cloud.google.com/vmware-engine/docs/reference/rest/v1/projects.locations.vmwareEngineNetworks) + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var myNw = Gcp.VMwareEngine.GetNetwork.Invoke(new() + /// { + /// Name = "us-central1-default", + /// Location = "us-central1", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetNetworkInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:vmwareengine/getNetwork:getNetwork", args ?? new GetNetworkInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/VMwareEngine/GetNetworkPeering.cs b/sdk/dotnet/VMwareEngine/GetNetworkPeering.cs index 444fb70722..195b313e0f 100644 --- a/sdk/dotnet/VMwareEngine/GetNetworkPeering.cs +++ b/sdk/dotnet/VMwareEngine/GetNetworkPeering.cs @@ -64,6 +64,33 @@ public static Task InvokeAsync(GetNetworkPeeringArgs ar /// public static Output Invoke(GetNetworkPeeringInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:vmwareengine/getNetworkPeering:getNetworkPeering", args ?? new GetNetworkPeeringInvokeArgs(), options.WithDefaults()); + + /// + /// Use this data source to get details about a network peering resource. + /// + /// To get more information about network peering, see: + /// * [API documentation](https://cloud.google.com/vmware-engine/docs/reference/rest/v1/projects.locations.networkPeerings) + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var myNetworkPeering = Gcp.VMwareEngine.GetNetworkPeering.Invoke(new() + /// { + /// Name = "my-network-peering", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetNetworkPeeringInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:vmwareengine/getNetworkPeering:getNetworkPeering", args ?? new GetNetworkPeeringInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/VMwareEngine/GetNetworkPolicy.cs b/sdk/dotnet/VMwareEngine/GetNetworkPolicy.cs index 0de1dcad5a..6af8cf23d6 100644 --- a/sdk/dotnet/VMwareEngine/GetNetworkPolicy.cs +++ b/sdk/dotnet/VMwareEngine/GetNetworkPolicy.cs @@ -66,6 +66,34 @@ public static Task InvokeAsync(GetNetworkPolicyArgs args /// public static Output Invoke(GetNetworkPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:vmwareengine/getNetworkPolicy:getNetworkPolicy", args ?? new GetNetworkPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Use this data source to get details about a network policy resource. + /// + /// To get more information about network policy, see: + /// * [API documentation](https://cloud.google.com/vmware-engine/docs/reference/rest/v1/projects.locations.networkPolicies) + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var myNetworkPolicy = Gcp.VMwareEngine.GetNetworkPolicy.Invoke(new() + /// { + /// Name = "my-network-policy", + /// Location = "us-central1", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetNetworkPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:vmwareengine/getNetworkPolicy:getNetworkPolicy", args ?? new GetNetworkPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/VMwareEngine/GetNsxCredentials.cs b/sdk/dotnet/VMwareEngine/GetNsxCredentials.cs index f4872db224..c63f715535 100644 --- a/sdk/dotnet/VMwareEngine/GetNsxCredentials.cs +++ b/sdk/dotnet/VMwareEngine/GetNsxCredentials.cs @@ -64,6 +64,33 @@ public static Task InvokeAsync(GetNsxCredentialsArgs ar /// public static Output Invoke(GetNsxCredentialsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:vmwareengine/getNsxCredentials:getNsxCredentials", args ?? new GetNsxCredentialsInvokeArgs(), options.WithDefaults()); + + /// + /// Use this data source to get NSX credentials for a Private Cloud. + /// + /// To get more information about private cloud NSX credentials, see: + /// * [API documentation](https://cloud.google.com/vmware-engine/docs/reference/rest/v1/projects.locations.privateClouds/showNsxCredentials) + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ds = Gcp.VMwareEngine.GetNsxCredentials.Invoke(new() + /// { + /// Parent = "projects/my-project/locations/us-west1-a/privateClouds/my-cloud", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetNsxCredentialsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:vmwareengine/getNsxCredentials:getNsxCredentials", args ?? new GetNsxCredentialsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/VMwareEngine/GetPrivateCloud.cs b/sdk/dotnet/VMwareEngine/GetPrivateCloud.cs index 23d58acbf0..7f0186edab 100644 --- a/sdk/dotnet/VMwareEngine/GetPrivateCloud.cs +++ b/sdk/dotnet/VMwareEngine/GetPrivateCloud.cs @@ -66,6 +66,34 @@ public static Task InvokeAsync(GetPrivateCloudArgs args, /// public static Output Invoke(GetPrivateCloudInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:vmwareengine/getPrivateCloud:getPrivateCloud", args ?? new GetPrivateCloudInvokeArgs(), options.WithDefaults()); + + /// + /// Use this data source to get details about a private cloud resource. + /// + /// To get more information about private cloud, see: + /// * [API documentation](https://cloud.google.com/vmware-engine/docs/reference/rest/v1/projects.locations.privateClouds) + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var myPc = Gcp.VMwareEngine.GetPrivateCloud.Invoke(new() + /// { + /// Name = "my-pc", + /// Location = "us-central1-a", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetPrivateCloudInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:vmwareengine/getPrivateCloud:getPrivateCloud", args ?? new GetPrivateCloudInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/VMwareEngine/GetSubnet.cs b/sdk/dotnet/VMwareEngine/GetSubnet.cs index 187b5f2dc4..42171dd543 100644 --- a/sdk/dotnet/VMwareEngine/GetSubnet.cs +++ b/sdk/dotnet/VMwareEngine/GetSubnet.cs @@ -66,6 +66,34 @@ public static Task InvokeAsync(GetSubnetArgs args, InvokeOption /// public static Output Invoke(GetSubnetInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:vmwareengine/getSubnet:getSubnet", args ?? new GetSubnetInvokeArgs(), options.WithDefaults()); + + /// + /// Use this data source to get details about a subnet. Management subnets support only read operations and should be configured through this data source. User defined subnets can be configured using the resource as well as the datasource. + /// + /// To get more information about private cloud subnet, see: + /// * [API documentation](https://cloud.google.com/vmware-engine/docs/reference/rest/v1/projects.locations.privateClouds.subnets) + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var mySubnet = Gcp.VMwareEngine.GetSubnet.Invoke(new() + /// { + /// Name = "service-1", + /// Parent = "project/my-project/locations/us-west1-a/privateClouds/my-cloud", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetSubnetInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:vmwareengine/getSubnet:getSubnet", args ?? new GetSubnetInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/VMwareEngine/GetVcenterCredentials.cs b/sdk/dotnet/VMwareEngine/GetVcenterCredentials.cs index ba6408f27d..59da435cbd 100644 --- a/sdk/dotnet/VMwareEngine/GetVcenterCredentials.cs +++ b/sdk/dotnet/VMwareEngine/GetVcenterCredentials.cs @@ -64,6 +64,33 @@ public static Task InvokeAsync(GetVcenterCredential /// public static Output Invoke(GetVcenterCredentialsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:vmwareengine/getVcenterCredentials:getVcenterCredentials", args ?? new GetVcenterCredentialsInvokeArgs(), options.WithDefaults()); + + /// + /// Use this data source to get Vcenter credentials for a Private Cloud. + /// + /// To get more information about private cloud Vcenter credentials, see: + /// * [API documentation](https://cloud.google.com/vmware-engine/docs/reference/rest/v1/projects.locations.privateClouds/showVcenterCredentials) + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ds = Gcp.VMwareEngine.GetVcenterCredentials.Invoke(new() + /// { + /// Parent = "projects/my-project/locations/us-west1-a/privateClouds/my-cloud", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetVcenterCredentialsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:vmwareengine/getVcenterCredentials:getVcenterCredentials", args ?? new GetVcenterCredentialsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Vertex/GetAiEndpointIamPolicy.cs b/sdk/dotnet/Vertex/GetAiEndpointIamPolicy.cs index aa719fb3d9..9b9a3f989d 100644 --- a/sdk/dotnet/Vertex/GetAiEndpointIamPolicy.cs +++ b/sdk/dotnet/Vertex/GetAiEndpointIamPolicy.cs @@ -16,6 +16,9 @@ public static Task InvokeAsync(GetAiEndpointIamPol public static Output Invoke(GetAiEndpointIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:vertex/getAiEndpointIamPolicy:getAiEndpointIamPolicy", args ?? new GetAiEndpointIamPolicyInvokeArgs(), options.WithDefaults()); + + public static Output Invoke(GetAiEndpointIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:vertex/getAiEndpointIamPolicy:getAiEndpointIamPolicy", args ?? new GetAiEndpointIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Vertex/GetAiFeaturestoreEntitytypeIamPolicy.cs b/sdk/dotnet/Vertex/GetAiFeaturestoreEntitytypeIamPolicy.cs index 6a66e99023..fd58d93949 100644 --- a/sdk/dotnet/Vertex/GetAiFeaturestoreEntitytypeIamPolicy.cs +++ b/sdk/dotnet/Vertex/GetAiFeaturestoreEntitytypeIamPolicy.cs @@ -16,6 +16,9 @@ public static Task InvokeAsync(GetAi public static Output Invoke(GetAiFeaturestoreEntitytypeIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:vertex/getAiFeaturestoreEntitytypeIamPolicy:getAiFeaturestoreEntitytypeIamPolicy", args ?? new GetAiFeaturestoreEntitytypeIamPolicyInvokeArgs(), options.WithDefaults()); + + public static Output Invoke(GetAiFeaturestoreEntitytypeIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:vertex/getAiFeaturestoreEntitytypeIamPolicy:getAiFeaturestoreEntitytypeIamPolicy", args ?? new GetAiFeaturestoreEntitytypeIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Vertex/GetAiFeaturestoreIamPolicy.cs b/sdk/dotnet/Vertex/GetAiFeaturestoreIamPolicy.cs index 53f0b592fe..db0b468960 100644 --- a/sdk/dotnet/Vertex/GetAiFeaturestoreIamPolicy.cs +++ b/sdk/dotnet/Vertex/GetAiFeaturestoreIamPolicy.cs @@ -16,6 +16,9 @@ public static Task InvokeAsync(GetAiFeaturesto public static Output Invoke(GetAiFeaturestoreIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:vertex/getAiFeaturestoreIamPolicy:getAiFeaturestoreIamPolicy", args ?? new GetAiFeaturestoreIamPolicyInvokeArgs(), options.WithDefaults()); + + public static Output Invoke(GetAiFeaturestoreIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:vertex/getAiFeaturestoreIamPolicy:getAiFeaturestoreIamPolicy", args ?? new GetAiFeaturestoreIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Vertex/GetAiIndex.cs b/sdk/dotnet/Vertex/GetAiIndex.cs index 388c03d4aa..7ae6dc8b25 100644 --- a/sdk/dotnet/Vertex/GetAiIndex.cs +++ b/sdk/dotnet/Vertex/GetAiIndex.cs @@ -22,6 +22,12 @@ public static Task InvokeAsync(GetAiIndexArgs args, InvokeOpti /// public static Output Invoke(GetAiIndexInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:vertex/getAiIndex:getAiIndex", args ?? new GetAiIndexInvokeArgs(), options.WithDefaults()); + + /// + /// A representation of a collection of database items organized in a way that allows for approximate nearest neighbor (a.k.a ANN) algorithms search. + /// + public static Output Invoke(GetAiIndexInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:vertex/getAiIndex:getAiIndex", args ?? new GetAiIndexInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/VpcAccess/GetConnector.cs b/sdk/dotnet/VpcAccess/GetConnector.cs index 443e2290e4..28716a3eec 100644 --- a/sdk/dotnet/VpcAccess/GetConnector.cs +++ b/sdk/dotnet/VpcAccess/GetConnector.cs @@ -90,6 +90,46 @@ public static Task InvokeAsync(GetConnectorArgs args, Invoke /// public static Output Invoke(GetConnectorInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:vpcaccess/getConnector:getConnector", args ?? new GetConnectorInvokeArgs(), options.WithDefaults()); + + /// + /// Get a Serverless VPC Access connector. + /// + /// To get more information about Connector, see: + /// + /// * [API documentation](https://cloud.google.com/vpc/docs/reference/vpcaccess/rest/v1/projects.locations.connectors) + /// * How-to Guides + /// * [Configuring Serverless VPC Access](https://cloud.google.com/vpc/docs/configure-serverless-vpc-access) + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var sample = Gcp.VpcAccess.GetConnector.Invoke(new() + /// { + /// Name = "vpc-con", + /// }); + /// + /// var connector = new Gcp.VpcAccess.Connector("connector", new() + /// { + /// Name = "vpc-con", + /// IpCidrRange = "10.8.0.0/28", + /// Network = "default", + /// Region = "us-central1", + /// MinInstances = 2, + /// MaxInstances = 3, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetConnectorInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:vpcaccess/getConnector:getConnector", args ?? new GetConnectorInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Workbench/GetInstanceIamPolicy.cs b/sdk/dotnet/Workbench/GetInstanceIamPolicy.cs index d714cd9107..788bc5d548 100644 --- a/sdk/dotnet/Workbench/GetInstanceIamPolicy.cs +++ b/sdk/dotnet/Workbench/GetInstanceIamPolicy.cs @@ -64,6 +64,33 @@ public static Task InvokeAsync(GetInstanceIamPolicyA /// public static Output Invoke(GetInstanceIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:workbench/getInstanceIamPolicy:getInstanceIamPolicy", args ?? new GetInstanceIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for instance + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.Workbench.GetInstanceIamPolicy.Invoke(new() + /// { + /// Project = instance.Project, + /// Location = instance.Location, + /// Name = instance.Name, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetInstanceIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:workbench/getInstanceIamPolicy:getInstanceIamPolicy", args ?? new GetInstanceIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Workstations/GetWorkstationConfigIamPolicy.cs b/sdk/dotnet/Workstations/GetWorkstationConfigIamPolicy.cs index b8178aa6a0..ebefb9a7a3 100644 --- a/sdk/dotnet/Workstations/GetWorkstationConfigIamPolicy.cs +++ b/sdk/dotnet/Workstations/GetWorkstationConfigIamPolicy.cs @@ -16,6 +16,9 @@ public static Task InvokeAsync(GetWorkstati public static Output Invoke(GetWorkstationConfigIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:workstations/getWorkstationConfigIamPolicy:getWorkstationConfigIamPolicy", args ?? new GetWorkstationConfigIamPolicyInvokeArgs(), options.WithDefaults()); + + public static Output Invoke(GetWorkstationConfigIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:workstations/getWorkstationConfigIamPolicy:getWorkstationConfigIamPolicy", args ?? new GetWorkstationConfigIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Workstations/GetWorkstationIamPolicy.cs b/sdk/dotnet/Workstations/GetWorkstationIamPolicy.cs index 7395243103..d213a60b82 100644 --- a/sdk/dotnet/Workstations/GetWorkstationIamPolicy.cs +++ b/sdk/dotnet/Workstations/GetWorkstationIamPolicy.cs @@ -16,6 +16,9 @@ public static Task InvokeAsync(GetWorkstationIamP public static Output Invoke(GetWorkstationIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:workstations/getWorkstationIamPolicy:getWorkstationIamPolicy", args ?? new GetWorkstationIamPolicyInvokeArgs(), options.WithDefaults()); + + public static Output Invoke(GetWorkstationIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:workstations/getWorkstationIamPolicy:getWorkstationIamPolicy", args ?? new GetWorkstationIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/go/gcp/accessapproval/getFolderServiceAccount.go b/sdk/go/gcp/accessapproval/getFolderServiceAccount.go index e8b7ab897b..1d3e3b74dd 100644 --- a/sdk/go/gcp/accessapproval/getFolderServiceAccount.go +++ b/sdk/go/gcp/accessapproval/getFolderServiceAccount.go @@ -84,21 +84,11 @@ type GetFolderServiceAccountResult struct { } func GetFolderServiceAccountOutput(ctx *pulumi.Context, args GetFolderServiceAccountOutputArgs, opts ...pulumi.InvokeOption) GetFolderServiceAccountResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetFolderServiceAccountResultOutput, error) { args := v.(GetFolderServiceAccountArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetFolderServiceAccountResult - secret, err := ctx.InvokePackageRaw("gcp:accessapproval/getFolderServiceAccount:getFolderServiceAccount", args, &rv, "", opts...) - if err != nil { - return GetFolderServiceAccountResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetFolderServiceAccountResultOutput) - if secret { - return pulumi.ToSecret(output).(GetFolderServiceAccountResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:accessapproval/getFolderServiceAccount:getFolderServiceAccount", args, GetFolderServiceAccountResultOutput{}, options).(GetFolderServiceAccountResultOutput), nil }).(GetFolderServiceAccountResultOutput) } diff --git a/sdk/go/gcp/accessapproval/getOrganizationServiceAccount.go b/sdk/go/gcp/accessapproval/getOrganizationServiceAccount.go index 4f518f9282..41ccb6c9a0 100644 --- a/sdk/go/gcp/accessapproval/getOrganizationServiceAccount.go +++ b/sdk/go/gcp/accessapproval/getOrganizationServiceAccount.go @@ -84,21 +84,11 @@ type GetOrganizationServiceAccountResult struct { } func GetOrganizationServiceAccountOutput(ctx *pulumi.Context, args GetOrganizationServiceAccountOutputArgs, opts ...pulumi.InvokeOption) GetOrganizationServiceAccountResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetOrganizationServiceAccountResultOutput, error) { args := v.(GetOrganizationServiceAccountArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetOrganizationServiceAccountResult - secret, err := ctx.InvokePackageRaw("gcp:accessapproval/getOrganizationServiceAccount:getOrganizationServiceAccount", args, &rv, "", opts...) - if err != nil { - return GetOrganizationServiceAccountResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetOrganizationServiceAccountResultOutput) - if secret { - return pulumi.ToSecret(output).(GetOrganizationServiceAccountResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:accessapproval/getOrganizationServiceAccount:getOrganizationServiceAccount", args, GetOrganizationServiceAccountResultOutput{}, options).(GetOrganizationServiceAccountResultOutput), nil }).(GetOrganizationServiceAccountResultOutput) } diff --git a/sdk/go/gcp/accessapproval/getProjectServiceAccount.go b/sdk/go/gcp/accessapproval/getProjectServiceAccount.go index 484e51c3b9..f21d038a5f 100644 --- a/sdk/go/gcp/accessapproval/getProjectServiceAccount.go +++ b/sdk/go/gcp/accessapproval/getProjectServiceAccount.go @@ -84,21 +84,11 @@ type GetProjectServiceAccountResult struct { } func GetProjectServiceAccountOutput(ctx *pulumi.Context, args GetProjectServiceAccountOutputArgs, opts ...pulumi.InvokeOption) GetProjectServiceAccountResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetProjectServiceAccountResultOutput, error) { args := v.(GetProjectServiceAccountArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetProjectServiceAccountResult - secret, err := ctx.InvokePackageRaw("gcp:accessapproval/getProjectServiceAccount:getProjectServiceAccount", args, &rv, "", opts...) - if err != nil { - return GetProjectServiceAccountResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetProjectServiceAccountResultOutput) - if secret { - return pulumi.ToSecret(output).(GetProjectServiceAccountResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:accessapproval/getProjectServiceAccount:getProjectServiceAccount", args, GetProjectServiceAccountResultOutput{}, options).(GetProjectServiceAccountResultOutput), nil }).(GetProjectServiceAccountResultOutput) } diff --git a/sdk/go/gcp/accesscontextmanager/getAccessPolicy.go b/sdk/go/gcp/accesscontextmanager/getAccessPolicy.go index 469cbe787e..8fc8bb2fd3 100644 --- a/sdk/go/gcp/accesscontextmanager/getAccessPolicy.go +++ b/sdk/go/gcp/accesscontextmanager/getAccessPolicy.go @@ -78,21 +78,11 @@ type LookupAccessPolicyResult struct { } func LookupAccessPolicyOutput(ctx *pulumi.Context, args LookupAccessPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupAccessPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupAccessPolicyResultOutput, error) { args := v.(LookupAccessPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupAccessPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:accesscontextmanager/getAccessPolicy:getAccessPolicy", args, &rv, "", opts...) - if err != nil { - return LookupAccessPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupAccessPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupAccessPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:accesscontextmanager/getAccessPolicy:getAccessPolicy", args, LookupAccessPolicyResultOutput{}, options).(LookupAccessPolicyResultOutput), nil }).(LookupAccessPolicyResultOutput) } diff --git a/sdk/go/gcp/accesscontextmanager/getAccessPolicyIamPolicy.go b/sdk/go/gcp/accesscontextmanager/getAccessPolicyIamPolicy.go index e3340f9156..fa5badcf92 100644 --- a/sdk/go/gcp/accesscontextmanager/getAccessPolicyIamPolicy.go +++ b/sdk/go/gcp/accesscontextmanager/getAccessPolicyIamPolicy.go @@ -67,21 +67,11 @@ type LookupAccessPolicyIamPolicyResult struct { } func LookupAccessPolicyIamPolicyOutput(ctx *pulumi.Context, args LookupAccessPolicyIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupAccessPolicyIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupAccessPolicyIamPolicyResultOutput, error) { args := v.(LookupAccessPolicyIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupAccessPolicyIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:accesscontextmanager/getAccessPolicyIamPolicy:getAccessPolicyIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupAccessPolicyIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupAccessPolicyIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupAccessPolicyIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:accesscontextmanager/getAccessPolicyIamPolicy:getAccessPolicyIamPolicy", args, LookupAccessPolicyIamPolicyResultOutput{}, options).(LookupAccessPolicyIamPolicyResultOutput), nil }).(LookupAccessPolicyIamPolicyResultOutput) } diff --git a/sdk/go/gcp/alloydb/getLocations.go b/sdk/go/gcp/alloydb/getLocations.go index 855ac41926..7132669d2b 100644 --- a/sdk/go/gcp/alloydb/getLocations.go +++ b/sdk/go/gcp/alloydb/getLocations.go @@ -62,21 +62,11 @@ type GetLocationsResult struct { } func GetLocationsOutput(ctx *pulumi.Context, args GetLocationsOutputArgs, opts ...pulumi.InvokeOption) GetLocationsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetLocationsResultOutput, error) { args := v.(GetLocationsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetLocationsResult - secret, err := ctx.InvokePackageRaw("gcp:alloydb/getLocations:getLocations", args, &rv, "", opts...) - if err != nil { - return GetLocationsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetLocationsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetLocationsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:alloydb/getLocations:getLocations", args, GetLocationsResultOutput{}, options).(GetLocationsResultOutput), nil }).(GetLocationsResultOutput) } diff --git a/sdk/go/gcp/alloydb/getSupportedDatabaseFlags.go b/sdk/go/gcp/alloydb/getSupportedDatabaseFlags.go index cd35965b9e..74c2c80fbf 100644 --- a/sdk/go/gcp/alloydb/getSupportedDatabaseFlags.go +++ b/sdk/go/gcp/alloydb/getSupportedDatabaseFlags.go @@ -67,21 +67,11 @@ type GetSupportedDatabaseFlagsResult struct { } func GetSupportedDatabaseFlagsOutput(ctx *pulumi.Context, args GetSupportedDatabaseFlagsOutputArgs, opts ...pulumi.InvokeOption) GetSupportedDatabaseFlagsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetSupportedDatabaseFlagsResultOutput, error) { args := v.(GetSupportedDatabaseFlagsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetSupportedDatabaseFlagsResult - secret, err := ctx.InvokePackageRaw("gcp:alloydb/getSupportedDatabaseFlags:getSupportedDatabaseFlags", args, &rv, "", opts...) - if err != nil { - return GetSupportedDatabaseFlagsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetSupportedDatabaseFlagsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetSupportedDatabaseFlagsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:alloydb/getSupportedDatabaseFlags:getSupportedDatabaseFlags", args, GetSupportedDatabaseFlagsResultOutput{}, options).(GetSupportedDatabaseFlagsResultOutput), nil }).(GetSupportedDatabaseFlagsResultOutput) } diff --git a/sdk/go/gcp/apigateway/getApiConfigIamPolicy.go b/sdk/go/gcp/apigateway/getApiConfigIamPolicy.go index dad04f449d..5c7fe25c2b 100644 --- a/sdk/go/gcp/apigateway/getApiConfigIamPolicy.go +++ b/sdk/go/gcp/apigateway/getApiConfigIamPolicy.go @@ -47,21 +47,11 @@ type LookupApiConfigIamPolicyResult struct { } func LookupApiConfigIamPolicyOutput(ctx *pulumi.Context, args LookupApiConfigIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupApiConfigIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupApiConfigIamPolicyResultOutput, error) { args := v.(LookupApiConfigIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupApiConfigIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:apigateway/getApiConfigIamPolicy:getApiConfigIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupApiConfigIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupApiConfigIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupApiConfigIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:apigateway/getApiConfigIamPolicy:getApiConfigIamPolicy", args, LookupApiConfigIamPolicyResultOutput{}, options).(LookupApiConfigIamPolicyResultOutput), nil }).(LookupApiConfigIamPolicyResultOutput) } diff --git a/sdk/go/gcp/apigateway/getApiIamPolicy.go b/sdk/go/gcp/apigateway/getApiIamPolicy.go index 2c72667698..eadfa42b16 100644 --- a/sdk/go/gcp/apigateway/getApiIamPolicy.go +++ b/sdk/go/gcp/apigateway/getApiIamPolicy.go @@ -43,21 +43,11 @@ type LookupApiIamPolicyResult struct { } func LookupApiIamPolicyOutput(ctx *pulumi.Context, args LookupApiIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupApiIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupApiIamPolicyResultOutput, error) { args := v.(LookupApiIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupApiIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:apigateway/getApiIamPolicy:getApiIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupApiIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupApiIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupApiIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:apigateway/getApiIamPolicy:getApiIamPolicy", args, LookupApiIamPolicyResultOutput{}, options).(LookupApiIamPolicyResultOutput), nil }).(LookupApiIamPolicyResultOutput) } diff --git a/sdk/go/gcp/apigateway/getGatewayIamPolicy.go b/sdk/go/gcp/apigateway/getGatewayIamPolicy.go index 324f29646a..bf68327891 100644 --- a/sdk/go/gcp/apigateway/getGatewayIamPolicy.go +++ b/sdk/go/gcp/apigateway/getGatewayIamPolicy.go @@ -49,21 +49,11 @@ type LookupGatewayIamPolicyResult struct { } func LookupGatewayIamPolicyOutput(ctx *pulumi.Context, args LookupGatewayIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupGatewayIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupGatewayIamPolicyResultOutput, error) { args := v.(LookupGatewayIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupGatewayIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:apigateway/getGatewayIamPolicy:getGatewayIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupGatewayIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupGatewayIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupGatewayIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:apigateway/getGatewayIamPolicy:getGatewayIamPolicy", args, LookupGatewayIamPolicyResultOutput{}, options).(LookupGatewayIamPolicyResultOutput), nil }).(LookupGatewayIamPolicyResultOutput) } diff --git a/sdk/go/gcp/apigee/getEnvironmentIamPolicy.go b/sdk/go/gcp/apigee/getEnvironmentIamPolicy.go index 98216a402b..9f2d3b20c1 100644 --- a/sdk/go/gcp/apigee/getEnvironmentIamPolicy.go +++ b/sdk/go/gcp/apigee/getEnvironmentIamPolicy.go @@ -70,21 +70,11 @@ type LookupEnvironmentIamPolicyResult struct { } func LookupEnvironmentIamPolicyOutput(ctx *pulumi.Context, args LookupEnvironmentIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupEnvironmentIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupEnvironmentIamPolicyResultOutput, error) { args := v.(LookupEnvironmentIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupEnvironmentIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:apigee/getEnvironmentIamPolicy:getEnvironmentIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupEnvironmentIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupEnvironmentIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupEnvironmentIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:apigee/getEnvironmentIamPolicy:getEnvironmentIamPolicy", args, LookupEnvironmentIamPolicyResultOutput{}, options).(LookupEnvironmentIamPolicyResultOutput), nil }).(LookupEnvironmentIamPolicyResultOutput) } diff --git a/sdk/go/gcp/appengine/getDefaultServiceAccount.go b/sdk/go/gcp/appengine/getDefaultServiceAccount.go index f78fdcfc7d..31de61e82e 100644 --- a/sdk/go/gcp/appengine/getDefaultServiceAccount.go +++ b/sdk/go/gcp/appengine/getDefaultServiceAccount.go @@ -71,21 +71,11 @@ type GetDefaultServiceAccountResult struct { } func GetDefaultServiceAccountOutput(ctx *pulumi.Context, args GetDefaultServiceAccountOutputArgs, opts ...pulumi.InvokeOption) GetDefaultServiceAccountResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetDefaultServiceAccountResultOutput, error) { args := v.(GetDefaultServiceAccountArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetDefaultServiceAccountResult - secret, err := ctx.InvokePackageRaw("gcp:appengine/getDefaultServiceAccount:getDefaultServiceAccount", args, &rv, "", opts...) - if err != nil { - return GetDefaultServiceAccountResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetDefaultServiceAccountResultOutput) - if secret { - return pulumi.ToSecret(output).(GetDefaultServiceAccountResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:appengine/getDefaultServiceAccount:getDefaultServiceAccount", args, GetDefaultServiceAccountResultOutput{}, options).(GetDefaultServiceAccountResultOutput), nil }).(GetDefaultServiceAccountResultOutput) } diff --git a/sdk/go/gcp/apphub/getApplication.go b/sdk/go/gcp/apphub/getApplication.go index bd3e0be075..772b948863 100644 --- a/sdk/go/gcp/apphub/getApplication.go +++ b/sdk/go/gcp/apphub/getApplication.go @@ -76,21 +76,11 @@ type LookupApplicationResult struct { } func LookupApplicationOutput(ctx *pulumi.Context, args LookupApplicationOutputArgs, opts ...pulumi.InvokeOption) LookupApplicationResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupApplicationResultOutput, error) { args := v.(LookupApplicationArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupApplicationResult - secret, err := ctx.InvokePackageRaw("gcp:apphub/getApplication:getApplication", args, &rv, "", opts...) - if err != nil { - return LookupApplicationResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupApplicationResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupApplicationResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:apphub/getApplication:getApplication", args, LookupApplicationResultOutput{}, options).(LookupApplicationResultOutput), nil }).(LookupApplicationResultOutput) } diff --git a/sdk/go/gcp/apphub/getDiscoveredService.go b/sdk/go/gcp/apphub/getDiscoveredService.go index bb4a81d0f5..dcd08ffdad 100644 --- a/sdk/go/gcp/apphub/getDiscoveredService.go +++ b/sdk/go/gcp/apphub/getDiscoveredService.go @@ -76,21 +76,11 @@ type GetDiscoveredServiceResult struct { } func GetDiscoveredServiceOutput(ctx *pulumi.Context, args GetDiscoveredServiceOutputArgs, opts ...pulumi.InvokeOption) GetDiscoveredServiceResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetDiscoveredServiceResultOutput, error) { args := v.(GetDiscoveredServiceArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetDiscoveredServiceResult - secret, err := ctx.InvokePackageRaw("gcp:apphub/getDiscoveredService:getDiscoveredService", args, &rv, "", opts...) - if err != nil { - return GetDiscoveredServiceResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetDiscoveredServiceResultOutput) - if secret { - return pulumi.ToSecret(output).(GetDiscoveredServiceResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:apphub/getDiscoveredService:getDiscoveredService", args, GetDiscoveredServiceResultOutput{}, options).(GetDiscoveredServiceResultOutput), nil }).(GetDiscoveredServiceResultOutput) } diff --git a/sdk/go/gcp/apphub/getDiscoveredWorkload.go b/sdk/go/gcp/apphub/getDiscoveredWorkload.go index b0160d291a..ec6fb3b23e 100644 --- a/sdk/go/gcp/apphub/getDiscoveredWorkload.go +++ b/sdk/go/gcp/apphub/getDiscoveredWorkload.go @@ -76,21 +76,11 @@ type GetDiscoveredWorkloadResult struct { } func GetDiscoveredWorkloadOutput(ctx *pulumi.Context, args GetDiscoveredWorkloadOutputArgs, opts ...pulumi.InvokeOption) GetDiscoveredWorkloadResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetDiscoveredWorkloadResultOutput, error) { args := v.(GetDiscoveredWorkloadArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetDiscoveredWorkloadResult - secret, err := ctx.InvokePackageRaw("gcp:apphub/getDiscoveredWorkload:getDiscoveredWorkload", args, &rv, "", opts...) - if err != nil { - return GetDiscoveredWorkloadResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetDiscoveredWorkloadResultOutput) - if secret { - return pulumi.ToSecret(output).(GetDiscoveredWorkloadResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:apphub/getDiscoveredWorkload:getDiscoveredWorkload", args, GetDiscoveredWorkloadResultOutput{}, options).(GetDiscoveredWorkloadResultOutput), nil }).(GetDiscoveredWorkloadResultOutput) } diff --git a/sdk/go/gcp/artifactregistry/getDockerImage.go b/sdk/go/gcp/artifactregistry/getDockerImage.go index 89af66789d..4ff8e49951 100644 --- a/sdk/go/gcp/artifactregistry/getDockerImage.go +++ b/sdk/go/gcp/artifactregistry/getDockerImage.go @@ -112,21 +112,11 @@ type GetDockerImageResult struct { } func GetDockerImageOutput(ctx *pulumi.Context, args GetDockerImageOutputArgs, opts ...pulumi.InvokeOption) GetDockerImageResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetDockerImageResultOutput, error) { args := v.(GetDockerImageArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetDockerImageResult - secret, err := ctx.InvokePackageRaw("gcp:artifactregistry/getDockerImage:getDockerImage", args, &rv, "", opts...) - if err != nil { - return GetDockerImageResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetDockerImageResultOutput) - if secret { - return pulumi.ToSecret(output).(GetDockerImageResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:artifactregistry/getDockerImage:getDockerImage", args, GetDockerImageResultOutput{}, options).(GetDockerImageResultOutput), nil }).(GetDockerImageResultOutput) } diff --git a/sdk/go/gcp/artifactregistry/getLocations.go b/sdk/go/gcp/artifactregistry/getLocations.go index 8e861d422e..a98da62089 100644 --- a/sdk/go/gcp/artifactregistry/getLocations.go +++ b/sdk/go/gcp/artifactregistry/getLocations.go @@ -109,21 +109,11 @@ type GetLocationsResult struct { } func GetLocationsOutput(ctx *pulumi.Context, args GetLocationsOutputArgs, opts ...pulumi.InvokeOption) GetLocationsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetLocationsResultOutput, error) { args := v.(GetLocationsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetLocationsResult - secret, err := ctx.InvokePackageRaw("gcp:artifactregistry/getLocations:getLocations", args, &rv, "", opts...) - if err != nil { - return GetLocationsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetLocationsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetLocationsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:artifactregistry/getLocations:getLocations", args, GetLocationsResultOutput{}, options).(GetLocationsResultOutput), nil }).(GetLocationsResultOutput) } diff --git a/sdk/go/gcp/artifactregistry/getRepository.go b/sdk/go/gcp/artifactregistry/getRepository.go index ac9ac93e34..935e342b80 100644 --- a/sdk/go/gcp/artifactregistry/getRepository.go +++ b/sdk/go/gcp/artifactregistry/getRepository.go @@ -90,21 +90,11 @@ type LookupRepositoryResult struct { } func LookupRepositoryOutput(ctx *pulumi.Context, args LookupRepositoryOutputArgs, opts ...pulumi.InvokeOption) LookupRepositoryResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupRepositoryResultOutput, error) { args := v.(LookupRepositoryArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupRepositoryResult - secret, err := ctx.InvokePackageRaw("gcp:artifactregistry/getRepository:getRepository", args, &rv, "", opts...) - if err != nil { - return LookupRepositoryResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupRepositoryResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupRepositoryResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:artifactregistry/getRepository:getRepository", args, LookupRepositoryResultOutput{}, options).(LookupRepositoryResultOutput), nil }).(LookupRepositoryResultOutput) } diff --git a/sdk/go/gcp/artifactregistry/getRepositoryIamPolicy.go b/sdk/go/gcp/artifactregistry/getRepositoryIamPolicy.go index 86b7ae9f8c..ae109ae635 100644 --- a/sdk/go/gcp/artifactregistry/getRepositoryIamPolicy.go +++ b/sdk/go/gcp/artifactregistry/getRepositoryIamPolicy.go @@ -79,21 +79,11 @@ type LookupRepositoryIamPolicyResult struct { } func LookupRepositoryIamPolicyOutput(ctx *pulumi.Context, args LookupRepositoryIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupRepositoryIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupRepositoryIamPolicyResultOutput, error) { args := v.(LookupRepositoryIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupRepositoryIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:artifactregistry/getRepositoryIamPolicy:getRepositoryIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupRepositoryIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupRepositoryIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupRepositoryIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:artifactregistry/getRepositoryIamPolicy:getRepositoryIamPolicy", args, LookupRepositoryIamPolicyResultOutput{}, options).(LookupRepositoryIamPolicyResultOutput), nil }).(LookupRepositoryIamPolicyResultOutput) } diff --git a/sdk/go/gcp/backupdisasterrecovery/getBackup.go b/sdk/go/gcp/backupdisasterrecovery/getBackup.go index f8f12fc8f8..bf1f6c0550 100644 --- a/sdk/go/gcp/backupdisasterrecovery/getBackup.go +++ b/sdk/go/gcp/backupdisasterrecovery/getBackup.go @@ -42,21 +42,11 @@ type GetBackupResult struct { } func GetBackupOutput(ctx *pulumi.Context, args GetBackupOutputArgs, opts ...pulumi.InvokeOption) GetBackupResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetBackupResultOutput, error) { args := v.(GetBackupArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetBackupResult - secret, err := ctx.InvokePackageRaw("gcp:backupdisasterrecovery/getBackup:getBackup", args, &rv, "", opts...) - if err != nil { - return GetBackupResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetBackupResultOutput) - if secret { - return pulumi.ToSecret(output).(GetBackupResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:backupdisasterrecovery/getBackup:getBackup", args, GetBackupResultOutput{}, options).(GetBackupResultOutput), nil }).(GetBackupResultOutput) } diff --git a/sdk/go/gcp/backupdisasterrecovery/getBackupPlan.go b/sdk/go/gcp/backupdisasterrecovery/getBackupPlan.go index 716c697d7f..fa165d4e51 100644 --- a/sdk/go/gcp/backupdisasterrecovery/getBackupPlan.go +++ b/sdk/go/gcp/backupdisasterrecovery/getBackupPlan.go @@ -46,21 +46,11 @@ type LookupBackupPlanResult struct { } func LookupBackupPlanOutput(ctx *pulumi.Context, args LookupBackupPlanOutputArgs, opts ...pulumi.InvokeOption) LookupBackupPlanResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupBackupPlanResultOutput, error) { args := v.(LookupBackupPlanArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupBackupPlanResult - secret, err := ctx.InvokePackageRaw("gcp:backupdisasterrecovery/getBackupPlan:getBackupPlan", args, &rv, "", opts...) - if err != nil { - return LookupBackupPlanResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupBackupPlanResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupBackupPlanResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:backupdisasterrecovery/getBackupPlan:getBackupPlan", args, LookupBackupPlanResultOutput{}, options).(LookupBackupPlanResultOutput), nil }).(LookupBackupPlanResultOutput) } diff --git a/sdk/go/gcp/backupdisasterrecovery/getBackupPlanAssociation.go b/sdk/go/gcp/backupdisasterrecovery/getBackupPlanAssociation.go index 6c243e8d4e..452be20ffd 100644 --- a/sdk/go/gcp/backupdisasterrecovery/getBackupPlanAssociation.go +++ b/sdk/go/gcp/backupdisasterrecovery/getBackupPlanAssociation.go @@ -77,21 +77,11 @@ type LookupBackupPlanAssociationResult struct { } func LookupBackupPlanAssociationOutput(ctx *pulumi.Context, args LookupBackupPlanAssociationOutputArgs, opts ...pulumi.InvokeOption) LookupBackupPlanAssociationResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupBackupPlanAssociationResultOutput, error) { args := v.(LookupBackupPlanAssociationArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupBackupPlanAssociationResult - secret, err := ctx.InvokePackageRaw("gcp:backupdisasterrecovery/getBackupPlanAssociation:getBackupPlanAssociation", args, &rv, "", opts...) - if err != nil { - return LookupBackupPlanAssociationResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupBackupPlanAssociationResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupBackupPlanAssociationResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:backupdisasterrecovery/getBackupPlanAssociation:getBackupPlanAssociation", args, LookupBackupPlanAssociationResultOutput{}, options).(LookupBackupPlanAssociationResultOutput), nil }).(LookupBackupPlanAssociationResultOutput) } diff --git a/sdk/go/gcp/backupdisasterrecovery/getBackupVault.go b/sdk/go/gcp/backupdisasterrecovery/getBackupVault.go index b1807c29ba..cfac05379f 100644 --- a/sdk/go/gcp/backupdisasterrecovery/getBackupVault.go +++ b/sdk/go/gcp/backupdisasterrecovery/getBackupVault.go @@ -96,21 +96,11 @@ type LookupBackupVaultResult struct { } func LookupBackupVaultOutput(ctx *pulumi.Context, args LookupBackupVaultOutputArgs, opts ...pulumi.InvokeOption) LookupBackupVaultResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupBackupVaultResultOutput, error) { args := v.(LookupBackupVaultArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupBackupVaultResult - secret, err := ctx.InvokePackageRaw("gcp:backupdisasterrecovery/getBackupVault:getBackupVault", args, &rv, "", opts...) - if err != nil { - return LookupBackupVaultResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupBackupVaultResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupBackupVaultResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:backupdisasterrecovery/getBackupVault:getBackupVault", args, LookupBackupVaultResultOutput{}, options).(LookupBackupVaultResultOutput), nil }).(LookupBackupVaultResultOutput) } diff --git a/sdk/go/gcp/backupdisasterrecovery/getDataSource.go b/sdk/go/gcp/backupdisasterrecovery/getDataSource.go index 1ecdee559c..9b01a7898c 100644 --- a/sdk/go/gcp/backupdisasterrecovery/getDataSource.go +++ b/sdk/go/gcp/backupdisasterrecovery/getDataSource.go @@ -52,21 +52,11 @@ type GetDataSourceResult struct { } func GetDataSourceOutput(ctx *pulumi.Context, args GetDataSourceOutputArgs, opts ...pulumi.InvokeOption) GetDataSourceResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetDataSourceResultOutput, error) { args := v.(GetDataSourceArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetDataSourceResult - secret, err := ctx.InvokePackageRaw("gcp:backupdisasterrecovery/getDataSource:getDataSource", args, &rv, "", opts...) - if err != nil { - return GetDataSourceResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetDataSourceResultOutput) - if secret { - return pulumi.ToSecret(output).(GetDataSourceResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:backupdisasterrecovery/getDataSource:getDataSource", args, GetDataSourceResultOutput{}, options).(GetDataSourceResultOutput), nil }).(GetDataSourceResultOutput) } diff --git a/sdk/go/gcp/backupdisasterrecovery/getManagementServer.go b/sdk/go/gcp/backupdisasterrecovery/getManagementServer.go index f3c9466385..9bd2a23b1e 100644 --- a/sdk/go/gcp/backupdisasterrecovery/getManagementServer.go +++ b/sdk/go/gcp/backupdisasterrecovery/getManagementServer.go @@ -65,21 +65,11 @@ type LookupManagementServerResult struct { } func LookupManagementServerOutput(ctx *pulumi.Context, args LookupManagementServerOutputArgs, opts ...pulumi.InvokeOption) LookupManagementServerResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupManagementServerResultOutput, error) { args := v.(LookupManagementServerArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupManagementServerResult - secret, err := ctx.InvokePackageRaw("gcp:backupdisasterrecovery/getManagementServer:getManagementServer", args, &rv, "", opts...) - if err != nil { - return LookupManagementServerResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupManagementServerResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupManagementServerResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:backupdisasterrecovery/getManagementServer:getManagementServer", args, LookupManagementServerResultOutput{}, options).(LookupManagementServerResultOutput), nil }).(LookupManagementServerResultOutput) } diff --git a/sdk/go/gcp/beyondcorp/getAppConnection.go b/sdk/go/gcp/beyondcorp/getAppConnection.go index 88cd241a6d..b7c69f97ae 100644 --- a/sdk/go/gcp/beyondcorp/getAppConnection.go +++ b/sdk/go/gcp/beyondcorp/getAppConnection.go @@ -80,21 +80,11 @@ type LookupAppConnectionResult struct { } func LookupAppConnectionOutput(ctx *pulumi.Context, args LookupAppConnectionOutputArgs, opts ...pulumi.InvokeOption) LookupAppConnectionResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupAppConnectionResultOutput, error) { args := v.(LookupAppConnectionArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupAppConnectionResult - secret, err := ctx.InvokePackageRaw("gcp:beyondcorp/getAppConnection:getAppConnection", args, &rv, "", opts...) - if err != nil { - return LookupAppConnectionResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupAppConnectionResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupAppConnectionResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:beyondcorp/getAppConnection:getAppConnection", args, LookupAppConnectionResultOutput{}, options).(LookupAppConnectionResultOutput), nil }).(LookupAppConnectionResultOutput) } diff --git a/sdk/go/gcp/beyondcorp/getAppConnector.go b/sdk/go/gcp/beyondcorp/getAppConnector.go index 0b7e56023e..c8858389e6 100644 --- a/sdk/go/gcp/beyondcorp/getAppConnector.go +++ b/sdk/go/gcp/beyondcorp/getAppConnector.go @@ -78,21 +78,11 @@ type LookupAppConnectorResult struct { } func LookupAppConnectorOutput(ctx *pulumi.Context, args LookupAppConnectorOutputArgs, opts ...pulumi.InvokeOption) LookupAppConnectorResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupAppConnectorResultOutput, error) { args := v.(LookupAppConnectorArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupAppConnectorResult - secret, err := ctx.InvokePackageRaw("gcp:beyondcorp/getAppConnector:getAppConnector", args, &rv, "", opts...) - if err != nil { - return LookupAppConnectorResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupAppConnectorResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupAppConnectorResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:beyondcorp/getAppConnector:getAppConnector", args, LookupAppConnectorResultOutput{}, options).(LookupAppConnectorResultOutput), nil }).(LookupAppConnectorResultOutput) } diff --git a/sdk/go/gcp/beyondcorp/getAppGateway.go b/sdk/go/gcp/beyondcorp/getAppGateway.go index 11582c3eaa..a544a835d0 100644 --- a/sdk/go/gcp/beyondcorp/getAppGateway.go +++ b/sdk/go/gcp/beyondcorp/getAppGateway.go @@ -81,21 +81,11 @@ type LookupAppGatewayResult struct { } func LookupAppGatewayOutput(ctx *pulumi.Context, args LookupAppGatewayOutputArgs, opts ...pulumi.InvokeOption) LookupAppGatewayResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupAppGatewayResultOutput, error) { args := v.(LookupAppGatewayArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupAppGatewayResult - secret, err := ctx.InvokePackageRaw("gcp:beyondcorp/getAppGateway:getAppGateway", args, &rv, "", opts...) - if err != nil { - return LookupAppGatewayResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupAppGatewayResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupAppGatewayResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:beyondcorp/getAppGateway:getAppGateway", args, LookupAppGatewayResultOutput{}, options).(LookupAppGatewayResultOutput), nil }).(LookupAppGatewayResultOutput) } diff --git a/sdk/go/gcp/bigquery/getConnectionIamPolicy.go b/sdk/go/gcp/bigquery/getConnectionIamPolicy.go index 958eb18f82..c8ff79dae4 100644 --- a/sdk/go/gcp/bigquery/getConnectionIamPolicy.go +++ b/sdk/go/gcp/bigquery/getConnectionIamPolicy.go @@ -85,21 +85,11 @@ type LookupConnectionIamPolicyResult struct { } func LookupConnectionIamPolicyOutput(ctx *pulumi.Context, args LookupConnectionIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupConnectionIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupConnectionIamPolicyResultOutput, error) { args := v.(LookupConnectionIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupConnectionIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:bigquery/getConnectionIamPolicy:getConnectionIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupConnectionIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupConnectionIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupConnectionIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:bigquery/getConnectionIamPolicy:getConnectionIamPolicy", args, LookupConnectionIamPolicyResultOutput{}, options).(LookupConnectionIamPolicyResultOutput), nil }).(LookupConnectionIamPolicyResultOutput) } diff --git a/sdk/go/gcp/bigquery/getDataset.go b/sdk/go/gcp/bigquery/getDataset.go index 657ea9278a..aa009996a7 100644 --- a/sdk/go/gcp/bigquery/getDataset.go +++ b/sdk/go/gcp/bigquery/getDataset.go @@ -91,21 +91,11 @@ type LookupDatasetResult struct { } func LookupDatasetOutput(ctx *pulumi.Context, args LookupDatasetOutputArgs, opts ...pulumi.InvokeOption) LookupDatasetResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupDatasetResultOutput, error) { args := v.(LookupDatasetArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupDatasetResult - secret, err := ctx.InvokePackageRaw("gcp:bigquery/getDataset:getDataset", args, &rv, "", opts...) - if err != nil { - return LookupDatasetResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupDatasetResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupDatasetResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:bigquery/getDataset:getDataset", args, LookupDatasetResultOutput{}, options).(LookupDatasetResultOutput), nil }).(LookupDatasetResultOutput) } diff --git a/sdk/go/gcp/bigquery/getDatasetIamPolicy.go b/sdk/go/gcp/bigquery/getDatasetIamPolicy.go index f3284289d1..b068358cf4 100644 --- a/sdk/go/gcp/bigquery/getDatasetIamPolicy.go +++ b/sdk/go/gcp/bigquery/getDatasetIamPolicy.go @@ -70,21 +70,11 @@ type LookupDatasetIamPolicyResult struct { } func LookupDatasetIamPolicyOutput(ctx *pulumi.Context, args LookupDatasetIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupDatasetIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupDatasetIamPolicyResultOutput, error) { args := v.(LookupDatasetIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupDatasetIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:bigquery/getDatasetIamPolicy:getDatasetIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupDatasetIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupDatasetIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupDatasetIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:bigquery/getDatasetIamPolicy:getDatasetIamPolicy", args, LookupDatasetIamPolicyResultOutput{}, options).(LookupDatasetIamPolicyResultOutput), nil }).(LookupDatasetIamPolicyResultOutput) } diff --git a/sdk/go/gcp/bigquery/getDefaultServiceAccount.go b/sdk/go/gcp/bigquery/getDefaultServiceAccount.go index 86538e1104..7fc37bbbb0 100644 --- a/sdk/go/gcp/bigquery/getDefaultServiceAccount.go +++ b/sdk/go/gcp/bigquery/getDefaultServiceAccount.go @@ -84,21 +84,11 @@ type GetDefaultServiceAccountResult struct { } func GetDefaultServiceAccountOutput(ctx *pulumi.Context, args GetDefaultServiceAccountOutputArgs, opts ...pulumi.InvokeOption) GetDefaultServiceAccountResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetDefaultServiceAccountResultOutput, error) { args := v.(GetDefaultServiceAccountArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetDefaultServiceAccountResult - secret, err := ctx.InvokePackageRaw("gcp:bigquery/getDefaultServiceAccount:getDefaultServiceAccount", args, &rv, "", opts...) - if err != nil { - return GetDefaultServiceAccountResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetDefaultServiceAccountResultOutput) - if secret { - return pulumi.ToSecret(output).(GetDefaultServiceAccountResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:bigquery/getDefaultServiceAccount:getDefaultServiceAccount", args, GetDefaultServiceAccountResultOutput{}, options).(GetDefaultServiceAccountResultOutput), nil }).(GetDefaultServiceAccountResultOutput) } diff --git a/sdk/go/gcp/bigquery/getTableIamPolicy.go b/sdk/go/gcp/bigquery/getTableIamPolicy.go index d75fa0f2ab..98dfaf5f37 100644 --- a/sdk/go/gcp/bigquery/getTableIamPolicy.go +++ b/sdk/go/gcp/bigquery/getTableIamPolicy.go @@ -74,21 +74,11 @@ type GetTableIamPolicyResult struct { } func GetTableIamPolicyOutput(ctx *pulumi.Context, args GetTableIamPolicyOutputArgs, opts ...pulumi.InvokeOption) GetTableIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetTableIamPolicyResultOutput, error) { args := v.(GetTableIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetTableIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:bigquery/getTableIamPolicy:getTableIamPolicy", args, &rv, "", opts...) - if err != nil { - return GetTableIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetTableIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(GetTableIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:bigquery/getTableIamPolicy:getTableIamPolicy", args, GetTableIamPolicyResultOutput{}, options).(GetTableIamPolicyResultOutput), nil }).(GetTableIamPolicyResultOutput) } diff --git a/sdk/go/gcp/bigquery/getTables.go b/sdk/go/gcp/bigquery/getTables.go index 63d4b3013e..f0539e8b0d 100644 --- a/sdk/go/gcp/bigquery/getTables.go +++ b/sdk/go/gcp/bigquery/getTables.go @@ -71,21 +71,11 @@ type GetTablesResult struct { } func GetTablesOutput(ctx *pulumi.Context, args GetTablesOutputArgs, opts ...pulumi.InvokeOption) GetTablesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetTablesResultOutput, error) { args := v.(GetTablesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetTablesResult - secret, err := ctx.InvokePackageRaw("gcp:bigquery/getTables:getTables", args, &rv, "", opts...) - if err != nil { - return GetTablesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetTablesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetTablesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:bigquery/getTables:getTables", args, GetTablesResultOutput{}, options).(GetTablesResultOutput), nil }).(GetTablesResultOutput) } diff --git a/sdk/go/gcp/bigqueryanalyticshub/getDataExchangeIamPolicy.go b/sdk/go/gcp/bigqueryanalyticshub/getDataExchangeIamPolicy.go index 0b992f2459..df32daed92 100644 --- a/sdk/go/gcp/bigqueryanalyticshub/getDataExchangeIamPolicy.go +++ b/sdk/go/gcp/bigqueryanalyticshub/getDataExchangeIamPolicy.go @@ -79,21 +79,11 @@ type LookupDataExchangeIamPolicyResult struct { } func LookupDataExchangeIamPolicyOutput(ctx *pulumi.Context, args LookupDataExchangeIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupDataExchangeIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupDataExchangeIamPolicyResultOutput, error) { args := v.(LookupDataExchangeIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupDataExchangeIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:bigqueryanalyticshub/getDataExchangeIamPolicy:getDataExchangeIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupDataExchangeIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupDataExchangeIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupDataExchangeIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:bigqueryanalyticshub/getDataExchangeIamPolicy:getDataExchangeIamPolicy", args, LookupDataExchangeIamPolicyResultOutput{}, options).(LookupDataExchangeIamPolicyResultOutput), nil }).(LookupDataExchangeIamPolicyResultOutput) } diff --git a/sdk/go/gcp/bigqueryanalyticshub/getListingIamPolicy.go b/sdk/go/gcp/bigqueryanalyticshub/getListingIamPolicy.go index 97e2b967a4..120b484301 100644 --- a/sdk/go/gcp/bigqueryanalyticshub/getListingIamPolicy.go +++ b/sdk/go/gcp/bigqueryanalyticshub/getListingIamPolicy.go @@ -83,21 +83,11 @@ type LookupListingIamPolicyResult struct { } func LookupListingIamPolicyOutput(ctx *pulumi.Context, args LookupListingIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupListingIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupListingIamPolicyResultOutput, error) { args := v.(LookupListingIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupListingIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:bigqueryanalyticshub/getListingIamPolicy:getListingIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupListingIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupListingIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupListingIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:bigqueryanalyticshub/getListingIamPolicy:getListingIamPolicy", args, LookupListingIamPolicyResultOutput{}, options).(LookupListingIamPolicyResultOutput), nil }).(LookupListingIamPolicyResultOutput) } diff --git a/sdk/go/gcp/bigquerydatapolicy/getIamPolicy.go b/sdk/go/gcp/bigquerydatapolicy/getIamPolicy.go index 09f7b7296a..4f29bf66e9 100644 --- a/sdk/go/gcp/bigquerydatapolicy/getIamPolicy.go +++ b/sdk/go/gcp/bigquerydatapolicy/getIamPolicy.go @@ -78,21 +78,11 @@ type GetIamPolicyResult struct { } func GetIamPolicyOutput(ctx *pulumi.Context, args GetIamPolicyOutputArgs, opts ...pulumi.InvokeOption) GetIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetIamPolicyResultOutput, error) { args := v.(GetIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:bigquerydatapolicy/getIamPolicy:getIamPolicy", args, &rv, "", opts...) - if err != nil { - return GetIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(GetIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:bigquerydatapolicy/getIamPolicy:getIamPolicy", args, GetIamPolicyResultOutput{}, options).(GetIamPolicyResultOutput), nil }).(GetIamPolicyResultOutput) } diff --git a/sdk/go/gcp/bigtable/getInstanceIamPolicy.go b/sdk/go/gcp/bigtable/getInstanceIamPolicy.go index 0e0d45740c..bd173673ad 100644 --- a/sdk/go/gcp/bigtable/getInstanceIamPolicy.go +++ b/sdk/go/gcp/bigtable/getInstanceIamPolicy.go @@ -68,21 +68,11 @@ type LookupInstanceIamPolicyResult struct { } func LookupInstanceIamPolicyOutput(ctx *pulumi.Context, args LookupInstanceIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupInstanceIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupInstanceIamPolicyResultOutput, error) { args := v.(LookupInstanceIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupInstanceIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:bigtable/getInstanceIamPolicy:getInstanceIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupInstanceIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupInstanceIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupInstanceIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:bigtable/getInstanceIamPolicy:getInstanceIamPolicy", args, LookupInstanceIamPolicyResultOutput{}, options).(LookupInstanceIamPolicyResultOutput), nil }).(LookupInstanceIamPolicyResultOutput) } diff --git a/sdk/go/gcp/bigtable/getTableIamPolicy.go b/sdk/go/gcp/bigtable/getTableIamPolicy.go index 069eae28c6..8eebaa3513 100644 --- a/sdk/go/gcp/bigtable/getTableIamPolicy.go +++ b/sdk/go/gcp/bigtable/getTableIamPolicy.go @@ -72,21 +72,11 @@ type LookupTableIamPolicyResult struct { } func LookupTableIamPolicyOutput(ctx *pulumi.Context, args LookupTableIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupTableIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupTableIamPolicyResultOutput, error) { args := v.(LookupTableIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupTableIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:bigtable/getTableIamPolicy:getTableIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupTableIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupTableIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupTableIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:bigtable/getTableIamPolicy:getTableIamPolicy", args, LookupTableIamPolicyResultOutput{}, options).(LookupTableIamPolicyResultOutput), nil }).(LookupTableIamPolicyResultOutput) } diff --git a/sdk/go/gcp/billing/getAccountIamPolicy.go b/sdk/go/gcp/billing/getAccountIamPolicy.go index 9901c22207..6f12555994 100644 --- a/sdk/go/gcp/billing/getAccountIamPolicy.go +++ b/sdk/go/gcp/billing/getAccountIamPolicy.go @@ -66,21 +66,11 @@ type LookupAccountIamPolicyResult struct { } func LookupAccountIamPolicyOutput(ctx *pulumi.Context, args LookupAccountIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupAccountIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupAccountIamPolicyResultOutput, error) { args := v.(LookupAccountIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupAccountIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:billing/getAccountIamPolicy:getAccountIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupAccountIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupAccountIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupAccountIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:billing/getAccountIamPolicy:getAccountIamPolicy", args, LookupAccountIamPolicyResultOutput{}, options).(LookupAccountIamPolicyResultOutput), nil }).(LookupAccountIamPolicyResultOutput) } diff --git a/sdk/go/gcp/binaryauthorization/getAttestorIamPolicy.go b/sdk/go/gcp/binaryauthorization/getAttestorIamPolicy.go index 5e9a2c2783..1cbff68675 100644 --- a/sdk/go/gcp/binaryauthorization/getAttestorIamPolicy.go +++ b/sdk/go/gcp/binaryauthorization/getAttestorIamPolicy.go @@ -72,21 +72,11 @@ type LookupAttestorIamPolicyResult struct { } func LookupAttestorIamPolicyOutput(ctx *pulumi.Context, args LookupAttestorIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupAttestorIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupAttestorIamPolicyResultOutput, error) { args := v.(LookupAttestorIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupAttestorIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:binaryauthorization/getAttestorIamPolicy:getAttestorIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupAttestorIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupAttestorIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupAttestorIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:binaryauthorization/getAttestorIamPolicy:getAttestorIamPolicy", args, LookupAttestorIamPolicyResultOutput{}, options).(LookupAttestorIamPolicyResultOutput), nil }).(LookupAttestorIamPolicyResultOutput) } diff --git a/sdk/go/gcp/certificateauthority/getAuthority.go b/sdk/go/gcp/certificateauthority/getAuthority.go index 1980ee7e18..ea6c48545e 100644 --- a/sdk/go/gcp/certificateauthority/getAuthority.go +++ b/sdk/go/gcp/certificateauthority/getAuthority.go @@ -99,21 +99,11 @@ type LookupAuthorityResult struct { } func LookupAuthorityOutput(ctx *pulumi.Context, args LookupAuthorityOutputArgs, opts ...pulumi.InvokeOption) LookupAuthorityResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupAuthorityResultOutput, error) { args := v.(LookupAuthorityArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupAuthorityResult - secret, err := ctx.InvokePackageRaw("gcp:certificateauthority/getAuthority:getAuthority", args, &rv, "", opts...) - if err != nil { - return LookupAuthorityResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupAuthorityResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupAuthorityResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:certificateauthority/getAuthority:getAuthority", args, LookupAuthorityResultOutput{}, options).(LookupAuthorityResultOutput), nil }).(LookupAuthorityResultOutput) } diff --git a/sdk/go/gcp/certificateauthority/getCaPoolIamPolicy.go b/sdk/go/gcp/certificateauthority/getCaPoolIamPolicy.go index 93a872830f..17a380c189 100644 --- a/sdk/go/gcp/certificateauthority/getCaPoolIamPolicy.go +++ b/sdk/go/gcp/certificateauthority/getCaPoolIamPolicy.go @@ -78,21 +78,11 @@ type LookupCaPoolIamPolicyResult struct { } func LookupCaPoolIamPolicyOutput(ctx *pulumi.Context, args LookupCaPoolIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupCaPoolIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupCaPoolIamPolicyResultOutput, error) { args := v.(LookupCaPoolIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupCaPoolIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:certificateauthority/getCaPoolIamPolicy:getCaPoolIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupCaPoolIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupCaPoolIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupCaPoolIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:certificateauthority/getCaPoolIamPolicy:getCaPoolIamPolicy", args, LookupCaPoolIamPolicyResultOutput{}, options).(LookupCaPoolIamPolicyResultOutput), nil }).(LookupCaPoolIamPolicyResultOutput) } diff --git a/sdk/go/gcp/certificateauthority/getCertificateTemplateIamPolicy.go b/sdk/go/gcp/certificateauthority/getCertificateTemplateIamPolicy.go index 9ee76764ed..16fc6f83b9 100644 --- a/sdk/go/gcp/certificateauthority/getCertificateTemplateIamPolicy.go +++ b/sdk/go/gcp/certificateauthority/getCertificateTemplateIamPolicy.go @@ -76,21 +76,11 @@ type LookupCertificateTemplateIamPolicyResult struct { } func LookupCertificateTemplateIamPolicyOutput(ctx *pulumi.Context, args LookupCertificateTemplateIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupCertificateTemplateIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupCertificateTemplateIamPolicyResultOutput, error) { args := v.(LookupCertificateTemplateIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupCertificateTemplateIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:certificateauthority/getCertificateTemplateIamPolicy:getCertificateTemplateIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupCertificateTemplateIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupCertificateTemplateIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupCertificateTemplateIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:certificateauthority/getCertificateTemplateIamPolicy:getCertificateTemplateIamPolicy", args, LookupCertificateTemplateIamPolicyResultOutput{}, options).(LookupCertificateTemplateIamPolicyResultOutput), nil }).(LookupCertificateTemplateIamPolicyResultOutput) } diff --git a/sdk/go/gcp/certificatemanager/getCertificateMap.go b/sdk/go/gcp/certificatemanager/getCertificateMap.go index 094f925305..87741a1a47 100644 --- a/sdk/go/gcp/certificatemanager/getCertificateMap.go +++ b/sdk/go/gcp/certificatemanager/getCertificateMap.go @@ -75,21 +75,11 @@ type GetCertificateMapResult struct { } func GetCertificateMapOutput(ctx *pulumi.Context, args GetCertificateMapOutputArgs, opts ...pulumi.InvokeOption) GetCertificateMapResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetCertificateMapResultOutput, error) { args := v.(GetCertificateMapArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetCertificateMapResult - secret, err := ctx.InvokePackageRaw("gcp:certificatemanager/getCertificateMap:getCertificateMap", args, &rv, "", opts...) - if err != nil { - return GetCertificateMapResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetCertificateMapResultOutput) - if secret { - return pulumi.ToSecret(output).(GetCertificateMapResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:certificatemanager/getCertificateMap:getCertificateMap", args, GetCertificateMapResultOutput{}, options).(GetCertificateMapResultOutput), nil }).(GetCertificateMapResultOutput) } diff --git a/sdk/go/gcp/certificatemanager/getCertificates.go b/sdk/go/gcp/certificatemanager/getCertificates.go index c46f8839b7..6a9b5fc4fe 100644 --- a/sdk/go/gcp/certificatemanager/getCertificates.go +++ b/sdk/go/gcp/certificatemanager/getCertificates.go @@ -90,21 +90,11 @@ type GetCertificatesResult struct { } func GetCertificatesOutput(ctx *pulumi.Context, args GetCertificatesOutputArgs, opts ...pulumi.InvokeOption) GetCertificatesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetCertificatesResultOutput, error) { args := v.(GetCertificatesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetCertificatesResult - secret, err := ctx.InvokePackageRaw("gcp:certificatemanager/getCertificates:getCertificates", args, &rv, "", opts...) - if err != nil { - return GetCertificatesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetCertificatesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetCertificatesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:certificatemanager/getCertificates:getCertificates", args, GetCertificatesResultOutput{}, options).(GetCertificatesResultOutput), nil }).(GetCertificatesResultOutput) } diff --git a/sdk/go/gcp/cloudasset/getResourcesSearchAll.go b/sdk/go/gcp/cloudasset/getResourcesSearchAll.go index 0a2c057330..f95ceb9048 100644 --- a/sdk/go/gcp/cloudasset/getResourcesSearchAll.go +++ b/sdk/go/gcp/cloudasset/getResourcesSearchAll.go @@ -132,21 +132,11 @@ type LookupResourcesSearchAllResult struct { } func LookupResourcesSearchAllOutput(ctx *pulumi.Context, args LookupResourcesSearchAllOutputArgs, opts ...pulumi.InvokeOption) LookupResourcesSearchAllResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupResourcesSearchAllResultOutput, error) { args := v.(LookupResourcesSearchAllArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupResourcesSearchAllResult - secret, err := ctx.InvokePackageRaw("gcp:cloudasset/getResourcesSearchAll:getResourcesSearchAll", args, &rv, "", opts...) - if err != nil { - return LookupResourcesSearchAllResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupResourcesSearchAllResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupResourcesSearchAllResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:cloudasset/getResourcesSearchAll:getResourcesSearchAll", args, LookupResourcesSearchAllResultOutput{}, options).(LookupResourcesSearchAllResultOutput), nil }).(LookupResourcesSearchAllResultOutput) } diff --git a/sdk/go/gcp/cloudasset/getSearchAllResources.go b/sdk/go/gcp/cloudasset/getSearchAllResources.go index 62574440ed..1ddc4771ef 100644 --- a/sdk/go/gcp/cloudasset/getSearchAllResources.go +++ b/sdk/go/gcp/cloudasset/getSearchAllResources.go @@ -136,21 +136,11 @@ type LookupSearchAllResourcesResult struct { } func LookupSearchAllResourcesOutput(ctx *pulumi.Context, args LookupSearchAllResourcesOutputArgs, opts ...pulumi.InvokeOption) LookupSearchAllResourcesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupSearchAllResourcesResultOutput, error) { args := v.(LookupSearchAllResourcesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupSearchAllResourcesResult - secret, err := ctx.InvokePackageRaw("gcp:cloudasset/getSearchAllResources:getSearchAllResources", args, &rv, "", opts...) - if err != nil { - return LookupSearchAllResourcesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupSearchAllResourcesResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupSearchAllResourcesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:cloudasset/getSearchAllResources:getSearchAllResources", args, LookupSearchAllResourcesResultOutput{}, options).(LookupSearchAllResourcesResultOutput), nil }).(LookupSearchAllResourcesResultOutput) } diff --git a/sdk/go/gcp/cloudbuild/getTrigger.go b/sdk/go/gcp/cloudbuild/getTrigger.go index 5ba71fdca4..cae48068da 100644 --- a/sdk/go/gcp/cloudbuild/getTrigger.go +++ b/sdk/go/gcp/cloudbuild/getTrigger.go @@ -98,21 +98,11 @@ type LookupTriggerResult struct { } func LookupTriggerOutput(ctx *pulumi.Context, args LookupTriggerOutputArgs, opts ...pulumi.InvokeOption) LookupTriggerResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupTriggerResultOutput, error) { args := v.(LookupTriggerArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupTriggerResult - secret, err := ctx.InvokePackageRaw("gcp:cloudbuild/getTrigger:getTrigger", args, &rv, "", opts...) - if err != nil { - return LookupTriggerResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupTriggerResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupTriggerResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:cloudbuild/getTrigger:getTrigger", args, LookupTriggerResultOutput{}, options).(LookupTriggerResultOutput), nil }).(LookupTriggerResultOutput) } diff --git a/sdk/go/gcp/cloudbuildv2/getConnectionIamPolicy.go b/sdk/go/gcp/cloudbuildv2/getConnectionIamPolicy.go index 876f2e20e0..257b830bc1 100644 --- a/sdk/go/gcp/cloudbuildv2/getConnectionIamPolicy.go +++ b/sdk/go/gcp/cloudbuildv2/getConnectionIamPolicy.go @@ -78,21 +78,11 @@ type GetConnectionIamPolicyResult struct { } func GetConnectionIamPolicyOutput(ctx *pulumi.Context, args GetConnectionIamPolicyOutputArgs, opts ...pulumi.InvokeOption) GetConnectionIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetConnectionIamPolicyResultOutput, error) { args := v.(GetConnectionIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetConnectionIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:cloudbuildv2/getConnectionIamPolicy:getConnectionIamPolicy", args, &rv, "", opts...) - if err != nil { - return GetConnectionIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetConnectionIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(GetConnectionIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:cloudbuildv2/getConnectionIamPolicy:getConnectionIamPolicy", args, GetConnectionIamPolicyResultOutput{}, options).(GetConnectionIamPolicyResultOutput), nil }).(GetConnectionIamPolicyResultOutput) } diff --git a/sdk/go/gcp/clouddeploy/getCustomTargetTypeIamPolicy.go b/sdk/go/gcp/clouddeploy/getCustomTargetTypeIamPolicy.go index 4d7b4da6fc..12cf409254 100644 --- a/sdk/go/gcp/clouddeploy/getCustomTargetTypeIamPolicy.go +++ b/sdk/go/gcp/clouddeploy/getCustomTargetTypeIamPolicy.go @@ -78,21 +78,11 @@ type LookupCustomTargetTypeIamPolicyResult struct { } func LookupCustomTargetTypeIamPolicyOutput(ctx *pulumi.Context, args LookupCustomTargetTypeIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupCustomTargetTypeIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupCustomTargetTypeIamPolicyResultOutput, error) { args := v.(LookupCustomTargetTypeIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupCustomTargetTypeIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:clouddeploy/getCustomTargetTypeIamPolicy:getCustomTargetTypeIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupCustomTargetTypeIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupCustomTargetTypeIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupCustomTargetTypeIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:clouddeploy/getCustomTargetTypeIamPolicy:getCustomTargetTypeIamPolicy", args, LookupCustomTargetTypeIamPolicyResultOutput{}, options).(LookupCustomTargetTypeIamPolicyResultOutput), nil }).(LookupCustomTargetTypeIamPolicyResultOutput) } diff --git a/sdk/go/gcp/clouddeploy/getDeliveryPipelineIamPolicy.go b/sdk/go/gcp/clouddeploy/getDeliveryPipelineIamPolicy.go index 462dda9d95..4a114ece0d 100644 --- a/sdk/go/gcp/clouddeploy/getDeliveryPipelineIamPolicy.go +++ b/sdk/go/gcp/clouddeploy/getDeliveryPipelineIamPolicy.go @@ -75,21 +75,11 @@ type LookupDeliveryPipelineIamPolicyResult struct { } func LookupDeliveryPipelineIamPolicyOutput(ctx *pulumi.Context, args LookupDeliveryPipelineIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupDeliveryPipelineIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupDeliveryPipelineIamPolicyResultOutput, error) { args := v.(LookupDeliveryPipelineIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupDeliveryPipelineIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:clouddeploy/getDeliveryPipelineIamPolicy:getDeliveryPipelineIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupDeliveryPipelineIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupDeliveryPipelineIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupDeliveryPipelineIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:clouddeploy/getDeliveryPipelineIamPolicy:getDeliveryPipelineIamPolicy", args, LookupDeliveryPipelineIamPolicyResultOutput{}, options).(LookupDeliveryPipelineIamPolicyResultOutput), nil }).(LookupDeliveryPipelineIamPolicyResultOutput) } diff --git a/sdk/go/gcp/clouddeploy/getTargetIamPolicy.go b/sdk/go/gcp/clouddeploy/getTargetIamPolicy.go index 359543f13a..dbf33ab3bc 100644 --- a/sdk/go/gcp/clouddeploy/getTargetIamPolicy.go +++ b/sdk/go/gcp/clouddeploy/getTargetIamPolicy.go @@ -75,21 +75,11 @@ type LookupTargetIamPolicyResult struct { } func LookupTargetIamPolicyOutput(ctx *pulumi.Context, args LookupTargetIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupTargetIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupTargetIamPolicyResultOutput, error) { args := v.(LookupTargetIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupTargetIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:clouddeploy/getTargetIamPolicy:getTargetIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupTargetIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupTargetIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupTargetIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:clouddeploy/getTargetIamPolicy:getTargetIamPolicy", args, LookupTargetIamPolicyResultOutput{}, options).(LookupTargetIamPolicyResultOutput), nil }).(LookupTargetIamPolicyResultOutput) } diff --git a/sdk/go/gcp/cloudfunctions/getFunction.go b/sdk/go/gcp/cloudfunctions/getFunction.go index c5195a6455..587f00ad3d 100644 --- a/sdk/go/gcp/cloudfunctions/getFunction.go +++ b/sdk/go/gcp/cloudfunctions/getFunction.go @@ -124,21 +124,11 @@ type LookupFunctionResult struct { } func LookupFunctionOutput(ctx *pulumi.Context, args LookupFunctionOutputArgs, opts ...pulumi.InvokeOption) LookupFunctionResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupFunctionResultOutput, error) { args := v.(LookupFunctionArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupFunctionResult - secret, err := ctx.InvokePackageRaw("gcp:cloudfunctions/getFunction:getFunction", args, &rv, "", opts...) - if err != nil { - return LookupFunctionResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupFunctionResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupFunctionResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:cloudfunctions/getFunction:getFunction", args, LookupFunctionResultOutput{}, options).(LookupFunctionResultOutput), nil }).(LookupFunctionResultOutput) } diff --git a/sdk/go/gcp/cloudfunctions/getFunctionIamPolicy.go b/sdk/go/gcp/cloudfunctions/getFunctionIamPolicy.go index aaa13acd0c..6ad568bd57 100644 --- a/sdk/go/gcp/cloudfunctions/getFunctionIamPolicy.go +++ b/sdk/go/gcp/cloudfunctions/getFunctionIamPolicy.go @@ -78,21 +78,11 @@ type LookupFunctionIamPolicyResult struct { } func LookupFunctionIamPolicyOutput(ctx *pulumi.Context, args LookupFunctionIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupFunctionIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupFunctionIamPolicyResultOutput, error) { args := v.(LookupFunctionIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupFunctionIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:cloudfunctions/getFunctionIamPolicy:getFunctionIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupFunctionIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupFunctionIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupFunctionIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:cloudfunctions/getFunctionIamPolicy:getFunctionIamPolicy", args, LookupFunctionIamPolicyResultOutput{}, options).(LookupFunctionIamPolicyResultOutput), nil }).(LookupFunctionIamPolicyResultOutput) } diff --git a/sdk/go/gcp/cloudfunctionsv2/getFunction.go b/sdk/go/gcp/cloudfunctionsv2/getFunction.go index ad47ac27a9..f6990adc33 100644 --- a/sdk/go/gcp/cloudfunctionsv2/getFunction.go +++ b/sdk/go/gcp/cloudfunctionsv2/getFunction.go @@ -86,21 +86,11 @@ type LookupFunctionResult struct { } func LookupFunctionOutput(ctx *pulumi.Context, args LookupFunctionOutputArgs, opts ...pulumi.InvokeOption) LookupFunctionResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupFunctionResultOutput, error) { args := v.(LookupFunctionArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupFunctionResult - secret, err := ctx.InvokePackageRaw("gcp:cloudfunctionsv2/getFunction:getFunction", args, &rv, "", opts...) - if err != nil { - return LookupFunctionResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupFunctionResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupFunctionResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:cloudfunctionsv2/getFunction:getFunction", args, LookupFunctionResultOutput{}, options).(LookupFunctionResultOutput), nil }).(LookupFunctionResultOutput) } diff --git a/sdk/go/gcp/cloudfunctionsv2/getFunctionIamPolicy.go b/sdk/go/gcp/cloudfunctionsv2/getFunctionIamPolicy.go index c579c54a9b..b2a6823469 100644 --- a/sdk/go/gcp/cloudfunctionsv2/getFunctionIamPolicy.go +++ b/sdk/go/gcp/cloudfunctionsv2/getFunctionIamPolicy.go @@ -78,21 +78,11 @@ type LookupFunctionIamPolicyResult struct { } func LookupFunctionIamPolicyOutput(ctx *pulumi.Context, args LookupFunctionIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupFunctionIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupFunctionIamPolicyResultOutput, error) { args := v.(LookupFunctionIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupFunctionIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:cloudfunctionsv2/getFunctionIamPolicy:getFunctionIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupFunctionIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupFunctionIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupFunctionIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:cloudfunctionsv2/getFunctionIamPolicy:getFunctionIamPolicy", args, LookupFunctionIamPolicyResultOutput{}, options).(LookupFunctionIamPolicyResultOutput), nil }).(LookupFunctionIamPolicyResultOutput) } diff --git a/sdk/go/gcp/cloudidentity/getGroupLookup.go b/sdk/go/gcp/cloudidentity/getGroupLookup.go index 0509a72a46..b282310659 100644 --- a/sdk/go/gcp/cloudidentity/getGroupLookup.go +++ b/sdk/go/gcp/cloudidentity/getGroupLookup.go @@ -70,21 +70,11 @@ type GetGroupLookupResult struct { } func GetGroupLookupOutput(ctx *pulumi.Context, args GetGroupLookupOutputArgs, opts ...pulumi.InvokeOption) GetGroupLookupResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetGroupLookupResultOutput, error) { args := v.(GetGroupLookupArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetGroupLookupResult - secret, err := ctx.InvokePackageRaw("gcp:cloudidentity/getGroupLookup:getGroupLookup", args, &rv, "", opts...) - if err != nil { - return GetGroupLookupResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetGroupLookupResultOutput) - if secret { - return pulumi.ToSecret(output).(GetGroupLookupResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:cloudidentity/getGroupLookup:getGroupLookup", args, GetGroupLookupResultOutput{}, options).(GetGroupLookupResultOutput), nil }).(GetGroupLookupResultOutput) } diff --git a/sdk/go/gcp/cloudidentity/getGroupMemberships.go b/sdk/go/gcp/cloudidentity/getGroupMemberships.go index 6b88c6eb06..5582cae008 100644 --- a/sdk/go/gcp/cloudidentity/getGroupMemberships.go +++ b/sdk/go/gcp/cloudidentity/getGroupMemberships.go @@ -72,21 +72,11 @@ type GetGroupMembershipsResult struct { } func GetGroupMembershipsOutput(ctx *pulumi.Context, args GetGroupMembershipsOutputArgs, opts ...pulumi.InvokeOption) GetGroupMembershipsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetGroupMembershipsResultOutput, error) { args := v.(GetGroupMembershipsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetGroupMembershipsResult - secret, err := ctx.InvokePackageRaw("gcp:cloudidentity/getGroupMemberships:getGroupMemberships", args, &rv, "", opts...) - if err != nil { - return GetGroupMembershipsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetGroupMembershipsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetGroupMembershipsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:cloudidentity/getGroupMemberships:getGroupMemberships", args, GetGroupMembershipsResultOutput{}, options).(GetGroupMembershipsResultOutput), nil }).(GetGroupMembershipsResultOutput) } diff --git a/sdk/go/gcp/cloudidentity/getGroupTransitiveMemberships.go b/sdk/go/gcp/cloudidentity/getGroupTransitiveMemberships.go index c83a169ff4..cfcddcb352 100644 --- a/sdk/go/gcp/cloudidentity/getGroupTransitiveMemberships.go +++ b/sdk/go/gcp/cloudidentity/getGroupTransitiveMemberships.go @@ -35,21 +35,11 @@ type GetGroupTransitiveMembershipsResult struct { } func GetGroupTransitiveMembershipsOutput(ctx *pulumi.Context, args GetGroupTransitiveMembershipsOutputArgs, opts ...pulumi.InvokeOption) GetGroupTransitiveMembershipsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetGroupTransitiveMembershipsResultOutput, error) { args := v.(GetGroupTransitiveMembershipsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetGroupTransitiveMembershipsResult - secret, err := ctx.InvokePackageRaw("gcp:cloudidentity/getGroupTransitiveMemberships:getGroupTransitiveMemberships", args, &rv, "", opts...) - if err != nil { - return GetGroupTransitiveMembershipsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetGroupTransitiveMembershipsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetGroupTransitiveMembershipsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:cloudidentity/getGroupTransitiveMemberships:getGroupTransitiveMemberships", args, GetGroupTransitiveMembershipsResultOutput{}, options).(GetGroupTransitiveMembershipsResultOutput), nil }).(GetGroupTransitiveMembershipsResultOutput) } diff --git a/sdk/go/gcp/cloudidentity/getGroups.go b/sdk/go/gcp/cloudidentity/getGroups.go index 73c9037145..8d9852806b 100644 --- a/sdk/go/gcp/cloudidentity/getGroups.go +++ b/sdk/go/gcp/cloudidentity/getGroups.go @@ -66,21 +66,11 @@ type GetGroupsResult struct { } func GetGroupsOutput(ctx *pulumi.Context, args GetGroupsOutputArgs, opts ...pulumi.InvokeOption) GetGroupsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetGroupsResultOutput, error) { args := v.(GetGroupsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetGroupsResult - secret, err := ctx.InvokePackageRaw("gcp:cloudidentity/getGroups:getGroups", args, &rv, "", opts...) - if err != nil { - return GetGroupsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetGroupsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetGroupsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:cloudidentity/getGroups:getGroups", args, GetGroupsResultOutput{}, options).(GetGroupsResultOutput), nil }).(GetGroupsResultOutput) } diff --git a/sdk/go/gcp/cloudquota/getSQuotaInfo.go b/sdk/go/gcp/cloudquota/getSQuotaInfo.go index 34cae10edc..6346ff458f 100644 --- a/sdk/go/gcp/cloudquota/getSQuotaInfo.go +++ b/sdk/go/gcp/cloudquota/getSQuotaInfo.go @@ -98,21 +98,11 @@ type GetSQuotaInfoResult struct { } func GetSQuotaInfoOutput(ctx *pulumi.Context, args GetSQuotaInfoOutputArgs, opts ...pulumi.InvokeOption) GetSQuotaInfoResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetSQuotaInfoResultOutput, error) { args := v.(GetSQuotaInfoArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetSQuotaInfoResult - secret, err := ctx.InvokePackageRaw("gcp:cloudquota/getSQuotaInfo:getSQuotaInfo", args, &rv, "", opts...) - if err != nil { - return GetSQuotaInfoResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetSQuotaInfoResultOutput) - if secret { - return pulumi.ToSecret(output).(GetSQuotaInfoResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:cloudquota/getSQuotaInfo:getSQuotaInfo", args, GetSQuotaInfoResultOutput{}, options).(GetSQuotaInfoResultOutput), nil }).(GetSQuotaInfoResultOutput) } diff --git a/sdk/go/gcp/cloudquota/getSQuotaInfos.go b/sdk/go/gcp/cloudquota/getSQuotaInfos.go index 6e750181b2..a4992c5264 100644 --- a/sdk/go/gcp/cloudquota/getSQuotaInfos.go +++ b/sdk/go/gcp/cloudquota/getSQuotaInfos.go @@ -68,21 +68,11 @@ type GetSQuotaInfosResult struct { } func GetSQuotaInfosOutput(ctx *pulumi.Context, args GetSQuotaInfosOutputArgs, opts ...pulumi.InvokeOption) GetSQuotaInfosResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetSQuotaInfosResultOutput, error) { args := v.(GetSQuotaInfosArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetSQuotaInfosResult - secret, err := ctx.InvokePackageRaw("gcp:cloudquota/getSQuotaInfos:getSQuotaInfos", args, &rv, "", opts...) - if err != nil { - return GetSQuotaInfosResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetSQuotaInfosResultOutput) - if secret { - return pulumi.ToSecret(output).(GetSQuotaInfosResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:cloudquota/getSQuotaInfos:getSQuotaInfos", args, GetSQuotaInfosResultOutput{}, options).(GetSQuotaInfosResultOutput), nil }).(GetSQuotaInfosResultOutput) } diff --git a/sdk/go/gcp/cloudrun/getLocations.go b/sdk/go/gcp/cloudrun/getLocations.go index 1e0e333ad9..6d60ca34c5 100644 --- a/sdk/go/gcp/cloudrun/getLocations.go +++ b/sdk/go/gcp/cloudrun/getLocations.go @@ -69,21 +69,11 @@ type GetLocationsResult struct { } func GetLocationsOutput(ctx *pulumi.Context, args GetLocationsOutputArgs, opts ...pulumi.InvokeOption) GetLocationsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetLocationsResultOutput, error) { args := v.(GetLocationsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetLocationsResult - secret, err := ctx.InvokePackageRaw("gcp:cloudrun/getLocations:getLocations", args, &rv, "", opts...) - if err != nil { - return GetLocationsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetLocationsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetLocationsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:cloudrun/getLocations:getLocations", args, GetLocationsResultOutput{}, options).(GetLocationsResultOutput), nil }).(GetLocationsResultOutput) } diff --git a/sdk/go/gcp/cloudrun/getService.go b/sdk/go/gcp/cloudrun/getService.go index a1ad7d71e7..7727d12f40 100644 --- a/sdk/go/gcp/cloudrun/getService.go +++ b/sdk/go/gcp/cloudrun/getService.go @@ -79,21 +79,11 @@ type LookupServiceResult struct { } func LookupServiceOutput(ctx *pulumi.Context, args LookupServiceOutputArgs, opts ...pulumi.InvokeOption) LookupServiceResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupServiceResultOutput, error) { args := v.(LookupServiceArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupServiceResult - secret, err := ctx.InvokePackageRaw("gcp:cloudrun/getService:getService", args, &rv, "", opts...) - if err != nil { - return LookupServiceResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupServiceResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupServiceResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:cloudrun/getService:getService", args, LookupServiceResultOutput{}, options).(LookupServiceResultOutput), nil }).(LookupServiceResultOutput) } diff --git a/sdk/go/gcp/cloudrun/getServiceIamPolicy.go b/sdk/go/gcp/cloudrun/getServiceIamPolicy.go index d3c6d942ab..3782a8d75d 100644 --- a/sdk/go/gcp/cloudrun/getServiceIamPolicy.go +++ b/sdk/go/gcp/cloudrun/getServiceIamPolicy.go @@ -78,21 +78,11 @@ type GetServiceIamPolicyResult struct { } func GetServiceIamPolicyOutput(ctx *pulumi.Context, args GetServiceIamPolicyOutputArgs, opts ...pulumi.InvokeOption) GetServiceIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetServiceIamPolicyResultOutput, error) { args := v.(GetServiceIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetServiceIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:cloudrun/getServiceIamPolicy:getServiceIamPolicy", args, &rv, "", opts...) - if err != nil { - return GetServiceIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetServiceIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(GetServiceIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:cloudrun/getServiceIamPolicy:getServiceIamPolicy", args, GetServiceIamPolicyResultOutput{}, options).(GetServiceIamPolicyResultOutput), nil }).(GetServiceIamPolicyResultOutput) } diff --git a/sdk/go/gcp/cloudrunv2/getJob.go b/sdk/go/gcp/cloudrunv2/getJob.go index 143b2fc80d..5e70358018 100644 --- a/sdk/go/gcp/cloudrunv2/getJob.go +++ b/sdk/go/gcp/cloudrunv2/getJob.go @@ -102,21 +102,11 @@ type LookupJobResult struct { } func LookupJobOutput(ctx *pulumi.Context, args LookupJobOutputArgs, opts ...pulumi.InvokeOption) LookupJobResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupJobResultOutput, error) { args := v.(LookupJobArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupJobResult - secret, err := ctx.InvokePackageRaw("gcp:cloudrunv2/getJob:getJob", args, &rv, "", opts...) - if err != nil { - return LookupJobResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupJobResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupJobResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:cloudrunv2/getJob:getJob", args, LookupJobResultOutput{}, options).(LookupJobResultOutput), nil }).(LookupJobResultOutput) } diff --git a/sdk/go/gcp/cloudrunv2/getJobIamPolicy.go b/sdk/go/gcp/cloudrunv2/getJobIamPolicy.go index e08b13bc26..f3ec9da375 100644 --- a/sdk/go/gcp/cloudrunv2/getJobIamPolicy.go +++ b/sdk/go/gcp/cloudrunv2/getJobIamPolicy.go @@ -78,21 +78,11 @@ type LookupJobIamPolicyResult struct { } func LookupJobIamPolicyOutput(ctx *pulumi.Context, args LookupJobIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupJobIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupJobIamPolicyResultOutput, error) { args := v.(LookupJobIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupJobIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:cloudrunv2/getJobIamPolicy:getJobIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupJobIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupJobIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupJobIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:cloudrunv2/getJobIamPolicy:getJobIamPolicy", args, LookupJobIamPolicyResultOutput{}, options).(LookupJobIamPolicyResultOutput), nil }).(LookupJobIamPolicyResultOutput) } diff --git a/sdk/go/gcp/cloudrunv2/getService.go b/sdk/go/gcp/cloudrunv2/getService.go index 7213a15aab..0827307215 100644 --- a/sdk/go/gcp/cloudrunv2/getService.go +++ b/sdk/go/gcp/cloudrunv2/getService.go @@ -110,21 +110,11 @@ type LookupServiceResult struct { } func LookupServiceOutput(ctx *pulumi.Context, args LookupServiceOutputArgs, opts ...pulumi.InvokeOption) LookupServiceResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupServiceResultOutput, error) { args := v.(LookupServiceArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupServiceResult - secret, err := ctx.InvokePackageRaw("gcp:cloudrunv2/getService:getService", args, &rv, "", opts...) - if err != nil { - return LookupServiceResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupServiceResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupServiceResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:cloudrunv2/getService:getService", args, LookupServiceResultOutput{}, options).(LookupServiceResultOutput), nil }).(LookupServiceResultOutput) } diff --git a/sdk/go/gcp/cloudrunv2/getServiceIamPolicy.go b/sdk/go/gcp/cloudrunv2/getServiceIamPolicy.go index f97487b15c..1ba982500b 100644 --- a/sdk/go/gcp/cloudrunv2/getServiceIamPolicy.go +++ b/sdk/go/gcp/cloudrunv2/getServiceIamPolicy.go @@ -78,21 +78,11 @@ type LookupServiceIamPolicyResult struct { } func LookupServiceIamPolicyOutput(ctx *pulumi.Context, args LookupServiceIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupServiceIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupServiceIamPolicyResultOutput, error) { args := v.(LookupServiceIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupServiceIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:cloudrunv2/getServiceIamPolicy:getServiceIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupServiceIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupServiceIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupServiceIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:cloudrunv2/getServiceIamPolicy:getServiceIamPolicy", args, LookupServiceIamPolicyResultOutput{}, options).(LookupServiceIamPolicyResultOutput), nil }).(LookupServiceIamPolicyResultOutput) } diff --git a/sdk/go/gcp/cloudtasks/getQueueIamPolicy.go b/sdk/go/gcp/cloudtasks/getQueueIamPolicy.go index 8a31ff2edb..92739a4a64 100644 --- a/sdk/go/gcp/cloudtasks/getQueueIamPolicy.go +++ b/sdk/go/gcp/cloudtasks/getQueueIamPolicy.go @@ -78,21 +78,11 @@ type LookupQueueIamPolicyResult struct { } func LookupQueueIamPolicyOutput(ctx *pulumi.Context, args LookupQueueIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupQueueIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupQueueIamPolicyResultOutput, error) { args := v.(LookupQueueIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupQueueIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:cloudtasks/getQueueIamPolicy:getQueueIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupQueueIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupQueueIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupQueueIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:cloudtasks/getQueueIamPolicy:getQueueIamPolicy", args, LookupQueueIamPolicyResultOutput{}, options).(LookupQueueIamPolicyResultOutput), nil }).(LookupQueueIamPolicyResultOutput) } diff --git a/sdk/go/gcp/composer/getEnvironment.go b/sdk/go/gcp/composer/getEnvironment.go index d9e770a14c..899febaa95 100644 --- a/sdk/go/gcp/composer/getEnvironment.go +++ b/sdk/go/gcp/composer/getEnvironment.go @@ -82,21 +82,11 @@ type LookupEnvironmentResult struct { } func LookupEnvironmentOutput(ctx *pulumi.Context, args LookupEnvironmentOutputArgs, opts ...pulumi.InvokeOption) LookupEnvironmentResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupEnvironmentResultOutput, error) { args := v.(LookupEnvironmentArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupEnvironmentResult - secret, err := ctx.InvokePackageRaw("gcp:composer/getEnvironment:getEnvironment", args, &rv, "", opts...) - if err != nil { - return LookupEnvironmentResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupEnvironmentResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupEnvironmentResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:composer/getEnvironment:getEnvironment", args, LookupEnvironmentResultOutput{}, options).(LookupEnvironmentResultOutput), nil }).(LookupEnvironmentResultOutput) } diff --git a/sdk/go/gcp/composer/getImageVersions.go b/sdk/go/gcp/composer/getImageVersions.go index 7d8205c9af..dbae8b70e1 100644 --- a/sdk/go/gcp/composer/getImageVersions.go +++ b/sdk/go/gcp/composer/getImageVersions.go @@ -79,21 +79,11 @@ type GetImageVersionsResult struct { } func GetImageVersionsOutput(ctx *pulumi.Context, args GetImageVersionsOutputArgs, opts ...pulumi.InvokeOption) GetImageVersionsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetImageVersionsResultOutput, error) { args := v.(GetImageVersionsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetImageVersionsResult - secret, err := ctx.InvokePackageRaw("gcp:composer/getImageVersions:getImageVersions", args, &rv, "", opts...) - if err != nil { - return GetImageVersionsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetImageVersionsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetImageVersionsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:composer/getImageVersions:getImageVersions", args, GetImageVersionsResultOutput{}, options).(GetImageVersionsResultOutput), nil }).(GetImageVersionsResultOutput) } diff --git a/sdk/go/gcp/composer/getUserWorkloadsConfigMap.go b/sdk/go/gcp/composer/getUserWorkloadsConfigMap.go index 3b92df657b..7307ccfdcd 100644 --- a/sdk/go/gcp/composer/getUserWorkloadsConfigMap.go +++ b/sdk/go/gcp/composer/getUserWorkloadsConfigMap.go @@ -98,21 +98,11 @@ type LookupUserWorkloadsConfigMapResult struct { } func LookupUserWorkloadsConfigMapOutput(ctx *pulumi.Context, args LookupUserWorkloadsConfigMapOutputArgs, opts ...pulumi.InvokeOption) LookupUserWorkloadsConfigMapResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupUserWorkloadsConfigMapResultOutput, error) { args := v.(LookupUserWorkloadsConfigMapArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupUserWorkloadsConfigMapResult - secret, err := ctx.InvokePackageRaw("gcp:composer/getUserWorkloadsConfigMap:getUserWorkloadsConfigMap", args, &rv, "", opts...) - if err != nil { - return LookupUserWorkloadsConfigMapResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupUserWorkloadsConfigMapResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupUserWorkloadsConfigMapResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:composer/getUserWorkloadsConfigMap:getUserWorkloadsConfigMap", args, LookupUserWorkloadsConfigMapResultOutput{}, options).(LookupUserWorkloadsConfigMapResultOutput), nil }).(LookupUserWorkloadsConfigMapResultOutput) } diff --git a/sdk/go/gcp/composer/getUserWorkloadsSecret.go b/sdk/go/gcp/composer/getUserWorkloadsSecret.go index 4396159a07..0ce529c203 100644 --- a/sdk/go/gcp/composer/getUserWorkloadsSecret.go +++ b/sdk/go/gcp/composer/getUserWorkloadsSecret.go @@ -109,21 +109,11 @@ type LookupUserWorkloadsSecretResult struct { } func LookupUserWorkloadsSecretOutput(ctx *pulumi.Context, args LookupUserWorkloadsSecretOutputArgs, opts ...pulumi.InvokeOption) LookupUserWorkloadsSecretResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupUserWorkloadsSecretResultOutput, error) { args := v.(LookupUserWorkloadsSecretArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupUserWorkloadsSecretResult - secret, err := ctx.InvokePackageRaw("gcp:composer/getUserWorkloadsSecret:getUserWorkloadsSecret", args, &rv, "", opts...) - if err != nil { - return LookupUserWorkloadsSecretResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupUserWorkloadsSecretResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupUserWorkloadsSecretResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:composer/getUserWorkloadsSecret:getUserWorkloadsSecret", args, LookupUserWorkloadsSecretResultOutput{}, options).(LookupUserWorkloadsSecretResultOutput), nil }).(LookupUserWorkloadsSecretResultOutput) } diff --git a/sdk/go/gcp/compute/getAddress.go b/sdk/go/gcp/compute/getAddress.go index 6a02aee1b3..5ffe394972 100644 --- a/sdk/go/gcp/compute/getAddress.go +++ b/sdk/go/gcp/compute/getAddress.go @@ -110,21 +110,11 @@ type LookupAddressResult struct { } func LookupAddressOutput(ctx *pulumi.Context, args LookupAddressOutputArgs, opts ...pulumi.InvokeOption) LookupAddressResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupAddressResultOutput, error) { args := v.(LookupAddressArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupAddressResult - secret, err := ctx.InvokePackageRaw("gcp:compute/getAddress:getAddress", args, &rv, "", opts...) - if err != nil { - return LookupAddressResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupAddressResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupAddressResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:compute/getAddress:getAddress", args, LookupAddressResultOutput{}, options).(LookupAddressResultOutput), nil }).(LookupAddressResultOutput) } diff --git a/sdk/go/gcp/compute/getAddresses.go b/sdk/go/gcp/compute/getAddresses.go index 9c69378102..260ac8c9c0 100644 --- a/sdk/go/gcp/compute/getAddresses.go +++ b/sdk/go/gcp/compute/getAddresses.go @@ -122,21 +122,11 @@ type GetAddressesResult struct { } func GetAddressesOutput(ctx *pulumi.Context, args GetAddressesOutputArgs, opts ...pulumi.InvokeOption) GetAddressesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetAddressesResultOutput, error) { args := v.(GetAddressesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetAddressesResult - secret, err := ctx.InvokePackageRaw("gcp:compute/getAddresses:getAddresses", args, &rv, "", opts...) - if err != nil { - return GetAddressesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetAddressesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetAddressesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:compute/getAddresses:getAddresses", args, GetAddressesResultOutput{}, options).(GetAddressesResultOutput), nil }).(GetAddressesResultOutput) } diff --git a/sdk/go/gcp/compute/getBackendBucket.go b/sdk/go/gcp/compute/getBackendBucket.go index ae6a1be285..ed0d954072 100644 --- a/sdk/go/gcp/compute/getBackendBucket.go +++ b/sdk/go/gcp/compute/getBackendBucket.go @@ -77,21 +77,11 @@ type LookupBackendBucketResult struct { } func LookupBackendBucketOutput(ctx *pulumi.Context, args LookupBackendBucketOutputArgs, opts ...pulumi.InvokeOption) LookupBackendBucketResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupBackendBucketResultOutput, error) { args := v.(LookupBackendBucketArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupBackendBucketResult - secret, err := ctx.InvokePackageRaw("gcp:compute/getBackendBucket:getBackendBucket", args, &rv, "", opts...) - if err != nil { - return LookupBackendBucketResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupBackendBucketResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupBackendBucketResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:compute/getBackendBucket:getBackendBucket", args, LookupBackendBucketResultOutput{}, options).(LookupBackendBucketResultOutput), nil }).(LookupBackendBucketResultOutput) } diff --git a/sdk/go/gcp/compute/getBackendBucketIamPolicy.go b/sdk/go/gcp/compute/getBackendBucketIamPolicy.go index ce9e1c3110..7d628a0509 100644 --- a/sdk/go/gcp/compute/getBackendBucketIamPolicy.go +++ b/sdk/go/gcp/compute/getBackendBucketIamPolicy.go @@ -44,21 +44,11 @@ type LookupBackendBucketIamPolicyResult struct { } func LookupBackendBucketIamPolicyOutput(ctx *pulumi.Context, args LookupBackendBucketIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupBackendBucketIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupBackendBucketIamPolicyResultOutput, error) { args := v.(LookupBackendBucketIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupBackendBucketIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:compute/getBackendBucketIamPolicy:getBackendBucketIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupBackendBucketIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupBackendBucketIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupBackendBucketIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:compute/getBackendBucketIamPolicy:getBackendBucketIamPolicy", args, LookupBackendBucketIamPolicyResultOutput{}, options).(LookupBackendBucketIamPolicyResultOutput), nil }).(LookupBackendBucketIamPolicyResultOutput) } diff --git a/sdk/go/gcp/compute/getBackendService.go b/sdk/go/gcp/compute/getBackendService.go index cdad365704..c594195b49 100644 --- a/sdk/go/gcp/compute/getBackendService.go +++ b/sdk/go/gcp/compute/getBackendService.go @@ -120,21 +120,11 @@ type LookupBackendServiceResult struct { } func LookupBackendServiceOutput(ctx *pulumi.Context, args LookupBackendServiceOutputArgs, opts ...pulumi.InvokeOption) LookupBackendServiceResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupBackendServiceResultOutput, error) { args := v.(LookupBackendServiceArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupBackendServiceResult - secret, err := ctx.InvokePackageRaw("gcp:compute/getBackendService:getBackendService", args, &rv, "", opts...) - if err != nil { - return LookupBackendServiceResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupBackendServiceResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupBackendServiceResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:compute/getBackendService:getBackendService", args, LookupBackendServiceResultOutput{}, options).(LookupBackendServiceResultOutput), nil }).(LookupBackendServiceResultOutput) } diff --git a/sdk/go/gcp/compute/getBackendServiceIamPolicy.go b/sdk/go/gcp/compute/getBackendServiceIamPolicy.go index 80ccb5e25b..9b8ae3480b 100644 --- a/sdk/go/gcp/compute/getBackendServiceIamPolicy.go +++ b/sdk/go/gcp/compute/getBackendServiceIamPolicy.go @@ -44,21 +44,11 @@ type LookupBackendServiceIamPolicyResult struct { } func LookupBackendServiceIamPolicyOutput(ctx *pulumi.Context, args LookupBackendServiceIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupBackendServiceIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupBackendServiceIamPolicyResultOutput, error) { args := v.(LookupBackendServiceIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupBackendServiceIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:compute/getBackendServiceIamPolicy:getBackendServiceIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupBackendServiceIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupBackendServiceIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupBackendServiceIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:compute/getBackendServiceIamPolicy:getBackendServiceIamPolicy", args, LookupBackendServiceIamPolicyResultOutput{}, options).(LookupBackendServiceIamPolicyResultOutput), nil }).(LookupBackendServiceIamPolicyResultOutput) } diff --git a/sdk/go/gcp/compute/getCertificate.go b/sdk/go/gcp/compute/getCertificate.go index 2dd16ebb16..291512c79d 100644 --- a/sdk/go/gcp/compute/getCertificate.go +++ b/sdk/go/gcp/compute/getCertificate.go @@ -79,21 +79,11 @@ type GetCertificateResult struct { } func GetCertificateOutput(ctx *pulumi.Context, args GetCertificateOutputArgs, opts ...pulumi.InvokeOption) GetCertificateResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetCertificateResultOutput, error) { args := v.(GetCertificateArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetCertificateResult - secret, err := ctx.InvokePackageRaw("gcp:compute/getCertificate:getCertificate", args, &rv, "", opts...) - if err != nil { - return GetCertificateResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetCertificateResultOutput) - if secret { - return pulumi.ToSecret(output).(GetCertificateResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:compute/getCertificate:getCertificate", args, GetCertificateResultOutput{}, options).(GetCertificateResultOutput), nil }).(GetCertificateResultOutput) } diff --git a/sdk/go/gcp/compute/getDefaultServiceAccount.go b/sdk/go/gcp/compute/getDefaultServiceAccount.go index fcf2e6f54c..ead9698074 100644 --- a/sdk/go/gcp/compute/getDefaultServiceAccount.go +++ b/sdk/go/gcp/compute/getDefaultServiceAccount.go @@ -71,21 +71,11 @@ type GetDefaultServiceAccountResult struct { } func GetDefaultServiceAccountOutput(ctx *pulumi.Context, args GetDefaultServiceAccountOutputArgs, opts ...pulumi.InvokeOption) GetDefaultServiceAccountResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetDefaultServiceAccountResultOutput, error) { args := v.(GetDefaultServiceAccountArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetDefaultServiceAccountResult - secret, err := ctx.InvokePackageRaw("gcp:compute/getDefaultServiceAccount:getDefaultServiceAccount", args, &rv, "", opts...) - if err != nil { - return GetDefaultServiceAccountResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetDefaultServiceAccountResultOutput) - if secret { - return pulumi.ToSecret(output).(GetDefaultServiceAccountResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:compute/getDefaultServiceAccount:getDefaultServiceAccount", args, GetDefaultServiceAccountResultOutput{}, options).(GetDefaultServiceAccountResultOutput), nil }).(GetDefaultServiceAccountResultOutput) } diff --git a/sdk/go/gcp/compute/getDisk.go b/sdk/go/gcp/compute/getDisk.go index 338452a778..9861d043d2 100644 --- a/sdk/go/gcp/compute/getDisk.go +++ b/sdk/go/gcp/compute/getDisk.go @@ -147,21 +147,11 @@ type LookupDiskResult struct { } func LookupDiskOutput(ctx *pulumi.Context, args LookupDiskOutputArgs, opts ...pulumi.InvokeOption) LookupDiskResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupDiskResultOutput, error) { args := v.(LookupDiskArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupDiskResult - secret, err := ctx.InvokePackageRaw("gcp:compute/getDisk:getDisk", args, &rv, "", opts...) - if err != nil { - return LookupDiskResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupDiskResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupDiskResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:compute/getDisk:getDisk", args, LookupDiskResultOutput{}, options).(LookupDiskResultOutput), nil }).(LookupDiskResultOutput) } diff --git a/sdk/go/gcp/compute/getDiskIamPolicy.go b/sdk/go/gcp/compute/getDiskIamPolicy.go index 39e27265e8..2290f847d0 100644 --- a/sdk/go/gcp/compute/getDiskIamPolicy.go +++ b/sdk/go/gcp/compute/getDiskIamPolicy.go @@ -78,21 +78,11 @@ type LookupDiskIamPolicyResult struct { } func LookupDiskIamPolicyOutput(ctx *pulumi.Context, args LookupDiskIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupDiskIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupDiskIamPolicyResultOutput, error) { args := v.(LookupDiskIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupDiskIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:compute/getDiskIamPolicy:getDiskIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupDiskIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupDiskIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupDiskIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:compute/getDiskIamPolicy:getDiskIamPolicy", args, LookupDiskIamPolicyResultOutput{}, options).(LookupDiskIamPolicyResultOutput), nil }).(LookupDiskIamPolicyResultOutput) } diff --git a/sdk/go/gcp/compute/getForwardingRule.go b/sdk/go/gcp/compute/getForwardingRule.go index 67637c8e3c..1aac6e7fd4 100644 --- a/sdk/go/gcp/compute/getForwardingRule.go +++ b/sdk/go/gcp/compute/getForwardingRule.go @@ -104,21 +104,11 @@ type LookupForwardingRuleResult struct { } func LookupForwardingRuleOutput(ctx *pulumi.Context, args LookupForwardingRuleOutputArgs, opts ...pulumi.InvokeOption) LookupForwardingRuleResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupForwardingRuleResultOutput, error) { args := v.(LookupForwardingRuleArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupForwardingRuleResult - secret, err := ctx.InvokePackageRaw("gcp:compute/getForwardingRule:getForwardingRule", args, &rv, "", opts...) - if err != nil { - return LookupForwardingRuleResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupForwardingRuleResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupForwardingRuleResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:compute/getForwardingRule:getForwardingRule", args, LookupForwardingRuleResultOutput{}, options).(LookupForwardingRuleResultOutput), nil }).(LookupForwardingRuleResultOutput) } diff --git a/sdk/go/gcp/compute/getForwardingRules.go b/sdk/go/gcp/compute/getForwardingRules.go index 6c3690d88c..13b1ca40db 100644 --- a/sdk/go/gcp/compute/getForwardingRules.go +++ b/sdk/go/gcp/compute/getForwardingRules.go @@ -72,21 +72,11 @@ type GetForwardingRulesResult struct { } func GetForwardingRulesOutput(ctx *pulumi.Context, args GetForwardingRulesOutputArgs, opts ...pulumi.InvokeOption) GetForwardingRulesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetForwardingRulesResultOutput, error) { args := v.(GetForwardingRulesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetForwardingRulesResult - secret, err := ctx.InvokePackageRaw("gcp:compute/getForwardingRules:getForwardingRules", args, &rv, "", opts...) - if err != nil { - return GetForwardingRulesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetForwardingRulesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetForwardingRulesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:compute/getForwardingRules:getForwardingRules", args, GetForwardingRulesResultOutput{}, options).(GetForwardingRulesResultOutput), nil }).(GetForwardingRulesResultOutput) } diff --git a/sdk/go/gcp/compute/getGlobalAddress.go b/sdk/go/gcp/compute/getGlobalAddress.go index 7038bf4abd..0de622e747 100644 --- a/sdk/go/gcp/compute/getGlobalAddress.go +++ b/sdk/go/gcp/compute/getGlobalAddress.go @@ -106,21 +106,11 @@ type LookupGlobalAddressResult struct { } func LookupGlobalAddressOutput(ctx *pulumi.Context, args LookupGlobalAddressOutputArgs, opts ...pulumi.InvokeOption) LookupGlobalAddressResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupGlobalAddressResultOutput, error) { args := v.(LookupGlobalAddressArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupGlobalAddressResult - secret, err := ctx.InvokePackageRaw("gcp:compute/getGlobalAddress:getGlobalAddress", args, &rv, "", opts...) - if err != nil { - return LookupGlobalAddressResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupGlobalAddressResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupGlobalAddressResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:compute/getGlobalAddress:getGlobalAddress", args, LookupGlobalAddressResultOutput{}, options).(LookupGlobalAddressResultOutput), nil }).(LookupGlobalAddressResultOutput) } diff --git a/sdk/go/gcp/compute/getGlobalForwardingRule.go b/sdk/go/gcp/compute/getGlobalForwardingRule.go index f2742250c3..e8eeea130e 100644 --- a/sdk/go/gcp/compute/getGlobalForwardingRule.go +++ b/sdk/go/gcp/compute/getGlobalForwardingRule.go @@ -91,21 +91,11 @@ type LookupGlobalForwardingRuleResult struct { } func LookupGlobalForwardingRuleOutput(ctx *pulumi.Context, args LookupGlobalForwardingRuleOutputArgs, opts ...pulumi.InvokeOption) LookupGlobalForwardingRuleResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupGlobalForwardingRuleResultOutput, error) { args := v.(LookupGlobalForwardingRuleArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupGlobalForwardingRuleResult - secret, err := ctx.InvokePackageRaw("gcp:compute/getGlobalForwardingRule:getGlobalForwardingRule", args, &rv, "", opts...) - if err != nil { - return LookupGlobalForwardingRuleResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupGlobalForwardingRuleResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupGlobalForwardingRuleResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:compute/getGlobalForwardingRule:getGlobalForwardingRule", args, LookupGlobalForwardingRuleResultOutput{}, options).(LookupGlobalForwardingRuleResultOutput), nil }).(LookupGlobalForwardingRuleResultOutput) } diff --git a/sdk/go/gcp/compute/getHcVpnGateway.go b/sdk/go/gcp/compute/getHcVpnGateway.go index 0a4eca6f3a..0784ba3059 100644 --- a/sdk/go/gcp/compute/getHcVpnGateway.go +++ b/sdk/go/gcp/compute/getHcVpnGateway.go @@ -78,21 +78,11 @@ type GetHcVpnGatewayResult struct { } func GetHcVpnGatewayOutput(ctx *pulumi.Context, args GetHcVpnGatewayOutputArgs, opts ...pulumi.InvokeOption) GetHcVpnGatewayResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetHcVpnGatewayResultOutput, error) { args := v.(GetHcVpnGatewayArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetHcVpnGatewayResult - secret, err := ctx.InvokePackageRaw("gcp:compute/getHcVpnGateway:getHcVpnGateway", args, &rv, "", opts...) - if err != nil { - return GetHcVpnGatewayResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetHcVpnGatewayResultOutput) - if secret { - return pulumi.ToSecret(output).(GetHcVpnGatewayResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:compute/getHcVpnGateway:getHcVpnGateway", args, GetHcVpnGatewayResultOutput{}, options).(GetHcVpnGatewayResultOutput), nil }).(GetHcVpnGatewayResultOutput) } diff --git a/sdk/go/gcp/compute/getHealthCheck.go b/sdk/go/gcp/compute/getHealthCheck.go index 43d631e466..0e32d67207 100644 --- a/sdk/go/gcp/compute/getHealthCheck.go +++ b/sdk/go/gcp/compute/getHealthCheck.go @@ -84,21 +84,11 @@ type LookupHealthCheckResult struct { } func LookupHealthCheckOutput(ctx *pulumi.Context, args LookupHealthCheckOutputArgs, opts ...pulumi.InvokeOption) LookupHealthCheckResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupHealthCheckResultOutput, error) { args := v.(LookupHealthCheckArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupHealthCheckResult - secret, err := ctx.InvokePackageRaw("gcp:compute/getHealthCheck:getHealthCheck", args, &rv, "", opts...) - if err != nil { - return LookupHealthCheckResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupHealthCheckResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupHealthCheckResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:compute/getHealthCheck:getHealthCheck", args, LookupHealthCheckResultOutput{}, options).(LookupHealthCheckResultOutput), nil }).(LookupHealthCheckResultOutput) } diff --git a/sdk/go/gcp/compute/getImage.go b/sdk/go/gcp/compute/getImage.go index 82326feb0b..e514f024ee 100644 --- a/sdk/go/gcp/compute/getImage.go +++ b/sdk/go/gcp/compute/getImage.go @@ -131,21 +131,11 @@ type LookupImageResult struct { } func LookupImageOutput(ctx *pulumi.Context, args LookupImageOutputArgs, opts ...pulumi.InvokeOption) LookupImageResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupImageResultOutput, error) { args := v.(LookupImageArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupImageResult - secret, err := ctx.InvokePackageRaw("gcp:compute/getImage:getImage", args, &rv, "", opts...) - if err != nil { - return LookupImageResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupImageResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupImageResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:compute/getImage:getImage", args, LookupImageResultOutput{}, options).(LookupImageResultOutput), nil }).(LookupImageResultOutput) } diff --git a/sdk/go/gcp/compute/getImageIamPolicy.go b/sdk/go/gcp/compute/getImageIamPolicy.go index 6ad4c62b6f..a87f43a6ba 100644 --- a/sdk/go/gcp/compute/getImageIamPolicy.go +++ b/sdk/go/gcp/compute/getImageIamPolicy.go @@ -72,21 +72,11 @@ type LookupImageIamPolicyResult struct { } func LookupImageIamPolicyOutput(ctx *pulumi.Context, args LookupImageIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupImageIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupImageIamPolicyResultOutput, error) { args := v.(LookupImageIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupImageIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:compute/getImageIamPolicy:getImageIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupImageIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupImageIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupImageIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:compute/getImageIamPolicy:getImageIamPolicy", args, LookupImageIamPolicyResultOutput{}, options).(LookupImageIamPolicyResultOutput), nil }).(LookupImageIamPolicyResultOutput) } diff --git a/sdk/go/gcp/compute/getInstance.go b/sdk/go/gcp/compute/getInstance.go index 31c67f0bae..3ccc42c221 100644 --- a/sdk/go/gcp/compute/getInstance.go +++ b/sdk/go/gcp/compute/getInstance.go @@ -145,21 +145,11 @@ type LookupInstanceResult struct { } func LookupInstanceOutput(ctx *pulumi.Context, args LookupInstanceOutputArgs, opts ...pulumi.InvokeOption) LookupInstanceResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupInstanceResultOutput, error) { args := v.(LookupInstanceArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupInstanceResult - secret, err := ctx.InvokePackageRaw("gcp:compute/getInstance:getInstance", args, &rv, "", opts...) - if err != nil { - return LookupInstanceResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupInstanceResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupInstanceResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:compute/getInstance:getInstance", args, LookupInstanceResultOutput{}, options).(LookupInstanceResultOutput), nil }).(LookupInstanceResultOutput) } diff --git a/sdk/go/gcp/compute/getInstanceGroup.go b/sdk/go/gcp/compute/getInstanceGroup.go index fa01dde0c3..f96ad15350 100644 --- a/sdk/go/gcp/compute/getInstanceGroup.go +++ b/sdk/go/gcp/compute/getInstanceGroup.go @@ -85,21 +85,11 @@ type LookupInstanceGroupResult struct { } func LookupInstanceGroupOutput(ctx *pulumi.Context, args LookupInstanceGroupOutputArgs, opts ...pulumi.InvokeOption) LookupInstanceGroupResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupInstanceGroupResultOutput, error) { args := v.(LookupInstanceGroupArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupInstanceGroupResult - secret, err := ctx.InvokePackageRaw("gcp:compute/getInstanceGroup:getInstanceGroup", args, &rv, "", opts...) - if err != nil { - return LookupInstanceGroupResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupInstanceGroupResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupInstanceGroupResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:compute/getInstanceGroup:getInstanceGroup", args, LookupInstanceGroupResultOutput{}, options).(LookupInstanceGroupResultOutput), nil }).(LookupInstanceGroupResultOutput) } diff --git a/sdk/go/gcp/compute/getInstanceGroupManager.go b/sdk/go/gcp/compute/getInstanceGroupManager.go index 47851bdcdf..d19bdcffea 100644 --- a/sdk/go/gcp/compute/getInstanceGroupManager.go +++ b/sdk/go/gcp/compute/getInstanceGroupManager.go @@ -106,21 +106,11 @@ type LookupInstanceGroupManagerResult struct { } func LookupInstanceGroupManagerOutput(ctx *pulumi.Context, args LookupInstanceGroupManagerOutputArgs, opts ...pulumi.InvokeOption) LookupInstanceGroupManagerResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupInstanceGroupManagerResultOutput, error) { args := v.(LookupInstanceGroupManagerArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupInstanceGroupManagerResult - secret, err := ctx.InvokePackageRaw("gcp:compute/getInstanceGroupManager:getInstanceGroupManager", args, &rv, "", opts...) - if err != nil { - return LookupInstanceGroupManagerResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupInstanceGroupManagerResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupInstanceGroupManagerResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:compute/getInstanceGroupManager:getInstanceGroupManager", args, LookupInstanceGroupManagerResultOutput{}, options).(LookupInstanceGroupManagerResultOutput), nil }).(LookupInstanceGroupManagerResultOutput) } diff --git a/sdk/go/gcp/compute/getInstanceGuestAttributes.go b/sdk/go/gcp/compute/getInstanceGuestAttributes.go index 6881a972d5..2355b40240 100644 --- a/sdk/go/gcp/compute/getInstanceGuestAttributes.go +++ b/sdk/go/gcp/compute/getInstanceGuestAttributes.go @@ -125,21 +125,11 @@ type GetInstanceGuestAttributesResult struct { } func GetInstanceGuestAttributesOutput(ctx *pulumi.Context, args GetInstanceGuestAttributesOutputArgs, opts ...pulumi.InvokeOption) GetInstanceGuestAttributesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetInstanceGuestAttributesResultOutput, error) { args := v.(GetInstanceGuestAttributesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetInstanceGuestAttributesResult - secret, err := ctx.InvokePackageRaw("gcp:compute/getInstanceGuestAttributes:getInstanceGuestAttributes", args, &rv, "", opts...) - if err != nil { - return GetInstanceGuestAttributesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetInstanceGuestAttributesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetInstanceGuestAttributesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:compute/getInstanceGuestAttributes:getInstanceGuestAttributes", args, GetInstanceGuestAttributesResultOutput{}, options).(GetInstanceGuestAttributesResultOutput), nil }).(GetInstanceGuestAttributesResultOutput) } diff --git a/sdk/go/gcp/compute/getInstanceIamPolicy.go b/sdk/go/gcp/compute/getInstanceIamPolicy.go index e6e6f62b4d..e03c5ace0c 100644 --- a/sdk/go/gcp/compute/getInstanceIamPolicy.go +++ b/sdk/go/gcp/compute/getInstanceIamPolicy.go @@ -78,21 +78,11 @@ type GetInstanceIamPolicyResult struct { } func GetInstanceIamPolicyOutput(ctx *pulumi.Context, args GetInstanceIamPolicyOutputArgs, opts ...pulumi.InvokeOption) GetInstanceIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetInstanceIamPolicyResultOutput, error) { args := v.(GetInstanceIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetInstanceIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:compute/getInstanceIamPolicy:getInstanceIamPolicy", args, &rv, "", opts...) - if err != nil { - return GetInstanceIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetInstanceIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(GetInstanceIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:compute/getInstanceIamPolicy:getInstanceIamPolicy", args, GetInstanceIamPolicyResultOutput{}, options).(GetInstanceIamPolicyResultOutput), nil }).(GetInstanceIamPolicyResultOutput) } diff --git a/sdk/go/gcp/compute/getInstanceSerialPort.go b/sdk/go/gcp/compute/getInstanceSerialPort.go index 54a9c8ae70..4d94afc045 100644 --- a/sdk/go/gcp/compute/getInstanceSerialPort.go +++ b/sdk/go/gcp/compute/getInstanceSerialPort.go @@ -158,21 +158,11 @@ type GetInstanceSerialPortResult struct { } func GetInstanceSerialPortOutput(ctx *pulumi.Context, args GetInstanceSerialPortOutputArgs, opts ...pulumi.InvokeOption) GetInstanceSerialPortResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetInstanceSerialPortResultOutput, error) { args := v.(GetInstanceSerialPortArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetInstanceSerialPortResult - secret, err := ctx.InvokePackageRaw("gcp:compute/getInstanceSerialPort:getInstanceSerialPort", args, &rv, "", opts...) - if err != nil { - return GetInstanceSerialPortResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetInstanceSerialPortResultOutput) - if secret { - return pulumi.ToSecret(output).(GetInstanceSerialPortResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:compute/getInstanceSerialPort:getInstanceSerialPort", args, GetInstanceSerialPortResultOutput{}, options).(GetInstanceSerialPortResultOutput), nil }).(GetInstanceSerialPortResultOutput) } diff --git a/sdk/go/gcp/compute/getInstanceTemplate.go b/sdk/go/gcp/compute/getInstanceTemplate.go index 0f98985e36..2065f133ee 100644 --- a/sdk/go/gcp/compute/getInstanceTemplate.go +++ b/sdk/go/gcp/compute/getInstanceTemplate.go @@ -141,21 +141,11 @@ type LookupInstanceTemplateResult struct { } func LookupInstanceTemplateOutput(ctx *pulumi.Context, args LookupInstanceTemplateOutputArgs, opts ...pulumi.InvokeOption) LookupInstanceTemplateResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupInstanceTemplateResultOutput, error) { args := v.(LookupInstanceTemplateArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupInstanceTemplateResult - secret, err := ctx.InvokePackageRaw("gcp:compute/getInstanceTemplate:getInstanceTemplate", args, &rv, "", opts...) - if err != nil { - return LookupInstanceTemplateResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupInstanceTemplateResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupInstanceTemplateResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:compute/getInstanceTemplate:getInstanceTemplate", args, LookupInstanceTemplateResultOutput{}, options).(LookupInstanceTemplateResultOutput), nil }).(LookupInstanceTemplateResultOutput) } diff --git a/sdk/go/gcp/compute/getLBIPRanges.go b/sdk/go/gcp/compute/getLBIPRanges.go index d78caa636e..4efe02adf8 100644 --- a/sdk/go/gcp/compute/getLBIPRanges.go +++ b/sdk/go/gcp/compute/getLBIPRanges.go @@ -79,18 +79,8 @@ type GetLBIPRangesResult struct { func GetLBIPRangesOutput(ctx *pulumi.Context, opts ...pulumi.InvokeOption) GetLBIPRangesResultOutput { return pulumi.ToOutput(0).ApplyT(func(int) (GetLBIPRangesResultOutput, error) { - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetLBIPRangesResult - secret, err := ctx.InvokePackageRaw("gcp:compute/getLBIPRanges:getLBIPRanges", nil, &rv, "", opts...) - if err != nil { - return GetLBIPRangesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetLBIPRangesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetLBIPRangesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:compute/getLBIPRanges:getLBIPRanges", nil, GetLBIPRangesResultOutput{}, options).(GetLBIPRangesResultOutput), nil }).(GetLBIPRangesResultOutput) } diff --git a/sdk/go/gcp/compute/getMachineImageIamPolicy.go b/sdk/go/gcp/compute/getMachineImageIamPolicy.go index d4a09cae20..4ffcbee1be 100644 --- a/sdk/go/gcp/compute/getMachineImageIamPolicy.go +++ b/sdk/go/gcp/compute/getMachineImageIamPolicy.go @@ -44,21 +44,11 @@ type LookupMachineImageIamPolicyResult struct { } func LookupMachineImageIamPolicyOutput(ctx *pulumi.Context, args LookupMachineImageIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupMachineImageIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupMachineImageIamPolicyResultOutput, error) { args := v.(LookupMachineImageIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupMachineImageIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:compute/getMachineImageIamPolicy:getMachineImageIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupMachineImageIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupMachineImageIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupMachineImageIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:compute/getMachineImageIamPolicy:getMachineImageIamPolicy", args, LookupMachineImageIamPolicyResultOutput{}, options).(LookupMachineImageIamPolicyResultOutput), nil }).(LookupMachineImageIamPolicyResultOutput) } diff --git a/sdk/go/gcp/compute/getMachineTypes.go b/sdk/go/gcp/compute/getMachineTypes.go index 5c92471bbb..32d6502eaf 100644 --- a/sdk/go/gcp/compute/getMachineTypes.go +++ b/sdk/go/gcp/compute/getMachineTypes.go @@ -52,21 +52,11 @@ type GetMachineTypesResult struct { } func GetMachineTypesOutput(ctx *pulumi.Context, args GetMachineTypesOutputArgs, opts ...pulumi.InvokeOption) GetMachineTypesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetMachineTypesResultOutput, error) { args := v.(GetMachineTypesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetMachineTypesResult - secret, err := ctx.InvokePackageRaw("gcp:compute/getMachineTypes:getMachineTypes", args, &rv, "", opts...) - if err != nil { - return GetMachineTypesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetMachineTypesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetMachineTypesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:compute/getMachineTypes:getMachineTypes", args, GetMachineTypesResultOutput{}, options).(GetMachineTypesResultOutput), nil }).(GetMachineTypesResultOutput) } diff --git a/sdk/go/gcp/compute/getNetblockIPRanges.go b/sdk/go/gcp/compute/getNetblockIPRanges.go index b9e157c3e6..42678f1585 100644 --- a/sdk/go/gcp/compute/getNetblockIPRanges.go +++ b/sdk/go/gcp/compute/getNetblockIPRanges.go @@ -137,21 +137,11 @@ type GetNetblockIPRangesResult struct { } func GetNetblockIPRangesOutput(ctx *pulumi.Context, args GetNetblockIPRangesOutputArgs, opts ...pulumi.InvokeOption) GetNetblockIPRangesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetNetblockIPRangesResultOutput, error) { args := v.(GetNetblockIPRangesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetNetblockIPRangesResult - secret, err := ctx.InvokePackageRaw("gcp:compute/getNetblockIPRanges:getNetblockIPRanges", args, &rv, "", opts...) - if err != nil { - return GetNetblockIPRangesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetNetblockIPRangesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetNetblockIPRangesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:compute/getNetblockIPRanges:getNetblockIPRanges", args, GetNetblockIPRangesResultOutput{}, options).(GetNetblockIPRangesResultOutput), nil }).(GetNetblockIPRangesResultOutput) } diff --git a/sdk/go/gcp/compute/getNetwork.go b/sdk/go/gcp/compute/getNetwork.go index 5ddf529b45..d315b35197 100644 --- a/sdk/go/gcp/compute/getNetwork.go +++ b/sdk/go/gcp/compute/getNetwork.go @@ -84,21 +84,11 @@ type LookupNetworkResult struct { } func LookupNetworkOutput(ctx *pulumi.Context, args LookupNetworkOutputArgs, opts ...pulumi.InvokeOption) LookupNetworkResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupNetworkResultOutput, error) { args := v.(LookupNetworkArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupNetworkResult - secret, err := ctx.InvokePackageRaw("gcp:compute/getNetwork:getNetwork", args, &rv, "", opts...) - if err != nil { - return LookupNetworkResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupNetworkResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupNetworkResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:compute/getNetwork:getNetwork", args, LookupNetworkResultOutput{}, options).(LookupNetworkResultOutput), nil }).(LookupNetworkResultOutput) } diff --git a/sdk/go/gcp/compute/getNetworkEndpointGroup.go b/sdk/go/gcp/compute/getNetworkEndpointGroup.go index 7e2ba82321..2271e83b53 100644 --- a/sdk/go/gcp/compute/getNetworkEndpointGroup.go +++ b/sdk/go/gcp/compute/getNetworkEndpointGroup.go @@ -94,21 +94,11 @@ type LookupNetworkEndpointGroupResult struct { } func LookupNetworkEndpointGroupOutput(ctx *pulumi.Context, args LookupNetworkEndpointGroupOutputArgs, opts ...pulumi.InvokeOption) LookupNetworkEndpointGroupResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupNetworkEndpointGroupResultOutput, error) { args := v.(LookupNetworkEndpointGroupArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupNetworkEndpointGroupResult - secret, err := ctx.InvokePackageRaw("gcp:compute/getNetworkEndpointGroup:getNetworkEndpointGroup", args, &rv, "", opts...) - if err != nil { - return LookupNetworkEndpointGroupResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupNetworkEndpointGroupResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupNetworkEndpointGroupResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:compute/getNetworkEndpointGroup:getNetworkEndpointGroup", args, LookupNetworkEndpointGroupResultOutput{}, options).(LookupNetworkEndpointGroupResultOutput), nil }).(LookupNetworkEndpointGroupResultOutput) } diff --git a/sdk/go/gcp/compute/getNetworkPeering.go b/sdk/go/gcp/compute/getNetworkPeering.go index 7ca4193450..1c9eba8956 100644 --- a/sdk/go/gcp/compute/getNetworkPeering.go +++ b/sdk/go/gcp/compute/getNetworkPeering.go @@ -104,21 +104,11 @@ type LookupNetworkPeeringResult struct { } func LookupNetworkPeeringOutput(ctx *pulumi.Context, args LookupNetworkPeeringOutputArgs, opts ...pulumi.InvokeOption) LookupNetworkPeeringResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupNetworkPeeringResultOutput, error) { args := v.(LookupNetworkPeeringArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupNetworkPeeringResult - secret, err := ctx.InvokePackageRaw("gcp:compute/getNetworkPeering:getNetworkPeering", args, &rv, "", opts...) - if err != nil { - return LookupNetworkPeeringResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupNetworkPeeringResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupNetworkPeeringResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:compute/getNetworkPeering:getNetworkPeering", args, LookupNetworkPeeringResultOutput{}, options).(LookupNetworkPeeringResultOutput), nil }).(LookupNetworkPeeringResultOutput) } diff --git a/sdk/go/gcp/compute/getNetworks.go b/sdk/go/gcp/compute/getNetworks.go index d474cdc833..50d3495ad9 100644 --- a/sdk/go/gcp/compute/getNetworks.go +++ b/sdk/go/gcp/compute/getNetworks.go @@ -67,21 +67,11 @@ type GetNetworksResult struct { } func GetNetworksOutput(ctx *pulumi.Context, args GetNetworksOutputArgs, opts ...pulumi.InvokeOption) GetNetworksResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetNetworksResultOutput, error) { args := v.(GetNetworksArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetNetworksResult - secret, err := ctx.InvokePackageRaw("gcp:compute/getNetworks:getNetworks", args, &rv, "", opts...) - if err != nil { - return GetNetworksResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetNetworksResultOutput) - if secret { - return pulumi.ToSecret(output).(GetNetworksResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:compute/getNetworks:getNetworks", args, GetNetworksResultOutput{}, options).(GetNetworksResultOutput), nil }).(GetNetworksResultOutput) } diff --git a/sdk/go/gcp/compute/getNodeTypes.go b/sdk/go/gcp/compute/getNodeTypes.go index abafe15d75..392c9378dd 100644 --- a/sdk/go/gcp/compute/getNodeTypes.go +++ b/sdk/go/gcp/compute/getNodeTypes.go @@ -79,21 +79,11 @@ type GetNodeTypesResult struct { } func GetNodeTypesOutput(ctx *pulumi.Context, args GetNodeTypesOutputArgs, opts ...pulumi.InvokeOption) GetNodeTypesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetNodeTypesResultOutput, error) { args := v.(GetNodeTypesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetNodeTypesResult - secret, err := ctx.InvokePackageRaw("gcp:compute/getNodeTypes:getNodeTypes", args, &rv, "", opts...) - if err != nil { - return GetNodeTypesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetNodeTypesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetNodeTypesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:compute/getNodeTypes:getNodeTypes", args, GetNodeTypesResultOutput{}, options).(GetNodeTypesResultOutput), nil }).(GetNodeTypesResultOutput) } diff --git a/sdk/go/gcp/compute/getRegionBackendServiceIamPolicy.go b/sdk/go/gcp/compute/getRegionBackendServiceIamPolicy.go index f893c8e092..250605f795 100644 --- a/sdk/go/gcp/compute/getRegionBackendServiceIamPolicy.go +++ b/sdk/go/gcp/compute/getRegionBackendServiceIamPolicy.go @@ -51,21 +51,11 @@ type LookupRegionBackendServiceIamPolicyResult struct { } func LookupRegionBackendServiceIamPolicyOutput(ctx *pulumi.Context, args LookupRegionBackendServiceIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupRegionBackendServiceIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupRegionBackendServiceIamPolicyResultOutput, error) { args := v.(LookupRegionBackendServiceIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupRegionBackendServiceIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:compute/getRegionBackendServiceIamPolicy:getRegionBackendServiceIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupRegionBackendServiceIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupRegionBackendServiceIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupRegionBackendServiceIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:compute/getRegionBackendServiceIamPolicy:getRegionBackendServiceIamPolicy", args, LookupRegionBackendServiceIamPolicyResultOutput{}, options).(LookupRegionBackendServiceIamPolicyResultOutput), nil }).(LookupRegionBackendServiceIamPolicyResultOutput) } diff --git a/sdk/go/gcp/compute/getRegionDisk.go b/sdk/go/gcp/compute/getRegionDisk.go index 23880b47e3..dda80cb9bf 100644 --- a/sdk/go/gcp/compute/getRegionDisk.go +++ b/sdk/go/gcp/compute/getRegionDisk.go @@ -71,21 +71,11 @@ type LookupRegionDiskResult struct { } func LookupRegionDiskOutput(ctx *pulumi.Context, args LookupRegionDiskOutputArgs, opts ...pulumi.InvokeOption) LookupRegionDiskResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupRegionDiskResultOutput, error) { args := v.(LookupRegionDiskArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupRegionDiskResult - secret, err := ctx.InvokePackageRaw("gcp:compute/getRegionDisk:getRegionDisk", args, &rv, "", opts...) - if err != nil { - return LookupRegionDiskResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupRegionDiskResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupRegionDiskResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:compute/getRegionDisk:getRegionDisk", args, LookupRegionDiskResultOutput{}, options).(LookupRegionDiskResultOutput), nil }).(LookupRegionDiskResultOutput) } diff --git a/sdk/go/gcp/compute/getRegionDiskIamPolicy.go b/sdk/go/gcp/compute/getRegionDiskIamPolicy.go index 88b06cf246..7b740f99a0 100644 --- a/sdk/go/gcp/compute/getRegionDiskIamPolicy.go +++ b/sdk/go/gcp/compute/getRegionDiskIamPolicy.go @@ -78,21 +78,11 @@ type LookupRegionDiskIamPolicyResult struct { } func LookupRegionDiskIamPolicyOutput(ctx *pulumi.Context, args LookupRegionDiskIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupRegionDiskIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupRegionDiskIamPolicyResultOutput, error) { args := v.(LookupRegionDiskIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupRegionDiskIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:compute/getRegionDiskIamPolicy:getRegionDiskIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupRegionDiskIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupRegionDiskIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupRegionDiskIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:compute/getRegionDiskIamPolicy:getRegionDiskIamPolicy", args, LookupRegionDiskIamPolicyResultOutput{}, options).(LookupRegionDiskIamPolicyResultOutput), nil }).(LookupRegionDiskIamPolicyResultOutput) } diff --git a/sdk/go/gcp/compute/getRegionInstanceGroup.go b/sdk/go/gcp/compute/getRegionInstanceGroup.go index 9454fd7b23..327d82b319 100644 --- a/sdk/go/gcp/compute/getRegionInstanceGroup.go +++ b/sdk/go/gcp/compute/getRegionInstanceGroup.go @@ -83,21 +83,11 @@ type GetRegionInstanceGroupResult struct { } func GetRegionInstanceGroupOutput(ctx *pulumi.Context, args GetRegionInstanceGroupOutputArgs, opts ...pulumi.InvokeOption) GetRegionInstanceGroupResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetRegionInstanceGroupResultOutput, error) { args := v.(GetRegionInstanceGroupArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetRegionInstanceGroupResult - secret, err := ctx.InvokePackageRaw("gcp:compute/getRegionInstanceGroup:getRegionInstanceGroup", args, &rv, "", opts...) - if err != nil { - return GetRegionInstanceGroupResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetRegionInstanceGroupResultOutput) - if secret { - return pulumi.ToSecret(output).(GetRegionInstanceGroupResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:compute/getRegionInstanceGroup:getRegionInstanceGroup", args, GetRegionInstanceGroupResultOutput{}, options).(GetRegionInstanceGroupResultOutput), nil }).(GetRegionInstanceGroupResultOutput) } diff --git a/sdk/go/gcp/compute/getRegionInstanceGroupManager.go b/sdk/go/gcp/compute/getRegionInstanceGroupManager.go index 2a07dfba0d..1da822bf40 100644 --- a/sdk/go/gcp/compute/getRegionInstanceGroupManager.go +++ b/sdk/go/gcp/compute/getRegionInstanceGroupManager.go @@ -103,21 +103,11 @@ type LookupRegionInstanceGroupManagerResult struct { } func LookupRegionInstanceGroupManagerOutput(ctx *pulumi.Context, args LookupRegionInstanceGroupManagerOutputArgs, opts ...pulumi.InvokeOption) LookupRegionInstanceGroupManagerResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupRegionInstanceGroupManagerResultOutput, error) { args := v.(LookupRegionInstanceGroupManagerArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupRegionInstanceGroupManagerResult - secret, err := ctx.InvokePackageRaw("gcp:compute/getRegionInstanceGroupManager:getRegionInstanceGroupManager", args, &rv, "", opts...) - if err != nil { - return LookupRegionInstanceGroupManagerResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupRegionInstanceGroupManagerResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupRegionInstanceGroupManagerResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:compute/getRegionInstanceGroupManager:getRegionInstanceGroupManager", args, LookupRegionInstanceGroupManagerResultOutput{}, options).(LookupRegionInstanceGroupManagerResultOutput), nil }).(LookupRegionInstanceGroupManagerResultOutput) } diff --git a/sdk/go/gcp/compute/getRegionInstanceTemplate.go b/sdk/go/gcp/compute/getRegionInstanceTemplate.go index 511215e6a2..c5556c805d 100644 --- a/sdk/go/gcp/compute/getRegionInstanceTemplate.go +++ b/sdk/go/gcp/compute/getRegionInstanceTemplate.go @@ -165,21 +165,11 @@ type LookupRegionInstanceTemplateResult struct { } func LookupRegionInstanceTemplateOutput(ctx *pulumi.Context, args LookupRegionInstanceTemplateOutputArgs, opts ...pulumi.InvokeOption) LookupRegionInstanceTemplateResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupRegionInstanceTemplateResultOutput, error) { args := v.(LookupRegionInstanceTemplateArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupRegionInstanceTemplateResult - secret, err := ctx.InvokePackageRaw("gcp:compute/getRegionInstanceTemplate:getRegionInstanceTemplate", args, &rv, "", opts...) - if err != nil { - return LookupRegionInstanceTemplateResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupRegionInstanceTemplateResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupRegionInstanceTemplateResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:compute/getRegionInstanceTemplate:getRegionInstanceTemplate", args, LookupRegionInstanceTemplateResultOutput{}, options).(LookupRegionInstanceTemplateResultOutput), nil }).(LookupRegionInstanceTemplateResultOutput) } diff --git a/sdk/go/gcp/compute/getRegionNetworkEndpointGroup.go b/sdk/go/gcp/compute/getRegionNetworkEndpointGroup.go index 4188463faf..1a2df822a0 100644 --- a/sdk/go/gcp/compute/getRegionNetworkEndpointGroup.go +++ b/sdk/go/gcp/compute/getRegionNetworkEndpointGroup.go @@ -95,21 +95,11 @@ type LookupRegionNetworkEndpointGroupResult struct { } func LookupRegionNetworkEndpointGroupOutput(ctx *pulumi.Context, args LookupRegionNetworkEndpointGroupOutputArgs, opts ...pulumi.InvokeOption) LookupRegionNetworkEndpointGroupResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupRegionNetworkEndpointGroupResultOutput, error) { args := v.(LookupRegionNetworkEndpointGroupArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupRegionNetworkEndpointGroupResult - secret, err := ctx.InvokePackageRaw("gcp:compute/getRegionNetworkEndpointGroup:getRegionNetworkEndpointGroup", args, &rv, "", opts...) - if err != nil { - return LookupRegionNetworkEndpointGroupResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupRegionNetworkEndpointGroupResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupRegionNetworkEndpointGroupResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:compute/getRegionNetworkEndpointGroup:getRegionNetworkEndpointGroup", args, LookupRegionNetworkEndpointGroupResultOutput{}, options).(LookupRegionNetworkEndpointGroupResultOutput), nil }).(LookupRegionNetworkEndpointGroupResultOutput) } diff --git a/sdk/go/gcp/compute/getRegionSslCertificate.go b/sdk/go/gcp/compute/getRegionSslCertificate.go index d71c7cb19d..e671b6a528 100644 --- a/sdk/go/gcp/compute/getRegionSslCertificate.go +++ b/sdk/go/gcp/compute/getRegionSslCertificate.go @@ -83,21 +83,11 @@ type LookupRegionSslCertificateResult struct { } func LookupRegionSslCertificateOutput(ctx *pulumi.Context, args LookupRegionSslCertificateOutputArgs, opts ...pulumi.InvokeOption) LookupRegionSslCertificateResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupRegionSslCertificateResultOutput, error) { args := v.(LookupRegionSslCertificateArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupRegionSslCertificateResult - secret, err := ctx.InvokePackageRaw("gcp:compute/getRegionSslCertificate:getRegionSslCertificate", args, &rv, "", opts...) - if err != nil { - return LookupRegionSslCertificateResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupRegionSslCertificateResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupRegionSslCertificateResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:compute/getRegionSslCertificate:getRegionSslCertificate", args, LookupRegionSslCertificateResultOutput{}, options).(LookupRegionSslCertificateResultOutput), nil }).(LookupRegionSslCertificateResultOutput) } diff --git a/sdk/go/gcp/compute/getRegions.go b/sdk/go/gcp/compute/getRegions.go index c472729d95..1a2cac9f91 100644 --- a/sdk/go/gcp/compute/getRegions.go +++ b/sdk/go/gcp/compute/getRegions.go @@ -82,21 +82,11 @@ type GetRegionsResult struct { } func GetRegionsOutput(ctx *pulumi.Context, args GetRegionsOutputArgs, opts ...pulumi.InvokeOption) GetRegionsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetRegionsResultOutput, error) { args := v.(GetRegionsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetRegionsResult - secret, err := ctx.InvokePackageRaw("gcp:compute/getRegions:getRegions", args, &rv, "", opts...) - if err != nil { - return GetRegionsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetRegionsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetRegionsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:compute/getRegions:getRegions", args, GetRegionsResultOutput{}, options).(GetRegionsResultOutput), nil }).(GetRegionsResultOutput) } diff --git a/sdk/go/gcp/compute/getReservation.go b/sdk/go/gcp/compute/getReservation.go index 0599fe1ca0..9d28dd5d12 100644 --- a/sdk/go/gcp/compute/getReservation.go +++ b/sdk/go/gcp/compute/getReservation.go @@ -76,21 +76,11 @@ type LookupReservationResult struct { } func LookupReservationOutput(ctx *pulumi.Context, args LookupReservationOutputArgs, opts ...pulumi.InvokeOption) LookupReservationResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupReservationResultOutput, error) { args := v.(LookupReservationArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupReservationResult - secret, err := ctx.InvokePackageRaw("gcp:compute/getReservation:getReservation", args, &rv, "", opts...) - if err != nil { - return LookupReservationResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupReservationResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupReservationResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:compute/getReservation:getReservation", args, LookupReservationResultOutput{}, options).(LookupReservationResultOutput), nil }).(LookupReservationResultOutput) } diff --git a/sdk/go/gcp/compute/getResourcePolicy.go b/sdk/go/gcp/compute/getResourcePolicy.go index 0ec78c283c..e920d3542f 100644 --- a/sdk/go/gcp/compute/getResourcePolicy.go +++ b/sdk/go/gcp/compute/getResourcePolicy.go @@ -75,21 +75,11 @@ type LookupResourcePolicyResult struct { } func LookupResourcePolicyOutput(ctx *pulumi.Context, args LookupResourcePolicyOutputArgs, opts ...pulumi.InvokeOption) LookupResourcePolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupResourcePolicyResultOutput, error) { args := v.(LookupResourcePolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupResourcePolicyResult - secret, err := ctx.InvokePackageRaw("gcp:compute/getResourcePolicy:getResourcePolicy", args, &rv, "", opts...) - if err != nil { - return LookupResourcePolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupResourcePolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupResourcePolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:compute/getResourcePolicy:getResourcePolicy", args, LookupResourcePolicyResultOutput{}, options).(LookupResourcePolicyResultOutput), nil }).(LookupResourcePolicyResultOutput) } diff --git a/sdk/go/gcp/compute/getRouter.go b/sdk/go/gcp/compute/getRouter.go index fe07706dae..861495a639 100644 --- a/sdk/go/gcp/compute/getRouter.go +++ b/sdk/go/gcp/compute/getRouter.go @@ -79,21 +79,11 @@ type LookupRouterResult struct { } func LookupRouterOutput(ctx *pulumi.Context, args LookupRouterOutputArgs, opts ...pulumi.InvokeOption) LookupRouterResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupRouterResultOutput, error) { args := v.(LookupRouterArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupRouterResult - secret, err := ctx.InvokePackageRaw("gcp:compute/getRouter:getRouter", args, &rv, "", opts...) - if err != nil { - return LookupRouterResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupRouterResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupRouterResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:compute/getRouter:getRouter", args, LookupRouterResultOutput{}, options).(LookupRouterResultOutput), nil }).(LookupRouterResultOutput) } diff --git a/sdk/go/gcp/compute/getRouterNat.go b/sdk/go/gcp/compute/getRouterNat.go index 15d3b75a8d..8aeeeef1d9 100644 --- a/sdk/go/gcp/compute/getRouterNat.go +++ b/sdk/go/gcp/compute/getRouterNat.go @@ -100,21 +100,11 @@ type LookupRouterNatResult struct { } func LookupRouterNatOutput(ctx *pulumi.Context, args LookupRouterNatOutputArgs, opts ...pulumi.InvokeOption) LookupRouterNatResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupRouterNatResultOutput, error) { args := v.(LookupRouterNatArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupRouterNatResult - secret, err := ctx.InvokePackageRaw("gcp:compute/getRouterNat:getRouterNat", args, &rv, "", opts...) - if err != nil { - return LookupRouterNatResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupRouterNatResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupRouterNatResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:compute/getRouterNat:getRouterNat", args, LookupRouterNatResultOutput{}, options).(LookupRouterNatResultOutput), nil }).(LookupRouterNatResultOutput) } diff --git a/sdk/go/gcp/compute/getRouterStatus.go b/sdk/go/gcp/compute/getRouterStatus.go index 6d2f061bbf..b8562fc313 100644 --- a/sdk/go/gcp/compute/getRouterStatus.go +++ b/sdk/go/gcp/compute/getRouterStatus.go @@ -82,21 +82,11 @@ type GetRouterStatusResult struct { } func GetRouterStatusOutput(ctx *pulumi.Context, args GetRouterStatusOutputArgs, opts ...pulumi.InvokeOption) GetRouterStatusResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetRouterStatusResultOutput, error) { args := v.(GetRouterStatusArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetRouterStatusResult - secret, err := ctx.InvokePackageRaw("gcp:compute/getRouterStatus:getRouterStatus", args, &rv, "", opts...) - if err != nil { - return GetRouterStatusResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetRouterStatusResultOutput) - if secret { - return pulumi.ToSecret(output).(GetRouterStatusResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:compute/getRouterStatus:getRouterStatus", args, GetRouterStatusResultOutput{}, options).(GetRouterStatusResultOutput), nil }).(GetRouterStatusResultOutput) } diff --git a/sdk/go/gcp/compute/getSSLPolicy.go b/sdk/go/gcp/compute/getSSLPolicy.go index 87038e7ddc..90fd52e855 100644 --- a/sdk/go/gcp/compute/getSSLPolicy.go +++ b/sdk/go/gcp/compute/getSSLPolicy.go @@ -87,21 +87,11 @@ type LookupSSLPolicyResult struct { } func LookupSSLPolicyOutput(ctx *pulumi.Context, args LookupSSLPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupSSLPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupSSLPolicyResultOutput, error) { args := v.(LookupSSLPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupSSLPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:compute/getSSLPolicy:getSSLPolicy", args, &rv, "", opts...) - if err != nil { - return LookupSSLPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupSSLPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupSSLPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:compute/getSSLPolicy:getSSLPolicy", args, LookupSSLPolicyResultOutput{}, options).(LookupSSLPolicyResultOutput), nil }).(LookupSSLPolicyResultOutput) } diff --git a/sdk/go/gcp/compute/getSecurityPolicy.go b/sdk/go/gcp/compute/getSecurityPolicy.go index 3f33945f3f..fc6d4549d9 100644 --- a/sdk/go/gcp/compute/getSecurityPolicy.go +++ b/sdk/go/gcp/compute/getSecurityPolicy.go @@ -86,21 +86,11 @@ type LookupSecurityPolicyResult struct { } func LookupSecurityPolicyOutput(ctx *pulumi.Context, args LookupSecurityPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupSecurityPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupSecurityPolicyResultOutput, error) { args := v.(LookupSecurityPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupSecurityPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:compute/getSecurityPolicy:getSecurityPolicy", args, &rv, "", opts...) - if err != nil { - return LookupSecurityPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupSecurityPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupSecurityPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:compute/getSecurityPolicy:getSecurityPolicy", args, LookupSecurityPolicyResultOutput{}, options).(LookupSecurityPolicyResultOutput), nil }).(LookupSecurityPolicyResultOutput) } diff --git a/sdk/go/gcp/compute/getSnapshot.go b/sdk/go/gcp/compute/getSnapshot.go index 99313455d1..fb029879e8 100644 --- a/sdk/go/gcp/compute/getSnapshot.go +++ b/sdk/go/gcp/compute/getSnapshot.go @@ -107,21 +107,11 @@ type LookupSnapshotResult struct { } func LookupSnapshotOutput(ctx *pulumi.Context, args LookupSnapshotOutputArgs, opts ...pulumi.InvokeOption) LookupSnapshotResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupSnapshotResultOutput, error) { args := v.(LookupSnapshotArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupSnapshotResult - secret, err := ctx.InvokePackageRaw("gcp:compute/getSnapshot:getSnapshot", args, &rv, "", opts...) - if err != nil { - return LookupSnapshotResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupSnapshotResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupSnapshotResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:compute/getSnapshot:getSnapshot", args, LookupSnapshotResultOutput{}, options).(LookupSnapshotResultOutput), nil }).(LookupSnapshotResultOutput) } diff --git a/sdk/go/gcp/compute/getSnapshotIamPolicy.go b/sdk/go/gcp/compute/getSnapshotIamPolicy.go index 7f8e53d4e8..9ee54e7d7b 100644 --- a/sdk/go/gcp/compute/getSnapshotIamPolicy.go +++ b/sdk/go/gcp/compute/getSnapshotIamPolicy.go @@ -72,21 +72,11 @@ type LookupSnapshotIamPolicyResult struct { } func LookupSnapshotIamPolicyOutput(ctx *pulumi.Context, args LookupSnapshotIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupSnapshotIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupSnapshotIamPolicyResultOutput, error) { args := v.(LookupSnapshotIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupSnapshotIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:compute/getSnapshotIamPolicy:getSnapshotIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupSnapshotIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupSnapshotIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupSnapshotIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:compute/getSnapshotIamPolicy:getSnapshotIamPolicy", args, LookupSnapshotIamPolicyResultOutput{}, options).(LookupSnapshotIamPolicyResultOutput), nil }).(LookupSnapshotIamPolicyResultOutput) } diff --git a/sdk/go/gcp/compute/getSubnetwork.go b/sdk/go/gcp/compute/getSubnetwork.go index db8e42971a..58a95eeddc 100644 --- a/sdk/go/gcp/compute/getSubnetwork.go +++ b/sdk/go/gcp/compute/getSubnetwork.go @@ -95,21 +95,11 @@ type LookupSubnetworkResult struct { } func LookupSubnetworkOutput(ctx *pulumi.Context, args LookupSubnetworkOutputArgs, opts ...pulumi.InvokeOption) LookupSubnetworkResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupSubnetworkResultOutput, error) { args := v.(LookupSubnetworkArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupSubnetworkResult - secret, err := ctx.InvokePackageRaw("gcp:compute/getSubnetwork:getSubnetwork", args, &rv, "", opts...) - if err != nil { - return LookupSubnetworkResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupSubnetworkResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupSubnetworkResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:compute/getSubnetwork:getSubnetwork", args, LookupSubnetworkResultOutput{}, options).(LookupSubnetworkResultOutput), nil }).(LookupSubnetworkResultOutput) } diff --git a/sdk/go/gcp/compute/getSubnetworkIamPolicy.go b/sdk/go/gcp/compute/getSubnetworkIamPolicy.go index 28fbdc6af7..73a426bf9d 100644 --- a/sdk/go/gcp/compute/getSubnetworkIamPolicy.go +++ b/sdk/go/gcp/compute/getSubnetworkIamPolicy.go @@ -79,21 +79,11 @@ type GetSubnetworkIamPolicyResult struct { } func GetSubnetworkIamPolicyOutput(ctx *pulumi.Context, args GetSubnetworkIamPolicyOutputArgs, opts ...pulumi.InvokeOption) GetSubnetworkIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetSubnetworkIamPolicyResultOutput, error) { args := v.(GetSubnetworkIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetSubnetworkIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:compute/getSubnetworkIamPolicy:getSubnetworkIamPolicy", args, &rv, "", opts...) - if err != nil { - return GetSubnetworkIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetSubnetworkIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(GetSubnetworkIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:compute/getSubnetworkIamPolicy:getSubnetworkIamPolicy", args, GetSubnetworkIamPolicyResultOutput{}, options).(GetSubnetworkIamPolicyResultOutput), nil }).(GetSubnetworkIamPolicyResultOutput) } diff --git a/sdk/go/gcp/compute/getSubnetworks.go b/sdk/go/gcp/compute/getSubnetworks.go index 919e3f16a3..c0cb3aa734 100644 --- a/sdk/go/gcp/compute/getSubnetworks.go +++ b/sdk/go/gcp/compute/getSubnetworks.go @@ -76,21 +76,11 @@ type GetSubnetworksResult struct { } func GetSubnetworksOutput(ctx *pulumi.Context, args GetSubnetworksOutputArgs, opts ...pulumi.InvokeOption) GetSubnetworksResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetSubnetworksResultOutput, error) { args := v.(GetSubnetworksArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetSubnetworksResult - secret, err := ctx.InvokePackageRaw("gcp:compute/getSubnetworks:getSubnetworks", args, &rv, "", opts...) - if err != nil { - return GetSubnetworksResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetSubnetworksResultOutput) - if secret { - return pulumi.ToSecret(output).(GetSubnetworksResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:compute/getSubnetworks:getSubnetworks", args, GetSubnetworksResultOutput{}, options).(GetSubnetworksResultOutput), nil }).(GetSubnetworksResultOutput) } diff --git a/sdk/go/gcp/compute/getVPNGateway.go b/sdk/go/gcp/compute/getVPNGateway.go index 0fcd19a86c..37ab22208a 100644 --- a/sdk/go/gcp/compute/getVPNGateway.go +++ b/sdk/go/gcp/compute/getVPNGateway.go @@ -79,21 +79,11 @@ type LookupVPNGatewayResult struct { } func LookupVPNGatewayOutput(ctx *pulumi.Context, args LookupVPNGatewayOutputArgs, opts ...pulumi.InvokeOption) LookupVPNGatewayResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupVPNGatewayResultOutput, error) { args := v.(LookupVPNGatewayArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupVPNGatewayResult - secret, err := ctx.InvokePackageRaw("gcp:compute/getVPNGateway:getVPNGateway", args, &rv, "", opts...) - if err != nil { - return LookupVPNGatewayResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupVPNGatewayResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupVPNGatewayResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:compute/getVPNGateway:getVPNGateway", args, LookupVPNGatewayResultOutput{}, options).(LookupVPNGatewayResultOutput), nil }).(LookupVPNGatewayResultOutput) } diff --git a/sdk/go/gcp/compute/getZones.go b/sdk/go/gcp/compute/getZones.go index 3edba7599f..2589ff28fb 100644 --- a/sdk/go/gcp/compute/getZones.go +++ b/sdk/go/gcp/compute/getZones.go @@ -46,21 +46,11 @@ type GetZonesResult struct { } func GetZonesOutput(ctx *pulumi.Context, args GetZonesOutputArgs, opts ...pulumi.InvokeOption) GetZonesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetZonesResultOutput, error) { args := v.(GetZonesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetZonesResult - secret, err := ctx.InvokePackageRaw("gcp:compute/getZones:getZones", args, &rv, "", opts...) - if err != nil { - return GetZonesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetZonesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetZonesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:compute/getZones:getZones", args, GetZonesResultOutput{}, options).(GetZonesResultOutput), nil }).(GetZonesResultOutput) } diff --git a/sdk/go/gcp/compute/routerStatus.go b/sdk/go/gcp/compute/routerStatus.go index d59d332bd0..ded70d1f16 100644 --- a/sdk/go/gcp/compute/routerStatus.go +++ b/sdk/go/gcp/compute/routerStatus.go @@ -84,21 +84,11 @@ type RouterStatusResult struct { } func RouterStatusOutput(ctx *pulumi.Context, args RouterStatusOutputArgs, opts ...pulumi.InvokeOption) RouterStatusResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (RouterStatusResultOutput, error) { args := v.(RouterStatusArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv RouterStatusResult - secret, err := ctx.InvokePackageRaw("gcp:compute/routerStatus:RouterStatus", args, &rv, "", opts...) - if err != nil { - return RouterStatusResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(RouterStatusResultOutput) - if secret { - return pulumi.ToSecret(output).(RouterStatusResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:compute/routerStatus:RouterStatus", args, RouterStatusResultOutput{}, options).(RouterStatusResultOutput), nil }).(RouterStatusResultOutput) } diff --git a/sdk/go/gcp/container/getAttachedInstallManifest.go b/sdk/go/gcp/container/getAttachedInstallManifest.go index 86c349edd4..06f217a842 100644 --- a/sdk/go/gcp/container/getAttachedInstallManifest.go +++ b/sdk/go/gcp/container/getAttachedInstallManifest.go @@ -78,21 +78,11 @@ type GetAttachedInstallManifestResult struct { } func GetAttachedInstallManifestOutput(ctx *pulumi.Context, args GetAttachedInstallManifestOutputArgs, opts ...pulumi.InvokeOption) GetAttachedInstallManifestResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetAttachedInstallManifestResultOutput, error) { args := v.(GetAttachedInstallManifestArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetAttachedInstallManifestResult - secret, err := ctx.InvokePackageRaw("gcp:container/getAttachedInstallManifest:getAttachedInstallManifest", args, &rv, "", opts...) - if err != nil { - return GetAttachedInstallManifestResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetAttachedInstallManifestResultOutput) - if secret { - return pulumi.ToSecret(output).(GetAttachedInstallManifestResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:container/getAttachedInstallManifest:getAttachedInstallManifest", args, GetAttachedInstallManifestResultOutput{}, options).(GetAttachedInstallManifestResultOutput), nil }).(GetAttachedInstallManifestResultOutput) } diff --git a/sdk/go/gcp/container/getAttachedVersions.go b/sdk/go/gcp/container/getAttachedVersions.go index 47041a1a0a..95336ad9ef 100644 --- a/sdk/go/gcp/container/getAttachedVersions.go +++ b/sdk/go/gcp/container/getAttachedVersions.go @@ -70,21 +70,11 @@ type GetAttachedVersionsResult struct { } func GetAttachedVersionsOutput(ctx *pulumi.Context, args GetAttachedVersionsOutputArgs, opts ...pulumi.InvokeOption) GetAttachedVersionsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetAttachedVersionsResultOutput, error) { args := v.(GetAttachedVersionsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetAttachedVersionsResult - secret, err := ctx.InvokePackageRaw("gcp:container/getAttachedVersions:getAttachedVersions", args, &rv, "", opts...) - if err != nil { - return GetAttachedVersionsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetAttachedVersionsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetAttachedVersionsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:container/getAttachedVersions:getAttachedVersions", args, GetAttachedVersionsResultOutput{}, options).(GetAttachedVersionsResultOutput), nil }).(GetAttachedVersionsResultOutput) } diff --git a/sdk/go/gcp/container/getAwsVersions.go b/sdk/go/gcp/container/getAwsVersions.go index 7accd02e28..cf9b1f2c60 100644 --- a/sdk/go/gcp/container/getAwsVersions.go +++ b/sdk/go/gcp/container/getAwsVersions.go @@ -72,21 +72,11 @@ type GetAwsVersionsResult struct { } func GetAwsVersionsOutput(ctx *pulumi.Context, args GetAwsVersionsOutputArgs, opts ...pulumi.InvokeOption) GetAwsVersionsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetAwsVersionsResultOutput, error) { args := v.(GetAwsVersionsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetAwsVersionsResult - secret, err := ctx.InvokePackageRaw("gcp:container/getAwsVersions:getAwsVersions", args, &rv, "", opts...) - if err != nil { - return GetAwsVersionsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetAwsVersionsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetAwsVersionsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:container/getAwsVersions:getAwsVersions", args, GetAwsVersionsResultOutput{}, options).(GetAwsVersionsResultOutput), nil }).(GetAwsVersionsResultOutput) } diff --git a/sdk/go/gcp/container/getAzureVersions.go b/sdk/go/gcp/container/getAzureVersions.go index afdad7b34c..c55ba1f9c5 100644 --- a/sdk/go/gcp/container/getAzureVersions.go +++ b/sdk/go/gcp/container/getAzureVersions.go @@ -72,21 +72,11 @@ type GetAzureVersionsResult struct { } func GetAzureVersionsOutput(ctx *pulumi.Context, args GetAzureVersionsOutputArgs, opts ...pulumi.InvokeOption) GetAzureVersionsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetAzureVersionsResultOutput, error) { args := v.(GetAzureVersionsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetAzureVersionsResult - secret, err := ctx.InvokePackageRaw("gcp:container/getAzureVersions:getAzureVersions", args, &rv, "", opts...) - if err != nil { - return GetAzureVersionsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetAzureVersionsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetAzureVersionsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:container/getAzureVersions:getAzureVersions", args, GetAzureVersionsResultOutput{}, options).(GetAzureVersionsResultOutput), nil }).(GetAzureVersionsResultOutput) } diff --git a/sdk/go/gcp/container/getCluster.go b/sdk/go/gcp/container/getCluster.go index 3a9c853bc2..0382285531 100644 --- a/sdk/go/gcp/container/getCluster.go +++ b/sdk/go/gcp/container/getCluster.go @@ -155,21 +155,11 @@ type LookupClusterResult struct { } func LookupClusterOutput(ctx *pulumi.Context, args LookupClusterOutputArgs, opts ...pulumi.InvokeOption) LookupClusterResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupClusterResultOutput, error) { args := v.(LookupClusterArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupClusterResult - secret, err := ctx.InvokePackageRaw("gcp:container/getCluster:getCluster", args, &rv, "", opts...) - if err != nil { - return LookupClusterResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupClusterResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupClusterResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:container/getCluster:getCluster", args, LookupClusterResultOutput{}, options).(LookupClusterResultOutput), nil }).(LookupClusterResultOutput) } diff --git a/sdk/go/gcp/container/getEngineVersions.go b/sdk/go/gcp/container/getEngineVersions.go index 2769b1288d..05d3f9c9a8 100644 --- a/sdk/go/gcp/container/getEngineVersions.go +++ b/sdk/go/gcp/container/getEngineVersions.go @@ -112,21 +112,11 @@ type GetEngineVersionsResult struct { } func GetEngineVersionsOutput(ctx *pulumi.Context, args GetEngineVersionsOutputArgs, opts ...pulumi.InvokeOption) GetEngineVersionsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetEngineVersionsResultOutput, error) { args := v.(GetEngineVersionsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetEngineVersionsResult - secret, err := ctx.InvokePackageRaw("gcp:container/getEngineVersions:getEngineVersions", args, &rv, "", opts...) - if err != nil { - return GetEngineVersionsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetEngineVersionsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetEngineVersionsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:container/getEngineVersions:getEngineVersions", args, GetEngineVersionsResultOutput{}, options).(GetEngineVersionsResultOutput), nil }).(GetEngineVersionsResultOutput) } diff --git a/sdk/go/gcp/container/getRegistryImage.go b/sdk/go/gcp/container/getRegistryImage.go index 9ea39d764f..8c55260fa8 100644 --- a/sdk/go/gcp/container/getRegistryImage.go +++ b/sdk/go/gcp/container/getRegistryImage.go @@ -79,21 +79,11 @@ type GetRegistryImageResult struct { } func GetRegistryImageOutput(ctx *pulumi.Context, args GetRegistryImageOutputArgs, opts ...pulumi.InvokeOption) GetRegistryImageResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetRegistryImageResultOutput, error) { args := v.(GetRegistryImageArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetRegistryImageResult - secret, err := ctx.InvokePackageRaw("gcp:container/getRegistryImage:getRegistryImage", args, &rv, "", opts...) - if err != nil { - return GetRegistryImageResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetRegistryImageResultOutput) - if secret { - return pulumi.ToSecret(output).(GetRegistryImageResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:container/getRegistryImage:getRegistryImage", args, GetRegistryImageResultOutput{}, options).(GetRegistryImageResultOutput), nil }).(GetRegistryImageResultOutput) } diff --git a/sdk/go/gcp/container/getRegistryRepository.go b/sdk/go/gcp/container/getRegistryRepository.go index 20cbef8af1..8faf76793b 100644 --- a/sdk/go/gcp/container/getRegistryRepository.go +++ b/sdk/go/gcp/container/getRegistryRepository.go @@ -68,21 +68,11 @@ type GetRegistryRepositoryResult struct { } func GetRegistryRepositoryOutput(ctx *pulumi.Context, args GetRegistryRepositoryOutputArgs, opts ...pulumi.InvokeOption) GetRegistryRepositoryResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetRegistryRepositoryResultOutput, error) { args := v.(GetRegistryRepositoryArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetRegistryRepositoryResult - secret, err := ctx.InvokePackageRaw("gcp:container/getRegistryRepository:getRegistryRepository", args, &rv, "", opts...) - if err != nil { - return GetRegistryRepositoryResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetRegistryRepositoryResultOutput) - if secret { - return pulumi.ToSecret(output).(GetRegistryRepositoryResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:container/getRegistryRepository:getRegistryRepository", args, GetRegistryRepositoryResultOutput{}, options).(GetRegistryRepositoryResultOutput), nil }).(GetRegistryRepositoryResultOutput) } diff --git a/sdk/go/gcp/containeranalysis/getNoteIamPolicy.go b/sdk/go/gcp/containeranalysis/getNoteIamPolicy.go index dc2137b189..e54b23d00e 100644 --- a/sdk/go/gcp/containeranalysis/getNoteIamPolicy.go +++ b/sdk/go/gcp/containeranalysis/getNoteIamPolicy.go @@ -72,21 +72,11 @@ type LookupNoteIamPolicyResult struct { } func LookupNoteIamPolicyOutput(ctx *pulumi.Context, args LookupNoteIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupNoteIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupNoteIamPolicyResultOutput, error) { args := v.(LookupNoteIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupNoteIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:containeranalysis/getNoteIamPolicy:getNoteIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupNoteIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupNoteIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupNoteIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:containeranalysis/getNoteIamPolicy:getNoteIamPolicy", args, LookupNoteIamPolicyResultOutput{}, options).(LookupNoteIamPolicyResultOutput), nil }).(LookupNoteIamPolicyResultOutput) } diff --git a/sdk/go/gcp/datacatalog/getEntryGroupIamPolicy.go b/sdk/go/gcp/datacatalog/getEntryGroupIamPolicy.go index c785b30a48..3a2ef951a5 100644 --- a/sdk/go/gcp/datacatalog/getEntryGroupIamPolicy.go +++ b/sdk/go/gcp/datacatalog/getEntryGroupIamPolicy.go @@ -73,21 +73,11 @@ type LookupEntryGroupIamPolicyResult struct { } func LookupEntryGroupIamPolicyOutput(ctx *pulumi.Context, args LookupEntryGroupIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupEntryGroupIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupEntryGroupIamPolicyResultOutput, error) { args := v.(LookupEntryGroupIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupEntryGroupIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:datacatalog/getEntryGroupIamPolicy:getEntryGroupIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupEntryGroupIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupEntryGroupIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupEntryGroupIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:datacatalog/getEntryGroupIamPolicy:getEntryGroupIamPolicy", args, LookupEntryGroupIamPolicyResultOutput{}, options).(LookupEntryGroupIamPolicyResultOutput), nil }).(LookupEntryGroupIamPolicyResultOutput) } diff --git a/sdk/go/gcp/datacatalog/getPolicyTagIamPolicy.go b/sdk/go/gcp/datacatalog/getPolicyTagIamPolicy.go index a14e43812f..ffe9f9a226 100644 --- a/sdk/go/gcp/datacatalog/getPolicyTagIamPolicy.go +++ b/sdk/go/gcp/datacatalog/getPolicyTagIamPolicy.go @@ -67,21 +67,11 @@ type LookupPolicyTagIamPolicyResult struct { } func LookupPolicyTagIamPolicyOutput(ctx *pulumi.Context, args LookupPolicyTagIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupPolicyTagIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupPolicyTagIamPolicyResultOutput, error) { args := v.(LookupPolicyTagIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupPolicyTagIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:datacatalog/getPolicyTagIamPolicy:getPolicyTagIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupPolicyTagIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupPolicyTagIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupPolicyTagIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:datacatalog/getPolicyTagIamPolicy:getPolicyTagIamPolicy", args, LookupPolicyTagIamPolicyResultOutput{}, options).(LookupPolicyTagIamPolicyResultOutput), nil }).(LookupPolicyTagIamPolicyResultOutput) } diff --git a/sdk/go/gcp/datacatalog/getTagTemplateIamPolicy.go b/sdk/go/gcp/datacatalog/getTagTemplateIamPolicy.go index 1786622b36..cc7a8a39c6 100644 --- a/sdk/go/gcp/datacatalog/getTagTemplateIamPolicy.go +++ b/sdk/go/gcp/datacatalog/getTagTemplateIamPolicy.go @@ -73,21 +73,11 @@ type LookupTagTemplateIamPolicyResult struct { } func LookupTagTemplateIamPolicyOutput(ctx *pulumi.Context, args LookupTagTemplateIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupTagTemplateIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupTagTemplateIamPolicyResultOutput, error) { args := v.(LookupTagTemplateIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupTagTemplateIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:datacatalog/getTagTemplateIamPolicy:getTagTemplateIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupTagTemplateIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupTagTemplateIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupTagTemplateIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:datacatalog/getTagTemplateIamPolicy:getTagTemplateIamPolicy", args, LookupTagTemplateIamPolicyResultOutput{}, options).(LookupTagTemplateIamPolicyResultOutput), nil }).(LookupTagTemplateIamPolicyResultOutput) } diff --git a/sdk/go/gcp/datacatalog/getTaxonomyIamPolicy.go b/sdk/go/gcp/datacatalog/getTaxonomyIamPolicy.go index 326a4a1957..f4f58ad5e3 100644 --- a/sdk/go/gcp/datacatalog/getTaxonomyIamPolicy.go +++ b/sdk/go/gcp/datacatalog/getTaxonomyIamPolicy.go @@ -73,21 +73,11 @@ type LookupTaxonomyIamPolicyResult struct { } func LookupTaxonomyIamPolicyOutput(ctx *pulumi.Context, args LookupTaxonomyIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupTaxonomyIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupTaxonomyIamPolicyResultOutput, error) { args := v.(LookupTaxonomyIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupTaxonomyIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:datacatalog/getTaxonomyIamPolicy:getTaxonomyIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupTaxonomyIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupTaxonomyIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupTaxonomyIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:datacatalog/getTaxonomyIamPolicy:getTaxonomyIamPolicy", args, LookupTaxonomyIamPolicyResultOutput{}, options).(LookupTaxonomyIamPolicyResultOutput), nil }).(LookupTaxonomyIamPolicyResultOutput) } diff --git a/sdk/go/gcp/dataform/getRepositoryIamPolicy.go b/sdk/go/gcp/dataform/getRepositoryIamPolicy.go index 795b22f043..08c97fe36f 100644 --- a/sdk/go/gcp/dataform/getRepositoryIamPolicy.go +++ b/sdk/go/gcp/dataform/getRepositoryIamPolicy.go @@ -49,21 +49,11 @@ type LookupRepositoryIamPolicyResult struct { } func LookupRepositoryIamPolicyOutput(ctx *pulumi.Context, args LookupRepositoryIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupRepositoryIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupRepositoryIamPolicyResultOutput, error) { args := v.(LookupRepositoryIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupRepositoryIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:dataform/getRepositoryIamPolicy:getRepositoryIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupRepositoryIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupRepositoryIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupRepositoryIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:dataform/getRepositoryIamPolicy:getRepositoryIamPolicy", args, LookupRepositoryIamPolicyResultOutput{}, options).(LookupRepositoryIamPolicyResultOutput), nil }).(LookupRepositoryIamPolicyResultOutput) } diff --git a/sdk/go/gcp/datafusion/getInstanceIamPolicy.go b/sdk/go/gcp/datafusion/getInstanceIamPolicy.go index 8f8f33fe2c..ea72454dfa 100644 --- a/sdk/go/gcp/datafusion/getInstanceIamPolicy.go +++ b/sdk/go/gcp/datafusion/getInstanceIamPolicy.go @@ -79,21 +79,11 @@ type GetInstanceIamPolicyResult struct { } func GetInstanceIamPolicyOutput(ctx *pulumi.Context, args GetInstanceIamPolicyOutputArgs, opts ...pulumi.InvokeOption) GetInstanceIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetInstanceIamPolicyResultOutput, error) { args := v.(GetInstanceIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetInstanceIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:datafusion/getInstanceIamPolicy:getInstanceIamPolicy", args, &rv, "", opts...) - if err != nil { - return GetInstanceIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetInstanceIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(GetInstanceIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:datafusion/getInstanceIamPolicy:getInstanceIamPolicy", args, GetInstanceIamPolicyResultOutput{}, options).(GetInstanceIamPolicyResultOutput), nil }).(GetInstanceIamPolicyResultOutput) } diff --git a/sdk/go/gcp/dataplex/getAspectTypeIamPolicy.go b/sdk/go/gcp/dataplex/getAspectTypeIamPolicy.go index a72436dcd8..2d5a51853b 100644 --- a/sdk/go/gcp/dataplex/getAspectTypeIamPolicy.go +++ b/sdk/go/gcp/dataplex/getAspectTypeIamPolicy.go @@ -78,21 +78,11 @@ type LookupAspectTypeIamPolicyResult struct { } func LookupAspectTypeIamPolicyOutput(ctx *pulumi.Context, args LookupAspectTypeIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupAspectTypeIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupAspectTypeIamPolicyResultOutput, error) { args := v.(LookupAspectTypeIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupAspectTypeIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:dataplex/getAspectTypeIamPolicy:getAspectTypeIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupAspectTypeIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupAspectTypeIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupAspectTypeIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:dataplex/getAspectTypeIamPolicy:getAspectTypeIamPolicy", args, LookupAspectTypeIamPolicyResultOutput{}, options).(LookupAspectTypeIamPolicyResultOutput), nil }).(LookupAspectTypeIamPolicyResultOutput) } diff --git a/sdk/go/gcp/dataplex/getAssetIamPolicy.go b/sdk/go/gcp/dataplex/getAssetIamPolicy.go index 9abfe89792..eac9dc7a4f 100644 --- a/sdk/go/gcp/dataplex/getAssetIamPolicy.go +++ b/sdk/go/gcp/dataplex/getAssetIamPolicy.go @@ -81,21 +81,11 @@ type LookupAssetIamPolicyResult struct { } func LookupAssetIamPolicyOutput(ctx *pulumi.Context, args LookupAssetIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupAssetIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupAssetIamPolicyResultOutput, error) { args := v.(LookupAssetIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupAssetIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:dataplex/getAssetIamPolicy:getAssetIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupAssetIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupAssetIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupAssetIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:dataplex/getAssetIamPolicy:getAssetIamPolicy", args, LookupAssetIamPolicyResultOutput{}, options).(LookupAssetIamPolicyResultOutput), nil }).(LookupAssetIamPolicyResultOutput) } diff --git a/sdk/go/gcp/dataplex/getDatascanIamPolicy.go b/sdk/go/gcp/dataplex/getDatascanIamPolicy.go index c29c2d472a..a3ac3169e4 100644 --- a/sdk/go/gcp/dataplex/getDatascanIamPolicy.go +++ b/sdk/go/gcp/dataplex/getDatascanIamPolicy.go @@ -78,21 +78,11 @@ type LookupDatascanIamPolicyResult struct { } func LookupDatascanIamPolicyOutput(ctx *pulumi.Context, args LookupDatascanIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupDatascanIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupDatascanIamPolicyResultOutput, error) { args := v.(LookupDatascanIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupDatascanIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:dataplex/getDatascanIamPolicy:getDatascanIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupDatascanIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupDatascanIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupDatascanIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:dataplex/getDatascanIamPolicy:getDatascanIamPolicy", args, LookupDatascanIamPolicyResultOutput{}, options).(LookupDatascanIamPolicyResultOutput), nil }).(LookupDatascanIamPolicyResultOutput) } diff --git a/sdk/go/gcp/dataplex/getEntryGroupIamPolicy.go b/sdk/go/gcp/dataplex/getEntryGroupIamPolicy.go index bac67c5f3c..2c9e006727 100644 --- a/sdk/go/gcp/dataplex/getEntryGroupIamPolicy.go +++ b/sdk/go/gcp/dataplex/getEntryGroupIamPolicy.go @@ -78,21 +78,11 @@ type LookupEntryGroupIamPolicyResult struct { } func LookupEntryGroupIamPolicyOutput(ctx *pulumi.Context, args LookupEntryGroupIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupEntryGroupIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupEntryGroupIamPolicyResultOutput, error) { args := v.(LookupEntryGroupIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupEntryGroupIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:dataplex/getEntryGroupIamPolicy:getEntryGroupIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupEntryGroupIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupEntryGroupIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupEntryGroupIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:dataplex/getEntryGroupIamPolicy:getEntryGroupIamPolicy", args, LookupEntryGroupIamPolicyResultOutput{}, options).(LookupEntryGroupIamPolicyResultOutput), nil }).(LookupEntryGroupIamPolicyResultOutput) } diff --git a/sdk/go/gcp/dataplex/getEntryTypeIamPolicy.go b/sdk/go/gcp/dataplex/getEntryTypeIamPolicy.go index b108db76d3..acd711ce45 100644 --- a/sdk/go/gcp/dataplex/getEntryTypeIamPolicy.go +++ b/sdk/go/gcp/dataplex/getEntryTypeIamPolicy.go @@ -78,21 +78,11 @@ type LookupEntryTypeIamPolicyResult struct { } func LookupEntryTypeIamPolicyOutput(ctx *pulumi.Context, args LookupEntryTypeIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupEntryTypeIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupEntryTypeIamPolicyResultOutput, error) { args := v.(LookupEntryTypeIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupEntryTypeIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:dataplex/getEntryTypeIamPolicy:getEntryTypeIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupEntryTypeIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupEntryTypeIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupEntryTypeIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:dataplex/getEntryTypeIamPolicy:getEntryTypeIamPolicy", args, LookupEntryTypeIamPolicyResultOutput{}, options).(LookupEntryTypeIamPolicyResultOutput), nil }).(LookupEntryTypeIamPolicyResultOutput) } diff --git a/sdk/go/gcp/dataplex/getLakeIamPolicy.go b/sdk/go/gcp/dataplex/getLakeIamPolicy.go index 15d50e9166..fd792e17cc 100644 --- a/sdk/go/gcp/dataplex/getLakeIamPolicy.go +++ b/sdk/go/gcp/dataplex/getLakeIamPolicy.go @@ -75,21 +75,11 @@ type LookupLakeIamPolicyResult struct { } func LookupLakeIamPolicyOutput(ctx *pulumi.Context, args LookupLakeIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupLakeIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupLakeIamPolicyResultOutput, error) { args := v.(LookupLakeIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupLakeIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:dataplex/getLakeIamPolicy:getLakeIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupLakeIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupLakeIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupLakeIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:dataplex/getLakeIamPolicy:getLakeIamPolicy", args, LookupLakeIamPolicyResultOutput{}, options).(LookupLakeIamPolicyResultOutput), nil }).(LookupLakeIamPolicyResultOutput) } diff --git a/sdk/go/gcp/dataplex/getTaskIamPolicy.go b/sdk/go/gcp/dataplex/getTaskIamPolicy.go index b59d9d7d2e..41c358cb5a 100644 --- a/sdk/go/gcp/dataplex/getTaskIamPolicy.go +++ b/sdk/go/gcp/dataplex/getTaskIamPolicy.go @@ -83,21 +83,11 @@ type LookupTaskIamPolicyResult struct { } func LookupTaskIamPolicyOutput(ctx *pulumi.Context, args LookupTaskIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupTaskIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupTaskIamPolicyResultOutput, error) { args := v.(LookupTaskIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupTaskIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:dataplex/getTaskIamPolicy:getTaskIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupTaskIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupTaskIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupTaskIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:dataplex/getTaskIamPolicy:getTaskIamPolicy", args, LookupTaskIamPolicyResultOutput{}, options).(LookupTaskIamPolicyResultOutput), nil }).(LookupTaskIamPolicyResultOutput) } diff --git a/sdk/go/gcp/dataplex/getZoneIamPolicy.go b/sdk/go/gcp/dataplex/getZoneIamPolicy.go index 85b0825a62..f0cc50dca9 100644 --- a/sdk/go/gcp/dataplex/getZoneIamPolicy.go +++ b/sdk/go/gcp/dataplex/getZoneIamPolicy.go @@ -78,21 +78,11 @@ type LookupZoneIamPolicyResult struct { } func LookupZoneIamPolicyOutput(ctx *pulumi.Context, args LookupZoneIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupZoneIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupZoneIamPolicyResultOutput, error) { args := v.(LookupZoneIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupZoneIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:dataplex/getZoneIamPolicy:getZoneIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupZoneIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupZoneIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupZoneIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:dataplex/getZoneIamPolicy:getZoneIamPolicy", args, LookupZoneIamPolicyResultOutput{}, options).(LookupZoneIamPolicyResultOutput), nil }).(LookupZoneIamPolicyResultOutput) } diff --git a/sdk/go/gcp/dataproc/getAutoscalingPolicyIamPolicy.go b/sdk/go/gcp/dataproc/getAutoscalingPolicyIamPolicy.go index 9f3b4a0f38..47f3fe348e 100644 --- a/sdk/go/gcp/dataproc/getAutoscalingPolicyIamPolicy.go +++ b/sdk/go/gcp/dataproc/getAutoscalingPolicyIamPolicy.go @@ -83,21 +83,11 @@ type LookupAutoscalingPolicyIamPolicyResult struct { } func LookupAutoscalingPolicyIamPolicyOutput(ctx *pulumi.Context, args LookupAutoscalingPolicyIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupAutoscalingPolicyIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupAutoscalingPolicyIamPolicyResultOutput, error) { args := v.(LookupAutoscalingPolicyIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupAutoscalingPolicyIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:dataproc/getAutoscalingPolicyIamPolicy:getAutoscalingPolicyIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupAutoscalingPolicyIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupAutoscalingPolicyIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupAutoscalingPolicyIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:dataproc/getAutoscalingPolicyIamPolicy:getAutoscalingPolicyIamPolicy", args, LookupAutoscalingPolicyIamPolicyResultOutput{}, options).(LookupAutoscalingPolicyIamPolicyResultOutput), nil }).(LookupAutoscalingPolicyIamPolicyResultOutput) } diff --git a/sdk/go/gcp/dataproc/getClusterIamPolicy.go b/sdk/go/gcp/dataproc/getClusterIamPolicy.go index fc736c93e5..013ddc2543 100644 --- a/sdk/go/gcp/dataproc/getClusterIamPolicy.go +++ b/sdk/go/gcp/dataproc/getClusterIamPolicy.go @@ -71,21 +71,11 @@ type GetClusterIamPolicyResult struct { } func GetClusterIamPolicyOutput(ctx *pulumi.Context, args GetClusterIamPolicyOutputArgs, opts ...pulumi.InvokeOption) GetClusterIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetClusterIamPolicyResultOutput, error) { args := v.(GetClusterIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetClusterIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:dataproc/getClusterIamPolicy:getClusterIamPolicy", args, &rv, "", opts...) - if err != nil { - return GetClusterIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetClusterIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(GetClusterIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:dataproc/getClusterIamPolicy:getClusterIamPolicy", args, GetClusterIamPolicyResultOutput{}, options).(GetClusterIamPolicyResultOutput), nil }).(GetClusterIamPolicyResultOutput) } diff --git a/sdk/go/gcp/dataproc/getJobIamPolicy.go b/sdk/go/gcp/dataproc/getJobIamPolicy.go index bf59532bb4..70369a5820 100644 --- a/sdk/go/gcp/dataproc/getJobIamPolicy.go +++ b/sdk/go/gcp/dataproc/getJobIamPolicy.go @@ -71,21 +71,11 @@ type GetJobIamPolicyResult struct { } func GetJobIamPolicyOutput(ctx *pulumi.Context, args GetJobIamPolicyOutputArgs, opts ...pulumi.InvokeOption) GetJobIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetJobIamPolicyResultOutput, error) { args := v.(GetJobIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetJobIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:dataproc/getJobIamPolicy:getJobIamPolicy", args, &rv, "", opts...) - if err != nil { - return GetJobIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetJobIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(GetJobIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:dataproc/getJobIamPolicy:getJobIamPolicy", args, GetJobIamPolicyResultOutput{}, options).(GetJobIamPolicyResultOutput), nil }).(GetJobIamPolicyResultOutput) } diff --git a/sdk/go/gcp/dataproc/getMetastoreFederationIamPolicy.go b/sdk/go/gcp/dataproc/getMetastoreFederationIamPolicy.go index d8cdfab95c..0d9e97c268 100644 --- a/sdk/go/gcp/dataproc/getMetastoreFederationIamPolicy.go +++ b/sdk/go/gcp/dataproc/getMetastoreFederationIamPolicy.go @@ -78,21 +78,11 @@ type LookupMetastoreFederationIamPolicyResult struct { } func LookupMetastoreFederationIamPolicyOutput(ctx *pulumi.Context, args LookupMetastoreFederationIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupMetastoreFederationIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupMetastoreFederationIamPolicyResultOutput, error) { args := v.(LookupMetastoreFederationIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupMetastoreFederationIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:dataproc/getMetastoreFederationIamPolicy:getMetastoreFederationIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupMetastoreFederationIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupMetastoreFederationIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupMetastoreFederationIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:dataproc/getMetastoreFederationIamPolicy:getMetastoreFederationIamPolicy", args, LookupMetastoreFederationIamPolicyResultOutput{}, options).(LookupMetastoreFederationIamPolicyResultOutput), nil }).(LookupMetastoreFederationIamPolicyResultOutput) } diff --git a/sdk/go/gcp/dataproc/getMetastoreService.go b/sdk/go/gcp/dataproc/getMetastoreService.go index 463ea4bb98..ed70e6e2fb 100644 --- a/sdk/go/gcp/dataproc/getMetastoreService.go +++ b/sdk/go/gcp/dataproc/getMetastoreService.go @@ -95,21 +95,11 @@ type LookupMetastoreServiceResult struct { } func LookupMetastoreServiceOutput(ctx *pulumi.Context, args LookupMetastoreServiceOutputArgs, opts ...pulumi.InvokeOption) LookupMetastoreServiceResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupMetastoreServiceResultOutput, error) { args := v.(LookupMetastoreServiceArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupMetastoreServiceResult - secret, err := ctx.InvokePackageRaw("gcp:dataproc/getMetastoreService:getMetastoreService", args, &rv, "", opts...) - if err != nil { - return LookupMetastoreServiceResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupMetastoreServiceResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupMetastoreServiceResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:dataproc/getMetastoreService:getMetastoreService", args, LookupMetastoreServiceResultOutput{}, options).(LookupMetastoreServiceResultOutput), nil }).(LookupMetastoreServiceResultOutput) } diff --git a/sdk/go/gcp/dataproc/getMetastoreServiceIamPolicy.go b/sdk/go/gcp/dataproc/getMetastoreServiceIamPolicy.go index ed2a1d2f73..eb3e33535f 100644 --- a/sdk/go/gcp/dataproc/getMetastoreServiceIamPolicy.go +++ b/sdk/go/gcp/dataproc/getMetastoreServiceIamPolicy.go @@ -79,21 +79,11 @@ type LookupMetastoreServiceIamPolicyResult struct { } func LookupMetastoreServiceIamPolicyOutput(ctx *pulumi.Context, args LookupMetastoreServiceIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupMetastoreServiceIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupMetastoreServiceIamPolicyResultOutput, error) { args := v.(LookupMetastoreServiceIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupMetastoreServiceIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:dataproc/getMetastoreServiceIamPolicy:getMetastoreServiceIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupMetastoreServiceIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupMetastoreServiceIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupMetastoreServiceIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:dataproc/getMetastoreServiceIamPolicy:getMetastoreServiceIamPolicy", args, LookupMetastoreServiceIamPolicyResultOutput{}, options).(LookupMetastoreServiceIamPolicyResultOutput), nil }).(LookupMetastoreServiceIamPolicyResultOutput) } diff --git a/sdk/go/gcp/datastream/getStaticIps.go b/sdk/go/gcp/datastream/getStaticIps.go index 0d6a665f74..3341b3fc6b 100644 --- a/sdk/go/gcp/datastream/getStaticIps.go +++ b/sdk/go/gcp/datastream/getStaticIps.go @@ -70,21 +70,11 @@ type GetStaticIpsResult struct { } func GetStaticIpsOutput(ctx *pulumi.Context, args GetStaticIpsOutputArgs, opts ...pulumi.InvokeOption) GetStaticIpsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetStaticIpsResultOutput, error) { args := v.(GetStaticIpsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetStaticIpsResult - secret, err := ctx.InvokePackageRaw("gcp:datastream/getStaticIps:getStaticIps", args, &rv, "", opts...) - if err != nil { - return GetStaticIpsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetStaticIpsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetStaticIpsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:datastream/getStaticIps:getStaticIps", args, GetStaticIpsResultOutput{}, options).(GetStaticIpsResultOutput), nil }).(GetStaticIpsResultOutput) } diff --git a/sdk/go/gcp/dns/getKeys.go b/sdk/go/gcp/dns/getKeys.go index 4955fca9b7..71c0210788 100644 --- a/sdk/go/gcp/dns/getKeys.go +++ b/sdk/go/gcp/dns/getKeys.go @@ -89,21 +89,11 @@ type GetKeysResult struct { } func GetKeysOutput(ctx *pulumi.Context, args GetKeysOutputArgs, opts ...pulumi.InvokeOption) GetKeysResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetKeysResultOutput, error) { args := v.(GetKeysArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetKeysResult - secret, err := ctx.InvokePackageRaw("gcp:dns/getKeys:getKeys", args, &rv, "", opts...) - if err != nil { - return GetKeysResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetKeysResultOutput) - if secret { - return pulumi.ToSecret(output).(GetKeysResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:dns/getKeys:getKeys", args, GetKeysResultOutput{}, options).(GetKeysResultOutput), nil }).(GetKeysResultOutput) } diff --git a/sdk/go/gcp/dns/getManagedZone.go b/sdk/go/gcp/dns/getManagedZone.go index 9e8d84ac0b..53649261e1 100644 --- a/sdk/go/gcp/dns/getManagedZone.go +++ b/sdk/go/gcp/dns/getManagedZone.go @@ -92,21 +92,11 @@ type LookupManagedZoneResult struct { } func LookupManagedZoneOutput(ctx *pulumi.Context, args LookupManagedZoneOutputArgs, opts ...pulumi.InvokeOption) LookupManagedZoneResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupManagedZoneResultOutput, error) { args := v.(LookupManagedZoneArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupManagedZoneResult - secret, err := ctx.InvokePackageRaw("gcp:dns/getManagedZone:getManagedZone", args, &rv, "", opts...) - if err != nil { - return LookupManagedZoneResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupManagedZoneResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupManagedZoneResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:dns/getManagedZone:getManagedZone", args, LookupManagedZoneResultOutput{}, options).(LookupManagedZoneResultOutput), nil }).(LookupManagedZoneResultOutput) } diff --git a/sdk/go/gcp/dns/getManagedZoneIamPolicy.go b/sdk/go/gcp/dns/getManagedZoneIamPolicy.go index 2dfca7439f..d4b9771678 100644 --- a/sdk/go/gcp/dns/getManagedZoneIamPolicy.go +++ b/sdk/go/gcp/dns/getManagedZoneIamPolicy.go @@ -72,21 +72,11 @@ type GetManagedZoneIamPolicyResult struct { } func GetManagedZoneIamPolicyOutput(ctx *pulumi.Context, args GetManagedZoneIamPolicyOutputArgs, opts ...pulumi.InvokeOption) GetManagedZoneIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetManagedZoneIamPolicyResultOutput, error) { args := v.(GetManagedZoneIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetManagedZoneIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:dns/getManagedZoneIamPolicy:getManagedZoneIamPolicy", args, &rv, "", opts...) - if err != nil { - return GetManagedZoneIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetManagedZoneIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(GetManagedZoneIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:dns/getManagedZoneIamPolicy:getManagedZoneIamPolicy", args, GetManagedZoneIamPolicyResultOutput{}, options).(GetManagedZoneIamPolicyResultOutput), nil }).(GetManagedZoneIamPolicyResultOutput) } diff --git a/sdk/go/gcp/dns/getManagedZones.go b/sdk/go/gcp/dns/getManagedZones.go index 06be532017..75ad9e20aa 100644 --- a/sdk/go/gcp/dns/getManagedZones.go +++ b/sdk/go/gcp/dns/getManagedZones.go @@ -65,21 +65,11 @@ type GetManagedZonesResult struct { } func GetManagedZonesOutput(ctx *pulumi.Context, args GetManagedZonesOutputArgs, opts ...pulumi.InvokeOption) GetManagedZonesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetManagedZonesResultOutput, error) { args := v.(GetManagedZonesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetManagedZonesResult - secret, err := ctx.InvokePackageRaw("gcp:dns/getManagedZones:getManagedZones", args, &rv, "", opts...) - if err != nil { - return GetManagedZonesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetManagedZonesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetManagedZonesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:dns/getManagedZones:getManagedZones", args, GetManagedZonesResultOutput{}, options).(GetManagedZonesResultOutput), nil }).(GetManagedZonesResultOutput) } diff --git a/sdk/go/gcp/dns/getRecordSet.go b/sdk/go/gcp/dns/getRecordSet.go index 2f3b6c0226..870bdb27c9 100644 --- a/sdk/go/gcp/dns/getRecordSet.go +++ b/sdk/go/gcp/dns/getRecordSet.go @@ -89,21 +89,11 @@ type LookupRecordSetResult struct { } func LookupRecordSetOutput(ctx *pulumi.Context, args LookupRecordSetOutputArgs, opts ...pulumi.InvokeOption) LookupRecordSetResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupRecordSetResultOutput, error) { args := v.(LookupRecordSetArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupRecordSetResult - secret, err := ctx.InvokePackageRaw("gcp:dns/getRecordSet:getRecordSet", args, &rv, "", opts...) - if err != nil { - return LookupRecordSetResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupRecordSetResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupRecordSetResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:dns/getRecordSet:getRecordSet", args, LookupRecordSetResultOutput{}, options).(LookupRecordSetResultOutput), nil }).(LookupRecordSetResultOutput) } diff --git a/sdk/go/gcp/endpoints/getServiceConsumersIamPolicy.go b/sdk/go/gcp/endpoints/getServiceConsumersIamPolicy.go index 17e55746ce..9c2834d7a4 100644 --- a/sdk/go/gcp/endpoints/getServiceConsumersIamPolicy.go +++ b/sdk/go/gcp/endpoints/getServiceConsumersIamPolicy.go @@ -42,21 +42,11 @@ type GetServiceConsumersIamPolicyResult struct { } func GetServiceConsumersIamPolicyOutput(ctx *pulumi.Context, args GetServiceConsumersIamPolicyOutputArgs, opts ...pulumi.InvokeOption) GetServiceConsumersIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetServiceConsumersIamPolicyResultOutput, error) { args := v.(GetServiceConsumersIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetServiceConsumersIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:endpoints/getServiceConsumersIamPolicy:getServiceConsumersIamPolicy", args, &rv, "", opts...) - if err != nil { - return GetServiceConsumersIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetServiceConsumersIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(GetServiceConsumersIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:endpoints/getServiceConsumersIamPolicy:getServiceConsumersIamPolicy", args, GetServiceConsumersIamPolicyResultOutput{}, options).(GetServiceConsumersIamPolicyResultOutput), nil }).(GetServiceConsumersIamPolicyResultOutput) } diff --git a/sdk/go/gcp/endpoints/getServiceIamPolicy.go b/sdk/go/gcp/endpoints/getServiceIamPolicy.go index 93f300ae92..c52a01ad7d 100644 --- a/sdk/go/gcp/endpoints/getServiceIamPolicy.go +++ b/sdk/go/gcp/endpoints/getServiceIamPolicy.go @@ -66,21 +66,11 @@ type LookupServiceIamPolicyResult struct { } func LookupServiceIamPolicyOutput(ctx *pulumi.Context, args LookupServiceIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupServiceIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupServiceIamPolicyResultOutput, error) { args := v.(LookupServiceIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupServiceIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:endpoints/getServiceIamPolicy:getServiceIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupServiceIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupServiceIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupServiceIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:endpoints/getServiceIamPolicy:getServiceIamPolicy", args, LookupServiceIamPolicyResultOutput{}, options).(LookupServiceIamPolicyResultOutput), nil }).(LookupServiceIamPolicyResultOutput) } diff --git a/sdk/go/gcp/filestore/getInstance.go b/sdk/go/gcp/filestore/getInstance.go index 12158200fe..713225ce5b 100644 --- a/sdk/go/gcp/filestore/getInstance.go +++ b/sdk/go/gcp/filestore/getInstance.go @@ -91,21 +91,11 @@ type LookupInstanceResult struct { } func LookupInstanceOutput(ctx *pulumi.Context, args LookupInstanceOutputArgs, opts ...pulumi.InvokeOption) LookupInstanceResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupInstanceResultOutput, error) { args := v.(LookupInstanceArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupInstanceResult - secret, err := ctx.InvokePackageRaw("gcp:filestore/getInstance:getInstance", args, &rv, "", opts...) - if err != nil { - return LookupInstanceResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupInstanceResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupInstanceResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:filestore/getInstance:getInstance", args, LookupInstanceResultOutput{}, options).(LookupInstanceResultOutput), nil }).(LookupInstanceResultOutput) } diff --git a/sdk/go/gcp/firebase/getAndroidApp.go b/sdk/go/gcp/firebase/getAndroidApp.go index 4c597b65ee..9de931a3db 100644 --- a/sdk/go/gcp/firebase/getAndroidApp.go +++ b/sdk/go/gcp/firebase/getAndroidApp.go @@ -59,21 +59,11 @@ type LookupAndroidAppResult struct { } func LookupAndroidAppOutput(ctx *pulumi.Context, args LookupAndroidAppOutputArgs, opts ...pulumi.InvokeOption) LookupAndroidAppResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupAndroidAppResultOutput, error) { args := v.(LookupAndroidAppArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupAndroidAppResult - secret, err := ctx.InvokePackageRaw("gcp:firebase/getAndroidApp:getAndroidApp", args, &rv, "", opts...) - if err != nil { - return LookupAndroidAppResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupAndroidAppResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupAndroidAppResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:firebase/getAndroidApp:getAndroidApp", args, LookupAndroidAppResultOutput{}, options).(LookupAndroidAppResultOutput), nil }).(LookupAndroidAppResultOutput) } diff --git a/sdk/go/gcp/firebase/getAndroidAppConfig.go b/sdk/go/gcp/firebase/getAndroidAppConfig.go index 15b6b2c926..0fc0d92ec0 100644 --- a/sdk/go/gcp/firebase/getAndroidAppConfig.go +++ b/sdk/go/gcp/firebase/getAndroidAppConfig.go @@ -37,21 +37,11 @@ type GetAndroidAppConfigResult struct { } func GetAndroidAppConfigOutput(ctx *pulumi.Context, args GetAndroidAppConfigOutputArgs, opts ...pulumi.InvokeOption) GetAndroidAppConfigResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetAndroidAppConfigResultOutput, error) { args := v.(GetAndroidAppConfigArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetAndroidAppConfigResult - secret, err := ctx.InvokePackageRaw("gcp:firebase/getAndroidAppConfig:getAndroidAppConfig", args, &rv, "", opts...) - if err != nil { - return GetAndroidAppConfigResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetAndroidAppConfigResultOutput) - if secret { - return pulumi.ToSecret(output).(GetAndroidAppConfigResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:firebase/getAndroidAppConfig:getAndroidAppConfig", args, GetAndroidAppConfigResultOutput{}, options).(GetAndroidAppConfigResultOutput), nil }).(GetAndroidAppConfigResultOutput) } diff --git a/sdk/go/gcp/firebase/getAppleApp.go b/sdk/go/gcp/firebase/getAppleApp.go index 884ff776a1..81d9ca3d9b 100644 --- a/sdk/go/gcp/firebase/getAppleApp.go +++ b/sdk/go/gcp/firebase/getAppleApp.go @@ -56,21 +56,11 @@ type LookupAppleAppResult struct { } func LookupAppleAppOutput(ctx *pulumi.Context, args LookupAppleAppOutputArgs, opts ...pulumi.InvokeOption) LookupAppleAppResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupAppleAppResultOutput, error) { args := v.(LookupAppleAppArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupAppleAppResult - secret, err := ctx.InvokePackageRaw("gcp:firebase/getAppleApp:getAppleApp", args, &rv, "", opts...) - if err != nil { - return LookupAppleAppResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupAppleAppResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupAppleAppResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:firebase/getAppleApp:getAppleApp", args, LookupAppleAppResultOutput{}, options).(LookupAppleAppResultOutput), nil }).(LookupAppleAppResultOutput) } diff --git a/sdk/go/gcp/firebase/getAppleAppConfig.go b/sdk/go/gcp/firebase/getAppleAppConfig.go index 38ce23024c..0f2bd6ff90 100644 --- a/sdk/go/gcp/firebase/getAppleAppConfig.go +++ b/sdk/go/gcp/firebase/getAppleAppConfig.go @@ -44,21 +44,11 @@ type GetAppleAppConfigResult struct { } func GetAppleAppConfigOutput(ctx *pulumi.Context, args GetAppleAppConfigOutputArgs, opts ...pulumi.InvokeOption) GetAppleAppConfigResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetAppleAppConfigResultOutput, error) { args := v.(GetAppleAppConfigArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetAppleAppConfigResult - secret, err := ctx.InvokePackageRaw("gcp:firebase/getAppleAppConfig:getAppleAppConfig", args, &rv, "", opts...) - if err != nil { - return GetAppleAppConfigResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetAppleAppConfigResultOutput) - if secret { - return pulumi.ToSecret(output).(GetAppleAppConfigResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:firebase/getAppleAppConfig:getAppleAppConfig", args, GetAppleAppConfigResultOutput{}, options).(GetAppleAppConfigResultOutput), nil }).(GetAppleAppConfigResultOutput) } diff --git a/sdk/go/gcp/firebase/getHostingChannel.go b/sdk/go/gcp/firebase/getHostingChannel.go index 825fc57366..f65a1d19e9 100644 --- a/sdk/go/gcp/firebase/getHostingChannel.go +++ b/sdk/go/gcp/firebase/getHostingChannel.go @@ -46,21 +46,11 @@ type LookupHostingChannelResult struct { } func LookupHostingChannelOutput(ctx *pulumi.Context, args LookupHostingChannelOutputArgs, opts ...pulumi.InvokeOption) LookupHostingChannelResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupHostingChannelResultOutput, error) { args := v.(LookupHostingChannelArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupHostingChannelResult - secret, err := ctx.InvokePackageRaw("gcp:firebase/getHostingChannel:getHostingChannel", args, &rv, "", opts...) - if err != nil { - return LookupHostingChannelResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupHostingChannelResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupHostingChannelResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:firebase/getHostingChannel:getHostingChannel", args, LookupHostingChannelResultOutput{}, options).(LookupHostingChannelResultOutput), nil }).(LookupHostingChannelResultOutput) } diff --git a/sdk/go/gcp/firebase/getWebApp.go b/sdk/go/gcp/firebase/getWebApp.go index 63f2cbce63..99e6fa7887 100644 --- a/sdk/go/gcp/firebase/getWebApp.go +++ b/sdk/go/gcp/firebase/getWebApp.go @@ -51,21 +51,11 @@ type LookupWebAppResult struct { } func LookupWebAppOutput(ctx *pulumi.Context, args LookupWebAppOutputArgs, opts ...pulumi.InvokeOption) LookupWebAppResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupWebAppResultOutput, error) { args := v.(LookupWebAppArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupWebAppResult - secret, err := ctx.InvokePackageRaw("gcp:firebase/getWebApp:getWebApp", args, &rv, "", opts...) - if err != nil { - return LookupWebAppResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupWebAppResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupWebAppResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:firebase/getWebApp:getWebApp", args, LookupWebAppResultOutput{}, options).(LookupWebAppResultOutput), nil }).(LookupWebAppResultOutput) } diff --git a/sdk/go/gcp/firebase/getWebAppConfig.go b/sdk/go/gcp/firebase/getWebAppConfig.go index 4f7f004369..0019c00d2d 100644 --- a/sdk/go/gcp/firebase/getWebAppConfig.go +++ b/sdk/go/gcp/firebase/getWebAppConfig.go @@ -70,21 +70,11 @@ type GetWebAppConfigResult struct { } func GetWebAppConfigOutput(ctx *pulumi.Context, args GetWebAppConfigOutputArgs, opts ...pulumi.InvokeOption) GetWebAppConfigResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetWebAppConfigResultOutput, error) { args := v.(GetWebAppConfigArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetWebAppConfigResult - secret, err := ctx.InvokePackageRaw("gcp:firebase/getWebAppConfig:getWebAppConfig", args, &rv, "", opts...) - if err != nil { - return GetWebAppConfigResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetWebAppConfigResultOutput) - if secret { - return pulumi.ToSecret(output).(GetWebAppConfigResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:firebase/getWebAppConfig:getWebAppConfig", args, GetWebAppConfigResultOutput{}, options).(GetWebAppConfigResultOutput), nil }).(GetWebAppConfigResultOutput) } diff --git a/sdk/go/gcp/folder/getIamPolicy.go b/sdk/go/gcp/folder/getIamPolicy.go index 241ebd9acd..561fff643d 100644 --- a/sdk/go/gcp/folder/getIamPolicy.go +++ b/sdk/go/gcp/folder/getIamPolicy.go @@ -66,21 +66,11 @@ type GetIamPolicyResult struct { } func GetIamPolicyOutput(ctx *pulumi.Context, args GetIamPolicyOutputArgs, opts ...pulumi.InvokeOption) GetIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetIamPolicyResultOutput, error) { args := v.(GetIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:folder/getIamPolicy:getIamPolicy", args, &rv, "", opts...) - if err != nil { - return GetIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(GetIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:folder/getIamPolicy:getIamPolicy", args, GetIamPolicyResultOutput{}, options).(GetIamPolicyResultOutput), nil }).(GetIamPolicyResultOutput) } diff --git a/sdk/go/gcp/folder/getOrganizationPolicy.go b/sdk/go/gcp/folder/getOrganizationPolicy.go index 1928b43e94..0e29c33ea3 100644 --- a/sdk/go/gcp/folder/getOrganizationPolicy.go +++ b/sdk/go/gcp/folder/getOrganizationPolicy.go @@ -75,21 +75,11 @@ type LookupOrganizationPolicyResult struct { } func LookupOrganizationPolicyOutput(ctx *pulumi.Context, args LookupOrganizationPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupOrganizationPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupOrganizationPolicyResultOutput, error) { args := v.(LookupOrganizationPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupOrganizationPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:folder/getOrganizationPolicy:getOrganizationPolicy", args, &rv, "", opts...) - if err != nil { - return LookupOrganizationPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupOrganizationPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupOrganizationPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:folder/getOrganizationPolicy:getOrganizationPolicy", args, LookupOrganizationPolicyResultOutput{}, options).(LookupOrganizationPolicyResultOutput), nil }).(LookupOrganizationPolicyResultOutput) } diff --git a/sdk/go/gcp/gemini/getRepositoryGroupIamPolicy.go b/sdk/go/gcp/gemini/getRepositoryGroupIamPolicy.go index 581b04b6a9..9e8c692bac 100644 --- a/sdk/go/gcp/gemini/getRepositoryGroupIamPolicy.go +++ b/sdk/go/gcp/gemini/getRepositoryGroupIamPolicy.go @@ -50,21 +50,11 @@ type LookupRepositoryGroupIamPolicyResult struct { } func LookupRepositoryGroupIamPolicyOutput(ctx *pulumi.Context, args LookupRepositoryGroupIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupRepositoryGroupIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupRepositoryGroupIamPolicyResultOutput, error) { args := v.(LookupRepositoryGroupIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupRepositoryGroupIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:gemini/getRepositoryGroupIamPolicy:getRepositoryGroupIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupRepositoryGroupIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupRepositoryGroupIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupRepositoryGroupIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:gemini/getRepositoryGroupIamPolicy:getRepositoryGroupIamPolicy", args, LookupRepositoryGroupIamPolicyResultOutput{}, options).(LookupRepositoryGroupIamPolicyResultOutput), nil }).(LookupRepositoryGroupIamPolicyResultOutput) } diff --git a/sdk/go/gcp/gkebackup/getBackupPlanIamPolicy.go b/sdk/go/gcp/gkebackup/getBackupPlanIamPolicy.go index 4730d29579..6f37a5d65d 100644 --- a/sdk/go/gcp/gkebackup/getBackupPlanIamPolicy.go +++ b/sdk/go/gcp/gkebackup/getBackupPlanIamPolicy.go @@ -79,21 +79,11 @@ type LookupBackupPlanIamPolicyResult struct { } func LookupBackupPlanIamPolicyOutput(ctx *pulumi.Context, args LookupBackupPlanIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupBackupPlanIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupBackupPlanIamPolicyResultOutput, error) { args := v.(LookupBackupPlanIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupBackupPlanIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:gkebackup/getBackupPlanIamPolicy:getBackupPlanIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupBackupPlanIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupBackupPlanIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupBackupPlanIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:gkebackup/getBackupPlanIamPolicy:getBackupPlanIamPolicy", args, LookupBackupPlanIamPolicyResultOutput{}, options).(LookupBackupPlanIamPolicyResultOutput), nil }).(LookupBackupPlanIamPolicyResultOutput) } diff --git a/sdk/go/gcp/gkebackup/getRestorePlanIamPolicy.go b/sdk/go/gcp/gkebackup/getRestorePlanIamPolicy.go index f14cdf2e1b..bfa229aeec 100644 --- a/sdk/go/gcp/gkebackup/getRestorePlanIamPolicy.go +++ b/sdk/go/gcp/gkebackup/getRestorePlanIamPolicy.go @@ -79,21 +79,11 @@ type LookupRestorePlanIamPolicyResult struct { } func LookupRestorePlanIamPolicyOutput(ctx *pulumi.Context, args LookupRestorePlanIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupRestorePlanIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupRestorePlanIamPolicyResultOutput, error) { args := v.(LookupRestorePlanIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupRestorePlanIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:gkebackup/getRestorePlanIamPolicy:getRestorePlanIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupRestorePlanIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupRestorePlanIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupRestorePlanIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:gkebackup/getRestorePlanIamPolicy:getRestorePlanIamPolicy", args, LookupRestorePlanIamPolicyResultOutput{}, options).(LookupRestorePlanIamPolicyResultOutput), nil }).(LookupRestorePlanIamPolicyResultOutput) } diff --git a/sdk/go/gcp/gkehub/getFeatureIamPolicy.go b/sdk/go/gcp/gkehub/getFeatureIamPolicy.go index 8c71fd2c99..96ece81a81 100644 --- a/sdk/go/gcp/gkehub/getFeatureIamPolicy.go +++ b/sdk/go/gcp/gkehub/getFeatureIamPolicy.go @@ -78,21 +78,11 @@ type LookupFeatureIamPolicyResult struct { } func LookupFeatureIamPolicyOutput(ctx *pulumi.Context, args LookupFeatureIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupFeatureIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupFeatureIamPolicyResultOutput, error) { args := v.(LookupFeatureIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupFeatureIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:gkehub/getFeatureIamPolicy:getFeatureIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupFeatureIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupFeatureIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupFeatureIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:gkehub/getFeatureIamPolicy:getFeatureIamPolicy", args, LookupFeatureIamPolicyResultOutput{}, options).(LookupFeatureIamPolicyResultOutput), nil }).(LookupFeatureIamPolicyResultOutput) } diff --git a/sdk/go/gcp/gkehub/getMembershipBinding.go b/sdk/go/gcp/gkehub/getMembershipBinding.go index 3d8cfc1086..70de3db378 100644 --- a/sdk/go/gcp/gkehub/getMembershipBinding.go +++ b/sdk/go/gcp/gkehub/getMembershipBinding.go @@ -50,21 +50,11 @@ type LookupMembershipBindingResult struct { } func LookupMembershipBindingOutput(ctx *pulumi.Context, args LookupMembershipBindingOutputArgs, opts ...pulumi.InvokeOption) LookupMembershipBindingResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupMembershipBindingResultOutput, error) { args := v.(LookupMembershipBindingArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupMembershipBindingResult - secret, err := ctx.InvokePackageRaw("gcp:gkehub/getMembershipBinding:getMembershipBinding", args, &rv, "", opts...) - if err != nil { - return LookupMembershipBindingResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupMembershipBindingResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupMembershipBindingResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:gkehub/getMembershipBinding:getMembershipBinding", args, LookupMembershipBindingResultOutput{}, options).(LookupMembershipBindingResultOutput), nil }).(LookupMembershipBindingResultOutput) } diff --git a/sdk/go/gcp/gkehub/getMembershipIamPolicy.go b/sdk/go/gcp/gkehub/getMembershipIamPolicy.go index 0f6c3c78f6..9da95f436e 100644 --- a/sdk/go/gcp/gkehub/getMembershipIamPolicy.go +++ b/sdk/go/gcp/gkehub/getMembershipIamPolicy.go @@ -79,21 +79,11 @@ type LookupMembershipIamPolicyResult struct { } func LookupMembershipIamPolicyOutput(ctx *pulumi.Context, args LookupMembershipIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupMembershipIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupMembershipIamPolicyResultOutput, error) { args := v.(LookupMembershipIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupMembershipIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:gkehub/getMembershipIamPolicy:getMembershipIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupMembershipIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupMembershipIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupMembershipIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:gkehub/getMembershipIamPolicy:getMembershipIamPolicy", args, LookupMembershipIamPolicyResultOutput{}, options).(LookupMembershipIamPolicyResultOutput), nil }).(LookupMembershipIamPolicyResultOutput) } diff --git a/sdk/go/gcp/gkehub/getScopeIamPolicy.go b/sdk/go/gcp/gkehub/getScopeIamPolicy.go index 13d2cab2d4..17ae093fa4 100644 --- a/sdk/go/gcp/gkehub/getScopeIamPolicy.go +++ b/sdk/go/gcp/gkehub/getScopeIamPolicy.go @@ -71,21 +71,11 @@ type LookupScopeIamPolicyResult struct { } func LookupScopeIamPolicyOutput(ctx *pulumi.Context, args LookupScopeIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupScopeIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupScopeIamPolicyResultOutput, error) { args := v.(LookupScopeIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupScopeIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:gkehub/getScopeIamPolicy:getScopeIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupScopeIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupScopeIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupScopeIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:gkehub/getScopeIamPolicy:getScopeIamPolicy", args, LookupScopeIamPolicyResultOutput{}, options).(LookupScopeIamPolicyResultOutput), nil }).(LookupScopeIamPolicyResultOutput) } diff --git a/sdk/go/gcp/healthcare/getConsentStoreIamPolicy.go b/sdk/go/gcp/healthcare/getConsentStoreIamPolicy.go index 5ae49857cc..b0311ffeca 100644 --- a/sdk/go/gcp/healthcare/getConsentStoreIamPolicy.go +++ b/sdk/go/gcp/healthcare/getConsentStoreIamPolicy.go @@ -73,21 +73,11 @@ type LookupConsentStoreIamPolicyResult struct { } func LookupConsentStoreIamPolicyOutput(ctx *pulumi.Context, args LookupConsentStoreIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupConsentStoreIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupConsentStoreIamPolicyResultOutput, error) { args := v.(LookupConsentStoreIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupConsentStoreIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:healthcare/getConsentStoreIamPolicy:getConsentStoreIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupConsentStoreIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupConsentStoreIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupConsentStoreIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:healthcare/getConsentStoreIamPolicy:getConsentStoreIamPolicy", args, LookupConsentStoreIamPolicyResultOutput{}, options).(LookupConsentStoreIamPolicyResultOutput), nil }).(LookupConsentStoreIamPolicyResultOutput) } diff --git a/sdk/go/gcp/healthcare/getDatasetIamPolicy.go b/sdk/go/gcp/healthcare/getDatasetIamPolicy.go index 3a2abeb736..4b2f6d0289 100644 --- a/sdk/go/gcp/healthcare/getDatasetIamPolicy.go +++ b/sdk/go/gcp/healthcare/getDatasetIamPolicy.go @@ -69,21 +69,11 @@ type LookupDatasetIamPolicyResult struct { } func LookupDatasetIamPolicyOutput(ctx *pulumi.Context, args LookupDatasetIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupDatasetIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupDatasetIamPolicyResultOutput, error) { args := v.(LookupDatasetIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupDatasetIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:healthcare/getDatasetIamPolicy:getDatasetIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupDatasetIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupDatasetIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupDatasetIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:healthcare/getDatasetIamPolicy:getDatasetIamPolicy", args, LookupDatasetIamPolicyResultOutput{}, options).(LookupDatasetIamPolicyResultOutput), nil }).(LookupDatasetIamPolicyResultOutput) } diff --git a/sdk/go/gcp/healthcare/getDicomStoreIamPolicy.go b/sdk/go/gcp/healthcare/getDicomStoreIamPolicy.go index 8be79b0207..2380a4c2d2 100644 --- a/sdk/go/gcp/healthcare/getDicomStoreIamPolicy.go +++ b/sdk/go/gcp/healthcare/getDicomStoreIamPolicy.go @@ -69,21 +69,11 @@ type LookupDicomStoreIamPolicyResult struct { } func LookupDicomStoreIamPolicyOutput(ctx *pulumi.Context, args LookupDicomStoreIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupDicomStoreIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupDicomStoreIamPolicyResultOutput, error) { args := v.(LookupDicomStoreIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupDicomStoreIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:healthcare/getDicomStoreIamPolicy:getDicomStoreIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupDicomStoreIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupDicomStoreIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupDicomStoreIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:healthcare/getDicomStoreIamPolicy:getDicomStoreIamPolicy", args, LookupDicomStoreIamPolicyResultOutput{}, options).(LookupDicomStoreIamPolicyResultOutput), nil }).(LookupDicomStoreIamPolicyResultOutput) } diff --git a/sdk/go/gcp/healthcare/getFhirStoreIamPolicy.go b/sdk/go/gcp/healthcare/getFhirStoreIamPolicy.go index b1ac23a11e..92d27ca264 100644 --- a/sdk/go/gcp/healthcare/getFhirStoreIamPolicy.go +++ b/sdk/go/gcp/healthcare/getFhirStoreIamPolicy.go @@ -69,21 +69,11 @@ type LookupFhirStoreIamPolicyResult struct { } func LookupFhirStoreIamPolicyOutput(ctx *pulumi.Context, args LookupFhirStoreIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupFhirStoreIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupFhirStoreIamPolicyResultOutput, error) { args := v.(LookupFhirStoreIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupFhirStoreIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:healthcare/getFhirStoreIamPolicy:getFhirStoreIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupFhirStoreIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupFhirStoreIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupFhirStoreIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:healthcare/getFhirStoreIamPolicy:getFhirStoreIamPolicy", args, LookupFhirStoreIamPolicyResultOutput{}, options).(LookupFhirStoreIamPolicyResultOutput), nil }).(LookupFhirStoreIamPolicyResultOutput) } diff --git a/sdk/go/gcp/healthcare/getHl7V2StoreIamPolicy.go b/sdk/go/gcp/healthcare/getHl7V2StoreIamPolicy.go index e35c925850..a623f86b74 100644 --- a/sdk/go/gcp/healthcare/getHl7V2StoreIamPolicy.go +++ b/sdk/go/gcp/healthcare/getHl7V2StoreIamPolicy.go @@ -69,21 +69,11 @@ type GetHl7V2StoreIamPolicyResult struct { } func GetHl7V2StoreIamPolicyOutput(ctx *pulumi.Context, args GetHl7V2StoreIamPolicyOutputArgs, opts ...pulumi.InvokeOption) GetHl7V2StoreIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetHl7V2StoreIamPolicyResultOutput, error) { args := v.(GetHl7V2StoreIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetHl7V2StoreIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:healthcare/getHl7V2StoreIamPolicy:getHl7V2StoreIamPolicy", args, &rv, "", opts...) - if err != nil { - return GetHl7V2StoreIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetHl7V2StoreIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(GetHl7V2StoreIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:healthcare/getHl7V2StoreIamPolicy:getHl7V2StoreIamPolicy", args, GetHl7V2StoreIamPolicyResultOutput{}, options).(GetHl7V2StoreIamPolicyResultOutput), nil }).(GetHl7V2StoreIamPolicyResultOutput) } diff --git a/sdk/go/gcp/iam/getRule.go b/sdk/go/gcp/iam/getRule.go index 6bd7151e09..30e39e46d8 100644 --- a/sdk/go/gcp/iam/getRule.go +++ b/sdk/go/gcp/iam/getRule.go @@ -67,21 +67,11 @@ type GetRuleResult struct { } func GetRuleOutput(ctx *pulumi.Context, args GetRuleOutputArgs, opts ...pulumi.InvokeOption) GetRuleResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetRuleResultOutput, error) { args := v.(GetRuleArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetRuleResult - secret, err := ctx.InvokePackageRaw("gcp:iam/getRule:getRule", args, &rv, "", opts...) - if err != nil { - return GetRuleResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetRuleResultOutput) - if secret { - return pulumi.ToSecret(output).(GetRuleResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:iam/getRule:getRule", args, GetRuleResultOutput{}, options).(GetRuleResultOutput), nil }).(GetRuleResultOutput) } diff --git a/sdk/go/gcp/iam/getTestablePermissions.go b/sdk/go/gcp/iam/getTestablePermissions.go index fd44835c87..72cb77b57b 100644 --- a/sdk/go/gcp/iam/getTestablePermissions.go +++ b/sdk/go/gcp/iam/getTestablePermissions.go @@ -77,21 +77,11 @@ type GetTestablePermissionsResult struct { } func GetTestablePermissionsOutput(ctx *pulumi.Context, args GetTestablePermissionsOutputArgs, opts ...pulumi.InvokeOption) GetTestablePermissionsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetTestablePermissionsResultOutput, error) { args := v.(GetTestablePermissionsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetTestablePermissionsResult - secret, err := ctx.InvokePackageRaw("gcp:iam/getTestablePermissions:getTestablePermissions", args, &rv, "", opts...) - if err != nil { - return GetTestablePermissionsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetTestablePermissionsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetTestablePermissionsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:iam/getTestablePermissions:getTestablePermissions", args, GetTestablePermissionsResultOutput{}, options).(GetTestablePermissionsResultOutput), nil }).(GetTestablePermissionsResultOutput) } diff --git a/sdk/go/gcp/iam/getWorkloadIdentityPool.go b/sdk/go/gcp/iam/getWorkloadIdentityPool.go index 78e9cfad72..35b927c5de 100644 --- a/sdk/go/gcp/iam/getWorkloadIdentityPool.go +++ b/sdk/go/gcp/iam/getWorkloadIdentityPool.go @@ -74,21 +74,11 @@ type LookupWorkloadIdentityPoolResult struct { } func LookupWorkloadIdentityPoolOutput(ctx *pulumi.Context, args LookupWorkloadIdentityPoolOutputArgs, opts ...pulumi.InvokeOption) LookupWorkloadIdentityPoolResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupWorkloadIdentityPoolResultOutput, error) { args := v.(LookupWorkloadIdentityPoolArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupWorkloadIdentityPoolResult - secret, err := ctx.InvokePackageRaw("gcp:iam/getWorkloadIdentityPool:getWorkloadIdentityPool", args, &rv, "", opts...) - if err != nil { - return LookupWorkloadIdentityPoolResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupWorkloadIdentityPoolResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupWorkloadIdentityPoolResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:iam/getWorkloadIdentityPool:getWorkloadIdentityPool", args, LookupWorkloadIdentityPoolResultOutput{}, options).(LookupWorkloadIdentityPoolResultOutput), nil }).(LookupWorkloadIdentityPoolResultOutput) } diff --git a/sdk/go/gcp/iam/getWorkloadIdentityPoolProvider.go b/sdk/go/gcp/iam/getWorkloadIdentityPoolProvider.go index ba04bd03b8..b4593403e5 100644 --- a/sdk/go/gcp/iam/getWorkloadIdentityPoolProvider.go +++ b/sdk/go/gcp/iam/getWorkloadIdentityPoolProvider.go @@ -85,21 +85,11 @@ type LookupWorkloadIdentityPoolProviderResult struct { } func LookupWorkloadIdentityPoolProviderOutput(ctx *pulumi.Context, args LookupWorkloadIdentityPoolProviderOutputArgs, opts ...pulumi.InvokeOption) LookupWorkloadIdentityPoolProviderResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupWorkloadIdentityPoolProviderResultOutput, error) { args := v.(LookupWorkloadIdentityPoolProviderArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupWorkloadIdentityPoolProviderResult - secret, err := ctx.InvokePackageRaw("gcp:iam/getWorkloadIdentityPoolProvider:getWorkloadIdentityPoolProvider", args, &rv, "", opts...) - if err != nil { - return LookupWorkloadIdentityPoolProviderResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupWorkloadIdentityPoolProviderResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupWorkloadIdentityPoolProviderResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:iam/getWorkloadIdentityPoolProvider:getWorkloadIdentityPoolProvider", args, LookupWorkloadIdentityPoolProviderResultOutput{}, options).(LookupWorkloadIdentityPoolProviderResultOutput), nil }).(LookupWorkloadIdentityPoolProviderResultOutput) } diff --git a/sdk/go/gcp/iap/getAppEngineServiceIamPolicy.go b/sdk/go/gcp/iap/getAppEngineServiceIamPolicy.go index c50cc1f74c..4fa480d3c5 100644 --- a/sdk/go/gcp/iap/getAppEngineServiceIamPolicy.go +++ b/sdk/go/gcp/iap/getAppEngineServiceIamPolicy.go @@ -76,21 +76,11 @@ type LookupAppEngineServiceIamPolicyResult struct { } func LookupAppEngineServiceIamPolicyOutput(ctx *pulumi.Context, args LookupAppEngineServiceIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupAppEngineServiceIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupAppEngineServiceIamPolicyResultOutput, error) { args := v.(LookupAppEngineServiceIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupAppEngineServiceIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:iap/getAppEngineServiceIamPolicy:getAppEngineServiceIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupAppEngineServiceIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupAppEngineServiceIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupAppEngineServiceIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:iap/getAppEngineServiceIamPolicy:getAppEngineServiceIamPolicy", args, LookupAppEngineServiceIamPolicyResultOutput{}, options).(LookupAppEngineServiceIamPolicyResultOutput), nil }).(LookupAppEngineServiceIamPolicyResultOutput) } diff --git a/sdk/go/gcp/iap/getAppEngineVersionIamPolicy.go b/sdk/go/gcp/iap/getAppEngineVersionIamPolicy.go index fc87a48cce..15a37c75bf 100644 --- a/sdk/go/gcp/iap/getAppEngineVersionIamPolicy.go +++ b/sdk/go/gcp/iap/getAppEngineVersionIamPolicy.go @@ -80,21 +80,11 @@ type LookupAppEngineVersionIamPolicyResult struct { } func LookupAppEngineVersionIamPolicyOutput(ctx *pulumi.Context, args LookupAppEngineVersionIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupAppEngineVersionIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupAppEngineVersionIamPolicyResultOutput, error) { args := v.(LookupAppEngineVersionIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupAppEngineVersionIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:iap/getAppEngineVersionIamPolicy:getAppEngineVersionIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupAppEngineVersionIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupAppEngineVersionIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupAppEngineVersionIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:iap/getAppEngineVersionIamPolicy:getAppEngineVersionIamPolicy", args, LookupAppEngineVersionIamPolicyResultOutput{}, options).(LookupAppEngineVersionIamPolicyResultOutput), nil }).(LookupAppEngineVersionIamPolicyResultOutput) } diff --git a/sdk/go/gcp/iap/getClient.go b/sdk/go/gcp/iap/getClient.go index 37f3e1c18b..893a56d0a4 100644 --- a/sdk/go/gcp/iap/getClient.go +++ b/sdk/go/gcp/iap/getClient.go @@ -77,21 +77,11 @@ type LookupClientResult struct { } func LookupClientOutput(ctx *pulumi.Context, args LookupClientOutputArgs, opts ...pulumi.InvokeOption) LookupClientResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupClientResultOutput, error) { args := v.(LookupClientArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupClientResult - secret, err := ctx.InvokePackageRaw("gcp:iap/getClient:getClient", args, &rv, "", opts...) - if err != nil { - return LookupClientResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupClientResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupClientResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:iap/getClient:getClient", args, LookupClientResultOutput{}, options).(LookupClientResultOutput), nil }).(LookupClientResultOutput) } diff --git a/sdk/go/gcp/iap/getTunnelDestGroupIamPolicy.go b/sdk/go/gcp/iap/getTunnelDestGroupIamPolicy.go index 8db9093285..ee0b9daa15 100644 --- a/sdk/go/gcp/iap/getTunnelDestGroupIamPolicy.go +++ b/sdk/go/gcp/iap/getTunnelDestGroupIamPolicy.go @@ -78,21 +78,11 @@ type LookupTunnelDestGroupIamPolicyResult struct { } func LookupTunnelDestGroupIamPolicyOutput(ctx *pulumi.Context, args LookupTunnelDestGroupIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupTunnelDestGroupIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupTunnelDestGroupIamPolicyResultOutput, error) { args := v.(LookupTunnelDestGroupIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupTunnelDestGroupIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:iap/getTunnelDestGroupIamPolicy:getTunnelDestGroupIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupTunnelDestGroupIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupTunnelDestGroupIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupTunnelDestGroupIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:iap/getTunnelDestGroupIamPolicy:getTunnelDestGroupIamPolicy", args, LookupTunnelDestGroupIamPolicyResultOutput{}, options).(LookupTunnelDestGroupIamPolicyResultOutput), nil }).(LookupTunnelDestGroupIamPolicyResultOutput) } diff --git a/sdk/go/gcp/iap/getTunnelIamPolicy.go b/sdk/go/gcp/iap/getTunnelIamPolicy.go index 1f47323508..951c002b6c 100644 --- a/sdk/go/gcp/iap/getTunnelIamPolicy.go +++ b/sdk/go/gcp/iap/getTunnelIamPolicy.go @@ -68,21 +68,11 @@ type LookupTunnelIamPolicyResult struct { } func LookupTunnelIamPolicyOutput(ctx *pulumi.Context, args LookupTunnelIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupTunnelIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupTunnelIamPolicyResultOutput, error) { args := v.(LookupTunnelIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupTunnelIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:iap/getTunnelIamPolicy:getTunnelIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupTunnelIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupTunnelIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupTunnelIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:iap/getTunnelIamPolicy:getTunnelIamPolicy", args, LookupTunnelIamPolicyResultOutput{}, options).(LookupTunnelIamPolicyResultOutput), nil }).(LookupTunnelIamPolicyResultOutput) } diff --git a/sdk/go/gcp/iap/getTunnelInstanceIamPolicy.go b/sdk/go/gcp/iap/getTunnelInstanceIamPolicy.go index 6343537e6e..39baa126be 100644 --- a/sdk/go/gcp/iap/getTunnelInstanceIamPolicy.go +++ b/sdk/go/gcp/iap/getTunnelInstanceIamPolicy.go @@ -75,21 +75,11 @@ type GetTunnelInstanceIamPolicyResult struct { } func GetTunnelInstanceIamPolicyOutput(ctx *pulumi.Context, args GetTunnelInstanceIamPolicyOutputArgs, opts ...pulumi.InvokeOption) GetTunnelInstanceIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetTunnelInstanceIamPolicyResultOutput, error) { args := v.(GetTunnelInstanceIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetTunnelInstanceIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:iap/getTunnelInstanceIamPolicy:getTunnelInstanceIamPolicy", args, &rv, "", opts...) - if err != nil { - return GetTunnelInstanceIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetTunnelInstanceIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(GetTunnelInstanceIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:iap/getTunnelInstanceIamPolicy:getTunnelInstanceIamPolicy", args, GetTunnelInstanceIamPolicyResultOutput{}, options).(GetTunnelInstanceIamPolicyResultOutput), nil }).(GetTunnelInstanceIamPolicyResultOutput) } diff --git a/sdk/go/gcp/iap/getWebBackendServiceIamPolicy.go b/sdk/go/gcp/iap/getWebBackendServiceIamPolicy.go index 52dcc2c764..5608ed5fb4 100644 --- a/sdk/go/gcp/iap/getWebBackendServiceIamPolicy.go +++ b/sdk/go/gcp/iap/getWebBackendServiceIamPolicy.go @@ -72,21 +72,11 @@ type LookupWebBackendServiceIamPolicyResult struct { } func LookupWebBackendServiceIamPolicyOutput(ctx *pulumi.Context, args LookupWebBackendServiceIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupWebBackendServiceIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupWebBackendServiceIamPolicyResultOutput, error) { args := v.(LookupWebBackendServiceIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupWebBackendServiceIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:iap/getWebBackendServiceIamPolicy:getWebBackendServiceIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupWebBackendServiceIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupWebBackendServiceIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupWebBackendServiceIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:iap/getWebBackendServiceIamPolicy:getWebBackendServiceIamPolicy", args, LookupWebBackendServiceIamPolicyResultOutput{}, options).(LookupWebBackendServiceIamPolicyResultOutput), nil }).(LookupWebBackendServiceIamPolicyResultOutput) } diff --git a/sdk/go/gcp/iap/getWebIamPolicy.go b/sdk/go/gcp/iap/getWebIamPolicy.go index f194912ffb..31759aa06a 100644 --- a/sdk/go/gcp/iap/getWebIamPolicy.go +++ b/sdk/go/gcp/iap/getWebIamPolicy.go @@ -68,21 +68,11 @@ type LookupWebIamPolicyResult struct { } func LookupWebIamPolicyOutput(ctx *pulumi.Context, args LookupWebIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupWebIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupWebIamPolicyResultOutput, error) { args := v.(LookupWebIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupWebIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:iap/getWebIamPolicy:getWebIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupWebIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupWebIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupWebIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:iap/getWebIamPolicy:getWebIamPolicy", args, LookupWebIamPolicyResultOutput{}, options).(LookupWebIamPolicyResultOutput), nil }).(LookupWebIamPolicyResultOutput) } diff --git a/sdk/go/gcp/iap/getWebRegionBackendServiceIamPolicy.go b/sdk/go/gcp/iap/getWebRegionBackendServiceIamPolicy.go index 0e0a1f5f1c..429cffc3a6 100644 --- a/sdk/go/gcp/iap/getWebRegionBackendServiceIamPolicy.go +++ b/sdk/go/gcp/iap/getWebRegionBackendServiceIamPolicy.go @@ -75,21 +75,11 @@ type LookupWebRegionBackendServiceIamPolicyResult struct { } func LookupWebRegionBackendServiceIamPolicyOutput(ctx *pulumi.Context, args LookupWebRegionBackendServiceIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupWebRegionBackendServiceIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupWebRegionBackendServiceIamPolicyResultOutput, error) { args := v.(LookupWebRegionBackendServiceIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupWebRegionBackendServiceIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:iap/getWebRegionBackendServiceIamPolicy:getWebRegionBackendServiceIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupWebRegionBackendServiceIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupWebRegionBackendServiceIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupWebRegionBackendServiceIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:iap/getWebRegionBackendServiceIamPolicy:getWebRegionBackendServiceIamPolicy", args, LookupWebRegionBackendServiceIamPolicyResultOutput{}, options).(LookupWebRegionBackendServiceIamPolicyResultOutput), nil }).(LookupWebRegionBackendServiceIamPolicyResultOutput) } diff --git a/sdk/go/gcp/iap/getWebTypeAppEngineIamPolicy.go b/sdk/go/gcp/iap/getWebTypeAppEngineIamPolicy.go index 2d32d061ce..bb1b75c81f 100644 --- a/sdk/go/gcp/iap/getWebTypeAppEngineIamPolicy.go +++ b/sdk/go/gcp/iap/getWebTypeAppEngineIamPolicy.go @@ -72,21 +72,11 @@ type GetWebTypeAppEngineIamPolicyResult struct { } func GetWebTypeAppEngineIamPolicyOutput(ctx *pulumi.Context, args GetWebTypeAppEngineIamPolicyOutputArgs, opts ...pulumi.InvokeOption) GetWebTypeAppEngineIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetWebTypeAppEngineIamPolicyResultOutput, error) { args := v.(GetWebTypeAppEngineIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetWebTypeAppEngineIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:iap/getWebTypeAppEngineIamPolicy:getWebTypeAppEngineIamPolicy", args, &rv, "", opts...) - if err != nil { - return GetWebTypeAppEngineIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetWebTypeAppEngineIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(GetWebTypeAppEngineIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:iap/getWebTypeAppEngineIamPolicy:getWebTypeAppEngineIamPolicy", args, GetWebTypeAppEngineIamPolicyResultOutput{}, options).(GetWebTypeAppEngineIamPolicyResultOutput), nil }).(GetWebTypeAppEngineIamPolicyResultOutput) } diff --git a/sdk/go/gcp/iap/getWebTypeComputeIamPolicy.go b/sdk/go/gcp/iap/getWebTypeComputeIamPolicy.go index ab8cb66266..b425502c88 100644 --- a/sdk/go/gcp/iap/getWebTypeComputeIamPolicy.go +++ b/sdk/go/gcp/iap/getWebTypeComputeIamPolicy.go @@ -68,21 +68,11 @@ type LookupWebTypeComputeIamPolicyResult struct { } func LookupWebTypeComputeIamPolicyOutput(ctx *pulumi.Context, args LookupWebTypeComputeIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupWebTypeComputeIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupWebTypeComputeIamPolicyResultOutput, error) { args := v.(LookupWebTypeComputeIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupWebTypeComputeIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:iap/getWebTypeComputeIamPolicy:getWebTypeComputeIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupWebTypeComputeIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupWebTypeComputeIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupWebTypeComputeIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:iap/getWebTypeComputeIamPolicy:getWebTypeComputeIamPolicy", args, LookupWebTypeComputeIamPolicyResultOutput{}, options).(LookupWebTypeComputeIamPolicyResultOutput), nil }).(LookupWebTypeComputeIamPolicyResultOutput) } diff --git a/sdk/go/gcp/kms/getCryptoKeyIamPolicy.go b/sdk/go/gcp/kms/getCryptoKeyIamPolicy.go index 7ca2d51472..ffe104ec6f 100644 --- a/sdk/go/gcp/kms/getCryptoKeyIamPolicy.go +++ b/sdk/go/gcp/kms/getCryptoKeyIamPolicy.go @@ -66,21 +66,11 @@ type GetCryptoKeyIamPolicyResult struct { } func GetCryptoKeyIamPolicyOutput(ctx *pulumi.Context, args GetCryptoKeyIamPolicyOutputArgs, opts ...pulumi.InvokeOption) GetCryptoKeyIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetCryptoKeyIamPolicyResultOutput, error) { args := v.(GetCryptoKeyIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetCryptoKeyIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:kms/getCryptoKeyIamPolicy:getCryptoKeyIamPolicy", args, &rv, "", opts...) - if err != nil { - return GetCryptoKeyIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetCryptoKeyIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(GetCryptoKeyIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:kms/getCryptoKeyIamPolicy:getCryptoKeyIamPolicy", args, GetCryptoKeyIamPolicyResultOutput{}, options).(GetCryptoKeyIamPolicyResultOutput), nil }).(GetCryptoKeyIamPolicyResultOutput) } diff --git a/sdk/go/gcp/kms/getCryptoKeyLatestVersion.go b/sdk/go/gcp/kms/getCryptoKeyLatestVersion.go index 3bf8b7a03c..910d590279 100644 --- a/sdk/go/gcp/kms/getCryptoKeyLatestVersion.go +++ b/sdk/go/gcp/kms/getCryptoKeyLatestVersion.go @@ -99,21 +99,11 @@ type GetCryptoKeyLatestVersionResult struct { } func GetCryptoKeyLatestVersionOutput(ctx *pulumi.Context, args GetCryptoKeyLatestVersionOutputArgs, opts ...pulumi.InvokeOption) GetCryptoKeyLatestVersionResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetCryptoKeyLatestVersionResultOutput, error) { args := v.(GetCryptoKeyLatestVersionArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetCryptoKeyLatestVersionResult - secret, err := ctx.InvokePackageRaw("gcp:kms/getCryptoKeyLatestVersion:getCryptoKeyLatestVersion", args, &rv, "", opts...) - if err != nil { - return GetCryptoKeyLatestVersionResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetCryptoKeyLatestVersionResultOutput) - if secret { - return pulumi.ToSecret(output).(GetCryptoKeyLatestVersionResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:kms/getCryptoKeyLatestVersion:getCryptoKeyLatestVersion", args, GetCryptoKeyLatestVersionResultOutput{}, options).(GetCryptoKeyLatestVersionResultOutput), nil }).(GetCryptoKeyLatestVersionResultOutput) } diff --git a/sdk/go/gcp/kms/getCryptoKeyVersions.go b/sdk/go/gcp/kms/getCryptoKeyVersions.go index e1d2771984..ab0d9d4f6d 100644 --- a/sdk/go/gcp/kms/getCryptoKeyVersions.go +++ b/sdk/go/gcp/kms/getCryptoKeyVersions.go @@ -93,21 +93,11 @@ type GetCryptoKeyVersionsResult struct { } func GetCryptoKeyVersionsOutput(ctx *pulumi.Context, args GetCryptoKeyVersionsOutputArgs, opts ...pulumi.InvokeOption) GetCryptoKeyVersionsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetCryptoKeyVersionsResultOutput, error) { args := v.(GetCryptoKeyVersionsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetCryptoKeyVersionsResult - secret, err := ctx.InvokePackageRaw("gcp:kms/getCryptoKeyVersions:getCryptoKeyVersions", args, &rv, "", opts...) - if err != nil { - return GetCryptoKeyVersionsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetCryptoKeyVersionsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetCryptoKeyVersionsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:kms/getCryptoKeyVersions:getCryptoKeyVersions", args, GetCryptoKeyVersionsResultOutput{}, options).(GetCryptoKeyVersionsResultOutput), nil }).(GetCryptoKeyVersionsResultOutput) } diff --git a/sdk/go/gcp/kms/getCryptoKeys.go b/sdk/go/gcp/kms/getCryptoKeys.go index 21a25939c7..cf71be3064 100644 --- a/sdk/go/gcp/kms/getCryptoKeys.go +++ b/sdk/go/gcp/kms/getCryptoKeys.go @@ -54,21 +54,11 @@ type GetCryptoKeysResult struct { } func GetCryptoKeysOutput(ctx *pulumi.Context, args GetCryptoKeysOutputArgs, opts ...pulumi.InvokeOption) GetCryptoKeysResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetCryptoKeysResultOutput, error) { args := v.(GetCryptoKeysArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetCryptoKeysResult - secret, err := ctx.InvokePackageRaw("gcp:kms/getCryptoKeys:getCryptoKeys", args, &rv, "", opts...) - if err != nil { - return GetCryptoKeysResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetCryptoKeysResultOutput) - if secret { - return pulumi.ToSecret(output).(GetCryptoKeysResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:kms/getCryptoKeys:getCryptoKeys", args, GetCryptoKeysResultOutput{}, options).(GetCryptoKeysResultOutput), nil }).(GetCryptoKeysResultOutput) } diff --git a/sdk/go/gcp/kms/getEkmConnectionIamPolicy.go b/sdk/go/gcp/kms/getEkmConnectionIamPolicy.go index c84509affe..82973eb3b0 100644 --- a/sdk/go/gcp/kms/getEkmConnectionIamPolicy.go +++ b/sdk/go/gcp/kms/getEkmConnectionIamPolicy.go @@ -80,21 +80,11 @@ type LookupEkmConnectionIamPolicyResult struct { } func LookupEkmConnectionIamPolicyOutput(ctx *pulumi.Context, args LookupEkmConnectionIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupEkmConnectionIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupEkmConnectionIamPolicyResultOutput, error) { args := v.(LookupEkmConnectionIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupEkmConnectionIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:kms/getEkmConnectionIamPolicy:getEkmConnectionIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupEkmConnectionIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupEkmConnectionIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupEkmConnectionIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:kms/getEkmConnectionIamPolicy:getEkmConnectionIamPolicy", args, LookupEkmConnectionIamPolicyResultOutput{}, options).(LookupEkmConnectionIamPolicyResultOutput), nil }).(LookupEkmConnectionIamPolicyResultOutput) } diff --git a/sdk/go/gcp/kms/getKMSCryptoKey.go b/sdk/go/gcp/kms/getKMSCryptoKey.go index f3883a2f87..ca3ba04ea1 100644 --- a/sdk/go/gcp/kms/getKMSCryptoKey.go +++ b/sdk/go/gcp/kms/getKMSCryptoKey.go @@ -96,21 +96,11 @@ type GetKMSCryptoKeyResult struct { } func GetKMSCryptoKeyOutput(ctx *pulumi.Context, args GetKMSCryptoKeyOutputArgs, opts ...pulumi.InvokeOption) GetKMSCryptoKeyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetKMSCryptoKeyResultOutput, error) { args := v.(GetKMSCryptoKeyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetKMSCryptoKeyResult - secret, err := ctx.InvokePackageRaw("gcp:kms/getKMSCryptoKey:getKMSCryptoKey", args, &rv, "", opts...) - if err != nil { - return GetKMSCryptoKeyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetKMSCryptoKeyResultOutput) - if secret { - return pulumi.ToSecret(output).(GetKMSCryptoKeyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:kms/getKMSCryptoKey:getKMSCryptoKey", args, GetKMSCryptoKeyResultOutput{}, options).(GetKMSCryptoKeyResultOutput), nil }).(GetKMSCryptoKeyResultOutput) } diff --git a/sdk/go/gcp/kms/getKMSCryptoKeyVersion.go b/sdk/go/gcp/kms/getKMSCryptoKeyVersion.go index 52a19900e5..a7e8ce2a24 100644 --- a/sdk/go/gcp/kms/getKMSCryptoKeyVersion.go +++ b/sdk/go/gcp/kms/getKMSCryptoKeyVersion.go @@ -95,21 +95,11 @@ type GetKMSCryptoKeyVersionResult struct { } func GetKMSCryptoKeyVersionOutput(ctx *pulumi.Context, args GetKMSCryptoKeyVersionOutputArgs, opts ...pulumi.InvokeOption) GetKMSCryptoKeyVersionResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetKMSCryptoKeyVersionResultOutput, error) { args := v.(GetKMSCryptoKeyVersionArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetKMSCryptoKeyVersionResult - secret, err := ctx.InvokePackageRaw("gcp:kms/getKMSCryptoKeyVersion:getKMSCryptoKeyVersion", args, &rv, "", opts...) - if err != nil { - return GetKMSCryptoKeyVersionResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetKMSCryptoKeyVersionResultOutput) - if secret { - return pulumi.ToSecret(output).(GetKMSCryptoKeyVersionResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:kms/getKMSCryptoKeyVersion:getKMSCryptoKeyVersion", args, GetKMSCryptoKeyVersionResultOutput{}, options).(GetKMSCryptoKeyVersionResultOutput), nil }).(GetKMSCryptoKeyVersionResultOutput) } diff --git a/sdk/go/gcp/kms/getKMSKeyRing.go b/sdk/go/gcp/kms/getKMSKeyRing.go index cd24c3af0a..015a54e83d 100644 --- a/sdk/go/gcp/kms/getKMSKeyRing.go +++ b/sdk/go/gcp/kms/getKMSKeyRing.go @@ -80,21 +80,11 @@ type GetKMSKeyRingResult struct { } func GetKMSKeyRingOutput(ctx *pulumi.Context, args GetKMSKeyRingOutputArgs, opts ...pulumi.InvokeOption) GetKMSKeyRingResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetKMSKeyRingResultOutput, error) { args := v.(GetKMSKeyRingArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetKMSKeyRingResult - secret, err := ctx.InvokePackageRaw("gcp:kms/getKMSKeyRing:getKMSKeyRing", args, &rv, "", opts...) - if err != nil { - return GetKMSKeyRingResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetKMSKeyRingResultOutput) - if secret { - return pulumi.ToSecret(output).(GetKMSKeyRingResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:kms/getKMSKeyRing:getKMSKeyRing", args, GetKMSKeyRingResultOutput{}, options).(GetKMSKeyRingResultOutput), nil }).(GetKMSKeyRingResultOutput) } diff --git a/sdk/go/gcp/kms/getKMSSecret.go b/sdk/go/gcp/kms/getKMSSecret.go index df21186921..02026e8b17 100644 --- a/sdk/go/gcp/kms/getKMSSecret.go +++ b/sdk/go/gcp/kms/getKMSSecret.go @@ -155,21 +155,11 @@ type GetKMSSecretResult struct { } func GetKMSSecretOutput(ctx *pulumi.Context, args GetKMSSecretOutputArgs, opts ...pulumi.InvokeOption) GetKMSSecretResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetKMSSecretResultOutput, error) { args := v.(GetKMSSecretArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetKMSSecretResult - secret, err := ctx.InvokePackageRaw("gcp:kms/getKMSSecret:getKMSSecret", args, &rv, "", opts...) - if err != nil { - return GetKMSSecretResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetKMSSecretResultOutput) - if secret { - return pulumi.ToSecret(output).(GetKMSSecretResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:kms/getKMSSecret:getKMSSecret", args, GetKMSSecretResultOutput{}, options).(GetKMSSecretResultOutput), nil }).(GetKMSSecretResultOutput) } diff --git a/sdk/go/gcp/kms/getKMSSecretAsymmetric.go b/sdk/go/gcp/kms/getKMSSecretAsymmetric.go index 86d9394350..498fb32ecf 100644 --- a/sdk/go/gcp/kms/getKMSSecretAsymmetric.go +++ b/sdk/go/gcp/kms/getKMSSecretAsymmetric.go @@ -166,21 +166,11 @@ type GetKMSSecretAsymmetricResult struct { } func GetKMSSecretAsymmetricOutput(ctx *pulumi.Context, args GetKMSSecretAsymmetricOutputArgs, opts ...pulumi.InvokeOption) GetKMSSecretAsymmetricResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetKMSSecretAsymmetricResultOutput, error) { args := v.(GetKMSSecretAsymmetricArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetKMSSecretAsymmetricResult - secret, err := ctx.InvokePackageRaw("gcp:kms/getKMSSecretAsymmetric:getKMSSecretAsymmetric", args, &rv, "", opts...) - if err != nil { - return GetKMSSecretAsymmetricResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetKMSSecretAsymmetricResultOutput) - if secret { - return pulumi.ToSecret(output).(GetKMSSecretAsymmetricResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:kms/getKMSSecretAsymmetric:getKMSSecretAsymmetric", args, GetKMSSecretAsymmetricResultOutput{}, options).(GetKMSSecretAsymmetricResultOutput), nil }).(GetKMSSecretAsymmetricResultOutput) } diff --git a/sdk/go/gcp/kms/getKMSSecretCiphertext.go b/sdk/go/gcp/kms/getKMSSecretCiphertext.go index dbdefd4676..126ef9dbf4 100644 --- a/sdk/go/gcp/kms/getKMSSecretCiphertext.go +++ b/sdk/go/gcp/kms/getKMSSecretCiphertext.go @@ -146,21 +146,11 @@ type GetKMSSecretCiphertextResult struct { } func GetKMSSecretCiphertextOutput(ctx *pulumi.Context, args GetKMSSecretCiphertextOutputArgs, opts ...pulumi.InvokeOption) GetKMSSecretCiphertextResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetKMSSecretCiphertextResultOutput, error) { args := v.(GetKMSSecretCiphertextArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetKMSSecretCiphertextResult - secret, err := ctx.InvokePackageRaw("gcp:kms/getKMSSecretCiphertext:getKMSSecretCiphertext", args, &rv, "", opts...) - if err != nil { - return GetKMSSecretCiphertextResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetKMSSecretCiphertextResultOutput) - if secret { - return pulumi.ToSecret(output).(GetKMSSecretCiphertextResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:kms/getKMSSecretCiphertext:getKMSSecretCiphertext", args, GetKMSSecretCiphertextResultOutput{}, options).(GetKMSSecretCiphertextResultOutput), nil }).(GetKMSSecretCiphertextResultOutput) } diff --git a/sdk/go/gcp/kms/getKeyRingIamPolicy.go b/sdk/go/gcp/kms/getKeyRingIamPolicy.go index 2a73c483c4..e331a1c2c2 100644 --- a/sdk/go/gcp/kms/getKeyRingIamPolicy.go +++ b/sdk/go/gcp/kms/getKeyRingIamPolicy.go @@ -69,21 +69,11 @@ type GetKeyRingIamPolicyResult struct { } func GetKeyRingIamPolicyOutput(ctx *pulumi.Context, args GetKeyRingIamPolicyOutputArgs, opts ...pulumi.InvokeOption) GetKeyRingIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetKeyRingIamPolicyResultOutput, error) { args := v.(GetKeyRingIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetKeyRingIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:kms/getKeyRingIamPolicy:getKeyRingIamPolicy", args, &rv, "", opts...) - if err != nil { - return GetKeyRingIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetKeyRingIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(GetKeyRingIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:kms/getKeyRingIamPolicy:getKeyRingIamPolicy", args, GetKeyRingIamPolicyResultOutput{}, options).(GetKeyRingIamPolicyResultOutput), nil }).(GetKeyRingIamPolicyResultOutput) } diff --git a/sdk/go/gcp/kms/getKeyRings.go b/sdk/go/gcp/kms/getKeyRings.go index 6677b4d02f..6a617a7a32 100644 --- a/sdk/go/gcp/kms/getKeyRings.go +++ b/sdk/go/gcp/kms/getKeyRings.go @@ -39,21 +39,11 @@ type GetKeyRingsResult struct { } func GetKeyRingsOutput(ctx *pulumi.Context, args GetKeyRingsOutputArgs, opts ...pulumi.InvokeOption) GetKeyRingsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetKeyRingsResultOutput, error) { args := v.(GetKeyRingsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetKeyRingsResult - secret, err := ctx.InvokePackageRaw("gcp:kms/getKeyRings:getKeyRings", args, &rv, "", opts...) - if err != nil { - return GetKeyRingsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetKeyRingsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetKeyRingsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:kms/getKeyRings:getKeyRings", args, GetKeyRingsResultOutput{}, options).(GetKeyRingsResultOutput), nil }).(GetKeyRingsResultOutput) } diff --git a/sdk/go/gcp/logging/getFolderSettings.go b/sdk/go/gcp/logging/getFolderSettings.go index 92ca25df48..c5c2b8bb4c 100644 --- a/sdk/go/gcp/logging/getFolderSettings.go +++ b/sdk/go/gcp/logging/getFolderSettings.go @@ -87,21 +87,11 @@ type LookupFolderSettingsResult struct { } func LookupFolderSettingsOutput(ctx *pulumi.Context, args LookupFolderSettingsOutputArgs, opts ...pulumi.InvokeOption) LookupFolderSettingsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupFolderSettingsResultOutput, error) { args := v.(LookupFolderSettingsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupFolderSettingsResult - secret, err := ctx.InvokePackageRaw("gcp:logging/getFolderSettings:getFolderSettings", args, &rv, "", opts...) - if err != nil { - return LookupFolderSettingsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupFolderSettingsResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupFolderSettingsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:logging/getFolderSettings:getFolderSettings", args, LookupFolderSettingsResultOutput{}, options).(LookupFolderSettingsResultOutput), nil }).(LookupFolderSettingsResultOutput) } diff --git a/sdk/go/gcp/logging/getLogViewIamPolicy.go b/sdk/go/gcp/logging/getLogViewIamPolicy.go index 0873e86b78..6d394685ec 100644 --- a/sdk/go/gcp/logging/getLogViewIamPolicy.go +++ b/sdk/go/gcp/logging/getLogViewIamPolicy.go @@ -81,21 +81,11 @@ type LookupLogViewIamPolicyResult struct { } func LookupLogViewIamPolicyOutput(ctx *pulumi.Context, args LookupLogViewIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupLogViewIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupLogViewIamPolicyResultOutput, error) { args := v.(LookupLogViewIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupLogViewIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:logging/getLogViewIamPolicy:getLogViewIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupLogViewIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupLogViewIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupLogViewIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:logging/getLogViewIamPolicy:getLogViewIamPolicy", args, LookupLogViewIamPolicyResultOutput{}, options).(LookupLogViewIamPolicyResultOutput), nil }).(LookupLogViewIamPolicyResultOutput) } diff --git a/sdk/go/gcp/logging/getOrganizationSettings.go b/sdk/go/gcp/logging/getOrganizationSettings.go index 79500ed4da..ccbad77f5f 100644 --- a/sdk/go/gcp/logging/getOrganizationSettings.go +++ b/sdk/go/gcp/logging/getOrganizationSettings.go @@ -87,21 +87,11 @@ type LookupOrganizationSettingsResult struct { } func LookupOrganizationSettingsOutput(ctx *pulumi.Context, args LookupOrganizationSettingsOutputArgs, opts ...pulumi.InvokeOption) LookupOrganizationSettingsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupOrganizationSettingsResultOutput, error) { args := v.(LookupOrganizationSettingsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupOrganizationSettingsResult - secret, err := ctx.InvokePackageRaw("gcp:logging/getOrganizationSettings:getOrganizationSettings", args, &rv, "", opts...) - if err != nil { - return LookupOrganizationSettingsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupOrganizationSettingsResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupOrganizationSettingsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:logging/getOrganizationSettings:getOrganizationSettings", args, LookupOrganizationSettingsResultOutput{}, options).(LookupOrganizationSettingsResultOutput), nil }).(LookupOrganizationSettingsResultOutput) } diff --git a/sdk/go/gcp/logging/getProjectCmekSettings.go b/sdk/go/gcp/logging/getProjectCmekSettings.go index 0de9907978..fdaebcd660 100644 --- a/sdk/go/gcp/logging/getProjectCmekSettings.go +++ b/sdk/go/gcp/logging/getProjectCmekSettings.go @@ -96,21 +96,11 @@ type GetProjectCmekSettingsResult struct { } func GetProjectCmekSettingsOutput(ctx *pulumi.Context, args GetProjectCmekSettingsOutputArgs, opts ...pulumi.InvokeOption) GetProjectCmekSettingsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetProjectCmekSettingsResultOutput, error) { args := v.(GetProjectCmekSettingsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetProjectCmekSettingsResult - secret, err := ctx.InvokePackageRaw("gcp:logging/getProjectCmekSettings:getProjectCmekSettings", args, &rv, "", opts...) - if err != nil { - return GetProjectCmekSettingsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetProjectCmekSettingsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetProjectCmekSettingsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:logging/getProjectCmekSettings:getProjectCmekSettings", args, GetProjectCmekSettingsResultOutput{}, options).(GetProjectCmekSettingsResultOutput), nil }).(GetProjectCmekSettingsResultOutput) } diff --git a/sdk/go/gcp/logging/getProjectSettings.go b/sdk/go/gcp/logging/getProjectSettings.go index bb4abb2bd9..157653f6bf 100644 --- a/sdk/go/gcp/logging/getProjectSettings.go +++ b/sdk/go/gcp/logging/getProjectSettings.go @@ -87,21 +87,11 @@ type GetProjectSettingsResult struct { } func GetProjectSettingsOutput(ctx *pulumi.Context, args GetProjectSettingsOutputArgs, opts ...pulumi.InvokeOption) GetProjectSettingsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetProjectSettingsResultOutput, error) { args := v.(GetProjectSettingsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetProjectSettingsResult - secret, err := ctx.InvokePackageRaw("gcp:logging/getProjectSettings:getProjectSettings", args, &rv, "", opts...) - if err != nil { - return GetProjectSettingsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetProjectSettingsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetProjectSettingsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:logging/getProjectSettings:getProjectSettings", args, GetProjectSettingsResultOutput{}, options).(GetProjectSettingsResultOutput), nil }).(GetProjectSettingsResultOutput) } diff --git a/sdk/go/gcp/logging/getSink.go b/sdk/go/gcp/logging/getSink.go index 628d6aad10..7bfc58c9f3 100644 --- a/sdk/go/gcp/logging/getSink.go +++ b/sdk/go/gcp/logging/getSink.go @@ -87,21 +87,11 @@ type GetSinkResult struct { } func GetSinkOutput(ctx *pulumi.Context, args GetSinkOutputArgs, opts ...pulumi.InvokeOption) GetSinkResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetSinkResultOutput, error) { args := v.(GetSinkArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetSinkResult - secret, err := ctx.InvokePackageRaw("gcp:logging/getSink:getSink", args, &rv, "", opts...) - if err != nil { - return GetSinkResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetSinkResultOutput) - if secret { - return pulumi.ToSecret(output).(GetSinkResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:logging/getSink:getSink", args, GetSinkResultOutput{}, options).(GetSinkResultOutput), nil }).(GetSinkResultOutput) } diff --git a/sdk/go/gcp/monitoring/getAppEngineService.go b/sdk/go/gcp/monitoring/getAppEngineService.go index 3a4998797b..d583ee9855 100644 --- a/sdk/go/gcp/monitoring/getAppEngineService.go +++ b/sdk/go/gcp/monitoring/getAppEngineService.go @@ -135,21 +135,11 @@ type GetAppEngineServiceResult struct { } func GetAppEngineServiceOutput(ctx *pulumi.Context, args GetAppEngineServiceOutputArgs, opts ...pulumi.InvokeOption) GetAppEngineServiceResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetAppEngineServiceResultOutput, error) { args := v.(GetAppEngineServiceArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetAppEngineServiceResult - secret, err := ctx.InvokePackageRaw("gcp:monitoring/getAppEngineService:getAppEngineService", args, &rv, "", opts...) - if err != nil { - return GetAppEngineServiceResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetAppEngineServiceResultOutput) - if secret { - return pulumi.ToSecret(output).(GetAppEngineServiceResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:monitoring/getAppEngineService:getAppEngineService", args, GetAppEngineServiceResultOutput{}, options).(GetAppEngineServiceResultOutput), nil }).(GetAppEngineServiceResultOutput) } diff --git a/sdk/go/gcp/monitoring/getClusterIstioService.go b/sdk/go/gcp/monitoring/getClusterIstioService.go index e41f0cbf33..c86f1d1397 100644 --- a/sdk/go/gcp/monitoring/getClusterIstioService.go +++ b/sdk/go/gcp/monitoring/getClusterIstioService.go @@ -110,21 +110,11 @@ type GetClusterIstioServiceResult struct { } func GetClusterIstioServiceOutput(ctx *pulumi.Context, args GetClusterIstioServiceOutputArgs, opts ...pulumi.InvokeOption) GetClusterIstioServiceResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetClusterIstioServiceResultOutput, error) { args := v.(GetClusterIstioServiceArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetClusterIstioServiceResult - secret, err := ctx.InvokePackageRaw("gcp:monitoring/getClusterIstioService:getClusterIstioService", args, &rv, "", opts...) - if err != nil { - return GetClusterIstioServiceResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetClusterIstioServiceResultOutput) - if secret { - return pulumi.ToSecret(output).(GetClusterIstioServiceResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:monitoring/getClusterIstioService:getClusterIstioService", args, GetClusterIstioServiceResultOutput{}, options).(GetClusterIstioServiceResultOutput), nil }).(GetClusterIstioServiceResultOutput) } diff --git a/sdk/go/gcp/monitoring/getIstioCanonicalService.go b/sdk/go/gcp/monitoring/getIstioCanonicalService.go index 5839e7c0fc..0c226e039f 100644 --- a/sdk/go/gcp/monitoring/getIstioCanonicalService.go +++ b/sdk/go/gcp/monitoring/getIstioCanonicalService.go @@ -105,21 +105,11 @@ type GetIstioCanonicalServiceResult struct { } func GetIstioCanonicalServiceOutput(ctx *pulumi.Context, args GetIstioCanonicalServiceOutputArgs, opts ...pulumi.InvokeOption) GetIstioCanonicalServiceResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetIstioCanonicalServiceResultOutput, error) { args := v.(GetIstioCanonicalServiceArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetIstioCanonicalServiceResult - secret, err := ctx.InvokePackageRaw("gcp:monitoring/getIstioCanonicalService:getIstioCanonicalService", args, &rv, "", opts...) - if err != nil { - return GetIstioCanonicalServiceResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetIstioCanonicalServiceResultOutput) - if secret { - return pulumi.ToSecret(output).(GetIstioCanonicalServiceResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:monitoring/getIstioCanonicalService:getIstioCanonicalService", args, GetIstioCanonicalServiceResultOutput{}, options).(GetIstioCanonicalServiceResultOutput), nil }).(GetIstioCanonicalServiceResultOutput) } diff --git a/sdk/go/gcp/monitoring/getMeshIstioService.go b/sdk/go/gcp/monitoring/getMeshIstioService.go index 713d36a3a4..68227e7270 100644 --- a/sdk/go/gcp/monitoring/getMeshIstioService.go +++ b/sdk/go/gcp/monitoring/getMeshIstioService.go @@ -105,21 +105,11 @@ type GetMeshIstioServiceResult struct { } func GetMeshIstioServiceOutput(ctx *pulumi.Context, args GetMeshIstioServiceOutputArgs, opts ...pulumi.InvokeOption) GetMeshIstioServiceResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetMeshIstioServiceResultOutput, error) { args := v.(GetMeshIstioServiceArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetMeshIstioServiceResult - secret, err := ctx.InvokePackageRaw("gcp:monitoring/getMeshIstioService:getMeshIstioService", args, &rv, "", opts...) - if err != nil { - return GetMeshIstioServiceResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetMeshIstioServiceResultOutput) - if secret { - return pulumi.ToSecret(output).(GetMeshIstioServiceResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:monitoring/getMeshIstioService:getMeshIstioService", args, GetMeshIstioServiceResultOutput{}, options).(GetMeshIstioServiceResultOutput), nil }).(GetMeshIstioServiceResultOutput) } diff --git a/sdk/go/gcp/monitoring/getNotificationChannel.go b/sdk/go/gcp/monitoring/getNotificationChannel.go index 0ba412da28..e91cb55f15 100644 --- a/sdk/go/gcp/monitoring/getNotificationChannel.go +++ b/sdk/go/gcp/monitoring/getNotificationChannel.go @@ -131,21 +131,11 @@ type LookupNotificationChannelResult struct { } func LookupNotificationChannelOutput(ctx *pulumi.Context, args LookupNotificationChannelOutputArgs, opts ...pulumi.InvokeOption) LookupNotificationChannelResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupNotificationChannelResultOutput, error) { args := v.(LookupNotificationChannelArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupNotificationChannelResult - secret, err := ctx.InvokePackageRaw("gcp:monitoring/getNotificationChannel:getNotificationChannel", args, &rv, "", opts...) - if err != nil { - return LookupNotificationChannelResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupNotificationChannelResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupNotificationChannelResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:monitoring/getNotificationChannel:getNotificationChannel", args, LookupNotificationChannelResultOutput{}, options).(LookupNotificationChannelResultOutput), nil }).(LookupNotificationChannelResultOutput) } diff --git a/sdk/go/gcp/monitoring/getSecretVersion.go b/sdk/go/gcp/monitoring/getSecretVersion.go index 4a684e33d4..4978899e17 100644 --- a/sdk/go/gcp/monitoring/getSecretVersion.go +++ b/sdk/go/gcp/monitoring/getSecretVersion.go @@ -87,21 +87,11 @@ type GetSecretVersionResult struct { } func GetSecretVersionOutput(ctx *pulumi.Context, args GetSecretVersionOutputArgs, opts ...pulumi.InvokeOption) GetSecretVersionResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetSecretVersionResultOutput, error) { args := v.(GetSecretVersionArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetSecretVersionResult - secret, err := ctx.InvokePackageRaw("gcp:monitoring/getSecretVersion:getSecretVersion", args, &rv, "", opts...) - if err != nil { - return GetSecretVersionResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetSecretVersionResultOutput) - if secret { - return pulumi.ToSecret(output).(GetSecretVersionResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:monitoring/getSecretVersion:getSecretVersion", args, GetSecretVersionResultOutput{}, options).(GetSecretVersionResultOutput), nil }).(GetSecretVersionResultOutput) } diff --git a/sdk/go/gcp/monitoring/getUptimeCheckIPs.go b/sdk/go/gcp/monitoring/getUptimeCheckIPs.go index 5179835fe7..419d4f51e4 100644 --- a/sdk/go/gcp/monitoring/getUptimeCheckIPs.go +++ b/sdk/go/gcp/monitoring/getUptimeCheckIPs.go @@ -58,18 +58,8 @@ type GetUptimeCheckIPsResult struct { func GetUptimeCheckIPsOutput(ctx *pulumi.Context, opts ...pulumi.InvokeOption) GetUptimeCheckIPsResultOutput { return pulumi.ToOutput(0).ApplyT(func(int) (GetUptimeCheckIPsResultOutput, error) { - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetUptimeCheckIPsResult - secret, err := ctx.InvokePackageRaw("gcp:monitoring/getUptimeCheckIPs:getUptimeCheckIPs", nil, &rv, "", opts...) - if err != nil { - return GetUptimeCheckIPsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetUptimeCheckIPsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetUptimeCheckIPsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:monitoring/getUptimeCheckIPs:getUptimeCheckIPs", nil, GetUptimeCheckIPsResultOutput{}, options).(GetUptimeCheckIPsResultOutput), nil }).(GetUptimeCheckIPsResultOutput) } diff --git a/sdk/go/gcp/networksecurity/getAddressGroupIamPolicy.go b/sdk/go/gcp/networksecurity/getAddressGroupIamPolicy.go index c0c4ccdb93..d92445dd6f 100644 --- a/sdk/go/gcp/networksecurity/getAddressGroupIamPolicy.go +++ b/sdk/go/gcp/networksecurity/getAddressGroupIamPolicy.go @@ -51,21 +51,11 @@ type LookupAddressGroupIamPolicyResult struct { } func LookupAddressGroupIamPolicyOutput(ctx *pulumi.Context, args LookupAddressGroupIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupAddressGroupIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupAddressGroupIamPolicyResultOutput, error) { args := v.(LookupAddressGroupIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupAddressGroupIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:networksecurity/getAddressGroupIamPolicy:getAddressGroupIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupAddressGroupIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupAddressGroupIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupAddressGroupIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:networksecurity/getAddressGroupIamPolicy:getAddressGroupIamPolicy", args, LookupAddressGroupIamPolicyResultOutput{}, options).(LookupAddressGroupIamPolicyResultOutput), nil }).(LookupAddressGroupIamPolicyResultOutput) } diff --git a/sdk/go/gcp/notebooks/getInstanceIamPolicy.go b/sdk/go/gcp/notebooks/getInstanceIamPolicy.go index 991472fed0..a6308d979f 100644 --- a/sdk/go/gcp/notebooks/getInstanceIamPolicy.go +++ b/sdk/go/gcp/notebooks/getInstanceIamPolicy.go @@ -78,21 +78,11 @@ type LookupInstanceIamPolicyResult struct { } func LookupInstanceIamPolicyOutput(ctx *pulumi.Context, args LookupInstanceIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupInstanceIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupInstanceIamPolicyResultOutput, error) { args := v.(LookupInstanceIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupInstanceIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:notebooks/getInstanceIamPolicy:getInstanceIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupInstanceIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupInstanceIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupInstanceIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:notebooks/getInstanceIamPolicy:getInstanceIamPolicy", args, LookupInstanceIamPolicyResultOutput{}, options).(LookupInstanceIamPolicyResultOutput), nil }).(LookupInstanceIamPolicyResultOutput) } diff --git a/sdk/go/gcp/notebooks/getRuntimeIamPolicy.go b/sdk/go/gcp/notebooks/getRuntimeIamPolicy.go index 97acc8f36e..b7ccda4b12 100644 --- a/sdk/go/gcp/notebooks/getRuntimeIamPolicy.go +++ b/sdk/go/gcp/notebooks/getRuntimeIamPolicy.go @@ -78,21 +78,11 @@ type LookupRuntimeIamPolicyResult struct { } func LookupRuntimeIamPolicyOutput(ctx *pulumi.Context, args LookupRuntimeIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupRuntimeIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupRuntimeIamPolicyResultOutput, error) { args := v.(LookupRuntimeIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupRuntimeIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:notebooks/getRuntimeIamPolicy:getRuntimeIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupRuntimeIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupRuntimeIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupRuntimeIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:notebooks/getRuntimeIamPolicy:getRuntimeIamPolicy", args, LookupRuntimeIamPolicyResultOutput{}, options).(LookupRuntimeIamPolicyResultOutput), nil }).(LookupRuntimeIamPolicyResultOutput) } diff --git a/sdk/go/gcp/oracledatabase/getAutonomousDatabase.go b/sdk/go/gcp/oracledatabase/getAutonomousDatabase.go index d0890794b7..1d09d133c5 100644 --- a/sdk/go/gcp/oracledatabase/getAutonomousDatabase.go +++ b/sdk/go/gcp/oracledatabase/getAutonomousDatabase.go @@ -88,21 +88,11 @@ type LookupAutonomousDatabaseResult struct { } func LookupAutonomousDatabaseOutput(ctx *pulumi.Context, args LookupAutonomousDatabaseOutputArgs, opts ...pulumi.InvokeOption) LookupAutonomousDatabaseResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupAutonomousDatabaseResultOutput, error) { args := v.(LookupAutonomousDatabaseArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupAutonomousDatabaseResult - secret, err := ctx.InvokePackageRaw("gcp:oracledatabase/getAutonomousDatabase:getAutonomousDatabase", args, &rv, "", opts...) - if err != nil { - return LookupAutonomousDatabaseResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupAutonomousDatabaseResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupAutonomousDatabaseResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:oracledatabase/getAutonomousDatabase:getAutonomousDatabase", args, LookupAutonomousDatabaseResultOutput{}, options).(LookupAutonomousDatabaseResultOutput), nil }).(LookupAutonomousDatabaseResultOutput) } diff --git a/sdk/go/gcp/oracledatabase/getAutonomousDatabases.go b/sdk/go/gcp/oracledatabase/getAutonomousDatabases.go index 8563ca6b23..8db88165ac 100644 --- a/sdk/go/gcp/oracledatabase/getAutonomousDatabases.go +++ b/sdk/go/gcp/oracledatabase/getAutonomousDatabases.go @@ -72,21 +72,11 @@ type GetAutonomousDatabasesResult struct { } func GetAutonomousDatabasesOutput(ctx *pulumi.Context, args GetAutonomousDatabasesOutputArgs, opts ...pulumi.InvokeOption) GetAutonomousDatabasesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetAutonomousDatabasesResultOutput, error) { args := v.(GetAutonomousDatabasesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetAutonomousDatabasesResult - secret, err := ctx.InvokePackageRaw("gcp:oracledatabase/getAutonomousDatabases:getAutonomousDatabases", args, &rv, "", opts...) - if err != nil { - return GetAutonomousDatabasesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetAutonomousDatabasesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetAutonomousDatabasesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:oracledatabase/getAutonomousDatabases:getAutonomousDatabases", args, GetAutonomousDatabasesResultOutput{}, options).(GetAutonomousDatabasesResultOutput), nil }).(GetAutonomousDatabasesResultOutput) } diff --git a/sdk/go/gcp/oracledatabase/getCloudExadataInfrastructure.go b/sdk/go/gcp/oracledatabase/getCloudExadataInfrastructure.go index ef6fb5cc41..2bf2a6db8a 100644 --- a/sdk/go/gcp/oracledatabase/getCloudExadataInfrastructure.go +++ b/sdk/go/gcp/oracledatabase/getCloudExadataInfrastructure.go @@ -85,21 +85,11 @@ type LookupCloudExadataInfrastructureResult struct { } func LookupCloudExadataInfrastructureOutput(ctx *pulumi.Context, args LookupCloudExadataInfrastructureOutputArgs, opts ...pulumi.InvokeOption) LookupCloudExadataInfrastructureResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupCloudExadataInfrastructureResultOutput, error) { args := v.(LookupCloudExadataInfrastructureArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupCloudExadataInfrastructureResult - secret, err := ctx.InvokePackageRaw("gcp:oracledatabase/getCloudExadataInfrastructure:getCloudExadataInfrastructure", args, &rv, "", opts...) - if err != nil { - return LookupCloudExadataInfrastructureResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupCloudExadataInfrastructureResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupCloudExadataInfrastructureResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:oracledatabase/getCloudExadataInfrastructure:getCloudExadataInfrastructure", args, LookupCloudExadataInfrastructureResultOutput{}, options).(LookupCloudExadataInfrastructureResultOutput), nil }).(LookupCloudExadataInfrastructureResultOutput) } diff --git a/sdk/go/gcp/oracledatabase/getCloudExadataInfrastructures.go b/sdk/go/gcp/oracledatabase/getCloudExadataInfrastructures.go index 3c551cd235..aa8c28e368 100644 --- a/sdk/go/gcp/oracledatabase/getCloudExadataInfrastructures.go +++ b/sdk/go/gcp/oracledatabase/getCloudExadataInfrastructures.go @@ -72,21 +72,11 @@ type GetCloudExadataInfrastructuresResult struct { } func GetCloudExadataInfrastructuresOutput(ctx *pulumi.Context, args GetCloudExadataInfrastructuresOutputArgs, opts ...pulumi.InvokeOption) GetCloudExadataInfrastructuresResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetCloudExadataInfrastructuresResultOutput, error) { args := v.(GetCloudExadataInfrastructuresArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetCloudExadataInfrastructuresResult - secret, err := ctx.InvokePackageRaw("gcp:oracledatabase/getCloudExadataInfrastructures:getCloudExadataInfrastructures", args, &rv, "", opts...) - if err != nil { - return GetCloudExadataInfrastructuresResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetCloudExadataInfrastructuresResultOutput) - if secret { - return pulumi.ToSecret(output).(GetCloudExadataInfrastructuresResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:oracledatabase/getCloudExadataInfrastructures:getCloudExadataInfrastructures", args, GetCloudExadataInfrastructuresResultOutput{}, options).(GetCloudExadataInfrastructuresResultOutput), nil }).(GetCloudExadataInfrastructuresResultOutput) } diff --git a/sdk/go/gcp/oracledatabase/getCloudVmCluster.go b/sdk/go/gcp/oracledatabase/getCloudVmCluster.go index 66928a9095..e52bf917a7 100644 --- a/sdk/go/gcp/oracledatabase/getCloudVmCluster.go +++ b/sdk/go/gcp/oracledatabase/getCloudVmCluster.go @@ -88,21 +88,11 @@ type LookupCloudVmClusterResult struct { } func LookupCloudVmClusterOutput(ctx *pulumi.Context, args LookupCloudVmClusterOutputArgs, opts ...pulumi.InvokeOption) LookupCloudVmClusterResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupCloudVmClusterResultOutput, error) { args := v.(LookupCloudVmClusterArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupCloudVmClusterResult - secret, err := ctx.InvokePackageRaw("gcp:oracledatabase/getCloudVmCluster:getCloudVmCluster", args, &rv, "", opts...) - if err != nil { - return LookupCloudVmClusterResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupCloudVmClusterResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupCloudVmClusterResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:oracledatabase/getCloudVmCluster:getCloudVmCluster", args, LookupCloudVmClusterResultOutput{}, options).(LookupCloudVmClusterResultOutput), nil }).(LookupCloudVmClusterResultOutput) } diff --git a/sdk/go/gcp/oracledatabase/getCloudVmClusters.go b/sdk/go/gcp/oracledatabase/getCloudVmClusters.go index cd3c4e7a95..75739d95e1 100644 --- a/sdk/go/gcp/oracledatabase/getCloudVmClusters.go +++ b/sdk/go/gcp/oracledatabase/getCloudVmClusters.go @@ -72,21 +72,11 @@ type GetCloudVmClustersResult struct { } func GetCloudVmClustersOutput(ctx *pulumi.Context, args GetCloudVmClustersOutputArgs, opts ...pulumi.InvokeOption) GetCloudVmClustersResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetCloudVmClustersResultOutput, error) { args := v.(GetCloudVmClustersArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetCloudVmClustersResult - secret, err := ctx.InvokePackageRaw("gcp:oracledatabase/getCloudVmClusters:getCloudVmClusters", args, &rv, "", opts...) - if err != nil { - return GetCloudVmClustersResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetCloudVmClustersResultOutput) - if secret { - return pulumi.ToSecret(output).(GetCloudVmClustersResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:oracledatabase/getCloudVmClusters:getCloudVmClusters", args, GetCloudVmClustersResultOutput{}, options).(GetCloudVmClustersResultOutput), nil }).(GetCloudVmClustersResultOutput) } diff --git a/sdk/go/gcp/oracledatabase/getDbNodes.go b/sdk/go/gcp/oracledatabase/getDbNodes.go index f359bf993e..a34f0dd93c 100644 --- a/sdk/go/gcp/oracledatabase/getDbNodes.go +++ b/sdk/go/gcp/oracledatabase/getDbNodes.go @@ -114,21 +114,11 @@ type GetDbNodesResult struct { } func GetDbNodesOutput(ctx *pulumi.Context, args GetDbNodesOutputArgs, opts ...pulumi.InvokeOption) GetDbNodesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetDbNodesResultOutput, error) { args := v.(GetDbNodesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetDbNodesResult - secret, err := ctx.InvokePackageRaw("gcp:oracledatabase/getDbNodes:getDbNodes", args, &rv, "", opts...) - if err != nil { - return GetDbNodesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetDbNodesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetDbNodesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:oracledatabase/getDbNodes:getDbNodes", args, GetDbNodesResultOutput{}, options).(GetDbNodesResultOutput), nil }).(GetDbNodesResultOutput) } diff --git a/sdk/go/gcp/oracledatabase/getDbServers.go b/sdk/go/gcp/oracledatabase/getDbServers.go index 769f84352b..3fa8018bb7 100644 --- a/sdk/go/gcp/oracledatabase/getDbServers.go +++ b/sdk/go/gcp/oracledatabase/getDbServers.go @@ -114,21 +114,11 @@ type GetDbServersResult struct { } func GetDbServersOutput(ctx *pulumi.Context, args GetDbServersOutputArgs, opts ...pulumi.InvokeOption) GetDbServersResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetDbServersResultOutput, error) { args := v.(GetDbServersArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetDbServersResult - secret, err := ctx.InvokePackageRaw("gcp:oracledatabase/getDbServers:getDbServers", args, &rv, "", opts...) - if err != nil { - return GetDbServersResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetDbServersResultOutput) - if secret { - return pulumi.ToSecret(output).(GetDbServersResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:oracledatabase/getDbServers:getDbServers", args, GetDbServersResultOutput{}, options).(GetDbServersResultOutput), nil }).(GetDbServersResultOutput) } diff --git a/sdk/go/gcp/organizations/getActiveFolder.go b/sdk/go/gcp/organizations/getActiveFolder.go index 35bd051b79..16660e52c5 100644 --- a/sdk/go/gcp/organizations/getActiveFolder.go +++ b/sdk/go/gcp/organizations/getActiveFolder.go @@ -71,21 +71,11 @@ type GetActiveFolderResult struct { } func GetActiveFolderOutput(ctx *pulumi.Context, args GetActiveFolderOutputArgs, opts ...pulumi.InvokeOption) GetActiveFolderResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetActiveFolderResultOutput, error) { args := v.(GetActiveFolderArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetActiveFolderResult - secret, err := ctx.InvokePackageRaw("gcp:organizations/getActiveFolder:getActiveFolder", args, &rv, "", opts...) - if err != nil { - return GetActiveFolderResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetActiveFolderResultOutput) - if secret { - return pulumi.ToSecret(output).(GetActiveFolderResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:organizations/getActiveFolder:getActiveFolder", args, GetActiveFolderResultOutput{}, options).(GetActiveFolderResultOutput), nil }).(GetActiveFolderResultOutput) } diff --git a/sdk/go/gcp/organizations/getBillingAccount.go b/sdk/go/gcp/organizations/getBillingAccount.go index 35005a4475..501aa25b85 100644 --- a/sdk/go/gcp/organizations/getBillingAccount.go +++ b/sdk/go/gcp/organizations/getBillingAccount.go @@ -87,21 +87,11 @@ type GetBillingAccountResult struct { } func GetBillingAccountOutput(ctx *pulumi.Context, args GetBillingAccountOutputArgs, opts ...pulumi.InvokeOption) GetBillingAccountResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetBillingAccountResultOutput, error) { args := v.(GetBillingAccountArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetBillingAccountResult - secret, err := ctx.InvokePackageRaw("gcp:organizations/getBillingAccount:getBillingAccount", args, &rv, "", opts...) - if err != nil { - return GetBillingAccountResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetBillingAccountResultOutput) - if secret { - return pulumi.ToSecret(output).(GetBillingAccountResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:organizations/getBillingAccount:getBillingAccount", args, GetBillingAccountResultOutput{}, options).(GetBillingAccountResultOutput), nil }).(GetBillingAccountResultOutput) } diff --git a/sdk/go/gcp/organizations/getClientConfig.go b/sdk/go/gcp/organizations/getClientConfig.go index 029d298143..9e05dffacd 100644 --- a/sdk/go/gcp/organizations/getClientConfig.go +++ b/sdk/go/gcp/organizations/getClientConfig.go @@ -62,18 +62,8 @@ type GetClientConfigResult struct { func GetClientConfigOutput(ctx *pulumi.Context, opts ...pulumi.InvokeOption) GetClientConfigResultOutput { return pulumi.ToOutput(0).ApplyT(func(int) (GetClientConfigResultOutput, error) { - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetClientConfigResult - secret, err := ctx.InvokePackageRaw("gcp:organizations/getClientConfig:getClientConfig", nil, &rv, "", opts...) - if err != nil { - return GetClientConfigResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetClientConfigResultOutput) - if secret { - return pulumi.ToSecret(output).(GetClientConfigResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:organizations/getClientConfig:getClientConfig", nil, GetClientConfigResultOutput{}, options).(GetClientConfigResultOutput), nil }).(GetClientConfigResultOutput) } diff --git a/sdk/go/gcp/organizations/getClientOpenIdUserInfo.go b/sdk/go/gcp/organizations/getClientOpenIdUserInfo.go index 003d7a2d4e..861c95891e 100644 --- a/sdk/go/gcp/organizations/getClientOpenIdUserInfo.go +++ b/sdk/go/gcp/organizations/getClientOpenIdUserInfo.go @@ -68,18 +68,8 @@ type GetClientOpenIdUserInfoResult struct { func GetClientOpenIdUserInfoOutput(ctx *pulumi.Context, opts ...pulumi.InvokeOption) GetClientOpenIdUserInfoResultOutput { return pulumi.ToOutput(0).ApplyT(func(int) (GetClientOpenIdUserInfoResultOutput, error) { - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetClientOpenIdUserInfoResult - secret, err := ctx.InvokePackageRaw("gcp:organizations/getClientOpenIdUserInfo:getClientOpenIdUserInfo", nil, &rv, "", opts...) - if err != nil { - return GetClientOpenIdUserInfoResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetClientOpenIdUserInfoResultOutput) - if secret { - return pulumi.ToSecret(output).(GetClientOpenIdUserInfoResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:organizations/getClientOpenIdUserInfo:getClientOpenIdUserInfo", nil, GetClientOpenIdUserInfoResultOutput{}, options).(GetClientOpenIdUserInfoResultOutput), nil }).(GetClientOpenIdUserInfoResultOutput) } diff --git a/sdk/go/gcp/organizations/getFolder.go b/sdk/go/gcp/organizations/getFolder.go index 0ce728af77..0cd05ffac4 100644 --- a/sdk/go/gcp/organizations/getFolder.go +++ b/sdk/go/gcp/organizations/getFolder.go @@ -86,21 +86,11 @@ type LookupFolderResult struct { } func LookupFolderOutput(ctx *pulumi.Context, args LookupFolderOutputArgs, opts ...pulumi.InvokeOption) LookupFolderResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupFolderResultOutput, error) { args := v.(LookupFolderArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupFolderResult - secret, err := ctx.InvokePackageRaw("gcp:organizations/getFolder:getFolder", args, &rv, "", opts...) - if err != nil { - return LookupFolderResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupFolderResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupFolderResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:organizations/getFolder:getFolder", args, LookupFolderResultOutput{}, options).(LookupFolderResultOutput), nil }).(LookupFolderResultOutput) } diff --git a/sdk/go/gcp/organizations/getFolders.go b/sdk/go/gcp/organizations/getFolders.go index 0024e607b6..e91816d6a9 100644 --- a/sdk/go/gcp/organizations/getFolders.go +++ b/sdk/go/gcp/organizations/getFolders.go @@ -76,21 +76,11 @@ type GetFoldersResult struct { } func GetFoldersOutput(ctx *pulumi.Context, args GetFoldersOutputArgs, opts ...pulumi.InvokeOption) GetFoldersResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetFoldersResultOutput, error) { args := v.(GetFoldersArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetFoldersResult - secret, err := ctx.InvokePackageRaw("gcp:organizations/getFolders:getFolders", args, &rv, "", opts...) - if err != nil { - return GetFoldersResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetFoldersResultOutput) - if secret { - return pulumi.ToSecret(output).(GetFoldersResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:organizations/getFolders:getFolders", args, GetFoldersResultOutput{}, options).(GetFoldersResultOutput), nil }).(GetFoldersResultOutput) } diff --git a/sdk/go/gcp/organizations/getIAMPolicy.go b/sdk/go/gcp/organizations/getIAMPolicy.go index c5805d17e3..16ab3e6a32 100644 --- a/sdk/go/gcp/organizations/getIAMPolicy.go +++ b/sdk/go/gcp/organizations/getIAMPolicy.go @@ -50,21 +50,11 @@ type LookupIAMPolicyResult struct { } func LookupIAMPolicyOutput(ctx *pulumi.Context, args LookupIAMPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupIAMPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupIAMPolicyResultOutput, error) { args := v.(LookupIAMPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupIAMPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:organizations/getIAMPolicy:getIAMPolicy", args, &rv, "", opts...) - if err != nil { - return LookupIAMPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupIAMPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupIAMPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:organizations/getIAMPolicy:getIAMPolicy", args, LookupIAMPolicyResultOutput{}, options).(LookupIAMPolicyResultOutput), nil }).(LookupIAMPolicyResultOutput) } diff --git a/sdk/go/gcp/organizations/getOrganization.go b/sdk/go/gcp/organizations/getOrganization.go index 138e019ed5..f72b02a132 100644 --- a/sdk/go/gcp/organizations/getOrganization.go +++ b/sdk/go/gcp/organizations/getOrganization.go @@ -82,21 +82,11 @@ type GetOrganizationResult struct { } func GetOrganizationOutput(ctx *pulumi.Context, args GetOrganizationOutputArgs, opts ...pulumi.InvokeOption) GetOrganizationResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetOrganizationResultOutput, error) { args := v.(GetOrganizationArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetOrganizationResult - secret, err := ctx.InvokePackageRaw("gcp:organizations/getOrganization:getOrganization", args, &rv, "", opts...) - if err != nil { - return GetOrganizationResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetOrganizationResultOutput) - if secret { - return pulumi.ToSecret(output).(GetOrganizationResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:organizations/getOrganization:getOrganization", args, GetOrganizationResultOutput{}, options).(GetOrganizationResultOutput), nil }).(GetOrganizationResultOutput) } diff --git a/sdk/go/gcp/organizations/getProject.go b/sdk/go/gcp/organizations/getProject.go index 11a9199b84..2b0ae5e44e 100644 --- a/sdk/go/gcp/organizations/getProject.go +++ b/sdk/go/gcp/organizations/getProject.go @@ -75,21 +75,11 @@ type LookupProjectResult struct { } func LookupProjectOutput(ctx *pulumi.Context, args LookupProjectOutputArgs, opts ...pulumi.InvokeOption) LookupProjectResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupProjectResultOutput, error) { args := v.(LookupProjectArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupProjectResult - secret, err := ctx.InvokePackageRaw("gcp:organizations/getProject:getProject", args, &rv, "", opts...) - if err != nil { - return LookupProjectResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupProjectResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupProjectResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:organizations/getProject:getProject", args, LookupProjectResultOutput{}, options).(LookupProjectResultOutput), nil }).(LookupProjectResultOutput) } diff --git a/sdk/go/gcp/privilegedaccessmanager/getEntitlement.go b/sdk/go/gcp/privilegedaccessmanager/getEntitlement.go index 9036c6707f..1e97725eb5 100644 --- a/sdk/go/gcp/privilegedaccessmanager/getEntitlement.go +++ b/sdk/go/gcp/privilegedaccessmanager/getEntitlement.go @@ -87,21 +87,11 @@ type LookupEntitlementResult struct { } func LookupEntitlementOutput(ctx *pulumi.Context, args LookupEntitlementOutputArgs, opts ...pulumi.InvokeOption) LookupEntitlementResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupEntitlementResultOutput, error) { args := v.(LookupEntitlementArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupEntitlementResult - secret, err := ctx.InvokePackageRaw("gcp:privilegedaccessmanager/getEntitlement:getEntitlement", args, &rv, "", opts...) - if err != nil { - return LookupEntitlementResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupEntitlementResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupEntitlementResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:privilegedaccessmanager/getEntitlement:getEntitlement", args, LookupEntitlementResultOutput{}, options).(LookupEntitlementResultOutput), nil }).(LookupEntitlementResultOutput) } diff --git a/sdk/go/gcp/projects/getIamPolicy.go b/sdk/go/gcp/projects/getIamPolicy.go index 15fb3c74f3..4d937cc25b 100644 --- a/sdk/go/gcp/projects/getIamPolicy.go +++ b/sdk/go/gcp/projects/getIamPolicy.go @@ -67,21 +67,11 @@ type GetIamPolicyResult struct { } func GetIamPolicyOutput(ctx *pulumi.Context, args GetIamPolicyOutputArgs, opts ...pulumi.InvokeOption) GetIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetIamPolicyResultOutput, error) { args := v.(GetIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:projects/getIamPolicy:getIamPolicy", args, &rv, "", opts...) - if err != nil { - return GetIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(GetIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:projects/getIamPolicy:getIamPolicy", args, GetIamPolicyResultOutput{}, options).(GetIamPolicyResultOutput), nil }).(GetIamPolicyResultOutput) } diff --git a/sdk/go/gcp/projects/getOrganizationPolicy.go b/sdk/go/gcp/projects/getOrganizationPolicy.go index 6dc76dd803..c144a06969 100644 --- a/sdk/go/gcp/projects/getOrganizationPolicy.go +++ b/sdk/go/gcp/projects/getOrganizationPolicy.go @@ -75,21 +75,11 @@ type LookupOrganizationPolicyResult struct { } func LookupOrganizationPolicyOutput(ctx *pulumi.Context, args LookupOrganizationPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupOrganizationPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupOrganizationPolicyResultOutput, error) { args := v.(LookupOrganizationPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupOrganizationPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:projects/getOrganizationPolicy:getOrganizationPolicy", args, &rv, "", opts...) - if err != nil { - return LookupOrganizationPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupOrganizationPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupOrganizationPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:projects/getOrganizationPolicy:getOrganizationPolicy", args, LookupOrganizationPolicyResultOutput{}, options).(LookupOrganizationPolicyResultOutput), nil }).(LookupOrganizationPolicyResultOutput) } diff --git a/sdk/go/gcp/projects/getProject.go b/sdk/go/gcp/projects/getProject.go index 4714127517..aad1bac2d5 100644 --- a/sdk/go/gcp/projects/getProject.go +++ b/sdk/go/gcp/projects/getProject.go @@ -75,21 +75,11 @@ type GetProjectResult struct { } func GetProjectOutput(ctx *pulumi.Context, args GetProjectOutputArgs, opts ...pulumi.InvokeOption) GetProjectResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetProjectResultOutput, error) { args := v.(GetProjectArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetProjectResult - secret, err := ctx.InvokePackageRaw("gcp:projects/getProject:getProject", args, &rv, "", opts...) - if err != nil { - return GetProjectResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetProjectResultOutput) - if secret { - return pulumi.ToSecret(output).(GetProjectResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:projects/getProject:getProject", args, GetProjectResultOutput{}, options).(GetProjectResultOutput), nil }).(GetProjectResultOutput) } diff --git a/sdk/go/gcp/projects/getProjectService.go b/sdk/go/gcp/projects/getProjectService.go index d1c988e456..1f42ec9835 100644 --- a/sdk/go/gcp/projects/getProjectService.go +++ b/sdk/go/gcp/projects/getProjectService.go @@ -83,21 +83,11 @@ type GetProjectServiceResult struct { } func GetProjectServiceOutput(ctx *pulumi.Context, args GetProjectServiceOutputArgs, opts ...pulumi.InvokeOption) GetProjectServiceResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetProjectServiceResultOutput, error) { args := v.(GetProjectServiceArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetProjectServiceResult - secret, err := ctx.InvokePackageRaw("gcp:projects/getProjectService:getProjectService", args, &rv, "", opts...) - if err != nil { - return GetProjectServiceResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetProjectServiceResultOutput) - if secret { - return pulumi.ToSecret(output).(GetProjectServiceResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:projects/getProjectService:getProjectService", args, GetProjectServiceResultOutput{}, options).(GetProjectServiceResultOutput), nil }).(GetProjectServiceResultOutput) } diff --git a/sdk/go/gcp/pubsub/getSchemaIamPolicy.go b/sdk/go/gcp/pubsub/getSchemaIamPolicy.go index 0dd21f52b8..36b70923d6 100644 --- a/sdk/go/gcp/pubsub/getSchemaIamPolicy.go +++ b/sdk/go/gcp/pubsub/getSchemaIamPolicy.go @@ -72,21 +72,11 @@ type LookupSchemaIamPolicyResult struct { } func LookupSchemaIamPolicyOutput(ctx *pulumi.Context, args LookupSchemaIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupSchemaIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupSchemaIamPolicyResultOutput, error) { args := v.(LookupSchemaIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupSchemaIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:pubsub/getSchemaIamPolicy:getSchemaIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupSchemaIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupSchemaIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupSchemaIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:pubsub/getSchemaIamPolicy:getSchemaIamPolicy", args, LookupSchemaIamPolicyResultOutput{}, options).(LookupSchemaIamPolicyResultOutput), nil }).(LookupSchemaIamPolicyResultOutput) } diff --git a/sdk/go/gcp/pubsub/getSubscription.go b/sdk/go/gcp/pubsub/getSubscription.go index 6d0cbc18fa..78da6a3ebc 100644 --- a/sdk/go/gcp/pubsub/getSubscription.go +++ b/sdk/go/gcp/pubsub/getSubscription.go @@ -86,21 +86,11 @@ type LookupSubscriptionResult struct { } func LookupSubscriptionOutput(ctx *pulumi.Context, args LookupSubscriptionOutputArgs, opts ...pulumi.InvokeOption) LookupSubscriptionResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupSubscriptionResultOutput, error) { args := v.(LookupSubscriptionArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupSubscriptionResult - secret, err := ctx.InvokePackageRaw("gcp:pubsub/getSubscription:getSubscription", args, &rv, "", opts...) - if err != nil { - return LookupSubscriptionResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupSubscriptionResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupSubscriptionResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:pubsub/getSubscription:getSubscription", args, LookupSubscriptionResultOutput{}, options).(LookupSubscriptionResultOutput), nil }).(LookupSubscriptionResultOutput) } diff --git a/sdk/go/gcp/pubsub/getSubscriptionIamPolicy.go b/sdk/go/gcp/pubsub/getSubscriptionIamPolicy.go index 830a48f698..31a0d26cdd 100644 --- a/sdk/go/gcp/pubsub/getSubscriptionIamPolicy.go +++ b/sdk/go/gcp/pubsub/getSubscriptionIamPolicy.go @@ -70,21 +70,11 @@ type GetSubscriptionIamPolicyResult struct { } func GetSubscriptionIamPolicyOutput(ctx *pulumi.Context, args GetSubscriptionIamPolicyOutputArgs, opts ...pulumi.InvokeOption) GetSubscriptionIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetSubscriptionIamPolicyResultOutput, error) { args := v.(GetSubscriptionIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetSubscriptionIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:pubsub/getSubscriptionIamPolicy:getSubscriptionIamPolicy", args, &rv, "", opts...) - if err != nil { - return GetSubscriptionIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetSubscriptionIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(GetSubscriptionIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:pubsub/getSubscriptionIamPolicy:getSubscriptionIamPolicy", args, GetSubscriptionIamPolicyResultOutput{}, options).(GetSubscriptionIamPolicyResultOutput), nil }).(GetSubscriptionIamPolicyResultOutput) } diff --git a/sdk/go/gcp/pubsub/getTopic.go b/sdk/go/gcp/pubsub/getTopic.go index 63e8fe420a..baf1f835e9 100644 --- a/sdk/go/gcp/pubsub/getTopic.go +++ b/sdk/go/gcp/pubsub/getTopic.go @@ -78,21 +78,11 @@ type LookupTopicResult struct { } func LookupTopicOutput(ctx *pulumi.Context, args LookupTopicOutputArgs, opts ...pulumi.InvokeOption) LookupTopicResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupTopicResultOutput, error) { args := v.(LookupTopicArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupTopicResult - secret, err := ctx.InvokePackageRaw("gcp:pubsub/getTopic:getTopic", args, &rv, "", opts...) - if err != nil { - return LookupTopicResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupTopicResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupTopicResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:pubsub/getTopic:getTopic", args, LookupTopicResultOutput{}, options).(LookupTopicResultOutput), nil }).(LookupTopicResultOutput) } diff --git a/sdk/go/gcp/pubsub/getTopicIamPolicy.go b/sdk/go/gcp/pubsub/getTopicIamPolicy.go index 9ead2c331f..e01be2c602 100644 --- a/sdk/go/gcp/pubsub/getTopicIamPolicy.go +++ b/sdk/go/gcp/pubsub/getTopicIamPolicy.go @@ -72,21 +72,11 @@ type GetTopicIamPolicyResult struct { } func GetTopicIamPolicyOutput(ctx *pulumi.Context, args GetTopicIamPolicyOutputArgs, opts ...pulumi.InvokeOption) GetTopicIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetTopicIamPolicyResultOutput, error) { args := v.(GetTopicIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetTopicIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:pubsub/getTopicIamPolicy:getTopicIamPolicy", args, &rv, "", opts...) - if err != nil { - return GetTopicIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetTopicIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(GetTopicIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:pubsub/getTopicIamPolicy:getTopicIamPolicy", args, GetTopicIamPolicyResultOutput{}, options).(GetTopicIamPolicyResultOutput), nil }).(GetTopicIamPolicyResultOutput) } diff --git a/sdk/go/gcp/redis/getInstance.go b/sdk/go/gcp/redis/getInstance.go index afe99f27ca..7907ea285b 100644 --- a/sdk/go/gcp/redis/getInstance.go +++ b/sdk/go/gcp/redis/getInstance.go @@ -108,21 +108,11 @@ type LookupInstanceResult struct { } func LookupInstanceOutput(ctx *pulumi.Context, args LookupInstanceOutputArgs, opts ...pulumi.InvokeOption) LookupInstanceResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupInstanceResultOutput, error) { args := v.(LookupInstanceArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupInstanceResult - secret, err := ctx.InvokePackageRaw("gcp:redis/getInstance:getInstance", args, &rv, "", opts...) - if err != nil { - return LookupInstanceResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupInstanceResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupInstanceResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:redis/getInstance:getInstance", args, LookupInstanceResultOutput{}, options).(LookupInstanceResultOutput), nil }).(LookupInstanceResultOutput) } diff --git a/sdk/go/gcp/runtimeconfig/getConfig.go b/sdk/go/gcp/runtimeconfig/getConfig.go index 0f6af2f4aa..3f43270800 100644 --- a/sdk/go/gcp/runtimeconfig/getConfig.go +++ b/sdk/go/gcp/runtimeconfig/getConfig.go @@ -67,21 +67,11 @@ type LookupConfigResult struct { } func LookupConfigOutput(ctx *pulumi.Context, args LookupConfigOutputArgs, opts ...pulumi.InvokeOption) LookupConfigResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupConfigResultOutput, error) { args := v.(LookupConfigArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupConfigResult - secret, err := ctx.InvokePackageRaw("gcp:runtimeconfig/getConfig:getConfig", args, &rv, "", opts...) - if err != nil { - return LookupConfigResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupConfigResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupConfigResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:runtimeconfig/getConfig:getConfig", args, LookupConfigResultOutput{}, options).(LookupConfigResultOutput), nil }).(LookupConfigResultOutput) } diff --git a/sdk/go/gcp/runtimeconfig/getConfigIamPolicy.go b/sdk/go/gcp/runtimeconfig/getConfigIamPolicy.go index a8f66107ce..4be142d004 100644 --- a/sdk/go/gcp/runtimeconfig/getConfigIamPolicy.go +++ b/sdk/go/gcp/runtimeconfig/getConfigIamPolicy.go @@ -44,21 +44,11 @@ type LookupConfigIamPolicyResult struct { } func LookupConfigIamPolicyOutput(ctx *pulumi.Context, args LookupConfigIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupConfigIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupConfigIamPolicyResultOutput, error) { args := v.(LookupConfigIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupConfigIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:runtimeconfig/getConfigIamPolicy:getConfigIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupConfigIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupConfigIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupConfigIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:runtimeconfig/getConfigIamPolicy:getConfigIamPolicy", args, LookupConfigIamPolicyResultOutput{}, options).(LookupConfigIamPolicyResultOutput), nil }).(LookupConfigIamPolicyResultOutput) } diff --git a/sdk/go/gcp/runtimeconfig/getVariable.go b/sdk/go/gcp/runtimeconfig/getVariable.go index 8635c0295b..3828bd5baf 100644 --- a/sdk/go/gcp/runtimeconfig/getVariable.go +++ b/sdk/go/gcp/runtimeconfig/getVariable.go @@ -73,21 +73,11 @@ type LookupVariableResult struct { } func LookupVariableOutput(ctx *pulumi.Context, args LookupVariableOutputArgs, opts ...pulumi.InvokeOption) LookupVariableResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupVariableResultOutput, error) { args := v.(LookupVariableArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupVariableResult - secret, err := ctx.InvokePackageRaw("gcp:runtimeconfig/getVariable:getVariable", args, &rv, "", opts...) - if err != nil { - return LookupVariableResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupVariableResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupVariableResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:runtimeconfig/getVariable:getVariable", args, LookupVariableResultOutput{}, options).(LookupVariableResultOutput), nil }).(LookupVariableResultOutput) } diff --git a/sdk/go/gcp/secretmanager/getRegionalSecret.go b/sdk/go/gcp/secretmanager/getRegionalSecret.go index aa14788457..ea32bf965e 100644 --- a/sdk/go/gcp/secretmanager/getRegionalSecret.go +++ b/sdk/go/gcp/secretmanager/getRegionalSecret.go @@ -83,21 +83,11 @@ type LookupRegionalSecretResult struct { } func LookupRegionalSecretOutput(ctx *pulumi.Context, args LookupRegionalSecretOutputArgs, opts ...pulumi.InvokeOption) LookupRegionalSecretResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupRegionalSecretResultOutput, error) { args := v.(LookupRegionalSecretArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupRegionalSecretResult - secret, err := ctx.InvokePackageRaw("gcp:secretmanager/getRegionalSecret:getRegionalSecret", args, &rv, "", opts...) - if err != nil { - return LookupRegionalSecretResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupRegionalSecretResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupRegionalSecretResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:secretmanager/getRegionalSecret:getRegionalSecret", args, LookupRegionalSecretResultOutput{}, options).(LookupRegionalSecretResultOutput), nil }).(LookupRegionalSecretResultOutput) } diff --git a/sdk/go/gcp/secretmanager/getRegionalSecretIamPolicy.go b/sdk/go/gcp/secretmanager/getRegionalSecretIamPolicy.go index 7fb107bbc9..c8b4133336 100644 --- a/sdk/go/gcp/secretmanager/getRegionalSecretIamPolicy.go +++ b/sdk/go/gcp/secretmanager/getRegionalSecretIamPolicy.go @@ -78,21 +78,11 @@ type LookupRegionalSecretIamPolicyResult struct { } func LookupRegionalSecretIamPolicyOutput(ctx *pulumi.Context, args LookupRegionalSecretIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupRegionalSecretIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupRegionalSecretIamPolicyResultOutput, error) { args := v.(LookupRegionalSecretIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupRegionalSecretIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:secretmanager/getRegionalSecretIamPolicy:getRegionalSecretIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupRegionalSecretIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupRegionalSecretIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupRegionalSecretIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:secretmanager/getRegionalSecretIamPolicy:getRegionalSecretIamPolicy", args, LookupRegionalSecretIamPolicyResultOutput{}, options).(LookupRegionalSecretIamPolicyResultOutput), nil }).(LookupRegionalSecretIamPolicyResultOutput) } diff --git a/sdk/go/gcp/secretmanager/getRegionalSecretVersion.go b/sdk/go/gcp/secretmanager/getRegionalSecretVersion.go index 64c7768aaa..8d44fa96bb 100644 --- a/sdk/go/gcp/secretmanager/getRegionalSecretVersion.go +++ b/sdk/go/gcp/secretmanager/getRegionalSecretVersion.go @@ -93,21 +93,11 @@ type LookupRegionalSecretVersionResult struct { } func LookupRegionalSecretVersionOutput(ctx *pulumi.Context, args LookupRegionalSecretVersionOutputArgs, opts ...pulumi.InvokeOption) LookupRegionalSecretVersionResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupRegionalSecretVersionResultOutput, error) { args := v.(LookupRegionalSecretVersionArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupRegionalSecretVersionResult - secret, err := ctx.InvokePackageRaw("gcp:secretmanager/getRegionalSecretVersion:getRegionalSecretVersion", args, &rv, "", opts...) - if err != nil { - return LookupRegionalSecretVersionResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupRegionalSecretVersionResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupRegionalSecretVersionResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:secretmanager/getRegionalSecretVersion:getRegionalSecretVersion", args, LookupRegionalSecretVersionResultOutput{}, options).(LookupRegionalSecretVersionResultOutput), nil }).(LookupRegionalSecretVersionResultOutput) } diff --git a/sdk/go/gcp/secretmanager/getRegionalSecretVersionAccess.go b/sdk/go/gcp/secretmanager/getRegionalSecretVersionAccess.go index 42b120d302..d0ae82c0f3 100644 --- a/sdk/go/gcp/secretmanager/getRegionalSecretVersionAccess.go +++ b/sdk/go/gcp/secretmanager/getRegionalSecretVersionAccess.go @@ -85,21 +85,11 @@ type GetRegionalSecretVersionAccessResult struct { } func GetRegionalSecretVersionAccessOutput(ctx *pulumi.Context, args GetRegionalSecretVersionAccessOutputArgs, opts ...pulumi.InvokeOption) GetRegionalSecretVersionAccessResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetRegionalSecretVersionAccessResultOutput, error) { args := v.(GetRegionalSecretVersionAccessArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetRegionalSecretVersionAccessResult - secret, err := ctx.InvokePackageRaw("gcp:secretmanager/getRegionalSecretVersionAccess:getRegionalSecretVersionAccess", args, &rv, "", opts...) - if err != nil { - return GetRegionalSecretVersionAccessResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetRegionalSecretVersionAccessResultOutput) - if secret { - return pulumi.ToSecret(output).(GetRegionalSecretVersionAccessResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:secretmanager/getRegionalSecretVersionAccess:getRegionalSecretVersionAccess", args, GetRegionalSecretVersionAccessResultOutput{}, options).(GetRegionalSecretVersionAccessResultOutput), nil }).(GetRegionalSecretVersionAccessResultOutput) } diff --git a/sdk/go/gcp/secretmanager/getRegionalSecrets.go b/sdk/go/gcp/secretmanager/getRegionalSecrets.go index 4751cb6ac1..05bfd1ab20 100644 --- a/sdk/go/gcp/secretmanager/getRegionalSecrets.go +++ b/sdk/go/gcp/secretmanager/getRegionalSecrets.go @@ -72,21 +72,11 @@ type GetRegionalSecretsResult struct { } func GetRegionalSecretsOutput(ctx *pulumi.Context, args GetRegionalSecretsOutputArgs, opts ...pulumi.InvokeOption) GetRegionalSecretsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetRegionalSecretsResultOutput, error) { args := v.(GetRegionalSecretsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetRegionalSecretsResult - secret, err := ctx.InvokePackageRaw("gcp:secretmanager/getRegionalSecrets:getRegionalSecrets", args, &rv, "", opts...) - if err != nil { - return GetRegionalSecretsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetRegionalSecretsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetRegionalSecretsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:secretmanager/getRegionalSecrets:getRegionalSecrets", args, GetRegionalSecretsResultOutput{}, options).(GetRegionalSecretsResultOutput), nil }).(GetRegionalSecretsResultOutput) } diff --git a/sdk/go/gcp/secretmanager/getSecret.go b/sdk/go/gcp/secretmanager/getSecret.go index 611e04ff7a..6c3c3f2c19 100644 --- a/sdk/go/gcp/secretmanager/getSecret.go +++ b/sdk/go/gcp/secretmanager/getSecret.go @@ -79,21 +79,11 @@ type LookupSecretResult struct { } func LookupSecretOutput(ctx *pulumi.Context, args LookupSecretOutputArgs, opts ...pulumi.InvokeOption) LookupSecretResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupSecretResultOutput, error) { args := v.(LookupSecretArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupSecretResult - secret, err := ctx.InvokePackageRaw("gcp:secretmanager/getSecret:getSecret", args, &rv, "", opts...) - if err != nil { - return LookupSecretResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupSecretResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupSecretResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:secretmanager/getSecret:getSecret", args, LookupSecretResultOutput{}, options).(LookupSecretResultOutput), nil }).(LookupSecretResultOutput) } diff --git a/sdk/go/gcp/secretmanager/getSecretIamPolicy.go b/sdk/go/gcp/secretmanager/getSecretIamPolicy.go index c941c84a72..ac33391800 100644 --- a/sdk/go/gcp/secretmanager/getSecretIamPolicy.go +++ b/sdk/go/gcp/secretmanager/getSecretIamPolicy.go @@ -71,21 +71,11 @@ type LookupSecretIamPolicyResult struct { } func LookupSecretIamPolicyOutput(ctx *pulumi.Context, args LookupSecretIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupSecretIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupSecretIamPolicyResultOutput, error) { args := v.(LookupSecretIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupSecretIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:secretmanager/getSecretIamPolicy:getSecretIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupSecretIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupSecretIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupSecretIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:secretmanager/getSecretIamPolicy:getSecretIamPolicy", args, LookupSecretIamPolicyResultOutput{}, options).(LookupSecretIamPolicyResultOutput), nil }).(LookupSecretIamPolicyResultOutput) } diff --git a/sdk/go/gcp/secretmanager/getSecretVersion.go b/sdk/go/gcp/secretmanager/getSecretVersion.go index dcab8f571f..f07b454968 100644 --- a/sdk/go/gcp/secretmanager/getSecretVersion.go +++ b/sdk/go/gcp/secretmanager/getSecretVersion.go @@ -85,21 +85,11 @@ type LookupSecretVersionResult struct { } func LookupSecretVersionOutput(ctx *pulumi.Context, args LookupSecretVersionOutputArgs, opts ...pulumi.InvokeOption) LookupSecretVersionResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupSecretVersionResultOutput, error) { args := v.(LookupSecretVersionArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupSecretVersionResult - secret, err := ctx.InvokePackageRaw("gcp:secretmanager/getSecretVersion:getSecretVersion", args, &rv, "", opts...) - if err != nil { - return LookupSecretVersionResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupSecretVersionResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupSecretVersionResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:secretmanager/getSecretVersion:getSecretVersion", args, LookupSecretVersionResultOutput{}, options).(LookupSecretVersionResultOutput), nil }).(LookupSecretVersionResultOutput) } diff --git a/sdk/go/gcp/secretmanager/getSecretVersionAccess.go b/sdk/go/gcp/secretmanager/getSecretVersionAccess.go index b94edd4ab7..6a44309dab 100644 --- a/sdk/go/gcp/secretmanager/getSecretVersionAccess.go +++ b/sdk/go/gcp/secretmanager/getSecretVersionAccess.go @@ -79,21 +79,11 @@ type GetSecretVersionAccessResult struct { } func GetSecretVersionAccessOutput(ctx *pulumi.Context, args GetSecretVersionAccessOutputArgs, opts ...pulumi.InvokeOption) GetSecretVersionAccessResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetSecretVersionAccessResultOutput, error) { args := v.(GetSecretVersionAccessArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetSecretVersionAccessResult - secret, err := ctx.InvokePackageRaw("gcp:secretmanager/getSecretVersionAccess:getSecretVersionAccess", args, &rv, "", opts...) - if err != nil { - return GetSecretVersionAccessResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetSecretVersionAccessResultOutput) - if secret { - return pulumi.ToSecret(output).(GetSecretVersionAccessResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:secretmanager/getSecretVersionAccess:getSecretVersionAccess", args, GetSecretVersionAccessResultOutput{}, options).(GetSecretVersionAccessResultOutput), nil }).(GetSecretVersionAccessResultOutput) } diff --git a/sdk/go/gcp/secretmanager/getSecrets.go b/sdk/go/gcp/secretmanager/getSecrets.go index 04f4fc7b6f..7571aa30a9 100644 --- a/sdk/go/gcp/secretmanager/getSecrets.go +++ b/sdk/go/gcp/secretmanager/getSecrets.go @@ -66,21 +66,11 @@ type GetSecretsResult struct { } func GetSecretsOutput(ctx *pulumi.Context, args GetSecretsOutputArgs, opts ...pulumi.InvokeOption) GetSecretsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetSecretsResultOutput, error) { args := v.(GetSecretsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetSecretsResult - secret, err := ctx.InvokePackageRaw("gcp:secretmanager/getSecrets:getSecrets", args, &rv, "", opts...) - if err != nil { - return GetSecretsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetSecretsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetSecretsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:secretmanager/getSecrets:getSecrets", args, GetSecretsResultOutput{}, options).(GetSecretsResultOutput), nil }).(GetSecretsResultOutput) } diff --git a/sdk/go/gcp/securesourcemanager/getInstanceIamPolicy.go b/sdk/go/gcp/securesourcemanager/getInstanceIamPolicy.go index c74cf20e1c..c1bf5c375d 100644 --- a/sdk/go/gcp/securesourcemanager/getInstanceIamPolicy.go +++ b/sdk/go/gcp/securesourcemanager/getInstanceIamPolicy.go @@ -80,21 +80,11 @@ type LookupInstanceIamPolicyResult struct { } func LookupInstanceIamPolicyOutput(ctx *pulumi.Context, args LookupInstanceIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupInstanceIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupInstanceIamPolicyResultOutput, error) { args := v.(LookupInstanceIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupInstanceIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:securesourcemanager/getInstanceIamPolicy:getInstanceIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupInstanceIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupInstanceIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupInstanceIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:securesourcemanager/getInstanceIamPolicy:getInstanceIamPolicy", args, LookupInstanceIamPolicyResultOutput{}, options).(LookupInstanceIamPolicyResultOutput), nil }).(LookupInstanceIamPolicyResultOutput) } diff --git a/sdk/go/gcp/securesourcemanager/getRepositoryIamPolicy.go b/sdk/go/gcp/securesourcemanager/getRepositoryIamPolicy.go index 313cd0bba9..0c218a118b 100644 --- a/sdk/go/gcp/securesourcemanager/getRepositoryIamPolicy.go +++ b/sdk/go/gcp/securesourcemanager/getRepositoryIamPolicy.go @@ -80,21 +80,11 @@ type LookupRepositoryIamPolicyResult struct { } func LookupRepositoryIamPolicyOutput(ctx *pulumi.Context, args LookupRepositoryIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupRepositoryIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupRepositoryIamPolicyResultOutput, error) { args := v.(LookupRepositoryIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupRepositoryIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:securesourcemanager/getRepositoryIamPolicy:getRepositoryIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupRepositoryIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupRepositoryIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupRepositoryIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:securesourcemanager/getRepositoryIamPolicy:getRepositoryIamPolicy", args, LookupRepositoryIamPolicyResultOutput{}, options).(LookupRepositoryIamPolicyResultOutput), nil }).(LookupRepositoryIamPolicyResultOutput) } diff --git a/sdk/go/gcp/securitycenter/getSourceIamPolicy.go b/sdk/go/gcp/securitycenter/getSourceIamPolicy.go index 70b8eac864..8b9e618a07 100644 --- a/sdk/go/gcp/securitycenter/getSourceIamPolicy.go +++ b/sdk/go/gcp/securitycenter/getSourceIamPolicy.go @@ -69,21 +69,11 @@ type LookupSourceIamPolicyResult struct { } func LookupSourceIamPolicyOutput(ctx *pulumi.Context, args LookupSourceIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupSourceIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupSourceIamPolicyResultOutput, error) { args := v.(LookupSourceIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupSourceIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:securitycenter/getSourceIamPolicy:getSourceIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupSourceIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupSourceIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupSourceIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:securitycenter/getSourceIamPolicy:getSourceIamPolicy", args, LookupSourceIamPolicyResultOutput{}, options).(LookupSourceIamPolicyResultOutput), nil }).(LookupSourceIamPolicyResultOutput) } diff --git a/sdk/go/gcp/securitycenter/getV2OrganizationSourceIamPolicy.go b/sdk/go/gcp/securitycenter/getV2OrganizationSourceIamPolicy.go index d8758b9cba..f7f7aa5626 100644 --- a/sdk/go/gcp/securitycenter/getV2OrganizationSourceIamPolicy.go +++ b/sdk/go/gcp/securitycenter/getV2OrganizationSourceIamPolicy.go @@ -69,21 +69,11 @@ type LookupV2OrganizationSourceIamPolicyResult struct { } func LookupV2OrganizationSourceIamPolicyOutput(ctx *pulumi.Context, args LookupV2OrganizationSourceIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupV2OrganizationSourceIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupV2OrganizationSourceIamPolicyResultOutput, error) { args := v.(LookupV2OrganizationSourceIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupV2OrganizationSourceIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:securitycenter/getV2OrganizationSourceIamPolicy:getV2OrganizationSourceIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupV2OrganizationSourceIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupV2OrganizationSourceIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupV2OrganizationSourceIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:securitycenter/getV2OrganizationSourceIamPolicy:getV2OrganizationSourceIamPolicy", args, LookupV2OrganizationSourceIamPolicyResultOutput{}, options).(LookupV2OrganizationSourceIamPolicyResultOutput), nil }).(LookupV2OrganizationSourceIamPolicyResultOutput) } diff --git a/sdk/go/gcp/serviceaccount/getAccount.go b/sdk/go/gcp/serviceaccount/getAccount.go index ac1151e805..c73705bdd4 100644 --- a/sdk/go/gcp/serviceaccount/getAccount.go +++ b/sdk/go/gcp/serviceaccount/getAccount.go @@ -138,21 +138,11 @@ type LookupAccountResult struct { } func LookupAccountOutput(ctx *pulumi.Context, args LookupAccountOutputArgs, opts ...pulumi.InvokeOption) LookupAccountResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupAccountResultOutput, error) { args := v.(LookupAccountArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupAccountResult - secret, err := ctx.InvokePackageRaw("gcp:serviceaccount/getAccount:getAccount", args, &rv, "", opts...) - if err != nil { - return LookupAccountResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupAccountResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupAccountResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:serviceaccount/getAccount:getAccount", args, LookupAccountResultOutput{}, options).(LookupAccountResultOutput), nil }).(LookupAccountResultOutput) } diff --git a/sdk/go/gcp/serviceaccount/getAccountAccessToken.go b/sdk/go/gcp/serviceaccount/getAccountAccessToken.go index 35992fdb29..13a4ef20e2 100644 --- a/sdk/go/gcp/serviceaccount/getAccountAccessToken.go +++ b/sdk/go/gcp/serviceaccount/getAccountAccessToken.go @@ -129,21 +129,11 @@ type GetAccountAccessTokenResult struct { } func GetAccountAccessTokenOutput(ctx *pulumi.Context, args GetAccountAccessTokenOutputArgs, opts ...pulumi.InvokeOption) GetAccountAccessTokenResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetAccountAccessTokenResultOutput, error) { args := v.(GetAccountAccessTokenArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetAccountAccessTokenResult - secret, err := ctx.InvokePackageRaw("gcp:serviceaccount/getAccountAccessToken:getAccountAccessToken", args, &rv, "", opts...) - if err != nil { - return GetAccountAccessTokenResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetAccountAccessTokenResultOutput) - if secret { - return pulumi.ToSecret(output).(GetAccountAccessTokenResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:serviceaccount/getAccountAccessToken:getAccountAccessToken", args, GetAccountAccessTokenResultOutput{}, options).(GetAccountAccessTokenResultOutput), nil }).(GetAccountAccessTokenResultOutput) } diff --git a/sdk/go/gcp/serviceaccount/getAccountIdToken.go b/sdk/go/gcp/serviceaccount/getAccountIdToken.go index 88e83481b6..a2a1fa4f9b 100644 --- a/sdk/go/gcp/serviceaccount/getAccountIdToken.go +++ b/sdk/go/gcp/serviceaccount/getAccountIdToken.go @@ -169,21 +169,11 @@ type GetAccountIdTokenResult struct { } func GetAccountIdTokenOutput(ctx *pulumi.Context, args GetAccountIdTokenOutputArgs, opts ...pulumi.InvokeOption) GetAccountIdTokenResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetAccountIdTokenResultOutput, error) { args := v.(GetAccountIdTokenArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetAccountIdTokenResult - secret, err := ctx.InvokePackageRaw("gcp:serviceaccount/getAccountIdToken:getAccountIdToken", args, &rv, "", opts...) - if err != nil { - return GetAccountIdTokenResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetAccountIdTokenResultOutput) - if secret { - return pulumi.ToSecret(output).(GetAccountIdTokenResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:serviceaccount/getAccountIdToken:getAccountIdToken", args, GetAccountIdTokenResultOutput{}, options).(GetAccountIdTokenResultOutput), nil }).(GetAccountIdTokenResultOutput) } diff --git a/sdk/go/gcp/serviceaccount/getAccountJwt.go b/sdk/go/gcp/serviceaccount/getAccountJwt.go index c6c1dc373b..36dc3b0bbe 100644 --- a/sdk/go/gcp/serviceaccount/getAccountJwt.go +++ b/sdk/go/gcp/serviceaccount/getAccountJwt.go @@ -88,21 +88,11 @@ type GetAccountJwtResult struct { } func GetAccountJwtOutput(ctx *pulumi.Context, args GetAccountJwtOutputArgs, opts ...pulumi.InvokeOption) GetAccountJwtResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetAccountJwtResultOutput, error) { args := v.(GetAccountJwtArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetAccountJwtResult - secret, err := ctx.InvokePackageRaw("gcp:serviceaccount/getAccountJwt:getAccountJwt", args, &rv, "", opts...) - if err != nil { - return GetAccountJwtResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetAccountJwtResultOutput) - if secret { - return pulumi.ToSecret(output).(GetAccountJwtResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:serviceaccount/getAccountJwt:getAccountJwt", args, GetAccountJwtResultOutput{}, options).(GetAccountJwtResultOutput), nil }).(GetAccountJwtResultOutput) } diff --git a/sdk/go/gcp/serviceaccount/getAccountKey.go b/sdk/go/gcp/serviceaccount/getAccountKey.go index c41a0bae65..95c175beed 100644 --- a/sdk/go/gcp/serviceaccount/getAccountKey.go +++ b/sdk/go/gcp/serviceaccount/getAccountKey.go @@ -84,21 +84,11 @@ type GetAccountKeyResult struct { } func GetAccountKeyOutput(ctx *pulumi.Context, args GetAccountKeyOutputArgs, opts ...pulumi.InvokeOption) GetAccountKeyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetAccountKeyResultOutput, error) { args := v.(GetAccountKeyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetAccountKeyResult - secret, err := ctx.InvokePackageRaw("gcp:serviceaccount/getAccountKey:getAccountKey", args, &rv, "", opts...) - if err != nil { - return GetAccountKeyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetAccountKeyResultOutput) - if secret { - return pulumi.ToSecret(output).(GetAccountKeyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:serviceaccount/getAccountKey:getAccountKey", args, GetAccountKeyResultOutput{}, options).(GetAccountKeyResultOutput), nil }).(GetAccountKeyResultOutput) } diff --git a/sdk/go/gcp/serviceaccount/getIamPolicy.go b/sdk/go/gcp/serviceaccount/getIamPolicy.go index 54a81a9d8e..371ea4fa2f 100644 --- a/sdk/go/gcp/serviceaccount/getIamPolicy.go +++ b/sdk/go/gcp/serviceaccount/getIamPolicy.go @@ -66,21 +66,11 @@ type GetIamPolicyResult struct { } func GetIamPolicyOutput(ctx *pulumi.Context, args GetIamPolicyOutputArgs, opts ...pulumi.InvokeOption) GetIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetIamPolicyResultOutput, error) { args := v.(GetIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:serviceaccount/getIamPolicy:getIamPolicy", args, &rv, "", opts...) - if err != nil { - return GetIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(GetIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:serviceaccount/getIamPolicy:getIamPolicy", args, GetIamPolicyResultOutput{}, options).(GetIamPolicyResultOutput), nil }).(GetIamPolicyResultOutput) } diff --git a/sdk/go/gcp/serviceaccount/getS.go b/sdk/go/gcp/serviceaccount/getS.go index b1ddfb722a..89e55410b6 100644 --- a/sdk/go/gcp/serviceaccount/getS.go +++ b/sdk/go/gcp/serviceaccount/getS.go @@ -68,21 +68,11 @@ type GetSResult struct { } func GetSOutput(ctx *pulumi.Context, args GetSOutputArgs, opts ...pulumi.InvokeOption) GetSResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetSResultOutput, error) { args := v.(GetSArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetSResult - secret, err := ctx.InvokePackageRaw("gcp:serviceaccount/getS:getS", args, &rv, "", opts...) - if err != nil { - return GetSResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetSResultOutput) - if secret { - return pulumi.ToSecret(output).(GetSResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:serviceaccount/getS:getS", args, GetSResultOutput{}, options).(GetSResultOutput), nil }).(GetSResultOutput) } diff --git a/sdk/go/gcp/servicedirectory/getNamespaceIamPolicy.go b/sdk/go/gcp/servicedirectory/getNamespaceIamPolicy.go index ccf1f70d77..225fbbb9b2 100644 --- a/sdk/go/gcp/servicedirectory/getNamespaceIamPolicy.go +++ b/sdk/go/gcp/servicedirectory/getNamespaceIamPolicy.go @@ -40,21 +40,11 @@ type LookupNamespaceIamPolicyResult struct { } func LookupNamespaceIamPolicyOutput(ctx *pulumi.Context, args LookupNamespaceIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupNamespaceIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupNamespaceIamPolicyResultOutput, error) { args := v.(LookupNamespaceIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupNamespaceIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:servicedirectory/getNamespaceIamPolicy:getNamespaceIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupNamespaceIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupNamespaceIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupNamespaceIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:servicedirectory/getNamespaceIamPolicy:getNamespaceIamPolicy", args, LookupNamespaceIamPolicyResultOutput{}, options).(LookupNamespaceIamPolicyResultOutput), nil }).(LookupNamespaceIamPolicyResultOutput) } diff --git a/sdk/go/gcp/servicedirectory/getServiceIamPolicy.go b/sdk/go/gcp/servicedirectory/getServiceIamPolicy.go index 7b2498979f..6a4b784479 100644 --- a/sdk/go/gcp/servicedirectory/getServiceIamPolicy.go +++ b/sdk/go/gcp/servicedirectory/getServiceIamPolicy.go @@ -40,21 +40,11 @@ type LookupServiceIamPolicyResult struct { } func LookupServiceIamPolicyOutput(ctx *pulumi.Context, args LookupServiceIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupServiceIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupServiceIamPolicyResultOutput, error) { args := v.(LookupServiceIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupServiceIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:servicedirectory/getServiceIamPolicy:getServiceIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupServiceIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupServiceIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupServiceIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:servicedirectory/getServiceIamPolicy:getServiceIamPolicy", args, LookupServiceIamPolicyResultOutput{}, options).(LookupServiceIamPolicyResultOutput), nil }).(LookupServiceIamPolicyResultOutput) } diff --git a/sdk/go/gcp/servicenetworking/getPeeredDnsDomain.go b/sdk/go/gcp/servicenetworking/getPeeredDnsDomain.go index 21c5baad26..25721fe67c 100644 --- a/sdk/go/gcp/servicenetworking/getPeeredDnsDomain.go +++ b/sdk/go/gcp/servicenetworking/getPeeredDnsDomain.go @@ -42,21 +42,11 @@ type LookupPeeredDnsDomainResult struct { } func LookupPeeredDnsDomainOutput(ctx *pulumi.Context, args LookupPeeredDnsDomainOutputArgs, opts ...pulumi.InvokeOption) LookupPeeredDnsDomainResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupPeeredDnsDomainResultOutput, error) { args := v.(LookupPeeredDnsDomainArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupPeeredDnsDomainResult - secret, err := ctx.InvokePackageRaw("gcp:servicenetworking/getPeeredDnsDomain:getPeeredDnsDomain", args, &rv, "", opts...) - if err != nil { - return LookupPeeredDnsDomainResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupPeeredDnsDomainResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupPeeredDnsDomainResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:servicenetworking/getPeeredDnsDomain:getPeeredDnsDomain", args, LookupPeeredDnsDomainResultOutput{}, options).(LookupPeeredDnsDomainResultOutput), nil }).(LookupPeeredDnsDomainResultOutput) } diff --git a/sdk/go/gcp/siteverification/getToken.go b/sdk/go/gcp/siteverification/getToken.go index 55997b8375..18cb7ca724 100644 --- a/sdk/go/gcp/siteverification/getToken.go +++ b/sdk/go/gcp/siteverification/getToken.go @@ -114,21 +114,11 @@ type GetTokenResult struct { } func GetTokenOutput(ctx *pulumi.Context, args GetTokenOutputArgs, opts ...pulumi.InvokeOption) GetTokenResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetTokenResultOutput, error) { args := v.(GetTokenArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetTokenResult - secret, err := ctx.InvokePackageRaw("gcp:siteverification/getToken:getToken", args, &rv, "", opts...) - if err != nil { - return GetTokenResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetTokenResultOutput) - if secret { - return pulumi.ToSecret(output).(GetTokenResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:siteverification/getToken:getToken", args, GetTokenResultOutput{}, options).(GetTokenResultOutput), nil }).(GetTokenResultOutput) } diff --git a/sdk/go/gcp/sourcerepo/getRepository.go b/sdk/go/gcp/sourcerepo/getRepository.go index 34a58698bb..d549255820 100644 --- a/sdk/go/gcp/sourcerepo/getRepository.go +++ b/sdk/go/gcp/sourcerepo/getRepository.go @@ -72,21 +72,11 @@ type LookupRepositoryResult struct { } func LookupRepositoryOutput(ctx *pulumi.Context, args LookupRepositoryOutputArgs, opts ...pulumi.InvokeOption) LookupRepositoryResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupRepositoryResultOutput, error) { args := v.(LookupRepositoryArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupRepositoryResult - secret, err := ctx.InvokePackageRaw("gcp:sourcerepo/getRepository:getRepository", args, &rv, "", opts...) - if err != nil { - return LookupRepositoryResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupRepositoryResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupRepositoryResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:sourcerepo/getRepository:getRepository", args, LookupRepositoryResultOutput{}, options).(LookupRepositoryResultOutput), nil }).(LookupRepositoryResultOutput) } diff --git a/sdk/go/gcp/sourcerepo/getRepositoryIamPolicy.go b/sdk/go/gcp/sourcerepo/getRepositoryIamPolicy.go index 7e58cb8808..36a62cf00b 100644 --- a/sdk/go/gcp/sourcerepo/getRepositoryIamPolicy.go +++ b/sdk/go/gcp/sourcerepo/getRepositoryIamPolicy.go @@ -72,21 +72,11 @@ type LookupRepositoryIamPolicyResult struct { } func LookupRepositoryIamPolicyOutput(ctx *pulumi.Context, args LookupRepositoryIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupRepositoryIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupRepositoryIamPolicyResultOutput, error) { args := v.(LookupRepositoryIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupRepositoryIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:sourcerepo/getRepositoryIamPolicy:getRepositoryIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupRepositoryIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupRepositoryIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupRepositoryIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:sourcerepo/getRepositoryIamPolicy:getRepositoryIamPolicy", args, LookupRepositoryIamPolicyResultOutput{}, options).(LookupRepositoryIamPolicyResultOutput), nil }).(LookupRepositoryIamPolicyResultOutput) } diff --git a/sdk/go/gcp/spanner/getDatabase.go b/sdk/go/gcp/spanner/getDatabase.go index 33f837e323..0110671c37 100644 --- a/sdk/go/gcp/spanner/getDatabase.go +++ b/sdk/go/gcp/spanner/getDatabase.go @@ -79,21 +79,11 @@ type LookupDatabaseResult struct { } func LookupDatabaseOutput(ctx *pulumi.Context, args LookupDatabaseOutputArgs, opts ...pulumi.InvokeOption) LookupDatabaseResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupDatabaseResultOutput, error) { args := v.(LookupDatabaseArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupDatabaseResult - secret, err := ctx.InvokePackageRaw("gcp:spanner/getDatabase:getDatabase", args, &rv, "", opts...) - if err != nil { - return LookupDatabaseResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupDatabaseResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupDatabaseResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:spanner/getDatabase:getDatabase", args, LookupDatabaseResultOutput{}, options).(LookupDatabaseResultOutput), nil }).(LookupDatabaseResultOutput) } diff --git a/sdk/go/gcp/spanner/getDatabaseIamPolicy.go b/sdk/go/gcp/spanner/getDatabaseIamPolicy.go index 6daef4eb4b..8b6ccc6265 100644 --- a/sdk/go/gcp/spanner/getDatabaseIamPolicy.go +++ b/sdk/go/gcp/spanner/getDatabaseIamPolicy.go @@ -75,21 +75,11 @@ type GetDatabaseIamPolicyResult struct { } func GetDatabaseIamPolicyOutput(ctx *pulumi.Context, args GetDatabaseIamPolicyOutputArgs, opts ...pulumi.InvokeOption) GetDatabaseIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetDatabaseIamPolicyResultOutput, error) { args := v.(GetDatabaseIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetDatabaseIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:spanner/getDatabaseIamPolicy:getDatabaseIamPolicy", args, &rv, "", opts...) - if err != nil { - return GetDatabaseIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetDatabaseIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(GetDatabaseIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:spanner/getDatabaseIamPolicy:getDatabaseIamPolicy", args, GetDatabaseIamPolicyResultOutput{}, options).(GetDatabaseIamPolicyResultOutput), nil }).(GetDatabaseIamPolicyResultOutput) } diff --git a/sdk/go/gcp/spanner/getInstance.go b/sdk/go/gcp/spanner/getInstance.go index 2d73c8a852..6d0c6dcaf7 100644 --- a/sdk/go/gcp/spanner/getInstance.go +++ b/sdk/go/gcp/spanner/getInstance.go @@ -82,21 +82,11 @@ type LookupInstanceResult struct { } func LookupInstanceOutput(ctx *pulumi.Context, args LookupInstanceOutputArgs, opts ...pulumi.InvokeOption) LookupInstanceResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupInstanceResultOutput, error) { args := v.(LookupInstanceArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupInstanceResult - secret, err := ctx.InvokePackageRaw("gcp:spanner/getInstance:getInstance", args, &rv, "", opts...) - if err != nil { - return LookupInstanceResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupInstanceResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupInstanceResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:spanner/getInstance:getInstance", args, LookupInstanceResultOutput{}, options).(LookupInstanceResultOutput), nil }).(LookupInstanceResultOutput) } diff --git a/sdk/go/gcp/spanner/getInstanceIamPolicy.go b/sdk/go/gcp/spanner/getInstanceIamPolicy.go index 0465fbcfff..e5739a7bff 100644 --- a/sdk/go/gcp/spanner/getInstanceIamPolicy.go +++ b/sdk/go/gcp/spanner/getInstanceIamPolicy.go @@ -71,21 +71,11 @@ type GetInstanceIamPolicyResult struct { } func GetInstanceIamPolicyOutput(ctx *pulumi.Context, args GetInstanceIamPolicyOutputArgs, opts ...pulumi.InvokeOption) GetInstanceIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetInstanceIamPolicyResultOutput, error) { args := v.(GetInstanceIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetInstanceIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:spanner/getInstanceIamPolicy:getInstanceIamPolicy", args, &rv, "", opts...) - if err != nil { - return GetInstanceIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetInstanceIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(GetInstanceIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:spanner/getInstanceIamPolicy:getInstanceIamPolicy", args, GetInstanceIamPolicyResultOutput{}, options).(GetInstanceIamPolicyResultOutput), nil }).(GetInstanceIamPolicyResultOutput) } diff --git a/sdk/go/gcp/sql/getBackupRun.go b/sdk/go/gcp/sql/getBackupRun.go index e26d42c79a..277c4c438d 100644 --- a/sdk/go/gcp/sql/getBackupRun.go +++ b/sdk/go/gcp/sql/getBackupRun.go @@ -82,21 +82,11 @@ type GetBackupRunResult struct { } func GetBackupRunOutput(ctx *pulumi.Context, args GetBackupRunOutputArgs, opts ...pulumi.InvokeOption) GetBackupRunResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetBackupRunResultOutput, error) { args := v.(GetBackupRunArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetBackupRunResult - secret, err := ctx.InvokePackageRaw("gcp:sql/getBackupRun:getBackupRun", args, &rv, "", opts...) - if err != nil { - return GetBackupRunResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetBackupRunResultOutput) - if secret { - return pulumi.ToSecret(output).(GetBackupRunResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:sql/getBackupRun:getBackupRun", args, GetBackupRunResultOutput{}, options).(GetBackupRunResultOutput), nil }).(GetBackupRunResultOutput) } diff --git a/sdk/go/gcp/sql/getCaCerts.go b/sdk/go/gcp/sql/getCaCerts.go index 7926366a21..ad866218f1 100644 --- a/sdk/go/gcp/sql/getCaCerts.go +++ b/sdk/go/gcp/sql/getCaCerts.go @@ -46,21 +46,11 @@ type GetCaCertsResult struct { } func GetCaCertsOutput(ctx *pulumi.Context, args GetCaCertsOutputArgs, opts ...pulumi.InvokeOption) GetCaCertsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetCaCertsResultOutput, error) { args := v.(GetCaCertsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetCaCertsResult - secret, err := ctx.InvokePackageRaw("gcp:sql/getCaCerts:getCaCerts", args, &rv, "", opts...) - if err != nil { - return GetCaCertsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetCaCertsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetCaCertsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:sql/getCaCerts:getCaCerts", args, GetCaCertsResultOutput{}, options).(GetCaCertsResultOutput), nil }).(GetCaCertsResultOutput) } diff --git a/sdk/go/gcp/sql/getDatabase.go b/sdk/go/gcp/sql/getDatabase.go index 7f5a667f4e..23bd69d7ad 100644 --- a/sdk/go/gcp/sql/getDatabase.go +++ b/sdk/go/gcp/sql/getDatabase.go @@ -73,21 +73,11 @@ type LookupDatabaseResult struct { } func LookupDatabaseOutput(ctx *pulumi.Context, args LookupDatabaseOutputArgs, opts ...pulumi.InvokeOption) LookupDatabaseResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupDatabaseResultOutput, error) { args := v.(LookupDatabaseArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupDatabaseResult - secret, err := ctx.InvokePackageRaw("gcp:sql/getDatabase:getDatabase", args, &rv, "", opts...) - if err != nil { - return LookupDatabaseResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupDatabaseResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupDatabaseResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:sql/getDatabase:getDatabase", args, LookupDatabaseResultOutput{}, options).(LookupDatabaseResultOutput), nil }).(LookupDatabaseResultOutput) } diff --git a/sdk/go/gcp/sql/getDatabaseInstance.go b/sdk/go/gcp/sql/getDatabaseInstance.go index db29bdbaf5..1e6d710810 100644 --- a/sdk/go/gcp/sql/getDatabaseInstance.go +++ b/sdk/go/gcp/sql/getDatabaseInstance.go @@ -89,21 +89,11 @@ type LookupDatabaseInstanceResult struct { } func LookupDatabaseInstanceOutput(ctx *pulumi.Context, args LookupDatabaseInstanceOutputArgs, opts ...pulumi.InvokeOption) LookupDatabaseInstanceResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupDatabaseInstanceResultOutput, error) { args := v.(LookupDatabaseInstanceArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupDatabaseInstanceResult - secret, err := ctx.InvokePackageRaw("gcp:sql/getDatabaseInstance:getDatabaseInstance", args, &rv, "", opts...) - if err != nil { - return LookupDatabaseInstanceResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupDatabaseInstanceResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupDatabaseInstanceResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:sql/getDatabaseInstance:getDatabaseInstance", args, LookupDatabaseInstanceResultOutput{}, options).(LookupDatabaseInstanceResultOutput), nil }).(LookupDatabaseInstanceResultOutput) } diff --git a/sdk/go/gcp/sql/getDatabaseInstanceLatestRecoveryTime.go b/sdk/go/gcp/sql/getDatabaseInstanceLatestRecoveryTime.go index d48b0faf14..c72c667387 100644 --- a/sdk/go/gcp/sql/getDatabaseInstanceLatestRecoveryTime.go +++ b/sdk/go/gcp/sql/getDatabaseInstanceLatestRecoveryTime.go @@ -73,21 +73,11 @@ type GetDatabaseInstanceLatestRecoveryTimeResult struct { } func GetDatabaseInstanceLatestRecoveryTimeOutput(ctx *pulumi.Context, args GetDatabaseInstanceLatestRecoveryTimeOutputArgs, opts ...pulumi.InvokeOption) GetDatabaseInstanceLatestRecoveryTimeResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetDatabaseInstanceLatestRecoveryTimeResultOutput, error) { args := v.(GetDatabaseInstanceLatestRecoveryTimeArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetDatabaseInstanceLatestRecoveryTimeResult - secret, err := ctx.InvokePackageRaw("gcp:sql/getDatabaseInstanceLatestRecoveryTime:getDatabaseInstanceLatestRecoveryTime", args, &rv, "", opts...) - if err != nil { - return GetDatabaseInstanceLatestRecoveryTimeResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetDatabaseInstanceLatestRecoveryTimeResultOutput) - if secret { - return pulumi.ToSecret(output).(GetDatabaseInstanceLatestRecoveryTimeResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:sql/getDatabaseInstanceLatestRecoveryTime:getDatabaseInstanceLatestRecoveryTime", args, GetDatabaseInstanceLatestRecoveryTimeResultOutput{}, options).(GetDatabaseInstanceLatestRecoveryTimeResultOutput), nil }).(GetDatabaseInstanceLatestRecoveryTimeResultOutput) } diff --git a/sdk/go/gcp/sql/getDatabaseInstances.go b/sdk/go/gcp/sql/getDatabaseInstances.go index b4360ee77c..446cf04f88 100644 --- a/sdk/go/gcp/sql/getDatabaseInstances.go +++ b/sdk/go/gcp/sql/getDatabaseInstances.go @@ -78,21 +78,11 @@ type GetDatabaseInstancesResult struct { } func GetDatabaseInstancesOutput(ctx *pulumi.Context, args GetDatabaseInstancesOutputArgs, opts ...pulumi.InvokeOption) GetDatabaseInstancesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetDatabaseInstancesResultOutput, error) { args := v.(GetDatabaseInstancesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetDatabaseInstancesResult - secret, err := ctx.InvokePackageRaw("gcp:sql/getDatabaseInstances:getDatabaseInstances", args, &rv, "", opts...) - if err != nil { - return GetDatabaseInstancesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetDatabaseInstancesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetDatabaseInstancesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:sql/getDatabaseInstances:getDatabaseInstances", args, GetDatabaseInstancesResultOutput{}, options).(GetDatabaseInstancesResultOutput), nil }).(GetDatabaseInstancesResultOutput) } diff --git a/sdk/go/gcp/sql/getDatabases.go b/sdk/go/gcp/sql/getDatabases.go index 685e4e487d..8b0bae0fd6 100644 --- a/sdk/go/gcp/sql/getDatabases.go +++ b/sdk/go/gcp/sql/getDatabases.go @@ -67,21 +67,11 @@ type GetDatabasesResult struct { } func GetDatabasesOutput(ctx *pulumi.Context, args GetDatabasesOutputArgs, opts ...pulumi.InvokeOption) GetDatabasesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetDatabasesResultOutput, error) { args := v.(GetDatabasesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetDatabasesResult - secret, err := ctx.InvokePackageRaw("gcp:sql/getDatabases:getDatabases", args, &rv, "", opts...) - if err != nil { - return GetDatabasesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetDatabasesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetDatabasesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:sql/getDatabases:getDatabases", args, GetDatabasesResultOutput{}, options).(GetDatabasesResultOutput), nil }).(GetDatabasesResultOutput) } diff --git a/sdk/go/gcp/sql/getTiers.go b/sdk/go/gcp/sql/getTiers.go index 1ada368416..98198d55c1 100644 --- a/sdk/go/gcp/sql/getTiers.go +++ b/sdk/go/gcp/sql/getTiers.go @@ -41,21 +41,11 @@ type GetTiersResult struct { } func GetTiersOutput(ctx *pulumi.Context, args GetTiersOutputArgs, opts ...pulumi.InvokeOption) GetTiersResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetTiersResultOutput, error) { args := v.(GetTiersArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetTiersResult - secret, err := ctx.InvokePackageRaw("gcp:sql/getTiers:getTiers", args, &rv, "", opts...) - if err != nil { - return GetTiersResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetTiersResultOutput) - if secret { - return pulumi.ToSecret(output).(GetTiersResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:sql/getTiers:getTiers", args, GetTiersResultOutput{}, options).(GetTiersResultOutput), nil }).(GetTiersResultOutput) } diff --git a/sdk/go/gcp/storage/getBucket.go b/sdk/go/gcp/storage/getBucket.go index 51acaa7b4b..81d44e9acf 100644 --- a/sdk/go/gcp/storage/getBucket.go +++ b/sdk/go/gcp/storage/getBucket.go @@ -94,21 +94,11 @@ type LookupBucketResult struct { } func LookupBucketOutput(ctx *pulumi.Context, args LookupBucketOutputArgs, opts ...pulumi.InvokeOption) LookupBucketResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupBucketResultOutput, error) { args := v.(LookupBucketArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupBucketResult - secret, err := ctx.InvokePackageRaw("gcp:storage/getBucket:getBucket", args, &rv, "", opts...) - if err != nil { - return LookupBucketResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupBucketResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupBucketResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:storage/getBucket:getBucket", args, LookupBucketResultOutput{}, options).(LookupBucketResultOutput), nil }).(LookupBucketResultOutput) } diff --git a/sdk/go/gcp/storage/getBucketIamPolicy.go b/sdk/go/gcp/storage/getBucketIamPolicy.go index 6894f89653..035101baa2 100644 --- a/sdk/go/gcp/storage/getBucketIamPolicy.go +++ b/sdk/go/gcp/storage/getBucketIamPolicy.go @@ -67,21 +67,11 @@ type GetBucketIamPolicyResult struct { } func GetBucketIamPolicyOutput(ctx *pulumi.Context, args GetBucketIamPolicyOutputArgs, opts ...pulumi.InvokeOption) GetBucketIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetBucketIamPolicyResultOutput, error) { args := v.(GetBucketIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetBucketIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:storage/getBucketIamPolicy:getBucketIamPolicy", args, &rv, "", opts...) - if err != nil { - return GetBucketIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetBucketIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(GetBucketIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:storage/getBucketIamPolicy:getBucketIamPolicy", args, GetBucketIamPolicyResultOutput{}, options).(GetBucketIamPolicyResultOutput), nil }).(GetBucketIamPolicyResultOutput) } diff --git a/sdk/go/gcp/storage/getBucketObject.go b/sdk/go/gcp/storage/getBucketObject.go index e3bb34324c..80cd043510 100644 --- a/sdk/go/gcp/storage/getBucketObject.go +++ b/sdk/go/gcp/storage/getBucketObject.go @@ -108,21 +108,11 @@ type LookupBucketObjectResult struct { } func LookupBucketObjectOutput(ctx *pulumi.Context, args LookupBucketObjectOutputArgs, opts ...pulumi.InvokeOption) LookupBucketObjectResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupBucketObjectResultOutput, error) { args := v.(LookupBucketObjectArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupBucketObjectResult - secret, err := ctx.InvokePackageRaw("gcp:storage/getBucketObject:getBucketObject", args, &rv, "", opts...) - if err != nil { - return LookupBucketObjectResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupBucketObjectResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupBucketObjectResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:storage/getBucketObject:getBucketObject", args, LookupBucketObjectResultOutput{}, options).(LookupBucketObjectResultOutput), nil }).(LookupBucketObjectResultOutput) } diff --git a/sdk/go/gcp/storage/getBucketObjectContent.go b/sdk/go/gcp/storage/getBucketObjectContent.go index c1f6d63e93..3280b3e550 100644 --- a/sdk/go/gcp/storage/getBucketObjectContent.go +++ b/sdk/go/gcp/storage/getBucketObjectContent.go @@ -98,21 +98,11 @@ type GetBucketObjectContentResult struct { } func GetBucketObjectContentOutput(ctx *pulumi.Context, args GetBucketObjectContentOutputArgs, opts ...pulumi.InvokeOption) GetBucketObjectContentResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetBucketObjectContentResultOutput, error) { args := v.(GetBucketObjectContentArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetBucketObjectContentResult - secret, err := ctx.InvokePackageRaw("gcp:storage/getBucketObjectContent:getBucketObjectContent", args, &rv, "", opts...) - if err != nil { - return GetBucketObjectContentResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetBucketObjectContentResultOutput) - if secret { - return pulumi.ToSecret(output).(GetBucketObjectContentResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:storage/getBucketObjectContent:getBucketObjectContent", args, GetBucketObjectContentResultOutput{}, options).(GetBucketObjectContentResultOutput), nil }).(GetBucketObjectContentResultOutput) } diff --git a/sdk/go/gcp/storage/getBucketObjects.go b/sdk/go/gcp/storage/getBucketObjects.go index e64c687345..e94c72f864 100644 --- a/sdk/go/gcp/storage/getBucketObjects.go +++ b/sdk/go/gcp/storage/getBucketObjects.go @@ -74,21 +74,11 @@ type GetBucketObjectsResult struct { } func GetBucketObjectsOutput(ctx *pulumi.Context, args GetBucketObjectsOutputArgs, opts ...pulumi.InvokeOption) GetBucketObjectsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetBucketObjectsResultOutput, error) { args := v.(GetBucketObjectsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetBucketObjectsResult - secret, err := ctx.InvokePackageRaw("gcp:storage/getBucketObjects:getBucketObjects", args, &rv, "", opts...) - if err != nil { - return GetBucketObjectsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetBucketObjectsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetBucketObjectsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:storage/getBucketObjects:getBucketObjects", args, GetBucketObjectsResultOutput{}, options).(GetBucketObjectsResultOutput), nil }).(GetBucketObjectsResultOutput) } diff --git a/sdk/go/gcp/storage/getBuckets.go b/sdk/go/gcp/storage/getBuckets.go index 88ec315667..761f1fee9f 100644 --- a/sdk/go/gcp/storage/getBuckets.go +++ b/sdk/go/gcp/storage/getBuckets.go @@ -71,21 +71,11 @@ type GetBucketsResult struct { } func GetBucketsOutput(ctx *pulumi.Context, args GetBucketsOutputArgs, opts ...pulumi.InvokeOption) GetBucketsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetBucketsResultOutput, error) { args := v.(GetBucketsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetBucketsResult - secret, err := ctx.InvokePackageRaw("gcp:storage/getBuckets:getBuckets", args, &rv, "", opts...) - if err != nil { - return GetBucketsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetBucketsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetBucketsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:storage/getBuckets:getBuckets", args, GetBucketsResultOutput{}, options).(GetBucketsResultOutput), nil }).(GetBucketsResultOutput) } diff --git a/sdk/go/gcp/storage/getManagedFolderIamPolicy.go b/sdk/go/gcp/storage/getManagedFolderIamPolicy.go index 5b4ad65216..573c84bd35 100644 --- a/sdk/go/gcp/storage/getManagedFolderIamPolicy.go +++ b/sdk/go/gcp/storage/getManagedFolderIamPolicy.go @@ -38,21 +38,11 @@ type LookupManagedFolderIamPolicyResult struct { } func LookupManagedFolderIamPolicyOutput(ctx *pulumi.Context, args LookupManagedFolderIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupManagedFolderIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupManagedFolderIamPolicyResultOutput, error) { args := v.(LookupManagedFolderIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupManagedFolderIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:storage/getManagedFolderIamPolicy:getManagedFolderIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupManagedFolderIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupManagedFolderIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupManagedFolderIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:storage/getManagedFolderIamPolicy:getManagedFolderIamPolicy", args, LookupManagedFolderIamPolicyResultOutput{}, options).(LookupManagedFolderIamPolicyResultOutput), nil }).(LookupManagedFolderIamPolicyResultOutput) } diff --git a/sdk/go/gcp/storage/getObjectSignedUrl.go b/sdk/go/gcp/storage/getObjectSignedUrl.go index 75f7c8e7dd..d4643de8fe 100644 --- a/sdk/go/gcp/storage/getObjectSignedUrl.go +++ b/sdk/go/gcp/storage/getObjectSignedUrl.go @@ -139,21 +139,11 @@ type GetObjectSignedUrlResult struct { } func GetObjectSignedUrlOutput(ctx *pulumi.Context, args GetObjectSignedUrlOutputArgs, opts ...pulumi.InvokeOption) GetObjectSignedUrlResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetObjectSignedUrlResultOutput, error) { args := v.(GetObjectSignedUrlArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetObjectSignedUrlResult - secret, err := ctx.InvokePackageRaw("gcp:storage/getObjectSignedUrl:getObjectSignedUrl", args, &rv, "", opts...) - if err != nil { - return GetObjectSignedUrlResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetObjectSignedUrlResultOutput) - if secret { - return pulumi.ToSecret(output).(GetObjectSignedUrlResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:storage/getObjectSignedUrl:getObjectSignedUrl", args, GetObjectSignedUrlResultOutput{}, options).(GetObjectSignedUrlResultOutput), nil }).(GetObjectSignedUrlResultOutput) } diff --git a/sdk/go/gcp/storage/getProjectServiceAccount.go b/sdk/go/gcp/storage/getProjectServiceAccount.go index 0c84ef760e..f0c5d686d0 100644 --- a/sdk/go/gcp/storage/getProjectServiceAccount.go +++ b/sdk/go/gcp/storage/getProjectServiceAccount.go @@ -165,21 +165,11 @@ type GetProjectServiceAccountResult struct { } func GetProjectServiceAccountOutput(ctx *pulumi.Context, args GetProjectServiceAccountOutputArgs, opts ...pulumi.InvokeOption) GetProjectServiceAccountResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetProjectServiceAccountResultOutput, error) { args := v.(GetProjectServiceAccountArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetProjectServiceAccountResult - secret, err := ctx.InvokePackageRaw("gcp:storage/getProjectServiceAccount:getProjectServiceAccount", args, &rv, "", opts...) - if err != nil { - return GetProjectServiceAccountResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetProjectServiceAccountResultOutput) - if secret { - return pulumi.ToSecret(output).(GetProjectServiceAccountResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:storage/getProjectServiceAccount:getProjectServiceAccount", args, GetProjectServiceAccountResultOutput{}, options).(GetProjectServiceAccountResultOutput), nil }).(GetProjectServiceAccountResultOutput) } diff --git a/sdk/go/gcp/storage/getTransferProjectServiceAccount.go b/sdk/go/gcp/storage/getTransferProjectServiceAccount.go index f730aae25a..1df75638c4 100644 --- a/sdk/go/gcp/storage/getTransferProjectServiceAccount.go +++ b/sdk/go/gcp/storage/getTransferProjectServiceAccount.go @@ -67,21 +67,11 @@ type GetTransferProjectServiceAccountResult struct { } func GetTransferProjectServiceAccountOutput(ctx *pulumi.Context, args GetTransferProjectServiceAccountOutputArgs, opts ...pulumi.InvokeOption) GetTransferProjectServiceAccountResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetTransferProjectServiceAccountResultOutput, error) { args := v.(GetTransferProjectServiceAccountArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetTransferProjectServiceAccountResult - secret, err := ctx.InvokePackageRaw("gcp:storage/getTransferProjectServiceAccount:getTransferProjectServiceAccount", args, &rv, "", opts...) - if err != nil { - return GetTransferProjectServiceAccountResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetTransferProjectServiceAccountResultOutput) - if secret { - return pulumi.ToSecret(output).(GetTransferProjectServiceAccountResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:storage/getTransferProjectServiceAccount:getTransferProjectServiceAccount", args, GetTransferProjectServiceAccountResultOutput{}, options).(GetTransferProjectServiceAccountResultOutput), nil }).(GetTransferProjectServiceAccountResultOutput) } diff --git a/sdk/go/gcp/storage/getTransferProjectServieAccount.go b/sdk/go/gcp/storage/getTransferProjectServieAccount.go index 7f46f7df68..9ac8153405 100644 --- a/sdk/go/gcp/storage/getTransferProjectServieAccount.go +++ b/sdk/go/gcp/storage/getTransferProjectServieAccount.go @@ -69,21 +69,11 @@ type GetTransferProjectServieAccountResult struct { } func GetTransferProjectServieAccountOutput(ctx *pulumi.Context, args GetTransferProjectServieAccountOutputArgs, opts ...pulumi.InvokeOption) GetTransferProjectServieAccountResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetTransferProjectServieAccountResultOutput, error) { args := v.(GetTransferProjectServieAccountArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetTransferProjectServieAccountResult - secret, err := ctx.InvokePackageRaw("gcp:storage/getTransferProjectServieAccount:getTransferProjectServieAccount", args, &rv, "", opts...) - if err != nil { - return GetTransferProjectServieAccountResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetTransferProjectServieAccountResultOutput) - if secret { - return pulumi.ToSecret(output).(GetTransferProjectServieAccountResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:storage/getTransferProjectServieAccount:getTransferProjectServieAccount", args, GetTransferProjectServieAccountResultOutput{}, options).(GetTransferProjectServieAccountResultOutput), nil }).(GetTransferProjectServieAccountResultOutput) } diff --git a/sdk/go/gcp/tags/getTagKey.go b/sdk/go/gcp/tags/getTagKey.go index b9acbcd3d5..31bee68d2e 100644 --- a/sdk/go/gcp/tags/getTagKey.go +++ b/sdk/go/gcp/tags/getTagKey.go @@ -101,21 +101,11 @@ type LookupTagKeyResult struct { } func LookupTagKeyOutput(ctx *pulumi.Context, args LookupTagKeyOutputArgs, opts ...pulumi.InvokeOption) LookupTagKeyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupTagKeyResultOutput, error) { args := v.(LookupTagKeyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupTagKeyResult - secret, err := ctx.InvokePackageRaw("gcp:tags/getTagKey:getTagKey", args, &rv, "", opts...) - if err != nil { - return LookupTagKeyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupTagKeyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupTagKeyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:tags/getTagKey:getTagKey", args, LookupTagKeyResultOutput{}, options).(LookupTagKeyResultOutput), nil }).(LookupTagKeyResultOutput) } diff --git a/sdk/go/gcp/tags/getTagKeyIamPolicy.go b/sdk/go/gcp/tags/getTagKeyIamPolicy.go index 87c7dfaa60..261d066abf 100644 --- a/sdk/go/gcp/tags/getTagKeyIamPolicy.go +++ b/sdk/go/gcp/tags/getTagKeyIamPolicy.go @@ -67,21 +67,11 @@ type LookupTagKeyIamPolicyResult struct { } func LookupTagKeyIamPolicyOutput(ctx *pulumi.Context, args LookupTagKeyIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupTagKeyIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupTagKeyIamPolicyResultOutput, error) { args := v.(LookupTagKeyIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupTagKeyIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:tags/getTagKeyIamPolicy:getTagKeyIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupTagKeyIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupTagKeyIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupTagKeyIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:tags/getTagKeyIamPolicy:getTagKeyIamPolicy", args, LookupTagKeyIamPolicyResultOutput{}, options).(LookupTagKeyIamPolicyResultOutput), nil }).(LookupTagKeyIamPolicyResultOutput) } diff --git a/sdk/go/gcp/tags/getTagKeys.go b/sdk/go/gcp/tags/getTagKeys.go index 229531b01a..6efbe9eb93 100644 --- a/sdk/go/gcp/tags/getTagKeys.go +++ b/sdk/go/gcp/tags/getTagKeys.go @@ -87,21 +87,11 @@ type GetTagKeysResult struct { } func GetTagKeysOutput(ctx *pulumi.Context, args GetTagKeysOutputArgs, opts ...pulumi.InvokeOption) GetTagKeysResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetTagKeysResultOutput, error) { args := v.(GetTagKeysArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetTagKeysResult - secret, err := ctx.InvokePackageRaw("gcp:tags/getTagKeys:getTagKeys", args, &rv, "", opts...) - if err != nil { - return GetTagKeysResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetTagKeysResultOutput) - if secret { - return pulumi.ToSecret(output).(GetTagKeysResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:tags/getTagKeys:getTagKeys", args, GetTagKeysResultOutput{}, options).(GetTagKeysResultOutput), nil }).(GetTagKeysResultOutput) } diff --git a/sdk/go/gcp/tags/getTagValue.go b/sdk/go/gcp/tags/getTagValue.go index f897dbce0b..067e3625b8 100644 --- a/sdk/go/gcp/tags/getTagValue.go +++ b/sdk/go/gcp/tags/getTagValue.go @@ -77,21 +77,11 @@ type LookupTagValueResult struct { } func LookupTagValueOutput(ctx *pulumi.Context, args LookupTagValueOutputArgs, opts ...pulumi.InvokeOption) LookupTagValueResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupTagValueResultOutput, error) { args := v.(LookupTagValueArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupTagValueResult - secret, err := ctx.InvokePackageRaw("gcp:tags/getTagValue:getTagValue", args, &rv, "", opts...) - if err != nil { - return LookupTagValueResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupTagValueResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupTagValueResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:tags/getTagValue:getTagValue", args, LookupTagValueResultOutput{}, options).(LookupTagValueResultOutput), nil }).(LookupTagValueResultOutput) } diff --git a/sdk/go/gcp/tags/getTagValueIamPolicy.go b/sdk/go/gcp/tags/getTagValueIamPolicy.go index 9a5d824121..b8d8415884 100644 --- a/sdk/go/gcp/tags/getTagValueIamPolicy.go +++ b/sdk/go/gcp/tags/getTagValueIamPolicy.go @@ -67,21 +67,11 @@ type LookupTagValueIamPolicyResult struct { } func LookupTagValueIamPolicyOutput(ctx *pulumi.Context, args LookupTagValueIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupTagValueIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupTagValueIamPolicyResultOutput, error) { args := v.(LookupTagValueIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupTagValueIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:tags/getTagValueIamPolicy:getTagValueIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupTagValueIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupTagValueIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupTagValueIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:tags/getTagValueIamPolicy:getTagValueIamPolicy", args, LookupTagValueIamPolicyResultOutput{}, options).(LookupTagValueIamPolicyResultOutput), nil }).(LookupTagValueIamPolicyResultOutput) } diff --git a/sdk/go/gcp/tags/getTagValues.go b/sdk/go/gcp/tags/getTagValues.go index a6b4ae6d46..a33acbc633 100644 --- a/sdk/go/gcp/tags/getTagValues.go +++ b/sdk/go/gcp/tags/getTagValues.go @@ -64,21 +64,11 @@ type GetTagValuesResult struct { } func GetTagValuesOutput(ctx *pulumi.Context, args GetTagValuesOutputArgs, opts ...pulumi.InvokeOption) GetTagValuesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetTagValuesResultOutput, error) { args := v.(GetTagValuesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetTagValuesResult - secret, err := ctx.InvokePackageRaw("gcp:tags/getTagValues:getTagValues", args, &rv, "", opts...) - if err != nil { - return GetTagValuesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetTagValuesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetTagValuesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:tags/getTagValues:getTagValues", args, GetTagValuesResultOutput{}, options).(GetTagValuesResultOutput), nil }).(GetTagValuesResultOutput) } diff --git a/sdk/go/gcp/tpu/getTensorflowVersions.go b/sdk/go/gcp/tpu/getTensorflowVersions.go index 0ee41e3342..b08b5c06cd 100644 --- a/sdk/go/gcp/tpu/getTensorflowVersions.go +++ b/sdk/go/gcp/tpu/getTensorflowVersions.go @@ -101,21 +101,11 @@ type GetTensorflowVersionsResult struct { } func GetTensorflowVersionsOutput(ctx *pulumi.Context, args GetTensorflowVersionsOutputArgs, opts ...pulumi.InvokeOption) GetTensorflowVersionsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetTensorflowVersionsResultOutput, error) { args := v.(GetTensorflowVersionsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetTensorflowVersionsResult - secret, err := ctx.InvokePackageRaw("gcp:tpu/getTensorflowVersions:getTensorflowVersions", args, &rv, "", opts...) - if err != nil { - return GetTensorflowVersionsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetTensorflowVersionsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetTensorflowVersionsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:tpu/getTensorflowVersions:getTensorflowVersions", args, GetTensorflowVersionsResultOutput{}, options).(GetTensorflowVersionsResultOutput), nil }).(GetTensorflowVersionsResultOutput) } diff --git a/sdk/go/gcp/tpu/getV2AcceleratorTypes.go b/sdk/go/gcp/tpu/getV2AcceleratorTypes.go index 67cf8a0922..71a25c9f81 100644 --- a/sdk/go/gcp/tpu/getV2AcceleratorTypes.go +++ b/sdk/go/gcp/tpu/getV2AcceleratorTypes.go @@ -104,21 +104,11 @@ type GetV2AcceleratorTypesResult struct { } func GetV2AcceleratorTypesOutput(ctx *pulumi.Context, args GetV2AcceleratorTypesOutputArgs, opts ...pulumi.InvokeOption) GetV2AcceleratorTypesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetV2AcceleratorTypesResultOutput, error) { args := v.(GetV2AcceleratorTypesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetV2AcceleratorTypesResult - secret, err := ctx.InvokePackageRaw("gcp:tpu/getV2AcceleratorTypes:getV2AcceleratorTypes", args, &rv, "", opts...) - if err != nil { - return GetV2AcceleratorTypesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetV2AcceleratorTypesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetV2AcceleratorTypesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:tpu/getV2AcceleratorTypes:getV2AcceleratorTypes", args, GetV2AcceleratorTypesResultOutput{}, options).(GetV2AcceleratorTypesResultOutput), nil }).(GetV2AcceleratorTypesResultOutput) } diff --git a/sdk/go/gcp/tpu/getV2RuntimeVersions.go b/sdk/go/gcp/tpu/getV2RuntimeVersions.go index 8250e783c3..b28d435977 100644 --- a/sdk/go/gcp/tpu/getV2RuntimeVersions.go +++ b/sdk/go/gcp/tpu/getV2RuntimeVersions.go @@ -99,21 +99,11 @@ type GetV2RuntimeVersionsResult struct { } func GetV2RuntimeVersionsOutput(ctx *pulumi.Context, args GetV2RuntimeVersionsOutputArgs, opts ...pulumi.InvokeOption) GetV2RuntimeVersionsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetV2RuntimeVersionsResultOutput, error) { args := v.(GetV2RuntimeVersionsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetV2RuntimeVersionsResult - secret, err := ctx.InvokePackageRaw("gcp:tpu/getV2RuntimeVersions:getV2RuntimeVersions", args, &rv, "", opts...) - if err != nil { - return GetV2RuntimeVersionsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetV2RuntimeVersionsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetV2RuntimeVersionsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:tpu/getV2RuntimeVersions:getV2RuntimeVersions", args, GetV2RuntimeVersionsResultOutput{}, options).(GetV2RuntimeVersionsResultOutput), nil }).(GetV2RuntimeVersionsResultOutput) } diff --git a/sdk/go/gcp/vertex/getAiEndpointIamPolicy.go b/sdk/go/gcp/vertex/getAiEndpointIamPolicy.go index a175fc076c..830351107d 100644 --- a/sdk/go/gcp/vertex/getAiEndpointIamPolicy.go +++ b/sdk/go/gcp/vertex/getAiEndpointIamPolicy.go @@ -49,21 +49,11 @@ type LookupAiEndpointIamPolicyResult struct { } func LookupAiEndpointIamPolicyOutput(ctx *pulumi.Context, args LookupAiEndpointIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupAiEndpointIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupAiEndpointIamPolicyResultOutput, error) { args := v.(LookupAiEndpointIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupAiEndpointIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:vertex/getAiEndpointIamPolicy:getAiEndpointIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupAiEndpointIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupAiEndpointIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupAiEndpointIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:vertex/getAiEndpointIamPolicy:getAiEndpointIamPolicy", args, LookupAiEndpointIamPolicyResultOutput{}, options).(LookupAiEndpointIamPolicyResultOutput), nil }).(LookupAiEndpointIamPolicyResultOutput) } diff --git a/sdk/go/gcp/vertex/getAiFeaturestoreEntitytypeIamPolicy.go b/sdk/go/gcp/vertex/getAiFeaturestoreEntitytypeIamPolicy.go index c20d0f0181..f67bb1ec43 100644 --- a/sdk/go/gcp/vertex/getAiFeaturestoreEntitytypeIamPolicy.go +++ b/sdk/go/gcp/vertex/getAiFeaturestoreEntitytypeIamPolicy.go @@ -43,21 +43,11 @@ type GetAiFeaturestoreEntitytypeIamPolicyResult struct { } func GetAiFeaturestoreEntitytypeIamPolicyOutput(ctx *pulumi.Context, args GetAiFeaturestoreEntitytypeIamPolicyOutputArgs, opts ...pulumi.InvokeOption) GetAiFeaturestoreEntitytypeIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetAiFeaturestoreEntitytypeIamPolicyResultOutput, error) { args := v.(GetAiFeaturestoreEntitytypeIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetAiFeaturestoreEntitytypeIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:vertex/getAiFeaturestoreEntitytypeIamPolicy:getAiFeaturestoreEntitytypeIamPolicy", args, &rv, "", opts...) - if err != nil { - return GetAiFeaturestoreEntitytypeIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetAiFeaturestoreEntitytypeIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(GetAiFeaturestoreEntitytypeIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:vertex/getAiFeaturestoreEntitytypeIamPolicy:getAiFeaturestoreEntitytypeIamPolicy", args, GetAiFeaturestoreEntitytypeIamPolicyResultOutput{}, options).(GetAiFeaturestoreEntitytypeIamPolicyResultOutput), nil }).(GetAiFeaturestoreEntitytypeIamPolicyResultOutput) } diff --git a/sdk/go/gcp/vertex/getAiFeaturestoreIamPolicy.go b/sdk/go/gcp/vertex/getAiFeaturestoreIamPolicy.go index d3f27df759..eec09e9ff4 100644 --- a/sdk/go/gcp/vertex/getAiFeaturestoreIamPolicy.go +++ b/sdk/go/gcp/vertex/getAiFeaturestoreIamPolicy.go @@ -49,21 +49,11 @@ type GetAiFeaturestoreIamPolicyResult struct { } func GetAiFeaturestoreIamPolicyOutput(ctx *pulumi.Context, args GetAiFeaturestoreIamPolicyOutputArgs, opts ...pulumi.InvokeOption) GetAiFeaturestoreIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetAiFeaturestoreIamPolicyResultOutput, error) { args := v.(GetAiFeaturestoreIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetAiFeaturestoreIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:vertex/getAiFeaturestoreIamPolicy:getAiFeaturestoreIamPolicy", args, &rv, "", opts...) - if err != nil { - return GetAiFeaturestoreIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetAiFeaturestoreIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(GetAiFeaturestoreIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:vertex/getAiFeaturestoreIamPolicy:getAiFeaturestoreIamPolicy", args, GetAiFeaturestoreIamPolicyResultOutput{}, options).(GetAiFeaturestoreIamPolicyResultOutput), nil }).(GetAiFeaturestoreIamPolicyResultOutput) } diff --git a/sdk/go/gcp/vertex/getAiIndex.go b/sdk/go/gcp/vertex/getAiIndex.go index dbb763f0aa..b980475987 100644 --- a/sdk/go/gcp/vertex/getAiIndex.go +++ b/sdk/go/gcp/vertex/getAiIndex.go @@ -57,21 +57,11 @@ type LookupAiIndexResult struct { } func LookupAiIndexOutput(ctx *pulumi.Context, args LookupAiIndexOutputArgs, opts ...pulumi.InvokeOption) LookupAiIndexResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupAiIndexResultOutput, error) { args := v.(LookupAiIndexArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupAiIndexResult - secret, err := ctx.InvokePackageRaw("gcp:vertex/getAiIndex:getAiIndex", args, &rv, "", opts...) - if err != nil { - return LookupAiIndexResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupAiIndexResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupAiIndexResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:vertex/getAiIndex:getAiIndex", args, LookupAiIndexResultOutput{}, options).(LookupAiIndexResultOutput), nil }).(LookupAiIndexResultOutput) } diff --git a/sdk/go/gcp/vmwareengine/getCluster.go b/sdk/go/gcp/vmwareengine/getCluster.go index e9b4a4ded4..8ab9160b50 100644 --- a/sdk/go/gcp/vmwareengine/getCluster.go +++ b/sdk/go/gcp/vmwareengine/getCluster.go @@ -74,21 +74,11 @@ type LookupClusterResult struct { } func LookupClusterOutput(ctx *pulumi.Context, args LookupClusterOutputArgs, opts ...pulumi.InvokeOption) LookupClusterResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupClusterResultOutput, error) { args := v.(LookupClusterArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupClusterResult - secret, err := ctx.InvokePackageRaw("gcp:vmwareengine/getCluster:getCluster", args, &rv, "", opts...) - if err != nil { - return LookupClusterResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupClusterResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupClusterResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:vmwareengine/getCluster:getCluster", args, LookupClusterResultOutput{}, options).(LookupClusterResultOutput), nil }).(LookupClusterResultOutput) } diff --git a/sdk/go/gcp/vmwareengine/getExternalAccessRule.go b/sdk/go/gcp/vmwareengine/getExternalAccessRule.go index 491c6fef1e..2f7493c476 100644 --- a/sdk/go/gcp/vmwareengine/getExternalAccessRule.go +++ b/sdk/go/gcp/vmwareengine/getExternalAccessRule.go @@ -81,21 +81,11 @@ type LookupExternalAccessRuleResult struct { } func LookupExternalAccessRuleOutput(ctx *pulumi.Context, args LookupExternalAccessRuleOutputArgs, opts ...pulumi.InvokeOption) LookupExternalAccessRuleResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupExternalAccessRuleResultOutput, error) { args := v.(LookupExternalAccessRuleArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupExternalAccessRuleResult - secret, err := ctx.InvokePackageRaw("gcp:vmwareengine/getExternalAccessRule:getExternalAccessRule", args, &rv, "", opts...) - if err != nil { - return LookupExternalAccessRuleResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupExternalAccessRuleResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupExternalAccessRuleResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:vmwareengine/getExternalAccessRule:getExternalAccessRule", args, LookupExternalAccessRuleResultOutput{}, options).(LookupExternalAccessRuleResultOutput), nil }).(LookupExternalAccessRuleResultOutput) } diff --git a/sdk/go/gcp/vmwareengine/getExternalAddress.go b/sdk/go/gcp/vmwareengine/getExternalAddress.go index 152ce0636f..8d76eaf376 100644 --- a/sdk/go/gcp/vmwareengine/getExternalAddress.go +++ b/sdk/go/gcp/vmwareengine/getExternalAddress.go @@ -76,21 +76,11 @@ type LookupExternalAddressResult struct { } func LookupExternalAddressOutput(ctx *pulumi.Context, args LookupExternalAddressOutputArgs, opts ...pulumi.InvokeOption) LookupExternalAddressResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupExternalAddressResultOutput, error) { args := v.(LookupExternalAddressArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupExternalAddressResult - secret, err := ctx.InvokePackageRaw("gcp:vmwareengine/getExternalAddress:getExternalAddress", args, &rv, "", opts...) - if err != nil { - return LookupExternalAddressResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupExternalAddressResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupExternalAddressResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:vmwareengine/getExternalAddress:getExternalAddress", args, LookupExternalAddressResultOutput{}, options).(LookupExternalAddressResultOutput), nil }).(LookupExternalAddressResultOutput) } diff --git a/sdk/go/gcp/vmwareengine/getNetwork.go b/sdk/go/gcp/vmwareengine/getNetwork.go index d8e1f31a5f..2a0dca37d5 100644 --- a/sdk/go/gcp/vmwareengine/getNetwork.go +++ b/sdk/go/gcp/vmwareengine/getNetwork.go @@ -79,21 +79,11 @@ type LookupNetworkResult struct { } func LookupNetworkOutput(ctx *pulumi.Context, args LookupNetworkOutputArgs, opts ...pulumi.InvokeOption) LookupNetworkResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupNetworkResultOutput, error) { args := v.(LookupNetworkArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupNetworkResult - secret, err := ctx.InvokePackageRaw("gcp:vmwareengine/getNetwork:getNetwork", args, &rv, "", opts...) - if err != nil { - return LookupNetworkResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupNetworkResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupNetworkResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:vmwareengine/getNetwork:getNetwork", args, LookupNetworkResultOutput{}, options).(LookupNetworkResultOutput), nil }).(LookupNetworkResultOutput) } diff --git a/sdk/go/gcp/vmwareengine/getNetworkPeering.go b/sdk/go/gcp/vmwareengine/getNetworkPeering.go index b64199ed7d..dcf732eb06 100644 --- a/sdk/go/gcp/vmwareengine/getNetworkPeering.go +++ b/sdk/go/gcp/vmwareengine/getNetworkPeering.go @@ -81,21 +81,11 @@ type LookupNetworkPeeringResult struct { } func LookupNetworkPeeringOutput(ctx *pulumi.Context, args LookupNetworkPeeringOutputArgs, opts ...pulumi.InvokeOption) LookupNetworkPeeringResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupNetworkPeeringResultOutput, error) { args := v.(LookupNetworkPeeringArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupNetworkPeeringResult - secret, err := ctx.InvokePackageRaw("gcp:vmwareengine/getNetworkPeering:getNetworkPeering", args, &rv, "", opts...) - if err != nil { - return LookupNetworkPeeringResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupNetworkPeeringResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupNetworkPeeringResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:vmwareengine/getNetworkPeering:getNetworkPeering", args, LookupNetworkPeeringResultOutput{}, options).(LookupNetworkPeeringResultOutput), nil }).(LookupNetworkPeeringResultOutput) } diff --git a/sdk/go/gcp/vmwareengine/getNetworkPolicy.go b/sdk/go/gcp/vmwareengine/getNetworkPolicy.go index 04767be1ae..93cc32961e 100644 --- a/sdk/go/gcp/vmwareengine/getNetworkPolicy.go +++ b/sdk/go/gcp/vmwareengine/getNetworkPolicy.go @@ -80,21 +80,11 @@ type LookupNetworkPolicyResult struct { } func LookupNetworkPolicyOutput(ctx *pulumi.Context, args LookupNetworkPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupNetworkPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupNetworkPolicyResultOutput, error) { args := v.(LookupNetworkPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupNetworkPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:vmwareengine/getNetworkPolicy:getNetworkPolicy", args, &rv, "", opts...) - if err != nil { - return LookupNetworkPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupNetworkPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupNetworkPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:vmwareengine/getNetworkPolicy:getNetworkPolicy", args, LookupNetworkPolicyResultOutput{}, options).(LookupNetworkPolicyResultOutput), nil }).(LookupNetworkPolicyResultOutput) } diff --git a/sdk/go/gcp/vmwareengine/getNsxCredentials.go b/sdk/go/gcp/vmwareengine/getNsxCredentials.go index 15b133b6dc..3eb5cc9010 100644 --- a/sdk/go/gcp/vmwareengine/getNsxCredentials.go +++ b/sdk/go/gcp/vmwareengine/getNsxCredentials.go @@ -69,21 +69,11 @@ type GetNsxCredentialsResult struct { } func GetNsxCredentialsOutput(ctx *pulumi.Context, args GetNsxCredentialsOutputArgs, opts ...pulumi.InvokeOption) GetNsxCredentialsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetNsxCredentialsResultOutput, error) { args := v.(GetNsxCredentialsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetNsxCredentialsResult - secret, err := ctx.InvokePackageRaw("gcp:vmwareengine/getNsxCredentials:getNsxCredentials", args, &rv, "", opts...) - if err != nil { - return GetNsxCredentialsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetNsxCredentialsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetNsxCredentialsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:vmwareengine/getNsxCredentials:getNsxCredentials", args, GetNsxCredentialsResultOutput{}, options).(GetNsxCredentialsResultOutput), nil }).(GetNsxCredentialsResultOutput) } diff --git a/sdk/go/gcp/vmwareengine/getPrivateCloud.go b/sdk/go/gcp/vmwareengine/getPrivateCloud.go index e111940ac5..ea42b09c94 100644 --- a/sdk/go/gcp/vmwareengine/getPrivateCloud.go +++ b/sdk/go/gcp/vmwareengine/getPrivateCloud.go @@ -86,21 +86,11 @@ type LookupPrivateCloudResult struct { } func LookupPrivateCloudOutput(ctx *pulumi.Context, args LookupPrivateCloudOutputArgs, opts ...pulumi.InvokeOption) LookupPrivateCloudResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupPrivateCloudResultOutput, error) { args := v.(LookupPrivateCloudArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupPrivateCloudResult - secret, err := ctx.InvokePackageRaw("gcp:vmwareengine/getPrivateCloud:getPrivateCloud", args, &rv, "", opts...) - if err != nil { - return LookupPrivateCloudResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupPrivateCloudResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupPrivateCloudResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:vmwareengine/getPrivateCloud:getPrivateCloud", args, LookupPrivateCloudResultOutput{}, options).(LookupPrivateCloudResultOutput), nil }).(LookupPrivateCloudResultOutput) } diff --git a/sdk/go/gcp/vmwareengine/getSubnet.go b/sdk/go/gcp/vmwareengine/getSubnet.go index 8fd35e54a4..0b6577574c 100644 --- a/sdk/go/gcp/vmwareengine/getSubnet.go +++ b/sdk/go/gcp/vmwareengine/getSubnet.go @@ -82,21 +82,11 @@ type LookupSubnetResult struct { } func LookupSubnetOutput(ctx *pulumi.Context, args LookupSubnetOutputArgs, opts ...pulumi.InvokeOption) LookupSubnetResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupSubnetResultOutput, error) { args := v.(LookupSubnetArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupSubnetResult - secret, err := ctx.InvokePackageRaw("gcp:vmwareengine/getSubnet:getSubnet", args, &rv, "", opts...) - if err != nil { - return LookupSubnetResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupSubnetResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupSubnetResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:vmwareengine/getSubnet:getSubnet", args, LookupSubnetResultOutput{}, options).(LookupSubnetResultOutput), nil }).(LookupSubnetResultOutput) } diff --git a/sdk/go/gcp/vmwareengine/getVcenterCredentials.go b/sdk/go/gcp/vmwareengine/getVcenterCredentials.go index a8dd018610..092d23de0f 100644 --- a/sdk/go/gcp/vmwareengine/getVcenterCredentials.go +++ b/sdk/go/gcp/vmwareengine/getVcenterCredentials.go @@ -69,21 +69,11 @@ type GetVcenterCredentialsResult struct { } func GetVcenterCredentialsOutput(ctx *pulumi.Context, args GetVcenterCredentialsOutputArgs, opts ...pulumi.InvokeOption) GetVcenterCredentialsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetVcenterCredentialsResultOutput, error) { args := v.(GetVcenterCredentialsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetVcenterCredentialsResult - secret, err := ctx.InvokePackageRaw("gcp:vmwareengine/getVcenterCredentials:getVcenterCredentials", args, &rv, "", opts...) - if err != nil { - return GetVcenterCredentialsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetVcenterCredentialsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetVcenterCredentialsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:vmwareengine/getVcenterCredentials:getVcenterCredentials", args, GetVcenterCredentialsResultOutput{}, options).(GetVcenterCredentialsResultOutput), nil }).(GetVcenterCredentialsResultOutput) } diff --git a/sdk/go/gcp/vpcaccess/getConnector.go b/sdk/go/gcp/vpcaccess/getConnector.go index d56d0d94b1..f19a4f97ae 100644 --- a/sdk/go/gcp/vpcaccess/getConnector.go +++ b/sdk/go/gcp/vpcaccess/getConnector.go @@ -100,21 +100,11 @@ type LookupConnectorResult struct { } func LookupConnectorOutput(ctx *pulumi.Context, args LookupConnectorOutputArgs, opts ...pulumi.InvokeOption) LookupConnectorResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupConnectorResultOutput, error) { args := v.(LookupConnectorArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupConnectorResult - secret, err := ctx.InvokePackageRaw("gcp:vpcaccess/getConnector:getConnector", args, &rv, "", opts...) - if err != nil { - return LookupConnectorResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupConnectorResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupConnectorResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:vpcaccess/getConnector:getConnector", args, LookupConnectorResultOutput{}, options).(LookupConnectorResultOutput), nil }).(LookupConnectorResultOutput) } diff --git a/sdk/go/gcp/workbench/getInstanceIamPolicy.go b/sdk/go/gcp/workbench/getInstanceIamPolicy.go index 0c4b8e671f..76098bf112 100644 --- a/sdk/go/gcp/workbench/getInstanceIamPolicy.go +++ b/sdk/go/gcp/workbench/getInstanceIamPolicy.go @@ -78,21 +78,11 @@ type LookupInstanceIamPolicyResult struct { } func LookupInstanceIamPolicyOutput(ctx *pulumi.Context, args LookupInstanceIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupInstanceIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupInstanceIamPolicyResultOutput, error) { args := v.(LookupInstanceIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupInstanceIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:workbench/getInstanceIamPolicy:getInstanceIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupInstanceIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupInstanceIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupInstanceIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:workbench/getInstanceIamPolicy:getInstanceIamPolicy", args, LookupInstanceIamPolicyResultOutput{}, options).(LookupInstanceIamPolicyResultOutput), nil }).(LookupInstanceIamPolicyResultOutput) } diff --git a/sdk/go/gcp/workstations/getWorkstationConfigIamPolicy.go b/sdk/go/gcp/workstations/getWorkstationConfigIamPolicy.go index 33a62c4801..87cae38439 100644 --- a/sdk/go/gcp/workstations/getWorkstationConfigIamPolicy.go +++ b/sdk/go/gcp/workstations/getWorkstationConfigIamPolicy.go @@ -51,21 +51,11 @@ type LookupWorkstationConfigIamPolicyResult struct { } func LookupWorkstationConfigIamPolicyOutput(ctx *pulumi.Context, args LookupWorkstationConfigIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupWorkstationConfigIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupWorkstationConfigIamPolicyResultOutput, error) { args := v.(LookupWorkstationConfigIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupWorkstationConfigIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:workstations/getWorkstationConfigIamPolicy:getWorkstationConfigIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupWorkstationConfigIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupWorkstationConfigIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupWorkstationConfigIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:workstations/getWorkstationConfigIamPolicy:getWorkstationConfigIamPolicy", args, LookupWorkstationConfigIamPolicyResultOutput{}, options).(LookupWorkstationConfigIamPolicyResultOutput), nil }).(LookupWorkstationConfigIamPolicyResultOutput) } diff --git a/sdk/go/gcp/workstations/getWorkstationIamPolicy.go b/sdk/go/gcp/workstations/getWorkstationIamPolicy.go index 41da09e212..ad31513baf 100644 --- a/sdk/go/gcp/workstations/getWorkstationIamPolicy.go +++ b/sdk/go/gcp/workstations/getWorkstationIamPolicy.go @@ -53,21 +53,11 @@ type LookupWorkstationIamPolicyResult struct { } func LookupWorkstationIamPolicyOutput(ctx *pulumi.Context, args LookupWorkstationIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupWorkstationIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupWorkstationIamPolicyResultOutput, error) { args := v.(LookupWorkstationIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupWorkstationIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:workstations/getWorkstationIamPolicy:getWorkstationIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupWorkstationIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupWorkstationIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupWorkstationIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:workstations/getWorkstationIamPolicy:getWorkstationIamPolicy", args, LookupWorkstationIamPolicyResultOutput{}, options).(LookupWorkstationIamPolicyResultOutput), nil }).(LookupWorkstationIamPolicyResultOutput) } diff --git a/sdk/nodejs/package.json b/sdk/nodejs/package.json index 01264b8f77..cb1319d173 100644 --- a/sdk/nodejs/package.json +++ b/sdk/nodejs/package.json @@ -13,7 +13,7 @@ "build": "tsc" }, "dependencies": { - "@pulumi/pulumi": "^3.136.0", + "@pulumi/pulumi": "^3.142.0", "@types/express": "^4.16.0", "read-package-json": "^2.0.13" }, diff --git a/sdk/python/pyproject.toml b/sdk/python/pyproject.toml index 39a99215b7..8571b5bad8 100644 --- a/sdk/python/pyproject.toml +++ b/sdk/python/pyproject.toml @@ -1,10 +1,10 @@ [project] name = "pulumi_gcp" description = "A Pulumi package for creating and managing Google Cloud Platform resources." - dependencies = ["parver>=0.2.1", "pulumi>=3.136.0,<4.0.0", "semver>=2.8.1", "typing-extensions>=4.11; python_version < \"3.11\""] + dependencies = ["parver>=0.2.1", "pulumi>=3.142.0,<4.0.0", "semver>=2.8.1", "typing-extensions>=4.11; python_version < \"3.11\""] keywords = ["pulumi", "gcp"] readme = "README.md" - requires-python = ">=3.8" + requires-python = ">=3.9" version = "8.0.0a0+dev" [project.license] text = "Apache-2.0"