Class: Google::Apis::ApigeeV1::GoogleCloudApigeeV1DocumentationFile

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

Overview

Documentation file contents for a catalog item.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudApigeeV1DocumentationFile

Returns a new instance of GoogleCloudApigeeV1DocumentationFile.



4075
4076
4077
# File 'lib/google/apis/apigee_v1/classes.rb', line 4075

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

Instance Attribute Details

#contentsString

Required. The file contents. The max size is 4 MB. Corresponds to the JSON property contents NOTE: Values are automatically base64 encoded/decoded in the client library.

Returns:

  • (String)


4067
4068
4069
# File 'lib/google/apis/apigee_v1/classes.rb', line 4067

def contents
  @contents
end

#display_nameString

Required. A display name for the file, shown in the management UI. Max length is 255 characters. Corresponds to the JSON property displayName

Returns:

  • (String)


4073
4074
4075
# File 'lib/google/apis/apigee_v1/classes.rb', line 4073

def display_name
  @display_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4080
4081
4082
4083
# File 'lib/google/apis/apigee_v1/classes.rb', line 4080

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