# GDC Hardware Management V1ALPHA API - Class Google::Cloud::GDCHardwareManagement::V1alpha::TimePeriod (v0.14.1)

0.14.1 (latest) 0.14.0 0.13.0 0.12.1 0.11.0 0.10.0 0.9.0 0.8.1 0.7.0 0.6.0 0.5.0 0.4.0 0.3.0 0.2.0 0.1.1 Reference documentation and code samples for the GDC Hardware Management V1ALPHA API class Google::Cloud::GDCHardwareManagement::V1alpha::TimePeriod.

Represents a time period in a week.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #days

    def days() -> ::Array<::Google::Type::DayOfWeek>

**Returns**

- (::Array\<[::Google::Type::DayOfWeek](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gdc_hardware_management-v1alpha/latest/Google-Type-DayOfWeek)\>) --- Required. The days of the week that the time period is active.

### #days=

    def days=(value) -> ::Array<::Google::Type::DayOfWeek>

**Parameter**

- **value** (::Array\<[::Google::Type::DayOfWeek](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gdc_hardware_management-v1alpha/latest/Google-Type-DayOfWeek)\>) --- Required. The days of the week that the time period is active.
**Returns**

- (::Array\<[::Google::Type::DayOfWeek](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gdc_hardware_management-v1alpha/latest/Google-Type-DayOfWeek)\>) --- Required. The days of the week that the time period is active.

### #end_time

    def end_time() -> ::Google::Type::TimeOfDay

**Returns**

- ([::Google::Type::TimeOfDay](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gdc_hardware_management-v1alpha/latest/Google-Type-TimeOfDay)) --- Required. The end of the time period.

### #end_time=

    def end_time=(value) -> ::Google::Type::TimeOfDay

**Parameter**

- **value** ([::Google::Type::TimeOfDay](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gdc_hardware_management-v1alpha/latest/Google-Type-TimeOfDay)) --- Required. The end of the time period.
**Returns**

- ([::Google::Type::TimeOfDay](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gdc_hardware_management-v1alpha/latest/Google-Type-TimeOfDay)) --- Required. The end of the time period.

### #start_time

    def start_time() -> ::Google::Type::TimeOfDay

**Returns**

- ([::Google::Type::TimeOfDay](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gdc_hardware_management-v1alpha/latest/Google-Type-TimeOfDay)) --- Required. The start of the time period.

### #start_time=

    def start_time=(value) -> ::Google::Type::TimeOfDay

**Parameter**

- **value** ([::Google::Type::TimeOfDay](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gdc_hardware_management-v1alpha/latest/Google-Type-TimeOfDay)) --- Required. The start of the time period.
**Returns**

- ([::Google::Type::TimeOfDay](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gdc_hardware_management-v1alpha/latest/Google-Type-TimeOfDay)) --- Required. The start of the time period.