Class: Google::Apis::RunV1beta1::JsonSchemaProps

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

JSONSchemaProps is a JSON-Schema following Specification Draft 4 (http://json-schema.org/).

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) ⇒ JsonSchemaProps

Returns a new instance of JsonSchemaProps



710
711
712
# File 'generated/google/apis/run_v1beta1/classes.rb', line 710

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

Instance Attribute Details

#additional_itemsGoogle::Apis::RunV1beta1::JsonSchemaPropsOrBool

JSONSchemaPropsOrBool represents JSONSchemaProps or a boolean value. Defaults to true for the boolean property. Corresponds to the JSON property additionalItems



521
522
523
# File 'generated/google/apis/run_v1beta1/classes.rb', line 521

def additional_items
  @additional_items
end

#additional_propertiesGoogle::Apis::RunV1beta1::JsonSchemaPropsOrBool

JSONSchemaPropsOrBool represents JSONSchemaProps or a boolean value. Defaults to true for the boolean property. Corresponds to the JSON property additionalProperties



527
528
529
# File 'generated/google/apis/run_v1beta1/classes.rb', line 527

def additional_properties
  @additional_properties
end

#all_ofArray<Google::Apis::RunV1beta1::JsonSchemaProps>

Corresponds to the JSON property allOf



532
533
534
# File 'generated/google/apis/run_v1beta1/classes.rb', line 532

def all_of
  @all_of
end

#any_ofArray<Google::Apis::RunV1beta1::JsonSchemaProps>

Corresponds to the JSON property anyOf



537
538
539
# File 'generated/google/apis/run_v1beta1/classes.rb', line 537

def any_of
  @any_of
end

#defaultGoogle::Apis::RunV1beta1::Json

JSON represents any valid JSON value. These types are supported: bool, int64, float64, string, []interface, map[string]interface and nil. Corresponds to the JSON property default



544
545
546
# File 'generated/google/apis/run_v1beta1/classes.rb', line 544

def default
  @default
end

#definitionsHash<String,Google::Apis::RunV1beta1::JsonSchemaProps>

Corresponds to the JSON property definitions



549
550
551
# File 'generated/google/apis/run_v1beta1/classes.rb', line 549

def definitions
  @definitions
end

#dependenciesHash<String,Google::Apis::RunV1beta1::JsonSchemaPropsOrStringArray>

Corresponds to the JSON property dependencies



554
555
556
# File 'generated/google/apis/run_v1beta1/classes.rb', line 554

def dependencies
  @dependencies
end

#descriptionString

Corresponds to the JSON property description

Returns:

  • (String)


559
560
561
# File 'generated/google/apis/run_v1beta1/classes.rb', line 559

def description
  @description
end

#enumArray<String>

Corresponds to the JSON property enum

Returns:

  • (Array<String>)


564
565
566
# File 'generated/google/apis/run_v1beta1/classes.rb', line 564

def enum
  @enum
end

#exampleGoogle::Apis::RunV1beta1::Json

JSON represents any valid JSON value. These types are supported: bool, int64, float64, string, []interface, map[string]interface and nil. Corresponds to the JSON property example



571
572
573
# File 'generated/google/apis/run_v1beta1/classes.rb', line 571

def example
  @example
end

#exclusive_maximumBoolean Also known as: exclusive_maximum?

Corresponds to the JSON property exclusiveMaximum

Returns:

  • (Boolean)


576
577
578
# File 'generated/google/apis/run_v1beta1/classes.rb', line 576

def exclusive_maximum
  @exclusive_maximum
end

#exclusive_minimumBoolean Also known as: exclusive_minimum?

Corresponds to the JSON property exclusiveMinimum

Returns:

  • (Boolean)


582
583
584
# File 'generated/google/apis/run_v1beta1/classes.rb', line 582

def exclusive_minimum
  @exclusive_minimum
end

#external_docsGoogle::Apis::RunV1beta1::ExternalDocumentation

