google-cloud-ids-v1 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.yardopts +12 -0
- data/AUTHENTICATION.md +167 -0
- data/LICENSE.md +201 -0
- data/README.md +139 -0
- data/lib/google/cloud/ids/v1/ids/client.rb +765 -0
- data/lib/google/cloud/ids/v1/ids/credentials.rb +47 -0
- data/lib/google/cloud/ids/v1/ids/operations.rb +767 -0
- data/lib/google/cloud/ids/v1/ids/paths.rb +69 -0
- data/lib/google/cloud/ids/v1/ids.rb +50 -0
- data/lib/google/cloud/ids/v1/ids_pb.rb +95 -0
- data/lib/google/cloud/ids/v1/ids_services_pb.rb +51 -0
- data/lib/google/cloud/ids/v1/version.rb +28 -0
- data/lib/google/cloud/ids/v1.rb +38 -0
- data/lib/google-cloud-ids-v1.rb +21 -0
- data/proto_docs/README.md +4 -0
- data/proto_docs/google/api/field_behavior.rb +71 -0
- data/proto_docs/google/api/resource.rb +283 -0
- data/proto_docs/google/cloud/ids/v1/ids.rb +250 -0
- data/proto_docs/google/longrunning/operations.rb +164 -0
- data/proto_docs/google/protobuf/any.rb +141 -0
- data/proto_docs/google/protobuf/duration.rb +98 -0
- data/proto_docs/google/protobuf/empty.rb +36 -0
- data/proto_docs/google/protobuf/field_mask.rb +229 -0
- data/proto_docs/google/protobuf/timestamp.rb +129 -0
- data/proto_docs/google/rpc/status.rb +46 -0
- metadata +221 -0
@@ -0,0 +1,69 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2021 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Cloud
|
22
|
+
module IDS
|
23
|
+
module V1
|
24
|
+
module IDS
|
25
|
+
# Path helper methods for the IDS API.
|
26
|
+
module Paths
|
27
|
+
##
|
28
|
+
# Create a fully-qualified Endpoint resource string.
|
29
|
+
#
|
30
|
+
# The resource will be in the following format:
|
31
|
+
#
|
32
|
+
# `projects/{project}/locations/{location}/endpoints/{endpoint}`
|
33
|
+
#
|
34
|
+
# @param project [String]
|
35
|
+
# @param location [String]
|
36
|
+
# @param endpoint [String]
|
37
|
+
#
|
38
|
+
# @return [::String]
|
39
|
+
def endpoint_path project:, location:, endpoint:
|
40
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
41
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
42
|
+
|
43
|
+
"projects/#{project}/locations/#{location}/endpoints/#{endpoint}"
|
44
|
+
end
|
45
|
+
|
46
|
+
##
|
47
|
+
# Create a fully-qualified Location resource string.
|
48
|
+
#
|
49
|
+
# The resource will be in the following format:
|
50
|
+
#
|
51
|
+
# `projects/{project}/locations/{location}`
|
52
|
+
#
|
53
|
+
# @param project [String]
|
54
|
+
# @param location [String]
|
55
|
+
#
|
56
|
+
# @return [::String]
|
57
|
+
def location_path project:, location:
|
58
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
59
|
+
|
60
|
+
"projects/#{project}/locations/#{location}"
|
61
|
+
end
|
62
|
+
|
63
|
+
extend self
|
64
|
+
end
|
65
|
+
end
|
66
|
+
end
|
67
|
+
end
|
68
|
+
end
|
69
|
+
end
|
@@ -0,0 +1,50 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2021 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
require "gapic/common"
|
20
|
+
require "gapic/config"
|
21
|
+
require "gapic/config/method"
|
22
|
+
|
23
|
+
require "google/cloud/ids/v1/version"
|
24
|
+
|
25
|
+
require "google/cloud/ids/v1/ids/credentials"
|
26
|
+
require "google/cloud/ids/v1/ids/paths"
|
27
|
+
require "google/cloud/ids/v1/ids/operations"
|
28
|
+
require "google/cloud/ids/v1/ids/client"
|
29
|
+
|
30
|
+
module Google
|
31
|
+
module Cloud
|
32
|
+
module IDS
|
33
|
+
module V1
|
34
|
+
##
|
35
|
+
# The IDS Service
|
36
|
+
#
|
37
|
+
# To load this service and instantiate a client:
|
38
|
+
#
|
39
|
+
# require "google/cloud/ids/v1/ids"
|
40
|
+
# client = ::Google::Cloud::IDS::V1::IDS::Client.new
|
41
|
+
#
|
42
|
+
module IDS
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
48
|
+
|
49
|
+
helper_path = ::File.join __dir__, "ids", "helpers.rb"
|
50
|
+
require "google/cloud/ids/v1/ids/helpers" if ::File.file? helper_path
|
@@ -0,0 +1,95 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/cloud/ids/v1/ids.proto
|
3
|
+
|
4
|
+
require 'google/api/annotations_pb'
|
5
|
+
require 'google/api/client_pb'
|
6
|
+
require 'google/api/field_behavior_pb'
|
7
|
+
require 'google/api/resource_pb'
|
8
|
+
require 'google/longrunning/operations_pb'
|
9
|
+
require 'google/protobuf/field_mask_pb'
|
10
|
+
require 'google/protobuf/timestamp_pb'
|
11
|
+
require 'google/protobuf'
|
12
|
+
|
13
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
14
|
+
add_file("google/cloud/ids/v1/ids.proto", :syntax => :proto3) do
|
15
|
+
add_message "google.cloud.ids.v1.Endpoint" do
|
16
|
+
optional :name, :string, 1
|
17
|
+
optional :create_time, :message, 2, "google.protobuf.Timestamp"
|
18
|
+
optional :update_time, :message, 3, "google.protobuf.Timestamp"
|
19
|
+
map :labels, :string, :string, 4
|
20
|
+
optional :network, :string, 5
|
21
|
+
optional :endpoint_forwarding_rule, :string, 6
|
22
|
+
optional :endpoint_ip, :string, 7
|
23
|
+
optional :description, :string, 8
|
24
|
+
optional :severity, :enum, 9, "google.cloud.ids.v1.Endpoint.Severity"
|
25
|
+
optional :state, :enum, 12, "google.cloud.ids.v1.Endpoint.State"
|
26
|
+
optional :traffic_logs, :bool, 13
|
27
|
+
end
|
28
|
+
add_enum "google.cloud.ids.v1.Endpoint.Severity" do
|
29
|
+
value :SEVERITY_UNSPECIFIED, 0
|
30
|
+
value :INFORMATIONAL, 1
|
31
|
+
value :LOW, 2
|
32
|
+
value :MEDIUM, 3
|
33
|
+
value :HIGH, 4
|
34
|
+
value :CRITICAL, 5
|
35
|
+
end
|
36
|
+
add_enum "google.cloud.ids.v1.Endpoint.State" do
|
37
|
+
value :STATE_UNSPECIFIED, 0
|
38
|
+
value :CREATING, 1
|
39
|
+
value :READY, 2
|
40
|
+
value :DELETING, 3
|
41
|
+
end
|
42
|
+
add_message "google.cloud.ids.v1.ListEndpointsRequest" do
|
43
|
+
optional :parent, :string, 1
|
44
|
+
optional :page_size, :int32, 2
|
45
|
+
optional :page_token, :string, 3
|
46
|
+
optional :filter, :string, 4
|
47
|
+
optional :order_by, :string, 5
|
48
|
+
end
|
49
|
+
add_message "google.cloud.ids.v1.ListEndpointsResponse" do
|
50
|
+
repeated :endpoints, :message, 1, "google.cloud.ids.v1.Endpoint"
|
51
|
+
optional :next_page_token, :string, 2
|
52
|
+
repeated :unreachable, :string, 3
|
53
|
+
end
|
54
|
+
add_message "google.cloud.ids.v1.GetEndpointRequest" do
|
55
|
+
optional :name, :string, 1
|
56
|
+
end
|
57
|
+
add_message "google.cloud.ids.v1.CreateEndpointRequest" do
|
58
|
+
optional :parent, :string, 1
|
59
|
+
optional :endpoint_id, :string, 2
|
60
|
+
optional :endpoint, :message, 3, "google.cloud.ids.v1.Endpoint"
|
61
|
+
optional :request_id, :string, 4
|
62
|
+
end
|
63
|
+
add_message "google.cloud.ids.v1.DeleteEndpointRequest" do
|
64
|
+
optional :name, :string, 1
|
65
|
+
optional :request_id, :string, 2
|
66
|
+
end
|
67
|
+
add_message "google.cloud.ids.v1.OperationMetadata" do
|
68
|
+
optional :create_time, :message, 1, "google.protobuf.Timestamp"
|
69
|
+
optional :end_time, :message, 2, "google.protobuf.Timestamp"
|
70
|
+
optional :target, :string, 3
|
71
|
+
optional :verb, :string, 4
|
72
|
+
optional :status_message, :string, 5
|
73
|
+
optional :requested_cancellation, :bool, 6
|
74
|
+
optional :api_version, :string, 7
|
75
|
+
end
|
76
|
+
end
|
77
|
+
end
|
78
|
+
|
79
|
+
module Google
|
80
|
+
module Cloud
|
81
|
+
module IDS
|
82
|
+
module V1
|
83
|
+
Endpoint = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.ids.v1.Endpoint").msgclass
|
84
|
+
Endpoint::Severity = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.ids.v1.Endpoint.Severity").enummodule
|
85
|
+
Endpoint::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.ids.v1.Endpoint.State").enummodule
|
86
|
+
ListEndpointsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.ids.v1.ListEndpointsRequest").msgclass
|
87
|
+
ListEndpointsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.ids.v1.ListEndpointsResponse").msgclass
|
88
|
+
GetEndpointRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.ids.v1.GetEndpointRequest").msgclass
|
89
|
+
CreateEndpointRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.ids.v1.CreateEndpointRequest").msgclass
|
90
|
+
DeleteEndpointRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.ids.v1.DeleteEndpointRequest").msgclass
|
91
|
+
OperationMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.ids.v1.OperationMetadata").msgclass
|
92
|
+
end
|
93
|
+
end
|
94
|
+
end
|
95
|
+
end
|
@@ -0,0 +1,51 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# Source: google/cloud/ids/v1/ids.proto for package 'Google.Cloud.IDS.V1'
|
3
|
+
# Original file comments:
|
4
|
+
# Copyright 2021 Google LLC
|
5
|
+
#
|
6
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
7
|
+
# you may not use this file except in compliance with the License.
|
8
|
+
# You may obtain a copy of the License at
|
9
|
+
#
|
10
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
11
|
+
#
|
12
|
+
# Unless required by applicable law or agreed to in writing, software
|
13
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
14
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
15
|
+
# See the License for the specific language governing permissions and
|
16
|
+
# limitations under the License.
|
17
|
+
#
|
18
|
+
|
19
|
+
require 'grpc'
|
20
|
+
require 'google/cloud/ids/v1/ids_pb'
|
21
|
+
|
22
|
+
module Google
|
23
|
+
module Cloud
|
24
|
+
module IDS
|
25
|
+
module V1
|
26
|
+
module IDS
|
27
|
+
# The IDS Service
|
28
|
+
class Service
|
29
|
+
|
30
|
+
include ::GRPC::GenericService
|
31
|
+
|
32
|
+
self.marshal_class_method = :encode
|
33
|
+
self.unmarshal_class_method = :decode
|
34
|
+
self.service_name = 'google.cloud.ids.v1.IDS'
|
35
|
+
|
36
|
+
# Lists Endpoints in a given project and location.
|
37
|
+
rpc :ListEndpoints, ::Google::Cloud::IDS::V1::ListEndpointsRequest, ::Google::Cloud::IDS::V1::ListEndpointsResponse
|
38
|
+
# Gets details of a single Endpoint.
|
39
|
+
rpc :GetEndpoint, ::Google::Cloud::IDS::V1::GetEndpointRequest, ::Google::Cloud::IDS::V1::Endpoint
|
40
|
+
# Creates a new Endpoint in a given project and location.
|
41
|
+
rpc :CreateEndpoint, ::Google::Cloud::IDS::V1::CreateEndpointRequest, ::Google::Longrunning::Operation
|
42
|
+
# Deletes a single Endpoint.
|
43
|
+
rpc :DeleteEndpoint, ::Google::Cloud::IDS::V1::DeleteEndpointRequest, ::Google::Longrunning::Operation
|
44
|
+
end
|
45
|
+
|
46
|
+
Stub = Service.rpc_stub_class
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
@@ -0,0 +1,28 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2021 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Cloud
|
22
|
+
module IDS
|
23
|
+
module V1
|
24
|
+
VERSION = "0.1.0"
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
@@ -0,0 +1,38 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2021 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
require "google/cloud/ids/v1/ids"
|
20
|
+
require "google/cloud/ids/v1/version"
|
21
|
+
|
22
|
+
module Google
|
23
|
+
module Cloud
|
24
|
+
module IDS
|
25
|
+
##
|
26
|
+
# To load this package, including all its services, and instantiate a client:
|
27
|
+
#
|
28
|
+
# require "google/cloud/ids/v1"
|
29
|
+
# client = ::Google::Cloud::IDS::V1::IDS::Client.new
|
30
|
+
#
|
31
|
+
module V1
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
36
|
+
|
37
|
+
helper_path = ::File.join __dir__, "v1", "_helpers.rb"
|
38
|
+
require "google/cloud/ids/v1/_helpers" if ::File.file? helper_path
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2021 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
# This gem does not autoload during Bundler.require. To load this gem,
|
20
|
+
# issue explicit require statements for the packages desired, e.g.:
|
21
|
+
# require "google/cloud/ids/v1"
|
@@ -0,0 +1,71 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2021 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Api
|
22
|
+
# An indicator of the behavior of a given field (for example, that a field
|
23
|
+
# is required in requests, or given as output but ignored as input).
|
24
|
+
# This **does not** change the behavior in protocol buffers itself; it only
|
25
|
+
# denotes the behavior and may affect how API tooling handles the field.
|
26
|
+
#
|
27
|
+
# Note: This enum **may** receive new values in the future.
|
28
|
+
module FieldBehavior
|
29
|
+
# Conventional default for enums. Do not use this.
|
30
|
+
FIELD_BEHAVIOR_UNSPECIFIED = 0
|
31
|
+
|
32
|
+
# Specifically denotes a field as optional.
|
33
|
+
# While all fields in protocol buffers are optional, this may be specified
|
34
|
+
# for emphasis if appropriate.
|
35
|
+
OPTIONAL = 1
|
36
|
+
|
37
|
+
# Denotes a field as required.
|
38
|
+
# This indicates that the field **must** be provided as part of the request,
|
39
|
+
# and failure to do so will cause an error (usually `INVALID_ARGUMENT`).
|
40
|
+
REQUIRED = 2
|
41
|
+
|
42
|
+
# Denotes a field as output only.
|
43
|
+
# This indicates that the field is provided in responses, but including the
|
44
|
+
# field in a request does nothing (the server *must* ignore it and
|
45
|
+
# *must not* throw an error as a result of the field's presence).
|
46
|
+
OUTPUT_ONLY = 3
|
47
|
+
|
48
|
+
# Denotes a field as input only.
|
49
|
+
# This indicates that the field is provided in requests, and the
|
50
|
+
# corresponding field is not included in output.
|
51
|
+
INPUT_ONLY = 4
|
52
|
+
|
53
|
+
# Denotes a field as immutable.
|
54
|
+
# This indicates that the field may be set once in a request to create a
|
55
|
+
# resource, but may not be changed thereafter.
|
56
|
+
IMMUTABLE = 5
|
57
|
+
|
58
|
+
# Denotes that a (repeated) field is an unordered list.
|
59
|
+
# This indicates that the service may provide the elements of the list
|
60
|
+
# in any arbitrary order, rather than the order the user originally
|
61
|
+
# provided. Additionally, the list's order may or may not be stable.
|
62
|
+
UNORDERED_LIST = 6
|
63
|
+
|
64
|
+
# Denotes that this field returns a non-empty default value if not set.
|
65
|
+
# This indicates that if the user provides the empty value in a request,
|
66
|
+
# a non-empty value will be returned. The user will not be aware of what
|
67
|
+
# non-empty value to expect.
|
68
|
+
NON_EMPTY_DEFAULT = 7
|
69
|
+
end
|
70
|
+
end
|
71
|
+
end
|