Beispiel #1
0
        /// <summary>Snippet for GetIamPolicyAsync</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 GetIamPolicyResourceNamesAsync()
        {
            // Create client
            ConnectionServiceClient connectionServiceClient = await ConnectionServiceClient.CreateAsync();

            // Initialize request argument(s)
            IResourceName    resource = new UnparsedResourceName("a/wildcard/resource");
            GetPolicyOptions options  = new GetPolicyOptions();
            // Make the request
            Policy response = await connectionServiceClient.GetIamPolicyAsync(resource, options);
        }
Beispiel #2
0
        /// <summary>Snippet for GetIamPolicyAsync</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 GetIamPolicyRequestObjectAsync()
        {
            // Create client
            ConnectionServiceClient connectionServiceClient = await ConnectionServiceClient.CreateAsync();

            // Initialize request argument(s)
            GetIamPolicyRequest request = new GetIamPolicyRequest
            {
                ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"),
                Options = new GetPolicyOptions(),
            };
            // Make the request
            Policy response = await connectionServiceClient.GetIamPolicyAsync(request);
        }
Beispiel #3
0
        /// <summary>Snippet for GetIamPolicyAsync</summary>
        public async Task GetIamPolicyResourceNamesAsync()
        {
            // Snippet: GetIamPolicyAsync(IResourceName, GetPolicyOptions, CallSettings)
            // Additional: GetIamPolicyAsync(IResourceName, GetPolicyOptions, CancellationToken)
            // Create client
            ConnectionServiceClient connectionServiceClient = await ConnectionServiceClient.CreateAsync();

            // Initialize request argument(s)
            IResourceName    resource = new UnparsedResourceName("a/wildcard/resource");
            GetPolicyOptions options  = new GetPolicyOptions();
            // Make the request
            Policy response = await connectionServiceClient.GetIamPolicyAsync(resource, options);

            // End snippet
        }