Skip to content
This repository has been archived by the owner on Jul 20, 2023. It is now read-only.

Commit

Permalink
fix(artifactregistry): fix resource pattern ID segment name (#100)
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 416140747
Source-Link: googleapis/googleapis@429d35c
Source-Link: https://github.com/googleapis/googleapis-gen/commit/9fea20edc60413248646c49c2e5d986633edb193
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>
  • Loading branch information
3 people authored Dec 30, 2021
1 parent 877d302 commit 27d74c2
Show file tree
Hide file tree
Showing 28 changed files with 114 additions and 97 deletions.
2 changes: 1 addition & 1 deletion protos/google/devtools/artifactregistry/v1beta2/file.proto
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ message Hash {
message File {
option (google.api.resource) = {
type: "artifactregistry.googleapis.com/File"
pattern: "projects/{project}/locations/{location}/repositories/{repo}/files/{file}"
pattern: "projects/{project}/locations/{location}/repositories/{repository}/files/{file}"
};

// The name of the file, for example:
Expand Down
2 changes: 1 addition & 1 deletion protos/protos.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions samples/generated/v1/artifact_registry.get_repository.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.


'use strict';

function main(name) {
Expand All @@ -25,8 +26,7 @@ function main(name) {
// const name = 'abc123'

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

// Instantiates a client
const artifactregistryClient = new ArtifactRegistryClient();
Expand Down
10 changes: 4 additions & 6 deletions samples/generated/v1/artifact_registry.list_docker_images.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.


'use strict';

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

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

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

// Run request
const iterable = await artifactregistryClient.listDockerImagesAsync(
request
);
const iterable = await artifactregistryClient.listDockerImagesAsync(request);
for await (const response of iterable) {
console.log(response);
console.log(response);
}
}

Expand Down
10 changes: 4 additions & 6 deletions samples/generated/v1/artifact_registry.list_repositories.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.


'use strict';

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

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

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

// Run request
const iterable = await artifactregistryClient.listRepositoriesAsync(
request
);
const iterable = await artifactregistryClient.listRepositoriesAsync(request);
for await (const response of iterable) {
console.log(response);
console.log(response);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.


'use strict';

function main() {
Expand All @@ -33,15 +34,15 @@ function main() {
// const repository = {}

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

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

async function callCreateRepository() {
// Construct request
const request = {};
const request = {
};

// Run request
const [operation] = await artifactregistryClient.createRepository(request);
Expand Down
7 changes: 4 additions & 3 deletions samples/generated/v1beta2/artifact_registry.create_tag.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.


'use strict';

function main() {
Expand All @@ -33,15 +34,15 @@ function main() {
// const tag = {}

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

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

async function callCreateTag() {
// Construct request
const request = {};
const request = {
};

// Run request
const response = await artifactregistryClient.createTag(request);
Expand Down
7 changes: 4 additions & 3 deletions samples/generated/v1beta2/artifact_registry.delete_package.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.


'use strict';

function main() {
Expand All @@ -25,15 +26,15 @@ function main() {
// const name = 'abc123'

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

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

async function callDeletePackage() {
// Construct request
const request = {};
const request = {
};

// Run request
const [operation] = await artifactregistryClient.deletePackage(request);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.


'use strict';

function main() {
Expand All @@ -25,15 +26,15 @@ function main() {
// const name = 'abc123'

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

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

async function callDeleteRepository() {
// Construct request
const request = {};
const request = {
};

// Run request
const [operation] = await artifactregistryClient.deleteRepository(request);
Expand Down
7 changes: 4 additions & 3 deletions samples/generated/v1beta2/artifact_registry.delete_tag.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.


'use strict';

function main() {
Expand All @@ -25,15 +26,15 @@ function main() {
// const name = 'abc123'

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

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

async function callDeleteTag() {
// Construct request
const request = {};
const request = {
};

// Run request
const response = await artifactregistryClient.deleteTag(request);
Expand Down
7 changes: 4 additions & 3 deletions samples/generated/v1beta2/artifact_registry.delete_version.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.


'use strict';

function main() {
Expand All @@ -30,15 +31,15 @@ function main() {
// const force = true

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

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

async function callDeleteVersion() {
// Construct request
const request = {};
const request = {
};

// Run request
const [operation] = await artifactregistryClient.deleteVersion(request);
Expand Down
7 changes: 4 additions & 3 deletions samples/generated/v1beta2/artifact_registry.get_file.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.


'use strict';

function main() {
Expand All @@ -25,15 +26,15 @@ function main() {
// const name = 'abc123'

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

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

async function callGetFile() {
// Construct request
const request = {};
const request = {
};

// Run request
const response = await artifactregistryClient.getFile(request);
Expand Down
4 changes: 2 additions & 2 deletions samples/generated/v1beta2/artifact_registry.get_iam_policy.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.


'use strict';

function main(resource) {
Expand All @@ -31,8 +32,7 @@ function main(resource) {
// const options = {}

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

// Instantiates a client
const artifactregistryClient = new ArtifactRegistryClient();
Expand Down
7 changes: 4 additions & 3 deletions samples/generated/v1beta2/artifact_registry.get_package.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.


'use strict';

function main() {
Expand All @@ -25,15 +26,15 @@ function main() {
// const name = 'abc123'

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

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

async function callGetPackage() {
// Construct request
const request = {};
const request = {
};

// Run request
const response = await artifactregistryClient.getPackage(request);
Expand Down
7 changes: 4 additions & 3 deletions samples/generated/v1beta2/artifact_registry.get_repository.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.


'use strict';

function main() {
Expand All @@ -25,15 +26,15 @@ function main() {
// const name = 'abc123'

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

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

async function callGetRepository() {
// Construct request
const request = {};
const request = {
};

// Run request
const response = await artifactregistryClient.getRepository(request);
Expand Down
7 changes: 4 additions & 3 deletions samples/generated/v1beta2/artifact_registry.get_tag.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.


'use strict';

function main() {
Expand All @@ -25,15 +26,15 @@ function main() {
// const name = 'abc123'

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

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

async function callGetTag() {
// Construct request
const request = {};
const request = {
};

// Run request
const response = await artifactregistryClient.getTag(request);
Expand Down
Loading

0 comments on commit 27d74c2

Please sign in to comment.