/// <summary>Snippet for GetOperatingSystemVersionConstant</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void GetOperatingSystemVersionConstantResourceNames()
 {
     // Create client
     OperatingSystemVersionConstantServiceClient operatingSystemVersionConstantServiceClient = OperatingSystemVersionConstantServiceClient.Create();
     // Initialize request argument(s)
     OperatingSystemVersionConstantName resourceName = OperatingSystemVersionConstantName.FromCriterion("[CRITERION_ID]");
     // Make the request
     OperatingSystemVersionConstant response = operatingSystemVersionConstantServiceClient.GetOperatingSystemVersionConstant(resourceName);
 }
Exemple #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 GetOperatingSystemVersionConstantRequestObjectAsync()
        {
            // Create client
            OperatingSystemVersionConstantServiceClient operatingSystemVersionConstantServiceClient = await OperatingSystemVersionConstantServiceClient.CreateAsync();

            // Initialize request argument(s)
            GetOperatingSystemVersionConstantRequest request = new GetOperatingSystemVersionConstantRequest
            {
                ResourceNameAsOperatingSystemVersionConstantName = OperatingSystemVersionConstantName.FromCriterion("[CRITERION_ID]"),
            };
            // Make the request
            OperatingSystemVersionConstant response = await operatingSystemVersionConstantServiceClient.GetOperatingSystemVersionConstantAsync(request);
        }
 /// <summary>Snippet for GetOperatingSystemVersionConstant</summary>
 public void GetOperatingSystemVersionConstantRequestObject()
 {
     // Snippet: GetOperatingSystemVersionConstant(GetOperatingSystemVersionConstantRequest, CallSettings)
     // Create client
     OperatingSystemVersionConstantServiceClient operatingSystemVersionConstantServiceClient = OperatingSystemVersionConstantServiceClient.Create();
     // Initialize request argument(s)
     GetOperatingSystemVersionConstantRequest request = new GetOperatingSystemVersionConstantRequest
     {
         ResourceNameAsOperatingSystemVersionConstantName = OperatingSystemVersionConstantName.FromCriterion("[CRITERION_ID]"),
     };
     // Make the request
     OperatingSystemVersionConstant response = operatingSystemVersionConstantServiceClient.GetOperatingSystemVersionConstant(request);
     // 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
        }