File tree Expand file tree Collapse file tree 6 files changed +31
-4
lines changed
packages/google-cloud-securitycenter/google/cloud Expand file tree Collapse file tree 6 files changed +31
-4
lines changed Original file line number Diff line number Diff line change 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}
Original file line number Diff line number Diff line change 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}
Original file line number Diff line number Diff line change 2727 Type ,
2828 Union ,
2929)
30+ import warnings
3031
3132from google .api_core import exceptions as core_exceptions
3233from google .api_core import gapic_v1
@@ -2496,6 +2497,10 @@ async def sample_group_assets():
24962497 automatically.
24972498
24982499 """
2500+ warnings .warn (
2501+ "SecurityCenterAsyncClient.group_assets is deprecated" , DeprecationWarning
2502+ )
2503+
24992504 # Create or coerce a protobuf request object.
25002505 request = securitycenter_service .GroupAssetsRequest (request )
25012506
@@ -2762,6 +2767,10 @@ async def sample_list_assets():
27622767 automatically.
27632768
27642769 """
2770+ warnings .warn (
2771+ "SecurityCenterAsyncClient.list_assets is deprecated" , DeprecationWarning
2772+ )
2773+
27652774 # Create or coerce a protobuf request object.
27662775 request = securitycenter_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+ "SecurityCenterAsyncClient.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.
Original file line number Diff line number Diff line change 2828 Union ,
2929 cast ,
3030)
31+ import warnings
3132
3233from google .api_core import client_options as client_options_lib
3334from google .api_core import exceptions as core_exceptions
@@ -2902,6 +2903,10 @@ def sample_group_assets():
29022903 automatically.
29032904
29042905 """
2906+ warnings .warn (
2907+ "SecurityCenterClient.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 securitycenter_service.GroupAssetsRequest.
@@ -3149,6 +3154,10 @@ def sample_list_assets():
31493154 automatically.
31503155
31513156 """
3157+ warnings .warn (
3158+ "SecurityCenterClient.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 securitycenter_service.ListAssetsRequest.
@@ -4129,6 +4138,10 @@ def sample_run_asset_discovery():
41294138 Response of asset discovery run
41304139
41314140 """
4141+ warnings .warn (
4142+ "SecurityCenterClient.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.
Original file line number Diff line number Diff line change 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}
Original file line number Diff line number Diff line change 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}
You can’t perform that action at this time.
0 commit comments