Beispiel #1
0
 /// <summary>Snippet for GetAttestor</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void GetAttestor()
 {
     // Create client
     BinauthzManagementServiceV1Beta1Client binauthzManagementServiceV1Beta1Client = BinauthzManagementServiceV1Beta1Client.Create();
     // Initialize request argument(s)
     string name = "projects/[PROJECT]/attestors/[ATTESTOR]";
     // Make the request
     Attestor response = binauthzManagementServiceV1Beta1Client.GetAttestor(name);
 }
 /// <summary>Snippet for GetAttestor</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void GetAttestorResourceNames()
 {
     // Create client
     BinauthzManagementServiceV1Beta1Client binauthzManagementServiceV1Beta1Client = BinauthzManagementServiceV1Beta1Client.Create();
     // Initialize request argument(s)
     AttestorName name = AttestorName.FromProjectAttestor("[PROJECT]", "[ATTESTOR]");
     // Make the request
     Attestor response = binauthzManagementServiceV1Beta1Client.GetAttestor(name);
 }
Beispiel #3
0
 /// <summary>Snippet for GetPolicy</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void GetPolicy()
 {
     // Create client
     BinauthzManagementServiceV1Beta1Client binauthzManagementServiceV1Beta1Client = BinauthzManagementServiceV1Beta1Client.Create();
     // Initialize request argument(s)
     string name = "projects/[PROJECT]/policy";
     // Make the request
     Policy response = binauthzManagementServiceV1Beta1Client.GetPolicy(name);
 }
 /// <summary>Snippet for UpdateAttestor</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void UpdateAttestor()
 {
     // Create client
     BinauthzManagementServiceV1Beta1Client binauthzManagementServiceV1Beta1Client = BinauthzManagementServiceV1Beta1Client.Create();
     // Initialize request argument(s)
     Attestor attestor = new Attestor();
     // Make the request
     Attestor response = binauthzManagementServiceV1Beta1Client.UpdateAttestor(attestor);
 }
 /// <summary>Snippet for GetPolicy</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void GetPolicyResourceNames()
 {
     // Create client
     BinauthzManagementServiceV1Beta1Client binauthzManagementServiceV1Beta1Client = BinauthzManagementServiceV1Beta1Client.Create();
     // Initialize request argument(s)
     PolicyName name = PolicyName.FromProject("[PROJECT]");
     // Make the request
     Policy response = binauthzManagementServiceV1Beta1Client.GetPolicy(name);
 }
Beispiel #6
0
 /// <summary>Snippet for UpdatePolicy</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void UpdatePolicy()
 {
     // Create client
     BinauthzManagementServiceV1Beta1Client binauthzManagementServiceV1Beta1Client = BinauthzManagementServiceV1Beta1Client.Create();
     // Initialize request argument(s)
     Policy policy = new Policy();
     // Make the request
     Policy response = binauthzManagementServiceV1Beta1Client.UpdatePolicy(policy);
 }
        /// <summary>Snippet for UpdatePolicyAsync</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 UpdatePolicyAsync()
        {
            // Create client
            BinauthzManagementServiceV1Beta1Client binauthzManagementServiceV1Beta1Client = await BinauthzManagementServiceV1Beta1Client.CreateAsync();

            // Initialize request argument(s)
            Policy policy = new Policy();
            // Make the request
            Policy response = await binauthzManagementServiceV1Beta1Client.UpdatePolicyAsync(policy);
        }
Beispiel #8
0
        /// <summary>Snippet for UpdateAttestorAsync</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 UpdateAttestorAsync()
        {
            // Create client
            BinauthzManagementServiceV1Beta1Client binauthzManagementServiceV1Beta1Client = await BinauthzManagementServiceV1Beta1Client.CreateAsync();

            // Initialize request argument(s)
            Attestor attestor = new Attestor();
            // Make the request
            Attestor response = await binauthzManagementServiceV1Beta1Client.UpdateAttestorAsync(attestor);
        }
        /// <summary>Snippet for GetPolicyAsync</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 GetPolicyResourceNamesAsync()
        {
            // Create client
            BinauthzManagementServiceV1Beta1Client binauthzManagementServiceV1Beta1Client = await BinauthzManagementServiceV1Beta1Client.CreateAsync();

            // Initialize request argument(s)
            PolicyName name = PolicyName.FromProject("[PROJECT]");
            // Make the request
            Policy response = await binauthzManagementServiceV1Beta1Client.GetPolicyAsync(name);
        }
