Skip to content

Commit d2a5659

Browse files
docs: Add link to documentation for ReportConfig proto fields (#11562)
Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent ea3201a commit d2a5659

File tree

11 files changed

+59
-37
lines changed

11 files changed

+59
-37
lines changed

packages/google-cloud-storageinsights/.flake8

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -*- coding: utf-8 -*-
22
#
3-
# Copyright 2020 Google LLC
3+
# Copyright 2023 Google LLC
44
#
55
# Licensed under the Apache License, Version 2.0 (the "License");
66
# you may not use this file except in compliance with the License.

packages/google-cloud-storageinsights/CONTRIBUTING.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ We support:
236236

237237
Supported versions can be found in our ``noxfile.py`` `config`_.
238238

239-
.. _config: https://github.com/googleapis/google-cloud-python/blob/main/noxfile.py
239+
.. _config: https://github.com/googleapis/google-cloud-python/blob/main/packages/google-cloud-storageinsights/noxfile.py
240240

241241

242242
**********

packages/google-cloud-storageinsights/MANIFEST.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -*- coding: utf-8 -*-
22
#
3-
# Copyright 2020 Google LLC
3+
# Copyright 2023 Google LLC
44
#
55
# Licensed under the Apache License, Version 2.0 (the "License");
66
# you may not use this file except in compliance with the License.

packages/google-cloud-storageinsights/README.rst

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -36,21 +36,24 @@ In order to use this library, you first need to go through the following steps:
3636
Installation
3737
~~~~~~~~~~~~
3838

39-
Install this library in a `virtualenv`_ using pip. `virtualenv`_ is a tool to
40-
create isolated Python environments. The basic problem it addresses is one of
41-
dependencies and versions, and indirectly permissions.
39+
Install this library in a virtual environment using `venv`_. `venv`_ is a tool that
40+
creates isolated Python environments. These isolated environments can have separate
41+
versions of Python packages, which allows you to isolate one project's dependencies
42+
from the dependencies of other projects.
4243

43-
With `virtualenv`_, it's possible to install this library without needing system
44+
With `venv`_, it's possible to install this library without needing system
4445
install permissions, and without clashing with the installed system
4546
dependencies.
4647

47-
.. _`virtualenv`: https://virtualenv.pypa.io/en/latest/
48+
.. _`venv`: https://docs.python.org/3/library/venv.html
4849

4950

5051
Code samples and snippets
5152
~~~~~~~~~~~~~~~~~~~~~~~~~
5253

53-
Code samples and snippets live in the `samples/` folder.
54+
Code samples and snippets live in the `samples/`_ folder.
55+
56+
.. _samples/: https://github.com/googleapis/google-cloud-python/tree/main/packages/google-cloud-storageinsights/samples
5457

5558

5659
Supported Python Versions
@@ -77,21 +80,19 @@ Mac/Linux
7780

7881
.. code-block:: console
7982
80-
pip install virtualenv
81-
virtualenv <your-env>
83+
python3 -m venv <your-env>
8284
source <your-env>/bin/activate
83-
<your-env>/bin/pip install google-cloud-storageinsights
85+
pip install google-cloud-storageinsights
8486
8587
8688
Windows
8789
^^^^^^^
8890

8991
.. code-block:: console
9092
91-
pip install virtualenv
92-
virtualenv <your-env>
93-
<your-env>\Scripts\activate
94-
<your-env>\Scripts\pip.exe install google-cloud-storageinsights
93+
py -m venv <your-env>
94+
.\<your-env>\Scripts\activate
95+
pip install google-cloud-storageinsights
9596
9697
Next Steps
9798
~~~~~~~~~~

packages/google-cloud-storageinsights/docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# -*- coding: utf-8 -*-
2-
# Copyright 2021 Google LLC
2+
# Copyright 2023 Google LLC
33
#
44
# Licensed under the Apache License, Version 2.0 (the "License");
55
# you may not use this file except in compliance with the License.

packages/google-cloud-storageinsights/google/cloud/storageinsights_v1/services/storage_insights/async_client.py

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -406,8 +406,10 @@ async def sample_get_report_config():
406406
google.cloud.storageinsights_v1.types.ReportConfig:
407407
Message describing ReportConfig
408408
object. ReportConfig is the
409-
configuration to generate reports. Next
410-
ID: 12
409+
configuration to generate reports. See
410+
https://cloud.google.com/storage/docs/insights/using-inventory-reports#create-config-rest
411+
for more details on how to set various
412+
fields. Next ID: 12
411413
412414
"""
413415
# Create or coerce a protobuf request object.
@@ -525,8 +527,10 @@ async def sample_create_report_config():
525527
google.cloud.storageinsights_v1.types.ReportConfig:
526528
Message describing ReportConfig
527529
object. ReportConfig is the
528-
configuration to generate reports. Next
529-
ID: 12
530+
configuration to generate reports. See
531+
https://cloud.google.com/storage/docs/insights/using-inventory-reports#create-config-rest
532+
for more details on how to set various
533+
fields. Next ID: 12
530534
531535
"""
532536
# Create or coerce a protobuf request object.
@@ -641,8 +645,10 @@ async def sample_update_report_config():
641645
google.cloud.storageinsights_v1.types.ReportConfig:
642646
Message describing ReportConfig
643647
object. ReportConfig is the
644-
configuration to generate reports. Next
645-
ID: 12
648+
configuration to generate reports. See
649+
https://cloud.google.com/storage/docs/insights/using-inventory-reports#create-config-rest
650+
for more details on how to set various
651+
fields. Next ID: 12
646652
647653
"""
648654
# Create or coerce a protobuf request object.

packages/google-cloud-storageinsights/google/cloud/storageinsights_v1/services/storage_insights/client.py

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -644,8 +644,10 @@ def sample_get_report_config():
644644
google.cloud.storageinsights_v1.types.ReportConfig:
645645
Message describing ReportConfig
646646
object. ReportConfig is the
647-
configuration to generate reports. Next
648-
ID: 12
647+
configuration to generate reports. See
648+
https://cloud.google.com/storage/docs/insights/using-inventory-reports#create-config-rest
649+
for more details on how to set various
650+
fields. Next ID: 12
649651
650652
"""
651653
# Create or coerce a protobuf request object.
@@ -754,8 +756,10 @@ def sample_create_report_config():
754756
google.cloud.storageinsights_v1.types.ReportConfig:
755757
Message describing ReportConfig
756758
object. ReportConfig is the
757-
configuration to generate reports. Next
758-
ID: 12
759+
configuration to generate reports. See
760+
https://cloud.google.com/storage/docs/insights/using-inventory-reports#create-config-rest
761+
for more details on how to set various
762+
fields. Next ID: 12
759763
760764
"""
761765
# Create or coerce a protobuf request object.
@@ -870,8 +874,10 @@ def sample_update_report_config():
870874
google.cloud.storageinsights_v1.types.ReportConfig:
871875
Message describing ReportConfig
872876
object. ReportConfig is the
873-
configuration to generate reports. Next
874-
ID: 12
877+
configuration to generate reports. See
878+
https://cloud.google.com/storage/docs/insights/using-inventory-reports#create-config-rest
879+
for more details on how to set various
880+
fields. Next ID: 12
875881
876882
"""
877883
# Create or coerce a protobuf request object.

packages/google-cloud-storageinsights/google/cloud/storageinsights_v1/services/storage_insights/transports/rest.py

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -543,8 +543,10 @@ def __call__(
543543
~.storageinsights.ReportConfig:
544544
Message describing ReportConfig
545545
object. ReportConfig is the
546-
configuration to generate reports. Next
547-
ID: 12
546+
configuration to generate reports. See
547+
https://cloud.google.com/storage/docs/insights/using-inventory-reports#create-config-rest
548+
for more details on how to set various
549+
fields. Next ID: 12
548550
549551
"""
550552

@@ -720,8 +722,10 @@ def __call__(
720722
~.storageinsights.ReportConfig:
721723
Message describing ReportConfig
722724
object. ReportConfig is the
723-
configuration to generate reports. Next
724-
ID: 12
725+
configuration to generate reports. See
726+
https://cloud.google.com/storage/docs/insights/using-inventory-reports#create-config-rest
727+
for more details on how to set various
728+
fields. Next ID: 12
725729
726730
"""
727731

@@ -1088,8 +1092,10 @@ def __call__(
10881092
~.storageinsights.ReportConfig:
10891093
Message describing ReportConfig
10901094
object. ReportConfig is the
1091-
configuration to generate reports. Next
1092-
ID: 12
1095+
configuration to generate reports. See
1096+
https://cloud.google.com/storage/docs/insights/using-inventory-reports#create-config-rest
1097+
for more details on how to set various
1098+
fields. Next ID: 12
10931099
10941100
"""
10951101

packages/google-cloud-storageinsights/google/cloud/storageinsights_v1/types/storageinsights.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -670,6 +670,9 @@ class ObjectMetadataReportOptions(proto.Message):
670670
class ReportConfig(proto.Message):
671671
r"""Message describing ReportConfig object. ReportConfig is the
672672
configuration to generate reports.
673+
See
674+
https://cloud.google.com/storage/docs/insights/using-inventory-reports#create-config-rest
675+
for more details on how to set various fields.
673676
Next ID: 12
674677
675678
This message has `oneof`_ fields (mutually exclusive fields).

packages/google-cloud-storageinsights/noxfile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -*- coding: utf-8 -*-
22
#
3-
# Copyright 2018 Google LLC
3+
# Copyright 2023 Google LLC
44
#
55
# Licensed under the Apache License, Version 2.0 (the "License");
66
# you may not use this file except in compliance with the License.

0 commit comments

Comments
 (0)