google-cloud-beyond_corp 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.yardopts +11 -0
- data/AUTHENTICATION.md +149 -0
- data/LICENSE.md +201 -0
- data/README.md +134 -0
- data/lib/google/cloud/beyond_corp/app_connections/version.rb +29 -0
- data/lib/google/cloud/beyond_corp/app_connections.rb +130 -0
- data/lib/google/cloud/beyond_corp/app_connectors/version.rb +29 -0
- data/lib/google/cloud/beyond_corp/app_connectors.rb +130 -0
- data/lib/google/cloud/beyond_corp/app_gateways/version.rb +29 -0
- data/lib/google/cloud/beyond_corp/app_gateways.rb +130 -0
- data/lib/google/cloud/beyond_corp/client_connector_services/version.rb +29 -0
- data/lib/google/cloud/beyond_corp/client_connector_services.rb +127 -0
- data/lib/google/cloud/beyond_corp/client_gateways/version.rb +29 -0
- data/lib/google/cloud/beyond_corp/client_gateways.rb +127 -0
- data/lib/google/cloud/beyond_corp/version.rb +23 -0
- data/lib/google/cloud/beyond_corp.rb +17 -0
- data/lib/google-cloud-beyond_corp.rb +23 -0
- metadata +288 -0
@@ -0,0 +1,29 @@
|
|
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
|
+
# @private Unused
|
25
|
+
VERSION = ""
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
@@ -0,0 +1,130 @@
|
|
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 this file early so that the version constant gets defined before
|
20
|
+
# requiring "google/cloud". This is because google-cloud-core will load the
|
21
|
+
# entrypoint (gem name) file, which in turn re-requires this file (hence
|
22
|
+
# causing a require cycle) unless the version constant is already defined.
|
23
|
+
require "google/cloud/beyond_corp/app_connectors/version"
|
24
|
+
|
25
|
+
require "googleauth"
|
26
|
+
gem "google-cloud-core"
|
27
|
+
require "google/cloud" unless defined? ::Google::Cloud.new
|
28
|
+
require "google/cloud/config"
|
29
|
+
|
30
|
+
# Set the default configuration
|
31
|
+
::Google::Cloud.configure.add_config! :beyond_corp_app_connectors do |config|
|
32
|
+
config.add_field! :endpoint, "beyondcorp.googleapis.com", match: ::String
|
33
|
+
config.add_field! :credentials, nil, match: [::String, ::Hash, ::Google::Auth::Credentials]
|
34
|
+
config.add_field! :scope, nil, match: [::Array, ::String]
|
35
|
+
config.add_field! :lib_name, nil, match: ::String
|
36
|
+
config.add_field! :lib_version, nil, match: ::String
|
37
|
+
config.add_field! :interceptors, nil, match: ::Array
|
38
|
+
config.add_field! :timeout, nil, match: ::Numeric
|
39
|
+
config.add_field! :metadata, nil, match: ::Hash
|
40
|
+
config.add_field! :retry_policy, nil, match: [::Hash, ::Proc]
|
41
|
+
config.add_field! :quota_project, nil, match: ::String
|
42
|
+
end
|
43
|
+
|
44
|
+
module Google
|
45
|
+
module Cloud
|
46
|
+
module BeyondCorp
|
47
|
+
module AppConnectors
|
48
|
+
##
|
49
|
+
# Create a new client object for AppConnectorsService.
|
50
|
+
#
|
51
|
+
# By default, this returns an instance of
|
52
|
+
# [Google::Cloud::BeyondCorp::AppConnectors::V1::AppConnectorsService::Client](https://googleapis.dev/ruby/google-cloud-beyond_corp-app_connectors-v1/latest/Google/Cloud/BeyondCorp/AppConnectors/V1/AppConnectorsService/Client.html)
|
53
|
+
# for version V1 of the API.
|
54
|
+
# However, you can specify specify a different API version by passing it in the
|
55
|
+
# `version` parameter. If the AppConnectorsService service is
|
56
|
+
# supported by that API version, and the corresponding gem is available, the
|
57
|
+
# appropriate versioned client will be returned.
|
58
|
+
#
|
59
|
+
# ## About AppConnectorsService
|
60
|
+
#
|
61
|
+
# ## API Overview
|
62
|
+
#
|
63
|
+
# The `beyondcorp.googleapis.com` service implements the Google Cloud
|
64
|
+
# BeyondCorp API.
|
65
|
+
#
|
66
|
+
# ## Data Model
|
67
|
+
#
|
68
|
+
# The AppConnectorsService exposes the following resource:
|
69
|
+
#
|
70
|
+
# * AppConnectors, named as follows:
|
71
|
+
# `projects/{project_id}/locations/{location_id}/appConnectors/{app_connector_id}`.
|
72
|
+
#
|
73
|
+
# The AppConnectorsService provides methods to manage
|
74
|
+
# (create/read/update/delete) BeyondCorp AppConnectors.
|
75
|
+
#
|
76
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
77
|
+
# Defaults to `:v1`.
|
78
|
+
# @return [AppConnectorsService::Client] A client object for the specified version.
|
79
|
+
#
|
80
|
+
def self.app_connectors_service version: :v1, &block
|
81
|
+
require "google/cloud/beyond_corp/app_connectors/#{version.to_s.downcase}"
|
82
|
+
|
83
|
+
package_name = Google::Cloud::BeyondCorp::AppConnectors
|
84
|
+
.constants
|
85
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
86
|
+
.first
|
87
|
+
package_module = Google::Cloud::BeyondCorp::AppConnectors.const_get package_name
|
88
|
+
package_module.const_get(:AppConnectorsService).const_get(:Client).new(&block)
|
89
|
+
end
|
90
|
+
|
91
|
+
##
|
92
|
+
# Configure the google-cloud-beyond_corp-app_connectors library.
|
93
|
+
#
|
94
|
+
# The following configuration parameters are supported:
|
95
|
+
#
|
96
|
+
# * `credentials` (*type:* `String, Hash, Google::Auth::Credentials`) -
|
97
|
+
# The path to the keyfile as a String, the contents of the keyfile as a
|
98
|
+
# Hash, or a Google::Auth::Credentials object.
|
99
|
+
# * `lib_name` (*type:* `String`) -
|
100
|
+
# The library name as recorded in instrumentation and logging.
|
101
|
+
# * `lib_version` (*type:* `String`) -
|
102
|
+
# The library version as recorded in instrumentation and logging.
|
103
|
+
# * `interceptors` (*type:* `Array<GRPC::ClientInterceptor>`) -
|
104
|
+
# An array of interceptors that are run before calls are executed.
|
105
|
+
# * `timeout` (*type:* `Numeric`) -
|
106
|
+
# Default timeout in seconds.
|
107
|
+
# * `metadata` (*type:* `Hash{Symbol=>String}`) -
|
108
|
+
# Additional gRPC headers to be sent with the call.
|
109
|
+
# * `retry_policy` (*type:* `Hash`) -
|
110
|
+
# The retry policy. The value is a hash with the following keys:
|
111
|
+
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
112
|
+
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
113
|
+
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
114
|
+
# * `:retry_codes` (*type:* `Array<String>`) -
|
115
|
+
# The error codes that should trigger a retry.
|
116
|
+
#
|
117
|
+
# @return [::Google::Cloud::Config] The default configuration used by this library
|
118
|
+
#
|
119
|
+
def self.configure
|
120
|
+
yield ::Google::Cloud.configure.beyond_corp_app_connectors if block_given?
|
121
|
+
|
122
|
+
::Google::Cloud.configure.beyond_corp_app_connectors
|
123
|
+
end
|
124
|
+
end
|
125
|
+
end
|
126
|
+
end
|
127
|
+
end
|
128
|
+
|
129
|
+
helper_path = ::File.join __dir__, "app_connectors", "helpers.rb"
|
130
|
+
require "google/cloud/beyond_corp/app_connectors/helpers" if ::File.file? helper_path
|
@@ -0,0 +1,29 @@
|
|
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 AppGateways
|
24
|
+
# @private Unused
|
25
|
+
VERSION = ""
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
@@ -0,0 +1,130 @@
|
|
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 this file early so that the version constant gets defined before
|
20
|
+
# requiring "google/cloud". This is because google-cloud-core will load the
|
21
|
+
# entrypoint (gem name) file, which in turn re-requires this file (hence
|
22
|
+
# causing a require cycle) unless the version constant is already defined.
|
23
|
+
require "google/cloud/beyond_corp/app_gateways/version"
|
24
|
+
|
25
|
+
require "googleauth"
|
26
|
+
gem "google-cloud-core"
|
27
|
+
require "google/cloud" unless defined? ::Google::Cloud.new
|
28
|
+
require "google/cloud/config"
|
29
|
+
|
30
|
+
# Set the default configuration
|
31
|
+
::Google::Cloud.configure.add_config! :beyond_corp_app_gateways do |config|
|
32
|
+
config.add_field! :endpoint, "beyondcorp.googleapis.com", match: ::String
|
33
|
+
config.add_field! :credentials, nil, match: [::String, ::Hash, ::Google::Auth::Credentials]
|
34
|
+
config.add_field! :scope, nil, match: [::Array, ::String]
|
35
|
+
config.add_field! :lib_name, nil, match: ::String
|
36
|
+
config.add_field! :lib_version, nil, match: ::String
|
37
|
+
config.add_field! :interceptors, nil, match: ::Array
|
38
|
+
config.add_field! :timeout, nil, match: ::Numeric
|
39
|
+
config.add_field! :metadata, nil, match: ::Hash
|
40
|
+
config.add_field! :retry_policy, nil, match: [::Hash, ::Proc]
|
41
|
+
config.add_field! :quota_project, nil, match: ::String
|
42
|
+
end
|
43
|
+
|
44
|
+
module Google
|
45
|
+
module Cloud
|
46
|
+
module BeyondCorp
|
47
|
+
module AppGateways
|
48
|
+
##
|
49
|
+
# Create a new client object for AppGatewaysService.
|
50
|
+
#
|
51
|
+
# By default, this returns an instance of
|
52
|
+
# [Google::Cloud::BeyondCorp::AppGateways::V1::AppGatewaysService::Client](https://googleapis.dev/ruby/google-cloud-beyond_corp-app_gateways-v1/latest/Google/Cloud/BeyondCorp/AppGateways/V1/AppGatewaysService/Client.html)
|
53
|
+
# for version V1 of the API.
|
54
|
+
# However, you can specify specify a different API version by passing it in the
|
55
|
+
# `version` parameter. If the AppGatewaysService service is
|
56
|
+
# supported by that API version, and the corresponding gem is available, the
|
57
|
+
# appropriate versioned client will be returned.
|
58
|
+
#
|
59
|
+
# ## About AppGatewaysService
|
60
|
+
#
|
61
|
+
# ## API Overview
|
62
|
+
#
|
63
|
+
# The `beyondcorp.googleapis.com` service implements the Google Cloud
|
64
|
+
# BeyondCorp API.
|
65
|
+
#
|
66
|
+
# ## Data Model
|
67
|
+
#
|
68
|
+
# The AppGatewaysService exposes the following resources:
|
69
|
+
#
|
70
|
+
# * AppGateways, named as follows:
|
71
|
+
# `projects/{project_id}/locations/{location_id}/appGateways/{app_gateway_id}`.
|
72
|
+
#
|
73
|
+
# The AppGatewaysService service provides methods to manage
|
74
|
+
# (create/read/update/delete) BeyondCorp AppGateways.
|
75
|
+
#
|
76
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
77
|
+
# Defaults to `:v1`.
|
78
|
+
# @return [AppGatewaysService::Client] A client object for the specified version.
|
79
|
+
#
|
80
|
+
def self.app_gateways_service version: :v1, &block
|
81
|
+
require "google/cloud/beyond_corp/app_gateways/#{version.to_s.downcase}"
|
82
|
+
|
83
|
+
package_name = Google::Cloud::BeyondCorp::AppGateways
|
84
|
+
.constants
|
85
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
86
|
+
.first
|
87
|
+
package_module = Google::Cloud::BeyondCorp::AppGateways.const_get package_name
|
88
|
+
package_module.const_get(:AppGatewaysService).const_get(:Client).new(&block)
|
89
|
+
end
|
90
|
+
|
91
|
+
##
|
92
|
+
# Configure the google-cloud-beyond_corp-app_gateways library.
|
93
|
+
#
|
94
|
+
# The following configuration parameters are supported:
|
95
|
+
#
|
96
|
+
# * `credentials` (*type:* `String, Hash, Google::Auth::Credentials`) -
|
97
|
+
# The path to the keyfile as a String, the contents of the keyfile as a
|
98
|
+
# Hash, or a Google::Auth::Credentials object.
|
99
|
+
# * `lib_name` (*type:* `String`) -
|
100
|
+
# The library name as recorded in instrumentation and logging.
|
101
|
+
# * `lib_version` (*type:* `String`) -
|
102
|
+
# The library version as recorded in instrumentation and logging.
|
103
|
+
# * `interceptors` (*type:* `Array<GRPC::ClientInterceptor>`) -
|
104
|
+
# An array of interceptors that are run before calls are executed.
|
105
|
+
# * `timeout` (*type:* `Numeric`) -
|
106
|
+
# Default timeout in seconds.
|
107
|
+
# * `metadata` (*type:* `Hash{Symbol=>String}`) -
|
108
|
+
# Additional gRPC headers to be sent with the call.
|
109
|
+
# * `retry_policy` (*type:* `Hash`) -
|
110
|
+
# The retry policy. The value is a hash with the following keys:
|
111
|
+
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
112
|
+
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
113
|
+
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
114
|
+
# * `:retry_codes` (*type:* `Array<String>`) -
|
115
|
+
# The error codes that should trigger a retry.
|
116
|
+
#
|
117
|
+
# @return [::Google::Cloud::Config] The default configuration used by this library
|
118
|
+
#
|
119
|
+
def self.configure
|
120
|
+
yield ::Google::Cloud.configure.beyond_corp_app_gateways if block_given?
|
121
|
+
|
122
|
+
::Google::Cloud.configure.beyond_corp_app_gateways
|
123
|
+
end
|
124
|
+
end
|
125
|
+
end
|
126
|
+
end
|
127
|
+
end
|
128
|
+
|
129
|
+
helper_path = ::File.join __dir__, "app_gateways", "helpers.rb"
|
130
|
+
require "google/cloud/beyond_corp/app_gateways/helpers" if ::File.file? helper_path
|
@@ -0,0 +1,29 @@
|
|
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 ClientConnectorServices
|
24
|
+
# @private Unused
|
25
|
+
VERSION = ""
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
@@ -0,0 +1,127 @@
|
|
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 this file early so that the version constant gets defined before
|
20
|
+
# requiring "google/cloud". This is because google-cloud-core will load the
|
21
|
+
# entrypoint (gem name) file, which in turn re-requires this file (hence
|
22
|
+
# causing a require cycle) unless the version constant is already defined.
|
23
|
+
require "google/cloud/beyond_corp/client_connector_services/version"
|
24
|
+
|
25
|
+
require "googleauth"
|
26
|
+
gem "google-cloud-core"
|
27
|
+
require "google/cloud" unless defined? ::Google::Cloud.new
|
28
|
+
require "google/cloud/config"
|
29
|
+
|
30
|
+
# Set the default configuration
|
31
|
+
::Google::Cloud.configure.add_config! :beyond_corp_client_connector_services do |config|
|
32
|
+
config.add_field! :endpoint, "beyondcorp.googleapis.com", match: ::String
|
33
|
+
config.add_field! :credentials, nil, match: [::String, ::Hash, ::Google::Auth::Credentials]
|
34
|
+
config.add_field! :scope, nil, match: [::Array, ::String]
|
35
|
+
config.add_field! :lib_name, nil, match: ::String
|
36
|
+
config.add_field! :lib_version, nil, match: ::String
|
37
|
+
config.add_field! :interceptors, nil, match: ::Array
|
38
|
+
config.add_field! :timeout, nil, match: ::Numeric
|
39
|
+
config.add_field! :metadata, nil, match: ::Hash
|
40
|
+
config.add_field! :retry_policy, nil, match: [::Hash, ::Proc]
|
41
|
+
config.add_field! :quota_project, nil, match: ::String
|
42
|
+
end
|
43
|
+
|
44
|
+
module Google
|
45
|
+
module Cloud
|
46
|
+
module BeyondCorp
|
47
|
+
module ClientConnectorServices
|
48
|
+
##
|
49
|
+
# Create a new client object for ClientConnectorServicesService.
|
50
|
+
#
|
51
|
+
# By default, this returns an instance of
|
52
|
+
# [Google::Cloud::BeyondCorp::ClientConnectorServices::V1::ClientConnectorServicesService::Client](https://googleapis.dev/ruby/google-cloud-beyond_corp-client_connector_services-v1/latest/Google/Cloud/BeyondCorp/ClientConnectorServices/V1/ClientConnectorServicesService/Client.html)
|
53
|
+
# for version V1 of the API.
|
54
|
+
# However, you can specify specify a different API version by passing it in the
|
55
|
+
# `version` parameter. If the ClientConnectorServicesService service is
|
56
|
+
# supported by that API version, and the corresponding gem is available, the
|
57
|
+
# appropriate versioned client will be returned.
|
58
|
+
#
|
59
|
+
# ## About ClientConnectorServicesService
|
60
|
+
#
|
61
|
+
# ## API Overview
|
62
|
+
#
|
63
|
+
# The `beyondcorp.googleapis.com` service implements the Google Cloud
|
64
|
+
# BeyondCorp API.
|
65
|
+
#
|
66
|
+
# ## Data Model
|
67
|
+
#
|
68
|
+
# The ClientConnectorServicesService exposes the following resources:
|
69
|
+
#
|
70
|
+
# * Client Connector Services, named as follows:
|
71
|
+
# `projects/{project_id}/locations/{location_id}/client_connector_services/{client_connector_service_id}`.
|
72
|
+
#
|
73
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
74
|
+
# Defaults to `:v1`.
|
75
|
+
# @return [ClientConnectorServicesService::Client] A client object for the specified version.
|
76
|
+
#
|
77
|
+
def self.client_connector_services_service version: :v1, &block
|
78
|
+
require "google/cloud/beyond_corp/client_connector_services/#{version.to_s.downcase}"
|
79
|
+
|
80
|
+
package_name = Google::Cloud::BeyondCorp::ClientConnectorServices
|
81
|
+
.constants
|
82
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
83
|
+
.first
|
84
|
+
package_module = Google::Cloud::BeyondCorp::ClientConnectorServices.const_get package_name
|
85
|
+
package_module.const_get(:ClientConnectorServicesService).const_get(:Client).new(&block)
|
86
|
+
end
|
87
|
+
|
88
|
+
##
|
89
|
+
# Configure the google-cloud-beyond_corp-client_connector_services library.
|
90
|
+
#
|
91
|
+
# The following configuration parameters are supported:
|
92
|
+
#
|
93
|
+
# * `credentials` (*type:* `String, Hash, Google::Auth::Credentials`) -
|
94
|
+
# The path to the keyfile as a String, the contents of the keyfile as a
|
95
|
+
# Hash, or a Google::Auth::Credentials object.
|
96
|
+
# * `lib_name` (*type:* `String`) -
|
97
|
+
# The library name as recorded in instrumentation and logging.
|
98
|
+
# * `lib_version` (*type:* `String`) -
|
99
|
+
# The library version as recorded in instrumentation and logging.
|
100
|
+
# * `interceptors` (*type:* `Array<GRPC::ClientInterceptor>`) -
|
101
|
+
# An array of interceptors that are run before calls are executed.
|
102
|
+
# * `timeout` (*type:* `Numeric`) -
|
103
|
+
# Default timeout in seconds.
|
104
|
+
# * `metadata` (*type:* `Hash{Symbol=>String}`) -
|
105
|
+
# Additional gRPC headers to be sent with the call.
|
106
|
+
# * `retry_policy` (*type:* `Hash`) -
|
107
|
+
# The retry policy. The value is a hash with the following keys:
|
108
|
+
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
109
|
+
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
110
|
+
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
111
|
+
# * `:retry_codes` (*type:* `Array<String>`) -
|
112
|
+
# The error codes that should trigger a retry.
|
113
|
+
#
|
114
|
+
# @return [::Google::Cloud::Config] The default configuration used by this library
|
115
|
+
#
|
116
|
+
def self.configure
|
117
|
+
yield ::Google::Cloud.configure.beyond_corp_client_connector_services if block_given?
|
118
|
+
|
119
|
+
::Google::Cloud.configure.beyond_corp_client_connector_services
|
120
|
+
end
|
121
|
+
end
|
122
|
+
end
|
123
|
+
end
|
124
|
+
end
|
125
|
+
|
126
|
+
helper_path = ::File.join __dir__, "client_connector_services", "helpers.rb"
|
127
|
+
require "google/cloud/beyond_corp/client_connector_services/helpers" if ::File.file? helper_path
|
@@ -0,0 +1,29 @@
|
|
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 ClientGateways
|
24
|
+
# @private Unused
|
25
|
+
VERSION = ""
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
@@ -0,0 +1,127 @@
|
|
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 this file early so that the version constant gets defined before
|
20
|
+
# requiring "google/cloud". This is because google-cloud-core will load the
|
21
|
+
# entrypoint (gem name) file, which in turn re-requires this file (hence
|
22
|
+
# causing a require cycle) unless the version constant is already defined.
|
23
|
+
require "google/cloud/beyond_corp/client_gateways/version"
|
24
|
+
|
25
|
+
require "googleauth"
|
26
|
+
gem "google-cloud-core"
|
27
|
+
require "google/cloud" unless defined? ::Google::Cloud.new
|
28
|
+
require "google/cloud/config"
|
29
|
+
|
30
|
+
# Set the default configuration
|
31
|
+
::Google::Cloud.configure.add_config! :beyond_corp_client_gateways do |config|
|
32
|
+
config.add_field! :endpoint, "beyondcorp.googleapis.com", match: ::String
|
33
|
+
config.add_field! :credentials, nil, match: [::String, ::Hash, ::Google::Auth::Credentials]
|
34
|
+
config.add_field! :scope, nil, match: [::Array, ::String]
|
35
|
+
config.add_field! :lib_name, nil, match: ::String
|
36
|
+
config.add_field! :lib_version, nil, match: ::String
|
37
|
+
config.add_field! :interceptors, nil, match: ::Array
|
38
|
+
config.add_field! :timeout, nil, match: ::Numeric
|
39
|
+
config.add_field! :metadata, nil, match: ::Hash
|
40
|
+
config.add_field! :retry_policy, nil, match: [::Hash, ::Proc]
|
41
|
+
config.add_field! :quota_project, nil, match: ::String
|
42
|
+
end
|
43
|
+
|
44
|
+
module Google
|
45
|
+
module Cloud
|
46
|
+
module BeyondCorp
|
47
|
+
module ClientGateways
|
48
|
+
##
|
49
|
+
# Create a new client object for ClientGatewaysService.
|
50
|
+
#
|
51
|
+
# By default, this returns an instance of
|
52
|
+
# [Google::Cloud::BeyondCorp::ClientGateways::V1::ClientGatewaysService::Client](https://googleapis.dev/ruby/google-cloud-beyond_corp-client_gateways-v1/latest/Google/Cloud/BeyondCorp/ClientGateways/V1/ClientGatewaysService/Client.html)
|
53
|
+
# for version V1 of the API.
|
54
|
+
# However, you can specify specify a different API version by passing it in the
|
55
|
+
# `version` parameter. If the ClientGatewaysService service is
|
56
|
+
# supported by that API version, and the corresponding gem is available, the
|
57
|
+
# appropriate versioned client will be returned.
|
58
|
+
#
|
59
|
+
# ## About ClientGatewaysService
|
60
|
+
#
|
61
|
+
# ## API Overview
|
62
|
+
#
|
63
|
+
# The `beyondcorp.googleapis.com` service implements the Google Cloud
|
64
|
+
# BeyondCorp API.
|
65
|
+
#
|
66
|
+
# ## Data Model
|
67
|
+
#
|
68
|
+
# The ClientGatewaysService exposes the following resources:
|
69
|
+
#
|
70
|
+
# * Client Gateways, named as follows:
|
71
|
+
# `projects/{project_id}/locations/{location_id}/clientGateways/{client_gateway_id}`.
|
72
|
+
#
|
73
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
74
|
+
# Defaults to `:v1`.
|
75
|
+
# @return [ClientGatewaysService::Client] A client object for the specified version.
|
76
|
+
#
|
77
|
+
def self.client_gateways_service version: :v1, &block
|
78
|
+
require "google/cloud/beyond_corp/client_gateways/#{version.to_s.downcase}"
|
79
|
+
|
80
|
+
package_name = Google::Cloud::BeyondCorp::ClientGateways
|
81
|
+
.constants
|
82
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
83
|
+
.first
|
84
|
+
package_module = Google::Cloud::BeyondCorp::ClientGateways.const_get package_name
|
85
|
+
package_module.const_get(:ClientGatewaysService).const_get(:Client).new(&block)
|
86
|
+
end
|
87
|
+
|
88
|
+
##
|
89
|
+
# Configure the google-cloud-beyond_corp-client_gateways library.
|
90
|
+
#
|
91
|
+
# The following configuration parameters are supported:
|
92
|
+
#
|
93
|
+
# * `credentials` (*type:* `String, Hash, Google::Auth::Credentials`) -
|
94
|
+
# The path to the keyfile as a String, the contents of the keyfile as a
|
95
|
+
# Hash, or a Google::Auth::Credentials object.
|
96
|
+
# * `lib_name` (*type:* `String`) -
|
97
|
+
# The library name as recorded in instrumentation and logging.
|
98
|
+
# * `lib_version` (*type:* `String`) -
|
99
|
+
# The library version as recorded in instrumentation and logging.
|
100
|
+
# * `interceptors` (*type:* `Array<GRPC::ClientInterceptor>`) -
|
101
|
+
# An array of interceptors that are run before calls are executed.
|
102
|
+
# * `timeout` (*type:* `Numeric`) -
|
103
|
+
# Default timeout in seconds.
|
104
|
+
# * `metadata` (*type:* `Hash{Symbol=>String}`) -
|
105
|
+
# Additional gRPC headers to be sent with the call.
|
106
|
+
# * `retry_policy` (*type:* `Hash`) -
|
107
|
+
# The retry policy. The value is a hash with the following keys:
|
108
|
+
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
109
|
+
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
110
|
+
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
111
|
+
# * `:retry_codes` (*type:* `Array<String>`) -
|
112
|
+
# The error codes that should trigger a retry.
|
113
|
+
#
|
114
|
+
# @return [::Google::Cloud::Config] The default configuration used by this library
|
115
|
+
#
|
116
|
+
def self.configure
|
117
|
+
yield ::Google::Cloud.configure.beyond_corp_client_gateways if block_given?
|
118
|
+
|
119
|
+
::Google::Cloud.configure.beyond_corp_client_gateways
|
120
|
+
end
|
121
|
+
end
|
122
|
+
end
|
123
|
+
end
|
124
|
+
end
|
125
|
+
|
126
|
+
helper_path = ::File.join __dir__, "client_gateways", "helpers.rb"
|
127
|
+
require "google/cloud/beyond_corp/client_gateways/helpers" if ::File.file? helper_path
|
@@ -0,0 +1,23 @@
|
|
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
|
+
module Google
|
18
|
+
module Cloud
|
19
|
+
module BeyondCorp
|
20
|
+
VERSION = "0.1.0"
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
@@ -0,0 +1,17 @@
|
|
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
|
+
require "lib/google-cloud-beyond_corp"
|