/// <summary>Snippet for GetIamPolicy</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public void GetIamPolicyResourceNames() { // Create client ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.Create(); // Initialize request argument(s) IResourceName resource = new UnparsedResourceName("a/wildcard/resource"); GetPolicyOptions options = new GetPolicyOptions(); // Make the request Policy response = connectionServiceClient.GetIamPolicy(resource, options); }
/// <summary>Snippet for GetIamPolicy</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public void GetIamPolicy() { // Create client ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.Create(); // Initialize request argument(s) string resource = "a/wildcard/resource"; GetPolicyOptions options = new GetPolicyOptions(); // Make the request Policy response = connectionServiceClient.GetIamPolicy(resource, options); }
/// <summary>Snippet for GetIamPolicy</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public void GetIamPolicyRequestObject() { // Create client ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.Create(); // Initialize request argument(s) GetIamPolicyRequest request = new GetIamPolicyRequest { ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"), Options = new GetPolicyOptions(), }; // Make the request Policy response = connectionServiceClient.GetIamPolicy(request); }