ExternalDocumentation allows referencing an external resource for extended documentation. Corresponds to the JSON property externalDocs



589
590
591
# File 'generated/google/apis/run_v1beta1/classes.rb', line 589

def external_docs
  @external_docs
end

#formatString

Corresponds to the JSON property format

Returns:

  • (String)


594
595
596
# File 'generated/google/apis/run_v1beta1/classes.rb', line 594

def format
  @format
end

#idString

Corresponds to the JSON property id

Returns:

  • (String)


599
600
601
# File 'generated/google/apis/run_v1beta1/classes.rb', line 599

def id
  @id
end

#itemsGoogle::Apis::RunV1beta1::JsonSchemaPropsOrArray

JSONSchemaPropsOrArray represents a value that can either be a JSONSchemaProps or an array of JSONSchemaProps. Mainly here for serialization purposes. Corresponds to the JSON property items



606
607
608
# File 'generated/google/apis/run_v1beta1/classes.rb', line 606

def items
  @items
end

#max_itemsFixnum

Corresponds to the JSON property maxItems

Returns:

  • (Fixnum)


611
612
613
# File 'generated/google/apis/run_v1beta1/classes.rb', line 611

def max_items
  @max_items
end

#max_lengthFixnum

Corresponds to the JSON property maxLength

Returns:

  • (Fixnum)


616
617
618
# File 'generated/google/apis/run_v1beta1/classes.rb', line 616

def max_length
  @max_length
end

#max_propertiesFixnum

Corresponds to the JSON property maxProperties

Returns:

  • (Fixnum)


621
622
623
# File 'generated/google/apis/run_v1beta1/classes.rb', line 621

def max_properties
  @max_properties
end

#maximumFloat

Corresponds to the JSON property maximum

Returns:

  • (Float)


626
627
628
# File 'generated/google/apis/run_v1beta1/classes.rb', line 626

def maximum
  @maximum
end

#min_itemsFixnum

Corresponds to the JSON property minItems

Returns:

  • (Fixnum)


631
632
633
# File 'generated/google/apis/run_v1beta1/classes.rb', line 631

def min_items
  @min_items
end

#min_lengthFixnum

Corresponds to the JSON property minLength

Returns:

  • (Fixnum)


636
637
638
# File 'generated/google/apis/run_v1beta1/classes.rb', line 636

def min_length
  @min_length
end

#min_propertiesFixnum

Corresponds to the JSON property minProperties

Returns:

  • (Fixnum)


641
642
643
# File 'generated/google/apis/run_v1beta1/classes.rb', line 641

def min_properties
  @min_properties
end

#minimumFloat

Corresponds to the JSON property minimum

Returns:

  • (Float)


646
647
648
# File 'generated/google/apis/run_v1beta1/classes.rb', line 646

def minimum
  @minimum
end

#multiple_ofFloat

Corresponds to the JSON property multipleOf

Returns:

  • (Float)


651
652
653
# File 'generated/google/apis/run_v1beta1/classes.rb', line 651

def multiple_of
  @multiple_of
end

#notGoogle::Apis::RunV1beta1::JsonSchemaProps

