Class: Google::Apis::DnsV1beta2::Project

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/dns_v1beta2/classes.rb,
lib/google/apis/dns_v1beta2/representations.rb,
lib/google/apis/dns_v1beta2/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.



1268
1269
1270
# File 'lib/google/apis/dns_v1beta2/classes.rb', line 1268

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)


1250
1251
1252
# File 'lib/google/apis/dns_v1beta2/classes.rb', line 1250

def id
  @id
end

#kindString

Corresponds to the JSON property kind

Returns:

  • (String)


1255
1256
1257
# File 'lib/google/apis/dns_v1beta2/classes.rb', line 1255

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)


1261
1262
1263
# File 'lib/google/apis/dns_v1beta2/classes.rb', line 1261

def number
  @number
end

#quotaGoogle::Apis::DnsV1beta2::Quota

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



1266
1267
1268
# File 'lib/google/apis/dns_v1beta2/classes.rb', line 1266

def quota
  @quota
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1273
1274
1275
1276
1277
1278
# File 'lib/google/apis/dns_v1beta2/classes.rb', line 1273

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