Class: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaCreateUserLinkRequest
- Inherits:
-
Object
- Object
- Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaCreateUserLinkRequest
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/analyticsadmin_v1alpha/classes.rb,
lib/google/apis/analyticsadmin_v1alpha/representations.rb,
lib/google/apis/analyticsadmin_v1alpha/representations.rb
Overview
Request message for CreateUserLink RPC. Users can have multiple email addresses associated with their Google account, and one of these email addresses is the "primary" email address. Any of the email addresses associated with a Google account may be used for a new UserLink, but the returned UserLink will always contain the "primary" email address. As a result, the input and output email address for this request may differ.
Instance Attribute Summary collapse
-
#notify_new_user ⇒ Boolean
(also: #notify_new_user?)
Optional.
-
#parent ⇒ String
Required.
-
#user_link ⇒ Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaUserLink
A resource message representing a user's permissions on an Account or Property resource.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleAnalyticsAdminV1alphaCreateUserLinkRequest
constructor
A new instance of GoogleAnalyticsAdminV1alphaCreateUserLinkRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleAnalyticsAdminV1alphaCreateUserLinkRequest
Returns a new instance of GoogleAnalyticsAdminV1alphaCreateUserLinkRequest.
2129 2130 2131 |
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 2129 def initialize(**args) update!(**args) end |
Instance Attribute Details
#notify_new_user ⇒ Boolean Also known as: notify_new_user?
Optional. If set, then email the new user notifying them that they've been
granted permissions to the resource.
Corresponds to the JSON property notifyNewUser
2115 2116 2117 |
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 2115 def notify_new_user @notify_new_user end |
#parent ⇒ String
Required. Example format: accounts/1234
Corresponds to the JSON property parent
2121 2122 2123 |
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 2121 def parent @parent end |
#user_link ⇒ Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaUserLink
A resource message representing a user's permissions on an Account or Property
resource.
Corresponds to the JSON property userLink
2127 2128 2129 |
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 2127 def user_link @user_link end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2134 2135 2136 2137 2138 |
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 2134 def update!(**args) @notify_new_user = args[:notify_new_user] if args.key?(:notify_new_user) @parent = args[:parent] if args.key?(:parent) @user_link = args[:user_link] if args.key?(:user_link) end |