Class: Google::Apis::ApigatewayV1::ApigatewayApiConfigFile

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

Overview

A lightweight description of a file.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ApigatewayApiConfigFile

Returns a new instance of ApigatewayApiConfigFile.



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

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

Instance Attribute Details

#contentsString

The bytes that constitute the file. Corresponds to the JSON property contents NOTE: Values are automatically base64 encoded/decoded in the client library.

Returns:

  • (String)


191
192
193
# File 'generated/google/apis/apigateway_v1/classes.rb', line 191

def contents
  @contents
end

#pathString

The file path (full or relative path). This is typically the path of the file when it is uploaded. Corresponds to the JSON property path

Returns:

  • (String)


197
198
199
# File 'generated/google/apis/apigateway_v1/classes.rb', line 197

def path
  @path
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



204
205
206
207
# File 'generated/google/apis/apigateway_v1/classes.rb', line 204

def update!(**args)
  @contents = args[:contents] if args.key?(:contents)
  @path = args[:path] if args.key?(:path)
end