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

            // Initialize request argument(s)
            ProjectName parent     = ProjectName.FromProject("[PROJECT]");
            string      attestorId = "";
            Attestor    attestor   = new Attestor();
            // Make the request
            Attestor response = await binauthzManagementServiceV1Beta1Client.CreateAttestorAsync(parent, attestorId, attestor);
        }
Example #2
0
        /// <summary>Snippet for CreateAttestorAsync</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 CreateAttestorRequestObjectAsync()
        {
            // Create client
            BinauthzManagementServiceV1Beta1Client binauthzManagementServiceV1Beta1Client = await BinauthzManagementServiceV1Beta1Client.CreateAsync();

            // Initialize request argument(s)
            CreateAttestorRequest request = new CreateAttestorRequest
            {
                ParentAsProjectName = ProjectName.FromProject("[PROJECT]"),
                AttestorId          = "",
                Attestor            = new Attestor(),
            };
            // Make the request
            Attestor response = await binauthzManagementServiceV1Beta1Client.CreateAttestorAsync(request);
        }
Example #3
0
        /// <summary>Snippet for CreateAttestorAsync</summary>
        public async Task CreateAttestorResourceNamesAsync()
        {
            // Snippet: CreateAttestorAsync(ProjectName, string, Attestor, CallSettings)
            // Additional: CreateAttestorAsync(ProjectName, string, Attestor, CancellationToken)
            // Create client
            BinauthzManagementServiceV1Beta1Client binauthzManagementServiceV1Beta1Client = await BinauthzManagementServiceV1Beta1Client.CreateAsync();

            // Initialize request argument(s)
            ProjectName parent     = ProjectName.FromProject("[PROJECT]");
            string      attestorId = "";
            Attestor    attestor   = new Attestor();
            // Make the request
            Attestor response = await binauthzManagementServiceV1Beta1Client.CreateAttestorAsync(parent, attestorId, attestor);

            // End snippet
        }
Example #4
0
        /// <summary>Snippet for CreateAttestorAsync</summary>
        public async Task CreateAttestorRequestObjectAsync()
        {
            // Snippet: CreateAttestorAsync(CreateAttestorRequest, CallSettings)
            // Additional: CreateAttestorAsync(CreateAttestorRequest, CancellationToken)
            // Create client
            BinauthzManagementServiceV1Beta1Client binauthzManagementServiceV1Beta1Client = await BinauthzManagementServiceV1Beta1Client.CreateAsync();

            // Initialize request argument(s)
            CreateAttestorRequest request = new CreateAttestorRequest
            {
                ParentAsProjectName = ProjectName.FromProject("[PROJECT]"),
                AttestorId          = "",
                Attestor            = new Attestor(),
            };
            // Make the request
            Attestor response = await binauthzManagementServiceV1Beta1Client.CreateAttestorAsync(request);

            // End snippet
        }