This page shows how to get started with the Cloud Client Libraries for the
Workload Manager API. Client libraries make it easier to access
Google Cloud APIs from a supported language. Although you can use
Google Cloud APIs directly by making raw requests to the server, client
libraries provide simplifications that significantly reduce the amount of code
you need to write.

Read more about the Cloud Client Libraries
and the older Google API Client Libraries in
[Client libraries explained](https://docs.cloud.google.com/apis/docs/client-libraries-explained).

> [!WARNING]
>
> **Preview**
>
>
> These libraries are
>
> subject to the "Pre-GA Offerings Terms" in the General Service Terms section of the
> [Service Specific
> Terms](https://docs.cloud.google.com/terms/service-terms#1).
>
> Pre-GA libraries are available "as is" and might have limited support.
>
> For more information, see the
> [launch stage descriptions](https://cloud.google.com/products/#product-launch-stages).

The C++ and Go client libraries for Workload Manager are Generally Available (GA). The C#, Java, Node.js, PHP, Python, and Ruby client libraries are in Preview.

## Install the client library

### C++

See [Setting up a C++ development environment](https://docs.cloud.google.com/cpp/docs/setup)
for details about this client library's requirements and install dependencies.

### C#

```
Install-Package Google.Cloud.WorkloadManager.V1 -Pre
```

For more information, see [Setting Up a C# Development Environment](https://docs.cloud.google.com/dotnet/docs/setup).

### Go

```
go get cloud.google.com/go/workloadmanager/apiv1
```

For more information, see [Setting Up a Go Development Environment](https://docs.cloud.google.com/go/docs/setup).

### Java

Select one of the following options:

- If you are using [Maven](https://maven.apache.org/) with [BOM](https://docs.cloud.google.com/java/docs/bom), add the following to your `pom.xml` file:

  ```
  <dependencyManagement>
  <dependencies>
  <dependency>
    <groupId>com.google.cloud</groupId>
    <artifactId>libraries-bom</artifactId>
    <version>26.86.0</version>
    <type>pom</type>
    <scope>import</scope>
  </dependency>
  </dependencies>
  </dependencyManagement>
  <dependencies>
  <dependency>
  <groupId>com.google.cloud</groupId>
  <artifactId>google-cloud-workloadmanager</artifactId>
  </dependency>
  </dependencies>
  ```
- If you are using Maven without BOM, add the following to your dependencies:

  ```
  <dependency>
  <groupId>com.google.cloud</groupId>
  <artifactId>google-cloud-workloadmanager</artifactId>
  <version>0.13.0</version>
  </dependency>
  ```
- If you are using [Gradle](https://gradle.org/) with BOM, add the following to your dependencies:

  ```
  implementation platform('com.google.cloud:libraries-bom:26.86.0')
  implementation 'com.google.cloud:google-cloud-workloadmanager'
  ```
- If you are using Gradle without BOM, add the following to your dependencies:

  ```
  implementation 'com.google.cloud:google-cloud-workloadmanager:0.13.0'
  ```
- If you are using [SBT](https://www.scala-sbt.org/), add the following to your dependencies:

  ```
  libraryDependencies += "com.google.cloud" % "google-cloud-workloadmanager" % "0.13.0"
  ```

For more information, see [Setting Up a Java Development Environment](https://docs.cloud.google.com/java/docs/setup).

### Node.js

```
npm install @google-cloud/workloadmanager
```

For more information, see [Setting Up a Node.js Development Environment](https://docs.cloud.google.com/nodejs/docs/setup).

### PHP

```
composer require google/cloud-workloadmanager
```

For more information, see [Using PHP on Google Cloud](https://docs.cloud.google.com/php/docs).

### Python

```
pip install google-cloud-workloadmanager
```

For more information, see [Setting Up a Python Development Environment](https://docs.cloud.google.com/python/docs/setup).

### Ruby

```
gem install google-cloud-workload_manager
```

For more information, see [Setting Up a Ruby Development Environment](https://docs.cloud.google.com/ruby/docs/setup).

<br />

## Set up authentication

To authenticate calls to Google Cloud APIs, client libraries support [Application Default Credentials (ADC)](https://docs.cloud.google.com/docs/authentication/application-default-credentials); the libraries look for credentials in a set of defined locations and use those credentials to authenticate requests to the API. With ADC, you can make credentials available to your application in a variety of environments, such as local development or production, without needing to modify your application code.

For production environments, the way you set up ADC depends on the service
and context. For more information, see [Set up Application Default Credentials](https://docs.cloud.google.com/docs/authentication/provide-credentials-adc).

For a local development environment, you can set up ADC with the credentials
that are associated with your Google Account:

1.
   [Install](https://docs.cloud.google.com/sdk/docs/install) the Google Cloud CLI.

   After installation,
   [initialize](https://docs.cloud.google.com/sdk/docs/initializing) the Google Cloud CLI by running the following command:

   ```bash
   gcloud init
   ```


   If you're using an external identity provider (IdP), you must first
   [sign in to the gcloud CLI with your federated identity](https://docs.cloud.google.com/iam/docs/workforce-log-in-gcloud).
2.

   If you're using a local shell, then create local authentication credentials for your user
   account:

   ```bash
   gcloud auth application-default login
   ```

   You don't need to do this if you're using Cloud Shell.


   If an authentication error is returned, and you are using an external identity provider
   (IdP), confirm that you have
   [signed in to the gcloud CLI with your federated identity](https://docs.cloud.google.com/iam/docs/workforce-log-in-gcloud).


   A sign-in screen appears. After you sign in, your credentials are stored in the
   [local credential file used by ADC](https://docs.cloud.google.com/docs/authentication/application-default-credentials#personal).

## Use the client library


The following example shows how to use the client library to
list Workload Manager evaluations.

### C++

    // Copyright 2026 Google LLC
    //
    // Licensed under the Apache License, Version 2.0 (the "License");
    // you may not use this file except in compliance with the License.
    // You may obtain a copy of the License at
    //
    // https://www.apache.org/licenses/LICENSE-2.0
    //
    // Unless required by applicable law or agreed to in writing, software
    // distributed under the License is distributed on an "AS IS" BASIS,
    // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    // See the License for the specific language governing permissions and
    // limitations under the License.

    //! [all]
    #include "google/cloud/workloadmanager/v1/workload_manager_client.h"
    #include "google/cloud/location.h"
    #include <iostream>

    int main(int argc, char* argv[]) try {
      if (argc != 3) {
        std::cerr << "Usage: " << argv[0] << " project-id location-id\n";
        return 1;
      }

      auto const location = google::cloud::Location(argv[1], argv[2]);

      namespace workloadmanager = ::google::cloud::workloadmanager_v1;
      auto client = workloadmanager::WorkloadManagerClient(
          workloadmanager::MakeWorkloadManagerConnection());

      for (auto r : client.ListEvaluations(location.FullName())) {
        if (!r) throw std::move(r).status();
        std::cout << r->DebugString() << "\n";
      }

      return 0;
    } catch (google::cloud::Status const& status) {
      std::cerr << "google::cloud::Status thrown: " << status << "\n";
      return 1;
    }
    //! [all]

### C#

    using https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.html;
    using https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.html;
    using https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.WorkloadManager.V1/latest/Google.Cloud.WorkloadManager.V1.html;
    using System;

    public sealed partial class GeneratedWorkloadManagerClientSnippets
    {
        /// <summary>Snippet for ListEvaluations</summary>
        /// <remarks>
        /// This snippet has been automatically generated and should be regarded as a code template only.
        /// It will require modifications to work:
        /// - It may require correct/in-range values for request initialization.
        /// - It may require specifying regional endpoints when creating the service client as shown in
        ///   https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint.
        /// </remarks>
        public void ListEvaluationsRequestObject()
        {
            // Create client
            https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.WorkloadManager.V1/latest/Google.Cloud.WorkloadManager.V1.WorkloadManagerClient.html workloadManagerClient = https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.WorkloadManager.V1/latest/Google.Cloud.WorkloadManager.V1.WorkloadManagerClient.html.https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.WorkloadManager.V1/latest/Google.Cloud.WorkloadManager.V1.WorkloadManagerClient.html#Google_Cloud_WorkloadManager_V1_WorkloadManagerClient_Create();
            // Initialize request argument(s)
            https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.WorkloadManager.V1/latest/Google.Cloud.WorkloadManager.V1.ListEvaluationsRequest.html request = new https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.WorkloadManager.V1/latest/Google.Cloud.WorkloadManager.V1.ListEvaluationsRequest.html
            {
                ParentAsLocationName = https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.LocationName.html.https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.LocationName.html#Google_Api_Gax_ResourceNames_LocationName_FromProjectLocation_System_String_System_String_("[PROJECT]", "[LOCATION]"),
                Filter = "",
                OrderBy = "",
            };
            // Make the request
            PagedEnumerable<ListEvaluationsResponse, Evaluation> response = workloadManagerClient.https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.WorkloadManager.V1/latest/Google.Cloud.WorkloadManager.V1.WorkloadManagerClient.html#Google_Cloud_WorkloadManager_V1_WorkloadManagerClient_ListEvaluations_Google_Api_Gax_ResourceNames_LocationName_System_String_System_Nullable_System_Int32__Google_Api_Gax_Grpc_CallSettings_(request);

            // Iterate over all response items, lazily performing RPCs as required
            foreach (https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.WorkloadManager.V1/latest/Google.Cloud.WorkloadManager.V1.Evaluation.html item in response)
            {
                // Do something with each item
                Console.WriteLine(item);
            }

            // Or iterate over pages (of server-defined size), performing one RPC per page
            foreach (https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.WorkloadManager.V1/latest/Google.Cloud.WorkloadManager.V1.ListEvaluationsResponse.html page in response.AsRawResponses())
            {
                // Do something with each page of items
                Console.WriteLine("A page of results:");
                foreach (https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.WorkloadManager.V1/latest/Google.Cloud.WorkloadManager.V1.Evaluation.html item in page)
                {
                    // Do something with each item
                    Console.WriteLine(item);
                }
            }

            // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
            int pageSize = 10;
            Page<Evaluation> singlePage = response.ReadPage(pageSize);
            // Do something with the page of items
            Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
            foreach (https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.WorkloadManager.V1/latest/Google.Cloud.WorkloadManager.V1.Evaluation.html item in singlePage)
            {
                // Do something with each item
                Console.WriteLine(item);
            }
            // Store the pageToken, for when the next page is required.
            string nextPageToken = singlePage.NextPageToken;
        }
    }

### Go

    // Copyright 2026 Google LLC
    //
    // Licensed under the Apache License, Version 2.0 (the "License");
    // you may not use this file except in compliance with the License.
    // You may obtain a copy of the License at
    //
    //     https://www.apache.org/licenses/LICENSE-2.0
    //
    // Unless required by applicable law or agreed to in writing, software
    // distributed under the License is distributed on an "AS IS" BASIS,
    // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    // See the License for the specific language governing permissions and
    // limitations under the License.

    // Code generated by protoc-gen-go_gapic. DO NOT EDIT.

    package workloadmanager_test

    import (
    	"context"

    	longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb"
    	workloadmanager "cloud.google.com/go/workloadmanager/apiv1"
    	workloadmanagerpb "cloud.google.com/go/workloadmanager/apiv1/workloadmanagerpb"
    	"google.golang.org/api/iterator"
    	locationpb "google.golang.org/genproto/googleapis/cloud/location"
    )

    func ExampleNewClient() {
    	ctx := context.Background()
    	// This snippet has been automatically generated and should be regarded as a code template only.
    	// It will require modifications to work:
    	// - It may require correct/in-range values for request initialization.
    	// - It may require specifying regional endpoints when creating the service client as shown in:
    	//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
    	c, err := workloadmanager.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/workloadmanager/latest/apiv1.html#cloud_google_com_go_workloadmanager_apiv1_Client_NewClient(ctx)
    	if err != nil {
    		// TODO: Handle error.
    	}
    	defer c.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/workloadmanager/latest/apiv1.html#cloud_google_com_go_workloadmanager_apiv1_Client_Close()

    	// TODO: Use client.
    	_ = c
    }

    func ExampleNewRESTClient() {
    	ctx := context.Background()
    	// This snippet has been automatically generated and should be regarded as a code template only.
    	// It will require modifications to work:
    	// - It may require correct/in-range values for request initialization.
    	// - It may require specifying regional endpoints when creating the service client as shown in:
    	//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
    	c, err := workloadmanager.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/workloadmanager/latest/apiv1.html#cloud_google_com_go_workloadmanager_apiv1_Client_NewRESTClient(ctx)
    	if err != nil {
    		// TODO: Handle error.
    	}
    	defer c.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/workloadmanager/latest/apiv1.html#cloud_google_com_go_workloadmanager_apiv1_Client_Close()

    	// TODO: Use client.
    	_ = c
    }

    func ExampleClient_CreateEvaluation() {
    	ctx := context.Background()
    	// This snippet has been automatically generated and should be regarded as a code template only.
    	// It will require modifications to work:
    	// - It may require correct/in-range values for request initialization.
    	// - It may require specifying regional endpoints when creating the service client as shown in:
    	//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
    	c, err := workloadmanager.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/workloadmanager/latest/apiv1.html#cloud_google_com_go_workloadmanager_apiv1_Client_NewClient(ctx)
    	if err != nil {
    		// TODO: Handle error.
    	}
    	defer c.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/workloadmanager/latest/apiv1.html#cloud_google_com_go_workloadmanager_apiv1_Client_Close()

    	req := &workloadmanagerpb.CreateEvaluationRequest{
    		// TODO: Fill request struct fields.
    		// See https://pkg.go.dev/cloud.google.com/go/workloadmanager/apiv1/workloadmanagerpb#CreateEvaluationRequest.
    	}
    	op, err := c.CreateEvaluation(ctx, req)
    	if err != nil {
    		// TODO: Handle error.
    	}

    	resp, err := op.Wait(ctx)
    	if err != nil {
    		// TODO: Handle error.
    	}
    	// TODO: Use resp.
    	_ = resp
    }

    func ExampleClient_DeleteEvaluation() {
    	ctx := context.Background()
    	// This snippet has been automatically generated and should be regarded as a code template only.
    	// It will require modifications to work:
    	// - It may require correct/in-range values for request initialization.
    	// - It may require specifying regional endpoints when creating the service client as shown in:
    	//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
    	c, err := workloadmanager.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/workloadmanager/latest/apiv1.html#cloud_google_com_go_workloadmanager_apiv1_Client_NewClient(ctx)
    	if err != nil {
    		// TODO: Handle error.
    	}
    	defer c.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/workloadmanager/latest/apiv1.html#cloud_google_com_go_workloadmanager_apiv1_Client_Close()

    	req := &workloadmanagerpb.DeleteEvaluationRequest{
    		// TODO: Fill request struct fields.
    		// See https://pkg.go.dev/cloud.google.com/go/workloadmanager/apiv1/workloadmanagerpb#DeleteEvaluationRequest.
    	}
    	op, err := c.DeleteEvaluation(ctx, req)
    	if err != nil {
    		// TODO: Handle error.
    	}

    	err = op.Wait(ctx)
    	if err != nil {
    		// TODO: Handle error.
    	}
    }

    func ExampleClient_DeleteExecution() {
    	ctx := context.Background()
    	// This snippet has been automatically generated and should be regarded as a code template only.
    	// It will require modifications to work:
    	// - It may require correct/in-range values for request initialization.
    	// - It may require specifying regional endpoints when creating the service client as shown in:
    	//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
    	c, err := workloadmanager.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/workloadmanager/latest/apiv1.html#cloud_google_com_go_workloadmanager_apiv1_Client_NewClient(ctx)
    	if err != nil {
    		// TODO: Handle error.
    	}
    	defer c.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/workloadmanager/latest/apiv1.html#cloud_google_com_go_workloadmanager_apiv1_Client_Close()

    	req := &workloadmanagerpb.DeleteExecutionRequest{
    		// TODO: Fill request struct fields.
    		// See https://pkg.go.dev/cloud.google.com/go/workloadmanager/apiv1/workloadmanagerpb#DeleteExecutionRequest.
    	}
    	op, err := c.DeleteExecution(ctx, req)
    	if err != nil {
    		// TODO: Handle error.
    	}

    	err = op.Wait(ctx)
    	if err != nil {
    		// TODO: Handle error.
    	}
    }

    func ExampleClient_GetEvaluation() {
    	ctx := context.Background()
    	// This snippet has been automatically generated and should be regarded as a code template only.
    	// It will require modifications to work:
    	// - It may require correct/in-range values for request initialization.
    	// - It may require specifying regional endpoints when creating the service client as shown in:
    	//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
    	c, err := workloadmanager.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/workloadmanager/latest/apiv1.html#cloud_google_com_go_workloadmanager_apiv1_Client_NewClient(ctx)
    	if err != nil {
    		// TODO: Handle error.
    	}
    	defer c.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/workloadmanager/latest/apiv1.html#cloud_google_com_go_workloadmanager_apiv1_Client_Close()

    	req := &workloadmanagerpb.GetEvaluationRequest{
    		// TODO: Fill request struct fields.
    		// See https://pkg.go.dev/cloud.google.com/go/workloadmanager/apiv1/workloadmanagerpb#GetEvaluationRequest.
    	}
    	resp, err := c.GetEvaluation(ctx, req)
    	if err != nil {
    		// TODO: Handle error.
    	}
    	// TODO: Use resp.
    	_ = resp
    }

    func ExampleClient_GetExecution() {
    	ctx := context.Background()
    	// This snippet has been automatically generated and should be regarded as a code template only.
    	// It will require modifications to work:
    	// - It may require correct/in-range values for request initialization.
    	// - It may require specifying regional endpoints when creating the service client as shown in:
    	//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
    	c, err := workloadmanager.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/workloadmanager/latest/apiv1.html#cloud_google_com_go_workloadmanager_apiv1_Client_NewClient(ctx)
    	if err != nil {
    		// TODO: Handle error.
    	}
    	defer c.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/workloadmanager/latest/apiv1.html#cloud_google_com_go_workloadmanager_apiv1_Client_Close()

    	req := &workloadmanagerpb.GetExecutionRequest{
    		// TODO: Fill request struct fields.
    		// See https://pkg.go.dev/cloud.google.com/go/workloadmanager/apiv1/workloadmanagerpb#GetExecutionRequest.
    	}
    	resp, err := c.GetExecution(ctx, req)
    	if err != nil {
    		// TODO: Handle error.
    	}
    	// TODO: Use resp.
    	_ = resp
    }

    func ExampleClient_ListEvaluations() {
    	ctx := context.Background()
    	// This snippet has been automatically generated and should be regarded as a code template only.
    	// It will require modifications to work:
    	// - It may require correct/in-range values for request initialization.
    	// - It may require specifying regional endpoints when creating the service client as shown in:
    	//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
    	c, err := workloadmanager.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/workloadmanager/latest/apiv1.html#cloud_google_com_go_workloadmanager_apiv1_Client_NewClient(ctx)
    	if err != nil {
    		// TODO: Handle error.
    	}
    	defer c.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/workloadmanager/latest/apiv1.html#cloud_google_com_go_workloadmanager_apiv1_Client_Close()

    	req := &workloadmanagerpb.ListEvaluationsRequest{
    		// TODO: Fill request struct fields.
    		// See https://pkg.go.dev/cloud.google.com/go/workloadmanager/apiv1/workloadmanagerpb#ListEvaluationsRequest.
    	}
    	it := c.ListEvaluations(ctx, req)
    	for {
    		resp, err := it.Next()
    		if err == iterator.Done {
    			break
    		}
    		if err != nil {
    			// TODO: Handle error.
    		}
    		// TODO: Use resp.
    		_ = resp

    		// If you need to access the underlying RPC response,
    		// you can do so by casting the `Response` as below.
    		// Otherwise, remove this line. Only populated after
    		// first call to Next(). Not safe for concurrent access.
    		_ = it.Response.(*workloadmanagerpb.ListEvaluationsResponse)
    	}
    }

    func ExampleClient_ListExecutionResults() {
    	ctx := context.Background()
    	// This snippet has been automatically generated and should be regarded as a code template only.
    	// It will require modifications to work:
    	// - It may require correct/in-range values for request initialization.
    	// - It may require specifying regional endpoints when creating the service client as shown in:
    	//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
    	c, err := workloadmanager.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/workloadmanager/latest/apiv1.html#cloud_google_com_go_workloadmanager_apiv1_Client_NewClient(ctx)
    	if err != nil {
    		// TODO: Handle error.
    	}
    	defer c.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/workloadmanager/latest/apiv1.html#cloud_google_com_go_workloadmanager_apiv1_Client_Close()

    	req := &workloadmanagerpb.ListExecutionResultsRequest{
    		// TODO: Fill request struct fields.
    		// See https://pkg.go.dev/cloud.google.com/go/workloadmanager/apiv1/workloadmanagerpb#ListExecutionResultsRequest.
    	}
    	it := c.ListExecutionResults(ctx, req)
    	for {
    		resp, err := it.Next()
    		if err == iterator.Done {
    			break
    		}
    		if err != nil {
    			// TODO: Handle error.
    		}
    		// TODO: Use resp.
    		_ = resp

    		// If you need to access the underlying RPC response,
    		// you can do so by casting the `Response` as below.
    		// Otherwise, remove this line. Only populated after
    		// first call to Next(). Not safe for concurrent access.
    		_ = it.Response.(*workloadmanagerpb.ListExecutionResultsResponse)
    	}
    }

    func ExampleClient_ListExecutions() {
    	ctx := context.Background()
    	// This snippet has been automatically generated and should be regarded as a code template only.
    	// It will require modifications to work:
    	// - It may require correct/in-range values for request initialization.
    	// - It may require specifying regional endpoints when creating the service client as shown in:
    	//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
    	c, err := workloadmanager.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/workloadmanager/latest/apiv1.html#cloud_google_com_go_workloadmanager_apiv1_Client_NewClient(ctx)
    	if err != nil {
    		// TODO: Handle error.
    	}
    	defer c.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/workloadmanager/latest/apiv1.html#cloud_google_com_go_workloadmanager_apiv1_Client_Close()

    	req := &workloadmanagerpb.ListExecutionsRequest{
    		// TODO: Fill request struct fields.
    		// See https://pkg.go.dev/cloud.google.com/go/workloadmanager/apiv1/workloadmanagerpb#ListExecutionsRequest.
    	}
    	it := c.ListExecutions(ctx, req)
    	for {
    		resp, err := it.Next()
    		if err == iterator.Done {
    			break
    		}
    		if err != nil {
    			// TODO: Handle error.
    		}
    		// TODO: Use resp.
    		_ = resp

    		// If you need to access the underlying RPC response,
    		// you can do so by casting the `Response` as below.
    		// Otherwise, remove this line. Only populated after
    		// first call to Next(). Not safe for concurrent access.
    		_ = it.Response.(*workloadmanagerpb.ListExecutionsResponse)
    	}
    }

    func ExampleClient_ListRules() {
    	ctx := context.Background()
    	// This snippet has been automatically generated and should be regarded as a code template only.
    	// It will require modifications to work:
    	// - It may require correct/in-range values for request initialization.
    	// - It may require specifying regional endpoints when creating the service client as shown in:
    	//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
    	c, err := workloadmanager.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/workloadmanager/latest/apiv1.html#cloud_google_com_go_workloadmanager_apiv1_Client_NewClient(ctx)
    	if err != nil {
    		// TODO: Handle error.
    	}
    	defer c.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/workloadmanager/latest/apiv1.html#cloud_google_com_go_workloadmanager_apiv1_Client_Close()

    	req := &workloadmanagerpb.ListRulesRequest{
    		// TODO: Fill request struct fields.
    		// See https://pkg.go.dev/cloud.google.com/go/workloadmanager/apiv1/workloadmanagerpb#ListRulesRequest.
    	}
    	resp, err := c.ListRules(ctx, req)
    	if err != nil {
    		// TODO: Handle error.
    	}
    	// TODO: Use resp.
    	_ = resp
    }

    func ExampleClient_ListScannedResources() {
    	ctx := context.Background()
    	// This snippet has been automatically generated and should be regarded as a code template only.
    	// It will require modifications to work:
    	// - It may require correct/in-range values for request initialization.
    	// - It may require specifying regional endpoints when creating the service client as shown in:
    	//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
    	c, err := workloadmanager.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/workloadmanager/latest/apiv1.html#cloud_google_com_go_workloadmanager_apiv1_Client_NewClient(ctx)
    	if err != nil {
    		// TODO: Handle error.
    	}
    	defer c.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/workloadmanager/latest/apiv1.html#cloud_google_com_go_workloadmanager_apiv1_Client_Close()

    	req := &workloadmanagerpb.ListScannedResourcesRequest{
    		// TODO: Fill request struct fields.
    		// See https://pkg.go.dev/cloud.google.com/go/workloadmanager/apiv1/workloadmanagerpb#ListScannedResourcesRequest.
    	}
    	it := c.ListScannedResources(ctx, req)
    	for {
    		resp, err := it.Next()
    		if err == iterator.Done {
    			break
    		}
    		if err != nil {
    			// TODO: Handle error.
    		}
    		// TODO: Use resp.
    		_ = resp

    		// If you need to access the underlying RPC response,
    		// you can do so by casting the `Response` as below.
    		// Otherwise, remove this line. Only populated after
    		// first call to Next(). Not safe for concurrent access.
    		_ = it.Response.(*workloadmanagerpb.ListScannedResourcesResponse)
    	}
    }

    func ExampleClient_RunEvaluation() {
    	ctx := context.Background()
    	// This snippet has been automatically generated and should be regarded as a code template only.
    	// It will require modifications to work:
    	// - It may require correct/in-range values for request initialization.
    	// - It may require specifying regional endpoints when creating the service client as shown in:
    	//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
    	c, err := workloadmanager.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/workloadmanager/latest/apiv1.html#cloud_google_com_go_workloadmanager_apiv1_Client_NewClient(ctx)
    	if err != nil {
    		// TODO: Handle error.
    	}
    	defer c.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/workloadmanager/latest/apiv1.html#cloud_google_com_go_workloadmanager_apiv1_Client_Close()

    	req := &workloadmanagerpb.RunEvaluationRequest{
    		// TODO: Fill request struct fields.
    		// See https://pkg.go.dev/cloud.google.com/go/workloadmanager/apiv1/workloadmanagerpb#RunEvaluationRequest.
    	}
    	op, err := c.RunEvaluation(ctx, req)
    	if err != nil {
    		// TODO: Handle error.
    	}

    	resp, err := op.Wait(ctx)
    	if err != nil {
    		// TODO: Handle error.
    	}
    	// TODO: Use resp.
    	_ = resp
    }

    func ExampleClient_UpdateEvaluation() {
    	ctx := context.Background()
    	// This snippet has been automatically generated and should be regarded as a code template only.
    	// It will require modifications to work:
    	// - It may require correct/in-range values for request initialization.
    	// - It may require specifying regional endpoints when creating the service client as shown in:
    	//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
    	c, err := workloadmanager.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/workloadmanager/latest/apiv1.html#cloud_google_com_go_workloadmanager_apiv1_Client_NewClient(ctx)
    	if err != nil {
    		// TODO: Handle error.
    	}
    	defer c.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/workloadmanager/latest/apiv1.html#cloud_google_com_go_workloadmanager_apiv1_Client_Close()

    	req := &workloadmanagerpb.UpdateEvaluationRequest{
    		// TODO: Fill request struct fields.
    		// See https://pkg.go.dev/cloud.google.com/go/workloadmanager/apiv1/workloadmanagerpb#UpdateEvaluationRequest.
    	}
    	op, err := c.UpdateEvaluation(ctx, req)
    	if err != nil {
    		// TODO: Handle error.
    	}

    	resp, err := op.Wait(ctx)
    	if err != nil {
    		// TODO: Handle error.
    	}
    	// TODO: Use resp.
    	_ = resp
    }

    func ExampleClient_GetLocation() {
    	ctx := context.Background()
    	// This snippet has been automatically generated and should be regarded as a code template only.
    	// It will require modifications to work:
    	// - It may require correct/in-range values for request initialization.
    	// - It may require specifying regional endpoints when creating the service client as shown in:
    	//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
    	c, err := workloadmanager.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/workloadmanager/latest/apiv1.html#cloud_google_com_go_workloadmanager_apiv1_Client_NewClient(ctx)
    	if err != nil {
    		// TODO: Handle error.
    	}
    	defer c.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/workloadmanager/latest/apiv1.html#cloud_google_com_go_workloadmanager_apiv1_Client_Close()

    	req := &locationpb.GetLocationRequest{
    		// TODO: Fill request struct fields.
    		// See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/location#GetLocationRequest.
    	}
    	resp, err := c.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/workloadmanager/latest/apiv1.html#cloud_google_com_go_workloadmanager_apiv1_Client_GetLocation(ctx, req)
    	if err != nil {
    		// TODO: Handle error.
    	}
    	// TODO: Use resp.
    	_ = resp
    }

    func ExampleClient_ListLocations() {
    	ctx := context.Background()
    	// This snippet has been automatically generated and should be regarded as a code template only.
    	// It will require modifications to work:
    	// - It may require correct/in-range values for request initialization.
    	// - It may require specifying regional endpoints when creating the service client as shown in:
    	//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
    	c, err := workloadmanager.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/workloadmanager/latest/apiv1.html#cloud_google_com_go_workloadmanager_apiv1_Client_NewClient(ctx)
    	if err != nil {
    		// TODO: Handle error.
    	}
    	defer c.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/workloadmanager/latest/apiv1.html#cloud_google_com_go_workloadmanager_apiv1_Client_Close()

    	req := &locationpb.ListLocationsRequest{
    		// TODO: Fill request struct fields.
    		// See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/location#ListLocationsRequest.
    	}
    	it := c.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/workloadmanager/latest/apiv1.html#cloud_google_com_go_workloadmanager_apiv1_Client_ListLocations(ctx, req)
    	for {
    		resp, err := it.Next()
    		if err == iterator.Done {
    			break
    		}
    		if err != nil {
    			// TODO: Handle error.
    		}
    		// TODO: Use resp.
    		_ = resp

    		// If you need to access the underlying RPC response,
    		// you can do so by casting the `Response` as below.
    		// Otherwise, remove this line. Only populated after
    		// first call to Next(). Not safe for concurrent access.
    		_ = it.Response.(*locationpb.ListLocationsResponse)
    	}
    }

    func ExampleClient_CancelOperation() {
    	ctx := context.Background()
    	// This snippet has been automatically generated and should be regarded as a code template only.
    	// It will require modifications to work:
    	// - It may require correct/in-range values for request initialization.
    	// - It may require specifying regional endpoints when creating the service client as shown in:
    	//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
    	c, err := workloadmanager.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/workloadmanager/latest/apiv1.html#cloud_google_com_go_workloadmanager_apiv1_Client_NewClient(ctx)
    	if err != nil {
    		// TODO: Handle error.
    	}
    	defer c.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/workloadmanager/latest/apiv1.html#cloud_google_com_go_workloadmanager_apiv1_Client_Close()

    	req := &longrunningpb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/longrunning/latest/autogen/longrunningpb.html#cloud_google_com_go_longrunning_autogen_longrunningpb_CancelOperationRequest{
    		// TODO: Fill request struct fields.
    		// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#CancelOperationRequest.
    	}
    	err = c.CancelOperation(ctx, req)
    	if err != nil {
    		// TODO: Handle error.
    	}
    }

    func ExampleClient_DeleteOperation() {
    	ctx := context.Background()
    	// This snippet has been automatically generated and should be regarded as a code template only.
    	// It will require modifications to work:
    	// - It may require correct/in-range values for request initialization.
    	// - It may require specifying regional endpoints when creating the service client as shown in:
    	//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
    	c, err := workloadmanager.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/workloadmanager/latest/apiv1.html#cloud_google_com_go_workloadmanager_apiv1_Client_NewClient(ctx)
    	if err != nil {
    		// TODO: Handle error.
    	}
    	defer c.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/workloadmanager/latest/apiv1.html#cloud_google_com_go_workloadmanager_apiv1_Client_Close()

    	req := &longrunningpb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/longrunning/latest/autogen/longrunningpb.html#cloud_google_com_go_longrunning_autogen_longrunningpb_DeleteOperationRequest{
    		// TODO: Fill request struct fields.
    		// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#DeleteOperationRequest.
    	}
    	err = c.DeleteOperation(ctx, req)
    	if err != nil {
    		// TODO: Handle error.
    	}
    }

    func ExampleClient_GetOperation() {
    	ctx := context.Background()
    	// This snippet has been automatically generated and should be regarded as a code template only.
    	// It will require modifications to work:
    	// - It may require correct/in-range values for request initialization.
    	// - It may require specifying regional endpoints when creating the service client as shown in:
    	//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
    	c, err := workloadmanager.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/workloadmanager/latest/apiv1.html#cloud_google_com_go_workloadmanager_apiv1_Client_NewClient(ctx)
    	if err != nil {
    		// TODO: Handle error.
    	}
    	defer c.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/workloadmanager/latest/apiv1.html#cloud_google_com_go_workloadmanager_apiv1_Client_Close()

    	req := &longrunningpb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/longrunning/latest/autogen/longrunningpb.html#cloud_google_com_go_longrunning_autogen_longrunningpb_GetOperationRequest{
    		// TODO: Fill request struct fields.
    		// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#GetOperationRequest.
    	}
    	resp, err := c.GetOperation(ctx, req)
    	if err != nil {
    		// TODO: Handle error.
    	}
    	// TODO: Use resp.
    	_ = resp
    }

    func ExampleClient_ListOperations() {
    	ctx := context.Background()
    	// This snippet has been automatically generated and should be regarded as a code template only.
    	// It will require modifications to work:
    	// - It may require correct/in-range values for request initialization.
    	// - It may require specifying regional endpoints when creating the service client as shown in:
    	//   https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
    	c, err := workloadmanager.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/workloadmanager/latest/apiv1.html#cloud_google_com_go_workloadmanager_apiv1_Client_NewClient(ctx)
    	if err != nil {
    		// TODO: Handle error.
    	}
    	defer c.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/workloadmanager/latest/apiv1.html#cloud_google_com_go_workloadmanager_apiv1_Client_Close()

    	req := &longrunningpb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/longrunning/latest/autogen/longrunningpb.html#cloud_google_com_go_longrunning_autogen_longrunningpb_ListOperationsRequest{
    		// TODO: Fill request struct fields.
    		// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#ListOperationsRequest.
    	}
    	it := c.ListOperations(ctx, req)
    	for {
    		resp, err := it.Next()
    		if err == iterator.Done {
    			break
    		}
    		if err != nil {
    			// TODO: Handle error.
    		}
    		// TODO: Use resp.
    		_ = resp

    		// If you need to access the underlying RPC response,
    		// you can do so by casting the `Response` as below.
    		// Otherwise, remove this line. Only populated after
    		// first call to Next(). Not safe for concurrent access.
    		_ = it.Response.(*longrunningpb.https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/longrunning/latest/autogen/longrunningpb.html#cloud_google_com_go_longrunning_autogen_longrunningpb_ListOperationsResponse)
    	}
    }

### Java

    import com.google.cloud.workloadmanager.v1.https://docs.cloud.google.com/java/docs/reference/google-cloud-workloadmanager/latest/com.google.cloud.workloadmanager.v1.Evaluation.html;
    import com.google.cloud.workloadmanager.v1.https://docs.cloud.google.com/java/docs/reference/google-cloud-workloadmanager/latest/com.google.cloud.workloadmanager.v1.ListEvaluationsRequest.html;
    import com.google.cloud.workloadmanager.v1.https://docs.cloud.google.com/java/docs/reference/google-cloud-workloadmanager/latest/com.google.cloud.workloadmanager.v1.LocationName.html;
    import com.google.cloud.workloadmanager.v1.https://docs.cloud.google.com/java/docs/reference/google-cloud-workloadmanager/latest/com.google.cloud.workloadmanager.v1.WorkloadManagerClient.html;

    public class SyncListEvaluations {

      public static void main(String[] args) throws Exception {
        syncListEvaluations();
      }

      public static void syncListEvaluations() throws Exception {
        // This snippet has been automatically generated and should be regarded as a code template only.
        // It will require modifications to work:
        // - It may require correct/in-range values for request initialization.
        // - It may require specifying regional endpoints when creating the service client as shown in
        // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        try (https://docs.cloud.google.com/java/docs/reference/google-cloud-workloadmanager/latest/com.google.cloud.workloadmanager.v1.WorkloadManagerClient.html workloadManagerClient = https://docs.cloud.google.com/java/docs/reference/google-cloud-workloadmanager/latest/com.google.cloud.workloadmanager.v1.WorkloadManagerClient.html.create()) {
          https://docs.cloud.google.com/java/docs/reference/google-cloud-workloadmanager/latest/com.google.cloud.workloadmanager.v1.ListEvaluationsRequest.html request =
              https://docs.cloud.google.com/java/docs/reference/google-cloud-workloadmanager/latest/com.google.cloud.workloadmanager.v1.ListEvaluationsRequest.html.newBuilder()
                  .setParent(https://docs.cloud.google.com/java/docs/reference/google-cloud-workloadmanager/latest/com.google.cloud.workloadmanager.v1.LocationName.html.of("[PROJECT]", "[LOCATION]").toString())
                  .setPageSize(883849137)
                  .setPageToken("pageToken873572522")
                  .setFilter("filter-1274492040")
                  .setOrderBy("orderBy-1207110587")
                  .build();
          for (https://docs.cloud.google.com/java/docs/reference/google-cloud-workloadmanager/latest/com.google.cloud.workloadmanager.v1.Evaluation.html element : workloadManagerClient.listEvaluations(request).iterateAll()) {
            // doThingsWith(element);
          }
        }
      }
    }

### Node.js

    /**
     * This snippet has been automatically generated and should be regarded as a code template only.
     * It will require modifications to work.
     * It may require correct/in-range values for request initialization.
     * TODO(developer): Uncomment these variables before running the sample.
     */
    /**
     *  Required. Parent value for ListEvaluationsRequest.
     */
    // const parent = 'abc123'
    /**
     *  Requested page size. Server may return fewer items than requested.
     *  If unspecified, server will pick an appropriate default.
     */
    // const pageSize = 1234
    /**
     *  A token identifying a page of results the server should return.
     */
    // const pageToken = 'abc123'
    /**
     *  Filter to be applied when listing the evaluation results.
     */
    // const filter = 'abc123'
    /**
     *  Hint for how to order the results.
     */
    // const orderBy = 'abc123'

    // Imports the Workloadmanager library
    const {WorkloadManagerClient} = require('https://docs.cloud.google.com/nodejs/docs/reference/workloadmanager/latest/overview.html').v1;

    // Instantiates a client
    const workloadmanagerClient = new https://docs.cloud.google.com/nodejs/docs/reference/workloadmanager/latest/overview.html();

    async function callListEvaluations() {
      // Construct request
      const request = {
        parent,
      };

      // Run request
      const iterable = workloadmanagerClient.https://docs.cloud.google.com/nodejs/docs/reference/workloadmanager/latest/workloadmanager/v1.workloadmanagerclient.html(request);
      for await (const response of iterable) {
          console.log(response);
      }
    }

    callListEvaluations();

### PHP

    use Google\ApiCore\ApiException;
    use Google\ApiCore\PagedListResponse;
    use Google\Cloud\WorkloadManager\V1\Client\WorkloadManagerClient;
    use Google\Cloud\WorkloadManager\V1\Evaluation;
    use Google\Cloud\WorkloadManager\V1\ListEvaluationsRequest;

    /**
     * Lists Evaluations in a given project and location.
     *
     * @param string $formattedParent Parent value for ListEvaluationsRequest. Please see
     *                                {@see WorkloadManagerClient::locationName()} for help formatting this field.
     */
    function list_evaluations_sample(string $formattedParent): void
    {
        // Create a client.
        $workloadManagerClient = new WorkloadManagerClient();

        // Prepare the request message.
        $request = (new ListEvaluationsRequest())
            ->setParent($formattedParent);

        // Call the API and handle any network failures.
        try {
            /** @var PagedListResponse $response */
            $response = $workloadManagerClient->listEvaluations($request);

            /** @var Evaluation $element */
            foreach ($response as $element) {
                printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString());
            }
        } catch (ApiException $ex) {
            printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
        }
    }

    /**
     * Helper to execute the sample.
     *
     * This sample has been automatically generated and should be regarded as a code
     * template only. It will require modifications to work:
     *  - It may require correct/in-range values for request initialization.
     *  - It may require specifying regional endpoints when creating the service client,
     *    please see the apiEndpoint client configuration option for more details.
     */
    function callSample(): void
    {
        $formattedParent = WorkloadManagerClient::locationName('[PROJECT]', '[LOCATION]');

        list_evaluations_sample($formattedParent);
    }

### Python

    # This snippet has been automatically generated and should be regarded as a
    # code template only.
    # It will require modifications to work:
    # - It may require correct/in-range values for request initialization.
    # - It may require specifying regional endpoints when creating the service
    #   client as shown in:
    #   https://googleapis.dev/python/google-api-core/latest/client_options.html
    from google.cloud import https://docs.cloud.google.com/python/docs/reference/google-cloud-workloadmanager/latest


    def sample_list_evaluations():
        # Create a client
        client = https://docs.cloud.google.com/python/docs/reference/google-cloud-workloadmanager/latest.https://docs.cloud.google.com/python/docs/reference/google-cloud-workloadmanager/latest/google.cloud.workloadmanager_v1.services.workload_manager.WorkloadManagerClient.html()

        # Initialize request argument(s)
        request = https://docs.cloud.google.com/python/docs/reference/google-cloud-workloadmanager/latest.https://docs.cloud.google.com/python/docs/reference/google-cloud-workloadmanager/latest/google.cloud.workloadmanager_v1.types.ListEvaluationsRequest.html(
            parent="parent_value",
        )

        # Make the request
        page_result = client.https://docs.cloud.google.com/python/docs/reference/google-cloud-workloadmanager/latest/google.cloud.workloadmanager_v1.services.workload_manager.WorkloadManagerClient.html#google_cloud_workloadmanager_v1_services_workload_manager_WorkloadManagerClient_list_evaluations(request=request)

        # Handle the response
        for response in page_result:
            print(response)

### Ruby

    require "google/cloud/workload_manager/v1"

    ##
    # Snippet for the list_evaluations call in the WorkloadManager service
    #
    # This snippet has been automatically generated and should be regarded as a code
    # template only. It will require modifications to work:
    # - It may require correct/in-range values for request initialization.
    # - It may require specifying regional endpoints when creating the service
    # client as shown in https://cloud.google.com/ruby/docs/reference.
    #
    # This is an auto-generated example demonstrating basic usage of
    # Google::Cloud::WorkloadManager::V1::WorkloadManager::Client#list_evaluations.
    #
    def list_evaluations
      # Create a client object. The client can be reused for multiple calls.
      client = Google::Cloud::WorkloadManager::V1::WorkloadManager::Client.new

      # Create a request. To set request fields, pass in keyword arguments.
      request = Google::Cloud::WorkloadManager::V1::ListEvaluationsRequest.new

      # Call the list_evaluations method.
      result = client.list_evaluations request

      # The returned object is of type Gapic::PagedEnumerable. You can iterate
      # over elements, and API calls will be issued to fetch pages as needed.
      result.each do |item|
        # Each element is of type ::Google::Cloud::WorkloadManager::V1::Evaluation.
        p item
      end
    end

<br />

## Additional resources

### C++

The following list contains links to more resources related to the
client library for C++:

- [API reference](https://docs.cloud.google.com/cpp/docs/reference/workloadmanager/latest)
- [Client libraries best practices](https://docs.cloud.google.com/apis/docs/client-libraries-best-practices)
- [Issue tracker](https://github.com/googleapis/google-cloud-cpp/issues)
- [Source code](https://github.com/googleapis/google-cloud-cpp/tree/main/google/cloud/workloadmanager)

### C#

The following list contains links to more resources related to the
client library for C#:

- [API reference](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.WorkloadManager.V1/latest)
- [Client libraries best practices](https://docs.cloud.google.com/apis/docs/client-libraries-best-practices)
- [Issue tracker](https://github.com/googleapis/google-cloud-dotnet/issues)
- [Source code](https://github.com/googleapis/google-cloud-dotnet/tree/main/apis/Google.Cloud.WorkloadManager.V1)

### Go

The following list contains links to more resources related to the
client library for Go:

- [API reference](https://pkg.go.dev/cloud.google.com/go/workloadmanager)
- [Client libraries best practices](https://docs.cloud.google.com/apis/docs/client-libraries-best-practices)
- [Issue tracker](https://github.com/googleapis/google-cloud-go/issues)
- [Source code](https://github.com/googleapis/google-cloud-go/tree/main/workloadmanager)

### Java

The following list contains links to more resources related to the
client library for Java:

- [API reference](https://docs.cloud.google.com/java/docs/reference/google-cloud-workloadmanager/latest/overview)
- [Client libraries best practices](https://docs.cloud.google.com/apis/docs/client-libraries-best-practices)
- [Issue tracker](https://github.com/googleapis/google-cloud-java/issues)
- [Source code](https://github.com/googleapis/google-cloud-java/tree/main/java-workloadmanager)

### Node.js

The following list contains links to more resources related to the
client library for Node.js:

- [API reference](https://docs.cloud.google.com/nodejs/docs/reference/workloadmanager/latest)
- [Client libraries best practices](https://docs.cloud.google.com/apis/docs/client-libraries-best-practices)
- [Issue tracker](https://github.com/googleapis/google-cloud-node/issues)
- [Source code](https://github.com/googleapis/google-cloud-node/tree/main/packages/google-cloud-workloadmanager)

### PHP

The following list contains links to more resources related to the
client library for PHP:

- [API reference](https://docs.cloud.google.com/php/docs/reference/cloud-workloadmanager/latest)
- [Client libraries best practices](https://docs.cloud.google.com/apis/docs/client-libraries-best-practices)
- [Issue tracker](https://github.com/googleapis/google-cloud-php/issues)
- [Source code](https://github.com/googleapis/google-cloud-php/tree/main/WorkloadManager)

### Python

The following list contains links to more resources related to the
client library for Python:

- [API reference](https://docs.cloud.google.com/python/docs/reference/google-cloud-workloadmanager/latest)
- [Client libraries best practices](https://docs.cloud.google.com/apis/docs/client-libraries-best-practices)
- [Issue tracker](https://github.com/googleapis/google-cloud-python/issues)
- [Source code](https://github.com/googleapis/google-cloud-python/tree/main/packages/google-cloud-workloadmanager)

### Ruby

The following list contains links to more resources related to the
client library for Ruby:

- [API reference](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-workload_manager/latest)
- [Client libraries best practices](https://docs.cloud.google.com/apis/docs/client-libraries-best-practices)
- [Issue tracker](https://github.com/googleapis/google-cloud-ruby/issues)
- [Source code](https://github.com/googleapis/google-cloud-ruby/tree/main/google-cloud-workload_manager)

<br />