Stackdriver Logging V2 Client - Class CopyLogEntriesMetadata (1.25.5)

Reference documentation and code samples for the Stackdriver Logging V2 Client class CopyLogEntriesMetadata.

Metadata for CopyLogEntries long running operations.

Generated from protobuf message google.logging.v2.CopyLogEntriesMetadata

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ start_time Google\Protobuf\Timestamp

The create time of an operation.

↳ end_time Google\Protobuf\Timestamp

The end time of an operation.

↳ state int

State of an operation.

↳ cancellation_requested bool

Identifies whether the user has requested cancellation of the operation.

↳ request Google\Cloud\Logging\V2\CopyLogEntriesRequest

CopyLogEntries RPC request.

↳ progress int

Estimated progress of the operation (0 - 100%).

↳ writer_identity string

The IAM identity of a service account that must be granted access to the destination. If the service account is not granted permission to the destination within an hour, the operation will be cancelled. For example: "serviceAccount:foo@bar.com"

getStartTime

The create time of an operation.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasStartTime

clearStartTime

setStartTime

The create time of an operation.

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

getEndTime

The end time of an operation.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasEndTime

clearEndTime

setEndTime

The end time of an operation.

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

getState

State of an operation.

Returns
TypeDescription
int

setState

State of an operation.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getCancellationRequested

Identifies whether the user has requested cancellation of the operation.

Returns
TypeDescription
bool

setCancellationRequested

Identifies whether the user has requested cancellation of the operation.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getRequest

CopyLogEntries RPC request.

Returns
TypeDescription
Google\Cloud\Logging\V2\CopyLogEntriesRequest|null

hasRequest

clearRequest

setRequest

CopyLogEntries RPC request.

Parameter
NameDescription
var Google\Cloud\Logging\V2\CopyLogEntriesRequest
Returns
TypeDescription
$this

getProgress

Estimated progress of the operation (0 - 100%).

Returns
TypeDescription
int

setProgress

Estimated progress of the operation (0 - 100%).

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getWriterIdentity

The IAM identity of a service account that must be granted access to the destination.

If the service account is not granted permission to the destination within an hour, the operation will be cancelled. For example: "serviceAccount:foo@bar.com"

Returns
TypeDescription
string

setWriterIdentity

The IAM identity of a service account that must be granted access to the destination.

If the service account is not granted permission to the destination within an hour, the operation will be cancelled. For example: "serviceAccount:foo@bar.com"

Parameter
NameDescription
var string
Returns
TypeDescription
$this