google-cloud-gemini_data_analytics-v1beta 0.5.1 → 0.6.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.
@@ -604,6 +604,104 @@ module Google
604
604
  raise ::Google::Cloud::Error.from_error(e)
605
605
  end
606
606
 
607
+ ##
608
+ # Creates a new DataAgent in a given project and location synchronously.
609
+ #
610
+ # @overload create_data_agent_sync(request, options = nil)
611
+ # Pass arguments to `create_data_agent_sync` via a request object, either of type
612
+ # {::Google::Cloud::GeminiDataAnalytics::V1beta::CreateDataAgentRequest} or an equivalent Hash.
613
+ #
614
+ # @param request [::Google::Cloud::GeminiDataAnalytics::V1beta::CreateDataAgentRequest, ::Hash]
615
+ # A request object representing the call parameters. Required. To specify no
616
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
617
+ # @param options [::Gapic::CallOptions, ::Hash]
618
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
619
+ #
620
+ # @overload create_data_agent_sync(parent: nil, data_agent_id: nil, data_agent: nil, request_id: nil)
621
+ # Pass arguments to `create_data_agent_sync` via keyword arguments. Note that at
622
+ # least one keyword argument is required. To specify no parameters, or to keep all
623
+ # the default parameter values, pass an empty Hash as a request object (see above).
624
+ #
625
+ # @param parent [::String]
626
+ # Required. Value for parent.
627
+ # @param data_agent_id [::String]
628
+ # Optional. Id of the requesting object. Must be unique within the parent.
629
+ # The allowed format is: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`.
630
+ # If not provided, the server will auto-generate a value for the id.
631
+ # @param data_agent [::Google::Cloud::GeminiDataAnalytics::V1beta::DataAgent, ::Hash]
632
+ # Required. The resource being created.
633
+ # @param request_id [::String]
634
+ # Optional. An optional request ID to identify requests. Specify a unique
635
+ # request ID so that if you must retry your request, the server will know to
636
+ # ignore the request if it has already been completed. The server will
637
+ # guarantee that for at least 60 minutes since the first request.
638
+ #
639
+ # For example, consider a situation where you make an initial request and the
640
+ # request times out. If you make the request again with the same request
641
+ # ID, the server can check if original operation with the same request ID
642
+ # was received, and if so, will ignore the second request. This prevents
643
+ # clients from accidentally creating duplicate commitments.
644
+ #
645
+ # The request ID must be a valid UUID with the exception that zero UUID is
646
+ # not supported (00000000-0000-0000-0000-000000000000).
647
+ # @yield [result, operation] Access the result along with the TransportOperation object
648
+ # @yieldparam result [::Google::Cloud::GeminiDataAnalytics::V1beta::DataAgent]
649
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
650
+ #
651
+ # @return [::Google::Cloud::GeminiDataAnalytics::V1beta::DataAgent]
652
+ #
653
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
654
+ #
655
+ # @example Basic example
656
+ # require "google/cloud/gemini_data_analytics/v1beta"
657
+ #
658
+ # # Create a client object. The client can be reused for multiple calls.
659
+ # client = Google::Cloud::GeminiDataAnalytics::V1beta::DataAgentService::Rest::Client.new
660
+ #
661
+ # # Create a request. To set request fields, pass in keyword arguments.
662
+ # request = Google::Cloud::GeminiDataAnalytics::V1beta::CreateDataAgentRequest.new
663
+ #
664
+ # # Call the create_data_agent_sync method.
665
+ # result = client.create_data_agent_sync request
666
+ #
667
+ # # The returned object is of type Google::Cloud::GeminiDataAnalytics::V1beta::DataAgent.
668
+ # p result
669
+ #
670
+ def create_data_agent_sync request, options = nil
671
+ raise ::ArgumentError, "request must be provided" if request.nil?
672
+
673
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::GeminiDataAnalytics::V1beta::CreateDataAgentRequest
674
+
675
+ # Converts hash and nil to an options object
676
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
677
+
678
+ # Customize the options with defaults
679
+ call_metadata = @config.rpcs.create_data_agent_sync.metadata.to_h
680
+
681
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
682
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
683
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
684
+ gapic_version: ::Google::Cloud::GeminiDataAnalytics::V1beta::VERSION,
685
+ transports_version_send: [:rest]
686
+
687
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
688
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
689
+
690
+ options.apply_defaults timeout: @config.rpcs.create_data_agent_sync.timeout,
691
+ metadata: call_metadata,
692
+ retry_policy: @config.rpcs.create_data_agent_sync.retry_policy
693
+
694
+ options.apply_defaults timeout: @config.timeout,
695
+ metadata: @config.metadata,
696
+ retry_policy: @config.retry_policy
697
+
698
+ @data_agent_service_stub.create_data_agent_sync request, options do |result, operation|
699
+ yield result, operation if block_given?
700
+ end
701
+ rescue ::Gapic::Rest::Error => e
702
+ raise ::Google::Cloud::Error.from_error(e)
703
+ end
704
+
607
705
  ##
608
706
  # Updates the parameters of a single DataAgent.
609
707
  #
