google-cloud-cloud_controls_partner-v1beta 0.2.0 → 0.4.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b5000680bb6442bdaafd074f7276d26842af4c5f78bbd5fce2efd35a9edf3c55
4
- data.tar.gz: 672a6852fa956e9f838134b0dc7a7bd0a791a01afe83335ac89c030a50bfd5ff
3
+ metadata.gz: d81a5677d3306660124bf1c10835833a227072ef90f01e2e3aa8af63844e5abe
4
+ data.tar.gz: d65fee438acbf5d756b6c7be91e92477673c54cb15149b645d87c1cc0bf92950
5
5
  SHA512:
6
- metadata.gz: 65c918cc0351e39975e8e428e9f11ba49b8d897bcbc002872cebc0418451f8a483e02a9461b1dc8c998f9df5b7d2ce9e1dce29cbc1205f20ea3ce3294b3ba6d9
7
- data.tar.gz: 73efddd9e7dd433c152e3b1744bb87533e874c637df67e8d04552354fa20c513418ffbdd9948e6a9b12498254db617912e5a25c8cb74f4854c9dbbff2571fca4
6
+ metadata.gz: 26ecfe3d416a5bc324f082bca933d3d4164be1e28070cc7ca07249f73854e76e375cbe5b397a8eee054dec93dce20098f93d7bf8377cbd8e5a2d8652740c5aa4
7
+ data.tar.gz: fe8fe3f5cfef46d66091fd50d5bc295fba4080ad07ec8e4c558459cc364c48c987c0262130ada0602e3eb7d68f8569291e1580718dd7e61efdaea767fd8d0cad
data/README.md CHANGED
@@ -43,40 +43,50 @@ for class and method documentation.
43
43
  See also the [Product Documentation](https://cloud.google.com/sovereign-controls-by-partners/docs/sovereign-partners/reference/rest)
44
44
  for general usage information.
45
45
 
46
- ## Enabling Logging
47
-
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
- 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://cloud.google.com/ruby/docs/reference/google-cloud-logging/latest)
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
- and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
53
-
54
- Configuring a Ruby stdlib logger:
46
+ ## Debug Logging
47
+
48
+ This library comes with opt-in Debug Logging that can help you troubleshoot
49
+ your application's integration with the API. When logging is activated, key
50
+ events such as requests and responses, along with data payloads and metadata
51
+ such as headers and client configuration, are logged to the standard error
52
+ stream.
53
+
54
+ **WARNING:** Client Library Debug Logging includes your data payloads in
55
+ plaintext, which could include sensitive data such as PII for yourself or your
56
+ customers, private keys, or other security data that could be compromising if
57
+ leaked. Always practice good data hygiene with your application logs, and follow
58
+ the principle of least access. Google also recommends that Client Library Debug
59
+ Logging be enabled only temporarily during active debugging, and not used
60
+ permanently in production.
61
+
62
+ To enable logging, set the environment variable `GOOGLE_SDK_RUBY_LOGGING_GEMS`
63
+ to the value `all`. Alternatively, you can set the value to a comma-delimited
64
+ list of client library gem names. This will select the default logging behavior,
65
+ which writes logs to the standard error stream. On a local workstation, this may
66
+ result in logs appearing on the console. When running on a Google Cloud hosting
67
+ service such as [Google Cloud Run](https://cloud.google.com/run), this generally
68
+ results in logs appearing alongside your application logs in the
69
+ [Google Cloud Logging](https://cloud.google.com/logging/) service.
70
+
71
+ You can customize logging by modifying the `logger` configuration when
72
+ constructing a client object. For example:
55
73
 
56
74
  ```ruby
75
+ require "google/cloud/cloud_controls_partner/v1beta"
57
76
  require "logger"
58
77
 
59
- module MyLogger
60
- LOGGER = Logger.new $stderr, level: Logger::WARN
61
- def logger
62
- LOGGER
63
- end
64
- end
65
-
66
- # Define a gRPC module-level logger method before grpc/logconfig.rb loads.
67
- module GRPC
68
- extend MyLogger
78
+ client = ::Google::Cloud::CloudControlsPartner::V1beta::CloudControlsPartnerCore::Client.new do |config|
79
+ config.logger = Logger.new "my-app.log"
69
80
  end
70
81
  ```
71
82
 
72
-
73
83
  ## Google Cloud Samples
74
84
 
75
85
  To browse ready to use code samples check [Google Cloud Samples](https://cloud.google.com/docs/samples).
76
86
 
77
87
  ## Supported Ruby Versions
78
88
 
79
- This library is supported on Ruby 2.7+.
89
+ This library is supported on Ruby 3.0+.
80
90
 
81
91
  Google provides official support for Ruby versions that are actively supported
82
92
  by Ruby Core—that is, Ruby versions that are either in normal maintenance or
@@ -192,8 +192,28 @@ module Google
192
192
  universe_domain: @config.universe_domain,
193
193
  channel_args: @config.channel_args,
194
194
  interceptors: @config.interceptors,
195
- channel_pool_config: @config.channel_pool
195
+ channel_pool_config: @config.channel_pool,
196
+ logger: @config.logger
196
197
  )
198
+
199
+ @cloud_controls_partner_core_stub.stub_logger&.info do |entry|
200
+ entry.set_system_name
201
+ entry.set_service
202
+ entry.message = "Created client for #{entry.service}"
203
+ entry.set_credentials_fields credentials
204
+ entry.set "customEndpoint", @config.endpoint if @config.endpoint
205
+ entry.set "defaultTimeout", @config.timeout if @config.timeout
206
+ entry.set "quotaProject", @quota_project_id if @quota_project_id
207
+ end
208
+ end
209
+
210
+ ##
211
+ # The logger used for request/response debug logging.
212
+ #
213
+ # @return [Logger]
214
+ #
215
+ def logger
216
+ @cloud_controls_partner_core_stub.logger
197
217
  end
198
218
 
199
219
  # Service calls
@@ -279,7 +299,6 @@ module Google
279
299
 
280
300
  @cloud_controls_partner_core_stub.call_rpc :get_workload, request, options: options do |response, operation|
281
301
  yield response, operation if block_given?
282
- return response
283
302
  end
284
303
  rescue ::GRPC::BadStatus => e
285
304
  raise ::Google::Cloud::Error.from_error(e)
@@ -382,7 +401,7 @@ module Google
382
401
  @cloud_controls_partner_core_stub.call_rpc :list_workloads, request, options: options do |response, operation|
383
402
  response = ::Gapic::PagedEnumerable.new @cloud_controls_partner_core_stub, :list_workloads, request, response, operation, options
384
403
  yield response, operation if block_given?
385
- return response
404
+ throw :response, response
386
405
  end
387
406
  rescue ::GRPC::BadStatus => e
388
407
  raise ::Google::Cloud::Error.from_error(e)
@@ -469,7 +488,6 @@ module Google
469
488
 
470
489
  @cloud_controls_partner_core_stub.call_rpc :get_customer, request, options: options do |response, operation|
471
490
  yield response, operation if block_given?
472
- return response
473
491
  end
474
492
  rescue ::GRPC::BadStatus => e
475
493
  raise ::Google::Cloud::Error.from_error(e)
@@ -571,7 +589,7 @@ module Google
571
589
  @cloud_controls_partner_core_stub.call_rpc :list_customers, request, options: options do |response, operation|
572
590
  response = ::Gapic::PagedEnumerable.new @cloud_controls_partner_core_stub, :list_customers, request, response, operation, options
573
591
  yield response, operation if block_given?
574
- return response
592
+ throw :response, response
575
593
  end
576
594
  rescue ::GRPC::BadStatus => e
577
595
  raise ::Google::Cloud::Error.from_error(e)
@@ -658,7 +676,6 @@ module Google
658
676
 
659
677
  @cloud_controls_partner_core_stub.call_rpc :get_ekm_connections, request, options: options do |response, operation|
660
678
  yield response, operation if block_given?
661
- return response
662
679
  end
663
680
  rescue ::GRPC::BadStatus => e
664
681
  raise ::Google::Cloud::Error.from_error(e)
@@ -745,7 +762,6 @@ module Google
745
762
 
746
763
  @cloud_controls_partner_core_stub.call_rpc :get_partner_permissions, request, options: options do |response, operation|
747
764
  yield response, operation if block_given?
748
- return response
749
765
  end
750
766
  rescue ::GRPC::BadStatus => e
751
767
  raise ::Google::Cloud::Error.from_error(e)
@@ -853,7 +869,7 @@ module Google
853
869
  @cloud_controls_partner_core_stub.call_rpc :list_access_approval_requests, request, options: options do |response, operation|
854
870
  response = ::Gapic::PagedEnumerable.new @cloud_controls_partner_core_stub, :list_access_approval_requests, request, response, operation, options
855
871
  yield response, operation if block_given?
856
- return response
872
+ throw :response, response
857
873
  end
858
874
  rescue ::GRPC::BadStatus => e
859
875
  raise ::Google::Cloud::Error.from_error(e)
@@ -940,7 +956,273 @@ module Google
940
956
 
941
957
  @cloud_controls_partner_core_stub.call_rpc :get_partner, request, options: options do |response, operation|
942
958
  yield response, operation if block_given?
943
- return response
959
+ end
960
+ rescue ::GRPC::BadStatus => e
961
+ raise ::Google::Cloud::Error.from_error(e)
962
+ end
963
+
964
+ ##
965
+ # Creates a new customer.
966
+ #
967
+ # @overload create_customer(request, options = nil)
968
+ # Pass arguments to `create_customer` via a request object, either of type
969
+ # {::Google::Cloud::CloudControlsPartner::V1beta::CreateCustomerRequest} or an equivalent Hash.
970
+ #
971
+ # @param request [::Google::Cloud::CloudControlsPartner::V1beta::CreateCustomerRequest, ::Hash]
972
+ # A request object representing the call parameters. Required. To specify no
973
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
974
+ # @param options [::Gapic::CallOptions, ::Hash]
975
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
976
+ #
977
+ # @overload create_customer(parent: nil, customer: nil, customer_id: nil)
978
+ # Pass arguments to `create_customer` via keyword arguments. Note that at
979
+ # least one keyword argument is required. To specify no parameters, or to keep all
980
+ # the default parameter values, pass an empty Hash as a request object (see above).
981
+ #
982
+ # @param parent [::String]
983
+ # Required. Parent resource
984
+ # Format: `organizations/{organization}/locations/{location}`
985
+ # @param customer [::Google::Cloud::CloudControlsPartner::V1beta::Customer, ::Hash]
986
+ # Required. The customer to create.
987
+ # @param customer_id [::String]
988
+ # Required. The customer id to use for the customer, which will become the
989
+ # final component of the customer's resource name. The specified value must
990
+ # be a valid Google cloud organization id.
991
+ #
992
+ # @yield [response, operation] Access the result along with the RPC operation
993
+ # @yieldparam response [::Google::Cloud::CloudControlsPartner::V1beta::Customer]
994
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
995
+ #
996
+ # @return [::Google::Cloud::CloudControlsPartner::V1beta::Customer]
997
+ #
998
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
999
+ #
1000
+ # @example Basic example
1001
+ # require "google/cloud/cloud_controls_partner/v1beta"
1002
+ #
1003
+ # # Create a client object. The client can be reused for multiple calls.
1004
+ # client = Google::Cloud::CloudControlsPartner::V1beta::CloudControlsPartnerCore::Client.new
1005
+ #
1006
+ # # Create a request. To set request fields, pass in keyword arguments.
1007
+ # request = Google::Cloud::CloudControlsPartner::V1beta::CreateCustomerRequest.new
1008
+ #
1009
+ # # Call the create_customer method.
1010
+ # result = client.create_customer request
1011
+ #
1012
+ # # The returned object is of type Google::Cloud::CloudControlsPartner::V1beta::Customer.
1013
+ # p result
1014
+ #
1015
+ def create_customer request, options = nil
1016
+ raise ::ArgumentError, "request must be provided" if request.nil?
1017
+
1018
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::CloudControlsPartner::V1beta::CreateCustomerRequest
1019
+
1020
+ # Converts hash and nil to an options object
1021
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1022
+
1023
+ # Customize the options with defaults
1024
+ metadata = @config.rpcs.create_customer.metadata.to_h
1025
+
1026
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1027
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1028
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1029
+ gapic_version: ::Google::Cloud::CloudControlsPartner::V1beta::VERSION
1030
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1031
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1032
+
1033
+ header_params = {}
1034
+ if request.parent
1035
+ header_params["parent"] = request.parent
1036
+ end
1037
+
1038
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1039
+ metadata[:"x-goog-request-params"] ||= request_params_header
1040
+
1041
+ options.apply_defaults timeout: @config.rpcs.create_customer.timeout,
1042
+ metadata: metadata,
1043
+ retry_policy: @config.rpcs.create_customer.retry_policy
1044
+
1045
+ options.apply_defaults timeout: @config.timeout,
1046
+ metadata: @config.metadata,
1047
+ retry_policy: @config.retry_policy
1048
+
1049
+ @cloud_controls_partner_core_stub.call_rpc :create_customer, request, options: options do |response, operation|
1050
+ yield response, operation if block_given?
1051
+ end
1052
+ rescue ::GRPC::BadStatus => e
1053
+ raise ::Google::Cloud::Error.from_error(e)
1054
+ end
1055
+
1056
+ ##
1057
+ # Update details of a single customer
1058
+ #
1059
+ # @overload update_customer(request, options = nil)
1060
+ # Pass arguments to `update_customer` via a request object, either of type
1061
+ # {::Google::Cloud::CloudControlsPartner::V1beta::UpdateCustomerRequest} or an equivalent Hash.
1062
+ #
1063
+ # @param request [::Google::Cloud::CloudControlsPartner::V1beta::UpdateCustomerRequest, ::Hash]
1064
+ # A request object representing the call parameters. Required. To specify no
1065
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1066
+ # @param options [::Gapic::CallOptions, ::Hash]
1067
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1068
+ #
1069
+ # @overload update_customer(customer: nil, update_mask: nil)
1070
+ # Pass arguments to `update_customer` via keyword arguments. Note that at
1071
+ # least one keyword argument is required. To specify no parameters, or to keep all
1072
+ # the default parameter values, pass an empty Hash as a request object (see above).
1073
+ #
1074
+ # @param customer [::Google::Cloud::CloudControlsPartner::V1beta::Customer, ::Hash]
1075
+ # Required. The customer to update
1076
+ # Format:
1077
+ # `organizations/{organization}/locations/{location}/customers/{customer}`
1078
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
1079
+ # Optional. The list of fields to update
1080
+ #
1081
+ # @yield [response, operation] Access the result along with the RPC operation
1082
+ # @yieldparam response [::Google::Cloud::CloudControlsPartner::V1beta::Customer]
1083
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1084
+ #
1085
+ # @return [::Google::Cloud::CloudControlsPartner::V1beta::Customer]
1086
+ #
1087
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1088
+ #
1089
+ # @example Basic example
1090
+ # require "google/cloud/cloud_controls_partner/v1beta"
1091
+ #
1092
+ # # Create a client object. The client can be reused for multiple calls.
1093
+ # client = Google::Cloud::CloudControlsPartner::V1beta::CloudControlsPartnerCore::Client.new
1094
+ #
1095
+ # # Create a request. To set request fields, pass in keyword arguments.
1096
+ # request = Google::Cloud::CloudControlsPartner::V1beta::UpdateCustomerRequest.new
1097
+ #
1098
+ # # Call the update_customer method.
1099
+ # result = client.update_customer request
1100
+ #
1101
+ # # The returned object is of type Google::Cloud::CloudControlsPartner::V1beta::Customer.
1102
+ # p result
1103
+ #
1104
+ def update_customer request, options = nil
1105
+ raise ::ArgumentError, "request must be provided" if request.nil?
1106
+
1107
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::CloudControlsPartner::V1beta::UpdateCustomerRequest
1108
+
1109
+ # Converts hash and nil to an options object
1110
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1111
+
1112
+ # Customize the options with defaults
1113
+ metadata = @config.rpcs.update_customer.metadata.to_h
1114
+
1115
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1116
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1117
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1118
+ gapic_version: ::Google::Cloud::CloudControlsPartner::V1beta::VERSION
1119
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1120
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1121
+
1122
+ header_params = {}
1123
+ if request.customer&.name
1124
+ header_params["customer.name"] = request.customer.name
1125
+ end
1126
+
1127
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1128
+ metadata[:"x-goog-request-params"] ||= request_params_header
1129
+
1130
+ options.apply_defaults timeout: @config.rpcs.update_customer.timeout,
1131
+ metadata: metadata,
1132
+ retry_policy: @config.rpcs.update_customer.retry_policy
1133
+
1134
+ options.apply_defaults timeout: @config.timeout,
1135
+ metadata: @config.metadata,
1136
+ retry_policy: @config.retry_policy
1137
+
1138
+ @cloud_controls_partner_core_stub.call_rpc :update_customer, request, options: options do |response, operation|
1139
+ yield response, operation if block_given?
1140
+ end
1141
+ rescue ::GRPC::BadStatus => e
1142
+ raise ::Google::Cloud::Error.from_error(e)
1143
+ end
1144
+
1145
+ ##
1146
+ # Delete details of a single customer
1147
+ #
1148
+ # @overload delete_customer(request, options = nil)
1149
+ # Pass arguments to `delete_customer` via a request object, either of type
1150
+ # {::Google::Cloud::CloudControlsPartner::V1beta::DeleteCustomerRequest} or an equivalent Hash.
1151
+ #
1152
+ # @param request [::Google::Cloud::CloudControlsPartner::V1beta::DeleteCustomerRequest, ::Hash]
1153
+ # A request object representing the call parameters. Required. To specify no
1154
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1155
+ # @param options [::Gapic::CallOptions, ::Hash]
1156
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1157
+ #
1158
+ # @overload delete_customer(name: nil)
1159
+ # Pass arguments to `delete_customer` via keyword arguments. Note that at
1160
+ # least one keyword argument is required. To specify no parameters, or to keep all
1161
+ # the default parameter values, pass an empty Hash as a request object (see above).
1162
+ #
1163
+ # @param name [::String]
1164
+ # Required. name of the resource to be deleted
1165
+ # format: name=organizations/*/locations/*/customers/*
1166
+ #
1167
+ # @yield [response, operation] Access the result along with the RPC operation
1168
+ # @yieldparam response [::Google::Protobuf::Empty]
1169
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1170
+ #
1171
+ # @return [::Google::Protobuf::Empty]
1172
+ #
1173
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1174
+ #
1175
+ # @example Basic example
1176
+ # require "google/cloud/cloud_controls_partner/v1beta"
1177
+ #
1178
+ # # Create a client object. The client can be reused for multiple calls.
1179
+ # client = Google::Cloud::CloudControlsPartner::V1beta::CloudControlsPartnerCore::Client.new
1180
+ #
1181
+ # # Create a request. To set request fields, pass in keyword arguments.
1182
+ # request = Google::Cloud::CloudControlsPartner::V1beta::DeleteCustomerRequest.new
1183
+ #
1184
+ # # Call the delete_customer method.
1185
+ # result = client.delete_customer request
1186
+ #
1187
+ # # The returned object is of type Google::Protobuf::Empty.
1188
+ # p result
1189
+ #
1190
+ def delete_customer request, options = nil
1191
+ raise ::ArgumentError, "request must be provided" if request.nil?
1192
+
1193
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::CloudControlsPartner::V1beta::DeleteCustomerRequest
1194
+
1195
+ # Converts hash and nil to an options object
1196
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1197
+
1198
+ # Customize the options with defaults
1199
+ metadata = @config.rpcs.delete_customer.metadata.to_h
1200
+
1201
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1202
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1203
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1204
+ gapic_version: ::Google::Cloud::CloudControlsPartner::V1beta::VERSION
1205
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1206
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1207
+
1208
+ header_params = {}
1209
+ if request.name
1210
+ header_params["name"] = request.name
1211
+ end
1212
+
1213
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1214
+ metadata[:"x-goog-request-params"] ||= request_params_header
1215
+
1216
+ options.apply_defaults timeout: @config.rpcs.delete_customer.timeout,
1217
+ metadata: metadata,
1218
+ retry_policy: @config.rpcs.delete_customer.retry_policy
1219
+
1220
+ options.apply_defaults timeout: @config.timeout,
1221
+ metadata: @config.metadata,
1222
+ retry_policy: @config.retry_policy
1223
+
1224
+ @cloud_controls_partner_core_stub.call_rpc :delete_customer, request, options: options do |response, operation|
1225
+ yield response, operation if block_given?
944
1226
  end
945
1227
  rescue ::GRPC::BadStatus => e
946
1228
  raise ::Google::Cloud::Error.from_error(e)
@@ -990,6 +1272,13 @@ module Google
990
1272
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
991
1273
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
992
1274
  # * (`nil`) indicating no credentials
1275
+ #
1276
+ # Warning: If you accept a credential configuration (JSON file or Hash) from an
1277
+ # external source for authentication to Google Cloud, you must validate it before
1278
+ # providing it to a Google API client library. Providing an unvalidated credential
1279
+ # configuration to Google APIs can compromise the security of your systems and data.
1280
+ # For more information, refer to [Validate credential configurations from external
1281
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
993
1282
  # @return [::Object]
994
1283
  # @!attribute [rw] scope
995
1284
  # The OAuth scopes
@@ -1029,6 +1318,11 @@ module Google
1029
1318
  # default endpoint URL. The default value of nil uses the environment
1030
1319
  # universe (usually the default "googleapis.com" universe).
1031
1320
  # @return [::String,nil]
1321
+ # @!attribute [rw] logger
1322
+ # A custom logger to use for request/response debug logging, or the value
1323
+ # `:default` (the default) to construct a default logger, or `nil` to
1324
+ # explicitly disable logging.
1325
+ # @return [::Logger,:default,nil]
1032
1326
  #
1033
1327
  class Configuration
1034
1328
  extend ::Gapic::Config
@@ -1053,6 +1347,7 @@ module Google
1053
1347
  config_attr :retry_policy, nil, ::Hash, ::Proc, nil
1054
1348
  config_attr :quota_project, nil, ::String, nil
1055
1349
  config_attr :universe_domain, nil, ::String, nil
1350
+ config_attr :logger, :default, ::Logger, nil, :default
1056
1351
 
1057
1352
  # @private
1058
1353
  def initialize parent_config = nil
@@ -1139,6 +1434,21 @@ module Google
1139
1434
  # @return [::Gapic::Config::Method]
1140
1435
  #
1141
1436
  attr_reader :get_partner
1437
+ ##
1438
+ # RPC-specific configuration for `create_customer`
1439
+ # @return [::Gapic::Config::Method]
1440
+ #
1441
+ attr_reader :create_customer
1442
+ ##
1443
+ # RPC-specific configuration for `update_customer`
1444
+ # @return [::Gapic::Config::Method]
1445
+ #
1446
+ attr_reader :update_customer
1447
+ ##
1448
+ # RPC-specific configuration for `delete_customer`
1449
+ # @return [::Gapic::Config::Method]
1450
+ #
1451
+ attr_reader :delete_customer
1142
1452
 
1143
1453
  # @private
1144
1454
  def initialize parent_rpcs = nil
@@ -1158,6 +1468,12 @@ module Google
1158
1468
  @list_access_approval_requests = ::Gapic::Config::Method.new list_access_approval_requests_config
1159
1469
  get_partner_config = parent_rpcs.get_partner if parent_rpcs.respond_to? :get_partner
1160
1470
  @get_partner = ::Gapic::Config::Method.new get_partner_config
1471
+ create_customer_config = parent_rpcs.create_customer if parent_rpcs.respond_to? :create_customer
1472
+ @create_customer = ::Gapic::Config::Method.new create_customer_config
1473
+ update_customer_config = parent_rpcs.update_customer if parent_rpcs.respond_to? :update_customer
1474
+ @update_customer = ::Gapic::Config::Method.new update_customer_config
1475
+ delete_customer_config = parent_rpcs.delete_customer if parent_rpcs.respond_to? :delete_customer
1476
+ @delete_customer = ::Gapic::Config::Method.new delete_customer_config
1161
1477
 
1162
1478
  yield self if block_given?
1163
1479
  end