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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a8ed5529cd7f778c606e6939e0c4c1bf2acd654d403136ac66bf9d44639cb58a
4
- data.tar.gz: c5edb60e80d42bef069610c5d4263f987b725bba0bbc1af451f69847e711f52f
3
+ metadata.gz: 147f34bb8a48c0af4a65ceb1ef84d14955200207b33ff74bc23a6c25132b2e4d
4
+ data.tar.gz: 9d6ddc54c3158ef48e66fd5971b70023a0b25934ca58e12e64e054b8b6ec132f
5
5
  SHA512:
6
- metadata.gz: '09b2cfa220c77557b0b6bd80689a74a5ce84a065a5c92309195506ba3b685f116c8198229b2846db17d283fdcd467d1d7536a3d2f2b8556b02fddc2d6917d317'
7
- data.tar.gz: 6c3fe238e1a026e9bf6f836d8e4d120f06c25d943bef78cef9e0874bca8dc788ecef9f5a4a0acff7c40df1f464e504ae58fcbb5ce7e89dd702c2b5498269d9ba
6
+ metadata.gz: c52692fcb24d5816c59f15b748ec46ddec426cb646c079a1ac9a12a716567cb1376ee2903daf317cdd39544913846bbfd294f5fc120fdcbd5e7c02b32ee490b1
7
+ data.tar.gz: bca442d2990e3849ff9031408532c1b5b1d7d414ac03507079e3d488a41bde91714d015f840e0d9977657390324e9adba9f9684e649803ab9bc852e3b0abd06c
@@ -638,6 +638,111 @@ module Google
638
638
  raise ::Google::Cloud::Error.from_error(e)
639
639
  end
640
640
 
