Class: Google::Apis::CloudresourcemanagerV3::Organization

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

Overview

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Organization

Returns a new instance of Organization.



1103
1104
1105
# File 'lib/google/apis/cloudresourcemanager_v3/classes.rb', line 1103

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

Instance Attribute Details

#create_timeString

Output only. Timestamp when the Organization was created. Corresponds to the JSON property createTime

Returns:

  • (String)


1059
1060
1061
# File 'lib/google/apis/cloudresourcemanager_v3/classes.rb', line 1059

def create_time
  @create_time
end

#delete_timeString

Output only. Timestamp when the Organization was requested for deletion. Corresponds to the JSON property deleteTime

Returns:

  • (String)


1064
1065
1066
# File 'lib/google/apis/cloudresourcemanager_v3/classes.rb', line 1064

def delete_time
  @delete_time
end

#directory_customer_idString

Immutable. The G Suite / Workspace customer id used in the Directory API. Corresponds to the JSON property directoryCustomerId

Returns:

  • (String)


1069
1070
1071
# File 'lib/google/apis/cloudresourcemanager_v3/classes.rb', line 1069

def directory_customer_id
  @directory_customer_id
end

#display_nameString

Output only. A human-readable string that refers to the organization in the Google Cloud Console. 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 Google Workspace customer that owns the organization. Corresponds to the JSON property displayName

Returns:

  • (String)


1077
1078
1079
# File 'lib/google/apis/cloudresourcemanager_v3/classes.rb', line 1077

def display_name
  @display_name
end

#etagString

Output only. A checksum computed by the server based on the current value of the Organization resource. This may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding. Corresponds to the JSON property etag

Returns:

  • (String)


1084
1085
1086
# File 'lib/google/apis/cloudresourcemanager_v3/classes.rb', line 1084

def etag
  @etag
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)


1091
1092
1093
# File 'lib/google/apis/cloudresourcemanager_v3/classes.rb', line 1091

def name
  @name
end

#stateString

Output only. The organization's current lifecycle state. Corresponds to the JSON property state

Returns:

  • (String)


1096
1097
1098
# File 'lib/google/apis/cloudresourcemanager_v3/classes.rb', line 1096

def state
  @state
end

#update_timeString

Output only. Timestamp when the Organization was last modified. Corresponds to the JSON property updateTime

Returns:

  • (String)


1101
1102
1103
# File 'lib/google/apis/cloudresourcemanager_v3/classes.rb', line 1101

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
# File 'lib/google/apis/cloudresourcemanager_v3/classes.rb', line 1108

def update!(**args)
  @create_time = args[:create_time] if args.key?(:create_time)
  @delete_time = args[:delete_time] if args.key?(:delete_time)
  @directory_customer_id = args[:directory_customer_id] if args.key?(:directory_customer_id)
  @display_name = args[:display_name] if args.key?(:display_name)
  @etag = args[:etag] if args.key?(:etag)
  @name = args[:name] if args.key?(:name)
  @state = args[:state] if args.key?(:state)
  @update_time = args[:update_time] if args.key?(:update_time)
end