Skip to content

Commit 78d5edd

Browse files
1 parent a7c6dcc commit 78d5edd

2 files changed

Lines changed: 38 additions & 5 deletions

File tree

src/CloudKMS/KeyAccessJustificationsPolicyConfig.php

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,15 @@ class KeyAccessJustificationsPolicyConfig extends \Google\Model
2121
{
2222
protected $defaultKeyAccessJustificationPolicyType = KeyAccessJustificationsPolicy::class;
2323
protected $defaultKeyAccessJustificationPolicyDataType = '';
24+
/**
25+
* Output only. Indicates whether this parent resource is available to default
26+
* policy feature. Please consult [the prerequisite of default policy
27+
* feature](https://cloud.google.com/assured-workloads/key-access-
28+
* justifications/docs/set-default-policy#before) for more details.
29+
*
30+
* @var bool
31+
*/
32+
public $defaultPolicyAvailable;
2433
/**
2534
* Identifier. Represents the resource name for this
2635
* KeyAccessJustificationsPolicyConfig in the format of
@@ -53,6 +62,25 @@ public function getDefaultKeyAccessJustificationPolicy()
5362
{
5463
return $this->defaultKeyAccessJustificationPolicy;
5564
}
65+
/**
66+
* Output only. Indicates whether this parent resource is available to default
67+
* policy feature. Please consult [the prerequisite of default policy
68+
* feature](https://cloud.google.com/assured-workloads/key-access-
69+
* justifications/docs/set-default-policy#before) for more details.
70+
*
71+
* @param bool $defaultPolicyAvailable
72+
*/
73+
public function setDefaultPolicyAvailable($defaultPolicyAvailable)
74+
{
75+
$this->defaultPolicyAvailable = $defaultPolicyAvailable;
76+
}
77+
/**
78+
* @return bool
79+
*/
80+
public function getDefaultPolicyAvailable()
81+
{
82+
return $this->defaultPolicyAvailable;
83+
}
5684
/**
5785
* Identifier. Represents the resource name for this
5886
* KeyAccessJustificationsPolicyConfig in the format of

src/CloudKMS/Resource/ProjectsLocations.php

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,16 @@ public function getEkmConfig($name, $optParams = [])
8181
}
8282
/**
8383
* Lists information about the supported locations for this service. This method
84-
* can be called in two ways: * **List all public locations:** Use the path `GET
85-
* /v1/locations`. * **List project-visible locations:** Use the path `GET
86-
* /v1/projects/{project_id}/locations`. This may include public locations as
87-
* well as private or other locations specifically visible to the project.
88-
* (locations.listProjectsLocations)
84+
* lists locations based on the resource scope provided in the
85+
* [ListLocationsRequest.name] field: * **Global locations**: If `name` is
86+
* empty, the method lists the public locations available to all projects. *
87+
* **Project-specific locations**: If `name` follows the format
88+
* `projects/{project}`, the method lists locations visible to that specific
89+
* project. This includes public, private, or other project-specific locations
90+
* enabled for the project. For gRPC and client library implementations, the
91+
* resource name is passed as the `name` field. For direct service calls, the
92+
* resource name is incorporated into the request path based on the specific
93+
* service implementation and version. (locations.listProjectsLocations)
8994
*
9095
* @param string $name The resource that owns the locations collection, if
9196
* applicable.

0 commit comments

Comments
 (0)