641
+ ##
642
+ # Creates a new DataAgent in a given project and location synchronously.
643
+ #
644
+ # @overload create_data_agent_sync(request, options = nil)
645
+ # Pass arguments to `create_data_agent_sync` via a request object, either of type
646
+ # {::Google::Cloud::GeminiDataAnalytics::V1beta::CreateDataAgentRequest} or an equivalent Hash.
647
+ #
648
+ # @param request [::Google::Cloud::GeminiDataAnalytics::V1beta::CreateDataAgentRequest, ::Hash]
649
+ # A request object representing the call parameters. Required. To specify no
650
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
651
+ # @param options [::Gapic::CallOptions, ::Hash]
652
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
653
+ #
654
+ # @overload create_data_agent_sync(parent: nil, data_agent_id: nil, data_agent: nil, request_id: nil)
655
+ # Pass arguments to `create_data_agent_sync` via keyword arguments. Note that at
656
+ # least one keyword argument is required. To specify no parameters, or to keep all
657
+ # the default parameter values, pass an empty Hash as a request object (see above).
658
+ #
659
+ # @param parent [::String]
660
+ # Required. Value for parent.
661
+ # @param data_agent_id [::String]
662
+ # Optional. Id of the requesting object. Must be unique within the parent.
663
+ # The allowed format is: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`.
664
+ # If not provided, the server will auto-generate a value for the id.
665
+ # @param data_agent [::Google::Cloud::GeminiDataAnalytics::V1beta::DataAgent, ::Hash]
666
+ # Required. The resource being created.
667
+ # @param request_id [::String]
668
+ # Optional. An optional request ID to identify requests. Specify a unique
669
+ # request ID so that if you must retry your request, the server will know to
670
+ # ignore the request if it has already been completed. The server will
671
+ # guarantee that for at least 60 minutes since the first request.
672
+ #
673
+ # For example, consider a situation where you make an initial request and the
674
+ # request times out. If you make the request again with the same request
675
+ # ID, the server can check if original operation with the same request ID
676
+ # was received, and if so, will ignore the second request. This prevents
677
+ # clients from accidentally creating duplicate commitments.
678
+ #
679
+ # The request ID must be a valid UUID with the exception that zero UUID is
680
+ # not supported (00000000-0000-0000-0000-000000000000).
681
+ #
682
+ # @yield [response, operation] Access the result along with the RPC operation
683
+ # @yieldparam response [::Google::Cloud::GeminiDataAnalytics::V1beta::DataAgent]
684
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
685
+ #
686
+ # @return [::Google::Cloud::GeminiDataAnalytics::V1beta::DataAgent]
687
+ #
688
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
689
+ #
690
+ # @example Basic example
691
+ # require "google/cloud/gemini_data_analytics/v1beta"
692
+ #
693
+ # # Create a client object. The client can be reused for multiple calls.
694
+ # client = Google::Cloud::GeminiDataAnalytics::V1beta::DataAgentService::Client.new
695
+ #
696
+ # # Create a request. To set request fields, pass in keyword arguments.
697
+ # request = Google::Cloud::GeminiDataAnalytics::V1beta::CreateDataAgentRequest.new
698
+ #
699
+ # # Call the create_data_agent_sync method.
700
+ # result = client.create_data_agent_sync request
701
+ #
702
+ # # The returned object is of type Google::Cloud::GeminiDataAnalytics::V1beta::DataAgent.
703
+ # p result
704
+ #
705
+ def create_data_agent_sync request, options = nil
706
+ raise ::ArgumentError, "request must be provided" if request.nil?
707
+
708
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::GeminiDataAnalytics::V1beta::CreateDataAgentRequest
709
+
710
+ # Converts hash and nil to an options object
711
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
712
+
713
+ # Customize the options with defaults
714
+ metadata = @config.rpcs.create_data_agent_sync.metadata.to_h
715
+
716
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
717
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
718
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
719
+ gapic_version: ::Google::Cloud::GeminiDataAnalytics::V1beta::VERSION
720
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
721
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
722
+
723
+ header_params = {}
724
+ if request.parent
725
+ header_params["parent"] = request.parent
726
+ end
727
+
728
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
729
+ metadata[:"x-goog-request-params"] ||= request_params_header
730
+
731
+ options.apply_defaults timeout: @config.rpcs.create_data_agent_sync.timeout,
732
+ metadata: metadata,
733
+ retry_policy: @config.rpcs.create_data_agent_sync.retry_policy
734
+
735
+ options.apply_defaults timeout: @config.timeout,
736
+ metadata: @config.metadata,
737
+ retry_policy: @config.retry_policy
738
+
739
+ @data_agent_service_stub.call_rpc :create_data_agent_sync, request, options: options do |response, operation|
740
+ yield response, operation if block_given?
741
+ end
742
+ rescue ::GRPC::BadStatus => e
743
+ raise ::Google::Cloud::Error.from_error(e)
744
+ end
745
+
641
746
  ##
642
747
  # Updates the parameters of a single DataAgent.
643
748
  #
@@ -754,6 +859,113 @@ module Google
754
859
  raise ::Google::Cloud::Error.from_error(e)
755
860
  end
756
861
 
