Example #1
0
        /// <summary>Snippet for GetOperatingSystemVersionConstantAsync</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 GetOperatingSystemVersionConstantResourceNamesAsync()
        {
            // Create client
            OperatingSystemVersionConstantServiceClient operatingSystemVersionConstantServiceClient = await OperatingSystemVersionConstantServiceClient.CreateAsync();

            // Initialize request argument(s)
            OperatingSystemVersionConstantName resourceName = OperatingSystemVersionConstantName.FromCriterion("[CRITERION_ID]");
            // Make the request
            OperatingSystemVersionConstant response = await operatingSystemVersionConstantServiceClient.GetOperatingSystemVersionConstantAsync(resourceName);
        }
Example #2
0
        /// <summary>Snippet for GetOperatingSystemVersionConstantAsync</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 GetOperatingSystemVersionConstantAsync()
        {
            // Create client
            OperatingSystemVersionConstantServiceClient operatingSystemVersionConstantServiceClient = await OperatingSystemVersionConstantServiceClient.CreateAsync();

            // Initialize request argument(s)
            string resourceName = "operatingSystemVersionConstants/[CRITERION_ID]";
            // Make the request
            OperatingSystemVersionConstant response = await operatingSystemVersionConstantServiceClient.GetOperatingSystemVersionConstantAsync(resourceName);
        }
        /// <summary>Snippet for GetOperatingSystemVersionConstantAsync</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 GetOperatingSystemVersionConstantResourceNamesAsync()
        {
            // Create client
            OperatingSystemVersionConstantServiceClient operatingSystemVersionConstantServiceClient = await OperatingSystemVersionConstantServiceClient.CreateAsync();

            // Initialize request argument(s)
            OperatingSystemVersionConstantName resourceName = OperatingSystemVersionConstantName.FromOperatingSystemVersionConstant("[OPERATING_SYSTEM_VERSION_CONSTANT]");
            // Make the request
            OperatingSystemVersionConstant response = await operatingSystemVersionConstantServiceClient.GetOperatingSystemVersionConstantAsync(resourceName);
        }
        /// <summary>Snippet for GetOperatingSystemVersionConstantAsync</summary>
        public async Task GetOperatingSystemVersionConstantAsync()
        {
            // Snippet: GetOperatingSystemVersionConstantAsync(string, CallSettings)
            // Additional: GetOperatingSystemVersionConstantAsync(string, CancellationToken)
            // Create client
            OperatingSystemVersionConstantServiceClient operatingSystemVersionConstantServiceClient = await OperatingSystemVersionConstantServiceClient.CreateAsync();

            // Initialize request argument(s)
            string resourceName = "operatingSystemVersionConstants/[OPERATING_SYSTEM_VERSION_CONSTANT]";
            // Make the request
            OperatingSystemVersionConstant response = await operatingSystemVersionConstantServiceClient.GetOperatingSystemVersionConstantAsync(resourceName);

            // End snippet
        }
        /// <summary>Snippet for GetOperatingSystemVersionConstantAsync</summary>
        public async Task GetOperatingSystemVersionConstantResourceNamesAsync()
        {
            // Snippet: GetOperatingSystemVersionConstantAsync(OperatingSystemVersionConstantName, CallSettings)
            // Additional: GetOperatingSystemVersionConstantAsync(OperatingSystemVersionConstantName, CancellationToken)
            // Create client
            OperatingSystemVersionConstantServiceClient operatingSystemVersionConstantServiceClient = await OperatingSystemVersionConstantServiceClient.CreateAsync();

            // Initialize request argument(s)
            OperatingSystemVersionConstantName resourceName = OperatingSystemVersionConstantName.FromCriterion("[CRITERION_ID]");
            // Make the request
            OperatingSystemVersionConstant response = await operatingSystemVersionConstantServiceClient.GetOperatingSystemVersionConstantAsync(resourceName);

            // End snippet
        }
        /// <summary>Snippet for GetOperatingSystemVersionConstantAsync</summary>
        public async Task GetOperatingSystemVersionConstantRequestObjectAsync()
        {
            // Snippet: GetOperatingSystemVersionConstantAsync(GetOperatingSystemVersionConstantRequest, CallSettings)
            // Additional: GetOperatingSystemVersionConstantAsync(GetOperatingSystemVersionConstantRequest, CancellationToken)
            // Create client
            OperatingSystemVersionConstantServiceClient operatingSystemVersionConstantServiceClient = await OperatingSystemVersionConstantServiceClient.CreateAsync();

            // Initialize request argument(s)
            GetOperatingSystemVersionConstantRequest request = new GetOperatingSystemVersionConstantRequest
            {
                ResourceNameAsOperatingSystemVersionConstantName = OperatingSystemVersionConstantName.FromOperatingSystemVersionConstant("[OPERATING_SYSTEM_VERSION_CONSTANT]"),
            };
            // Make the request
            OperatingSystemVersionConstant response = await operatingSystemVersionConstantServiceClient.GetOperatingSystemVersionConstantAsync(request);

            // End snippet
        }