Skip to content

Commit 8b391db

Browse files
gcf-owl-bot[bot]Benjamin E. Coe
andauthored
fix(artifactregistry): fix resource pattern ID segment name (#100)
PiperOrigin-RevId: 416140747 Source-Link: googleapis/googleapis@429d35c Source-Link: googleapis/googleapis-gen@9fea20e Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiOWZlYTIwZWRjNjA0MTMyNDg2NDZjNDljMmU1ZDk4NjYzM2VkYjE5MyJ9 Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: Benjamin E. Coe <bencoe@google.com>
1 parent a244ac0 commit 8b391db

28 files changed

Lines changed: 114 additions & 97 deletions

packages/google-devtools-artifactregistry/protos/google/devtools/artifactregistry/v1beta2/file.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ message Hash {
5050
message File {
5151
option (google.api.resource) = {
5252
type: "artifactregistry.googleapis.com/File"
53-
pattern: "projects/{project}/locations/{location}/repositories/{repo}/files/{file}"
53+
pattern: "projects/{project}/locations/{location}/repositories/{repository}/files/{file}"
5454
};
5555

5656
// The name of the file, for example:

packages/google-devtools-artifactregistry/protos/protos.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.get_repository.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15+
1516
'use strict';
1617

1718
function main(name) {
@@ -25,8 +26,7 @@ function main(name) {
2526
// const name = 'abc123'
2627

2728
// Imports the Artifactregistry library
28-
const {ArtifactRegistryClient} =
29-
require('@google-cloud/artifact-registry').v1;
29+
const {ArtifactRegistryClient} = require('@google-cloud/artifact-registry').v1;
3030

3131
// Instantiates a client
3232
const artifactregistryClient = new ArtifactRegistryClient();

packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.list_docker_images.js

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15+
1516
'use strict';
1617

1718
function main(parent) {
@@ -33,8 +34,7 @@ function main(parent) {
3334
// const pageToken = 'abc123'
3435

3536
// Imports the Artifactregistry library
36-
const {ArtifactRegistryClient} =
37-
require('@google-cloud/artifact-registry').v1;
37+
const {ArtifactRegistryClient} = require('@google-cloud/artifact-registry').v1;
3838

3939
// Instantiates a client
4040
const artifactregistryClient = new ArtifactRegistryClient();
@@ -46,11 +46,9 @@ function main(parent) {
4646
};
4747

4848
// Run request
49-
const iterable = await artifactregistryClient.listDockerImagesAsync(
50-
request
51-
);
49+
const iterable = await artifactregistryClient.listDockerImagesAsync(request);
5250
for await (const response of iterable) {
53-
console.log(response);
51+
console.log(response);
5452
}
5553
}
5654

packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.list_repositories.js

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15+
1516
'use strict';
1617

1718
function main(parent) {
@@ -33,8 +34,7 @@ function main(parent) {
3334
// const pageToken = 'abc123'
3435

3536
// Imports the Artifactregistry library
36-
const {ArtifactRegistryClient} =
37-
require('@google-cloud/artifact-registry').v1;
37+
const {ArtifactRegistryClient} = require('@google-cloud/artifact-registry').v1;
3838

3939
// Instantiates a client
4040
const artifactregistryClient = new ArtifactRegistryClient();
@@ -46,11 +46,9 @@ function main(parent) {
4646
};
4747

4848
// Run request
49-
const iterable = await artifactregistryClient.listRepositoriesAsync(
50-
request
51-
);
49+
const iterable = await artifactregistryClient.listRepositoriesAsync(request);
5250
for await (const response of iterable) {
53-
console.log(response);
51+
console.log(response);
5452
}
5553
}
5654

packages/google-devtools-artifactregistry/samples/generated/v1beta2/artifact_registry.create_repository.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15+
1516
'use strict';
1617

1718
function main() {
@@ -33,15 +34,15 @@ function main() {
3334
// const repository = {}
3435

3536
// Imports the Artifactregistry library
36-
const {ArtifactRegistryClient} =
37-
require('@google-cloud/artifact-registry').v1beta2;
37+
const {ArtifactRegistryClient} = require('@google-cloud/artifact-registry').v1beta2;
3838

3939
// Instantiates a client
4040
const artifactregistryClient = new ArtifactRegistryClient();
4141

4242
async function callCreateRepository() {
4343
// Construct request
44-
const request = {};
44+
const request = {
45+
};
4546

4647
// Run request
4748
const [operation] = await artifactregistryClient.createRepository(request);

packages/google-devtools-artifactregistry/samples/generated/v1beta2/artifact_registry.create_tag.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15+
1516
'use strict';
1617

1718
function main() {
@@ -33,15 +34,15 @@ function main() {
3334
// const tag = {}
3435

3536
// Imports the Artifactregistry library
36-
const {ArtifactRegistryClient} =
37-
require('@google-cloud/artifact-registry').v1beta2;
37+
const {ArtifactRegistryClient} = require('@google-cloud/artifact-registry').v1beta2;
3838

3939
// Instantiates a client
4040
const artifactregistryClient = new ArtifactRegistryClient();
4141

4242
async function callCreateTag() {
4343
// Construct request
44-
const request = {};
44+
const request = {
45+
};
4546

4647
// Run request
4748
const response = await artifactregistryClient.createTag(request);

packages/google-devtools-artifactregistry/samples/generated/v1beta2/artifact_registry.delete_package.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15+
1516
'use strict';
1617

1718
function main() {
@@ -25,15 +26,15 @@ function main() {
2526
// const name = 'abc123'
2627

2728
// Imports the Artifactregistry library
28-
const {ArtifactRegistryClient} =
29-
require('@google-cloud/artifact-registry').v1beta2;
29+
const {ArtifactRegistryClient} = require('@google-cloud/artifact-registry').v1beta2;
3030

3131
// Instantiates a client
3232
const artifactregistryClient = new ArtifactRegistryClient();
3333

3434
async function callDeletePackage() {
3535
// Construct request
36-
const request = {};
36+
const request = {
37+
};
3738

3839
// Run request
3940
const [operation] = await artifactregistryClient.deletePackage(request);

packages/google-devtools-artifactregistry/samples/generated/v1beta2/artifact_registry.delete_repository.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15+
1516
'use strict';
1617

1718
function main() {
@@ -25,15 +26,15 @@ function main() {
2526
// const name = 'abc123'
2627

2728
// Imports the Artifactregistry library
28-
const {ArtifactRegistryClient} =
29-
require('@google-cloud/artifact-registry').v1beta2;
29+
const {ArtifactRegistryClient} = require('@google-cloud/artifact-registry').v1beta2;
3030

3131
// Instantiates a client
3232
const artifactregistryClient = new ArtifactRegistryClient();
3333

3434
async function callDeleteRepository() {
3535
// Construct request
36-
const request = {};
36+
const request = {
37+
};
3738

3839
// Run request
3940
const [operation] = await artifactregistryClient.deleteRepository(request);

packages/google-devtools-artifactregistry/samples/generated/v1beta2/artifact_registry.delete_tag.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15+
1516
'use strict';
1617

1718
function main() {
@@ -25,15 +26,15 @@ function main() {
2526
// const name = 'abc123'
2627

2728
// Imports the Artifactregistry library
28-
const {ArtifactRegistryClient} =
29-
require('@google-cloud/artifact-registry').v1beta2;
29+
const {ArtifactRegistryClient} = require('@google-cloud/artifact-registry').v1beta2;
3030

3131
// Instantiates a client
3232
const artifactregistryClient = new ArtifactRegistryClient();
3333

3434
async function callDeleteTag() {
3535
// Construct request
36-
const request = {};
36+
const request = {
37+
};
3738

3839
// Run request
3940
const response = await artifactregistryClient.deleteTag(request);

0 commit comments

Comments
 (0)