@@ -713,6 +811,106 @@ module Google
713
811
  raise ::Google::Cloud::Error.from_error(e)
714
812
  end
715
813
 
814
+ ##
815
+ # Updates the parameters of a single DataAgent synchronously.
816
+ #
817
+ # @overload update_data_agent_sync(request, options = nil)
818
+ # Pass arguments to `update_data_agent_sync` via a request object, either of type
819
+ # {::Google::Cloud::GeminiDataAnalytics::V1beta::UpdateDataAgentRequest} or an equivalent Hash.
820
+ #
821
+ # @param request [::Google::Cloud::GeminiDataAnalytics::V1beta::UpdateDataAgentRequest, ::Hash]
822
+ # A request object representing the call parameters. Required. To specify no
823
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
824
+ # @param options [::Gapic::CallOptions, ::Hash]
825
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
826
+ #
827
+ # @overload update_data_agent_sync(update_mask: nil, data_agent: nil, request_id: nil)
828
+ # Pass arguments to `update_data_agent_sync` via keyword arguments. Note that at
829
+ # least one keyword argument is required. To specify no parameters, or to keep all
830
+ # the default parameter values, pass an empty Hash as a request object (see above).
831
+ #
832
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
833
+ # Optional. Field mask is used to specify the fields to be overwritten in the
834
+ # DataAgent resource by the update.
835
+ # The fields specified in the update_mask are relative to the resource, not
836
+ # the full request. A field will be overwritten if it is in the mask. If the
837
+ # user does not provide a mask then all fields with non-default values
838
+ # present in the request will be overwritten. If a wildcard mask is provided,
839
+ # all fields will be overwritten.
840
+ # @param data_agent [::Google::Cloud::GeminiDataAnalytics::V1beta::DataAgent, ::Hash]
841
+ # Required. The resource being updated.
842
+ # @param request_id [::String]
843
+ # Optional. An optional request ID to identify requests. Specify a unique
844
+ # request ID so that if you must retry your request, the server will know to
845
+ # ignore the request if it has already been completed. The server will
846
+ # guarantee that for at least 60 minutes since the first request.
847
+ #
848
+ # For example, consider a situation where you make an initial request and the
849
+ # request times out. If you make the request again with the same request
850
+ # ID, the server can check if original operation with the same request ID
851
+ # was received, and if so, will ignore the second request. This prevents
852
+ # clients from accidentally creating duplicate commitments.
853
+ #
854
+ # The request ID must be a valid UUID with the exception that zero UUID is
855
+ # not supported (00000000-0000-0000-0000-000000000000).
856
+ # @yield [result, operation] Access the result along with the TransportOperation object
857
+ # @yieldparam result [::Google::Cloud::GeminiDataAnalytics::V1beta::DataAgent]
858
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
859
+ #
860
+ # @return [::Google::Cloud::GeminiDataAnalytics::V1beta::DataAgent]
861
+ #
862
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
863
+ #
864
+ # @example Basic example
865
+ # require "google/cloud/gemini_data_analytics/v1beta"
866
+ #
867
+ # # Create a client object. The client can be reused for multiple calls.
868
+ # client = Google::Cloud::GeminiDataAnalytics::V1beta::DataAgentService::Rest::Client.new
869
+ #
870
+ # # Create a request. To set request fields, pass in keyword arguments.
871
+ # request = Google::Cloud::GeminiDataAnalytics::V1beta::UpdateDataAgentRequest.new
872
+ #
873
+ # # Call the update_data_agent_sync method.
874
+ # result = client.update_data_agent_sync request
875
+ #
876
+ # # The returned object is of type Google::Cloud::GeminiDataAnalytics::V1beta::DataAgent.
877
+ # p result
878
+ #
879
+ def update_data_agent_sync request, options = nil
880
+ raise ::ArgumentError, "request must be provided" if request.nil?
881
+
882
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::GeminiDataAnalytics::V1beta::UpdateDataAgentRequest
883
+
884
+ # Converts hash and nil to an options object
885
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
886
+
887
+ # Customize the options with defaults
888
+ call_metadata = @config.rpcs.update_data_agent_sync.metadata.to_h
889
+
890
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
891
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
892
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
893
+ gapic_version: ::Google::Cloud::GeminiDataAnalytics::V1beta::VERSION,
894
+ transports_version_send: [:rest]
895
+
896
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
897
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
898
+
899
+ options.apply_defaults timeout: @config.rpcs.update_data_agent_sync.timeout,
900
+ metadata: call_metadata,
901
+ retry_policy: @config.rpcs.update_data_agent_sync.retry_policy
902
+
903
+ options.apply_defaults timeout: @config.timeout,
904
+ metadata: @config.metadata,
905
+ retry_policy: @config.retry_policy
906
+
907
+ @data_agent_service_stub.update_data_agent_sync request, options do |result, operation|
908
+ yield result, operation if block_given?
909
+ end
910
+ rescue ::Gapic::Rest::Error => e
911
+ raise ::Google::Cloud::Error.from_error(e)
912
+ end
913
+
716
914
  ##
717
915
  # Deletes a single DataAgent.
718
916
  #