862
+ ##
863
+ # Updates the parameters of a single DataAgent synchronously.
864
+ #
865
+ # @overload update_data_agent_sync(request, options = nil)
866
+ # Pass arguments to `update_data_agent_sync` via a request object, either of type
867
+ # {::Google::Cloud::GeminiDataAnalytics::V1beta::UpdateDataAgentRequest} or an equivalent Hash.
868
+ #
869
+ # @param request [::Google::Cloud::GeminiDataAnalytics::V1beta::UpdateDataAgentRequest, ::Hash]
870
+ # A request object representing the call parameters. Required. To specify no
871
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
872
+ # @param options [::Gapic::CallOptions, ::Hash]
873
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
874
+ #
875
+ # @overload update_data_agent_sync(update_mask: nil, data_agent: nil, request_id: nil)
876
+ # Pass arguments to `update_data_agent_sync` via keyword arguments. Note that at
877
+ # least one keyword argument is required. To specify no parameters, or to keep all
878
+ # the default parameter values, pass an empty Hash as a request object (see above).
879
+ #
880
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
881
+ # Optional. Field mask is used to specify the fields to be overwritten in the
882
+ # DataAgent resource by the update.
883
+ # The fields specified in the update_mask are relative to the resource, not
884
+ # the full request. A field will be overwritten if it is in the mask. If the
885
+ # user does not provide a mask then all fields with non-default values
886
+ # present in the request will be overwritten. If a wildcard mask is provided,
887
+ # all fields will be overwritten.
888
+ # @param data_agent [::Google::Cloud::GeminiDataAnalytics::V1beta::DataAgent, ::Hash]
889
+ # Required. The resource being updated.
890
+ # @param request_id [::String]
891
+ # Optional. An optional request ID to identify requests. Specify a unique
892
+ # request ID so that if you must retry your request, the server will know to
893
+ # ignore the request if it has already been completed. The server will
894
+ # guarantee that for at least 60 minutes since the first request.
895
+ #
896
+ # For example, consider a situation where you make an initial request and the
897
+ # request times out. If you make the request again with the same request
898
+ # ID, the server can check if original operation with the same request ID
899
+ # was received, and if so, will ignore the second request. This prevents
900
+ # clients from accidentally creating duplicate commitments.
901
+ #
902
+ # The request ID must be a valid UUID with the exception that zero UUID is
903
+ # not supported (00000000-0000-0000-0000-000000000000).
904
+ #
905
+ # @yield [response, operation] Access the result along with the RPC operation
906
+ # @yieldparam response [::Google::Cloud::GeminiDataAnalytics::V1beta::DataAgent]
907
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
908
+ #
909
+ # @return [::Google::Cloud::GeminiDataAnalytics::V1beta::DataAgent]
910
+ #
911
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
912
+ #
913
+ # @example Basic example
914
+ # require "google/cloud/gemini_data_analytics/v1beta"
915
+ #
916
+ # # Create a client object. The client can be reused for multiple calls.
917
+ # client = Google::Cloud::GeminiDataAnalytics::V1beta::DataAgentService::Client.new
918
+ #
919
+ # # Create a request. To set request fields, pass in keyword arguments.
920
+ # request = Google::Cloud::GeminiDataAnalytics::V1beta::UpdateDataAgentRequest.new
921
+ #
922
+ # # Call the update_data_agent_sync method.
923
+ # result = client.update_data_agent_sync request
924
+ #
925
+ # # The returned object is of type Google::Cloud::GeminiDataAnalytics::V1beta::DataAgent.
926
+ # p result
927
+ #
928
+ def update_data_agent_sync request, options = nil
929
+ raise ::ArgumentError, "request must be provided" if request.nil?
930
+
931
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::GeminiDataAnalytics::V1beta::UpdateDataAgentRequest
932
+
933
+ # Converts hash and nil to an options object
934
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
935
+
936
+ # Customize the options with defaults
937
+ metadata = @config.rpcs.update_data_agent_sync.metadata.to_h
938
+
939
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
940
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
941
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
942
+ gapic_version: ::Google::Cloud::GeminiDataAnalytics::V1beta::VERSION
943
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
944
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
945
+
946
+ header_params = {}
947
+ if request.data_agent&.name
948
+ header_params["data_agent.name"] = request.data_agent.name
949
+ end
950
+
951
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
952
+ metadata[:"x-goog-request-params"] ||= request_params_header
953
+
954
+ options.apply_defaults timeout: @config.rpcs.update_data_agent_sync.timeout,
955
+ metadata: metadata,
956
+ retry_policy: @config.rpcs.update_data_agent_sync.retry_policy
957
+
958
+ options.apply_defaults timeout: @config.timeout,
959
+ metadata: @config.metadata,
960
+ retry_policy: @config.retry_policy
961
+
962
+ @data_agent_service_stub.call_rpc :update_data_agent_sync, request, options: options do |response, operation|
963
+ yield response, operation if block_given?
964
+ end
965
+ rescue ::GRPC::BadStatus => e
966
+ raise ::Google::Cloud::Error.from_error(e)
967
+ end
968
+
757
969
  ##
758
970
  # Deletes a single DataAgent.
759
971
  #
@@ -862,6 +1074,105 @@ module Google
862
1074
  raise ::Google::Cloud::Error.from_error(e)
863
1075
  end
