Class: Google::Apis::CloudsearchV1::AuthorizedItemId
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::AuthorizedItemId
- 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
Overview
A combination of an identifier for a Drive resource (e.g. file, folder, or drive) and any secrets needed to access it. The secrets should never be logged, and this proto annotates those secret fields to ensure that they are not. Clients are encouraged to use this proto rather than defining their own, to ensure that secrets are correctly annotated.
Instance Attribute Summary collapse
-
#id ⇒ String
Serialized ID of the Drive resource Corresponds to the JSON property
id
. -
#resource_key ⇒ String
Resource key of the Drive item.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AuthorizedItemId
constructor
A new instance of AuthorizedItemId.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AuthorizedItemId
Returns a new instance of AuthorizedItemId.
4978 4979 4980 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 4978 def initialize(**args) update!(**args) end |
Instance Attribute Details
#id ⇒ String
Serialized ID of the Drive resource
Corresponds to the JSON property id
4969 4970 4971 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 4969 def id @id end |
#resource_key ⇒ String
Resource key of the Drive item. This field should be unset if, depending on
the context, the item does not have a resource key, or if none was specified.
This must never be logged.
Corresponds to the JSON property resourceKey
4976 4977 4978 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 4976 def resource_key @resource_key end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4983 4984 4985 4986 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 4983 def update!(**args) @id = args[:id] if args.key?(:id) @resource_key = args[:resource_key] if args.key?(:resource_key) end |