@@ -814,6 +1012,98 @@ module Google
814
1012
  raise ::Google::Cloud::Error.from_error(e)
815
1013
  end
816
1014
 
1015
+ ##
1016
+ # Deletes a single DataAgent synchronously.
1017
+ #
1018
+ # @overload delete_data_agent_sync(request, options = nil)
1019
+ # Pass arguments to `delete_data_agent_sync` via a request object, either of type
1020
+ # {::Google::Cloud::GeminiDataAnalytics::V1beta::DeleteDataAgentRequest} or an equivalent Hash.
1021
+ #
1022
+ # @param request [::Google::Cloud::GeminiDataAnalytics::V1beta::DeleteDataAgentRequest, ::Hash]
1023
+ # A request object representing the call parameters. Required. To specify no
1024
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1025
+ # @param options [::Gapic::CallOptions, ::Hash]
1026
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1027
+ #
1028
+ # @overload delete_data_agent_sync(name: nil, request_id: nil)
1029
+ # Pass arguments to `delete_data_agent_sync` via keyword arguments. Note that at
1030
+ # least one keyword argument is required. To specify no parameters, or to keep all
1031
+ # the default parameter values, pass an empty Hash as a request object (see above).
1032
+ #
1033
+ # @param name [::String]
1034
+ # Required. Name of the resource.
1035
+ # @param request_id [::String]
1036
+ # Optional. An optional request ID to identify requests. Specify a unique
1037
+ # request ID so that if you must retry your request, the server will know to
1038
+ # ignore the request if it has already been completed. The server will
1039
+ # guarantee that for at least 60 minutes after the first request.
1040
+ #
1041
+ # For example, consider a situation where you make an initial request and the
1042
+ # request times out. If you make the request again with the same request
1043
+ # ID, the server can check if original operation with the same request ID
1044
+ # was received, and if so, will ignore the second request. This prevents
1045
+ # clients from accidentally creating duplicate commitments.
1046
+ #
1047
+ # The request ID must be a valid UUID with the exception that zero UUID is
1048
+ # not supported (00000000-0000-0000-0000-000000000000).
1049
+ # @yield [result, operation] Access the result along with the TransportOperation object
1050
+ # @yieldparam result [::Google::Protobuf::Empty]
1051
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1052
+ #
1053
+ # @return [::Google::Protobuf::Empty]
1054
+ #
1055
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
1056
+ #
1057
+ # @example Basic example
1058
+ # require "google/cloud/gemini_data_analytics/v1beta"
1059
+ #
1060
+ # # Create a client object. The client can be reused for multiple calls.
1061
+ # client = Google::Cloud::GeminiDataAnalytics::V1beta::DataAgentService::Rest::Client.new
1062
+ #
1063
+ # # Create a request. To set request fields, pass in keyword arguments.
1064
+ # request = Google::Cloud::GeminiDataAnalytics::V1beta::DeleteDataAgentRequest.new
1065
+ #
1066
+ # # Call the delete_data_agent_sync method.
1067
+ # result = client.delete_data_agent_sync request
1068
+ #
1069
+ # # The returned object is of type Google::Protobuf::Empty.
1070
+ # p result
1071
+ #
1072
+ def delete_data_agent_sync request, options = nil
1073
+ raise ::ArgumentError, "request must be provided" if request.nil?
1074
+
1075
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::GeminiDataAnalytics::V1beta::DeleteDataAgentRequest
1076
+
1077
+ # Converts hash and nil to an options object
1078
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1079
+
1080
+ # Customize the options with defaults
1081
+ call_metadata = @config.rpcs.delete_data_agent_sync.metadata.to_h
1082
+
1083
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1084
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1085
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1086
+ gapic_version: ::Google::Cloud::GeminiDataAnalytics::V1beta::VERSION,
1087
+ transports_version_send: [:rest]
1088
+
1089
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1090
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1091
+
1092
+ options.apply_defaults timeout: @config.rpcs.delete_data_agent_sync.timeout,
1093
+ metadata: call_metadata,
1094
+ retry_policy: @config.rpcs.delete_data_agent_sync.retry_policy
1095
+
1096
+ options.apply_defaults timeout: @config.timeout,
1097
+ metadata: @config.metadata,
1098
+ retry_policy: @config.retry_policy
1099
+
1100
+ @data_agent_service_stub.delete_data_agent_sync request, options do |result, operation|
1101
+ yield result, operation if block_given?
1102
+ end
1103
+ rescue ::Gapic::Rest::Error => e
1104
+ raise ::Google::Cloud::Error.from_error(e)
1105
+ end
1106
+
817
1107
  ##
818
1108
  # Gets the IAM policy for DataAgent
819
1109
  #
@@ -1160,16 +1450,31 @@ module Google
1160
1450
  #
1161
1451
  attr_reader :create_data_agent
1162
1452
  ##
1453
+ # RPC-specific configuration for `create_data_agent_sync`
1454
+ # @return [::Gapic::Config::Method]
1455
+ #
1456
+ attr_reader :create_data_agent_sync
1457
+ ##
1163
1458
  # RPC-specific configuration for `update_data_agent`
1164
1459
  # @return [::Gapic::Config::Method]
