Class: Google::Apis::ScriptV1::GoogleAppsScriptTypeScope

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

Overview

Represents an authorization scope.

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

Returns a new instance of GoogleAppsScriptTypeScope



612
613
614
# File 'generated/google/apis/script_v1/classes.rb', line 612

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

Instance Attribute Details

#authorizerString

Who authorized the scope. Corresponds to the JSON property authorizer

Returns:

  • (String)


605
606
607
# File 'generated/google/apis/script_v1/classes.rb', line 605

def authorizer
  @authorizer
end

#nameString

The scope's identifying string. Corresponds to the JSON property name

Returns:

  • (String)


610
611
612
# File 'generated/google/apis/script_v1/classes.rb', line 610

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



617
618
619
620
# File 'generated/google/apis/script_v1/classes.rb', line 617

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