Class: Google::Apis::ApigatewayV1beta::ApigatewayApiConfigFile

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/apigateway_v1beta/classes.rb,
generated/google/apis/apigateway_v1beta/representations.rb,
generated/google/apis/apigateway_v1beta/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.



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

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)


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

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)


203
204
205
# File 'generated/google/apis/apigateway_v1beta/classes.rb', line 203

def path
  @path
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



210
211
212
213
# File 'generated/google/apis/apigateway_v1beta/classes.rb', line 210

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