google-apis-analyticshub_v1 0.35.0 → 0.36.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: b8f261bcf539b691cd9a8f7660b2d276b1504234d4f756fdeddbaf74ae49b359
4
- data.tar.gz: 666cb72474b50494a2c856a1cb4345d15281c2e1be7c00fdae257a5fa424dfc9
3
+ metadata.gz: 6497e8a940471c84479a86f740f954a31ee0b2c1f64edf9144ac431fea332e6d
4
+ data.tar.gz: 149fb4b2389dde8ed951712843646dcd49d8da36921e5914fbe2dca01347b1e7
5
5
  SHA512:
6
- metadata.gz: 8366d2f5c4227515f7b0178df3fbb625aa81760176fe38ec80d97cbb9e9520a0e48cec3e4a668cb00312f2a1a945cdb21cbc3f42a5bf09704821b1ec3065c997
7
- data.tar.gz: 1945307100484ac351f1a493ed44cdf58edd38dfdc85c9671d7fab1a9243e2c5a9f79e7d314af9b898a386aa10b1c66c2e35987acb5673b179d2509ca7c90887
6
+ metadata.gz: 86674c0081d9faf994706fbe4d2ba8acf889ae8fe46ece4d6f7d3ec9b5ad070f430d652e76ea28cbd0f82718e569037c50f4e1de92e2e282436ef6cb1be54b6a
7
+ data.tar.gz: 3d3f97ef368604efc3b9adcb09d1d1dba9b4c044a80fc612a55aad15a2771afc78eed1761aacc4d16d345f18a5fac0c6293d78268cdd0541ee384819d73d651a
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-analyticshub_v1
2
2
 
3
+ ### v0.36.0 (2025-08-17)
4
+
5
+ * Regenerated from discovery document revision 20250807
6
+
3
7
  ### v0.35.0 (2025-06-29)
4
8
 
5
9
  * Regenerated from discovery document revision 20250623
@@ -22,6 +22,19 @@ module Google
22
22
  module Apis
23
23
  module AnalyticshubV1
24
24
 
25
+ # Message for approving a QueryTemplate.
26
+ class ApproveQueryTemplateRequest
27
+ include Google::Apis::Core::Hashable
28
+
29
+ def initialize(**args)
30
+ update!(**args)
31
+ end
32
+
33
+ # Update properties of this object
34
+ def update!(**args)
35
+ end
36
+ end
37
+
25
38
  # Specifies the audit configuration for a service. The configuration determines
26
39
  # which permission types are logged, and what identities, if any, are exempted
27
40
  # from logging. An AuditConfig must have one or more AuditLogConfigs. If there
@@ -1274,6 +1287,31 @@ module Google
1274
1287
  end
1275
1288
  end
1276
1289
 
1290
+ # Message for response to the list of QueryTemplates.
1291
+ class ListQueryTemplatesResponse
1292
+ include Google::Apis::Core::Hashable
1293
+
1294
+ # A token to request the next page of results.
1295
+ # Corresponds to the JSON property `nextPageToken`
1296
+ # @return [String]
1297
+ attr_accessor :next_page_token
1298
+
1299
+ # The list of QueryTemplates.
1300
+ # Corresponds to the JSON property `queryTemplates`
1301
+ # @return [Array<Google::Apis::AnalyticshubV1::QueryTemplate>]
1302
+ attr_accessor :query_templates
1303
+
1304
+ def initialize(**args)
1305
+ update!(**args)
1306
+ end
1307
+
1308
+ # Update properties of this object
1309
+ def update!(**args)
1310
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1311
+ @query_templates = args[:query_templates] if args.key?(:query_templates)
1312
+ end
1313
+ end
1314
+
1277
1315
  # Message for response to the listing of shared resource subscriptions.
1278
1316
  class ListSharedResourceSubscriptionsResponse
1279
1317
  include Google::Apis::Core::Hashable
@@ -1913,6 +1951,89 @@ module Google
1913
1951
  end
1914
1952
  end
1915
1953
 
