Class: Google::Apis::TagmanagerV1::ContainerAccess

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

Overview

Defines the Google Tag Manager Container access permissions.

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

Returns a new instance of ContainerAccess



218
219
220
# File 'generated/google/apis/tagmanager_v1/classes.rb', line 218

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

Instance Attribute Details

#container_idString

GTM Container ID. Corresponds to the JSON property containerId

Returns:

  • (String)


210
211
212
# File 'generated/google/apis/tagmanager_v1/classes.rb', line 210

def container_id
  @container_id
end

#permissionArray<String>

List of Container permissions. Valid container permissions are: read, edit, delete, publish. Corresponds to the JSON property permission

Returns:

  • (Array<String>)


216
217
218
# File 'generated/google/apis/tagmanager_v1/classes.rb', line 216

def permission
  @permission
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



223
224
225
226
# File 'generated/google/apis/tagmanager_v1/classes.rb', line 223

def update!(**args)
  @container_id = args[:container_id] if args.key?(:container_id)
  @permission = args[:permission] if args.key?(:permission)
end