Class AccessBinding
A binding of a user to a set of roles.
Implements
Namespace: Google.Analytics.Admin.V1Alpha
Assembly: Google.Analytics.Admin.V1Alpha.dll
Syntax
public sealed class AccessBinding : IMessage<AccessBinding>, IEquatable<AccessBinding>, IDeepCloneable<AccessBinding>, IBufferMessage, IMessage
Constructors
AccessBinding()
Declaration
public AccessBinding()
AccessBinding(AccessBinding)
Declaration
public AccessBinding(AccessBinding other)
Parameters
Type | Name | Description |
---|---|---|
AccessBinding | other |
Properties
AccessBindingName
AccessBindingName-typed view over the Name resource name property.
Declaration
public AccessBindingName AccessBindingName { get; set; }
Property Value
Type | Description |
---|---|
AccessBindingName |
AccessTargetCase
Declaration
public AccessBinding.AccessTargetOneofCase AccessTargetCase { get; }
Property Value
Type | Description |
---|---|
AccessBinding.AccessTargetOneofCase |
HasUser
Gets whether the "user" field is set
Declaration
public bool HasUser { get; }
Property Value
Type | Description |
---|---|
bool |
Name
Output only. Resource name of this binding.
Format: accounts/{account}/accessBindings/{access_binding} or properties/{property}/accessBindings/{access_binding}
Example: "accounts/100/accessBindings/200"
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
string |
Roles
A list of roles for to grant to the parent resource.
Valid values: predefinedRoles/viewer predefinedRoles/analyst predefinedRoles/editor predefinedRoles/admin predefinedRoles/no-cost-data predefinedRoles/no-revenue-data
For users, if an empty list of roles is set, this AccessBinding will be deleted.
Declaration
public RepeatedField<string> Roles { get; }
Property Value
Type | Description |
---|---|
RepeatedField<string> |
User
If set, the email address of the user to set roles for. Format: "someuser@gmail.com"
Declaration
public string User { get; set; }
Property Value
Type | Description |
---|---|
string |