1954
+ # A query template is a container for sharing table-valued functions defined by
1955
+ # contributors in a data clean room.
1956
+ class QueryTemplate
1957
+ include Google::Apis::Core::Hashable
1958
+
1959
+ # Output only. Timestamp when the QueryTemplate was created.
1960
+ # Corresponds to the JSON property `createTime`
1961
+ # @return [String]
1962
+ attr_accessor :create_time
1963
+
1964
+ # Optional. Short description of the QueryTemplate. The description must not
1965
+ # contain Unicode non-characters and C0 and C1 control codes except tabs (HT),
1966
+ # new lines (LF), carriage returns (CR), and page breaks (FF). Default value is
1967
+ # an empty string. Max length: 2000 bytes.
1968
+ # Corresponds to the JSON property `description`
1969
+ # @return [String]
1970
+ attr_accessor :description
1971
+
1972
+ # Required. Human-readable display name of the QueryTemplate. The display name
1973
+ # must contain only Unicode letters, numbers (0-9), underscores (_), dashes (-),
1974
+ # spaces ( ), ampersands (&) and can't start or end with spaces. Default value
1975
+ # is an empty string. Max length: 63 bytes.
1976
+ # Corresponds to the JSON property `displayName`
1977
+ # @return [String]
1978
+ attr_accessor :display_name
1979
+
1980
+ # Optional. Documentation describing the QueryTemplate.
1981
+ # Corresponds to the JSON property `documentation`
1982
+ # @return [String]
1983
+ attr_accessor :documentation
1984
+
1985
+ # Output only. The resource name of the QueryTemplate. e.g. `projects/myproject/
1986
+ # locations/us/dataExchanges/123/queryTemplates/456`
1987
+ # Corresponds to the JSON property `name`
1988
+ # @return [String]
1989
+ attr_accessor :name
1990
+
1991
+ # Optional. Email or URL of the primary point of contact of the QueryTemplate.
1992
+ # Max Length: 1000 bytes.
1993
+ # Corresponds to the JSON property `primaryContact`
1994
+ # @return [String]
1995
+ attr_accessor :primary_contact
1996
+
1997
+ # Optional. Will be deprecated. Email or URL of the primary point of contact of
1998
+ # the QueryTemplate. Max Length: 1000 bytes.
1999
+ # Corresponds to the JSON property `proposer`
2000
+ # @return [String]
2001
+ attr_accessor :proposer
2002
+
2003
+ # Represents a bigquery routine.
2004
+ # Corresponds to the JSON property `routine`
2005
+ # @return [Google::Apis::AnalyticshubV1::Routine]
2006
+ attr_accessor :routine
2007
+
2008
+ # Output only. The QueryTemplate lifecycle state.
2009
+ # Corresponds to the JSON property `state`
2010
+ # @return [String]
2011
+ attr_accessor :state
2012
+
2013
+ # Output only. Timestamp when the QueryTemplate was last modified.
2014
+ # Corresponds to the JSON property `updateTime`
2015
+ # @return [String]
2016
+ attr_accessor :update_time
2017
+
2018
+ def initialize(**args)
2019
+ update!(**args)
2020
+ end
2021
+
2022
+ # Update properties of this object
2023
+ def update!(**args)
2024
+ @create_time = args[:create_time] if args.key?(:create_time)
2025
+ @description = args[:description] if args.key?(:description)
2026
+ @display_name = args[:display_name] if args.key?(:display_name)
2027
+ @documentation = args[:documentation] if args.key?(:documentation)
2028
+ @name = args[:name] if args.key?(:name)
2029
+ @primary_contact = args[:primary_contact] if args.key?(:primary_contact)
2030
+ @proposer = args[:proposer] if args.key?(:proposer)
2031
+ @routine = args[:routine] if args.key?(:routine)
2032
+ @state = args[:state] if args.key?(:state)
2033
+ @update_time = args[:update_time] if args.key?(:update_time)
2034
+ end
2035
+ end
2036
+
1916
2037
  # Message for refreshing a subscription.
1917
2038
  class RefreshSubscriptionRequest
1918
2039
  include Google::Apis::Core::Hashable
@@ -2088,6 +2209,31 @@ module Google
2088
2209
  end
2089
2210
  end
2090
2211
 
