From e59225cfccd63ca42bef7ace9c3f3ab724e24061 Mon Sep 17 00:00:00 2001 From: Google APIs Date: Sat, 10 Feb 2018 00:35:32 +0000 Subject: [PATCH] Autogenerated update (2018-02-10) Update: - bigquery_v2 - servicemanagement_v1 - serviceuser_v1 --- api_names_out.yaml | 5 + generated/google/apis/bigquery_v2.rb | 2 +- generated/google/apis/bigquery_v2/classes.rb | 32 ++- .../apis/bigquery_v2/representations.rb | 4 + generated/google/apis/servicemanagement_v1.rb | 2 +- .../apis/servicemanagement_v1/classes.rb | 194 ++++++++++++------ .../servicemanagement_v1/representations.rb | 50 +++-- generated/google/apis/serviceuser_v1.rb | 2 +- .../google/apis/serviceuser_v1/classes.rb | 6 +- 9 files changed, 203 insertions(+), 94 deletions(-) diff --git a/api_names_out.yaml b/api_names_out.yaml index d0ab03dd0..974173487 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -9305,7 +9305,10 @@ "/bigquery:v2/ExplainQueryStage/computeMsMax": compute_ms_max "/bigquery:v2/ExplainQueryStage/computeRatioAvg": compute_ratio_avg "/bigquery:v2/ExplainQueryStage/computeRatioMax": compute_ratio_max +"/bigquery:v2/ExplainQueryStage/endMs": end_ms "/bigquery:v2/ExplainQueryStage/id": id +"/bigquery:v2/ExplainQueryStage/inputStages": input_stages +"/bigquery:v2/ExplainQueryStage/inputStages/input_stage": input_stage "/bigquery:v2/ExplainQueryStage/name": name "/bigquery:v2/ExplainQueryStage/parallelInputs": parallel_inputs "/bigquery:v2/ExplainQueryStage/readMsAvg": read_ms_avg @@ -9316,6 +9319,7 @@ "/bigquery:v2/ExplainQueryStage/recordsWritten": records_written "/bigquery:v2/ExplainQueryStage/shuffleOutputBytes": shuffle_output_bytes "/bigquery:v2/ExplainQueryStage/shuffleOutputBytesSpilled": shuffle_output_bytes_spilled +"/bigquery:v2/ExplainQueryStage/startMs": start_ms "/bigquery:v2/ExplainQueryStage/status": status "/bigquery:v2/ExplainQueryStage/steps": steps "/bigquery:v2/ExplainQueryStage/steps/step": step @@ -9678,6 +9682,7 @@ "/bigquery:v2/TimePartitioning": time_partitioning "/bigquery:v2/TimePartitioning/expirationMs": expiration_ms "/bigquery:v2/TimePartitioning/field": field +"/bigquery:v2/TimePartitioning/requirePartitionFilter": require_partition_filter "/bigquery:v2/TimePartitioning/type": type "/bigquery:v2/UserDefinedFunctionResource": user_defined_function_resource "/bigquery:v2/UserDefinedFunctionResource/inlineCode": inline_code diff --git a/generated/google/apis/bigquery_v2.rb b/generated/google/apis/bigquery_v2.rb index b992f90a1..2fb931252 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 = '20180127' + REVISION = '20180205' # 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 9d1a07f29..a1a06c3df 100644 --- a/generated/google/apis/bigquery_v2/classes.rb +++ b/generated/google/apis/bigquery_v2/classes.rb @@ -650,11 +650,21 @@ module Google # @return [Float] attr_accessor :compute_ratio_max + # Stage end time in milliseconds. + # Corresponds to the JSON property `endMs` + # @return [Fixnum] + attr_accessor :end_ms + # Unique ID for stage within plan. # Corresponds to the JSON property `id` # @return [Fixnum] attr_accessor :id + # IDs for stages that are inputs to this stage. + # Corresponds to the JSON property `inputStages` + # @return [Array] + attr_accessor :input_stages + # Human-readable name for stage. # Corresponds to the JSON property `name` # @return [String] @@ -705,6 +715,11 @@ module Google # @return [Fixnum] attr_accessor :shuffle_output_bytes_spilled + # Stage start time in milliseconds. + # Corresponds to the JSON property `startMs` + # @return [Fixnum] + attr_accessor :start_ms + # Current status for the stage. # Corresponds to the JSON property `status` # @return [String] @@ -767,7 +782,9 @@ module Google @compute_ms_max = args[:compute_ms_max] if args.key?(:compute_ms_max) @compute_ratio_avg = args[:compute_ratio_avg] if args.key?(:compute_ratio_avg) @compute_ratio_max = args[:compute_ratio_max] if args.key?(:compute_ratio_max) + @end_ms = args[:end_ms] if args.key?(:end_ms) @id = args[:id] if args.key?(:id) + @input_stages = args[:input_stages] if args.key?(:input_stages) @name = args[:name] if args.key?(:name) @parallel_inputs = args[:parallel_inputs] if args.key?(:parallel_inputs) @read_ms_avg = args[:read_ms_avg] if args.key?(:read_ms_avg) @@ -778,6 +795,7 @@ module Google @records_written = args[:records_written] if args.key?(:records_written) @shuffle_output_bytes = args[:shuffle_output_bytes] if args.key?(:shuffle_output_bytes) @shuffle_output_bytes_spilled = args[:shuffle_output_bytes_spilled] if args.key?(:shuffle_output_bytes_spilled) + @start_ms = args[:start_ms] if args.key?(:start_ms) @status = args[:status] if args.key?(:status) @steps = args[:steps] if args.key?(:steps) @wait_ms_avg = args[:wait_ms_avg] if args.key?(:wait_ms_avg) @@ -1449,8 +1467,8 @@ module Google # [Optional] The format of the data files. For CSV files, specify "CSV". For # datastore backups, specify "DATASTORE_BACKUP". For newline-delimited JSON, - # specify "NEWLINE_DELIMITED_JSON". For Avro, specify "AVRO". The default value - # is CSV. + # specify "NEWLINE_DELIMITED_JSON". For Avro, specify "AVRO". For parquet, + # specify "PARQUET". For orc, specify "ORC". The default value is CSV. # Corresponds to the JSON property `sourceFormat` # @return [String] attr_accessor :source_format @@ -2042,7 +2060,7 @@ module Google # @return [String] attr_accessor :statement_type - # [Output-only] Describes a timeline of job execution. + # [Output-only] [Experimental] Describes a timeline of job execution. # Corresponds to the JSON property `timeline` # @return [Array] attr_accessor :timeline @@ -3350,6 +3368,13 @@ module Google # @return [String] attr_accessor :field + # [Experimental] [Optional] If set to true, queries over this table require a + # partition filter that can be used for partition elimination to be specified. + # Corresponds to the JSON property `requirePartitionFilter` + # @return [Boolean] + attr_accessor :require_partition_filter + alias_method :require_partition_filter?, :require_partition_filter + # [Required] The only type supported is DAY, which will generate one partition # per day. # Corresponds to the JSON property `type` @@ -3364,6 +3389,7 @@ module Google def update!(**args) @expiration_ms = args[:expiration_ms] if args.key?(:expiration_ms) @field = args[:field] if args.key?(:field) + @require_partition_filter = args[:require_partition_filter] if args.key?(:require_partition_filter) @type = args[:type] if args.key?(:type) end end diff --git a/generated/google/apis/bigquery_v2/representations.rb b/generated/google/apis/bigquery_v2/representations.rb index b627fcbb9..95866196f 100644 --- a/generated/google/apis/bigquery_v2/representations.rb +++ b/generated/google/apis/bigquery_v2/representations.rb @@ -519,7 +519,9 @@ module Google property :compute_ms_max, :numeric_string => true, as: 'computeMsMax' property :compute_ratio_avg, as: 'computeRatioAvg' property :compute_ratio_max, as: 'computeRatioMax' + property :end_ms, :numeric_string => true, as: 'endMs' property :id, :numeric_string => true, as: 'id' + collection :input_stages, as: 'inputStages' property :name, as: 'name' property :parallel_inputs, :numeric_string => true, as: 'parallelInputs' property :read_ms_avg, :numeric_string => true, as: 'readMsAvg' @@ -530,6 +532,7 @@ module Google property :records_written, :numeric_string => true, as: 'recordsWritten' property :shuffle_output_bytes, :numeric_string => true, as: 'shuffleOutputBytes' property :shuffle_output_bytes_spilled, :numeric_string => true, as: 'shuffleOutputBytesSpilled' + property :start_ms, :numeric_string => true, as: 'startMs' property :status, as: 'status' collection :steps, as: 'steps', class: Google::Apis::BigqueryV2::ExplainQueryStep, decorator: Google::Apis::BigqueryV2::ExplainQueryStep::Representation @@ -1169,6 +1172,7 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation property :expiration_ms, :numeric_string => true, as: 'expirationMs' property :field, as: 'field' + property :require_partition_filter, as: 'requirePartitionFilter' property :type, as: 'type' end end diff --git a/generated/google/apis/servicemanagement_v1.rb b/generated/google/apis/servicemanagement_v1.rb index 06c29476e..aa34fe408 100644 --- a/generated/google/apis/servicemanagement_v1.rb +++ b/generated/google/apis/servicemanagement_v1.rb @@ -27,7 +27,7 @@ module Google # @see https://cloud.google.com/service-management/ module ServicemanagementV1 VERSION = 'V1' - REVISION = '20180112' + REVISION = '20180202' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/servicemanagement_v1/classes.rb b/generated/google/apis/servicemanagement_v1/classes.rb index 22183dd1a..9cbb5ceb2 100644 --- a/generated/google/apis/servicemanagement_v1/classes.rb +++ b/generated/google/apis/servicemanagement_v1/classes.rb @@ -123,6 +123,123 @@ module Google end end + # Specifies the audit configuration for a service. + # The configuration determines which permission types are logged, and what + # identities, if any, are exempted from logging. + # An AuditConfig must have one or more AuditLogConfigs. + # If there are AuditConfigs for both `allServices` and a specific service, + # the union of the two AuditConfigs is used for that service: the log_types + # specified in each AuditConfig are enabled, and the exempted_members in each + # AuditLogConfig are exempted. + # Example Policy with multiple AuditConfigs: + # ` + # "audit_configs": [ + # ` + # "service": "allServices" + # "audit_log_configs": [ + # ` + # "log_type": "DATA_READ", + # "exempted_members": [ + # "user:foo@gmail.com" + # ] + # `, + # ` + # "log_type": "DATA_WRITE", + # `, + # ` + # "log_type": "ADMIN_READ", + # ` + # ] + # `, + # ` + # "service": "fooservice.googleapis.com" + # "audit_log_configs": [ + # ` + # "log_type": "DATA_READ", + # `, + # ` + # "log_type": "DATA_WRITE", + # "exempted_members": [ + # "user:bar@gmail.com" + # ] + # ` + # ] + # ` + # ] + # ` + # For fooservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ + # logging. It also exempts foo@gmail.com from DATA_READ logging, and + # bar@gmail.com from DATA_WRITE logging. + class AuditConfig + include Google::Apis::Core::Hashable + + # The configuration for logging of each type of permission. + # Next ID: 4 + # Corresponds to the JSON property `auditLogConfigs` + # @return [Array] + attr_accessor :audit_log_configs + + # Specifies a service that will be enabled for audit logging. + # For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. + # `allServices` is a special value that covers all services. + # Corresponds to the JSON property `service` + # @return [String] + attr_accessor :service + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @audit_log_configs = args[:audit_log_configs] if args.key?(:audit_log_configs) + @service = args[:service] if args.key?(:service) + end + end + + # Provides the configuration for logging a type of permissions. + # Example: + # ` + # "audit_log_configs": [ + # ` + # "log_type": "DATA_READ", + # "exempted_members": [ + # "user:foo@gmail.com" + # ] + # `, + # ` + # "log_type": "DATA_WRITE", + # ` + # ] + # ` + # This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting + # foo@gmail.com from DATA_READ logging. + class AuditLogConfig + include Google::Apis::Core::Hashable + + # Specifies the identities that do not cause logging for this type of + # permission. + # Follows the same format of Binding.members. + # Corresponds to the JSON property `exemptedMembers` + # @return [Array] + attr_accessor :exempted_members + + # The log type that this config enables. + # Corresponds to the JSON property `logType` + # @return [String] + attr_accessor :log_type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @exempted_members = args[:exempted_members] if args.key?(:exempted_members) + @log_type = args[:log_type] if args.key?(:log_type) + end + end + # Configuration for an anthentication provider, including support for # [JSON Web Token (JWT)](https://tools.ietf.org/html/draft-ietf-oauth-json-web- # token-32). @@ -1441,71 +1558,6 @@ module Google end end - # The metadata associated with a long running operation resource. - class FlowOperationMetadata - include Google::Apis::Core::Hashable - - # The state of the operation with respect to cancellation. - # Corresponds to the JSON property `cancelState` - # @return [String] - attr_accessor :cancel_state - - # Deadline for the flow to complete, to prevent orphaned Operations. - # If the flow has not completed by this time, it may be terminated by - # the engine, or force-failed by Operation lookup. - # Note that this is not a hard deadline after which the Flow will - # definitely be failed, rather it is a deadline after which it is reasonable - # to suspect a problem and other parts of the system may kill operation - # to ensure we don't have orphans. - # see also: go/prevent-orphaned-operations - # Corresponds to the JSON property `deadline` - # @return [String] - attr_accessor :deadline - - # The name of the top-level flow corresponding to this operation. - # Must be equal to the "name" field for a FlowName enum. - # Corresponds to the JSON property `flowName` - # @return [String] - attr_accessor :flow_name - - # Operation type which is a flow type and subtype info as that is missing in - # our datastore otherwise. This maps to the ordinal value of the enum: - # jcg/api/tenant/operations/OperationNamespace.java - # Corresponds to the JSON property `operationType` - # @return [Fixnum] - attr_accessor :operation_type - - # The full name of the resources that this flow is directly associated with. - # Corresponds to the JSON property `resourceNames` - # @return [Array] - attr_accessor :resource_names - - # The start time of the operation. - # Corresponds to the JSON property `startTime` - # @return [String] - attr_accessor :start_time - - # - # Corresponds to the JSON property `surface` - # @return [String] - attr_accessor :surface - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @cancel_state = args[:cancel_state] if args.key?(:cancel_state) - @deadline = args[:deadline] if args.key?(:deadline) - @flow_name = args[:flow_name] if args.key?(:flow_name) - @operation_type = args[:operation_type] if args.key?(:operation_type) - @resource_names = args[:resource_names] if args.key?(:resource_names) - @start_time = args[:start_time] if args.key?(:start_time) - @surface = args[:surface] if args.key?(:surface) - end - end - # Request message for GenerateConfigReport method. class GenerateConfigReportRequest include Google::Apis::Core::Hashable @@ -2462,13 +2514,12 @@ module Google # * `Gi` gibi (2**30) # * `Ti` tebi (2**40) # **Grammar** - # The grammar includes the dimensionless unit `1`, such as `1/s`. # The grammar also includes these connectors: # * `/` division (as an infix operator, e.g. `1/s`). # * `.` multiplication (as an infix operator, e.g. `GBy.d`) # The grammar for a unit is as follows: # Expression = Component ` "." Component ` ` "/" Component ` ; - # Component = [ PREFIX ] UNIT [ Annotation ] + # Component = ( [ PREFIX ] UNIT | "%" ) [ Annotation ] # | Annotation # | "1" # ; @@ -2479,6 +2530,9 @@ module Google # ``requests`/s == 1/s`, `By`transmitted`/s == By/s`. # * `NAME` is a sequence of non-blank printable ASCII characters not # containing '`' or '`'. + # * `1` represents dimensionless value 1, such as in `1/s`. + # * `%` represents dimensionless value 1/100, and annotates values giving + # a percentage. # Corresponds to the JSON property `unit` # @return [String] attr_accessor :unit @@ -3060,6 +3114,11 @@ module Google class Policy include Google::Apis::Core::Hashable + # Specifies cloud audit logging configuration for this policy. + # Corresponds to the JSON property `auditConfigs` + # @return [Array] + attr_accessor :audit_configs + # Associates a list of `members` to a `role`. # `bindings` with no members will result in an error. # Corresponds to the JSON property `bindings` @@ -3091,6 +3150,7 @@ module Google # Update properties of this object def update!(**args) + @audit_configs = args[:audit_configs] if args.key?(:audit_configs) @bindings = args[:bindings] if args.key?(:bindings) @etag = args[:etag] if args.key?(:etag) @version = args[:version] if args.key?(:version) diff --git a/generated/google/apis/servicemanagement_v1/representations.rb b/generated/google/apis/servicemanagement_v1/representations.rb index c69721c4d..8becd38fc 100644 --- a/generated/google/apis/servicemanagement_v1/representations.rb +++ b/generated/google/apis/servicemanagement_v1/representations.rb @@ -34,6 +34,18 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class AuditConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AuditLogConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class AuthProvider class Representation < Google::Apis::Core::JsonRepresentation; end @@ -238,12 +250,6 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class FlowOperationMetadata - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class GenerateConfigReportRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -580,6 +586,23 @@ module Google end end + class AuditConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :audit_log_configs, as: 'auditLogConfigs', class: Google::Apis::ServicemanagementV1::AuditLogConfig, decorator: Google::Apis::ServicemanagementV1::AuditLogConfig::Representation + + property :service, as: 'service' + end + end + + class AuditLogConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :exempted_members, as: 'exemptedMembers' + property :log_type, as: 'logType' + end + end + class AuthProvider # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -896,19 +919,6 @@ module Google end end - class FlowOperationMetadata - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :cancel_state, as: 'cancelState' - property :deadline, as: 'deadline' - property :flow_name, as: 'flowName' - property :operation_type, as: 'operationType' - collection :resource_names, as: 'resourceNames' - property :start_time, as: 'startTime' - property :surface, as: 'surface' - end - end - class GenerateConfigReportRequest # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1199,6 +1209,8 @@ module Google class Policy # @private class Representation < Google::Apis::Core::JsonRepresentation + collection :audit_configs, as: 'auditConfigs', class: Google::Apis::ServicemanagementV1::AuditConfig, decorator: Google::Apis::ServicemanagementV1::AuditConfig::Representation + collection :bindings, as: 'bindings', class: Google::Apis::ServicemanagementV1::Binding, decorator: Google::Apis::ServicemanagementV1::Binding::Representation property :etag, :base64 => true, as: 'etag' diff --git a/generated/google/apis/serviceuser_v1.rb b/generated/google/apis/serviceuser_v1.rb index 9ffbbb9f8..358fed50c 100644 --- a/generated/google/apis/serviceuser_v1.rb +++ b/generated/google/apis/serviceuser_v1.rb @@ -27,7 +27,7 @@ module Google # @see https://cloud.google.com/service-management/ module ServiceuserV1 VERSION = 'V1' - REVISION = '20180112' + REVISION = '20180202' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/serviceuser_v1/classes.rb b/generated/google/apis/serviceuser_v1/classes.rb index 0fb6fa720..b5a99eee1 100644 --- a/generated/google/apis/serviceuser_v1/classes.rb +++ b/generated/google/apis/serviceuser_v1/classes.rb @@ -1860,13 +1860,12 @@ module Google # * `Gi` gibi (2**30) # * `Ti` tebi (2**40) # **Grammar** - # The grammar includes the dimensionless unit `1`, such as `1/s`. # The grammar also includes these connectors: # * `/` division (as an infix operator, e.g. `1/s`). # * `.` multiplication (as an infix operator, e.g. `GBy.d`) # The grammar for a unit is as follows: # Expression = Component ` "." Component ` ` "/" Component ` ; - # Component = [ PREFIX ] UNIT [ Annotation ] + # Component = ( [ PREFIX ] UNIT | "%" ) [ Annotation ] # | Annotation # | "1" # ; @@ -1877,6 +1876,9 @@ module Google # ``requests`/s == 1/s`, `By`transmitted`/s == By/s`. # * `NAME` is a sequence of non-blank printable ASCII characters not # containing '`' or '`'. + # * `1` represents dimensionless value 1, such as in `1/s`. + # * `%` represents dimensionless value 1/100, and annotates values giving + # a percentage. # Corresponds to the JSON property `unit` # @return [String] attr_accessor :unit