1165
1460
  #
1166
1461
  attr_reader :update_data_agent
1167
1462
  ##
1463
+ # RPC-specific configuration for `update_data_agent_sync`
1464
+ # @return [::Gapic::Config::Method]
1465
+ #
1466
+ attr_reader :update_data_agent_sync
1467
+ ##
1168
1468
  # RPC-specific configuration for `delete_data_agent`
1169
1469
  # @return [::Gapic::Config::Method]
1170
1470
  #
1171
1471
  attr_reader :delete_data_agent
1172
1472
  ##
1473
+ # RPC-specific configuration for `delete_data_agent_sync`
1474
+ # @return [::Gapic::Config::Method]
1475
+ #
1476
+ attr_reader :delete_data_agent_sync
1477
+ ##
1173
1478
  # RPC-specific configuration for `get_iam_policy`
1174
1479
  # @return [::Gapic::Config::Method]
1175
1480
  #
@@ -1190,10 +1495,16 @@ module Google
1190
1495
  @get_data_agent = ::Gapic::Config::Method.new get_data_agent_config
1191
1496
  create_data_agent_config = parent_rpcs.create_data_agent if parent_rpcs.respond_to? :create_data_agent
1192
1497
  @create_data_agent = ::Gapic::Config::Method.new create_data_agent_config
1498
+ create_data_agent_sync_config = parent_rpcs.create_data_agent_sync if parent_rpcs.respond_to? :create_data_agent_sync
1499
+ @create_data_agent_sync = ::Gapic::Config::Method.new create_data_agent_sync_config
1193
1500
  update_data_agent_config = parent_rpcs.update_data_agent if parent_rpcs.respond_to? :update_data_agent
1194
1501
  @update_data_agent = ::Gapic::Config::Method.new update_data_agent_config
1502
+ update_data_agent_sync_config = parent_rpcs.update_data_agent_sync if parent_rpcs.respond_to? :update_data_agent_sync
1503
+ @update_data_agent_sync = ::Gapic::Config::Method.new update_data_agent_sync_config
1195
1504
  delete_data_agent_config = parent_rpcs.delete_data_agent if parent_rpcs.respond_to? :delete_data_agent
1196
1505
  @delete_data_agent = ::Gapic::Config::Method.new delete_data_agent_config
1506
+ delete_data_agent_sync_config = parent_rpcs.delete_data_agent_sync if parent_rpcs.respond_to? :delete_data_agent_sync
1507
+ @delete_data_agent_sync = ::Gapic::Config::Method.new delete_data_agent_sync_config
1197
1508
  get_iam_policy_config = parent_rpcs.get_iam_policy if parent_rpcs.respond_to? :get_iam_policy
1198
1509
  @get_iam_policy = ::Gapic::Config::Method.new get_iam_policy_config
1199
1510
  set_iam_policy_config = parent_rpcs.set_iam_policy if parent_rpcs.respond_to? :set_iam_policy
@@ -233,6 +233,46 @@ module Google
233
233
  end
234
234
  end
235
235
 
236
+ ##
237
+ # Baseline implementation for the create_data_agent_sync REST call
238
+ #
239
+ # @param request_pb [::Google::Cloud::GeminiDataAnalytics::V1beta::CreateDataAgentRequest]
240
+ # A request object representing the call parameters. Required.
241
+ # @param options [::Gapic::CallOptions]
242
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
243
+ #
244
+ # @yield [result, operation] Access the result along with the TransportOperation object
245
+ # @yieldparam result [::Google::Cloud::GeminiDataAnalytics::V1beta::DataAgent]
246
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
247
+ #
248
+ # @return [::Google::Cloud::GeminiDataAnalytics::V1beta::DataAgent]
249
+ # A result object deserialized from the server's reply
250
+ def create_data_agent_sync request_pb, options = nil
251
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
252
+
253
+ verb, uri, query_string_params, body = ServiceStub.transcode_create_data_agent_sync_request request_pb
254
+ query_string_params = if query_string_params.any?
255
+ query_string_params.to_h { |p| p.split "=", 2 }
256
+ else
257
+ {}
258
+ end
259
+
260
+ response = @client_stub.make_http_request(
261
+ verb,
262
+ uri: uri,
263
+ body: body || "",
264
+ params: query_string_params,
265
+ method_name: "create_data_agent_sync",
266
+ options: options
267
+ )
268
+ operation = ::Gapic::Rest::TransportOperation.new response
269
+ result = ::Google::Cloud::GeminiDataAnalytics::V1beta::DataAgent.decode_json response.body, ignore_unknown_fields: true
270
+ catch :response do
271
+ yield result, operation if block_given?
272
+ result
273
+ end
274
+ end
275
+
236
276
  ##
237
277
  # Baseline implementation for the update_data_agent REST call
238
278
  #
@@ -273,6 +313,46 @@ module Google
273
313
  end
274
314
  end
275
315
 
