feat: Add new gcloud commands, API clients, and third-party libraries across various services.

This commit is contained in:
2026-01-01 20:26:35 +01:00
parent 5e23cbece0
commit a19e592eb7
25221 changed files with 8324611 additions and 0 deletions

View File

@@ -0,0 +1,36 @@
# -*- coding: utf-8 -*- #
# Copyright 2023 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
"""Declarative hooks for authz toolkit resources."""
from __future__ import absolute_import
from __future__ import division
from __future__ import unicode_literals
def SetUpdateMask(unused_ref, args, request):
"""Set request.updateMask so that every field is updated for patch requests.
Args:
unused_ref: unused.
args: The argparse namespace.
request: The request to modify.
Returns:
The updated request.
"""
del args # Not needed to modify update mask.
if hasattr(request, 'updateMask'):
request.updateMask = '*'
return request

View File

@@ -0,0 +1,45 @@
project:
name: project
collection: authztoolkit.projects
attributes:
- &project
parameter_name: projectsId
attribute_name: project
help: |
The project Id.
property: core/project
location:
name: location
collection: authztoolkit.projects.locations
attributes:
- *project
- &location
parameter_name: locationsId
attribute_name: location
help: |
The location Id.
policy:
name: policy
collection: authztoolkit.projects.locations.policies
request_id_field: policyId
attributes:
- *project
- *location
- &policy
parameter_name: policiesId
attribute_name: policy
help: Id of the policy.
target_association:
name: target_association
collection: authztoolkit.projects.locations.targetAssociations
request_id_field: targetAssociationId
attributes:
- *project
- *location
- &target_association
parameter_name: targetAssociationsId
attribute_name: target_association
help: Id of the targetAssociation.