Beispiel #10
0
        /// <summary>Snippet for GetPolicyAsync</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 GetPolicyAsync()
        {
            // Create client
            BinauthzManagementServiceV1Beta1Client binauthzManagementServiceV1Beta1Client = await BinauthzManagementServiceV1Beta1Client.CreateAsync();

            // Initialize request argument(s)
            string name = "projects/[PROJECT]/policy";
            // Make the request
            Policy response = await binauthzManagementServiceV1Beta1Client.GetPolicyAsync(name);
        }
        /// <summary>Snippet for DeleteAttestorAsync</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 DeleteAttestorResourceNamesAsync()
        {
            // Create client
            BinauthzManagementServiceV1Beta1Client binauthzManagementServiceV1Beta1Client = await BinauthzManagementServiceV1Beta1Client.CreateAsync();

            // Initialize request argument(s)
            AttestorName name = AttestorName.FromProjectAttestor("[PROJECT]", "[ATTESTOR]");
            // Make the request
            await binauthzManagementServiceV1Beta1Client.DeleteAttestorAsync(name);
        }
        /// <summary>Snippet for DeleteAttestorAsync</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 DeleteAttestorAsync()
        {
            // Create client
            BinauthzManagementServiceV1Beta1Client binauthzManagementServiceV1Beta1Client = await BinauthzManagementServiceV1Beta1Client.CreateAsync();

            // Initialize request argument(s)
            string name = "projects/[PROJECT]/attestors/[ATTESTOR]";
            // Make the request
            await binauthzManagementServiceV1Beta1Client.DeleteAttestorAsync(name);
        }
 /// <summary>Snippet for CreateAttestor</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void CreateAttestor()
 {
     // Create client
     BinauthzManagementServiceV1Beta1Client binauthzManagementServiceV1Beta1Client = BinauthzManagementServiceV1Beta1Client.Create();
     // Initialize request argument(s)
     string   parent     = "projects/[PROJECT]";
     string   attestorId = "";
     Attestor attestor   = new Attestor();
     // Make the request
     Attestor response = binauthzManagementServiceV1Beta1Client.CreateAttestor(parent, attestorId, attestor);
 }
Beispiel #14
0
 /// <summary>Snippet for CreateAttestor</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void CreateAttestorResourceNames()
 {
     // Create client
     BinauthzManagementServiceV1Beta1Client binauthzManagementServiceV1Beta1Client = BinauthzManagementServiceV1Beta1Client.Create();
     // Initialize request argument(s)
     ProjectName parent     = ProjectName.FromProject("[PROJECT]");
     string      attestorId = "";
     Attestor    attestor   = new Attestor();
     // Make the request
     Attestor response = binauthzManagementServiceV1Beta1Client.CreateAttestor(parent, attestorId, attestor);
 }
Beispiel #15
0
        /// <summary>Snippet for DeleteAttestor</summary>
        public void DeleteAttestorResourceNames()
        {
            // Snippet: DeleteAttestor(AttestorName, CallSettings)
            // Create client
            BinauthzManagementServiceV1Beta1Client binauthzManagementServiceV1Beta1Client = BinauthzManagementServiceV1Beta1Client.Create();
            // Initialize request argument(s)
            AttestorName name = AttestorName.FromProjectAttestor("[PROJECT]", "[ATTESTOR]");

            // Make the request
            binauthzManagementServiceV1Beta1Client.DeleteAttestor(name);
            // End snippet
        }
Beispiel #16
0
        /// <summary>Snippet for DeleteAttestor</summary>
        public void DeleteAttestor()
        {
            // Snippet: DeleteAttestor(string, CallSettings)
            // Create client
            BinauthzManagementServiceV1Beta1Client binauthzManagementServiceV1Beta1Client = BinauthzManagementServiceV1Beta1Client.Create();
            // Initialize request argument(s)
            string name = "projects/[PROJECT]/attestors/[ATTESTOR]";

            // Make the request
            binauthzManagementServiceV1Beta1Client.DeleteAttestor(name);
            // End snippet
        }
 /// <summary>Snippet for GetPolicy</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void GetPolicyRequestObject()
 {
     // Create client
     BinauthzManagementServiceV1Beta1Client binauthzManagementServiceV1Beta1Client = BinauthzManagementServiceV1Beta1Client.Create();
     // Initialize request argument(s)
     GetPolicyRequest request = new GetPolicyRequest
     {
         PolicyName = PolicyName.FromProject("[PROJECT]"),
     };
     // Make the request
     Policy response = binauthzManagementServiceV1Beta1Client.GetPolicy(request);
 }
