/// <summary>Snippet for SetIamPolicy</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public void SetIamPolicyResourceNames() { // Create client DataCatalogClient dataCatalogClient = DataCatalogClient.Create(); // Initialize request argument(s) IResourceName resource = new UnparsedResourceName("a/wildcard/resource"); Policy policy = new Policy(); // Make the request Policy response = dataCatalogClient.SetIamPolicy(resource, policy); }
/// <summary>Snippet for SetIamPolicy</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public void SetIamPolicy() { // Create client DataCatalogClient dataCatalogClient = DataCatalogClient.Create(); // Initialize request argument(s) string resource = "a/wildcard/resource"; Policy policy = new Policy(); // Make the request Policy response = dataCatalogClient.SetIamPolicy(resource, policy); }
/// <summary>Snippet for SetIamPolicy</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public void SetIamPolicyRequestObject() { // Create client DataCatalogClient dataCatalogClient = DataCatalogClient.Create(); // Initialize request argument(s) SetIamPolicyRequest request = new SetIamPolicyRequest { ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"), Policy = new Policy(), }; // Make the request Policy response = dataCatalogClient.SetIamPolicy(request); }