2212
+ # Represents a bigquery routine.
2213
+ class Routine
2214
+ include Google::Apis::Core::Hashable
2215
+
2216
+ # Optional. The definition body of the routine.
2217
+ # Corresponds to the JSON property `definitionBody`
2218
+ # @return [String]
2219
+ attr_accessor :definition_body
2220
+
2221
+ # Required. The type of routine.
2222
+ # Corresponds to the JSON property `routineType`
2223
+ # @return [String]
2224
+ attr_accessor :routine_type
2225
+
2226
+ def initialize(**args)
2227
+ update!(**args)
2228
+ end
2229
+
2230
+ # Update properties of this object
2231
+ def update!(**args)
2232
+ @definition_body = args[:definition_body] if args.key?(:definition_body)
2233
+ @routine_type = args[:routine_type] if args.key?(:routine_type)
2234
+ end
2235
+ end
2236
+
2091
2237
  # Resource in this dataset that is selectively shared.
2092
2238
  class SelectedResource
2093
2239
  include Google::Apis::Core::Hashable
@@ -2235,6 +2381,19 @@ module Google
2235
2381
  end
2236
2382
  end
2237
2383
 
2384
+ # Message for submitting a QueryTemplate.
2385
+ class SubmitQueryTemplateRequest
2386
+ include Google::Apis::Core::Hashable
2387
+
2388
+ def initialize(**args)
2389
+ update!(**args)
2390
+ end
2391
+
2392
+ # Update properties of this object
2393
+ def update!(**args)
2394
+ end
2395
+ end
2396
+
2238
2397
  # Message for subscribing to a Data Exchange.
2239
2398
  class SubscribeDataExchangeRequest
2240
2399
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module AnalyticshubV1
18
18
  # Version of the google-apis-analyticshub_v1 gem
19
- GEM_VERSION = "0.35.0"
19
+ GEM_VERSION = "0.36.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.18.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20250623"
25
+ REVISION = "20250807"
26
26
  end
27
27
  end
28
28
  end
@@ -22,6 +22,12 @@ module Google
22
22
  module Apis
23
23
  module AnalyticshubV1
24
24
 
25
+ class ApproveQueryTemplateRequest
26
+ class Representation < Google::Apis::Core::JsonRepresentation; end
27
+
28
+ include Google::Apis::Core::JsonObjectSupport
29
+ end
30
+
25
31
  class AuditConfig
26
32
  class Representation < Google::Apis::Core::JsonRepresentation; end
27
33
 
@@ -202,6 +208,12 @@ module Google
202
208
  include Google::Apis::Core::JsonObjectSupport
203
209
  end
204
210
 
211
+ class ListQueryTemplatesResponse
212
+ class Representation < Google::Apis::Core::JsonRepresentation; end
213
+
214
+ include Google::Apis::Core::JsonObjectSupport
215
+ end
216
+
205
217
  class ListSharedResourceSubscriptionsResponse
206
218
  class Representation < Google::Apis::Core::JsonRepresentation; end
207
219
 
@@ -280,6 +292,12 @@ module Google
280
292
  include Google::Apis::Core::JsonObjectSupport
281
293
  end
282
294
 
295
+ class QueryTemplate
296
+ class Representation < Google::Apis::Core::JsonRepresentation; end
297
+
298
+ include Google::Apis::Core::JsonObjectSupport
299
+ end
300
+
283
301
  class RefreshSubscriptionRequest
284
302
  class Representation < Google::Apis::Core::JsonRepresentation; end
285
303
 
@@ -322,6 +340,12 @@ module Google
322
340
  include Google::Apis::Core::JsonObjectSupport
323
341
  end
324
342
 
343
+ class Routine
344
+ class Representation < Google::Apis::Core::JsonRepresentation; end
345
+
346
+ include Google::Apis::Core::JsonObjectSupport
347
+ end
348
+
325
349
  class SelectedResource
326
350
  class Representation < Google::Apis::Core::JsonRepresentation; end
327
351
 
@@ -346,6 +370,12 @@ module Google
346
370
  include Google::Apis::Core::JsonObjectSupport
347
371
  end
348
372
 
