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.



3942
3943
3944
# File 'lib/google/apis/apihub_v1/classes.rb', line 3942

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)


3935
3936
3937
# File 'lib/google/apis/apihub_v1/classes.rb', line 3935

def display_name
  @display_name
end

#emailString

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

Returns:

  • (String)


3940
3941
3942
# File 'lib/google/apis/apihub_v1/classes.rb', line 3940

def email
  @email
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3947
3948
3949
3950
# File 'lib/google/apis/apihub_v1/classes.rb', line 3947

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