Class: Google::Apis::OsconfigV1alpha::OsPolicyAssignmentOperationMetadata

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

Overview

OS policy assignment operation metadata provided by OS policy assignment API methods that return long running operations.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ OsPolicyAssignmentOperationMetadata

Returns a new instance of OsPolicyAssignmentOperationMetadata.



1336
1337
1338
# File 'lib/google/apis/osconfig_v1alpha/classes.rb', line 1336

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

Instance Attribute Details

#api_methodString

The OS policy assignment API method. Corresponds to the JSON property apiMethod

Returns:

  • (String)


1312
1313
1314
# File 'lib/google/apis/osconfig_v1alpha/classes.rb', line 1312

def api_method
  @api_method
end

#os_policy_assignmentString

Reference to the OSPolicyAssignment API resource. Format: projects/ project_number/locations/location/osPolicyAssignments/ os_policy_assignment_id@revision_id` Corresponds to the JSON propertyosPolicyAssignment`

Returns:

  • (String)


1319
1320
1321
# File 'lib/google/apis/osconfig_v1alpha/classes.rb', line 1319

def os_policy_assignment
  @os_policy_assignment
end

#rollout_start_timeString

Rollout start time Corresponds to the JSON property rolloutStartTime

Returns:

  • (String)


1324
1325
1326
# File 'lib/google/apis/osconfig_v1alpha/classes.rb', line 1324

def rollout_start_time
  @rollout_start_time
end

#rollout_stateString

State of the rollout Corresponds to the JSON property rolloutState

Returns:

  • (String)


1329
1330
1331
# File 'lib/google/apis/osconfig_v1alpha/classes.rb', line 1329

def rollout_state
  @rollout_state
end

#rollout_update_timeString

Rollout update time Corresponds to the JSON property rolloutUpdateTime

Returns:

  • (String)


1334
1335
1336
# File 'lib/google/apis/osconfig_v1alpha/classes.rb', line 1334

def rollout_update_time
  @rollout_update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1341
1342
1343
1344
1345
1346
1347
# File 'lib/google/apis/osconfig_v1alpha/classes.rb', line 1341

def update!(**args)
  @api_method = args[:api_method] if args.key?(:api_method)
  @os_policy_assignment = args[:os_policy_assignment] if args.key?(:os_policy_assignment)
  @rollout_start_time = args[:rollout_start_time] if args.key?(:rollout_start_time)
  @rollout_state = args[:rollout_state] if args.key?(:rollout_state)
  @rollout_update_time = args[:rollout_update_time] if args.key?(:rollout_update_time)
end