Class: Google::Apis::BloggerV3::BlogPerUserInfo

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/blogger_v3/classes.rb,
generated/google/apis/blogger_v3/representations.rb,
generated/google/apis/blogger_v3/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ BlogPerUserInfo

Returns a new instance of BlogPerUserInfo



269
270
271
# File 'generated/google/apis/blogger_v3/classes.rb', line 269

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#blog_idString

ID of the Blog resource Corresponds to the JSON property blogId

Returns:

  • (String)


241
242
243
# File 'generated/google/apis/blogger_v3/classes.rb', line 241

def blog_id
  @blog_id
end

#has_admin_accessBoolean Also known as: has_admin_access?

True if the user has Admin level access to the blog. Corresponds to the JSON property hasAdminAccess

Returns:

  • (Boolean)


246
247
248
# File 'generated/google/apis/blogger_v3/classes.rb', line 246

def has_admin_access
  @has_admin_access
end

#kindString

The kind of this entity. Always blogger#blogPerUserInfo Corresponds to the JSON property kind

Returns:

  • (String)


252
253
254
# File 'generated/google/apis/blogger_v3/classes.rb', line 252

def kind
  @kind
end

#photos_album_keyString

The Photo Album Key for the user when adding photos to the blog Corresponds to the JSON property photosAlbumKey

Returns:

  • (String)


257
258
259
# File 'generated/google/apis/blogger_v3/classes.rb', line 257

def photos_album_key
  @photos_album_key
end

#roleString

Access permissions that the user has for the blog (ADMIN, AUTHOR, or READER). Corresponds to the JSON property role

Returns:

  • (String)


262
263
264
# File 'generated/google/apis/blogger_v3/classes.rb', line 262

def role
  @role
end

#user_idString

ID of the User Corresponds to the JSON property userId

Returns:

  • (String)


267
268
269
# File 'generated/google/apis/blogger_v3/classes.rb', line 267

def user_id
  @user_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



274
275
276
277
278
279
280
281
# File 'generated/google/apis/blogger_v3/classes.rb', line 274

def update!(**args)
  @blog_id = args[:blog_id] if args.key?(:blog_id)
  @has_admin_access = args[:has_admin_access] if args.key?(:has_admin_access)
  @kind = args[:kind] if args.key?(:kind)
  @photos_album_key = args[:photos_album_key] if args.key?(:photos_album_key)
  @role = args[:role] if args.key?(:role)
  @user_id = args[:user_id] if args.key?(:user_id)
end