Class: Google::Apis::ApigatewayV1::ApigatewayApiConfigFile
- Inherits:
-
Object
- Object
- Google::Apis::ApigatewayV1::ApigatewayApiConfigFile
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/apigateway_v1/classes.rb,
lib/google/apis/apigateway_v1/representations.rb,
lib/google/apis/apigateway_v1/representations.rb
Overview
A lightweight description of a file.
Instance Attribute Summary collapse
-
#contents ⇒ String
The bytes that constitute the file.
-
#path ⇒ String
The file path (full or relative path).
Instance Method Summary collapse
-
#initialize(**args) ⇒ ApigatewayApiConfigFile
constructor
A new instance of ApigatewayApiConfigFile.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ApigatewayApiConfigFile
Returns a new instance of ApigatewayApiConfigFile.
199 200 201 |
# File 'lib/google/apis/apigateway_v1/classes.rb', line 199 def initialize(**args) update!(**args) end |
Instance Attribute Details
#contents ⇒ String
The bytes that constitute the file.
Corresponds to the JSON property contents
NOTE: Values are automatically base64 encoded/decoded in the client library.
191 192 193 |
# File 'lib/google/apis/apigateway_v1/classes.rb', line 191 def contents @contents end |
#path ⇒ String
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
197 198 199 |
# File 'lib/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 'lib/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 |