Class: Google::Apis::CloudsearchV1::ShareScope
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::ShareScope
- 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
-
#domain ⇒ String
If scope is DOMAIN, this field contains the dasher domain, for example "google.
-
#scope ⇒ String
The scope to which the content was shared.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ShareScope
constructor
A new instance of ShareScope.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ShareScope
Returns a new instance of ShareScope.
15432 15433 15434 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 15432 def initialize(**args) update!(**args) end |
Instance Attribute Details
#domain ⇒ String
If scope is DOMAIN, this field contains the dasher domain, for example "google.
com".
Corresponds to the JSON property domain
15425 15426 15427 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 15425 def domain @domain end |
#scope ⇒ String
The scope to which the content was shared.
Corresponds to the JSON property scope
15430 15431 15432 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 15430 def scope @scope end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
15437 15438 15439 15440 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 15437 def update!(**args) @domain = args[:domain] if args.key?(:domain) @scope = args[:scope] if args.key?(:scope) end |