Class: Google::Apis::CloudresourcemanagerV1beta1::Organization

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

Overview

The root node in the resource hierarchy to which a particular entity's (e.g., company) resources belong.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Organization

Returns a new instance of Organization.



580
581
582
# File 'generated/google/apis/cloudresourcemanager_v1beta1/classes.rb', line 580

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

Instance Attribute Details

#creation_timeString

Timestamp when the Organization was created. Assigned by the server. Corresponds to the JSON property creationTime

Returns:

  • (String)


543
544
545
# File 'generated/google/apis/cloudresourcemanager_v1beta1/classes.rb', line 543

def creation_time
  @creation_time
end

#display_nameString

A human-readable string that refers to the Organization in the GCP Console UI. This string is set by the server and cannot be changed. The string will be set to the primary domain (for example, "google.com") of the G Suite customer that owns the organization. Corresponds to the JSON property displayName

Returns:

  • (String)


551
552
553
# File 'generated/google/apis/cloudresourcemanager_v1beta1/classes.rb', line 551

def display_name
  @display_name
end

#lifecycle_stateString

The organization's current lifecycle state. Assigned by the server. Corresponds to the JSON property lifecycleState

Returns:

  • (String)


556
557
558
# File 'generated/google/apis/cloudresourcemanager_v1beta1/classes.rb', line 556

def lifecycle_state
  @lifecycle_state
end

#nameString

Output only. The resource name of the organization. This is the organization's relative path in the API. Its format is "organizations/[organization_id]". For example, "organizations/1234". Corresponds to the JSON property name

Returns:

  • (String)


563
564
565
# File 'generated/google/apis/cloudresourcemanager_v1beta1/classes.rb', line 563

def name
  @name
end

#organization_idString

An immutable id for the Organization that is assigned on creation. This should be omitted when creating a new Organization. This field is read-only. Corresponds to the JSON property organizationId

Returns:

  • (String)


570
571
572
# File 'generated/google/apis/cloudresourcemanager_v1beta1/classes.rb', line 570

def organization_id
  @organization_id
end

#ownerGoogle::Apis::CloudresourcemanagerV1beta1::OrganizationOwner

The entity that owns an Organization. The lifetime of the Organization and all of its descendants are bound to the OrganizationOwner. If the OrganizationOwner is deleted, the Organization and all its descendants will be deleted. Corresponds to the JSON property owner



578
579
580
# File 'generated/google/apis/cloudresourcemanager_v1beta1/classes.rb', line 578

def owner
  @owner
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



585
586
587
588
589
590
591
592
# File 'generated/google/apis/cloudresourcemanager_v1beta1/classes.rb', line 585

def update!(**args)
  @creation_time = args[:creation_time] if args.key?(:creation_time)
  @display_name = args[:display_name] if args.key?(:display_name)
  @lifecycle_state = args[:lifecycle_state] if args.key?(:lifecycle_state)
  @name = args[:name] if args.key?(:name)
  @organization_id = args[:organization_id] if args.key?(:organization_id)
  @owner = args[:owner] if args.key?(:owner)
end