From 6bedb3e3ad72b0f287924ff5199ed054fa050b6c Mon Sep 17 00:00:00 2001 From: Google APIs Date: Thu, 2 Nov 2017 00:35:03 +0000 Subject: [PATCH] Autogenerated update (2017-11-02) Update: - cloudtasks_v2beta2 - dataflow_v1b3 - iam_v1 - language_v1beta2 - logging_v2beta1 - ml_v1 - oslogin_v1alpha - oslogin_v1beta - partners_v2 - runtimeconfig_v1beta1 - streetviewpublish_v1 --- api_names_out.yaml | 10 ++++ generated/google/apis/cloudtasks_v2beta2.rb | 2 +- .../google/apis/cloudtasks_v2beta2/service.rb | 10 ---- generated/google/apis/dataflow_v1b3.rb | 2 +- .../google/apis/dataflow_v1b3/classes.rb | 45 ++++---------- .../apis/dataflow_v1b3/representations.rb | 17 +----- .../google/apis/firestore_v1beta1/classes.rb | 60 ------------------- generated/google/apis/iam_v1.rb | 2 +- generated/google/apis/iam_v1/classes.rb | 12 ++-- generated/google/apis/language_v1beta2.rb | 2 +- .../google/apis/language_v1beta2/classes.rb | 4 +- generated/google/apis/logging_v2beta1.rb | 2 +- .../google/apis/logging_v2beta1/classes.rb | 9 +++ .../apis/logging_v2beta1/representations.rb | 1 + generated/google/apis/ml_v1.rb | 2 +- generated/google/apis/ml_v1/classes.rb | 3 - generated/google/apis/oslogin_v1alpha.rb | 2 +- .../google/apis/oslogin_v1alpha/classes.rb | 21 ++++--- .../apis/oslogin_v1alpha/representations.rb | 1 + .../google/apis/oslogin_v1alpha/service.rb | 37 +++++++++++- generated/google/apis/oslogin_v1beta.rb | 2 +- .../google/apis/oslogin_v1beta/classes.rb | 13 ++-- .../apis/oslogin_v1beta/representations.rb | 1 + .../google/apis/oslogin_v1beta/service.rb | 37 +++++++++++- generated/google/apis/partners_v2.rb | 2 +- generated/google/apis/partners_v2/classes.rb | 60 ------------------- .../google/apis/runtimeconfig_v1beta1.rb | 2 +- .../apis/runtimeconfig_v1beta1/classes.rb | 10 ++-- generated/google/apis/streetviewpublish_v1.rb | 2 +- .../apis/streetviewpublish_v1/service.rb | 3 +- 30 files changed, 157 insertions(+), 219 deletions(-) diff --git a/api_names_out.yaml b/api_names_out.yaml index 8a2ff97f2..06b554480 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -30854,6 +30854,7 @@ "/dataflow:v1b3/CounterStructuredName": counter_structured_name "/dataflow:v1b3/CounterStructuredName/componentStepName": component_step_name "/dataflow:v1b3/CounterStructuredName/executionStepName": execution_step_name +"/dataflow:v1b3/CounterStructuredName/inputIndex": input_index "/dataflow:v1b3/CounterStructuredName/name": name "/dataflow:v1b3/CounterStructuredName/origin": origin "/dataflow:v1b3/CounterStructuredName/originNamespace": origin_namespace @@ -47046,6 +47047,7 @@ "/logging:v2beta1/LogEntry/resource": resource "/logging:v2beta1/LogEntry/severity": severity "/logging:v2beta1/LogEntry/sourceLocation": source_location +"/logging:v2beta1/LogEntry/spanId": span_id "/logging:v2beta1/LogEntry/textPayload": text_payload "/logging:v2beta1/LogEntry/timestamp": timestamp "/logging:v2beta1/LogEntry/trace": trace @@ -48831,6 +48833,7 @@ "/oslogin:v1alpha/LoginProfile/sshPublicKeys/ssh_public_key": ssh_public_key "/oslogin:v1alpha/LoginProfile/suspended": suspended "/oslogin:v1alpha/PosixAccount": posix_account +"/oslogin:v1alpha/PosixAccount/accountId": account_id "/oslogin:v1alpha/PosixAccount/gecos": gecos "/oslogin:v1alpha/PosixAccount/gid": gid "/oslogin:v1alpha/PosixAccount/homeDirectory": home_directory @@ -48849,6 +48852,9 @@ "/oslogin:v1alpha/oslogin.users.getLoginProfile/name": name "/oslogin:v1alpha/oslogin.users.importSshPublicKey": import_user_ssh_public_key "/oslogin:v1alpha/oslogin.users.importSshPublicKey/parent": parent +"/oslogin:v1alpha/oslogin.users.importSshPublicKey/projectId": project_id +"/oslogin:v1alpha/oslogin.users.projects.delete": delete_user_project +"/oslogin:v1alpha/oslogin.users.projects.delete/name": name "/oslogin:v1alpha/oslogin.users.sshPublicKeys.delete": delete_user_ssh_public_key "/oslogin:v1alpha/oslogin.users.sshPublicKeys.delete/name": name "/oslogin:v1alpha/oslogin.users.sshPublicKeys.get": get_user_ssh_public_key @@ -48868,6 +48874,7 @@ "/oslogin:v1beta/LoginProfile/sshPublicKeys/ssh_public_key": ssh_public_key "/oslogin:v1beta/LoginProfile/suspended": suspended "/oslogin:v1beta/PosixAccount": posix_account +"/oslogin:v1beta/PosixAccount/accountId": account_id "/oslogin:v1beta/PosixAccount/gecos": gecos "/oslogin:v1beta/PosixAccount/gid": gid "/oslogin:v1beta/PosixAccount/homeDirectory": home_directory @@ -48886,6 +48893,9 @@ "/oslogin:v1beta/oslogin.users.getLoginProfile/name": name "/oslogin:v1beta/oslogin.users.importSshPublicKey": import_user_ssh_public_key "/oslogin:v1beta/oslogin.users.importSshPublicKey/parent": parent +"/oslogin:v1beta/oslogin.users.importSshPublicKey/projectId": project_id +"/oslogin:v1beta/oslogin.users.projects.delete": delete_user_project +"/oslogin:v1beta/oslogin.users.projects.delete/name": name "/oslogin:v1beta/oslogin.users.sshPublicKeys.delete": delete_user_ssh_public_key "/oslogin:v1beta/oslogin.users.sshPublicKeys.delete/name": name "/oslogin:v1beta/oslogin.users.sshPublicKeys.get": get_user_ssh_public_key diff --git a/generated/google/apis/cloudtasks_v2beta2.rb b/generated/google/apis/cloudtasks_v2beta2.rb index 74b38838e..772268783 100644 --- a/generated/google/apis/cloudtasks_v2beta2.rb +++ b/generated/google/apis/cloudtasks_v2beta2.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/cloud-tasks/ module CloudtasksV2beta2 VERSION = 'V2beta2' - REVISION = '20171025' + REVISION = '20171101' # 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/cloudtasks_v2beta2/service.rb b/generated/google/apis/cloudtasks_v2beta2/service.rb index e10f63949..f1fdeeb2e 100644 --- a/generated/google/apis/cloudtasks_v2beta2/service.rb +++ b/generated/google/apis/cloudtasks_v2beta2/service.rb @@ -393,11 +393,6 @@ module Google # queue is paused. The state of the queue is stored in # Queue.queue_state; if paused it will be set to # Queue.QueueState.PAUSED. - # WARNING: This method is only available to whitelisted - # users. Using this method carries some risk. Read - # [Overview of Queue Management and queue.yaml](/cloud-tasks/docs/queue-yaml) - # carefully and then sign up for - # [whitelist access to this method](https://goo.gl/Fe5mUy). # @param [String] name # Required. # The queue name. For example: @@ -475,11 +470,6 @@ module Google # Queue.QueueState.PAUSED or Queue.QueueState.DISABLED. The state of # a queue is stored in Queue.queue_state; after calling this method it # will be set to Queue.QueueState.RUNNING. - # WARNING: This method is only available to whitelisted - # users. Using this method carries some risk. Read - # [Overview of Queue Management and queue.yaml](/cloud-tasks/docs/queue-yaml) - # carefully and then sign up for - # [whitelist access to this method](https://goo.gl/Fe5mUy). # WARNING: Resuming many high-QPS queues at the same time can # lead to target overloading. If you are resuming high-QPS # queues, follow the 500/50/5 pattern described in diff --git a/generated/google/apis/dataflow_v1b3.rb b/generated/google/apis/dataflow_v1b3.rb index 5c3d248fb..5c865d67f 100644 --- a/generated/google/apis/dataflow_v1b3.rb +++ b/generated/google/apis/dataflow_v1b3.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/dataflow module DataflowV1b3 VERSION = 'V1b3' - REVISION = '20171014' + REVISION = '20171031' # 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/dataflow_v1b3/classes.rb b/generated/google/apis/dataflow_v1b3/classes.rb index 26dbb730d..a69e56c4d 100644 --- a/generated/google/apis/dataflow_v1b3/classes.rb +++ b/generated/google/apis/dataflow_v1b3/classes.rb @@ -425,6 +425,16 @@ module Google # @return [String] attr_accessor :execution_step_name + # Index of an input collection that's being read from/written to as a side + # input. + # The index identifies a step's side inputs starting by 1 (e.g. the first + # side input has input_index 1, the third has input_index 3). + # Side inputs are identified by a pair of (original_step_name, input_index). + # This field helps uniquely identify them. + # Corresponds to the JSON property `inputIndex` + # @return [Fixnum] + attr_accessor :input_index + # Counter name. Not necessarily globally-unique, but unique within the # context of the other fields. # Required. @@ -443,7 +453,8 @@ module Google attr_accessor :origin_namespace # The step name requesting an operation, such as GBK. - # I.e. the ParDo causing a read/write from shuffle to occur. + # I.e. the ParDo causing a read/write from shuffle to occur, or a + # read from side inputs. # Corresponds to the JSON property `originalRequestingStepName` # @return [String] attr_accessor :original_requesting_step_name @@ -459,11 +470,6 @@ module Google # @return [String] attr_accessor :portion - # Uniquely identifies a side input. - # Corresponds to the JSON property `sideInput` - # @return [Google::Apis::DataflowV1b3::SideInputId] - attr_accessor :side_input - # ID of a particular worker. # Corresponds to the JSON property `workerId` # @return [String] @@ -477,13 +483,13 @@ module Google def update!(**args) @component_step_name = args[:component_step_name] if args.key?(:component_step_name) @execution_step_name = args[:execution_step_name] if args.key?(:execution_step_name) + @input_index = args[:input_index] if args.key?(:input_index) @name = args[:name] if args.key?(:name) @origin = args[:origin] if args.key?(:origin) @origin_namespace = args[:origin_namespace] if args.key?(:origin_namespace) @original_requesting_step_name = args[:original_requesting_step_name] if args.key?(:original_requesting_step_name) @original_step_name = args[:original_step_name] if args.key?(:original_step_name) @portion = args[:portion] if args.key?(:portion) - @side_input = args[:side_input] if args.key?(:side_input) @worker_id = args[:worker_id] if args.key?(:worker_id) end end @@ -3179,31 +3185,6 @@ module Google end end - # Uniquely identifies a side input. - class SideInputId - include Google::Apis::Core::Hashable - - # The step that receives and usually consumes this side input. - # Corresponds to the JSON property `declaringStepName` - # @return [String] - attr_accessor :declaring_step_name - - # The index of the side input, from the list of non_parallel_inputs. - # Corresponds to the JSON property `inputIndex` - # @return [Fixnum] - attr_accessor :input_index - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @declaring_step_name = args[:declaring_step_name] if args.key?(:declaring_step_name) - @input_index = args[:input_index] if args.key?(:input_index) - end - end - # Information about a side input of a DoFn or an input of a SeqDoFn. class SideInputInfo include Google::Apis::Core::Hashable diff --git a/generated/google/apis/dataflow_v1b3/representations.rb b/generated/google/apis/dataflow_v1b3/representations.rb index 892a49d66..03c5c5a50 100644 --- a/generated/google/apis/dataflow_v1b3/representations.rb +++ b/generated/google/apis/dataflow_v1b3/representations.rb @@ -502,12 +502,6 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class SideInputId - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class SideInputInfo class Representation < Google::Apis::Core::JsonRepresentation; end @@ -897,14 +891,13 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation property :component_step_name, as: 'componentStepName' property :execution_step_name, as: 'executionStepName' + property :input_index, as: 'inputIndex' property :name, as: 'name' property :origin, as: 'origin' property :origin_namespace, as: 'originNamespace' property :original_requesting_step_name, as: 'originalRequestingStepName' property :original_step_name, as: 'originalStepName' property :portion, as: 'portion' - property :side_input, as: 'sideInput', class: Google::Apis::DataflowV1b3::SideInputId, decorator: Google::Apis::DataflowV1b3::SideInputId::Representation - property :worker_id, as: 'workerId' end end @@ -1634,14 +1627,6 @@ module Google end end - class SideInputId - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :declaring_step_name, as: 'declaringStepName' - property :input_index, as: 'inputIndex' - end - end - class SideInputInfo # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/firestore_v1beta1/classes.rb b/generated/google/apis/firestore_v1beta1/classes.rb index db0dd462e..3b61ca10f 100644 --- a/generated/google/apis/firestore_v1beta1/classes.rb +++ b/generated/google/apis/firestore_v1beta1/classes.rb @@ -784,36 +784,6 @@ module Google # specified otherwise, this must conform to the # WGS84 # standard. Values must be within normalized ranges. - # Example of normalization code in Python: - # def NormalizeLongitude(longitude): - # """Wraps decimal degrees longitude to [-180.0, 180.0].""" - # q, r = divmod(longitude, 360.0) - # if r > 180.0 or (r == 180.0 and q <= -1.0): - # return r - 360.0 - # return r - # def NormalizeLatLng(latitude, longitude): - # """Wraps decimal degrees latitude and longitude to - # [-90.0, 90.0] and [-180.0, 180.0], respectively.""" - # r = latitude % 360.0 - # if r <= 90.0: - # return r, NormalizeLongitude(longitude) - # elif r >= 270.0: - # return r - 360, NormalizeLongitude(longitude) - # else: - # return 180 - r, NormalizeLongitude(longitude + 180.0) - # assert 180.0 == NormalizeLongitude(180.0) - # assert -180.0 == NormalizeLongitude(-180.0) - # assert -179.0 == NormalizeLongitude(181.0) - # assert (0.0, 0.0) == NormalizeLatLng(360.0, 0.0) - # assert (0.0, 0.0) == NormalizeLatLng(-360.0, 0.0) - # assert (85.0, 180.0) == NormalizeLatLng(95.0, 0.0) - # assert (-85.0, -170.0) == NormalizeLatLng(-95.0, 10.0) - # assert (90.0, 10.0) == NormalizeLatLng(90.0, 10.0) - # assert (-90.0, -10.0) == NormalizeLatLng(-90.0, -10.0) - # assert (0.0, -170.0) == NormalizeLatLng(-180.0, 10.0) - # assert (0.0, -170.0) == NormalizeLatLng(180.0, 10.0) - # assert (-90.0, 10.0) == NormalizeLatLng(270.0, 10.0) - # assert (90.0, 10.0) == NormalizeLatLng(-270.0, 10.0) class LatLng include Google::Apis::Core::Hashable @@ -1784,36 +1754,6 @@ module Google # specified otherwise, this must conform to the # WGS84 # standard. Values must be within normalized ranges. - # Example of normalization code in Python: - # def NormalizeLongitude(longitude): - # """Wraps decimal degrees longitude to [-180.0, 180.0].""" - # q, r = divmod(longitude, 360.0) - # if r > 180.0 or (r == 180.0 and q <= -1.0): - # return r - 360.0 - # return r - # def NormalizeLatLng(latitude, longitude): - # """Wraps decimal degrees latitude and longitude to - # [-90.0, 90.0] and [-180.0, 180.0], respectively.""" - # r = latitude % 360.0 - # if r <= 90.0: - # return r, NormalizeLongitude(longitude) - # elif r >= 270.0: - # return r - 360, NormalizeLongitude(longitude) - # else: - # return 180 - r, NormalizeLongitude(longitude + 180.0) - # assert 180.0 == NormalizeLongitude(180.0) - # assert -180.0 == NormalizeLongitude(-180.0) - # assert -179.0 == NormalizeLongitude(181.0) - # assert (0.0, 0.0) == NormalizeLatLng(360.0, 0.0) - # assert (0.0, 0.0) == NormalizeLatLng(-360.0, 0.0) - # assert (85.0, 180.0) == NormalizeLatLng(95.0, 0.0) - # assert (-85.0, -170.0) == NormalizeLatLng(-95.0, 10.0) - # assert (90.0, 10.0) == NormalizeLatLng(90.0, 10.0) - # assert (-90.0, -10.0) == NormalizeLatLng(-90.0, -10.0) - # assert (0.0, -170.0) == NormalizeLatLng(-180.0, 10.0) - # assert (0.0, -170.0) == NormalizeLatLng(180.0, 10.0) - # assert (-90.0, 10.0) == NormalizeLatLng(270.0, 10.0) - # assert (90.0, 10.0) == NormalizeLatLng(-270.0, 10.0) # Corresponds to the JSON property `geoPointValue` # @return [Google::Apis::FirestoreV1beta1::LatLng] attr_accessor :geo_point_value diff --git a/generated/google/apis/iam_v1.rb b/generated/google/apis/iam_v1.rb index e32693e15..3b35a6fcb 100644 --- a/generated/google/apis/iam_v1.rb +++ b/generated/google/apis/iam_v1.rb @@ -27,7 +27,7 @@ module Google # @see https://cloud.google.com/iam/ module IamV1 VERSION = 'V1' - REVISION = '20171020' + REVISION = '20171027' # 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/iam_v1/classes.rb b/generated/google/apis/iam_v1/classes.rb index 64dae1fc0..92b357fce 100644 --- a/generated/google/apis/iam_v1/classes.rb +++ b/generated/google/apis/iam_v1/classes.rb @@ -200,9 +200,8 @@ module Google # to generate the service account email address and a stable # `unique_id`. # If the account already exists, the account's resource name is returned - # in util::Status's ResourceInfo.resource_name in the format of - # projects/`PROJECT_ID`/serviceAccounts/`ACCOUNT`. The caller can - # use the name in other methods to access the account. + # in the format of projects/`PROJECT_ID`/serviceAccounts/`ACCOUNT`. The caller + # can use the name in other methods to access the account. # All other methods can identify the service account using the format # `projects/`PROJECT_ID`/serviceAccounts/`ACCOUNT``. # Using `-` as a wildcard for the `PROJECT_ID` will infer the project from @@ -694,9 +693,8 @@ module Google # to generate the service account email address and a stable # `unique_id`. # If the account already exists, the account's resource name is returned - # in util::Status's ResourceInfo.resource_name in the format of - # projects/`PROJECT_ID`/serviceAccounts/`ACCOUNT`. The caller can - # use the name in other methods to access the account. + # in the format of projects/`PROJECT_ID`/serviceAccounts/`ACCOUNT`. The caller + # can use the name in other methods to access the account. # All other methods can identify the service account using the format # `projects/`PROJECT_ID`/serviceAccounts/`ACCOUNT``. # Using `-` as a wildcard for the `PROJECT_ID` will infer the project from @@ -733,7 +731,7 @@ module Google # @return [String] attr_accessor :name - # @OutputOnly. The OAuth2 client id for the service account. + # @OutputOnly The OAuth2 client id for the service account. # This is used in conjunction with the OAuth2 clientconfig API to make # three legged OAuth2 (3LO) flows to access the data of Google users. # Corresponds to the JSON property `oauth2ClientId` diff --git a/generated/google/apis/language_v1beta2.rb b/generated/google/apis/language_v1beta2.rb index 8e86f5b6c..0d05d7fa0 100644 --- a/generated/google/apis/language_v1beta2.rb +++ b/generated/google/apis/language_v1beta2.rb @@ -27,7 +27,7 @@ module Google # @see https://cloud.google.com/natural-language/ module LanguageV1beta2 VERSION = 'V1beta2' - REVISION = '20170911' + REVISION = '20171031' # Apply machine learning models to reveal the structure and meaning of text AUTH_CLOUD_LANGUAGE = 'https://www.googleapis.com/auth/cloud-language' diff --git a/generated/google/apis/language_v1beta2/classes.rb b/generated/google/apis/language_v1beta2/classes.rb index db3d3a29e..ea54b7baf 100644 --- a/generated/google/apis/language_v1beta2/classes.rb +++ b/generated/google/apis/language_v1beta2/classes.rb @@ -579,7 +579,9 @@ module Google class Features include Google::Apis::Core::Hashable - # Classify the full document into categories. + # Classify the full document into categories. If this is true, + # the API will use the default model which classifies into a + # [predefined taxonomy](/natural-language/docs/categories). # Corresponds to the JSON property `classifyText` # @return [Boolean] attr_accessor :classify_text diff --git a/generated/google/apis/logging_v2beta1.rb b/generated/google/apis/logging_v2beta1.rb index d6b236a2f..d4817f605 100644 --- a/generated/google/apis/logging_v2beta1.rb +++ b/generated/google/apis/logging_v2beta1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/logging/docs/ module LoggingV2beta1 VERSION = 'V2beta1' - REVISION = '20171002' + REVISION = '20171030' # 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/logging_v2beta1/classes.rb b/generated/google/apis/logging_v2beta1/classes.rb index 6063e7a49..a705442f2 100644 --- a/generated/google/apis/logging_v2beta1/classes.rb +++ b/generated/google/apis/logging_v2beta1/classes.rb @@ -658,6 +658,14 @@ module Google # @return [Google::Apis::LoggingV2beta1::LogEntrySourceLocation] attr_accessor :source_location + # Optional. Id of the span within the trace associated with the log entry. e.g. " + # 0000000000000042" For Stackdriver trace spans, this is the same format that + # the Stackdriver trace API uses. The ID is a 16-character hexadecimal encoding + # of an 8-byte array. + # Corresponds to the JSON property `spanId` + # @return [String] + attr_accessor :span_id + # The log entry payload, represented as a Unicode string (UTF-8). # Corresponds to the JSON property `textPayload` # @return [String] @@ -698,6 +706,7 @@ module Google @resource = args[:resource] if args.key?(:resource) @severity = args[:severity] if args.key?(:severity) @source_location = args[:source_location] if args.key?(:source_location) + @span_id = args[:span_id] if args.key?(:span_id) @text_payload = args[:text_payload] if args.key?(:text_payload) @timestamp = args[:timestamp] if args.key?(:timestamp) @trace = args[:trace] if args.key?(:trace) diff --git a/generated/google/apis/logging_v2beta1/representations.rb b/generated/google/apis/logging_v2beta1/representations.rb index ae400d8e5..81b1b6448 100644 --- a/generated/google/apis/logging_v2beta1/representations.rb +++ b/generated/google/apis/logging_v2beta1/representations.rb @@ -331,6 +331,7 @@ module Google property :severity, as: 'severity' property :source_location, as: 'sourceLocation', class: Google::Apis::LoggingV2beta1::LogEntrySourceLocation, decorator: Google::Apis::LoggingV2beta1::LogEntrySourceLocation::Representation + property :span_id, as: 'spanId' property :text_payload, as: 'textPayload' property :timestamp, as: 'timestamp' property :trace, as: 'trace' diff --git a/generated/google/apis/ml_v1.rb b/generated/google/apis/ml_v1.rb index 0b1b7133f..018114963 100644 --- a/generated/google/apis/ml_v1.rb +++ b/generated/google/apis/ml_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/ml/ module MlV1 VERSION = 'V1' - REVISION = '20171022' + REVISION = '20171028' # 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/ml_v1/classes.rb b/generated/google/apis/ml_v1/classes.rb index 2fe9f6a58..aecfad8f6 100644 --- a/generated/google/apis/ml_v1/classes.rb +++ b/generated/google/apis/ml_v1/classes.rb @@ -279,7 +279,6 @@ module Google end # Represents a training or prediction job. - # Next ID: 16 class GoogleCloudMlV1Job include Google::Apis::Core::Hashable @@ -456,7 +455,6 @@ module Google # A model can have multiple versions, each of which is a deployed, trained # model ready to receive prediction requests. The model itself is just a # container. - # Next ID: 8 class GoogleCloudMlV1Model include Google::Apis::Core::Hashable @@ -518,7 +516,6 @@ module Google end # Represents the metadata of the long-running operation. - # Next ID: 9 class GoogleCloudMlV1OperationMetadata include Google::Apis::Core::Hashable diff --git a/generated/google/apis/oslogin_v1alpha.rb b/generated/google/apis/oslogin_v1alpha.rb index 1c3a60517..5477addc2 100644 --- a/generated/google/apis/oslogin_v1alpha.rb +++ b/generated/google/apis/oslogin_v1alpha.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/compute/docs/oslogin/rest/ module OsloginV1alpha VERSION = 'V1alpha' - REVISION = '20170926' + REVISION = '20171031' # 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/oslogin_v1alpha/classes.rb b/generated/google/apis/oslogin_v1alpha/classes.rb index a14ef457c..799b53614 100644 --- a/generated/google/apis/oslogin_v1alpha/classes.rb +++ b/generated/google/apis/oslogin_v1alpha/classes.rb @@ -45,8 +45,8 @@ module Google class ImportSshPublicKeyResponse include Google::Apis::Core::Hashable - # The Directory API profile information used for logging in to a virtual - # machine on Google Compute Engine. + # The user profile information used for logging in to a virtual machine on + # Google Compute Engine. # Corresponds to the JSON property `loginProfile` # @return [Google::Apis::OsloginV1alpha::LoginProfile] attr_accessor :login_profile @@ -61,8 +61,8 @@ module Google end end - # The Directory API profile information used for logging in to a virtual - # machine on Google Compute Engine. + # The user profile information used for logging in to a virtual machine on + # Google Compute Engine. class LoginProfile include Google::Apis::Core::Hashable @@ -100,10 +100,15 @@ module Google end end - # The POSIX account information associated with a Directory API User. + # The POSIX account information associated with a Google account. class PosixAccount include Google::Apis::Core::Hashable + # Output only. A POSIX account identifier. + # Corresponds to the JSON property `accountId` + # @return [String] + attr_accessor :account_id + # The GECOS (user information) entry for this account. # Corresponds to the JSON property `gecos` # @return [String] @@ -152,6 +157,7 @@ module Google # Update properties of this object def update!(**args) + @account_id = args[:account_id] if args.key?(:account_id) @gecos = args[:gecos] if args.key?(:gecos) @gid = args[:gid] if args.key?(:gid) @home_directory = args[:home_directory] if args.key?(:home_directory) @@ -163,7 +169,7 @@ module Google end end - # The SSH public key information associated with a Directory API User. + # The SSH public key information associated with a Google account. class SshPublicKey include Google::Apis::Core::Hashable @@ -172,8 +178,7 @@ module Google # @return [Fixnum] attr_accessor :expiration_time_usec - # The SHA-256 fingerprint of the SSH public key. - # Output only. + # Output only. The SHA-256 fingerprint of the SSH public key. # Corresponds to the JSON property `fingerprint` # @return [String] attr_accessor :fingerprint diff --git a/generated/google/apis/oslogin_v1alpha/representations.rb b/generated/google/apis/oslogin_v1alpha/representations.rb index de2bebae9..200645732 100644 --- a/generated/google/apis/oslogin_v1alpha/representations.rb +++ b/generated/google/apis/oslogin_v1alpha/representations.rb @@ -81,6 +81,7 @@ module Google class PosixAccount # @private class Representation < Google::Apis::Core::JsonRepresentation + property :account_id, as: 'accountId' property :gecos, as: 'gecos' property :gid, :numeric_string => true, as: 'gid' property :home_directory, as: 'homeDirectory' diff --git a/generated/google/apis/oslogin_v1alpha/service.rb b/generated/google/apis/oslogin_v1alpha/service.rb index 4e50b745d..6c95d62a8 100644 --- a/generated/google/apis/oslogin_v1alpha/service.rb +++ b/generated/google/apis/oslogin_v1alpha/service.rb @@ -84,6 +84,8 @@ module Google # @param [String] parent # The unique ID for the user in format `users/`user``. # @param [Google::Apis::OsloginV1alpha::SshPublicKey] ssh_public_key_object + # @param [String] project_id + # The project ID of the Google Cloud Platform project. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -101,13 +103,46 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def import_user_ssh_public_key(parent, ssh_public_key_object = nil, fields: nil, quota_user: nil, options: nil, &block) + def import_user_ssh_public_key(parent, ssh_public_key_object = nil, project_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1alpha/{+parent}:importSshPublicKey', options) command.request_representation = Google::Apis::OsloginV1alpha::SshPublicKey::Representation command.request_object = ssh_public_key_object command.response_representation = Google::Apis::OsloginV1alpha::ImportSshPublicKeyResponse::Representation command.response_class = Google::Apis::OsloginV1alpha::ImportSshPublicKeyResponse command.params['parent'] = parent unless parent.nil? + command.query['projectId'] = project_id unless project_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Deletes a POSIX account. + # @param [String] name + # A reference to the POSIX account to update. POSIX accounts are identified + # by the project ID they are associated with. A reference to the POSIX + # account is in format `users/`user`/projects/`project``. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::OsloginV1alpha::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::OsloginV1alpha::Empty] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_user_project(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1alpha/{+name}', options) + command.response_representation = Google::Apis::OsloginV1alpha::Empty::Representation + command.response_class = Google::Apis::OsloginV1alpha::Empty + command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) diff --git a/generated/google/apis/oslogin_v1beta.rb b/generated/google/apis/oslogin_v1beta.rb index 14e364fdc..df80a556c 100644 --- a/generated/google/apis/oslogin_v1beta.rb +++ b/generated/google/apis/oslogin_v1beta.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/compute/docs/oslogin/rest/ module OsloginV1beta VERSION = 'V1beta' - REVISION = '20170926' + REVISION = '20171031' # 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/oslogin_v1beta/classes.rb b/generated/google/apis/oslogin_v1beta/classes.rb index 5012f3b79..9074f68e8 100644 --- a/generated/google/apis/oslogin_v1beta/classes.rb +++ b/generated/google/apis/oslogin_v1beta/classes.rb @@ -101,10 +101,15 @@ module Google end end - # The POSIX account information associated with a Directory API User. + # The POSIX account information associated with a Google account. class PosixAccount include Google::Apis::Core::Hashable + # Output only. A POSIX account identifier. + # Corresponds to the JSON property `accountId` + # @return [String] + attr_accessor :account_id + # The GECOS (user information) entry for this account. # Corresponds to the JSON property `gecos` # @return [String] @@ -153,6 +158,7 @@ module Google # Update properties of this object def update!(**args) + @account_id = args[:account_id] if args.key?(:account_id) @gecos = args[:gecos] if args.key?(:gecos) @gid = args[:gid] if args.key?(:gid) @home_directory = args[:home_directory] if args.key?(:home_directory) @@ -164,7 +170,7 @@ module Google end end - # The SSH public key information associated with a Directory API User. + # The SSH public key information associated with a Google account. class SshPublicKey include Google::Apis::Core::Hashable @@ -173,8 +179,7 @@ module Google # @return [Fixnum] attr_accessor :expiration_time_usec - # The SHA-256 fingerprint of the SSH public key. - # Output only. + # Output only. The SHA-256 fingerprint of the SSH public key. # Corresponds to the JSON property `fingerprint` # @return [String] attr_accessor :fingerprint diff --git a/generated/google/apis/oslogin_v1beta/representations.rb b/generated/google/apis/oslogin_v1beta/representations.rb index b3d51fb83..a32d0e6da 100644 --- a/generated/google/apis/oslogin_v1beta/representations.rb +++ b/generated/google/apis/oslogin_v1beta/representations.rb @@ -81,6 +81,7 @@ module Google class PosixAccount # @private class Representation < Google::Apis::Core::JsonRepresentation + property :account_id, as: 'accountId' property :gecos, as: 'gecos' property :gid, :numeric_string => true, as: 'gid' property :home_directory, as: 'homeDirectory' diff --git a/generated/google/apis/oslogin_v1beta/service.rb b/generated/google/apis/oslogin_v1beta/service.rb index ce12e9897..0b5847dc9 100644 --- a/generated/google/apis/oslogin_v1beta/service.rb +++ b/generated/google/apis/oslogin_v1beta/service.rb @@ -84,6 +84,8 @@ module Google # @param [String] parent # The unique ID for the user in format `users/`user``. # @param [Google::Apis::OsloginV1beta::SshPublicKey] ssh_public_key_object + # @param [String] project_id + # The project ID of the Google Cloud Platform project. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -101,13 +103,46 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def import_user_ssh_public_key(parent, ssh_public_key_object = nil, fields: nil, quota_user: nil, options: nil, &block) + def import_user_ssh_public_key(parent, ssh_public_key_object = nil, project_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta/{+parent}:importSshPublicKey', options) command.request_representation = Google::Apis::OsloginV1beta::SshPublicKey::Representation command.request_object = ssh_public_key_object command.response_representation = Google::Apis::OsloginV1beta::ImportSshPublicKeyResponse::Representation command.response_class = Google::Apis::OsloginV1beta::ImportSshPublicKeyResponse command.params['parent'] = parent unless parent.nil? + command.query['projectId'] = project_id unless project_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Deletes a POSIX account. + # @param [String] name + # A reference to the POSIX account to update. POSIX accounts are identified + # by the project ID they are associated with. A reference to the POSIX + # account is in format `users/`user`/projects/`project``. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::OsloginV1beta::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::OsloginV1beta::Empty] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_user_project(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta/{+name}', options) + command.response_representation = Google::Apis::OsloginV1beta::Empty::Representation + command.response_class = Google::Apis::OsloginV1beta::Empty + command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) diff --git a/generated/google/apis/partners_v2.rb b/generated/google/apis/partners_v2.rb index e28d02679..33d37f25e 100644 --- a/generated/google/apis/partners_v2.rb +++ b/generated/google/apis/partners_v2.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/partners/ module PartnersV2 VERSION = 'V2' - REVISION = '20171011' + REVISION = '20171031' end end end diff --git a/generated/google/apis/partners_v2/classes.rb b/generated/google/apis/partners_v2/classes.rb index 16cd12199..7d980d6d6 100644 --- a/generated/google/apis/partners_v2/classes.rb +++ b/generated/google/apis/partners_v2/classes.rb @@ -1064,36 +1064,6 @@ module Google # specified otherwise, this must conform to the # WGS84 # standard. Values must be within normalized ranges. - # Example of normalization code in Python: - # def NormalizeLongitude(longitude): - # """Wraps decimal degrees longitude to [-180.0, 180.0].""" - # q, r = divmod(longitude, 360.0) - # if r > 180.0 or (r == 180.0 and q <= -1.0): - # return r - 360.0 - # return r - # def NormalizeLatLng(latitude, longitude): - # """Wraps decimal degrees latitude and longitude to - # [-90.0, 90.0] and [-180.0, 180.0], respectively.""" - # r = latitude % 360.0 - # if r <= 90.0: - # return r, NormalizeLongitude(longitude) - # elif r >= 270.0: - # return r - 360, NormalizeLongitude(longitude) - # else: - # return 180 - r, NormalizeLongitude(longitude + 180.0) - # assert 180.0 == NormalizeLongitude(180.0) - # assert -180.0 == NormalizeLongitude(-180.0) - # assert -179.0 == NormalizeLongitude(181.0) - # assert (0.0, 0.0) == NormalizeLatLng(360.0, 0.0) - # assert (0.0, 0.0) == NormalizeLatLng(-360.0, 0.0) - # assert (85.0, 180.0) == NormalizeLatLng(95.0, 0.0) - # assert (-85.0, -170.0) == NormalizeLatLng(-95.0, 10.0) - # assert (90.0, 10.0) == NormalizeLatLng(90.0, 10.0) - # assert (-90.0, -10.0) == NormalizeLatLng(-90.0, -10.0) - # assert (0.0, -170.0) == NormalizeLatLng(-180.0, 10.0) - # assert (0.0, -170.0) == NormalizeLatLng(180.0, 10.0) - # assert (-90.0, 10.0) == NormalizeLatLng(270.0, 10.0) - # assert (90.0, 10.0) == NormalizeLatLng(-270.0, 10.0) class LatLng include Google::Apis::Core::Hashable @@ -1530,36 +1500,6 @@ module Google # specified otherwise, this must conform to the # WGS84 # standard. Values must be within normalized ranges. - # Example of normalization code in Python: - # def NormalizeLongitude(longitude): - # """Wraps decimal degrees longitude to [-180.0, 180.0].""" - # q, r = divmod(longitude, 360.0) - # if r > 180.0 or (r == 180.0 and q <= -1.0): - # return r - 360.0 - # return r - # def NormalizeLatLng(latitude, longitude): - # """Wraps decimal degrees latitude and longitude to - # [-90.0, 90.0] and [-180.0, 180.0], respectively.""" - # r = latitude % 360.0 - # if r <= 90.0: - # return r, NormalizeLongitude(longitude) - # elif r >= 270.0: - # return r - 360, NormalizeLongitude(longitude) - # else: - # return 180 - r, NormalizeLongitude(longitude + 180.0) - # assert 180.0 == NormalizeLongitude(180.0) - # assert -180.0 == NormalizeLongitude(-180.0) - # assert -179.0 == NormalizeLongitude(181.0) - # assert (0.0, 0.0) == NormalizeLatLng(360.0, 0.0) - # assert (0.0, 0.0) == NormalizeLatLng(-360.0, 0.0) - # assert (85.0, 180.0) == NormalizeLatLng(95.0, 0.0) - # assert (-85.0, -170.0) == NormalizeLatLng(-95.0, 10.0) - # assert (90.0, 10.0) == NormalizeLatLng(90.0, 10.0) - # assert (-90.0, -10.0) == NormalizeLatLng(-90.0, -10.0) - # assert (0.0, -170.0) == NormalizeLatLng(-180.0, 10.0) - # assert (0.0, -170.0) == NormalizeLatLng(180.0, 10.0) - # assert (-90.0, 10.0) == NormalizeLatLng(270.0, 10.0) - # assert (90.0, 10.0) == NormalizeLatLng(-270.0, 10.0) # Corresponds to the JSON property `latLng` # @return [Google::Apis::PartnersV2::LatLng] attr_accessor :lat_lng diff --git a/generated/google/apis/runtimeconfig_v1beta1.rb b/generated/google/apis/runtimeconfig_v1beta1.rb index 0436b3fe3..1c704fde2 100644 --- a/generated/google/apis/runtimeconfig_v1beta1.rb +++ b/generated/google/apis/runtimeconfig_v1beta1.rb @@ -28,7 +28,7 @@ module Google # @see https://cloud.google.com/deployment-manager/runtime-configurator/ module RuntimeconfigV1beta1 VERSION = 'V1beta1' - REVISION = '20170829' + REVISION = '20171030' # 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/runtimeconfig_v1beta1/classes.rb b/generated/google/apis/runtimeconfig_v1beta1/classes.rb index 0bb55f119..e4c6e7a6e 100644 --- a/generated/google/apis/runtimeconfig_v1beta1/classes.rb +++ b/generated/google/apis/runtimeconfig_v1beta1/classes.rb @@ -416,8 +416,9 @@ module Google # The resource name of a runtime config. The name must have the format: # projects/[PROJECT_ID]/configs/[CONFIG_NAME] # The `[PROJECT_ID]` must be a valid project ID, and `[CONFIG_NAME]` is an - # arbitrary name that matches RFC 1035 segment specification. The length of - # `[CONFIG_NAME]` must be less than 64 bytes. + # arbitrary name that matches + # [0-9A-Za-z](?:[_.A-Za-z0-9-]`0,62`[_.A-Za-z0-9])? regular expression. + # The length of `[CONFIG_NAME]` must be less than 64 characters. # You pick the RuntimeConfig resource name, but the server will validate that # the name adheres to this format. After you create the resource, you cannot # change the resource's name. @@ -611,8 +612,9 @@ module Google # dashes. Slashes are used as path element separators and are not part of the # `[VARIABLE_NAME]` itself, so `[VARIABLE_NAME]` must contain at least one # non-slash character. Multiple slashes are coalesced into single slash - # character. Each path segment should follow RFC 1035 segment specification. - # The length of a `[VARIABLE_NAME]` must be less than 256 bytes. + # character. Each path segment should match + # [0-9A-Za-z](?:[_.A-Za-z0-9-]`0,62`[_.A-Za-z0-9])? regular expression. + # The length of a `[VARIABLE_NAME]` must be less than 256 characters. # Once you create a variable, you cannot change the variable name. # Corresponds to the JSON property `name` # @return [String] diff --git a/generated/google/apis/streetviewpublish_v1.rb b/generated/google/apis/streetviewpublish_v1.rb index ddd85e3aa..602b40f09 100644 --- a/generated/google/apis/streetviewpublish_v1.rb +++ b/generated/google/apis/streetviewpublish_v1.rb @@ -27,7 +27,7 @@ module Google # @see https://developers.google.com/streetview/publish/ module StreetviewpublishV1 VERSION = 'V1' - REVISION = '20171024' + REVISION = '20171101' # Publish and manage your 360 photos on Google Street View AUTH_STREETVIEWPUBLISH = 'https://www.googleapis.com/auth/streetviewpublish' diff --git a/generated/google/apis/streetviewpublish_v1/service.rb b/generated/google/apis/streetviewpublish_v1/service.rb index 6a75ae987..083c24640 100644 --- a/generated/google/apis/streetviewpublish_v1/service.rb +++ b/generated/google/apis/streetviewpublish_v1/service.rb @@ -61,7 +61,8 @@ module Google # `pose.altitude`, and `pose.level` fields in Pose are ignored for # CreatePhoto. # This method returns the following error codes: - # * google.rpc.Code.INVALID_ARGUMENT if the request is malformed. + # * google.rpc.Code.INVALID_ARGUMENT if the request is malformed or if + # the uploaded photo is not a 360 photo. # * google.rpc.Code.NOT_FOUND if the upload reference does not exist. # * google.rpc.Code.RESOURCE_EXHAUSTED if the account has reached the # storage limit.