Class: Google::Apis::RunV1beta1::CustomResourceColumnDefinition

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

Overview

CustomResourceColumnDefinition specifies a column for server side printing.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ CustomResourceColumnDefinition

Returns a new instance of CustomResourceColumnDefinition.



72
73
74
# File 'generated/google/apis/run_v1beta1/classes.rb', line 72

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

Instance Attribute Details

#descriptionString

description is a human readable description of this column. +optional Corresponds to the JSON property description

Returns:

  • (String)


33
34
35
# File 'generated/google/apis/run_v1beta1/classes.rb', line 33

def description
  @description
end

#formatString

format is an optional OpenAPI type definition for this column. The 'name' format is applied to the primary identifier column to assist in clients identifying column is the resource name. See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data- types for more. +optional Corresponds to the JSON property format

Returns:

  • (String)


43
44
45
# File 'generated/google/apis/run_v1beta1/classes.rb', line 43

def format
  @format
end

#json_pathString

JSONPath is a simple JSON path, i.e. with array notation. Corresponds to the JSON property jsonPath

Returns:

  • (String)


48
49
50
# File 'generated/google/apis/run_v1beta1/classes.rb', line 48

def json_path
  @json_path
end

#nameString

name is a human readable name for the column. Corresponds to the JSON property name

Returns:

  • (String)


53
54
55
# File 'generated/google/apis/run_v1beta1/classes.rb', line 53

def name
  @name
end

#priorityFixnum

priority is an integer defining the relative importance of this column compared to others. Lower numbers are considered higher priority. Columns that may be omitted in limited space scenarios should be given a higher priority. +optional Corresponds to the JSON property priority

Returns:

  • (Fixnum)


61
62
63
# File 'generated/google/apis/run_v1beta1/classes.rb', line 61

def priority
  @priority
end

#typeString

type is an OpenAPI type definition for this column. See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data- types for more. Corresponds to the JSON property type

Returns:

  • (String)


70
71
72
# File 'generated/google/apis/run_v1beta1/classes.rb', line 70

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



77
78
79
80
81
82
83
84
# File 'generated/google/apis/run_v1beta1/classes.rb', line 77

def update!(**args)
  @description = args[:description] if args.key?(:description)
  @format = args[:format] if args.key?(:format)
  @json_path = args[:json_path] if args.key?(:json_path)
  @name = args[:name] if args.key?(:name)
  @priority = args[:priority] if args.key?(:priority)
  @type = args[:type] if args.key?(:type)
end