Class: Google::Apis::DfareportingV2_1::AccountPermission

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

Overview

AccountPermissions contains information about a particular account permission. Some features of DCM require an account permission to be present in the account.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ AccountPermission

Returns a new instance of AccountPermission



303
304
305
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 303

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

Instance Attribute Details

#account_profilesArray<String>

Account profiles associated with this account permission. Possible values are:

  • "ACCOUNT_PROFILE_BASIC"
  • "ACCOUNT_PROFILE_STANDARD" Corresponds to the JSON property accountProfiles

Returns:

  • (Array<String>)


275
276
277
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 275

def 
  @account_profiles
end

#idString

ID of this account permission. Corresponds to the JSON property id

Returns:

  • (String)


280
281
282
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 280

def id
  @id
end

#kindString

Identifies what kind of resource this is. Value: the fixed string " dfareporting#accountPermission". Corresponds to the JSON property kind

Returns:

  • (String)


286
287
288
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 286

def kind
  @kind
end

#levelString

Administrative level required to enable this account permission. Corresponds to the JSON property level

Returns:

  • (String)


291
292
293
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 291

def level
  @level
end

#nameString

Name of this account permission. Corresponds to the JSON property name

Returns:

  • (String)


296
297
298
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 296

def name
  @name
end

#permission_group_idString

Permission group of this account permission. Corresponds to the JSON property permissionGroupId

Returns:

  • (String)


301
302
303
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 301

def permission_group_id
  @permission_group_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



308
309
310
311
312
313
314
315
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 308

def update!(**args)
  @account_profiles = args[:account_profiles] unless args[:account_profiles].nil?
  @id = args[:id] unless args[:id].nil?
  @kind = args[:kind] unless args[:kind].nil?
  @level = args[:level] unless args[:level].nil?
  @name = args[:name] unless args[:name].nil?
  @permission_group_id = args[:permission_group_id] unless args[:permission_group_id].nil?
end