Class: Google::Apis::ApihubV1::GoogleCloudApihubV1Owner
- Inherits:
-
Object
- Object
- Google::Apis::ApihubV1::GoogleCloudApihubV1Owner
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/apihub_v1/classes.rb,
lib/google/apis/apihub_v1/representations.rb,
lib/google/apis/apihub_v1/representations.rb
Overview
Owner details.
Instance Attribute Summary collapse
-
#display_name ⇒ String
Optional.
-
#email ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudApihubV1Owner
constructor
A new instance of GoogleCloudApihubV1Owner.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudApihubV1Owner
Returns a new instance of GoogleCloudApihubV1Owner.
3724 3725 3726 |
# File 'lib/google/apis/apihub_v1/classes.rb', line 3724 def initialize(**args) update!(**args) end |
Instance Attribute Details
#display_name ⇒ String
Optional. The name of the owner.
Corresponds to the JSON property displayName
3717 3718 3719 |
# File 'lib/google/apis/apihub_v1/classes.rb', line 3717 def display_name @display_name end |
#email ⇒ String
Required. The email of the owner.
Corresponds to the JSON property email
3722 3723 3724 |
# File 'lib/google/apis/apihub_v1/classes.rb', line 3722 def email @email end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3729 3730 3731 3732 |
# File 'lib/google/apis/apihub_v1/classes.rb', line 3729 def update!(**args) @display_name = args[:display_name] if args.key?(:display_name) @email = args[:email] if args.key?(:email) end |