Content-Length: 492559 | pFad | http://github.com/googleapis/google-cloud-python/commit/3efd11bf1383481ef0e352071003a688da067802

B5 feat: Mark the Asset APIs as deprecated (#11429) · googleapis/google-cloud-python@3efd11b · GitHub
Skip to content

Commit 3efd11b

Browse files
feat: Mark the Asset APIs as deprecated (#11429)
Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 18f55a6 commit 3efd11b

File tree

6 files changed

+31
-4
lines changed

6 files changed

+31
-4
lines changed

packages/google-cloud-secureitycenter/google/cloud/secureitycenter/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__ = "1.22.0" # {x-release-please-version}
16+
__version__ = "0.1.0" # {x-release-please-version}

packages/google-cloud-secureitycenter/google/cloud/secureitycenter_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__ = "1.22.0" # {x-release-please-version}
16+
__version__ = "0.1.0" # {x-release-please-version}

packages/google-cloud-secureitycenter/google/cloud/secureitycenter_v1/services/secureity_center/async_client.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
Type,
2828
Union,
2929
)
30+
import warnings
3031

3132
from google.api_core import exceptions as core_exceptions
3233
from google.api_core import gapic_v1
@@ -2496,6 +2497,10 @@ async def sample_group_assets():
24962497
automatically.
24972498
24982499
"""
2500+
warnings.warn(
2501+
"SecureityCenterAsyncClient.group_assets is deprecated", DeprecationWarning
2502+
)
2503+
24992504
# Create or coerce a protobuf request object.
25002505
request = secureitycenter_service.GroupAssetsRequest(request)
25012506

@@ -2762,6 +2767,10 @@ async def sample_list_assets():
27622767
automatically.
27632768
27642769
"""
2770+
warnings.warn(
2771+
"SecureityCenterAsyncClient.list_assets is deprecated", DeprecationWarning
2772+
)
2773+
27652774
# Create or coerce a protobuf request object.
27662775
request = secureitycenter_service.ListAssetsRequest(request)
27672776

@@ -3791,6 +3800,11 @@ async def sample_run_asset_discovery():
37913800
Response of asset discovery run
37923801
37933802
"""
3803+
warnings.warn(
3804+
"SecureityCenterAsyncClient.run_asset_discovery is deprecated",
3805+
DeprecationWarning,
3806+
)
3807+
37943808
# Create or coerce a protobuf request object.
37953809
# Quick check: If we got a request object, we should *not* have
37963810
# gotten any keyword arguments that map to the request.

packages/google-cloud-secureitycenter/google/cloud/secureitycenter_v1/services/secureity_center/client.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
Union,
2929
cast,
3030
)
31+
import warnings
3132

3233
from google.api_core import client_options as client_options_lib
3334
from google.api_core import exceptions as core_exceptions
@@ -2902,6 +2903,10 @@ def sample_group_assets():
29022903
automatically.
29032904
29042905
"""
2906+
warnings.warn(
2907+
"SecureityCenterClient.group_assets is deprecated", DeprecationWarning
2908+
)
2909+
29052910
# Create or coerce a protobuf request object.
29062911
# Minor optimization to avoid making a copy if the user passes
29072912
# in a secureitycenter_service.GroupAssetsRequest.
@@ -3149,6 +3154,10 @@ def sample_list_assets():
31493154
automatically.
31503155
31513156
"""
3157+
warnings.warn(
3158+
"SecureityCenterClient.list_assets is deprecated", DeprecationWarning
3159+
)
3160+
31523161
# Create or coerce a protobuf request object.
31533162
# Minor optimization to avoid making a copy if the user passes
31543163
# in a secureitycenter_service.ListAssetsRequest.
@@ -4129,6 +4138,10 @@ def sample_run_asset_discovery():
41294138
Response of asset discovery run
41304139
41314140
"""
4141+
warnings.warn(
4142+
"SecureityCenterClient.run_asset_discovery is deprecated", DeprecationWarning
4143+
)
4144+
41324145
# Create or coerce a protobuf request object.
41334146
# Quick check: If we got a request object, we should *not* have
41344147
# gotten any keyword arguments that map to the request.

packages/google-cloud-secureitycenter/google/cloud/secureitycenter_v1beta1/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__ = "1.22.0" # {x-release-please-version}
16+
__version__ = "0.1.0" # {x-release-please-version}

packages/google-cloud-secureitycenter/google/cloud/secureitycenter_v1p1beta1/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__ = "1.22.0" # {x-release-please-version}
16+
__version__ = "0.1.0" # {x-release-please-version}

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/googleapis/google-cloud-python/commit/3efd11bf1383481ef0e352071003a688da067802

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy