Class: Google::Apis::CesV1::AppVariableDeclaration

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

Overview

Defines the structure and metadata for a variable.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AppVariableDeclaration

Returns a new instance of AppVariableDeclaration.



830
831
832
# File 'lib/google/apis/ces_v1/classes.rb', line 830

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

Instance Attribute Details

#descriptionString

Required. The description of the variable. Corresponds to the JSON property description

Returns:

  • (String)


817
818
819
# File 'lib/google/apis/ces_v1/classes.rb', line 817

def description
  @description
end

#nameString

Required. The name of the variable. The name must start with a letter or underscore and contain only letters, numbers, or underscores. Corresponds to the JSON property name

Returns:

  • (String)


823
824
825
# File 'lib/google/apis/ces_v1/classes.rb', line 823

def name
  @name
end

#schemaGoogle::Apis::CesV1::Schema

Represents a select subset of an OpenAPI 3.0 schema object. Corresponds to the JSON property schema



828
829
830
# File 'lib/google/apis/ces_v1/classes.rb', line 828

def schema
  @schema
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



835
836
837
838
839
# File 'lib/google/apis/ces_v1/classes.rb', line 835

def update!(**args)
  @description = args[:description] if args.key?(:description)
  @name = args[:name] if args.key?(:name)
  @schema = args[:schema] if args.key?(:schema)
end