Compute V1 Client - Class ResourcePolicyHourlyCycle (1.22.0)

Reference documentation and code samples for the Compute V1 Client class ResourcePolicyHourlyCycle.

Time window specified for hourly operations.

Generated from protobuf message google.cloud.compute.v1.ResourcePolicyHourlyCycle

Namespace

Google \ Cloud \ Compute \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ duration string

[Output only] Duration of the time window, automatically chosen to be smallest possible in the given scenario.

↳ hours_in_cycle int

Defines a schedule with units measured in hours. The value determines how many hours pass between the start of each cycle.

↳ start_time string

Time within the window to start the operations. It must be in format "HH:MM", where HH : [00-23] and MM : [00-00] GMT.

getDuration

[Output only] Duration of the time window, automatically chosen to be smallest possible in the given scenario.

Returns
Type Description
string

hasDuration

clearDuration

setDuration

[Output only] Duration of the time window, automatically chosen to be smallest possible in the given scenario.

Parameter
Name Description
var string
Returns
Type Description
$this

getHoursInCycle

Defines a schedule with units measured in hours. The value determines how many hours pass between the start of each cycle.

Returns
Type Description
int

hasHoursInCycle

clearHoursInCycle

setHoursInCycle

Defines a schedule with units measured in hours. The value determines how many hours pass between the start of each cycle.

Parameter
Name Description
var int
Returns
Type Description
$this

getStartTime

Time within the window to start the operations. It must be in format "HH:MM", where HH : [00-23] and MM : [00-00] GMT.

Returns
Type Description
string

hasStartTime

clearStartTime

setStartTime

Time within the window to start the operations. It must be in format "HH:MM", where HH : [00-23] and MM : [00-00] GMT.

Parameter
Name Description
var string
Returns
Type Description
$this