# Live Stream V1 API - Class Google::Cloud::Video::LiveStream::V1::Input (v2.7.0)

2.7.0 (latest) 2.6.0 2.5.1 2.4.0 2.3.0 2.2.0 2.1.0 2.0.1 1.3.0 1.2.0 1.1.1 1.0.0 0.9.0 0.8.2 0.7.0 0.6.0 0.5.1 0.4.0 0.3.0 0.2.0 0.1.0 Reference documentation and code samples for the Live Stream V1 API class Google::Cloud::Video::LiveStream::V1::Input.

Input resource represents the endpoint from which the channel ingests
the input stream.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #create_time

    def create_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-video-live_stream-v1/latest/Google-Protobuf-Timestamp)) --- Output only. The creation time.

### #input_stream_property

    def input_stream_property() -> ::Google::Cloud::Video::LiveStream::V1::InputStreamProperty

**Returns**

- ([::Google::Cloud::Video::LiveStream::V1::InputStreamProperty](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-video-live_stream-v1/latest/Google-Cloud-Video-LiveStream-V1-InputStreamProperty)) --- Output only. The information for the input stream. This field will be present only when this input receives the input stream.

### #labels

    def labels() -> ::Google::Protobuf::Map{::String => ::String}

**Returns**

- (::Google::Protobuf::Map{::String =\> ::String}) --- User-defined key/value metadata.

### #labels=

    def labels=(value) -> ::Google::Protobuf::Map{::String => ::String}

**Parameter**

- **value** (::Google::Protobuf::Map{::String =\> ::String}) --- User-defined key/value metadata.
**Returns**

- (::Google::Protobuf::Map{::String =\> ::String}) --- User-defined key/value metadata.

### #name

    def name() -> ::String

**Returns**

- (::String) --- The resource name of the input, in the form of: `projects/{project}/locations/{location}/inputs/{inputId}`.

### #name=

    def name=(value) -> ::String

**Parameter**

- **value** (::String) --- The resource name of the input, in the form of: `projects/{project}/locations/{location}/inputs/{inputId}`.
**Returns**

- (::String) --- The resource name of the input, in the form of: `projects/{project}/locations/{location}/inputs/{inputId}`.

### #preprocessing_config

    def preprocessing_config() -> ::Google::Cloud::Video::LiveStream::V1::PreprocessingConfig

**Returns**

- ([::Google::Cloud::Video::LiveStream::V1::PreprocessingConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-video-live_stream-v1/latest/Google-Cloud-Video-LiveStream-V1-PreprocessingConfig)) --- Preprocessing configurations.

### #preprocessing_config=

    def preprocessing_config=(value) -> ::Google::Cloud::Video::LiveStream::V1::PreprocessingConfig

**Parameter**

- **value** ([::Google::Cloud::Video::LiveStream::V1::PreprocessingConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-video-live_stream-v1/latest/Google-Cloud-Video-LiveStream-V1-PreprocessingConfig)) --- Preprocessing configurations.
**Returns**

- ([::Google::Cloud::Video::LiveStream::V1::PreprocessingConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-video-live_stream-v1/latest/Google-Cloud-Video-LiveStream-V1-PreprocessingConfig)) --- Preprocessing configurations.

### #security_rules

    def security_rules() -> ::Google::Cloud::Video::LiveStream::V1::Input::SecurityRule

**Returns**

- ([::Google::Cloud::Video::LiveStream::V1::Input::SecurityRule](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-video-live_stream-v1/latest/Google-Cloud-Video-LiveStream-V1-Input-SecurityRule)) --- Security rule for access control.

### #security_rules=

    def security_rules=(value) -> ::Google::Cloud::Video::LiveStream::V1::Input::SecurityRule

**Parameter**

- **value** ([::Google::Cloud::Video::LiveStream::V1::Input::SecurityRule](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-video-live_stream-v1/latest/Google-Cloud-Video-LiveStream-V1-Input-SecurityRule)) --- Security rule for access control.
**Returns**

- ([::Google::Cloud::Video::LiveStream::V1::Input::SecurityRule](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-video-live_stream-v1/latest/Google-Cloud-Video-LiveStream-V1-Input-SecurityRule)) --- Security rule for access control.

### #tier

    def tier() -> ::Google::Cloud::Video::LiveStream::V1::Input::Tier

**Returns**

- ([::Google::Cloud::Video::LiveStream::V1::Input::Tier](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-video-live_stream-v1/latest/Google-Cloud-Video-LiveStream-V1-Input-Tier)) --- Tier defines the maximum input specification that is accepted by the video pipeline. The billing is charged based on the tier specified here. See [Pricing](https://cloud.google.com/livestream/pricing) for more detail. The default is `HD`.

### #tier=

    def tier=(value) -> ::Google::Cloud::Video::LiveStream::V1::Input::Tier

**Parameter**

- **value** ([::Google::Cloud::Video::LiveStream::V1::Input::Tier](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-video-live_stream-v1/latest/Google-Cloud-Video-LiveStream-V1-Input-Tier)) --- Tier defines the maximum input specification that is accepted by the video pipeline. The billing is charged based on the tier specified here. See [Pricing](https://cloud.google.com/livestream/pricing) for more detail. The default is `HD`.
**Returns**

- ([::Google::Cloud::Video::LiveStream::V1::Input::Tier](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-video-live_stream-v1/latest/Google-Cloud-Video-LiveStream-V1-Input-Tier)) --- Tier defines the maximum input specification that is accepted by the video pipeline. The billing is charged based on the tier specified here. See [Pricing](https://cloud.google.com/livestream/pricing) for more detail. The default is `HD`.

### #type

    def type() -> ::Google::Cloud::Video::LiveStream::V1::Input::Type

**Returns**

- ([::Google::Cloud::Video::LiveStream::V1::Input::Type](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-video-live_stream-v1/latest/Google-Cloud-Video-LiveStream-V1-Input-Type)) --- Source type.

### #type=

    def type=(value) -> ::Google::Cloud::Video::LiveStream::V1::Input::Type

**Parameter**

- **value** ([::Google::Cloud::Video::LiveStream::V1::Input::Type](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-video-live_stream-v1/latest/Google-Cloud-Video-LiveStream-V1-Input-Type)) --- Source type.
**Returns**

- ([::Google::Cloud::Video::LiveStream::V1::Input::Type](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-video-live_stream-v1/latest/Google-Cloud-Video-LiveStream-V1-Input-Type)) --- Source type.

### #update_time

    def update_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-video-live_stream-v1/latest/Google-Protobuf-Timestamp)) --- Output only. The update time.

### #uri

    def uri() -> ::String

**Returns**

- (::String) --- Output only. URI to push the input stream to.
  Its format depends on the input
  [type](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-video-live_stream-v1/latest/Google-Cloud-Video-LiveStream-V1-Input#Google__Cloud__Video__LiveStream__V1__Input_type_instance_ "Google::Cloud::Video::LiveStream::V1::Input#type (method)"), for example:

  - `RTMP_PUSH`: `rtmp://1.2.3.4/live/{STREAM-ID}`
  - `SRT_PUSH`: `srt://1.2.3.4:4201?streamid={STREAM-ID}`