Class: Google::Apis::DnsV1::Project

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

Overview

A project resource. The project is a top level container for resources including Cloud DNS ManagedZones. Projects can be created only in the APIs console.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Project

Returns a new instance of Project.



1821
1822
1823
# File 'lib/google/apis/dns_v1/classes.rb', line 1821

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

Instance Attribute Details

#idString

User assigned unique identifier for the resource (output only). Corresponds to the JSON property id

Returns:

  • (String)


1803
1804
1805
# File 'lib/google/apis/dns_v1/classes.rb', line 1803

def id
  @id
end

#kindString

Corresponds to the JSON property kind

Returns:

  • (String)


1808
1809
1810
# File 'lib/google/apis/dns_v1/classes.rb', line 1808

def kind
  @kind
end

#numberFixnum

Unique numeric identifier for the resource; defined by the server (output only) . Corresponds to the JSON property number

Returns:

  • (Fixnum)


1814
1815
1816
# File 'lib/google/apis/dns_v1/classes.rb', line 1814

def number
  @number
end

#quotaGoogle::Apis::DnsV1::Quota

Limits associated with a Project. Corresponds to the JSON property quota



1819
1820
1821
# File 'lib/google/apis/dns_v1/classes.rb', line 1819

def quota
  @quota
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1826
1827
1828
1829
1830
1831
# File 'lib/google/apis/dns_v1/classes.rb', line 1826

def update!(**args)
  @id = args[:id] if args.key?(:id)
  @kind = args[:kind] if args.key?(:kind)
  @number = args[:number] if args.key?(:number)
  @quota = args[:quota] if args.key?(:quota)
end