google-cloud-iap-v1 0.6.0 → 0.8.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 30799e6c99fb52748b004150af9195057dbf27de4a221b331363b718cca899f4
4
- data.tar.gz: 07f15deeda775976fe4aa0e415a807188c5a4acc3aab75ffc00fde98eadf3f3f
3
+ metadata.gz: 9db4941f233f27a2272e087ff0aa44335edf704bce1a3512f6d73ea6f7f6abb5
4
+ data.tar.gz: d59e12cfa2a8556c4aca103d9c6aa84879a06f3f82e94ba087854953df8c3bff
5
5
  SHA512:
6
- metadata.gz: 438ed7c5f0409e4aec95b01fbcbef2af71182167c3663bef7d683b93c2fef2a0366bda1de0e91263ad3d029fde08a895fbc6d6ad2827ba0bdff0b2cfffc70252
7
- data.tar.gz: ebb7b45ed91731d30e30e276b584e9f5c97128d8163d9b5cdeb0135c1adc5a5264eef9533ad4313fb97d303a498f80bd5bf255723d4611646bdee0438f3beb4f
6
+ metadata.gz: 1f57cf5eb7ac22aec1a3a773b83e2e56c4d0350b1709add389a907fa7d260d616447ec4efaf71289fd531a2685c4ed2083fb155c59721cbbf5e8a04f55867c2c
7
+ data.tar.gz: 60563231de970e7c7ebd2f473721235d5555b7a71d37e4a7f59387fd9e18bbcb54677587a3e3e9222a46c6f2e961c06b39b2d985725333fbd1600e26a80e2d44
data/README.md CHANGED
@@ -47,7 +47,7 @@ for general usage information.
47
47
 
48
48
  To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
49
49
  The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/current/stdlibs/logger/Logger.html) as shown below,