316
+ ##
317
+ # Baseline implementation for the update_data_agent_sync REST call
318
+ #
319
+ # @param request_pb [::Google::Cloud::GeminiDataAnalytics::V1beta::UpdateDataAgentRequest]
320
+ # A request object representing the call parameters. Required.
321
+ # @param options [::Gapic::CallOptions]
322
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
323
+ #
324
+ # @yield [result, operation] Access the result along with the TransportOperation object
325
+ # @yieldparam result [::Google::Cloud::GeminiDataAnalytics::V1beta::DataAgent]
326
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
327
+ #
328
+ # @return [::Google::Cloud::GeminiDataAnalytics::V1beta::DataAgent]
329
+ # A result object deserialized from the server's reply
330
+ def update_data_agent_sync request_pb, options = nil
331
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
332
+
333
+ verb, uri, query_string_params, body = ServiceStub.transcode_update_data_agent_sync_request request_pb
334
+ query_string_params = if query_string_params.any?
335
+ query_string_params.to_h { |p| p.split "=", 2 }
336
+ else
337
+ {}
338
+ end
339
+
340
+ response = @client_stub.make_http_request(
341
+ verb,
342
+ uri: uri,
343
+ body: body || "",
344
+ params: query_string_params,
345
+ method_name: "update_data_agent_sync",
346
+ options: options
347
+ )
348
+ operation = ::Gapic::Rest::TransportOperation.new response
349
+ result = ::Google::Cloud::GeminiDataAnalytics::V1beta::DataAgent.decode_json response.body, ignore_unknown_fields: true
350
+ catch :response do
351
+ yield result, operation if block_given?
352
+ result
353
+ end
354
+ end
355
+
276
356
  ##
277
357
  # Baseline implementation for the delete_data_agent REST call
278
358
  #
@@ -313,6 +393,46 @@ module Google
313
393
  end
314
394
  end
315
395
 
396
+ ##
397
+ # Baseline implementation for the delete_data_agent_sync REST call
398
+ #
399
+ # @param request_pb [::Google::Cloud::GeminiDataAnalytics::V1beta::DeleteDataAgentRequest]
400
+ # A request object representing the call parameters. Required.
401
+ # @param options [::Gapic::CallOptions]
402
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
403
+ #
404
+ # @yield [result, operation] Access the result along with the TransportOperation object
405
+ # @yieldparam result [::Google::Protobuf::Empty]
406
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
407
+ #
408
+ # @return [::Google::Protobuf::Empty]
409
+ # A result object deserialized from the server's reply
410
+ def delete_data_agent_sync request_pb, options = nil
411
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
412
+
413
+ verb, uri, query_string_params, body = ServiceStub.transcode_delete_data_agent_sync_request request_pb
414
+ query_string_params = if query_string_params.any?
415
+ query_string_params.to_h { |p| p.split "=", 2 }
416
+ else
417
+ {}
418
+ end
419
+
420
+ response = @client_stub.make_http_request(
421
+ verb,
422
+ uri: uri,
423
+ body: body || "",
424
+ params: query_string_params,
425
+ method_name: "delete_data_agent_sync",
426
+ options: options
427
+ )
428
+ operation = ::Gapic::Rest::TransportOperation.new response
429
+ result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true
430
+ catch :response do
431
+ yield result, operation if block_given?
432
+ result
433
+ end
434
+ end
435
+
316
436
  ##
317
437
  # Baseline implementation for the get_iam_policy REST call
318
438
  #
@@ -478,6 +598,28 @@ module Google
478
598
  transcoder.transcode request_pb
479
599
  end
480
600
 
601
+ ##
602
+ # @private
603
+ #
604
+ # GRPC transcoding helper method for the create_data_agent_sync REST call
605
+ #
606
+ # @param request_pb [::Google::Cloud::GeminiDataAnalytics::V1beta::CreateDataAgentRequest]
607
+ # A request object representing the call parameters. Required.
608
+ # @return [Array(String, [String, nil], Hash{String => String})]
609
+ # Uri, Body, Query string parameters
610
+ def self.transcode_create_data_agent_sync_request request_pb
611
+ transcoder = Gapic::Rest::GrpcTranscoder.new
612
+ .with_bindings(
613
+ uri_method: :post,
614
+ uri_template: "/v1beta/{parent}/dataAgents:createSync",
615
+ body: "data_agent",
616
+ matches: [
617
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
618
+ ]
619
+ )
620
+ transcoder.transcode request_pb
621
+ end
622
+
481
623
  ##
482
624
  # @private
483
625
  #
@@ -500,6 +642,28 @@ module Google
500
642
  transcoder.transcode request_pb
501
643
  end
502
644
 
645
+ ##
646
+ # @private
647
+ #
648
+ # GRPC transcoding helper method for the update_data_agent_sync REST call
649
+ #
650
+ # @param request_pb [::Google::Cloud::GeminiDataAnalytics::V1beta::UpdateDataAgentRequest]
651
+ # A request object representing the call parameters. Required.
652
+ # @return [Array(String, [String, nil], Hash{String => String})]
653
+ # Uri, Body, Query string parameters
654
+ def self.transcode_update_data_agent_sync_request request_pb
655
+ transcoder = Gapic::Rest::GrpcTranscoder.new
656
+ .with_bindings(
657
+ uri_method: :patch,
658
+ uri_template: "/v1beta/{data_agent.name}:updateSync",
659
+ body: "data_agent",
660
+ matches: [
661
+ ["data_agent.name", %r{^projects/[^/]+/locations/[^/]+/dataAgents/[^/]+/?$}, false]
662
+ ]
663
+ )
664
+ transcoder.transcode request_pb
665
+ end
666
+
503
667
  ##