373
+ class SubmitQueryTemplateRequest
374
+ class Representation < Google::Apis::Core::JsonRepresentation; end
375
+
376
+ include Google::Apis::Core::JsonObjectSupport
377
+ end
378
+
349
379
  class SubscribeDataExchangeRequest
350
380
  class Representation < Google::Apis::Core::JsonRepresentation; end
351
381
 
@@ -394,6 +424,12 @@ module Google
394
424
  include Google::Apis::Core::JsonObjectSupport
395
425
  end
396
426
 
427
+ class ApproveQueryTemplateRequest
428
+ # @private
429
+ class Representation < Google::Apis::Core::JsonRepresentation
430
+ end
431
+ end
432
+
397
433
  class AuditConfig
398
434
  # @private
399
435
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -687,6 +723,15 @@ module Google
687
723
  end
688
724
  end
689
725
 
726
+ class ListQueryTemplatesResponse
727
+ # @private
728
+ class Representation < Google::Apis::Core::JsonRepresentation
729
+ property :next_page_token, as: 'nextPageToken'
730
+ collection :query_templates, as: 'queryTemplates', class: Google::Apis::AnalyticshubV1::QueryTemplate, decorator: Google::Apis::AnalyticshubV1::QueryTemplate::Representation
731
+
732
+ end
733
+ end
734
+
690
735
  class ListSharedResourceSubscriptionsResponse
691
736
  # @private
692
737
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -834,6 +879,23 @@ module Google
834
879
  end
835
880
  end
836
881
 
882
+ class QueryTemplate
883
+ # @private
884
+ class Representation < Google::Apis::Core::JsonRepresentation
885
+ property :create_time, as: 'createTime'
886
+ property :description, as: 'description'
887
+ property :display_name, as: 'displayName'
888
+ property :documentation, as: 'documentation'
889
+ property :name, as: 'name'
890
+ property :primary_contact, as: 'primaryContact'
891
+ property :proposer, as: 'proposer'
892
+ property :routine, as: 'routine', class: Google::Apis::AnalyticshubV1::Routine, decorator: Google::Apis::AnalyticshubV1::Routine::Representation
893
+
894
+ property :state, as: 'state'
895
+ property :update_time, as: 'updateTime'
896
+ end
897
+ end
898
+
837
899
  class RefreshSubscriptionRequest
838
900
  # @private
839
901
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -887,6 +949,14 @@ module Google
887
949
  end
888
950
  end
889
951
 
952
+ class Routine
953
+ # @private
954
+ class Representation < Google::Apis::Core::JsonRepresentation
955
+ property :definition_body, as: 'definitionBody'
956
+ property :routine_type, as: 'routineType'
957
+ end
958
+ end
959
+
890
960
  class SelectedResource
891
961
  # @private
892
962
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -923,6 +993,12 @@ module Google
923
993
  end
924
994
  end
925
995
 
996
+ class SubmitQueryTemplateRequest
997
+ # @private
998
+ class Representation < Google::Apis::Core::JsonRepresentation
999
+ end
1000
+ end
1001
+
926
1002
  class SubscribeDataExchangeRequest
927
1003
  # @private
928
1004
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -815,6 +815,252 @@ module Google
815
815
  execute_or_queue_command(command, &block)
816
816
  end
817
817
 