864
1076
 
1077
+ ##
1078
+ # Deletes a single DataAgent synchronously.
1079
+ #
1080
+ # @overload delete_data_agent_sync(request, options = nil)
1081
+ # Pass arguments to `delete_data_agent_sync` via a request object, either of type
1082
+ # {::Google::Cloud::GeminiDataAnalytics::V1beta::DeleteDataAgentRequest} or an equivalent Hash.
1083
+ #
1084
+ # @param request [::Google::Cloud::GeminiDataAnalytics::V1beta::DeleteDataAgentRequest, ::Hash]
1085
+ # A request object representing the call parameters. Required. To specify no
1086
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1087
+ # @param options [::Gapic::CallOptions, ::Hash]
1088
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1089
+ #
1090
+ # @overload delete_data_agent_sync(name: nil, request_id: nil)
1091
+ # Pass arguments to `delete_data_agent_sync` via keyword arguments. Note that at
1092
+ # least one keyword argument is required. To specify no parameters, or to keep all
1093
+ # the default parameter values, pass an empty Hash as a request object (see above).
1094
+ #
1095
+ # @param name [::String]
1096
+ # Required. Name of the resource.
1097
+ # @param request_id [::String]
1098
+ # Optional. An optional request ID to identify requests. Specify a unique
1099
+ # request ID so that if you must retry your request, the server will know to
1100
+ # ignore the request if it has already been completed. The server will
1101
+ # guarantee that for at least 60 minutes after the first request.
1102
+ #
1103
+ # For example, consider a situation where you make an initial request and the
1104
+ # request times out. If you make the request again with the same request
1105
+ # ID, the server can check if original operation with the same request ID
1106
+ # was received, and if so, will ignore the second request. This prevents
1107
+ # clients from accidentally creating duplicate commitments.
1108
+ #
1109
+ # The request ID must be a valid UUID with the exception that zero UUID is
1110
+ # not supported (00000000-0000-0000-0000-000000000000).
1111
+ #
1112
+ # @yield [response, operation] Access the result along with the RPC operation
1113
+ # @yieldparam response [::Google::Protobuf::Empty]
1114
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1115
+ #
1116
+ # @return [::Google::Protobuf::Empty]
1117
+ #
1118
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1119
+ #
1120
+ # @example Basic example
1121
+ # require "google/cloud/gemini_data_analytics/v1beta"
1122
+ #
1123
+ # # Create a client object. The client can be reused for multiple calls.
1124
+ # client = Google::Cloud::GeminiDataAnalytics::V1beta::DataAgentService::Client.new
1125
+ #
1126
+ # # Create a request. To set request fields, pass in keyword arguments.
1127
+ # request = Google::Cloud::GeminiDataAnalytics::V1beta::DeleteDataAgentRequest.new
1128
+ #
1129
+ # # Call the delete_data_agent_sync method.
1130
+ # result = client.delete_data_agent_sync request
1131
+ #
1132
+ # # The returned object is of type Google::Protobuf::Empty.
1133
+ # p result
1134
+ #
1135
+ def delete_data_agent_sync request, options = nil
1136
+ raise ::ArgumentError, "request must be provided" if request.nil?
1137
+
1138
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::GeminiDataAnalytics::V1beta::DeleteDataAgentRequest
1139
+
1140
+ # Converts hash and nil to an options object
1141
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1142
+
1143
+ # Customize the options with defaults
1144
+ metadata = @config.rpcs.delete_data_agent_sync.metadata.to_h
1145
+
1146
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1147
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1148
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1149
+ gapic_version: ::Google::Cloud::GeminiDataAnalytics::V1beta::VERSION
1150
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1151
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1152
+
1153
+ header_params = {}
1154
+ if request.name
1155
+ header_params["name"] = request.name
1156
+ end
1157
+
1158
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1159
+ metadata[:"x-goog-request-params"] ||= request_params_header
1160
+
1161
+ options.apply_defaults timeout: @config.rpcs.delete_data_agent_sync.timeout,
1162
+ metadata: metadata,
1163
+ retry_policy: @config.rpcs.delete_data_agent_sync.retry_policy
1164
+
1165
+ options.apply_defaults timeout: @config.timeout,
1166
+ metadata: @config.metadata,
1167
+ retry_policy: @config.retry_policy
1168
+
1169
+ @data_agent_service_stub.call_rpc :delete_data_agent_sync, request, options: options do |response, operation|
1170
+ yield response, operation if block_given?
1171
+ end
1172
+ rescue ::GRPC::BadStatus => e
1173
+ raise ::Google::Cloud::Error.from_error(e)
1174
+ end
1175
+
865
1176
  ##