504
668
  # @private
505
669
  #
@@ -521,6 +685,27 @@ module Google
521
685
  transcoder.transcode request_pb
522
686
  end
523
687
 
688
+ ##
689
+ # @private
690
+ #
691
+ # GRPC transcoding helper method for the delete_data_agent_sync REST call
692
+ #
693
+ # @param request_pb [::Google::Cloud::GeminiDataAnalytics::V1beta::DeleteDataAgentRequest]
694
+ # A request object representing the call parameters. Required.
695
+ # @return [Array(String, [String, nil], Hash{String => String})]
696
+ # Uri, Body, Query string parameters
697
+ def self.transcode_delete_data_agent_sync_request request_pb
698
+ transcoder = Gapic::Rest::GrpcTranscoder.new
699
+ .with_bindings(
700
+ uri_method: :delete,
701
+ uri_template: "/v1beta/{name}:deleteSync",
702
+ matches: [
703
+ ["name", %r{^projects/[^/]+/locations/[^/]+/dataAgents/[^/]+/?$}, false]
704
+ ]
705
+ )
706
+ transcoder.transcode request_pb
707
+ end
708
+
524
709
  ##
525
710
  # @private
526
711
  #
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module GeminiDataAnalytics
23
23
  module V1beta
24
- VERSION = "0.5.1"
24
+ VERSION = "0.6.0"
25
25
  end
26
26
  end
27
27
  end
@@ -9,7 +9,7 @@ require 'google/cloud/geminidataanalytics/v1beta/datasource_pb'
9
9
  require 'google/protobuf/wrappers_pb'
10
10
 
11
11
 
