Show / Hide Table of Contents

Class PropertiesResource.UserLinksResource

The "userLinks" collection of methods.

Inheritance
object
PropertiesResource.UserLinksResource
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.GoogleAnalyticsAdmin.v1alpha
Assembly: Google.Apis.GoogleAnalyticsAdmin.v1alpha.dll
Syntax
public class PropertiesResource.UserLinksResource

Constructors

UserLinksResource(IClientService)

Constructs a new resource.

Declaration
public UserLinksResource(IClientService service)
Parameters
Type Name Description
IClientService service

Methods

Audit(GoogleAnalyticsAdminV1alphaAuditUserLinksRequest, string)

Lists all user links on an account or property, including implicit ones that come from effective permissions granted by groups or organization admin roles. If a returned user link does not have direct permissions, they cannot be removed from the account or property directly with the DeleteUserLink command. They have to be removed from the group/etc that gives them permissions, which is currently only usable/discoverable in the GA or GMP UIs.

Declaration
public virtual PropertiesResource.UserLinksResource.AuditRequest Audit(GoogleAnalyticsAdminV1alphaAuditUserLinksRequest body, string parent)
Parameters
Type Name Description
GoogleAnalyticsAdminV1alphaAuditUserLinksRequest body

The body of the request.

string parent

Required. Example format: accounts/1234

Returns
Type Description
PropertiesResource.UserLinksResource.AuditRequest

BatchCreate(GoogleAnalyticsAdminV1alphaBatchCreateUserLinksRequest, string)

Creates information about multiple users' links to an account or property. This method is transactional. If any UserLink cannot be created, none of the UserLinks will be created.

Declaration
public virtual PropertiesResource.UserLinksResource.BatchCreateRequest BatchCreate(GoogleAnalyticsAdminV1alphaBatchCreateUserLinksRequest body, string parent)
Parameters
Type Name Description
GoogleAnalyticsAdminV1alphaBatchCreateUserLinksRequest body

The body of the request.

string parent

Required. The account or property that all user links in the request are for. This field is required. The parent field in the CreateUserLinkRequest messages must either be empty or match this field. Example format: accounts/1234

Returns
Type Description
PropertiesResource.UserLinksResource.BatchCreateRequest

BatchDelete(GoogleAnalyticsAdminV1alphaBatchDeleteUserLinksRequest, string)

Deletes information about multiple users' links to an account or property.

Declaration
public virtual PropertiesResource.UserLinksResource.BatchDeleteRequest BatchDelete(GoogleAnalyticsAdminV1alphaBatchDeleteUserLinksRequest body, string parent)
Parameters
Type Name Description
GoogleAnalyticsAdminV1alphaBatchDeleteUserLinksRequest body

The body of the request.

string parent

Required. The account or property that all user links in the request are for. The parent of all values for user link names to delete must match this field. Example format: accounts/1234

Returns
Type Description
PropertiesResource.UserLinksResource.BatchDeleteRequest

BatchGet(string)

Gets information about multiple users' links to an account or property.

Declaration
public virtual PropertiesResource.UserLinksResource.BatchGetRequest BatchGet(string parent)
Parameters
Type Name Description
string parent

Required. The account or property that all user links in the request are for. The parent of all provided values for the 'names' field must match this field. Example format: accounts/1234

Returns
Type Description
PropertiesResource.UserLinksResource.BatchGetRequest

BatchUpdate(GoogleAnalyticsAdminV1alphaBatchUpdateUserLinksRequest, string)

Updates information about multiple users' links to an account or property.

Declaration
public virtual PropertiesResource.UserLinksResource.BatchUpdateRequest BatchUpdate(GoogleAnalyticsAdminV1alphaBatchUpdateUserLinksRequest body, string parent)
Parameters
Type Name Description
GoogleAnalyticsAdminV1alphaBatchUpdateUserLinksRequest body

The body of the request.

string parent

Required. The account or property that all user links in the request are for. The parent field in the UpdateUserLinkRequest messages must either be empty or match this field. Example format: accounts/1234

Returns
Type Description
PropertiesResource.UserLinksResource.BatchUpdateRequest

Create(GoogleAnalyticsAdminV1alphaUserLink, string)

Creates a user link on an account or property. If the user with the specified email already has permissions on the account or property, then the user's existing permissions will be unioned with the permissions specified in the new UserLink.

Declaration
public virtual PropertiesResource.UserLinksResource.CreateRequest Create(GoogleAnalyticsAdminV1alphaUserLink body, string parent)
Parameters
Type Name Description
GoogleAnalyticsAdminV1alphaUserLink body

The body of the request.

string parent

Required. Example format: accounts/1234

Returns
Type Description
PropertiesResource.UserLinksResource.CreateRequest

Delete(string)

Deletes a user link on an account or property.

Declaration
public virtual PropertiesResource.UserLinksResource.DeleteRequest Delete(string name)
Parameters
Type Name Description
string name

Required. Example format: accounts/1234/userLinks/5678

Returns
Type Description
PropertiesResource.UserLinksResource.DeleteRequest

Get(string)

Gets information about a user's link to an account or property.

Declaration
public virtual PropertiesResource.UserLinksResource.GetRequest Get(string name)
Parameters
Type Name Description
string name

Required. Example format: accounts/1234/userLinks/5678

Returns
Type Description
PropertiesResource.UserLinksResource.GetRequest

List(string)

Lists all user links on an account or property.

Declaration
public virtual PropertiesResource.UserLinksResource.ListRequest List(string parent)
Parameters
Type Name Description
string parent

Required. Example format: accounts/1234

Returns
Type Description
PropertiesResource.UserLinksResource.ListRequest

Patch(GoogleAnalyticsAdminV1alphaUserLink, string)

Updates a user link on an account or property.

Declaration
public virtual PropertiesResource.UserLinksResource.PatchRequest Patch(GoogleAnalyticsAdminV1alphaUserLink body, string name)
Parameters
Type Name Description
GoogleAnalyticsAdminV1alphaUserLink body

The body of the request.

string name

Output only. Example format: properties/1234/userLinks/5678

Returns
Type Description
PropertiesResource.UserLinksResource.PatchRequest
In This Article
Back to top Generated by DocFX