google-cloud-securesourcemanager 0.4.0__tar.gz → 0.5.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. {google_cloud_securesourcemanager-0.4.0/google_cloud_securesourcemanager.egg-info → google_cloud_securesourcemanager-0.5.0}/PKG-INFO +1 -1
  2. {google_cloud_securesourcemanager-0.4.0 → google_cloud_securesourcemanager-0.5.0}/google/cloud/securesourcemanager/gapic_version.py +1 -1
  3. {google_cloud_securesourcemanager-0.4.0 → google_cloud_securesourcemanager-0.5.0}/google/cloud/securesourcemanager_v1/gapic_version.py +1 -1
  4. {google_cloud_securesourcemanager-0.4.0 → google_cloud_securesourcemanager-0.5.0}/google/cloud/securesourcemanager_v1/services/secure_source_manager/async_client.py +4 -4
  5. {google_cloud_securesourcemanager-0.4.0 → google_cloud_securesourcemanager-0.5.0}/google/cloud/securesourcemanager_v1/services/secure_source_manager/client.py +4 -4
  6. {google_cloud_securesourcemanager-0.4.0 → google_cloud_securesourcemanager-0.5.0}/google/cloud/securesourcemanager_v1/services/secure_source_manager/transports/grpc.py +2 -2
  7. {google_cloud_securesourcemanager-0.4.0 → google_cloud_securesourcemanager-0.5.0}/google/cloud/securesourcemanager_v1/services/secure_source_manager/transports/grpc_asyncio.py +2 -2
  8. {google_cloud_securesourcemanager-0.4.0 → google_cloud_securesourcemanager-0.5.0}/google/cloud/securesourcemanager_v1/services/secure_source_manager/transports/rest_base.py +2 -6
  9. {google_cloud_securesourcemanager-0.4.0 → google_cloud_securesourcemanager-0.5.0}/google/cloud/securesourcemanager_v1/types/secure_source_manager.py +117 -47
  10. {google_cloud_securesourcemanager-0.4.0 → google_cloud_securesourcemanager-0.5.0/google_cloud_securesourcemanager.egg-info}/PKG-INFO +1 -1
  11. {google_cloud_securesourcemanager-0.4.0 → google_cloud_securesourcemanager-0.5.0}/tests/unit/gapic/securesourcemanager_v1/test_secure_source_manager.py +32 -21
  12. {google_cloud_securesourcemanager-0.4.0 → google_cloud_securesourcemanager-0.5.0}/LICENSE +0 -0
  13. {google_cloud_securesourcemanager-0.4.0 → google_cloud_securesourcemanager-0.5.0}/MANIFEST.in +0 -0
  14. {google_cloud_securesourcemanager-0.4.0 → google_cloud_securesourcemanager-0.5.0}/README.rst +0 -0
  15. {google_cloud_securesourcemanager-0.4.0 → google_cloud_securesourcemanager-0.5.0}/google/cloud/securesourcemanager/__init__.py +0 -0
  16. {google_cloud_securesourcemanager-0.4.0 → google_cloud_securesourcemanager-0.5.0}/google/cloud/securesourcemanager/py.typed +0 -0
  17. {google_cloud_securesourcemanager-0.4.0 → google_cloud_securesourcemanager-0.5.0}/google/cloud/securesourcemanager_v1/__init__.py +0 -0
  18. {google_cloud_securesourcemanager-0.4.0 → google_cloud_securesourcemanager-0.5.0}/google/cloud/securesourcemanager_v1/gapic_metadata.json +0 -0
  19. {google_cloud_securesourcemanager-0.4.0 → google_cloud_securesourcemanager-0.5.0}/google/cloud/securesourcemanager_v1/py.typed +0 -0
  20. {google_cloud_securesourcemanager-0.4.0 → google_cloud_securesourcemanager-0.5.0}/google/cloud/securesourcemanager_v1/services/__init__.py +0 -0
  21. {google_cloud_securesourcemanager-0.4.0 → google_cloud_securesourcemanager-0.5.0}/google/cloud/securesourcemanager_v1/services/secure_source_manager/__init__.py +0 -0
  22. {google_cloud_securesourcemanager-0.4.0 → google_cloud_securesourcemanager-0.5.0}/google/cloud/securesourcemanager_v1/services/secure_source_manager/pagers.py +0 -0
  23. {google_cloud_securesourcemanager-0.4.0 → google_cloud_securesourcemanager-0.5.0}/google/cloud/securesourcemanager_v1/services/secure_source_manager/transports/__init__.py +0 -0
  24. {google_cloud_securesourcemanager-0.4.0 → google_cloud_securesourcemanager-0.5.0}/google/cloud/securesourcemanager_v1/services/secure_source_manager/transports/base.py +0 -0
  25. {google_cloud_securesourcemanager-0.4.0 → google_cloud_securesourcemanager-0.5.0}/google/cloud/securesourcemanager_v1/services/secure_source_manager/transports/rest.py +0 -0
  26. {google_cloud_securesourcemanager-0.4.0 → google_cloud_securesourcemanager-0.5.0}/google/cloud/securesourcemanager_v1/types/__init__.py +0 -0
  27. {google_cloud_securesourcemanager-0.4.0 → google_cloud_securesourcemanager-0.5.0}/google_cloud_securesourcemanager.egg-info/SOURCES.txt +0 -0
  28. {google_cloud_securesourcemanager-0.4.0 → google_cloud_securesourcemanager-0.5.0}/google_cloud_securesourcemanager.egg-info/dependency_links.txt +0 -0
  29. {google_cloud_securesourcemanager-0.4.0 → google_cloud_securesourcemanager-0.5.0}/google_cloud_securesourcemanager.egg-info/not-zip-safe +0 -0
  30. {google_cloud_securesourcemanager-0.4.0 → google_cloud_securesourcemanager-0.5.0}/google_cloud_securesourcemanager.egg-info/requires.txt +0 -0
  31. {google_cloud_securesourcemanager-0.4.0 → google_cloud_securesourcemanager-0.5.0}/google_cloud_securesourcemanager.egg-info/top_level.txt +0 -0
  32. {google_cloud_securesourcemanager-0.4.0 → google_cloud_securesourcemanager-0.5.0}/setup.cfg +0 -0
  33. {google_cloud_securesourcemanager-0.4.0 → google_cloud_securesourcemanager-0.5.0}/setup.py +0 -0
  34. {google_cloud_securesourcemanager-0.4.0 → google_cloud_securesourcemanager-0.5.0}/tests/__init__.py +0 -0
  35. {google_cloud_securesourcemanager-0.4.0 → google_cloud_securesourcemanager-0.5.0}/tests/unit/__init__.py +0 -0
  36. {google_cloud_securesourcemanager-0.4.0 → google_cloud_securesourcemanager-0.5.0}/tests/unit/gapic/__init__.py +0 -0
  37. {google_cloud_securesourcemanager-0.4.0 → google_cloud_securesourcemanager-0.5.0}/tests/unit/gapic/securesourcemanager_v1/__init__.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: google-cloud-securesourcemanager
