Class: Google::Apis::SecuritypostureV1::PostureDeployment

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

Details for a Posture deployment on an organization, folder, or project. You can deploy at most one posture to each organization, folder, or project. The parent resource for a posture deployment is always the organization, even if the deployment applies to a folder or project.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PostureDeployment

Returns a new instance of PostureDeployment.



1330
1331
1332
# File 'lib/google/apis/securityposture_v1/classes.rb', line 1330

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

Instance Attribute Details

#annotationsHash<String,String>

Optional. The user-specified annotations for the posture deployment. 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>)


1244
1245
1246
# File 'lib/google/apis/securityposture_v1/classes.rb', line 1244

def annotations
  @annotations
end

#categoriesArray<String>

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

Returns:

  • (Array<String>)


1250
1251
1252
# File 'lib/google/apis/securityposture_v1/classes.rb', line 1250

def categories
  @categories
end

#create_timeString

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

Returns:

  • (String)


1255
1256
1257
# File 'lib/google/apis/securityposture_v1/classes.rb', line 1255

def create_time
  @create_time
end

#descriptionString

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

Returns:

  • (String)


1260
1261
1262
# File 'lib/google/apis/securityposture_v1/classes.rb', line 1260

def description
  @description
end

#desired_posture_idString

Output only. The posture ID that was specified for the deployment. Present only if the posture deployment is in a failed state. Corresponds to the JSON property desiredPostureId

Returns:

  • (String)


1266
1267
1268
# File 'lib/google/apis/securityposture_v1/classes.rb', line 1266

def desired_posture_id
  @desired_posture_id
end

#desired_posture_revision_idString

Output only. The revision ID of the posture that was specified for the deployment. Present only if the deployment is in a failed state. Corresponds to the JSON property desiredPostureRevisionId

Returns:

  • (String)


1272
1273
1274
# File 'lib/google/apis/securityposture_v1/classes.rb', line 1272

def desired_posture_revision_id
  @desired_posture_revision_id
end

#etagString

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

Returns:

  • (String)


1281
1282
1283
# File 'lib/google/apis/securityposture_v1/classes.rb', line 1281

def etag
  @etag
end

#failure_messageString

Output only. A description of why the posture deployment failed. Present only if the deployment is in a failed state. Corresponds to the JSON property failureMessage

Returns:

  • (String)


1287
1288
1289
# File 'lib/google/apis/securityposture_v1/classes.rb', line 1287

def failure_message
  @failure_message
end

#nameString

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

Returns:

  • (String)


1294
1295
1296
# File 'lib/google/apis/securityposture_v1/classes.rb', line 1294

def name
  @name
end

#posture_idString

Required. The posture used in the deployment, in the format organizations/ organization/locations/global/postures/posture_id`. Corresponds to the JSON propertypostureId`

Returns:

  • (String)


1300
1301
1302
# File 'lib/google/apis/securityposture_v1/classes.rb', line 1300

def posture_id
  @posture_id
end

#posture_revision_idString

Required. The revision ID of the posture used in the deployment. Corresponds to the JSON property postureRevisionId

Returns:

  • (String)


1305
1306
1307
# File 'lib/google/apis/securityposture_v1/classes.rb', line 1305

def posture_revision_id
  @posture_revision_id
end

#reconcilingBoolean Also known as: reconciling?

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

Returns:

  • (Boolean)


1310
1311
1312
# File 'lib/google/apis/securityposture_v1/classes.rb', line 1310

def reconciling
  @reconciling
end

#stateString

Output only. The state of the posture deployment. Corresponds to the JSON property state

Returns:

  • (String)


1316
1317
1318
# File 'lib/google/apis/securityposture_v1/classes.rb', line 1316

def state
  @state
end

#target_resourceString

Required. The organization, folder, or project where the posture is deployed. Uses one of the following formats: * organizations/organization_number* ` folders/`folder_number * projects/project_number` Corresponds to the JSON propertytargetResource`

Returns:

  • (String)


1323
1324
1325
# File 'lib/google/apis/securityposture_v1/classes.rb', line 1323

def target_resource
  @target_resource
end

#update_timeString

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

Returns:

  • (String)


1328
1329
1330
# File 'lib/google/apis/securityposture_v1/classes.rb', line 1328

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
# File 'lib/google/apis/securityposture_v1/classes.rb', line 1335

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)
  @desired_posture_id = args[:desired_posture_id] if args.key?(:desired_posture_id)
  @desired_posture_revision_id = args[:desired_posture_revision_id] if args.key?(:desired_posture_revision_id)
  @etag = args[:etag] if args.key?(:etag)
  @failure_message = args[:failure_message] if args.key?(:failure_message)
  @name = args[:name] if args.key?(:name)
  @posture_id = args[:posture_id] if args.key?(:posture_id)
  @posture_revision_id = args[:posture_revision_id] if args.key?(:posture_revision_id)
  @reconciling = args[:reconciling] if args.key?(:reconciling)
  @state = args[:state] if args.key?(:state)
  @target_resource = args[:target_resource] if args.key?(:target_resource)
  @update_time = args[:update_time] if args.key?(:update_time)
end