Class: Google::Apis::ApihubV1::GoogleCloudApihubV1Owner

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_nameString

Optional. The name of the owner. Corresponds to the JSON property displayName

Returns:

  • (String)


3717
3718
3719
# File 'lib/google/apis/apihub_v1/classes.rb', line 3717

def display_name
  @display_name
end

#emailString

Required. The email of the owner. Corresponds to the JSON property email

Returns:

  • (String)


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