Regen APIs
This commit is contained in:
parent
fe1e841ade
commit
64852feb47
|
@ -379,6 +379,19 @@
|
|||
"/compute:v1/compute.targetVpnGateways.insert": insert_target_vpn_gateway
|
||||
"/compute:v1/compute.targetVpnGateways.list": list_target_vpn_gateways
|
||||
"/compute:v1/compute.vpnTunnels.aggregatedList": list_aggregated_vpn_tunnel
|
||||
"/compute:v1/compute.instanceGroupManagers.abandonInstances": abandon_instance_group_manager_instances
|
||||
"/compute:v1/compute.instanceGroupManagers.aggregatedList": list_aggregated_instance_group_managers
|
||||
"/compute:v1/compute.instanceGroupManagers.deleteInstances": delete_instance_group_manager_instances
|
||||
"/compute:v1/compute.instanceGroupManagers.listManagedInstances": list_instance_group_manager_managed_instances
|
||||
"/compute:v1/compute.instanceGroupManagers.recreateInstances": recreate_instance_group_manager_instances
|
||||
"/compute:v1/compute.instanceGroupManagers.resize": resize_instance_group_manager
|
||||
"/compute:v1/compute.instanceGroupManagers.setInstanceTemplate": set_instance_group_manager_instance_template
|
||||
"/compute:v1/compute.instanceGroupManagers.setTargetPools": set_instance_group_manager_target_pools
|
||||
"/compute:v1/compute.instanceGroups.addInstances": add_instance_group_instances
|
||||
"/compute:v1/compute.instanceGroups.aggregatedList": list_aggregated_instance_groups
|
||||
"/compute:v1/compute.instanceGroups.listInstances": list_instance_group_instances
|
||||
"/compute:v1/compute.instanceGroups.removeInstances": remove_instance_group_instances
|
||||
"/compute:v1/compute.instanceGroups.setNamedPorts": set_instance_group_named_ports
|
||||
"/container:v1beta1/container.projects.clusters.list": list_clusters
|
||||
"/container:v1beta1/container.projects.operations.list": list_operations
|
||||
"/container:v1beta1/container.projects.zones.clusters.create": create_cluster
|
||||
|
@ -388,6 +401,15 @@
|
|||
"/container:v1beta1/container.projects.zones.operations.get": get_zone_operation
|
||||
"/container:v1beta1/container.projects.zones.operations.list": list_zone_operations
|
||||
"/container:v1beta1/container.projects.zones.tokens.get": get_zone_token
|
||||
"/container:v1/container.projects.clusters.list": list_clusters
|
||||
"/container:v1/container.projects.operations.list": list_operations
|
||||
"/container:v1/container.projects.zones.clusters.create": create_cluster
|
||||
"/container:v1/container.projects.zones.clusters.delete": delete_zone_cluster
|
||||
"/container:v1/container.projects.zones.clusters.get": get_zone_cluster
|
||||
"/container:v1/container.projects.zones.clusters.list": list_zone_clusters
|
||||
"/container:v1/container.projects.zones.operations.get": get_zone_operation
|
||||
"/container:v1/container.projects.zones.operations.list": list_zone_operations
|
||||
"/container:v1/container.projects.zones.tokens.get": get_zone_token
|
||||
"/content:v2/AccountsAuthInfoResponse": accounts_auth_info_response
|
||||
"/content:v2/AccountsCustomBatchRequest": accounts_custom_batch_request
|
||||
"/content:v2/AccountsCustomBatchRequest": batch_accounts_request
|
||||
|
@ -644,6 +666,26 @@
|
|||
"/genomics:v1beta2/genomics.references.bases.list/start": start_position
|
||||
"/genomics:v1beta2/genomics.referencesets.get": get_reference_set
|
||||
"/genomics:v1beta2/genomics.streamingReadstore.streamreads": stream_reads
|
||||
"/genomics:v1/genomics.callsets.create": create_call_set
|
||||
"/genomics:v1/genomics.callsets.delete": delete_call_set
|
||||
"/genomics:v1/genomics.callsets.get": get_call_set
|
||||
"/genomics:v1/genomics.callsets.patch": patch_call_set
|
||||
"/genomics:v1/genomics.callsets.search": search_call_sets
|
||||
"/genomics:v1/genomics.callsets.update": update_call_set
|
||||
"/genomics:v1/genomics.readgroupsets.align": align_read_group_sets
|
||||
"/genomics:v1/genomics.readgroupsets.call": call_read_group_sets
|
||||
"/genomics:v1/genomics.readgroupsets.coveragebuckets.list": list_coverage_buckets
|
||||
"/genomics:v1/genomics.readgroupsets.delete": delete_read_group_set
|
||||
"/genomics:v1/genomics.readgroupsets.export": export_read_group_sets
|
||||
"/genomics:v1/genomics.readgroupsets.get": get_read_group_set
|
||||
"/genomics:v1/genomics.readgroupsets.import": import_read_group_sets
|
||||
"/genomics:v1/genomics.readgroupsets.patch": patch_read_group_set
|
||||
"/genomics:v1/genomics.readgroupsets.search": search_read_group_sets
|
||||
"/genomics:v1/genomics.readgroupsets.update": update_read_group_set
|
||||
"/genomics:v1/genomics.references.bases.list/end": end_position
|
||||
"/genomics:v1/genomics.references.bases.list/start": start_position
|
||||
"/genomics:v1/genomics.referencesets.get": get_reference_set
|
||||
"/genomics:v1/genomics.streamingReadstore.streamreads": stream_reads
|
||||
"/gmail:v1/gmail.users.getProfile": get_user_profile
|
||||
"/identitytoolkit:v3/IdentitytoolkitRelyingpartyCreateAuthUriRequest": create_auth_uri_request
|
||||
"/identitytoolkit:v3/IdentitytoolkitRelyingpartyDeleteAccountRequest": delete_account_request
|
||||
|
|
1628
api_names_out.yaml
1628
api_names_out.yaml
File diff suppressed because it is too large
Load Diff
|
@ -26,7 +26,7 @@ module Google
|
|||
# @see https://developers.google.com/ad-exchange/buyer-rest
|
||||
module AdexchangebuyerV1_3
|
||||
VERSION = 'V1_3'
|
||||
REVISION = '20150520'
|
||||
REVISION = '20150720'
|
||||
|
||||
# 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://developers.google.com/ad-exchange/seller-rest/
|
||||
module AdexchangesellerV2_0
|
||||
VERSION = 'V2_0'
|
||||
REVISION = '20150624'
|
||||
REVISION = '20150719'
|
||||
|
||||
# View and manage your Ad Exchange data
|
||||
AUTH_ADEXCHANGE_SELLER = 'https://www.googleapis.com/auth/adexchange.seller'
|
||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
|||
# @see https://developers.google.com/adsense/management/
|
||||
module AdsenseV1_4
|
||||
VERSION = 'V1_4'
|
||||
REVISION = '20150624'
|
||||
REVISION = '20150719'
|
||||
|
||||
# View and manage your AdSense data
|
||||
AUTH_ADSENSE = 'https://www.googleapis.com/auth/adsense'
|
||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
|||
# @see https://developers.google.com/adsense/host/
|
||||
module AdsensehostV4_1
|
||||
VERSION = 'V4_1'
|
||||
REVISION = '20150624'
|
||||
REVISION = '20150719'
|
||||
|
||||
# View and manage your AdSense host data and associated accounts
|
||||
AUTH_ADSENSEHOST = 'https://www.googleapis.com/auth/adsensehost'
|
||||
|
|
|
@ -23,9 +23,10 @@ module Google
|
|||
# Allows MDMs/EMMs and enterprises to manage the deployment of apps to Android
|
||||
# for Work users.
|
||||
#
|
||||
# @see https://developers.google.com/play/enterprise
|
||||
module AndroidenterpriseV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20150303'
|
||||
REVISION = '20150715'
|
||||
|
||||
# Manage corporate Android devices
|
||||
AUTH_ANDROIDENTERPRISE = 'https://www.googleapis.com/auth/androidenterprise'
|
||||
|
|
|
@ -145,17 +145,18 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
# App version represents a single APK version.
|
||||
# This represents a single version of the app.
|
||||
class AppVersion
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Unique increasing identifier for the apk version.
|
||||
# Unique increasing identifier for the app version.
|
||||
# Corresponds to the JSON property `versionCode`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :version_code
|
||||
|
||||
# The string used in the Play Store by the app developer to identify a version
|
||||
# of an app. The string is not necessarily unique or localized (e.g. "1.4").
|
||||
# The string used in the Play Store by the app developer to identify the version.
|
||||
# The string is not necessarily unique or localized (for example, the string
|
||||
# could be "1.4").
|
||||
# Corresponds to the JSON property `versionString`
|
||||
# @return [String]
|
||||
attr_accessor :version_string
|
||||
|
@ -612,17 +613,16 @@ module Google
|
|||
# admin approves a product in Google Play, if the product is added to a
|
||||
# collection, or if an entitlement for the product is created for a user via the
|
||||
# API. For paid products, a group license object is only created as part of the
|
||||
# first bulk purchase of that product in Google Play done by the enterprise
|
||||
# admin.
|
||||
# first bulk purchase of that product in Google Play by the enterprise admin.
|
||||
# The API can be used to query group licenses; the available information
|
||||
# includes the total number of licenses purchased (for paid products) and the
|
||||
# total number of licenses that have been provisioned, i.e. the total number of
|
||||
# user entitlements in existence for the product.
|
||||
# Group license objects are never deleted; if e.g. a free app is added to a
|
||||
# collection and then removed, the group license will remain, allowing to keep
|
||||
# track of any remaining entitlements. An enterprise admin may indicate they are
|
||||
# no longer interested in the group license by marking it as unapproved in
|
||||
# Google Play.
|
||||
# total number of licenses that have been provisioned, that is, the total number
|
||||
# of user entitlements in existence for the product.
|
||||
# Group license objects are never deleted. If, for example, a free app is added
|
||||
# to a collection and then removed, the group license will remain, allowing the
|
||||
# enterprise admin to keep track of any remaining entitlements. An enterprise
|
||||
# admin may indicate they are no longer interested in the group license by
|
||||
# marking it as unapproved in Google Play.
|
||||
class GroupLicense
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
|
@ -877,8 +877,8 @@ module Google
|
|||
class Product
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# List of app versions available for this product. The returned list contains
|
||||
# only public versions. E.g. alpha, beta or canary versions will not be included.
|
||||
# App versions currently available for this product. The returned list contains
|
||||
# only public versions. Alpha and beta versions are not included.
|
||||
# Corresponds to the JSON property `appVersion`
|
||||
# @return [Array<Google::Apis::AndroidenterpriseV1::AppVersion>]
|
||||
attr_accessor :app_version
|
||||
|
@ -893,7 +893,12 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :details_url
|
||||
|
||||
# How and to whom the package is made available.
|
||||
# How and to whom the package is made available. The value publicGoogleHosted
|
||||
# means that the package is available through the Play Store and not restricted
|
||||
# to a specific enterprise. The value privateGoogleHosted means that the package
|
||||
# is a private app (restricted to an enterprise) but hosted by Google. The value
|
||||
# privateSelfHosted means that the package is a private app (restricted to an
|
||||
# enterprise) and is privately hosted.
|
||||
# Corresponds to the JSON property `distributionChannel`
|
||||
# @return [String]
|
||||
attr_accessor :distribution_channel
|
||||
|
@ -909,8 +914,8 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :kind
|
||||
|
||||
# A string of the form "app:
|
||||
# " - e.g. "app:com.google.android.gm" represents the GMail app.
|
||||
# A string of the form app:
|
||||
# . For example, app:com.google.android.gm represents the Gmail app.
|
||||
# Corresponds to the JSON property `productId`
|
||||
# @return [String]
|
||||
attr_accessor :product_id
|
||||
|
@ -1037,12 +1042,14 @@ module Google
|
|||
class GenerateProductApprovalUrlResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# A iframe-able URL that displays a product's permissions (if any). This URL can
|
||||
# be used to approve the product only once and for a limited time (1 hour),
|
||||
# using the Products.approve call. If the product is not currently approved and
|
||||
# has no permissions, this URL will point to an empty page. If the product is
|
||||
# currently approved and all of its permissions (if any) are also approved, this
|
||||
# field will not be populated.
|
||||
# A URL that can be rendered in an iframe to display the permissions (if any) of
|
||||
# a product. This URL can be used to approve the product only once and only
|
||||
# within 24 hours of being generated, using the Products.approve call. If the
|
||||
# product is currently unapproved and has no permissions, this URL will point to
|
||||
# an empty page. If the product is currently approved, a URL will only be
|
||||
# generated if that product has added permissions since it was last approved,
|
||||
# and the URL will only display those new permissions that have not yet been
|
||||
# accepted.
|
||||
# Corresponds to the JSON property `url`
|
||||
# @return [String]
|
||||
attr_accessor :url
|
||||
|
|
|
@ -31,6 +31,7 @@ module Google
|
|||
# Androidenterprise = Google::Apis::AndroidenterpriseV1 # Alias the module
|
||||
# service = Androidenterprise::AndroidEnterpriseService.new
|
||||
#
|
||||
# @see https://developers.google.com/play/enterprise
|
||||
class AndroidEnterpriseService < Google::Apis::Core::BaseService
|
||||
# @return [String]
|
||||
# API key. Your API key identifies your project and provides you with API access,
|
||||
|
@ -1597,17 +1598,21 @@ module Google
|
|||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Generates a URL that can be used to display an iframe to view the product's
|
||||
# permissions (if any) and approve the product. This URL can be used to approve
|
||||
# the product for a limited time (currently 1 hour) using the Products.approve
|
||||
# call.
|
||||
# Generates a URL that can be rendered in an iframe to display the permissions (
|
||||
# if any) of a product. An enterprise admin must view these permissions and
|
||||
# accept them on behalf of their organization in order to approve that product.
|
||||
# Admins should accept the displayed permissions by interacting with a separate
|
||||
# UI element in the EMM console, which in turn should trigger the use of this
|
||||
# URL as the approvalUrlInfo.approvalUrl property in a Products.approve call to
|
||||
# approve the product. This URL can only be used to display permissions for up
|
||||
# to 1 day.
|
||||
# @param [String] enterprise_id
|
||||
# The ID of the enterprise.
|
||||
# @param [String] product_id
|
||||
# The ID of the product.
|
||||
# @param [String] language_code
|
||||
# The language code that will be used for permission names and descriptions in
|
||||
# the returned iframe.
|
||||
# The BCP 47 language code used for permission names and descriptions in the
|
||||
# returned iframe, for instance "en-US".
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://developers.google.com/games/services/web/api/states
|
||||
module AppstateV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20150622'
|
||||
REVISION = '20150714'
|
||||
|
||||
# View and manage your data for this application
|
||||
AUTH_APPSTATE = 'https://www.googleapis.com/auth/appstate'
|
||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
|||
# @see http://developers.google.com/compute/docs/autoscaler
|
||||
module AutoscalerV1beta2
|
||||
VERSION = 'V1beta2'
|
||||
REVISION = '20150617'
|
||||
REVISION = '20150629'
|
||||
|
||||
# View and manage your Google Compute Engine resources
|
||||
AUTH_COMPUTE = 'https://www.googleapis.com/auth/compute'
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://cloud.google.com/bigquery/
|
||||
module BigqueryV2
|
||||
VERSION = 'V2'
|
||||
REVISION = '20150623'
|
||||
REVISION = '20150710'
|
||||
|
||||
# View and manage your data in Google BigQuery
|
||||
AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery'
|
||||
|
|
|
@ -1063,6 +1063,11 @@ module Google
|
|||
attr_accessor :use_query_cache
|
||||
alias_method :use_query_cache?, :use_query_cache
|
||||
|
||||
# [Experimental] Describes user-defined function resources used in the query.
|
||||
# Corresponds to the JSON property `userDefinedFunctionResources`
|
||||
# @return [Array<Google::Apis::BigqueryV2::UserDefinedFunctionResource>]
|
||||
attr_accessor :user_defined_function_resources
|
||||
|
||||
# [Optional] Specifies the action that occurs if the destination table already
|
||||
# exists. The following values are supported: WRITE_TRUNCATE: If the table
|
||||
# already exists, BigQuery overwrites the table data. WRITE_APPEND: If the table
|
||||
|
@ -1091,6 +1096,7 @@ module Google
|
|||
@query = args[:query] unless args[:query].nil?
|
||||
@table_definitions = args[:table_definitions] unless args[:table_definitions].nil?
|
||||
@use_query_cache = args[:use_query_cache] unless args[:use_query_cache].nil?
|
||||
@user_defined_function_resources = args[:user_defined_function_resources] unless args[:user_defined_function_resources].nil?
|
||||
@write_disposition = args[:write_disposition] unless args[:write_disposition].nil?
|
||||
end
|
||||
end
|
||||
|
@ -2232,6 +2238,34 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
#
|
||||
class UserDefinedFunctionResource
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# [Pick one] An inline resource that contains code for a user-defined function (
|
||||
# UDF). Providing a inline code resource is equivalent to providing a URI for a
|
||||
# file containing the same code.
|
||||
# Corresponds to the JSON property `inlineCode`
|
||||
# @return [String]
|
||||
attr_accessor :inline_code
|
||||
|
||||
# [Pick one] A code resource to load from a Google Cloud Storage URI (gs://
|
||||
# bucket/path).
|
||||
# Corresponds to the JSON property `resourceUri`
|
||||
# @return [String]
|
||||
attr_accessor :resource_uri
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@inline_code = args[:inline_code] unless args[:inline_code].nil?
|
||||
@resource_uri = args[:resource_uri] unless args[:resource_uri].nil?
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class ViewDefinition
|
||||
include Google::Apis::Core::Hashable
|
||||
|
|
|
@ -194,6 +194,10 @@ module Google
|
|||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
end
|
||||
|
||||
class UserDefinedFunctionResource
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
end
|
||||
|
||||
class ViewDefinition
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
end
|
||||
|
@ -428,6 +432,8 @@ module Google
|
|||
hash :table_definitions, as: 'tableDefinitions', class: Google::Apis::BigqueryV2::ExternalDataConfiguration, decorator: Google::Apis::BigqueryV2::ExternalDataConfiguration::Representation
|
||||
|
||||
property :use_query_cache, as: 'useQueryCache'
|
||||
collection :user_defined_function_resources, as: 'userDefinedFunctionResources', class: Google::Apis::BigqueryV2::UserDefinedFunctionResource, decorator: Google::Apis::BigqueryV2::UserDefinedFunctionResource::Representation
|
||||
|
||||
property :write_disposition, as: 'writeDisposition'
|
||||
end
|
||||
end
|
||||
|
@ -743,6 +749,14 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class UserDefinedFunctionResource
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :inline_code, as: 'inlineCode'
|
||||
property :resource_uri, as: 'resourceUri'
|
||||
end
|
||||
end
|
||||
|
||||
class ViewDefinition
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
|
|
@ -404,8 +404,8 @@ module Google
|
|||
# Zero-based index of the starting row
|
||||
# @param [Fixnum] timeout_ms
|
||||
# How long to wait for the query to complete, in milliseconds, before returning.
|
||||
# Default is to return immediately. If the timeout passes before the job
|
||||
# completes, the request will fail with a TIMEOUT error
|
||||
# Default is 10 seconds. If the timeout passes before the job completes, the '
|
||||
# jobComplete' field in the response will be false
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://developers.google.com/google-apps/calendar/firstapp
|
||||
module CalendarV3
|
||||
VERSION = 'V3'
|
||||
REVISION = '20150623'
|
||||
REVISION = '20150701'
|
||||
|
||||
# Manage your calendars
|
||||
AUTH_CALENDAR = 'https://www.googleapis.com/auth/calendar'
|
||||
|
|
|
@ -1146,6 +1146,13 @@ module Google
|
|||
class EventAttachment
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# ID of the attached file. Read-only.
|
||||
# E.g. for Google Drive files this is the ID of the corresponding Files resource
|
||||
# entry in the Drive API.
|
||||
# Corresponds to the JSON property `fileId`
|
||||
# @return [String]
|
||||
attr_accessor :file_id
|
||||
|
||||
# URL link to the attachment.
|
||||
# For adding Google Drive file attachments use the same format as in
|
||||
# alternateLink property of the Files resource in the Drive API.
|
||||
|
@ -1174,6 +1181,7 @@ module Google
|
|||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@file_id = args[:file_id] unless args[:file_id].nil?
|
||||
@file_url = args[:file_url] unless args[:file_url].nil?
|
||||
@icon_link = args[:icon_link] unless args[:icon_link].nil?
|
||||
@mime_type = args[:mime_type] unless args[:mime_type].nil?
|
||||
|
|
|
@ -412,6 +412,7 @@ module Google
|
|||
class EventAttachment
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :file_id, as: 'fileId'
|
||||
property :file_url, as: 'fileUrl'
|
||||
property :icon_link, as: 'iconLink'
|
||||
property :mime_type, as: 'mimeType'
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://developers.google.com/civic-information
|
||||
module CivicinfoV2
|
||||
VERSION = 'V2'
|
||||
REVISION = '20150302'
|
||||
REVISION = '20150707'
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -315,12 +315,58 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :primary_party
|
||||
|
||||
# The set of ballot responses for the referendum. A ballot response represents a
|
||||
# line on the ballot. Common examples might include "yes" or "no" for referenda,
|
||||
# or a judge's name for a retention contest. This field is only populated for
|
||||
# contests of type 'Referendum'.
|
||||
# Corresponds to the JSON property `referendumBallotResponses`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :referendum_ballot_responses
|
||||
|
||||
# Specifies a short summary of the referendum that is on the ballot below the
|
||||
# title but above the text. This field is only populated for contests of type '
|
||||
# Referendum'.
|
||||
# Corresponds to the JSON property `referendumBrief`
|
||||
# @return [String]
|
||||
attr_accessor :referendum_brief
|
||||
|
||||
# A statement in opposition to the referendum. It does not necessarily appear on
|
||||
# the ballot. This field is only populated for contests of type 'Referendum'.
|
||||
# Corresponds to the JSON property `referendumConStatement`
|
||||
# @return [String]
|
||||
attr_accessor :referendum_con_statement
|
||||
|
||||
# Specifies what effect abstaining (not voting) on the proposition will have (i.
|
||||
# e. whether abstaining is considered a vote against it). This field is only
|
||||
# populated for contests of type 'Referendum'.
|
||||
# Corresponds to the JSON property `referendumEffectOfAbstain`
|
||||
# @return [String]
|
||||
attr_accessor :referendum_effect_of_abstain
|
||||
|
||||
# The threshold of votes that the referendum needs in order to pass, e.g. "two-
|
||||
# thirds". This field is only populated for contests of type 'Referendum'.
|
||||
# Corresponds to the JSON property `referendumPassageThreshold`
|
||||
# @return [String]
|
||||
attr_accessor :referendum_passage_threshold
|
||||
|
||||
# A statement in favor of the referendum. It does not necessarily appear on the
|
||||
# ballot. This field is only populated for contests of type 'Referendum'.
|
||||
# Corresponds to the JSON property `referendumProStatement`
|
||||
# @return [String]
|
||||
attr_accessor :referendum_pro_statement
|
||||
|
||||
# A brief description of the referendum. This field is only populated for
|
||||
# contests of type 'Referendum'.
|
||||
# Corresponds to the JSON property `referendumSubtitle`
|
||||
# @return [String]
|
||||
attr_accessor :referendum_subtitle
|
||||
|
||||
# The full text of the referendum. This field is only populated for contests of
|
||||
# type 'Referendum'.
|
||||
# Corresponds to the JSON property `referendumText`
|
||||
# @return [String]
|
||||
attr_accessor :referendum_text
|
||||
|
||||
# The title of the referendum (e.g. 'Proposition 42'). This field is only
|
||||
# populated for contests of type 'Referendum'.
|
||||
# Corresponds to the JSON property `referendumTitle`
|
||||
|
@ -372,7 +418,14 @@ module Google
|
|||
@number_voting_for = args[:number_voting_for] unless args[:number_voting_for].nil?
|
||||
@office = args[:office] unless args[:office].nil?
|
||||
@primary_party = args[:primary_party] unless args[:primary_party].nil?
|
||||
@referendum_ballot_responses = args[:referendum_ballot_responses] unless args[:referendum_ballot_responses].nil?
|
||||
@referendum_brief = args[:referendum_brief] unless args[:referendum_brief].nil?
|
||||
@referendum_con_statement = args[:referendum_con_statement] unless args[:referendum_con_statement].nil?
|
||||
@referendum_effect_of_abstain = args[:referendum_effect_of_abstain] unless args[:referendum_effect_of_abstain].nil?
|
||||
@referendum_passage_threshold = args[:referendum_passage_threshold] unless args[:referendum_passage_threshold].nil?
|
||||
@referendum_pro_statement = args[:referendum_pro_statement] unless args[:referendum_pro_statement].nil?
|
||||
@referendum_subtitle = args[:referendum_subtitle] unless args[:referendum_subtitle].nil?
|
||||
@referendum_text = args[:referendum_text] unless args[:referendum_text].nil?
|
||||
@referendum_title = args[:referendum_title] unless args[:referendum_title].nil?
|
||||
@referendum_url = args[:referendum_url] unless args[:referendum_url].nil?
|
||||
@roles = args[:roles] unless args[:roles].nil?
|
||||
|
@ -1006,6 +1059,13 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :kind
|
||||
|
||||
# Specifies whether voters in the precinct vote only by mailing their ballots (
|
||||
# with the possible option of dropping off their ballots as well).
|
||||
# Corresponds to the JSON property `mailOnly`
|
||||
# @return [Boolean]
|
||||
attr_accessor :mail_only
|
||||
alias_method :mail_only?, :mail_only
|
||||
|
||||
# A simple representation of an address.
|
||||
# Corresponds to the JSON property `normalizedInput`
|
||||
# @return [Google::Apis::CivicinfoV2::SimpleAddressType]
|
||||
|
@ -1045,6 +1105,7 @@ module Google
|
|||
@early_vote_sites = args[:early_vote_sites] unless args[:early_vote_sites].nil?
|
||||
@election = args[:election] unless args[:election].nil?
|
||||
@kind = args[:kind] unless args[:kind].nil?
|
||||
@mail_only = args[:mail_only] unless args[:mail_only].nil?
|
||||
@normalized_input = args[:normalized_input] unless args[:normalized_input].nil?
|
||||
@other_elections = args[:other_elections] unless args[:other_elections].nil?
|
||||
@polling_locations = args[:polling_locations] unless args[:polling_locations].nil?
|
||||
|
|
|
@ -176,7 +176,14 @@ module Google
|
|||
property :number_voting_for, as: 'numberVotingFor'
|
||||
property :office, as: 'office'
|
||||
property :primary_party, as: 'primaryParty'
|
||||
collection :referendum_ballot_responses, as: 'referendumBallotResponses'
|
||||
property :referendum_brief, as: 'referendumBrief'
|
||||
property :referendum_con_statement, as: 'referendumConStatement'
|
||||
property :referendum_effect_of_abstain, as: 'referendumEffectOfAbstain'
|
||||
property :referendum_passage_threshold, as: 'referendumPassageThreshold'
|
||||
property :referendum_pro_statement, as: 'referendumProStatement'
|
||||
property :referendum_subtitle, as: 'referendumSubtitle'
|
||||
property :referendum_text, as: 'referendumText'
|
||||
property :referendum_title, as: 'referendumTitle'
|
||||
property :referendum_url, as: 'referendumUrl'
|
||||
collection :roles, as: 'roles'
|
||||
|
@ -358,6 +365,7 @@ module Google
|
|||
property :election, as: 'election', class: Google::Apis::CivicinfoV2::Election, decorator: Google::Apis::CivicinfoV2::Election::Representation
|
||||
|
||||
property :kind, as: 'kind'
|
||||
property :mail_only, as: 'mailOnly'
|
||||
property :normalized_input, as: 'normalizedInput', class: Google::Apis::CivicinfoV2::SimpleAddressType, decorator: Google::Apis::CivicinfoV2::SimpleAddressType::Representation
|
||||
|
||||
collection :other_elections, as: 'otherElections', class: Google::Apis::CivicinfoV2::Election, decorator: Google::Apis::CivicinfoV2::Election::Representation
|
||||
|
|
|
@ -0,0 +1,49 @@
|
|||
# Copyright 2015 Google Inc.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
require 'google/apis/classroom_v1beta1/service.rb'
|
||||
require 'google/apis/classroom_v1beta1/classes.rb'
|
||||
require 'google/apis/classroom_v1beta1/representations.rb'
|
||||
|
||||
module Google
|
||||
module Apis
|
||||
# Google Classroom API
|
||||
#
|
||||
# Google Classroom API
|
||||
#
|
||||
# @see
|
||||
module ClassroomV1beta1
|
||||
VERSION = 'V1beta1'
|
||||
REVISION = '20150628'
|
||||
|
||||
# Manage your Google Classroom classes
|
||||
AUTH_CLASSROOM_COURSES = 'https://www.googleapis.com/auth/classroom.courses'
|
||||
|
||||
# View your Google Classroom classes
|
||||
AUTH_CLASSROOM_COURSES_READONLY = 'https://www.googleapis.com/auth/classroom.courses.readonly'
|
||||
|
||||
# View the email addresses of people in your classes
|
||||
AUTH_CLASSROOM_PROFILE_EMAILS = 'https://www.googleapis.com/auth/classroom.profile.emails'
|
||||
|
||||
# View the profile photos of people in your classes
|
||||
AUTH_CLASSROOM_PROFILE_PHOTOS = 'https://www.googleapis.com/auth/classroom.profile.photos'
|
||||
|
||||
# Manage your Google Classroom class rosters
|
||||
AUTH_CLASSROOM_ROSTERS = 'https://www.googleapis.com/auth/classroom.rosters'
|
||||
|
||||
# View your Google Classroom class rosters
|
||||
AUTH_CLASSROOM_ROSTERS_READONLY = 'https://www.googleapis.com/auth/classroom.rosters.readonly'
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,447 @@
|
|||
# Copyright 2015 Google Inc.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
require 'date'
|
||||
require 'google/apis/core/base_service'
|
||||
require 'google/apis/core/json_representation'
|
||||
require 'google/apis/core/hashable'
|
||||
require 'google/apis/errors'
|
||||
|
||||
module Google
|
||||
module Apis
|
||||
module ClassroomV1beta1
|
||||
|
||||
# A Course in Classroom.
|
||||
class Course
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Unique identifier for this course assigned by Classroom. You may optionally
|
||||
# set this to an [alias string][google.classroom.v1beta1.CourseAlias] as part of
|
||||
# [creating a course][google.classroom.v1beta1.Courses.CreateCourse], creating a
|
||||
# corresponding alias. The `ID` cannot be updated after a course is created.
|
||||
# Specifying this field in a course update mask will result in an error.
|
||||
# Corresponds to the JSON property `id`
|
||||
# @return [String]
|
||||
attr_accessor :id
|
||||
|
||||
# Name of the course. For example, "10th Grade Biology". This is required and
|
||||
# must be between 1 and 750 characters and a valid UTF-8 string.
|
||||
# Corresponds to the JSON property `name`
|
||||
# @return [String]
|
||||
attr_accessor :name
|
||||
|
||||
# Section of the course For example, "Period 2". If set, this field must be a
|
||||
# valid UTF-8 string and no longer than 2800 characters.
|
||||
# Corresponds to the JSON property `section`
|
||||
# @return [String]
|
||||
attr_accessor :section
|
||||
|
||||
# Optional heading for the description. For example, "Welcome to 10th Grade
|
||||
# Biology" If set, this field must be a valid UTF-8 string and no longer than
|
||||
# 3600 characters.
|
||||
# Corresponds to the JSON property `descriptionHeading`
|
||||
# @return [String]
|
||||
attr_accessor :description_heading
|
||||
|
||||
# Optional description. For example, "We'll be learning about about the
|
||||
# structure of living creatures from a combination of textbooks, guest lectures,
|
||||
# and lab work. Expect to be excited!" If set, this field must be a valid UTF-8
|
||||
# string and no longer than 30,000 characters.
|
||||
# Corresponds to the JSON property `description`
|
||||
# @return [String]
|
||||
attr_accessor :description
|
||||
|
||||
# Optional room location. For example, "301" If set, this field must be a valid
|
||||
# UTF-8 string and no longer than 650 characters.
|
||||
# Corresponds to the JSON property `room`
|
||||
# @return [String]
|
||||
attr_accessor :room
|
||||
|
||||
# The identifier of the primary teacher of a course. When specified as a
|
||||
# parameter of CreateCourseRequest, this field is required. It may be the
|
||||
# numeric identifier for the user, or an alias that identifies the teacher. The
|
||||
# following aliases are supported: * the e-mail address of the user * the string
|
||||
# literal `"me"`, indicating that the requesting user This must be set in a
|
||||
# CreateRequest; specifying this field in a course update mask will result in an
|
||||
# error.
|
||||
# Corresponds to the JSON property `primaryTeacherId`
|
||||
# @return [String]
|
||||
attr_accessor :primary_teacher_id
|
||||
|
||||
# Creation time of the course. Specifying this field in a course update mask
|
||||
# will result in an error. Read-only.
|
||||
# Corresponds to the JSON property `creationTime`
|
||||
# @return [String]
|
||||
attr_accessor :creation_time
|
||||
|
||||
# Time of the most recent update to this course. Specifying this field in a
|
||||
# course update mask will result in an error. Read-only.
|
||||
# Corresponds to the JSON property `updateTime`
|
||||
# @return [String]
|
||||
attr_accessor :update_time
|
||||
|
||||
# Enrollment code to use when joining this course. Specifying this field in a
|
||||
# course update mask will result in an error. Read-only.
|
||||
# Corresponds to the JSON property `enrollmentCode`
|
||||
# @return [String]
|
||||
attr_accessor :enrollment_code
|
||||
|
||||
# State of the course. If unspecified, the default state will be `PROVISIONED`.
|
||||
# Corresponds to the JSON property `courseState`
|
||||
# @return [String]
|
||||
attr_accessor :course_state
|
||||
|
||||
# Absolute link to this course in the Classroom web UI. Read-only.
|
||||
# Corresponds to the JSON property `webLink`
|
||||
# @return [String]
|
||||
attr_accessor :web_link
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@id = args[:id] unless args[:id].nil?
|
||||
@name = args[:name] unless args[:name].nil?
|
||||
@section = args[:section] unless args[:section].nil?
|
||||
@description_heading = args[:description_heading] unless args[:description_heading].nil?
|
||||
@description = args[:description] unless args[:description].nil?
|
||||
@room = args[:room] unless args[:room].nil?
|
||||
@primary_teacher_id = args[:primary_teacher_id] unless args[:primary_teacher_id].nil?
|
||||
@creation_time = args[:creation_time] unless args[:creation_time].nil?
|
||||
@update_time = args[:update_time] unless args[:update_time].nil?
|
||||
@enrollment_code = args[:enrollment_code] unless args[:enrollment_code].nil?
|
||||
@course_state = args[:course_state] unless args[:course_state].nil?
|
||||
@web_link = args[:web_link] unless args[:web_link].nil?
|
||||
end
|
||||
end
|
||||
|
||||
# A generic empty message that you can re-use to avoid defining duplicated empty
|
||||
# messages in your APIs. A typical example is to use it as the request or the
|
||||
# response type of an API method. For instance: service Foo ` rpc Bar(google.
|
||||
# protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for
|
||||
# `Empty` is empty JSON object ````.
|
||||
class Empty
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
end
|
||||
end
|
||||
|
||||
# Response when listing courses.
|
||||
class ListCoursesResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Courses that match the request.
|
||||
# Corresponds to the JSON property `courses`
|
||||
# @return [Array<Google::Apis::ClassroomV1beta1::Course>]
|
||||
attr_accessor :courses
|
||||
|
||||
# Token identifying the next page of results to return. If empty, no further
|
||||
# results are available.
|
||||
# Corresponds to the JSON property `nextPageToken`
|
||||
# @return [String]
|
||||
attr_accessor :next_page_token
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@courses = args[:courses] unless args[:courses].nil?
|
||||
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
|
||||
end
|
||||
end
|
||||
|
||||
# Alternative identifier for a course. An alias uniquely identifies a course. It
|
||||
# will be unique within one of the following scopes: * domain: A domain-scoped
|
||||
# alias is visible to all users within the alias creator's domain and may only
|
||||
# be created by a domain admin. A domain-scoped alias is often used when a
|
||||
# course has an identifier external to Classroom. * project: A project-scoped
|
||||
# alias is visible to any request from an application using the Developer
|
||||
# Console Project ID that created the alias and may be created by any project. A
|
||||
# project-scoped alias is often used when an application has alternative
|
||||
# identifiers. A random value can also be used to avoid duplicate courses in the
|
||||
# event of transmission failures, as retrying a request will return
|
||||
# ALREADY_EXISTS if a previous one has succeeded.
|
||||
class CourseAlias
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Alias string. The format of the string indicated the desired alias scoping. * "
|
||||
# d:" indicates a domain-scoped alias. Example: d:math_101 * "p:" indicates a
|
||||
# project-scoped alias. Example: p:abc123 This field has a maximum length of 256
|
||||
# characters.
|
||||
# Corresponds to the JSON property `alias`
|
||||
# @return [String]
|
||||
attr_accessor :alias
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@alias = args[:alias] unless args[:alias].nil?
|
||||
end
|
||||
end
|
||||
|
||||
# Response when listing course aliases.
|
||||
class ListCourseAliasesResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The course aliases.
|
||||
# Corresponds to the JSON property `aliases`
|
||||
# @return [Array<Google::Apis::ClassroomV1beta1::CourseAlias>]
|
||||
attr_accessor :aliases
|
||||
|
||||
# Token identifying the next page of results to return. If empty, no further
|
||||
# results are available.
|
||||
# Corresponds to the JSON property `nextPageToken`
|
||||
# @return [String]
|
||||
attr_accessor :next_page_token
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@aliases = args[:aliases] unless args[:aliases].nil?
|
||||
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
|
||||
end
|
||||
end
|
||||
|
||||
# Global information for a user.
|
||||
class UserProfile
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Unique identifier of the user. Read-only
|
||||
# Corresponds to the JSON property `id`
|
||||
# @return [String]
|
||||
attr_accessor :id
|
||||
|
||||
# Details of the user's name.
|
||||
# Corresponds to the JSON property `name`
|
||||
# @return [Google::Apis::ClassroomV1beta1::Name]
|
||||
attr_accessor :name
|
||||
|
||||
# E-mail address of the user. Read-only
|
||||
# Corresponds to the JSON property `emailAddress`
|
||||
# @return [String]
|
||||
attr_accessor :email_address
|
||||
|
||||
# Url of user's profile photo. Read-only
|
||||
# Corresponds to the JSON property `photoUrl`
|
||||
# @return [String]
|
||||
attr_accessor :photo_url
|
||||
|
||||
# Global permissions of the user. Read-only
|
||||
# Corresponds to the JSON property `permissions`
|
||||
# @return [Array<Google::Apis::ClassroomV1beta1::GlobalPermission>]
|
||||
attr_accessor :permissions
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@id = args[:id] unless args[:id].nil?
|
||||
@name = args[:name] unless args[:name].nil?
|
||||
@email_address = args[:email_address] unless args[:email_address].nil?
|
||||
@photo_url = args[:photo_url] unless args[:photo_url].nil?
|
||||
@permissions = args[:permissions] unless args[:permissions].nil?
|
||||
end
|
||||
end
|
||||
|
||||
# Details of the user's name.
|
||||
class Name
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The user's first name. Read-only
|
||||
# Corresponds to the JSON property `givenName`
|
||||
# @return [String]
|
||||
attr_accessor :given_name
|
||||
|
||||
# The user's last name. Read-only
|
||||
# Corresponds to the JSON property `familyName`
|
||||
# @return [String]
|
||||
attr_accessor :family_name
|
||||
|
||||
# The user's full name formed by concatenating the first and last name values.
|
||||
# Read-only
|
||||
# Corresponds to the JSON property `fullName`
|
||||
# @return [String]
|
||||
attr_accessor :full_name
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@given_name = args[:given_name] unless args[:given_name].nil?
|
||||
@family_name = args[:family_name] unless args[:family_name].nil?
|
||||
@full_name = args[:full_name] unless args[:full_name].nil?
|
||||
end
|
||||
end
|
||||
|
||||
# Global user permission description.
|
||||
class GlobalPermission
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Permission value.
|
||||
# Corresponds to the JSON property `permission`
|
||||
# @return [String]
|
||||
attr_accessor :permission
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@permission = args[:permission] unless args[:permission].nil?
|
||||
end
|
||||
end
|
||||
|
||||
# Teacher of a course.
|
||||
class Teacher
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Unique identifier of the course. Read-only
|
||||
# Corresponds to the JSON property `courseId`
|
||||
# @return [String]
|
||||
attr_accessor :course_id
|
||||
|
||||
# The identifier of the user. When specified as a parameter of request, this
|
||||
# field may be set to an alias that identifies the teacher. The following are
|
||||
# supported: * the e-mail address of the user * the string literal `"me"`,
|
||||
# indicating the requesting user
|
||||
# Corresponds to the JSON property `userId`
|
||||
# @return [String]
|
||||
attr_accessor :user_id
|
||||
|
||||
# Global information for a user.
|
||||
# Corresponds to the JSON property `profile`
|
||||
# @return [Google::Apis::ClassroomV1beta1::UserProfile]
|
||||
attr_accessor :profile
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@course_id = args[:course_id] unless args[:course_id].nil?
|
||||
@user_id = args[:user_id] unless args[:user_id].nil?
|
||||
@profile = args[:profile] unless args[:profile].nil?
|
||||
end
|
||||
end
|
||||
|
||||
# Response when listing teachers.
|
||||
class ListTeachersResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The teachers who match the list request.
|
||||
# Corresponds to the JSON property `teachers`
|
||||
# @return [Array<Google::Apis::ClassroomV1beta1::Teacher>]
|
||||
attr_accessor :teachers
|
||||
|
||||
# Token identifying the next page of results to return. If empty, no further
|
||||
# results are available.
|
||||
# Corresponds to the JSON property `nextPageToken`
|
||||
# @return [String]
|
||||
attr_accessor :next_page_token
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@teachers = args[:teachers] unless args[:teachers].nil?
|
||||
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
|
||||
end
|
||||
end
|
||||
|
||||
# Student in a course.
|
||||
class Student
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Unique identifier of the course. Read-only
|
||||
# Corresponds to the JSON property `courseId`
|
||||
# @return [String]
|
||||
attr_accessor :course_id
|
||||
|
||||
# The identifier of the user. When specified as a parameter of request, this
|
||||
# field may be set to an alias that identifies the student. The following are
|
||||
# supported: * the e-mail address of the user * the string literal `"me"`,
|
||||
# indicating that the requesting user
|
||||
# Corresponds to the JSON property `userId`
|
||||
# @return [String]
|
||||
attr_accessor :user_id
|
||||
|
||||
# Global information for a user.
|
||||
# Corresponds to the JSON property `profile`
|
||||
# @return [Google::Apis::ClassroomV1beta1::UserProfile]
|
||||
attr_accessor :profile
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@course_id = args[:course_id] unless args[:course_id].nil?
|
||||
@user_id = args[:user_id] unless args[:user_id].nil?
|
||||
@profile = args[:profile] unless args[:profile].nil?
|
||||
end
|
||||
end
|
||||
|
||||
# Response when listing students.
|
||||
class ListStudentsResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The students who match the list request.
|
||||
# Corresponds to the JSON property `students`
|
||||
# @return [Array<Google::Apis::ClassroomV1beta1::Student>]
|
||||
attr_accessor :students
|
||||
|
||||
# Token identifying the next page of results to return. If empty, no further
|
||||
# results are available.
|
||||
# Corresponds to the JSON property `nextPageToken`
|
||||
# @return [String]
|
||||
attr_accessor :next_page_token
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@students = args[:students] unless args[:students].nil?
|
||||
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,190 @@
|
|||
# Copyright 2015 Google Inc.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
require 'date'
|
||||
require 'google/apis/core/base_service'
|
||||
require 'google/apis/core/json_representation'
|
||||
require 'google/apis/core/hashable'
|
||||
require 'google/apis/errors'
|
||||
|
||||
module Google
|
||||
module Apis
|
||||
module ClassroomV1beta1
|
||||
|
||||
class Course
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
end
|
||||
|
||||
class Empty
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
end
|
||||
|
||||
class ListCoursesResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
end
|
||||
|
||||
class CourseAlias
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
end
|
||||
|
||||
class ListCourseAliasesResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
end
|
||||
|
||||
class UserProfile
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
end
|
||||
|
||||
class Name
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
end
|
||||
|
||||
class GlobalPermission
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
end
|
||||
|
||||
class Teacher
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
end
|
||||
|
||||
class ListTeachersResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
end
|
||||
|
||||
class Student
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
end
|
||||
|
||||
class ListStudentsResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
end
|
||||
|
||||
class Course
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :id, as: 'id'
|
||||
property :name, as: 'name'
|
||||
property :section, as: 'section'
|
||||
property :description_heading, as: 'descriptionHeading'
|
||||
property :description, as: 'description'
|
||||
property :room, as: 'room'
|
||||
property :primary_teacher_id, as: 'primaryTeacherId'
|
||||
property :creation_time, as: 'creationTime'
|
||||
property :update_time, as: 'updateTime'
|
||||
property :enrollment_code, as: 'enrollmentCode'
|
||||
property :course_state, as: 'courseState'
|
||||
property :web_link, as: 'webLink'
|
||||
end
|
||||
end
|
||||
|
||||
class Empty
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
end
|
||||
end
|
||||
|
||||
class ListCoursesResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :courses, as: 'courses', class: Google::Apis::ClassroomV1beta1::Course, decorator: Google::Apis::ClassroomV1beta1::Course::Representation
|
||||
|
||||
property :next_page_token, as: 'nextPageToken'
|
||||
end
|
||||
end
|
||||
|
||||
class CourseAlias
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :alias, as: 'alias'
|
||||
end
|
||||
end
|
||||
|
||||
class ListCourseAliasesResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :aliases, as: 'aliases', class: Google::Apis::ClassroomV1beta1::CourseAlias, decorator: Google::Apis::ClassroomV1beta1::CourseAlias::Representation
|
||||
|
||||
property :next_page_token, as: 'nextPageToken'
|
||||
end
|
||||
end
|
||||
|
||||
class UserProfile
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :id, as: 'id'
|
||||
property :name, as: 'name', class: Google::Apis::ClassroomV1beta1::Name, decorator: Google::Apis::ClassroomV1beta1::Name::Representation
|
||||
|
||||
property :email_address, as: 'emailAddress'
|
||||
property :photo_url, as: 'photoUrl'
|
||||
collection :permissions, as: 'permissions', class: Google::Apis::ClassroomV1beta1::GlobalPermission, decorator: Google::Apis::ClassroomV1beta1::GlobalPermission::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class Name
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :given_name, as: 'givenName'
|
||||
property :family_name, as: 'familyName'
|
||||
property :full_name, as: 'fullName'
|
||||
end
|
||||
end
|
||||
|
||||
class GlobalPermission
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :permission, as: 'permission'
|
||||
end
|
||||
end
|
||||
|
||||
class Teacher
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :course_id, as: 'courseId'
|
||||
property :user_id, as: 'userId'
|
||||
property :profile, as: 'profile', class: Google::Apis::ClassroomV1beta1::UserProfile, decorator: Google::Apis::ClassroomV1beta1::UserProfile::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class ListTeachersResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :teachers, as: 'teachers', class: Google::Apis::ClassroomV1beta1::Teacher, decorator: Google::Apis::ClassroomV1beta1::Teacher::Representation
|
||||
|
||||
property :next_page_token, as: 'nextPageToken'
|
||||
end
|
||||
end
|
||||
|
||||
class Student
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :course_id, as: 'courseId'
|
||||
property :user_id, as: 'userId'
|
||||
property :profile, as: 'profile', class: Google::Apis::ClassroomV1beta1::UserProfile, decorator: Google::Apis::ClassroomV1beta1::UserProfile::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class ListStudentsResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :students, as: 'students', class: Google::Apis::ClassroomV1beta1::Student, decorator: Google::Apis::ClassroomV1beta1::Student::Representation
|
||||
|
||||
property :next_page_token, as: 'nextPageToken'
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,791 @@
|
|||
# Copyright 2015 Google Inc.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
require 'google/apis/core/base_service'
|
||||
require 'google/apis/core/json_representation'
|
||||
require 'google/apis/core/hashable'
|
||||
require 'google/apis/errors'
|
||||
|
||||
module Google
|
||||
module Apis
|
||||
module ClassroomV1beta1
|
||||
# Google Classroom API
|
||||
#
|
||||
# Google Classroom API
|
||||
#
|
||||
# @example
|
||||
# require 'google/apis/classroom_v1beta1'
|
||||
#
|
||||
# Classroom = Google::Apis::ClassroomV1beta1 # Alias the module
|
||||
# service = Classroom::ClassroomService.new
|
||||
#
|
||||
# @see
|
||||
class ClassroomService < Google::Apis::Core::BaseService
|
||||
# @return [String]
|
||||
# API key. Your API key identifies your project and provides you with API access,
|
||||
# quota, and reports. Required unless you provide an OAuth 2.0 token.
|
||||
attr_accessor :key
|
||||
|
||||
# @return [String]
|
||||
# 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.
|
||||
attr_accessor :quota_user
|
||||
|
||||
def initialize
|
||||
super('https://classroom.googleapis.com/', '')
|
||||
end
|
||||
|
||||
# Creates a course. The user specified as the primary teacher in `
|
||||
# primary_teacher_id` is the owner of the created course and added as a teacher.
|
||||
# This method returns the following error codes: * `PERMISSION_DENIED` if the
|
||||
# requesting user is not permitted to create courses. * `NOT_FOUND` if the
|
||||
# primary teacher is not a valid user. * `ALREADY_EXISTS` if an alias was
|
||||
# specified and already exists.
|
||||
# @param [Google::Apis::ClassroomV1beta1::Course] course_object
|
||||
# @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::ClassroomV1beta1::Course] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ClassroomV1beta1::Course]
|
||||
#
|
||||
# @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 create_course(course_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
path = 'v1beta1/courses'
|
||||
command = make_simple_command(:post, path, options)
|
||||
command.request_representation = Google::Apis::ClassroomV1beta1::Course::Representation
|
||||
command.request_object = course_object
|
||||
command.response_representation = Google::Apis::ClassroomV1beta1::Course::Representation
|
||||
command.response_class = Google::Apis::ClassroomV1beta1::Course
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Returns a course. This method returns the following error codes: * `
|
||||
# PERMISSION_DENIED` if the requesting user is not permitted to access the
|
||||
# requested course. * `NOT_FOUND` if no course exists with the requested ID.
|
||||
# @param [String] id
|
||||
# Identifier of the course to return. This may either be the Classroom-assigned
|
||||
# identifier or an [alias][google.classroom.v1beta1.CourseAlias].
|
||||
# @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::ClassroomV1beta1::Course] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ClassroomV1beta1::Course]
|
||||
#
|
||||
# @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_course(id, fields: nil, quota_user: nil, options: nil, &block)
|
||||
path = 'v1beta1/courses/{id}'
|
||||
command = make_simple_command(:get, path, options)
|
||||
command.response_representation = Google::Apis::ClassroomV1beta1::Course::Representation
|
||||
command.response_class = Google::Apis::ClassroomV1beta1::Course
|
||||
command.params['id'] = id unless 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
|
||||
|
||||
# Updates a course. This method returns the following error codes: * `
|
||||
# PERMISSION_DENIED` if the requesting user is not permitted to modify the
|
||||
# requested course. * `NOT_FOUND` if no course exists with the requested ID.
|
||||
# @param [String] id
|
||||
# Identifier of the course to update. This may either be the Classroom-assigned
|
||||
# identifier or an [alias][google.classroom.v1beta1.CourseAlias].
|
||||
# @param [Google::Apis::ClassroomV1beta1::Course] course_object
|
||||
# @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::ClassroomV1beta1::Course] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ClassroomV1beta1::Course]
|
||||
#
|
||||
# @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 update_course(id, course_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
path = 'v1beta1/courses/{id}'
|
||||
command = make_simple_command(:put, path, options)
|
||||
command.request_representation = Google::Apis::ClassroomV1beta1::Course::Representation
|
||||
command.request_object = course_object
|
||||
command.response_representation = Google::Apis::ClassroomV1beta1::Course::Representation
|
||||
command.response_class = Google::Apis::ClassroomV1beta1::Course
|
||||
command.params['id'] = id unless 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
|
||||
|
||||
# Updates one or more fields a course. This method returns the following error
|
||||
# codes: * `PERMISSION_DENIED` if the requesting user is not permitted to modify
|
||||
# the requested course. * `NOT_FOUND` if no course exists with the requested ID.
|
||||
# * `INVALID_ARGUMENT` if invalid fields are specified in the update mask or if
|
||||
# no update mask is supplied.
|
||||
# @param [String] id
|
||||
# Identifier of the course to update. This may either be the Classroom-assigned
|
||||
# identifier or an [alias][google.classroom.v1beta1.CourseAlias].
|
||||
# @param [Google::Apis::ClassroomV1beta1::Course] course_object
|
||||
# @param [String] update_mask
|
||||
# Mask which identifies which fields on the course to update. This field is
|
||||
# required to do an update. The update will fail if invalid fields are specified.
|
||||
# Valid fields are listed below: * `name` * `section` * `descriptionHeading` * `
|
||||
# description` * `room` * `courseState` When set in a query parameter, this
|
||||
# should be specified as `updateMask=,,...`
|
||||
# @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::ClassroomV1beta1::Course] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ClassroomV1beta1::Course]
|
||||
#
|
||||
# @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 patch_course(id, course_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
path = 'v1beta1/courses/{id}'
|
||||
command = make_simple_command(:patch, path, options)
|
||||
command.request_representation = Google::Apis::ClassroomV1beta1::Course::Representation
|
||||
command.request_object = course_object
|
||||
command.response_representation = Google::Apis::ClassroomV1beta1::Course::Representation
|
||||
command.response_class = Google::Apis::ClassroomV1beta1::Course
|
||||
command.params['id'] = id unless id.nil?
|
||||
command.query['updateMask'] = update_mask unless update_mask.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 course. This method returns the following error codes: * `
|
||||
# PERMISSION_DENIED` if the requesting user is not permitted to delete the
|
||||
# requested course. * `NOT_FOUND` if no course exists with the requested ID.
|
||||
# @param [String] id
|
||||
# Identifier of the course to delete. This may either be the Classroom-assigned
|
||||
# identifier or an [alias][google.classroom.v1beta1.CourseAlias].
|
||||
# @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::ClassroomV1beta1::Empty] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ClassroomV1beta1::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_course(id, fields: nil, quota_user: nil, options: nil, &block)
|
||||
path = 'v1beta1/courses/{id}'
|
||||
command = make_simple_command(:delete, path, options)
|
||||
command.response_representation = Google::Apis::ClassroomV1beta1::Empty::Representation
|
||||
command.response_class = Google::Apis::ClassroomV1beta1::Empty
|
||||
command.params['id'] = id unless 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
|
||||
|
||||
# Returns a list of courses that the requesting user is permitted to view,
|
||||
# restricted to those that match the request. This method returns the following
|
||||
# error codes: * `INVALID_ARGUMENT` if the query argument is malformed. * `
|
||||
# NOT_FOUND` if any users specified in the query arguments do not exist.
|
||||
# @param [String] student_id
|
||||
# Restricts returned courses to those having a student with the specified
|
||||
# identifier, or an alias that identifies a student. The following aliases are
|
||||
# supported: * the e-mail address of the user * the string literal `"me"`,
|
||||
# indicating that the requesting user
|
||||
# @param [String] teacher_id
|
||||
# Restricts returned courses to those having a teacher with the specified
|
||||
# identifier, or an alias that identifies a teacher. The following aliases are
|
||||
# supported: * the e-mail address of the user * the string literal `"me"`,
|
||||
# indicating that the requesting user
|
||||
# @param [Fixnum] page_size
|
||||
# Maximum number of items to return. Zero or unspecified indicates that the
|
||||
# server may assign a maximum. The server may return fewer than the specified
|
||||
# number of results.
|
||||
# @param [String] page_token
|
||||
# [nextPageToken][google.classroom.v1beta1.ListCoursesResponse.next_page_token]
|
||||
# value returned from a previous [list][google.classroom.v1beta1.Courses.
|
||||
# ListCourses] call, indicating that the subsequent page of results should be
|
||||
# returned. The [list][google.classroom.v1beta1.Courses.ListCourses] request
|
||||
# must be identical to the one which resulted in this token.
|
||||
# @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::ClassroomV1beta1::ListCoursesResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ClassroomV1beta1::ListCoursesResponse]
|
||||
#
|
||||
# @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 list_courses(student_id: nil, teacher_id: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
path = 'v1beta1/courses'
|
||||
command = make_simple_command(:get, path, options)
|
||||
command.response_representation = Google::Apis::ClassroomV1beta1::ListCoursesResponse::Representation
|
||||
command.response_class = Google::Apis::ClassroomV1beta1::ListCoursesResponse
|
||||
command.query['studentId'] = student_id unless student_id.nil?
|
||||
command.query['teacherId'] = teacher_id unless teacher_id.nil?
|
||||
command.query['pageSize'] = page_size unless page_size.nil?
|
||||
command.query['pageToken'] = page_token unless page_token.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Creates an alias to a course. This method returns the following error codes: *
|
||||
# `PERMISSION_DENIED` if the requesting user is not permitted to create the
|
||||
# alias. * `NOT_FOUND` if the course does not exist. * `ALREADY_EXISTS` if the
|
||||
# alias already exists.
|
||||
# @param [String] course_id
|
||||
# The identifier of the course to alias. This may either be the Classroom-
|
||||
# assigned identifier or an [alias][google.classroom.v1beta1.CourseAlias].
|
||||
# @param [Google::Apis::ClassroomV1beta1::CourseAlias] course_alias_object
|
||||
# @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::ClassroomV1beta1::CourseAlias] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ClassroomV1beta1::CourseAlias]
|
||||
#
|
||||
# @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 create_course_alias(course_id, course_alias_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
path = 'v1beta1/courses/{courseId}/aliases'
|
||||
command = make_simple_command(:post, path, options)
|
||||
command.request_representation = Google::Apis::ClassroomV1beta1::CourseAlias::Representation
|
||||
command.request_object = course_alias_object
|
||||
command.response_representation = Google::Apis::ClassroomV1beta1::CourseAlias::Representation
|
||||
command.response_class = Google::Apis::ClassroomV1beta1::CourseAlias
|
||||
command.params['courseId'] = course_id unless course_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 an alias of a course. This method returns the following error codes: *
|
||||
# `PERMISSION_DENIED` if the requesting user is not permitted to remove the
|
||||
# alias. * `NOT_FOUND` if the alias does not exist.
|
||||
# @param [String] course_id
|
||||
# The identifier of the course whose alias should be deleted. This may either be
|
||||
# the Classroom-assigned identifier or an [alias][google.classroom.v1beta1.
|
||||
# CourseAlias].
|
||||
# @param [String] alias_
|
||||
# The alias to delete. This may not be the Classroom-assigned identifier.
|
||||
# @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::ClassroomV1beta1::Empty] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ClassroomV1beta1::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_course_alias(course_id, alias_, fields: nil, quota_user: nil, options: nil, &block)
|
||||
path = 'v1beta1/courses/{courseId}/aliases/{alias}'
|
||||
command = make_simple_command(:delete, path, options)
|
||||
command.response_representation = Google::Apis::ClassroomV1beta1::Empty::Representation
|
||||
command.response_class = Google::Apis::ClassroomV1beta1::Empty
|
||||
command.params['courseId'] = course_id unless course_id.nil?
|
||||
command.params['alias'] = alias_ unless alias_.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Lists the aliases of a course. This method returns the following error codes: *
|
||||
# `PERMISSION_DENIED` if the requesting user is not permitted to access the
|
||||
# course. * `NOT_FOUND` if the course does not exist.
|
||||
# @param [String] course_id
|
||||
# The identifier of the course. This may either be the Classroom-assigned
|
||||
# identifier or an [alias][google.classroom.v1beta1.CourseAlias].
|
||||
# @param [Fixnum] page_size
|
||||
# Maximum number of items to return. Zero or unspecified indicates that the
|
||||
# server may assign a maximum. The server may return fewer than the specified
|
||||
# number of results.
|
||||
# @param [String] page_token
|
||||
# [nextPageToken][google.classroom.v1beta1.ListCourseAliasesResponse.
|
||||
# next_page_token] value returned from a previous [list][google.classroom.
|
||||
# v1beta1.Courses.ListCourseAliases] call, indicating that the subsequent page
|
||||
# of results should be returned. The [list][google.classroom.v1beta1.Courses.
|
||||
# ListCourseAliases] request must be identical to the one which resulted in this
|
||||
# token.
|
||||
# @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::ClassroomV1beta1::ListCourseAliasesResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ClassroomV1beta1::ListCourseAliasesResponse]
|
||||
#
|
||||
# @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 list_course_aliases(course_id, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
path = 'v1beta1/courses/{courseId}/aliases'
|
||||
command = make_simple_command(:get, path, options)
|
||||
command.response_representation = Google::Apis::ClassroomV1beta1::ListCourseAliasesResponse::Representation
|
||||
command.response_class = Google::Apis::ClassroomV1beta1::ListCourseAliasesResponse
|
||||
command.params['courseId'] = course_id unless course_id.nil?
|
||||
command.query['pageSize'] = page_size unless page_size.nil?
|
||||
command.query['pageToken'] = page_token unless page_token.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Creates a teacher of a course. This method returns the following error codes: *
|
||||
# `PERMISSION_DENIED` if the requesting user is not permitted to create
|
||||
# teachers in this course. * `NOT_FOUND` if the requested course ID does not
|
||||
# exist. * `ALREADY_EXISTS` if the user is already a teacher or student in the
|
||||
# course.
|
||||
# @param [String] course_id
|
||||
# Unique identifier of the course. This may either be the Classroom-assigned
|
||||
# identifier or an alias.
|
||||
# @param [Google::Apis::ClassroomV1beta1::Teacher] teacher_object
|
||||
# @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::ClassroomV1beta1::Teacher] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ClassroomV1beta1::Teacher]
|
||||
#
|
||||
# @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 create_course_teacher(course_id, teacher_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
path = 'v1beta1/courses/{courseId}/teachers'
|
||||
command = make_simple_command(:post, path, options)
|
||||
command.request_representation = Google::Apis::ClassroomV1beta1::Teacher::Representation
|
||||
command.request_object = teacher_object
|
||||
command.response_representation = Google::Apis::ClassroomV1beta1::Teacher::Representation
|
||||
command.response_class = Google::Apis::ClassroomV1beta1::Teacher
|
||||
command.params['courseId'] = course_id unless course_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
|
||||
|
||||
# Returns a teacher of a course. This method returns the following error codes: *
|
||||
# `PERMISSION_DENIED` if the requesting user is not permitted to view teachers
|
||||
# of this course. * `NOT_FOUND` if no teacher of this course has the requested
|
||||
# ID or if the course does not exist.
|
||||
# @param [String] course_id
|
||||
# Unique identifier of the course. This may either be the Classroom-assigned
|
||||
# identifier or an alias.
|
||||
# @param [String] user_id
|
||||
# Identifier of the teacher to return, or an alias the identifies the user. the
|
||||
# following aliases are supported: * the e-mail address of the user * the string
|
||||
# literal `"me"`, indicating that the requesting user
|
||||
# @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::ClassroomV1beta1::Teacher] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ClassroomV1beta1::Teacher]
|
||||
#
|
||||
# @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_course_teacher(course_id, user_id, fields: nil, quota_user: nil, options: nil, &block)
|
||||
path = 'v1beta1/courses/{courseId}/teachers/{userId}'
|
||||
command = make_simple_command(:get, path, options)
|
||||
command.response_representation = Google::Apis::ClassroomV1beta1::Teacher::Representation
|
||||
command.response_class = Google::Apis::ClassroomV1beta1::Teacher
|
||||
command.params['courseId'] = course_id unless course_id.nil?
|
||||
command.params['userId'] = user_id unless user_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 teacher of a course. This method returns the following error codes: *
|
||||
# `PERMISSION_DENIED` if the requesting user is not permitted to delete
|
||||
# teachers of this course. * `NOT_FOUND` if no teacher of this course has the
|
||||
# requested ID or if the course does not exist. * `FAILED_PRECONDITION` if the
|
||||
# requested ID belongs to the primary teacher of this course.
|
||||
# @param [String] course_id
|
||||
# Unique identifier of the course. This may either be the Classroom-assigned
|
||||
# identifier or an alias.
|
||||
# @param [String] user_id
|
||||
# Identifier of the teacher to delete, or an alias the identifies the user. the
|
||||
# following aliases are supported: * the e-mail address of the user * the string
|
||||
# literal `"me"`, indicating that the requesting user
|
||||
# @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::ClassroomV1beta1::Empty] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ClassroomV1beta1::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_course_teacher(course_id, user_id, fields: nil, quota_user: nil, options: nil, &block)
|
||||
path = 'v1beta1/courses/{courseId}/teachers/{userId}'
|
||||
command = make_simple_command(:delete, path, options)
|
||||
command.response_representation = Google::Apis::ClassroomV1beta1::Empty::Representation
|
||||
command.response_class = Google::Apis::ClassroomV1beta1::Empty
|
||||
command.params['courseId'] = course_id unless course_id.nil?
|
||||
command.params['userId'] = user_id unless user_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
|
||||
|
||||
# Returns a list of teachers of this course that the requester is permitted to
|
||||
# view. Fails with `NOT_FOUND` if the course does not exist.
|
||||
# @param [String] course_id
|
||||
# Unique identifier of the course. This may either be the Classroom-assigned
|
||||
# identifier or an alias.
|
||||
# @param [Fixnum] page_size
|
||||
# Maximum number of items to return. Zero means no maximum. The server may
|
||||
# return fewer than the specified number of results.
|
||||
# @param [String] page_token
|
||||
# [nextPageToken][google.classroom.v1beta1.ListTeachersResponse.next_page_token]
|
||||
# value returned from a previous [list][google.classroom.v1beta1.Users.
|
||||
# ListTeachers] call, indicating that the subsequent page of results should be
|
||||
# returned. The [list][google.classroom.v1beta1.Users.ListTeachers] request must
|
||||
# be identical to the one which resulted in this token.
|
||||
# @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::ClassroomV1beta1::ListTeachersResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ClassroomV1beta1::ListTeachersResponse]
|
||||
#
|
||||
# @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 list_course_teachers(course_id, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
path = 'v1beta1/courses/{courseId}/teachers'
|
||||
command = make_simple_command(:get, path, options)
|
||||
command.response_representation = Google::Apis::ClassroomV1beta1::ListTeachersResponse::Representation
|
||||
command.response_class = Google::Apis::ClassroomV1beta1::ListTeachersResponse
|
||||
command.params['courseId'] = course_id unless course_id.nil?
|
||||
command.query['pageSize'] = page_size unless page_size.nil?
|
||||
command.query['pageToken'] = page_token unless page_token.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Adds a user as a student of a course. This method returns the following error
|
||||
# codes: * `PERMISSION_DENIED` if the requesting user is not permitted to create
|
||||
# students in this course. * `NOT_FOUND` if the requested course ID does not
|
||||
# exist. * `ALREADY_EXISTS` if the user is already a student or student in the
|
||||
# course.
|
||||
# @param [String] course_id
|
||||
# Identifier of the course to create the student in. This may either be the
|
||||
# Classroom-assigned identifier or an alias.
|
||||
# @param [Google::Apis::ClassroomV1beta1::Student] student_object
|
||||
# @param [String] enrollment_code
|
||||
# Enrollment code of the course to create the student in. This is required if [
|
||||
# userId][google.classroom.v1beta1.Student.user_id] corresponds to the
|
||||
# requesting user; this may be omitted if the requesting user has administrative
|
||||
# permissions to create students for any user.
|
||||
# @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::ClassroomV1beta1::Student] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ClassroomV1beta1::Student]
|
||||
#
|
||||
# @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 create_course_student(course_id, student_object = nil, enrollment_code: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
path = 'v1beta1/courses/{courseId}/students'
|
||||
command = make_simple_command(:post, path, options)
|
||||
command.request_representation = Google::Apis::ClassroomV1beta1::Student::Representation
|
||||
command.request_object = student_object
|
||||
command.response_representation = Google::Apis::ClassroomV1beta1::Student::Representation
|
||||
command.response_class = Google::Apis::ClassroomV1beta1::Student
|
||||
command.params['courseId'] = course_id unless course_id.nil?
|
||||
command.query['enrollmentCode'] = enrollment_code unless enrollment_code.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Returns a student of a course. This method returns the following error codes: *
|
||||
# `PERMISSION_DENIED` if the requesting user is not permitted to view students
|
||||
# of this course. * `NOT_FOUND` if no student of this course has the requested
|
||||
# ID or if the course does not exist.
|
||||
# @param [String] course_id
|
||||
# Unique identifier of the course. This may either be the Classroom-assigned
|
||||
# identifier or an alias.
|
||||
# @param [String] user_id
|
||||
# Identifier of the student to return, or an alias the identifies the user. The
|
||||
# following aliases are supported: * the e-mail address of the user * the string
|
||||
# literal `"me"`, indicating that the requesting user
|
||||
# @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::ClassroomV1beta1::Student] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ClassroomV1beta1::Student]
|
||||
#
|
||||
# @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_course_student(course_id, user_id, fields: nil, quota_user: nil, options: nil, &block)
|
||||
path = 'v1beta1/courses/{courseId}/students/{userId}'
|
||||
command = make_simple_command(:get, path, options)
|
||||
command.response_representation = Google::Apis::ClassroomV1beta1::Student::Representation
|
||||
command.response_class = Google::Apis::ClassroomV1beta1::Student
|
||||
command.params['courseId'] = course_id unless course_id.nil?
|
||||
command.params['userId'] = user_id unless user_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 student of a course. This method returns the following error codes: *
|
||||
# `PERMISSION_DENIED` if the requesting user is not permitted to delete
|
||||
# students of this course. * `NOT_FOUND` if no student of this course has the
|
||||
# requested ID or if the course does not exist.
|
||||
# @param [String] course_id
|
||||
# Unique identifier of the course. This may either be the Classroom-assigned
|
||||
# identifier or an alias.
|
||||
# @param [String] user_id
|
||||
# Identifier of the student to delete, or an alias the identifies the user. The
|
||||
# following aliases are supported: * the e-mail address of the user * the string
|
||||
# literal `"me"`, indicating that the requesting user
|
||||
# @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::ClassroomV1beta1::Empty] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ClassroomV1beta1::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_course_student(course_id, user_id, fields: nil, quota_user: nil, options: nil, &block)
|
||||
path = 'v1beta1/courses/{courseId}/students/{userId}'
|
||||
command = make_simple_command(:delete, path, options)
|
||||
command.response_representation = Google::Apis::ClassroomV1beta1::Empty::Representation
|
||||
command.response_class = Google::Apis::ClassroomV1beta1::Empty
|
||||
command.params['courseId'] = course_id unless course_id.nil?
|
||||
command.params['userId'] = user_id unless user_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
|
||||
|
||||
# Returns a list of students of this course that the requester is permitted to
|
||||
# view. Fails with `NOT_FOUND` if the course does not exist.
|
||||
# @param [String] course_id
|
||||
# Unique identifier of the course. This may either be the Classroom-assigned
|
||||
# identifier or an alias.
|
||||
# @param [Fixnum] page_size
|
||||
# Maximum number of items to return. Zero means no maximum. The server may
|
||||
# return fewer than the specified number of results.
|
||||
# @param [String] page_token
|
||||
# [nextPageToken][google.classroom.v1beta1.ListStudentsResponse.next_page_token]
|
||||
# value returned from a previous [list][google.classroom.v1beta1.Users.
|
||||
# ListStudents] call, indicating that the subsequent page of results should be
|
||||
# returned. The [list][google.classroom.v1beta1.Users.ListStudents] request must
|
||||
# be identical to the one which resulted in this token.
|
||||
# @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::ClassroomV1beta1::ListStudentsResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ClassroomV1beta1::ListStudentsResponse]
|
||||
#
|
||||
# @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 list_course_students(course_id, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
path = 'v1beta1/courses/{courseId}/students'
|
||||
command = make_simple_command(:get, path, options)
|
||||
command.response_representation = Google::Apis::ClassroomV1beta1::ListStudentsResponse::Representation
|
||||
command.response_class = Google::Apis::ClassroomV1beta1::ListStudentsResponse
|
||||
command.params['courseId'] = course_id unless course_id.nil?
|
||||
command.query['pageSize'] = page_size unless page_size.nil?
|
||||
command.query['pageToken'] = page_token unless page_token.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Returns a user profile. This method returns the following error codes: * `
|
||||
# PERMISSION_DENIED` if the requesting user is not permitted to access this user
|
||||
# profile. * `NOT_FOUND` if the profile does not exist.
|
||||
# @param [String] user_id
|
||||
# Identifier of the profile to return, or an alias the identifies the user. The
|
||||
# following aliases are supported: * the e-mail address of the user * the string
|
||||
# literal `"me"`, indicating the requesting user
|
||||
# @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::ClassroomV1beta1::UserProfile] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ClassroomV1beta1::UserProfile]
|
||||
#
|
||||
# @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_user_profile(user_id, fields: nil, quota_user: nil, options: nil, &block)
|
||||
path = 'v1beta1/userProfiles/{userId}'
|
||||
command = make_simple_command(:get, path, options)
|
||||
command.response_representation = Google::Apis::ClassroomV1beta1::UserProfile::Representation
|
||||
command.response_class = Google::Apis::ClassroomV1beta1::UserProfile
|
||||
command.params['userId'] = user_id unless user_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
|
||||
|
||||
protected
|
||||
|
||||
def apply_command_defaults(command)
|
||||
command.query['key'] = key unless key.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -25,7 +25,10 @@ module Google
|
|||
# @see https://cloud.google.com/monitoring/v2beta2/
|
||||
module CloudmonitoringV2beta2
|
||||
VERSION = 'V2beta2'
|
||||
REVISION = '20150622'
|
||||
REVISION = '20150713'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
||||
# View and write monitoring data for all of your Google and third-party Cloud and API projects
|
||||
AUTH_MONITORING = 'https://www.googleapis.com/auth/monitoring'
|
||||
|
|
|
@ -21,15 +21,12 @@ module Google
|
|||
# Google Cloud Resource Manager API
|
||||
#
|
||||
# The Google Cloud Resource Manager API provides methods for creating, reading,
|
||||
# and updating of project metadata, including IAM policies, and will shortly
|
||||
# provide the same for other high-level entities (e.g. customers and resource
|
||||
# groups). Longer term, we expect the cloudresourcemanager API to encompass
|
||||
# other Cloud resources as well.
|
||||
# and updating of project metadata.
|
||||
#
|
||||
# @see https://cloud.google.com/resource-manager
|
||||
module CloudresourcemanagerV1beta1
|
||||
VERSION = 'V1beta1'
|
||||
REVISION = '20150603'
|
||||
REVISION = '20150711'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -24,18 +24,17 @@ module Google
|
|||
|
||||
# A Project is a high-level Google Cloud Platform entity. It is a container for
|
||||
# ACLs, APIs, AppEngine Apps, VMs, and other Google Cloud Platform resources.
|
||||
# Projects are subordinate to Customers.
|
||||
class Project
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The number uniquely identifying the project. Example: 415104041262. Read-only.
|
||||
# The number uniquely identifying the project. Example: 415104041262 Read-only.
|
||||
# Corresponds to the JSON property `projectNumber`
|
||||
# @return [String]
|
||||
attr_accessor :project_number
|
||||
|
||||
# The unique, user-assigned id of the project. It must be 6 to 30 lowercase
|
||||
# The unique, user-assigned ID of the project. It must be 6 to 30 lowercase
|
||||
# letters, digits, or hyphens. It must start with a letter. Trailing hyphens are
|
||||
# prohibited. Example: "tokyo-rain-123" Read-only after creation.
|
||||
# prohibited. Example: tokyo-rain-123 Read-only after creation.
|
||||
# Corresponds to the JSON property `projectId`
|
||||
# @return [String]
|
||||
attr_accessor :project_id
|
||||
|
@ -46,9 +45,9 @@ module Google
|
|||
attr_accessor :lifecycle_state
|
||||
|
||||
# The user-assigned name of the project. This field is optional and can remain
|
||||
# unset. Allowed characters are: lower- and upper-case letters, numbers, hyphen,
|
||||
# single-quote, double-quotes, space, and exclamation point. Example: "My
|
||||
# Project" Read-write.
|
||||
# unset. Allowed characters are: lowercase and uppercase letters, numbers,
|
||||
# hyphen, single-quote, double-quote, space, and exclamation point. Example: My
|
||||
# Project Read-write.
|
||||
# Corresponds to the JSON property `name`
|
||||
# @return [String]
|
||||
attr_accessor :name
|
||||
|
@ -59,13 +58,13 @@ module Google
|
|||
attr_accessor :create_time
|
||||
|
||||
# The labels associated with this project. Label keys must be between 1 and 63
|
||||
# characters long and must conform to the following regular expression: [a-z]([-
|
||||
# a-z0-9]*[a-z0-9])?. Label values must be between 0 and 63 characters long and
|
||||
# must conform to the regular expression ([a-z]([-a-z0-9]*[a-z0-9])?)?. No more
|
||||
# than 256 labels can be associated with a given resource. Note that additional
|
||||
# character may be included in labels in the future. Clients should store labels
|
||||
# in a representation such as JSON that does not depend on specific characters
|
||||
# being disallowed. Example: "environment" : "dev" Read-write.
|
||||
# characters long and must conform to the following regular expression: \[a-z\](\
|
||||
# [-a-z0-9\]*\[a-z0-9\])?. Label values must be between 0 and 63 characters long
|
||||
# and must conform to the regular expression (\[a-z\](\[-a-z0-9\]*\[a-z0-9\])?)?.
|
||||
# No more than 256 labels can be associated with a given resource. Clients
|
||||
# should store labels in a representation such as JSON that does not depend on
|
||||
# specific characters being disallowed. Example: "environment" : "dev" Read-
|
||||
# write.
|
||||
# Corresponds to the JSON property `labels`
|
||||
# @return [Hash<String,String>]
|
||||
attr_accessor :labels
|
||||
|
@ -85,10 +84,11 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
# A page of the response received from the [ListProjects][cloudresourcemanager.
|
||||
# projects.v1beta1.Projects.ListProjects] method. A paginated response where
|
||||
# more pages are available has `next_page_token` set. This token can be used in
|
||||
# a subsequent request to retrieve the next request page.
|
||||
# A page of the response received from the [ListProjects][google.
|
||||
# cloudresourcemanager.projects.v1beta1.DeveloperProjects.ListProjects] method.
|
||||
# A paginated response where more pages are available has `next_page_token` set.
|
||||
# This token can be used in a subsequent request to retrieve the next request
|
||||
# page.
|
||||
class ListProjectsResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
|
@ -122,7 +122,8 @@ module Google
|
|||
# A generic empty message that you can re-use to avoid defining duplicated empty
|
||||
# messages in your APIs. A typical example is to use it as the request or the
|
||||
# response type of an API method. For instance: service Foo ` rpc Bar(google.
|
||||
# protobuf.Empty) returns (google.protobuf.Empty); `
|
||||
# protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for
|
||||
# `Empty` is empty JSON object ````.
|
||||
class Empty
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
|
|
|
@ -23,10 +23,7 @@ module Google
|
|||
# Google Cloud Resource Manager API
|
||||
#
|
||||
# The Google Cloud Resource Manager API provides methods for creating, reading,
|
||||
# and updating of project metadata, including IAM policies, and will shortly
|
||||
# provide the same for other high-level entities (e.g. customers and resource
|
||||
# groups). Longer term, we expect the cloudresourcemanager API to encompass
|
||||
# other Cloud resources as well.
|
||||
# and updating of project metadata.
|
||||
#
|
||||
# @example
|
||||
# require 'google/apis/cloudresourcemanager_v1beta1'
|
||||
|
@ -98,13 +95,14 @@ module Google
|
|||
# this field. Optional.
|
||||
# @param [String] filter
|
||||
# An expression for filtering the results of the request. Filter rules are case
|
||||
# insensitive. The fields eligible for filtering are: name id labels. where is
|
||||
# a the name of a label Examples: name:* ==> The project has a name. name:Howl ==
|
||||
# > The project’s name is `Howl` or 'howl'. name:HOWL ==> Equivalent to above.
|
||||
# NAME:howl ==> Equivalent to above. labels.color:* ==> The project has the
|
||||
# label "color". labels.color:red ==> The project’s label `color` has the value `
|
||||
# red`. labels.color:red label.size:big ==> The project's label `color` has the
|
||||
# value `red` and its label `size` has the value `big`. Optional.
|
||||
# insensitive. The fields eligible for filtering are: + `name` + `id` + labels.
|
||||
# key where *key* is the name of a label Some examples of using labels as
|
||||
# filters: |Filter|Description| |------|-----------| |name:*|The project has a
|
||||
# name.| |name:Howl|The project's name is `Howl` or `howl`.| |name:HOWL|
|
||||
# Equivalent to above.| |NAME:howl|Equivalent to above.| |labels.color:*|The
|
||||
# project has the label `color`.| |labels.color:red|The project's label `color`
|
||||
# has the value `red`.| |labels.color:red label.size:big|The project's label `
|
||||
# color` has the value `red` and its label `size` has the value `big`. Optional.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
|
@ -204,24 +202,26 @@ module Google
|
|||
end
|
||||
|
||||
# Marks the project identified by the specified `project_id` (for example, `my-
|
||||
# project-123`) for deletion. This method will only affect the project if it has
|
||||
# a lifecycle state of [ACTIVE][cloudresourcemanager.projects.v1beta2.
|
||||
# LifecycleState.ACTIVE] when this method is called. Otherwise this method does
|
||||
# nothing (since all other states are phases of deletion). This method changes
|
||||
# the project's lifecycle state from [ACTIVE][cloudresourcemanager.projects.
|
||||
# v1beta2.LifecycleState.ACTIVE] to [DELETE_REQUESTED] [cloudresourcemanager.
|
||||
# projects.v1beta2.LifecycleState.DELETE_REQUESTED]. The deletion starts at an
|
||||
# unspecified time, at which point the lifecycle state changes to [
|
||||
# DELETE_IN_PROGRESS] [cloudresourcemanager.projects.v1beta2.LifecycleState.
|
||||
# DELETE_IN_PROGRESS]. Until the deletion completes, you can check the lifecycle
|
||||
# state checked by retrieving the project with [GetProject] [
|
||||
# cloudresourcemanager.projects.v1beta2.Projects.GetProject], and the project
|
||||
# remains visible to [ListProjects] [cloudresourcemanager.projects.v1beta2.
|
||||
# Projects.ListProjects]. However, you cannot update the project. After the
|
||||
# deletion completes, the project is not retrievable by the [GetProject] [
|
||||
# cloudresourcemanager.projects.v1beta2.Projects.GetProject] and [ListProjects] [
|
||||
# cloudresourcemanager.projects.v1beta2.Projects.ListProjects] methods. The
|
||||
# caller must have modify permissions for this project.
|
||||
# project-123`) for deletion. This method will only affect the project if the
|
||||
# following criteria are met: + The project does not have a billing account
|
||||
# associated with it. + The project has a lifecycle state of [ACTIVE][google.
|
||||
# cloudresourcemanager.projects.v1beta1.LifecycleState.ACTIVE]. This method
|
||||
# changes the project's lifecycle state from [ACTIVE][google.
|
||||
# cloudresourcemanager.projects.v1beta1.LifecycleState.ACTIVE] to [
|
||||
# DELETE_REQUESTED] [google.cloudresourcemanager.projects.v1beta1.LifecycleState.
|
||||
# DELETE_REQUESTED]. The deletion starts at an unspecified time, at which point
|
||||
# the lifecycle state changes to [DELETE_IN_PROGRESS] [google.
|
||||
# cloudresourcemanager.projects.v1beta1.LifecycleState.DELETE_IN_PROGRESS].
|
||||
# Until the deletion completes, you can check the lifecycle state checked by
|
||||
# retrieving the project with [GetProject] [google.cloudresourcemanager.projects.
|
||||
# v1beta1.DeveloperProjects.GetProject], and the project remains visible to [
|
||||
# ListProjects] [google.cloudresourcemanager.projects.v1beta1.DeveloperProjects.
|
||||
# ListProjects]. However, you cannot update the project. After the deletion
|
||||
# completes, the project is not retrievable by the [GetProject] [google.
|
||||
# cloudresourcemanager.projects.v1beta1.DeveloperProjects.GetProject] and [
|
||||
# ListProjects] [google.cloudresourcemanager.projects.v1beta1.DeveloperProjects.
|
||||
# ListProjects] methods. The caller must have modify permissions for this
|
||||
# project.
|
||||
# @param [String] project_id
|
||||
# The project ID (for example, `foo-bar-123`). Required.
|
||||
# @param [String] fields
|
||||
|
@ -254,11 +254,11 @@ module Google
|
|||
|
||||
# Restores the project identified by the specified `project_id` (for example, `
|
||||
# my-project-123`). You can only use this method for a project that has a
|
||||
# lifecycle state of [DELETE_REQUESTED] [cloudresourcemanager.projects.v1beta2.
|
||||
# LifecycleState.DELETE_REQUESTED]. After deletion starts, as indicated by a
|
||||
# lifecycle state of [DELETE_IN_PROGRESS] [cloudresourcemanager.projects.v1beta2.
|
||||
# LifecycleState.DELETE_IN_PROGRESS], the project cannot be restored. The caller
|
||||
# must have modify permissions for this project.
|
||||
# lifecycle state of [DELETE_REQUESTED] [google.cloudresourcemanager.projects.
|
||||
# v1beta1.LifecycleState.DELETE_REQUESTED]. After deletion starts, as indicated
|
||||
# by a lifecycle state of [DELETE_IN_PROGRESS] [google.cloudresourcemanager.
|
||||
# projects.v1beta1.LifecycleState.DELETE_IN_PROGRESS], the project cannot be
|
||||
# restored. The caller must have modify permissions for this project.
|
||||
# @param [String] project_id
|
||||
# The project ID (for example, `foo-bar-123`). Required.
|
||||
# @param [String] fields
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://developers.google.com/compute/docs/reference/latest/
|
||||
module ComputeV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20150617'
|
||||
REVISION = '20150713'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -58,6 +58,46 @@ module Google
|
|||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
end
|
||||
|
||||
class Autoscaler
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
end
|
||||
|
||||
class AutoscalerAggregatedList
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
end
|
||||
|
||||
class AutoscalerList
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
end
|
||||
|
||||
class AutoscalersScopedList
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
class Warning
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
class Datum
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
class AutoscalingPolicy
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
end
|
||||
|
||||
class AutoscalingPolicyCpuUtilization
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
end
|
||||
|
||||
class AutoscalingPolicyCustomMetricUtilization
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
end
|
||||
|
||||
class AutoscalingPolicyLoadBalancingUtilization
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
end
|
||||
|
||||
class Backend
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
end
|
||||
|
@ -206,6 +246,106 @@ module Google
|
|||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
end
|
||||
|
||||
class InstanceGroup
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
end
|
||||
|
||||
class InstanceGroupAggregatedList
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
end
|
||||
|
||||
class InstanceGroupList
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
end
|
||||
|
||||
class InstanceGroupManager
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
end
|
||||
|
||||
class InstanceGroupManagerActionsSummary
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
end
|
||||
|
||||
class InstanceGroupManagerAggregatedList
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
end
|
||||
|
||||
class InstanceGroupManagerAutoHealingPolicy
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
end
|
||||
|
||||
class InstanceGroupManagerList
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
end
|
||||
|
||||
class InstanceGroupManagersAbandonInstancesRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
end
|
||||
|
||||
class InstanceGroupManagersDeleteInstancesRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
end
|
||||
|
||||
class InstanceGroupManagersListManagedInstancesResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
end
|
||||
|
||||
class InstanceGroupManagersRecreateInstancesRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
end
|
||||
|
||||
class InstanceGroupManagersScopedList
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
class Warning
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
class Datum
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
class InstanceGroupManagersSetInstanceTemplateRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
end
|
||||
|
||||
class InstanceGroupManagersSetTargetPoolsRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
end
|
||||
|
||||
class InstanceGroupsAddInstancesRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
end
|
||||
|
||||
class InstanceGroupsListInstances
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
end
|
||||
|
||||
class InstanceGroupsListInstancesRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
end
|
||||
|
||||
class InstanceGroupsRemoveInstancesRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
end
|
||||
|
||||
class InstanceGroupsScopedList
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
class Warning
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
class Datum
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
class InstanceGroupsSetNamedPortsRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
end
|
||||
|
||||
class InstanceList
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
end
|
||||
|
@ -230,6 +370,10 @@ module Google
|
|||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
end
|
||||
|
||||
class InstanceWithNamedPorts
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
end
|
||||
|
||||
class InstancesScopedList
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -274,6 +418,22 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class ManagedInstance
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
end
|
||||
|
||||
class ManagedInstanceLastAttempt
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
class Errors
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
class Error
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
class Metadata
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -282,6 +442,10 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class NamedPort
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
end
|
||||
|
||||
class Network
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
end
|
||||
|
@ -684,6 +848,112 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class Autoscaler
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :autoscaling_policy, as: 'autoscalingPolicy', class: Google::Apis::ComputeV1::AutoscalingPolicy, decorator: Google::Apis::ComputeV1::AutoscalingPolicy::Representation
|
||||
|
||||
property :creation_timestamp, as: 'creationTimestamp'
|
||||
property :description, as: 'description'
|
||||
property :id, as: 'id'
|
||||
property :kind, as: 'kind'
|
||||
property :name, as: 'name'
|
||||
property :self_link, as: 'selfLink'
|
||||
property :target, as: 'target'
|
||||
property :zone, as: 'zone'
|
||||
end
|
||||
end
|
||||
|
||||
class AutoscalerAggregatedList
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :id, as: 'id'
|
||||
hash :items, as: 'items', class: Google::Apis::ComputeV1::AutoscalersScopedList, decorator: Google::Apis::ComputeV1::AutoscalersScopedList::Representation
|
||||
|
||||
property :kind, as: 'kind'
|
||||
property :next_page_token, as: 'nextPageToken'
|
||||
property :self_link, as: 'selfLink'
|
||||
end
|
||||
end
|
||||
|
||||
class AutoscalerList
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :id, as: 'id'
|
||||
collection :items, as: 'items', class: Google::Apis::ComputeV1::Autoscaler, decorator: Google::Apis::ComputeV1::Autoscaler::Representation
|
||||
|
||||
property :kind, as: 'kind'
|
||||
property :next_page_token, as: 'nextPageToken'
|
||||
property :self_link, as: 'selfLink'
|
||||
end
|
||||
end
|
||||
|
||||
class AutoscalersScopedList
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :autoscalers, as: 'autoscalers', class: Google::Apis::ComputeV1::Autoscaler, decorator: Google::Apis::ComputeV1::Autoscaler::Representation
|
||||
|
||||
property :warning, as: 'warning', class: Google::Apis::ComputeV1::AutoscalersScopedList::Warning, decorator: Google::Apis::ComputeV1::AutoscalersScopedList::Warning::Representation
|
||||
|
||||
end
|
||||
|
||||
class Warning
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :code, as: 'code'
|
||||
collection :data, as: 'data', class: Google::Apis::ComputeV1::AutoscalersScopedList::Warning::Datum, decorator: Google::Apis::ComputeV1::AutoscalersScopedList::Warning::Datum::Representation
|
||||
|
||||
property :message, as: 'message'
|
||||
end
|
||||
|
||||
class Datum
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :key, as: 'key'
|
||||
property :value, as: 'value'
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
class AutoscalingPolicy
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :cool_down_period_sec, as: 'coolDownPeriodSec'
|
||||
property :cpu_utilization, as: 'cpuUtilization', class: Google::Apis::ComputeV1::AutoscalingPolicyCpuUtilization, decorator: Google::Apis::ComputeV1::AutoscalingPolicyCpuUtilization::Representation
|
||||
|
||||
collection :custom_metric_utilizations, as: 'customMetricUtilizations', class: Google::Apis::ComputeV1::AutoscalingPolicyCustomMetricUtilization, decorator: Google::Apis::ComputeV1::AutoscalingPolicyCustomMetricUtilization::Representation
|
||||
|
||||
property :load_balancing_utilization, as: 'loadBalancingUtilization', class: Google::Apis::ComputeV1::AutoscalingPolicyLoadBalancingUtilization, decorator: Google::Apis::ComputeV1::AutoscalingPolicyLoadBalancingUtilization::Representation
|
||||
|
||||
property :max_num_replicas, as: 'maxNumReplicas'
|
||||
property :min_num_replicas, as: 'minNumReplicas'
|
||||
end
|
||||
end
|
||||
|
||||
class AutoscalingPolicyCpuUtilization
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :utilization_target, as: 'utilizationTarget'
|
||||
end
|
||||
end
|
||||
|
||||
class AutoscalingPolicyCustomMetricUtilization
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :metric, as: 'metric'
|
||||
property :utilization_target, as: 'utilizationTarget'
|
||||
property :utilization_target_type, as: 'utilizationTargetType'
|
||||
end
|
||||
end
|
||||
|
||||
class AutoscalingPolicyLoadBalancingUtilization
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :utilization_target, as: 'utilizationTarget'
|
||||
end
|
||||
end
|
||||
|
||||
class Backend
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
@ -1153,6 +1423,261 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class InstanceGroup
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :creation_timestamp, as: 'creationTimestamp'
|
||||
property :description, as: 'description'
|
||||
property :fingerprint, :base64 => true, as: 'fingerprint'
|
||||
property :id, as: 'id'
|
||||
property :kind, as: 'kind'
|
||||
property :name, as: 'name'
|
||||
collection :named_ports, as: 'namedPorts', class: Google::Apis::ComputeV1::NamedPort, decorator: Google::Apis::ComputeV1::NamedPort::Representation
|
||||
|
||||
property :network, as: 'network'
|
||||
property :self_link, as: 'selfLink'
|
||||
property :size, as: 'size'
|
||||
property :zone, as: 'zone'
|
||||
end
|
||||
end
|
||||
|
||||
class InstanceGroupAggregatedList
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :id, as: 'id'
|
||||
hash :items, as: 'items', class: Google::Apis::ComputeV1::InstanceGroupsScopedList, decorator: Google::Apis::ComputeV1::InstanceGroupsScopedList::Representation
|
||||
|
||||
property :kind, as: 'kind'
|
||||
property :next_page_token, as: 'nextPageToken'
|
||||
property :self_link, as: 'selfLink'
|
||||
end
|
||||
end
|
||||
|
||||
class InstanceGroupList
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :id, as: 'id'
|
||||
collection :items, as: 'items', class: Google::Apis::ComputeV1::InstanceGroup, decorator: Google::Apis::ComputeV1::InstanceGroup::Representation
|
||||
|
||||
property :kind, as: 'kind'
|
||||
property :next_page_token, as: 'nextPageToken'
|
||||
property :self_link, as: 'selfLink'
|
||||
end
|
||||
end
|
||||
|
||||
class InstanceGroupManager
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :auto_healing_policies, as: 'autoHealingPolicies', class: Google::Apis::ComputeV1::InstanceGroupManagerAutoHealingPolicy, decorator: Google::Apis::ComputeV1::InstanceGroupManagerAutoHealingPolicy::Representation
|
||||
|
||||
property :base_instance_name, as: 'baseInstanceName'
|
||||
property :creation_timestamp, as: 'creationTimestamp'
|
||||
property :current_actions, as: 'currentActions', class: Google::Apis::ComputeV1::InstanceGroupManagerActionsSummary, decorator: Google::Apis::ComputeV1::InstanceGroupManagerActionsSummary::Representation
|
||||
|
||||
property :description, as: 'description'
|
||||
property :fingerprint, :base64 => true, as: 'fingerprint'
|
||||
property :id, as: 'id'
|
||||
property :instance_group, as: 'instanceGroup'
|
||||
property :instance_template, as: 'instanceTemplate'
|
||||
property :kind, as: 'kind'
|
||||
property :name, as: 'name'
|
||||
property :self_link, as: 'selfLink'
|
||||
collection :target_pools, as: 'targetPools'
|
||||
property :target_size, as: 'targetSize'
|
||||
property :zone, as: 'zone'
|
||||
end
|
||||
end
|
||||
|
||||
class InstanceGroupManagerActionsSummary
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :abandoning, as: 'abandoning'
|
||||
property :creating, as: 'creating'
|
||||
property :deleting, as: 'deleting'
|
||||
property :none, as: 'none'
|
||||
property :recreating, as: 'recreating'
|
||||
property :refreshing, as: 'refreshing'
|
||||
property :restarting, as: 'restarting'
|
||||
end
|
||||
end
|
||||
|
||||
class InstanceGroupManagerAggregatedList
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :id, as: 'id'
|
||||
hash :items, as: 'items', class: Google::Apis::ComputeV1::InstanceGroupManagersScopedList, decorator: Google::Apis::ComputeV1::InstanceGroupManagersScopedList::Representation
|
||||
|
||||
property :kind, as: 'kind'
|
||||
property :next_page_token, as: 'nextPageToken'
|
||||
property :self_link, as: 'selfLink'
|
||||
end
|
||||
end
|
||||
|
||||
class InstanceGroupManagerAutoHealingPolicy
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :action_type, as: 'actionType'
|
||||
property :health_check, as: 'healthCheck'
|
||||
end
|
||||
end
|
||||
|
||||
class InstanceGroupManagerList
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :id, as: 'id'
|
||||
collection :items, as: 'items', class: Google::Apis::ComputeV1::InstanceGroupManager, decorator: Google::Apis::ComputeV1::InstanceGroupManager::Representation
|
||||
|
||||
property :kind, as: 'kind'
|
||||
property :next_page_token, as: 'nextPageToken'
|
||||
property :self_link, as: 'selfLink'
|
||||
end
|
||||
end
|
||||
|
||||
class InstanceGroupManagersAbandonInstancesRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :instances, as: 'instances'
|
||||
end
|
||||
end
|
||||
|
||||
class InstanceGroupManagersDeleteInstancesRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :instances, as: 'instances'
|
||||
end
|
||||
end
|
||||
|
||||
class InstanceGroupManagersListManagedInstancesResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :managed_instances, as: 'managedInstances', class: Google::Apis::ComputeV1::ManagedInstance, decorator: Google::Apis::ComputeV1::ManagedInstance::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class InstanceGroupManagersRecreateInstancesRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :instances, as: 'instances'
|
||||
end
|
||||
end
|
||||
|
||||
class InstanceGroupManagersScopedList
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :instance_group_managers, as: 'instanceGroupManagers', class: Google::Apis::ComputeV1::InstanceGroupManager, decorator: Google::Apis::ComputeV1::InstanceGroupManager::Representation
|
||||
|
||||
property :warning, as: 'warning', class: Google::Apis::ComputeV1::InstanceGroupManagersScopedList::Warning, decorator: Google::Apis::ComputeV1::InstanceGroupManagersScopedList::Warning::Representation
|
||||
|
||||
end
|
||||
|
||||
class Warning
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :code, as: 'code'
|
||||
collection :data, as: 'data', class: Google::Apis::ComputeV1::InstanceGroupManagersScopedList::Warning::Datum, decorator: Google::Apis::ComputeV1::InstanceGroupManagersScopedList::Warning::Datum::Representation
|
||||
|
||||
property :message, as: 'message'
|
||||
end
|
||||
|
||||
class Datum
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :key, as: 'key'
|
||||
property :value, as: 'value'
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
class InstanceGroupManagersSetInstanceTemplateRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :instance_template, as: 'instanceTemplate'
|
||||
end
|
||||
end
|
||||
|
||||
class InstanceGroupManagersSetTargetPoolsRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :fingerprint, :base64 => true, as: 'fingerprint'
|
||||
collection :target_pools, as: 'targetPools'
|
||||
end
|
||||
end
|
||||
|
||||
class InstanceGroupsAddInstancesRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :instances, as: 'instances', class: Google::Apis::ComputeV1::InstanceReference, decorator: Google::Apis::ComputeV1::InstanceReference::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class InstanceGroupsListInstances
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :id, as: 'id'
|
||||
collection :items, as: 'items', class: Google::Apis::ComputeV1::InstanceWithNamedPorts, decorator: Google::Apis::ComputeV1::InstanceWithNamedPorts::Representation
|
||||
|
||||
property :kind, as: 'kind'
|
||||
property :next_page_token, as: 'nextPageToken'
|
||||
property :self_link, as: 'selfLink'
|
||||
end
|
||||
end
|
||||
|
||||
class InstanceGroupsListInstancesRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :instance_state, as: 'instanceState'
|
||||
property :port_name, as: 'portName'
|
||||
end
|
||||
end
|
||||
|
||||
class InstanceGroupsRemoveInstancesRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :instances, as: 'instances', class: Google::Apis::ComputeV1::InstanceReference, decorator: Google::Apis::ComputeV1::InstanceReference::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class InstanceGroupsScopedList
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :instance_groups, as: 'instanceGroups', class: Google::Apis::ComputeV1::InstanceGroup, decorator: Google::Apis::ComputeV1::InstanceGroup::Representation
|
||||
|
||||
property :warning, as: 'warning', class: Google::Apis::ComputeV1::InstanceGroupsScopedList::Warning, decorator: Google::Apis::ComputeV1::InstanceGroupsScopedList::Warning::Representation
|
||||
|
||||
end
|
||||
|
||||
class Warning
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :code, as: 'code'
|
||||
collection :data, as: 'data', class: Google::Apis::ComputeV1::InstanceGroupsScopedList::Warning::Datum, decorator: Google::Apis::ComputeV1::InstanceGroupsScopedList::Warning::Datum::Representation
|
||||
|
||||
property :message, as: 'message'
|
||||
end
|
||||
|
||||
class Datum
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :key, as: 'key'
|
||||
property :value, as: 'value'
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
class InstanceGroupsSetNamedPortsRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :fingerprint, :base64 => true, as: 'fingerprint'
|
||||
collection :named_ports, as: 'namedPorts', class: Google::Apis::ComputeV1::NamedPort, decorator: Google::Apis::ComputeV1::NamedPort::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class InstanceList
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
@ -1227,6 +1752,16 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class InstanceWithNamedPorts
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :instance, as: 'instance'
|
||||
collection :named_ports, as: 'namedPorts', class: Google::Apis::ComputeV1::NamedPort, decorator: Google::Apis::ComputeV1::NamedPort::Representation
|
||||
|
||||
property :status, as: 'status'
|
||||
end
|
||||
end
|
||||
|
||||
class InstancesScopedList
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
@ -1346,6 +1881,43 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class ManagedInstance
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :current_action, as: 'currentAction'
|
||||
property :id, as: 'id'
|
||||
property :instance, as: 'instance'
|
||||
property :instance_status, as: 'instanceStatus'
|
||||
property :last_attempt, as: 'lastAttempt', class: Google::Apis::ComputeV1::ManagedInstanceLastAttempt, decorator: Google::Apis::ComputeV1::ManagedInstanceLastAttempt::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class ManagedInstanceLastAttempt
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :errors, as: 'errors', class: Google::Apis::ComputeV1::ManagedInstanceLastAttempt::Errors, decorator: Google::Apis::ComputeV1::ManagedInstanceLastAttempt::Errors::Representation
|
||||
|
||||
end
|
||||
|
||||
class Errors
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :errors, as: 'errors', class: Google::Apis::ComputeV1::ManagedInstanceLastAttempt::Errors::Error, decorator: Google::Apis::ComputeV1::ManagedInstanceLastAttempt::Errors::Error::Representation
|
||||
|
||||
end
|
||||
|
||||
class Error
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :code, as: 'code'
|
||||
property :location, as: 'location'
|
||||
property :message, as: 'message'
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
class Metadata
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
@ -1364,6 +1936,14 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class NamedPort
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :name, as: 'name'
|
||||
property :port, as: 'port'
|
||||
end
|
||||
end
|
||||
|
||||
class Network
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,35 @@
|
|||
# Copyright 2015 Google Inc.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
require 'google/apis/container_v1/service.rb'
|
||||
require 'google/apis/container_v1/classes.rb'
|
||||
require 'google/apis/container_v1/representations.rb'
|
||||
|
||||
module Google
|
||||
module Apis
|
||||
# Google Container Engine API
|
||||
#
|
||||
# The Google Container Engine API is used for building and managing container
|
||||
# based applications, powered by the open source Kubernetes technology.
|
||||
#
|
||||
# @see https://cloud.google.com/container-engine/
|
||||
module ContainerV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20150605'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,438 @@
|
|||
# Copyright 2015 Google Inc.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
require 'date'
|
||||
require 'google/apis/core/base_service'
|
||||
require 'google/apis/core/json_representation'
|
||||
require 'google/apis/core/hashable'
|
||||
require 'google/apis/errors'
|
||||
|
||||
module Google
|
||||
module Apis
|
||||
module ContainerV1
|
||||
|
||||
# ListClustersResponse is the result of ListClustersRequest.
|
||||
class ListClustersResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# A list of clusters in the project in the specified zone, or across all ones.
|
||||
# Corresponds to the JSON property `clusters`
|
||||
# @return [Array<Google::Apis::ContainerV1::Cluster>]
|
||||
attr_accessor :clusters
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@clusters = args[:clusters] unless args[:clusters].nil?
|
||||
end
|
||||
end
|
||||
|
||||
# A Google Container Engine cluster.
|
||||
class Cluster
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The name of this cluster. The name must be unique within this project and zone,
|
||||
# and can be up to 40 characters with the following restrictions: * Lowercase
|
||||
# letters, numbers, and hyphens only. * Must start with a letter. * Must end
|
||||
# with a number or a letter.
|
||||
# Corresponds to the JSON property `name`
|
||||
# @return [String]
|
||||
attr_accessor :name
|
||||
|
||||
# An optional description of this cluster.
|
||||
# Corresponds to the JSON property `description`
|
||||
# @return [String]
|
||||
attr_accessor :description
|
||||
|
||||
# The number of nodes to create in this cluster. You must ensure that your
|
||||
# Compute Engine [resource quota](/compute/docs/resource-quotas) is sufficient
|
||||
# for this number of instances. You must also have available firewall and routes
|
||||
# quota.
|
||||
# Corresponds to the JSON property `initialNodeCount`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :initial_node_count
|
||||
|
||||
# Per-node parameters.
|
||||
# Corresponds to the JSON property `nodeConfig`
|
||||
# @return [Google::Apis::ContainerV1::NodeConfig]
|
||||
attr_accessor :node_config
|
||||
|
||||
# The authentication information for accessing the master endpoint.
|
||||
# Authentication can be done using HTTP basic auth or using client certificates.
|
||||
# Corresponds to the JSON property `masterAuth`
|
||||
# @return [Google::Apis::ContainerV1::MasterAuth]
|
||||
attr_accessor :master_auth
|
||||
|
||||
# The logging service that the cluster should write logs to. Currently available
|
||||
# options: * "logging.googleapis.com" - the Google Cloud Logging service * "none"
|
||||
# - no logs will be exported from the cluster * "" - default value; the default
|
||||
# is "logging.googleapis.com"
|
||||
# Corresponds to the JSON property `loggingService`
|
||||
# @return [String]
|
||||
attr_accessor :logging_service
|
||||
|
||||
# The monitoring service that the cluster should write metrics to. Currently
|
||||
# available options: * "monitoring.googleapis.com" - the Google Cloud Monitoring
|
||||
# service * "none" - no metrics will be exported from the cluster * "" - default
|
||||
# value; the default is "monitoring.googleapis.com"
|
||||
# Corresponds to the JSON property `monitoringService`
|
||||
# @return [String]
|
||||
attr_accessor :monitoring_service
|
||||
|
||||
# The name of the Google Compute Engine [network](/compute/docs/networking#
|
||||
# networks_1) to which the cluster is connected. If left unspecified, the "
|
||||
# default" network will be used.
|
||||
# Corresponds to the JSON property `network`
|
||||
# @return [String]
|
||||
attr_accessor :network
|
||||
|
||||
# The IP address range of the container pods in this cluster, in [CIDR](http://
|
||||
# en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) notation (e.g. `10.96.0.
|
||||
# 0/14`). Leave blank to have one automatically chosen or specify a `/14` block
|
||||
# in `10.0.0.0/8` or `172.16.0.0/12`.
|
||||
# Corresponds to the JSON property `clusterIpv4Cidr`
|
||||
# @return [String]
|
||||
attr_accessor :cluster_ipv4_cidr
|
||||
|
||||
# [Output only] Server-defined URL for the resource. @OutputOnly.
|
||||
# Corresponds to the JSON property `selfLink`
|
||||
# @return [String]
|
||||
attr_accessor :self_link
|
||||
|
||||
# [Output only] The name of the Google Compute Engine [zone](/compute/docs/zones#
|
||||
# available) in which the cluster resides. @OutputOnly.
|
||||
# Corresponds to the JSON property `zone`
|
||||
# @return [String]
|
||||
attr_accessor :zone
|
||||
|
||||
# [Output only] The IP address of this cluster's Kubernetes master endpoint. The
|
||||
# endpoint can be accessed from the internet at `https://username:password@
|
||||
# endpoint/`. @OutputOnly. See the `masterAuth` property of this resource for
|
||||
# username and password information.
|
||||
# Corresponds to the JSON property `endpoint`
|
||||
# @return [String]
|
||||
attr_accessor :endpoint
|
||||
|
||||
# [Output only] The software version of Kubernetes master and kubelets used in
|
||||
# the cluster when it was first created. The version can be upgraded over time. @
|
||||
# OutputOnly.
|
||||
# Corresponds to the JSON property `initialClusterVersion`
|
||||
# @return [String]
|
||||
attr_accessor :initial_cluster_version
|
||||
|
||||
# [Output only] The current software version of the master endpoint. @OutputOnly.
|
||||
# Corresponds to the JSON property `currentMasterVersion`
|
||||
# @return [String]
|
||||
attr_accessor :current_master_version
|
||||
|
||||
# [Output only] The current version of the node software components. If they are
|
||||
# currently at different versions because they're in the process of being
|
||||
# upgraded, this reflects the minimum version of any of them. @OutputOnly.
|
||||
# Corresponds to the JSON property `currentNodeVersion`
|
||||
# @return [String]
|
||||
attr_accessor :current_node_version
|
||||
|
||||
# [Output only] The time the cluster was created, in [RFC3339](href='https://www.
|
||||
# ietf.org/rfc/rfc3339.txt) text format. @OutputOnly.
|
||||
# Corresponds to the JSON property `createTime`
|
||||
# @return [String]
|
||||
attr_accessor :create_time
|
||||
|
||||
# [Output only] The current status of this cluster. @OutputOnly.
|
||||
# Corresponds to the JSON property `status`
|
||||
# @return [String]
|
||||
attr_accessor :status
|
||||
|
||||
# [Output only] Additional information about the current status of this cluster,
|
||||
# if available. @OutputOnly.
|
||||
# Corresponds to the JSON property `statusMessage`
|
||||
# @return [String]
|
||||
attr_accessor :status_message
|
||||
|
||||
# [Output only] The size of the address space on each node for hosting
|
||||
# containers. This is provisioned from within the container_ipv4_cidr range. @
|
||||
# OutputOnly.
|
||||
# Corresponds to the JSON property `nodeIpv4CidrSize`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :node_ipv4_cidr_size
|
||||
|
||||
# [Output only] The IP address range of the Kubernetes services in this cluster,
|
||||
# in [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
|
||||
# notation (e.g. `1.2.3.4/29`). Service addresses are typically put in the last /
|
||||
# 16 from the container CIDR. @OutputOnly.
|
||||
# Corresponds to the JSON property `servicesIpv4Cidr`
|
||||
# @return [String]
|
||||
attr_accessor :services_ipv4_cidr
|
||||
|
||||
# [Output only] The resource URLs of [instance groups](/compute/docs/instance-
|
||||
# groups/) associated with this cluster. @OutputOnly.
|
||||
# Corresponds to the JSON property `instanceGroupUrls`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :instance_group_urls
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@name = args[:name] unless args[:name].nil?
|
||||
@description = args[:description] unless args[:description].nil?
|
||||
@initial_node_count = args[:initial_node_count] unless args[:initial_node_count].nil?
|
||||
@node_config = args[:node_config] unless args[:node_config].nil?
|
||||
@master_auth = args[:master_auth] unless args[:master_auth].nil?
|
||||
@logging_service = args[:logging_service] unless args[:logging_service].nil?
|
||||
@monitoring_service = args[:monitoring_service] unless args[:monitoring_service].nil?
|
||||
@network = args[:network] unless args[:network].nil?
|
||||
@cluster_ipv4_cidr = args[:cluster_ipv4_cidr] unless args[:cluster_ipv4_cidr].nil?
|
||||
@self_link = args[:self_link] unless args[:self_link].nil?
|
||||
@zone = args[:zone] unless args[:zone].nil?
|
||||
@endpoint = args[:endpoint] unless args[:endpoint].nil?
|
||||
@initial_cluster_version = args[:initial_cluster_version] unless args[:initial_cluster_version].nil?
|
||||
@current_master_version = args[:current_master_version] unless args[:current_master_version].nil?
|
||||
@current_node_version = args[:current_node_version] unless args[:current_node_version].nil?
|
||||
@create_time = args[:create_time] unless args[:create_time].nil?
|
||||
@status = args[:status] unless args[:status].nil?
|
||||
@status_message = args[:status_message] unless args[:status_message].nil?
|
||||
@node_ipv4_cidr_size = args[:node_ipv4_cidr_size] unless args[:node_ipv4_cidr_size].nil?
|
||||
@services_ipv4_cidr = args[:services_ipv4_cidr] unless args[:services_ipv4_cidr].nil?
|
||||
@instance_group_urls = args[:instance_group_urls] unless args[:instance_group_urls].nil?
|
||||
end
|
||||
end
|
||||
|
||||
# Per-node parameters.
|
||||
class NodeConfig
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The name of a Google Compute Engine [machine type](/compute/docs/machine-types)
|
||||
# (e.g. `n1-standard-1`). If unspecified, the default machine type is `n1-
|
||||
# standard-1`.
|
||||
# Corresponds to the JSON property `machineType`
|
||||
# @return [String]
|
||||
attr_accessor :machine_type
|
||||
|
||||
# Size of the disk attached to each node, specified in GB. The smallest allowed
|
||||
# disk size is 10GB, and the default is 100GB.
|
||||
# Corresponds to the JSON property `diskSizeGb`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :disk_size_gb
|
||||
|
||||
# The set of Google API scopes to be made available on all of the node VMs under
|
||||
# the "default" service account. Currently, the following scopes are necessary
|
||||
# to ensure the correct functioning of the cluster: * "https://www.googleapis.
|
||||
# com/auth/compute" * "https://www.googleapis.com/auth/devstorage.read_only"
|
||||
# Corresponds to the JSON property `oauthScopes`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :oauth_scopes
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@machine_type = args[:machine_type] unless args[:machine_type].nil?
|
||||
@disk_size_gb = args[:disk_size_gb] unless args[:disk_size_gb].nil?
|
||||
@oauth_scopes = args[:oauth_scopes] unless args[:oauth_scopes].nil?
|
||||
end
|
||||
end
|
||||
|
||||
# The authentication information for accessing the master endpoint.
|
||||
# Authentication can be done using HTTP basic auth or using client certificates.
|
||||
class MasterAuth
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The username to use for HTTP basic authentication when accessing the
|
||||
# Kubernetes master endpoint.
|
||||
# Corresponds to the JSON property `username`
|
||||
# @return [String]
|
||||
attr_accessor :username
|
||||
|
||||
# The password to use for HTTP basic authentication when accessing the
|
||||
# Kubernetes master endpoint. Because the master endpoint is open to the
|
||||
# internet, you should create a strong password.
|
||||
# Corresponds to the JSON property `password`
|
||||
# @return [String]
|
||||
attr_accessor :password
|
||||
|
||||
# [Output only] Base64 encoded public certificate that is the root of trust for
|
||||
# the cluster. @OutputOnly.
|
||||
# Corresponds to the JSON property `clusterCaCertificate`
|
||||
# @return [String]
|
||||
attr_accessor :cluster_ca_certificate
|
||||
|
||||
# [Output only] Base64 encoded public certificate used by clients to
|
||||
# authenticate to the cluster endpoint. @OutputOnly.
|
||||
# Corresponds to the JSON property `clientCertificate`
|
||||
# @return [String]
|
||||
attr_accessor :client_certificate
|
||||
|
||||
# [Output only] Base64 encoded private key used by clients to authenticate to
|
||||
# the cluster endpoint. @OutputOnly.
|
||||
# Corresponds to the JSON property `clientKey`
|
||||
# @return [String]
|
||||
attr_accessor :client_key
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@username = args[:username] unless args[:username].nil?
|
||||
@password = args[:password] unless args[:password].nil?
|
||||
@cluster_ca_certificate = args[:cluster_ca_certificate] unless args[:cluster_ca_certificate].nil?
|
||||
@client_certificate = args[:client_certificate] unless args[:client_certificate].nil?
|
||||
@client_key = args[:client_key] unless args[:client_key].nil?
|
||||
end
|
||||
end
|
||||
|
||||
# CreateClusterRequest creates a cluster.
|
||||
class CreateClusterRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# A Google Container Engine cluster.
|
||||
# Corresponds to the JSON property `cluster`
|
||||
# @return [Google::Apis::ContainerV1::Cluster]
|
||||
attr_accessor :cluster
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@cluster = args[:cluster] unless args[:cluster].nil?
|
||||
end
|
||||
end
|
||||
|
||||
# Defines the operation resource. All fields are output only.
|
||||
class Operation
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The server-assigned ID for the operation. @OutputOnly.
|
||||
# Corresponds to the JSON property `name`
|
||||
# @return [String]
|
||||
attr_accessor :name
|
||||
|
||||
# The name of the Google Compute Engine [zone](/compute/docs/zones#available) in
|
||||
# which the operation is taking place. @OutputOnly.
|
||||
# Corresponds to the JSON property `zone`
|
||||
# @return [String]
|
||||
attr_accessor :zone
|
||||
|
||||
# The operation type. @OutputOnly.
|
||||
# Corresponds to the JSON property `operationType`
|
||||
# @return [String]
|
||||
attr_accessor :operation_type
|
||||
|
||||
# The current status of the operation. @OutputOnly.
|
||||
# Corresponds to the JSON property `status`
|
||||
# @return [String]
|
||||
attr_accessor :status
|
||||
|
||||
# If an error has occurred, a textual description of the error. @OutputOnly.
|
||||
# Corresponds to the JSON property `statusMessage`
|
||||
# @return [String]
|
||||
attr_accessor :status_message
|
||||
|
||||
# Server-defined URL for the resource. @OutputOnly.
|
||||
# Corresponds to the JSON property `selfLink`
|
||||
# @return [String]
|
||||
attr_accessor :self_link
|
||||
|
||||
# Server-defined URL for the target of the operation. @OutputOnly.
|
||||
# Corresponds to the JSON property `targetLink`
|
||||
# @return [String]
|
||||
attr_accessor :target_link
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@name = args[:name] unless args[:name].nil?
|
||||
@zone = args[:zone] unless args[:zone].nil?
|
||||
@operation_type = args[:operation_type] unless args[:operation_type].nil?
|
||||
@status = args[:status] unless args[:status].nil?
|
||||
@status_message = args[:status_message] unless args[:status_message].nil?
|
||||
@self_link = args[:self_link] unless args[:self_link].nil?
|
||||
@target_link = args[:target_link] unless args[:target_link].nil?
|
||||
end
|
||||
end
|
||||
|
||||
# UpdateClusterRequest updates a cluster.
|
||||
class UpdateClusterRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# ClusterUpdate describes an update to the cluster.
|
||||
# Corresponds to the JSON property `update`
|
||||
# @return [Google::Apis::ContainerV1::ClusterUpdate]
|
||||
attr_accessor :update
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@update = args[:update] unless args[:update].nil?
|
||||
end
|
||||
end
|
||||
|
||||
# ClusterUpdate describes an update to the cluster.
|
||||
class ClusterUpdate
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The Kubernetes version to change the nodes to (typically an upgrade). Use "-"
|
||||
# to upgrade to the latest version supported by the server.
|
||||
# Corresponds to the JSON property `desiredNodeVersion`
|
||||
# @return [String]
|
||||
attr_accessor :desired_node_version
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@desired_node_version = args[:desired_node_version] unless args[:desired_node_version].nil?
|
||||
end
|
||||
end
|
||||
|
||||
# ListOperationsResponse is the result of ListOperationsRequest.
|
||||
class ListOperationsResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# A list of operations in the project in the specified zone.
|
||||
# Corresponds to the JSON property `operations`
|
||||
# @return [Array<Google::Apis::ContainerV1::Operation>]
|
||||
attr_accessor :operations
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@operations = args[:operations] unless args[:operations].nil?
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,163 @@
|
|||
# Copyright 2015 Google Inc.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
require 'date'
|
||||
require 'google/apis/core/base_service'
|
||||
require 'google/apis/core/json_representation'
|
||||
require 'google/apis/core/hashable'
|
||||
require 'google/apis/errors'
|
||||
|
||||
module Google
|
||||
module Apis
|
||||
module ContainerV1
|
||||
|
||||
class ListClustersResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
end
|
||||
|
||||
class Cluster
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
end
|
||||
|
||||
class NodeConfig
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
end
|
||||
|
||||
class MasterAuth
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
end
|
||||
|
||||
class CreateClusterRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
end
|
||||
|
||||
class Operation
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
end
|
||||
|
||||
class UpdateClusterRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
end
|
||||
|
||||
class ClusterUpdate
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
end
|
||||
|
||||
class ListOperationsResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
end
|
||||
|
||||
class ListClustersResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :clusters, as: 'clusters', class: Google::Apis::ContainerV1::Cluster, decorator: Google::Apis::ContainerV1::Cluster::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class Cluster
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :name, as: 'name'
|
||||
property :description, as: 'description'
|
||||
property :initial_node_count, as: 'initialNodeCount'
|
||||
property :node_config, as: 'nodeConfig', class: Google::Apis::ContainerV1::NodeConfig, decorator: Google::Apis::ContainerV1::NodeConfig::Representation
|
||||
|
||||
property :master_auth, as: 'masterAuth', class: Google::Apis::ContainerV1::MasterAuth, decorator: Google::Apis::ContainerV1::MasterAuth::Representation
|
||||
|
||||
property :logging_service, as: 'loggingService'
|
||||
property :monitoring_service, as: 'monitoringService'
|
||||
property :network, as: 'network'
|
||||
property :cluster_ipv4_cidr, as: 'clusterIpv4Cidr'
|
||||
property :self_link, as: 'selfLink'
|
||||
property :zone, as: 'zone'
|
||||
property :endpoint, as: 'endpoint'
|
||||
property :initial_cluster_version, as: 'initialClusterVersion'
|
||||
property :current_master_version, as: 'currentMasterVersion'
|
||||
property :current_node_version, as: 'currentNodeVersion'
|
||||
property :create_time, as: 'createTime'
|
||||
property :status, as: 'status'
|
||||
property :status_message, as: 'statusMessage'
|
||||
property :node_ipv4_cidr_size, as: 'nodeIpv4CidrSize'
|
||||
property :services_ipv4_cidr, as: 'servicesIpv4Cidr'
|
||||
collection :instance_group_urls, as: 'instanceGroupUrls'
|
||||
end
|
||||
end
|
||||
|
||||
class NodeConfig
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :machine_type, as: 'machineType'
|
||||
property :disk_size_gb, as: 'diskSizeGb'
|
||||
collection :oauth_scopes, as: 'oauthScopes'
|
||||
end
|
||||
end
|
||||
|
||||
class MasterAuth
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :username, as: 'username'
|
||||
property :password, as: 'password'
|
||||
property :cluster_ca_certificate, as: 'clusterCaCertificate'
|
||||
property :client_certificate, as: 'clientCertificate'
|
||||
property :client_key, as: 'clientKey'
|
||||
end
|
||||
end
|
||||
|
||||
class CreateClusterRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :cluster, as: 'cluster', class: Google::Apis::ContainerV1::Cluster, decorator: Google::Apis::ContainerV1::Cluster::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class Operation
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :name, as: 'name'
|
||||
property :zone, as: 'zone'
|
||||
property :operation_type, as: 'operationType'
|
||||
property :status, as: 'status'
|
||||
property :status_message, as: 'statusMessage'
|
||||
property :self_link, as: 'selfLink'
|
||||
property :target_link, as: 'targetLink'
|
||||
end
|
||||
end
|
||||
|
||||
class UpdateClusterRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :update, as: 'update', class: Google::Apis::ContainerV1::ClusterUpdate, decorator: Google::Apis::ContainerV1::ClusterUpdate::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class ClusterUpdate
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :desired_node_version, as: 'desiredNodeVersion'
|
||||
end
|
||||
end
|
||||
|
||||
class ListOperationsResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :operations, as: 'operations', class: Google::Apis::ContainerV1::Operation, decorator: Google::Apis::ContainerV1::Operation::Representation
|
||||
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,346 @@
|
|||
# Copyright 2015 Google Inc.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
require 'google/apis/core/base_service'
|
||||
require 'google/apis/core/json_representation'
|
||||
require 'google/apis/core/hashable'
|
||||
require 'google/apis/errors'
|
||||
|
||||
module Google
|
||||
module Apis
|
||||
module ContainerV1
|
||||
# Google Container Engine API
|
||||
#
|
||||
# The Google Container Engine API is used for building and managing container
|
||||
# based applications, powered by the open source Kubernetes technology.
|
||||
#
|
||||
# @example
|
||||
# require 'google/apis/container_v1'
|
||||
#
|
||||
# Container = Google::Apis::ContainerV1 # Alias the module
|
||||
# service = Container::ContainerService.new
|
||||
#
|
||||
# @see https://cloud.google.com/container-engine/
|
||||
class ContainerService < Google::Apis::Core::BaseService
|
||||
# @return [String]
|
||||
# API key. Your API key identifies your project and provides you with API access,
|
||||
# quota, and reports. Required unless you provide an OAuth 2.0 token.
|
||||
attr_accessor :key
|
||||
|
||||
# @return [String]
|
||||
# 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.
|
||||
attr_accessor :quota_user
|
||||
|
||||
def initialize
|
||||
super('https://container.googleapis.com/', '')
|
||||
end
|
||||
|
||||
# Lists all clusters owned by a project in either the specified zone or all
|
||||
# zones.
|
||||
# @param [String] project_id
|
||||
# The Google Developers Console [project ID](https://console.developers.google.
|
||||
# com/project) or [project number](https://developers.google.com/console/help/
|
||||
# project-number)
|
||||
# @param [String] zone
|
||||
# The name of the Google Compute Engine [zone](/compute/docs/zones#available) in
|
||||
# which the cluster resides, or "-" for all zones.
|
||||
# @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::ContainerV1::ListClustersResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ContainerV1::ListClustersResponse]
|
||||
#
|
||||
# @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 list_zone_clusters(project_id, zone, fields: nil, quota_user: nil, options: nil, &block)
|
||||
path = 'v1/projects/{projectId}/zones/{zone}/clusters'
|
||||
command = make_simple_command(:get, path, options)
|
||||
command.response_representation = Google::Apis::ContainerV1::ListClustersResponse::Representation
|
||||
command.response_class = Google::Apis::ContainerV1::ListClustersResponse
|
||||
command.params['projectId'] = project_id unless project_id.nil?
|
||||
command.params['zone'] = zone unless zone.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Gets a specific cluster.
|
||||
# @param [String] project_id
|
||||
# The Google Developers Console A [project ID](https://console.developers.google.
|
||||
# com/project) or [project number](https://developers.google.com/console/help/
|
||||
# project-number)
|
||||
# @param [String] zone
|
||||
# The name of the Google Compute Engine [zone](/compute/docs/zones#available) in
|
||||
# which the cluster resides.
|
||||
# @param [String] cluster_id
|
||||
# The name of the cluster to retrieve.
|
||||
# @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::ContainerV1::Cluster] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ContainerV1::Cluster]
|
||||
#
|
||||
# @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_zone_cluster(project_id, zone, cluster_id, fields: nil, quota_user: nil, options: nil, &block)
|
||||
path = 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}'
|
||||
command = make_simple_command(:get, path, options)
|
||||
command.response_representation = Google::Apis::ContainerV1::Cluster::Representation
|
||||
command.response_class = Google::Apis::ContainerV1::Cluster
|
||||
command.params['projectId'] = project_id unless project_id.nil?
|
||||
command.params['zone'] = zone unless zone.nil?
|
||||
command.params['clusterId'] = cluster_id unless cluster_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
|
||||
|
||||
# Creates a cluster, consisting of the specified number and type of Google
|
||||
# Compute Engine instances, plus a Kubernetes master endpoint. By default, the
|
||||
# cluster is created in the project's [default network]('/compute/docs/
|
||||
# networking#networks_1'). One firewall is added for the cluster. After cluster
|
||||
# creation, the cluster creates routes for each node to allow the containers on
|
||||
# that node to communicate with all other instances in the cluster. Finally, an
|
||||
# entry is added to the project's global metadata indicating which CIDR range is
|
||||
# being used by the cluster.
|
||||
# @param [String] project_id
|
||||
# The Google Developers Console [project ID](https://console.developers.google.
|
||||
# com/project) or [project number](https://developers.google.com/console/help/
|
||||
# project-number)
|
||||
# @param [String] zone
|
||||
# The name of the Google Compute Engine [zone](/compute/docs/zones#available) in
|
||||
# which the cluster resides.
|
||||
# @param [Google::Apis::ContainerV1::CreateClusterRequest] create_cluster_request_object
|
||||
# @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::ContainerV1::Operation] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ContainerV1::Operation]
|
||||
#
|
||||
# @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 create_cluster(project_id, zone, create_cluster_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
path = 'v1/projects/{projectId}/zones/{zone}/clusters'
|
||||
command = make_simple_command(:post, path, options)
|
||||
command.request_representation = Google::Apis::ContainerV1::CreateClusterRequest::Representation
|
||||
command.request_object = create_cluster_request_object
|
||||
command.response_representation = Google::Apis::ContainerV1::Operation::Representation
|
||||
command.response_class = Google::Apis::ContainerV1::Operation
|
||||
command.params['projectId'] = project_id unless project_id.nil?
|
||||
command.params['zone'] = zone unless zone.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Update settings of a specific cluster.
|
||||
# @param [String] project_id
|
||||
# The Google Developers Console [project ID](https://console.developers.google.
|
||||
# com/project) or [project number](https://developers.google.com/console/help/
|
||||
# project-number)
|
||||
# @param [String] zone
|
||||
# The name of the Google Compute Engine [zone](/compute/docs/zones#available) in
|
||||
# which the cluster resides.
|
||||
# @param [String] cluster_id
|
||||
# The name of the cluster to upgrade.
|
||||
# @param [Google::Apis::ContainerV1::UpdateClusterRequest] update_cluster_request_object
|
||||
# @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::ContainerV1::Operation] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ContainerV1::Operation]
|
||||
#
|
||||
# @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 update_cluster(project_id, zone, cluster_id, update_cluster_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
path = 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}'
|
||||
command = make_simple_command(:put, path, options)
|
||||
command.request_representation = Google::Apis::ContainerV1::UpdateClusterRequest::Representation
|
||||
command.request_object = update_cluster_request_object
|
||||
command.response_representation = Google::Apis::ContainerV1::Operation::Representation
|
||||
command.response_class = Google::Apis::ContainerV1::Operation
|
||||
command.params['projectId'] = project_id unless project_id.nil?
|
||||
command.params['zone'] = zone unless zone.nil?
|
||||
command.params['clusterId'] = cluster_id unless cluster_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 the cluster, including the Kubernetes endpoint and all worker nodes.
|
||||
# Firewalls and routes that were configured during cluster creation are also
|
||||
# deleted.
|
||||
# @param [String] project_id
|
||||
# The Google Developers Console [project ID](https://console.developers.google.
|
||||
# com/project) or [project number](https://developers.google.com/console/help/
|
||||
# project-number)
|
||||
# @param [String] zone
|
||||
# The name of the Google Compute Engine [zone](/compute/docs/zones#available) in
|
||||
# which the cluster resides.
|
||||
# @param [String] cluster_id
|
||||
# The name of the cluster to delete.
|
||||
# @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::ContainerV1::Operation] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ContainerV1::Operation]
|
||||
#
|
||||
# @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_zone_cluster(project_id, zone, cluster_id, fields: nil, quota_user: nil, options: nil, &block)
|
||||
path = 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}'
|
||||
command = make_simple_command(:delete, path, options)
|
||||
command.response_representation = Google::Apis::ContainerV1::Operation::Representation
|
||||
command.response_class = Google::Apis::ContainerV1::Operation
|
||||
command.params['projectId'] = project_id unless project_id.nil?
|
||||
command.params['zone'] = zone unless zone.nil?
|
||||
command.params['clusterId'] = cluster_id unless cluster_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
|
||||
|
||||
# Lists all operations in a project in a specific zone or all zones.
|
||||
# @param [String] project_id
|
||||
# The Google Developers Console [project ID](https://console.developers.google.
|
||||
# com/project) or [project number](https://developers.google.com/console/help/
|
||||
# project-number)
|
||||
# @param [String] zone
|
||||
# The name of the Google Compute Engine [zone](/compute/docs/zones#available) to
|
||||
# return operations for, or "-" for all zones.
|
||||
# @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::ContainerV1::ListOperationsResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ContainerV1::ListOperationsResponse]
|
||||
#
|
||||
# @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 list_zone_operations(project_id, zone, fields: nil, quota_user: nil, options: nil, &block)
|
||||
path = 'v1/projects/{projectId}/zones/{zone}/operations'
|
||||
command = make_simple_command(:get, path, options)
|
||||
command.response_representation = Google::Apis::ContainerV1::ListOperationsResponse::Representation
|
||||
command.response_class = Google::Apis::ContainerV1::ListOperationsResponse
|
||||
command.params['projectId'] = project_id unless project_id.nil?
|
||||
command.params['zone'] = zone unless zone.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Gets the specified operation.
|
||||
# @param [String] project_id
|
||||
# The Google Developers Console [project ID](https://console.developers.google.
|
||||
# com/project) or [project number](https://developers.google.com/console/help/
|
||||
# project-number)
|
||||
# @param [String] zone
|
||||
# The name of the Google Compute Engine [zone](/compute/docs/zones#available) in
|
||||
# which the cluster resides.
|
||||
# @param [String] operation_id
|
||||
# The server-assigned `name` of the operation.
|
||||
# @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::ContainerV1::Operation] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ContainerV1::Operation]
|
||||
#
|
||||
# @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_zone_operation(project_id, zone, operation_id, fields: nil, quota_user: nil, options: nil, &block)
|
||||
path = 'v1/projects/{projectId}/zones/{zone}/operations/{operationId}'
|
||||
command = make_simple_command(:get, path, options)
|
||||
command.response_representation = Google::Apis::ContainerV1::Operation::Representation
|
||||
command.response_class = Google::Apis::ContainerV1::Operation
|
||||
command.params['projectId'] = project_id unless project_id.nil?
|
||||
command.params['zone'] = zone unless zone.nil?
|
||||
command.params['operationId'] = operation_id unless operation_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
|
||||
|
||||
protected
|
||||
|
||||
def apply_command_defaults(command)
|
||||
command.query['key'] = key unless key.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -26,7 +26,7 @@ module Google
|
|||
# @see https://cloud.google.com/container-engine/docs/v1beta1/
|
||||
module ContainerV1beta1
|
||||
VERSION = 'V1beta1'
|
||||
REVISION = '20150617'
|
||||
REVISION = '20150713'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
|||
# @see https://developers.google.com/shopping-content/v2/
|
||||
module ContentV2
|
||||
VERSION = 'V2'
|
||||
REVISION = '20150528'
|
||||
REVISION = '20150710'
|
||||
|
||||
# Manage your product listings and accounts for Google Shopping
|
||||
AUTH_CONTENT = 'https://www.googleapis.com/auth/content'
|
||||
|
|
|
@ -89,6 +89,8 @@ module Google
|
|||
# Retrieves, inserts, updates, and deletes multiple Merchant Center (sub-)
|
||||
# accounts in a single request.
|
||||
# @param [Google::Apis::ContentV2::BatchAccountsRequest] batch_accounts_request_object
|
||||
# @param [Boolean] dry_run
|
||||
# Flag to run the request in dry-run mode.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
|
@ -110,13 +112,14 @@ 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 batch_account(batch_accounts_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
def batch_account(batch_accounts_request_object = nil, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
path = 'accounts/batch'
|
||||
command = make_simple_command(:post, path, options)
|
||||
command.request_representation = Google::Apis::ContentV2::BatchAccountsRequest::Representation
|
||||
command.request_object = batch_accounts_request_object
|
||||
command.response_representation = Google::Apis::ContentV2::BatchAccountsResponse::Representation
|
||||
command.response_class = Google::Apis::ContentV2::BatchAccountsResponse
|
||||
command.query['dryRun'] = dry_run unless dry_run.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?
|
||||
|
@ -128,6 +131,8 @@ module Google
|
|||
# The ID of the managing account.
|
||||
# @param [String] account_id
|
||||
# The ID of the account.
|
||||
# @param [Boolean] dry_run
|
||||
# Flag to run the request in dry-run mode.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
|
@ -149,11 +154,12 @@ 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 delete_account(merchant_id, account_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
def delete_account(merchant_id, account_id, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
path = '{merchantId}/accounts/{accountId}'
|
||||
command = make_simple_command(:delete, path, options)
|
||||
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
||||
command.params['accountId'] = account_id unless account_id.nil?
|
||||
command.query['dryRun'] = dry_run unless dry_run.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?
|
||||
|
@ -203,6 +209,8 @@ module Google
|
|||
# @param [String] merchant_id
|
||||
# The ID of the managing account.
|
||||
# @param [Google::Apis::ContentV2::Account] account_object
|
||||
# @param [Boolean] dry_run
|
||||
# Flag to run the request in dry-run mode.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
|
@ -224,7 +232,7 @@ 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 insert_account(merchant_id, account_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
def insert_account(merchant_id, account_object = nil, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
path = '{merchantId}/accounts'
|
||||
command = make_simple_command(:post, path, options)
|
||||
command.request_representation = Google::Apis::ContentV2::Account::Representation
|
||||
|
@ -232,6 +240,7 @@ module Google
|
|||
command.response_representation = Google::Apis::ContentV2::Account::Representation
|
||||
command.response_class = Google::Apis::ContentV2::Account
|
||||
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
||||
command.query['dryRun'] = dry_run unless dry_run.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?
|
||||
|
@ -286,6 +295,8 @@ module Google
|
|||
# @param [String] account_id
|
||||
# The ID of the account.
|
||||
# @param [Google::Apis::ContentV2::Account] account_object
|
||||
# @param [Boolean] dry_run
|
||||
# Flag to run the request in dry-run mode.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
|
@ -307,7 +318,7 @@ 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 patch_account(merchant_id, account_id, account_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
def patch_account(merchant_id, account_id, account_object = nil, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
path = '{merchantId}/accounts/{accountId}'
|
||||
command = make_simple_command(:patch, path, options)
|
||||
command.request_representation = Google::Apis::ContentV2::Account::Representation
|
||||
|
@ -316,6 +327,7 @@ module Google
|
|||
command.response_class = Google::Apis::ContentV2::Account
|
||||
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
||||
command.params['accountId'] = account_id unless account_id.nil?
|
||||
command.query['dryRun'] = dry_run unless dry_run.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?
|
||||
|
@ -328,6 +340,8 @@ module Google
|
|||
# @param [String] account_id
|
||||
# The ID of the account.
|
||||
# @param [Google::Apis::ContentV2::Account] account_object
|
||||
# @param [Boolean] dry_run
|
||||
# Flag to run the request in dry-run mode.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
|
@ -349,7 +363,7 @@ 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 update_account(merchant_id, account_id, account_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
def update_account(merchant_id, account_id, account_object = nil, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
path = '{merchantId}/accounts/{accountId}'
|
||||
command = make_simple_command(:put, path, options)
|
||||
command.request_representation = Google::Apis::ContentV2::Account::Representation
|
||||
|
@ -358,6 +372,7 @@ module Google
|
|||
command.response_class = Google::Apis::ContentV2::Account
|
||||
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
||||
command.params['accountId'] = account_id unless account_id.nil?
|
||||
command.query['dryRun'] = dry_run unless dry_run.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?
|
||||
|
@ -908,6 +923,8 @@ module Google
|
|||
|
||||
#
|
||||
# @param [Google::Apis::ContentV2::BatchDatafeedsRequest] batch_datafeeds_request_object
|
||||
# @param [Boolean] dry_run
|
||||
# Flag to run the request in dry-run mode.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
|
@ -929,13 +946,14 @@ 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 batch_datafeed(batch_datafeeds_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
def batch_datafeed(batch_datafeeds_request_object = nil, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
path = 'datafeeds/batch'
|
||||
command = make_simple_command(:post, path, options)
|
||||
command.request_representation = Google::Apis::ContentV2::BatchDatafeedsRequest::Representation
|
||||
command.request_object = batch_datafeeds_request_object
|
||||
command.response_representation = Google::Apis::ContentV2::BatchDatafeedsResponse::Representation
|
||||
command.response_class = Google::Apis::ContentV2::BatchDatafeedsResponse
|
||||
command.query['dryRun'] = dry_run unless dry_run.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?
|
||||
|
@ -945,6 +963,8 @@ module Google
|
|||
# Deletes a datafeed from your Merchant Center account.
|
||||
# @param [String] merchant_id
|
||||
# @param [String] datafeed_id
|
||||
# @param [Boolean] dry_run
|
||||
# Flag to run the request in dry-run mode.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
|
@ -966,11 +986,12 @@ 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 delete_datafeed(merchant_id, datafeed_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
def delete_datafeed(merchant_id, datafeed_id, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
path = '{merchantId}/datafeeds/{datafeedId}'
|
||||
command = make_simple_command(:delete, path, options)
|
||||
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
||||
command.params['datafeedId'] = datafeed_id unless datafeed_id.nil?
|
||||
command.query['dryRun'] = dry_run unless dry_run.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?
|
||||
|
@ -1017,6 +1038,8 @@ module Google
|
|||
# Registers a datafeed with your Merchant Center account.
|
||||
# @param [String] merchant_id
|
||||
# @param [Google::Apis::ContentV2::Datafeed] datafeed_object
|
||||
# @param [Boolean] dry_run
|
||||
# Flag to run the request in dry-run mode.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
|
@ -1038,7 +1061,7 @@ 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 insert_datafeed(merchant_id, datafeed_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
def insert_datafeed(merchant_id, datafeed_object = nil, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
path = '{merchantId}/datafeeds'
|
||||
command = make_simple_command(:post, path, options)
|
||||
command.request_representation = Google::Apis::ContentV2::Datafeed::Representation
|
||||
|
@ -1046,6 +1069,7 @@ module Google
|
|||
command.response_representation = Google::Apis::ContentV2::Datafeed::Representation
|
||||
command.response_class = Google::Apis::ContentV2::Datafeed
|
||||
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
||||
command.query['dryRun'] = dry_run unless dry_run.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?
|
||||
|
@ -1099,6 +1123,8 @@ module Google
|
|||
# @param [String] merchant_id
|
||||
# @param [String] datafeed_id
|
||||
# @param [Google::Apis::ContentV2::Datafeed] datafeed_object
|
||||
# @param [Boolean] dry_run
|
||||
# Flag to run the request in dry-run mode.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
|
@ -1120,7 +1146,7 @@ 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 patch_datafeed(merchant_id, datafeed_id, datafeed_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
def patch_datafeed(merchant_id, datafeed_id, datafeed_object = nil, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
path = '{merchantId}/datafeeds/{datafeedId}'
|
||||
command = make_simple_command(:patch, path, options)
|
||||
command.request_representation = Google::Apis::ContentV2::Datafeed::Representation
|
||||
|
@ -1129,6 +1155,7 @@ module Google
|
|||
command.response_class = Google::Apis::ContentV2::Datafeed
|
||||
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
||||
command.params['datafeedId'] = datafeed_id unless datafeed_id.nil?
|
||||
command.query['dryRun'] = dry_run unless dry_run.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?
|
||||
|
@ -1139,6 +1166,8 @@ module Google
|
|||
# @param [String] merchant_id
|
||||
# @param [String] datafeed_id
|
||||
# @param [Google::Apis::ContentV2::Datafeed] datafeed_object
|
||||
# @param [Boolean] dry_run
|
||||
# Flag to run the request in dry-run mode.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
|
@ -1160,7 +1189,7 @@ 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 update_datafeed(merchant_id, datafeed_id, datafeed_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
def update_datafeed(merchant_id, datafeed_id, datafeed_object = nil, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
path = '{merchantId}/datafeeds/{datafeedId}'
|
||||
command = make_simple_command(:put, path, options)
|
||||
command.request_representation = Google::Apis::ContentV2::Datafeed::Representation
|
||||
|
@ -1169,6 +1198,7 @@ module Google
|
|||
command.response_class = Google::Apis::ContentV2::Datafeed
|
||||
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
||||
command.params['datafeedId'] = datafeed_id unless datafeed_id.nil?
|
||||
command.query['dryRun'] = dry_run unless dry_run.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?
|
||||
|
@ -1293,6 +1323,8 @@ module Google
|
|||
# Updates price and availability for multiple products or stores in a single
|
||||
# request.
|
||||
# @param [Google::Apis::ContentV2::BatchInventoryRequest] batch_inventory_request_object
|
||||
# @param [Boolean] dry_run
|
||||
# Flag to run the request in dry-run mode.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
|
@ -1314,13 +1346,14 @@ 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 batch_inventory(batch_inventory_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
def batch_inventory(batch_inventory_request_object = nil, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
path = 'inventory/batch'
|
||||
command = make_simple_command(:post, path, options)
|
||||
command.request_representation = Google::Apis::ContentV2::BatchInventoryRequest::Representation
|
||||
command.request_object = batch_inventory_request_object
|
||||
command.response_representation = Google::Apis::ContentV2::BatchInventoryResponse::Representation
|
||||
command.response_class = Google::Apis::ContentV2::BatchInventoryResponse
|
||||
command.query['dryRun'] = dry_run unless dry_run.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?
|
||||
|
@ -1336,6 +1369,8 @@ module Google
|
|||
# @param [String] product_id
|
||||
# The ID of the product for which to update price and availability.
|
||||
# @param [Google::Apis::ContentV2::SetInventoryRequest] set_inventory_request_object
|
||||
# @param [Boolean] dry_run
|
||||
# Flag to run the request in dry-run mode.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
|
@ -1357,7 +1392,7 @@ 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 set_inventory(merchant_id, store_code, product_id, set_inventory_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
def set_inventory(merchant_id, store_code, product_id, set_inventory_request_object = nil, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
path = '{merchantId}/inventory/{storeCode}/products/{productId}'
|
||||
command = make_simple_command(:post, path, options)
|
||||
command.request_representation = Google::Apis::ContentV2::SetInventoryRequest::Representation
|
||||
|
@ -1367,6 +1402,7 @@ module Google
|
|||
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
||||
command.params['storeCode'] = store_code unless store_code.nil?
|
||||
command.params['productId'] = product_id unless product_id.nil?
|
||||
command.query['dryRun'] = dry_run unless dry_run.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?
|
||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
|||
# @see https://developers.google.com/deployment-manager/
|
||||
module DeploymentmanagerV2beta2
|
||||
VERSION = 'V2beta2'
|
||||
REVISION = '20150616'
|
||||
REVISION = '20150715'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -34,10 +34,9 @@ module Google
|
|||
# Specifies a fingerprint for update() requests. A fingerprint is a randomly
|
||||
# generated value that must be provided in update() requests to perform
|
||||
# optimistic locking. This ensures optimistic concurrency so that only one
|
||||
# update can be performed at a time.
|
||||
# The fingerprint is initially generated by Deployment Manager and changes after
|
||||
# every request to modify data. To get the latest fingerprint value, perform a
|
||||
# get() request to a deployment.
|
||||
# update can be performed at a time. The fingerprint is initially generated by
|
||||
# Deployment Manager and changes after every request to modify data. To get the
|
||||
# latest fingerprint value, perform a get() request to a deployment.
|
||||
# Corresponds to the JSON property `fingerprint`
|
||||
# @return [String]
|
||||
attr_accessor :fingerprint
|
||||
|
@ -81,7 +80,12 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :manifest
|
||||
|
||||
# The name of the deployment, which must be unique within the project.
|
||||
# Name of the resource; provided by the client when the resource is created. The
|
||||
# name must be 1-63 characters long, and comply with RFC1035. Specifically, the
|
||||
# name must be 1-63 characters long and match the regular expression [a-z]([-a-
|
||||
# z0-9]*[a-z0-9])? which means the first character must be a lowercase letter,
|
||||
# and all following characters must be a dash, lowercase letter, or digit,
|
||||
# except the last character, which cannot be a dash.
|
||||
# Corresponds to the JSON property `name`
|
||||
# @return [String]
|
||||
attr_accessor :name
|
||||
|
@ -293,12 +297,12 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
# An operation resource, used to manage asynchronous API requests.
|
||||
# An Operation resource, used to manage asynchronous API requests.
|
||||
class Operation
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# [Output Only] An optional identifier specified by the client when the mutation
|
||||
# was initiated. Must be unique for all operation resources in the project.
|
||||
# was initiated. Must be unique for all Operation resources in the project.
|
||||
# Corresponds to the JSON property `clientOperationId`
|
||||
# @return [String]
|
||||
attr_accessor :client_operation_id
|
||||
|
@ -626,8 +630,8 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :properties
|
||||
|
||||
# [Output Only] The type of the resource, for example ?compute.v1.instance?, or ?
|
||||
# replicaPools.v1beta2.instanceGroupManager?
|
||||
# [Output Only] The type of the resource, for example compute.v1.instance, or
|
||||
# replicaPools.v1beta2.instanceGroupManager.
|
||||
# Corresponds to the JSON property `type`
|
||||
# @return [String]
|
||||
attr_accessor :type
|
||||
|
|
|
@ -175,12 +175,31 @@ module Google
|
|||
# @param [String] project
|
||||
# The project ID for this request.
|
||||
# @param [String] filter
|
||||
# Filter expression for filtering listed resources.
|
||||
# Sets a filter expression for filtering listed resources, in the form filter=`
|
||||
# expression`. Your `expression` must contain the following:
|
||||
# FIELD_NAME COMPARISON_STRING LITERAL_STRING
|
||||
#
|
||||
# - FIELD_NAME: The name of the field you want to compare. The field name must
|
||||
# be valid for the type of resource being filtered. Only atomic field types are
|
||||
# supported (string, number, boolean). Array and object fields are not currently
|
||||
# supported.
|
||||
# - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not
|
||||
# equals).
|
||||
# - LITERAL_STRING: The literal string value to filter to. The literal value
|
||||
# must be valid for the type of field (string, number, boolean). For string
|
||||
# fields, the literal value is interpreted as a regular expression using RE2
|
||||
# syntax. The literal value must match the entire field. For example, you can
|
||||
# filter by the name of a resource:
|
||||
# filter=name ne example-instance
|
||||
# The above filter returns only results whose name field does not equal example-
|
||||
# instance. You can also enclose your literal string in single, double, or no
|
||||
# quotes.
|
||||
# @param [Fixnum] max_results
|
||||
# Maximum count of results to be returned.
|
||||
# @param [String] page_token
|
||||
# Tag returned by a previous list request when that list was truncated to
|
||||
# maxResults. Used to continue a previous list request.
|
||||
# Specifies a page token to use. Use this parameter if you want to list the next
|
||||
# page of results. Set pageToken to the nextPageToken returned by a previous
|
||||
# list request.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
|
@ -369,12 +388,31 @@ module Google
|
|||
# @param [String] deployment
|
||||
# The name of the deployment for this request.
|
||||
# @param [String] filter
|
||||
# Filter expression for filtering listed resources.
|
||||
# Sets a filter expression for filtering listed resources, in the form filter=`
|
||||
# expression`. Your `expression` must contain the following:
|
||||
# FIELD_NAME COMPARISON_STRING LITERAL_STRING
|
||||
#
|
||||
# - FIELD_NAME: The name of the field you want to compare. The field name must
|
||||
# be valid for the type of resource being filtered. Only atomic field types are
|
||||
# supported (string, number, boolean). Array and object fields are not currently
|
||||
# supported.
|
||||
# - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not
|
||||
# equals).
|
||||
# - LITERAL_STRING: The literal string value to filter to. The literal value
|
||||
# must be valid for the type of field (string, number, boolean). For string
|
||||
# fields, the literal value is interpreted as a regular expression using RE2
|
||||
# syntax. The literal value must match the entire field. For example, you can
|
||||
# filter by the name of a resource:
|
||||
# filter=name ne example-instance
|
||||
# The above filter returns only results whose name field does not equal example-
|
||||
# instance. You can also enclose your literal string in single, double, or no
|
||||
# quotes.
|
||||
# @param [Fixnum] max_results
|
||||
# Maximum count of results to be returned.
|
||||
# @param [String] page_token
|
||||
# Tag returned by a previous list request when that list was truncated to
|
||||
# maxResults. Used to continue a previous list request.
|
||||
# Specifies a page token to use. Use this parameter if you want to list the next
|
||||
# page of results. Set pageToken to the nextPageToken returned by a previous
|
||||
# list request.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
|
@ -455,12 +493,31 @@ module Google
|
|||
# @param [String] project
|
||||
# The project ID for this request.
|
||||
# @param [String] filter
|
||||
# Filter expression for filtering listed resources.
|
||||
# Sets a filter expression for filtering listed resources, in the form filter=`
|
||||
# expression`. Your `expression` must contain the following:
|
||||
# FIELD_NAME COMPARISON_STRING LITERAL_STRING
|
||||
#
|
||||
# - FIELD_NAME: The name of the field you want to compare. The field name must
|
||||
# be valid for the type of resource being filtered. Only atomic field types are
|
||||
# supported (string, number, boolean). Array and object fields are not currently
|
||||
# supported.
|
||||
# - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not
|
||||
# equals).
|
||||
# - LITERAL_STRING: The literal string value to filter to. The literal value
|
||||
# must be valid for the type of field (string, number, boolean). For string
|
||||
# fields, the literal value is interpreted as a regular expression using RE2
|
||||
# syntax. The literal value must match the entire field. For example, you can
|
||||
# filter by the name of a resource:
|
||||
# filter=name ne example-instance
|
||||
# The above filter returns only results whose name field does not equal example-
|
||||
# instance. You can also enclose your literal string in single, double, or no
|
||||
# quotes.
|
||||
# @param [Fixnum] max_results
|
||||
# Maximum count of results to be returned.
|
||||
# @param [String] page_token
|
||||
# Tag returned by a previous list request when that list was truncated to
|
||||
# maxResults. Used to continue a previous list request.
|
||||
# Specifies a page token to use. Use this parameter if you want to list the next
|
||||
# page of results. Set pageToken to the nextPageToken returned by a previous
|
||||
# list request.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
|
@ -545,12 +602,31 @@ module Google
|
|||
# @param [String] deployment
|
||||
# The name of the deployment for this request.
|
||||
# @param [String] filter
|
||||
# Filter expression for filtering listed resources.
|
||||
# Sets a filter expression for filtering listed resources, in the form filter=`
|
||||
# expression`. Your `expression` must contain the following:
|
||||
# FIELD_NAME COMPARISON_STRING LITERAL_STRING
|
||||
#
|
||||
# - FIELD_NAME: The name of the field you want to compare. The field name must
|
||||
# be valid for the type of resource being filtered. Only atomic field types are
|
||||
# supported (string, number, boolean). Array and object fields are not currently
|
||||
# supported.
|
||||
# - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not
|
||||
# equals).
|
||||
# - LITERAL_STRING: The literal string value to filter to. The literal value
|
||||
# must be valid for the type of field (string, number, boolean). For string
|
||||
# fields, the literal value is interpreted as a regular expression using RE2
|
||||
# syntax. The literal value must match the entire field. For example, you can
|
||||
# filter by the name of a resource:
|
||||
# filter=name ne example-instance
|
||||
# The above filter returns only results whose name field does not equal example-
|
||||
# instance. You can also enclose your literal string in single, double, or no
|
||||
# quotes.
|
||||
# @param [Fixnum] max_results
|
||||
# Maximum count of results to be returned.
|
||||
# @param [String] page_token
|
||||
# Tag returned by a previous list request when that list was truncated to
|
||||
# maxResults. Used to continue a previous list request.
|
||||
# Specifies a page token to use. Use this parameter if you want to list the next
|
||||
# page of results. Set pageToken to the nextPageToken returned by a previous
|
||||
# list request.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
|
@ -592,12 +668,31 @@ module Google
|
|||
# @param [String] project
|
||||
# The project ID for this request.
|
||||
# @param [String] filter
|
||||
# Filter expression for filtering listed resources.
|
||||
# Sets a filter expression for filtering listed resources, in the form filter=`
|
||||
# expression`. Your `expression` must contain the following:
|
||||
# FIELD_NAME COMPARISON_STRING LITERAL_STRING
|
||||
#
|
||||
# - FIELD_NAME: The name of the field you want to compare. The field name must
|
||||
# be valid for the type of resource being filtered. Only atomic field types are
|
||||
# supported (string, number, boolean). Array and object fields are not currently
|
||||
# supported.
|
||||
# - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not
|
||||
# equals).
|
||||
# - LITERAL_STRING: The literal string value to filter to. The literal value
|
||||
# must be valid for the type of field (string, number, boolean). For string
|
||||
# fields, the literal value is interpreted as a regular expression using RE2
|
||||
# syntax. The literal value must match the entire field. For example, you can
|
||||
# filter by the name of a resource:
|
||||
# filter=name ne example-instance
|
||||
# The above filter returns only results whose name field does not equal example-
|
||||
# instance. You can also enclose your literal string in single, double, or no
|
||||
# quotes.
|
||||
# @param [Fixnum] max_results
|
||||
# Maximum count of results to be returned.
|
||||
# @param [String] page_token
|
||||
# Tag returned by a previous list request when that list was truncated to
|
||||
# maxResults. Used to continue a previous list request.
|
||||
# Specifies a page token to use. Use this parameter if you want to list the next
|
||||
# page of results. Set pageToken to the nextPageToken returned by a previous
|
||||
# list request.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
|
|
|
@ -434,6 +434,12 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :etag
|
||||
|
||||
# Enable exponential backoff for suitable methods in the generated clients.
|
||||
# Corresponds to the JSON property `exponentialBackoffDefault`
|
||||
# @return [Boolean]
|
||||
attr_accessor :exponential_backoff_default
|
||||
alias_method :exponential_backoff_default?, :exponential_backoff_default
|
||||
|
||||
# A list of supported features for this API.
|
||||
# Corresponds to the JSON property `features`
|
||||
# @return [Array<String>]
|
||||
|
@ -546,6 +552,7 @@ module Google
|
|||
@discovery_version = args[:discovery_version] unless args[:discovery_version].nil?
|
||||
@documentation_link = args[:documentation_link] unless args[:documentation_link].nil?
|
||||
@etag = args[:etag] unless args[:etag].nil?
|
||||
@exponential_backoff_default = args[:exponential_backoff_default] unless args[:exponential_backoff_default].nil?
|
||||
@features = args[:features] unless args[:features].nil?
|
||||
@icons = args[:icons] unless args[:icons].nil?
|
||||
@id = args[:id] unless args[:id].nil?
|
||||
|
|
|
@ -207,6 +207,7 @@ module Google
|
|||
property :discovery_version, as: 'discoveryVersion'
|
||||
property :documentation_link, as: 'documentationLink'
|
||||
property :etag, as: 'etag'
|
||||
property :exponential_backoff_default, as: 'exponentialBackoffDefault'
|
||||
collection :features, as: 'features'
|
||||
property :icons, as: 'icons', class: Google::Apis::DiscoveryV1::RestDescription::Icons, decorator: Google::Apis::DiscoveryV1::RestDescription::Icons::Representation
|
||||
|
||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
|||
# @see https://developers.google.com/cloud-dns
|
||||
module DnsV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20150218'
|
||||
REVISION = '20150624'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -314,6 +314,8 @@ module Google
|
|||
# Enumerate ManagedZones that have been created but not yet deleted.
|
||||
# @param [String] project
|
||||
# Identifies the project addressed by this request.
|
||||
# @param [String] dns_name
|
||||
# Restricts the list to return only zones with this domain name.
|
||||
# @param [Fixnum] max_results
|
||||
# Optional. Maximum number of results to be returned. If unspecified, the server
|
||||
# will decide how many results to return.
|
||||
|
@ -341,12 +343,13 @@ 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 list_managed_zones(project, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
def list_managed_zones(project, dns_name: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
path = '{project}/managedZones'
|
||||
command = make_simple_command(:get, path, options)
|
||||
command.response_representation = Google::Apis::DnsV1::ListManagedZonesResponse::Representation
|
||||
command.response_class = Google::Apis::DnsV1::ListManagedZonesResponse
|
||||
command.params['project'] = project unless project.nil?
|
||||
command.query['dnsName'] = dns_name unless dns_name.nil?
|
||||
command.query['maxResults'] = max_results unless max_results.nil?
|
||||
command.query['pageToken'] = page_token unless page_token.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
|||
# @see https://developers.google.com/doubleclick-search/
|
||||
module DoubleclicksearchV2
|
||||
VERSION = 'V2'
|
||||
REVISION = '20150526'
|
||||
REVISION = '20150708'
|
||||
|
||||
# View and manage your advertising data in DoubleClick Search
|
||||
AUTH_DOUBLECLICKSEARCH = 'https://www.googleapis.com/auth/doubleclicksearch'
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://developers.google.com/drive/
|
||||
module DriveV2
|
||||
VERSION = 'V2'
|
||||
REVISION = '20150618'
|
||||
REVISION = '20150702'
|
||||
|
||||
# View and manage the files in your Google Drive
|
||||
AUTH_DRIVE = 'https://www.googleapis.com/auth/drive'
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://developers.google.com/fit/rest/
|
||||
module FitnessV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20150527'
|
||||
REVISION = '20150717'
|
||||
|
||||
# View your activity information in Google Fit
|
||||
AUTH_FITNESS_ACTIVITY_READ = 'https://www.googleapis.com/auth/fitness.activity.read'
|
||||
|
|
|
@ -705,6 +705,26 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
# Holder object for the value of an entry in a map field of a data point.
|
||||
# A map value supports a subset of the formats that the regular Value supports.
|
||||
class MapValue
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Floating point value.
|
||||
# Corresponds to the JSON property `fpVal`
|
||||
# @return [Float]
|
||||
attr_accessor :fp_val
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@fp_val = args[:fp_val] unless args[:fp_val].nil?
|
||||
end
|
||||
end
|
||||
|
||||
# Sessions contain metadata, such as a user-friendly name and time interval
|
||||
# information.
|
||||
class Session
|
||||
|
@ -784,16 +804,31 @@ module Google
|
|||
class Value
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Floating point value. When this is set, intVal must not be set.
|
||||
# Floating point value. When this is set, other values must not be set.
|
||||
# Corresponds to the JSON property `fpVal`
|
||||
# @return [Float]
|
||||
attr_accessor :fp_val
|
||||
|
||||
# Integer value. When this is set, fpVal must not be set.
|
||||
# Integer value. When this is set, other values must not be set.
|
||||
# Corresponds to the JSON property `intVal`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :int_val
|
||||
|
||||
# Map value. The valid key space and units for the corresponding value of each
|
||||
# entry should be documented as part of the data type definition. Keys should be
|
||||
# kept small whenever possible. Data streams with large keys and high data
|
||||
# frequency may be down sampled.
|
||||
# Corresponds to the JSON property `mapVal`
|
||||
# @return [Array<Google::Apis::FitnessV1::ValueMapValEntry>]
|
||||
attr_accessor :map_val
|
||||
|
||||
# String value. When this is set, other values must not be set. Strings should
|
||||
# be kept small whenever possible. Data streams with large string values and
|
||||
# high data frequency may be down sampled.
|
||||
# Corresponds to the JSON property `stringVal`
|
||||
# @return [String]
|
||||
attr_accessor :string_val
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
@ -802,6 +837,34 @@ module Google
|
|||
def update!(**args)
|
||||
@fp_val = args[:fp_val] unless args[:fp_val].nil?
|
||||
@int_val = args[:int_val] unless args[:int_val].nil?
|
||||
@map_val = args[:map_val] unless args[:map_val].nil?
|
||||
@string_val = args[:string_val] unless args[:string_val].nil?
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class ValueMapValEntry
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
#
|
||||
# Corresponds to the JSON property `key`
|
||||
# @return [String]
|
||||
attr_accessor :key
|
||||
|
||||
# Holder object for the value of an entry in a map field of a data point.
|
||||
# A map value supports a subset of the formats that the regular Value supports.
|
||||
# Corresponds to the JSON property `value`
|
||||
# @return [Google::Apis::FitnessV1::MapValue]
|
||||
attr_accessor :value
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@key = args[:key] unless args[:key].nil?
|
||||
@value = args[:value] unless args[:value].nil?
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -86,6 +86,10 @@ module Google
|
|||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
end
|
||||
|
||||
class MapValue
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
end
|
||||
|
||||
class Session
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
end
|
||||
|
@ -94,6 +98,10 @@ module Google
|
|||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
end
|
||||
|
||||
class ValueMapValEntry
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
end
|
||||
|
||||
class AggregateBucket
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
@ -267,6 +275,13 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class MapValue
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :fp_val, as: 'fpVal'
|
||||
end
|
||||
end
|
||||
|
||||
class Session
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
@ -288,6 +303,18 @@ module Google
|
|||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :fp_val, as: 'fpVal'
|
||||
property :int_val, as: 'intVal'
|
||||
collection :map_val, as: 'mapVal', class: Google::Apis::FitnessV1::ValueMapValEntry, decorator: Google::Apis::FitnessV1::ValueMapValEntry::Representation
|
||||
|
||||
property :string_val, as: 'stringVal'
|
||||
end
|
||||
end
|
||||
|
||||
class ValueMapValEntry
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :key, as: 'key'
|
||||
property :value, as: 'value', class: Google::Apis::FitnessV1::MapValue, decorator: Google::Apis::FitnessV1::MapValue::Representation
|
||||
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://developers.google.com/games/services
|
||||
module GamesConfigurationV1configuration
|
||||
VERSION = 'V1configuration'
|
||||
REVISION = '20150622'
|
||||
REVISION = '20150713'
|
||||
|
||||
# View and manage your Google Play Developer account
|
||||
AUTH_ANDROIDPUBLISHER = 'https://www.googleapis.com/auth/androidpublisher'
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://developers.google.com/games/services/
|
||||
module GamesV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20150622'
|
||||
REVISION = '20150713'
|
||||
|
||||
# View and manage its own configuration data in your Google Drive
|
||||
AUTH_DRIVE_APPDATA = 'https://www.googleapis.com/auth/drive.appdata'
|
||||
|
|
|
@ -0,0 +1,47 @@
|
|||
# Copyright 2015 Google Inc.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
require 'google/apis/genomics_v1/service.rb'
|
||||
require 'google/apis/genomics_v1/classes.rb'
|
||||
require 'google/apis/genomics_v1/representations.rb'
|
||||
|
||||
module Google
|
||||
module Apis
|
||||
# Genomics API
|
||||
#
|
||||
# An API to store, process, explore, and share DNA sequence reads, reference-
|
||||
# based alignments, and variant calls.
|
||||
#
|
||||
# @see
|
||||
module GenomicsV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20150716'
|
||||
|
||||
# View and manage your data in Google BigQuery
|
||||
AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
||||
# Manage your data in Google Cloud Storage
|
||||
AUTH_DEVSTORAGE_READ_WRITE = 'https://www.googleapis.com/auth/devstorage.read_write'
|
||||
|
||||
# View and manage Genomics data
|
||||
AUTH_GENOMICS = 'https://www.googleapis.com/auth/genomics'
|
||||
|
||||
# View Genomics data
|
||||
AUTH_GENOMICS_READONLY = 'https://www.googleapis.com/auth/genomics.readonly'
|
||||
end
|
||||
end
|
||||
end
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,796 @@
|
|||
# Copyright 2015 Google Inc.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
require 'date'
|
||||
require 'google/apis/core/base_service'
|
||||
require 'google/apis/core/json_representation'
|
||||
require 'google/apis/core/hashable'
|
||||
require 'google/apis/errors'
|
||||
|
||||
module Google
|
||||
module Apis
|
||||
module GenomicsV1
|
||||
|
||||
class ListDatasetsResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
end
|
||||
|
||||
class Dataset
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
end
|
||||
|
||||
class Empty
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
end
|
||||
|
||||
class UndeleteDatasetRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
end
|
||||
|
||||
class Operation
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
end
|
||||
|
||||
class Status
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
end
|
||||
|
||||
class ListOperationsResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
end
|
||||
|
||||
class CancelOperationRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
end
|
||||
|
||||
class ImportReadGroupSetsRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
end
|
||||
|
||||
class ExportReadGroupSetRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
end
|
||||
|
||||
class SearchReadGroupSetsRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
end
|
||||
|
||||
class SearchReadGroupSetsResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
end
|
||||
|
||||
class ReadGroupSet
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
end
|
||||
|
||||
class ReadGroup
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
end
|
||||
|
||||
class Experiment
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
end
|
||||
|
||||
class Program
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
end
|
||||
|
||||
class ListCoverageBucketsResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
end
|
||||
|
||||
class CoverageBucket
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
end
|
||||
|
||||
class Range
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
end
|
||||
|
||||
class SearchReadsRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
end
|
||||
|
||||
class SearchReadsResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
end
|
||||
|
||||
class Read
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
end
|
||||
|
||||
class LinearAlignment
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
end
|
||||
|
||||
class Position
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
end
|
||||
|
||||
class CigarUnit
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
end
|
||||
|
||||
class SearchReferenceSetsRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
end
|
||||
|
||||
class SearchReferenceSetsResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
end
|
||||
|
||||
class ReferenceSet
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
end
|
||||
|
||||
class SearchReferencesRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
end
|
||||
|
||||
class SearchReferencesResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
end
|
||||
|
||||
class Reference
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
end
|
||||
|
||||
class ListBasesResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
end
|
||||
|
||||
class ImportVariantsRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
end
|
||||
|
||||
class VariantSet
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
end
|
||||
|
||||
class ReferenceBound
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
end
|
||||
|
||||
class VariantSetMetadata
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
end
|
||||
|
||||
class ExportVariantSetRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
end
|
||||
|
||||
class SearchVariantSetsRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
end
|
||||
|
||||
class SearchVariantSetsResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
end
|
||||
|
||||
class SearchVariantsRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
end
|
||||
|
||||
class SearchVariantsResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
end
|
||||
|
||||
class Variant
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
end
|
||||
|
||||
class VariantCall
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
end
|
||||
|
||||
class MergeVariantsRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
end
|
||||
|
||||
class SearchCallSetsRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
end
|
||||
|
||||
class SearchCallSetsResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
end
|
||||
|
||||
class CallSet
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
end
|
||||
|
||||
class ImportReadGroupSetsResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
end
|
||||
|
||||
class ImportVariantsResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
end
|
||||
|
||||
class OperationMetadata
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
end
|
||||
|
||||
class OperationEvent
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
end
|
||||
|
||||
class ListDatasetsResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :datasets, as: 'datasets', class: Google::Apis::GenomicsV1::Dataset, decorator: Google::Apis::GenomicsV1::Dataset::Representation
|
||||
|
||||
property :next_page_token, as: 'nextPageToken'
|
||||
end
|
||||
end
|
||||
|
||||
class Dataset
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :id, as: 'id'
|
||||
property :project_id, as: 'projectId'
|
||||
property :name, as: 'name'
|
||||
property :create_time, as: 'createTime'
|
||||
end
|
||||
end
|
||||
|
||||
class Empty
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
end
|
||||
end
|
||||
|
||||
class UndeleteDatasetRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
end
|
||||
end
|
||||
|
||||
class Operation
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :name, as: 'name'
|
||||
hash :metadata, as: 'metadata'
|
||||
property :done, as: 'done'
|
||||
property :error, as: 'error', class: Google::Apis::GenomicsV1::Status, decorator: Google::Apis::GenomicsV1::Status::Representation
|
||||
|
||||
hash :response, as: 'response'
|
||||
end
|
||||
end
|
||||
|
||||
class Status
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :code, as: 'code'
|
||||
property :message, as: 'message'
|
||||
collection :details, as: 'details'
|
||||
end
|
||||
end
|
||||
|
||||
class ListOperationsResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :operations, as: 'operations', class: Google::Apis::GenomicsV1::Operation, decorator: Google::Apis::GenomicsV1::Operation::Representation
|
||||
|
||||
property :next_page_token, as: 'nextPageToken'
|
||||
end
|
||||
end
|
||||
|
||||
class CancelOperationRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
end
|
||||
end
|
||||
|
||||
class ImportReadGroupSetsRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :dataset_id, as: 'datasetId'
|
||||
property :reference_set_id, as: 'referenceSetId'
|
||||
collection :source_uris, as: 'sourceUris'
|
||||
property :partition_strategy, as: 'partitionStrategy'
|
||||
end
|
||||
end
|
||||
|
||||
class ExportReadGroupSetRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :project_id, as: 'projectId'
|
||||
property :export_uri, as: 'exportUri'
|
||||
collection :reference_names, as: 'referenceNames'
|
||||
end
|
||||
end
|
||||
|
||||
class SearchReadGroupSetsRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :dataset_ids, as: 'datasetIds'
|
||||
property :name, as: 'name'
|
||||
property :page_token, as: 'pageToken'
|
||||
property :page_size, as: 'pageSize'
|
||||
end
|
||||
end
|
||||
|
||||
class SearchReadGroupSetsResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :read_group_sets, as: 'readGroupSets', class: Google::Apis::GenomicsV1::ReadGroupSet, decorator: Google::Apis::GenomicsV1::ReadGroupSet::Representation
|
||||
|
||||
property :next_page_token, as: 'nextPageToken'
|
||||
end
|
||||
end
|
||||
|
||||
class ReadGroupSet
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :id, as: 'id'
|
||||
property :dataset_id, as: 'datasetId'
|
||||
property :reference_set_id, as: 'referenceSetId'
|
||||
property :name, as: 'name'
|
||||
property :filename, as: 'filename'
|
||||
collection :read_groups, as: 'readGroups', class: Google::Apis::GenomicsV1::ReadGroup, decorator: Google::Apis::GenomicsV1::ReadGroup::Representation
|
||||
|
||||
hash :info, as: 'info', :class => Array do
|
||||
include Representable::JSON::Collection
|
||||
items
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class ReadGroup
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :id, as: 'id'
|
||||
property :dataset_id, as: 'datasetId'
|
||||
property :name, as: 'name'
|
||||
property :description, as: 'description'
|
||||
property :sample_id, as: 'sampleId'
|
||||
property :experiment, as: 'experiment', class: Google::Apis::GenomicsV1::Experiment, decorator: Google::Apis::GenomicsV1::Experiment::Representation
|
||||
|
||||
property :predicted_insert_size, as: 'predictedInsertSize'
|
||||
collection :programs, as: 'programs', class: Google::Apis::GenomicsV1::Program, decorator: Google::Apis::GenomicsV1::Program::Representation
|
||||
|
||||
property :reference_set_id, as: 'referenceSetId'
|
||||
hash :info, as: 'info', :class => Array do
|
||||
include Representable::JSON::Collection
|
||||
items
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class Experiment
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :library_id, as: 'libraryId'
|
||||
property :platform_unit, as: 'platformUnit'
|
||||
property :sequencing_center, as: 'sequencingCenter'
|
||||
property :instrument_model, as: 'instrumentModel'
|
||||
end
|
||||
end
|
||||
|
||||
class Program
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :command_line, as: 'commandLine'
|
||||
property :id, as: 'id'
|
||||
property :name, as: 'name'
|
||||
property :prev_program_id, as: 'prevProgramId'
|
||||
property :version, as: 'version'
|
||||
end
|
||||
end
|
||||
|
||||
class ListCoverageBucketsResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :bucket_width, as: 'bucketWidth'
|
||||
collection :coverage_buckets, as: 'coverageBuckets', class: Google::Apis::GenomicsV1::CoverageBucket, decorator: Google::Apis::GenomicsV1::CoverageBucket::Representation
|
||||
|
||||
property :next_page_token, as: 'nextPageToken'
|
||||
end
|
||||
end
|
||||
|
||||
class CoverageBucket
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :range, as: 'range', class: Google::Apis::GenomicsV1::Range, decorator: Google::Apis::GenomicsV1::Range::Representation
|
||||
|
||||
property :mean_coverage, as: 'meanCoverage'
|
||||
end
|
||||
end
|
||||
|
||||
class Range
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :reference_name, as: 'referenceName'
|
||||
property :start, as: 'start'
|
||||
property :end, as: 'end'
|
||||
end
|
||||
end
|
||||
|
||||
class SearchReadsRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :read_group_set_ids, as: 'readGroupSetIds'
|
||||
collection :read_group_ids, as: 'readGroupIds'
|
||||
property :reference_name, as: 'referenceName'
|
||||
property :start, as: 'start'
|
||||
property :end, as: 'end'
|
||||
property :page_token, as: 'pageToken'
|
||||
property :page_size, as: 'pageSize'
|
||||
end
|
||||
end
|
||||
|
||||
class SearchReadsResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :alignments, as: 'alignments', class: Google::Apis::GenomicsV1::Read, decorator: Google::Apis::GenomicsV1::Read::Representation
|
||||
|
||||
property :next_page_token, as: 'nextPageToken'
|
||||
end
|
||||
end
|
||||
|
||||
class Read
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :id, as: 'id'
|
||||
property :read_group_id, as: 'readGroupId'
|
||||
property :read_group_set_id, as: 'readGroupSetId'
|
||||
property :fragment_name, as: 'fragmentName'
|
||||
property :proper_placement, as: 'properPlacement'
|
||||
property :duplicate_fragment, as: 'duplicateFragment'
|
||||
property :fragment_length, as: 'fragmentLength'
|
||||
property :read_number, as: 'readNumber'
|
||||
property :number_reads, as: 'numberReads'
|
||||
property :failed_vendor_quality_checks, as: 'failedVendorQualityChecks'
|
||||
property :alignment, as: 'alignment', class: Google::Apis::GenomicsV1::LinearAlignment, decorator: Google::Apis::GenomicsV1::LinearAlignment::Representation
|
||||
|
||||
property :secondary_alignment, as: 'secondaryAlignment'
|
||||
property :supplementary_alignment, as: 'supplementaryAlignment'
|
||||
property :aligned_sequence, as: 'alignedSequence'
|
||||
collection :aligned_quality, as: 'alignedQuality'
|
||||
property :next_mate_position, as: 'nextMatePosition', class: Google::Apis::GenomicsV1::Position, decorator: Google::Apis::GenomicsV1::Position::Representation
|
||||
|
||||
hash :info, as: 'info', :class => Array do
|
||||
include Representable::JSON::Collection
|
||||
items
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class LinearAlignment
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :position, as: 'position', class: Google::Apis::GenomicsV1::Position, decorator: Google::Apis::GenomicsV1::Position::Representation
|
||||
|
||||
property :mapping_quality, as: 'mappingQuality'
|
||||
collection :cigar, as: 'cigar', class: Google::Apis::GenomicsV1::CigarUnit, decorator: Google::Apis::GenomicsV1::CigarUnit::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class Position
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :reference_name, as: 'referenceName'
|
||||
property :position, as: 'position'
|
||||
property :reverse_strand, as: 'reverseStrand'
|
||||
end
|
||||
end
|
||||
|
||||
class CigarUnit
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :operation, as: 'operation'
|
||||
property :operation_length, as: 'operationLength'
|
||||
property :reference_sequence, as: 'referenceSequence'
|
||||
end
|
||||
end
|
||||
|
||||
class SearchReferenceSetsRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :md5checksums, as: 'md5checksums'
|
||||
collection :accessions, as: 'accessions'
|
||||
property :assembly_id, as: 'assemblyId'
|
||||
property :page_token, as: 'pageToken'
|
||||
property :page_size, as: 'pageSize'
|
||||
end
|
||||
end
|
||||
|
||||
class SearchReferenceSetsResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :reference_sets, as: 'referenceSets', class: Google::Apis::GenomicsV1::ReferenceSet, decorator: Google::Apis::GenomicsV1::ReferenceSet::Representation
|
||||
|
||||
property :next_page_token, as: 'nextPageToken'
|
||||
end
|
||||
end
|
||||
|
||||
class ReferenceSet
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :id, as: 'id'
|
||||
collection :reference_ids, as: 'referenceIds'
|
||||
property :md5checksum, as: 'md5checksum'
|
||||
property :ncbi_taxon_id, as: 'ncbiTaxonId'
|
||||
property :description, as: 'description'
|
||||
property :assembly_id, as: 'assemblyId'
|
||||
property :source_uri, as: 'sourceUri'
|
||||
collection :source_accessions, as: 'sourceAccessions'
|
||||
end
|
||||
end
|
||||
|
||||
class SearchReferencesRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :md5checksums, as: 'md5checksums'
|
||||
collection :accessions, as: 'accessions'
|
||||
property :reference_set_id, as: 'referenceSetId'
|
||||
property :page_token, as: 'pageToken'
|
||||
property :page_size, as: 'pageSize'
|
||||
end
|
||||
end
|
||||
|
||||
class SearchReferencesResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :references, as: 'references', class: Google::Apis::GenomicsV1::Reference, decorator: Google::Apis::GenomicsV1::Reference::Representation
|
||||
|
||||
property :next_page_token, as: 'nextPageToken'
|
||||
end
|
||||
end
|
||||
|
||||
class Reference
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :id, as: 'id'
|
||||
property :length, as: 'length'
|
||||
property :md5checksum, as: 'md5checksum'
|
||||
property :name, as: 'name'
|
||||
property :source_uri, as: 'sourceUri'
|
||||
collection :source_accessions, as: 'sourceAccessions'
|
||||
property :ncbi_taxon_id, as: 'ncbiTaxonId'
|
||||
end
|
||||
end
|
||||
|
||||
class ListBasesResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :offset, as: 'offset'
|
||||
property :sequence, as: 'sequence'
|
||||
property :next_page_token, as: 'nextPageToken'
|
||||
end
|
||||
end
|
||||
|
||||
class ImportVariantsRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :variant_set_id, as: 'variantSetId'
|
||||
collection :source_uris, as: 'sourceUris'
|
||||
property :format, as: 'format'
|
||||
property :normalize_reference_names, as: 'normalizeReferenceNames'
|
||||
end
|
||||
end
|
||||
|
||||
class VariantSet
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :dataset_id, as: 'datasetId'
|
||||
property :id, as: 'id'
|
||||
collection :reference_bounds, as: 'referenceBounds', class: Google::Apis::GenomicsV1::ReferenceBound, decorator: Google::Apis::GenomicsV1::ReferenceBound::Representation
|
||||
|
||||
collection :metadata, as: 'metadata', class: Google::Apis::GenomicsV1::VariantSetMetadata, decorator: Google::Apis::GenomicsV1::VariantSetMetadata::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class ReferenceBound
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :reference_name, as: 'referenceName'
|
||||
property :upper_bound, as: 'upperBound'
|
||||
end
|
||||
end
|
||||
|
||||
class VariantSetMetadata
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :key, as: 'key'
|
||||
property :value, as: 'value'
|
||||
property :id, as: 'id'
|
||||
property :type, as: 'type'
|
||||
property :number, as: 'number'
|
||||
property :description, as: 'description'
|
||||
hash :info, as: 'info', :class => Array do
|
||||
include Representable::JSON::Collection
|
||||
items
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class ExportVariantSetRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :call_set_ids, as: 'callSetIds'
|
||||
property :project_id, as: 'projectId'
|
||||
property :format, as: 'format'
|
||||
property :bigquery_dataset, as: 'bigqueryDataset'
|
||||
property :bigquery_table, as: 'bigqueryTable'
|
||||
end
|
||||
end
|
||||
|
||||
class SearchVariantSetsRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :dataset_ids, as: 'datasetIds'
|
||||
property :page_token, as: 'pageToken'
|
||||
property :page_size, as: 'pageSize'
|
||||
end
|
||||
end
|
||||
|
||||
class SearchVariantSetsResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :variant_sets, as: 'variantSets', class: Google::Apis::GenomicsV1::VariantSet, decorator: Google::Apis::GenomicsV1::VariantSet::Representation
|
||||
|
||||
property :next_page_token, as: 'nextPageToken'
|
||||
end
|
||||
end
|
||||
|
||||
class SearchVariantsRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :variant_set_ids, as: 'variantSetIds'
|
||||
property :variant_name, as: 'variantName'
|
||||
collection :call_set_ids, as: 'callSetIds'
|
||||
property :reference_name, as: 'referenceName'
|
||||
property :start, as: 'start'
|
||||
property :end, as: 'end'
|
||||
property :page_token, as: 'pageToken'
|
||||
property :page_size, as: 'pageSize'
|
||||
property :max_calls, as: 'maxCalls'
|
||||
end
|
||||
end
|
||||
|
||||
class SearchVariantsResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :variants, as: 'variants', class: Google::Apis::GenomicsV1::Variant, decorator: Google::Apis::GenomicsV1::Variant::Representation
|
||||
|
||||
property :next_page_token, as: 'nextPageToken'
|
||||
end
|
||||
end
|
||||
|
||||
class Variant
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :variant_set_id, as: 'variantSetId'
|
||||
property :id, as: 'id'
|
||||
collection :names, as: 'names'
|
||||
property :created, as: 'created'
|
||||
property :reference_name, as: 'referenceName'
|
||||
property :start, as: 'start'
|
||||
property :end, as: 'end'
|
||||
property :reference_bases, as: 'referenceBases'
|
||||
collection :alternate_bases, as: 'alternateBases'
|
||||
property :quality, as: 'quality'
|
||||
collection :filter, as: 'filter'
|
||||
hash :info, as: 'info', :class => Array do
|
||||
include Representable::JSON::Collection
|
||||
items
|
||||
end
|
||||
|
||||
collection :calls, as: 'calls', class: Google::Apis::GenomicsV1::VariantCall, decorator: Google::Apis::GenomicsV1::VariantCall::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class VariantCall
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :call_set_id, as: 'callSetId'
|
||||
property :call_set_name, as: 'callSetName'
|
||||
collection :genotype, as: 'genotype'
|
||||
property :phaseset, as: 'phaseset'
|
||||
collection :genotype_likelihood, as: 'genotypeLikelihood'
|
||||
hash :info, as: 'info', :class => Array do
|
||||
include Representable::JSON::Collection
|
||||
items
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class MergeVariantsRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :variant_set_id, as: 'variantSetId'
|
||||
collection :variants, as: 'variants', class: Google::Apis::GenomicsV1::Variant, decorator: Google::Apis::GenomicsV1::Variant::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class SearchCallSetsRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :variant_set_ids, as: 'variantSetIds'
|
||||
property :name, as: 'name'
|
||||
property :page_token, as: 'pageToken'
|
||||
property :page_size, as: 'pageSize'
|
||||
end
|
||||
end
|
||||
|
||||
class SearchCallSetsResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :call_sets, as: 'callSets', class: Google::Apis::GenomicsV1::CallSet, decorator: Google::Apis::GenomicsV1::CallSet::Representation
|
||||
|
||||
property :next_page_token, as: 'nextPageToken'
|
||||
end
|
||||
end
|
||||
|
||||
class CallSet
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :id, as: 'id'
|
||||
property :name, as: 'name'
|
||||
property :sample_id, as: 'sampleId'
|
||||
collection :variant_set_ids, as: 'variantSetIds'
|
||||
property :created, as: 'created'
|
||||
hash :info, as: 'info', :class => Array do
|
||||
include Representable::JSON::Collection
|
||||
items
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class ImportReadGroupSetsResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :read_group_set_ids, as: 'readGroupSetIds'
|
||||
end
|
||||
end
|
||||
|
||||
class ImportVariantsResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :call_set_ids, as: 'callSetIds'
|
||||
end
|
||||
end
|
||||
|
||||
class OperationMetadata
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :project_id, as: 'projectId'
|
||||
property :create_time, as: 'createTime'
|
||||
hash :request, as: 'request'
|
||||
collection :events, as: 'events', class: Google::Apis::GenomicsV1::OperationEvent, decorator: Google::Apis::GenomicsV1::OperationEvent::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class OperationEvent
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :description, as: 'description'
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
File diff suppressed because it is too large
Load Diff
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://developers.google.com/genomics/v1beta2/reference
|
||||
module GenomicsV1beta2
|
||||
VERSION = 'V1beta2'
|
||||
REVISION = '20150623'
|
||||
REVISION = '20150715'
|
||||
|
||||
# View and manage your data in Google BigQuery
|
||||
AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery'
|
||||
|
|
|
@ -2028,6 +2028,42 @@ module Google
|
|||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Creates a new variant set (only necessary in v1).
|
||||
# @param [Google::Apis::GenomicsV1beta2::VariantSet] variant_set_object
|
||||
# @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.
|
||||
# Overrides userIp if both are provided.
|
||||
# @param [String] user_ip
|
||||
# IP address of the site where the request originates. Use this if you want to
|
||||
# enforce per-user limits.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::GenomicsV1beta2::VariantSet] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::GenomicsV1beta2::VariantSet]
|
||||
#
|
||||
# @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 create_variantset(variant_set_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
path = 'variantsets'
|
||||
command = make_simple_command(:post, path, options)
|
||||
command.request_representation = Google::Apis::GenomicsV1beta2::VariantSet::Representation
|
||||
command.request_object = variant_set_object
|
||||
command.response_representation = Google::Apis::GenomicsV1beta2::VariantSet::Representation
|
||||
command.response_class = Google::Apis::GenomicsV1beta2::VariantSet
|
||||
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
|
||||
|
||||
# Deletes the contents of a variant set. The variant set object is not deleted.
|
||||
# @param [String] variant_set_id
|
||||
# The ID of the variant set to be deleted.
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://developers.google.com/identity-toolkit/v3/
|
||||
module IdentitytoolkitV3
|
||||
VERSION = 'V3'
|
||||
REVISION = '20150513'
|
||||
REVISION = '20150710'
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
|||
# @see https://developers.google.com/maps-engine/
|
||||
module MapsengineV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20150619'
|
||||
REVISION = '20150629'
|
||||
|
||||
# View and manage your Google My Maps data
|
||||
AUTH_MAPSENGINE = 'https://www.googleapis.com/auth/mapsengine'
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://developers.google.com/accounts/docs/OAuth2
|
||||
module Oauth2V2
|
||||
VERSION = 'V2'
|
||||
REVISION = '20150526'
|
||||
REVISION = '20150714'
|
||||
|
||||
# Know your basic profile info and list of people in your circles.
|
||||
AUTH_PLUS_LOGIN = 'https://www.googleapis.com/auth/plus.login'
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://developers.google.com/+/domains/
|
||||
module PlusDomainsV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20150622'
|
||||
REVISION = '20150719'
|
||||
|
||||
# View your circles and the people and pages in them
|
||||
AUTH_PLUS_CIRCLES_READ = 'https://www.googleapis.com/auth/plus.circles.read'
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://developers.google.com/+/api/
|
||||
module PlusV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20150622'
|
||||
REVISION = '20150719'
|
||||
|
||||
# Know your basic profile info and list of people in your circles.
|
||||
AUTH_PLUS_LOGIN = 'https://www.googleapis.com/auth/plus.login'
|
||||
|
|
|
@ -674,7 +674,7 @@ module Google
|
|||
|
||||
# The estimated regression value (Regression models only).
|
||||
# Corresponds to the JSON property `outputValue`
|
||||
# @return [String]
|
||||
# @return [Float]
|
||||
attr_accessor :output_value
|
||||
|
||||
# A URL to re-request this resource.
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://cloud.google.com/pubsub/docs
|
||||
module PubsubV1beta2
|
||||
VERSION = 'V1beta2'
|
||||
REVISION = '20150427'
|
||||
REVISION = '20150604'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -26,20 +26,20 @@ module Google
|
|||
class SetIamPolicyRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# # Overview The `Policy` defines an access control policy language. It can be
|
||||
# used to define policies that can be attached to resources like files, folders,
|
||||
# VMs, etc. # Policy structure A `Policy` consists of a list of bindings. A `
|
||||
# Binding` binds a set of members to a role, where the members can include user
|
||||
# accounts, user groups, user domains, and service accounts. A role is a named
|
||||
# set of permissions, defined by the IAM system. The definition of a role is
|
||||
# outside the policy. A permission check involves determining the roles that
|
||||
# include the specified permission, and then determining if the principal
|
||||
# specified by the check is a member of a binding to at least one of these roles.
|
||||
# The membership check is recursive when a group is bound to a role. Policy
|
||||
# examples: ``` ` "bindings": [ ` "role": "roles/owner", "members": [ "user:mike@
|
||||
# example.com", "group::admins@example.com", "domain:google.com", "
|
||||
# serviceAccount:frontend@example.iam.gserviceaccounts.com"] `, ` "role": "roles/
|
||||
# viewer", "members": ["user:sean@example.com"] ` ] ` ```
|
||||
# # Overview The `Policy` defines an access control policy language. It is used
|
||||
# to define policies that are attached to resources like files, folders, VMs,
|
||||
# etc. # Policy structure A `Policy` consists of a list of bindings. A `Binding`
|
||||
# binds a set of members to a role, where the members include user accounts,
|
||||
# user groups, user domains, and service accounts. A 'role' is a named set of
|
||||
# permissions, defined by IAM. The definition of a role is outside the policy. A
|
||||
# permission check first determines the roles that include the specified
|
||||
# permission, and then determines if the principal specified is a member of a
|
||||
# binding to at least one of these roles. The membership check is recursive when
|
||||
# a group is bound to a role. Policy examples: ``` ` "bindings": [ ` "role": "
|
||||
# roles/owner", "members": [ "user:mike@example.com", "group:admins@example.com",
|
||||
# "domain:google.com", "serviceAccount:frontend@example.iam.gserviceaccounts.
|
||||
# com"] `, ` "role": "roles/viewer", "members": ["user:sean@example.com"] ` ] ` `
|
||||
# ``
|
||||
# Corresponds to the JSON property `policy`
|
||||
# @return [Google::Apis::PubsubV1beta2::Policy]
|
||||
attr_accessor :policy
|
||||
|
@ -54,25 +54,25 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
# # Overview The `Policy` defines an access control policy language. It can be
|
||||
# used to define policies that can be attached to resources like files, folders,
|
||||
# VMs, etc. # Policy structure A `Policy` consists of a list of bindings. A `
|
||||
# Binding` binds a set of members to a role, where the members can include user
|
||||
# accounts, user groups, user domains, and service accounts. A role is a named
|
||||
# set of permissions, defined by the IAM system. The definition of a role is
|
||||
# outside the policy. A permission check involves determining the roles that
|
||||
# include the specified permission, and then determining if the principal
|
||||
# specified by the check is a member of a binding to at least one of these roles.
|
||||
# The membership check is recursive when a group is bound to a role. Policy
|
||||
# examples: ``` ` "bindings": [ ` "role": "roles/owner", "members": [ "user:mike@
|
||||
# example.com", "group::admins@example.com", "domain:google.com", "
|
||||
# serviceAccount:frontend@example.iam.gserviceaccounts.com"] `, ` "role": "roles/
|
||||
# viewer", "members": ["user:sean@example.com"] ` ] ` ```
|
||||
# # Overview The `Policy` defines an access control policy language. It is used
|
||||
# to define policies that are attached to resources like files, folders, VMs,
|
||||
# etc. # Policy structure A `Policy` consists of a list of bindings. A `Binding`
|
||||
# binds a set of members to a role, where the members include user accounts,
|
||||
# user groups, user domains, and service accounts. A 'role' is a named set of
|
||||
# permissions, defined by IAM. The definition of a role is outside the policy. A
|
||||
# permission check first determines the roles that include the specified
|
||||
# permission, and then determines if the principal specified is a member of a
|
||||
# binding to at least one of these roles. The membership check is recursive when
|
||||
# a group is bound to a role. Policy examples: ``` ` "bindings": [ ` "role": "
|
||||
# roles/owner", "members": [ "user:mike@example.com", "group:admins@example.com",
|
||||
# "domain:google.com", "serviceAccount:frontend@example.iam.gserviceaccounts.
|
||||
# com"] `, ` "role": "roles/viewer", "members": ["user:sean@example.com"] ` ] ` `
|
||||
# ``
|
||||
class Policy
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The policy language version. The version of the policy itself is represented
|
||||
# by the etag. The current version is 0.
|
||||
# The policy language version. The version of the policy is represented by the
|
||||
# etag. The default version is 0.
|
||||
# Corresponds to the JSON property `version`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :version
|
||||
|
@ -106,8 +106,7 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
# Associates members of various types with roles. See below for details of the
|
||||
# various objects that can be included as members.
|
||||
# Associates members with roles. See below for allowed formats of members.
|
||||
class Binding
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
|
@ -387,10 +386,11 @@ module Google
|
|||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The name of the topic. It must have the format "projects/`project`/topics/`
|
||||
# topic`" for Google Cloud Pub/Sub API v1beta2. `topic` must start with a letter,
|
||||
# and contain only letters ([A-Za-z]), numbers ([0-9], dashes (-), underscores (
|
||||
# _), periods (.), tildes (~), plus (+) or percent signs (%). It must be between
|
||||
# 3 and 255 characters in length, and it must not start with "goog".
|
||||
# topic`" for Google Cloud Pub/Sub API v1 and v1beta2. `topic` must start with a
|
||||
# letter, and contain only letters ([A-Za-z]), numbers ([0-9], dashes (-),
|
||||
# underscores (_), periods (.), tildes (~), plus (+) or percent signs (%). It
|
||||
# must be between 3 and 255 characters in length, and it must not start with "
|
||||
# goog".
|
||||
# Corresponds to the JSON property `name`
|
||||
# @return [String]
|
||||
attr_accessor :name
|
||||
|
@ -535,7 +535,8 @@ module Google
|
|||
# A generic empty message that you can re-use to avoid defining duplicated empty
|
||||
# messages in your APIs. A typical example is to use it as the request or the
|
||||
# response type of an API method. For instance: service Foo ` rpc Bar(google.
|
||||
# protobuf.Empty) returns (google.protobuf.Empty); `
|
||||
# protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for
|
||||
# `Empty` is empty JSON object ````.
|
||||
class Empty
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
|
@ -553,7 +554,7 @@ module Google
|
|||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The name of the subscription. It must have the format "projects/`project`/
|
||||
# subscriptions/`subscription`" for Google Cloud Pub/Sub API v1beta2. `
|
||||
# subscriptions/`subscription`" for Google Cloud Pub/Sub API v1 and v1beta2. `
|
||||
# subscription` must start with a letter, and contain only letters ([A-Za-z]),
|
||||
# numbers ([0-9], dashes (-), underscores (_), periods (.), tildes (~), plus (+)
|
||||
# or percent signs (%). It must be between 3 and 255 characters in length, and
|
||||
|
@ -562,9 +563,8 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :name
|
||||
|
||||
# The name of the topic from which this subscription is receiving messages. This
|
||||
# will be present if and only if the subscription has not been detached from its
|
||||
# topic.
|
||||
# The name of the topic from which this subscription is receiving messages. The
|
||||
# value of this field will be `_deleted-topic_` if the topic has been deleted.
|
||||
# Corresponds to the JSON property `topic`
|
||||
# @return [String]
|
||||
attr_accessor :topic
|
||||
|
@ -672,7 +672,7 @@ module Google
|
|||
class ModifyAckDeadlineRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The acknowledgment ID.
|
||||
# The acknowledgment ID. Either this or ack_ids must be populated, but not both.
|
||||
# Corresponds to the JSON property `ackId`
|
||||
# @return [String]
|
||||
attr_accessor :ack_id
|
||||
|
|
|
@ -49,8 +49,9 @@ module Google
|
|||
# Sets the access control policy on the specified resource. Replaces any
|
||||
# existing policy.
|
||||
# @param [String] resource
|
||||
# REQUIRED: The resource for which policy is being specified. Usually some path
|
||||
# like projects/`project`/zones/`zone`/disks/`disk`.
|
||||
# REQUIRED: The resource for which policy is being specified. Resource is
|
||||
# usually specified as a path, such as, projects/`project`/zones/`zone`/disks/`
|
||||
# disk`.
|
||||
# @param [Google::Apis::PubsubV1beta2::SetIamPolicyRequest] set_iam_policy_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
|
@ -82,11 +83,11 @@ module Google
|
|||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Gets the access control policy for a resource. May be empty if no such policy
|
||||
# or resource exists.
|
||||
# Gets the access control policy for a resource. Is empty if the policy or the
|
||||
# resource does not exist.
|
||||
# @param [String] resource
|
||||
# REQUIRED: The resource for which policy is being requested. Usually some path
|
||||
# like projects/`project`.
|
||||
# REQUIRED: The resource for which policy is being requested. Resource is
|
||||
# usually specified as a path, such as, projects/`project`.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
|
@ -117,8 +118,8 @@ module Google
|
|||
|
||||
# Returns permissions that a caller has on the specified resource.
|
||||
# @param [String] resource
|
||||
# REQUIRED: The resource for which policy detail is being requested. Usually
|
||||
# some path like projects/`project`.
|
||||
# REQUIRED: The resource for which policy detail is being requested. Resource is
|
||||
# usually specified as a path, such as, projects/`project`.
|
||||
# @param [Google::Apis::PubsubV1beta2::TestIamPermissionsRequest] test_iam_permissions_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
|
@ -153,10 +154,11 @@ module Google
|
|||
# Creates the given topic with the given name.
|
||||
# @param [String] name
|
||||
# The name of the topic. It must have the format "projects/`project`/topics/`
|
||||
# topic`" for Google Cloud Pub/Sub API v1beta2. `topic` must start with a letter,
|
||||
# and contain only letters ([A-Za-z]), numbers ([0-9], dashes (-), underscores (
|
||||
# _), periods (.), tildes (~), plus (+) or percent signs (%). It must be between
|
||||
# 3 and 255 characters in length, and it must not start with "goog".
|
||||
# topic`" for Google Cloud Pub/Sub API v1 and v1beta2. `topic` must start with a
|
||||
# letter, and contain only letters ([A-Za-z]), numbers ([0-9], dashes (-),
|
||||
# underscores (_), periods (.), tildes (~), plus (+) or percent signs (%). It
|
||||
# must be between 3 and 255 characters in length, and it must not start with "
|
||||
# goog".
|
||||
# @param [Google::Apis::PubsubV1beta2::Topic] topic_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
|
@ -296,7 +298,8 @@ module Google
|
|||
# Deletes the topic with the given name. Returns NOT_FOUND if the topic does not
|
||||
# exist. After a topic is deleted, a new topic may be created with the same name;
|
||||
# this is an entirely new topic with none of the old configuration or
|
||||
# subscriptions. Existing subscriptions to this topic are not deleted.
|
||||
# subscriptions. Existing subscriptions to this topic are not deleted, but their
|
||||
# `topic` field is set to `_deleted-topic_`.
|
||||
# @param [String] topic
|
||||
# Name of the topic to delete.
|
||||
# @param [String] fields
|
||||
|
@ -369,8 +372,9 @@ module Google
|
|||
# Sets the access control policy on the specified resource. Replaces any
|
||||
# existing policy.
|
||||
# @param [String] resource
|
||||
# REQUIRED: The resource for which policy is being specified. Usually some path
|
||||
# like projects/`project`/zones/`zone`/disks/`disk`.
|
||||
# REQUIRED: The resource for which policy is being specified. Resource is
|
||||
# usually specified as a path, such as, projects/`project`/zones/`zone`/disks/`
|
||||
# disk`.
|
||||
# @param [Google::Apis::PubsubV1beta2::SetIamPolicyRequest] set_iam_policy_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
|
@ -402,11 +406,11 @@ module Google
|
|||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Gets the access control policy for a resource. May be empty if no such policy
|
||||
# or resource exists.
|
||||
# Gets the access control policy for a resource. Is empty if the policy or the
|
||||
# resource does not exist.
|
||||
# @param [String] resource
|
||||
# REQUIRED: The resource for which policy is being requested. Usually some path
|
||||
# like projects/`project`.
|
||||
# REQUIRED: The resource for which policy is being requested. Resource is
|
||||
# usually specified as a path, such as, projects/`project`.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
|
@ -437,8 +441,8 @@ module Google
|
|||
|
||||
# Returns permissions that a caller has on the specified resource.
|
||||
# @param [String] resource
|
||||
# REQUIRED: The resource for which policy detail is being requested. Usually
|
||||
# some path like projects/`project`.
|
||||
# REQUIRED: The resource for which policy detail is being requested. Resource is
|
||||
# usually specified as a path, such as, projects/`project`.
|
||||
# @param [Google::Apis::PubsubV1beta2::TestIamPermissionsRequest] test_iam_permissions_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
|
@ -477,7 +481,7 @@ module Google
|
|||
# same project as the topic.
|
||||
# @param [String] name
|
||||
# The name of the subscription. It must have the format "projects/`project`/
|
||||
# subscriptions/`subscription`" for Google Cloud Pub/Sub API v1beta2. `
|
||||
# subscriptions/`subscription`" for Google Cloud Pub/Sub API v1 and v1beta2. `
|
||||
# subscription` must start with a letter, and contain only letters ([A-Za-z]),
|
||||
# numbers ([0-9], dashes (-), underscores (_), periods (.), tildes (~), plus (+)
|
||||
# or percent signs (%). It must be between 3 and 255 characters in length, and
|
||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
|||
# @see https://developers.google.com/compute/docs/instance-groups/manager/v1beta2
|
||||
module ReplicapoolV1beta2
|
||||
VERSION = 'V1beta2'
|
||||
REVISION = '20150311'
|
||||
REVISION = '20150708'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -602,6 +602,15 @@ module Google
|
|||
class ReplicaPoolAutoHealingPolicy
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The action to perform when an instance becomes unhealthy. Possible values are
|
||||
# RECREATE or REBOOT. RECREATE replaces an unhealthy instance with a new
|
||||
# instance that is based on the instance template for this managed instance
|
||||
# group. REBOOT performs a soft reboot on an instance. If the instance cannot
|
||||
# reboot, the instance performs a hard restart.
|
||||
# Corresponds to the JSON property `actionType`
|
||||
# @return [String]
|
||||
attr_accessor :action_type
|
||||
|
||||
# The URL for the HealthCheck that signals autohealing.
|
||||
# Corresponds to the JSON property `healthCheck`
|
||||
# @return [String]
|
||||
|
@ -613,6 +622,7 @@ module Google
|
|||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@action_type = args[:action_type] unless args[:action_type].nil?
|
||||
@health_check = args[:health_check] unless args[:health_check].nil?
|
||||
end
|
||||
end
|
||||
|
|
|
@ -227,6 +227,7 @@ module Google
|
|||
class ReplicaPoolAutoHealingPolicy
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :action_type, as: 'actionType'
|
||||
property :health_check, as: 'healthCheck'
|
||||
end
|
||||
end
|
||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
|||
# @see https://developers.google.com/compute/
|
||||
module ResourceviewsV1beta2
|
||||
VERSION = 'V1beta2'
|
||||
REVISION = '20150326'
|
||||
REVISION = '20150708'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://developers.google.com/storage/docs/json_api/
|
||||
module StorageV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20150326'
|
||||
REVISION = '20150710'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -781,7 +781,8 @@ module Google
|
|||
attr_accessor :content_type
|
||||
|
||||
# CRC32c checksum, as described in RFC 4960, Appendix B; encoded using base64 in
|
||||
# big-endian byte order.
|
||||
# big-endian byte order. For more information about using the CRC32c checksum,
|
||||
# see Hashes and ETags: Best Practices.
|
||||
# Corresponds to the JSON property `crc32c`
|
||||
# @return [String]
|
||||
attr_accessor :crc32c
|
||||
|
@ -806,7 +807,8 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :kind
|
||||
|
||||
# MD5 hash of the data; encoded using base64.
|
||||
# MD5 hash of the data; encoded using base64. For more information about using
|
||||
# the MD5 hash, see Hashes and ETags: Best Practices.
|
||||
# Corresponds to the JSON property `md5Hash`
|
||||
# @return [String]
|
||||
attr_accessor :md5_hash
|
||||
|
|
|
@ -36,7 +36,7 @@ module Google
|
|||
# View and manage your assets and associated content on YouTube
|
||||
AUTH_YOUTUBEPARTNER = 'https://www.googleapis.com/auth/youtubepartner'
|
||||
|
||||
# View YouTube Analytics monetary reports for your YouTube content
|
||||
# View monetary and non-monetary YouTube Analytics reports for your YouTube content
|
||||
AUTH_YT_ANALYTICS_MONETARY_READONLY = 'https://www.googleapis.com/auth/yt-analytics-monetary.readonly'
|
||||
|
||||
# View YouTube Analytics reports for your YouTube content
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://developers.google.com/youtube/v3
|
||||
module YoutubeV3
|
||||
VERSION = 'V3'
|
||||
REVISION = '20150529'
|
||||
REVISION = '20150706'
|
||||
|
||||
# Manage your YouTube account
|
||||
AUTH_YOUTUBE = 'https://www.googleapis.com/auth/youtube'
|
||||
|
|
|
@ -4029,9 +4029,9 @@ module Google
|
|||
attr_accessor :configuration_issues
|
||||
|
||||
# The last time this status was updated (in seconds)
|
||||
# Corresponds to the JSON property `lastUpdateTimeS`
|
||||
# Corresponds to the JSON property `lastUpdateTimeSeconds`
|
||||
# @return [String]
|
||||
attr_accessor :last_update_time_s
|
||||
attr_accessor :last_update_time_seconds
|
||||
|
||||
# The status code of this stream
|
||||
# Corresponds to the JSON property `status`
|
||||
|
@ -4045,7 +4045,7 @@ module Google
|
|||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@configuration_issues = args[:configuration_issues] unless args[:configuration_issues].nil?
|
||||
@last_update_time_s = args[:last_update_time_s] unless args[:last_update_time_s].nil?
|
||||
@last_update_time_seconds = args[:last_update_time_seconds] unless args[:last_update_time_seconds].nil?
|
||||
@status = args[:status] unless args[:status].nil?
|
||||
end
|
||||
end
|
||||
|
|
|
@ -1671,7 +1671,7 @@ module Google
|
|||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :configuration_issues, as: 'configurationIssues', class: Google::Apis::YoutubeV3::LiveStreamConfigurationIssue, decorator: Google::Apis::YoutubeV3::LiveStreamConfigurationIssue::Representation
|
||||
|
||||
property :last_update_time_s, as: 'lastUpdateTimeS'
|
||||
property :last_update_time_seconds, as: 'lastUpdateTimeSeconds'
|
||||
property :status, as: 'status'
|
||||
end
|
||||
end
|
||||
|
|
|
@ -1663,6 +1663,84 @@ module Google
|
|||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Binds a YouTube broadcast to a stream or removes an existing binding between a
|
||||
# broadcast and a stream. A broadcast can only be bound to one video stream,
|
||||
# though a video stream may be bound to more than one broadcast.
|
||||
# @param [String] id
|
||||
# The id parameter specifies the unique ID of the broadcast that is being bound
|
||||
# to a video stream.
|
||||
# @param [String] on_behalf_of_content_owner
|
||||
# Note: This parameter is intended exclusively for YouTube content partners.
|
||||
# The onBehalfOfContentOwner parameter indicates that the request's
|
||||
# authorization credentials identify a YouTube CMS user who is acting on behalf
|
||||
# of the content owner specified in the parameter value. This parameter is
|
||||
# intended for YouTube content partners that own and manage many different
|
||||
# YouTube channels. It allows content owners to authenticate once and get access
|
||||
# to all their video and channel data, without having to provide authentication
|
||||
# credentials for each individual channel. The CMS account that the user
|
||||
# authenticates with must be linked to the specified YouTube content owner.
|
||||
# @param [String] on_behalf_of_content_owner_channel
|
||||
# This parameter can only be used in a properly authorized request. Note: This
|
||||
# parameter is intended exclusively for YouTube content partners.
|
||||
# The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID
|
||||
# of the channel to which a video is being added. This parameter is required
|
||||
# when a request specifies a value for the onBehalfOfContentOwner parameter, and
|
||||
# it can only be used in conjunction with that parameter. In addition, the
|
||||
# request must be authorized using a CMS account that is linked to the content
|
||||
# owner that the onBehalfOfContentOwner parameter specifies. Finally, the
|
||||
# channel that the onBehalfOfContentOwnerChannel parameter value specifies must
|
||||
# be linked to the content owner that the onBehalfOfContentOwner parameter
|
||||
# specifies.
|
||||
# This parameter is intended for YouTube content partners that own and manage
|
||||
# many different YouTube channels. It allows content owners to authenticate once
|
||||
# and perform actions on behalf of the channel specified in the parameter value,
|
||||
# without having to provide authentication credentials for each separate channel.
|
||||
# @param [String] part
|
||||
# The part parameter specifies a comma-separated list of one or more
|
||||
# liveBroadcast resource properties that the API response will include. The part
|
||||
# names that you can include in the parameter value are id, snippet,
|
||||
# contentDetails, and status.
|
||||
# @param [String] stream_id
|
||||
# The streamId parameter specifies the unique ID of the video stream that is
|
||||
# being bound to a broadcast. If this parameter is omitted, the API will remove
|
||||
# any existing binding between the broadcast and a video stream.
|
||||
# @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.
|
||||
# Overrides userIp if both are provided.
|
||||
# @param [String] user_ip
|
||||
# IP address of the site where the request originates. Use this if you want to
|
||||
# enforce per-user limits.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::YoutubeV3::LiveBroadcast] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::YoutubeV3::LiveBroadcast]
|
||||
#
|
||||
# @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 bind_direct_live_broadcast(id: nil, on_behalf_of_content_owner: nil, on_behalf_of_content_owner_channel: nil, part: nil, stream_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
path = 'liveBroadcasts/bind/direct'
|
||||
command = make_simple_command(:post, path, options)
|
||||
command.response_representation = Google::Apis::YoutubeV3::LiveBroadcast::Representation
|
||||
command.response_class = Google::Apis::YoutubeV3::LiveBroadcast
|
||||
command.query['id'] = id unless id.nil?
|
||||
command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
|
||||
command.query['onBehalfOfContentOwnerChannel'] = on_behalf_of_content_owner_channel unless on_behalf_of_content_owner_channel.nil?
|
||||
command.query['part'] = part unless part.nil?
|
||||
command.query['streamId'] = stream_id unless stream_id.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
|
||||
|
||||
# Controls the settings for a slate that can be displayed in the broadcast
|
||||
# stream.
|
||||
# @param [Boolean] display_slate
|
||||
|
|
|
@ -21,10 +21,11 @@ APIS=(adexchangebuyer:v1.3 \
|
|||
books:v1 \
|
||||
calendar:v3 \
|
||||
civicinfo:v2 \
|
||||
cloudmonitoring:v2beta2 \
|
||||
classroom:v1beta1 \
|
||||
cloudmonitoring:v2beta2 \
|
||||
cloudresourcemanager:v1beta1 \
|
||||
compute:v1 \
|
||||
container:v1beta1 \
|
||||
container:v1 \
|
||||
content:v2 \
|
||||
coordinate:v1 \
|
||||
customsearch:v1 \
|
||||
|
@ -42,7 +43,7 @@ APIS=(adexchangebuyer:v1.3 \
|
|||
gamesConfiguration:v1configuration \
|
||||
gamesConfiguration:v1management \
|
||||
gan:v1beta1 \
|
||||
genomics:v1beta2 \
|
||||
genomics:v1 \
|
||||
gmail:v1 \
|
||||
groupsmigration:v1 \
|
||||
groupssettings:v1 \
|
||||
|
|
Loading…
Reference in New Issue