Class: Google::Apis::DataflowV1b3::TemplateMetadata

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

Overview

Metadata describing a template.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ TemplateMetadata

Returns a new instance of TemplateMetadata.



6678
6679
6680
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 6678

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

Instance Attribute Details

#default_streaming_modeString

Optional. Indicates the default streaming mode for a streaming template. Only valid if both supports_at_least_once and supports_exactly_once are true. Possible values: UNSPECIFIED, EXACTLY_ONCE and AT_LEAST_ONCE Corresponds to the JSON property defaultStreamingMode

Returns:

  • (String)


6643
6644
6645
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 6643

def default_streaming_mode
  @default_streaming_mode
end

#descriptionString

Optional. A description of the template. Corresponds to the JSON property description

Returns:

  • (String)


6648
6649
6650
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 6648

def description
  @description
end

#nameString

Required. The name of the template. Corresponds to the JSON property name

Returns:

  • (String)


6653
6654
6655
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 6653

def name
  @name
end

#parametersArray<Google::Apis::DataflowV1b3::ParameterMetadata>

The parameters for the template. Corresponds to the JSON property parameters



6658
6659
6660
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 6658

def parameters
  @parameters
end

#streamingBoolean Also known as: streaming?

Optional. Indicates if the template is streaming or not. Corresponds to the JSON property streaming

Returns:

  • (Boolean)


6663
6664
6665
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 6663

def streaming
  @streaming
end

#supports_at_least_onceBoolean Also known as: supports_at_least_once?

Optional. Indicates if the streaming template supports at least once mode. Corresponds to the JSON property supportsAtLeastOnce

Returns:

  • (Boolean)


6669
6670
6671
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 6669

def supports_at_least_once
  @supports_at_least_once
end

#supports_exactly_onceBoolean Also known as: supports_exactly_once?

Optional. Indicates if the streaming template supports exactly once mode. Corresponds to the JSON property supportsExactlyOnce

Returns:

  • (Boolean)


6675
6676
6677
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 6675

def supports_exactly_once
  @supports_exactly_once
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6683
6684
6685
6686
6687
6688
6689
6690
6691
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 6683

def update!(**args)
  @default_streaming_mode = args[:default_streaming_mode] if args.key?(:default_streaming_mode)
  @description = args[:description] if args.key?(:description)
  @name = args[:name] if args.key?(:name)
  @parameters = args[:parameters] if args.key?(:parameters)
  @streaming = args[:streaming] if args.key?(:streaming)
  @supports_at_least_once = args[:supports_at_least_once] if args.key?(:supports_at_least_once)
  @supports_exactly_once = args[:supports_exactly_once] if args.key?(:supports_exactly_once)
end