Class: Google::Apis::RunV1beta1::JsonSchemaProps
- Inherits:
-
Object
- Object
- Google::Apis::RunV1beta1::JsonSchemaProps
- 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
-
#additional_items ⇒ Google::Apis::RunV1beta1::JsonSchemaPropsOrBool
JSONSchemaPropsOrBool represents JSONSchemaProps or a boolean value.
-
#additional_properties ⇒ Google::Apis::RunV1beta1::JsonSchemaPropsOrBool
JSONSchemaPropsOrBool represents JSONSchemaProps or a boolean value.
-
#all_of ⇒ Array<Google::Apis::RunV1beta1::JsonSchemaProps>
Corresponds to the JSON property
allOf
. -
#any_of ⇒ Array<Google::Apis::RunV1beta1::JsonSchemaProps>
Corresponds to the JSON property
anyOf
. -
#default ⇒ Google::Apis::RunV1beta1::Json
JSON represents any valid JSON value.
-
#definitions ⇒ Hash<String,Google::Apis::RunV1beta1::JsonSchemaProps>
Corresponds to the JSON property
definitions
. -
#dependencies ⇒ Hash<String,Google::Apis::RunV1beta1::JsonSchemaPropsOrStringArray>
Corresponds to the JSON property
dependencies
. -
#description ⇒ String
Corresponds to the JSON property
description
. -
#enum ⇒ Array<String>
Corresponds to the JSON property
enum
. -
#example ⇒ Google::Apis::RunV1beta1::Json
JSON represents any valid JSON value.
-
#exclusive_maximum ⇒ Boolean
(also: #exclusive_maximum?)
Corresponds to the JSON property
exclusiveMaximum
. -
#exclusive_minimum ⇒ Boolean
(also: #exclusive_minimum?)
Corresponds to the JSON property
exclusiveMinimum
. -
#external_docs ⇒ Google::Apis::RunV1beta1::ExternalDocumentation
ExternalDocumentation allows referencing an external resource for extended documentation.
-
#format ⇒ String
Corresponds to the JSON property
format
. -
#id ⇒ String
Corresponds to the JSON property
id
. -
#items ⇒ Google::Apis::RunV1beta1::JsonSchemaPropsOrArray
JSONSchemaPropsOrArray represents a value that can either be a JSONSchemaProps or an array of JSONSchemaProps.
-
#max_items ⇒ Fixnum
Corresponds to the JSON property
maxItems
. -
#max_length ⇒ Fixnum
Corresponds to the JSON property
maxLength
. -
#max_properties ⇒ Fixnum
Corresponds to the JSON property
maxProperties
. -
#maximum ⇒ Float
Corresponds to the JSON property
maximum
. -
#min_items ⇒ Fixnum
Corresponds to the JSON property
minItems
. -
#min_length ⇒ Fixnum
Corresponds to the JSON property
minLength
. -
#min_properties ⇒ Fixnum
Corresponds to the JSON property
minProperties
. -
#minimum ⇒ Float
Corresponds to the JSON property
minimum
. -
#multiple_of ⇒ Float
Corresponds to the JSON property
multipleOf
. -
#not ⇒ Google::Apis::RunV1beta1::JsonSchemaProps
JSONSchemaProps is a JSON-Schema following Specification Draft 4 (http://json-schema.org/).
-
#one_of ⇒ Array<Google::Apis::RunV1beta1::JsonSchemaProps>
Corresponds to the JSON property
oneOf
. -
#pattern ⇒ String
Corresponds to the JSON property
pattern
. -
#pattern_properties ⇒ Hash<String,Google::Apis::RunV1beta1::JsonSchemaProps>
Corresponds to the JSON property
patternProperties
. -
#properties ⇒ Hash<String,Google::Apis::RunV1beta1::JsonSchemaProps>
Corresponds to the JSON property
properties
. -
#ref ⇒ String
Corresponds to the JSON property
ref
. -
#required ⇒ Array<String>
Corresponds to the JSON property
required
. -
#schema ⇒ String
Corresponds to the JSON property
schema
. -
#title ⇒ String
Corresponds to the JSON property
title
. -
#type ⇒ String
Corresponds to the JSON property
type
. -
#unique_items ⇒ Boolean
(also: #unique_items?)
Corresponds to the JSON property
uniqueItems
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ JsonSchemaProps
constructor
A new instance of JsonSchemaProps.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ JsonSchemaProps
Returns a new instance of JsonSchemaProps.
667 668 669 |
# File 'generated/google/apis/run_v1beta1/classes.rb', line 667 def initialize(**args) update!(**args) end |
Instance Attribute Details
#additional_items ⇒ Google::Apis::RunV1beta1::JsonSchemaPropsOrBool
JSONSchemaPropsOrBool represents JSONSchemaProps or a boolean value.
Defaults to true for the boolean property.
Corresponds to the JSON property additionalItems
478 479 480 |
# File 'generated/google/apis/run_v1beta1/classes.rb', line 478 def additional_items @additional_items end |
#additional_properties ⇒ Google::Apis::RunV1beta1::JsonSchemaPropsOrBool
JSONSchemaPropsOrBool represents JSONSchemaProps or a boolean value.
Defaults to true for the boolean property.
Corresponds to the JSON property additionalProperties
484 485 486 |
# File 'generated/google/apis/run_v1beta1/classes.rb', line 484 def additional_properties @additional_properties end |
#all_of ⇒ Array<Google::Apis::RunV1beta1::JsonSchemaProps>
Corresponds to the JSON property allOf
489 490 491 |
# File 'generated/google/apis/run_v1beta1/classes.rb', line 489 def all_of @all_of end |
#any_of ⇒ Array<Google::Apis::RunV1beta1::JsonSchemaProps>
Corresponds to the JSON property anyOf
494 495 496 |
# File 'generated/google/apis/run_v1beta1/classes.rb', line 494 def any_of @any_of end |
#default ⇒ Google::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
501 502 503 |
# File 'generated/google/apis/run_v1beta1/classes.rb', line 501 def default @default end |
#definitions ⇒ Hash<String,Google::Apis::RunV1beta1::JsonSchemaProps>
Corresponds to the JSON property definitions
506 507 508 |
# File 'generated/google/apis/run_v1beta1/classes.rb', line 506 def definitions @definitions end |
#dependencies ⇒ Hash<String,Google::Apis::RunV1beta1::JsonSchemaPropsOrStringArray>
Corresponds to the JSON property dependencies
511 512 513 |
# File 'generated/google/apis/run_v1beta1/classes.rb', line 511 def dependencies @dependencies end |
#description ⇒ String
Corresponds to the JSON property description
516 517 518 |
# File 'generated/google/apis/run_v1beta1/classes.rb', line 516 def description @description end |
#enum ⇒ Array<String>
Corresponds to the JSON property enum
521 522 523 |
# File 'generated/google/apis/run_v1beta1/classes.rb', line 521 def enum @enum end |
#example ⇒ Google::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
528 529 530 |
# File 'generated/google/apis/run_v1beta1/classes.rb', line 528 def example @example end |
#exclusive_maximum ⇒ Boolean Also known as: exclusive_maximum?
Corresponds to the JSON property exclusiveMaximum
533 534 535 |
# File 'generated/google/apis/run_v1beta1/classes.rb', line 533 def exclusive_maximum @exclusive_maximum end |
#exclusive_minimum ⇒ Boolean Also known as: exclusive_minimum?
Corresponds to the JSON property exclusiveMinimum
539 540 541 |
# File 'generated/google/apis/run_v1beta1/classes.rb', line 539 def exclusive_minimum @exclusive_minimum end |
#external_docs ⇒ Google::Apis::RunV1beta1::ExternalDocumentation
ExternalDocumentation allows referencing an external resource for extended
documentation.
Corresponds to the JSON property externalDocs
546 547 548 |
# File 'generated/google/apis/run_v1beta1/classes.rb', line 546 def external_docs @external_docs end |
#format ⇒ String
Corresponds to the JSON property format
551 552 553 |
# File 'generated/google/apis/run_v1beta1/classes.rb', line 551 def format @format end |
#id ⇒ String
Corresponds to the JSON property id
556 557 558 |
# File 'generated/google/apis/run_v1beta1/classes.rb', line 556 def id @id end |
#items ⇒ Google::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
563 564 565 |
# File 'generated/google/apis/run_v1beta1/classes.rb', line 563 def items @items end |
#max_items ⇒ Fixnum
Corresponds to the JSON property maxItems
568 569 570 |
# File 'generated/google/apis/run_v1beta1/classes.rb', line 568 def max_items @max_items end |
#max_length ⇒ Fixnum
Corresponds to the JSON property maxLength
573 574 575 |
# File 'generated/google/apis/run_v1beta1/classes.rb', line 573 def max_length @max_length end |
#max_properties ⇒ Fixnum
Corresponds to the JSON property maxProperties
578 579 580 |
# File 'generated/google/apis/run_v1beta1/classes.rb', line 578 def max_properties @max_properties end |
#maximum ⇒ Float
Corresponds to the JSON property maximum
583 584 585 |
# File 'generated/google/apis/run_v1beta1/classes.rb', line 583 def maximum @maximum end |
#min_items ⇒ Fixnum
Corresponds to the JSON property minItems
588 589 590 |
# File 'generated/google/apis/run_v1beta1/classes.rb', line 588 def min_items @min_items end |
#min_length ⇒ Fixnum
Corresponds to the JSON property minLength
593 594 595 |
# File 'generated/google/apis/run_v1beta1/classes.rb', line 593 def min_length @min_length end |
#min_properties ⇒ Fixnum
Corresponds to the JSON property minProperties
598 599 600 |
# File 'generated/google/apis/run_v1beta1/classes.rb', line 598 def min_properties @min_properties end |
#minimum ⇒ Float
Corresponds to the JSON property minimum
603 604 605 |
# File 'generated/google/apis/run_v1beta1/classes.rb', line 603 def minimum @minimum end |
#multiple_of ⇒ Float
Corresponds to the JSON property multipleOf
608 609 610 |
# File 'generated/google/apis/run_v1beta1/classes.rb', line 608 def multiple_of @multiple_of end |
#not ⇒ Google::Apis::RunV1beta1::JsonSchemaProps
JSONSchemaProps is a JSON-Schema following Specification Draft 4
(http://json-schema.org/).
Corresponds to the JSON property not
614 615 616 |
# File 'generated/google/apis/run_v1beta1/classes.rb', line 614 def not @not end |
#one_of ⇒ Array<Google::Apis::RunV1beta1::JsonSchemaProps>
Corresponds to the JSON property oneOf
619 620 621 |
# File 'generated/google/apis/run_v1beta1/classes.rb', line 619 def one_of @one_of end |
#pattern ⇒ String
Corresponds to the JSON property pattern
624 625 626 |
# File 'generated/google/apis/run_v1beta1/classes.rb', line 624 def pattern @pattern end |
#pattern_properties ⇒ Hash<String,Google::Apis::RunV1beta1::JsonSchemaProps>
Corresponds to the JSON property patternProperties
629 630 631 |
# File 'generated/google/apis/run_v1beta1/classes.rb', line 629 def pattern_properties @pattern_properties end |
#properties ⇒ Hash<String,Google::Apis::RunV1beta1::JsonSchemaProps>
Corresponds to the JSON property properties
634 635 636 |
# File 'generated/google/apis/run_v1beta1/classes.rb', line 634 def properties @properties end |
#ref ⇒ String
Corresponds to the JSON property ref
639 640 641 |
# File 'generated/google/apis/run_v1beta1/classes.rb', line 639 def ref @ref end |
#required ⇒ Array<String>
Corresponds to the JSON property required
644 645 646 |
# File 'generated/google/apis/run_v1beta1/classes.rb', line 644 def required @required end |
#schema ⇒ String
Corresponds to the JSON property schema
649 650 651 |
# File 'generated/google/apis/run_v1beta1/classes.rb', line 649 def schema @schema end |
#title ⇒ String
Corresponds to the JSON property title
654 655 656 |
# File 'generated/google/apis/run_v1beta1/classes.rb', line 654 def title @title end |
#type ⇒ String
Corresponds to the JSON property type
659 660 661 |
# File 'generated/google/apis/run_v1beta1/classes.rb', line 659 def type @type end |
#unique_items ⇒ Boolean Also known as: unique_items?
Corresponds to the JSON property uniqueItems
664 665 666 |
# File 'generated/google/apis/run_v1beta1/classes.rb', line 664 def unique_items @unique_items end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 |
# File 'generated/google/apis/run_v1beta1/classes.rb', line 672 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 |