Compute V1 Client - Class ResourcePolicyHourlyCycle (1.12.1)

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
NameDescription
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
TypeDescription
string

hasDuration

clearDuration

setDuration

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

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getHoursInCycle

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

Returns
TypeDescription
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
NameDescription
var int
Returns
TypeDescription
$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
TypeDescription
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
NameDescription
var string
Returns
TypeDescription
$this