Show / Hide Table of Contents

Class AccountsResource.UserLinksResource

The "userLinks" collection of methods.

Inheritance
object
AccountsResource.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 AccountsResource.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 AccountsResource.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
AccountsResource.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 AccountsResource.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
AccountsResource.UserLinksResource.BatchCreateRequest

BatchDelete(GoogleAnalyticsAdminV1alphaBatchDeleteUserLinksRequest, string)

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

Declaration
public virtual AccountsResource.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
AccountsResource.UserLinksResource.BatchDeleteRequest

BatchGet(string)

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

Declaration
public virtual AccountsResource.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
AccountsResource.UserLinksResource.BatchGetRequest

BatchUpdate(GoogleAnalyticsAdminV1alphaBatchUpdateUserLinksRequest, string)

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

Declaration
public virtual AccountsResource.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
AccountsResource.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 AccountsResource.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
AccountsResource.UserLinksResource.CreateRequest

Delete(string)

Deletes a user link on an account or property.

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

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

Returns
Type Description
AccountsResource.UserLinksResource.DeleteRequest

Get(string)

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

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

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

Returns
Type Description
AccountsResource.UserLinksResource.GetRequest

List(string)

Lists all user links on an account or property.

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

Required. Example format: accounts/1234

Returns
Type Description
AccountsResource.UserLinksResource.ListRequest

Patch(GoogleAnalyticsAdminV1alphaUserLink, string)

Updates a user link on an account or property.

Declaration
public virtual AccountsResource.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
AccountsResource.UserLinksResource.PatchRequest
In This Article
Back to top Generated by DocFX