3
- Version: 0.4.0
3
+ Version: 0.5.0
4
4
  Summary: Google Cloud Securesourcemanager API client library
5
5
  Home-page: https://github.com/googleapis/google-cloud-python/tree/main/packages/google-cloud-securesourcemanager
6
6
  Author: Google LLC
@@ -13,4 +13,4 @@
13
13
  # See the License for the specific language governing permissions and
14
14
  # limitations under the License.
15
15
  #
16
- __version__ = "0.4.0" # {x-release-please-version}
16
+ __version__ = "0.5.0" # {x-release-please-version}
@@ -13,4 +13,4 @@
13
13
  # See the License for the specific language governing permissions and
14
14
  # limitations under the License.
15
15
  #
16
- __version__ = "0.4.0" # {x-release-please-version}
16
+ __version__ = "0.5.0" # {x-release-please-version}
@@ -1992,7 +1992,7 @@ class SecureSourceManagerAsyncClient:
1992
1992
  on the ``request`` instance; if ``request`` is provided, this
1993
1993
  should not be set.
1994
1994
  update_mask (:class:`google.protobuf.field_mask_pb2.FieldMask`):
1995
- Required. Field mask is used to specify the fields to be
1995
+ Optional. Field mask is used to specify the fields to be
1996
1996
  overwritten in the hook resource by the update. The
1997
1997
  fields specified in the update_mask are relative to the
1998
1998
  resource, not the full request. A field will be
@@ -3039,7 +3039,7 @@ class SecureSourceManagerAsyncClient:
3039
3039
  on the ``request`` instance; if ``request`` is provided, this
3040
3040
  should not be set.
3041
3041
  update_mask (:class:`google.protobuf.field_mask_pb2.FieldMask`):
3042
- Required. Field mask is used to specify the fields to be
3042
+ Optional. Field mask is used to specify the fields to be
3043
3043
  overwritten in the branchRule resource by the update.
3044
3044
  The fields specified in the update_mask are relative to
3045
3045
  the resource, not the full request. A field will be
@@ -6099,8 +6099,8 @@ class SecureSourceManagerAsyncClient:
6099
6099
  used to create multiple PullRequestComments for code
6100
6100
  review. There needs to be exactly one PullRequestComment
