Skip to content

Commit 50ac93b

Browse files
sydney-munrogcf-owl-bot[bot]JesseLovelace
authored
docs: Update readme to include gradle instructions for storage control (#2503)
* docs: Update readme to include gradle instructions for storage control * address pr comments * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * Move storage control installation instruction to partials template, add partials template to release please * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * review comments * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: Jesse Lovelace <jesselovelace@google.com>
1 parent 87b63f4 commit 50ac93b

File tree

3 files changed

+85
-0
lines changed

3 files changed

+85
-0
lines changed

.github/release-please.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ handleGHRelease: true
33
releaseType: java-yoshi
44
extraFiles:
55
- README.md
6+
- .readme-partials.yaml
67
branches:
78
- bumpMinorPreMajor: true
89
handleGHRelease: true

.readme-partials.yaml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,48 @@ custom_content: |
55
66
The Storage Control API creates one space to perform metadata-specific, control plane, and long-running operations apart from the Storage API. Separating these operations from the Storage API improves API standardization and lets you run faster releases.
77
8+
If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
9+
```xml
10+
<dependencyManagement>
11+
<dependencies>
12+
<dependency>
13+
<groupId>com.google.cloud</groupId>
14+
<artifactId>libraries-bom</artifactId>
15+
<version>26.37.0</version>
16+
<type>pom</type>
17+
<scope>import</scope>
18+
</dependency>
19+
</dependencies>
20+
</dependencyManagement>
21+
22+
<dependencies>
23+
<dependency>
24+
<groupId>com.google.cloud</groupId>
25+
<artifactId>google-cloud-storage-control</artifactId>
26+
</dependency>
27+
```
28+
29+
If you are using Maven without the BOM, add this to your dependencies:
30+
<!-- {x-version-update-start:google-cloud-storage:released} -->
31+
```xml
32+
<dependency>
33+
<groupId>com.google.cloud</groupId>
34+
<artifactId>google-cloud-storage-control</artifactId>
35+
<version>2.36.1-alpha</version><!-- {x-version-update:google-cloud-storage:released} -->
36+
</dependency>
37+
```
38+
39+
If you are using Gradle 5.x or later, add this to your dependencies:
40+
```Groovy
41+
implementation platform('com.google.cloud:libraries-bom:26.37.0')
42+
implementation 'com.google.cloud:google-cloud-storage-control'
43+
```
44+
If you are using Gradle without BOM, add this to your dependencies:
45+
46+
```Groovy
47+
implementation 'com.google.cloud:google-cloud-storage-control:2.36.1-alpha' <!-- {x-version-update:google-cloud-storage:released} -->
48+
```
49+
850
#### Creating an authorized service object
951
1052
To make authenticated requests to Google Cloud Storage, you must create a service object with credentials. You can

README.md

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,48 @@ The [Storage Control API](https://cloud.google.com/storage/docs/reference/rpc/)
114114

115115
The Storage Control API creates one space to perform metadata-specific, control plane, and long-running operations apart from the Storage API. Separating these operations from the Storage API improves API standardization and lets you run faster releases.
116116

117+
If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
118+
```xml
119+
<dependencyManagement>
120+
<dependencies>
121+
<dependency>
122+
<groupId>com.google.cloud</groupId>
123+
<artifactId>libraries-bom</artifactId>
124+
<version>26.37.0</version>
125+
<type>pom</type>
126+
<scope>import</scope>
127+
</dependency>
128+
</dependencies>
129+
</dependencyManagement>
130+
131+
<dependencies>
132+
<dependency>
133+
<groupId>com.google.cloud</groupId>
134+
<artifactId>google-cloud-storage-control</artifactId>
135+
</dependency>
136+
```
137+
138+
If you are using Maven without the BOM, add this to your dependencies:
139+
<!-- {x-version-update-start:google-cloud-storage:released} -->
140+
```xml
141+
<dependency>
142+
<groupId>com.google.cloud</groupId>
143+
<artifactId>google-cloud-storage-control</artifactId>
144+
<version>2.36.1-alpha</version><!-- {x-version-update:google-cloud-storage:released} -->
145+
</dependency>
146+
```
147+
148+
If you are using Gradle 5.x or later, add this to your dependencies:
149+
```Groovy
150+
implementation platform('com.google.cloud:libraries-bom:26.37.0')
151+
implementation 'com.google.cloud:google-cloud-storage-control'
152+
```
153+
If you are using Gradle without BOM, add this to your dependencies:
154+
155+
```Groovy
156+
implementation 'com.google.cloud:google-cloud-storage-control:2.36.1-alpha' <!-- {x-version-update:google-cloud-storage:released} -->
157+
```
158+
117159
#### Creating an authorized service object
118160

119161
To make authenticated requests to Google Cloud Storage, you must create a service object with credentials. You can

0 commit comments

Comments
 (0)