Class: Google::Apis::CloudbillingV1beta::UserContext

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

Overview

Additional context for personalization (e.g., user persona, role).

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ UserContext

Returns a new instance of UserContext.



2269
2270
2271
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 2269

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

Instance Attribute Details

#personaString

Optional. The user's persona (e.g., FinOps Manager, Developer). Corresponds to the JSON property persona

Returns:

  • (String)


2262
2263
2264
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 2262

def persona
  @persona
end

#roleString

Optional. The user's role (e.g., Billing Admin, Project Owner, etc.). Corresponds to the JSON property role

Returns:

  • (String)


2267
2268
2269
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 2267

def role
  @role
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2274
2275
2276
2277
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 2274

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