Beispiel #18
0
 /// <summary>Snippet for GetAttestor</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void GetAttestorRequestObject()
 {
     // Create client
     BinauthzManagementServiceV1Beta1Client binauthzManagementServiceV1Beta1Client = BinauthzManagementServiceV1Beta1Client.Create();
     // Initialize request argument(s)
     GetAttestorRequest request = new GetAttestorRequest
     {
         AttestorName = AttestorName.FromProjectAttestor("[PROJECT]", "[ATTESTOR]"),
     };
     // Make the request
     Attestor response = binauthzManagementServiceV1Beta1Client.GetAttestor(request);
 }
 /// <summary>Snippet for UpdateAttestor</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void UpdateAttestorRequestObject()
 {
     // Create client
     BinauthzManagementServiceV1Beta1Client binauthzManagementServiceV1Beta1Client = BinauthzManagementServiceV1Beta1Client.Create();
     // Initialize request argument(s)
     UpdateAttestorRequest request = new UpdateAttestorRequest
     {
         Attestor = new Attestor(),
     };
     // Make the request
     Attestor response = binauthzManagementServiceV1Beta1Client.UpdateAttestor(request);
 }
 /// <summary>Snippet for UpdatePolicy</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void UpdatePolicyRequestObject()
 {
     // Create client
     BinauthzManagementServiceV1Beta1Client binauthzManagementServiceV1Beta1Client = BinauthzManagementServiceV1Beta1Client.Create();
     // Initialize request argument(s)
     UpdatePolicyRequest request = new UpdatePolicyRequest
     {
         Policy = new Policy(),
     };
     // Make the request
     Policy response = binauthzManagementServiceV1Beta1Client.UpdatePolicy(request);
 }
        /// <summary>Snippet for UpdatePolicyAsync</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 UpdatePolicyRequestObjectAsync()
        {
            // Create client
            BinauthzManagementServiceV1Beta1Client binauthzManagementServiceV1Beta1Client = await BinauthzManagementServiceV1Beta1Client.CreateAsync();

            // Initialize request argument(s)
            UpdatePolicyRequest request = new UpdatePolicyRequest
            {
                Policy = new Policy(),
            };
            // Make the request
            Policy response = await binauthzManagementServiceV1Beta1Client.UpdatePolicyAsync(request);
        }
Beispiel #22
0
        /// <summary>Snippet for DeleteAttestorAsync</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 DeleteAttestorRequestObjectAsync()
        {
            // Create client
            BinauthzManagementServiceV1Beta1Client binauthzManagementServiceV1Beta1Client = await BinauthzManagementServiceV1Beta1Client.CreateAsync();

            // Initialize request argument(s)
            DeleteAttestorRequest request = new DeleteAttestorRequest
            {
                AttestorName = AttestorName.FromProjectAttestor("[PROJECT]", "[ATTESTOR]"),
            };
            // Make the request
            await binauthzManagementServiceV1Beta1Client.DeleteAttestorAsync(request);
        }
Beispiel #23
0
        /// <summary>Snippet for GetPolicyAsync</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 GetPolicyRequestObjectAsync()
        {
            // Create client
            BinauthzManagementServiceV1Beta1Client binauthzManagementServiceV1Beta1Client = await BinauthzManagementServiceV1Beta1Client.CreateAsync();

            // Initialize request argument(s)
            GetPolicyRequest request = new GetPolicyRequest
            {
                PolicyName = PolicyName.FromProject("[PROJECT]"),
            };
            // Make the request
            Policy response = await binauthzManagementServiceV1Beta1Client.GetPolicyAsync(request);
        }
Beispiel #24
0
        /// <summary>Snippet for UpdateAttestorAsync</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 UpdateAttestorRequestObjectAsync()
        {
            // Create client
            BinauthzManagementServiceV1Beta1Client binauthzManagementServiceV1Beta1Client = await BinauthzManagementServiceV1Beta1Client.CreateAsync();

            // Initialize request argument(s)
            UpdateAttestorRequest request = new UpdateAttestorRequest
            {
                Attestor = new Attestor(),
            };
            // Make the request
            Attestor response = await binauthzManagementServiceV1Beta1Client.UpdateAttestorAsync(request);
        }
