Class: Google::Compute::Data::InstancTemplatPropertApi

Inherits:
InstancTemplatPropert show all
Defined in:
lib/google/compute/property/instancetemplate_properties.rb

Overview

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

Instance Attribute Summary

Attributes inherited from InstancTemplatPropert

#can_ip_forward, #description, #disks, #guest_accelerators, #machine_type, #metadata, #network_interfaces, #scheduling, #service_accounts, #tags

Instance Method Summary collapse

Methods inherited from InstancTemplatPropert

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

Constructor Details

#initialize(args) ⇒ InstancTemplatPropertApi

rubocop:disable Metrics/MethodLength



129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
# File 'lib/google/compute/property/instancetemplate_properties.rb', line 129

def initialize(args)
  @can_ip_forward =
    Google::Compute::Property::Boolean.api_munge(args['canIpForward'])
  @description =
    Google::Compute::Property::String.api_munge(args['description'])
  @disks =
    Google::Compute::Property::InstancTemplatDisksArray.api_munge(
      args['disks']
    )
  @machine_type = Google::Compute::Property::MachiTypeNameRef.api_munge(
    args['machineType']
  )
  @metadata =
    Google::Compute::Property::NameValues.api_munge(args['metadata'])
  @guest_accelerators =
    Google::Compute::Property::InstaTemplGuestAccelArray.api_munge(
      args['guestAccelerators']
    )
  @network_interfaces =
    Google::Compute::Property::InstaTemplNetwoInterArray.api_munge(
      args['networkInterfaces']
    )
  @scheduling =
    Google::Compute::Property::InstancTemplatSchedul.api_munge(
      args['scheduling']
    )
  @service_accounts =
    Google::Compute::Property::InstaTemplServiAccouArray.api_munge(
      args['serviceAccounts']
    )
  @tags = Google::Compute::Property::InstancTemplatTags.api_munge(
    args['tags']
  )
end