6101
6101
  of type Review, and at most 100 PullRequestComments of
6102
- type Code per request. The Postition of the code
6103
- comments must be unique within the request.
6102
+ type Code per request. The Position of the code comments
6103
+ must be unique within the request.
6104
6104
 
6105
6105
  .. code-block:: python
6106
6106
 
@@ -2593,7 +2593,7 @@ class SecureSourceManagerClient(metaclass=SecureSourceManagerClientMeta):
2593
2593
  on the ``request`` instance; if ``request`` is provided, this
2594
2594
  should not be set.
2595
2595
  update_mask (google.protobuf.field_mask_pb2.FieldMask):
2596
- Required. Field mask is used to specify the fields to be
2596
+ Optional. Field mask is used to specify the fields to be
2597
2597
  overwritten in the hook resource by the update. The
2598
2598
  fields specified in the update_mask are relative to the
2599
2599
  resource, not the full request. A field will be
@@ -3630,7 +3630,7 @@ class SecureSourceManagerClient(metaclass=SecureSourceManagerClientMeta):
3630
3630
  on the ``request`` instance; if ``request`` is provided, this
3631
3631
  should not be set.
3632
3632
  update_mask (google.protobuf.field_mask_pb2.FieldMask):
3633
- Required. Field mask is used to specify the fields to be
3633
+ Optional. Field mask is used to specify the fields to be
3634
3634
  overwritten in the branchRule resource by the update.
3635
3635
  The fields specified in the update_mask are relative to
3636
3636
  the resource, not the full request. A field will be
@@ -6630,8 +6630,8 @@ class SecureSourceManagerClient(metaclass=SecureSourceManagerClientMeta):
6630
6630
  used to create multiple PullRequestComments for code
6631
6631
  review. There needs to be exactly one PullRequestComment
6632
6632
  of type Review, and at most 100 PullRequestComments of
6633
- type Code per request. The Postition of the code
6634
- comments must be unique within the request.
6633
+ type Code per request. The Position of the code comments
6634
+ must be unique within the request.
6635
6635
 
6636
6636
  .. code-block:: python
6637
6637
 
@@ -1617,8 +1617,8 @@ class SecureSourceManagerGrpcTransport(SecureSourceManagerTransport):
1617
1617
  used to create multiple PullRequestComments for code
1618
1618
  review. There needs to be exactly one PullRequestComment
1619
1619
  of type Review, and at most 100 PullRequestComments of
1620
- type Code per request. The Postition of the code
1621
- comments must be unique within the request.
1620
+ type Code per request. The Position of the code comments
1621
+ must be unique within the request.
1622
1622
 
1623
1623
  Returns:
1624
1624
  Callable[[~.BatchCreatePullRequestCommentsRequest],
@@ -1662,8 +1662,8 @@ class SecureSourceManagerGrpcAsyncIOTransport(SecureSourceManagerTransport):
1662
1662
  used to create multiple PullRequestComments for code
1663
1663
  review. There needs to be exactly one PullRequestComment
1664
1664
  of type Review, and at most 100 PullRequestComments of
1665
- type Code per request. The Postition of the code
1666
- comments must be unique within the request.
1665
+ type Code per request. The Position of the code comments
1666
+ must be unique within the request.
1667
1667
 
1668
1668
  Returns:
1669
1669
  Callable[[~.BatchCreatePullRequestCommentsRequest],
@@ -2418,9 +2418,7 @@ class _BaseSecureSourceManagerRestTransport(SecureSourceManagerTransport):
2418
2418
  def __hash__(self): # pragma: NO COVER
2419
2419
  return NotImplementedError("__hash__ must be implemented.")
2420
2420
 
2421
- __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {
2422
- "updateMask": {},
2423
- }
2421
+ __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}
2424
2422
 
2425
2423
  @classmethod
2426
2424
  def _get_unset_required_fields(cls, message_dict):
@@ -2477,9 +2475,7 @@ class _BaseSecureSourceManagerRestTransport(SecureSourceManagerTransport):
2477
2475
  def __hash__(self): # pragma: NO COVER
2478
2476
  return NotImplementedError("__hash__ must be implemented.")
2479
2477
 
2480
- __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {
2481
- "updateMask": {},
2482
- }
2478
+ __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}
2483
2479
 
2484
2480
  @classmethod
2485
2481
  def _get_unset_required_fields(cls, message_dict):
@@ -107,7 +107,7 @@ class Instance(proto.Message):
107
107
 
108
108
  Attributes:
109
109
  name (str):
110
- Optional. A unique identifier for an instance. The name
110
+ Identifier. A unique identifier for an instance. The name
111
111
  should be of the format:
112
112
  ``projects/{project_number}/locations/{location_id}/instances/{instance_id}``
113
113
 
@@ -125,7 +125,11 @@ class Instance(proto.Message):
125
125
  update_time (google.protobuf.timestamp_pb2.Timestamp):
126
126
  Output only. Update timestamp.
127
127
  labels (MutableMapping[str, str]):
128
- Optional. Labels as key value pairs.
128
+ Optional. Labels as key value pairs. Keys and values can
129
+ contain only lowercase letters, numeric characters,
130
+ underscores, and dashes. For more information, see
131
+ `Requirements for
132
+ labels <https://cloud.google.com/resource-manager/docs/best-practices-labels#label_encoding>`__.
129
133
  private_config (google.cloud.securesourcemanager_v1.types.Instance.PrivateConfig):
130
134
  Optional. Private settings for private
131
135
  instance.
@@ -247,8 +251,50 @@ class Instance(proto.Message):
247
251
  setting up PSC connections. Instance host
248
252
  project is automatically allowed and does not
249
253
  need to be included in this list.
254
+ custom_host_config (google.cloud.securesourcemanager_v1.types.Instance.PrivateConfig.CustomHostConfig):
255
+ Optional. Custom host config for the
256
+ instance.
250
257
  """
251
258
 
259
+ class CustomHostConfig(proto.Message):
260
+ r"""Custom host config for the instance.
261
+
262
+ Attributes:
263
+ html (str):
264
+ Required. The custom UI hostname for the
265
+ instance, e.g.,
266
+ "git.source.internal.mycompany.com".
267
+ api (str):
268
+ Required. The custom API hostname for the
269
+ instance, e.g.,
270
+ "api.source.internal.mycompany.com".
271
+ git_ssh (str):
272
+ Required. The custom git ssh hostname for the
273
+ instance, e.g.,
274
+ "ssh.source.internal.mycompany.com".
275
+ git_http (str):
276
+ Required. The custom git http hostname for
277
+ the instance, e.g.,
278
+ "git.source.internal.mycompany.com".
279
+ """
280
+
281
+ html: str = proto.Field(
282
+ proto.STRING,
283
+ number=1,
284
+ )
285
+ api: str = proto.Field(
286
+ proto.STRING,
287
+ number=2,
288
+ )
289
+ git_ssh: str = proto.Field(
290
+ proto.STRING,
291
+ number=3,
292
+ )
293
+ git_http: str = proto.Field(
294
+ proto.STRING,
295
+ number=4,
296
+ )
297
+
252
298
  is_private: bool = proto.Field(
253
299
  proto.BOOL,
254
300
  number=1,
@@ -269,6 +315,11 @@ class Instance(proto.Message):
269
315
  proto.STRING,
270
316
  number=6,
271
317
  )
318
+ custom_host_config: "Instance.PrivateConfig.CustomHostConfig" = proto.Field(
319
+ proto.MESSAGE,
320
+ number=7,
321
+ message="Instance.PrivateConfig.CustomHostConfig",
322
+ )
272
323
 
273
324
  class WorkforceIdentityFederationConfig(proto.Message):
274
325
  r"""WorkforceIdentityFederationConfig allows this instance to
@@ -342,7 +393,7 @@ class Repository(proto.Message):
342
393
 
343
394
  Attributes:
344
395
  name (str):
345
- Optional. A unique identifier for a repository. The name
396
+ Identifier. A unique identifier for a repository. The name
346
397
  should be of the format:
347
398
  ``projects/{project}/locations/{location_id}/repositories/{repository_id}``
348
399
  description (str):
@@ -787,7 +838,7 @@ class BranchRule(proto.Message):
787
838
 
788
839
  Attributes:
789
840
  name (str):
790
- Optional. A unique identifier for a BranchRule. The name
841
+ Identifier. A unique identifier for a BranchRule. The name
791
842
  should be of the format:
792
843
  ``projects/{project}/locations/{location}/repositories/{repository}/branchRules/{branch_rule}``
793
844
  uid (str):
@@ -825,6 +876,9 @@ class BranchRule(proto.Message):
825
876
  minimum_approvals_count (int):
826
877
  Optional. The minimum number of approvals
827
878
  required for the branch rule to be matched.
879
+ require_code_owner_approval (bool):
880
+ Optional. Determines if code owners must
881
+ approve before merging to the branch.
828
882
  require_comments_resolved (bool):
829
883
  Optional. Determines if require comments
830
884
  resolved before merging to the branch.
@@ -899,6 +953,10 @@ class BranchRule(proto.Message):
899
953
  proto.INT32,
900
954
  number=11,
901
955
  )