818
+ # Approves a query template.
819
+ # @param [String] name
820
+ # Required. The resource path of the QueryTemplate. e.g. `projects/myproject/
821
+ # locations/us/dataExchanges/123/queryTemplates/myqueryTemplate`.
822
+ # @param [Google::Apis::AnalyticshubV1::ApproveQueryTemplateRequest] approve_query_template_request_object
823
+ # @param [String] fields
824
+ # Selector specifying which fields to include in a partial response.
825
+ # @param [String] quota_user
826
+ # Available to use for quota purposes for server-side applications. Can be any
827
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
828
+ # @param [Google::Apis::RequestOptions] options
829
+ # Request-specific options
830
+ #
831
+ # @yield [result, err] Result & error if block supplied
832
+ # @yieldparam result [Google::Apis::AnalyticshubV1::QueryTemplate] parsed result object
833
+ # @yieldparam err [StandardError] error object if request failed
834
+ #
835
+ # @return [Google::Apis::AnalyticshubV1::QueryTemplate]
836
+ #
837
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
838
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
839
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
840
+ def approve_query_template(name, approve_query_template_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
841
+ command = make_simple_command(:post, 'v1/{+name}:approve', options)
842
+ command.request_representation = Google::Apis::AnalyticshubV1::ApproveQueryTemplateRequest::Representation
843
+ command.request_object = approve_query_template_request_object
844
+ command.response_representation = Google::Apis::AnalyticshubV1::QueryTemplate::Representation
845
+ command.response_class = Google::Apis::AnalyticshubV1::QueryTemplate
846
+ command.params['name'] = name unless name.nil?
847
+ command.query['fields'] = fields unless fields.nil?
848
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
849
+ execute_or_queue_command(command, &block)
850
+ end
851
+
852
+ # Creates a new QueryTemplate
853
+ # @param [String] parent
854
+ # Required. The parent resource path of the QueryTemplate. e.g. `projects/
855
+ # myproject/locations/us/dataExchanges/123/queryTemplates/myQueryTemplate`.
856
+ # @param [Google::Apis::AnalyticshubV1::QueryTemplate] query_template_object
857
+ # @param [String] query_template_id
858
+ # Required. The ID of the QueryTemplate to create. Must contain only Unicode
859
+ # letters, numbers (0-9), underscores (_). Max length: 100 bytes.
860
+ # @param [String] fields
861
+ # Selector specifying which fields to include in a partial response.
862
+ # @param [String] quota_user
863
+ # Available to use for quota purposes for server-side applications. Can be any
864
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
865
+ # @param [Google::Apis::RequestOptions] options
866
+ # Request-specific options
867
+ #
868
+ # @yield [result, err] Result & error if block supplied
869
+ # @yieldparam result [Google::Apis::AnalyticshubV1::QueryTemplate] parsed result object
870
+ # @yieldparam err [StandardError] error object if request failed
871
+ #
872
+ # @return [Google::Apis::AnalyticshubV1::QueryTemplate]
873
+ #
874
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
875
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
876
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
877
+ def create_project_location_data_exchange_query_template(parent, query_template_object = nil, query_template_id: nil, fields: nil, quota_user: nil, options: nil, &block)
878
+ command = make_simple_command(:post, 'v1/{+parent}/queryTemplates', options)
879
+ command.request_representation = Google::Apis::AnalyticshubV1::QueryTemplate::Representation
880
+ command.request_object = query_template_object
881
+ command.response_representation = Google::Apis::AnalyticshubV1::QueryTemplate::Representation
882
+ command.response_class = Google::Apis::AnalyticshubV1::QueryTemplate
883
+ command.params['parent'] = parent unless parent.nil?
884
+ command.query['queryTemplateId'] = query_template_id unless query_template_id.nil?
885
+ command.query['fields'] = fields unless fields.nil?
886
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
887
+ execute_or_queue_command(command, &block)
888
+ end
889
+
890
+ # Deletes a query template.
891
+ # @param [String] name
892
+ # Required. The resource path of the QueryTemplate. e.g. `projects/myproject/
893
+ # locations/us/dataExchanges/123/queryTemplates/myqueryTemplate`.
894
+ # @param [String] fields
895
+ # Selector specifying which fields to include in a partial response.
896
+ # @param [String] quota_user
897
+ # Available to use for quota purposes for server-side applications. Can be any
898
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
899
+ # @param [Google::Apis::RequestOptions] options
900
+ # Request-specific options
901
+ #
902
+ # @yield [result, err] Result & error if block supplied
903
+ # @yieldparam result [Google::Apis::AnalyticshubV1::Empty] parsed result object
904
+ # @yieldparam err [StandardError] error object if request failed
905
+ #
906
+ # @return [Google::Apis::AnalyticshubV1::Empty]
907
+ #
908
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
909
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
910
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
911
+ def delete_project_location_data_exchange_query_template(name, fields: nil, quota_user: nil, options: nil, &block)
912
+ command = make_simple_command(:delete, 'v1/{+name}', options)
913
+ command.response_representation = Google::Apis::AnalyticshubV1::Empty::Representation
914
+ command.response_class = Google::Apis::AnalyticshubV1::Empty
915
+ command.params['name'] = name unless name.nil?
916
+ command.query['fields'] = fields unless fields.nil?
917
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
918
+ execute_or_queue_command(command, &block)
919
+ end
920
+
921
+ # Gets a QueryTemplate
922
+ # @param [String] name
923
+ # Required. The parent resource path of the QueryTemplate. e.g. `projects/
924
+ # myproject/locations/us/dataExchanges/123/queryTemplates/myqueryTemplate`.
925
+ # @param [String] fields
926
+ # Selector specifying which fields to include in a partial response.
927
+ # @param [String] quota_user
928
+ # Available to use for quota purposes for server-side applications. Can be any
929
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
930
+ # @param [Google::Apis::RequestOptions] options
931
+ # Request-specific options
932
+ #
933
+ # @yield [result, err] Result & error if block supplied
934
+ # @yieldparam result [Google::Apis::AnalyticshubV1::QueryTemplate] parsed result object
935
+ # @yieldparam err [StandardError] error object if request failed
936
+ #
937
+ # @return [Google::Apis::AnalyticshubV1::QueryTemplate]
938
+ #
939
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
940
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
941
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
942
+ def get_project_location_data_exchange_query_template(name, fields: nil, quota_user: nil, options: nil, &block)
943
+ command = make_simple_command(:get, 'v1/{+name}', options)
944
+ command.response_representation = Google::Apis::AnalyticshubV1::QueryTemplate::Representation
945
+ command.response_class = Google::Apis::AnalyticshubV1::QueryTemplate
946
+ command.params['name'] = name unless name.nil?
947
+ command.query['fields'] = fields unless fields.nil?
948
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
949
+ execute_or_queue_command(command, &block)
950
+ end
951
+
952
+ # Lists all QueryTemplates in a given project and location.
953
+ # @param [String] parent
954
+ # Required. The parent resource path of the QueryTemplates. e.g. `projects/
955
+ # myproject/locations/us/dataExchanges/123`.
956
+ # @param [Fixnum] page_size
957
+ # Optional. The maximum number of results to return in a single response page.
958
+ # Leverage the page tokens to iterate through the entire collection.
959
+ # @param [String] page_token
960
+ # Optional. Page token, returned by a previous call, to request the next page of
961
+ # results.
962
+ # @param [String] fields
963
+ # Selector specifying which fields to include in a partial response.
964
+ # @param [String] quota_user
965
+ # Available to use for quota purposes for server-side applications. Can be any
966
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
967
+ # @param [Google::Apis::RequestOptions] options
968
+ # Request-specific options
969
+ #
970
+ # @yield [result, err] Result & error if block supplied
971
+ # @yieldparam result [Google::Apis::AnalyticshubV1::ListQueryTemplatesResponse] parsed result object
972
+ # @yieldparam err [StandardError] error object if request failed
973
+ #
974
+ # @return [Google::Apis::AnalyticshubV1::ListQueryTemplatesResponse]
975
+ #
976
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
977
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
978
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
979
+ def list_project_location_data_exchange_query_templates(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
980
+ command = make_simple_command(:get, 'v1/{+parent}/queryTemplates', options)
981
+ command.response_representation = Google::Apis::AnalyticshubV1::ListQueryTemplatesResponse::Representation
982
+ command.response_class = Google::Apis::AnalyticshubV1::ListQueryTemplatesResponse
983
+ command.params['parent'] = parent unless parent.nil?
984
+ command.query['pageSize'] = page_size unless page_size.nil?
985
+ command.query['pageToken'] = page_token unless page_token.nil?
986
+ command.query['fields'] = fields unless fields.nil?
987
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
988
+ execute_or_queue_command(command, &block)
989
+ end
990
+
991
+ # Updates an existing QueryTemplate
992
+ # @param [String] name
993
+ # Output only. The resource name of the QueryTemplate. e.g. `projects/myproject/
994
+ # locations/us/dataExchanges/123/queryTemplates/456`
995
+ # @param [Google::Apis::AnalyticshubV1::QueryTemplate] query_template_object
996
+ # @param [String] update_mask
997
+ # Optional. Field mask specifies the fields to update in the query template
998
+ # resource. The fields specified in the `updateMask` are relative to the
999
+ # resource and are not a full request.
1000
+ # @param [String] fields
1001
+ # Selector specifying which fields to include in a partial response.
1002
+ # @param [String] quota_user
1003
+ # Available to use for quota purposes for server-side applications. Can be any
1004
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1005
+ # @param [Google::Apis::RequestOptions] options
1006
+ # Request-specific options
1007
+ #
1008
+ # @yield [result, err] Result & error if block supplied
1009
+ # @yieldparam result [Google::Apis::AnalyticshubV1::QueryTemplate] parsed result object
1010
+ # @yieldparam err [StandardError] error object if request failed
1011
+ #
1012
+ # @return [Google::Apis::AnalyticshubV1::QueryTemplate]
1013
+ #
1014
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1015
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1016
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1017
+ def patch_project_location_data_exchange_query_template(name, query_template_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1018
+ command = make_simple_command(:patch, 'v1/{+name}', options)
1019
+ command.request_representation = Google::Apis::AnalyticshubV1::QueryTemplate::Representation
1020
+ command.request_object = query_template_object
1021
+ command.response_representation = Google::Apis::AnalyticshubV1::QueryTemplate::Representation
1022
+ command.response_class = Google::Apis::AnalyticshubV1::QueryTemplate
1023
+ command.params['name'] = name unless name.nil?
1024
+ command.query['updateMask'] = update_mask unless update_mask.nil?
1025
+ command.query['fields'] = fields unless fields.nil?
1026
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1027
+ execute_or_queue_command(command, &block)
1028
+ end
1029
+
1030
+ # Submits a query template for approval.
1031
+ # @param [String] name
1032
+ # Required. The resource path of the QueryTemplate. e.g. `projects/myproject/
1033
+ # locations/us/dataExchanges/123/queryTemplates/myqueryTemplate`.
1034
+ # @param [Google::Apis::AnalyticshubV1::SubmitQueryTemplateRequest] submit_query_template_request_object
1035
+ # @param [String] fields
1036
+ # Selector specifying which fields to include in a partial response.
1037
+ # @param [String] quota_user
1038
+ # Available to use for quota purposes for server-side applications. Can be any
1039
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1040
+ # @param [Google::Apis::RequestOptions] options
1041
+ # Request-specific options
1042
+ #
1043
+ # @yield [result, err] Result & error if block supplied
1044
+ # @yieldparam result [Google::Apis::AnalyticshubV1::QueryTemplate] parsed result object
1045
+ # @yieldparam err [StandardError] error object if request failed
1046
+ #
1047
+ # @return [Google::Apis::AnalyticshubV1::QueryTemplate]
1048
+ #
1049
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1050
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1051
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1052
+ def submit_query_template(name, submit_query_template_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1053
+ command = make_simple_command(:post, 'v1/{+name}:submit', options)
1054
+ command.request_representation = Google::Apis::AnalyticshubV1::SubmitQueryTemplateRequest::Representation
1055
+ command.request_object = submit_query_template_request_object
1056
+ command.response_representation = Google::Apis::AnalyticshubV1::QueryTemplate::Representation
1057
+ command.response_class = Google::Apis::AnalyticshubV1::QueryTemplate
1058
+ command.params['name'] = name unless name.nil?
1059
+ command.query['fields'] = fields unless fields.nil?
1060
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1061
+ execute_or_queue_command(command, &block)
1062
+ end
1063
+
818
1064
  # Deletes a subscription.
819
1065
  # @param [String] name
820
1066
  # Required. Resource name of the subscription to delete. e.g. projects/123/
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-analyticshub_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.35.0
4
+ version: 0.36.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
@@ -57,7 +57,7 @@ licenses:
57
57
  metadata:
58
58
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
59
59
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-analyticshub_v1/CHANGELOG.md
60
- documentation_uri: https://googleapis.dev/ruby/google-apis-analyticshub_v1/v0.35.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-analyticshub_v1/v0.36.0
61
61
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-analyticshub_v1
62
62
  rdoc_options: []
63
63
  require_paths: