/// <summary>Snippet for SetIamPolicy</summary> public void SetIamPolicy() { // Snippet: SetIamPolicy(string, string, GlobalSetPolicyRequest, CallSettings) // Create client ImagesClient imagesClient = ImagesClient.Create(); // Initialize request argument(s) string project = ""; string resource = ""; GlobalSetPolicyRequest globalSetPolicyRequestResource = new GlobalSetPolicyRequest(); // Make the request Policy response = imagesClient.SetIamPolicy(project, resource, globalSetPolicyRequestResource); // End snippet }
/// <summary>Snippet for SetIamPolicy</summary> public void SetIamPolicyRequestObject() { // Snippet: SetIamPolicy(SetIamPolicyImageRequest, CallSettings) // Create client ImagesClient imagesClient = ImagesClient.Create(); // Initialize request argument(s) SetIamPolicyImageRequest request = new SetIamPolicyImageRequest { Resource = "", Project = "", GlobalSetPolicyRequestResource = new GlobalSetPolicyRequest(), }; // Make the request Policy response = imagesClient.SetIamPolicy(request); // End snippet }