Skip to content

Commit 4795f26

Browse files
feat: [google-cloud-config] Add support for opt-in debug logging (googleapis#13339)
BEGIN_COMMIT_OVERRIDE feat: Add support for opt-in debug logging fix: Fix typing issue with gRPC metadata when key ends in -bin chore: Update gapic-generator-python to v1.21.0 feat: added annotations docs: Service Account is a required field fix: Changed field behavior for an existing field `service_account` in message `.google.cloud.config.v1.Deployment` fix: Changed field behavior for an existing field `service_account` in message `.google.cloud.config.v1.Preview` END_COMMIT_OVERRIDE - [ ] Regenerate this pull request now. fix: Fix typing issue with gRPC metadata when key ends in -bin chore: Update gapic-generator-python to v1.21.0 PiperOrigin-RevId: 705285820 Source-Link: googleapis/googleapis@f9b8b91 Source-Link: https://github.com/googleapis/googleapis-gen/commit/ca1e0a1e472d6e6f5de883a5cb54724f112ce348 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWNvbmZpZy8uT3dsQm90LnlhbWwiLCJoIjoiY2ExZTBhMWU0NzJkNmU2ZjVkZTg4M2E1Y2I1NDcyNGYxMTJjZTM0OCJ9 BEGIN_NESTED_COMMIT feat: [google-cloud-config] added annotations docs: Service Account is a required field fix: Changed field behavior for an existing field `service_account` in message `.google.cloud.config.v1.Deployment` fix: Changed field behavior for an existing field `service_account` in message `.google.cloud.config.v1.Preview` PiperOrigin-RevId: 705212738 Source-Link: googleapis/googleapis@c46c4ec Source-Link: https://github.com/googleapis/googleapis-gen/commit/b3a85723b14ae1346323e43515c36a6904e18c3e Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWNvbmZpZy8uT3dsQm90LnlhbWwiLCJoIjoiYjNhODU3MjNiMTRhZTEzNDYzMjNlNDM1MTVjMzZhNjkwNGUxOGMzZSJ9 END_NESTED_COMMIT --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: ohmayr <omairnaveed@ymail.com>
1 parent 917e8d3 commit 4795f26

File tree

13 files changed

+2725
-529
lines changed

13 files changed

+2725
-529
lines changed

packages/google-cloud-config/google/cloud/config/gapic_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
__version__ = "0.1.13" # {x-release-please-version}
16+
__version__ = "0.0.0" # {x-release-please-version}

packages/google-cloud-config/google/cloud/config_v1/gapic_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
__version__ = "0.1.13" # {x-release-please-version}
16+
__version__ = "0.0.0" # {x-release-please-version}

packages/google-cloud-config/google/cloud/config_v1/services/config/async_client.py

Lines changed: 194 additions & 97 deletions
Large diffs are not rendered by default.

packages/google-cloud-config/google/cloud/config_v1/services/config/client.py

Lines changed: 199 additions & 97 deletions
Large diffs are not rendered by default.

packages/google-cloud-config/google/cloud/config_v1/services/config/pagers.py

Lines changed: 50 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def __init__(
6767
*,
6868
retry: OptionalRetry = gapic_v1.method.DEFAULT,
6969
timeout: Union[float, object] = gapic_v1.method.DEFAULT,
70-
metadata: Sequence[Tuple[str, str]] = ()
70+
metadata: Sequence[Tuple[str, Union[str, bytes]]] = ()
7171
):
7272
"""Instantiate the pager.
7373
@@ -81,8 +81,10 @@ def __init__(
8181
retry (google.api_core.retry.Retry): Designation of what errors,
8282
if any, should be retried.
8383
timeout (float): The timeout for this request.
84-
metadata (Sequence[Tuple[str, str]]): Strings which should be
85-
sent along with the request as metadata.
84+
metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
85+
sent along with the request as metadata. Normally, each value must be of type `str`,
86+
but for metadata keys ending with the suffix `-bin`, the corresponding values must
87+
be of type `bytes`.
8688
"""
8789
self._method = method
8890
self._request = config.ListDeploymentsRequest(request)
@@ -141,7 +143,7 @@ def __init__(
141143
*,
142144
retry: OptionalAsyncRetry = gapic_v1.method.DEFAULT,
143145
timeout: Union[float, object] = gapic_v1.method.DEFAULT,
144-
metadata: Sequence[Tuple[str, str]] = ()
146+
metadata: Sequence[Tuple[str, Union[str, bytes]]] = ()
145147
):
146148
"""Instantiates the pager.
147149
@@ -155,8 +157,10 @@ def __init__(
155157
retry (google.api_core.retry.AsyncRetry): Designation of what errors,
156158
if any, should be retried.
157159
timeout (float): The timeout for this request.
158-
metadata (Sequence[Tuple[str, str]]): Strings which should be
159-
sent along with the request as metadata.
160+
metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
161+
sent along with the request as metadata. Normally, each value must be of type `str`,
162+
but for metadata keys ending with the suffix `-bin`, the corresponding values must
163+
be of type `bytes`.
160164
"""
161165
self._method = method
162166
self._request = config.ListDeploymentsRequest(request)
@@ -219,7 +223,7 @@ def __init__(
219223
*,
220224
retry: OptionalRetry = gapic_v1.method.DEFAULT,
221225
timeout: Union[float, object] = gapic_v1.method.DEFAULT,
222-
metadata: Sequence[Tuple[str, str]] = ()
226+
metadata: Sequence[Tuple[str, Union[str, bytes]]] = ()
223227
):
224228
"""Instantiate the pager.
225229
@@ -233,8 +237,10 @@ def __init__(
233237
retry (google.api_core.retry.Retry): Designation of what errors,
234238
if any, should be retried.
235239
timeout (float): The timeout for this request.
236-
metadata (Sequence[Tuple[str, str]]): Strings which should be
237-
sent along with the request as metadata.
240+
metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
241+
sent along with the request as metadata. Normally, each value must be of type `str`,
242+
but for metadata keys ending with the suffix `-bin`, the corresponding values must
243+
be of type `bytes`.
238244
"""
239245
self._method = method
240246
self._request = config.ListRevisionsRequest(request)
@@ -293,7 +299,7 @@ def __init__(
293299
*,
294300
retry: OptionalAsyncRetry = gapic_v1.method.DEFAULT,
295301
timeout: Union[float, object] = gapic_v1.method.DEFAULT,
296-
metadata: Sequence[Tuple[str, str]] = ()
302+
metadata: Sequence[Tuple[str, Union[str, bytes]]] = ()
297303
):
298304
"""Instantiates the pager.
299305
@@ -307,8 +313,10 @@ def __init__(
307313
retry (google.api_core.retry.AsyncRetry): Designation of what errors,
308314
if any, should be retried.
309315
timeout (float): The timeout for this request.
310-
metadata (Sequence[Tuple[str, str]]): Strings which should be
311-
sent along with the request as metadata.
316+
metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
317+
sent along with the request as metadata. Normally, each value must be of type `str`,
318+
but for metadata keys ending with the suffix `-bin`, the corresponding values must
319+
be of type `bytes`.
312320
"""
313321
self._method = method
314322
self._request = config.ListRevisionsRequest(request)
@@ -371,7 +379,7 @@ def __init__(
371379
*,
372380
retry: OptionalRetry = gapic_v1.method.DEFAULT,
373381
timeout: Union[float, object] = gapic_v1.method.DEFAULT,
374-
metadata: Sequence[Tuple[str, str]] = ()
382+
metadata: Sequence[Tuple[str, Union[str, bytes]]] = ()
375383
):
376384
"""Instantiate the pager.
377385
@@ -385,8 +393,10 @@ def __init__(
385393
retry (google.api_core.retry.Retry): Designation of what errors,
386394
if any, should be retried.
387395
timeout (float): The timeout for this request.
388-
metadata (Sequence[Tuple[str, str]]): Strings which should be
389-
sent along with the request as metadata.
396+
metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
397+
sent along with the request as metadata. Normally, each value must be of type `str`,
398+
but for metadata keys ending with the suffix `-bin`, the corresponding values must
399+
be of type `bytes`.
390400
"""
391401
self._method = method
392402
self._request = config.ListResourcesRequest(request)
@@ -445,7 +455,7 @@ def __init__(
445455
*,
446456
retry: OptionalAsyncRetry = gapic_v1.method.DEFAULT,
447457
timeout: Union[float, object] = gapic_v1.method.DEFAULT,
448-
metadata: Sequence[Tuple[str, str]] = ()
458+
metadata: Sequence[Tuple[str, Union[str, bytes]]] = ()
449459
):
450460
"""Instantiates the pager.
451461
@@ -459,8 +469,10 @@ def __init__(
459469
retry (google.api_core.retry.AsyncRetry): Designation of what errors,
460470
if any, should be retried.
461471
timeout (float): The timeout for this request.
462-
metadata (Sequence[Tuple[str, str]]): Strings which should be
463-
sent along with the request as metadata.
472+
metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
473+
sent along with the request as metadata. Normally, each value must be of type `str`,
474+
but for metadata keys ending with the suffix `-bin`, the corresponding values must
475+
be of type `bytes`.
464476
"""
465477
self._method = method
466478
self._request = config.ListResourcesRequest(request)
@@ -523,7 +535,7 @@ def __init__(
523535
*,
524536
retry: OptionalRetry = gapic_v1.method.DEFAULT,
525537
timeout: Union[float, object] = gapic_v1.method.DEFAULT,
526-
metadata: Sequence[Tuple[str, str]] = ()
538+
metadata: Sequence[Tuple[str, Union[str, bytes]]] = ()
527539
):
528540
"""Instantiate the pager.
529541
@@ -537,8 +549,10 @@ def __init__(
537549
retry (google.api_core.retry.Retry): Designation of what errors,
538550
if any, should be retried.
539551
timeout (float): The timeout for this request.
540-
metadata (Sequence[Tuple[str, str]]): Strings which should be
541-
sent along with the request as metadata.
552+
metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
553+
sent along with the request as metadata. Normally, each value must be of type `str`,
554+
but for metadata keys ending with the suffix `-bin`, the corresponding values must
555+
be of type `bytes`.
542556
"""
543557
self._method = method
544558
self._request = config.ListPreviewsRequest(request)
@@ -597,7 +611,7 @@ def __init__(
597611
*,
598612
retry: OptionalAsyncRetry = gapic_v1.method.DEFAULT,
599613
timeout: Union[float, object] = gapic_v1.method.DEFAULT,
600-
metadata: Sequence[Tuple[str, str]] = ()
614+
metadata: Sequence[Tuple[str, Union[str, bytes]]] = ()
601615
):
602616
"""Instantiates the pager.
603617
@@ -611,8 +625,10 @@ def __init__(
611625
retry (google.api_core.retry.AsyncRetry): Designation of what errors,
612626
if any, should be retried.
613627
timeout (float): The timeout for this request.
614-
metadata (Sequence[Tuple[str, str]]): Strings which should be
615-
sent along with the request as metadata.
628+
metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
629+
sent along with the request as metadata. Normally, each value must be of type `str`,
630+
but for metadata keys ending with the suffix `-bin`, the corresponding values must
631+
be of type `bytes`.
616632
"""
617633
self._method = method
618634
self._request = config.ListPreviewsRequest(request)
@@ -675,7 +691,7 @@ def __init__(
675691
*,
676692
retry: OptionalRetry = gapic_v1.method.DEFAULT,
677693
timeout: Union[float, object] = gapic_v1.method.DEFAULT,
678-
metadata: Sequence[Tuple[str, str]] = ()
694+
metadata: Sequence[Tuple[str, Union[str, bytes]]] = ()
679695
):
680696
"""Instantiate the pager.
681697
@@ -689,8 +705,10 @@ def __init__(
689705
retry (google.api_core.retry.Retry): Designation of what errors,
690706
if any, should be retried.
691707
timeout (float): The timeout for this request.
692-
metadata (Sequence[Tuple[str, str]]): Strings which should be
693-
sent along with the request as metadata.
708+
metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
709+
sent along with the request as metadata. Normally, each value must be of type `str`,
710+
but for metadata keys ending with the suffix `-bin`, the corresponding values must
711+
be of type `bytes`.
694712
"""
695713
self._method = method
696714
self._request = config.ListTerraformVersionsRequest(request)
@@ -749,7 +767,7 @@ def __init__(
749767
*,
750768
retry: OptionalAsyncRetry = gapic_v1.method.DEFAULT,
751769
timeout: Union[float, object] = gapic_v1.method.DEFAULT,
752-
metadata: Sequence[Tuple[str, str]] = ()
770+
metadata: Sequence[Tuple[str, Union[str, bytes]]] = ()
753771
):
754772
"""Instantiates the pager.
755773
@@ -763,8 +781,10 @@ def __init__(
763781
retry (google.api_core.retry.AsyncRetry): Designation of what errors,
764782
if any, should be retried.
765783
timeout (float): The timeout for this request.
766-
metadata (Sequence[Tuple[str, str]]): Strings which should be
767-
sent along with the request as metadata.
784+
metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
785+
sent along with the request as metadata. Normally, each value must be of type `str`,
786+
but for metadata keys ending with the suffix `-bin`, the corresponding values must
787+
be of type `bytes`.
768788
"""
769789
self._method = method
770790
self._request = config.ListTerraformVersionsRequest(request)

0 commit comments

Comments
 (0)