class ProjectsLocationsNetworkconnectivityGlobalHubs extends Resource (View source)

The "hubs" collection of methods.

Typical usage is:

 $networkconnectivityService = new Google\Service\Networkconnectivity(...);
 $hubs = $networkconnectivityService->projects_locations_global_hubs;

Methods

acceptSpoke(string $name, AcceptHubSpokeRequest $postBody, array $optParams = [])

Accepts a proposal to attach a Network Connectivity Center spoke to a hub.

create(string $parent, Hub $postBody, array $optParams = [])

Creates a new Network Connectivity Center hub in the specified project.

delete(string $name, array $optParams = [])

Deletes a Network Connectivity Center hub. (hubs.delete)

Hub
get(string $name, array $optParams = [])

Gets details about a Network Connectivity Center hub. (hubs.get)

getIamPolicy(string $resource, array $optParams = [])

Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set. (hubs.getIamPolicy)

listProjectsLocationsNetworkconnectivityGlobalHubs(string $parent, array $optParams = [])

Lists the Network Connectivity Center hubs associated with a given project.

listSpokes(string $name, array $optParams = [])

Lists the Network Connectivity Center spokes associated with a specified hub and location. The list includes both spokes that are attached to the hub and spokes that have been proposed but not yet accepted. (hubs.listSpokes)

patch(string $name, Hub $postBody, array $optParams = [])

Updates the description and/or labels of a Network Connectivity Center hub.

rejectSpoke(string $name, RejectHubSpokeRequest $postBody, array $optParams = [])

Rejects a Network Connectivity Center spoke from being attached to a hub. If the spoke was previously in the ACTIVE state, it transitions to the INACTIVE state and is no longer able to connect to other spokes that are attached to the hub. (hubs.rejectSpoke)

setIamPolicy(string $resource, SetIamPolicyRequest $postBody, array $optParams = [])

Sets the access control policy on the specified resource. Replaces any existing policy. Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors. (hubs.setIamPolicy)

testIamPermissions(string $resource, TestIamPermissionsRequest $postBody, array $optParams = [])

Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a NOT_FOUND error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking.

Details

GoogleLongrunningOperation acceptSpoke(string $name, AcceptHubSpokeRequest $postBody, array $optParams = [])

Accepts a proposal to attach a Network Connectivity Center spoke to a hub.

(hubs.acceptSpoke)

Parameters

string $name

Required. The name of the hub into which to accept the spoke.

AcceptHubSpokeRequest $postBody
array $optParams

Optional parameters.

Return Value

GoogleLongrunningOperation

Exceptions

Exception

GoogleLongrunningOperation create(string $parent, Hub $postBody, array $optParams = [])

Creates a new Network Connectivity Center hub in the specified project.

(hubs.create)

Parameters

string $parent

Required. The parent resource.

Hub $postBody
array $optParams

Optional parameters.

Return Value

GoogleLongrunningOperation

Exceptions

Exception

GoogleLongrunningOperation delete(string $name, array $optParams = [])

Deletes a Network Connectivity Center hub. (hubs.delete)

Parameters

string $name

Required. The name of the hub to delete.

array $optParams

Optional parameters.

Return Value

GoogleLongrunningOperation

Exceptions

Exception

Hub get(string $name, array $optParams = [])

Gets details about a Network Connectivity Center hub. (hubs.get)

Parameters

string $name

Required. The name of the hub resource to get.

array $optParams

Optional parameters.

Return Value

Hub

Exceptions

Exception

Policy getIamPolicy(string $resource, array $optParams = [])

Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set. (hubs.getIamPolicy)

Parameters

string $resource

REQUIRED: The resource for which the policy is being requested. See Resource names for the appropriate value for this field.

array $optParams

Optional parameters.

Return Value

Policy

Exceptions

Exception

ListHubsResponse listProjectsLocationsNetworkconnectivityGlobalHubs(string $parent, array $optParams = [])

Lists the Network Connectivity Center hubs associated with a given project.

(hubs.listProjectsLocationsNetworkconnectivityGlobalHubs)

Parameters

string $parent

Required. The parent resource's name.

array $optParams

Optional parameters.

Return Value

ListHubsResponse

Exceptions

Exception

ListHubSpokesResponse listSpokes(string $name, array $optParams = [])

Lists the Network Connectivity Center spokes associated with a specified hub and location. The list includes both spokes that are attached to the hub and spokes that have been proposed but not yet accepted. (hubs.listSpokes)

Parameters

string $name

Required. The name of the hub.

array $optParams

Optional parameters.

Return Value

ListHubSpokesResponse

Exceptions

Exception

GoogleLongrunningOperation patch(string $name, Hub $postBody, array $optParams = [])

Updates the description and/or labels of a Network Connectivity Center hub.

(hubs.patch)

Parameters

string $name

Immutable. The name of the hub. Hub names must be unique. They use the following form: projects/{project_number}/locations/global/hubs/{hub_id}

Hub $postBody
array $optParams

Optional parameters.

Return Value

GoogleLongrunningOperation

Exceptions

Exception

GoogleLongrunningOperation rejectSpoke(string $name, RejectHubSpokeRequest $postBody, array $optParams = [])

Rejects a Network Connectivity Center spoke from being attached to a hub. If the spoke was previously in the ACTIVE state, it transitions to the INACTIVE state and is no longer able to connect to other spokes that are attached to the hub. (hubs.rejectSpoke)

Parameters

string $name

Required. The name of the hub from which to reject the spoke.

RejectHubSpokeRequest $postBody
array $optParams

Optional parameters.

Return Value

GoogleLongrunningOperation

Exceptions

Exception

Policy setIamPolicy(string $resource, SetIamPolicyRequest $postBody, array $optParams = [])

Sets the access control policy on the specified resource. Replaces any existing policy. Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors. (hubs.setIamPolicy)

Parameters

string $resource

REQUIRED: The resource for which the policy is being specified. See Resource names for the appropriate value for this field.

SetIamPolicyRequest $postBody
array $optParams

Optional parameters.

Return Value

Policy

Exceptions

Exception

TestIamPermissionsResponse testIamPermissions(string $resource, TestIamPermissionsRequest $postBody, array $optParams = [])

Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a NOT_FOUND error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking.

This operation may "fail open" without warning. (hubs.testIamPermissions)

Parameters

string $resource

REQUIRED: The resource for which the policy detail is being requested. See Resource names for the appropriate value for this field.

TestIamPermissionsRequest $postBody
array $optParams

Optional parameters.

Return Value

TestIamPermissionsResponse

Exceptions

Exception