ProjectsLocationsNetworkconnectivityGlobalHubs
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
Accepts a proposal to attach a Network Connectivity Center spoke to a hub.
Deletes a Network Connectivity Center hub. (hubs.delete)
Gets details about a Network Connectivity Center hub. (hubs.get)
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)
Lists the Network Connectivity Center hubs associated with a given project.
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)
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)
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)
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)
GoogleLongrunningOperation
create(string $parent, Hub $postBody, array $optParams = [])
Creates a new Network Connectivity Center hub in the specified project.
(hubs.create)
GoogleLongrunningOperation
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)
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)
ListHubsResponse
listProjectsLocationsNetworkconnectivityGlobalHubs(string $parent, array $optParams = [])
Lists the Network Connectivity Center hubs associated with a given project.
(hubs.listProjectsLocationsNetworkconnectivityGlobalHubs)
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)
GoogleLongrunningOperation
patch(string $name, Hub $postBody, array $optParams = [])
Updates the description and/or labels of a Network Connectivity Center hub.
(hubs.patch)
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)
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)
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)