Class: Google::Apis::CloudsearchV1::ShareScope

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/cloudsearch_v1/classes.rb,
lib/google/apis/cloudsearch_v1/representations.rb,
lib/google/apis/cloudsearch_v1/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ShareScope

Returns a new instance of ShareScope.



18139
18140
18141
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 18139

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

Instance Attribute Details

#domainString

If scope is DOMAIN, this field contains the dasher domain, for example "google. com". Corresponds to the JSON property domain

Returns:

  • (String)


18132
18133
18134
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 18132

def domain
  @domain
end

#scopeString

The scope to which the content was shared. Corresponds to the JSON property scope

Returns:

  • (String)


18137
18138
18139
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 18137

def scope
  @scope
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



18144
18145
18146
18147
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 18144

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