Skip to content
This repository has been archived by the owner on Sep 5, 2023. It is now read-only.

Commit

Permalink
fix: update default retry config (via synth) (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshi-automation committed Mar 9, 2020
1 parent 1b70ba3 commit 6a28717
Show file tree
Hide file tree
Showing 9 changed files with 800 additions and 814 deletions.
1,102 changes: 551 additions & 551 deletions google/cloud/securitycenter_v1/gapic/security_center_client.py

Large diffs are not rendered by default.

Expand Up @@ -10,46 +10,51 @@
"initial_retry_delay_millis": 100,
"retry_delay_multiplier": 1.3,
"max_retry_delay_millis": 60000,
"initial_rpc_timeout_millis": 20000,
"initial_rpc_timeout_millis": 480000,
"rpc_timeout_multiplier": 1.0,
"max_rpc_timeout_millis": 20000,
"max_rpc_timeout_millis": 480000,
"total_timeout_millis": 600000,
}
},
"methods": {
"CreateSource": {
"GetIamPolicy": {
"timeout_millis": 60000,
"retry_codes_name": "non_idempotent",
"retry_codes_name": "idempotent",
"retry_params_name": "default",
},
"CreateFinding": {
"GroupAssets": {
"timeout_millis": 60000,
"retry_codes_name": "non_idempotent",
"retry_codes_name": "idempotent",
"retry_params_name": "default",
},
"GetIamPolicy": {
"GroupFindings": {
"timeout_millis": 60000,
"retry_codes_name": "non_idempotent",
"retry_codes_name": "idempotent",
"retry_params_name": "default",
},
"GetOrganizationSettings": {
"TestIamPermissions": {
"timeout_millis": 60000,
"retry_codes_name": "idempotent",
"retry_params_name": "default",
},
"GetSource": {
"CreateSource": {
"timeout_millis": 60000,
"retry_codes_name": "idempotent",
"retry_codes_name": "non_idempotent",
"retry_params_name": "default",
},
"GroupAssets": {
"CreateFinding": {
"timeout_millis": 60000,
"retry_codes_name": "non_idempotent",
"retry_params_name": "default",
},
"GroupFindings": {
"GetOrganizationSettings": {
"timeout_millis": 60000,
"retry_codes_name": "non_idempotent",
"retry_codes_name": "idempotent",
"retry_params_name": "default",
},
"GetSource": {
"timeout_millis": 60000,
"retry_codes_name": "idempotent",
"retry_params_name": "default",
},
"ListAssets": {
Expand Down Expand Up @@ -82,11 +87,6 @@
"retry_codes_name": "non_idempotent",
"retry_params_name": "default",
},
"TestIamPermissions": {
"timeout_millis": 60000,
"retry_codes_name": "non_idempotent",
"retry_params_name": "default",
},
"UpdateFinding": {
"timeout_millis": 60000,
"retry_codes_name": "non_idempotent",
Expand Down
Expand Up @@ -121,101 +121,114 @@ def channel(self):
return self._channel

@property
def create_source(self):
"""Return the gRPC stub for :meth:`SecurityCenterClient.create_source`.
def get_iam_policy(self):
"""Return the gRPC stub for :meth:`SecurityCenterClient.get_iam_policy`.
Creates a source.
Gets the access control policy on the specified Source.
Returns:
Callable: A callable which accepts the appropriate
deserialized request object and returns a
deserialized response object.
"""
return self._stubs["security_center_stub"].CreateSource
return self._stubs["security_center_stub"].GetIamPolicy

@property
def create_finding(self):
"""Return the gRPC stub for :meth:`SecurityCenterClient.create_finding`.
def group_assets(self):
"""Return the gRPC stub for :meth:`SecurityCenterClient.group_assets`.
Creates a finding. The corresponding source must exist for finding creation
to succeed.
Filters an organization's assets and groups them by their specified
properties.
Returns:
Callable: A callable which accepts the appropriate
deserialized request object and returns a
deserialized response object.
"""
return self._stubs["security_center_stub"].CreateFinding
return self._stubs["security_center_stub"].GroupAssets

@property
def get_iam_policy(self):
"""Return the gRPC stub for :meth:`SecurityCenterClient.get_iam_policy`.
def group_findings(self):
"""Return the gRPC stub for :meth:`SecurityCenterClient.group_findings`.
Gets the access control policy on the specified Source.
Filters an organization or source's findings and groups them by their
specified properties.
To group across all sources provide a ``-`` as the source id. Example:
/v1/organizations/{organization\_id}/sources/-/findings
Returns:
Callable: A callable which accepts the appropriate
deserialized request object and returns a
deserialized response object.
"""
return self._stubs["security_center_stub"].GetIamPolicy
return self._stubs["security_center_stub"].GroupFindings

@property
def get_organization_settings(self):
"""Return the gRPC stub for :meth:`SecurityCenterClient.get_organization_settings`.
def test_iam_permissions(self):
"""Return the gRPC stub for :meth:`SecurityCenterClient.test_iam_permissions`.
Gets the settings for an organization.
Returns the permissions that a caller has on the specified source.
Returns:
Callable: A callable which accepts the appropriate
deserialized request object and returns a
deserialized response object.
"""
return self._stubs["security_center_stub"].GetOrganizationSettings
return self._stubs["security_center_stub"].TestIamPermissions

@property
def get_source(self):
"""Return the gRPC stub for :meth:`SecurityCenterClient.get_source`.
def create_source(self):
"""Return the gRPC stub for :meth:`SecurityCenterClient.create_source`.
Gets a source.
Creates a source.
Returns:
Callable: A callable which accepts the appropriate
deserialized request object and returns a
deserialized response object.
"""
return self._stubs["security_center_stub"].GetSource
return self._stubs["security_center_stub"].CreateSource

@property
def group_assets(self):
"""Return the gRPC stub for :meth:`SecurityCenterClient.group_assets`.
def create_finding(self):
"""Return the gRPC stub for :meth:`SecurityCenterClient.create_finding`.
Filters an organization's assets and groups them by their specified
properties.
Creates a finding. The corresponding source must exist for finding creation
to succeed.
Returns:
Callable: A callable which accepts the appropriate
deserialized request object and returns a
deserialized response object.
"""
return self._stubs["security_center_stub"].GroupAssets
return self._stubs["security_center_stub"].CreateFinding

@property
def group_findings(self):
"""Return the gRPC stub for :meth:`SecurityCenterClient.group_findings`.
def get_organization_settings(self):
"""Return the gRPC stub for :meth:`SecurityCenterClient.get_organization_settings`.
Filters an organization or source's findings and groups them by their
specified properties.
Gets the settings for an organization.
To group across all sources provide a ``-`` as the source id. Example:
/v1/organizations/{organization\_id}/sources/-/findings
Returns:
Callable: A callable which accepts the appropriate
deserialized request object and returns a
deserialized response object.
"""
return self._stubs["security_center_stub"].GetOrganizationSettings

@property
def get_source(self):
"""Return the gRPC stub for :meth:`SecurityCenterClient.get_source`.
Gets a source.
Returns:
Callable: A callable which accepts the appropriate
deserialized request object and returns a
deserialized response object.
"""
return self._stubs["security_center_stub"].GroupFindings
return self._stubs["security_center_stub"].GetSource

@property
def list_assets(self):
Expand Down Expand Up @@ -303,19 +316,6 @@ def set_iam_policy(self):
"""
return self._stubs["security_center_stub"].SetIamPolicy

@property
def test_iam_permissions(self):
"""Return the gRPC stub for :meth:`SecurityCenterClient.test_iam_permissions`.
Returns the permissions that a caller has on the specified source.
Returns:
Callable: A callable which accepts the appropriate
deserialized request object and returns a
deserialized response object.
"""
return self._stubs["security_center_stub"].TestIamPermissions

@property
def update_finding(self):
"""Return the gRPC stub for :meth:`SecurityCenterClient.update_finding`.
Expand Down
4 changes: 2 additions & 2 deletions google/cloud/securitycenter_v1/proto/asset_pb2.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions google/cloud/securitycenter_v1beta1/proto/asset_pb2.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 4 additions & 18 deletions synth.metadata
@@ -1,5 +1,5 @@
{
"updateTime": "2020-02-22T13:27:49.397385Z",
"updateTime": "2020-02-26T13:22:21.777839Z",
"sources": [
{
"generator": {
Expand All @@ -8,27 +8,13 @@
"dockerImage": "googleapis/artman@sha256:36956ca6a4dc70a59de5d5d0fd35061b050bb56884516f0898f46d8220f25738"
}
},
{
"git": {
"name": ".",
"remote": "https://github.com/googleapis/python-securitycenter.git",
"sha": "0663bba8574cf6f0c88951cbcea24dd55ffc1dde"
}
},
{
"git": {
"name": "googleapis",
"remote": "https://github.com/googleapis/googleapis.git",
"sha": "7f910bcc4fc4704947ccfd3ceed015d16b9e00c2",
"internalRef": "296451205",
"log": "7f910bcc4fc4704947ccfd3ceed015d16b9e00c2\nUpdate Dataproc v1beta2 client.\n\nPiperOrigin-RevId: 296451205\n\nde287524405a3dce124d301634731584fc0432d7\nFix: Reinstate method signatures that had been missed off some RPCs\nFix: Correct resource types for two fields\n\nPiperOrigin-RevId: 296435091\n\ne5bc9566ae057fb4c92f8b7e047f1c8958235b53\nDeprecate the endpoint_uris field, as it is unused.\n\nPiperOrigin-RevId: 296357191\n\n8c12e2b4dca94e12bff9f538bdac29524ff7ef7a\nUpdate Dataproc v1 client.\n\nPiperOrigin-RevId: 296336662\n\n17567c4a1ef0a9b50faa87024d66f8acbb561089\nRemoving erroneous comment, a la https://github.com/googleapis/java-speech/pull/103\n\nPiperOrigin-RevId: 296332968\n\n"
}
},
{
"git": {
"name": "synthtool",
"remote": "rpc://devrel/cloud/libraries/tools/autosynth",
"sha": "706a38c26db42299845396cdae55db635c38794a"
"sha": "0aba1900ffef672ec5f0da677cf590ee5686e13b",
"internalRef": "297204568",
"log": "0aba1900ffef672ec5f0da677cf590ee5686e13b\ncluster: use square brace for cross-reference\n\nPiperOrigin-RevId: 297204568\n\n5dac2da18f6325cbaed54603c43f0667ecd50247\nRestore retry params in gapic config because securitycenter has non-standard default retry params.\nRestore a few retry codes for some idempotent methods.\n\nPiperOrigin-RevId: 297196720\n\n1eb61455530252bba8b2c8d4bc9832960e5a56f6\npubsub: v1 replace IAM HTTP rules\n\nPiperOrigin-RevId: 297188590\n\n80b2d25f8d43d9d47024ff06ead7f7166548a7ba\nDialogflow weekly v2/v2beta1 library update:\n - updates to mega agent api\n - adding field mask override control for output audio config\nImportant updates are also posted at:\nhttps://cloud.google.com/dialogflow/docs/release-notes\n\nPiperOrigin-RevId: 297187629\n\n0b1876b35e98f560f9c9ca9797955f020238a092\nUse an older version of protoc-docs-plugin that is compatible with the specified gapic-generator and protobuf versions.\n\nprotoc-docs-plugin >=0.4.0 (see commit https://github.com/googleapis/protoc-docs-plugin/commit/979f03ede6678c487337f3d7e88bae58df5207af) is incompatible with protobuf 3.9.1.\n\nPiperOrigin-RevId: 296986742\n\n1e47e676cddbbd8d93f19ba0665af15b5532417e\nFix: Restore a method signature for UpdateCluster\n\nPiperOrigin-RevId: 296901854\n\n"
}
},
{
Expand Down

0 comments on commit 6a28717

Please sign in to comment.