diff --git a/api_names_out.yaml b/api_names_out.yaml index 62a0899b8..e8045f87f 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -14690,6 +14690,7 @@ "/bigquery:v2/Dataset/access/access/groupByEmail": group_by_email "/bigquery:v2/Dataset/access/access/iamMember": iam_member "/bigquery:v2/Dataset/access/access/role": role +"/bigquery:v2/Dataset/access/access/routine": routine "/bigquery:v2/Dataset/access/access/specialGroup": special_group "/bigquery:v2/Dataset/access/access/userByEmail": user_by_email "/bigquery:v2/Dataset/access/access/view": view @@ -14784,6 +14785,9 @@ "/bigquery:v2/ExplainQueryStep/kind": kind "/bigquery:v2/ExplainQueryStep/substeps": substeps "/bigquery:v2/ExplainQueryStep/substeps/substep": substep +"/bigquery:v2/Explanation": explanation +"/bigquery:v2/Explanation/attribution": attribution +"/bigquery:v2/Explanation/featureName": feature_name "/bigquery:v2/Expr": expr "/bigquery:v2/Expr/description": description "/bigquery:v2/Expr/expression": expression @@ -14830,6 +14834,10 @@ "/bigquery:v2/GetServiceAccountResponse": get_service_account_response "/bigquery:v2/GetServiceAccountResponse/email": email "/bigquery:v2/GetServiceAccountResponse/kind": kind +"/bigquery:v2/GlobalExplanation": global_explanation +"/bigquery:v2/GlobalExplanation/classLabel": class_label +"/bigquery:v2/GlobalExplanation/explanations": explanations +"/bigquery:v2/GlobalExplanation/explanations/explanation": explanation "/bigquery:v2/GoogleSheetsOptions": google_sheets_options "/bigquery:v2/GoogleSheetsOptions/range": range "/bigquery:v2/GoogleSheetsOptions/skipLeadingRows": skip_leading_rows @@ -15429,6 +15437,8 @@ "/bigquery:v2/TrainingRun": training_run "/bigquery:v2/TrainingRun/dataSplitResult": data_split_result "/bigquery:v2/TrainingRun/evaluationMetrics": evaluation_metrics +"/bigquery:v2/TrainingRun/globalExplanations": global_explanations +"/bigquery:v2/TrainingRun/globalExplanations/global_explanation": global_explanation "/bigquery:v2/TrainingRun/iterationResults": iteration_results "/bigquery:v2/TrainingRun/iterationResults/iteration_result": iteration_result "/bigquery:v2/TrainingRun/results": results diff --git a/generated/google/apis/bigquery_v2.rb b/generated/google/apis/bigquery_v2.rb index 6e0782bcb..008c23229 100644 --- a/generated/google/apis/bigquery_v2.rb +++ b/generated/google/apis/bigquery_v2.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/bigquery/ module BigqueryV2 VERSION = 'V2' - REVISION = '20201007' + REVISION = '20201015' # View and manage your data in Google BigQuery AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery' diff --git a/generated/google/apis/bigquery_v2/classes.rb b/generated/google/apis/bigquery_v2/classes.rb index e97a177cb..c30e26e71 100644 --- a/generated/google/apis/bigquery_v2/classes.rb +++ b/generated/google/apis/bigquery_v2/classes.rb @@ -1512,6 +1512,15 @@ module Google # @return [String] attr_accessor :role + # [Pick one] A routine from a different dataset to grant access to. Queries + # executed against that routine will have read access to views/tables/routines + # in this dataset. Only UDF is supported for now. The role field is not required + # when this field is set. If that routine is updated by any user, access to the + # routine needs to be granted again via an update operation. + # Corresponds to the JSON property `routine` + # @return [Google::Apis::BigqueryV2::RoutineReference] + attr_accessor :routine + # [Pick one] A special group to grant access to. Possible values include: # projectOwners: Owners of the enclosing project. projectReaders: Readers of the # enclosing project. projectWriters: Writers of the enclosing project. @@ -1546,6 +1555,7 @@ module Google @group_by_email = args[:group_by_email] if args.key?(:group_by_email) @iam_member = args[:iam_member] if args.key?(:iam_member) @role = args[:role] if args.key?(:role) + @routine = args[:routine] if args.key?(:routine) @special_group = args[:special_group] if args.key?(:special_group) @user_by_email = args[:user_by_email] if args.key?(:user_by_email) @view = args[:view] if args.key?(:view) @@ -2068,6 +2078,32 @@ module Google end end + # Explanation for a single feature. + class Explanation + include Google::Apis::Core::Hashable + + # Attribution of feature. + # Corresponds to the JSON property `attribution` + # @return [Float] + attr_accessor :attribution + + # Full name of the feature. For non-numerical features, will be formatted like .. + # Overall size of feature name will always be truncated to first 120 characters. + # Corresponds to the JSON property `featureName` + # @return [String] + attr_accessor :feature_name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @attribution = args[:attribution] if args.key?(:attribution) + @feature_name = args[:feature_name] if args.key?(:feature_name) + end + end + # Represents a textual expression in the Common Expression Language (CEL) syntax. # CEL is a C-like expression language. The syntax and semantics of CEL are # documented at https://github.com/google/cel-spec. Example (Comparison): title: @@ -2438,6 +2474,34 @@ module Google end end + # Global explanations containing the top most important features after training. + class GlobalExplanation + include Google::Apis::Core::Hashable + + # Class label for this set of global explanations. Will be empty/null for binary + # logistic and linear regression models. Sorted alphabetically in descending + # order. + # Corresponds to the JSON property `classLabel` + # @return [String] + attr_accessor :class_label + + # A list of the top global explanations. Sorted by absolute value of attribution + # in descending order. + # Corresponds to the JSON property `explanations` + # @return [Array] + attr_accessor :explanations + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @class_label = args[:class_label] if args.key?(:class_label) + @explanations = args[:explanations] if args.key?(:explanations) + end + end + # class GoogleSheetsOptions include Google::Apis::Core::Hashable @@ -6844,6 +6908,13 @@ module Google # @return [Google::Apis::BigqueryV2::EvaluationMetrics] attr_accessor :evaluation_metrics + # Global explanations for important features of the model. For multi-class + # models, there is one entry for each label class. For other models, there is + # only one entry in the list. + # Corresponds to the JSON property `globalExplanations` + # @return [Array] + attr_accessor :global_explanations + # Output of each iteration run, results.size() <= max_iterations. # Corresponds to the JSON property `results` # @return [Array] @@ -6868,6 +6939,7 @@ module Google def update!(**args) @data_split_result = args[:data_split_result] if args.key?(:data_split_result) @evaluation_metrics = args[:evaluation_metrics] if args.key?(:evaluation_metrics) + @global_explanations = args[:global_explanations] if args.key?(:global_explanations) @results = args[:results] if args.key?(:results) @start_time = args[:start_time] if args.key?(:start_time) @training_options = args[:training_options] if args.key?(:training_options) diff --git a/generated/google/apis/bigquery_v2/representations.rb b/generated/google/apis/bigquery_v2/representations.rb index a319cafad..e37861ba3 100644 --- a/generated/google/apis/bigquery_v2/representations.rb +++ b/generated/google/apis/bigquery_v2/representations.rb @@ -280,6 +280,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class Explanation + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Expr class Representation < Google::Apis::Core::JsonRepresentation; end @@ -322,6 +328,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GlobalExplanation + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleSheetsOptions class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1180,6 +1192,8 @@ module Google property :group_by_email, as: 'groupByEmail' property :iam_member, as: 'iamMember' property :role, as: 'role' + property :routine, as: 'routine', class: Google::Apis::BigqueryV2::RoutineReference, decorator: Google::Apis::BigqueryV2::RoutineReference::Representation + property :special_group, as: 'specialGroup' property :user_by_email, as: 'userByEmail' property :view, as: 'view', class: Google::Apis::BigqueryV2::TableReference, decorator: Google::Apis::BigqueryV2::TableReference::Representation @@ -1317,6 +1331,14 @@ module Google end end + class Explanation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :attribution, as: 'attribution' + property :feature_name, as: 'featureName' + end + end + class Expr # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1405,6 +1427,15 @@ module Google end end + class GlobalExplanation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :class_label, as: 'classLabel' + collection :explanations, as: 'explanations', class: Google::Apis::BigqueryV2::Explanation, decorator: Google::Apis::BigqueryV2::Explanation::Representation + + end + end + class GoogleSheetsOptions # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -2473,6 +2504,8 @@ module Google property :evaluation_metrics, as: 'evaluationMetrics', class: Google::Apis::BigqueryV2::EvaluationMetrics, decorator: Google::Apis::BigqueryV2::EvaluationMetrics::Representation + collection :global_explanations, as: 'globalExplanations', class: Google::Apis::BigqueryV2::GlobalExplanation, decorator: Google::Apis::BigqueryV2::GlobalExplanation::Representation + collection :results, as: 'results', class: Google::Apis::BigqueryV2::IterationResult, decorator: Google::Apis::BigqueryV2::IterationResult::Representation property :start_time, as: 'startTime' diff --git a/generated/google/apis/bigquery_v2/synth.metadata b/generated/google/apis/bigquery_v2/synth.metadata index 429012f74..18c7c00a0 100644 --- a/generated/google/apis/bigquery_v2/synth.metadata +++ b/generated/google/apis/bigquery_v2/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/google-api-ruby-client.git", - "sha": "c98c719bbab68d0890524d53f8b629d7858af9c2" + "sha": "4ff96cf63bea9596177ae0f8b91b1cdc83e4ce81" } } ]