Ejemplo n.º 1
0
 /// <summary>Snippet for GetWorkload</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void GetWorkload()
 {
     // Create client
     AssuredWorkloadsServiceClient assuredWorkloadsServiceClient = AssuredWorkloadsServiceClient.Create();
     // Initialize request argument(s)
     string name = "organizations/[ORGANIZATION]/locations/[LOCATION]/workloads/[WORKLOAD]";
     // Make the request
     Workload response = assuredWorkloadsServiceClient.GetWorkload(name);
 }
 /// <summary>Snippet for GetWorkload</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void GetWorkloadResourceNames()
 {
     // Create client
     AssuredWorkloadsServiceClient assuredWorkloadsServiceClient = AssuredWorkloadsServiceClient.Create();
     // Initialize request argument(s)
     WorkloadName name = WorkloadName.FromOrganizationLocationWorkload("[ORGANIZATION]", "[LOCATION]", "[WORKLOAD]");
     // Make the request
     Workload response = assuredWorkloadsServiceClient.GetWorkload(name);
 }
Ejemplo n.º 3
0
 /// <summary>Snippet for GetWorkload</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void GetWorkloadRequestObject()
 {
     // Create client
     AssuredWorkloadsServiceClient assuredWorkloadsServiceClient = AssuredWorkloadsServiceClient.Create();
     // Initialize request argument(s)
     GetWorkloadRequest request = new GetWorkloadRequest
     {
         WorkloadName = WorkloadName.FromOrganizationLocationWorkload("[ORGANIZATION]", "[LOCATION]", "[WORKLOAD]"),
     };
     // Make the request
     Workload response = assuredWorkloadsServiceClient.GetWorkload(request);
 }