Example #1
0
        /// <summary>Snippet for GetAttestorAsync</summary>
        public async Task GetAttestorResourceNamesAsync()
        {
            // Snippet: GetAttestorAsync(AttestorName, CallSettings)
            // Additional: GetAttestorAsync(AttestorName, CancellationToken)
            // Create client
            BinauthzManagementServiceV1Client binauthzManagementServiceV1Client = await BinauthzManagementServiceV1Client.CreateAsync();

            // Initialize request argument(s)
            AttestorName name = AttestorName.FromProjectAttestor("[PROJECT]", "[ATTESTOR]");
            // Make the request
            Attestor response = await binauthzManagementServiceV1Client.GetAttestorAsync(name);

            // End snippet
        }
Example #2
0
        /// <summary>Snippet for GetAttestorAsync</summary>
        public async Task GetAttestorAsync()
        {
            // Snippet: GetAttestorAsync(string, CallSettings)
            // Additional: GetAttestorAsync(string, CancellationToken)
            // Create client
            BinauthzManagementServiceV1Client binauthzManagementServiceV1Client = await BinauthzManagementServiceV1Client.CreateAsync();

            // Initialize request argument(s)
            string name = "projects/[PROJECT]/attestors/[ATTESTOR]";
            // Make the request
            Attestor response = await binauthzManagementServiceV1Client.GetAttestorAsync(name);

            // End snippet
        }