Beispiel #25
0
        /// <summary>Snippet for GetPolicyAsync</summary>
        public async Task GetPolicyAsync()
        {
            // Snippet: GetPolicyAsync(string, CallSettings)
            // Additional: GetPolicyAsync(string, CancellationToken)
            // Create client
            BinauthzManagementServiceV1Beta1Client binauthzManagementServiceV1Beta1Client = await BinauthzManagementServiceV1Beta1Client.CreateAsync();

            // Initialize request argument(s)
            string name = "projects/[PROJECT]/policy";
            // Make the request
            Policy response = await binauthzManagementServiceV1Beta1Client.GetPolicyAsync(name);

            // End snippet
        }
Beispiel #26
0
        /// <summary>Snippet for UpdatePolicyAsync</summary>
        public async Task UpdatePolicyAsync()
        {
            // Snippet: UpdatePolicyAsync(Policy, CallSettings)
            // Additional: UpdatePolicyAsync(Policy, CancellationToken)
            // Create client
            BinauthzManagementServiceV1Beta1Client binauthzManagementServiceV1Beta1Client = await BinauthzManagementServiceV1Beta1Client.CreateAsync();

            // Initialize request argument(s)
            Policy policy = new Policy();
            // Make the request
            Policy response = await binauthzManagementServiceV1Beta1Client.UpdatePolicyAsync(policy);

            // End snippet
        }
Beispiel #27
0
        /// <summary>Snippet for UpdateAttestorAsync</summary>
        public async Task UpdateAttestorAsync()
        {
            // Snippet: UpdateAttestorAsync(Attestor, CallSettings)
            // Additional: UpdateAttestorAsync(Attestor, CancellationToken)
            // Create client
            BinauthzManagementServiceV1Beta1Client binauthzManagementServiceV1Beta1Client = await BinauthzManagementServiceV1Beta1Client.CreateAsync();

            // Initialize request argument(s)
            Attestor attestor = new Attestor();
            // Make the request
            Attestor response = await binauthzManagementServiceV1Beta1Client.UpdateAttestorAsync(attestor);

            // End snippet
        }
Beispiel #28
0
 /// <summary>Snippet for CreateAttestor</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void CreateAttestorRequestObject()
 {
     // Create client
     BinauthzManagementServiceV1Beta1Client binauthzManagementServiceV1Beta1Client = BinauthzManagementServiceV1Beta1Client.Create();
     // Initialize request argument(s)
     CreateAttestorRequest request = new CreateAttestorRequest
     {
         ParentAsProjectName = ProjectName.FromProject("[PROJECT]"),
         AttestorId          = "",
         Attestor            = new Attestor(),
     };
     // Make the request
     Attestor response = binauthzManagementServiceV1Beta1Client.CreateAttestor(request);
 }
Beispiel #29
0
        /// <summary>Snippet for DeleteAttestorAsync</summary>
        public async Task DeleteAttestorAsync()
        {
            // Snippet: DeleteAttestorAsync(string, CallSettings)
            // Additional: DeleteAttestorAsync(string, CancellationToken)
            // Create client
            BinauthzManagementServiceV1Beta1Client binauthzManagementServiceV1Beta1Client = await BinauthzManagementServiceV1Beta1Client.CreateAsync();

            // Initialize request argument(s)
            string name = "projects/[PROJECT]/attestors/[ATTESTOR]";
            // Make the request
            await binauthzManagementServiceV1Beta1Client.DeleteAttestorAsync(name);

            // End snippet
        }
Beispiel #30
0
        /// <summary>Snippet for DeleteAttestorAsync</summary>
        public async Task DeleteAttestorResourceNamesAsync()
        {
            // Snippet: DeleteAttestorAsync(AttestorName, CallSettings)
            // Additional: DeleteAttestorAsync(AttestorName, CancellationToken)
            // Create client
            BinauthzManagementServiceV1Beta1Client binauthzManagementServiceV1Beta1Client = await BinauthzManagementServiceV1Beta1Client.CreateAsync();

            // Initialize request argument(s)
            AttestorName name = AttestorName.FromProjectAttestor("[PROJECT]", "[ATTESTOR]");
            // Make the request
            await binauthzManagementServiceV1Beta1Client.DeleteAttestorAsync(name);

            // End snippet
        }