Class: Google::Apis::CloudsearchV1::MdbUserProto
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::MdbUserProto
- 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
An entity from the MDB namespace that is to be interpreted as a user. If using this for authorization, you should only do an exact match on the peer role against user_name.
Instance Attribute Summary collapse
-
#gaia_id ⇒ Fixnum
Do not set this field.
-
#user_name ⇒ String
Corresponds to the JSON property
userName
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ MdbUserProto
constructor
A new instance of MdbUserProto.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ MdbUserProto
Returns a new instance of MdbUserProto.
13407 13408 13409 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 13407 def initialize(**args) update!(**args) end |
Instance Attribute Details
#gaia_id ⇒ Fixnum
Do not set this field. Contact credentials-eng@ if you believe you absolutely
need to use it. This is the @prod.google.com Gaia ID that corresponds to the
MDB user, see go/authn-merge for details. This field may always be safely
ignored when performing an authorization check.
Corresponds to the JSON property gaiaId
13400 13401 13402 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 13400 def gaia_id @gaia_id end |
#user_name ⇒ String
Corresponds to the JSON property userName
13405 13406 13407 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 13405 def user_name @user_name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
13412 13413 13414 13415 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 13412 def update!(**args) @gaia_id = args[:gaia_id] if args.key?(:gaia_id) @user_name = args[:user_name] if args.key?(:user_name) end |