Esempio n. 1
0
 /// <summary>Snippet for EnableXpnResource</summary>
 public void EnableXpnResourceRequestObject()
 {
     // Snippet: EnableXpnResource(EnableXpnResourceProjectRequest, CallSettings)
     // Create client
     ProjectsClient projectsClient = ProjectsClient.Create();
     // Initialize request argument(s)
     EnableXpnResourceProjectRequest request = new EnableXpnResourceProjectRequest
     {
         RequestId = "",
         Project   = "",
         ProjectsEnableXpnResourceRequestResource = new ProjectsEnableXpnResourceRequest(),
     };
     // Make the request
     Operation response = projectsClient.EnableXpnResource(request);
     // End snippet
 }
Esempio n. 2
0
        /// <summary>Snippet for EnableXpnResourceAsync</summary>
        public async Task EnableXpnResourceRequestObjectAsync()
        {
            // Snippet: EnableXpnResourceAsync(EnableXpnResourceProjectRequest, CallSettings)
            // Additional: EnableXpnResourceAsync(EnableXpnResourceProjectRequest, CancellationToken)
            // Create client
            ProjectsClient projectsClient = await ProjectsClient.CreateAsync();

            // Initialize request argument(s)
            EnableXpnResourceProjectRequest request = new EnableXpnResourceProjectRequest
            {
                RequestId = "",
                Project   = "",
                ProjectsEnableXpnResourceRequestResource = new ProjectsEnableXpnResourceRequest(),
            };
            // Make the request
            Operation response = await projectsClient.EnableXpnResourceAsync(request);

            // End snippet
        }