Class: Google::Apis::ServicemanagementV1::ConfigFile

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

Overview

Generic specification of a source configuration file

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ConfigFile

Returns a new instance of ConfigFile.



1104
1105
1106
# File 'lib/google/apis/servicemanagement_v1/classes.rb', line 1104

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

Instance Attribute Details

#file_contentsString

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

Returns:

  • (String)


1092
1093
1094
# File 'lib/google/apis/servicemanagement_v1/classes.rb', line 1092

def file_contents
  @file_contents
end

#file_pathString

The file name of the configuration file (full or relative path). Corresponds to the JSON property filePath

Returns:

  • (String)


1097
1098
1099
# File 'lib/google/apis/servicemanagement_v1/classes.rb', line 1097

def file_path
  @file_path
end

#file_typeString

The type of configuration file this represents. Corresponds to the JSON property fileType

Returns:

  • (String)


1102
1103
1104
# File 'lib/google/apis/servicemanagement_v1/classes.rb', line 1102

def file_type
  @file_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1109
1110
1111
1112
1113
# File 'lib/google/apis/servicemanagement_v1/classes.rb', line 1109

def update!(**args)
  @file_contents = args[:file_contents] if args.key?(:file_contents)
  @file_path = args[:file_path] if args.key?(:file_path)
  @file_type = args[:file_type] if args.key?(:file_type)
end