Class: Google::Apis::DfareportingV3_3::AccountPermission

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

Overview

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AccountPermission

Returns a new instance of AccountPermission.



258
259
260
# File 'generated/google/apis/dfareporting_v3_3/classes.rb', line 258

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>)


230
231
232
# File 'generated/google/apis/dfareporting_v3_3/classes.rb', line 230

def 
  @account_profiles
end

#idFixnum

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

Returns:

  • (Fixnum)


235
236
237
# File 'generated/google/apis/dfareporting_v3_3/classes.rb', line 235

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)


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

def kind
  @kind
end

#levelString

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

Returns:

  • (String)


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

def level
  @level
end

#nameString

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

Returns:

  • (String)


251
252
253
# File 'generated/google/apis/dfareporting_v3_3/classes.rb', line 251

def name
  @name
end

#permission_group_idFixnum

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

Returns:

  • (Fixnum)


256
257
258
# File 'generated/google/apis/dfareporting_v3_3/classes.rb', line 256

def permission_group_id
  @permission_group_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



263
264
265
266
267
268
269
270
# File 'generated/google/apis/dfareporting_v3_3/classes.rb', line 263

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