/// <summary>Snippet for GetAttestorAsync</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 GetAttestorAsync()
        {
            // Create client
            BinauthzManagementServiceV1Beta1Client binauthzManagementServiceV1Beta1Client = await BinauthzManagementServiceV1Beta1Client.CreateAsync();

            // Initialize request argument(s)
            string name = "projects/[PROJECT]/attestors/[ATTESTOR]";
            // Make the request
            Attestor response = await binauthzManagementServiceV1Beta1Client.GetAttestorAsync(name);
        }
Exemplo n.º 2
0
        /// <summary>Snippet for GetAttestorAsync</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 GetAttestorResourceNamesAsync()
        {
            // Create client
            BinauthzManagementServiceV1Beta1Client binauthzManagementServiceV1Beta1Client = await BinauthzManagementServiceV1Beta1Client.CreateAsync();

            // Initialize request argument(s)
            AttestorName name = AttestorName.FromProjectAttestor("[PROJECT]", "[ATTESTOR]");
            // Make the request
            Attestor response = await binauthzManagementServiceV1Beta1Client.GetAttestorAsync(name);
        }
Exemplo n.º 3
0
        /// <summary>Snippet for GetAttestorAsync</summary>
        public async Task GetAttestorResourceNamesAsync()
        {
            // Snippet: GetAttestorAsync(AttestorName, CallSettings)
            // Additional: GetAttestorAsync(AttestorName, CancellationToken)
            // Create client
            BinauthzManagementServiceV1Beta1Client binauthzManagementServiceV1Beta1Client = await BinauthzManagementServiceV1Beta1Client.CreateAsync();

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

            // End snippet
        }
Exemplo n.º 4
0
        /// <summary>Snippet for GetAttestorAsync</summary>
        public async Task GetAttestorAsync()
        {
            // Snippet: GetAttestorAsync(string, CallSettings)
            // Additional: GetAttestorAsync(string, CancellationToken)
            // Create client
            BinauthzManagementServiceV1Beta1Client binauthzManagementServiceV1Beta1Client = await BinauthzManagementServiceV1Beta1Client.CreateAsync();

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

            // End snippet
        }