Class: Google::Apis::GmailpostmastertoolsV1beta1::Domain

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/gmailpostmastertools_v1beta1/classes.rb,
generated/google/apis/gmailpostmastertools_v1beta1/representations.rb,
generated/google/apis/gmailpostmastertools_v1beta1/representations.rb

Overview

A registered domain resource in the Postmaster API.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Domain

Returns a new instance of Domain.



77
78
79
# File 'generated/google/apis/gmailpostmastertools_v1beta1/classes.rb', line 77

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

Instance Attribute Details

#create_timeString

Timestamp when the user registered this domain. Assigned by the server. Corresponds to the JSON property createTime

Returns:

  • (String)


63
64
65
# File 'generated/google/apis/gmailpostmastertools_v1beta1/classes.rb', line 63

def create_time
  @create_time
end

#nameString

The resource name of the Domain. Domain names have the form domains/ domain_name`, where domain_name is the fully qualified domain name (i.e., mymail.mydomain.com). Corresponds to the JSON propertyname`

Returns:

  • (String)


70
71
72
# File 'generated/google/apis/gmailpostmastertools_v1beta1/classes.rb', line 70

def name
  @name
end

#permissionString

User’s permission for this domain. Assigned by the server. Corresponds to the JSON property permission

Returns:

  • (String)


75
76
77
# File 'generated/google/apis/gmailpostmastertools_v1beta1/classes.rb', line 75

def permission
  @permission
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



82
83
84
85
86
# File 'generated/google/apis/gmailpostmastertools_v1beta1/classes.rb', line 82

def update!(**args)
  @create_time = args[:create_time] if args.key?(:create_time)
  @name = args[:name] if args.key?(:name)
  @permission = args[:permission] if args.key?(:permission)
end