Class: Google::Apis::DeploymentmanagerV2beta2::ImportFile

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable
Defined in:
generated/google/apis/deploymentmanager_v2beta2/classes.rb,
generated/google/apis/deploymentmanager_v2beta2/representations.rb,
generated/google/apis/deploymentmanager_v2beta2/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ ImportFile

Returns a new instance of ImportFile.



201
202
203
# File 'generated/google/apis/deploymentmanager_v2beta2/classes.rb', line 201

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

Instance Attribute Details

#contentString

The contents of the file. Corresponds to the JSON property content

Returns:

  • (String)


194
195
196
# File 'generated/google/apis/deploymentmanager_v2beta2/classes.rb', line 194

def content
  @content
end

#nameString

The name of the file. Corresponds to the JSON property name

Returns:

  • (String)


199
200
201
# File 'generated/google/apis/deploymentmanager_v2beta2/classes.rb', line 199

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



206
207
208
209
# File 'generated/google/apis/deploymentmanager_v2beta2/classes.rb', line 206

def update!(**args)
  @content = args[:content] unless args[:content].nil?
  @name = args[:name] unless args[:name].nil?
end