Class ProjectsResource.LocationsResource.GroupsResource
The "groups" collection of methods.
Inherited Members
Namespace: Google.Apis.MigrationCenterAPI.v1alpha1
Assembly: Google.Apis.MigrationCenterAPI.v1alpha1.dll
Syntax
public class ProjectsResource.LocationsResource.GroupsResource
Constructors
GroupsResource(IClientService)
Constructs a new resource.
Declaration
public GroupsResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Methods
AddAssets(AddAssetsToGroupRequest, string)
Adds assets to a group.
Declaration
public virtual ProjectsResource.LocationsResource.GroupsResource.AddAssetsRequest AddAssets(AddAssetsToGroupRequest body, string group)
Parameters
Type | Name | Description |
---|---|---|
AddAssetsToGroupRequest | body | The body of the request. |
string | group | Required. Group reference. |
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.GroupsResource.AddAssetsRequest |
Create(Group, string)
Creates a new group in a given project and location.
Declaration
public virtual ProjectsResource.LocationsResource.GroupsResource.CreateRequest Create(Group body, string parent)
Parameters
Type | Name | Description |
---|---|---|
Group | body | The body of the request. |
string | parent | Required. Value for parent. |
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.GroupsResource.CreateRequest |
Delete(string)
Deletes a group.
Declaration
public virtual ProjectsResource.LocationsResource.GroupsResource.DeleteRequest Delete(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. Name of the group resource. |
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.GroupsResource.DeleteRequest |
Get(string)
Gets the details of a group.
Declaration
public virtual ProjectsResource.LocationsResource.GroupsResource.GetRequest Get(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. Name of the resource. |
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.GroupsResource.GetRequest |
List(string)
Lists all groups in a given project and location.
Declaration
public virtual ProjectsResource.LocationsResource.GroupsResource.ListRequest List(string parent)
Parameters
Type | Name | Description |
---|---|---|
string | parent | Required. Parent value for |
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.GroupsResource.ListRequest |
Patch(Group, string)
Updates the parameters of a group.
Declaration
public virtual ProjectsResource.LocationsResource.GroupsResource.PatchRequest Patch(Group body, string name)
Parameters
Type | Name | Description |
---|---|---|
Group | body | The body of the request. |
string | name | Output only. The name of the group. |
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.GroupsResource.PatchRequest |
RemoveAssets(RemoveAssetsFromGroupRequest, string)
Removes assets from a group.
Declaration
public virtual ProjectsResource.LocationsResource.GroupsResource.RemoveAssetsRequest RemoveAssets(RemoveAssetsFromGroupRequest body, string group)
Parameters
Type | Name | Description |
---|---|---|
RemoveAssetsFromGroupRequest | body | The body of the request. |
string | group | Required. Group reference. |
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.GroupsResource.RemoveAssetsRequest |