/// <summary>Snippet for GetIamPolicyAsync</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public async Task GetIamPolicyResourceNamesAsync() { // Create client DataCatalogClient dataCatalogClient = await DataCatalogClient.CreateAsync(); // Initialize request argument(s) IResourceName resource = new UnparsedResourceName("a/wildcard/resource"); // Make the request Policy response = await dataCatalogClient.GetIamPolicyAsync(resource); }
/// <summary>Snippet for GetIamPolicyAsync</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public async Task GetIamPolicyAsync() { // Create client DataCatalogClient dataCatalogClient = await DataCatalogClient.CreateAsync(); // Initialize request argument(s) string resource = "a/wildcard/resource"; // Make the request Policy response = await dataCatalogClient.GetIamPolicyAsync(resource); }
/// <summary>Snippet for GetIamPolicyAsync</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public async Task GetIamPolicyRequestObjectAsync() { // Create client DataCatalogClient dataCatalogClient = await DataCatalogClient.CreateAsync(); // Initialize request argument(s) GetIamPolicyRequest request = new GetIamPolicyRequest { ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"), Options = new GetPolicyOptions(), }; // Make the request Policy response = await dataCatalogClient.GetIamPolicyAsync(request); }