google-cloud-beyond_corp-app_connectors-v1 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (32) hide show
  1. checksums.yaml +7 -0
  2. data/.yardopts +12 -0
  3. data/AUTHENTICATION.md +149 -0
  4. data/LICENSE.md +201 -0
  5. data/README.md +144 -0
  6. data/lib/google/cloud/beyond_corp/app_connectors/v1/app_connectors_service/client.rb +1049 -0
  7. data/lib/google/cloud/beyond_corp/app_connectors/v1/app_connectors_service/credentials.rb +49 -0
  8. data/lib/google/cloud/beyond_corp/app_connectors/v1/app_connectors_service/operations.rb +772 -0
  9. data/lib/google/cloud/beyond_corp/app_connectors/v1/app_connectors_service/paths.rb +71 -0
  10. data/lib/google/cloud/beyond_corp/app_connectors/v1/app_connectors_service.rb +65 -0
  11. data/lib/google/cloud/beyond_corp/app_connectors/v1/version.rb +30 -0
  12. data/lib/google/cloud/beyond_corp/app_connectors/v1.rb +42 -0
  13. data/lib/google/cloud/beyondcorp/appconnectors/v1/app_connector_instance_config_pb.rb +45 -0
  14. data/lib/google/cloud/beyondcorp/appconnectors/v1/app_connectors_service_pb.rb +117 -0
  15. data/lib/google/cloud/beyondcorp/appconnectors/v1/app_connectors_service_services_pb.rb +70 -0
  16. data/lib/google/cloud/beyondcorp/appconnectors/v1/resource_info_pb.rb +40 -0
  17. data/lib/google-cloud-beyond_corp-app_connectors-v1.rb +21 -0
  18. data/proto_docs/README.md +4 -0
  19. data/proto_docs/google/api/field_behavior.rb +71 -0
  20. data/proto_docs/google/api/resource.rb +222 -0
  21. data/proto_docs/google/cloud/beyondcorp/appconnectors/v1/app_connector_instance_config.rb +82 -0
  22. data/proto_docs/google/cloud/beyondcorp/appconnectors/v1/app_connectors_service.rb +341 -0
  23. data/proto_docs/google/cloud/beyondcorp/appconnectors/v1/resource_info.rb +78 -0
  24. data/proto_docs/google/longrunning/operations.rb +164 -0
  25. data/proto_docs/google/protobuf/any.rb +141 -0
  26. data/proto_docs/google/protobuf/duration.rb +98 -0
  27. data/proto_docs/google/protobuf/empty.rb +34 -0
  28. data/proto_docs/google/protobuf/field_mask.rb +229 -0
  29. data/proto_docs/google/protobuf/timestamp.rb +129 -0
  30. data/proto_docs/google/rpc/status.rb +46 -0
  31. data/proto_docs/google/type/expr.rb +75 -0
  32. metadata +264 -0
