Class: Google::Apis::CloudsearchV1::WrappedResourceKey
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::WrappedResourceKey
- 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 wrapper around a raw resource key. The secret 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
-
#resource_key ⇒ String
Resource key of the Drive item.
Instance Method Summary collapse
-
#initialize(**args) ⇒ WrappedResourceKey
constructor
A new instance of WrappedResourceKey.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ WrappedResourceKey
Returns a new instance of WrappedResourceKey.
21350 21351 21352 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 21350 def initialize(**args) update!(**args) end |
Instance Attribute Details
#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
21348 21349 21350 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 21348 def resource_key @resource_key end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
21355 21356 21357 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 21355 def update!(**args) @resource_key = args[:resource_key] if args.key?(:resource_key) end |