google-cloud-beyond_corp-app_gateways-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 +149 -0
- data/LICENSE.md +201 -0
- data/README.md +144 -0
- data/lib/google/cloud/beyond_corp/app_gateways/v1/app_gateways_service/client.rb +804 -0
- data/lib/google/cloud/beyond_corp/app_gateways/v1/app_gateways_service/credentials.rb +49 -0
- data/lib/google/cloud/beyond_corp/app_gateways/v1/app_gateways_service/operations.rb +772 -0
- data/lib/google/cloud/beyond_corp/app_gateways/v1/app_gateways_service/paths.rb +71 -0
- data/lib/google/cloud/beyond_corp/app_gateways/v1/app_gateways_service.rb +65 -0
- data/lib/google/cloud/beyond_corp/app_gateways/v1/version.rb +30 -0
- data/lib/google/cloud/beyond_corp/app_gateways/v1.rb +42 -0
- data/lib/google/cloud/beyondcorp/appgateways/v1/app_gateways_service_pb.rb +107 -0
- data/lib/google/cloud/beyondcorp/appgateways/v1/app_gateways_service_services_pb.rb +66 -0
- data/lib/google-cloud-beyond_corp-app_gateways-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 +222 -0
- data/proto_docs/google/cloud/beyondcorp/appgateways/v1/app_gateways_service.rb +291 -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 +34 -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
- data/proto_docs/google/type/expr.rb +75 -0
- metadata +260 -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 AppGateways
|
24
|
+
module V1
|
25
|
+
module AppGatewaysService
|
26
|
+
# Path helper methods for the AppGatewaysService API.
|
27
|
+
module Paths
|
28
|
+
##
|
29
|
+
# Create a fully-qualified AppGateway resource string.
|
30
|
+
#
|
31
|
+
# The resource will be in the following format:
|
32
|
+
#
|
33
|
+
# `projects/{project}/locations/{location}/appGateways/{app_gateway}`
|
34
|
+
#
|
35
|
+
# @param project [String]
|
36
|
+
# @param location [String]
|
37
|
+
# @param app_gateway [String]
|
38
|
+
#
|
39
|
+
# @return [::String]
|
40
|
+
def app_gateway_path project:, location:, app_gateway:
|
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}/appGateways/#{app_gateway}"
|
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_gateways/v1/version"
|
24
|
+
|
25
|
+
require "google/cloud/beyond_corp/app_gateways/v1/app_gateways_service/credentials"
|
26
|
+
require "google/cloud/beyond_corp/app_gateways/v1/app_gateways_service/paths"
|
27
|
+
require "google/cloud/beyond_corp/app_gateways/v1/app_gateways_service/operations"
|
28
|
+
require "google/cloud/beyond_corp/app_gateways/v1/app_gateways_service/client"
|
29
|
+
|
30
|
+
module Google
|
31
|
+
module Cloud
|
32
|
+
module BeyondCorp
|
33
|
+
module AppGateways
|
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 AppGatewaysService exposes the following resources:
|
44
|
+
#
|
45
|
+
# * AppGateways, named as follows:
|
46
|
+
# `projects/{project_id}/locations/{location_id}/appGateways/{app_gateway_id}`.
|
47
|
+
#
|
48
|
+
# The AppGatewaysService service provides methods to manage
|
49
|
+
# (create/read/update/delete) BeyondCorp AppGateways.
|
50
|
+
#
|
51
|
+
# To load this service and instantiate a client:
|
52
|
+
#
|
53
|
+
# require "google/cloud/beyond_corp/app_gateways/v1/app_gateways_service"
|
54
|
+
# client = ::Google::Cloud::BeyondCorp::AppGateways::V1::AppGatewaysService::Client.new
|
55
|
+
#
|
56
|
+
module AppGatewaysService
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end
|
60
|
+
end
|
61
|
+
end
|
62
|
+
end
|
63
|
+
|
64
|
+
helper_path = ::File.join __dir__, "app_gateways_service", "helpers.rb"
|
65
|
+
require "google/cloud/beyond_corp/app_gateways/v1/app_gateways_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 AppGateways
|
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_gateways/v1/app_gateways_service"
|
20
|
+
require "google/cloud/beyond_corp/app_gateways/v1/version"
|
21
|
+
|
22
|
+
module Google
|
23
|
+
module Cloud
|
24
|
+
module BeyondCorp
|
25
|
+
module AppGateways
|
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_gateways/v1"
|
32
|
+
# client = ::Google::Cloud::BeyondCorp::AppGateways::V1::AppGatewaysService::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_gateways/v1/_helpers" if ::File.file? helper_path
|
@@ -0,0 +1,107 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/cloud/beyondcorp/appgateways/v1/app_gateways_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/longrunning/operations_pb'
|
11
|
+
require 'google/protobuf/timestamp_pb'
|
12
|
+
|
13
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
14
|
+
add_file("google/cloud/beyondcorp/appgateways/v1/app_gateways_service.proto", :syntax => :proto3) do
|
15
|
+
add_message "google.cloud.beyondcorp.appgateways.v1.ListAppGatewaysRequest" do
|
16
|
+
optional :parent, :string, 1
|
17
|
+
optional :page_size, :int32, 2
|
18
|
+
optional :page_token, :string, 3
|
19
|
+
optional :filter, :string, 4
|
20
|
+
optional :order_by, :string, 5
|
21
|
+
end
|
22
|
+
add_message "google.cloud.beyondcorp.appgateways.v1.ListAppGatewaysResponse" do
|
23
|
+
repeated :app_gateways, :message, 1, "google.cloud.beyondcorp.appgateways.v1.AppGateway"
|
24
|
+
optional :next_page_token, :string, 2
|
25
|
+
repeated :unreachable, :string, 3
|
26
|
+
end
|
27
|
+
add_message "google.cloud.beyondcorp.appgateways.v1.GetAppGatewayRequest" do
|
28
|
+
optional :name, :string, 1
|
29
|
+
end
|
30
|
+
add_message "google.cloud.beyondcorp.appgateways.v1.CreateAppGatewayRequest" do
|
31
|
+
optional :parent, :string, 1
|
32
|
+
optional :app_gateway_id, :string, 2
|
33
|
+
optional :app_gateway, :message, 3, "google.cloud.beyondcorp.appgateways.v1.AppGateway"
|
34
|
+
optional :request_id, :string, 4
|
35
|
+
optional :validate_only, :bool, 5
|
36
|
+
end
|
37
|
+
add_message "google.cloud.beyondcorp.appgateways.v1.DeleteAppGatewayRequest" do
|
38
|
+
optional :name, :string, 1
|
39
|
+
optional :request_id, :string, 2
|
40
|
+
optional :validate_only, :bool, 3
|
41
|
+
end
|
42
|
+
add_message "google.cloud.beyondcorp.appgateways.v1.AppGateway" do
|
43
|
+
optional :name, :string, 1
|
44
|
+
optional :create_time, :message, 2, "google.protobuf.Timestamp"
|
45
|
+
optional :update_time, :message, 3, "google.protobuf.Timestamp"
|
46
|
+
map :labels, :string, :string, 4
|
47
|
+
optional :display_name, :string, 5
|
48
|
+
optional :uid, :string, 6
|
49
|
+
optional :type, :enum, 7, "google.cloud.beyondcorp.appgateways.v1.AppGateway.Type"
|
50
|
+
optional :state, :enum, 8, "google.cloud.beyondcorp.appgateways.v1.AppGateway.State"
|
51
|
+
optional :uri, :string, 9
|
52
|
+
repeated :allocated_connections, :message, 10, "google.cloud.beyondcorp.appgateways.v1.AppGateway.AllocatedConnection"
|
53
|
+
optional :host_type, :enum, 11, "google.cloud.beyondcorp.appgateways.v1.AppGateway.HostType"
|
54
|
+
end
|
55
|
+
add_message "google.cloud.beyondcorp.appgateways.v1.AppGateway.AllocatedConnection" do
|
56
|
+
optional :psc_uri, :string, 1
|
57
|
+
optional :ingress_port, :int32, 2
|
58
|
+
end
|
59
|
+
add_enum "google.cloud.beyondcorp.appgateways.v1.AppGateway.Type" do
|
60
|
+
value :TYPE_UNSPECIFIED, 0
|
61
|
+
value :TCP_PROXY, 1
|
62
|
+
end
|
63
|
+
add_enum "google.cloud.beyondcorp.appgateways.v1.AppGateway.State" do
|
64
|
+
value :STATE_UNSPECIFIED, 0
|
65
|
+
value :CREATING, 1
|
66
|
+
value :CREATED, 2
|
67
|
+
value :UPDATING, 3
|
68
|
+
value :DELETING, 4
|
69
|
+
value :DOWN, 5
|
70
|
+
end
|
71
|
+
add_enum "google.cloud.beyondcorp.appgateways.v1.AppGateway.HostType" do
|
72
|
+
value :HOST_TYPE_UNSPECIFIED, 0
|
73
|
+
value :GCP_REGIONAL_MIG, 1
|
74
|
+
end
|
75
|
+
add_message "google.cloud.beyondcorp.appgateways.v1.AppGatewayOperationMetadata" do
|
76
|
+
optional :create_time, :message, 1, "google.protobuf.Timestamp"
|
77
|
+
optional :end_time, :message, 2, "google.protobuf.Timestamp"
|
78
|
+
optional :target, :string, 3
|
79
|
+
optional :verb, :string, 4
|
80
|
+
optional :status_message, :string, 5
|
81
|
+
optional :requested_cancellation, :bool, 6
|
82
|
+
optional :api_version, :string, 7
|
83
|
+
end
|
84
|
+
end
|
85
|
+
end
|
86
|
+
|
87
|
+
module Google
|
88
|
+
module Cloud
|
89
|
+
module BeyondCorp
|
90
|
+
module AppGateways
|
91
|
+
module V1
|
92
|
+
ListAppGatewaysRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.beyondcorp.appgateways.v1.ListAppGatewaysRequest").msgclass
|
93
|
+
ListAppGatewaysResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.beyondcorp.appgateways.v1.ListAppGatewaysResponse").msgclass
|
94
|
+
GetAppGatewayRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.beyondcorp.appgateways.v1.GetAppGatewayRequest").msgclass
|
95
|
+
CreateAppGatewayRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.beyondcorp.appgateways.v1.CreateAppGatewayRequest").msgclass
|
96
|
+
DeleteAppGatewayRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.beyondcorp.appgateways.v1.DeleteAppGatewayRequest").msgclass
|
97
|
+
AppGateway = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.beyondcorp.appgateways.v1.AppGateway").msgclass
|
98
|
+
AppGateway::AllocatedConnection = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.beyondcorp.appgateways.v1.AppGateway.AllocatedConnection").msgclass
|
99
|
+
AppGateway::Type = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.beyondcorp.appgateways.v1.AppGateway.Type").enummodule
|
100
|
+
AppGateway::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.beyondcorp.appgateways.v1.AppGateway.State").enummodule
|
101
|
+
AppGateway::HostType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.beyondcorp.appgateways.v1.AppGateway.HostType").enummodule
|
102
|
+
AppGatewayOperationMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.beyondcorp.appgateways.v1.AppGatewayOperationMetadata").msgclass
|
103
|
+
end
|
104
|
+
end
|
105
|
+
end
|
106
|
+
end
|
107
|
+
end
|
@@ -0,0 +1,66 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# Source: google/cloud/beyondcorp/appgateways/v1/app_gateways_service.proto for package 'Google.Cloud.BeyondCorp.AppGateways.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/appgateways/v1/app_gateways_service_pb'
|
21
|
+
|
22
|
+
module Google
|
23
|
+
module Cloud
|
24
|
+
module BeyondCorp
|
25
|
+
module AppGateways
|
26
|
+
module V1
|
27
|
+
module AppGatewaysService
|
28
|
+
# ## API Overview
|
29
|
+
#
|
30
|
+
# The `beyondcorp.googleapis.com` service implements the Google Cloud
|
31
|
+
# BeyondCorp API.
|
32
|
+
#
|
33
|
+
# ## Data Model
|
34
|
+
#
|
35
|
+
# The AppGatewaysService exposes the following resources:
|
36
|
+
#
|
37
|
+
# * AppGateways, named as follows:
|
38
|
+
# `projects/{project_id}/locations/{location_id}/appGateways/{app_gateway_id}`.
|
39
|
+
#
|
40
|
+
# The AppGatewaysService service provides methods to manage
|
41
|
+
# (create/read/update/delete) BeyondCorp AppGateways.
|
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.appgateways.v1.AppGatewaysService'
|
49
|
+
|
50
|
+
# Lists AppGateways in a given project and location.
|
51
|
+
rpc :ListAppGateways, ::Google::Cloud::BeyondCorp::AppGateways::V1::ListAppGatewaysRequest, ::Google::Cloud::BeyondCorp::AppGateways::V1::ListAppGatewaysResponse
|
52
|
+
# Gets details of a single AppGateway.
|
53
|
+
rpc :GetAppGateway, ::Google::Cloud::BeyondCorp::AppGateways::V1::GetAppGatewayRequest, ::Google::Cloud::BeyondCorp::AppGateways::V1::AppGateway
|
54
|
+
# Creates a new AppGateway in a given project and location.
|
55
|
+
rpc :CreateAppGateway, ::Google::Cloud::BeyondCorp::AppGateways::V1::CreateAppGatewayRequest, ::Google::Longrunning::Operation
|
56
|
+
# Deletes a single AppGateway.
|
57
|
+
rpc :DeleteAppGateway, ::Google::Cloud::BeyondCorp::AppGateways::V1::DeleteAppGatewayRequest, ::Google::Longrunning::Operation
|
58
|
+
end
|
59
|
+
|
60
|
+
Stub = Service.rpc_stub_class
|
61
|
+
end
|
62
|
+
end
|
63
|
+
end
|
64
|
+
end
|
65
|
+
end
|
66
|
+
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_gateways/v1"
|
@@ -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
|