@@ -22,6 +22,19 @@ module Google
2222 module Apis
2323 module AnalyticshubV1
2424
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+
2538 # Specifies the audit configuration for a service. The configuration determines
2639 # which permission types are logged, and what identities, if any, are exempted
2740 # from logging. An AuditConfig must have one or more AuditLogConfigs. If there
@@ -1274,6 +1287,31 @@ def update!(**args)
12741287 end
12751288 end
12761289
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+
12771315 # Message for response to the listing of shared resource subscriptions.
12781316 class ListSharedResourceSubscriptionsResponse
12791317 include Google ::Apis ::Core ::Hashable
@@ -1913,6 +1951,89 @@ def update!(**args)
19131951 end
19141952 end
19151953
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+
19162037 # Message for refreshing a subscription.
19172038 class RefreshSubscriptionRequest
19182039 include Google ::Apis ::Core ::Hashable
@@ -2088,6 +2209,31 @@ def update!(**args)
20882209 end
20892210 end
20902211
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+
20912237 # Resource in this dataset that is selectively shared.
20922238 class SelectedResource
20932239 include Google ::Apis ::Core ::Hashable
@@ -2235,6 +2381,19 @@ def update!(**args)
22352381 end
22362382 end
22372383
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+
22382397 # Message for subscribing to a Data Exchange.
22392398 class SubscribeDataExchangeRequest
22402399 include Google ::Apis ::Core ::Hashable
0 commit comments