12
- descriptor_data = "\n5google/cloud/geminidataanalytics/v1beta/context.proto\x12\'google.cloud.geminidataanalytics.v1beta\x1a\x1fgoogle/api/field_behavior.proto\x1a\x38google/cloud/geminidataanalytics/v1beta/datasource.proto\x1a\x1egoogle/protobuf/wrappers.proto\"\xf9\x07\n\x07\x43ontext\x12\x1f\n\x12system_instruction\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x61\n\x15\x64\x61tasource_references\x18\x07 \x01(\x0b\x32=.google.cloud.geminidataanalytics.v1beta.DatasourceReferencesB\x03\xe0\x41\x02\x12R\n\x07options\x18\x03 \x01(\x0b\x32<.google.cloud.geminidataanalytics.v1beta.ConversationOptionsB\x03\xe0\x41\x01\x12S\n\x0f\x65xample_queries\x18\x05 \x03(\x0b\x32\x35.google.cloud.geminidataanalytics.v1beta.ExampleQueryB\x03\xe0\x41\x01\x12R\n\x0eglossary_terms\x18\x08 \x03(\x0b\x32\x35.google.cloud.geminidataanalytics.v1beta.GlossaryTermB\x03\xe0\x41\x01\x12\x66\n\x14schema_relationships\x18\t \x03(\x0b\x32\x43.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationshipB\x03\xe0\x41\x01\x1a\x84\x04\n\x12SchemaRelationship\x12j\n\x11left_schema_paths\x18\x01 \x01(\x0b\x32O.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.SchemaPaths\x12k\n\x12right_schema_paths\x18\x02 \x01(\x0b\x32O.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.SchemaPaths\x12[\n\x07sources\x18\x03 \x03(\x0e\x32J.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.Source\x12\x18\n\x10\x63onfidence_score\x18\x04 \x01(\x02\x1a/\n\x0bSchemaPaths\x12\x11\n\ttable_fqn\x18\x01 \x01(\t\x12\r\n\x05paths\x18\x02 \x03(\t\"m\n\x06Source\x12\x16\n\x12SOURCE_UNSPECIFIED\x10\x00\x12\x18\n\x14\x42IGQUERY_JOB_HISTORY\x10\x01\x12\x11\n\rLLM_SUGGESTED\x10\x02\x12\x1e\n\x1a\x42IGQUERY_TABLE_CONSTRAINTS\x10\x03\"Y\n\x0c\x45xampleQuery\x12\x18\n\tsql_query\x18\x65 \x01(\tB\x03\xe0\x41\x01H\x00\x12&\n\x19natural_language_question\x18\x01 \x01(\tB\x03\xe0\x41\x01\x42\x07\n\x05query\"X\n\x0cGlossaryTerm\x12\x19\n\x0c\x64isplay_name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x18\n\x0b\x64\x65scription\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x06labels\x18\x03 \x03(\tB\x03\xe0\x41\x01\"\x86\x02\n\x13\x43onversationOptions\x12I\n\x05\x63hart\x18\x01 \x01(\x0b\x32\x35.google.cloud.geminidataanalytics.v1beta.ChartOptionsB\x03\xe0\x41\x01\x12O\n\x08\x61nalysis\x18\x02 \x01(\x0b\x32\x38.google.cloud.geminidataanalytics.v1beta.AnalysisOptionsB\x03\xe0\x41\x01\x12S\n\ndatasource\x18\x03 \x01(\x0b\x32:.google.cloud.geminidataanalytics.v1beta.DatasourceOptionsB\x03\xe0\x41\x01\"Y\n\x11\x44\x61tasourceOptions\x12\x44\n\x1a\x62ig_query_max_billed_bytes\x18\x01 \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\x03\xe0\x41\x01\"\xd6\x02\n\x0c\x43hartOptions\x12V\n\x05image\x18\x01 \x01(\x0b\x32\x42.google.cloud.geminidataanalytics.v1beta.ChartOptions.ImageOptionsB\x03\xe0\x41\x01\x1a\xed\x01\n\x0cImageOptions\x12^\n\x08no_image\x18\x01 \x01(\x0b\x32J.google.cloud.geminidataanalytics.v1beta.ChartOptions.ImageOptions.NoImageH\x00\x12\\\n\x03svg\x18\x02 \x01(\x0b\x32M.google.cloud.geminidataanalytics.v1beta.ChartOptions.ImageOptions.SvgOptionsH\x00\x1a\t\n\x07NoImage\x1a\x0c\n\nSvgOptionsB\x06\n\x04kind\"\x87\x01\n\x0f\x41nalysisOptions\x12T\n\x06python\x18\x01 \x01(\x0b\x32?.google.cloud.geminidataanalytics.v1beta.AnalysisOptions.PythonB\x03\xe0\x41\x01\x1a\x1e\n\x06Python\x12\x14\n\x07\x65nabled\x18\x01 \x01(\x08\x42\x03\xe0\x41\x01\x42\x9d\x02\n+com.google.cloud.geminidataanalytics.v1betaB\x0c\x43ontextProtoP\x01Z]cloud.google.com/go/geminidataanalytics/apiv1beta/geminidataanalyticspb;geminidataanalyticspb\xaa\x02\'Google.Cloud.GeminiDataAnalytics.V1Beta\xca\x02\'Google\\Cloud\\GeminiDataAnalytics\\V1beta\xea\x02*Google::Cloud::GeminiDataAnalytics::V1betab\x06proto3"
12
+ descriptor_data = "\n5google/cloud/geminidataanalytics/v1beta/context.proto\x12\'google.cloud.geminidataanalytics.v1beta\x1a\x1fgoogle/api/field_behavior.proto\x1a\x38google/cloud/geminidataanalytics/v1beta/datasource.proto\x1a\x1egoogle/protobuf/wrappers.proto\"\xd9\x08\n\x07\x43ontext\x12\x1f\n\x12system_instruction\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x61\n\x15\x64\x61tasource_references\x18\x07 \x01(\x0b\x32=.google.cloud.geminidataanalytics.v1beta.DatasourceReferencesB\x03\xe0\x41\x02\x12R\n\x07options\x18\x03 \x01(\x0b\x32<.google.cloud.geminidataanalytics.v1beta.ConversationOptionsB\x03\xe0\x41\x01\x12S\n\x0f\x65xample_queries\x18\x05 \x03(\x0b\x32\x35.google.cloud.geminidataanalytics.v1beta.ExampleQueryB\x03\xe0\x41\x01\x12^\n\x15looker_golden_queries\x18\x0b \x03(\x0b\x32:.google.cloud.geminidataanalytics.v1beta.LookerGoldenQueryB\x03\xe0\x41\x01\x12R\n\x0eglossary_terms\x18\x08 \x03(\x0b\x32\x35.google.cloud.geminidataanalytics.v1beta.GlossaryTermB\x03\xe0\x41\x01\x12\x66\n\x14schema_relationships\x18\t \x03(\x0b\x32\x43.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationshipB\x03\xe0\x41\x01\x1a\x84\x04\n\x12SchemaRelationship\x12j\n\x11left_schema_paths\x18\x01 \x01(\x0b\x32O.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.SchemaPaths\x12k\n\x12right_schema_paths\x18\x02 \x01(\x0b\x32O.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.SchemaPaths\x12[\n\x07sources\x18\x03 \x03(\x0e\x32J.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.Source\x12\x18\n\x10\x63onfidence_score\x18\x04 \x01(\x02\x1a/\n\x0bSchemaPaths\x12\x11\n\ttable_fqn\x18\x01 \x01(\t\x12\r\n\x05paths\x18\x02 \x03(\t\"m\n\x06Source\x12\x16\n\x12SOURCE_UNSPECIFIED\x10\x00\x12\x18\n\x14\x42IGQUERY_JOB_HISTORY\x10\x01\x12\x11\n\rLLM_SUGGESTED\x10\x02\x12\x1e\n\x1a\x42IGQUERY_TABLE_CONSTRAINTS\x10\x03\"Y\n\x0c\x45xampleQuery\x12\x18\n\tsql_query\x18\x65 \x01(\tB\x03\xe0\x41\x01H\x00\x12&\n\x19natural_language_question\x18\x01 \x01(\tB\x03\xe0\x41\x01\x42\x07\n\x05query\"\x8d\x01\n\x11LookerGoldenQuery\x12\'\n\x1anatural_language_questions\x18\x04 \x03(\tB\x03\xe0\x41\x01\x12O\n\x0clooker_query\x18\x05 \x01(\x0b\x32\x34.google.cloud.geminidataanalytics.v1beta.LookerQueryB\x03\xe0\x41\x01\"\x88\x02\n\x0bLookerQuery\x12\x12\n\x05model\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x14\n\x07\x65xplore\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x06\x66ields\x18\x03 \x03(\tB\x03\xe0\x41\x01\x12Q\n\x07\x66ilters\x18\x04 \x03(\x0b\x32;.google.cloud.geminidataanalytics.v1beta.LookerQuery.FilterB\x03\xe0\x41\x01\x12\x12\n\x05sorts\x18\x05 \x03(\tB\x03\xe0\x41\x01\x12\x17\n\x05limit\x18\x06 \x01(\tB\x03\xe0\x41\x01H\x00\x88\x01\x01\x1a\x30\n\x06\x46ilter\x12\x12\n\x05\x66ield\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x12\n\x05value\x18\x02 \x01(\tB\x03\xe0\x41\x02\x42\x08\n\x06_limit\"X\n\x0cGlossaryTerm\x12\x19\n\x0c\x64isplay_name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x18\n\x0b\x64\x65scription\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x06labels\x18\x03 \x03(\tB\x03\xe0\x41\x01\"\x86\x02\n\x13\x43onversationOptions\x12I\n\x05\x63hart\x18\x01 \x01(\x0b\x32\x35.google.cloud.geminidataanalytics.v1beta.ChartOptionsB\x03\xe0\x41\x01\x12O\n\x08\x61nalysis\x18\x02 \x01(\x0b\x32\x38.google.cloud.geminidataanalytics.v1beta.AnalysisOptionsB\x03\xe0\x41\x01\x12S\n\ndatasource\x18\x03 \x01(\x0b\x32:.google.cloud.geminidataanalytics.v1beta.DatasourceOptionsB\x03\xe0\x41\x01\"Y\n\x11\x44\x61tasourceOptions\x12\x44\n\x1a\x62ig_query_max_billed_bytes\x18\x01 \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\x03\xe0\x41\x01\"\xd6\x02\n\x0c\x43hartOptions\x12V\n\x05image\x18\x01 \x01(\x0b\x32\x42.google.cloud.geminidataanalytics.v1beta.ChartOptions.ImageOptionsB\x03\xe0\x41\x01\x1a\xed\x01\n\x0cImageOptions\x12^\n\x08no_image\x18\x01 \x01(\x0b\x32J.google.cloud.geminidataanalytics.v1beta.ChartOptions.ImageOptions.NoImageH\x00\x12\\\n\x03svg\x18\x02 \x01(\x0b\x32M.google.cloud.geminidataanalytics.v1beta.ChartOptions.ImageOptions.SvgOptionsH\x00\x1a\t\n\x07NoImage\x1a\x0c\n\nSvgOptionsB\x06\n\x04kind\"\x87\x01\n\x0f\x41nalysisOptions\x12T\n\x06python\x18\x01 \x01(\x0b\x32?.google.cloud.geminidataanalytics.v1beta.AnalysisOptions.PythonB\x03\xe0\x41\x01\x1a\x1e\n\x06Python\x12\x14\n\x07\x65nabled\x18\x01 \x01(\x08\x42\x03\xe0\x41\x01\x42\x9d\x02\n+com.google.cloud.geminidataanalytics.v1betaB\x0c\x43ontextProtoP\x01Z]cloud.google.com/go/geminidataanalytics/apiv1beta/geminidataanalyticspb;geminidataanalyticspb\xaa\x02\'Google.Cloud.GeminiDataAnalytics.V1Beta\xca\x02\'Google\\Cloud\\GeminiDataAnalytics\\V1beta\xea\x02*Google::Cloud::GeminiDataAnalytics::V1betab\x06proto3"
13
13
 
14
14
  pool = Google::Protobuf::DescriptorPool.generated_pool
15
15
 
@@ -46,6 +46,9 @@ module Google
46
46
  Context::SchemaRelationship::SchemaPaths = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.SchemaPaths").msgclass
47
47
  Context::SchemaRelationship::Source = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.Source").enummodule
48
48
  ExampleQuery = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.geminidataanalytics.v1beta.ExampleQuery").msgclass
49
+ LookerGoldenQuery = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.geminidataanalytics.v1beta.LookerGoldenQuery").msgclass
50
+ LookerQuery = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.geminidataanalytics.v1beta.LookerQuery").msgclass
51
+ LookerQuery::Filter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.geminidataanalytics.v1beta.LookerQuery.Filter").msgclass
49
52
  GlossaryTerm = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.geminidataanalytics.v1beta.GlossaryTerm").msgclass
50
53
  ConversationOptions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.geminidataanalytics.v1beta.ConversationOptions").msgclass
51
54
  DatasourceOptions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.geminidataanalytics.v1beta.DatasourceOptions").msgclass