Autogenerated update (2019-03-19)
Update: - adexchangebuyer2_v2beta1 - cloudshell_v1 - cloudshell_v1alpha1 - docs_v1 - oauth2_v1 - oauth2_v2 - people_v1
This commit is contained in:
parent
2262b94ea4
commit
dc4c35b313
|
@ -71041,6 +71041,14 @@
|
|||
"/docs:v1/InsertInlineImageResponse/objectId": object_id_prop
|
||||
"/docs:v1/InsertInlineSheetsChartResponse": insert_inline_sheets_chart_response
|
||||
"/docs:v1/InsertInlineSheetsChartResponse/objectId": object_id_prop
|
||||
"/docs:v1/InsertPageBreakRequest": insert_page_break_request
|
||||
"/docs:v1/InsertPageBreakRequest/endOfSegmentLocation": end_of_segment_location
|
||||
"/docs:v1/InsertPageBreakRequest/location": location
|
||||
"/docs:v1/InsertTableRequest": insert_table_request
|
||||
"/docs:v1/InsertTableRequest/columns": columns
|
||||
"/docs:v1/InsertTableRequest/endOfSegmentLocation": end_of_segment_location
|
||||
"/docs:v1/InsertTableRequest/location": location
|
||||
"/docs:v1/InsertTableRequest/rows": rows
|
||||
"/docs:v1/InsertTableRowRequest": insert_table_row_request
|
||||
"/docs:v1/InsertTableRowRequest/insertBelow": insert_below
|
||||
"/docs:v1/InsertTableRowRequest/tableCellLocation": table_cell_location
|
||||
|
@ -71240,6 +71248,8 @@
|
|||
"/docs:v1/Request/deleteTableColumn": delete_table_column
|
||||
"/docs:v1/Request/deleteTableRow": delete_table_row
|
||||
"/docs:v1/Request/insertInlineImage": insert_inline_image
|
||||
"/docs:v1/Request/insertPageBreak": insert_page_break
|
||||
"/docs:v1/Request/insertTable": insert_table
|
||||
"/docs:v1/Request/insertTableRow": insert_table_row
|
||||
"/docs:v1/Request/insertText": insert_text
|
||||
"/docs:v1/Request/replaceAllText": replace_all_text
|
||||
|
@ -71458,6 +71468,7 @@
|
|||
"/docs:v1/WeightedFontFamily/weight": weight
|
||||
"/docs:v1/WriteControl": write_control
|
||||
"/docs:v1/WriteControl/requiredRevisionId": required_revision_id
|
||||
"/docs:v1/WriteControl/targetRevisionId": target_revision_id
|
||||
"/docs:v1/docs.documents.batchUpdate": batch_update_document
|
||||
"/docs:v1/docs.documents.batchUpdate/documentId": document_id
|
||||
"/docs:v1/docs.documents.create": create_document
|
||||
|
|
|
@ -27,7 +27,7 @@ module Google
|
|||
# @see https://developers.google.com/authorized-buyers/apis/reference/rest/
|
||||
module Adexchangebuyer2V2beta1
|
||||
VERSION = 'V2beta1'
|
||||
REVISION = '20190307'
|
||||
REVISION = '20190315'
|
||||
|
||||
# Manage your Ad Exchange buyer account configuration
|
||||
AUTH_ADEXCHANGE_BUYER = 'https://www.googleapis.com/auth/adexchange.buyer'
|
||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
|||
# @see https://cloud.google.com/shell/docs/
|
||||
module CloudshellV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20180602'
|
||||
REVISION = '20190318'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -168,14 +168,14 @@ module Google
|
|||
attr_accessor :done
|
||||
alias_method :done?, :done
|
||||
|
||||
# The `Status` type defines a logical error model that is suitable for different
|
||||
# programming environments, including REST APIs and RPC APIs. It is used by
|
||||
# [gRPC](https://github.com/grpc). The error model is designed to be:
|
||||
# The `Status` type defines a logical error model that is suitable for
|
||||
# different programming environments, including REST APIs and RPC APIs. It is
|
||||
# used by [gRPC](https://github.com/grpc). The error model is designed to be:
|
||||
# - Simple to use and understand for most users
|
||||
# - Flexible enough to meet unexpected needs
|
||||
# # Overview
|
||||
# The `Status` message contains three pieces of data: error code, error message,
|
||||
# and error details. The error code should be an enum value of
|
||||
# The `Status` message contains three pieces of data: error code, error
|
||||
# message, and error details. The error code should be an enum value of
|
||||
# google.rpc.Code, but it may accept additional error codes if needed. The
|
||||
# error message should be a developer-facing English message that helps
|
||||
# developers *understand* and *resolve* the error. If a localized user-facing
|
||||
|
@ -333,14 +333,14 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
# The `Status` type defines a logical error model that is suitable for different
|
||||
# programming environments, including REST APIs and RPC APIs. It is used by
|
||||
# [gRPC](https://github.com/grpc). The error model is designed to be:
|
||||
# The `Status` type defines a logical error model that is suitable for
|
||||
# different programming environments, including REST APIs and RPC APIs. It is
|
||||
# used by [gRPC](https://github.com/grpc). The error model is designed to be:
|
||||
# - Simple to use and understand for most users
|
||||
# - Flexible enough to meet unexpected needs
|
||||
# # Overview
|
||||
# The `Status` message contains three pieces of data: error code, error message,
|
||||
# and error details. The error code should be an enum value of
|
||||
# The `Status` message contains three pieces of data: error code, error
|
||||
# message, and error details. The error code should be an enum value of
|
||||
# google.rpc.Code, but it may accept additional error codes if needed. The
|
||||
# error message should be a developer-facing English message that helps
|
||||
# developers *understand* and *resolve* the error. If a localized user-facing
|
||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
|||
# @see https://cloud.google.com/shell/docs/
|
||||
module CloudshellV1alpha1
|
||||
VERSION = 'V1alpha1'
|
||||
REVISION = '20190227'
|
||||
REVISION = '20190318'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -175,14 +175,14 @@ module Google
|
|||
attr_accessor :done
|
||||
alias_method :done?, :done
|
||||
|
||||
# The `Status` type defines a logical error model that is suitable for different
|
||||
# programming environments, including REST APIs and RPC APIs. It is used by
|
||||
# [gRPC](https://github.com/grpc). The error model is designed to be:
|
||||
# The `Status` type defines a logical error model that is suitable for
|
||||
# different programming environments, including REST APIs and RPC APIs. It is
|
||||
# used by [gRPC](https://github.com/grpc). The error model is designed to be:
|
||||
# - Simple to use and understand for most users
|
||||
# - Flexible enough to meet unexpected needs
|
||||
# # Overview
|
||||
# The `Status` message contains three pieces of data: error code, error message,
|
||||
# and error details. The error code should be an enum value of
|
||||
# The `Status` message contains three pieces of data: error code, error
|
||||
# message, and error details. The error code should be an enum value of
|
||||
# google.rpc.Code, but it may accept additional error codes if needed. The
|
||||
# error message should be a developer-facing English message that helps
|
||||
# developers *understand* and *resolve* the error. If a localized user-facing
|
||||
|
@ -362,14 +362,14 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
# The `Status` type defines a logical error model that is suitable for different
|
||||
# programming environments, including REST APIs and RPC APIs. It is used by
|
||||
# [gRPC](https://github.com/grpc). The error model is designed to be:
|
||||
# The `Status` type defines a logical error model that is suitable for
|
||||
# different programming environments, including REST APIs and RPC APIs. It is
|
||||
# used by [gRPC](https://github.com/grpc). The error model is designed to be:
|
||||
# - Simple to use and understand for most users
|
||||
# - Flexible enough to meet unexpected needs
|
||||
# # Overview
|
||||
# The `Status` message contains three pieces of data: error code, error message,
|
||||
# and error details. The error code should be an enum value of
|
||||
# The `Status` message contains three pieces of data: error code, error
|
||||
# message, and error details. The error code should be an enum value of
|
||||
# google.rpc.Code, but it may accept additional error codes if needed. The
|
||||
# error message should be a developer-facing English message that helps
|
||||
# developers *understand* and *resolve* the error. If a localized user-facing
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://developers.google.com/docs/
|
||||
module DocsV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20190207'
|
||||
REVISION = '20190312'
|
||||
|
||||
# View and manage your Google Docs documents
|
||||
AUTH_DOCUMENTS = 'https://www.googleapis.com/auth/documents'
|
||||
|
|
|
@ -1986,6 +1986,71 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
# Inserts a page break followed by a newline at the specified location.
|
||||
class InsertPageBreakRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Location at the end of a body, header, footer or footnote. The location is
|
||||
# immediately before the last newline in the document segment.
|
||||
# Corresponds to the JSON property `endOfSegmentLocation`
|
||||
# @return [Google::Apis::DocsV1::EndOfSegmentLocation]
|
||||
attr_accessor :end_of_segment_location
|
||||
|
||||
# A particular location in the document.
|
||||
# Corresponds to the JSON property `location`
|
||||
# @return [Google::Apis::DocsV1::Location]
|
||||
attr_accessor :location
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@end_of_segment_location = args[:end_of_segment_location] if args.key?(:end_of_segment_location)
|
||||
@location = args[:location] if args.key?(:location)
|
||||
end
|
||||
end
|
||||
|
||||
# Inserts a table at the specified location.
|
||||
# A newline character will be inserted before the inserted table.
|
||||
class InsertTableRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The number of columns in the table.
|
||||
# Corresponds to the JSON property `columns`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :columns
|
||||
|
||||
# Location at the end of a body, header, footer or footnote. The location is
|
||||
# immediately before the last newline in the document segment.
|
||||
# Corresponds to the JSON property `endOfSegmentLocation`
|
||||
# @return [Google::Apis::DocsV1::EndOfSegmentLocation]
|
||||
attr_accessor :end_of_segment_location
|
||||
|
||||
# A particular location in the document.
|
||||
# Corresponds to the JSON property `location`
|
||||
# @return [Google::Apis::DocsV1::Location]
|
||||
attr_accessor :location
|
||||
|
||||
# The number of rows in the table.
|
||||
# Corresponds to the JSON property `rows`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :rows
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@columns = args[:columns] if args.key?(:columns)
|
||||
@end_of_segment_location = args[:end_of_segment_location] if args.key?(:end_of_segment_location)
|
||||
@location = args[:location] if args.key?(:location)
|
||||
@rows = args[:rows] if args.key?(:rows)
|
||||
end
|
||||
end
|
||||
|
||||
# Inserts an empty row into a table.
|
||||
class InsertTableRowRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
@ -3595,6 +3660,17 @@ module Google
|
|||
# @return [Google::Apis::DocsV1::InsertInlineImageRequest]
|
||||
attr_accessor :insert_inline_image
|
||||
|
||||
# Inserts a page break followed by a newline at the specified location.
|
||||
# Corresponds to the JSON property `insertPageBreak`
|
||||
# @return [Google::Apis::DocsV1::InsertPageBreakRequest]
|
||||
attr_accessor :insert_page_break
|
||||
|
||||
# Inserts a table at the specified location.
|
||||
# A newline character will be inserted before the inserted table.
|
||||
# Corresponds to the JSON property `insertTable`
|
||||
# @return [Google::Apis::DocsV1::InsertTableRequest]
|
||||
attr_accessor :insert_table
|
||||
|
||||
# Inserts an empty row into a table.
|
||||
# Corresponds to the JSON property `insertTableRow`
|
||||
# @return [Google::Apis::DocsV1::InsertTableRowRequest]
|
||||
|
@ -3635,6 +3711,8 @@ module Google
|
|||
@delete_table_column = args[:delete_table_column] if args.key?(:delete_table_column)
|
||||
@delete_table_row = args[:delete_table_row] if args.key?(:delete_table_row)
|
||||
@insert_inline_image = args[:insert_inline_image] if args.key?(:insert_inline_image)
|
||||
@insert_page_break = args[:insert_page_break] if args.key?(:insert_page_break)
|
||||
@insert_table = args[:insert_table] if args.key?(:insert_table)
|
||||
@insert_table_row = args[:insert_table_row] if args.key?(:insert_table_row)
|
||||
@insert_text = args[:insert_text] if args.key?(:insert_text)
|
||||
@replace_all_text = args[:replace_all_text] if args.key?(:replace_all_text)
|
||||
|
@ -5331,15 +5409,36 @@ module Google
|
|||
class WriteControl
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The ID of the revision of the document that the write request will be
|
||||
# applied to. If this is not the latest revision of the document, the
|
||||
# request will not be processed and will return a 400 bad request error.
|
||||
# The revision ID of the
|
||||
# document that the write request will be applied to. If this is not the
|
||||
# latest revision of the document, the request will not be processed and
|
||||
# will return a 400 bad request error.
|
||||
# When a required revision ID is returned in a response, it indicates the
|
||||
# revision ID of the document after the request was applied.
|
||||
# Corresponds to the JSON property `requiredRevisionId`
|
||||
# @return [String]
|
||||
attr_accessor :required_revision_id
|
||||
|
||||
# The target revision ID of the
|
||||
# document that the write request will be applied to.
|
||||
# If collaborator changes have occurred after the document was read using
|
||||
# the API, the changes produced by this write request will be transformed
|
||||
# against the collaborator changes. This results in a new revision of the
|
||||
# document which incorporates both the changes in the request and the
|
||||
# collaborator changes, and the Docs server will resolve conflicting
|
||||
# changes. When using `target_revision_id`, the API client can be thought
|
||||
# of as another collaborator of the document.
|
||||
# The target revision ID may only be used to write to recent versions of a
|
||||
# document. If the target revision is too far behind the latest revision,
|
||||
# the request will not be processed and will return a 400 bad request error
|
||||
# and the request should be retried after reading the latest version of the
|
||||
# document. In most cases a `revision_id` will remain valid for use as a
|
||||
# target revision for several minutes after it is read, but for
|
||||
# frequently-edited documents this window may be shorter.
|
||||
# Corresponds to the JSON property `targetRevisionId`
|
||||
# @return [String]
|
||||
attr_accessor :target_revision_id
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
@ -5347,6 +5446,7 @@ module Google
|
|||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@required_revision_id = args[:required_revision_id] if args.key?(:required_revision_id)
|
||||
@target_revision_id = args[:target_revision_id] if args.key?(:target_revision_id)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -304,6 +304,18 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class InsertPageBreakRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class InsertTableRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class InsertTableRowRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -1296,6 +1308,28 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class InsertPageBreakRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :end_of_segment_location, as: 'endOfSegmentLocation', class: Google::Apis::DocsV1::EndOfSegmentLocation, decorator: Google::Apis::DocsV1::EndOfSegmentLocation::Representation
|
||||
|
||||
property :location, as: 'location', class: Google::Apis::DocsV1::Location, decorator: Google::Apis::DocsV1::Location::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class InsertTableRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :columns, as: 'columns'
|
||||
property :end_of_segment_location, as: 'endOfSegmentLocation', class: Google::Apis::DocsV1::EndOfSegmentLocation, decorator: Google::Apis::DocsV1::EndOfSegmentLocation::Representation
|
||||
|
||||
property :location, as: 'location', class: Google::Apis::DocsV1::Location, decorator: Google::Apis::DocsV1::Location::Representation
|
||||
|
||||
property :rows, as: 'rows'
|
||||
end
|
||||
end
|
||||
|
||||
class InsertTableRowRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
@ -1714,6 +1748,10 @@ module Google
|
|||
|
||||
property :insert_inline_image, as: 'insertInlineImage', class: Google::Apis::DocsV1::InsertInlineImageRequest, decorator: Google::Apis::DocsV1::InsertInlineImageRequest::Representation
|
||||
|
||||
property :insert_page_break, as: 'insertPageBreak', class: Google::Apis::DocsV1::InsertPageBreakRequest, decorator: Google::Apis::DocsV1::InsertPageBreakRequest::Representation
|
||||
|
||||
property :insert_table, as: 'insertTable', class: Google::Apis::DocsV1::InsertTableRequest, decorator: Google::Apis::DocsV1::InsertTableRequest::Representation
|
||||
|
||||
property :insert_table_row, as: 'insertTableRow', class: Google::Apis::DocsV1::InsertTableRowRequest, decorator: Google::Apis::DocsV1::InsertTableRowRequest::Representation
|
||||
|
||||
property :insert_text, as: 'insertText', class: Google::Apis::DocsV1::InsertTextRequest, decorator: Google::Apis::DocsV1::InsertTextRequest::Representation
|
||||
|
@ -2202,6 +2240,7 @@ module Google
|
|||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :required_revision_id, as: 'requiredRevisionId'
|
||||
property :target_revision_id, as: 'targetRevisionId'
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -25,10 +25,7 @@ module Google
|
|||
# @see https://developers.google.com/accounts/docs/OAuth2
|
||||
module Oauth2V1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20190129'
|
||||
|
||||
# View your basic profile info, including your age range and language
|
||||
AUTH_PLUS_LOGIN = 'https://www.googleapis.com/auth/plus.login'
|
||||
REVISION = '20190313'
|
||||
|
||||
# Know who you are on Google
|
||||
AUTH_PLUS_ME = 'https://www.googleapis.com/auth/plus.me'
|
||||
|
|
|
@ -22,130 +22,6 @@ module Google
|
|||
module Apis
|
||||
module Oauth2V1
|
||||
|
||||
#
|
||||
class Jwk
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
#
|
||||
# Corresponds to the JSON property `keys`
|
||||
# @return [Array<Google::Apis::Oauth2V1::Jwk::Key>]
|
||||
attr_accessor :keys
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@keys = args[:keys] if args.key?(:keys)
|
||||
end
|
||||
|
||||
#
|
||||
class Key
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
#
|
||||
# Corresponds to the JSON property `alg`
|
||||
# @return [String]
|
||||
attr_accessor :alg
|
||||
|
||||
#
|
||||
# Corresponds to the JSON property `e`
|
||||
# @return [String]
|
||||
attr_accessor :e
|
||||
|
||||
#
|
||||
# Corresponds to the JSON property `kid`
|
||||
# @return [String]
|
||||
attr_accessor :kid
|
||||
|
||||
#
|
||||
# Corresponds to the JSON property `kty`
|
||||
# @return [String]
|
||||
attr_accessor :kty
|
||||
|
||||
#
|
||||
# Corresponds to the JSON property `n`
|
||||
# @return [String]
|
||||
attr_accessor :n
|
||||
|
||||
#
|
||||
# Corresponds to the JSON property `use`
|
||||
# @return [String]
|
||||
attr_accessor :use
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@alg = args[:alg] if args.key?(:alg)
|
||||
@e = args[:e] if args.key?(:e)
|
||||
@kid = args[:kid] if args.key?(:kid)
|
||||
@kty = args[:kty] if args.key?(:kty)
|
||||
@n = args[:n] if args.key?(:n)
|
||||
@use = args[:use] if args.key?(:use)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class Raw
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
#
|
||||
# Corresponds to the JSON property `keyvalues`
|
||||
# @return [Array<Google::Apis::Oauth2V1::Raw::Keyvalue>]
|
||||
attr_accessor :keyvalues
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@keyvalues = args[:keyvalues] if args.key?(:keyvalues)
|
||||
end
|
||||
|
||||
#
|
||||
class Keyvalue
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
#
|
||||
# Corresponds to the JSON property `algorithm`
|
||||
# @return [String]
|
||||
attr_accessor :algorithm
|
||||
|
||||
#
|
||||
# Corresponds to the JSON property `exponent`
|
||||
# @return [String]
|
||||
attr_accessor :exponent
|
||||
|
||||
#
|
||||
# Corresponds to the JSON property `keyid`
|
||||
# @return [String]
|
||||
attr_accessor :keyid
|
||||
|
||||
#
|
||||
# Corresponds to the JSON property `modulus`
|
||||
# @return [String]
|
||||
attr_accessor :modulus
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@algorithm = args[:algorithm] if args.key?(:algorithm)
|
||||
@exponent = args[:exponent] if args.key?(:exponent)
|
||||
@keyid = args[:keyid] if args.key?(:keyid)
|
||||
@modulus = args[:modulus] if args.key?(:modulus)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class Tokeninfo
|
||||
include Google::Apis::Core::Hashable
|
||||
|
|
|
@ -22,30 +22,6 @@ module Google
|
|||
module Apis
|
||||
module Oauth2V1
|
||||
|
||||
class Jwk
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
class Key
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Raw
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
class Keyvalue
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Tokeninfo
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -58,44 +34,6 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Jwk
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :keys, as: 'keys', class: Google::Apis::Oauth2V1::Jwk::Key, decorator: Google::Apis::Oauth2V1::Jwk::Key::Representation
|
||||
|
||||
end
|
||||
|
||||
class Key
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :alg, as: 'alg'
|
||||
property :e, as: 'e'
|
||||
property :kid, as: 'kid'
|
||||
property :kty, as: 'kty'
|
||||
property :n, as: 'n'
|
||||
property :use, as: 'use'
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
class Raw
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :keyvalues, as: 'keyvalues', class: Google::Apis::Oauth2V1::Raw::Keyvalue, decorator: Google::Apis::Oauth2V1::Raw::Keyvalue::Representation
|
||||
|
||||
end
|
||||
|
||||
class Keyvalue
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :algorithm, as: 'algorithm'
|
||||
property :exponent, as: 'exponent'
|
||||
property :keyid, as: 'keyid'
|
||||
property :modulus, as: 'modulus'
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
class Tokeninfo
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
|
|
@ -51,165 +51,6 @@ module Google
|
|||
@batch_path = 'batch/oauth2/v1'
|
||||
end
|
||||
|
||||
#
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
||||
# characters.
|
||||
# @param [String] user_ip
|
||||
# Deprecated. Please use quotaUser instead.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Hash<String,String>] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Hash<String,String>]
|
||||
#
|
||||
# @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 get_cert_for_open_id_connect(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'oauth2/v1/certs', options)
|
||||
command.response_representation = Hash<String,String>::Representation
|
||||
command.response_class = Hash<String,String>
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
#
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
||||
# characters.
|
||||
# @param [String] user_ip
|
||||
# Deprecated. Please use quotaUser instead.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::Oauth2V1::Raw] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::Oauth2V1::Raw]
|
||||
#
|
||||
# @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 get_cert_for_open_id_connect_raw(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'oauth2/v1/raw_public_keys', options)
|
||||
command.response_representation = Google::Apis::Oauth2V1::Raw::Representation
|
||||
command.response_class = Google::Apis::Oauth2V1::Raw
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
#
|
||||
# @param [String] robot_email
|
||||
# The email of robot account.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
||||
# characters.
|
||||
# @param [String] user_ip
|
||||
# Deprecated. Please use quotaUser instead.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::Oauth2V1::Jwk] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::Oauth2V1::Jwk]
|
||||
#
|
||||
# @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 get_robot_jwk(robot_email, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'service_accounts/v1/jwk/{robotEmail}', options)
|
||||
command.response_representation = Google::Apis::Oauth2V1::Jwk::Representation
|
||||
command.response_class = Google::Apis::Oauth2V1::Jwk
|
||||
command.params['robotEmail'] = robot_email unless robot_email.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
#
|
||||
# @param [String] robot_email
|
||||
# The email of robot account.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
||||
# characters.
|
||||
# @param [String] user_ip
|
||||
# Deprecated. Please use quotaUser instead.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::Oauth2V1::Raw] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::Oauth2V1::Raw]
|
||||
#
|
||||
# @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 get_robot_metadata_raw(robot_email, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'service_accounts/v1/metadata/raw/{robotEmail}', options)
|
||||
command.response_representation = Google::Apis::Oauth2V1::Raw::Representation
|
||||
command.response_class = Google::Apis::Oauth2V1::Raw
|
||||
command.params['robotEmail'] = robot_email unless robot_email.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
#
|
||||
# @param [String] robot_email
|
||||
# The email of robot account.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
||||
# characters.
|
||||
# @param [String] user_ip
|
||||
# Deprecated. Please use quotaUser instead.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Hash<String,String>] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Hash<String,String>]
|
||||
#
|
||||
# @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 get_robot_metadata_x509(robot_email, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'service_accounts/v1/metadata/x509/{robotEmail}', options)
|
||||
command.response_representation = Hash<String,String>::Representation
|
||||
command.response_class = Hash<String,String>
|
||||
command.params['robotEmail'] = robot_email unless robot_email.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Get token info
|
||||
# @param [String] access_token
|
||||
# The oauth2 access token
|
||||
|
|
|
@ -25,10 +25,7 @@ module Google
|
|||
# @see https://developers.google.com/accounts/docs/OAuth2
|
||||
module Oauth2V2
|
||||
VERSION = 'V2'
|
||||
REVISION = '20190129'
|
||||
|
||||
# View your basic profile info, including your age range and language
|
||||
AUTH_PLUS_LOGIN = 'https://www.googleapis.com/auth/plus.login'
|
||||
REVISION = '20190313'
|
||||
|
||||
# Know who you are on Google
|
||||
AUTH_PLUS_ME = 'https://www.googleapis.com/auth/plus.me'
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://developers.google.com/people/
|
||||
module PeopleV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20190313'
|
||||
REVISION = '20190316'
|
||||
|
||||
# See, edit, download, and permanently delete your contacts
|
||||
AUTH_CONTACTS = 'https://www.googleapis.com/auth/contacts'
|
||||
|
@ -51,7 +51,7 @@ module Google
|
|||
# View your email address
|
||||
AUTH_USERINFO_EMAIL = 'https://www.googleapis.com/auth/userinfo.email'
|
||||
|
||||
# View your basic profile info
|
||||
# See your personal info, including any personal info you've made publically available
|
||||
AUTH_USERINFO_PROFILE = 'https://www.googleapis.com/auth/userinfo.profile'
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue