Class: Google::Apis::CloudresourcemanagerV3::Organization
- Inherits:
-
Object
- Object
- Google::Apis::CloudresourcemanagerV3::Organization
- 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
-
#create_time ⇒ String
Output only.
-
#delete_time ⇒ String
Output only.
-
#directory_customer_id ⇒ String
Immutable.
-
#display_name ⇒ String
Output only.
-
#etag ⇒ String
Output only.
-
#name ⇒ String
Output only.
-
#state ⇒ String
Output only.
-
#update_time ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Organization
constructor
A new instance of Organization.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Organization
Returns a new instance of Organization.
1222 1223 1224 |
# File 'lib/google/apis/cloudresourcemanager_v3/classes.rb', line 1222 def initialize(**args) update!(**args) end |
Instance Attribute Details
#create_time ⇒ String
Output only. Timestamp when the Organization was created.
Corresponds to the JSON property createTime
1178 1179 1180 |
# File 'lib/google/apis/cloudresourcemanager_v3/classes.rb', line 1178 def create_time @create_time end |
#delete_time ⇒ String
Output only. Timestamp when the Organization was requested for deletion.
Corresponds to the JSON property deleteTime
1183 1184 1185 |
# File 'lib/google/apis/cloudresourcemanager_v3/classes.rb', line 1183 def delete_time @delete_time end |
#directory_customer_id ⇒ String
Immutable. The G Suite / Workspace customer id used in the Directory API.
Corresponds to the JSON property directoryCustomerId
1188 1189 1190 |
# File 'lib/google/apis/cloudresourcemanager_v3/classes.rb', line 1188 def directory_customer_id @directory_customer_id end |
#display_name ⇒ String
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
1196 1197 1198 |
# File 'lib/google/apis/cloudresourcemanager_v3/classes.rb', line 1196 def display_name @display_name end |
#etag ⇒ String
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
1203 1204 1205 |
# File 'lib/google/apis/cloudresourcemanager_v3/classes.rb', line 1203 def etag @etag end |
#name ⇒ String
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
1210 1211 1212 |
# File 'lib/google/apis/cloudresourcemanager_v3/classes.rb', line 1210 def name @name end |
#state ⇒ String
Output only. The organization's current lifecycle state.
Corresponds to the JSON property state
1215 1216 1217 |
# File 'lib/google/apis/cloudresourcemanager_v3/classes.rb', line 1215 def state @state end |
#update_time ⇒ String
Output only. Timestamp when the Organization was last modified.
Corresponds to the JSON property updateTime
1220 1221 1222 |
# File 'lib/google/apis/cloudresourcemanager_v3/classes.rb', line 1220 def update_time @update_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 |
# File 'lib/google/apis/cloudresourcemanager_v3/classes.rb', line 1227 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 |