class ProjectsLocationsGroups extends Resource (View source)

The "groups" collection of methods.

Typical usage is:

 $migrationcenterService = new Google\Service\MigrationCenterAPI(...);
 $groups = $migrationcenterService->projects_locations_groups;

Methods

addAssets(string $group, AddAssetsToGroupRequest $postBody, array $optParams = [])

Adds assets to a group. (groups.addAssets)

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

Creates a new group in a given project and location. (groups.create)

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

Deletes a group. (groups.delete)

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

Gets the details of a group. (groups.get)

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

Lists all groups in a given project and location.

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

Updates the parameters of a group. (groups.patch)

removeAssets(string $group, RemoveAssetsFromGroupRequest $postBody, array $optParams = [])

Removes assets from a group. (groups.removeAssets)

Details

Operation addAssets(string $group, AddAssetsToGroupRequest $postBody, array $optParams = [])

Adds assets to a group. (groups.addAssets)

Parameters

string $group

Required. Group reference.

AddAssetsToGroupRequest $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

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

Creates a new group in a given project and location. (groups.create)

Parameters

string $parent

Required. Value for parent.

Group $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

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

Deletes a group. (groups.delete)

Parameters

string $name

Required. Name of the group resource.

array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

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

Gets the details of a group. (groups.get)

Parameters

string $name

Required. Name of the resource.

array $optParams

Optional parameters.

Return Value

Group

Exceptions

Exception

ListGroupsResponse listProjectsLocationsGroups(string $parent, array $optParams = [])

Lists all groups in a given project and location.

(groups.listProjectsLocationsGroups)

Parameters

string $parent

Required. Parent value for ListGroupsRequest.

array $optParams

Optional parameters.

Return Value

ListGroupsResponse

Exceptions

Exception

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

Updates the parameters of a group. (groups.patch)

Parameters

string $name

Output only. The name of the group.

Group $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

Operation removeAssets(string $group, RemoveAssetsFromGroupRequest $postBody, array $optParams = [])

Removes assets from a group. (groups.removeAssets)

Parameters

string $group

Required. Group reference.

RemoveAssetsFromGroupRequest $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception