Google Cloud Network Connectivity V1 Client - Class ListHubSpokesRequest (1.4.2)

Reference documentation and code samples for the Google Cloud Network Connectivity V1 Client class ListHubSpokesRequest.

The request for HubService.ListHubSpokes.

Generated from protobuf message google.cloud.networkconnectivity.v1.ListHubSpokesRequest

Namespace

Google \ Cloud \ NetworkConnectivity \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ name string

Required. The name of the hub.

↳ spoke_locations array

A list of locations. Specify one of the following: [global], a single region (for example, [us-central1]), or a combination of values (for example, [global, us-central1, us-west1]). If the spoke_locations field is populated, the list of results includes only spokes in the specified location. If the spoke_locations field is not populated, the list of results includes spokes in all locations.

↳ page_size int

The maximum number of results to return per page.

↳ page_token string

The page token.

↳ filter string

An expression that filters the list of results.

↳ order_by string

Sort the results by name or create_time.

↳ view int

The view of the spoke to return. The view that you use determines which spoke fields are included in the response.

getName

Required. The name of the hub.

Returns
TypeDescription
string

setName

Required. The name of the hub.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getSpokeLocations

A list of locations.

Specify one of the following: [global], a single region (for example, [us-central1]), or a combination of values (for example, [global, us-central1, us-west1]). If the spoke_locations field is populated, the list of results includes only spokes in the specified location. If the spoke_locations field is not populated, the list of results includes spokes in all locations.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setSpokeLocations

A list of locations.

Specify one of the following: [global], a single region (for example, [us-central1]), or a combination of values (for example, [global, us-central1, us-west1]). If the spoke_locations field is populated, the list of results includes only spokes in the specified location. If the spoke_locations field is not populated, the list of results includes spokes in all locations.

Parameter
NameDescription
var string[]
Returns
TypeDescription
$this

getPageSize

The maximum number of results to return per page.

Returns
TypeDescription
int

setPageSize

The maximum number of results to return per page.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getPageToken

The page token.

Returns
TypeDescription
string

setPageToken

The page token.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getFilter

An expression that filters the list of results.

Returns
TypeDescription
string

setFilter

An expression that filters the list of results.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getOrderBy

Sort the results by name or create_time.

Returns
TypeDescription
string

setOrderBy

Sort the results by name or create_time.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getView

The view of the spoke to return.

The view that you use determines which spoke fields are included in the response.

Returns
TypeDescription
int

setView

The view of the spoke to return.

The view that you use determines which spoke fields are included in the response.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

static::build

Parameter
NameDescription
name string

Required. The name of the hub. Please see Google\Cloud\NetworkConnectivity\V1\HubServiceClient::hubName() for help formatting this field.

Returns
TypeDescription
Google\Cloud\NetworkConnectivity\V1\ListHubSpokesRequest