@@ -0,0 +1,71 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2022 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 BeyondCorp
23
+ module AppConnectors
24
+ module V1
25
+ module AppConnectorsService
26
+ # Path helper methods for the AppConnectorsService API.
27
+ module Paths
28
+ ##
29
+ # Create a fully-qualified AppConnector resource string.
30
+ #
31
+ # The resource will be in the following format:
32
+ #
33
+ # `projects/{project}/locations/{location}/appConnectors/{app_connector}`
34
+ #
35
+ # @param project [String]
36
+ # @param location [String]
37
+ # @param app_connector [String]
38
+ #
39
+ # @return [::String]
40
+ def app_connector_path project:, location:, app_connector:
41
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
42
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
43
+
44
+ "projects/#{project}/locations/#{location}/appConnectors/#{app_connector}"
45
+ end
46
+
47
+ ##
48
+ # Create a fully-qualified Location resource string.
49
+ #
50
+ # The resource will be in the following format:
51
+ #
52
+ # `projects/{project}/locations/{location}`
53
+ #
54
+ # @param project [String]
55
+ # @param location [String]
56
+ #
57
+ # @return [::String]
58
+ def location_path project:, location:
59
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
60
+
61
+ "projects/#{project}/locations/#{location}"
62
+ end
63
+
64
+ extend self
65
+ end
66
+ end
67
+ end
68
+ end
69
+ end
70
+ end
71
+ end
@@ -0,0 +1,65 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2022 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/beyond_corp/app_connectors/v1/version"
24
+
25
+ require "google/cloud/beyond_corp/app_connectors/v1/app_connectors_service/credentials"
26
+ require "google/cloud/beyond_corp/app_connectors/v1/app_connectors_service/paths"
27
+ require "google/cloud/beyond_corp/app_connectors/v1/app_connectors_service/operations"
28
+ require "google/cloud/beyond_corp/app_connectors/v1/app_connectors_service/client"
29
+
30
+ module Google
31
+ module Cloud
32
+ module BeyondCorp
33
+ module AppConnectors
34
+ module V1
35
+ ##
36
+ # ## API Overview
37
+ #
38
+ # The `beyondcorp.googleapis.com` service implements the Google Cloud
39
+ # BeyondCorp API.
40
+ #
41
+ # ## Data Model
42
+ #
43
+ # The AppConnectorsService exposes the following resource:
44
+ #
45
+ # * AppConnectors, named as follows:
46
+ # `projects/{project_id}/locations/{location_id}/appConnectors/{app_connector_id}`.
47
+ #
48
+ # The AppConnectorsService provides methods to manage
49
+ # (create/read/update/delete) BeyondCorp AppConnectors.
50
+ #
51
+ # To load this service and instantiate a client:
52
+ #
53
+ # require "google/cloud/beyond_corp/app_connectors/v1/app_connectors_service"
54
+ # client = ::Google::Cloud::BeyondCorp::AppConnectors::V1::AppConnectorsService::Client.new
55
+ #
56
+ module AppConnectorsService
57
+ end
58
+ end
59
+ end
60
+ end
61
+ end
62
+ end
63
+
64
+ helper_path = ::File.join __dir__, "app_connectors_service", "helpers.rb"
65
+ require "google/cloud/beyond_corp/app_connectors/v1/app_connectors_service/helpers" if ::File.file? helper_path
@@ -0,0 +1,30 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2022 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 BeyondCorp
23
+ module AppConnectors
24
+ module V1
25
+ VERSION = "0.1.0"
26
+ end
27
+ end
28
+ end
29
+ end
30
+ end
@@ -0,0 +1,42 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2022 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/beyond_corp/app_connectors/v1/app_connectors_service"
20
+ require "google/cloud/beyond_corp/app_connectors/v1/version"
21
+
22
+ module Google
23
+ module Cloud
24
+ module BeyondCorp
25
+ module AppConnectors
26
+ ##
27
+ # To load this package, including all its services, and instantiate a client:
28
+ #
29
+ # @example
30
+ #
31
+ # require "google/cloud/beyond_corp/app_connectors/v1"
32
+ # client = ::Google::Cloud::BeyondCorp::AppConnectors::V1::AppConnectorsService::Client.new
33
+ #
34
+ module V1
35
+ end
36
+ end
37
+ end
38
+ end
39
+ end
40
+
41
+ helper_path = ::File.join __dir__, "v1", "_helpers.rb"
42
+ require "google/cloud/beyond_corp/app_connectors/v1/_helpers" if ::File.file? helper_path
@@ -0,0 +1,45 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/cloud/beyondcorp/appconnectors/v1/app_connector_instance_config.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'google/api/field_behavior_pb'
7
+ require 'google/protobuf/any_pb'
8
+
9
+ Google::Protobuf::DescriptorPool.generated_pool.build do
10
+ add_file("google/cloud/beyondcorp/appconnectors/v1/app_connector_instance_config.proto", :syntax => :proto3) do
11
+ add_message "google.cloud.beyondcorp.appconnectors.v1.AppConnectorInstanceConfig" do
12
+ optional :sequence_number, :int64, 1
13
+ optional :instance_config, :message, 2, "google.protobuf.Any"
14
+ optional :notification_config, :message, 3, "google.cloud.beyondcorp.appconnectors.v1.NotificationConfig"
15
+ optional :image_config, :message, 4, "google.cloud.beyondcorp.appconnectors.v1.ImageConfig"
16
+ end
17
+ add_message "google.cloud.beyondcorp.appconnectors.v1.NotificationConfig" do
18
+ oneof :config do
19
+ optional :pubsub_notification, :message, 1, "google.cloud.beyondcorp.appconnectors.v1.NotificationConfig.CloudPubSubNotificationConfig"
20
+ end
21
+ end
22
+ add_message "google.cloud.beyondcorp.appconnectors.v1.NotificationConfig.CloudPubSubNotificationConfig" do
23
+ optional :pubsub_subscription, :string, 1
24
+ end
25
+ add_message "google.cloud.beyondcorp.appconnectors.v1.ImageConfig" do
26
+ optional :target_image, :string, 1
27
+ optional :stable_image, :string, 2
28
+ end
29
+ end
30
+ end
31
+
32
+ module Google
33
+ module Cloud
34
+ module BeyondCorp
35
+ module AppConnectors
36
+ module V1
37
+ AppConnectorInstanceConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.beyondcorp.appconnectors.v1.AppConnectorInstanceConfig").msgclass
38
+ NotificationConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.beyondcorp.appconnectors.v1.NotificationConfig").msgclass
39
+ NotificationConfig::CloudPubSubNotificationConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.beyondcorp.appconnectors.v1.NotificationConfig.CloudPubSubNotificationConfig").msgclass
40
+ ImageConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.beyondcorp.appconnectors.v1.ImageConfig").msgclass
41
+ end
42
+ end
43
+ end
44
+ end
45
+ end
@@ -0,0 +1,117 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/cloud/beyondcorp/appconnectors/v1/app_connectors_service.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'google/api/annotations_pb'
7
+ require 'google/api/client_pb'
8
+ require 'google/api/field_behavior_pb'
9
+ require 'google/api/resource_pb'
10
+ require 'google/cloud/beyondcorp/appconnectors/v1/app_connector_instance_config_pb'
11
+ require 'google/cloud/beyondcorp/appconnectors/v1/resource_info_pb'
12
+ require 'google/longrunning/operations_pb'
13
+ require 'google/protobuf/field_mask_pb'
14
+ require 'google/protobuf/timestamp_pb'
15
+
16
+ Google::Protobuf::DescriptorPool.generated_pool.build do
17
+ add_file("google/cloud/beyondcorp/appconnectors/v1/app_connectors_service.proto", :syntax => :proto3) do
18
+ add_message "google.cloud.beyondcorp.appconnectors.v1.ListAppConnectorsRequest" do
19
+ optional :parent, :string, 1
20
+ optional :page_size, :int32, 2
21
+ optional :page_token, :string, 3
22
+ optional :filter, :string, 4
23
+ optional :order_by, :string, 5
24
+ end
25
+ add_message "google.cloud.beyondcorp.appconnectors.v1.ListAppConnectorsResponse" do
26
+ repeated :app_connectors, :message, 1, "google.cloud.beyondcorp.appconnectors.v1.AppConnector"
27
+ optional :next_page_token, :string, 2
28
+ repeated :unreachable, :string, 3
29
+ end
30
+ add_message "google.cloud.beyondcorp.appconnectors.v1.GetAppConnectorRequest" do
31
+ optional :name, :string, 1
32
+ end
33
+ add_message "google.cloud.beyondcorp.appconnectors.v1.CreateAppConnectorRequest" do
34
+ optional :parent, :string, 1
35
+ optional :app_connector_id, :string, 2
36
+ optional :app_connector, :message, 3, "google.cloud.beyondcorp.appconnectors.v1.AppConnector"
37
+ optional :request_id, :string, 4
38
+ optional :validate_only, :bool, 5
39
+ end
40
+ add_message "google.cloud.beyondcorp.appconnectors.v1.UpdateAppConnectorRequest" do
41
+ optional :update_mask, :message, 1, "google.protobuf.FieldMask"
42
+ optional :app_connector, :message, 2, "google.cloud.beyondcorp.appconnectors.v1.AppConnector"
43
+ optional :request_id, :string, 3
44
+ optional :validate_only, :bool, 4
45
+ end
46
+ add_message "google.cloud.beyondcorp.appconnectors.v1.DeleteAppConnectorRequest" do
47
+ optional :name, :string, 1
48
+ optional :request_id, :string, 2
49
+ optional :validate_only, :bool, 3
50
+ end
51
+ add_message "google.cloud.beyondcorp.appconnectors.v1.ReportStatusRequest" do
52
+ optional :app_connector, :string, 1
53
+ optional :resource_info, :message, 2, "google.cloud.beyondcorp.appconnectors.v1.ResourceInfo"
54
+ optional :request_id, :string, 3
55
+ optional :validate_only, :bool, 4
56
+ end
57
+ add_message "google.cloud.beyondcorp.appconnectors.v1.AppConnector" do
58
+ optional :name, :string, 1
59
+ optional :create_time, :message, 2, "google.protobuf.Timestamp"
60
+ optional :update_time, :message, 3, "google.protobuf.Timestamp"
61
+ map :labels, :string, :string, 4
62
+ optional :display_name, :string, 5
63
+ optional :uid, :string, 6
64
+ optional :state, :enum, 7, "google.cloud.beyondcorp.appconnectors.v1.AppConnector.State"
65
+ optional :principal_info, :message, 8, "google.cloud.beyondcorp.appconnectors.v1.AppConnector.PrincipalInfo"
66
+ optional :resource_info, :message, 11, "google.cloud.beyondcorp.appconnectors.v1.ResourceInfo"
67
+ end
68
+ add_message "google.cloud.beyondcorp.appconnectors.v1.AppConnector.PrincipalInfo" do
69
+ oneof :type do
70
+ optional :service_account, :message, 1, "google.cloud.beyondcorp.appconnectors.v1.AppConnector.PrincipalInfo.ServiceAccount"
71
+ end
72
+ end
73
+ add_message "google.cloud.beyondcorp.appconnectors.v1.AppConnector.PrincipalInfo.ServiceAccount" do
74
+ optional :email, :string, 1
75
+ end
76
+ add_enum "google.cloud.beyondcorp.appconnectors.v1.AppConnector.State" do
77
+ value :STATE_UNSPECIFIED, 0
78
+ value :CREATING, 1
79
+ value :CREATED, 2
80
+ value :UPDATING, 3
81
+ value :DELETING, 4
82
+ value :DOWN, 5
83
+ end
84
+ add_message "google.cloud.beyondcorp.appconnectors.v1.AppConnectorOperationMetadata" do
85
+ optional :create_time, :message, 1, "google.protobuf.Timestamp"
86
+ optional :end_time, :message, 2, "google.protobuf.Timestamp"
87
+ optional :target, :string, 3
88
+ optional :verb, :string, 4
89
+ optional :status_message, :string, 5
90
+ optional :requested_cancellation, :bool, 6
91
+ optional :api_version, :string, 7
92
+ end
93
+ end
94
+ end
95
+
96
+ module Google
97
+ module Cloud
98
+ module BeyondCorp
99
+ module AppConnectors
100
+ module V1
101
+ ListAppConnectorsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.beyondcorp.appconnectors.v1.ListAppConnectorsRequest").msgclass
102
+ ListAppConnectorsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.beyondcorp.appconnectors.v1.ListAppConnectorsResponse").msgclass
103
+ GetAppConnectorRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.beyondcorp.appconnectors.v1.GetAppConnectorRequest").msgclass
104
+ CreateAppConnectorRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.beyondcorp.appconnectors.v1.CreateAppConnectorRequest").msgclass
105
+ UpdateAppConnectorRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.beyondcorp.appconnectors.v1.UpdateAppConnectorRequest").msgclass
106
+ DeleteAppConnectorRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.beyondcorp.appconnectors.v1.DeleteAppConnectorRequest").msgclass
107
+ ReportStatusRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.beyondcorp.appconnectors.v1.ReportStatusRequest").msgclass
108
+ AppConnector = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.beyondcorp.appconnectors.v1.AppConnector").msgclass
109
+ AppConnector::PrincipalInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.beyondcorp.appconnectors.v1.AppConnector.PrincipalInfo").msgclass
110
+ AppConnector::PrincipalInfo::ServiceAccount = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.beyondcorp.appconnectors.v1.AppConnector.PrincipalInfo.ServiceAccount").msgclass
111
+ AppConnector::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.beyondcorp.appconnectors.v1.AppConnector.State").enummodule
112
+ AppConnectorOperationMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.beyondcorp.appconnectors.v1.AppConnectorOperationMetadata").msgclass
113
+ end
114
+ end
115
+ end
116
+ end
117
+ end
@@ -0,0 +1,70 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # Source: google/cloud/beyondcorp/appconnectors/v1/app_connectors_service.proto for package 'Google.Cloud.BeyondCorp.AppConnectors.V1'
3
+ # Original file comments:
4
+ # Copyright 2022 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/beyondcorp/appconnectors/v1/app_connectors_service_pb'
21
+
22
+ module Google
23
+ module Cloud
24
+ module BeyondCorp
25
+ module AppConnectors
26
+ module V1
27
+ module AppConnectorsService
28
+ # ## API Overview
29
+ #
30
+ # The `beyondcorp.googleapis.com` service implements the Google Cloud
31
+ # BeyondCorp API.
32
+ #
33
+ # ## Data Model
34
+ #
35
+ # The AppConnectorsService exposes the following resource:
36
+ #
37
+ # * AppConnectors, named as follows:
38
+ # `projects/{project_id}/locations/{location_id}/appConnectors/{app_connector_id}`.
39
+ #
40
+ # The AppConnectorsService provides methods to manage
41
+ # (create/read/update/delete) BeyondCorp AppConnectors.
42
+ class Service
43
+
44
+ include ::GRPC::GenericService
45
+
46
+ self.marshal_class_method = :encode
47
+ self.unmarshal_class_method = :decode
48
+ self.service_name = 'google.cloud.beyondcorp.appconnectors.v1.AppConnectorsService'
49
+
50
+ # Lists AppConnectors in a given project and location.
51
+ rpc :ListAppConnectors, ::Google::Cloud::BeyondCorp::AppConnectors::V1::ListAppConnectorsRequest, ::Google::Cloud::BeyondCorp::AppConnectors::V1::ListAppConnectorsResponse
52
+ # Gets details of a single AppConnector.
53
+ rpc :GetAppConnector, ::Google::Cloud::BeyondCorp::AppConnectors::V1::GetAppConnectorRequest, ::Google::Cloud::BeyondCorp::AppConnectors::V1::AppConnector
54
+ # Creates a new AppConnector in a given project and location.
55
+ rpc :CreateAppConnector, ::Google::Cloud::BeyondCorp::AppConnectors::V1::CreateAppConnectorRequest, ::Google::Longrunning::Operation
56
+ # Updates the parameters of a single AppConnector.
57
+ rpc :UpdateAppConnector, ::Google::Cloud::BeyondCorp::AppConnectors::V1::UpdateAppConnectorRequest, ::Google::Longrunning::Operation
58
+ # Deletes a single AppConnector.
59
+ rpc :DeleteAppConnector, ::Google::Cloud::BeyondCorp::AppConnectors::V1::DeleteAppConnectorRequest, ::Google::Longrunning::Operation
60
+ # Report status for a given connector.
61
+ rpc :ReportStatus, ::Google::Cloud::BeyondCorp::AppConnectors::V1::ReportStatusRequest, ::Google::Longrunning::Operation
62
+ end
63
+
64
+ Stub = Service.rpc_stub_class
65
+ end
66
+ end
67
+ end
68
+ end
69
+ end
70
+ end
@@ -0,0 +1,40 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/cloud/beyondcorp/appconnectors/v1/resource_info.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'google/api/field_behavior_pb'
7
+ require 'google/protobuf/any_pb'
8
+ require 'google/protobuf/timestamp_pb'
9
+
10
+ Google::Protobuf::DescriptorPool.generated_pool.build do
11
+ add_file("google/cloud/beyondcorp/appconnectors/v1/resource_info.proto", :syntax => :proto3) do
12
+ add_message "google.cloud.beyondcorp.appconnectors.v1.ResourceInfo" do
13
+ optional :id, :string, 1
14
+ optional :status, :enum, 2, "google.cloud.beyondcorp.appconnectors.v1.HealthStatus"
15
+ optional :resource, :message, 3, "google.protobuf.Any"
16
+ optional :time, :message, 4, "google.protobuf.Timestamp"
17
+ repeated :sub, :message, 5, "google.cloud.beyondcorp.appconnectors.v1.ResourceInfo"
18
+ end
19
+ add_enum "google.cloud.beyondcorp.appconnectors.v1.HealthStatus" do
20
+ value :HEALTH_STATUS_UNSPECIFIED, 0
21
+ value :HEALTHY, 1
22
+ value :UNHEALTHY, 2
23
+ value :UNRESPONSIVE, 3
24
+ value :DEGRADED, 4
25
+ end
26
+ end
27
+ end
28
+
29
+ module Google
30
+ module Cloud
31
+ module BeyondCorp
32
+ module AppConnectors
33
+ module V1
34
+ ResourceInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.beyondcorp.appconnectors.v1.ResourceInfo").msgclass
35
+ HealthStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.beyondcorp.appconnectors.v1.HealthStatus").enummodule
36
+ end
37
+ end
38
+ end
39
+ end
40
+ end
@@ -0,0 +1,21 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2022 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/beyond_corp/app_connectors/v1"
@@ -0,0 +1,4 @@
1
+ # BeyondCorp AppConnectors V1 Protocol Buffer Documentation
2
+
3
+ These files are for the YARD documentation of the generated protobuf files.
4
+ They are not intended to be required or loaded at runtime.
@@ -0,0 +1,71 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2022 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