JSONSchemaProps is a JSON-Schema following Specification Draft 4 (http://json-schema.org/). Corresponds to the JSON property not



657
658
659
# File 'generated/google/apis/run_v1beta1/classes.rb', line 657

def not
  @not
end

#one_ofArray<Google::Apis::RunV1beta1::JsonSchemaProps>

Corresponds to the JSON property oneOf



662
663
664
# File 'generated/google/apis/run_v1beta1/classes.rb', line 662

def one_of
  @one_of
end

#patternString

Corresponds to the JSON property pattern

Returns:

  • (String)


667
668
669
# File 'generated/google/apis/run_v1beta1/classes.rb', line 667

def pattern
  @pattern
end

#pattern_propertiesHash<String,Google::Apis::RunV1beta1::JsonSchemaProps>

Corresponds to the JSON property patternProperties



672
673
674
# File 'generated/google/apis/run_v1beta1/classes.rb', line 672

def pattern_properties
  @pattern_properties
end

#propertiesHash<String,Google::Apis::RunV1beta1::JsonSchemaProps>

Corresponds to the JSON property properties



677
678
679
# File 'generated/google/apis/run_v1beta1/classes.rb', line 677

def properties
  @properties
end

#refString

Corresponds to the JSON property ref

Returns:

  • (String)


682
683
684
# File 'generated/google/apis/run_v1beta1/classes.rb', line 682

def ref
  @ref
end

#requiredArray<String>

Corresponds to the JSON property required

Returns:

  • (Array<String>)


687
688
689
# File 'generated/google/apis/run_v1beta1/classes.rb', line 687

def required
  @required
end

#schemaString

Corresponds to the JSON property schema

Returns:

  • (String)


692
693
694
# File 'generated/google/apis/run_v1beta1/classes.rb', line 692

def schema
  @schema
end

#titleString

Corresponds to the JSON property title

Returns:

  • (String)


697
698
699
# File 'generated/google/apis/run_v1beta1/classes.rb', line 697

def title
  @title
end

#typeString

Corresponds to the JSON property type

Returns:

  • (String)


702
703
704
# File 'generated/google/apis/run_v1beta1/classes.rb', line 702

def type
  @type
end

#unique_itemsBoolean Also known as: unique_items?

Corresponds to the JSON property uniqueItems

Returns:

  • (Boolean)


707
708
709
# File 'generated/google/apis/run_v1beta1/classes.rb', line 707

def unique_items
  @unique_items
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
# File 'generated/google/apis/run_v1beta1/classes.rb', line 715

def update!(**args)
  @additional_items = args[:additional_items] if args.key?(:additional_items)
  @additional_properties = args[:additional_properties] if args.key?(:additional_properties)
  @all_of = args[:all_of] if args.key?(:all_of)
  @any_of = args[:any_of] if args.key?(:any_of)
  @default = args[:default] if args.key?(:default)
  @definitions = args[:definitions] if args.key?(:definitions)
  @dependencies = args[:dependencies] if args.key?(:dependencies)
  @description = args[:description] if args.key?(:description)
  @enum = args[:enum] if args.key?(:enum)
  @example = args[:example] if args.key?(:example)
  @exclusive_maximum = args[:exclusive_maximum] if args.key?(:exclusive_maximum)
  @exclusive_minimum = args[:exclusive_minimum] if args.key?(:exclusive_minimum)
  @external_docs = args[:external_docs] if args.key?(:external_docs)
  @format = args[:format] if args.key?(:format)
  @id = args[:id] if args.key?(:id)
  @items = args[:items] if args.key?(:items)
  @max_items = args[:max_items] if args.key?(:max_items)
  @max_length = args[:max_length] if args.key?(:max_length)
  @max_properties = args[:max_properties] if args.key?(:max_properties)
  @maximum = args[:maximum] if args.key?(:maximum)
  @min_items = args[:min_items] if args.key?(:min_items)
  @min_length = args[:min_length] if args.key?(:min_length)
  @min_properties = args[:min_properties] if args.key?(:min_properties)
  @minimum = args[:minimum] if args.key?(:minimum)
  @multiple_of = args[:multiple_of] if args.key?(:multiple_of)
  @not = args[:not] if args.key?(:not)
  @one_of = args[:one_of] if args.key?(:one_of)
  @pattern = args[:pattern] if args.key?(:pattern)
  @pattern_properties = args[:pattern_properties] if args.key?(:pattern_properties)
  @properties = args[:properties] if args.key?(:properties)
  @ref = args[:ref] if args.key?(:ref)
  @required = args[:required] if args.key?(:required)
  @schema = args[:schema] if args.key?(:schema)
  @title = args[:title] if args.key?(:title)
  @type = args[:type] if args.key?(:type)
  @unique_items = args[:unique_items] if args.key?(:unique_items)
end