Skip to content

Commit e4663f9

Browse files
1 parent 78fb812 commit e4663f9

6 files changed

Lines changed: 80 additions & 25 deletions

File tree

src/Logging/LogEntry.php

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,16 @@ class LogEntry extends \Google\Collection
126126
protected $metadataDataType = '';
127127
protected $operationType = LogEntryOperation::class;
128128
protected $operationDataType = '';
129+
/**
130+
* Optional. The structured OpenTelemetry protocol payload. Contains the
131+
* OpenTelemetry Resource, Instrumentation Scope, and Entities attributes for
132+
* this log as they are defined in the OTLP specification, and any other
133+
* fields that do not have a direct analog in the LogEntry. See
134+
* https://opentelemetry.io/docs/specs/otel/logs/data-model/
135+
*
136+
* @var array[]
137+
*/
138+
public $otel;
129139
/**
130140
* The log entry payload, represented as a protocol buffer. Some Google Cloud
131141
* Platform services use this field for their log entry payloads.The following
@@ -444,6 +454,26 @@ public function getOperation()
444454
{
445455
return $this->operation;
446456
}
457+
/**
458+
* Optional. The structured OpenTelemetry protocol payload. Contains the
459+
* OpenTelemetry Resource, Instrumentation Scope, and Entities attributes for
460+
* this log as they are defined in the OTLP specification, and any other
461+
* fields that do not have a direct analog in the LogEntry. See
462+
* https://opentelemetry.io/docs/specs/otel/logs/data-model/
463+
*
464+
* @param array[] $otel
465+
*/
466+
public function setOtel($otel)
467+
{
468+
$this->otel = $otel;
469+
}
470+
/**
471+
* @return array[]
472+
*/
473+
public function getOtel()
474+
{
475+
return $this->otel;
476+
}
447477
/**
448478
* The log entry payload, represented as a protocol buffer. Some Google Cloud
449479
* Platform services use this field for their log entry payloads.The following

src/Logging/Resource/BillingAccountsLocations.php

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,16 @@ public function get($name, $optParams = [])
4545
return $this->call('get', [$params], Location::class);
4646
}
4747
/**
48-
* Lists information about the supported locations for this service. This method
49-
* can be called in two ways: List all public locations: Use the path GET
50-
* /v1/locations. List project-visible locations: Use the path GET
51-
* /v1/projects/{project_id}/locations. This may include public locations as
52-
* well as private or other locations specifically visible to the project.
48+
* Lists information about the supported locations for this service.This method
49+
* lists locations based on the resource scope provided in the
50+
* ListLocationsRequest.name field: Global locations: If name is empty, the
51+
* method lists the public locations available to all projects. Project-specific
52+
* locations: If name follows the format projects/{project}, the method lists
53+
* locations visible to that specific project. This includes public, private, or
54+
* other project-specific locations enabled for the project.For gRPC and client
55+
* library implementations, the resource name is passed as the name field. For
56+
* direct service calls, the resource name is incorporated into the request path
57+
* based on the specific service implementation and version.
5358
* (locations.listBillingAccountsLocations)
5459
*
5560
* @param string $name The resource that owns the locations collection, if

src/Logging/Resource/FoldersLocations.php

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,16 @@ public function get($name, $optParams = [])
4545
return $this->call('get', [$params], Location::class);
4646
}
4747
/**
48-
* Lists information about the supported locations for this service. This method
49-
* can be called in two ways: List all public locations: Use the path GET
50-
* /v1/locations. List project-visible locations: Use the path GET
51-
* /v1/projects/{project_id}/locations. This may include public locations as
52-
* well as private or other locations specifically visible to the project.
48+
* Lists information about the supported locations for this service.This method
49+
* lists locations based on the resource scope provided in the
50+
* ListLocationsRequest.name field: Global locations: If name is empty, the
51+
* method lists the public locations available to all projects. Project-specific
52+
* locations: If name follows the format projects/{project}, the method lists
53+
* locations visible to that specific project. This includes public, private, or
54+
* other project-specific locations enabled for the project.For gRPC and client
55+
* library implementations, the resource name is passed as the name field. For
56+
* direct service calls, the resource name is incorporated into the request path
57+
* based on the specific service implementation and version.
5358
* (locations.listFoldersLocations)
5459
*
5560
* @param string $name The resource that owns the locations collection, if

src/Logging/Resource/Locations.php

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,16 @@ public function get($name, $optParams = [])
4545
return $this->call('get', [$params], Location::class);
4646
}
4747
/**
48-
* Lists information about the supported locations for this service. This method
49-
* can be called in two ways: List all public locations: Use the path GET
50-
* /v1/locations. List project-visible locations: Use the path GET
51-
* /v1/projects/{project_id}/locations. This may include public locations as
52-
* well as private or other locations specifically visible to the project.
48+
* Lists information about the supported locations for this service.This method
49+
* lists locations based on the resource scope provided in the
50+
* ListLocationsRequest.name field: Global locations: If name is empty, the
51+
* method lists the public locations available to all projects. Project-specific
52+
* locations: If name follows the format projects/{project}, the method lists
53+
* locations visible to that specific project. This includes public, private, or
54+
* other project-specific locations enabled for the project.For gRPC and client
55+
* library implementations, the resource name is passed as the name field. For
56+
* direct service calls, the resource name is incorporated into the request path
57+
* based on the specific service implementation and version.
5358
* (locations.listLocations)
5459
*
5560
* @param string $name The resource that owns the locations collection, if

src/Logging/Resource/OrganizationsLocations.php

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,16 @@ public function get($name, $optParams = [])
4545
return $this->call('get', [$params], Location::class);
4646
}
4747
/**
48-
* Lists information about the supported locations for this service. This method
49-
* can be called in two ways: List all public locations: Use the path GET
50-
* /v1/locations. List project-visible locations: Use the path GET
51-
* /v1/projects/{project_id}/locations. This may include public locations as
52-
* well as private or other locations specifically visible to the project.
48+
* Lists information about the supported locations for this service.This method
49+
* lists locations based on the resource scope provided in the
50+
* ListLocationsRequest.name field: Global locations: If name is empty, the
51+
* method lists the public locations available to all projects. Project-specific
52+
* locations: If name follows the format projects/{project}, the method lists
53+
* locations visible to that specific project. This includes public, private, or
54+
* other project-specific locations enabled for the project.For gRPC and client
55+
* library implementations, the resource name is passed as the name field. For
56+
* direct service calls, the resource name is incorporated into the request path
57+
* based on the specific service implementation and version.
5358
* (locations.listOrganizationsLocations)
5459
*
5560
* @param string $name The resource that owns the locations collection, if

src/Logging/Resource/ProjectsLocations.php

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,16 @@ public function get($name, $optParams = [])
4545
return $this->call('get', [$params], Location::class);
4646
}
4747
/**
48-
* Lists information about the supported locations for this service. This method
49-
* can be called in two ways: List all public locations: Use the path GET
50-
* /v1/locations. List project-visible locations: Use the path GET
51-
* /v1/projects/{project_id}/locations. This may include public locations as
52-
* well as private or other locations specifically visible to the project.
48+
* Lists information about the supported locations for this service.This method
49+
* lists locations based on the resource scope provided in the
50+
* ListLocationsRequest.name field: Global locations: If name is empty, the
51+
* method lists the public locations available to all projects. Project-specific
52+
* locations: If name follows the format projects/{project}, the method lists
53+
* locations visible to that specific project. This includes public, private, or
54+
* other project-specific locations enabled for the project.For gRPC and client
55+
* library implementations, the resource name is passed as the name field. For
56+
* direct service calls, the resource name is incorporated into the request path
57+
* based on the specific service implementation and version.
5358
* (locations.listProjectsLocations)
5459
*
5560
* @param string $name The resource that owns the locations collection, if

0 commit comments

Comments
 (0)