diff options
Diffstat (limited to 'third_party/googleapis/google/cloud/asset/v1p1beta1')
6 files changed, 0 insertions, 677 deletions
diff --git a/third_party/googleapis/google/cloud/asset/v1p1beta1/BUILD.bazel b/third_party/googleapis/google/cloud/asset/v1p1beta1/BUILD.bazel deleted file mode 100644 index 7cc8aac..0000000 --- a/third_party/googleapis/google/cloud/asset/v1p1beta1/BUILD.bazel +++ /dev/null @@ -1,342 +0,0 @@ -# This file was automatically generated by BuildFileGenerator - -# 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", "proto_library_with_info") - -proto_library( - name = "asset_proto", - srcs = [ - "asset_service.proto", - "assets.proto", - ], - deps = [ - "//google/api:annotations_proto", - "//google/api:client_proto", - "//google/api:field_behavior_proto", - "//google/iam/v1:policy_proto", - ], -) - -proto_library_with_info( - name = "asset_proto_with_info", - deps = [ - ":asset_proto", - "//google/cloud:common_resources_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 = "asset_java_proto", - deps = [":asset_proto"], -) - -java_grpc_library( - name = "asset_java_grpc", - srcs = [":asset_proto"], - deps = [":asset_java_proto"], -) - -java_gapic_library( - name = "asset_java_gapic", - srcs = [":asset_proto_with_info"], - grpc_service_config = "cloudasset_grpc_service_config.json", - test_deps = [ - ":asset_java_grpc", - "//google/iam/v1:iam_java_grpc", - ], - transport = "grpc+rest", - deps = [ - ":asset_java_proto", - "//google/iam/v1:iam_java_proto", - ], -) - -java_gapic_test( - name = "asset_java_gapic_test_suite", - test_classes = [ - "com.google.cloud.asset.v1p1beta1.AssetServiceClientHttpJsonTest", - "com.google.cloud.asset.v1p1beta1.AssetServiceClientTest", - ], - runtime_deps = [":asset_java_gapic_test"], -) - -# Open Source Packages -java_gapic_assembly_gradle_pkg( - name = "google-cloud-asset-v1p1beta1-java", - include_samples = True, - transport = "grpc+rest", - deps = [ - ":asset_java_gapic", - ":asset_java_grpc", - ":asset_java_proto", - ":asset_proto", - ], -) - -############################################################################## -# Go -############################################################################## -load( - "@com_google_googleapis_imports//:imports.bzl", - "go_gapic_assembly_pkg", - "go_gapic_library", - "go_proto_library", - "go_test", -) - -go_proto_library( - name = "asset_go_proto", - compilers = ["@io_bazel_rules_go//proto:go_grpc"], - importpath = "google.golang.org/genproto/googleapis/cloud/asset/v1p1beta1", - protos = [":asset_proto"], - deps = [ - "//google/api:annotations_go_proto", - "//google/iam/v1:iam_go_proto", - ], -) - -go_gapic_library( - name = "asset_go_gapic", - srcs = [":asset_proto_with_info"], - grpc_service_config = "cloudasset_grpc_service_config.json", - importpath = "cloud.google.com/go/asset/apiv1p1beta1;asset", - service_yaml = "cloudasset_v1p1beta1.yaml", - transport = "grpc+rest", - deps = [ - ":asset_go_proto", - "//google/iam/v1:iam_go_proto", - ], -) - -go_test( - name = "asset_go_gapic_test", - srcs = [":asset_go_gapic_srcjar_test"], - embed = [":asset_go_gapic"], - importpath = "cloud.google.com/go/asset/apiv1p1beta1", -) - -# Open Source Packages -go_gapic_assembly_pkg( - name = "gapi-cloud-asset-v1p1beta1-go", - deps = [ - ":asset_go_gapic", - ":asset_go_gapic_srcjar-test.srcjar", - ":asset_go_proto", - ], -) - -############################################################################## -# Python -############################################################################## -load( - "@com_google_googleapis_imports//:imports.bzl", - "py_gapic_assembly_pkg", - "py_gapic_library", - "py_test", -) - -py_gapic_library( - name = "asset_py_gapic", - srcs = [":asset_proto"], - grpc_service_config = "cloudasset_grpc_service_config.json", - transport = "grpc", - deps = [ - "//google/iam/v1:iam_policy_py_proto", - ], -) - -py_test( - name = "asset_py_gapic_test", - srcs = [ - "asset_py_gapic_pytest.py", - "asset_py_gapic_test.py", - ], - legacy_create_init = False, - deps = [":asset_py_gapic"], -) - -py_gapic_assembly_pkg( - name = "asset-v1p1beta1-py", - deps = [ - ":asset_py_gapic", - ], -) - -############################################################################## -# 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 = "asset_php_proto", - deps = [":asset_proto"], -) - -php_grpc_library( - name = "asset_php_grpc", - srcs = [":asset_proto"], - deps = [":asset_php_proto"], -) - -php_gapic_library( - name = "asset_php_gapic", - srcs = [":asset_proto_with_info"], - grpc_service_config = "cloudasset_grpc_service_config.json", - deps = [ - ":asset_php_grpc", - ":asset_php_proto", - ], -) - -# Open Source Packages -php_gapic_assembly_pkg( - name = "google-cloud-asset-v1p1beta1-php", - deps = [ - ":asset_php_gapic", - ":asset_php_grpc", - ":asset_php_proto", - ], -) - -############################################################################## -# Node.js -############################################################################## -load( - "@com_google_googleapis_imports//:imports.bzl", - "nodejs_gapic_assembly_pkg", - "nodejs_gapic_library", -) - -nodejs_gapic_library( - name = "asset_nodejs_gapic", - package_name = "@google-cloud/asset", - src = ":asset_proto_with_info", - extra_protoc_parameters = ["metadata"], - grpc_service_config = "cloudasset_grpc_service_config.json", - package = "google.cloud.asset.v1p1beta1", - service_yaml = "cloudasset_v1p1beta1.yaml", - deps = [], -) - -nodejs_gapic_assembly_pkg( - name = "asset-v1p1beta1-nodejs", - deps = [ - ":asset_nodejs_gapic", - ":asset_proto", - ], -) - -############################################################################## -# 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 = "asset_ruby_proto", - deps = [":asset_proto"], -) - -ruby_grpc_library( - name = "asset_ruby_grpc", - srcs = [":asset_proto"], - deps = [":asset_ruby_proto"], -) - -ruby_cloud_gapic_library( - name = "asset_ruby_gapic", - srcs = [":asset_proto_with_info"], - extra_protoc_parameters = ["ruby-cloud-gem-name=google-cloud-asset-v1p1beta1"], - deps = [ - ":asset_ruby_grpc", - ":asset_ruby_proto", - ], -) - -# Open Source Packages -ruby_gapic_assembly_pkg( - name = "google-cloud-asset-v1p1beta1-ruby", - deps = [ - ":asset_ruby_gapic", - ":asset_ruby_grpc", - ":asset_ruby_proto", - ], -) - -############################################################################## -# 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 = "asset_csharp_proto", - deps = [":asset_proto"], -) - -csharp_grpc_library( - name = "asset_csharp_grpc", - srcs = [":asset_proto"], - deps = [":asset_csharp_proto"], -) - -csharp_gapic_library( - name = "asset_csharp_gapic", - srcs = [":asset_proto_with_info"], - common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", - grpc_service_config = "cloudasset_grpc_service_config.json", - service_yaml = "cloudasset_v1p1beta1.yaml", - deps = [ - ":asset_csharp_grpc", - ":asset_csharp_proto", - ], -) - -# Open Source Packages -csharp_gapic_assembly_pkg( - name = "google-cloud-asset-v1p1beta1-csharp", - deps = [ - ":asset_csharp_gapic", - ":asset_csharp_grpc", - ":asset_csharp_proto", - ], -) - -############################################################################## -# C++ -############################################################################## -# Put your C++ rules here diff --git a/third_party/googleapis/google/cloud/asset/v1p1beta1/asset_service.proto b/third_party/googleapis/google/cloud/asset/v1p1beta1/asset_service.proto deleted file mode 100644 index d5a0d8c..0000000 --- a/third_party/googleapis/google/cloud/asset/v1p1beta1/asset_service.proto +++ /dev/null @@ -1,149 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.cloud.asset.v1p1beta1; - -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/cloud/asset/v1p1beta1/assets.proto"; - -option csharp_namespace = "Google.Cloud.Asset.V1P1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/asset/v1p1beta1;asset"; -option java_multiple_files = true; -option java_outer_classname = "AssetServiceProto"; -option java_package = "com.google.cloud.asset.v1p1beta1"; -option php_namespace = "Google\\Cloud\\Asset\\V1p1beta1"; - -// Asset service definition. -service AssetService { - option (google.api.default_host) = "cloudasset.googleapis.com"; - option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; - - // Searches all the resources under a given accessible CRM scope - // (project/folder/organization). This RPC gives callers - // especially admins the ability to search all the resources under a scope, - // even if they don't have .get permission of all the resources. Callers - // should have cloud.assets.SearchAllResources permission on the requested - // scope, otherwise it will be rejected. - rpc SearchAllResources(SearchAllResourcesRequest) returns (SearchAllResourcesResponse) { - option (google.api.http) = { - get: "/v1p1beta1/{scope=*/*}/resources:searchAll" - }; - option (google.api.method_signature) = "scope,query,asset_types"; - } - - // Searches all the IAM policies under a given accessible CRM scope - // (project/folder/organization). This RPC gives callers - // especially admins the ability to search all the IAM policies under a scope, - // even if they don't have .getIamPolicy permission of all the IAM policies. - // Callers should have cloud.assets.SearchAllIamPolicies permission on the - // requested scope, otherwise it will be rejected. - rpc SearchAllIamPolicies(SearchAllIamPoliciesRequest) returns (SearchAllIamPoliciesResponse) { - option (google.api.http) = { - get: "/v1p1beta1/{scope=*/*}/iamPolicies:searchAll" - }; - option (google.api.method_signature) = "scope,query"; - } -} - -// Search all resources request. -message SearchAllResourcesRequest { - // Required. The relative name of an asset. The search is limited to the resources - // within the `scope`. The allowed value must be: - // * Organization number (such as "organizations/123") - // * Folder number(such as "folders/1234") - // * Project number (such as "projects/12345") - // * Project id (such as "projects/abc") - string scope = 1 [(google.api.field_behavior) = REQUIRED]; - - // Optional. The query statement. - string query = 2 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. A list of asset types that this request searches for. If empty, it will - // search all the supported asset types. - repeated string asset_types = 3 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. The page size for search result pagination. Page size is capped at 500 even - // if a larger value is given. If set to zero, server will pick an appropriate - // default. Returned results may be fewer than requested. When this happens, - // there could be more results as long as `next_page_token` is returned. - int32 page_size = 4 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. If present, then retrieve the next batch of results from the preceding call - // to this method. `page_token` must be the value of `next_page_token` from - // the previous response. The values of all other method parameters, must be - // identical to those in the previous call. - string page_token = 5 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. A comma separated list of fields specifying the sorting order of the - // results. The default order is ascending. Add " desc" after the field name - // to indicate descending order. Redundant space characters are ignored. For - // example, " foo , bar desc ". - string order_by = 10 [(google.api.field_behavior) = OPTIONAL]; -} - -// Search all resources response. -message SearchAllResourcesResponse { - // A list of resource that match the search query. - repeated StandardResourceMetadata results = 1; - - // If there are more results than those appearing in this response, then - // `next_page_token` is included. To get the next set of results, call this - // method again using the value of `next_page_token` as `page_token`. - string next_page_token = 2; -} - -// Search all IAM policies request. -message SearchAllIamPoliciesRequest { - // Required. The relative name of an asset. The search is limited to the resources - // within the `scope`. The allowed value must be: - // * Organization number (such as "organizations/123") - // * Folder number(such as "folders/1234") - // * Project number (such as "projects/12345") - // * Project id (such as "projects/abc") - string scope = 1 [(google.api.field_behavior) = REQUIRED]; - - // Optional. The query statement. - // Examples: - // * "policy:myuser@mydomain.com" - // * "policy:(myuser@mydomain.com viewer)" - string query = 2 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. The page size for search result pagination. Page size is capped at 500 even - // if a larger value is given. If set to zero, server will pick an appropriate - // default. Returned results may be fewer than requested. When this happens, - // there could be more results as long as `next_page_token` is returned. - int32 page_size = 3 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. If present, retrieve the next batch of results from the preceding call to - // this method. `page_token` must be the value of `next_page_token` from the - // previous response. The values of all other method parameters must be - // identical to those in the previous call. - string page_token = 4 [(google.api.field_behavior) = OPTIONAL]; -} - -// Search all IAM policies response. -message SearchAllIamPoliciesResponse { - // A list of IamPolicy that match the search query. Related information such - // as the associated resource is returned along with the policy. - repeated IamPolicySearchResult results = 1; - - // Set if there are more results than those appearing in this response; to get - // the next set of results, call this method again, using this value as the - // `page_token`. - string next_page_token = 2; -} diff --git a/third_party/googleapis/google/cloud/asset/v1p1beta1/assets.proto b/third_party/googleapis/google/cloud/asset/v1p1beta1/assets.proto deleted file mode 100644 index c0ac140..0000000 --- a/third_party/googleapis/google/cloud/asset/v1p1beta1/assets.proto +++ /dev/null @@ -1,113 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.cloud.asset.v1p1beta1; - -import "google/iam/v1/policy.proto"; - -option cc_enable_arenas = true; -option csharp_namespace = "Google.Cloud.Asset.V1P1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/asset/v1p1beta1;asset"; -option java_multiple_files = true; -option java_outer_classname = "AssetProto"; -option java_package = "com.google.cloud.asset.v1p1beta1"; -option php_namespace = "Google\\Cloud\\Asset\\V1p1beta1"; - -// The standard metadata of a cloud resource. -message StandardResourceMetadata { - // The full resource name. For example: - // `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`. - // See [Resource - // Names](https://cloud.google.com/apis/design/resource_names#full_resource_name) - // for more information. - string name = 1; - - // The type of this resource. - // For example: "compute.googleapis.com/Disk". - string asset_type = 2; - - // The project that this resource belongs to, in the form of - // `projects/{project_number}`. - string project = 3; - - // The display name of this resource. - string display_name = 4; - - // One or more paragraphs of text description of this resource. Maximum length - // could be up to 1M bytes. - string description = 5; - - // Additional searchable attributes of this resource. - // Informational only. The exact set of attributes is subject to change. - // For example: project id, DNS name etc. - repeated string additional_attributes = 10; - - // Location can be "global", regional like "us-east1", or zonal like - // "us-west1-b". - string location = 11; - - // Labels associated with this resource. See [Labelling and grouping GCP - // resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources) - // for more information. - map<string, string> labels = 12; - - // Network tags associated with this resource. Like labels, network tags are a - // type of annotations used to group GCP resources. See [Labelling GCP - // resources](lhttps://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources) - // for more information. - repeated string network_tags = 13; -} - -// The result for a IAM Policy search. -message IamPolicySearchResult { - // Explanation about the IAM policy search result. - message Explanation { - // The map from roles to their included permission matching the permission - // query (e.g. containing `policy.role.permissions:`). A sample role string: - // "roles/compute.instanceAdmin". The roles can also be found in the - // returned `policy` bindings. Note that the map is populated only if - // requesting with a permission query. - map<string, Permissions> matched_permissions = 1; - } - - // The [full resource - // name](https://cloud.google.com/apis/design/resource_names#full_resource_name) - // of the resource associated with this IAM policy. - string resource = 1; - - // The project that the associated GCP resource belongs to, in the form of - // `projects/{project_number}`. If an IAM policy is set on a resource (like VM - // instance, Cloud Storage bucket), the project field will indicate the - // project that contains the resource. If an IAM policy is set on a folder or - // orgnization, the project field will be empty. - string project = 3; - - // The IAM policy directly set on the given resource. Note that the original - // IAM policy can contain multiple bindings. This only contains the bindings - // that match the given query. For queries that don't contain a constrain on - // policies (e.g. an empty query), this contains all the bindings. - google.iam.v1.Policy policy = 4; - - // Explanation about the IAM policy search result. It contains additional - // information to explain why the search result matches the query. - Explanation explanation = 5; -} - -// IAM permissions -message Permissions { - // A list of permissions. A sample permission string: "compute.disk.get". - repeated string permissions = 1; -} diff --git a/third_party/googleapis/google/cloud/asset/v1p1beta1/cloudasset_gapic.yaml b/third_party/googleapis/google/cloud/asset/v1p1beta1/cloudasset_gapic.yaml deleted file mode 100644 index 0bcb880..0000000 --- a/third_party/googleapis/google/cloud/asset/v1p1beta1/cloudasset_gapic.yaml +++ /dev/null @@ -1,2 +0,0 @@ -type: com.google.api.codegen.ConfigProto -config_schema_version: 2.0.0 diff --git a/third_party/googleapis/google/cloud/asset/v1p1beta1/cloudasset_grpc_service_config.json b/third_party/googleapis/google/cloud/asset/v1p1beta1/cloudasset_grpc_service_config.json deleted file mode 100755 index 2c59164..0000000 --- a/third_party/googleapis/google/cloud/asset/v1p1beta1/cloudasset_grpc_service_config.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "methodConfig": [ - { - "name": [ - { - "service": "google.cloud.asset.v1p1beta1.AssetService", - "method": "SearchAllResources" - }, - { - "service": "google.cloud.asset.v1p1beta1.AssetService", - "method": "SearchAllIamPolicies" - } - ], - "timeout": "15s", - "retryPolicy": { - "maxAttempts": 5, - "initialBackoff": "0.100s", - "maxBackoff": "60s", - "backoffMultiplier": 1.3, - "retryableStatusCodes": [ - "DEADLINE_EXCEEDED", - "UNAVAILABLE" - ] - } - } - ] -} diff --git a/third_party/googleapis/google/cloud/asset/v1p1beta1/cloudasset_v1p1beta1.yaml b/third_party/googleapis/google/cloud/asset/v1p1beta1/cloudasset_v1p1beta1.yaml deleted file mode 100644 index 74aad50..0000000 --- a/third_party/googleapis/google/cloud/asset/v1p1beta1/cloudasset_v1p1beta1.yaml +++ /dev/null @@ -1,44 +0,0 @@ -type: google.api.Service -config_version: 3 -name: cloudasset.googleapis.com -title: Cloud Asset API - -apis: -- name: google.cloud.asset.v1p1beta1.AssetService - -documentation: - summary: The cloud asset API manages the history and inventory of cloud resources. - overview: |- - # Cloud Asset API - - The Cloud Asset API keeps a history of Google Cloud Platform (GCP) asset - metadata, and allows GCP users to download a dump of all asset metadata - for the resource types listed below within an organization or a project at - a given timestamp. - - Read more documents here: - https://cloud.google.com/asset-inventory/docs - -backend: - rules: - - selector: google.cloud.asset.v1p1beta1.AssetService.SearchAllIamPolicies - deadline: 600.0 - - selector: google.cloud.asset.v1p1beta1.AssetService.SearchAllResources - deadline: 600.0 - - selector: google.longrunning.Operations.GetOperation - deadline: 60.0 - -authentication: - rules: - - selector: google.cloud.asset.v1p1beta1.AssetService.SearchAllIamPolicies - oauth: - canonical_scopes: |- - https://www.googleapis.com/auth/cloud-platform - - selector: google.cloud.asset.v1p1beta1.AssetService.SearchAllResources - oauth: - canonical_scopes: |- - https://www.googleapis.com/auth/cloud-platform - - selector: google.longrunning.Operations.GetOperation - oauth: - canonical_scopes: |- - https://www.googleapis.com/auth/cloud-platform |
