Class: Google::Compute::Data::InstGrouManaCurrActiApi

Inherits:
InstGrouManaCurrActi show all
Defined in:
lib/google/compute/property/instancegroupmanager_current_actions.rb

Overview

Manages a InstGrouManaCurrActi nested object Data is coming from the GCP API

Instance Attribute Summary

Attributes inherited from InstGrouManaCurrActi

#abandoning, #creating, #creating_without_retries, #deleting, #none, #recreating, #refreshing, #restarting

Instance Method Summary collapse

Methods inherited from InstGrouManaCurrActi

#<=>, #==, #to_json, #to_s

Constructor Details

#initialize(args) ⇒ InstGrouManaCurrActiApi

rubocop:disable Metrics/MethodLength



114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
# File 'lib/google/compute/property/instancegroupmanager_current_actions.rb', line 114

def initialize(args)
  @abandoning =
    Google::Compute::Property::Integer.api_munge(args['abandoning'])
  @creating =
    Google::Compute::Property::Integer.api_munge(args['creating'])
  @creating_without_retries =
    Google::Compute::Property::Integer.api_munge(
      args['creatingWithoutRetries']
    )
  @deleting =
    Google::Compute::Property::Integer.api_munge(args['deleting'])
  @none = Google::Compute::Property::Integer.api_munge(args['none'])
  @recreating =
    Google::Compute::Property::Integer.api_munge(args['recreating'])
  @refreshing =
    Google::Compute::Property::Integer.api_munge(args['refreshing'])
  @restarting =
    Google::Compute::Property::Integer.api_munge(args['restarting'])
end