Class: Google::Apis::SecuritypostureV1::Posture

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

Overview

The details of a posture.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Posture

Returns a new instance of Posture.



1212
1213
1214
# File 'lib/google/apis/securityposture_v1/classes.rb', line 1212

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

Instance Attribute Details

#annotationsHash<String,String>

Optional. The user-specified annotations for the posture. For details about the values you can use in an annotation, see AIP-148: Standard fields. Corresponds to the JSON property annotations

Returns:

  • (Hash<String,String>)


1151
1152
1153
# File 'lib/google/apis/securityposture_v1/classes.rb', line 1151

def annotations
  @annotations
end

#categoriesArray<String>

Output only. The categories that the posture belongs to, as determined by the Security Posture API. Corresponds to the JSON property categories

Returns:

  • (Array<String>)


1157
1158
1159
# File 'lib/google/apis/securityposture_v1/classes.rb', line 1157

def categories
  @categories
end

#create_timeString

Output only. The time at which the posture was created. Corresponds to the JSON property createTime

Returns:

  • (String)


1162
1163
1164
# File 'lib/google/apis/securityposture_v1/classes.rb', line 1162

def create_time
  @create_time
end

#descriptionString

Optional. A description of the posture. Corresponds to the JSON property description

Returns:

  • (String)


1167
1168
1169
# File 'lib/google/apis/securityposture_v1/classes.rb', line 1167

def description
  @description
end

#etagString

Optional. An opaque identifier for the current version of the posture at the specified revision_id. To prevent concurrent updates from overwriting each other, always provide the etag when you update a posture. You can also provide the etag when you delete a posture, to help ensure that you're deleting the intended version of the posture. Corresponds to the JSON property etag

Returns:

  • (String)


1176
1177
1178
# File 'lib/google/apis/securityposture_v1/classes.rb', line 1176

def etag
  @etag
end

#nameString

Required. Identifier. The name of the posture, in the format organizations/ organization/locations/global/postures/posture_id`. Corresponds to the JSON propertyname`

Returns:

  • (String)


1182
1183
1184
# File 'lib/google/apis/securityposture_v1/classes.rb', line 1182

def name
  @name
end

#policy_setsArray<Google::Apis::SecuritypostureV1::PolicySet>

Required. The PolicySet resources that the posture includes. Corresponds to the JSON property policySets



1187
1188
1189
# File 'lib/google/apis/securityposture_v1/classes.rb', line 1187

def policy_sets
  @policy_sets
end

#reconcilingBoolean Also known as: reconciling?

Output only. Whether the posture is in the process of being updated. Corresponds to the JSON property reconciling

Returns:

  • (Boolean)


1192
1193
1194
# File 'lib/google/apis/securityposture_v1/classes.rb', line 1192

def reconciling
  @reconciling
end

#revision_idString

Output only. Immutable. An opaque eight-character string that identifies the revision of the posture. A posture can have multiple revisions; when you deploy a posture, you deploy a specific revision of the posture. Corresponds to the JSON property revisionId

Returns:

  • (String)


1200
1201
1202
# File 'lib/google/apis/securityposture_v1/classes.rb', line 1200

def revision_id
  @revision_id
end

#stateString

Required. The state of the posture at the specified revision_id. Corresponds to the JSON property state

Returns:

  • (String)


1205
1206
1207
# File 'lib/google/apis/securityposture_v1/classes.rb', line 1205

def state
  @state
end

#update_timeString

Output only. The time at which the posture was last updated. Corresponds to the JSON property updateTime

Returns:

  • (String)


1210
1211
1212
# File 'lib/google/apis/securityposture_v1/classes.rb', line 1210

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
# File 'lib/google/apis/securityposture_v1/classes.rb', line 1217

def update!(**args)
  @annotations = args[:annotations] if args.key?(:annotations)
  @categories = args[:categories] if args.key?(:categories)
  @create_time = args[:create_time] if args.key?(:create_time)
  @description = args[:description] if args.key?(:description)
  @etag = args[:etag] if args.key?(:etag)
  @name = args[:name] if args.key?(:name)
  @policy_sets = args[:policy_sets] if args.key?(:policy_sets)
  @reconciling = args[:reconciling] if args.key?(:reconciling)
  @revision_id = args[:revision_id] if args.key?(:revision_id)
  @state = args[:state] if args.key?(:state)
  @update_time = args[:update_time] if args.key?(:update_time)
end