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

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

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Project

Returns a new instance of Project.



1207
1208
1209
# File 'generated/google/apis/dns_v1beta2/classes.rb', line 1207

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)


1188
1189
1190
# File 'generated/google/apis/dns_v1beta2/classes.rb', line 1188

def id
  @id
end

#kindString

Identifies what kind of resource this is. Value: the fixed string "dns#project" . Corresponds to the JSON property kind

Returns:

  • (String)


1194
1195
1196
# File 'generated/google/apis/dns_v1beta2/classes.rb', line 1194

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)


1200
1201
1202
# File 'generated/google/apis/dns_v1beta2/classes.rb', line 1200

def number
  @number
end

#quotaGoogle::Apis::DnsV1beta2::Quota

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



1205
1206
1207
# File 'generated/google/apis/dns_v1beta2/classes.rb', line 1205

def quota
  @quota
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1212
1213
1214
1215
1216
1217
# File 'generated/google/apis/dns_v1beta2/classes.rb', line 1212

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