956
+ require_code_owner_approval: bool = proto.Field(
957
+ proto.BOOL,
958
+ number=16,
959
+ )
902
960
  require_comments_resolved: bool = proto.Field(
903
961
  proto.BOOL,
904
962
  number=12,
@@ -924,9 +982,9 @@ class PullRequest(proto.Message):
924
982
 
925
983
  Attributes:
926
984
  name (str):
927
- Output only. A unique identifier for a PullRequest. The
928
- number appended at the end is generated by the server.
929
- Format:
985
+ Output only. Identifier. A unique identifier for a
986
+ PullRequest. The number appended at the end is generated by
987
+ the server. Format:
930
988
  ``projects/{project}/locations/{location}/repositories/{repository}/pullRequests/{pull_request_id}``
931
989
  title (str):
932
990
  Required. The pull request title.
@@ -1412,16 +1470,17 @@ class ListInstancesRequest(proto.Message):
1412
1470
  Required. Parent value for
1413
1471
  ListInstancesRequest.
1414
1472
  page_size (int):
1415
- Requested page size. Server may return fewer
1416
- items than requested. If unspecified, server
1417
- will pick an appropriate default.
1473
+ Optional. Requested page size. Server may
1474
+ return fewer items than requested. If
1475
+ unspecified, server will pick an appropriate
1476
+ default.
1418
1477
  page_token (str):
1419
- A token identifying a page of results the
1420
- server should return.
1478
+ Optional. A token identifying a page of
1479
+ results the server should return.
1421
1480
  filter (str):
1422
- Filter for filtering results.
1481
+ Optional. Filter for filtering results.
1423
1482
  order_by (str):
1424
- Hint for how to order the results.
1483
+ Optional. Hint for how to order the results.
1425
1484
  """
1426
1485
 
1427
1486
  parent: str = proto.Field(
@@ -1571,6 +1630,9 @@ class DeleteInstanceRequest(proto.Message):
1571
1630
  The request ID must be a valid UUID with the
1572
1631
  exception that zero UUID is not supported
1573
1632
  (00000000-0000-0000-0000-000000000000).
1633
+ force (bool):
1634
+ Optional. If set to true, will force the
1635
+ deletion of the instance.
1574
1636
  """
1575
1637
 
1576
1638
  name: str = proto.Field(
@@ -1581,6 +1643,10 @@ class DeleteInstanceRequest(proto.Message):
1581
1643
  proto.STRING,
1582
1644
  number=2,
1583
1645
  )
1646
+ force: bool = proto.Field(
1647
+ proto.BOOL,
1648
+ number=3,
1649
+ )
1584
1650
 
1585
1651
 
1586
1652
  class OperationMetadata(proto.Message):
@@ -1654,13 +1720,13 @@ class ListRepositoriesRequest(proto.Message):
1654
1720
  Required. Parent value for
1655
1721
  ListRepositoriesRequest.
1656
1722
  page_size (int):
1657
- Optional. Requested page size. Server may
1658
- return fewer items than requested. If
1659
- unspecified, server will pick an appropriate
1660
- default.
1723
+ Optional. Requested page size. If
1724
+ unspecified, a default size of 30 will be used.
1725
+ The maximum value is 100; values above 100 will
1726
+ be coerced to 100.
1661
1727
  page_token (str):
1662
- A token identifying a page of results the
1663
- server should return.
1728
+ Optional. A token identifying a page of
1729
+ results the server should return.
1664
1730
  filter (str):
1665
1731
  Optional. Filter results.
1666
1732
  instance (str):
@@ -1837,10 +1903,10 @@ class ListHooksRequest(proto.Message):
1837
1903
  parent (str):
1838
1904
  Required. Parent value for ListHooksRequest.
1839
1905
  page_size (int):
1840
- Optional. Requested page size. Server may
1841
- return fewer items than requested. If
1842
- unspecified, server will pick an appropriate
1843
- default.
1906
+ Optional. Requested page size. If
1907
+ unspecified, a default size of 30 will be used.
1908
+ The maximum value is 100; values above 100 will
1909
+ be coerced to 100.
1844
1910
  page_token (str):
1845
1911
  Optional. A token identifying a page of
1846
1912
  results the server should return.
@@ -1940,7 +2006,7 @@ class UpdateHookRequest(proto.Message):
1940
2006
 
1941
2007
  Attributes:
1942
2008
  update_mask (google.protobuf.field_mask_pb2.FieldMask):
1943
- Required. Field mask is used to specify the fields to be
2009
+ Optional. Field mask is used to specify the fields to be
1944
2010
  overwritten in the hook resource by the update. The fields
1945
2011
  specified in the update_mask are relative to the resource,
1946
2012
  not the full request. A field will be overwritten if it is
@@ -2027,9 +2093,13 @@ class ListBranchRulesRequest(proto.Message):
2027
2093
  parent (str):
2028
2094
 
2029
2095
  page_size (int):
2030
-
2096
+ Optional. Requested page size. If
2097
+ unspecified, a default size of 30 will be used.
2098
+ The maximum value is 100; values above 100 will
2099
+ be coerced to 100.
2031
2100
  page_token (str):
2032
-
2101
+ Optional. A token identifying a page of
2102
+ results the server should return.
2033
2103
  """
2034
2104
 
2035
2105
  parent: str = proto.Field(
@@ -2082,7 +2152,7 @@ class UpdateBranchRuleRequest(proto.Message):
2082
2152
  (https://google.aip.dev/163, for declarative
2083
2153
  friendly)
2084
2154
  update_mask (google.protobuf.field_mask_pb2.FieldMask):
2085
- Required. Field mask is used to specify the fields to be
2155
+ Optional. Field mask is used to specify the fields to be
2086
2156
  overwritten in the branchRule resource by the update. The
2087
2157
  fields specified in the update_mask are relative to the
2088
2158
  resource, not the full request. A field will be overwritten
@@ -2182,10 +2252,10 @@ class ListPullRequestsRequest(proto.Message):
2182
2252
  Format:
2183
2253
  ``projects/{project_number}/locations/{location_id}/repositories/{repository_id}``
2184
2254
  page_size (int):
2185
- Optional. Requested page size. Server may
2186
- return fewer items than requested. If
2187
- unspecified, server will pick an appropriate
2188
- default.
2255
+ Optional. Requested page size. If
2256
+ unspecified, a default size of 30 will be used.
2257
+ The maximum value is 100; values above 100 will
2258
+ be coerced to 100.
2189
2259
  page_token (str):
2190
2260
  Optional. A token identifying a page of
2191
2261
  results the server should return.
@@ -2316,10 +2386,10 @@ class ListPullRequestFileDiffsRequest(proto.Message):
2316
2386
  Required. The pull request to list file diffs for. Format:
2317
2387
  ``projects/{project_number}/locations/{location_id}/repositories/{repository_id}/pullRequests/{pull_request_id}``
2318
2388
  page_size (int):
2319
- Optional. Requested page size. Server may
2320
- return fewer items than requested. If
2321
- unspecified, server will pick an appropriate
2322
- default.
2389
+ Optional. Requested page size. If
2390
+ unspecified, a default size of 30 will be used.
2391
+ The maximum value is 100; values above 100 will
2392
+ be coerced to 100.
2323
2393
  page_token (str):
2324
2394
  Optional. A token identifying a page of
2325
2395
  results the server should return.
@@ -2412,10 +2482,10 @@ class ListIssuesRequest(proto.Message):
2412
2482
  Required. The repository in which to list issues. Format:
2413
2483
  ``projects/{project_number}/locations/{location_id}/repositories/{repository_id}``
2414
2484
  page_size (int):
2415
- Optional. Requested page size. Server may
2416
- return fewer items than requested. If
2417
- unspecified, server will pick an appropriate
2418
- default.
2485
+ Optional. Requested page size. If
2486
+ unspecified, a default size of 30 will be used.
2487
+ The maximum value is 100; values above 100 will
2488
+ be coerced to 100.
2419
2489
  page_token (str):
2420
2490
  Optional. A token identifying a page of
2421
2491
  results the server should return.
@@ -2762,9 +2832,9 @@ class ListPullRequestCommentsRequest(proto.Message):
2762
2832
  ``projects/{project_number}/locations/{location_id}/repositories/{repository_id}/pullRequests/{pull_request_id}``
2763
2833
  page_size (int):
2764
2834
  Optional. Requested page size. If
2765
- unspecified, at most 100 pull request comments
2766
- will be returned. The maximum value is 100;
2767
- values above 100 will be coerced to 100.
2835
+ unspecified, a default size of 30 will be used.
2836
+ The maximum value is 100; values above 100 will
2837
+ be coerced to 100.
2768
2838
  page_token (str):
2769
2839
  Optional. A token identifying a page of
2770
2840
  results the server should return.
@@ -3082,10 +3152,10 @@ class ListIssueCommentsRequest(proto.Message):
3082
3152
  Required. The issue in which to list the comments. Format:
3083
3153
  ``projects/{project_number}/locations/{location_id}/repositories/{repository_id}/issues/{issue_id}``
3084
3154
  page_size (int):
3085
- Optional. Requested page size. Server may
3086
- return fewer items than requested. If
3087
- unspecified, server will pick an appropriate
3088
- default.
3155
+ Optional. Requested page size. If
3156
+ unspecified, a default size of 30 will be used.
3157
+ The maximum value is 100; values above 100 will
3158
+ be coerced to 100.
3089
3159
  page_token (str):
3090
3160
  Optional. A token identifying a page of
3091
3161
  results the server should return.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: google-cloud-securesourcemanager
3
- Version: 0.4.0
3
+ Version: 0.5.0
4
4
  Summary: Google Cloud Securesourcemanager API client library
5
5
  Home-page: https://github.com/googleapis/google-cloud-python/tree/main/packages/google-cloud-securesourcemanager
6
6
  Author: Google LLC
@@ -2308,7 +2308,6 @@ def test_create_instance_non_empty_request_with_auto_populated_field():
2308
2308
  request = secure_source_manager.CreateInstanceRequest(
2309
2309
  parent="parent_value",
2310
2310
  instance_id="instance_id_value",
2311
- request_id="request_id_value",
2312
2311
  )
2313
2312
 
2314
2313
  # Mock the actual call within the gRPC stub, and fake the request.
@@ -2322,7 +2321,6 @@ def test_create_instance_non_empty_request_with_auto_populated_field():
2322
2321
  assert args[0] == secure_source_manager.CreateInstanceRequest(
2323
2322
  parent="parent_value",
2324
2323
  instance_id="instance_id_value",
2325
- request_id="request_id_value",
2326
2324
  )
2327
2325
 
2328
2326
 
@@ -2659,7 +2657,6 @@ def test_delete_instance_non_empty_request_with_auto_populated_field():
2659
2657
  # if they meet the requirements of AIP 4235.
2660
2658
  request = secure_source_manager.DeleteInstanceRequest(
2661
2659
  name="name_value",
2662
- request_id="request_id_value",
2663
2660
  )
2664
2661
 
2665
2662
  # Mock the actual call within the gRPC stub, and fake the request.
@@ -2672,7 +2669,6 @@ def test_delete_instance_non_empty_request_with_auto_populated_field():
2672
2669
  _, args, _ = call.mock_calls[0]
2673
2670
  assert args[0] == secure_source_manager.DeleteInstanceRequest(
2674
2671
  name="name_value",
2675
- request_id="request_id_value",
2676
2672
  )
2677
2673
 
2678
2674
 
@@ -8785,6 +8781,7 @@ def test_get_branch_rule(request_type, transport: str = "grpc"):
8785
8781
  require_pull_request=True,
8786
8782
  minimum_reviews_count=2280,
8787
8783
  minimum_approvals_count=2491,
8784
+ require_code_owner_approval=True,
8788
8785
  require_comments_resolved=True,
8789
8786
  allow_stale_reviews=True,
8790
8787
  require_linear_history=True,
@@ -8807,6 +8804,7 @@ def test_get_branch_rule(request_type, transport: str = "grpc"):
8807
8804
  assert response.require_pull_request is True
8808
8805
  assert response.minimum_reviews_count == 2280
8809
8806
  assert response.minimum_approvals_count == 2491
8807
+ assert response.require_code_owner_approval is True
8810
8808
  assert response.require_comments_resolved is True
8811
8809
  assert response.allow_stale_reviews is True
8812
8810
  assert response.require_linear_history is True
@@ -8944,6 +8942,7 @@ async def test_get_branch_rule_async(
8944
8942
  require_pull_request=True,
8945
8943
  minimum_reviews_count=2280,
8946
8944
  minimum_approvals_count=2491,
8945
+ require_code_owner_approval=True,
8947
8946
  require_comments_resolved=True,
8948
8947
  allow_stale_reviews=True,
8949
8948
  require_linear_history=True,
@@ -8967,6 +8966,7 @@ async def test_get_branch_rule_async(
8967
8966
  assert response.require_pull_request is True
8968
8967
  assert response.minimum_reviews_count == 2280
8969
8968
  assert response.minimum_approvals_count == 2491
8969
+ assert response.require_code_owner_approval is True
8970
8970
  assert response.require_comments_resolved is True
8971
8971
  assert response.allow_stale_reviews is True
8972
8972
  assert response.require_linear_history is True
@@ -21920,7 +21920,12 @@ def test_delete_instance_rest_required_fields(
21920
21920
  credentials=ga_credentials.AnonymousCredentials()
21921
21921
  ).delete_instance._get_unset_required_fields(jsonified_request)
21922
21922
  # Check that path parameters and body parameters are not mixing in.
21923
- assert not set(unset_fields) - set(("request_id",))
21923
+ assert not set(unset_fields) - set(
21924
+ (
21925
+ "force",
21926
+ "request_id",
21927
+ )
21928
+ )
21924
21929
  jsonified_request.update(unset_fields)
21925
21930
 
21926
21931
  # verify required fields with non-default values are left alone
@@ -21972,7 +21977,15 @@ def test_delete_instance_rest_unset_required_fields():
21972
21977
  )
21973
21978
 
21974
21979
  unset_fields = transport.delete_instance._get_unset_required_fields({})
21975
- assert set(unset_fields) == (set(("requestId",)) & set(("name",)))
21980
+ assert set(unset_fields) == (
21981
+ set(
21982
+ (
21983
+ "force",
21984
+ "requestId",
21985
+ )
21986
+ )
21987
+ & set(("name",))
21988
+ )
21976
21989
 
21977
21990
 
21978
21991
  def test_delete_instance_rest_flattened():
@@ -23827,15 +23840,7 @@ def test_update_hook_rest_unset_required_fields():
23827
23840
  )
23828
23841
 
23829
23842
  unset_fields = transport.update_hook._get_unset_required_fields({})
23830
- assert set(unset_fields) == (
23831
- set(("updateMask",))
23832
- & set(
23833
- (
23834
- "updateMask",
23835
- "hook",
23836
- )
23837
- )
23838
- )
23843
+ assert set(unset_fields) == (set(("updateMask",)) & set(("hook",)))
23839
23844
 
23840
23845
 
23841
23846
  def test_update_hook_rest_flattened():
@@ -25432,12 +25437,7 @@ def test_update_branch_rule_rest_unset_required_fields():
25432
25437
  "validateOnly",
25433
25438
  )
25434
25439
  )
25435
- & set(
25436
- (
25437
- "branchRule",
25438
- "updateMask",
25439
- )
25440
- )
25440
+ & set(("branchRule",))
25441
25441
  )
25442
25442
 
25443
25443
 
@@ -33509,6 +33509,7 @@ async def test_get_branch_rule_empty_call_grpc_asyncio():
33509
33509
  require_pull_request=True,
33510
33510
  minimum_reviews_count=2280,
33511
33511
  minimum_approvals_count=2491,
33512
+ require_code_owner_approval=True,
33512
33513
  require_comments_resolved=True,
33513
33514
  allow_stale_reviews=True,
33514
33515
  require_linear_history=True,
@@ -34740,6 +34741,12 @@ def test_create_instance_rest_call_success(request_type):
34740
34741
  "psc_allowed_projects_value1",
34741
34742
  "psc_allowed_projects_value2",
34742
34743
  ],
34744
+ "custom_host_config": {
34745
+ "html": "html_value",
34746
+ "api": "api_value",
34747
+ "git_ssh": "git_ssh_value",
34748
+ "git_http": "git_http_value",
34749
+ },
34743
34750
  },
34744
34751
  "state": 1,
34745
34752
  "state_note": 1,
@@ -37145,6 +37152,7 @@ def test_create_branch_rule_rest_call_success(request_type):
37145
37152
  "require_pull_request": True,
37146
37153
  "minimum_reviews_count": 2280,
37147
37154
  "minimum_approvals_count": 2491,
37155
+ "require_code_owner_approval": True,
37148
37156
  "require_comments_resolved": True,
37149
37157
  "allow_stale_reviews": True,
37150
37158
  "require_linear_history": True,
@@ -37499,6 +37507,7 @@ def test_get_branch_rule_rest_call_success(request_type):
37499
37507
  require_pull_request=True,
37500
37508
  minimum_reviews_count=2280,
37501
37509
  minimum_approvals_count=2491,
37510
+ require_code_owner_approval=True,
37502
37511
  require_comments_resolved=True,
37503
37512
  allow_stale_reviews=True,
37504
37513
  require_linear_history=True,
@@ -37526,6 +37535,7 @@ def test_get_branch_rule_rest_call_success(request_type):
37526
37535
  assert response.require_pull_request is True
37527
37536
  assert response.minimum_reviews_count == 2280
37528
37537
  assert response.minimum_approvals_count == 2491
37538
+ assert response.require_code_owner_approval is True
37529
37539
  assert response.require_comments_resolved is True
37530
37540
  assert response.allow_stale_reviews is True
37531
37541
  assert response.require_linear_history is True
@@ -37658,6 +37668,7 @@ def test_update_branch_rule_rest_call_success(request_type):
37658
37668
  "require_pull_request": True,
37659
37669
  "minimum_reviews_count": 2280,
37660
37670
  "minimum_approvals_count": 2491,
37671
+ "require_code_owner_approval": True,
37661
37672
  "require_comments_resolved": True,
37662
37673
  "allow_stale_reviews": True,
37663
37674
  "require_linear_history": True,