866
1177
  # Gets the IAM policy for DataAgent
867
1178
  #
@@ -1252,16 +1563,31 @@ module Google
1252
1563
  #
1253
1564
  attr_reader :create_data_agent
1254
1565
  ##
1566
+ # RPC-specific configuration for `create_data_agent_sync`
1567
+ # @return [::Gapic::Config::Method]
1568
+ #
1569
+ attr_reader :create_data_agent_sync
1570
+ ##
1255
1571
  # RPC-specific configuration for `update_data_agent`
1256
1572
  # @return [::Gapic::Config::Method]
1257
1573
  #
1258
1574
  attr_reader :update_data_agent
1259
1575
  ##
1576
+ # RPC-specific configuration for `update_data_agent_sync`
1577
+ # @return [::Gapic::Config::Method]
1578
+ #
1579
+ attr_reader :update_data_agent_sync
1580
+ ##
1260
1581
  # RPC-specific configuration for `delete_data_agent`
1261
1582
  # @return [::Gapic::Config::Method]
1262
1583
  #
1263
1584
  attr_reader :delete_data_agent
1264
1585
  ##
1586
+ # RPC-specific configuration for `delete_data_agent_sync`
1587
+ # @return [::Gapic::Config::Method]
1588
+ #
1589
+ attr_reader :delete_data_agent_sync
1590
+ ##
1265
1591
  # RPC-specific configuration for `get_iam_policy`
1266
1592
  # @return [::Gapic::Config::Method]
1267
1593
  #
@@ -1282,10 +1608,16 @@ module Google
1282
1608
  @get_data_agent = ::Gapic::Config::Method.new get_data_agent_config
1283
1609
  create_data_agent_config = parent_rpcs.create_data_agent if parent_rpcs.respond_to? :create_data_agent
1284
1610
  @create_data_agent = ::Gapic::Config::Method.new create_data_agent_config
1611
+ create_data_agent_sync_config = parent_rpcs.create_data_agent_sync if parent_rpcs.respond_to? :create_data_agent_sync
1612
+ @create_data_agent_sync = ::Gapic::Config::Method.new create_data_agent_sync_config
1285
1613
  update_data_agent_config = parent_rpcs.update_data_agent if parent_rpcs.respond_to? :update_data_agent
1286
1614
  @update_data_agent = ::Gapic::Config::Method.new update_data_agent_config
1615
+ update_data_agent_sync_config = parent_rpcs.update_data_agent_sync if parent_rpcs.respond_to? :update_data_agent_sync
1616
+ @update_data_agent_sync = ::Gapic::Config::Method.new update_data_agent_sync_config
1287
1617
  delete_data_agent_config = parent_rpcs.delete_data_agent if parent_rpcs.respond_to? :delete_data_agent
1288
1618
  @delete_data_agent = ::Gapic::Config::Method.new delete_data_agent_config
1619
+ delete_data_agent_sync_config = parent_rpcs.delete_data_agent_sync if parent_rpcs.respond_to? :delete_data_agent_sync
1620
+ @delete_data_agent_sync = ::Gapic::Config::Method.new delete_data_agent_sync_config
1289
1621
  get_iam_policy_config = parent_rpcs.get_iam_policy if parent_rpcs.respond_to? :get_iam_policy
1290
1622
  @get_iam_policy = ::Gapic::Config::Method.new get_iam_policy_config
1291
1623
  set_iam_policy_config = parent_rpcs.set_iam_policy if parent_rpcs.respond_to? :set_iam_policy