Skip to content

Commit

Permalink
feat: Add location methods
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 499263614
  • Loading branch information
Google APIs authored and copybara-github committed Jan 3, 2023
1 parent 1a54b1f commit ba2db0d
Show file tree
Hide file tree
Showing 4 changed files with 209 additions and 74 deletions.
129 changes: 94 additions & 35 deletions google/devtools/artifactregistry/v1/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -9,45 +9,14 @@
# * extra_protoc_file_parameters
# The complete list of preserved parameters can be found in the source code.

# This is an API workspace, having public visibility by default makes perfect sense.
package(default_visibility = ["//visibility:public"])

##############################################################################
# Common
##############################################################################
load("@rules_proto//proto:defs.bzl", "proto_library")
load(
"@com_google_googleapis_imports//:imports.bzl",
"cc_grpc_library",
"cc_proto_library",
"csharp_gapic_assembly_pkg",
"csharp_gapic_library",
"csharp_grpc_library",
"csharp_proto_library",
"go_gapic_assembly_pkg",
"go_gapic_library",
"go_proto_library",
"go_test",
"java_gapic_assembly_gradle_pkg",
"java_gapic_library",
"java_gapic_test",
"java_grpc_library",
"java_proto_library",
"nodejs_gapic_assembly_pkg",
"nodejs_gapic_library",
"php_gapic_assembly_pkg",
"php_gapic_library",
"php_grpc_library",
"php_proto_library",
"proto_library_with_info",
"py_gapic_assembly_pkg",
"py_gapic_library",
"py_test",
"ruby_cloud_gapic_library",
"ruby_gapic_assembly_pkg",
"ruby_grpc_library",
"ruby_proto_library",
)

# This is an API workspace, having public visibility by default makes perfect sense.
package(default_visibility = ["//visibility:public"])
load("@com_google_googleapis_imports//:imports.bzl", "proto_library_with_info")

proto_library(
name = "artifactregistry_proto",
Expand Down Expand Up @@ -84,9 +53,22 @@ proto_library_with_info(
deps = [
":artifactregistry_proto",
"//google/cloud:common_resources_proto",
"//google/cloud/location:location_proto",
],
)

##############################################################################
# Java
##############################################################################
load(
"@com_google_googleapis_imports//:imports.bzl",
"java_gapic_assembly_gradle_pkg",
"java_gapic_library",
"java_gapic_test",
"java_grpc_library",
"java_proto_library",
)

java_proto_library(
name = "artifactregistry_java_proto",
deps = [":artifactregistry_proto"],
Expand All @@ -107,12 +89,14 @@ java_gapic_library(
service_yaml = "artifactregistry_v1.yaml",
test_deps = [
":artifactregistry_java_grpc",
"//google/cloud/location:location_java_grpc",
"//google/iam/v1:iam_java_grpc",
],
transport = "grpc+rest",
deps = [
":artifactregistry_java_proto",
"//google/api:api_java_proto",
"//google/cloud/location:location_java_proto",
"//google/iam/v1:iam_java_proto",
],
)
Expand All @@ -139,6 +123,17 @@ java_gapic_assembly_gradle_pkg(
],
)

##############################################################################
# Go
##############################################################################
load(
"@com_google_googleapis_imports//:imports.bzl",
"go_gapic_assembly_pkg",
"go_gapic_library",
"go_proto_library",
"go_test",
)

go_proto_library(
name = "artifactregistry_go_proto",
compilers = ["@io_bazel_rules_go//proto:go_grpc"],
Expand All @@ -163,6 +158,7 @@ go_gapic_library(
transport = "grpc+rest",
deps = [
":artifactregistry_go_proto",
"//google/cloud/location:location_go_proto",
"//google/iam/v1:iam_go_proto",
"//google/longrunning:longrunning_go_proto",
"@com_google_cloud_go_longrunning//:go_default_library",
Expand All @@ -189,6 +185,16 @@ go_gapic_assembly_pkg(
],
)

##############################################################################
# Python
##############################################################################
load(
"@com_google_googleapis_imports//:imports.bzl",
"py_gapic_assembly_pkg",
"py_gapic_library",
"py_test",
)

py_gapic_library(
name = "artifactregistry_py_gapic",
srcs = [":artifactregistry_proto"],
Expand All @@ -199,6 +205,7 @@ py_gapic_library(
"warehouse-package-name=google-cloud-artifact-registry",
],
rest_numeric_enums = True,
service_yaml = "artifactregistry_v1.yaml",
transport = "grpc",
deps = [
"//google/iam/v1:iam_policy_py_proto",
Expand All @@ -223,6 +230,17 @@ py_gapic_assembly_pkg(
],
)

##############################################################################
# PHP
##############################################################################
load(
"@com_google_googleapis_imports//:imports.bzl",
"php_gapic_assembly_pkg",
"php_gapic_library",
"php_grpc_library",
"php_proto_library",
)

php_proto_library(
name = "artifactregistry_php_proto",
deps = [":artifactregistry_proto"],
Expand Down Expand Up @@ -257,6 +275,15 @@ php_gapic_assembly_pkg(
],
)

##############################################################################
# Node.js
##############################################################################
load(
"@com_google_googleapis_imports//:imports.bzl",
"nodejs_gapic_assembly_pkg",
"nodejs_gapic_library",
)

nodejs_gapic_library(
name = "artifactregistry_nodejs_gapic",
package_name = "@google-cloud/artifact-registry",
Expand All @@ -278,6 +305,17 @@ nodejs_gapic_assembly_pkg(
],
)

##############################################################################
# Ruby
##############################################################################
load(
"@com_google_googleapis_imports//:imports.bzl",
"ruby_cloud_gapic_library",
"ruby_gapic_assembly_pkg",
"ruby_grpc_library",
"ruby_proto_library",
)

ruby_proto_library(
name = "artifactregistry_ruby_proto",
deps = [":artifactregistry_proto"],
Expand All @@ -303,6 +341,7 @@ ruby_cloud_gapic_library(
rest_numeric_enums = True,
ruby_cloud_description = "Artifact Registry stores and manages build artifacts in a scalable and integrated service built on Google infrastructure.",
ruby_cloud_title = "Artifact Registry V1",
service_yaml = "artifactregistry_v1.yaml",
deps = [
":artifactregistry_ruby_grpc",
":artifactregistry_ruby_proto",
Expand All @@ -319,6 +358,17 @@ ruby_gapic_assembly_pkg(
],
)

##############################################################################
# C#
##############################################################################
load(
"@com_google_googleapis_imports//:imports.bzl",
"csharp_gapic_assembly_pkg",
"csharp_gapic_library",
"csharp_grpc_library",
"csharp_proto_library",
)

csharp_proto_library(
name = "artifactregistry_csharp_proto",
deps = [":artifactregistry_proto"],
Expand Down Expand Up @@ -353,6 +403,15 @@ csharp_gapic_assembly_pkg(
],
)

##############################################################################
# C++
##############################################################################
load(
"@com_google_googleapis_imports//:imports.bzl",
"cc_grpc_library",
"cc_proto_library",
)

cc_proto_library(
name = "artifactregistry_cc_proto",
deps = [":artifactregistry_proto"],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ title: Artifact Registry API

apis:
- name: google.devtools.artifactregistry.v1.ArtifactRegistry
- name: google.cloud.location.Locations

types:
- name: google.devtools.artifactregistry.v1.ImportAptArtifactsMetadata
Expand Down
Loading

0 comments on commit ba2db0d

Please sign in to comment.