50
- or a [`Google::Cloud::Logging::Logger`](https://googleapis.dev/ruby/google-cloud-logging/latest)
50
+ or a [`Google::Cloud::Logging::Logger`](https://cloud.google.com/ruby/docs/reference/google-cloud-logging/latest)
51
51
  that will write logs to [Cloud Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
52
52
  and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
53
53
 
@@ -125,7 +125,7 @@ module Google
125
125
  credentials = @config.credentials
126
126
  # Use self-signed JWT if the endpoint is unchanged from default,
127
127
  # but only if the default endpoint does not have a region prefix.
128
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
128
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
129
129
  !@config.endpoint.split(".").first.include?("-")
130
130
  credentials ||= Credentials.default scope: @config.scope,
131
131
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -544,8 +544,11 @@ module Google
544
544
  # resource.
545
545
  # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
546
546
  # The field mask specifying which IAP settings should be updated.
547
- # If omitted, the all of the settings are updated. See
548
- # https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
547
+ # If omitted, then all of the settings are updated. See
548
+ # https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask.
549
+ #
550
+ # Note: All IAP reauth settings must always be set together, using the
551
+ # field mask: `iapSettings.accessSettings.reauthSettings`.
549
552
  #
550
553
  # @yield [response, operation] Access the result along with the RPC operation
551
554
  # @yieldparam response [::Google::Cloud::Iap::V1::IapSettings]
@@ -1114,9 +1117,9 @@ module Google
1114
1117
  # * (`String`) The path to a service account key file in JSON format
1115
1118
  # * (`Hash`) A service account key as a Hash
1116
1119
  # * (`Google::Auth::Credentials`) A googleauth credentials object
1117
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
1120
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
1118
1121
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
1119
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
1122
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
1120
1123
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
1121
1124
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
1122
1125
  # * (`nil`) indicating no credentials
@@ -1158,7 +1161,9 @@ module Google
1158
1161
  class Configuration
1159
1162
  extend ::Gapic::Config
1160
1163
 
1161
- config_attr :endpoint, "iap.googleapis.com", ::String
1164
+ DEFAULT_ENDPOINT = "iap.googleapis.com"
1165
+
1166
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
1162
1167
  config_attr :credentials, nil do |value|
1163
1168
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
1164
1169
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -121,7 +121,7 @@ module Google
121
121
  credentials = @config.credentials
122
122
  # Use self-signed JWT if the endpoint is unchanged from default,
123
123
  # but only if the default endpoint does not have a region prefix.
124
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
124
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
125
125
  !@config.endpoint.split(".").first.include?("-")
126
126
  credentials ||= Credentials.default scope: @config.scope,
127
127
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -443,8 +443,11 @@ module Google
443
443
  # resource.
444
444
  # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
445
445
  # The field mask specifying which IAP settings should be updated.
446
- # If omitted, the all of the settings are updated. See
447
- # https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
446
+ # If omitted, then all of the settings are updated. See
447
+ # https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask.
448
+ #
449
+ # Note: All IAP reauth settings must always be set together, using the
450
+ # field mask: `iapSettings.accessSettings.reauthSettings`.
448
451
  # @yield [result, operation] Access the result along with the TransportOperation object
449
452
  # @yieldparam result [::Google::Cloud::Iap::V1::IapSettings]
450
453
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -871,9 +874,9 @@ module Google
871
874
  # * (`String`) The path to a service account key file in JSON format
872
875
  # * (`Hash`) A service account key as a Hash
873
876
  # * (`Google::Auth::Credentials`) A googleauth credentials object
874
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
877
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
875
878
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
876
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
879
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
877
880
  # * (`nil`) indicating no credentials
878
881
  # @return [::Object]
879
882
  # @!attribute [rw] scope
@@ -906,7 +909,9 @@ module Google
906
909
  class Configuration
907
910
  extend ::Gapic::Config
908
911
 
909
- config_attr :endpoint, "iap.googleapis.com", ::String
912
+ DEFAULT_ENDPOINT = "iap.googleapis.com"
913
+
914
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
910
915
  config_attr :credentials, nil do |value|
911
916
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
912
917
  allowed.any? { |klass| klass === value }
@@ -59,7 +59,7 @@ module Google
59
59
 
60
60
  verb, uri, query_string_params, body = ServiceStub.transcode_set_iam_policy_request request_pb
61
61
  query_string_params = if query_string_params.any?
62
- query_string_params.to_h { |p| p.split("=", 2) }
62
+ query_string_params.to_h { |p| p.split "=", 2 }
63
63
  else
64
64
  {}
65
65
  end
@@ -97,7 +97,7 @@ module Google
97
97
 
98
98
  verb, uri, query_string_params, body = ServiceStub.transcode_get_iam_policy_request request_pb
99
99
  query_string_params = if query_string_params.any?
100
- query_string_params.to_h { |p| p.split("=", 2) }
100
+ query_string_params.to_h { |p| p.split "=", 2 }
101
101
  else
102
102
  {}
103
103
  end
@@ -135,7 +135,7 @@ module Google
135
135
 
136
136
  verb, uri, query_string_params, body = ServiceStub.transcode_test_iam_permissions_request request_pb
137
137
  query_string_params = if query_string_params.any?
138
- query_string_params.to_h { |p| p.split("=", 2) }
138
+ query_string_params.to_h { |p| p.split "=", 2 }
139
139
  else
140
140
  {}
141
141
  end
@@ -173,7 +173,7 @@ module Google
173
173
 
174
174
  verb, uri, query_string_params, body = ServiceStub.transcode_get_iap_settings_request request_pb
175
175
  query_string_params = if query_string_params.any?
176
- query_string_params.to_h { |p| p.split("=", 2) }
176
+ query_string_params.to_h { |p| p.split "=", 2 }
177
177
  else
178
178
  {}
179
179
  end
@@ -211,7 +211,7 @@ module Google
211
211
 
212
212
  verb, uri, query_string_params, body = ServiceStub.transcode_update_iap_settings_request request_pb
213
213
  query_string_params = if query_string_params.any?
214
- query_string_params.to_h { |p| p.split("=", 2) }
214
+ query_string_params.to_h { |p| p.split "=", 2 }
215
215
  else
216
216
  {}
217
217
  end
@@ -249,7 +249,7 @@ module Google
249
249
 
250
250
  verb, uri, query_string_params, body = ServiceStub.transcode_list_tunnel_dest_groups_request request_pb
251
251
  query_string_params = if query_string_params.any?
252
- query_string_params.to_h { |p| p.split("=", 2) }
252
+ query_string_params.to_h { |p| p.split "=", 2 }
253
253
  else
254
254
  {}
255
255
  end
@@ -287,7 +287,7 @@ module Google
287
287
 
288
288
  verb, uri, query_string_params, body = ServiceStub.transcode_create_tunnel_dest_group_request request_pb
289
289
  query_string_params = if query_string_params.any?
290
- query_string_params.to_h { |p| p.split("=", 2) }
290
+ query_string_params.to_h { |p| p.split "=", 2 }
291
291
  else
292
292
  {}
293
293
  end
@@ -325,7 +325,7 @@ module Google
325
325
 
326
326
  verb, uri, query_string_params, body = ServiceStub.transcode_get_tunnel_dest_group_request request_pb
327
327
  query_string_params = if query_string_params.any?
328
- query_string_params.to_h { |p| p.split("=", 2) }
328
+ query_string_params.to_h { |p| p.split "=", 2 }
329
329
  else
330
330
  {}
331
331
  end
@@ -363,7 +363,7 @@ module Google
363
363
 
364
364
  verb, uri, query_string_params, body = ServiceStub.transcode_delete_tunnel_dest_group_request request_pb
365
365
  query_string_params = if query_string_params.any?
366
- query_string_params.to_h { |p| p.split("=", 2) }
366
+ query_string_params.to_h { |p| p.split "=", 2 }
367
367
  else
368
368
  {}
369
369
  end
@@ -401,7 +401,7 @@ module Google
401
401
 
402
402
  verb, uri, query_string_params, body = ServiceStub.transcode_update_tunnel_dest_group_request request_pb
403
403
  query_string_params = if query_string_params.any?
404
- query_string_params.to_h { |p| p.split("=", 2) }
404
+ query_string_params.to_h { |p| p.split "=", 2 }
405
405
  else
406
406
  {}
407
407
  end
@@ -125,7 +125,7 @@ module Google
125
125
  credentials = @config.credentials
126
126
  # Use self-signed JWT if the endpoint is unchanged from default,
127
127
  # but only if the default endpoint does not have a region prefix.
128
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
128
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
129
129
  !@config.endpoint.split(".").first.include?("-")
130
130
  credentials ||= Credentials.default scope: @config.scope,
131
131
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -911,9 +911,9 @@ module Google
911
911
  # * (`String`) The path to a service account key file in JSON format
912
912
  # * (`Hash`) A service account key as a Hash
913
913
  # * (`Google::Auth::Credentials`) A googleauth credentials object
914
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
914
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
915
915
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
916
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
916
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
917
917
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
918
918
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
919
919
  # * (`nil`) indicating no credentials
@@ -955,7 +955,9 @@ module Google
955
955
  class Configuration
956
956
  extend ::Gapic::Config
957
957
 
958
- config_attr :endpoint, "iap.googleapis.com", ::String
958
+ DEFAULT_ENDPOINT = "iap.googleapis.com"
959
+
960
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
959
961
  config_attr :credentials, nil do |value|
960
962
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
961
963
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -121,7 +121,7 @@ module Google
121
121
  credentials = @config.credentials
122
122
  # Use self-signed JWT if the endpoint is unchanged from default,
123
123
  # but only if the default endpoint does not have a region prefix.
124
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
124
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
125
125
  !@config.endpoint.split(".").first.include?("-")
126
126
  credentials ||= Credentials.default scope: @config.scope,
127
127
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -714,9 +714,9 @@ module Google
714
714
  # * (`String`) The path to a service account key file in JSON format
715
715
  # * (`Hash`) A service account key as a Hash
716
716
  # * (`Google::Auth::Credentials`) A googleauth credentials object
717
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
717
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
718
718
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
719
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
719
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
720
720
  # * (`nil`) indicating no credentials
721
721
  # @return [::Object]
722
722
  # @!attribute [rw] scope
@@ -749,7 +749,9 @@ module Google
749
749
  class Configuration
750
750
  extend ::Gapic::Config
751
751
 
752
- config_attr :endpoint, "iap.googleapis.com", ::String
752
+ DEFAULT_ENDPOINT = "iap.googleapis.com"
753
+
754
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
753
755
  config_attr :credentials, nil do |value|
754
756
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
755
757
  allowed.any? { |klass| klass === value }
@@ -59,7 +59,7 @@ module Google
59
59
 
60
60
  verb, uri, query_string_params, body = ServiceStub.transcode_list_brands_request request_pb
61
61
  query_string_params = if query_string_params.any?
62
- query_string_params.to_h { |p| p.split("=", 2) }
62
+ query_string_params.to_h { |p| p.split "=", 2 }
63
63
  else
64
64
  {}
65
65
  end
@@ -97,7 +97,7 @@ module Google
97
97
 
98
98
  verb, uri, query_string_params, body = ServiceStub.transcode_create_brand_request request_pb
99
99
  query_string_params = if query_string_params.any?
100
- query_string_params.to_h { |p| p.split("=", 2) }
100
+ query_string_params.to_h { |p| p.split "=", 2 }
101
101
  else
102
102
  {}
103
103
  end
@@ -135,7 +135,7 @@ module Google
135
135
 
136
136
  verb, uri, query_string_params, body = ServiceStub.transcode_get_brand_request request_pb
137
137
  query_string_params = if query_string_params.any?
138
- query_string_params.to_h { |p| p.split("=", 2) }
138
+ query_string_params.to_h { |p| p.split "=", 2 }
139
139
  else
140
140
  {}
141
141
  end
@@ -173,7 +173,7 @@ module Google
173
173
 
174
174
  verb, uri, query_string_params, body = ServiceStub.transcode_create_identity_aware_proxy_client_request request_pb
175
175
  query_string_params = if query_string_params.any?
176
- query_string_params.to_h { |p| p.split("=", 2) }
176
+ query_string_params.to_h { |p| p.split "=", 2 }
177
177
  else
178
178
  {}
179
179
  end
@@ -211,7 +211,7 @@ module Google
211
211
 
212
212
  verb, uri, query_string_params, body = ServiceStub.transcode_list_identity_aware_proxy_clients_request request_pb
213
213
  query_string_params = if query_string_params.any?
214
- query_string_params.to_h { |p| p.split("=", 2) }
214
+ query_string_params.to_h { |p| p.split "=", 2 }
215
215
  else
216
216
  {}
217
217
  end
@@ -249,7 +249,7 @@ module Google
249
249
 
250
250
  verb, uri, query_string_params, body = ServiceStub.transcode_get_identity_aware_proxy_client_request request_pb
251
251
  query_string_params = if query_string_params.any?
252
- query_string_params.to_h { |p| p.split("=", 2) }
252
+ query_string_params.to_h { |p| p.split "=", 2 }
253
253
  else
254
254
  {}
255
255
  end
@@ -287,7 +287,7 @@ module Google
287
287
 
288
288
  verb, uri, query_string_params, body = ServiceStub.transcode_reset_identity_aware_proxy_client_secret_request request_pb
289
289
  query_string_params = if query_string_params.any?
290
- query_string_params.to_h { |p| p.split("=", 2) }
290
+ query_string_params.to_h { |p| p.split "=", 2 }
291
291
  else
292
292
  {}
293
293
  end
@@ -325,7 +325,7 @@ module Google
325
325
 
326
326
  verb, uri, query_string_params, body = ServiceStub.transcode_delete_identity_aware_proxy_client_request request_pb
327
327
  query_string_params = if query_string_params.any?
328
- query_string_params.to_h { |p| p.split("=", 2) }
328
+ query_string_params.to_h { |p| p.split "=", 2 }
329
329
  else
330
330
  {}
331
331
  end
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/cloud/iap/v1/service.proto
3
4
 
@@ -14,158 +15,34 @@ require 'google/protobuf/empty_pb'
14
15
  require 'google/protobuf/field_mask_pb'
15
16
  require 'google/protobuf/wrappers_pb'
16
17
 
17
- Google::Protobuf::DescriptorPool.generated_pool.build do
18
- add_file("google/cloud/iap/v1/service.proto", :syntax => :proto3) do
19
- add_message "google.cloud.iap.v1.ListTunnelDestGroupsRequest" do
20
- optional :parent, :string, 1
21
- optional :page_size, :int32, 2
22
- optional :page_token, :string, 3
23
- end
24
- add_message "google.cloud.iap.v1.ListTunnelDestGroupsResponse" do
25
- repeated :tunnel_dest_groups, :message, 1, "google.cloud.iap.v1.TunnelDestGroup"
26
- optional :next_page_token, :string, 2
27
- end
28
- add_message "google.cloud.iap.v1.CreateTunnelDestGroupRequest" do
29
- optional :parent, :string, 1
30
- optional :tunnel_dest_group, :message, 2, "google.cloud.iap.v1.TunnelDestGroup"
31
- optional :tunnel_dest_group_id, :string, 3
32
- end
33
- add_message "google.cloud.iap.v1.GetTunnelDestGroupRequest" do
34
- optional :name, :string, 1
35
- end
36
- add_message "google.cloud.iap.v1.DeleteTunnelDestGroupRequest" do
37
- optional :name, :string, 1
38
- end
39
- add_message "google.cloud.iap.v1.UpdateTunnelDestGroupRequest" do
40
- optional :tunnel_dest_group, :message, 1, "google.cloud.iap.v1.TunnelDestGroup"
41
- optional :update_mask, :message, 2, "google.protobuf.FieldMask"
42
- end
43
- add_message "google.cloud.iap.v1.TunnelDestGroup" do
44
- optional :name, :string, 1
45
- repeated :cidrs, :string, 2
46
- repeated :fqdns, :string, 3
47
- end
48
- add_message "google.cloud.iap.v1.GetIapSettingsRequest" do
49
- optional :name, :string, 1
50
- end
51
- add_message "google.cloud.iap.v1.UpdateIapSettingsRequest" do
52
- optional :iap_settings, :message, 1, "google.cloud.iap.v1.IapSettings"
53
- optional :update_mask, :message, 2, "google.protobuf.FieldMask"
54
- end
55
- add_message "google.cloud.iap.v1.IapSettings" do
56
- optional :name, :string, 1
57
- optional :access_settings, :message, 5, "google.cloud.iap.v1.AccessSettings"
58
- optional :application_settings, :message, 6, "google.cloud.iap.v1.ApplicationSettings"
59
- end
60
- add_message "google.cloud.iap.v1.AccessSettings" do
61
- optional :gcip_settings, :message, 1, "google.cloud.iap.v1.GcipSettings"
62
- optional :cors_settings, :message, 2, "google.cloud.iap.v1.CorsSettings"
63
- optional :oauth_settings, :message, 3, "google.cloud.iap.v1.OAuthSettings"
64
- optional :reauth_settings, :message, 6, "google.cloud.iap.v1.ReauthSettings"
65
- optional :allowed_domains_settings, :message, 7, "google.cloud.iap.v1.AllowedDomainsSettings"
66
- end
67
- add_message "google.cloud.iap.v1.GcipSettings" do
68
- repeated :tenant_ids, :string, 1
69
- optional :login_page_uri, :message, 2, "google.protobuf.StringValue"
70
- end
71
- add_message "google.cloud.iap.v1.CorsSettings" do
72
- optional :allow_http_options, :message, 1, "google.protobuf.BoolValue"
73
- end
74
- add_message "google.cloud.iap.v1.OAuthSettings" do
75
- optional :login_hint, :message, 2, "google.protobuf.StringValue"
76
- end
77
- add_message "google.cloud.iap.v1.ReauthSettings" do
78
- optional :method, :enum, 1, "google.cloud.iap.v1.ReauthSettings.Method"
79
- optional :max_age, :message, 2, "google.protobuf.Duration"
80
- optional :policy_type, :enum, 3, "google.cloud.iap.v1.ReauthSettings.PolicyType"
81
- end
82
- add_enum "google.cloud.iap.v1.ReauthSettings.Method" do
83
- value :METHOD_UNSPECIFIED, 0
84
- value :LOGIN, 1
85
- value :PASSWORD, 2
86
- value :SECURE_KEY, 3
87
- end
88
- add_enum "google.cloud.iap.v1.ReauthSettings.PolicyType" do
89
- value :POLICY_TYPE_UNSPECIFIED, 0
90
- value :MINIMUM, 1
91
- value :DEFAULT, 2
92
- end
93
- add_message "google.cloud.iap.v1.AllowedDomainsSettings" do
94
- proto3_optional :enable, :bool, 1
95
- repeated :domains, :string, 2
96
- end
97
- add_message "google.cloud.iap.v1.ApplicationSettings" do
98
- optional :csm_settings, :message, 1, "google.cloud.iap.v1.CsmSettings"
99
- optional :access_denied_page_settings, :message, 2, "google.cloud.iap.v1.AccessDeniedPageSettings"
100
- optional :cookie_domain, :message, 3, "google.protobuf.StringValue"
101
- optional :attribute_propagation_settings, :message, 4, "google.cloud.iap.v1.AttributePropagationSettings"
102
- end
103
- add_message "google.cloud.iap.v1.CsmSettings" do
104
- optional :rctoken_aud, :message, 1, "google.protobuf.StringValue"
105
- end
106
- add_message "google.cloud.iap.v1.AccessDeniedPageSettings" do
107
- optional :access_denied_page_uri, :message, 1, "google.protobuf.StringValue"
108
- optional :generate_troubleshooting_uri, :message, 2, "google.protobuf.BoolValue"
109
- proto3_optional :remediation_token_generation_enabled, :message, 3, "google.protobuf.BoolValue"
110
- end
111
- add_message "google.cloud.iap.v1.AttributePropagationSettings" do
112
- proto3_optional :expression, :string, 1
113
- repeated :output_credentials, :enum, 2, "google.cloud.iap.v1.AttributePropagationSettings.OutputCredentials"
114
- proto3_optional :enable, :bool, 3
115
- end
116
- add_enum "google.cloud.iap.v1.AttributePropagationSettings.OutputCredentials" do
117
- value :OUTPUT_CREDENTIALS_UNSPECIFIED, 0
118
- value :HEADER, 1
119
- value :JWT, 2
120
- value :RCTOKEN, 3
121
- end
122
- add_message "google.cloud.iap.v1.ListBrandsRequest" do
123
- optional :parent, :string, 1
124
- end
125
- add_message "google.cloud.iap.v1.ListBrandsResponse" do
126
- repeated :brands, :message, 1, "google.cloud.iap.v1.Brand"
127
- end
128
- add_message "google.cloud.iap.v1.CreateBrandRequest" do
129
- optional :parent, :string, 1
130
- optional :brand, :message, 2, "google.cloud.iap.v1.Brand"
131
- end
132
- add_message "google.cloud.iap.v1.GetBrandRequest" do
133
- optional :name, :string, 1
134
- end
135
- add_message "google.cloud.iap.v1.ListIdentityAwareProxyClientsRequest" do
136
- optional :parent, :string, 1
137
- optional :page_size, :int32, 2
138
- optional :page_token, :string, 3
139
- end
140
- add_message "google.cloud.iap.v1.ListIdentityAwareProxyClientsResponse" do
141
- repeated :identity_aware_proxy_clients, :message, 1, "google.cloud.iap.v1.IdentityAwareProxyClient"
142
- optional :next_page_token, :string, 2
143
- end
144
- add_message "google.cloud.iap.v1.CreateIdentityAwareProxyClientRequest" do
145
- optional :parent, :string, 1
146
- optional :identity_aware_proxy_client, :message, 2, "google.cloud.iap.v1.IdentityAwareProxyClient"
147
- end
148
- add_message "google.cloud.iap.v1.GetIdentityAwareProxyClientRequest" do
149
- optional :name, :string, 1
150
- end
151
- add_message "google.cloud.iap.v1.ResetIdentityAwareProxyClientSecretRequest" do
152
- optional :name, :string, 1
153
- end
154
- add_message "google.cloud.iap.v1.DeleteIdentityAwareProxyClientRequest" do
155
- optional :name, :string, 1
156
- end
157
- add_message "google.cloud.iap.v1.Brand" do
158
- optional :name, :string, 1
159
- optional :support_email, :string, 2
160
- optional :application_title, :string, 3
161
- optional :org_internal_only, :bool, 4
162
- end
163
- add_message "google.cloud.iap.v1.IdentityAwareProxyClient" do
164
- optional :name, :string, 1
165
- optional :secret, :string, 2
166
- optional :display_name, :string, 3
18
+
19
+ descriptor_data = "\n!google/cloud/iap/v1/service.proto\x12\x13google.cloud.iap.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/iam/v1/iam_policy.proto\x1a\x1agoogle/iam/v1/policy.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1egoogle/protobuf/wrappers.proto\"\x7f\n\x1bListTunnelDestGroupsRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!iap.googleapis.com/TunnelLocation\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"y\n\x1cListTunnelDestGroupsResponse\x12@\n\x12tunnel_dest_groups\x18\x01 \x03(\x0b\x32$.google.cloud.iap.v1.TunnelDestGroup\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xc3\x01\n\x1c\x43reateTunnelDestGroupRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\x12\"iap.googleapis.com/TunnelDestGroup\x12\x44\n\x11tunnel_dest_group\x18\x02 \x01(\x0b\x32$.google.cloud.iap.v1.TunnelDestGroupB\x03\xe0\x41\x02\x12!\n\x14tunnel_dest_group_id\x18\x03 \x01(\tB\x03\xe0\x41\x02\"U\n\x19GetTunnelDestGroupRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"iap.googleapis.com/TunnelDestGroup\"X\n\x1c\x44\x65leteTunnelDestGroupRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"iap.googleapis.com/TunnelDestGroup\"\x95\x01\n\x1cUpdateTunnelDestGroupRequest\x12\x44\n\x11tunnel_dest_group\x18\x01 \x01(\x0b\x32$.google.cloud.iap.v1.TunnelDestGroupB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"\xc4\x01\n\x0fTunnelDestGroup\x12\x14\n\x04name\x18\x01 \x01(\tB\x06\xe0\x41\x02\xe0\x41\x05\x12\x12\n\x05\x63idrs\x18\x02 \x03(\tB\x03\xe0\x41\x06\x12\x12\n\x05\x66qdns\x18\x03 \x03(\tB\x03\xe0\x41\x06:s\xea\x41p\n\"iap.googleapis.com/TunnelDestGroup\x12Jprojects/{project}/iap_tunnel/locations/{location}/destGroups/{dest_group}\"*\n\x15GetIapSettingsRequest\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\"\x88\x01\n\x18UpdateIapSettingsRequest\x12;\n\x0ciap_settings\x18\x01 \x01(\x0b\x32 .google.cloud.iap.v1.IapSettingsB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"\xa6\x01\n\x0bIapSettings\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12<\n\x0f\x61\x63\x63\x65ss_settings\x18\x05 \x01(\x0b\x32#.google.cloud.iap.v1.AccessSettings\x12\x46\n\x14\x61pplication_settings\x18\x06 \x01(\x0b\x32(.google.cloud.iap.v1.ApplicationSettings\"\xcd\x02\n\x0e\x41\x63\x63\x65ssSettings\x12\x38\n\rgcip_settings\x18\x01 \x01(\x0b\x32!.google.cloud.iap.v1.GcipSettings\x12\x38\n\rcors_settings\x18\x02 \x01(\x0b\x32!.google.cloud.iap.v1.CorsSettings\x12:\n\x0eoauth_settings\x18\x03 \x01(\x0b\x32\".google.cloud.iap.v1.OAuthSettings\x12<\n\x0freauth_settings\x18\x06 \x01(\x0b\x32#.google.cloud.iap.v1.ReauthSettings\x12M\n\x18\x61llowed_domains_settings\x18\x07 \x01(\x0b\x32+.google.cloud.iap.v1.AllowedDomainsSettings\"X\n\x0cGcipSettings\x12\x12\n\ntenant_ids\x18\x01 \x03(\t\x12\x34\n\x0elogin_page_uri\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValue\"F\n\x0c\x43orsSettings\x12\x36\n\x12\x61llow_http_options\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\"A\n\rOAuthSettings\x12\x30\n\nlogin_hint\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValue\"\xee\x02\n\x0eReauthSettings\x12:\n\x06method\x18\x01 \x01(\x0e\x32*.google.cloud.iap.v1.ReauthSettings.Method\x12*\n\x07max_age\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x43\n\x0bpolicy_type\x18\x03 \x01(\x0e\x32..google.cloud.iap.v1.ReauthSettings.PolicyType\"j\n\x06Method\x12\x16\n\x12METHOD_UNSPECIFIED\x10\x00\x12\t\n\x05LOGIN\x10\x01\x12\x10\n\x08PASSWORD\x10\x02\x1a\x02\x08\x01\x12\x0e\n\nSECURE_KEY\x10\x03\x12\x1b\n\x17\x45NROLLED_SECOND_FACTORS\x10\x04\"C\n\nPolicyType\x12\x1b\n\x17POLICY_TYPE_UNSPECIFIED\x10\x00\x12\x0b\n\x07MINIMUM\x10\x01\x12\x0b\n\x07\x44\x45\x46\x41ULT\x10\x02\"I\n\x16\x41llowedDomainsSettings\x12\x13\n\x06\x65nable\x18\x01 \x01(\x08H\x00\x88\x01\x01\x12\x0f\n\x07\x64omains\x18\x02 \x03(\tB\t\n\x07_enable\"\xb1\x02\n\x13\x41pplicationSettings\x12\x36\n\x0c\x63sm_settings\x18\x01 \x01(\x0b\x32 .google.cloud.iap.v1.CsmSettings\x12R\n\x1b\x61\x63\x63\x65ss_denied_page_settings\x18\x02 \x01(\x0b\x32-.google.cloud.iap.v1.AccessDeniedPageSettings\x12\x33\n\rcookie_domain\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12Y\n\x1e\x61ttribute_propagation_settings\x18\x04 \x01(\x0b\x32\x31.google.cloud.iap.v1.AttributePropagationSettings\"@\n\x0b\x43smSettings\x12\x31\n\x0brctoken_aud\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\"\x92\x02\n\x18\x41\x63\x63\x65ssDeniedPageSettings\x12<\n\x16\x61\x63\x63\x65ss_denied_page_uri\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12@\n\x1cgenerate_troubleshooting_uri\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12M\n$remediation_token_generation_enabled\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.BoolValueH\x00\x88\x01\x01\x42\'\n%_remediation_token_generation_enabled\"\xa2\x02\n\x1c\x41ttributePropagationSettings\x12\x17\n\nexpression\x18\x01 \x01(\tH\x00\x88\x01\x01\x12_\n\x12output_credentials\x18\x02 \x03(\x0e\x32\x43.google.cloud.iap.v1.AttributePropagationSettings.OutputCredentials\x12\x13\n\x06\x65nable\x18\x03 \x01(\x08H\x01\x88\x01\x01\"Y\n\x11OutputCredentials\x12\"\n\x1eOUTPUT_CREDENTIALS_UNSPECIFIED\x10\x00\x12\n\n\x06HEADER\x10\x01\x12\x07\n\x03JWT\x10\x02\x12\x0b\n\x07RCTOKEN\x10\x03\x42\r\n\x0b_expressionB\t\n\x07_enable\"(\n\x11ListBrandsRequest\x12\x13\n\x06parent\x18\x01 \x01(\tB\x03\xe0\x41\x02\"@\n\x12ListBrandsResponse\x12*\n\x06\x62rands\x18\x01 \x03(\x0b\x32\x1a.google.cloud.iap.v1.Brand\"Y\n\x12\x43reateBrandRequest\x12\x13\n\x06parent\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12.\n\x05\x62rand\x18\x02 \x01(\x0b\x32\x1a.google.cloud.iap.v1.BrandB\x03\xe0\x41\x02\"$\n\x0fGetBrandRequest\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\"b\n$ListIdentityAwareProxyClientsRequest\x12\x13\n\x06parent\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"\x95\x01\n%ListIdentityAwareProxyClientsResponse\x12S\n\x1cidentity_aware_proxy_clients\x18\x01 \x03(\x0b\x32-.google.cloud.iap.v1.IdentityAwareProxyClient\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x95\x01\n%CreateIdentityAwareProxyClientRequest\x12\x13\n\x06parent\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12W\n\x1bidentity_aware_proxy_client\x18\x02 \x01(\x0b\x32-.google.cloud.iap.v1.IdentityAwareProxyClientB\x03\xe0\x41\x02\"7\n\"GetIdentityAwareProxyClientRequest\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\"?\n*ResetIdentityAwareProxyClientSecretRequest\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\":\n%DeleteIdentityAwareProxyClientRequest\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\"l\n\x05\x42rand\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x15\n\rsupport_email\x18\x02 \x01(\t\x12\x19\n\x11\x61pplication_title\x18\x03 \x01(\t\x12\x1e\n\x11org_internal_only\x18\x04 \x01(\x08\x42\x03\xe0\x41\x03\"X\n\x18IdentityAwareProxyClient\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x13\n\x06secret\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x14\n\x0c\x64isplay_name\x18\x03 \x01(\t2\xc0\x0e\n\x1eIdentityAwareProxyAdminService\x12t\n\x0cSetIamPolicy\x12\".google.iam.v1.SetIamPolicyRequest\x1a\x15.google.iam.v1.Policy\")\x82\xd3\xe4\x93\x02#\"\x1e/v1/{resource=**}:setIamPolicy:\x01*\x12t\n\x0cGetIamPolicy\x12\".google.iam.v1.GetIamPolicyRequest\x1a\x15.google.iam.v1.Policy\")\x82\xd3\xe4\x93\x02#\"\x1e/v1/{resource=**}:getIamPolicy:\x01*\x12\x9a\x01\n\x12TestIamPermissions\x12(.google.iam.v1.TestIamPermissionsRequest\x1a).google.iam.v1.TestIamPermissionsResponse\"/\x82\xd3\xe4\x93\x02)\"$/v1/{resource=**}:testIamPermissions:\x01*\x12\x81\x01\n\x0eGetIapSettings\x12*.google.cloud.iap.v1.GetIapSettingsRequest\x1a .google.cloud.iap.v1.IapSettings\"!\x82\xd3\xe4\x93\x02\x1b\x12\x19/v1/{name=**}:iapSettings\x12\xa2\x01\n\x11UpdateIapSettings\x12-.google.cloud.iap.v1.UpdateIapSettingsRequest\x1a .google.cloud.iap.v1.IapSettings\"<\x82\xd3\xe4\x93\x02\x36\x32&/v1/{iap_settings.name=**}:iapSettings:\x0ciap_settings\x12\xc7\x01\n\x14ListTunnelDestGroups\x12\x30.google.cloud.iap.v1.ListTunnelDestGroupsRequest\x1a\x31.google.cloud.iap.v1.ListTunnelDestGroupsResponse\"J\x82\xd3\xe4\x93\x02;\x12\x39/v1/{parent=projects/*/iap_tunnel/locations/*}/destGroups\xda\x41\x06parent\x12\xf7\x01\n\x15\x43reateTunnelDestGroup\x12\x31.google.cloud.iap.v1.CreateTunnelDestGroupRequest\x1a$.google.cloud.iap.v1.TunnelDestGroup\"\x84\x01\x82\xd3\xe4\x93\x02N\"9/v1/{parent=projects/*/iap_tunnel/locations/*}/destGroups:\x11tunnel_dest_group\xda\x41-parent,tunnel_dest_group,tunnel_dest_group_id\x12\xb4\x01\n\x12GetTunnelDestGroup\x12..google.cloud.iap.v1.GetTunnelDestGroupRequest\x1a$.google.cloud.iap.v1.TunnelDestGroup\"H\x82\xd3\xe4\x93\x02;\x12\x39/v1/{name=projects/*/iap_tunnel/locations/*/destGroups/*}\xda\x41\x04name\x12\xac\x01\n\x15\x44\x65leteTunnelDestGroup\x12\x31.google.cloud.iap.v1.DeleteTunnelDestGroupRequest\x1a\x16.google.protobuf.Empty\"H\x82\xd3\xe4\x93\x02;*9/v1/{name=projects/*/iap_tunnel/locations/*/destGroups/*}\xda\x41\x04name\x12\xf9\x01\n\x15UpdateTunnelDestGroup\x12\x31.google.cloud.iap.v1.UpdateTunnelDestGroupRequest\x1a$.google.cloud.iap.v1.TunnelDestGroup\"\x86\x01\x82\xd3\xe4\x93\x02`2K/v1/{tunnel_dest_group.name=projects/*/iap_tunnel/locations/*/destGroups/*}:\x11tunnel_dest_group\xda\x41\x1dtunnel_dest_group,update_mask\x1a\x46\xca\x41\x12iap.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platform2\xa8\x0c\n\x1eIdentityAwareProxyOAuthService\x12\x85\x01\n\nListBrands\x12&.google.cloud.iap.v1.ListBrandsRequest\x1a\'.google.cloud.iap.v1.ListBrandsResponse\"&\x82\xd3\xe4\x93\x02 \x12\x1e/v1/{parent=projects/*}/brands\x12\x81\x01\n\x0b\x43reateBrand\x12\'.google.cloud.iap.v1.CreateBrandRequest\x1a\x1a.google.cloud.iap.v1.Brand\"-\x82\xd3\xe4\x93\x02\'\"\x1e/v1/{parent=projects/*}/brands:\x05\x62rand\x12t\n\x08GetBrand\x12$.google.cloud.iap.v1.GetBrandRequest\x1a\x1a.google.cloud.iap.v1.Brand\"&\x82\xd3\xe4\x93\x02 \x12\x1e/v1/{name=projects/*/brands/*}\x12\xec\x01\n\x1e\x43reateIdentityAwareProxyClient\x12:.google.cloud.iap.v1.CreateIdentityAwareProxyClientRequest\x1a-.google.cloud.iap.v1.IdentityAwareProxyClient\"_\x82\xd3\xe4\x93\x02Y\":/v1/{parent=projects/*/brands/*}/identityAwareProxyClients:\x1bidentity_aware_proxy_client\x12\xda\x01\n\x1dListIdentityAwareProxyClients\x12\x39.google.cloud.iap.v1.ListIdentityAwareProxyClientsRequest\x1a:.google.cloud.iap.v1.ListIdentityAwareProxyClientsResponse\"B\x82\xd3\xe4\x93\x02<\x12:/v1/{parent=projects/*/brands/*}/identityAwareProxyClients\x12\xc9\x01\n\x1bGetIdentityAwareProxyClient\x12\x37.google.cloud.iap.v1.GetIdentityAwareProxyClientRequest\x1a-.google.cloud.iap.v1.IdentityAwareProxyClient\"B\x82\xd3\xe4\x93\x02<\x12:/v1/{name=projects/*/brands/*/identityAwareProxyClients/*}\x12\xe8\x01\n#ResetIdentityAwareProxyClientSecret\x12?.google.cloud.iap.v1.ResetIdentityAwareProxyClientSecretRequest\x1a-.google.cloud.iap.v1.IdentityAwareProxyClient\"Q\x82\xd3\xe4\x93\x02K\"F/v1/{name=projects/*/brands/*/identityAwareProxyClients/*}:resetSecret:\x01*\x12\xb8\x01\n\x1e\x44\x65leteIdentityAwareProxyClient\x12:.google.cloud.iap.v1.DeleteIdentityAwareProxyClientRequest\x1a\x16.google.protobuf.Empty\"B\x82\xd3\xe4\x93\x02<*:/v1/{name=projects/*/brands/*/identityAwareProxyClients/*}\x1a\x46\xca\x41\x12iap.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xe5\x01\n\x17\x63om.google.cloud.iap.v1P\x01Z)cloud.google.com/go/iap/apiv1/iappb;iappb\xaa\x02\x13Google.Cloud.Iap.V1\xca\x02\x13Google\\Cloud\\Iap\\V1\xea\x02\x16Google::Cloud::Iap::V1\xea\x41W\n!iap.googleapis.com/TunnelLocation\x12\x32projects/{project}/iap_tunnel/locations/{location}b\x06proto3"
20
+
21
+ pool = Google::Protobuf::DescriptorPool.generated_pool
22
+
23
+ begin
24
+ pool.add_serialized_file(descriptor_data)
25
+ rescue TypeError => e
26
+ # Compatibility code: will be removed in the next major version.
27
+ require 'google/protobuf/descriptor_pb'
28
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
29
+ parsed.clear_dependency
30
+ serialized = parsed.class.encode(parsed)
31
+ file = pool.add_serialized_file(serialized)
32
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
33
+ imports = [
34
+ ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"],
35
+ ["google.protobuf.StringValue", "google/protobuf/wrappers.proto"],
36
+ ["google.protobuf.Duration", "google/protobuf/duration.proto"],
37
+ ]
38
+ imports.each do |type_name, expected_filename|
39
+ import_file = pool.lookup(type_name).file_descriptor
40
+ if import_file.name != expected_filename
41
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
167
42
  end
168
43
  end
44
+ warn "Each proto file must use a consistent fully-qualified name."
45
+ warn "This will become an error in the next major version."
169
46
  end
170
47
 
171
48
  module Google
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Iap
23
23
  module V1
24
- VERSION = "0.6.0"
24
+ VERSION = "0.8.0"
25
25
  end
26
26
  end
27
27
  end
@@ -35,7 +35,9 @@ module Google
35
35
  # Details about how and where to publish client libraries.
36
36
  # @!attribute [rw] version
37
37
  # @return [::String]
38
- # Version of the API to apply these settings to.
38
+ # Version of the API to apply these settings to. This is the full protobuf
39
+ # package for the API, ending in the version element.
40
+ # Examples: "google.cloud.speech.v1" and "google.spanner.admin.database.v1".
39
41
  # @!attribute [rw] launch_stage
40
42
  # @return [::Google::Api::LaunchStage]
41
43
  # Launch stage of this version of the API.
@@ -81,7 +83,7 @@ module Google
81
83
  # long-running operation pattern.
82
84
  # @!attribute [rw] new_issue_uri
83
85
  # @return [::String]
84
- # Link to a place that API users can report issues. Example:
86
+ # Link to a *public* URI where users can report issues. Example:
85
87
  # https://issuetracker.google.com/issues/new?component=190865&template=1161103
86
88
  # @!attribute [rw] documentation_uri
87
89
  # @return [::String]
@@ -111,6 +113,10 @@ module Google
111
113
  # Client library settings. If the same version string appears multiple
112
114
  # times in this list, then the last one wins. Settings from earlier
113
115
  # settings with the same version string are discarded.
116
+ # @!attribute [rw] proto_reference_documentation_uri
117
+ # @return [::String]
118
+ # Optional link to proto reference documentation. Example:
119
+ # https://cloud.google.com/pubsub/lite/docs/reference/rpc
114
120
  class Publishing
115
121
  include ::Google::Protobuf::MessageExts
116
122
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -203,9 +209,57 @@ module Google
203
209
  # @!attribute [rw] common
204
210
  # @return [::Google::Api::CommonLanguageSettings]
205
211
  # Some settings.
212
+ # @!attribute [rw] renamed_services
213
+ # @return [::Google::Protobuf::Map{::String => ::String}]
214
+ # Map from original service names to renamed versions.
215
+ # This is used when the default generated types
216
+ # would cause a naming conflict. (Neither name is
217
+ # fully-qualified.)
218
+ # Example: Subscriber to SubscriberServiceApi.
219
+ # @!attribute [rw] renamed_resources
220
+ # @return [::Google::Protobuf::Map{::String => ::String}]
221
+ # Map from full resource types to the effective short name
222
+ # for the resource. This is used when otherwise resource
223
+ # named from different services would cause naming collisions.
224
+ # Example entry:
225
+ # "datalabeling.googleapis.com/Dataset": "DataLabelingDataset"
226
+ # @!attribute [rw] ignored_resources
227
+ # @return [::Array<::String>]
228
+ # List of full resource types to ignore during generation.
229
+ # This is typically used for API-specific Location resources,
230
+ # which should be handled by the generator as if they were actually
231
+ # the common Location resources.
232
+ # Example entry: "documentai.googleapis.com/Location"
233
+ # @!attribute [rw] forced_namespace_aliases
234
+ # @return [::Array<::String>]
235
+ # Namespaces which must be aliased in snippets due to
236
+ # a known (but non-generator-predictable) naming collision
237
+ # @!attribute [rw] handwritten_signatures
238
+ # @return [::Array<::String>]
239
+ # Method signatures (in the form "service.method(signature)")
240
+ # which are provided separately, so shouldn't be generated.
241
+ # Snippets *calling* these methods are still generated, however.
206
242
  class DotnetSettings
207
243
  include ::Google::Protobuf::MessageExts
208
244
  extend ::Google::Protobuf::MessageExts::ClassMethods
245
+
246
+ # @!attribute [rw] key
247
+ # @return [::String]
248
+ # @!attribute [rw] value
249
+ # @return [::String]
250
+ class RenamedServicesEntry
251
+ include ::Google::Protobuf::MessageExts
252
+ extend ::Google::Protobuf::MessageExts::ClassMethods
253
+ end
254
+
255
+ # @!attribute [rw] key
256
+ # @return [::String]
257
+ # @!attribute [rw] value
258
+ # @return [::String]
259
+ class RenamedResourcesEntry
260
+ include ::Google::Protobuf::MessageExts
261
+ extend ::Google::Protobuf::MessageExts::ClassMethods
262
+ end
209
263
  end
210
264
 
211
265
  # Settings for Ruby client libraries.
@@ -240,8 +294,8 @@ module Google
240
294
  # Example of a YAML configuration::
241
295
  #
242
296
  # publishing:
243
- # method_behavior:
244
- # - selector: CreateAdDomain
297
+ # method_settings:
298
+ # - selector: google.cloud.speech.v2.Speech.BatchRecognize
245
299
  # long_running:
246
300
  # initial_poll_delay:
247
301
  # seconds: 60 # 1 minute
@@ -299,6 +353,15 @@ module Google
299
353
 
300
354
  # Street View Org.
301
355
  STREET_VIEW = 4
356
+
357
+ # Shopping Org.
358
+ SHOPPING = 5
359
+
360
+ # Geo Org.
361
+ GEO = 6
362
+
363
+ # Generative AI - https://developers.generativeai.google
364
+ GENERATIVE_AI = 7
302
365
  end
303
366
 
304
367
  # To where should client libraries be published?
@@ -154,8 +154,11 @@ module Google
154
154
  # @!attribute [rw] update_mask
155
155
  # @return [::Google::Protobuf::FieldMask]
156
156
  # The field mask specifying which IAP settings should be updated.
157
- # If omitted, the all of the settings are updated. See
158
- # https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
157
+ # If omitted, then all of the settings are updated. See
158
+ # https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask.
159
+ #
160
+ # Note: All IAP reauth settings must always be set together, using the
161
+ # field mask: `iapSettings.accessSettings.reauthSettings`.
159
162
  class UpdateIapSettingsRequest
160
163
  include ::Google::Protobuf::MessageExts
161
164
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -265,11 +268,13 @@ module Google
265
268
  # Prompts the user to log in again.
266
269
  LOGIN = 1
267
270
 
268
- # Deprecated, no longer accepted by IAP APIs.
269
271
  PASSWORD = 2
270
272
 
271
273
  # User must use their secure key 2nd factor device.
272
274
  SECURE_KEY = 3
275
+
276
+ # User can use any enabled 2nd factor.
277
+ ENROLLED_SECOND_FACTORS = 4
273
278
  end
274
279
 
275
280
  # Type of policy in the case of hierarchial policies.
@@ -355,25 +360,31 @@ module Google
355
360
  # by IAP.
356
361
  # @!attribute [rw] expression
357
362
  # @return [::String]
358
- # Raw string CEL expression. Must return a list of attributes. Maximum of 45
359
- # attributes can be selected. Expressions can select different attribute
363
+ # Raw string CEL expression. Must return a list of attributes. A maximum of
364
+ # 45 attributes can be selected. Expressions can select different attribute
360
365
  # types from `attributes`: `attributes.saml_attributes`,
361
- # `attributes.iap_attributes`. Limited functions are supported:
362
- # - `filter: <list>.filter(<iter_var>, <predicate>)` -> returns a subset of
366
+ # `attributes.iap_attributes`. The following functions are supported:
367
+ #
368
+ # - filter `<list>.filter(<iter_var>, <predicate>)`: Returns a subset of
363
369
  # `<list>` where `<predicate>` is true for every item.
364
- # - `in: <var> in <list>` -> returns true if `<list>` contains `<var>`
365
- # - `selectByName: <list>.selectByName(<string>)` -> returns the attribute
370
+ #
371
+ # - in `<var> in <list>`: Returns true if `<list>` contains `<var>`.
372
+ #
373
+ # - selectByName `<list>.selectByName(<string>)`: Returns the attribute
366
374
  # in
367
375
  # `<list>` with the given `<string>` name, otherwise returns empty.
368
- # - `emitAs: <attribute>.emitAs(<string>)` -> sets the `<attribute>` name
376
+ #
377
+ # - emitAs `<attribute>.emitAs(<string>)`: Sets the `<attribute>` name
369
378
  # field to the given `<string>` for propagation in selected output
370
379
  # credentials.
371
- # - `strict: <attribute>.strict()` -> ignore the `x-goog-iap-attr-` prefix
372
- # for the provided `<attribute>` when propagating via the `HEADER` output
373
- # credential, i.e. request headers.
374
- # - `append: <target_list>.append(<attribute>)` OR
375
- # `<target_list>.append(<list>)` -> append the provided `<attribute>` or
376
- # `<list>` onto the end of `<target_list>`.
380
+ #
381
+ # - strict `<attribute>.strict()`: Ignores the `x-goog-iap-attr-` prefix
382
+ # for the provided `<attribute>` when propagating with the `HEADER` output
383
+ # credential, such as request headers.
384
+ #
385
+ # - append `<target_list>.append(<attribute>)` OR
386
+ # `<target_list>.append(<list>)`: Appends the provided `<attribute>` or
387
+ # `<list>` to the end of `<target_list>`.
377
388
  #
378
389
  # Example expression: `attributes.saml_attributes.filter(x, x.name in
379
390
  # ['test']).append(attributes.iap_attributes.selectByName('exact').emitAs('custom').strict())`
@@ -395,7 +406,7 @@ module Google
395
406
  # credential maps to a "field" in the response. For example, selecting JWT
396
407
  # will propagate all attributes in the IAP JWT, header in the headers, etc.
397
408
  module OutputCredentials
398
- # No output credential. This is an unsupported default.
409
+ # An output credential is required.
399
410
  OUTPUT_CREDENTIALS_UNSPECIFIED = 0
400
411
 
401
412
  # Propagate attributes in the headers with "x-goog-iap-attr-" prefix.
@@ -35,7 +35,8 @@ module Google
35
35
  # only if the expression evaluates to `true`. A condition can add constraints
36
36
  # based on attributes of the request, the resource, or both. To learn which
37
37
  # resources support conditions in their IAM policies, see the
38
- # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
38
+ # [IAM
39
+ # documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
39
40
  #
40
41
  # **JSON example:**
41
42
  #
@@ -58,7 +59,8 @@ module Google
58
59
  # "condition": {
59
60
  # "title": "expirable access",
60
61
  # "description": "Does not grant access after Sep 2020",
61
- # "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')",
62
+ # "expression": "request.time <
63
+ # timestamp('2020-10-01T00:00:00.000Z')",
62
64
  # }
63
65
  # }
64
66
  # ],
@@ -112,7 +114,8 @@ module Google
112
114
  # specify any valid version or leave the field unset.
113
115
  #
114
116
  # To learn which resources support conditions in their IAM policies, see the
115
- # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
117
+ # [IAM
118
+ # documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
116
119
  # @!attribute [rw] bindings
117
120
  # @return [::Array<::Google::Iam::V1::Binding>]
118
121
  # Associates a list of `members`, or principals, with a `role`. Optionally,
@@ -305,7 +308,8 @@ module Google
305
308
  # @return [::Array<::String>]
306
309
  # Specifies the identities that do not cause logging for this type of
307
310
  # permission.
308
- # Follows the same format of {::Google::Iam::V1::Binding#members Binding.members}.
311
+ # Follows the same format of
312
+ # {::Google::Iam::V1::Binding#members Binding.members}.
309
313
  class AuditLogConfig
310
314
  include ::Google::Protobuf::MessageExts
311
315
  extend ::Google::Protobuf::MessageExts::ClassMethods
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-iap-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-03-08 00:00:00.000000000 Z
11
+ date: 2023-06-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.18.0
19
+ version: 0.19.1
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 0.18.0
29
+ version: 0.19.1
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a